/* prebid.js v8.52.2
Updated: 2025-01-16
Modules: 33acrossBidAdapter, amxBidAdapter, appnexusBidAdapter, consentManagement, consentManagementGpp, consentManagementUsp, criteoBidAdapter, criteoIdSystem, fpdModule, gdprEnforcement, gppControl_usnat, gppControl_usstates, gptPreAuction, gumgumBidAdapter, identityLinkIdSystem, ixBidAdapter, kargoBidAdapter, oguryBidAdapter, pairIdSystem, permutiveRtdProvider, prebidServerBidAdapter, pubProvidedIdSystem, pubmaticBidAdapter, quantcastIdSystem, rtdModule, rubiconBidAdapter, s2sTesting, topicsFpdModule, uid2IdSystem_shared, uid2IdSystem, liveIntentIdSystem, userId, ttdBidAdapter */
if(window.pbjs&&window.pbjs.libLoaded)try{window.pbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.")}catch(e){}else (function(){
!function(){var t,n={265:function(t,n,r){function e(t,n,r,e,o){for(n=n.split?n.split("."):n,e=0;e<n.length;e++)t=t?t[n[e]]:o;return t===o?r:t}r.d(n,{Z:function(){return e}})},1432:function(t){
/*
* @license MIT
* Fun Hooks v0.9.10
* (c) @snapwich
*/
i.SYNC=1,i.ASYNC=2,i.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),r=new WeakMap,e="2,1,0"===[1].reduce((function(t,n,r){return[t,n,r]}),2).toString()?Array.prototype.reduce:function(t,n){var r,e=Object(this),o=e.length>>>0,u=0;if(n)r=n;else{for(;u<o&&!(u in e);)u++;r=e[u++]}for(;u<o;)u in e&&(r=t(r,e[u],u,e)),u++;return r};function o(t,n){return Array.prototype.slice.call(t,n)}var u=Object.assign||function(t){return e.call(o(arguments,1),(function(t,n){return n&&Object.keys(n).forEach((function(r){t[r]=n[r]})),t}),t)};function i(t){var f,c={},a=[];function l(t,n){return"function"==typeof t?d.call(null,"sync",t,n):"string"==typeof t&&"function"==typeof n?d.apply(null,arguments):"object"==typeof t?p.apply(null,arguments):void 0}function p(t,n,r){var e=!0;void 0===n&&(n=Object.getOwnPropertyNames(t),e=!1);var o={},u=["constructor"];do{(n=n.filter((function(n){return!("function"!=typeof t[n]||-1!==u.indexOf(n)||n.match(/^_/))}))).forEach((function(n){var e=n.split(":"),u=e[0],i=e[1]||"sync";if(!o[u]){var f=t[u];o[u]=t[u]=d(i,f,r?[r,u]:void 0)}})),t=Object.getPrototypeOf(t)}while(e&&t);return o}function y(t){var n=Array.isArray(t)?t:t.split(".");return e.call(n,(function(r,e,o){var u=r[e],i=!1;return u||(o===n.length-1?(f||a.push((function(){i||console.warn("fun-hooks: referenced '"+t+"' but it was never created")})),r[e]=s((function(t){r[e]=t,i=!0}))):r[e]={})}),c)}function s(t){var n=[],e=[],o=function(){},i={before:function(t,r){return c.call(this,n,"before",t,r)},after:function(t,n){return c.call(this,e,"after",t,n)},getHooks:function(t){var r=n.concat(e);"object"==typeof t&&(r=r.filter((function(n){return Object.keys(t).every((function(r){return n[r]===t[r]}))})));try{u(r,{remove:function(){return r.forEach((function(t){t.remove()})),this}})}catch(t){console.error("error adding `remove` to array, did you modify Array.prototype?")}return r},removeAll:function(){return this.getHooks().remove()}},f={install:function(r,u,i){this.type=r,o=i,i(n,e),t&&t(u)}};return r.set(i.after,f),i;function c(t,r,u,i){var f={hook:u,type:r,priority:i||10,remove:function(){var r=t.indexOf(f);-1!==r&&(t.splice(r,1),o(n,e))}};return t.push(f),t.sort((function(t,n){return n.priority-t.priority})),o(n,e),this}}function d(n,e,c){var l=e.after&&r.get(e.after);if(l){if(l.type!==n)throw"fun-hooks: recreated hookable with different type";return e}var p,d,b=c?y(c):s(),v={get:function(t,n){return b[n]||Reflect.get.apply(Reflect,arguments)}};return f||a.push(h),t.useProxy&&"function"==typeof Proxy&&Proxy.revocable?d=new Proxy(e,v):(d=function(){return v.apply?v.apply(e,this,o(arguments)):e.apply(this,arguments)},u(d,b)),r.get(d.after).install(n,d,(function(t,r){var e,u=[];t.length||r.length?(t.forEach(i),e=u.push(void 0)-1,r.forEach(i),p=function(t,r,i){var f,c=0,a="async"===n&&"function"==typeof i[i.length-1]&&i.pop();function l(t){"sync"===n?f=t:a&&a.apply(null,arguments)}function p(t){if(u[c]){var e=o(arguments);return p.bail=l,e.unshift(p),u[c++].apply(r,e)}"sync"===n?f=t:a&&a.apply(null,arguments)}return u[e]=function(){var e=o(arguments,1);"async"===n&&a&&(delete p.bail,e.push(p));var u=t.apply(r,e);"sync"===n&&p(u)},p.apply(null,i),f}):p=void 0;function i(t){u.push(t.hook)}h()})),d;function h(){!f&&("sync"!==n||t.ready&i.SYNC)&&("async"!==n||t.ready&i.ASYNC)?"sync"!==n&&t.ready&i.QUEUE?v.apply=function(){var t=arguments;a.push((function(){d.apply(t[1],t[2])}))}:v.apply=function(){throw"fun-hooks: hooked function not ready"}:v.apply=p}}return(t=u({},n,t)).ready?l.ready=function(){f=!0,function(t){for(var n;n=t.shift();)n()}(a)}:f=!0,l.get=y,l}t.exports=i},907:function(t,n,r){function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}r.d(n,{Z:function(){return e}})},7326:function(t,n,r){function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(n,{Z:function(){return e}})},5671:function(t,n,r){function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}r.d(n,{Z:function(){return e}})},1519:function(t,n,r){function e(t,n,r){if(!n.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return n.get(t)}r.d(n,{Z:function(){return e}})},6033:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(1519);function o(t,n){return function(t,n){return n.get?n.get.call(t):n.value}(t,(0,e.Z)(t,n,"get"))}},3092:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(1519);function o(t,n,r){return function(t,n,r){if(n.set)n.set.call(t,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}(t,(0,e.Z)(t,n,"set"),r),r}},3144:function(t,n,r){function e(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function o(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}r.d(n,{Z:function(){return o}})},4942:function(t,n,r){function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,{Z:function(){return e}})},1120:function(t,n,r){function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}r.d(n,{Z:function(){return e}})},9340:function(t,n,r){function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}function o(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}r.d(n,{Z:function(){return o}})},2963:function(t,n,r){r.d(n,{Z:function(){return u}});var e=r(1002),o=r(7326);function u(t,n){if(n&&("object"===(0,e.Z)(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},885:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(181);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,u=[],i=!0,f=!1;try{for(r=r.call(t);!(i=(e=r.next()).done)&&(u.push(e.value),!n||u.length!==n);i=!0);}catch(t){f=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(f)throw o}}return u}}(t,n)||(0,e.Z)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(t,n,r){r.d(n,{Z:function(){return u}});var e=r(907);var o=r(181);function u(t){return function(t){if(Array.isArray(t))return(0,e.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.Z)(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.")}()}},1002:function(t,n,r){function e(t){return e="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},e(t)}r.d(n,{Z:function(){return e}})},181:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(907);function o(t,n){if(t){if("string"==typeof t)return(0,e.Z)(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.Z)(t,n):void 0}}},6475:function(t,n,r){function e(t,n,r){n.split&&(n=n.split("."));for(var e,o,u=0,i=n.length,f=t;u<i&&"__proto__"!==(o=n[u++])&&"constructor"!==o&&"prototype"!==o;)f=f[o]=u===i?r:typeof(e=f[o])==typeof n?e:0*n[u]!=0||~(""+n[u]).indexOf(".")?{}:[]}r.d(n,{N:function(){return e}})},8812:function(t,n,r){function e(t){var n,r,o;if(Array.isArray(t)){for(r=Array(n=t.length);n--;)r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}if("[object Object]"===Object.prototype.toString.call(t)){for(n in r={},t)"__proto__"===n?Object.defineProperty(r,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}return t}r.d(n,{Y:function(){return e}})}},r={};function e(t){var o=r[t];if(void 0!==o)return o.exports;var u=r[t]={exports:{}};return n[t](u,u.exports,e),u.exports}e.m=n,t=[],e.O=function(n,r,o,u){if(!r){var i=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],u=t[l][2];for(var f=!0,c=0;c<r.length;c++)(!1&u||i>=u)&&Object.keys(e.O).every((function(t){return e.O[t](r[c])}))?r.splice(c--,1):(f=!1,u<i&&(i=u));if(f){t.splice(l--,1);var a=o();void 0!==a&&(n=a)}}return n}u=u||0;for(var l=t.length;l>0&&t[l-1][2]>u;l--)t[l]=t[l-1];t[l]=[r,o,u]},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){var t={5602:0};e.O.j=function(n){return 0===t[n]};var n=function(n,r){var o,u,i=r[0],f=r[1],c=r[2],a=0;if(i.some((function(n){return 0!==t[n]}))){for(o in f)e.o(f,o)&&(e.m[o]=f[o]);if(c)var l=c(e)}for(n&&n(r);a<i.length;a++)u=i[a],e.o(t,u)&&t[u]&&t[u][0](),t[u]=0;return e.O(l)},r=self.pbjsChunk=self.pbjsChunk||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var o=e.O(void 0,[5823,9270],(function(){return e(9262)}));o=e.O(o)}();
(self.pbjsChunk=self.pbjsChunk||[]).push([[5823],{5706:function(n,e,t){t.d(e,{Pd:function(){return s},Th:function(){return d},_U:function(){return f}});var r=t(5730),i=t(4358),o=t(265),a=t(4614),u=(0,t(8640).R)(),c="outstream";function d(n){var e=this,t=n.url,o=n.config,a=n.id,u=n.callback,d=n.loaded,s=n.adUnitCode,f=n.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,this.loaded=d,this.cmd=[],this.push=function(n){"function"==typeof n?e.loaded?n.call():e.cmd.push(n):(0,i.H)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){e.loaded=!0,e.process()},this.render=function(){var n=this,e=arguments,o=function(){n._render?n._render.apply(n,e):(0,i.yN)("No render function was provided, please use .setRender on the renderer")};l(s)?((0,i.yN)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(s)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function s(n){return!(!n||!n.url&&!n.renderNow)}function f(n,e,t){var r=null;n.config&&n.config.documentResolver&&(r=n.config.documentResolver(e,document,t)),r||(r=document),n.documentContext=r,n.render(e,n.documentContext)}function l(n){var e=u.adUnits,t=(0,a.sE)(e,(function(e){return e.code===n}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),d=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||d&&!0!==c.backupOnly)}d.install=function(n){return new d({url:n.url,config:n.config,id:n.id,callback:n.callback,loaded:n.loaded,adUnitCode:n.adUnitCode,renderNow:n.renderNow})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(n){this._render=n},d.prototype.setEventHandlers=function(n){this.handlers=n},d.prototype.handleVideoEvent=function(n){var e=n.id,t=n.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.ji)("Prebid Renderer event for id ".concat(e," type ").concat(t))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(n){(0,i.H)("Error processing Renderer command: ",n)}}},4947:function(n,e,t){t.d(e,{EL:function(){return a},Jt:function(){return l},K$:function(){return i},S1:function(){return r},S5:function(){return o},UE:function(){return u},e:function(){return d},g0:function(){return f},oK:function(){return s},x$:function(){return c}});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",u="fetchBids",c="reportAnalytics",d="transmitEids",s="transmitUfpd",f="transmitPreciseGeo",l="transmitTid"},286:function(n,e,t){t.d(e,{T:function(){return i}});var r=t(3304),i=(0,t(6310).Oj)((function(n){return r.ZP.resolveAlias(n)}))},9633:function(n,e,t){t.d(e,{UL:function(){return i},XG:function(){return a},_U:function(){return u},wu:function(){return r},y2:function(){return o}});var r="prebid",i="bidder",o="userId",a="rtd",u="analytics"},6310:function(n,e,t){t.d(e,{$k:function(){return u},Hw:function(){return v},IV:function(){return g},JR:function(){return a},Ki:function(){return d},Oj:function(){return p},Qf:function(){return f},Ww:function(){return h},bL:function(){return s},bp:function(){return c},cx:function(){return l}});var r=t(4942),i=t(9633),o=t(2797),a="component",u=a+"Type",c=a+"Name",d="adapterCode",s="storageType",f="configName",l="syncType",g="syncUrl",v="_config";function p(n){return function(e,t,o){var s,f=(s={},(0,r.Z)(s,u,e),(0,r.Z)(s,c,t),(0,r.Z)(s,a,"".concat(e,".").concat(t)),s);return e===i.UL&&(f[d]=n(t)),h(Object.assign(f,o))}}var h=(0,o.z3)("sync",(function(n){return n}))},1087:function(n,e,t){t.d(e,{$8:function(){return f},Db:function(){return p},Mp:function(){return w},RD:function(){return h},ZZ:function(){return l},a:function(){return m},hb:function(){return E},js:function(){return b}});var r=t(1002),i=t(885),o=t(265),a=t(3193),u=t(571),c=t(4947);function d(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return s(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function s(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var f=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((function(n){return"user.".concat(n)})).concat("device.ext.cdep"),l=["user.eids","user.ext.eids"],g=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function v(n){return Object.assign({get:function(){},run:function(n,e,t,r,i){var o=t&&t[r];if(m(o)&&i()){var a=this.get(o);void 0===a?delete t[r]:t[r]=a}}},n)}function p(n){return n.forEach((function(n){n.paths=n.paths.map((function(n){var e=n.split("."),t=e.pop();return[e.length>0?e.join("."):null,t]}))})),function(e,t){for(var r=[],a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];var s=h.apply(void 0,[e].concat(u));return n.forEach((function(n){if(!1!==e[n.name]){var a,u=d(n.paths);try{for(u.s();!(a=u.n()).done;){var c=(0,i.Z)(a.value,2),f=c[0],l=c[1],g=null==f?t:(0,o.Z)(t,f);if(r.push(n.run(t,f,g,l,s.bind(null,n))),!1===e[n.name])return}}catch(n){u.e(n)}finally{u.f()}}})),r.filter((function(n){return null!=n}))}}function h(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return function(e){return n.hasOwnProperty(e.name)||(n[e.name]=!!e.applies.apply(e,t)),n[e.name]}}function m(n){return null!=n&&("object"!==(0,r.Z)(n)||Object.keys(n).length>0)}function b(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.xD;return function(t){return!e(n,t)}}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.e,paths:["userId","userIdAsEids"],applies:b(c.e,n)},{name:c.Jt,paths:["ortb2Imp.ext.tid"],applies:b(c.Jt,n)}].map(v)}function w(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.oK,paths:f,applies:b(c.oK,n)},{name:c.e,paths:l,applies:b(c.e,n)},{name:c.g0,paths:g,applies:b(c.g0,n),get:function(n){return Math.round(100*(n+Number.EPSILON))/100}},{name:c.Jt,paths:["source.tid"],applies:b(c.Jt,n)}].map(v)}var E=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD,e=p(w(n)),t=p(y(n));return function(n){var r={};return{ortb2:function(t){return e(r,t,n),t},bidRequest:function(e){return t(r,e,n),e}}}}();(0,u.oB)(c.Jt,"enableTIDs config",(function(){if(!a.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},571:function(n,e,t){t.d(e,{oB:function(){return s},xD:function(){return f}});var r=t(885),i=t(4358),o=t(6310);function a(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return u(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.qp)("Activity control:"),e={};function t(n){return e[n]=e[n]||[]}function u(e,t,r,i){var a;try{a=r(i)}catch(r){n.logError("Exception in rule ".concat(t," for '").concat(e,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:e,name:t,component:i[o.JR]},a)}var c={},d=1e3;function s(e){var t=e.activity,r=e.name,i=e.allow,o=e.reason,a=e.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),s=c.hasOwnProperty(u);if(s&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),d),!s){var f=[u];o&&f.push(o),(i?n.logInfo:n.logWarn).apply(n,f)}}return[function(n,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(n),u=a.findIndex((function(n){var e=(0,r.Z)(n,1)[0];return o<e})),c=[o,e,i];return a.splice(u<0?a.length:u,0,c),function(){var n=a.indexOf(c);n>=0&&a.splice(n,1)}},function(n,e){var i,o,c,d=a(t(n));try{for(d.s();!(c=d.n()).done;){var f=(0,r.Z)(c.value,3),l=f[0],g=f[1],v=f[2];if(i!==l&&o)break;i=l;var p=u(n,g,v,e);if(p){if(!p.allow)return s(p),!1;o=p}}}catch(n){d.e(n)}finally{d.f()}return o&&s(o),!0}]}(),d=(0,r.Z)(c,2),s=d[0],f=d[1]},3667:function(n,e,t){t.d(e,{E$:function(){return O},Lj:function(){return B},Ps:function(){return T},XD:function(){return j},YC:function(){return E},oc:function(){return C},tV:function(){return R}});var r=t(4942),i=t(4358),o=t(265),a=t(2021),u=t(2200),c=t(3193),d=t(5706),s=t(4679),f=t(1176),l=t(8099),g=t(2797),v=t(59),p=t(8792),h=u.FP.AD_RENDER_FAILED,m=u.FP.AD_RENDER_SUCCEEDED,b=u.FP.STALE_RENDER,y=u.FP.BID_WON,w=u.q_.EXCEPTION,E=(0,g.z3)("sync",(function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Z.resolve();return e.then((function(e){return null!=e?e:f.K.findBidByAdId(n)})).catch((function(){}))})),T=(0,g.z3)("sync",(function(n){a.j8(y,n),f.K.addWinningBid(n)}));function A(n){var e=n.reason,t=n.message,r=n.bid,o=n.id,u={reason:e,message:t};r&&(u.bid=r,u.adId=r.adId),o&&(u.adId=o),(0,i.H)("Error rendering ad (id: ".concat(o,"): ").concat(t)),a.j8(h,u)}function I(n){var e=n.doc,t=n.bid,r=n.id,i={doc:e};t&&(i.bid=t),r&&(i.adId=r),a.j8(m,i)}function C(n,e){switch(n.event){case u.FP.AD_RENDER_FAILED:A({bid:e,id:e.adId,reason:n.info.reason,message:n.info.message});break;case u.FP.AD_RENDER_SUCCEEDED:I({doc:null,bid:e,id:e.adId});break;default:(0,i.H)("Received event request for unsupported event: '".concat(n.event,"' (adId: '").concat(e.adId,"')"))}}function O(n,e,t){var r=t.resizeFn,i=t.fireTrackers,o=void 0===i?v.e6:i;if("resizeNativeHeight"===n.action)r(n.width,n.height);else o(n,e)}var k=(0,r.Z)({},u.X3.EVENT,C);k[u.X3.NATIVE]=O;var B=(0,g.z3)("sync",(function(n,e){var t=n.ad,r=n.adUrl,o=n.cpm,a=n.originalCpm,u=n.width,c=n.height,d={AUCTION_PRICE:a||o,CLICKTHROUGH:(null==e?void 0:e.clickUrl)||""};return{ad:(0,i.No)(t,d),adUrl:(0,i.No)(r,d),width:u,height:c}})),S=(0,g.z3)("sync",(function(n){var e=n.renderFn,t=n.resizeFn,r=n.bidResponse,i=n.options;if(r.mediaType!==s.pX){var o=B(r,i);e(Object.assign({adId:r.adId},o));var a=o.width,c=o.height;null!=(null!=a?a:c)&&t(a,c)}else A({reason:u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId})}));function j(n){var e=n.renderFn,t=n.resizeFn,r=n.adId,d=n.options,s=n.bidResponse,f=n.doc;if(null!=s){if(s.status!==u.UE.RENDERED||((0,i.yN)("Ad id ".concat(r," has been rendered before")),a.j8(b,s),!(0,o.Z)(c.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{S({renderFn:e,resizeFn:t,bidResponse:s,options:d,doc:f})}catch(n){A({reason:u.q_.EXCEPTION,message:n.message,id:r,bid:s})}T(s)}}else A({reason:u.q_.CANNOT_FIND_AD,message:"Cannot find ad '".concat(r,"'"),id:r})}function R(n,e,t){var r;function o(n,t){A(Object.assign({id:e,bid:r},{reason:n,message:t}))}function a(e,t){n.defaultView&&n.defaultView.frameElement&&(e&&(n.defaultView.frameElement.width=e),t&&(n.defaultView.frameElement.height=t))}var c,d=(c={resizeFn:a},function(n,e,t){k.hasOwnProperty(n)&&k[n](e,t,c)});function s(e){e.ad?(n.write(e.ad),n.close(),I({doc:n,bid:r,adId:r.adId})):(0,l.W)(r).then((function(t){return t(e,{sendMessage:function(n,e){return d(n,e,r)},mkFrame:i.Vz},n.defaultView)})).then((function(){return I({doc:n,bid:r,adId:r.adId})}),(function(n){o((null==n?void 0:n.reason)||u.q_.EXCEPTION,null==n?void 0:n.message),(null==n?void 0:n.stack)&&(0,i.H)(n)}));var t=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));(0,i.jC)(t,n,"html")}try{e&&n?n!==document||(0,i.yL)()?E(e).then((function(i){r=i,j({renderFn:s,resizeFn:a,adId:e,options:{clickUrl:null==t?void 0:t.clickThrough},bidResponse:i,doc:n})})):o(u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document."):o(u.q_.MISSING_DOC_OR_ADID,"missing ".concat(e?"doc":"adId"))}catch(n){o(w,n.message)}}S.before((function(n,e){var t=e.bidResponse,r=e.doc;(0,d.Pd)(t.renderer)?((0,d._U)(t.renderer,t,r),I({doc:r,bid:t,id:t.adId}),n.bail()):n(e)}),100)},8525:function(n,e,t){function r(n){var e=n;return{callBids:function(){},setBidderCode:function(n){e=n},getBidderCode:function(){return e}}}t.d(e,{Z:function(){return r}})},3304:function(n,e,t){t.d(e,{qJ:function(){return N},ZP:function(){return nn},JO:function(){return z},uV:function(){return K},Ct:function(){return J},O6:function(){return F}});var r=t(2982),i=t(885),o=t(4942),a=t(4358),u=t(265),c=t(59),d=t(4699),s=t(8928),f=t(3193),l=t(2797),g=t(4614),v={};function p(n,e,t){var r=function(n,e){var t=v[n]=v[n]||{bidders:{}};return e?t.bidders[e]=t.bidders[e]||{}:t}(n,t);return r[e]=(r[e]||0)+1,r[e]}function h(n){return p(n,"requestsCounter")}function m(n){return(0,u.Z)(v,"".concat(n,".requestsCounter"))||0}function b(n,e){return(0,u.Z)(v,"".concat(n,".bidders.").concat(e,".requestsCounter"))||0}function y(n,e){return(0,u.Z)(v,"".concat(n,".bidders.").concat(e,".winsCounter"))||0}var w=t(5102),E=t(4516),T=t(2021),A=t(2200),I=t(9128),C=t(1176),O=t(9633),k=t(571),B=t(4947),S=t(6310),j=t(1087);function R(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?R(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var U="pbsBidAdapter",N={CLIENT:"client",SERVER:"server"},P={isAllowed:k.xD,redact:j.hb},_={},q=_.bidderRegistry={},x=_.aliasRegistry={},Z=[];f.vc.getConfig("s2sConfig",(function(n){n&&n.s2sConfig&&(Z=(0,a.kJ)(n.s2sConfig)?n.s2sConfig:[n.s2sConfig])}));var H={},M=(0,S.Oj)((function(n){return _.resolveAlias(n)}));function F(n){return M(O.wu,U,(0,o.Z)({},S.Qf,n.configName))}var L=(0,l.z3)("sync",(function(n){var e=n.bidderCode,t=n.auctionId,r=n.bidderRequestId,i=n.adUnits,o=n.src,c=n.metrics;return i.reduce((function(n,i){var d=i.bids.filter((function(n){return n.bidder===e}));return null==e&&0===d.length&&null!=i.s2sBid&&d.push({bidder:null}),n.push(d.reduce((function(n,d){var s=null==(d=Object.assign({},d,{ortb2Imp:(0,a.Ee)({},i.ortb2Imp,d.ortb2Imp)},(0,a.iG)(i,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?i.mediaTypes:d.mediaTypes;return(0,a.FS)(s)?d=Object.assign({},d,{mediaTypes:s}):(0,a.H)("mediaTypes is not correctly configured for adunit ".concat(i.code)),"client"===o&&function(n,e){p(n,"requestsCounter",e)}(i.code,e),n.push(Object.assign({},d,{adUnitCode:i.code,transactionId:i.transactionId,adUnitId:i.adUnitId,sizes:(0,u.Z)(s,"banner.sizes")||(0,u.Z)(s,"video.playerSize")||[],bidId:d.bid_id||(0,a._d)(),bidderRequestId:r,auctionId:t,src:o,metrics:c,bidRequestsCount:m(i.code),bidderRequestsCount:b(i.code,d.bidder),bidderWinsCount:y(i.code,d.bidder)})),n}),[])),n}),[]).reduce(a.xH,[]).filter((function(n){return""!==n}))}),"getBids");var z=(0,l.z3)("sync",(function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?K:r;if(null==e)return n;var o=i(e);return n.filter((function(n){return o.has(n.bidder)}))}),"filterBidsForAdUnit");function W(n,e){var t=(0,a.I8)(n),r=!1;return t.forEach((function(n){var t=n.bids.filter((function(n){var t;return n.module===U&&(null===(t=n.params)||void 0===t?void 0:t.configName)===e.configName}));1===t.length?(n.s2sBid=t[0],r=!0,n.ortb2Imp=(0,a.Ee)({},n.s2sBid.ortb2Imp,n.ortb2Imp)):t.length>1&&(0,a.yN)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),n.bids=z(n.bids,e).map((function(n){return n.bid_id=(0,a._d)(),n}))})),{adUnits:t=t.filter((function(n){return 0!==n.bids.length||null!=n.s2sBid})),hasModuleBids:r}}function G(n){var e=(0,a.I8)(n);return e.forEach((function(n){n.bids=z(n.bids,null)})),e=e.filter((function(n){return 0!==n.bids.length}))}var V=(0,l.z3)("sync",(function(n,e){return n}),"setupAdUnitMediaTypes");function K(n){(0,a.kJ)(n)||(n=[n]);var e=new Set([null]);return n.filter((function(n){return n&&n.enabled})).flatMap((function(n){return n.bidders})).forEach((function(n){return e.add(n)})),e}var J=(0,l.z3)("sync",(function(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?K:i,c=u(e);return(0,a.pP)(n).reduce((function(n,e){return n[c.has(e)?N.SERVER:N.CLIENT].push(e),n}),(t={},(0,o.Z)(t,N.CLIENT,[]),(0,o.Z)(t,N.SERVER,[]),t))}),"partitionBidders");function Q(n,e){var t=q[n],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[e]&&"function"==typeof r[e])return[r,r[e]]}function $(n,e,t,r){try{(0,a.PN)("Invoking ".concat(n,".").concat(e));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u<i;u++)o[u-4]=arguments[u];f.vc.runWithBidder(n,r.bind.apply(r,[t].concat(o)))}catch(t){(0,a.yN)("Error calling ".concat(e," of ").concat(n))}}function X(n,e,t){if((null==t?void 0:t.src)!==A.os.SRC){var i=Q(n,e);null!=i&&$.apply(void 0,[n,e].concat((0,r.Z)(i),[t]))}}function Y(n){for(var e=new Set;x.hasOwnProperty(n)&&!e.has(n);)e.add(n),n=x[n];return n}_.makeBidRequests=(0,l.z3)("sync",(function(n,e,t,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,I.Bf)(u),T.j8(A.FP.BEFORE_REQUEST_BIDS,n),(0,c.Fb)(n),n.forEach((function(n){(0,a.PO)(n.mediaTypes)||(n.mediaTypes={}),n.bids=n.bids.filter((function(n){return!n.bidder||P.isAllowed(B.UE,M(O.UL,n.bidder))})),h(n.code)})),n=V(n,i);var d=J(n,Z),s=d[N.CLIENT],l=d[N.SERVER];f.vc.getConfig("bidderSequence")===f.FD&&(s=(0,a.TV)(s));var v=(0,w.nH)(),p=[],m=o.global||{},b=o.bidder||{};function y(n,e){var r=P.redact(null!=e?e:M(O.UL,n.bidderCode)),i=Object.freeze(r.ortb2((0,a.Ee)({source:{tid:t}},m,b[n.bidderCode])));return n.ortb2=i,n.bids=n.bids.map((function(n){return n.ortb2=i,r.bidRequest(n)})),n}Z.forEach((function(r){var i=F(r);if(r&&r.enabled&&P.isAllowed(B.UE,i)){var o=W(n,r),c=o.adUnits,d=o.hasModuleBids,s=(0,a.DO)();(0===l.length&&d?[null]:l).forEach((function(n){var o=(0,a._d)(),d=u.fork(),f=y({bidderCode:n,auctionId:t,bidderRequestId:o,uniquePbsTid:s,bids:L({bidderCode:n,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(c),src:A.os.SRC,metrics:d}),auctionStart:e,timeout:r.timeout,src:A.os.SRC,refererInfo:v,metrics:d},i);0!==f.bids.length&&p.push(f)})),c.forEach((function(n){var e=n.bids.filter((function(n){return(0,g.sE)(p,(function(e){return(0,g.sE)(e.bids,(function(e){return e.bidId===n.bid_id}))}))}));n.bids=e})),p.forEach((function(n){void 0===n.adUnitsS2SCopy&&(n.adUnitsS2SCopy=c.filter((function(n){return n.bids.length>0||null!=n.s2sBid})))}))}}));var C=G(n);return s.forEach((function(n){var o=(0,a._d)(),c=u.fork(),d=y({bidderCode:n,auctionId:t,bidderRequestId:o,bids:L({bidderCode:n,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(C),labels:i,src:"client",metrics:c}),auctionStart:e,timeout:r,refererInfo:v,metrics:c}),s=q[n];s||(0,a.H)("Trying to make a request for bidder that does not exist: ".concat(n)),s&&d.bids&&0!==d.bids.length&&p.push(d)})),p.forEach((function(n){E.rp.getConsentData()&&(n.gdprConsent=E.rp.getConsentData()),E.nX.getConsentData()&&(n.uspConsent=E.nX.getConsentData()),E.TJ.getConsentData()&&(n.gppConsent=E.TJ.getConsentData())})),p}),"makeBidRequests"),_.callBids=function(n,e,t,r,o,u,c){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(e.length){var l=e.reduce((function(n,e){return n[Number(void 0!==e.src&&e.src===A.os.SRC)].push(e),n}),[[],[]]),g=(0,i.Z)(l,2),v=g[0],p=g[1],h=[];p.forEach((function(n){for(var e=-1,t=0;t<h.length;++t)if(n.uniquePbsTid===h[t].uniquePbsTid){e=t;break}e<=-1&&h.push(n)}));var m=0;Z.forEach((function(n){if(n&&h[m]&&K(n).has(h[m].bidderCode)){var e=(0,s.OI)(u,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),i=n.bidders,f=q[n.adapter],l=h[m].uniquePbsTid,g=h[m].adUnitsS2SCopy,v=p.filter((function(n){return n.uniquePbsTid===l}));if(f){var b={ad_units:g,s2sConfig:n,ortb2Fragments:d,requestBidsTimeout:u};if(b.ad_units.length){var y=v.map((function(n){return n.start=(0,a.AB)(),function(e){e||c(n.bidderRequestId),r.apply(n,arguments)}})),w=(0,a.pP)(b.ad_units).filter((function(n){return i.includes(n)}));(0,a.ji)("CALLING S2S HEADER BIDDERS ==== ".concat(w.length>0?w.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),v.forEach((function(n){T.j8(A.FP.BID_REQUESTED,D(D({},n),{},{tid:n.auctionId}))})),f.callBids(b,p,t,(function(n){return y.forEach((function(e){return e(n)}))}),e)}}else(0,a.H)("missing "+n.adapter);m++}})),v.forEach((function(n){n.start=(0,a.AB)();var e=q[n.bidderCode];f.vc.runWithBidder(n.bidderCode,(function(){(0,a.ji)("CALLING BIDDER"),T.j8(A.FP.BID_REQUESTED,n)}));var i=(0,s.OI)(u,o?{request:o.request.bind(null,n.bidderCode),done:o.done}:void 0),d=r.bind(n);try{f.vc.runWithBidder(n.bidderCode,e.callBids.bind(e,n,t,d,i,(function(){return c(n.bidderRequestId)}),f.vc.callbackWithBidder(n.bidderCode)))}catch(e){(0,a.H)("".concat(n.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:e,bidRequest:n}),d()}}))}else(0,a.yN)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?")},_.videoAdapters=[],_.registerBidAdapter=function(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;n&&e?"function"==typeof n.callBids?(q[e]=n,E.qh.register(O.UL,e,null===(t=n.getSpec)||void 0===t?void 0:t.call(n).gvlid),(0,g.q9)(o,"video")&&_.videoAdapters.push(e),(0,g.q9)(o,"native")&&c.Sg.push(e)):(0,a.H)("Bidder adaptor error for bidder code: "+e+"bidder must implement a callBids() function"):(0,a.H)("bidAdapter or bidderCode not specified")},_.aliasBidAdapter=function(n,e,t){if(void 0===q[e]){var r=q[n];if(void 0===r){var i=[];Z.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,g.q9)(r,e)?x[e]=n:i.push(n)}})),i.forEach((function(n){(0,a.H)('bidderCode "'+n+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(n){var e=[];return(0,g.q9)(_.videoAdapters,n)&&e.push("video"),(0,g.q9)(c.Sg,n)&&e.push("native"),e}(n);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(e);else{var s=r.getSpec(),f=t&&t.gvlid;null!=s.gvlid&&null==f&&(0,a.yN)("Alias '".concat(e,"' will NOT re-use the GVL ID of the original adapter ('").concat(s.code,"', gvlid: ").concat(s.gvlid,"). Functionality that requires TCF consent may not work as expected."));var l=t&&t.skipPbsAliasing;o=(0,d.PZ)(Object.assign({},s,{code:e,gvlid:f,skipPbsAliasing:l})),x[e]=n}_.registerBidAdapter(o,e,{supportedMediaTypes:u})}catch(e){(0,a.H)(n+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.ji)('alias name "'+e+'" has been already specified.')},_.resolveAlias=function(n){for(var e,t=n;x[t]&&(!e||!e.has(t));)t=x[t],(e=e||new Set).add(t);return t},_.registerAnalyticsAdapter=function(n){var e=n.adapter,t=n.code,r=n.gvlid;e&&t?"function"==typeof e.enableAnalytics?(e.code=t,H[t]={adapter:e,gvlid:r},E.qh.register(O._U,t,r)):(0,a.H)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n        analytics adapter must implement an enableAnalytics() function')):(0,a.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},_.enableAnalytics=function(n){(0,a.kJ)(n)||(n=[n]),n.forEach((function(n){var e=H[n.provider];e&&e.adapter?P.isAllowed(B.x$,M(O._U,n.provider,(0,o.Z)({},S.Hw,n)))&&e.adapter.enableAnalytics(n):(0,a.H)("Prebid Error: no analytics adapter found in registry for '".concat(n.provider,"'."))}))},_.getBidAdapter=function(n){return q[n]},_.getAnalyticsAdapter=function(n){return H[n]},_.callTimedOutBidders=function(n,e,t){e=e.map((function(e){return e.params=(0,a.S0)(n,e.adUnitCode,e.bidder),e.timeout=t,e})),e=(0,a.vM)(e,"bidder"),Object.keys(e).forEach((function(n){X(n,"onTimeout",e[n])}))},_.callBidWonBidder=function(n,e,t){var r,i;e.params=(0,a.S0)(t,e.adUnitCode,e.bidder),r=e.adUnitCode,i=e.bidder,p(r,"winsCounter",i),X(n,"onBidWon",e)},_.callBidBillableBidder=function(n){X(n.bidder,"onBidBillable",n)},_.callSetTargetingBidder=function(n,e){X(n,"onSetTargeting",e)},_.callBidViewableBidder=function(n,e){X(n,"onBidViewable",e)},_.callBidderError=function(n,e,t){X(n,"onBidderError",{error:e,bidderRequest:t})},_.callDataDeletionRequest=(0,l.z3)("sync",(function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var o="onDataDeletionRequest";Object.keys(q).filter((function(n){return!x.hasOwnProperty(n)})).forEach((function(n){var t=Q(n,o);if(null!=t){var i=C.K.getBidsRequested().filter((function(e){return Y(e.bidderCode)===n}));$.apply(void 0,[n,o].concat((0,r.Z)(t),[i],e))}})),Object.entries(H).forEach((function(n){var t,r=(0,i.Z)(n,2),u=r[0],c=r[1],d=null==c||null===(t=c.adapter)||void 0===t?void 0:t[o];if("function"==typeof d)try{d.apply(c.adapter,e)}catch(n){(0,a.H)("error calling ".concat(o," of ").concat(u),n)}}))}));var nn=_},4699:function(n,e,t){t.d(e,{Ie:function(){return D},JY:function(){return N},PZ:function(){return k},dX:function(){return O}});var r=t(1002),i=t(885),o=t(8525),a=t(3304),u=t(3193),c=t(9626),d=t(1974),s=t(59),f=t(154),l=t(2200),g=t(2021),v=t(4614),p=t(4358),h=t(2797),m=t(1176),b=t(5975),y=t(9128),w=t(571),E=t(286),T=t(9633),A=t(4947),I=["cpm","ttl","creativeId","netRevenue","currency"],C=["auctionId","transactionId"];function O(n){var e=Array.isArray(n.supportedMediaTypes)?{supportedMediaTypes:n.supportedMediaTypes}:void 0;function t(n){var t=k(n);a.ZP.registerBidAdapter(t,n.code,e)}t(n),Array.isArray(n.aliases)&&n.aliases.forEach((function(e){var r,i,o=e;(0,p.PO)(e)&&(o=e.code,r=e.gvlid,i=e.skipPbsAliasing),a.ZP.aliasRegistry[o]=n.code,t(Object.assign({},n,{code:o,gvlid:r,skipPbsAliasing:i}))}))}function k(n){return Object.assign(new o.Z(n.code),{getSpec:function(){return Object.freeze(Object.assign({},n))},registerSyncs:e,callBids:function(t,r,o,d,s,f){if(Array.isArray(t.bids)){var v=function(n){if((0,w.xD)(A.Jt,(0,E.T)(T.UL,n)))return{bidRequest:function(n){return n},bidderRequest:function(n){return n}};function e(n,e,t){return C.includes(e)?null:Reflect.get(n,e,t)}function t(n,e){var t=new Proxy(n,e);return Object.entries(n).filter((function(n){var e=(0,i.Z)(n,2);return e[0],"function"==typeof e[1]})).forEach((function(e){var r=(0,i.Z)(e,2),o=r[0],a=r[1];return t[o]=a.bind(n)})),t}var r=(0,p.HP)((function(n){return t(n,{get:e})}),(function(n){return n.bidId}));return{bidRequest:r,bidderRequest:function(n){return t(n,{get:function(t,i,o){return"bids"===i?n.bids.map(r):e(t,i,o)}})}}}(t.bidderCode),h={},m=[],I=P(t).measureTime("validate",(function(){return t.bids.filter((function(e){return function(e){if(!n.isBidRequestValid(e))return(0,p.yN)("Invalid bid sent to bidder ".concat(n.code,": ").concat(JSON.stringify(e))),!1;return!0}(v.bidRequest(e))}))}));if(0!==I.length){var O={};I.forEach((function(n){O[n.bidId]=n,n.adUnitCode||(n.adUnitCode=n.placementCode)})),j(n,I.map(v.bidRequest),v.bidderRequest(t),d,f,{onRequest:function(n){return g.j8(l.FP.BEFORE_BIDDER_HTTP,t,n)},onResponse:function(e){s(n.code),m.push(e)},onPaapi:function(n){var e=O[n.bidId];e?D(e,n):(0,p.yN)("Received fledge auction configuration for an unknown bidId",n)},onError:function(e,r){r.timedOut||s(n.code),a.ZP.callBidderError(n.code,r,t),g.j8(l.FP.BIDDER_ERROR,{error:r,bidderRequest:t}),(0,p.H)("Server call for ".concat(n.code," failed: ").concat(e," ").concat(r.status,". Continuing without bids."))},onBid:function(e){var t=O[e.requestId];if(t){if(e.adapterCode=t.bidder,function(n,e){var t=b.S.get(e,"allowAlternateBidderCodes")||!1,r=b.S.get(e,"allowedAlternateBidderCodes");if(n&&e&&e!==n&&(r=(0,p.kJ)(r)?r.map((function(n){return n.trim().toLowerCase()})).filter((function(n){return!!n})).filter(p.tT):r,!t||(0,p.kJ)(r)&&"*"!==r[0]&&!r.includes(n)))return!0;return!1}(e.bidderCode,t.bidder))return(0,p.yN)("".concat(e.bidderCode," is not a registered partner or known bidder of ").concat(t.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(t.adUnitCode,e,l.Gw.BIDDER_DISALLOWED);e.originalCpm=e.cpm,e.originalCurrency=e.currency,e.meta=e.meta||Object.assign({},e[t.bidder]);var i=Object.assign((0,c.m)(l.Q_.GOOD,t),e,(0,p.ei)(t,C));!function(n,e){var t=(0,y.Bf)(e.metrics);t.checkpoint("addBidResponse"),h[n]=!0,t.measureTime("addBidResponse.validate",(function(){return N(n,e)}))?r(n,e):r.reject(n,e,l.Gw.INVALID)}(t.adUnitCode,i)}else(0,p.yN)("Bidder ".concat(n.code," made bid for unknown request ID: ").concat(e.requestId,". Ignoring.")),r.reject(null,e,l.Gw.INVALID_REQUEST_ID)},onCompletion:k})}else k()}function k(){o(),u.vc.runWithBidder(n.code,(function(){g.j8(l.FP.BIDDER_DONE,t),e(m,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function e(e,t,r,i){R(n,e,t,r,i)}}var B=["paapi","fledgeAuctionConfigs"],S=["bids"].concat(B);var j=(0,h.z3)("sync",(function(n,e,t,o,a,u){var c=u.onRequest,d=u.onResponse,s=u.onPaapi,f=u.onError,l=u.onBid,g=u.onCompletion,v=P(t);g=v.startTiming("total").stopBefore(g);var h=v.measureTime("buildRequests",(function(){return n.buildRequests(e,t)}));if(h&&0!==h.length){Array.isArray(h)||(h=[h]);var m=(0,p.yx)(g,h.length);h.forEach((function(e){var t=v.fork();function u(n){null!=n&&(n.metrics=t.fork().renameWith()),l(n)}var g=a((function(r,o){y();try{r=JSON.parse(r)}catch(n){}r={body:r,headers:{get:o.getResponseHeader.bind(o)}},d(r);try{r=t.measureTime("interpretResponse",(function(){return n.interpretResponse(r,e)}))}catch(e){return(0,p.H)("Bidder ".concat(n.code," failed to interpret the server's response. Continuing without bids"),null,e),void m()}var a,c;r&&!Object.keys(r).some((function(n){return!S.includes(n)}))?(a=r.bids,c=function(n){var e=B.map((function(e){return n[e]})),t=(0,i.Z)(e,2),r=t[0],o=t[1];if(null!=r&&null!=o)throw new Error("Adapter response should use ".concat(B[0]," over ").concat(B[1],", not both"));return null!=r?r:o}(r)):a=r,(0,p.kJ)(c)&&c.forEach(s),a&&((0,p.kJ)(a)?a.forEach(u):u(a)),m()})),h=a((function(n,e){y(),f(n,e),m()}));c(e);var y=t.startTiming("net");function I(t){var r,i=e.options;return Object.assign(t,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((null===(r=b.S.get(n.code,"topicsHeader"))||void 0===r||r)&&(0,w.xD)(A.oK,(0,E.T)(T.UL,n.code)))})}switch(e.method){case"GET":o("".concat(e.url).concat(function(n){if(n)return"?".concat("object"===(0,r.Z)(n)?(0,p.Re)(n):n);return""}(e.data)),{success:g,error:h},void 0,I({method:"GET",withCredentials:!0}));break;case"POST":o(e.url,{success:g,error:h},"string"==typeof e.data?e.data:JSON.stringify(e.data),I({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,p.yN)("Skipping invalid request from ".concat(n.code,". Request type ").concat(e.type," must be GET or POST")),m()}}))}else g()}),"processBidderRequests"),R=(0,h.z3)("async",(function(n,e,t,r,i){var o=u.vc.getConfig("userSync.aliasSyncEnabled");if(n.getUserSyncs&&(o||!a.ZP.aliasRegistry[n.code])){var c=u.vc.getConfig("userSync.filterSettings"),s=n.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},e,t,r,i);s&&(Array.isArray(s)||(s=[s]),s.forEach((function(e){d.k_.registerSync(e.type,n.code,e.url)})),d.k_.bidderDone(n.code))}}),"registerSyncs"),D=(0,h.z3)("sync",(function(n,e){}),"addPaapiConfig");function U(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?m.K.index:r;if((e.width||0===parseInt(e.width,10))&&(e.height||0===parseInt(e.height,10)))return e.width=parseInt(e.width,10),e.height=parseInt(e.height,10),!0;var a=o.getBidRequest(e),u=o.getMediaTypes(e),c=a&&a.sizes||u&&u.banner&&u.banner.sizes,d=(0,p.sF)(c);if(1===d.length){var s=d[0].split("x"),f=(0,i.Z)(s,2),l=f[0],g=f[1];return e.width=parseInt(l,10),e.height=parseInt(g,10),!0}return!1}function N(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;function o(){var n=Object.keys(e);return I.every((function(t){return(0,v.q9)(n,t)&&!(0,v.q9)([void 0,null],e[t])}))}function a(n){return"Invalid bid from ".concat(e.bidderCode,". Ignoring bid: ").concat(n)}return n?e?o()?"native"!==e.mediaType||(0,s.r4)(e,{index:i})?"video"!==e.mediaType||(0,f.Dn)(e,{index:i})?!("banner"===e.mediaType&&!U(n,e,{index:i}))||((0,p.H)(a("Banner bids require a width and height")),!1):((0,p.H)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,p.H)(a("Native bid missing some required properties.")),!1):((0,p.H)(a("Bidder ".concat(e.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,p.yN)("Some adapter tried to add an undefined bid for ".concat(n,".")),!1):((0,p.yN)("No adUnitCode was supplied to addBidResponse."),!1)}function P(n){return(0,y.Bf)(n.metrics).renameWith((function(e){return["adapter.client.".concat(e),"adapters.client.".concat(n.bidderCode,".").concat(e)]}))}},5730:function(n,e,t){t.d(e,{B:function(){return u}});var r=t(4614),i=t(4358),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","azerionedge","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge","mediafilter","qortex","dynamicAdBoost","contxtful","id5","51Degrees"];function u(n,e,t,u,c){if(e&&n){if((0,r.q9)(a,e)){u||(u=document);var d=l(u,n);if(d)return t&&"function"==typeof t&&(d.loaded?t():d.callbacks.push(t)),d.tag;var s=o.get(u)||{},f={loaded:!1,tag:null,callbacks:[]};return s[n]=f,o.set(u,s),t&&"function"==typeof t&&f.callbacks.push(t),(0,i.yN)("module ".concat(e," is loading external JavaScript")),function(e,t,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var u=l(r,n);u&&(u.tag=a);a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=function(){t()};a.src=e,o&&(0,i.D9)(a,o);return(0,i.jC)(a,r),a}(n,(function(){f.loaded=!0;try{for(var n=0;n<f.callbacks.length;n++)f.callbacks[n]()}catch(n){(0,i.H)("Error executing callback","adloader.js:loadExternalScript",n)}}),u,c)}(0,i.H)("".concat(e," not whitelisted for loading external JavaScript"))}else(0,i.H)("cannot load external script without url and moduleCode");function l(n,e){var t=o.get(n);return t&&t[e]?t[e]:null}}},7563:function(n,e,t){t.d(e,{G:function(){return r}});var r=(0,t(2797).z3)("sync",(function(){}))},8928:function(n,e,t){t.d(e,{OI:function(){return p},he:function(){return m},hj:function(){return h}});var r=t(885),i=t(1002),o=t(3193),a=t(4358),u={fetch:window.fetch.bind(window),makeRequest:function(n,e){return new Request(n,e)},timeout:function(n,e){var t=new AbortController,r=setTimeout((function(){t.abort(),(0,a.H)("Request timeout after ".concat(n,"ms"),e),r=null}),n);return{signal:t.signal,done:function(){r&&clearTimeout(r)}}}},c="GET",d="POST",s="Content-Type";function f(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(e?d:c);if(r===c&&e){var i=(0,a.en)(n,t);Object.assign(i.search,e),n=(0,a.Q2)(i)}var o=new Headers(t.customHeaders);o.set(s,t.contentType||"text/plain");var f={method:r,headers:o};return r!==c&&e&&(f.body=e),t.withCredentials&&(f.credentials="include"),t.browsingTopics&&isSecureContext&&(f.browsingTopics=!0),t.keepalive&&(f.keepalive=!0),u.makeRequest(n,f)}function l(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.request,r=e.done,i=function(e,t){var r,i,a;null==n||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.vc.getConfig("disableAjaxTimeout")||(a=u.timeout(n,e),t=Object.assign({signal:a.signal},t));var c=u.fetch(e,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(n){return function(e,i){var o=new URL(null==(null==e?void 0:e.url)?e:e.url,document.location).origin,a=n(e,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function g(n,e){var t=n.status,r=n.statusText,i=void 0===r?"":r,o=n.headers,u=n.url,c=0;function d(n){if(0===c)try{var t,r;c=(new DOMParser).parseFromString(e,null==o||null===(t=o.get(s))||void 0===t||null===(r=t.split(";"))||void 0===r?void 0:r[0])}catch(e){c=null,n&&n(e)}return c}return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:e,response:e,responseType:"",responseURL:u,get responseXML(){return d(a.H)},getResponseHeader:function(n){return null!=o&&o.has(n)?o.get(n):null},toJSON:function(){return Object.assign({responseXML:d()},this)},timedOut:!1}}function v(n,e){var t="object"===(0,i.Z)(e)&&null!=e?e:{success:"function"==typeof e?e:function(){return null},error:function(n,e){return(0,a.H)("Network error",n,e)}},o=t.success,u=t.error;return n.then((function(n){return n.text().then((function(e){return[n,e]}))})).then((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],a=g(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(n){return u("",Object.assign(g({status:0},""),{reason:n,timedOut:"AbortError"===(null==n?void 0:n.name)}))}))}function p(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.request,r=e.done,i=l(n,{request:t,done:r});return function(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(i(f(n,t,r)),e)}}var h=p(),m=l()},1176:function(n,e,t){t.d(e,{K:function(){return un}});var r=t(885),i=t(2982),o=t(4358),a=t(1002),u=t(265),c=t(6463),d=t(59),s=t(8928),f=t(3193);function l(n,e){var t=(e=e&&(Array.isArray(e)?e:[e]))?e.map((function(n){return"<Impression><![CDATA[".concat(n,"]]></Impression>")})).join(""):"";return'<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA['.concat(n,"]]></VASTAdTagURI>\n        ").concat(t,"\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>")}function g(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.index,r=void 0===t?un.index:t,i=n.vastXml?n.vastXml:l(n.vastUrl,n.vastImpUrl),o=r.getAuction(n),a=Number(n.ttl)+15,u={type:"xml",value:i,ttlseconds:a};return f.vc.getConfig("cache.vasttrack")&&(u.bidder=n.bidder,u.bidid=n.requestId,u.aid=n.auctionId),null!=o&&(u.timestamp=o.getAuctionStart()),"string"==typeof n.customCacheKey&&""!==n.customCacheKey&&(u.key=n.customCacheKey),u}function v(n){return{success:function(e){var t;try{t=JSON.parse(e).responses}catch(e){return void n(e,[])}t?n(null,t):n(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){n(new Error("Error storing video ad in the cache: ".concat(e,": ").concat(JSON.stringify(t))),[])}}}var p=t(5706),h=t(1974),m=t(2797),b=t(4614),y=t(154),w=t(4679),E=t(5975),T=t(2021),A=t(3304),I=t(2200),C=t(8792),O=t(9128);var k=t(8640),B=h.k_.syncUsers,S="completed";T.on(I.FP.BID_ADJUSTMENT,(function(n){!function(n){var e=function(n,e,t){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.index,u=void 0===a?un.index:a,c=i.bs,d=void 0===c?E.S:c;t=t||u.getBidRequest(e);var s=null==e?void 0:e.adapterCode,f=(null==e?void 0:e.bidderCode)||(null===(r=t)||void 0===r?void 0:r.bidder),l=d.get(null==e?void 0:e.adapterCode,"adjustAlternateBids"),g=d.getOwn(f,"bidCpmAdjustment")||d.get(l?s:f,"bidCpmAdjustment");if(g&&"function"==typeof g)try{return g(n,Object.assign({},e),t)}catch(n){(0,o.H)("Error during bid adjustment",n)}return n}(n.cpm,n);e>=0&&(n.cpm=e)}(n)}));var j={},R={},D=[],U=(0,k.R)();function N(n){var e=n.adUnits,t=n.adUnitCodes,r=n.callback,i=n.cbTimeout,a=n.labels,u=n.auctionId,c=n.ortb2Fragments,s=n.metrics;s=(0,O.Bf)(s);var l,g,v,p,h=e,m=a,y=t,E=u||(0,o.DO)(),k=i,N=new Set,M=(0,C.P)(),F=[],L=r,z=[],W=[],K=[],J=[],Q=[];function $(){return{auctionId:E,timestamp:l,auctionEnd:g,auctionStatus:p,adUnits:h,adUnitCodes:y,labels:m,bidderRequests:z,noBids:K,bidsReceived:W,bidsRejected:F,winningBids:J,timeout:k,metrics:s,seatNonBids:Q}}function X(n){if(n?T.j8(I.FP.AUCTION_TIMEOUT,$()):clearTimeout(v),void 0===g){var t=[];n&&((0,o.ji)("Auction ".concat(E," timedOut")),(t=z.filter((function(n){return!N.has(n.bidderRequestId)})).flatMap((function(n){return n.bids}))).length&&T.j8(I.FP.BID_TIMEOUT,t)),p=S,g=Date.now(),s.checkpoint("auctionEnd"),s.timeBetween("requestBids","auctionEnd","requestBids.total"),s.timeBetween("callBids","auctionEnd","requestBids.callBids"),M.resolve(),T.j8(I.FP.AUCTION_END,$()),x(h,(function(){try{if(null!=L){var r=W.filter((function(n){return y.includes(n.adUnitCode)})).reduce(Y,{});L.apply(U,[r,n,E]),L=null}}catch(n){(0,o.H)("Error executing bidsBackHandler",null,n)}finally{t.length&&A.ZP.callTimedOutBidders(e,t,k);var i=f.vc.getConfig("userSync")||{};i.enableOverride||B(i.syncDelay)}}))}}function nn(){f.vc.resetBidder(),(0,o.PN)("Bids Received for Auction with id: ".concat(E),W),p=S,X(!1)}function en(n){N.add(n)}function tn(n){var e=this;n.forEach((function(n){var e;e=n,z=z.concat(e)}));var t={},r={bidRequests:n,run:function(){v=setTimeout((function(){return X(!0)}),k),p="inProgress",T.j8(I.FP.AUCTION_INIT,$());var r=function(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?un.index:t,i=0,a=!1,u=new Set,c={};function s(){i--,a&&0===i&&n()}function l(n,e,t){return c[e.requestId]=!0,G(e,n),i++,t(s)}function g(n,t){l(n,t,(function(n){var i=V(t);T.j8(I.FP.BID_ACCEPTED,i),i.mediaType===w.pX?H(e,i,n):((0,d.ub)(i)&&(0,d.kH)(i,r.getAdUnit(i)),Z(e,i),n())}))}function v(n,t,r){return l(n,t,(function(n){t.rejectionReason=r,(0,o.yN)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),T.j8(I.FP.BID_REJECTED,t),e.addBidRejected(t),n()}))}function p(){var t=this,r=e.getBidRequests(),d=f.vc.getConfig("auctionOptions");if(u.add(t),d&&!(0,o.xb)(d)){var s=d.secondaryBidders;s&&!r.every((function(n){return(0,b.q9)(s,n.bidderCode)}))&&(r=r.filter((function(n){return!(0,b.q9)(s,n.bidderCode)})))}a=r.every((function(n){return u.has(n)})),t.bids.forEach((function(n){c[n.bidId]||(e.addNoBid(n),T.j8(I.FP.NO_BID,n))})),a&&0===i&&n()}return{addBidResponse:function(){function n(n,e){var t;P.call({dispatch:g},n,e,(t=!1,function(r){t||(v(n,e,r),t=!0)}))}return n.reject=v,n}(),adapterDone:function(){var n=this;_(C.Z.resolve()).finally((function(){return p.call(n)}))}}}(nn,e);A.ZP.callBids(h,n,r.addBidResponse,r.adapterDone,{request:function(n,e){a(j,e),a(t,n),R[n]||(R[n]={SRA:!0,origin:e}),t[n]>1&&(R[n].SRA=!1)},done:function(n){j[n]--,D[0]&&i(D[0])&&D.shift()}},k,en,c)}};function i(n){var e=!0,t=f.vc.getConfig("maxRequestsPerOrigin")||4;return n.bidRequests.some((function(n){var r=1,i=void 0!==n.src&&n.src===I.os.SRC?"s2s":n.bidderCode;return R[i]&&(!1===R[i].SRA&&(r=Math.min(n.bids.length,t)),j[R[i].origin]+r>t&&(e=!1)),!e})),e&&n.run(),e}function a(n,e){void 0===n[e]?n[e]=1:n[e]++}i(r)||((0,o.yN)("queueing auction due to limited endpoint capacity"),D.push(r))}return T.on(I.FP.SEAT_NON_BID,(function(n){var e;n.auctionId===E&&(e=n.seatnonbid,Q=Q.concat(e))})),{addBidReceived:function(n){W=W.concat(n)},addBidRejected:function(n){F=F.concat(n)},addNoBid:function(n){K=K.concat(n)},callBids:function(){p="started",l=Date.now();var n=s.measureTime("requestBids.makeRequests",(function(){return A.ZP.makeBidRequests(h,l,E,k,m,c,s)}));(0,o.PN)("Bids Requested for Auction with id: ".concat(E),n),s.checkpoint("callBids"),n.length<1?((0,o.yN)("No valid bid requests returned for auction"),nn()):q.call({dispatch:tn,context:this},n)},addWinningBid:function(n){var t=e.find((function(e){return e.adUnitId===n.adUnitId}));J=J.concat(n),(0,o.R_)(n),A.ZP.callBidWonBidder(n.adapterCode||n.bidder,n,e),t&&!t.deferBilling&&A.ZP.callBidBillableBidder(n)},setBidTargeting:function(n){A.ZP.callSetTargetingBidder(n.adapterCode||n.bidder,n)},getWinningBids:function(){return J},getAuctionStart:function(){return l},getAuctionEnd:function(){return g},getTimeout:function(){return k},getAuctionId:function(){return E},getAuctionStatus:function(){return p},getAdUnits:function(){return h},getAdUnitCodes:function(){return y},getBidRequests:function(){return z},getBidsReceived:function(){return W},getNoBids:function(){return K},getNonBids:function(){return Q},getFPD:function(){return c},getMetrics:function(){return s},end:M.promise}}var P=(0,m.z3)("sync",(function(n,e,t){!function(n){var e=f.vc.getConfig("maxBid");return!e||!n.cpm||e>=Number(n.cpm)}(e)?t(I.Gw.PRICE_TOO_HIGH):this.dispatch.call(null,n,e)}),"addBidResponse"),_=(0,m.z3)("sync",(function(n){return n}),"responsesReady"),q=(0,m.z3)("sync",(function(n){this.dispatch.call(this.context,n)}),"addBidderRequests"),x=(0,m.z3)("async",(function(n,e){e&&e()}),"bidsBackCallback");function Z(n,e){!function(n){var e,t=!0===E.S.get(n.bidderCode,"allowZeroCpmBids")?n.cpm>=0:n.cpm>0;n.bidderCode&&(t||n.dealId)&&(e=function(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?un.index:t;if(!e)return{};var i=r.getBidRequest(e),o={},a=$(e.mediaType,n);X(o,a,e,i),n&&E.S.getOwn(n,I.k2.ADSERVER_TARGETING)&&(X(o,E.S.ownSettingsFor(n),e,i),e.sendStandardTargeting=E.S.get(n,"sendStandardTargeting"));e.native&&(o=Object.assign({},o,(0,d.Ur)(e)));return o}(n.bidderCode,n));n.adserverTargeting=Object.assign(n.adserverTargeting||{},e)}(e),(0,O.Bf)(e.metrics).timeSince("addBidResponse","addBidResponse.total"),n.addBidReceived(e),T.j8(I.FP.BID_RESPONSE,e)}function H(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,a=void 0===i?un.index:i,c=!0,d=(0,u.Z)(a.getMediaTypes({requestId:e.originalRequestId||e.requestId,adUnitId:e.adUnitId}),"video"),s=d&&(0,u.Z)(d,"context"),l=d&&(0,u.Z)(d,"useCacheKey");f.vc.getConfig("cache.url")&&(l||s!==y.gZ)&&(!e.videoCacheKey||f.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,W(n,e,t,d)):e.vastUrl||((0,o.H)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(Z(n,e),t())}var M,F,L=function(n){!function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.OI,r={puts:n.map(g)};t(f.vc.getConfig("cache.timeout"))(f.vc.getConfig("cache.url"),v(e),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}(n.map((function(n){return n.bidResponse})),(function(e,t){t.forEach((function(t,r){var i,a=n[r],u=a.auctionInstance,c=a.bidResponse,d=a.afterBidAdded;e?(0,o.yN)("Failed to save to the video cache: ".concat(e,". Video bid must be discarded.")):""===t.uuid?(0,o.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(c.videoCacheKey=t.uuid,c.vastUrl||(c.vastUrl=(i=c.videoCacheKey,"".concat(f.vc.getConfig("cache.url"),"?uuid=").concat(i))),Z(u,c),d())}))}))};f.vc.getConfig("cache",(function(n){M="number"==typeof n.cache.batchSize&&n.cache.batchSize>0?n.cache.batchSize:1,F="number"==typeof n.cache.batchTimeout&&n.cache.batchTimeout>0?n.cache.batchTimeout:0}));var z=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,t=[[]],r=!1,i=function(n){return n()};return function(o,a,u){var c=F>0?n:i;t[t.length-1].length>=M&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(e),t=[[]],r=!1}),F))}}(),W=(0,m.z3)("async",(function(n,e,t,r){z(n,e,t)}),"callPrebidCache");function G(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?un.index:r,a=i.getBidderRequest(n),u=i.getAdUnit(n),c=a&&a.start||n.requestTimestamp;Object.assign(n,{responseTimestamp:n.responseTimestamp||(0,o.AB)(),requestTimestamp:n.requestTimestamp||c,cpm:parseFloat(n.cpm)||0,bidder:n.bidder||n.bidderCode,adUnitCode:e}),null!=(null==u?void 0:u.ttlBuffer)&&(n.ttlBuffer=u.ttlBuffer),n.timeToRespond=n.responseTimestamp-n.requestTimestamp}function V(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?un.index:r;T.j8(I.FP.BID_ADJUSTMENT,n);var o=(null===(e=i.getBidRequest(n))||void 0===e?void 0:e.renderer)||i.getAdUnit(n).renderer,u=n.mediaType,d=i.getMediaTypes(n),s=d&&d[u],l=s&&s.renderer,g=null;l&&l.url&&l.render&&(!0!==l.backupOnly||!n.renderer)?g=l:o&&o.url&&o.render&&(!0!==o.backupOnly||!n.renderer)&&(g=o),g&&(n.renderer=p.Th.install({url:g.url,config:g.options}),n.renderer.setRender(g.render));var v=K(n.mediaType,d,f.vc.getConfig("mediaTypePriceGranularity")),h=(0,c.D)(n.cpm,"object"===(0,a.Z)(v)?v:f.vc.getConfig("customPriceBucket"),f.vc.getConfig("currency.granularityMultiplier"));return n.pbLg=h.low,n.pbMg=h.med,n.pbHg=h.high,n.pbAg=h.auto,n.pbDg=h.dense,n.pbCg=h.custom,n}function K(n,e,t){if(n&&t){if(n===w.pX){var r=(0,u.Z)(e,"".concat(w.pX,".context"),"instream");if(t["".concat(w.pX,"-").concat(r)])return t["".concat(w.pX,"-").concat(r)]}return t[n]}}var J=function(n){return function(e){var t=n||function(n){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===e?un.index:e,r=K(n.mediaType,t.getMediaTypes(n),f.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof n.mediaType&&r?"string"==typeof r?r:"custom":f.vc.getConfig("priceGranularity")}(e);return t===I.Ql.AUTO?e.pbAg:t===I.Ql.DENSE?e.pbDg:t===I.Ql.LOW?e.pbLg:t===I.Ql.MEDIUM?e.pbMg:t===I.Ql.HIGH?e.pbHg:t===I.Ql.CUSTOM?e.pbCg:void 0}};function Q(n,e){return{key:n,val:"function"==typeof e?function(n,t){return e(n,t)}:function(n){return(0,o.NA)(n,e)}}}function $(n,e){var t=Object.assign({},E.S.settingsFor(null));if(t[I.k2.ADSERVER_TARGETING]||(t[I.k2.ADSERVER_TARGETING]=[Q(I.TD.BIDDER,"bidderCode"),Q(I.TD.AD_ID,"adId"),Q(I.TD.PRICE_BUCKET,J()),Q(I.TD.SIZE,"size"),Q(I.TD.DEAL,"dealId"),Q(I.TD.SOURCE,"source"),Q(I.TD.FORMAT,"mediaType"),Q(I.TD.ADOMAIN,(function(n){return n.meta&&n.meta.advertiserDomains&&n.meta.advertiserDomains.length>0?[n.meta.advertiserDomains].flat()[0]:""})),Q(I.TD.ACAT,(function(n){return n.meta&&n.meta.primaryCatId?n.meta.primaryCatId:""})),Q(I.TD.DSP,(function(n){return n.meta&&(n.meta.networkId||n.meta.networkName)?(0,u.Z)(n,"meta.networkName")||(0,u.Z)(n,"meta.networkId"):""})),Q(I.TD.CRID,(function(n){return n.creativeId?n.creativeId:""}))]),"video"===n){var r=t[I.k2.ADSERVER_TARGETING].slice();if(t[I.k2.ADSERVER_TARGETING]=r,[I.TD.UUID,I.TD.CACHE_ID].forEach((function(n){void 0===(0,b.sE)(r,(function(e){return e.key===n}))&&r.push(Q(n,"videoCacheKey"))})),f.vc.getConfig("cache.url")&&(!e||!1!==E.S.get(e,"sendStandardTargeting"))){var i=(0,o.en)(f.vc.getConfig("cache.url"));void 0===(0,b.sE)(r,(function(n){return n.key===I.TD.CACHE_HOST}))&&r.push(Q(I.TD.CACHE_HOST,(function(n){return(0,u.Z)(n,"adserverTargeting.".concat(I.TD.CACHE_HOST))?n.adserverTargeting[I.TD.CACHE_HOST]:i.hostname})))}}return t}function X(n,e,t,r){var i=e[I.k2.ADSERVER_TARGETING];return t.size=t.getSize(),(i||[]).forEach((function(i){var a=i.key,u=i.val;if(n[a]&&(0,o.yN)("The key: "+a+" is being overwritten"),(0,o.LQ)(u))try{u=u(t,r)}catch(n){(0,o.H)("bidmanager","ERROR",n)}(void 0===e.suppressEmptyKeys||!0!==e.suppressEmptyKeys)&&a!==I.TD.DEAL&&a!==I.TD.ACAT&&a!==I.TD.DSP&&a!==I.TD.CRID||!(0,o.jH)(u)&&null!=u?n[a]=u:(0,o.PN)("suppressing empty key '"+a+"' from adserver targeting")})),n}function Y(n,e){return n[e.adUnitCode]||(n[e.adUnitCode]={bids:[]}),n[e.adUnitCode].bids.push(e),n}function nn(n){Object.assign(this,{getAuction:function(e){var t=e.auctionId;if(null!=t)return n().find((function(n){return n.getAuctionId()===t}))},getAdUnit:function(e){var t=e.adUnitId;if(null!=t)return n().flatMap((function(n){return n.getAdUnits()})).find((function(n){return n.adUnitId===t}))},getMediaTypes:function(n){var e=n.adUnitId,t=n.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==e||r.adUnitId===e))return r.mediaTypes}else if(null!=e){var i=this.getAdUnit({adUnitId:e});if(null!=i)return i.mediaTypes}},getBidderRequest:function(e){var t=e.requestId,r=e.bidderRequestId;if(null!=t||null!=r){var i=n().flatMap((function(n){return n.getBidRequests()}));return null!=r&&(i=i.filter((function(n){return n.bidderRequestId===r}))),null==t?i[0]:i.find((function(n){return n.bids&&null!=n.bids.find((function(n){return n.bidId===t}))}))}},getBidRequest:function(e){var t=e.requestId;if(null!=t)return n().flatMap((function(n){return n.getBidRequests()})).flatMap((function(n){return n.bids})).find((function(n){return n&&n.bidId===t}))}})}var en=t(613),tn=t(8833);function rn(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return on(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return on(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function on(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var an="minBidCacheTTL";var un=function(){var n=null,e=(0,en.Z)({startTime:function(n){return n.end.then((function(){return n.getAuctionEnd()}))},ttl:function(e){return null==n?null:e.end.then((function(){return 1e3*Math.max.apply(Math,[n].concat((0,i.Z)(e.getBidsReceived().map(tn.N))))}))}});(0,tn.l)((function(){null!=n&&e.refresh()})),f.vc.getConfig(an,(function(t){n!==(n="number"==typeof(n=null==t?void 0:t.minBidCacheTTL)?n:null)&&e.refresh()}));var t={onExpiry:e.onExpiry};function a(n){var t,r=rn(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.getAuctionId()===n)return i}}catch(n){r.e(n)}finally{r.f()}}function u(){return e.toArray().flatMap((function(n){return n.getBidsReceived()}))}return t.addWinningBid=function(n){var e=(0,O.Bf)(n.metrics);e.checkpoint("bidWon"),e.timeBetween("auctionEnd","bidWon","render.pending"),e.timeBetween("requestBids","bidWon","render.e2e");var t=a(n.auctionId);t?(n.status=I.UE.RENDERED,t.addWinningBid(n)):(0,o.yN)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:function(n){return n.getAuctionStatus()===S}},getAdUnitCodes:{post:o.tT}}).forEach((function(n){var i=(0,r.Z)(n,2),o=i[0],a=i[1],u=a.name,c=void 0===u?o:u,d=a.pre,s=a.post,f=null==d?function(n){return n[c]()}:function(n){return d(n)?n[c]():[]},l=null==s?function(n){return n}:function(n){return n.filter(s)};t[o]=function(){return l(e.toArray().flatMap(f))}})),t.getAllBidsForAdUnitCode=function(n){return u().filter((function(e){return e&&e.adUnitCode===n}))},t.createAuction=function(n){var t=N(n);return function(n){e.add(n)}(t),t},t.findBidByAdId=function(n){return u().find((function(e){return e.adId===n}))},t.getStandardBidderAdServerTargeting=function(){return $()[I.k2.ADSERVER_TARGETING]},t.setStatusForBids=function(n,e){var r=t.findBidByAdId(n);if(r&&(r.status=e),r&&e===I.UE.BID_TARGETING_SET){var i=a(r.auctionId);i&&i.setBidTargeting(r)}},t.getLastAuctionId=function(){var n=e.toArray();return n.length&&n[n.length-1].getAuctionId()},t.clearAllAuctions=function(){e.clear()},t.index=new nn((function(){return e.toArray()})),t}()},8833:function(n,e,t){t.d(e,{N:function(){return u},l:function(){return c}});var r=t(3193),i=t(4358),o=1,a=[];function u(n){return n.ttl-(n.hasOwnProperty("ttlBuffer")?n.ttlBuffer:o)}function c(n){a.push(n)}r.vc.getConfig("ttlBuffer",(function(n){"number"==typeof n.ttlBuffer?o!==(o=n.ttlBuffer)&&a.forEach((function(n){return n(o)})):(0,i.H)("Invalid value for ttlBuffer",n.ttlBuffer)}))},5975:function(n,e,t){t.d(e,{S:function(){return g}});var r=t(5671),i=t(3144),o=t(265),a=t(4358),u=t(8640),c=t(2200);function d(n,e){!function(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n,e),e.add(n)}function s(n,e,t){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return t}var f=new WeakSet;function l(n){return null==n?this.defaultScope:n}var g=new(function(){function n(e,t){(0,r.Z)(this,n),d(this,f),this.getSettings=e,this.defaultScope=t}return(0,i.Z)(n,[{key:"get",value:function(n,e){var t=this.getOwn(n,e);return void 0===t&&(t=this.getOwn(null,e)),t}},{key:"getOwn",value:function(n,e){return n=s(this,f,l).call(this,n),(0,o.Z)(this.getSettings(),"".concat(n,".").concat(e))}},{key:"getScopes",value:function(){var n=this;return Object.keys(this.getSettings()).filter((function(e){return e!==n.defaultScope}))}},{key:"settingsFor",value:function(n){return(0,a.Ee)({},this.ownSettingsFor(null),this.ownSettingsFor(n))}},{key:"ownSettingsFor",value:function(n){return n=s(this,f,l).call(this,n),this.getSettings()[n]||{}}}]),n}())((function(){return(0,u.R)().bidderSettings||{}}),c.k2.BD_SETTING_STANDARD)},9626:function(n,e,t){t.d(e,{m:function(){return o}});var r=t(4358);function i(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.src,i=void 0===t?"client":t,o=e.bidder,a=void 0===o?"":o,u=e.bidId,c=e.transactionId,d=e.adUnitId,s=e.auctionId,f=i,l=n||0;function g(){switch(l){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}Object.assign(this,{bidderCode:a,width:0,height:0,statusMessage:g(),adId:(0,r._d)(),requestId:u,transactionId:c,adUnitId:d,auctionId:s,mediaType:"banner",source:f}),this.getStatusCode=function(){return l},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(n,e){return new i(n,e)}},3193:function(n,e,t){t.d(e,{FD:function(){return g},vc:function(){return b}});var r=t(4942),i=t(1002),o=t(885),a=t(6463),u=t(4614),c=t(4358),d=t(265),s=t(2200);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var l="TRUE"===(0,c.ak)(s.f).toUpperCase(),g="random",v={};v[g]=!0,v.fixed=!0;var p=g,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},m="*";var b=function(){var n,e,t,s=[],g=null;function b(){function r(n){return d[n].val}function i(n,e){d[n].val=e}n={};var d={publisherDomain:{set:function(n){null!=n&&(0,c.yN)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",n)}},priceGranularity:{val:h.MEDIUM,set:function(n){g(n)&&("string"==typeof n?i("priceGranularity",f(n)?n:h.MEDIUM):(0,c.PO)(n)&&(i("customPriceBucket",n),i("priceGranularity",h.CUSTOM),(0,c.ji)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(n){null!=n&&i("mediaTypePriceGranularity",Object.keys(n).reduce((function(e,t){return g(n[t])?"string"==typeof n?e[t]=f(n[t])?n[t]:r("priceGranularity"):(0,c.PO)(n)&&(e[t]=n[t],(0,c.ji)("Using custom price granularity for ".concat(t))):(0,c.yN)("Invalid price granularity for media type: ".concat(t)),e}),{}))}},bidderSequence:{val:p,set:function(n){v[n]?i("bidderSequence",n):(0,c.yN)("Invalid order: ".concat(n,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(n){(function(n){if(!(0,c.PO)(n))return(0,c.yN)("Auction Options must be an object"),!1;for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e];if("secondaryBidders"!==r&&"suppressStaleRender"!==r)return(0,c.yN)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,c.kJ)(n[r]))return(0,c.yN)("Auction Options ".concat(r," must be of type Array")),!1;if(!n[r].every(c.d8))return(0,c.yN)("Auction Options ".concat(r," must be only string")),!1}else if("suppressStaleRender"===r&&!(0,c.jn)(n[r]))return(0,c.yN)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(n)&&i("auctionOptions",n)}}},s={debug:l,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,timeoutBuffer:400,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3};function f(n){return(0,u.sE)(Object.keys(h),(function(e){return n===h[e]}))}function g(n){if(!n)return(0,c.H)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof n)f(n)||(0,c.yN)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,c.PO)(n)&&!(0,a.t)(n))return(0,c.H)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(s,Object.fromEntries(Object.entries(d).map((function(n){var e=(0,o.Z)(n,2),t=e[0],a=e[1];return[t,Object.assign({get:r.bind(null,t),set:i.bind(null,t),enumerable:!0},a)]})))),e&&j(Object.keys(e).reduce((function(n,t){return e[t]!==s[t]&&(n[t]=s[t]||{}),n}),{})),e=s,t={}}function y(){if(g&&t&&(0,c.PO)(t[g])){var n=t[g],r=new Set(Object.keys(e).concat(Object.keys(n)));return(0,u.Oc)(r).reduce((function(t,r){return void 0===n[r]?t[r]=e[r]:void 0===e[r]?t[r]=n[r]:(0,c.PO)(n[r])?t[r]=(0,c.Ee)({},e[r],n[r]):t[r]=n[r],t}),{})}return Object.assign({},e)}var w=[y,function(){var n=y();return Object.defineProperty(n,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),n}].map((function(n){return function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?(0,d.Z)(n(),e):y()}return S.apply(void 0,arguments)}})),E=(0,o.Z)(w,2),T=E[0],A=E[1],I=[A,T].map((function(n){return function(){var e=n.apply(void 0,arguments);return e&&"object"===(0,i.Z)(e)&&(e=(0,c.I8)(e)),e}})),C=(0,o.Z)(I,2),O=C[0],k=C[1];function B(t){if((0,c.PO)(t)){var r=Object.keys(t),i={};r.forEach((function(r){var o=t[r];(0,c.PO)(n[r])&&(0,c.PO)(o)&&(o=Object.assign({},n[r],o));try{i[r]=e[r]=o}catch(n){(0,c.yN)("Cannot set config for property ".concat(r," : "),n)}})),j(i)}else(0,c.H)("setConfig options must be an object")}function S(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e;if("string"!=typeof n&&(i=n,n=m,t=e||{}),"function"==typeof i){var o={topic:n,callback:i};return s.push(o),t.init&&i(n===m?A():(0,r.Z)({},n,A(n))),function(){s.splice(s.indexOf(o),1)}}(0,c.H)("listener must be a function")}function j(n){var e=Object.keys(n);s.filter((function(n){return(0,u.q9)(e,n.topic)})).forEach((function(e){e.callback((0,r.Z)({},e.topic,n[e.topic]))})),s.filter((function(n){return n.topic===m})).forEach((function(e){return e.callback(n)}))}function R(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(n),n.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(n.config).forEach((function(i){var o=n.config[i];if((0,c.PO)(o)){var a=e?c.Ee:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(n){(0,c.H)(n)}function r(n){if(!(0,c.PO)(n))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(n.bidders)||!n.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.PO)(n.config))throw"setBidderConfig bidder options must contain a config object"}}function D(n,e){g=n;try{return e()}finally{U()}}function U(){g=null}return b(),{getCurrentBidder:function(){return g},resetBidder:U,getConfig:A,getAnyConfig:T,readConfig:O,readAnyConfig:k,setConfig:B,mergeConfig:function(n){if((0,c.PO)(n)){var e=(0,c.Ee)(y(),n);return B(function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({},e)),e}(0,c.H)("mergeConfig input must be an object")},setDefaults:function(t){(0,c.PO)(n)?(Object.assign(n,t),Object.assign(e,t)):(0,c.H)("defaults must be an object")},resetConfig:b,runWithBidder:D,callbackWithBidder:function(n){return function(e){return function(){if("function"==typeof e){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return D(n,e.bind.apply(e,[this].concat(r)))}(0,c.yN)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:R,getBidderConfig:function(){return t},mergeBidderConfig:function(n){return R(n,!0)}}}()},4516:function(n,e,t){t.d(e,{$P:function(){return w},Lw:function(){return E},NO:function(){return L},TJ:function(){return Z},VP:function(){return H},nX:function(){return x},qh:function(){return M},rp:function(){return q}});var r=t(885),i=t(7326),o=t(9340),a=t(2963),u=t(1120),c=t(5671),d=t(3144),s=t(4942),f=t(6033),l=t(3092),g=t(4358),v=t(8792),p=t(3193);function h(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=(0,u.Z)(n);if(e){var i=(0,u.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function m(n,e,t){b(n,e),e.set(n,t)}function b(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(n,e,t){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return t}var w=Object.freeze({}),E=Object.freeze({}),T=new WeakMap,A=new WeakMap,I=new WeakMap,C=new WeakMap,O=new WeakMap,k=new WeakMap,B=new WeakSet,S=function(){function n(){var e,t;(0,c.Z)(this,n),b(e=this,t=B),t.add(e),m(this,T,{writable:!0,value:void 0}),m(this,A,{writable:!0,value:void 0}),m(this,I,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,O,{writable:!0,value:!0}),m(this,k,{writable:!0,value:void 0}),(0,s.Z)(this,"generatedTime",void 0),(0,s.Z)(this,"hashFields",void 0),this.reset()}return(0,d.Z)(n,[{key:"reset",value:function(){(0,l.Z)(this,I,(0,v.P)()),(0,l.Z)(this,T,!1),(0,l.Z)(this,A,null),(0,l.Z)(this,C,!1),this.generatedTime=null}},{key:"enable",value:function(){(0,l.Z)(this,T,!0)}},{key:"enabled",get:function(){return(0,f.Z)(this,T)}},{key:"ready",get:function(){return(0,f.Z)(this,C)}},{key:"promise",get:function(){return(0,f.Z)(this,C)?v.Z.resolve((0,f.Z)(this,A)):((0,f.Z)(this,T)||y(this,B,j).call(this,null),(0,f.Z)(this,I).promise)}},{key:"setConsentData",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,g.AB)();this.generatedTime=e,(0,l.Z)(this,O,!0),y(this,B,j).call(this,n)}},{key:"getConsentData",value:function(){return(0,f.Z)(this,A)}},{key:"hash",get:function(){var n=this;return(0,f.Z)(this,O)&&((0,l.Z)(this,k,(0,g._R)(JSON.stringify((0,f.Z)(this,A)&&this.hashFields?this.hashFields.map((function(e){return(0,f.Z)(n,A)[e]})):(0,f.Z)(this,A)))),(0,l.Z)(this,O,!1)),(0,f.Z)(this,k)}}]),n}();function j(n){(0,l.Z)(this,C,!0),(0,l.Z)(this,A,n),(0,f.Z)(this,I).resolve(n)}var R=function(n){(0,o.Z)(t,n);var e=h(t);function t(){return(0,c.Z)(this,t),e.apply(this,arguments)}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){var n=this.getConsentData();if(n&&this.generatedTime)return{usp:n,generatedAt:this.generatedTime}}}]),t}(S),D=function(n){(0,o.Z)(t,n);var e=h(t);function t(){var n;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o)),(0,s.Z)((0,i.Z)(n),"hashFields",["gdprApplies","consentString"]),n}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){var n=this.getConsentData();if(n&&n.vendorData&&this.generatedTime)return{gdprApplies:n.gdprApplies,consentStringSize:(0,g.d8)(n.vendorData.tcString)?n.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:n.apiVersion}}}]),t}(S),U=function(n){(0,o.Z)(t,n);var e=h(t);function t(){var n;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o)),(0,s.Z)((0,i.Z)(n),"hashFields",["applicableSections","gppString"]),n}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),t}(S);var N,P,_,q=new D,x=new R,Z=new U,H=function(){function n(){return!!p.vc.getConfig("coppa")}return{getCoppa:n,getConsentData:n,getConsentMeta:n,reset:function(){},get promise(){return v.Z.resolve(n())},get hash(){return n()?"1":"0"}}}(),M=(N={},P={},_={},{register:function(n,e,t){t&&((N[e]=N[e]||{})[n]=t,P.hasOwnProperty(e)?P[e]!==t&&(P[e]=_):P[e]=t)},get:function(n){var e={modules:N[n]||{}};return P.hasOwnProperty(n)&&P[n]!==_&&(e.gvlid=P[n]),e}}),F={gdpr:q,usp:x,gpp:Z,coppa:H};var L=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;function e(e){return function(){return Object.fromEntries(n.map((function(n){var t=(0,r.Z)(n,2);return[t[0],t[1][e]()]})))}}return n=Object.entries(n),Object.assign({get promise(){return v.Z.all(n.map((function(n){var e=(0,r.Z)(n,2),t=e[0];return e[1].promise.then((function(n){return[t,n]}))}))).then((function(n){return Object.fromEntries(n)}))},get hash(){return(0,g._R)(n.map((function(n){var e=(0,r.Z)(n,2);e[0];return e[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(n){return[n,e(n)]}))))}()},2200:function(n,e,t){t.d(e,{FP:function(){return a},FY:function(){return l},Gw:function(){return p},Q_:function(){return o},Ql:function(){return d},TD:function(){return s},UE:function(){return v},V1:function(){return h},X3:function(){return w},aI:function(){return c},f:function(){return i},k2:function(){return r},kF:function(){return f},oF:function(){return b},os:function(){return g},q_:function(){return u},s$:function(){return m},zA:function(){return y}});var r={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},i="pbjs_debug",o={GOOD:1},a={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError"},u={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},c={bidWon:"adUnitCode"},d={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},s={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},f={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host"},l={title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},g={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},v={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},p={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},h={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},m={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],w={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"}},6463:function(n,e,t){t.d(e,{D:function(){return f},t:function(){return g}});var r=t(4614),i=t(4358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},d={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},s={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(n);return isNaN(r)&&(r=""),{low:""===r?"":l(n,a,t),med:""===r?"":l(n,u,t),high:""===r?"":l(n,c,t),auto:""===r?"":l(n,s,t),dense:""===r?"":l(n,d,t),custom:""===r?"":l(n,e,t)}}function l(n,e,t){var a="";if(!g(e))return a;var u=e.buckets.reduce((function(n,e){return n.max>e.max?n:e}),{max:0}),c=0,d=(0,r.sE)(e.buckets,(function(e){if(n>u.max*t){var r=e.precision;void 0===r&&(r=2),a=(e.max*t).toFixed(r)}else{if(n<=e.max*t&&n>=c*t)return e.min=c,e;c=e.max}}));return d&&(a=function(n,e,t){var r=void 0!==e.precision?e.precision:2,a=e.increment*t,u=e.min*t,c=Math.floor,d=o.vc.getConfig("cpmRoundingFunction");"function"==typeof d&&(c=d);var s,f,l=Math.pow(10,r+2),g=(n*l-u*l)/(a*l);try{s=c(g)*a+u}catch(n){f=!0}(f||"number"!=typeof s)&&((0,i.yN)("Invalid rounding function passed in config"),s=Math.floor(g)*a+u);return(s=Number(s.toFixed(10))).toFixed(r)}(n,d,t)),a}function g(n){if((0,i.xb)(n)||!n.buckets||!Array.isArray(n.buckets))return!1;var e=!0;return n.buckets.forEach((function(n){n.max&&n.increment||(e=!1)})),e}},8099:function(n,e,t){t.d(e,{W:function(){return c},m:function(){return u}});var r,i=t(8792),o=t(4358),a=t(8304),u=(0,t(2797).z3)("sync",(function(n){return a._})),c=(r={},function(n){var e=u(n);return r.hasOwnProperty(e)||(r[e]=new i.Z((function(n){var t=(0,o.$u)();t.srcdoc="<script>".concat(e,"<\/script>"),t.onload=function(){return n(t.contentWindow.render)},document.body.appendChild(t)}))),r[e]})},2021:function(n,e,t){t.d(e,{S1:function(){return h},j8:function(){return b},on:function(){return p},vw:function(){return m}});var r=t(4358),i=t(2200),o=t(613),a=t(3193),u="eventHistoryTTL",c=null,d=(0,o.Z)({monotonic:!0,ttl:function(){return c}});a.vc.getConfig(u,(function(n){var e,t=c;n=null===(e=n)||void 0===e?void 0:e[u],t!==(c="number"==typeof n?1e3*n:null)&&d.refresh()}));var s=Array.prototype.slice,f=Array.prototype.push,l=Object.values(i.FP),g=i.aI,v=function(){var n={},e={};function t(e,t){r.ji("Emitting event for: "+e);var i=t[0]||{},o=i[g[e]],a=n[e]||{que:[]},u=Object.keys(a),c=[];d.add({eventType:e,args:i,id:o,elapsedTime:r.bd()}),o&&u.includes(o)&&f.apply(c,a[o].que),f.apply(c,a.que),(c||[]).forEach((function(n){if(n)try{n.apply(null,t)}catch(n){r.H("Error executing handler:","events.js",n,e)}}))}function i(n){return l.includes(n)}return e.has=i,e.on=function(e,t,o){if(i(e)){var a=n[e]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(t)):a.que.push(t),n[e]=a}else r.H("Wrong event name : "+e+" Valid event names :"+l)},e.emit=function(n){var e=s.call(arguments,1);t(n,e)},e.off=function(e,t,i){var o=n[e];r.xb(o)||r.xb(o.que)&&r.xb(o[i])||i&&(r.xb(o[i])||r.xb(o[i].que))||(i?(o[i].que||[]).forEach((function(n){var e=o[i].que;n===t&&e.splice(e.indexOf(n),1)})):(o.que||[]).forEach((function(n){var e=o.que;n===t&&e.splice(e.indexOf(n),1)})),n[e]=o)},e.get=function(){return n},e.addEvents=function(n){l=l.concat(n)},e.getEvents=function(){return d.toArray().map((function(n){return Object.assign({},n)}))},e}();r.u2(v.emit.bind(v));var p=v.on,h=v.off,m=(v.get,v.getEvents),b=v.emit;v.addEvents,v.has},4078:function(n,e,t){t.d(e,{S:function(){return C}});var r=t(885),i=t(2797),o=t(5102),a=t(8196),u=t(4358),c=t(6475),d=t(3193),s=t(8792),f=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],g=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(n=window.navigator)||void 0===n?void 0:n.userAgentData,t=e&&l.some((function(n){return void 0!==e[n]}))?Object.freeze(p(1,e)):null;return function(){return t}}(),v=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(n=window.navigator)||void 0===n?void 0:n.userAgentData,t={},r=new WeakMap;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if(!r.has(n)){var i=Array.from(n);i.sort(),r.set(n,i.join("|"))}var o=r.get(n);if(!t.hasOwnProperty(o))try{t[o]=e.getHighEntropyValues(n).then((function(n){return(0,u.xb)(n)?null:Object.freeze(p(2,n))})).catch((function(){return null}))}catch(n){t[o]=s.Z.resolve(null)}return t[o]}}();function p(n,e){function t(n,e){var t={brand:n};return(0,u.d8)(e)&&!(0,u.jH)(e)&&(t.version=e.split(".")),t}var r={source:n};return e.platform&&(r.platform=t(e.platform,e.platformVersion)),(e.fullVersionList||e.brands)&&(r.browsers=(e.fullVersionList||e.brands).map((function(n){return t(n.brand,n.version)}))),void 0!==e.mobile&&(r.mobile=e.mobile?1:0),["model","bitness","architecture"].forEach((function(n){var t=e[n];(0,u.d8)(t)&&(r[n]=t)})),r}var h=t(3790),m=t(571),b=t(286),y=t(4947),w=t(9633);function E(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var A={getRefererInfo:o.nH,findRootDomain:a.W,getWindowTop:u.Zy,getWindowSelf:u.e7,getHighEntropySUA:v,getLowEntropySUA:g},I=(0,h.A_)("FPD"),C=(0,i.z3)("sync",(function(n){var e,t=[n,(e=d.vc.getConfig("firstPartyData.uaHints"),Array.isArray(e)&&0!==e.length?A.getHighEntropySUA(e):s.Z.resolve(A.getLowEntropySUA())).catch((function(){return null})),s.Z.resolve("cookieDeprecationLabel"in navigator&&(0,m.xD)(y.S1,(0,b.T)(w.wu,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((function(){return null}))];return s.Z.all(t).then((function(n){var e=(0,r.Z)(n,3),t=e[0],i=e[1],o=e[2],a=A.getRefererInfo();if(function(n){["app","site","device"].forEach((function(e){var t=d.vc.getConfig(e);null!=t&&(n[e]=(0,u.Ee)({},t,n[e]))}))}(t),Object.entries(B).forEach((function(n){var e=(0,r.Z)(n,2),i=e[0],o=(0,e[1])(t,a);o&&Object.keys(o).length>0&&(t[i]=(0,u.Ee)({},o,t[i]))})),i&&(0,c.N)(t,"device.sua",Object.assign({},i,t.device.sua)),o){var s={cdep:o};(0,c.N)(t,"device.ext",Object.assign({},s,t.device.ext))}t=I(t);var f,l=E(h.Iq);try{for(l.s();!(f=l.n()).done;){var g=f.value;if((0,h.Qg)(t,g)){t[g]=(0,u.Ee)({},S(t,a),t[g]);break}}}catch(n){l.e(n)}finally{l.f()}return t}))}));function O(n){try{return n(A.getWindowTop())}catch(e){return n(A.getWindowSelf())}}function k(n){return(0,u.iG)(n,Object.keys(n))}var B={site:function(n,e){if(!h.Iq.filter((function(n){return"site"!==n})).some(h.Qg.bind(null,n)))return k({page:e.page,ref:e.ref})},device:function(){return O((function(n){var e,t={w:n.innerWidth||n.document.documentElement.clientWidth||n.document.body.clientWidth,h:n.innerHeight||n.document.documentElement.clientHeight||n.document.body.clientHeight,dnt:(0,u.oV)()?1:0,ua:n.navigator.userAgent,language:n.navigator.language.split("-").shift()};return null!==(e=n.navigator)&&void 0!==e&&e.webdriver&&(0,c.N)(t,"ext.webdriver",!0),t}))},regs:function(){var n={};O((function(n){return n.navigator.globalPrivacyControl}))&&(0,c.N)(n,"ext.gpc",1);var e=d.vc.getConfig("coppa");return"boolean"==typeof e&&(n.coppa=e?1:0),n}};function S(n,e){var t,r,i,a=(0,o.hh)(e.page,{noLeadingWww:!0});return k({domain:a,keywords:null===(t=O((function(n){return n.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(r=t.content)||void 0===r||null===(i=r.replace)||void 0===i?void 0:i.call(r,/\s/g,""),publisher:k({domain:A.findRootDomain(a)})})}},3790:function(n,e,t){t.d(e,{A_:function(){return o},Iq:function(){return i},Qg:function(){return a}});var r=t(4358),i=["dooh","app","site"];function o(n){return function(e){return i.reduce((function(t,i){return a(e,i)&&(null!=t?((0,r.yN)("".concat(n," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete e[i]):t=i),t}),null),e}}function a(n,e){return null!=n[e]&&Object.keys(n[e]).length>0}},8196:function(n,e,t){t.d(e,{W:function(){return o}});var r=t(4358),i=(0,t(5164).eA)("fpdEnrichment"),o=(0,r.HP)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return n;var e,t,o=n.split(".");if(2===o.length)return n;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{e=o.slice(a).join(".");var d=new Date((0,r.AB)()+1e4).toUTCString();i.setCookie(u,c,d,"Lax",e,void 0);var s=i.getCookie(u,void 0);s===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,e,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return e}))},2797:function(n,e,t){t.d(e,{Bx:function(){return g},Cd:function(){return d},IF:function(){return v},bA:function(){return l},v5:function(){return s},z3:function(){return u}});var r=t(2982),i=t(1432),o=t.n(i),a=t(8792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var n=u.ready;return function(){try{return n.apply(u,arguments)}finally{c.resolve()}}}();var d=c.promise,s=u.get;var f={};function l(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(n){return e.apply(void 0,(0,r.Z)(n))})),o&&(f[n]=e)}),n)([])}function g(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var i=f[n];if(i)return i.apply(void 0,t);s(n).before((function(n,e){e.push(t),n(e)}))}function v(n,e){return Object.defineProperties(e,Object.fromEntries(["before","after","getHooks","removeAll"].map((function(e){return[e,{get:function(){return n[e]}}]})))),e}},4679:function(n,e,t){t.d(e,{B5:function(){return r},Mk:function(){return o},Oh:function(){return a},pX:function(){return i}});var r="native",i="video",o="banner",a="adpod"},59:function(n,e,t){t.d(e,{Fb:function(){return B},JL:function(){return H},Sg:function(){return y},Ur:function(){return N},e6:function(){return D},eK:function(){return Z},kH:function(){return U},lY:function(){return z},r4:function(){return j},ub:function(){return O},xc:function(){return w}});var r=t(2982),i=t(885),o=t(4942),a=t(1002),u=t(265),c=t(4358),d=t(4614),s=t(1176),f=t(2200),l=t(4679),g=t(3667),v=t(8099);function p(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return h(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function h(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var y=[],w=Object.keys(f.FY).map((function(n){return f.FY[n]})),E={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},T=V(f.V1),A=V(f.s$),I={img:1,js:2,1:"img",2:"js"},C=1;function O(n){return n.native&&"object"===(0,a.Z)(n.native)}function k(n){if(n&&n.type&&function(n){if(!n||!(0,d.q9)(Object.keys(E),n))return(0,c.H)("".concat(n," nativeParam is not supported")),!1;return!0}(n.type)&&(n=E[n.type]),!n||!n.ortb||S(n.ortb))return n}function B(n){n.forEach((function(n){var e=n.nativeParams||(0,u.Z)(n,"mediaTypes.native");e&&(n.nativeParams=k(e)),n.nativeParams&&(n.nativeOrtbRequest=n.nativeParams.ortb||function(n){if(!n&&!(0,c.PO)(n))return void(0,c.H)("Native assets object is empty or not an object: ",n);var e={ver:"1.2",assets:[]};for(var t in n)if(!f.zA.includes(t))if(f.FY.hasOwnProperty(t))if("privacyLink"!==t){var r=n[t],i=0;r.required&&(0,c.jn)(r.required)&&(i=Number(r.required));var o={id:e.assets.length,required:i};if(t in f.V1)o.data={type:f.s$[f.V1[t]]},r.len&&(o.data.len=r.len);else if("icon"===t||"image"===t){if(o.img={type:"icon"===t?f.oF.ICON:f.oF.MAIN},r.aspect_ratios)if((0,c.kJ)(r.aspect_ratios))if(r.aspect_ratios.length){var a=r.aspect_ratios[0],u=a.min_width,d=a.min_height;(0,c.U)(u)&&(0,c.U)(d)?(o.img.wmin=u,o.img.hmin=d):(0,c.H)("image.aspect_ratios min_width or min_height are invalid: ",u,d);var s=r.aspect_ratios.filter((function(n){return n.ratio_width&&n.ratio_height})).map((function(n){return"".concat(n.ratio_width,":").concat(n.ratio_height)}));s.length>0&&(o.img.ext={aspectratios:s})}else(0,c.H)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,c.H)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,c.U)(r.sizes[0])&&(0,c.U)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,c.H)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);e.assets.push(o)}else e.privacy=1;else(0,c.H)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return e}(n.nativeParams))}))}function S(n){var e=n.assets;if(!Array.isArray(e)||0===e.length)return(0,c.H)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",e),!1;var t=e.map((function(n){return n.id}));return e.length!==new Set(t).size||t.some((function(n){return n!==parseInt(n,10)}))?((0,c.H)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):n.hasOwnProperty("eventtrackers")&&!Array.isArray(n.eventtrackers)?((0,c.H)("ortb.eventtrackers is not an array. Eventtrackers: ",n.eventtrackers),!1):e.every((function(n){return function(n){if(!(0,c.PO)(n))return(0,c.H)("asset must be an object. Provided asset: ",n),!1;if(n.img){if(!(0,c.hj)(n.img.w)&&!(0,c.hj)(n.img.wmin))return(0,c.H)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,c.hj)(n.img.h)&&!(0,c.hj)(n.img.hmin))return(0,c.H)("for img asset there must be 'h' or 'hmin' property"),!1}else if(n.title){if(!(0,c.hj)(n.title.len))return(0,c.H)("for title asset there must be 'len' property defined"),!1}else if(n.data){if(!(0,c.hj)(n.data.type))return(0,c.H)("for data asset 'type' property must be a number"),!1}else if(n.video&&!(Array.isArray(n.video.mimes)&&Array.isArray(n.video.protocols)&&(0,c.hj)(n.video.minduration)&&(0,c.hj)(n.video.maxduration)))return(0,c.H)("video asset is not properly configured"),!1;return!0}(n)}))}function j(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?s.K.index:r,o=i.getAdUnit(n);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(e=n.native)||void 0===e?void 0:e.ortb)||G(n.native,a);return R(u,a)}function R(n,e){if(!(0,u.Z)(n,"link.url"))return(0,c.H)("native response doesn't have 'link' property. Ortb response: ",n),!1;var t=e.assets.filter((function(n){return 1===n.required})).map((function(n){return n.id})),r=n.assets.map((function(n){return n.id})),i=t.every((function(n){return(0,d.q9)(r,n)}));return i||(0,c.H)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function D(n,e){var t=e.native.ortb||W(e.native);return"click"===n.action?function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?c.hq:t;if(e){var i,o=(n.assets||[]).filter((function(n){return n.link})).reduce((function(n,e){return n[e.id]=e.link,n}),{}),a=(null===(i=n.link)||void 0===i?void 0:i.clicktrackers)||[],u=o[e],d=a;u&&(d=u.clicktrackers||[]),d.forEach((function(n){return r(n)}))}else{var s;((null===(s=n.link)||void 0===s?void 0:s.clicktrackers)||[]).forEach((function(n){return r(n)}))}}(t,null==n?void 0:n.assetId):function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.runMarkup,r=void 0===t?function(n){return(0,c.$8)(n)}:t,i=e.fetchURL,o=void 0===i?c.hq:i,a=(n.eventtrackers||[]).filter((function(n){return n.event===C})).reduce((function(n,e){return I.hasOwnProperty(e.method)&&n[I[e.method]].push(e.url),n}),{img:[],js:[]}),u=a.img,d=a.js;n.imptrackers&&(u=u.concat(n.imptrackers));u.forEach((function(n){return o(n)})),d=d.map((function(n){return'<script async src="'.concat(n,'"><\/script>')})),n.jstracker&&(d=d.concat([n.jstracker]));d.length&&r(d.join("\n"))}(t),n.action}function U(n,e){var t,i=null==e?void 0:e.nativeOrtbRequest,o=null===(t=n.native)||void 0===t?void 0:t.ortb;if(i&&o){var a=function(n,e){var t={},i=(null==e?void 0:e.assets)||[];t.clickUrl=n.link.url,t.privacyLink=n.privacy;var o,a=p((null==n?void 0:n.assets)||[]);try{var u=function(){var n=o.value,e=i.find((function(e){return n.id===e.id}));n.title?t.title=n.title.text:n.img?t[e.img.type===f.oF.MAIN?"image":"icon"]={url:n.img.url,width:n.img.w,height:n.img.h}:n.data&&(t[T[A[e.data.type]]]=n.data.value)};for(a.s();!(o=a.n()).done;)u()}catch(n){a.e(n)}finally{a.f()}t.impressionTrackers=[];var c,d=[];n.imptrackers&&(c=t.impressionTrackers).push.apply(c,(0,r.Z)(n.imptrackers));var s,l=p((null==n?void 0:n.eventtrackers)||[]);try{for(l.s();!(s=l.n()).done;){var g=s.value;g.event===C&&g.method===I.img&&t.impressionTrackers.push(g.url),g.event===C&&g.method===I.js&&d.push(g.url)}}catch(n){l.e(n)}finally{l.f()}d=d.map((function(n){return'<script async src="'.concat(n,'"><\/script>')})),null!=n&&n.jstracker&&d.push(n.jstracker);d.length&&(t.javascriptTrackers=d.join("\n"));return t}(o,i);Object.assign(n.native,a)}["rendererUrl","adTemplate"].forEach((function(t){var r,i=null==e||null===(r=e.nativeParams)||void 0===r?void 0:r[t];i&&(n.native[t]=M(i))}))}function N(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.index,r=void 0===t?s.K.index:t,i={},o=r.getAdUnit(n),a=!1!==(0,u.Z)(o,"nativeParams.sendTargetingKeys"),c=F(o),d=b(b({},n.native),n.native.ext);return delete d.ext,Object.keys(d).forEach((function(e){var t=c[e],r=M(n.native[e])||M((0,u.Z)(n,"native.ext.".concat(e)));if("adTemplate"!==e&&t&&r){var d=(0,u.Z)(o,"nativeParams.".concat(e,".sendId"));if("boolean"!=typeof d&&(d=(0,u.Z)(o,"nativeParams.ext.".concat(e,".sendId"))),d)r="".concat(t,":").concat(n.adId);var s=(0,u.Z)(o,"nativeParams.".concat(e,".sendTargetingKeys"));"boolean"!=typeof s&&(s=(0,u.Z)(o,"nativeParams.ext.".concat(e,".sendTargetingKeys"))),("boolean"==typeof s?s:a)&&(i[t]=r)}})),i}function P(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return Object.entries(n).filter((function(n){var r=(0,i.Z)(n,2),o=r[0];return r[1]&&(!1===t&&"ext"===o||null==e||e.includes(o))})).forEach((function(n){var a=(0,i.Z)(n,2),u=a[0],c=a[1];!1===t&&"ext"===u?o.push.apply(o,(0,r.Z)(P(c,e,!0))):(t||f.FY.hasOwnProperty(u))&&o.push({key:u,value:M(c)})})),o}function _(n,e,t){var r,i,o=b(b({},(0,c.iG)(n.native,["rendererUrl","adTemplate"])),{},{assets:P(n.native,t),nativeKeys:f.FY});return n.native.ortb?o.ortb=n.native.ortb:null!==(r=e.mediaTypes)&&void 0!==r&&null!==(i=r.native)&&void 0!==i&&i.ortb&&(o.ortb=G(n.native,e.nativeOrtbRequest)),o}function q(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,o=void 0===i?s.K.index:i,a={message:"assetResponse",adId:n.adId},u=(0,g.Lj)(e).native;return u?(a.native=Object.assign({},u),a.renderer=(0,v.m)(e),null!=t&&(u.assets=u.assets.filter((function(n){var e=n.key;return t.includes(e)})))):u=_(e,o.getAdUnit(e),t),Object.assign(a,u)}var x=Object.fromEntries(Object.entries(f.FY).map((function(n){var e=(0,i.Z)(n,2),t=e[0];return[e[1],t]})));function Z(n,e){var t=n.assets.map((function(n){return x[n]}));return q(n,e,t)}function H(n,e){return q(n,e,null)}function M(n){return(null==n?void 0:n.url)||n}function F(n){var e={};return(0,u.Z)(n,"nativeParams.ext")&&Object.keys(n.nativeParams.ext).forEach((function(n){e[n]="hb_native_".concat(n)})),b(b({},f.FY),e)}function L(n){if(S(n)){var e,t={},r=p(n.assets);try{var i=function(){var r=e.value;if(r.title){var i={required:!!r.required&&Boolean(r.required),len:r.title.len};t.title=i}else if(r.img){var o={required:!!r.required&&Boolean(r.required)};if(r.img.w&&r.img.h)o.sizes=[r.img.w,r.img.h];else if(r.img.wmin&&r.img.hmin){var a=function(n,e){for(;n&&e&&n!==e;)n>e?n-=e:e-=n;return n||e}(r.img.wmin,r.img.hmin);o.aspect_ratios=[{min_width:r.img.wmin,min_height:r.img.hmin,ratio_width:r.img.wmin/a,ratio_height:r.img.hmin/a}]}r.img.type===f.oF.MAIN?t.image=o:t.icon=o}else if(r.data){var u=Object.keys(f.s$).find((function(n){return f.s$[n]===r.data.type})),c=Object.keys(f.V1).find((function(n){return f.V1[n]===u}));t[c]={required:!!r.required&&Boolean(r.required)},r.data.len&&(t[c].len=r.data.len)}n.privacy&&(t.privacyLink={required:!1})};for(r.s();!(e=r.n()).done;)i()}catch(n){r.e(n)}finally{r.f()}return t}}function z(n){if(!n||!(0,c.kJ)(n))return n;if(!n.some((function(n){var e;return null===(e=((null==n?void 0:n.mediaTypes)||{})[l.B5])||void 0===e?void 0:e.ortb})))return n;var e,t=(0,c.I8)(n),r=p(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.mediaTypes&&i.mediaTypes[l.B5]&&i.mediaTypes[l.B5].ortb&&(i.mediaTypes[l.B5]=Object.assign((0,c.ei)(i.mediaTypes[l.B5],f.zA),L(i.mediaTypes[l.B5].ortb)),i.nativeParams=k(i.mediaTypes[l.B5]))}}catch(n){r.e(n)}finally{r.f()}return t}function W(n){var e={link:{},eventtrackers:[]};return Object.entries(n).forEach((function(n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];switch(r){case"clickUrl":e.link.url=o;break;case"clickTrackers":e.link.clicktrackers=Array.isArray(o)?o:[o];break;case"impressionTrackers":(Array.isArray(o)?o:[o]).forEach((function(n){e.eventtrackers.push({event:C,method:I.img,url:n})}));break;case"javascriptTrackers":e.jstracker=Array.isArray(o)?o.join(""):o;break;case"privacyLink":e.privacy=o}})),e}function G(n,e){var t=b(b({},W(n)),{},{assets:[]});function r(n,r){var i=e.assets.find(n);null!=i&&(r(i=(0,c.I8)(i)),t.assets.push(i))}return Object.keys(n).filter((function(e){return!!n[e]})).forEach((function(e){var t=M(n[e]);switch(e){case"title":r((function(n){return null!=n.title}),(function(n){n.title={text:t}}));break;case"image":case"icon":var i="image"===e?f.oF.MAIN:f.oF.ICON;r((function(n){return null!=n.img&&n.img.type===i}),(function(n){n.img={url:t}}));break;default:e in f.V1&&r((function(n){return null!=n.data&&n.data.type===f.s$[f.V1[e]]}),(function(n){n.data={value:t}}))}})),t}function V(n){var e={};for(var t in n)e[n[t]]=t;return e}},6372:function(n,e,t){t.d(e,{DZ:function(){return a},Px:function(){return u},TP:function(){return d},YC:function(){return c},Z:function(){return o},f8:function(){return v},fP:function(){return p},gm:function(){return r},md:function(){return s}});var r=["request","imp","bidResponse","response"],i=["default","pbs"],o=r[0],a=r[1],u=r[2],c=r[3],d=i[0],s=i[1],f=new Set(r);var l,g=(l={},{registerOrtbProcessor:function(n){var e=n.type,t=n.name,i=n.fn,o=n.priority,a=void 0===o?0:o,u=n.dialects,c=void 0===u?[d]:u;if(!f.has(e))throw new Error("ORTB processor type must be one of: ".concat(r.join(", ")));c.forEach((function(n){l.hasOwnProperty(n)||(l[n]={}),l[n].hasOwnProperty(e)||(l[n][e]={}),l[n][e][t]={priority:a,fn:i}}))},getProcessors:function(n){return l[n]||{}}}),v=g.registerOrtbProcessor,p=g.getProcessors},4614:function(n,e,t){function r(n,e,t){return n&&n.includes(e,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(n,e,t){return n&&n.find(e,t)}t.d(e,{Oc:function(){return i},q9:function(){return r},sE:function(){return o}})},9262:function(n,e,t){var r,i=t(885),o=t(4942),a=t(8640),u=t(4358),c=t(265),d=t(6475),s=t(59),f=t(2200),l=t(4614),g=t(3667),v=t(8099);function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=f.X3.REQUEST,b=f.X3.RESPONSE,y=f.X3.NATIVE,w=f.X3.EVENT,E=(r={},(0,o.Z)(r,m,(function(n,e,t){(0,g.XD)({renderFn:function(e){n(Object.assign({message:b,renderer:(0,v.m)(t)},e))},resizeFn:A(e.adId,t),options:e.options,adId:e.adId,bidResponse:t})})),(0,o.Z)(r,w,(function(n,e,t){if(null==t)return void(0,u.H)("Cannot find ad '".concat(e.adId,"' for x-origin event request"));if(t.status!==f.UE.RENDERED)return void(0,u.yN)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));return(0,g.oc)(e,t)})),r);function T(){window.addEventListener("message",(function(n){!function(n){var e=n.message?"message":"data",t={};try{t=JSON.parse(n[e])}catch(n){return}if(t&&t.adId&&t.message&&E.hasOwnProperty(t.message))(0,g.YC)(t.adId,t.message===f.X3.REQUEST).then((function(e){var r,i;E[t.message]((r=t.adId,i=function(n){return null==n.origin&&0===n.ports.length?function(){var n="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,u.H)(n),new Error(n)}:n.ports.length>0?function(e){n.ports[0].postMessage(JSON.stringify(e))}:function(e){n.source.postMessage(JSON.stringify(e),n.origin)}}(n),function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return i.apply(void 0,[Object.assign({},n,{adId:r})].concat(t))}),t,e)}))}(n)}),!1)}function A(n,e){return function(t,r){!function(n){var e=n.adId,t=n.adUnitCode,r=n.width,i=n.height;function o(n){return n?n+"px":"100%"}function a(n){var r=c(e,t),i=document.getElementById(r);return i&&i.querySelector(n)}function c(n,e){return(0,u.T9)()?d(n):(0,u.X4)()?s(e):e}function d(n){var e=(0,l.sE)(window.googletag.pubads().getSlots(),(function(e){return(0,l.sE)(e.getTargetingKeys(),(function(t){return(0,l.q9)(e.getTargeting(t),n)}))}));return e?e.getSlotElementId():null}function s(n){var e=window.apntag.getTag(n);return e&&e.targetId}["div","iframe"].forEach((function(n){var e=a(n+':not([style*="display: none"])');if(e){var c=e.style;c.width=o(r),c.height=o(i)}else(0,u.yN)("Unable to locate matching page element for adUnitCode ".concat(t,".  Can't resize it to ad's dimensions.  Please review setup."))}))}(h(h({},e),{},{width:t,height:r,adId:n}))}}Object.assign(E,(0,o.Z)({},y,(function(n,e,t){if(null==t)return void(0,u.H)("Cannot find ad for x-origin event request: '".concat(e.adId,"'"));t.status!==f.UE.RENDERED&&(0,g.Ps)(t);switch(e.action){case"assetRequest":n((0,s.eK)(e,t));break;case"allAssetRequest":n((0,s.JL)(e,t));break;default:(0,g.E$)(e,t,{resizeFn:A(e.adId,t)})}})));var I=t(1974),C=t(3193),O=t(1176),k=t(2982),B=t(4679),S=t(2797),j=t(5975),R=t(1136),D=t(8833),U=[],N="targetingControls.allowTargetingKeys",P="targetingControls.addTargetingKeys",_='Only one of "'.concat(N,'" or "').concat(P,'" can be set'),q=Object.keys(f.TD).map((function(n){return f.TD[n]})),x={isActualBid:function(n){return n.getStatusCode()===f.Q_.GOOD},isBidNotExpired:function(n){return n.responseTimestamp+1e3*(0,D.N)(n)>(0,u.AB)()},isUnusedBid:function(n){return n&&(n.status&&!(0,l.q9)([f.UE.RENDERED],n.status)||!n.status)}};function Z(n){return!Object.values(x).some((function(e){return!e(n)}))}var H=(0,S.z3)("sync",(function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r){var i=[],o=C.vc.getConfig("sendBidsControl.dealPrioritization"),a=(0,u.vM)(n,"adUnitCode");return Object.keys(a).forEach((function(n){var r=[],c=(0,u.vM)(a[n],"bidderCode");Object.keys(c).forEach((function(n){return r.push(c[n].reduce(e))})),t>0?(r=o?r.sort(M(!0)):r.sort((function(n,e){return e.cpm-n.cpm})),i.push.apply(i,(0,k.Z)(r.slice(0,t)))):i.push.apply(i,(0,k.Z)(r))})),i}return n}));function M(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t){return void 0!==e.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===e.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:n?t.cpm-e.cpm:t.adserverTargeting.hb_pb-e.adserverTargeting.hb_pb}}function F(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return window.googletag.pubads().getSlots()};return t().reduce((function(n,t){var r=(0,u.LQ)(e)&&e(t);return Object.keys(n).filter((0,u.LQ)(r)?r:(0,u.zV)(t)).forEach((function(e){return n[e].push(t)})),n}),Object.fromEntries(n.map((function(n){return[n,[]]}))))}var L=function(n){var e={},t={};function r(n,e){return n.adserverTargeting&&e&&((0,u.kJ)(e)&&(0,l.q9)(e,n.adUnitCode)||"string"==typeof e&&n.adUnitCode===e)}function a(n,e){if(!0===C.vc.getConfig("targetingControls.alwaysIncludeDeals")){var t=q.concat(s.xc);return H(e,R.ZH).map((function(e){if(e.dealId&&r(e,n))return(0,o.Z)({},e.adUnitCode,I(e,t.filter((function(n){return void 0!==e.adserverTargeting[n]}))))})).filter((function(n){return n}))}return[]}function d(n,e){var t=Object.assign({},f.TD,f.FY),r=Object.keys(t),i={};(0,u.PN)("allowTargetingKeys - allowed keys [ ".concat(e.map((function(n){return t[n]})).join(", ")," ]")),n.map((function(n){var o=Object.keys(n)[0],a=n[o].filter((function(n){var o=Object.keys(n)[0],a=0===r.filter((function(n){return 0===o.indexOf(t[n])})).length||(0,l.sE)(e,(function(n){var e=t[n];return 0===o.indexOf(e)}));return i[o]=!a,a}));n[o]=a}));var o=Object.keys(i).filter((function(n){return i[n]}));return(0,u.PN)("allowTargetingKeys - removed keys [ ".concat(o.join(", ")," ]")),n.filter((function(n){return n[Object.keys(n)[0]].length>0}))}function g(n,e){var t=(0,u.I8)(n);return Object.keys(t).map((function(n){return{adUnitCode:n,adserverTargeting:t[n]}})).sort(M()).reduce((function(n,r,i,o){var a,c=(a=r.adserverTargeting,Object.keys(a).reduce((function(n,e){return n+"".concat(e,"%3d").concat(encodeURIComponent(a[e]),"%26")}),""));i+1===o.length&&(c=c.slice(0,-3));var d=r.adUnitCode,s=c.length;return s<=e?(e-=s,(0,u.PN)("AdUnit '".concat(d,"' auction keys comprised of ").concat(s," characters.  Deducted from running threshold; new limit is ").concat(e),t[d]),n[d]=t[d]):(0,u.yN)("The following keys for adUnitCode '".concat(d,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(s,", the current allotted amount was ").concat(e,".\n"),t[d]),i+1===o.length&&0===Object.keys(n).length&&(0,u.H)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),n}),{})}function v(n){var e=n.map((function(n){return(0,o.Z)({},Object.keys(n)[0],n[Object.keys(n)[0]].map((function(n){return(0,o.Z)({},Object.keys(n)[0],n[Object.keys(n)[0]].join(","))})).reduce((function(n,e){return Object.assign(e,n)}),{}))})).reduce((function(n,e){var t=Object.keys(e)[0];return n[t]=Object.assign({},n[t],e[t]),n}),{});return e}function p(e){return"string"==typeof e?[e]:(0,u.kJ)(e)?e:n.getAdUnitCodes()||[]}function h(){var e=n.getBidsReceived();if(C.vc.getConfig("useBidCache")){var r=C.vc.getConfig("bidCacheFilterFunction");"function"==typeof r&&(e=e.filter((function(n){return t[n.adUnitCode]===n.auctionId||!!r(n)})))}else e=e.filter((function(n){return t[n.adUnitCode]===n.auctionId}));return(e=e.filter((function(n){return(0,c.Z)(n,"video.context")!==B.Oh})).filter(Z)).forEach((function(n){return n.latestTargetedAuctionId=t[n.adUnitCode],n})),H(e,R.K$)}function m(n,t){var r=e.getWinningBids(n,t),i=b();return r=r.map((function(n){return(0,o.Z)({},n.adUnitCode,Object.keys(n.adserverTargeting).filter((function(e){return void 0===n.sendStandardTargeting||n.sendStandardTargeting||-1===i.indexOf(e)})).reduce((function(e,t){var r=[n.adserverTargeting[t]],i=(0,o.Z)({},t.substring(0,20),r);if(t===f.TD.DEAL){var a="".concat(t,"_").concat(n.bidderCode).substring(0,20),u=(0,o.Z)({},a,r);return[].concat((0,k.Z)(e),[i,u])}return[].concat((0,k.Z)(e),[i])}),[]))})),r}function b(){return n.getStandardBidderAdServerTargeting().map((function(n){return n.key})).concat(q).filter(u.tT)}function y(n,e,t,r){return Object.keys(e.adserverTargeting).filter(w()).forEach((function(t){n.length&&n.filter(function(n){return function(t){return t.adUnitCode===e.adUnitCode&&t.adserverTargeting[n]}}(t)).forEach(function(n){return function(t){(0,u.kJ)(t.adserverTargeting[n])||(t.adserverTargeting[n]=[t.adserverTargeting[n]]),t.adserverTargeting[n]=t.adserverTargeting[n].concat(e.adserverTargeting[n]).filter(u.tT),delete e.adserverTargeting[n]}}(t))})),n.push(e),n}function w(){var n=b();return n=n.concat(s.xc),function(e){return-1===n.indexOf(e)}}function E(n){return(0,o.Z)({},n.adUnitCode,Object.keys(n.adserverTargeting).filter(w()).map((function(e){return(0,o.Z)({},e.substring(0,20),[n.adserverTargeting[e]])})))}function T(n,e){return e.filter((function(e){return(0,l.q9)(n,e.adUnitCode)})).map((function(n){return Object.assign({},n)})).reduce(y,[]).map(E).filter((function(n){return n}))}function A(n,e){var t=q.concat(s.xc),i=C.vc.getConfig("sendBidsControl.bidLimit"),a=H(e,R.ZH,i),u=C.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),c=u?u.map((function(n){return f.TD[n]})):t;return a.map((function(e){if(r(e,n))return(0,o.Z)({},e.adUnitCode,I(e,t.filter((function(n){return void 0!==e.adserverTargeting[n]&&-1!==c.indexOf(n)}))))})).filter((function(n){return n}))}function I(n,e){return e.map((function(e){return(0,o.Z)({},"".concat(e,"_").concat(n.bidderCode).substring(0,20),[n.adserverTargeting[e]])}))}function O(e){function t(n){return(0,c.Z)(n,f.k2.ADSERVER_TARGETING)}return n.getAdUnits().filter((function(n){return(0,l.q9)(e,n.code)&&t(n)})).map((function(n){return(0,o.Z)({},n.code,function(n){var e=t(n);return Object.keys(e).map((function(n){return(0,u.d8)(e[n])&&(e[n]=e[n].split(",").map((function(n){return n.trim()}))),(0,u.kJ)(e[n])||(e[n]=[e[n]]),(0,o.Z)({},n,e[n])}))}(n))}))}return e.setLatestAuctionForAdUnit=function(n,e){t[n]=e},e.resetPresetTargeting=function(n,e){if((0,u.T9)()){var t=p(n),r=U.reduce((function(n,e){return n[e]=null,n}),{});Object.values(F(t,e)).forEach((function(n){n.forEach((function(n){return n.updateTargetingFromMap(r)}))}))}},e.resetPresetTargetingAST=function(n){p(n).forEach((function(n){var e=window.apntag.getTag(n);if(e&&e.keywords){var t=Object.keys(e.keywords),r={};t.forEach((function(n){(0,l.q9)(U,n.toLowerCase())||(r[n]=e.keywords[n])})),window.apntag.modifyTag(n,{keywords:r})}}))},e.getAllTargeting=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),t=p(n),r=m(t,e).concat(T(t,e)).concat(C.vc.getConfig("enableSendAllBids")?A(t,e):a(t,e)).concat(O(t));r.map((function(n){Object.keys(n).map((function(e){n[e].map((function(n){-1===U.indexOf(Object.keys(n)[0])&&(U=Object.keys(n).concat(U))}))}))}));var i=Object.keys(Object.assign({},f.kF,f.FY)),o=C.vc.getConfig(N),c=C.vc.getConfig(P);if(null!=c&&null!=o)throw new Error(_);o=null!=c?i.concat(c):o||i,Array.isArray(o)&&o.length>0&&(r=d(r,o)),r=v(r);var s=C.vc.getConfig("targetingControls.auctionKeyMaxChars");return s&&((0,u.PN)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(s," characters.  Running checks on auction keys...")),r=g(r,s)),t.forEach((function(n){r[n]||(r[n]={})})),r},C.vc.getConfig("targetingControls",(function(n){null!=(0,c.Z)(n,N)&&null!=(0,c.Z)(n,P)&&(0,u.H)(_)})),e.setTargetingForGPT=function(n,e){Object.entries(F(Object.keys(n),e)).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0];t[1].forEach((function(e){Object.keys(n[r]).forEach((function(e){var t=n[r][e];"string"==typeof t&&-1!==t.indexOf(",")&&(t=t.split(",")),n[r][e]=t})),(0,u.ji)("Attempting to set targeting-map for slot: ".concat(e.getSlotElementId()," with targeting-map:"),n[r]),e.updateTargetingFromMap(n[r])}))}))},e.getWinningBids=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),t=p(n);return e.filter((function(n){return(0,l.q9)(t,n.adUnitCode)})).filter((function(n){return!0===j.S.get(n.bidderCode,"allowZeroCpmBids")?n.cpm>=0:n.cpm>0})).map((function(n){return n.adUnitCode})).filter(u.tT).map((function(n){return e.filter((function(e){return e.adUnitCode===n?e:null})).reduce(R.ZH)}))},e.setTargetingForAst=function(n){var t=e.getAllTargeting(n);try{e.resetPresetTargetingAST(n)}catch(n){(0,u.H)("unable to reset targeting for AST"+n)}Object.keys(t).forEach((function(n){return Object.keys(t[n]).forEach((function(e){if((0,u.ji)("Attempting to set targeting for targetId: ".concat(n," key: ").concat(e," value: ").concat(t[n][e])),(0,u.d8)(t[n][e])||(0,u.kJ)(t[n][e])){var r={};e.search(/pt[0-9]/)<0?r[e.toUpperCase()]=t[n][e]:r[e]=t[n][e],window.apntag.setKeywords(n,r,{overrideKeyValue:!0})}}))}))},e.isApntagDefined=function(){if(window.apntag&&(0,u.LQ)(window.apntag.setKeywords))return!0},e}(O.K),z=t(9626),W=t(5730),G=t(8792),V="__pbjs_debugging__";function K(){return(0,a.R)().installedModules.includes("debugging")}function J(n){return new G.Z((function(e){(0,W.B)(n,"debugging",e)}))}function Q(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.alreadyInstalled,t=void 0===e?K:e,r=n.script,i=void 0===r?J:r,o=null;return function(){return null==o&&(o=new G.Z((function(n,e){setTimeout((function(){if(t())n();else{var r="https://cdn.jsdelivr.net/npm/prebid.js@8.52.2/dist/debugging-standalone.js";(0,u.ji)('Debugging module not installed, loading it from "'.concat(r,'"...')),(0,a.R)()._installDebugging=!0,i(r).then((function(){(0,a.R)()._installDebugging({DEBUG_KEY:V,hook:S.z3,config:C.vc,createBid:z.m,logger:(0,u.qp)("DEBUG:")})})).then(n,e)}}))}))),o}}var $=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.load,t=void 0===e?Q():e,r=n.hook,i=void 0===r?(0,S.v5)("requestBids"):r,o=null,a=!1;function u(n){for(var e=this,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(o||G.Z.resolve()).then((function(){return n.apply(e,r)}))}function c(){a||(o=t(),i.before(u,99),a=!0)}function d(){i.getHooks({hook:u}).remove(),a=!1}function s(){o=null,d()}return{enable:c,disable:d,reset:s}}();$.reset;C.vc.getConfig("debugging",(function(n){var e=n.debugging;null!=e&&e.enabled?$.enable():$.disable()}));var X=t(5164),Y=t(3304),nn=t(2021),en=t(9128),tn=t(4078),rn=t(4516),on=t(154),an=(0,a.R)(),un=I.k_.triggerUserSyncs,cn=f.FP.ADD_AD_UNITS,dn=f.FP.REQUEST_BIDS,sn=f.FP.SET_TARGETING,fn={bidWon:function(n){if(!O.K.getBidsRequested().map((function(n){return n.bids.map((function(n){return n.adUnitCode}))})).reduce(u.xH).filter(u.tT).includes(n))return void(0,u.H)('The "'+n+'" placement is not defined.');return!0}};function ln(n,e){var t=[];return(0,u.kJ)(n)&&(e?n.length===e:n.length>0)&&(n.every((function(n){return(0,u.HC)(n,2)}))?t=n:(0,u.HC)(n,2)&&t.push(n)),t}function gn(n){var e=(0,u.I8)(n),t=e.mediaTypes.banner,r=ln(t.sizes);return r.length>0?(t.sizes=r,e.sizes=r):((0,u.H)("Detected a mediaTypes.banner object without a proper sizes field.  Please ensure the sizes are listed like: [[300, 250], ...].  Removing invalid mediaTypes.banner object from request."),delete e.mediaTypes.banner),e}function vn(n){var e=(0,u.I8)(n),t=e.mediaTypes.video;if(t.playerSize){var r="number"==typeof t.playerSize[0]?2:1,i=ln(t.playerSize,r);i.length>0?(2===r&&(0,u.PN)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),t.playerSize=i,e.sizes=i):((0,u.H)("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete e.mediaTypes.video.playerSize)}return e}function pn(n){var e=(0,u.I8)(n),t=e.mediaTypes.native;if(t.ortb){var r=Object.keys(f.FY).filter((function(n){return f.FY[n].includes("hb_native_")})),i=Object.keys(t).filter((function(n){return r.includes(n)}));i.length>0&&((0,u.H)("when using native OpenRTB format, you cannot use legacy native properties. Deleting ".concat(i," keys from request.")),i.forEach((function(n){return delete e.mediaTypes.native[n]})))}return t.image&&t.image.sizes&&!Array.isArray(t.image.sizes)&&((0,u.H)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete e.mediaTypes.native.image.sizes),t.image&&t.image.aspect_ratios&&!Array.isArray(t.image.aspect_ratios)&&((0,u.H)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete e.mediaTypes.native.image.aspect_ratios),t.icon&&t.icon.sizes&&!Array.isArray(t.icon.sizes)&&((0,u.H)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete e.mediaTypes.native.icon.sizes),e}function hn(n,e){var t=(0,c.Z)(n,"mediaTypes.".concat(e,".pos"));if(!(0,u.hj)(t)||isNaN(t)||!isFinite(t)){var r="Value of property 'pos' on ad unit ".concat(n.code," should be of type: Number");(0,u.yN)(r),nn.j8(f.FP.AUCTION_DEBUG,{type:"WARNING",arguments:r}),delete n.mediaTypes[e].pos}return n}function mn(n){var e=function(e){return"adUnit.code '".concat(n.code,"' ").concat(e)},t=n.mediaTypes,r=n.bids;return null==r||(0,u.kJ)(r)?null==r&&null==n.ortb2Imp?((0,u.H)(e("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):t&&0!==Object.keys(t).length?(null==n.ortb2Imp||null!=r&&0!==r.length||(n.bids=[{bidder:null}],(0,u.ji)(e("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),n):((0,u.H)(e("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,u.H)(e("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}!function(){var n=null;try{n=window.sessionStorage}catch(n){}if(null!==n){var e=$,t=null;try{t=n.getItem(V)}catch(n){}null!==t&&e.enable()}}(),an.bidderSettings=an.bidderSettings||{},an.libLoaded=!0,an.version="v8.52.2",(0,u.PN)("Prebid.js v8.52.2 loaded"),an.installedModules=an.installedModules||[],an.adUnits=an.adUnits||[],an.triggerUserSyncs=un;var bn={validateAdUnit:mn,validateBannerMediaType:gn,validateSizes:ln};Object.assign(bn,{validateNativeMediaType:pn}),Object.assign(bn,{validateVideoMediaType:vn});var yn,wn=(0,S.z3)("sync",(function(n){var e=[];return n.forEach((function(n){if(null!=(n=mn(n))){var t,r,i,o=n.mediaTypes;o.banner&&(t=gn(n),o.banner.hasOwnProperty("pos")&&(t=hn(t,"banner"))),o.video&&(r=vn(t||n),o.video.hasOwnProperty("pos")&&(r=hn(r,"video"))),o.native&&(i=pn(r||(t||n)));var a=Object.assign({},t,r,i);e.push(a)}})),e}),"checkAdUnitSetup");function En(n){n.forEach((function(n){return(0,on.cx)(n)}))}function Tn(n){var e=O.K[n]().filter((function(n){return O.K.getAdUnitCodes().includes(n.adUnitCode)})),t=O.K.getLastAuctionId();return e.map((function(n){return n.adUnitCode})).filter(u.tT).map((function(n){return e.filter((function(e){return e.auctionId===t&&e.adUnitCode===n}))})).filter((function(n){return n&&n[0]&&n[0].adUnitCode})).map((function(n){return(0,o.Z)({},n[0].adUnitCode,{bids:n})})).reduce((function(n,e){return Object.assign(n,e)}),{})}an.getAdserverTargetingForAdUnitCodeStr=function(n){if((0,u.PN)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),n){var e=an.getAdserverTargetingForAdUnitCode(n);return(0,u.Ob)(e)}(0,u.ji)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},an.getHighestUnusedBidResponseForAdUnitCode=function(n){if(n){var e=O.K.getAllBidsForAdUnitCode(n).filter(Z);return e.length?e.reduce(R.ZH):{}}(0,u.ji)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},an.getAdserverTargetingForAdUnitCode=function(n){return an.getAdserverTargeting(n)[n]},an.getAdserverTargeting=function(n){return(0,u.PN)("Invoking pbjs.getAdserverTargeting",arguments),L.getAllTargeting(n)},an.getConsentMetadata=function(){return(0,u.PN)("Invoking pbjs.getConsentMetadata"),rn.NO.getConsentMeta()},an.getNoBids=function(){return(0,u.PN)("Invoking pbjs.getNoBids",arguments),Tn("getNoBids")},an.getNoBidsForAdUnitCode=function(n){return{bids:O.K.getNoBids().filter((function(e){return e.adUnitCode===n}))}},an.getBidResponses=function(){return(0,u.PN)("Invoking pbjs.getBidResponses",arguments),Tn("getBidsReceived")},an.getBidResponsesForAdUnitCode=function(n){return{bids:O.K.getBidsReceived().filter((function(e){return e.adUnitCode===n}))}},an.setTargetingForGPTAsync=function(n,e){if((0,u.PN)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,u.T9)()){var t=L.getAllTargeting(n);L.resetPresetTargeting(n,e),L.setTargetingForGPT(t,e),Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(e){"hb_adid"===e&&O.K.setStatusForBids(t[n][e],f.UE.BID_TARGETING_SET)}))})),nn.j8(sn,t)}else(0,u.H)("window.googletag is not defined on the page")},an.setTargetingForAst=function(n){(0,u.PN)("Invoking pbjs.setTargetingForAn",arguments),L.isApntagDefined()?(L.setTargetingForAst(n),nn.j8(sn,L.getAllTargeting())):(0,u.H)("window.apntag is not defined on the page")},an.renderAd=(0,S.z3)("async",(function(n,e,t){(0,u.PN)("Invoking pbjs.renderAd",arguments),(0,u.ji)("Calling renderAd with adId :"+e),(0,g.tV)(n,e,t)})),an.removeAdUnit=function(n){((0,u.PN)("Invoking pbjs.removeAdUnit",arguments),n)?((0,u.kJ)(n)?n:[n]).forEach((function(n){for(var e=an.adUnits.length-1;e>=0;e--)an.adUnits[e].code===n&&an.adUnits.splice(e,1)})):an.adUnits=[]},an.requestBids=(yn=(0,S.z3)("async",(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.bidsBackHandler,t=n.timeout,r=n.adUnits,o=n.adUnitCodes,a=n.labels,c=n.auctionId,d=n.ttlBuffer,s=n.ortb2,f=n.metrics,g=n.defer;nn.j8(dn);var v=t||C.vc.getConfig("bidderTimeout");(0,u.PN)("Invoking pbjs.requestBids",arguments),o&&o.length?r=r.filter((function(n){return(0,l.q9)(o,n.code)})):o=r&&r.map((function(n){return n.code}));var p={global:(0,u.Ee)({},C.vc.getAnyConfig("ortb2")||{},s||{}),bidder:Object.fromEntries(Object.entries(C.vc.getBidderConfig()).map((function(n){var e=(0,i.Z)(n,2);return[e[0],e[1].ortb2]})).filter((function(n){var e=(0,i.Z)(n,2);return e[0],null!=e[1]})))};return(0,tn.S)(G.Z.resolve(p.global)).then((function(n){return p.global=n,An({bidsBackHandler:e,timeout:v,adUnits:r,adUnitCodes:o,labels:a,auctionId:c,ttlBuffer:d,ortb2Fragments:p,metrics:f,defer:g})}))}),"requestBids"),(0,S.IF)(yn,(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.adUnits||an.adUnits;return n.adUnits=(0,u.kJ)(e)?e.slice():[e],n.metrics=(0,en.V6)(),n.metrics.checkpoint("requestBids"),n.defer=(0,G.P)({promiseFactory:function(n){return new Promise(n)}}),yn.call(this,n),n.defer.promise})));var An=(0,S.z3)("async",(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.bidsBackHandler,t=n.timeout,r=n.adUnits,i=n.ttlBuffer,o=n.adUnitCodes,a=n.labels,c=n.auctionId,s=n.ortb2Fragments,f=n.metrics,g=n.defer,v=(0,Y.uV)(C.vc.getConfig("s2sConfig")||[]);function p(n,t,r){if("function"==typeof e)try{e(n,t,r)}catch(n){(0,u.H)("Error executing bidsBackHandler",null,n)}g.resolve({bids:n,timedOut:t,auctionId:r})}En(r),r=(0,en.Bf)(f).measureTime("requestBids.validate",(function(){return wn(r)}));var h={};if(r.forEach((function(n){var e,t,r=Object.keys(n.mediaTypes||{banner:"banner"}),o=n.bids.map((function(n){return n.bidder})),a=Y.ZP.bidderRegistry,c=o.filter((function(n){return!v.has(n)}));n.adUnitId=(0,u.DO)();var d=null===(e=n.ortb2Imp)||void 0===e||null===(t=e.ext)||void 0===t?void 0:t.tid;d&&(h.hasOwnProperty(n.code)?(0,u.yN)("Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '".concat(n.code,"'")):h[n.code]=d),null==i||n.hasOwnProperty("ttlBuffer")||(n.ttlBuffer=i),c.forEach((function(e){var t=a[e],i=t&&t.getSpec&&t.getSpec(),o=i&&i.supportedMediaTypes||["banner"];r.some((function(n){return(0,l.q9)(o,n)}))||((0,u.yN)((0,u.or)(n,e)),n.bids=n.bids.filter((function(n){return n.bidder!==e})))}))})),r&&0!==r.length){r.forEach((function(n){var e,t,r=(null===(e=n.ortb2Imp)||void 0===e||null===(t=e.ext)||void 0===t?void 0:t.tid)||h[n.code]||(0,u.DO)();h.hasOwnProperty(n.code)||(h[n.code]=r),n.transactionId=r,(0,d.N)(n,"ortb2Imp.ext.tid",r)}));var m=O.K.createAuction({adUnits:r,adUnitCodes:o,callback:p,cbTimeout:t,labels:a,auctionId:c,ortb2Fragments:s,metrics:f}),b=r.length;b>15&&(0,u.PN)("Current auction ".concat(m.getAuctionId()," contains ").concat(b," adUnits."),r),o.forEach((function(n){return L.setLatestAuctionForAdUnit(n,m.getAuctionId())})),m.callBids()}else(0,u.ji)("No adUnits configured. No bids requested."),p()}),"startAuction");an.requestBids.before((function(n,e){function t(n){for(var e;e=n.shift();)e()}t(X.Ld),t(In),n.call(this,e)}),49),an.addAdUnits=function(n){(0,u.PN)("Invoking pbjs.addAdUnits",arguments),an.adUnits.push.apply(an.adUnits,(0,u.kJ)(n)?n:[n]),nn.j8(cn)},an.onEvent=function(n,e,t){(0,u.PN)("Invoking pbjs.onEvent",arguments),(0,u.LQ)(e)?!t||fn[n].call(null,t)?nn.on(n,e,t):(0,u.H)('The id provided is not valid for event "'+n+'" and no handler was set.'):(0,u.H)('The event handler provided is not a function and was not set on event "'+n+'".')},an.offEvent=function(n,e,t){(0,u.PN)("Invoking pbjs.offEvent",arguments),t&&!fn[n].call(null,t)||nn.S1(n,e,t)},an.getEvents=function(){return(0,u.PN)("Invoking pbjs.getEvents"),nn.vw()},an.registerBidAdapter=function(n,e){(0,u.PN)("Invoking pbjs.registerBidAdapter",arguments);try{Y.ZP.registerBidAdapter(n(),e)}catch(n){(0,u.H)("Error registering bidder adapter : "+n.message)}},an.registerAnalyticsAdapter=function(n){(0,u.PN)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{Y.ZP.registerAnalyticsAdapter(n)}catch(n){(0,u.H)("Error registering analytics adapter : "+n.message)}},an.createBid=function(n){return(0,u.PN)("Invoking pbjs.createBid",arguments),(0,z.m)(n)};var In=[],Cn=(0,S.z3)("async",(function(n){n&&!(0,u.xb)(n)?((0,u.PN)("Invoking pbjs.enableAnalytics for: ",n),Y.ZP.enableAnalytics(n)):(0,u.H)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");an.enableAnalytics=function(n){In.push(Cn.bind(this,n))},an.aliasBidder=function(n,e,t){(0,u.PN)("Invoking pbjs.aliasBidder",arguments),n&&e?Y.ZP.aliasBidAdapter(n,e,t):(0,u.H)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},an.aliasRegistry=Y.ZP.aliasRegistry,C.vc.getConfig("aliasRegistry",(function(n){"private"===n.aliasRegistry&&delete an.aliasRegistry})),an.getAllWinningBids=function(){return O.K.getAllWinningBids()},an.getAllPrebidWinningBids=function(){return O.K.getBidsReceived().filter((function(n){return n.status===f.UE.BID_TARGETING_SET}))},an.getHighestCpmBids=function(n){return L.getWinningBids(n)},an.markWinningBidAsUsed=function(n){var e=On(n,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");e.length>0&&O.K.addWinningBid(e[0])};var On=function(n,e){var t=[];return n.adUnitCode&&n.adId?t=O.K.getBidsReceived().filter((function(e){return e.adId===n.adId&&e.adUnitCode===n.adUnitCode})):n.adUnitCode?t=L.getWinningBids(n.adUnitCode):n.adId?t=O.K.getBidsReceived().filter((function(e){return e.adId===n.adId})):(0,u.yN)(e),t};function kn(n){n.forEach((function(n){if(void 0===n.called)try{n.call(),n.called=!0}catch(n){(0,u.H)("Error processing command :","prebid.js",n)}}))}an.getConfig=C.vc.getAnyConfig,an.readConfig=C.vc.readAnyConfig,an.mergeConfig=C.vc.mergeConfig,an.mergeBidderConfig=C.vc.mergeBidderConfig,an.setConfig=C.vc.setConfig,an.setBidderConfig=C.vc.setBidderConfig,an.que.push((function(){return T()})),an.cmd.push=function(n){if("function"==typeof n)try{n.call()}catch(n){(0,u.H)("Error processing command :",n.message,n.stack)}else(0,u.H)("Commands written into pbjs.cmd.push must be wrapped in a function")},an.que.push=an.cmd.push,an.processQueue=function(){S.z3.ready(),kn(an.que),kn(an.cmd)},an.triggerBilling=function(n){var e=On(n,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),t=e.find((function(e){return e.requestId===n.requestId}))||e[0];if(e.length>0&&t)try{Y.ZP.callBidBillableBidder(t)}catch(n){(0,u.H)("Error when triggering billing :",n)}else(0,u.yN)("The bid provided to triggerBilling did not match any bids received.")}},8640:function(n,e,t){t.d(e,{R:function(){return o},z:function(){return a}});var r=window,i=r.pbjs=r.pbjs||{};function o(){return i}function a(n){i.installedModules.push(n)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("pbjs"))},5102:function(n,e,t){t.d(e,{hh:function(){return a},nH:function(){return d}});var r=t(3193),i=t(4358);function o(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!n)return n;if(/\w+:\/\//.exec(n))return n;var t=e.location.protocol;try{t=e.top.location.protocol}catch(n){}return/^\/\//.exec(n)?t+n:"".concat(t,"//").concat(n)}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.noLeadingWww,r=void 0!==t&&t,i=e.noPort,a=void 0!==i&&i;try{n=new URL(o(n))}catch(n){return}return n=a?n.hostname:n.host,r&&n.startsWith("www.")&&(n=n.substring(4)),n}function u(n){try{var e=n.querySelector("link[rel='canonical']");if(null!==e)return e.href}catch(n){}return null}var c,d=function(n){var e,t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?n:function(){var o=u(i.document),a=i.location.href;return e===o&&a===t||(e=o,t=a,r=n()),r}}((c=window,function(){var n,e,t,d,s=[],f=function(n){try{if(!n.location.ancestorOrigins)return;return n.location.ancestorOrigins}catch(n){}}(c),l=r.vc.getConfig("maxNestedIframes"),g=!1,v=0,p=!1,h=!1,m=!1;do{var b=n,y=h,w=void 0,E=!1,T=null;h=!1,n=n?n.parent:c;try{w=n.location.href||null}catch(n){E=!0}if(E)if(y){var A=b.context;try{e=T=A.sourceUrl,m=!0,p=!0,n===c.top&&(g=!0),A.canonicalUrl&&(t=A.canonicalUrl)}catch(n){}}else{(0,i.yN)("Trying to access cross domain iframe. Continuing without referrer and location");try{var I=b.document.referrer;I&&(T=I,n===c.top&&(g=!0))}catch(n){}!T&&f&&f[v-1]&&(T=f[v-1],n===c.top&&(m=!0)),T&&!p&&(e=T)}else{if(w&&(e=T=w,p=!1,n===c.top)){g=!0;var C=u(n.document);C&&(t=C)}n.context&&n.context.sourceUrl&&(h=!0)}s.push(T),v++}while(n!==c.top&&v<l);s.reverse();try{d=c.top.document.referrer}catch(n){}var O=g||m?e:null,k=r.vc.getConfig("pageUrl")||t||null,B=r.vc.getConfig("pageUrl")||O||o(k,c);return O&&O.indexOf("?")>-1&&-1===B.indexOf("?")&&(B="".concat(B).concat(O.substring(O.indexOf("?")))),{reachedTop:g,isAmp:p,numIframes:v-1,stack:s,topmostLocation:e||null,location:O,canonicalUrl:k,page:B,domain:a(B)||null,ref:d||null,legacy:{reachedTop:g,isAmp:p,numIframes:v-1,stack:s,referer:e||null,canonicalUrl:k}}}))},5164:function(n,e,t){t.d(e,{Dp:function(){return g},Ld:function(){return p},c$:function(){return v},df:function(){return m},eA:function(){return b}});var r=t(4942),i=t(4358),o=t(5975),a=t(9633),u=t(571),c=t(6310),d=t(4947),s=t(3193),f=t(3304),l=t(286),g="html5",v="cookie",p=[];function h(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.moduleName,t=n.moduleType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=o.isAllowed,m=void 0===h?u.xD:h;function b(n,i){var o=e,u=s.vc.getCurrentBidder();return u&&t===a.UL&&f.ZP.aliasRegistry[u]===e&&(o=u),n({valid:m(d.S1,(0,l.T)(t,o,(0,r.Z)({},c.bL,i)))})}function y(n,e,t){if(!t||"function"!=typeof t)return b(n,e);p.push((function(){var r=b(n,e);t(r)}))}var w=function(n,e,t,r,i,o){return y((function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",u=t&&""!==t?" ;expires=".concat(t):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(n,"=").concat(encodeURIComponent(e)).concat(u,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}}),v,o)},E=function(n,e){return y((function(e){if(e&&e.valid){var t=window.document.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),v,e)},T=function(n){return y((function(n){if(n&&n.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(n){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(n){}}return!1}),g,n)},A=function(n){return y((function(n){return!(!n||!n.valid)&&(0,i.IG)()}),v,n)},I=function(n,e,t){return y((function(t){t&&t.valid&&k()&&window.localStorage.setItem(n,e)}),g,t)},C=function(n,e){return y((function(e){return e&&e.valid&&k()?window.localStorage.getItem(n):null}),g,e)},O=function(n,e){return y((function(e){e&&e.valid&&k()&&window.localStorage.removeItem(n)}),g,e)},k=function(n){return y((function(n){if(n&&n.valid)try{return!!window.localStorage}catch(n){(0,i.H)("Local storage api disabled")}return!1}),g,n)},B=function(n,e){return y((function(e){if(e&&e.valid){var t=[];if((0,i.wn)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(n)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}}),v,e)};return{setCookie:w,getCookie:E,localStorageIsEnabled:T,cookiesAreEnabled:A,setDataInLocalStorage:I,getDataFromLocalStorage:C,removeDataFromLocalStorage:O,hasLocalStorage:k,findSimilarCookies:B}}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.moduleType,t=n.moduleName,r=n.bidderCode;function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return r?((e&&e!==a.UL||t)&&i(),e=a.UL,t=r):t&&e||i(),h({moduleType:e,moduleName:t})}function b(n){return h({moduleName:n,moduleType:a.wu})}(0,u.oB)(d.S1,"deviceAccess config",(function(){if(!(0,i.wn)())return{allow:!1}})),(0,u.oB)(d.S1,"bidderSettings.*.storageAllowed",(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.S;if(n[c.$k]===a.UL){var t=e.get(n[c.Ki],"storageAllowed");if(t&&!0!==t){var r=n[c.bL];t=Array.isArray(t)?t.some((function(n){return n===r})):t===r}else t=!!t;return t?void 0:{allow:t}}}))},1974:function(n,e,t){t.d(e,{k_:function(){return p}});var r=t(4942),i=t(885),o=t(4358),a=t(3193),u=t(4614),c=t(5164),d=t(571),s=t(4947),f=t(6310),l=t(9633),g=t(286);a.vc.setDefaults({userSync:(0,o.I8)({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var v=(0,c.eA)("usersync");var p=function(n){var e={},t={image:[],iframe:[]},c=new Set,d={},v={image:!0,iframe:!1},p=n.config;function h(){if(p.syncEnabled&&n.browserSupportsCookies){try{!function(){if(!v.iframe)return;m(t.iframe,(function(n){var e=(0,i.Z)(n,2),r=e[0],a=e[1];(0,o.ji)("Invoking iframe user sync for bidder: ".concat(r)),(0,o.Vs)(a),function(n,e){n.image=n.image.filter((function(n){return n[0]!==e}))}(t,r)}))}(),function(){if(!v.image)return;m(t.image,(function(n){var e=(0,i.Z)(n,2),t=e[0],r=e[1];(0,o.ji)("Invoking image pixel user sync for bidder: ".concat(t)),(0,o.hq)(r)}))}()}catch(n){return(0,o.H)("Error firing user syncs",n)}t={image:[],iframe:[]}}}function m(n,e){(0,o.TV)(n).forEach(e)}function b(n,e){var t=p.filterSettings;if(function(n,e){if(n.all&&n[e])return(0,o.yN)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(e,'" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=n.all?n.all:n[e],r=n.all?"all":e;if(!t)return!1;var i=t.filter,a=t.bidders;if(i&&"include"!==i&&"exclude"!==i)return(0,o.yN)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every((function(n){return(0,o.d8)(n)&&"*"!==n}))))return(0,o.yN)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(t,n)){v[n]=!0;var r=t.all?t.all:t[n],i="*"===r.bidders?[e]:r.bidders,a={include:function(n,e){return!(0,u.q9)(n,e)},exclude:function(n,e){return(0,u.q9)(n,e)}};return a[r.filter||"include"](i,e)}return!v[n]}return a.vc.getConfig("userSync",(function(n){if(n.userSync){var e=n.userSync.filterSettings;(0,o.PO)(e)&&(e.image||e.all||(n.userSync.filterSettings.image={bidders:"*",filter:"include"}))}p=Object.assign(p,n.userSync)})),n.regRule(s.K$,"userSync config",(function(n){if(!p.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(n[f.$k]===l.UL){var t=n[f.cx],r=n[f.bp];if(!e.canBidderRegisterSync(t,r))return{allow:!1,reason:"".concat(t," syncs are not enabled for ").concat(r)}}})),e.registerSync=function(e,i,a){var u;return c.has(i)?(0,o.ji)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):p.syncEnabled&&(0,o.kJ)(t[e])?i?0!==p.syncsPerBidder&&Number(d[i])>=p.syncsPerBidder?(0,o.yN)('Number of user syncs exceeded for "'.concat(i,'"')):void(n.isAllowed(s.K$,(0,g.T)(l.UL,i,(u={},(0,r.Z)(u,f.cx,e),(0,r.Z)(u,f.IV,a),u)))&&(t[e].push([i,a]),d=function(n,e){return n[e]?n[e]+=1:n[e]=1,n}(d,i))):(0,o.yN)("Bidder is required for registering sync"):(0,o.yN)('User sync type "'.concat(e,'" not supported'))},e.bidderDone=c.add.bind(c),e.syncUsers=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(n)return setTimeout(h,Number(n));h()},e.triggerUserSyncs=function(){p.enableOverride&&e.syncUsers()},e.canBidderRegisterSync=function(n,e){return!p.filterSettings||!b(n,e)},e}(Object.defineProperties({config:a.vc.getConfig("userSync"),isAllowed:d.xD,regRule:d.oB},{browserSupportsCookies:{get:function(){return!(0,o.fr)()&&v.cookiesAreEnabled()}}}))},4358:function(n,e,t){t.d(e,{$8:function(){return gn},$u:function(){return J},AB:function(){return jn},D9:function(){return ee},DO:function(){return S},EE:function(){return C},Ee:function(){return $n},FS:function(){return qn},H:function(){return L},HC:function(){return Wn},HP:function(){return ne},I8:function(){return Cn},IG:function(){return Un},LQ:function(){return X},Li:function(){return hn},NA:function(){return wn},No:function(){return Bn},Ob:function(){return R},PN:function(){return M},PO:function(){return tn},Q2:function(){return Jn},R_:function(){return ln},Re:function(){return j},S0:function(){return xn},SG:function(){return pn},T9:function(){return Tn},TV:function(){return In},U:function(){return Ln},Uv:function(){return Hn},VL:function(){return P},VQ:function(){return D},Vs:function(){return vn},Vz:function(){return K},X4:function(){return An},Yp:function(){return Vn},Zy:function(){return q},_R:function(){return Xn},_d:function(){return B},ak:function(){return Q},bd:function(){return Rn},d8:function(){return Y},dj:function(){return Yn},e7:function(){return x},ei:function(){return zn},en:function(){return Kn},ew:function(){return Sn},fr:function(){return kn},hj:function(){return en},hq:function(){return fn},iG:function(){return _n},jC:function(){return dn},jH:function(){return an},ji:function(){return H},jn:function(){return rn},kJ:function(){return nn},oV:function(){return Zn},or:function(){return Fn},pP:function(){return En},qp:function(){return z},r3:function(){return cn},ry:function(){return te},sF:function(){return U},tT:function(){return mn},u2:function(){return E},vM:function(){return Pn},vZ:function(){return Qn},wn:function(){return Dn},xH:function(){return bn},xb:function(){return on},yL:function(){return On},yN:function(){return F},yi:function(){return un},yx:function(){return Nn},zE:function(){return yn},zV:function(){return Mn}});var r,i=t(2982),o=t(1002),a=t(4942),u=t(885),c=t(3193),d=t(8812),s=t(4614),f=t(2200),l=t(8792),g=t(8640),v=Object.prototype.toString,p=Boolean(window.console),h=Boolean(p&&window.console.log),m=Boolean(p&&window.console.info),b=Boolean(p&&window.console.warn),y=Boolean(p&&window.console.error),w=(0,g.R)();function E(n){r=n}function T(){null!=r&&r.apply(void 0,arguments)}var A={checkCookieSupport:Un,createTrackPixelIframeHtml:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n)return"";e&&(n=encodeURI(n));t&&(t='sandbox="'.concat(t,'"'));return"<iframe ".concat(t,' id="').concat(B(),'"\n      frameborder="0"\n      allowtransparency="true"\n      marginheight="0" marginwidth="0"\n      width="0" hspace="0" vspace="0" height="0"\n      style="height:0px;width:0px;display:none;"\n      scrolling="no"\n      src="').concat(n,'">\n    </iframe>')},getWindowSelf:x,getWindowTop:q,canAccessWindowTop:function(){try{if(A.getWindowTop().location.href)return!0}catch(n){return!1}},getWindowLocation:Z,insertUserSyncIframe:vn,insertElement:dn,isFn:X,triggerPixel:fn,logError:L,logWarn:F,logMessage:H,logInfo:M,parseQS:Gn,formatQS:Vn,deepEqual:Qn},I={};function C(){return I}var O,k=(O=0,function(){return++O});function B(){return k()+Math.random().toString(16).substr(2)}function S(n){return n?(n^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,S)}function j(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e+=t+"="+encodeURIComponent(n[t])+"&");return e=e.replace(/&$/,"")}function R(n){return n&&Object.getOwnPropertyNames(n).length>0?Object.keys(n).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))})).join("&"):""}function D(n){return"string"==typeof n?n.split(/\s*,\s*/).map((function(n){return n.match(/^(\d+)x(\d+)$/i)})).filter((function(n){return n})).map((function(n){var e=(0,u.Z)(n,3),t=(e[0],e[1]),r=e[2];return[parseInt(t,10),parseInt(r,10)]})):Array.isArray(n)?_(n)?[n]:n.filter(_):[]}function U(n){return D(n).map(N)}function N(n){return n[0]+"x"+n[1]}function P(n){return{w:n[0],h:n[1]}}function _(n){return nn(n)&&2===n.length&&!isNaN(n[0])&&!isNaN(n[1])}function q(){return window.top}function x(){return window.self}function Z(){return window.location}function H(){G()&&h&&console.log.apply(console,W(arguments,"MESSAGE:"))}function M(){G()&&m&&console.info.apply(console,W(arguments,"INFO:"))}function F(){G()&&b&&console.warn.apply(console,W(arguments,"WARNING:")),T(f.FP.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function L(){G()&&y&&console.error.apply(console,W(arguments,"ERROR:")),T(f.FP.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function z(n){function e(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.apply(void 0,[n].concat(r))}}return{logError:e(L),logWarn:e(F),logMessage:e(H),logInfo:e(M)}}function W(n,e){n=[].slice.call(n);var t=c.vc.getCurrentBidder();return e&&n.unshift(e),t&&n.unshift(r("#aaa")),n.unshift(r("#3b88c3")),n.unshift("%cPrebid"+(t?"%c".concat(t):"")),n;function r(n){return"display: inline-block; color: #fff; background: ".concat(n,"; padding: 1px 4px; border-radius: 3px;")}}function G(){return!!c.vc.getConfig("debug")}var V,K=(V={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"},function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.createElement("iframe");return Object.assign(r,Object.assign({},V,e)),Object.assign(r.style,t),r});function J(){return K(document,{id:B(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function Q(n){return Gn(Z().search)[n]||""}function $(n,e){return v.call(n)==="[object "+e+"]"}function X(n){return $(n,"Function")}function Y(n){return $(n,"String")}var nn=Array.isArray.bind(Array);function en(n){return $(n,"Number")}function tn(n){return $(n,"Object")}function rn(n){return $(n,"Boolean")}function on(n){return!n||(nn(n)||Y(n)?!(n.length>0):Object.keys(n).length<=0)}function an(n){return Y(n)&&(!n||0===n.length)}function un(n,e){var t=this;if(X(null==n?void 0:n.forEach))return n.forEach(e,this);Object.entries(n||{}).forEach((function(n){var r=(0,u.Z)(n,2),i=r[0],o=r[1];return e.call(t,o,i)}))}function cn(n,e){return X(null==n?void 0:n.includes)&&n.includes(e)}function dn(n,e,t,r){var i;e=e||document,i=t?e.getElementsByTagName(t):e.getElementsByTagName("head");try{if((i=i.length?i:e.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(n,o)}}catch(n){}}function sn(n,e){var t=null;return new l.Z((function(r){var i=function e(){n.removeEventListener("load",e),n.removeEventListener("error",e),null!=t&&window.clearTimeout(t),r()};n.addEventListener("load",i),n.addEventListener("error",i),null!=e&&(t=window.setTimeout(i,e))}))}function fn(n,e,t){var r=new Image;e&&A.isFn(e)&&sn(r,t).then(e),r.src=n}function ln(n){var e=n.source,t=n.burl;e===f.os.SRC&&t&&A.triggerPixel(t)}function gn(n){if(n){var e,t=J();A.insertElement(t,document,"body"),(e=t.contentWindow.document).open(),e.write(n),e.close()}}function vn(n,e,t){var r=A.createTrackPixelIframeHtml(n,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;e&&A.isFn(e)&&sn(o,t).then(e),A.insertElement(o,document,"html",!0)}function pn(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!n)return"";var t=e(n),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'}function hn(n){return Array.from(n.matchAll(/\$({[^}]+})/g)).map((function(n){return n[1]})).reduce((function(n,e){return n.replace("$"+encodeURIComponent(e),"$"+e)}),encodeURI(n))}function mn(n,e,t){return t.indexOf(n)===e}function bn(n,e){return n.concat(e)}function yn(n,e){if(n)return e.flatMap((function(n){return n.bids})).find((function(e){return["bidId","adId","bid_id"].some((function(t){return e[t]===n}))}))}function wn(n,e){return n[e]}function En(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.adUnits;return n.map((function(n){return n.bids.map((function(n){return n.bidder})).reduce(bn,[])})).reduce(bn,[]).filter((function(n){return void 0!==n})).filter(mn)}function Tn(){if(window.googletag&&X(window.googletag.pubads)&&X(window.googletag.pubads().getSlots))return!0}function An(){if(window.apntag&&X(window.apntag.getTag))return!0}function In(n){for(var e=n.length;e>0;){var t=Math.floor(Math.random()*e),r=n[--e];n[e]=n[t],n[t]=r}return n}function Cn(n){return(0,d.Y)(n)||{}}function On(){try{return A.getWindowSelf()!==A.getWindowTop()}catch(n){return!0}}function kn(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Bn(n,e){if(n)return Object.entries(e).reduce((function(n,e){var t=(0,u.Z)(e,2),r=t[0],i=t[1];return n.replace(new RegExp("\\$\\{"+r+"\\}","g"),i||"")}),n)}function Sn(n,e){return Bn(n,{AUCTION_PRICE:e})}function jn(){return(new Date).getTime()}function Rn(){return window.performance&&window.performance.now&&window.performance.now()||0}function Dn(){return!1!==c.vc.getConfig("deviceAccess")}function Un(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Nn(n,e){if(e<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(e));var t=0;return function(){++t===e&&n.apply(this,arguments)}}function Pn(n,e){return n.reduce((function(n,t){return(n[t[e]]=n[t[e]]||[]).push(t),n}),{})}function _n(n,e){return e.filter((function(e){return n[e]})).reduce((function(e,t){return Object.assign(e,(0,a.Z)({},t,n[t]))}),{})}function qn(n){var e=["banner","native","video"];return!!Object.keys(n).every((function(n){return(0,s.q9)(e,n)}))&&(!n.video||!n.video.context||(0,s.q9)(["instream","outstream","adpod"],n.video.context))}function xn(n,e,t){return n.filter((function(n){return n.code===e})).flatMap((function(n){return n.bids})).filter((function(n){return n.bidder===t})).map((function(n){return n.params||{}}))}function Zn(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var Hn=function(n,e){return n.getAdUnitPath()===e||n.getSlotElementId()===e};function Mn(n){return function(e){return Hn(n,e)}}function Fn(n,e){var t=Object.keys(n.mediaTypes||{banner:"banner"}).join(", ");return"\n    ".concat(n.code," is a ").concat(t," ad unit\n    containing bidders that don't support ").concat(t,": ").concat(e,".\n    This bidder won't fetch demand.\n  ")}var Ln=Number.isInteger.bind(Number);function zn(n,e){return"object"!==(0,o.Z)(n)?{}:e.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var u=n[r];return"function"==typeof e[i+1]&&(u=e[i+1](u,t)),void 0!==u&&(t[o]=u),t}),{})}function Wn(n,e){return nn(n)&&(!e||n.length===e)&&n.every((function(n){return Ln(n)}))}function Gn(n){return n?n.replace(/^\?/,"").split("&").reduce((function(n,e){var t=e.split("="),r=(0,u.Z)(t,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(n[i=i.replace("[]","")]=n[i]||[],n[i].push(o)):n[i]=o||"",n}),{}):{}}function Vn(n){return Object.keys(n).map((function(e){return Array.isArray(n[e])?n[e].map((function(n){return"".concat(e,"[]=").concat(n)})).join("&"):"".concat(e,"=").concat(n[e])})).join("&")}function Kn(n,e){var t=document.createElement("a");e&&"noDecodeWholeURL"in e&&e.noDecodeWholeURL?t.href=n:t.href=decodeURIComponent(n);var r=e&&"decodeSearchAsString"in e&&e.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:A.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function Jn(n){return(n.protocol||"http")+"://"+(n.host||n.hostname+(n.port?":".concat(n.port):""))+(n.pathname||"")+(n.search?"?".concat(A.formatQS(n.search||"")):"")+(n.hash?"#".concat(n.hash):"")}function Qn(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(n===e)return!0;if("object"!==(0,o.Z)(n)||null===n||"object"!==(0,o.Z)(e)||null===e||i&&n.constructor!==e.constructor)return!1;var a=Object.keys(n);if(a.length!==Object.keys(e).length)return!1;for(var u=0,c=a;u<c.length;u++){var d=c[u];if(!e.hasOwnProperty(d))return!1;if(!Qn(n[d],e[d],{checkTypes:i}))return!1}return!0}function $n(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(!t.length)return n;var o=t.shift();if(tn(n)&&tn(o)){var u=function(e){tn(o[e])?(n[e]||Object.assign(n,(0,a.Z)({},e,{})),$n(n[e],o[e])):nn(o[e])?n[e]?nn(n[e])&&o[e].forEach((function(t){for(var r=1,i=0;i<n[e].length;i++)if(Qn(n[e][i],t)){r=0;break}r&&n[e].push(t)})):Object.assign(n,(0,a.Z)({},e,(0,i.Z)(o[e]))):Object.assign(n,(0,a.Z)({},e,o[e]))};for(var c in o)u(c)}return $n.apply(void 0,[n].concat(t))}function Xn(n){for(var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(n,e){if(X(Math.imul))return Math.imul(n,e);var t=(4194303&n)*(e|=0);return 4290772992&n&&(t+=(4290772992&n)*e|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a<n.length;a++)i=r(i^(e=n.charCodeAt(a)),2654435761),o=r(o^e,1597334677);return i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function Yn(n){try{return JSON.parse(n)}catch(n){}}function ne(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return n},t=new Map,r=function(){var r=e.apply(this,arguments);return t.has(r)||t.set(r,n.apply(this,arguments)),t.get(r)};return r.clear=t.clear.bind(t),r}function ee(n,e){Object.entries(e).forEach((function(e){var t=(0,u.Z)(e,2),r=t[0],i=t[1];return n.setAttribute(r,i)}))}function te(n,e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(n){return n},r=0,i=n.length&&n.length-1,o=t(e);i-r>1;){var a=r+Math.round((i-r)/2);o>t(n[a])?r=a:i=a}for(;n.length>r&&o>t(n[r]);)r++;return r}},7673:function(n,e,t){t.d(e,{h:function(){return i}});var r=t(265);function i(n){return null==n||!n.gdprApplies||!0===(0,r.Z)(n,"vendorData.purpose.consents.1")}},9128:function(n,e,t){t.d(e,{Bf:function(){return h},V6:function(){return b},g3:function(){return w}});var r=t(885),i=t(3193);function o(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return u=n.done,n},e:function(n){c=!0,o=n},f:function(){try{u||null==t.return||t.return()}finally{if(c)throw o}}}}function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var u="performanceMetrics",c=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return Date.now()},d=new WeakMap;function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.now,t=void 0===e?c:e,r=n.mkNode,i=void 0===r?g:r,o=n.mkTimer,a=void 0===o?l:o,u=n.mkRenamer,s=void 0===u?function(n){return n}:u,f=n.nodes,v=void 0===f?d:f;return function(){return function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return{forEach:function(e){e(n)}}};function o(n){return function(t){return e.dfWalk({visit:function(e,r){var i=r[n];if(i.hasOwnProperty(t))return i[t]}})}}r=s(r);var u=o("timestamps");function c(n,t){var i=r(n);e.dfWalk({follow:function(n,e){return e.propagate&&(!n||!n.stopPropagation)},visit:function(n,e){i.forEach((function(r){null==n?e.metrics[r]=t:(e.groups.hasOwnProperty(r)||(e.groups[r]=[]),e.groups[r].push(t))}))}})}function d(n){e.timestamps[n]=t()}function f(n,e){var r=u(n),i=null!=r?t()-r:null;return null!=e&&c(e,i),i}function l(n,e,t){var r=u(n),i=u(e),o=null!=r&&null!=i?i-r:null;return null!=t&&c(t,o),o}function g(n){return a(t,(function(e){return c(n,e)}))}function p(n,e){return g(n).stopAfter(e)()}function h(n,e,t){var r=g(n);return t(function(n){var e=r.stopBefore(n);return e.bail=n.bail&&r.stopBefore(n.bail),e.stopTiming=r,e.untimed=n,e}(e))}function m(){var n={};return e.dfWalk({visit:function(e,t){n=Object.assign({},!e||e.includeGroups?t.groups:null,t.metrics,n)}}),n}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.propagate,a=void 0===o||o,u=t.stopPropagation,c=void 0!==u&&u,d=t.includeGroups,s=void 0!==d&&d;return n(i([[e,{propagate:a,stopPropagation:c,includeGroups:s}]]),r)}function y(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.propagate,i=void 0===r||r,o=t.stopPropagation,a=void 0!==o&&o,u=t.includeGroups,c=void 0!==u&&u,d=v.get(n);null!=d&&d.addParent(e,{propagate:i,stopPropagation:a,includeGroups:c})}function w(t){return n(e,t)}function E(){return n(e.newSibling(),r)}var T={startTiming:g,measureTime:p,measureHookTime:h,checkpoint:d,timeSince:f,timeBetween:l,setMetric:c,getMetrics:m,fork:b,join:y,newMetrics:E,renameWith:w,toJSON:function(){return m()}};return v.set(T,e),T}(i([]))}}function f(n,e,t){return function(){e&&e();try{return n.apply(this,arguments)}finally{t&&t()}}}function l(n,e){var t=n(),r=!1;function i(){r||(e(n()-t),r=!0)}return i.stopBefore=function(n){return f(n,i)},i.stopAfter=function(n){return f(n,null,i)},i}function g(n){return{metrics:{},timestamps:{},groups:{},addParent:function(e,t){n.push([e,t])},newSibling:function(){return g(n.slice())},dfWalk:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.visit,a=t.follow,u=void 0===a?function(){return!0}:a,c=t.visited,d=void 0===c?new Set:c,s=t.inEdge;if(!d.has(this)){if(d.add(this),null!=(e=i(s,this)))return e;var f,l=o(n);try{for(l.s();!(f=l.n()).done;){var g=(0,r.Z)(f.value,2),v=g[0],p=g[1];if(u(s,p)&&null!=(e=v.dfWalk({visit:i,follow:u,visited:d,inEdge:p})))return e}}catch(n){l.e(n)}finally{l.f()}}}}}var v=function(){var n=function(){},e=function(){return{}},t={forEach:n},r=function(){return null};r.stopBefore=function(n){return n},r.stopAfter=function(n){return n};var i=Object.defineProperties({dfWalk:n,newSibling:function(){return i},addParent:n},Object.fromEntries(["metrics","timestamps","groups"].map((function(n){return[n,{get:e}]}))));return s({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return t}},mkTimer:function(){return r},nodes:{get:n,set:n}})()}(),p=!0;function h(n){return p&&n||v}i.vc.getConfig(u,(function(n){p=!!n[u]}));var m,b=(m=s(),function(){return p?m():v});function y(n,e){return function(t,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];var c=this;return h(e.apply(c,a)).measureHookTime(n+t,i,(function(n){return r.call.apply(r,[c,n].concat(a))}))}}}var w=y("requestBids.",(function(n){return n.metrics}));y("addBidResponse.",(function(n,e){return e.metrics}))},8792:function(n,e,t){t.d(e,{P:function(){return h},Z:function(){return v}});var r=t(885),i=t(5671),o=t(3144),a=t(6033),u=t(3092);function c(n,e,t){!function(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n,e),e.set(n,t)}function d(n,e,t){return function(n,e){if(n!==e)throw new TypeError("Private static access of wrong provenance")}(n,e),t}var s=0,f=1,l=new WeakMap,g=new WeakMap,v=function(){function n(e){if((0,i.Z)(this,n),c(this,l,{writable:!0,value:void 0}),c(this,g,{writable:!0,value:void 0}),"function"!=typeof e)throw new Error("resolver not a function");var t=[],o=[],a=[s,f].map((function(n){return function(e){if(n===s&&"function"==typeof(null==e?void 0:e.then))e.then(v,p);else if(!t.length)for(t.push(n,e);o.length;)o.shift()()}})),d=(0,r.Z)(a,2),v=d[0],p=d[1];try{e(v,p)}catch(n){p(n)}(0,u.Z)(this,l,t),(0,u.Z)(this,g,o)}return(0,o.Z)(n,[{key:"then",value:function(n,e){var t=this,i=(0,a.Z)(this,l);return new this.constructor((function(o,u){var c=function(){var t=i[1],a=i[0]===s?[n,o]:[e,u],c=(0,r.Z)(a,2),d=c[0],f=c[1];if("function"==typeof d){try{t=d(t)}catch(n){return void u(n)}f=o}f(t)};i.length?c():(0,a.Z)(t,g).push(c)}))}},{key:"catch",value:function(n){return this.then(null,n)}},{key:"finally",value:function(n){var e,t=this;return this.then((function(t){return e=t,n()}),(function(r){return e=t.constructor.reject(r),n()})).then((function(){return e}))}}],[{key:"timeout",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new n((function(n){0===e?n():setTimeout(n,e)}))}},{key:"race",value:function(e){var t=this;return new this((function(r,i){d(t,n,p).call(t,e,(function(n,e){return n?r(e):i(e)}))}))}},{key:"all",value:function(e){var t=this;return new this((function(r,i){var o=[];d(t,n,p).call(t,e,(function(n,e,t){return n?o[t]=e:i(e)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(e){var t=this;return new this((function(r){var i=[];d(t,n,p).call(t,e,(function(n,e,t){return i[t]=n?{status:"fulfilled",value:e}:{status:"rejected",reason:e}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(n){return new this((function(e){return e(n)}))}},{key:"reject",value:function(n){return new this((function(e,t){return t(n)}))}}]),n}();function p(n,e,t){var r=this,i=n.length;function o(){e.apply(this,arguments),--i<=0&&t&&t()}0===n.length&&t?t():n.forEach((function(n,e){return r.resolve(n).then((function(n){return o(!0,n,e)}),(function(n){return o(!1,n,e)}))}))}function h(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.promiseFactory,i=void 0===r?function(n){return new v(n)}:r;function o(n){return function(e){return n(e)}}return{promise:i((function(t,r){n=t,e=r})),resolve:o(n),reject:o(e)}}},1136:function(n,e,t){function r(n,e){return n===e?0:n<e?-1:1}function i(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return n};return function(e,t){return r(n(e),n(t))}}function o(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(e,t){return-n(e,t)||0}}function a(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return function(n,t){for(var r=0,i=e;r<i.length;r++){var o=(0,i[r])(n,t);if(0!==o)return o}return 0}}function u(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(e,t){return n(t,e)<0?t:e}}function c(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return u(o(n))}t.d(e,{K$:function(){return l},LT:function(){return u},ZH:function(){return f},xI:function(){return i}});var d=i((function(n){return n.cpm})),s=i((function(n){return n.responseTimestamp})),f=c(a(d,o(i((function(n){return n.timeToRespond}))))),l=c(a(d,o(s)));c(a(d,s))},613:function(n,e,t){t.d(e,{Z:function(){return d}});var r=t(4942),i=t(885),o=t(8792),a=t(4358);function u(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"==typeof n)return c(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(n,e)}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},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,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function c(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function d(){var n,e,t,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=c.startTime,s=void 0===d?a.AB:d,f=c.ttl,l=void 0===f?function(){return null}:f,g=c.monotonic,v=void 0!==g&&g,p=c.slack,h=void 0===p?5e3:p,m=new Map,b=[],y=[],w=v?function(n){return y.push(n)}:function(n){return y.splice((0,a.ry)(y,n,(function(n){return n.expiry})),0,n)};function E(){if(t&&clearTimeout(t),y.length>0){var n=(0,a.AB)();e=Math.max(n,y[0].expiry+h),t=setTimeout((function(){for(var n=(0,a.AB)(),e=0,r=function(){var t=o[i];if(t.expiry>n)return"break";b.forEach((function(n){try{n(t.item)}catch(n){(0,a.H)(n)}})),m.delete(t.item),e++},i=0,o=y;i<o.length;i++){if("break"===r())break}y.splice(0,e),t=null,E()}),e-n)}else t=null}function T(n){var r,a={},u=A;var c=Object.entries({start:s,delta:l}).map((function(c){var d,s=(0,i.Z)(c,2),f=s[0],l=s[1];return function(){var i=d={};o.Z.resolve(l(n)).then((function(n){i===d&&(a[f]=n,u===A&&null!=a.start&&null!=a.delta&&(r=a.start+a.delta,w(v),(null==t||e>r+h)&&E()))}))}})),d=(0,i.Z)(c,2),f=d[0],g=d[1],v={item:n,refresh:g,get expiry(){return r}};return f(),g(),v}var A={};return n={},(0,r.Z)(n,Symbol.iterator,(function(){return m.keys()})),(0,r.Z)(n,"add",(function(n){!m.has(n)&&m.set(n,T(n))})),(0,r.Z)(n,"clear",(function(){y.length=0,E(),m.clear(),A={}})),(0,r.Z)(n,"toArray",(function(){return Array.from(m.keys())})),(0,r.Z)(n,"refresh",(function(){y.length=0,E();var n,e=u(m.values());try{for(e.s();!(n=e.n()).done;){n.value.refresh()}}catch(n){e.e(n)}finally{e.f()}})),(0,r.Z)(n,"onExpiry",(function(n){return b.push(n),function(){var e=b.indexOf(n);e>=0&&b.splice(e,1)}})),n}},154:function(n,e,t){t.d(e,{Dn:function(){return f},LD:function(){return d},cx:function(){return s},gZ:function(){return c}});var r=t(265),i=t(4358),o=t(3193),a=t(2797),u=t(1176),c="outstream",d="instream";function s(n){var e,t=null==n||null===(e=n.mediaTypes)||void 0===e?void 0:e.video;null!=t&&null==t.plcmt&&(t.context===c||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==c&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.index,i=void 0===t?u.K.index:t,o=(0,r.Z)(i.getMediaTypes(n),"video"),a=o&&(0,r.Z)(o,"context"),c=o&&(0,r.Z)(o,"useCacheKey"),d=i.getAdUnit(n);return l(n,d,o,a,c)}var l=(0,a.z3)("sync",(function(n,e,t,r,a){return t&&(a||r!==c)?o.vc.getConfig("cache.url")||!n.vastXml||n.vastUrl?!(!n.vastUrl&&!n.vastXml):((0,i.H)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),!1):!(r===c&&!a)||!!(n.renderer||e&&e.renderer||t.renderer)}),"checkVideoBidSetup")}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9270],{8304:function(n,s,d){d.d(s,{_:function(){return i}});var i='!function(){"use strict";window.render=function({ad:d,adUrl:i,width:n,height:e},{mkFrame:o},r){if(!d&&!i)throw{reason:"noAd",message:"Missing ad markup or URL"};{const t=r.document,s={width:n,height:e};i&&!d?s.src=i:s.srcdoc=d,t.body.appendChild(o(t,s))}}}();'}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9703],{75:function(n,t,u){u.d(t,{CS:function(){return o},ky:function(){return i}});var r=u(4614),e=u(4358);function o(n){return function(t){return(0,e.Uv)(t,n)}}function i(n){var t=function(n){var t;return(0,e.T9)()&&(t=(0,r.sE)(window.googletag.pubads().getSlots(),o(n))),t}(n);return t?{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()}:{}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3157],{676:function(n,r,t){t.d(r,{c:function(){return f}});var e=t(2982),u=t(3790),c=t(265),o=["user.keywords"].concat(u.Iq.flatMap((function(n){return["keywords","content.keywords"].map((function(r){return"".concat(n,".").concat(r)}))})));function a(){for(var n=new Set,r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter((function(n){return n})).flatMap((function(n){return Array.isArray(n)?n:n.split(",")})).map((function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")})).filter((function(n){return n})).forEach((function(r){return n.add(r)})),Array.from(n.keys())}function f(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return a.apply(void 0,(0,e.Z)(o.map((function(r){return(0,c.Z)(n,r)}))).concat(t))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2277],{9050:function(n,r,t){t.d(r,{Bq:function(){return h},bn:function(){return g},cM:function(){return l},gw:function(){return y}});var e=t(885),u=t(2982),o=t(4358),i=t(265),c=t(676),f=t(3790),a={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},s=["user.data"].concat(f.Iq.map((function(n){return"".concat(n,".content.data")})));function p(n,r,t){return null==r?t:(0,o.d8)(r)?r:(0,o.hj)(r)?r.toString():void(0,o.yN)("Unsuported type for param: "+n+" required type: String")}function h(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",t=[];return(0,o.yi)(n,(function(n,e){if((0,o.kJ)(n)){var u=[];(0,o.yi)(n,(function(n){((n=p(r+"."+e,n))||""===n)&&u.push(n)})),n=u}else{if(n=p(r+"."+e,n),!(0,o.d8)(n))return;n=[n]}n=n.filter((function(n){return""!==n}));var i={key:e};n.length>0&&(i.value=n),t.push(i)})),t}function l(n){return(0,o.d8)(n)&&""!==n?d(n.split(/\s*(?:,)\s*/)):{}}function d(n){var r={};return n.forEach((function(n){if(-1!==n.indexOf("=")){var t=n.split("="),e=t[0],u=t[1];r.hasOwnProperty(e)?r[e].push(u):r[e]=[u]}else r.hasOwnProperty(n)||(r[n]=[])})),r}function v(n){return d((0,c.c)(n))}function y(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return h(o.Ee.apply(void 0,(0,u.Z)(r.map((function(n){return Object.fromEntries(Object.entries(n||{}).map((function(n){var r=(0,e.Z)(n,2),t=r[0],u=r[1];return[t,(0,o.hj)(u)||(0,o.d8)(u)?[u]:u]})))})))))}function g(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return y.apply(void 0,[v(n),m(n)].concat(t))}function m(n){var r={};return s.forEach((function(t){((0,i.Z)(n,t)||[]).forEach((function(n){var t=a[(0,i.Z)(n,"ext.segtax")];t&&n.segment.forEach((function(n){r[t]?r[t].push(n.id):r[t]=[n.id]}))}))})),r}},7374:function(n,r,t){t.d(r,{G:function(){return u},h:function(){return o}});var e=t(4358);function u(n){return n.replace(/(?:^|\.?)([A-Z])/g,(function(n,r){return"_"+r.toLowerCase()})).replace(/^_/,"")}function o(n,r){for(var t=[],u=0;u<r;u++){var o=(0,e.PO)(n)?(0,e.I8)(n):n;t.push(o)}return t}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3402],{5370:function(n,e,u){u.d(e,{u:function(){return t}});var r=u(4358);function t(n,e){return Object.keys(n).forEach((function(u){var t,s;e[u]&&((0,r.LQ)(n[u])?e[u]=n[u](e[u]):e[u]=(t=n[u],s=e[u],"string"===t?s&&s.toString():"number"===t?Number(s):s),isNaN(e[u])&&delete e.key)})),e}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2284],{6296:function(n,u,e){function r(n,u){for(var e=[],r=0;r<Math.ceil(n.length/u);r++){var s=r*u,t=s+u;e.push(n.slice(s,t))}return e}e.d(u,{y:function(){return r}})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6190],{4292:function(A,B,I){I.d(B,{m:function(){return n}});var n={1:"IAB20-3",2:"IAB18-5",3:"IAB10-1",4:"IAB2-3",5:"IAB19-8",6:"IAB22-1",7:"IAB18-1",8:"IAB12-3",9:"IAB5-1",10:"IAB4-5",11:"IAB13-4",12:"IAB8-7",13:"IAB9-7",14:"IAB7-1",15:"IAB20-18",16:"IAB10-7",17:"IAB19-18",18:"IAB13-6",19:"IAB18-4",20:"IAB1-5",21:"IAB1-6",22:"IAB3-4",23:"IAB19-13",24:"IAB22-2",25:"IAB3-9",26:"IAB17-18",27:"IAB19-6",28:"IAB1-7",29:"IAB9-30",30:"IAB20-7",31:"IAB20-17",32:"IAB7-32",33:"IAB16-5",34:"IAB19-34",35:"IAB11-5",36:"IAB12-3",37:"IAB11-4",38:"IAB12-3",39:"IAB9-30",41:"IAB7-44",42:"IAB7-1",43:"IAB7-30",50:"IAB19-30",51:"IAB17-12",52:"IAB19-30",53:"IAB3-1",55:"IAB13-2",56:"IAB19-30",57:"IAB19-30",58:"IAB7-39",59:"IAB22-1",60:"IAB7-39",61:"IAB21-3",62:"IAB5-1",63:"IAB12-3",64:"IAB20-18",65:"IAB11-2",66:"IAB17-18",67:"IAB9-9",68:"IAB9-5",69:"IAB7-44",71:"IAB22-3",73:"IAB19-30",74:"IAB8-5",78:"IAB22-1",85:"IAB12-2",86:"IAB22-3",87:"IAB11-3",112:"IAB7-32",113:"IAB7-32",114:"IAB7-32",115:"IAB7-32",118:"IAB9-5",119:"IAB9-5",120:"IAB9-5",121:"IAB9-5",122:"IAB9-5",123:"IAB9-5",124:"IAB9-5",125:"IAB9-5",126:"IAB9-5",127:"IAB22-1",132:"IAB1-2",133:"IAB19-30",137:"IAB3-9",138:"IAB19-3",140:"IAB2-3",141:"IAB2-1",142:"IAB2-3",143:"IAB17-13",166:"IAB11-4",175:"IAB3-1",176:"IAB13-4",182:"IAB8-9",183:"IAB3-5"}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7968],{2712:function(n,t,r){r.d(t,{b6:function(){return p},kX:function(){return f},m1:function(){return s},sM:function(){return u}});var e=r(4942),a=r(885),c=r(2982),o=r(8792);function i(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function l(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,e.Z)(n,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}))}return n}var u=0,f=1,s=2;function p(n){var t=n.apiName,r=n.apiVersion,i=n.apiArgs,p=void 0===i?["command","callback","parameter","version"]:i,v=n.callbackArgs,b=void 0===v?["returnValue","success"]:v,d=n.mode,O=void 0===d?u:d,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,g={},m="".concat(t,"Call"),j="".concat(t,"Return");function k(n){var t,r="string"==typeof n.data&&n.data.includes(j)?JSON.parse(n.data):n.data;if(null!=r&&null!==(t=r[j])&&void 0!==t&&t.callId){var e=r[j];g.hasOwnProperty(e.callId)&&g[e.callId].apply(g,(0,c.Z)(b.map((function(n){return e[n]}))))}}function h(){for(var n,r=y,e=!1;null!=r;){try{if("function"==typeof r[t]){n=r,e=!0;break}}catch(n){}try{if(r.frames["".concat(t,"Locator")]){n=r;break}}catch(n){}if(r===y.top)break;r=r.parent}return[n,e]}var w,P=h(),Z=(0,a.Z)(P,2),D=Z[0],E=Z[1];if(D)return E?w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new o.Z((function(r,e){var o=D[t].apply(D,(0,c.Z)(I(l(l({},n),{},{callback:n.callback||O===s?S(n.callback,r,e):void 0})).map((function(n){var t=(0,a.Z)(n,2);t[0];return t[1]}))));(O===f||null==n.callback&&O===u)&&r(o)}))}:(y.addEventListener("message",k,!1),w=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new o.Z((function(r,c){var o=Math.random().toString(),i=(0,e.Z)({},m,l(l({},Object.fromEntries(I(n).filter((function(n){return"callback"!==(0,a.Z)(n,1)[0]})))),{},{callId:o}));g[o]=S(null==n?void 0:n.callback,r,c,(t||null==(null==n?void 0:n.callback))&&function(){delete g[o]}),D.postMessage(i,"*"),O===f&&r()}))}),Object.assign(w,{isDirect:E,close:function(){!E&&y.removeEventListener("message",k)}});function I(n){return n=Object.assign({version:r},n),p.map((function(t){return[t,n[t]]}))}function S(n,t,r,e){var a="function"==typeof n;return function(c,o){if(e&&e(),O!==f){var i=null==o||o?t:r;i(a?void 0:c)}a&&n.apply(this,arguments)}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5051],{7337:function(n,t,e){e.d(t,{Ji:function(){return C}});var r,i=e(885),o=e(4942),u=e(571),a=e(4947),c=e(4516),s=e(4358);function f(n){return null!=n&&0!==n}function l(n){return["MspaServiceProviderMode","Gpc"].some((function(t){return 1===n[t]}))||2===n.PersonalDataConsents||1===n.KnownChildSensitiveDataConsents[0]||f(n.KnownChildSensitiveDataConsents[1])||0===n.MspaCoveredTransaction}function v(n,t){return["SensitiveDataProcessingOptOutNotice","SensitiveDataLimitUseNotice"].some((function(e){return n[e]===t}))}function d(n){return l(n)||["Sale","Sharing","TargetedAdvertising"].some((function(t){var e=n["".concat(t,"OptOut")],r=n["".concat(t,"OptOutNotice")];return 1===e||2===r||2===e&&0===r}))||2===n.SharingNotice||2===n.SharingOptOut&&0===n.SharingNotice}var g,h,S,p=(g=[6,7,9,10,12].map((function(n){return--n})),h=Array.from(Array(12).keys()).filter((function(n){return 7!==n})),S=h.filter((function(n){return!g.includes(n)})),function(n){return d(n)||v(n,2)||g.some((function(t){return f(n.SensitiveDataProcessing[t])}))||S.some((function(t){return 1===n.SensitiveDataProcessing[t]}))||v(n,0)&&h.some((function(t){return 2===n.SensitiveDataProcessing[t]}))});var D=(r={},(0,o.Z)(r,a.K$,d),(0,o.Z)(r,a.EL,d),(0,o.Z)(r,a.S5,p),(0,o.Z)(r,a.g0,(function(n){var t=n.SensitiveDataProcessing[7];return 1===t||l(n)||v(n,2)||v(n,0)&&2===t})),r);function P(n,t,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){var n;return null===(n=c.TJ.getConsentData())||void 0===n?void 0:n.applicableSections};return function(){if(r().some((function(t){return n.includes(t)}))){var i=t();if(null==i)return{allow:!1,reason:"consent data not available"};if(e(i))return{allow:!1}}}}function m(n){return null==n?n:n.reduceRight((function(n,t){return Object.assign(t,n)}),{})}function C(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(n){return n},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:D,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.oB,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return c.TJ.getConsentData()},f=[],l="MSPA (GPP '".concat(n,"' for section").concat(t.length>1?"s":""," ").concat(t.join(", "),")");return(0,s.PN)("Enabling activity controls for ".concat(l)),Object.entries(r).forEach((function(r){var u=(0,i.Z)(r,2),c=u[0],s=u[1];f.push(o(c,l,P(t,(function(){var t,r;return e(m(null===(t=a())||void 0===t||null===(r=t.parsedSections)||void 0===r?void 0:r[n]))}),s,(function(){var n;return(null===(n=a())||void 0===n?void 0:n.applicableSections)||[]}))))})),function(){return f.forEach((function(n){return n()}))}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7292],{1138:function(u,n,t){t.d(n,{l:function(){return e}});var e={uid2:{source:"uidapi.com",atype:3,getValue:function(u){return u.id},getUidExt:function(u){if(u.ext)return u.ext}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5240],{3253:function(e,r,t){t.d(r,{u:function(){return u}});var n=t(4942);function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var u={tdid:{source:"adserver.org",atype:1,getValue:function(e){return e.id?e.id:e},getUidExt:function(e){return c(c({},{rtiPartner:"TDID"}),e.ext)}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4108],{6896:function(s,r,e){function i(s){if(s){var r=[];if(s.mediaTypes&&s.mediaTypes.banner&&Array.isArray(s.mediaTypes.banner.sizes)){var e=s.mediaTypes.banner.sizes;Array.isArray(e[0])?r=e:r.push(e)}else Array.isArray(s.sizes)&&(Array.isArray(s.sizes[0])?r=s.sizes:r.push(s.sizes));return r}}e.d(r,{p:function(){return i}})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5279],{919:function(e,r,t){t.d(r,{T:function(){return O},x:function(){return h}});var n=t(885),i=new WeakMap;function a(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.has(e)){var t=Object.entries(e);t.sort((function(e,r){return(e=e[1].priority||0)===(r=r[1].priority||0)?0:e>r?-1:1})),i.set(e,t.map((function(e){var r=(0,n.Z)(e,2);return[r[0],r[1].fn]})))}var a=i.get(e).filter((function(e){var t=(0,n.Z)(e,1)[0];return!r.hasOwnProperty(t)||r[t]})).map((function(e){var t=(0,n.Z)(e,2),i=t[0],a=t[1];return r.hasOwnProperty(i)?r[i].bind(this,a):a}));return function(){var e=this,r=Array.from(arguments);a.forEach((function(t){t.apply(e,r)}))}}var o=t(4358),s=t(4942),d=t(265),u=t(4679);var p=new Set(["pos","placement","plcmt","api","mimes","protocols","playbackmethod","minduration","maxduration","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","minbitrate","maxbitrate","delivery","playbackend"]),f={instream:1};var c=t(5840);var v,m=t(6372),l=t(3790),b=(v={},(0,s.Z)(v,m.Z,{fpd:{priority:99,fn:function(e,r){(0,o.Ee)(e,r.ortb2)}},onlyOneClient:{priority:-99,fn:(0,l.A_)("ORTB request")},props:{fn:function(e,r){Object.assign(e,{id:e.id||(0,o.DO)(),test:e.test||0});var t=parseInt(r.timeout,10);isNaN(t)||(e.tmax=t)}}}),(0,s.Z)(v,m.DZ,{fpd:{priority:99,fn:function(e,r){(0,o.Ee)(e,r.ortb2Imp)}},id:{fn:function(e,r){e.id=r.bidId}},banner:{fn:function(e,r,t){if(!t.mediaType||t.mediaType===u.Mk){var n=(0,d.Z)(r,"mediaTypes.banner");if(n){var i={topframe:!0===(0,o.yL)()?0:1};n.sizes&&(i.format=(0,o.VQ)(n.sizes).map(o.VL)),n.hasOwnProperty("pos")&&(i.pos=n.pos),e.banner=(0,o.Ee)(i,e.banner)}}}},pbadslot:{fn:function(e){var r,t,n,i,a=null===(r=e.ext)||void 0===r||null===(t=r.data)||void 0===t?void 0:t.pbadslot;a&&"string"==typeof a||(null===(n=e.ext)||void 0===n||(null===(i=n.data)||void 0===i||delete i.pbadslot))}}}),(0,s.Z)(v,m.Px,{mediaType:{priority:99,fn:c.R},banner:{fn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.createPixel,t=void 0===r?function(e){return(0,o.SG)(decodeURIComponent(e),o.Li)}:r;return function(e,r){e.mediaType===u.Mk&&(r.adm&&r.nurl?(e.ad=r.adm,e.ad+=t(r.nurl)):r.adm?e.ad=r.adm:r.nurl&&(e.adUrl=r.nurl))}}()},props:{fn:function(e,r,t){var i,a;Object.entries({requestId:null===(i=t.bidRequest)||void 0===i?void 0:i.bidId,seatBidId:r.id,cpm:r.price,currency:t.ortbResponse.cur||t.currency,width:r.w,height:r.h,dealId:r.dealid,creative_id:r.crid,creativeId:r.crid,burl:r.burl,ttl:r.exp||t.ttl,netRevenue:t.netRevenue}).filter((function(e){var r=(0,n.Z)(e,2);r[0];return void 0!==r[1]})).forEach((function(r){var t=(0,n.Z)(r,2),i=t[0],a=t[1];return e[i]=a})),e.meta||(e.meta={}),r.adomain&&(e.meta.advertiserDomains=r.adomain),null!==(a=r.ext)&&void 0!==a&&a.dsa&&(e.meta.dsa=r.ext.dsa)}}}),v);b[m.DZ].native={fn:function(e,r,t){if(!t.mediaType||t.mediaType===u.B5){var n,i=r.nativeOrtbRequest;i&&(null!==(n=(i=Object.assign({},t.nativeRequest,i)).assets)&&void 0!==n&&n.length?e.native=(0,o.Ee)({},{request:JSON.stringify(i),ver:i.ver},e.native):(0,o.yN)("mediaTypes.native is set, but no assets were specified. Native request skipped.",r))}}},b[m.Px].native={fn:function(e,r){if(e.mediaType===u.B5){var t;if(t="string"==typeof r.adm?JSON.parse(r.adm):r.adm,!(0,o.PO)(t)||!Array.isArray(t.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:t}}}},b[m.DZ].video={fn:function(e,r,t){if(!t.mediaType||t.mediaType===u.pX){var i=(0,d.Z)(r,"mediaTypes.video");if(!(0,o.xb)(i)){var a=Object.fromEntries(Object.entries(i).filter((function(e){var r=(0,n.Z)(e,1)[0];return p.has(r)})));if(i.playerSize){var s=(0,o.VQ)(i.playerSize).map(o.VL);s.length>1&&(0,o.yN)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(a,s[0])}var c=f[i.context];null!=c&&(a.placement=c),e.video=(0,o.Ee)(a,e.video)}}}},b[m.Px].video={fn:function(e,r,t){if(e.mediaType===u.pX){if((0,d.Z)(t.imp,"video.w")&&(0,d.Z)(t.imp,"video.h")){var n=[t.imp.video.w,t.imp.video.h];e.playerWidth=n[0],e.playerHeight=n[1]}r.adm&&(e.vastXml=r.adm),r.nurl&&(e.vastUrl=r.nurl)}}};var y=t(1283);function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.context,t=void 0===r?{}:r,n=e.processors,i=void 0===n?O:n,s=e.overrides,d=void 0===s?{}:s,u=e.imp,p=e.request,f=e.bidResponse,c=e.response,v=new WeakMap;function l(e,r,t,n){var o;return function(){return null==o&&(o=function(){var o=t.bind(this,a(i()[e]||{},d[e]||{}));return r&&(o=r.bind(this,o)),function(){try{return o.apply(this,arguments)}catch(e){n.call.apply(n,[this,e].concat(Array.prototype.slice.call(arguments)))}}}()),o.apply(this,arguments)}}var b=l(m.DZ,u,(function(e,r,t){var n={};return e(n,r,t),n}),(function(e,r,t){(0,o.H)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:r,context:t})})),y=l(m.Z,p,(function(e,r,t,n){var i={imp:r};return e(i,t,n),i}),(function(e,r,t,n){throw(0,o.H)("Error while converting to ORTB request",{error:e,imps:r,bidderRequest:t,context:n}),e})),h=l(m.Px,f,(function(e,r,t){var n={};return e(n,r,t),n}),(function(e,r,t){(0,o.H)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:r,context:t})})),R=l(m.YC,c,(function(e,r,t,n){var i={bids:r};return e(i,t,n),i}),(function(e,r,t,n){throw(0,o.H)("Error while converting from ORTB response",{error:e,bidResponses:r,ortbResponse:t,context:n}),e}));return{toORTB:function(e){var r=e.bidderRequest,n=e.bidRequests,i=e.context,a=void 0===i?{}:i;n=n||r.bids;var s={req:Object.assign({bidRequests:n},t,a),imp:{}};s.req.impContext=s.imp;var d=n.map((function(e){var n=Object.assign({bidderRequest:r,reqContext:s.req},t,a),i=b(e,n);if(null!=i){if(i.hasOwnProperty("id"))return Object.assign(n,{bidRequest:e,imp:i}),s.imp[i.id]=n,i;(0,o.H)("Converted ORTB imp does not specify an id, ignoring bid request",e,i)}})).filter(Boolean),u=y(d,r,s.req);return s.req.bidderRequest=r,null!=u&&v.set(u,s),u},fromORTB:function(e){var r=e.request,t=e.response,n=v.get(r);if(null==n)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:r},t,e)}var a=Object.fromEntries((r.imp||[]).map((function(e){return[e.id,e]}))),s=(t.seatbid||[]).flatMap((function(e){return(e.bid||[]).map((function(r){if(a.hasOwnProperty(r.impid)&&n.imp.hasOwnProperty(r.impid))return h(r,i(n.imp[r.impid],{imp:a[r.impid],seatbid:e,ortbResponse:t}));(0,o.H)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",r)}))})).filter(Boolean);return R(s,t,i(n.req))}}}var O=(0,o.HP)((function(){return(0,y.F)(b,(0,m.fP)(m.TP))}))},1283:function(e,r,t){t.d(r,{F:function(){return i}});var n=t(6372);function i(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=r.shift(),o=r.length>1?i.apply(void 0,r):r[0];return Object.fromEntries(n.gm.map((function(e){return[e,Object.assign({},a[e],o[e])]})))}},5840:function(e,r,t){t.d(r,{R:function(){return a},e:function(){return i}});var n=t(4679),i={1:n.Mk,2:n.pX,4:n.B5};function a(e,r,t){if(!e.mediaType){var n=t.mediaType;if(!n&&!i.hasOwnProperty(r.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=n||i[r.mtype]}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[951],{9933:function(e,i,d){d.d(i,{X:function(){return h}});var r=d(1283),t=d(4942),n=d(885),a=d(6372),o=d(265),s=d(4358),c=d(1021),b=d(3304),u=d(3193),v=d(6475);var p=d(9702);var f=d(8640);var l,g=d(4679);var m=(l={},(0,t.Z)(l,a.Z,{extPrebid:{fn:function(e,i){var d;(0,v.N)(e,"ext.prebid",(0,s.Ee)({auctiontimestamp:i.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},null===(d=e.ext)||void 0===d?void 0:d.prebid)),u.vc.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){var i,d;(0,v.N)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,f.R)().version},null===(i=e.ext)||void 0===i||null===(d=i.prebid)||void 0===d?void 0:d.channel))}},extPrebidAliases:{fn:function(e,i,d){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},t=r.am,n=void 0===t?b.ZP:t;if(n.aliasRegistry[i.bidderCode]){var a=n.bidderRegistry[i.bidderCode];if(!a||!a.getSpec().skipPbsAliasing){var o;(0,v.N)(e,"ext.prebid.aliases.".concat(i.bidderCode),n.aliasRegistry[i.bidderCode]);var s=u.vc.getConfig("gvlMapping.".concat(i.bidderCode))||(null==a||null===(o=a.getSpec)||void 0===o?void 0:o.call(a).gvlid);s&&(0,v.N)(e,"ext.prebid.aliasgvlids.".concat(i.bidderCode),s)}}}}}),(0,t.Z)(l,a.DZ,{params:{fn:p.j},adUnitCode:{fn:function(e,i){var d=i.adUnitCode;d&&(0,v.N)(e,"ext.prebid.adunitcode",d)}}}),(0,t.Z)(l,a.Px,{mediaType:{fn:c.P,priority:99},videoCache:{fn:function(e,i){if(e.mediaType===g.pX){var d=(0,o.Z)(i,"ext.prebid.cache.vastXml")||{},r=d.cacheId,t=d.url;if(!r||!t){var n=(0,o.Z)(i,"ext.prebid.targeting")||{},a=n.hb_uuid,s=n.hb_cache_host,c=n.hb_cache_path;a&&s&&c&&(r=a,t="https://".concat(s).concat(c,"?uuid=").concat(a))}r&&t&&Object.assign(e,{videoCacheKey:r,vastUrl:t})}},priority:-10},bidderCode:{fn:function(e,i,d){var r;e.bidderCode=d.seatbid.seat,e.adapterCode=(0,o.Z)(i,"ext.prebid.meta.adaptercode")||(null===(r=d.bidRequest)||void 0===r?void 0:r.bidder)||e.bidderCode}},pbsBidId:{fn:function(e,i){var d=(0,o.Z)(i,"ext.prebid.bidid");(0,s.d8)(d)&&(e.pbsBidId=d)}},adserverTargeting:{fn:function(e,i){var d=(0,o.Z)(i,"ext.prebid.targeting");(0,s.PO)(d)&&(e.adserverTargeting=d)}},extPrebidMeta:{fn:function(e,i){e.meta=(0,s.Ee)({},(0,o.Z)(i,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn:function(e,i){var d=(0,o.Z)(i,"ext.prebid.events.win");(0,s.d8)(d)&&(e.pbsWurl=d)}}}),(0,t.Z)(l,a.YC,{serverSideStats:{fn:function(e,i,d){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((function(e){var r=(0,n.Z)(e,2),t=r[0],a=r[1],s=(0,o.Z)(i,"ext.".concat(t,".").concat(d.bidderRequest.bidderCode));s&&(d.bidderRequest[a]=s,d.bidRequests.forEach((function(e){return e[a]=s})))}))}}}),l),x=d(919),h=(0,s.HP)((function(){return(0,r.F)((0,x.T)(),m,(0,a.fP)(a.md))}))},1021:function(e,i,d){d.d(i,{E:function(){return o},P:function(){return s}});var r,t=d(4942),n=d(4679),a=d(5840),o=(r={},(0,t.Z)(r,n.Mk,"banner"),(0,t.Z)(r,n.B5,"native"),(0,t.Z)(r,n.pX,"video"),r);function s(e,i,d){var r,t,s=d.mediaType;s||(s=a.e.hasOwnProperty(i.mtype)?a.e[i.mtype]:null===(r=i.ext)||void 0===r||null===(t=r.prebid)||void 0===t?void 0:t.type,o.hasOwnProperty(s)||(s=n.Mk));e.mediaType=s}},9702:function(e,i,d){d.d(i,{j:function(){return a}});var r=d(1176),t=d(3304),n=d(6475);function a(e,i,d){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.adUnit,s=a.bidderRequests,c=a.index,b=void 0===c?r.K.index:c,u=a.bidderRegistry,v=void 0===u?t.ZP.bidderRegistry:u,p=i.params,f=v[i.bidder];f&&f.getSpec().transformBidParams&&(o=o||b.getAdUnit(i),s=s||[d.bidderRequest],p=f.getSpec().transformBidParams(p,!0,o,s)),p&&(0,n.N)(e,"ext.prebid.bidder.".concat(i.bidder),p)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7635],{9957:function(n,r,t){t.d(r,{fe:function(){return c}});var u=t(8640),e=t(1136);function i(n,r,t){var e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(r===t)return n;var i=n;try{i=(0,u.R)().convertCurrency(n,r,t)}catch(n){if(!e)throw n}return i}function o(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;return function(u,e){return null==n&&(n=e),t(u,e,n,r)}}function c(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return[n.cpm,n.currency]},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o();return(0,e.xI)((function(t){return r.apply(null,n(t))}))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2075],{7172:function(n,r,e){e.d(r,{fC:function(){return p}});var t=e(885),i=e(571),o=e(4947),u=e(1087),c=e(1002),a=e(4358),f=e(265),l=e(6475);function v(n){var r={},e=[];n.forEach((function(n){n.wp&&e.push(n),n.get&&n.paths.forEach((function(e){var t=r;e.split(".").forEach((function(n){t.children=t.children||{},t.children[n]=t.children[n]||{},t=t.children[n]})),t.rule=n}))}));var t=(0,u.Db)(e);function i(n,r,e){return new Proxy(n,{get:function(n,t,o){var a=Reflect.get(n,t,o);if(r.hasOwnProperty(t)){var f=r[t],l=f.children,v=f.rule;if(l&&null!=a&&"object"===(0,c.Z)(a))return i(a,l,e);if(v&&(0,u.a)(a)&&e(v))return v.get(a)}return a}})}function o(n){return function(){n.forEach((function(n){return n()}))}}return function(n){for(var e={},c=arguments.length,a=new Array(c>1?c-1:0),f=1;f<c;f++)a[f-1]=arguments[f];return{obj:i(n,r.children||{},u.RD.apply(void 0,[e].concat(a))),verify:o(t.apply(void 0,[e,n].concat(a)))}}}function d(n){return Object.assign({wp:!0,run:function(n,r,e,t,i){var o=e&&e.hasOwnProperty(t),v=o?e[t]:void 0,d=o&&null!=v&&"object"===(0,c.Z)(v)?(0,a.I8)(v):v;return function(){var e=null==r?n:(0,f.Z)(n,r),c=e&&(0,u.a)(e[t]),h=c?e[t]:void 0;!o&&c&&i()?delete e[t]:o===c&&h===v&&(0,a.vZ)(h,d)||!i()||(0,l.N)(n,(null==r?[]:[r]).concat(t).join("."),d)}}},n)}function h(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.xD;return[{name:o.EL,paths:u.ZZ,applies:(0,u.js)(o.EL,n)},{name:o.S5,paths:u.$8,applies:(0,u.js)(o.S5,n)}].map(d)}var b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.xD;return v((0,u.Mp)(n).concat(h(n)))}();var p=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return function(r,e){r.global=r.global||{},r.bidder=r.bidder||{};var i=new Set(Object.keys(r.bidder)),o=[];function u(r){var t=n(r,e);return o.push(t.verify),t.obj}var c={global:u(r.global),bidder:Object.fromEntries(Object.entries(r.bidder).map((function(n){var r=(0,t.Z)(n,2);return[r[0],u(r[1])]})))};return{obj:c,verify:function(){Object.entries(c.bidder).filter((function(n){var r=(0,t.Z)(n,1)[0];return!i.has(r)})).forEach((function(i){var o=(0,t.Z)(i,2),u=o[0],c=o[1],f={},l=n(f,e);(0,a.Ee)(l.obj,c),l.verify(),r.bidder[u]=f})),o.forEach((function(n){return n()}))}}}}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[373],{7157:function(t,e,n){var r=n(4942),i=n(8640),o=n(4699),a=n(3193),s=n(265),u=n(4358),c=n(4679),p=n(75);function d(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f="33across",m=["33across_mgni"],g="https://ssc-cms.33across.com/ps/?m=xch&rt=html&ru=deb",h=/^[a-zA-Z0-9_-]{22}$/,v="siab",b="inview",y="instream",x=["mimes","minduration","maxduration","placement","plcmt","protocols","startdelay","skip","skipafter","minbitrate","maxbitrate","delivery","playbackmethod","api","linearity"],w={uniqueSiteIds:[]},S="nm";function I(t){return"".concat(t.params.siteId,":").concat(t.params.productId)}function C(t){return"".concat(t.bidId)}function O(t){var e,n=t.bidRequests,r=t.gdprConsent,i=void 0===r?{}:r,o=t.uspConsent,d=t.gppConsent,f=void 0===d?{}:d,m=t.pageUrl,g=t.referer,h=t.ttxSettings,v=t.bidderRequest,b={},w=n[0],I=w.params,C=I.siteId,O=I.test,j=a.vc.getConfig("coppa");b.imp=[],n.forEach((function(t){b.imp.push(function(t){var e=(0,s.Z)(t,"ortb2Imp.ext.gpid"),n={id:t.bidId,ext:l({ttx:{prod:(0,s.Z)(t,"params.productId")}},e?{gpid:e}:{})};(0,s.Z)(t,"mediaTypes.banner")&&(n.banner=l({},function(t){var e,n=(0,s.Z)(t,"mediaTypes.banner",{}),r=(o=t.adUnitCode,document.getElementById(o)||document.getElementById(function(t){if((0,u.T9)())for(var e=googletag.pubads().getSlots(),n=(0,p.CS)(t),r=0;r<e.length;r++)if(n(e[r])){var i=e[r].getSlotElementId();return(0,u.PN)("[33Across Adapter] Map ad unit path to HTML element id: '".concat(t,"' -> ").concat(i)),i}return(0,u.yN)("[33Across Adapter] Unable to locate element for ad unit code: '".concat(t,"'")),null}(o))),i=function(t){if((0,u.kJ)(t)&&2===t.length&&!(0,u.kJ)(t[0]))return[T(t)];return t.map(T)}(n.sizes);var o;e="function"==typeof t.getFloor?i.map((function(e){var n,r=E(t,e,c.Mk);return r&&(n={ext:{ttx:{bidfloors:[r]}}}),Object.assign({},e,n)})):i;var a=function(t){return t.reduce((function(t,e){return e.h*e.w<t.h*t.w?e:t}))}(i),d=function(t){return{ttx:{viewability:{amount:isNaN(t)?t:Math.round(t)}}}}(function(t){return!function(){try{return(0,u.e7)()!==(0,u.Zy)()}catch(t){return!0}}()&&null!==t}(r)?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.w,i=n.h;return"visible"===e.document.visibilityState?M(t,e,{w:r,h:i}):0}(r,(0,u.Zy)(),a):S);return{format:e,ext:d}}(t)));(0,s.Z)(t,"mediaTypes.video")&&(n.video=function(t){var e,n=(0,s.Z)(t,"mediaTypes.video",{}),r=(0,s.Z)(t,"params.video",{}),i=l(l({},n),r),o={},a=T(i.playerSize[0]),p=a.w,d=a.h;o.w=p,o.h=d,x.forEach((function(t){i.hasOwnProperty(t)&&(o[t]=i[t])}));var f=R(t),m=function(){var t=2;return o.placement?((0,u.yN)("[33Across Adapter] The ORTB field `placement` is deprecated, please use `plcmt` instead"),o.placement):t};null!==(e=o.plcmt)&&void 0!==e||(o.plcmt=m()),f===y&&(o.startdelay=o.startdelay||0,o.plcmt=1,o.placement&&(o.placement=1));if("function"==typeof t.getFloor){var g=E(t,{w:o.w,h:o.h},c.pX);g&&Object.assign(o,{ext:{ttx:{bidfloors:[g]}}})}return o}(t));return n}(t))})),b.site={id:C},b.device=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,u.e7)(),n={ext:{ttx:l(l({},z()),{},{pxr:e.devicePixelRatio,vp:k(),ah:e.screen.availHeight,mtp:e.navigator.maxTouchPoints})}};t.sua&&(n.sua=(0,u.ei)(t.sua,["browsers","platform","model","mobile"]));return n}(null===(e=w.ortb2)||void 0===e?void 0:e.device),m&&(b.site.page=m),g&&(b.site.ref=g),b.id=null==v?void 0:v.bidderRequestId,i.consentString&&(b.user=A(b.user,{consent:i.consentString})),Array.isArray(w.userIdAsEids)&&w.userIdAsEids.length>0&&(b.user=A(b.user,{eids:w.userIdAsEids})),b.regs=A(b.regs,{gdpr:Number(i.gdprApplies)}),o&&(b.regs=A(b.regs,{us_privacy:o})),f.gppString&&Object.assign(b.regs,{gpp:f.gppString,gpp_sid:f.applicableSections}),void 0!==j&&(b.regs.coppa=Number(!!j)),b.ext={ttx:{prebidStartedAt:Date.now(),caller:[{name:"prebidjs",version:"8.52.2"}]}},w.schain&&(b.source=A(b.source,{schain:w.schain})),1===O&&(b.test=1);return{method:"POST",url:h&&h.url||"".concat("https://ssc.33across.com/api/v1/hb","?guid=").concat(C),data:JSON.stringify(b),options:{contentType:"text/plain",withCredentials:!0}}}function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return(0,u.Ee)({},t,{ext:e})}function T(t){return{w:parseInt(t[0],10),h:parseInt(t[1],10)}}function j(t){return(0,u.Ee)({},t,{params:{productId:R(t)}})}function R(t){var e=t.params,n=t.mediaTypes,r=n.banner,i=n.video;return i&&!r&&"instream"===i.context?y:e.productId===b?e.productId:v}function E(t,e,n){var r=t.getFloor({currency:"USD",mediaType:n,size:[e.w,e.h]});if(!isNaN(r.floor)&&"USD"===r.currency)return r.floor}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.w,r=e.h,i=t.getBoundingClientRect(),o=i.width,a=i.height,s=i.left,u=i.top,c=i.right,p=i.bottom;return(0===o||0===a)&&n&&r&&(o=n,a=r,c=s+n,p=u+r),{width:o,height:a,left:s,top:u,right:c,bottom:p}}function Z(t){for(var e={left:t[0].left,right:t[0].right,top:t[0].top,bottom:t[0].bottom},n=1;n<t.length;++n){if(e.left=Math.max(e.left,t[n].left),e.right=Math.min(e.right,t[n].right),e.left>=e.right)return null;if(e.top=Math.max(e.top,t[n].top),e.bottom=Math.min(e.bottom,t[n].bottom),e.top>=e.bottom)return null}return e.width=e.right-e.left,e.height=e.bottom-e.top,e}function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.w,i=n.h,o=U(t,{w:r,h:i}),a=Z([{left:0,top:0,right:e.innerWidth,bottom:e.innerHeight},o]);return null!==a?a.width*a.height/(o.width*o.height)*100:0}function k(){var t=function(){var t=(0,u.e7)();try{for(;t.parent!==t&&t.parent.document;)t=t.parent}catch(t){}return t}().document.documentElement;return{w:t.clientWidth,h:t.clientHeight}}function z(){var t=(0,u.e7)(),e=t.innerWidth,n=t.innerHeight,r=t.screen,i=[Math.max(r.width,r.height),Math.min(r.width,r.height)],o=i[0],a=i[1];return n>e?{w:a,h:o}:{w:o,h:a}}var N={NON_MEASURABLE:S,code:f,aliases:m,supportedMediaTypes:[c.Mk,c.pX],gvlid:58,isBidRequestValid:function(t){return function(t){if(t.bidder!==f&&!m.includes(t.bidder)||!t.params)return!1;if(!function(t){if(null===((0,s.Z)(t,"params.siteId","")||"").trim().match(h))return!1;return!0}(t))return!1;return!0}(t)&&function(t){var e=(0,s.Z)(t,"mediaTypes.banner");if(void 0===e)return!0;if(!Array.isArray(e.sizes))return!1;return!0}(t)&&function(t){var e=(0,s.Z)(t,"mediaTypes.video"),n=(0,s.Z)(t,"params.video",{});if(void 0===e)return!0;if(!Array.isArray(e.playerSize))return!1;if(!e.context)return!1;var r=l(l({},e),n);if(!Array.isArray(r.mimes)||0===r.mimes.length)return!1;if(!Array.isArray(r.protocols)||0===r.protocols.length)return!1;if([r.placement,r.plcmt].some((function(t){return void 0!==t&&"number"!=typeof t})))return!1;if("instream"===e.context&&void 0!==r.startdelay&&"number"!=typeof r.startdelay)return!1;return!0}(t)},buildRequests:function(t,e){var n=function(t,e){var n,r,i=Object.assign({},a.vc.getConfig("ttxSettings")),o=Object.assign({consentString:void 0,gdprApplies:!1},e&&e.gdprConsent);return w.uniqueSiteIds=t.map((function(t){return t.params.siteId})).filter(u.tT),{ttxSettings:i,gdprConsent:o,uspConsent:null==e?void 0:e.uspConsent,gppConsent:null==e?void 0:e.gppConsent,pageUrl:null==e||null===(n=e.refererInfo)||void 0===n?void 0:n.page,referer:null==e||null===(r=e.refererInfo)||void 0===r?void 0:r.ref}}(t,e),r=n.ttxSettings,i=n.gdprConsent,o=n.uspConsent,s=n.gppConsent,c=n.pageUrl,p=n.referer,d=function(t,e){var n=e.map(j),r=t&&t.enableSRAMode;return function(t,e){var n={};return t.forEach((function(t){var r=e(t);n[r]=n[r]||[],n[r].push(t)})),n}(n,!0===r?I:C)}(r,t),l=[];for(var f in d)l.push(O({bidRequests:d[f],gdprConsent:i,uspConsent:o,gppConsent:s,pageUrl:c,referer:p,ttxSettings:r,bidderRequest:e}));return l},interpretResponse:function(t,e){var n=t.body,r=n.seatbid,i=n.cur,o=void 0===i?"USD":i;return(0,u.kJ)(r)?r.filter((function(t){return(0,u.kJ)(t.bid)&&t.bid.length>0})).reduce((function(t,e){return t.concat(e.bid.map((function(t){return function(t,e){var n=t.adomain&&t.adomain.length,r={requestId:t.impid,cpm:t.price,width:t.w,height:t.h,ad:t.adm,ttl:t.ttl||60,creativeId:t.crid,mediaType:(0,s.Z)(t,"ext.ttx.mediaType",c.Mk),currency:e,netRevenue:!0};n&&(r.meta={advertiserDomains:t.adomain});if(r.mediaType===c.pX){"xml"===(0,s.Z)(t,"ext.ttx.vastType","xml")?r.vastXml=r.ad:r.vastUrl=r.ad}return r}(t,o)})))}),[]):[]},getUserSyncs:function(t,e,n,r,i){var o=t.iframeEnabled?w.uniqueSiteIds.map((function(t){return function(t){var e=t.siteId,n=void 0===e?"zzz000000000003zzz":e,r=t.gdprConsent,i=void 0===r?{}:r,o=t.uspConsent,s=t.gppConsent,u=void 0===s?{}:s,c=a.vc.getConfig("ttxSettings"),p=c&&c.syncUrl||g,d=i.consentString,l=i.gdprApplies,f=u.gppString,m=void 0===f?"":f,h=u.applicableSections,v=void 0===h?[]:h,b={type:"iframe",url:"".concat(p,"&id=").concat(n,"&gdpr_consent=").concat(encodeURIComponent(d),"&us_privacy=").concat(encodeURIComponent(o),"&gpp=").concat(encodeURIComponent(m),"&gpp_sid=").concat(encodeURIComponent(v.join(",")))};"boolean"==typeof l&&(b.url+="&gdpr=".concat(Number(l)));return b}({gdprConsent:n,uspConsent:r,gppConsent:i,siteId:t})})):[];return w.uniqueSiteIds=[],o}};(0,o.dX)(N),(0,i.z)("33acrossBidAdapter")}},function(t){t.O(0,[9703,5823,9270],(function(){return e=7157,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5301],{4041:function(e,n,t){var r=t(4942),i=t(1002),a=t(8640),o=t(4699),u=t(4679),l=t(4358),s=t(265),d=t(3193),c=t(5164),p=t(8928);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=(0,c.df)({bidderCode:"amx"}),b=/\.com?\.\w{2,4}$/,v=/^\s*<\??(?:vast|xml)/i,h="__amuidpb";function y(e,n){return null==e?[]:e.map(n).reduce((function(e,n){return null!=n&&e.concat(n)}),[])}function O(e){return null!=(n=e.adm)&&v.test(n)?u.pX:u.Mk;var n}var w=function(e,n){return null==e||(0,i.Z)(e)===n};function C(e){var n=e.hostname.split("."),t=n.slice(n.length-(b.test(e.hostname)?3:2)).join(".");return btoa(t).replace(/=+$/,"")}var I=encodeURIComponent;function S(){try{return g.getDataFromLocalStorage(h)}catch(e){return null}}function j(e){var n={};return(0,l.yi)(e,(function(e){n[e.bidId]=function(e){var n=(c=e.sizes,p=e.mediaTypes,c.concat((0,s.Z)(p,"".concat(u.Mk,".sizes"),[])||[]).concat((0,s.Z)(p,"".concat(u.pX,".sizes"),[])||[]).sort((function(e,n){return n[0]*n[1]-e[0]*e[1]}))[0]||[0,0]),t=e.mediaType===u.pX||u.pX in e.mediaTypes,r=t||n[1]>100,i=(0,s.Z)(e,"params.tagId"),a=null!=e.params&&"string"==typeof e.params.adUnitId&&""!==e.params.adUnitId?e.params.adUnitId:e.adUnitCode,o=[e.sizes,(0,s.Z)(e,"mediaTypes.".concat(u.Mk,".sizes"),[])||[],(0,s.Z)(e,"mediaTypes.".concat(u.pX,".sizes"),[])||[]],l=(0,s.Z)(e,"mediaTypes.".concat(u.pX),{})||{},d={au:a,av:r,vd:l,vr:t,ms:o,aw:n[0],ah:n[1],tf:0,sc:e.schain||{},f:T(x(e)),rtb:e.ortb2Imp};var c,p;"string"==typeof i&&i.length>0&&(d.i=i);return d}(e)})),n}var Z=function(e,n){return(0,l.hq)("".concat("https://1x1.a-mo.net/hbx/","g_").concat(e,"?").concat((0,l.Yp)(m(m({},n),{},{ts:Date.now(),eid:(0,l._d)()}))))};function T(e){return"number"==typeof e&&isFinite(e)&&e>0?e:0}function x(e){if(!(0,l.LQ)(e.getFloor))return(0,s.Z)(e,"params.floor",0);try{return e.getFloor({currency:"USD",mediaType:"*",size:"*",bidRequest:e}).floor}catch(e){return(0,l.H)("call to getFloor failed: ",e),0}}function k(e,n,t){return(0,s.Z)(e,"refererInfo."+n,t)}function q(e,n){if(null==e)return!1;var t=e[n];return null!=t&&(!!("*"===t.bidders||(0,l.kJ)(t.bidders)&&-1!==t.bidders.indexOf("amx"))&&(null==t.filter||"include"===t.filter))}function U(){var e=d.vc.getConfig("userSync");if(null==e)return{d:0,l:0,t:0,e:!0};var n={d:e.syncDelay,l:e.syncsPerBidder,t:0,e:e.syncEnabled};return q(e.filterSettings,"all")?(n.t=0,n):(q(e.filterSettings,"iframe")&&(n.t|=2),q(e.filterSettings,"image")&&(n.t|=1),n)}function D(e){var n,t,r;return null!=(null==e?void 0:e.gppConsent)?e.gppConsent:null!==(n=null==e||null===(t=e.ortb2)||void 0===t||null===(r=t.regs)||void 0===r?void 0:r.gpp)&&void 0!==n?n:{gppString:"",applicableSections:""}}function R(e){if(null==e.refererInfo)return{r:"",t:!1,c:"",l:0,s:[]};var n=e.refererInfo;return{r:n.topmostLocation,t:n.reachedTop,l:n.numIframes,s:n.stack,c:n.canonicalUrl}}var z={code:"amx",gvlid:737,supportedMediaTypes:[u.Mk,u.pX],isBidRequestValid:function(e){return w((0,s.Z)(e,"params.endpoint",null),"string")&&w((0,s.Z)(e,"params.tagId",null),"string")},buildRequests:function(e,n){var t,r,i,a,o=(t=n,(0,l.en)((null===(r=t.refererInfo)||void 0===r?void 0:r.topmostLocation)||window.location.href)),u=(0,s.Z)(e[0],"params.tagId",null),c=(0,s.Z)(e[0],"params.testMode",0),p=null!=e[0]?e[0]:{bidderRequestsCount:0,bidderWinsCount:0,bidRequestsCount:0};return{data:{a:(0,l.DO)(),B:0,b:o.host,brc:p.bidderRequestsCount||0,bwc:p.bidderWinsCount||0,trc:p.bidRequestsCount||0,tm:(a=c,!0===a||1===a||"true"===a),V:"8.52.2",vg:"pbjs",i:c&&null!=u?u:C(o),l:{},f:.01,cv:"pba1.3.4",st:"prebid",h:screen.height,w:screen.width,gs:(0,s.Z)(n,"gdprConsent.gdprApplies",""),gc:(0,s.Z)(n,"gdprConsent.consentString",""),gpp:D(n),u:k(n,"page",o.href),do:k(n,"site",o.hostname),re:k(n,"ref"),am:S(),usp:n.uspConsent||"1---",smt:1,d:"",m:j(e),cpp:d.vc.getConfig("coppa")?1:0,fpd2:n.ortb2,tmax:n.timeout,amp:k(n,"isAmp",null),ri:R(n),sync:U(),eids:(i=e.reduce((function(e,n){return null==n||null==n.userIdAsEids||(0,l.yi)(n.userIdAsEids,(function(n){null!=n&&(e[n.source]=n)})),e}),{}),null!=Object.values?Object.values(i):Object.keys(i).map((function(e){return i[e]})))},method:"POST",browsingTopics:!0,url:(0,s.Z)(e[0],"params.endpoint","https://prebid.a-mo.net/a/c"),withCredentials:!0}},getUserSyncs:function(e,n,t,r,i){var a={gdpr_consent:I((null==t?void 0:t.consentString)||""),gdpr:I(null!=t&&t.gdprApplies?1:0),us_privacy:I(r||""),gpp:I((null==i?void 0:i.gppString)||""),gpp_sid:I((null==i?void 0:i.applicableSections)||"")},o={url:"https://prebid.a-mo.net/isyn?".concat((0,l.Yp)(a)),type:"iframe"};if(null==n||0===n.length)return e.iframeEnabled?[o]:[];var u=[],s=!1;return(0,l.yi)(n,(function(n){var t=n.body;null!=t&&null!=t.p&&t.p.hreq&&(0,l.yi)(t.p.hreq,(function(n){var t=-1!==n.indexOf("__st=iframe")?"iframe":"image";(e.iframeEnabled||"image"===t)&&(s=s||"iframe"===t||-1!==n.indexOf("cchain"),u.push({url:n,type:t}))}))})),!s&&u.length<2&&u.push(o),u},interpretResponse:function(e,n){var t,i,a=e.body;if(null==a||"string"==typeof a)return[];a.am&&"string"==typeof a.am&&function(e){try{g.setDataInLocalStorage(h,e)}catch(e){}}(a.am);var o=d.vc.getConfig("bidderSettings"),l=!!(null!==(t=null!==(i=null==o?void 0:o.amx)&&void 0!==i?i:null==o?void 0:o.standard)&&void 0!==t?t:{}).allowAlternateBidderCodes;return y(Object.keys(a.r),(function(e){return y(a.r[e],(function(t){return t.b.map((function(t){var i,a,o=O(t),s=t.adm;if(null==s)return null;var d=function(e,n,t){if(null!=e.w&&e.w>1&&null!=e.h&&e.h>1)return[e.w,e.h];var r=n.m[t];return null==r?[0,0]:[r.aw,r.ah]}(t,n.data,e),c=o===u.Mk?240:300,p=null!==(i=t.ext)&&void 0!==i?i:{},f=p.bc,g=p.ds;return m(m({},null!=f&&l?{bidderCode:f}:{}),{},(a={requestId:e,cpm:t.price,width:d[0],height:d[1],creativeId:t.crid,currency:"USD",netRevenue:!0},(0,r.Z)(a,o===u.pX?"vastXml":"ad",s),(0,r.Z)(a,"meta",m({advertiserDomains:t.adomain,mediaType:o},null!=g?{demandSource:g}:{})),(0,r.Z)(a,"mediaType",o),(0,r.Z)(a,"ttl","number"==typeof t.exp?t.exp:c),a))}))})).filter((function(e){return null!=e}))}))},onSetTargeting:function(e){var n,t;null!=e&&Z("pbst",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,c1:e.mediaType,np:e.cpm,aud:e.requestId,a:e.adUnitCode,c2:(n=e.adserverTargeting,t=[],Object.keys(n||{}).forEach((function(e){t.push(I(e)+"="+I(String(n[e])))})),I(t.join("&"))),cn3:e.timeToRespond})},onTimeout:function(e){if(null!=e&&e.length){var n=null,t=e.map((function(e){var t=e.params||{},r=function(e){return null==e.sizes||0===e.sizes.length?[0,0]:e.sizes[0]}(e),i=null!=e.ortb2&&null!=e.ortb2.site?e.ortb2.site:{},a=i.domain,o=i.page,u=i.ref;return null==n&&(n={do:a,u:o,U:S(),re:u,V:"8.52.2",vg:"pbjs"}),{A:e.bidder,mid:t.tagId,a:t.adunitId||e.adUnitCode,bid:e.bidId,n:"g_pbto",aud:e.transactionId,w:r[0],h:r[1],cn:e.timeout,cn2:e.bidderRequestsCount,cn3:e.bidderWinsCount}})),r=JSON.stringify({c:n,e:t});(0,p.he)("https://1x1.a-mo.net/e",{body:r,keepalive:!0,withCredentials:!0,method:"POST"}).catch((function(e){}))}},onBidWon:function(e){null!=e&&Z("pbwin",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,C:e.mediaType===u.Mk?0:1,np:e.cpm,a:e.adUnitCode})}};(0,o.dX)(z),(0,a.z)("amxBidAdapter")}},function(e){e.O(0,[5823,9270],(function(){return n=4041,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3864],{6319:function(e,r,a){var n=a(1002),t=a(2982),i=a(8640),s=a(4358),o=a(265),d=a(5706),p=a(3193),c=a(4699),u=a(4679),l=a(4614),m=a(154),f=a(5164),v=a(5975),_=a(7673),b=a(59),g=a(4292),y=a(9050),h=a(7374),k=a(5370),x=a(6296),w="appnexus",C="https://ib.adnxs.com/ut/v3/prebid",I="https://ib.adnxs-simple.com/ut/v3/prebid",E=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],j=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],O=["age","externalUid","external_uid","segments","gender","dnt","language"],q=["geo","device_id"],T=["enabled","dongle","member_id","debug_timeout"],S={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},U={playback_method:{unknown:0,auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,auto_play_sound_unknown:5},context:{unknown:0,pre_roll:1,mid_roll:2,post_roll:3,outstream:4,"in-banner":5,"in-feed":6,interstitial:7,accompanying_content_pre_roll:8,accompanying_content_mid_roll:9,accompanying_content_post_roll:10}},R={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},Z="<script",N=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,z="trk.js",P=(0,f.df)({bidderCode:w}),A={code:w,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"emxdigital",gvlid:183},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",gvlid:32},{code:"matomy",gvlid:32},{code:"featureforward",gvlid:32},{code:"oftmedia",gvlid:32},{code:"adasta",gvlid:32},{code:"beintoo",gvlid:618},{code:"projectagora",gvlid:1032},{code:"uol",gvlid:32},{code:"adzymic",gvlid:723}],supportedMediaTypes:[u.Mk,u.pX,u.B5],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.placement_id||e.params.member&&(e.params.invCode||e.params.inv_code))},buildRequests:function(e,r){var a,n,i,o,d,c=(e=(0,b.lY)(e)).map(B),u=(0,l.sE)(e,M),m={};!0===p.vc.getConfig("coppa")&&(m={coppa:!0}),u&&Object.keys(u.params.user).filter((function(e){return(0,l.q9)(O,e)})).forEach((function(e){var r=(0,h.G)(e);if("segments"===e&&(0,s.kJ)(u.params.user[e])){var a=[];u.params.user[e].forEach((function(e){(0,s.hj)(e)?a.push({id:e}):(0,s.PO)(e)&&a.push(e)})),m[r]=a}else"segments"!==e&&(m[r]=u.params.user[e])}));var f,v=(0,l.sE)(e,X);v&&v.params&&v.params.app&&(f={},Object.keys(v.params.app).filter((function(e){return(0,l.q9)(q,e)})).forEach((function(e){return f[e]=v.params.app[e]})));var g,w=(0,l.sE)(e,H);w&&w.params&&v.params.app&&v.params.app.id&&(g={appid:w.params.app.id});var E={},j={},U=P.getCookie("apn_prebid_debug")||null;if(U)try{E=JSON.parse(U)}catch(e){(0,s.H)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{Object.keys(S).forEach((function(e){var r=(0,s.ak)(e);(0,s.d8)(r)&&""!==r&&(E[S[e]]=r,E.enabled=!0)})),E=(0,k.u)({member_id:"number",debug_timeout:"number"},E);var R=(0,l.sE)(e,L);R&&R.debug&&(E=R.debug)}E&&E.enabled&&Object.keys(E).filter((function(e){return(0,l.q9)(T,e)})).forEach((function(e){j[e]=E[e]}));var Z=(0,l.sE)(e,D),N=Z?parseInt(Z.params.member,10):0,z=e[0].schain,A=(0,l.sE)(e,V),J={tags:(0,t.Z)(c),user:m,sdk:{source:"pbjs",version:"8.52.2"},schain:z};A&&(J.iab_support={omidpn:"Appnexus",omidpv:"8.52.2"}),N>0&&(J.member_id=N),v&&(J.device=f),w&&(J.app=g);var W=(0,s.I8)(r&&r.ortb2),$=(0,s.I8)(p.vc.getConfig("appnexusAuctionKeywords"))||{},K=(0,y.bn)(W,$);if(K.length>0&&(J.keywords=K),p.vc.getConfig("adpod.brandCategoryExclusion")&&(J.brand_category_uniqueness=!0),j.enabled&&(J.debug=j,(0,s.PN)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(j,null,4))),r&&r.gdprConsent&&(J.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){var Q=r.gdprConsent.addtlConsent,Y=Q.substring(Q.indexOf("~")+1);J.gdpr_consent.addtl_consent=Y.split(".").map((function(e){return parseInt(e,10)}))}if(r&&r.uspConsent&&(J.us_privacy=r.uspConsent),null!=r&&r.gppConsent?J.privacy={gpp:r.gppConsent.gppString,gpp_sid:r.gppConsent.applicableSections}:null!=r&&null!==(a=r.ortb2)&&void 0!==a&&null!==(n=a.regs)&&void 0!==n&&n.gpp&&(J.privacy={gpp:r.ortb2.regs.gpp,gpp_sid:r.ortb2.regs.gpp_sid}),r&&r.refererInfo){var ee={rd_ref:encodeURIComponent(r.refererInfo.topmostLocation),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")},re=r.refererInfo.canonicalUrl;(0,s.d8)(re)&&""!==re&&(ee.rd_can=re),J.referrer_detection=ee}if((0,l.sE)(e,G)&&e.filter(G).forEach((function(e){var r=function(e,r){var a=r.mediaTypes.video,n=a.durationRangeSec,i=a.requireExactDuration,s=function(e){var r=e.adPodDurationSec,a=e.durationRangeSec,n=e.requireExactDuration,i=Math.min.apply(Math,(0,t.Z)(a)),s=Math.floor(r/i);return n?Math.max(s,a.length):s}(r.mediaTypes.video),o=Math.max.apply(Math,(0,t.Z)(n)),d=e.filter((function(e){return e.uuid===r.bidId})),p=h.h.apply(void 0,(0,t.Z)(d).concat([s]));if(i){var c=Math.ceil(s/n.length),u=(0,x.y)(p,c);n.forEach((function(e,r){u[r].map((function(r){F(r,"minduration",e),F(r,"maxduration",e)}))}))}else p.map((function(e){return F(e,"maxduration",o)}));return p}(c,e),a=J.tags.filter((function(r){return r.uuid!==e.bidId}));J.tags=[].concat((0,t.Z)(a),(0,t.Z)(r))})),e[0].userId){var ae=[];e[0].userIdAsEids.forEach((function(e){!e||!e.uids||e.uids.length<1||e.uids.forEach((function(r){var a={source:e.source,id:r.id};"adserver.org"==e.source?a.rti_partner="TDID":"uidapi.com"==e.source&&(a.rti_partner="UID2"),ae.push(a)}))})),ae.length&&(J.eids=ae)}if(null!=r&&null!==(i=r.ortb2)&&void 0!==i&&null!==(o=i.regs)&&void 0!==o&&null!==(d=o.ext)&&void 0!==d&&d.dsa){var ne=r.ortb2.regs.ext.dsa,te={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,s.hj)(ne[e])&&(te[e]=ne[e])})),(0,s.kJ)(ne.transparency)&&ne.transparency.every((function(e){return(0,s.PO)(e)}))){var ie=[];ne.transparency.forEach((function(e){(0,s.d8)(e.domain)&&""!=e.domain&&(0,s.kJ)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,s.hj)(e)}))&&ie.push(e)})),ie.length>0&&(te.transparency=ie)}(0,s.xb)(te)||(J.dsa=te)}c[0].publisher_id&&(J.publisher_id=c[0].publisher_id);var se=function(e,r){var a=[],n={withCredentials:!0},t=C;(0,_.h)(null==r?void 0:r.gdprConsent)||(t=I);"TRUE"!==(0,s.ak)("apn_test").toUpperCase()&&!0!==p.vc.getConfig("apn_test")||(n.customHeaders={"X-Is-Test":1});if(e.tags.length>15){var i=(0,s.I8)(e);(0,x.y)(e.tags,15).forEach((function(e){i.tags=e;var s=JSON.stringify(i);a.push({method:"POST",url:t,data:s,bidderRequest:r,options:n})}))}else{var o=JSON.stringify(e);a={method:"POST",url:t,data:o,bidderRequest:r,options:n}}return a}(J,r);return se},interpretResponse:function(e,r){var a=this,n=r.bidderRequest;e=e.body;var t=[];if(!e||e.error){var i="in response for ".concat(n.bidderCode," adapter");return e&&e.error&&(i+=": ".concat(e.error)),(0,s.H)(i),t}if(e.tags&&e.tags.forEach((function(e){var r,i=(r=e)&&r.ads&&r.ads.length&&(0,l.sE)(r.ads,(function(e){return e.rtb}));if(i&&((!0===v.S.get(n.bidderCode,"allowZeroCpmBids")?i.cpm>=0:i.cpm>0)&&(0,l.q9)(a.supportedMediaTypes,i.ad_type))){var p=function(e,r,a){var n=(0,s.zE)(e.uuid,[a]),t=(0,s._d)(),i={adId:t,requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:r.publisher_currency_codename||"USD",netRevenue:!0,ttl:300,adUnitCode:n.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};r.adomain&&(i.meta=Object.assign({},i.meta,{advertiserDomains:[r.adomain]}));r.advertiser_id&&(i.meta=Object.assign({},i.meta,{advertiserId:r.advertiser_id}));r.dsa&&(i.meta=Object.assign({},i.meta,{dsa:r.dsa}));function p(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}r.buyer_member_id&&(i.meta=Object.assign({},i.meta,{dchain:p(r)}));r.brand_id&&(i.meta=Object.assign({},i.meta,{brandId:r.brand_id}));if(r.rtb.video){switch(Object.assign(i,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600}),(0,o.Z)(n,"mediaTypes.video.context")){case u.Oh:var c=g.m[r.brand_category_id]?g.m[r.brand_category_id]:null;i.meta=Object.assign({},i.meta,{primaryCatId:c});var f=r.deal_priority;i.video={context:u.Oh,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:f},i.vastUrl=r.rtb.video.asset_url;break;case m.gZ:if(i.adResponse=e,i.adResponse.ad=i.adResponse.ads[0],i.adResponse.ad.video=i.adResponse.ad.rtb.video,i.vastXml=r.rtb.video.content,r.renderer_url){var v=(0,l.sE)(a.bids,(function(r){return r.bidId===e.uuid})),_=(0,o.Z)(v,"mediaTypes.video.renderer.options");_||(_=(0,o.Z)(v,"renderer.options")),i.renderer=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=d.Th.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1,adUnitCode:e});try{n.setRender(W)}catch(e){(0,s.yN)("Prebid Error calling setRender on renderer",e)}return n.setEventHandlers({impression:function(){return(0,s.ji)("AppNexus outstream video impression event")},loaded:function(){return(0,s.ji)("AppNexus outstream video loaded event")},ended:function(){(0,s.ji)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),n}(i.adUnitCode,r,_)}break;case m.LD:i.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}}else if(r.rtb[u.B5]){var b,y=r.rtb[u.B5];if(function(e){if(!e||""===e)return!1;var r=e.match(N),a=null!=r&&r.length>=1,n=e.match(z),t=null!=n&&n.length>=1;return e.startsWith(Z)&&t&&a}(r.viewability.config)){var h="pbjs_adid="+t+";pbjs_auc="+n.adUnitCode;b=r.viewability.config.replace("dom_id=%native_dom_id%",h)}var k=y.javascript_trackers;null==k?k=b:(0,s.d8)(k)?k=[k,b]:k.push(b),i[u.B5]={title:y.title,body:y.desc,body2:y.desc2,cta:y.ctatext,rating:y.rating,sponsoredBy:y.sponsored,privacyLink:y.privacy_link,address:y.address,downloads:y.downloads,likes:y.likes,phone:y.phone,price:y.price,salePrice:y.saleprice,clickUrl:y.link.url,displayUrl:y.displayurl,clickTrackers:y.link.click_trackers,impressionTrackers:y.impression_trackers,video:y.video,javascriptTrackers:k},y.main_img&&(i.native.image={url:y.main_img.url,height:y.main_img.height,width:y.main_img.width}),y.icon&&(i.native.icon={url:y.icon.url,height:y.icon.height,width:y.icon.width})}else{Object.assign(i,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(var x=0;x<r.rtb.trackers[0].impression_urls.length;x++){var w=r.rtb.trackers[0].impression_urls[x],C=(0,s.SG)(w);i.ad+=C}}catch(e){(0,s.H)("Error appending tracking pixel",e)}}return i}(e,i,n);p.mediaType=function(e){var r=e.ad_type;return r===u.pX?u.pX:r===u.B5?u.B5:u.Mk}(i),t.push(p)}})),e.debug&&e.debug.debug_info){var p="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;p=p.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),(0,s.ji)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,s.ji)(p)}return t},getUserSyncs:function(e,r,a,n,t){if(e.iframeEnabled&&(0,_.h)(a))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,r,a,n){var t=y.Bq;if(!0===r){var i=null,d=p.vc.getConfig("s2sConfig");(0,s.PO)(d)?i=(0,o.Z)(d,"endpoint.p1Consent"):(0,s.kJ)(d)&&d.forEach((function(e){(0,l.q9)(e.bidders,a.bids[0].bidder)&&(i=(0,o.Z)(e,"endpoint.p1Consent"))})),i&&i.match("/openrtb2/prebid")&&(t=K)}return e=(0,k.u)({member:"string",invCode:"string",placementId:"number",keywords:t,publisherId:"number"},e),r&&(Object.keys(e).forEach((function(r){var a=(0,h.G)(r);a!==r&&(e[a]=e[r],delete e[r])})),e.use_pmt_rule="boolean"==typeof e.use_payment_rule&&e.use_payment_rule,e.use_payment_rule&&delete e.use_payment_rule),e}};function B(e){var r,a={};Object.keys(e.params).forEach((function(r){var a=(0,h.G)(r);a!==r&&(e.params[a]=e.params[r],delete e.params[r])})),a.sizes=J(e.sizes),a.primary_size=a.sizes[0],a.ad_types=[],a.uuid=e.bidId,e.params.placement_id?a.id=parseInt(e.params.placement_id,10):a.code=e.params.inv_code;var n=(0,s.ak)("ast_override_div");if((0,s.d8)(n)&&""!==n){var t=n.split(",").find((function(r){return r.startsWith("".concat(e.adUnitCode,":"))}));if(t){var i=t.split(":")[1];i&&(a.force_creative_id=parseInt(i,10))}}a.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,a.use_pmt_rule="boolean"==typeof e.params.use_payment_rule?e.params.use_payment_rule:"boolean"==typeof e.params.use_pmt_rule&&e.params.use_pmt_rule,a.prebid=!0,a.disable_psa=!0;var d=function(e){if(!(0,s.LQ)(e.getFloor))return e.params.reserve?e.params.reserve:null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if((0,s.PO)(r)&&!isNaN(r.floor)&&"USD"===r.currency)return r.floor;return null}(e);if(d&&(a.reserve=d),e.params.position)a.position={above:1,below:2}[e.params.position]||0;else{var p=(0,o.Z)(e,"mediaTypes.banner.pos")||(0,o.Z)(e,"mediaTypes.video.pos");0!==p&&1!==p&&3!==p||(a.position=3===p?2:p)}e.params.traffic_source_code&&(a.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(a.private_sizes=J(e.params.private_sizes)),e.params.supply_type&&(a.supply_type=e.params.supply_type),e.params.pub_click&&(a.pubclick=e.params.pub_click),e.params.ext_inv_code&&(a.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(a.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(a.external_imp_id=e.params.external_imp_id);var c=(0,y.gw)((0,y.cM)((0,o.Z)(e,"ortb2Imp.ext.data.keywords")),null===(r=e.params)||void 0===r?void 0:r.keywords);c.length>0&&(a.keywords=c);var m,f,v=(0,o.Z)(e,"ortb2Imp.ext.gpid")||(0,o.Z)(e,"ortb2Imp.ext.data.pbadslot");if(v&&(a.gpid=v),(e.mediaType===u.B5||(0,o.Z)(e,"mediaTypes.".concat(u.B5)))&&(a.ad_types.push(u.B5),0===a.sizes.length&&(a.sizes=J([1,1])),e.nativeParams)){var _=(m=e.nativeParams,f={},Object.keys(m).forEach((function(e){var r=R[e]&&R[e].serverName||R[e]||e,a=R[e]&&R[e].requiredParams;if(f[r]=Object.assign({},a,m[e]),(r===R.image.serverName||r===R.icon.serverName)&&f[r].sizes){var n=f[r].sizes;((0,s.HC)(n)||(0,s.kJ)(n)&&n.length>0&&n.every((function(e){return(0,s.HC)(e)})))&&(f[r].sizes=J(f[r].sizes))}r===R.privacyLink&&(f.privacy_supported=!0)})),f);a[u.B5]={layouts:[_]}}var b=(0,o.Z)(e,"mediaTypes.".concat(u.pX)),g=(0,o.Z)(e,"mediaTypes.video.context");return a.hb_source=b&&"adpod"===g?7:1,(e.mediaType===u.pX||b)&&a.ad_types.push(u.pX),(e.mediaType===u.pX||b&&"outstream"!==g)&&(a.require_asset_url=!0),e.params.video&&(a.video={},Object.keys(e.params.video).filter((function(e){return(0,l.q9)(E,e)})).forEach((function(r){switch(r){case"context":case"playback_method":var n=e.params.video[r];n=(0,s.kJ)(n)?n[0]:n,a.video[r]=U[r][n];break;case"frameworks":break;default:a.video[r]=e.params.video[r]}})),e.params.video.frameworks&&(0,s.kJ)(e.params.video.frameworks)&&(a.video_frameworks=e.params.video.frameworks)),b&&(a.video=a.video||{},Object.keys(b).filter((function(e){return(0,l.q9)(j,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof a.video[e]&&(a.video[e]=b[e]);break;case"skip":"boolean"!=typeof a.video.skippable&&(a.video.skippable=1===b[e]);break;case"skipafter":"number"!=typeof a.video.skipoffset&&(a.video.skippoffset=b[e]);break;case"playbackmethod":if("number"!=typeof a.video.playback_method){var r=b[e];(r=(0,s.kJ)(r)?r[0]:r)>=1&&r<=4&&(a.video.playback_method=r)}break;case"api":if(!a.video_frameworks&&(0,s.kJ)(b[e])){var n=b[e].map((function(e){var r=4===e?5:5===e?4:e;if(r>=1&&r<=5)return r})).filter((function(e){return e}));a.video_frameworks=n}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof a.video.context){var t=b.plcmt,i=b.placement,o=b.startdelay,d=function(e,r){if(!e)return;if(2===e){if(void 0===r)return;if(0===r)return"accompanying_content_pre_roll";if(-1===r)return"accompanying_content_mid_roll";if(-2===r)return"accompanying_content_post_roll"}else{if(3===e)return"interstitial";if(4===e)return"outstream"}}(t,o)||function(e){if(!e)return;if(2===e)return"in-banner";if(3===e)return"outstream";if(4===e)return"in-feed";if(5===e)return"intersitial"}(i)||function(e){if(!e)return;if(0===e)return"pre_roll";if(-1===e)return"mid_roll";if(-2===e)return"post_roll"}(o);a.video.context=U.context[d]}}}))),e.renderer&&(a.video=Object.assign({},a.video,{custom_renderer_present:!0})),e.params.frameworks&&(0,s.kJ)(e.params.frameworks)&&(a.banner_frameworks=e.params.frameworks),(0,o.Z)(e,"mediaTypes.".concat(u.Mk))&&a.ad_types.push(u.Mk),0===a.ad_types.length&&delete a.ad_types,a}function J(e){var r=[],a={};if((0,s.kJ)(e)&&2===e.length&&!(0,s.kJ)(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===(0,n.Z)(e))for(var t=0;t<e.length;t++){var i=e[t];(a={}).width=parseInt(i[0],10),a.height=parseInt(i[1],10),r.push(a)}return r}function M(e){return!!e.params.user}function D(e){return!!parseInt(e.params.member,10)}function X(e){if(e.params)return!!e.params.app}function H(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function L(e){return!!e.debug}function G(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===u.Oh}function V(e){var r=!1,a=e.params,n=e.params.video;return a.frameworks&&(0,s.kJ)(a.frameworks)&&(r=(0,l.q9)(e.params.frameworks,6)),!r&&n&&n.frameworks&&(0,s.kJ)(n.frameworks)&&(r=(0,l.q9)(e.params.video.frameworks,6)),r}function F(e,r,a){(0,s.xb)(e.video)&&(e.video={}),e.video[r]=a}function W(e,r){!function(e){try{var r=document.getElementById(e).querySelectorAll("div[id^='google_ads']");r[0]&&r[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),function(e){try{var r=document.getElementById(e).querySelectorAll("script[id^='sas_script']");r[0].nextSibling&&"iframe"===r[0].nextSibling.localName&&r[0].nextSibling.style.setProperty("display","none")}catch(e){}}(e.adUnitCode),e.renderer.push((function(){((null==r?void 0:r.defaultView)||window).ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},$.bind(null,e))}))}function $(e,r,a){e.renderer.handleVideoEvent({id:r,eventName:a})}function K(e){var r="";return Object.keys(e).forEach((function(a){(0,s.d8)(e[a])?""!==e[a]?r+="".concat(a,"=").concat(e[a],","):r+="".concat(a,","):(0,s.kJ)(e[a])&&(""===e[a][0]?r+="".concat(a,","):e[a].forEach((function(e){r+="".concat(a,"=").concat(e,",")})))})),r=r.substring(0,r.length-1)}(0,c.dX)(A),(0,i.z)("appnexusBidAdapter")}},function(e){e.O(0,[5823,3157,2277,3402,2284,6190,9270],(function(){return r=6319,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1266],{5630:function(n,e,t){var o,a,i,r,c,s,u=t(1002),l=t(8640),d=t(4358),p=t(6475),f=t(3193),g=t(4516),m=t(4614),v=t(9128),b=t(6372),C=t(4078),y=t(2712),P=!1,M={iab:function(n){var e=n.onSuccess,t=n.onError,o=n.onEvent;var a=(0,y.b6)({apiName:"__tcfapi",apiVersion:2,apiArgs:["command","version","callback","parameter"]});if(!a)return t("TCF2 CMP not found.");a.isDirect?(0,d.PN)("Detected CMP API is directly accessible, calling it now..."):(0,d.PN)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now...");a({command:"addEventListener",callback:function(n,a){(0,d.PN)("Received a response from CMP",n),a?(o(n),!1!==n.gdprApplies&&"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||h(n,{onSuccess:e,onError:t})):t("CMP unable to register callback function.  Please check CMP setup.")}})},static:function(n){var e=n.onSuccess,t=n.onError;h(r,{onSuccess:e,onError:t})}};function A(n){var e,t,i=!1,r=null,s=!1;function u(n){null!=r&&clearTimeout(r),i||null==n||(0===n?e():r=setTimeout(e,n))}function l(e,t,o){if(u(null),i=!0,g.rp.setConsentData(e),"function"==typeof n){for(var a=arguments.length,r=new Array(a>3?a-3:0),c=3;c<a;c++)r[c-3]=arguments[c];n.apply(void 0,[t,o].concat(r))}}if((0,m.q9)(Object.keys(M),o)){var d={onSuccess:function(n){return l(n,!1)},onError:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];l.apply(void 0,[null,!0,n].concat(t))},onEvent:function(n){t=n,s||(s=!0,null!=c&&u(c))}};e=function(){var n=function(n){l(n,!1,"".concat(s?"Timeout waiting for user action on CMP":"CMP did not load",", continuing auction..."))};h(t,{onSuccess:n,onError:function(){return n(k(void 0))}})},M[o](d),null!=c&&s||u(a)}else l(null,!1,"CMP framework (".concat(o,") is not a supported framework.  Aborting consentManagement module and resuming auction."))}var S=(0,v.g3)("gdpr",(function(n,e){var t;t=function(t,o){if(o){var a=d.yN;t&&(a=d.H,o="".concat(o," Canceling auction as per consentManagement config."));for(var i=arguments.length,r=new Array(i>2?i-2:0),c=2;c<i;c++)r[c-2]=arguments[c];a.apply(void 0,[o].concat(r))}t?(n.stopTiming(),"function"==typeof e.bidsBackHandler?e.bidsBackHandler():(0,d.H)("Error executing bidsBackHandler")):n.call(this,e)},s?((0,d.PN)("User consent information already known.  Pulling internally stored information..."),t(!1)):A(t)}));function h(n,e){var t,o,a=e.onSuccess,r=e.onError;t=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:i,o=n&&n.tcString,"boolean"==typeof t&&(!0!==t||o&&(0,d.d8)(o))?a(k(n)):r("CMP returned unexpected value during lookup process.",n)}function k(n){return s={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:i},n&&n.addtlConsent&&(0,d.d8)(n.addtlConsent)&&(s.addtlConsent=n.addtlConsent),s.apiVersion=2,s}f.vc.getConfig("consentManagement",(function(n){return function(n){if((n=n&&(n.gdpr||n.usp||n.gpp?n.gdpr:n))&&"object"===(0,u.Z)(n)){var e;(0,d.d8)(n.cmpApi)?o=n.cmpApi:(o="iab",(0,d.PN)("consentManagement config did not specify cmp.  Using system default setting (".concat("iab",")."))),(0,d.hj)(n.timeout)?a=n.timeout:(a=1e4,(0,d.PN)("consentManagement config did not specify timeout.  Using system default setting (".concat(1e4,")."))),c=(0,d.hj)(n.actionTimeout)?n.actionTimeout:null,i=!0===n.defaultGdprScope,(0,d.PN)("consentManagement module has been activated..."),"static"===o&&((0,d.PO)(n.consentData)?(null!=(null===(e=r=n.consentData)||void 0===e?void 0:e.getTCData)&&(r=r.getTCData),a=0):(0,d.H)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),P||(0,l.R)().requestBids.before(S,50),P=!0,g.rp.enable(),A()}else(0,d.yN)("consentManagement (gdpr) config not defined, exiting consent manager")}(n.consentManagement)})),C.S.before((function(n,e){return n(e.then((function(n){var e=g.rp.getConsentData();return e&&("boolean"==typeof e.gdprApplies&&(0,p.N)(n,"regs.ext.gdpr",e.gdprApplies?1:0),(0,p.N)(n,"user.ext.consent",e.consentString)),n})))})),(0,b.f8)({type:b.Z,name:"gdprAddtlConsent",fn:function(n,e){var t,o=null===(t=e.gdprConsent)||void 0===t?void 0:t.addtlConsent;o&&"string"==typeof o&&(0,p.N)(n,"user.ext.ConsentedProvidersSettings.consented_providers",o)}}),(0,l.z)("consentManagement")}},function(n){n.O(0,[5823,7968,9270],(function(){return e=5630,n(n.s=e);var e}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9168],{277:function(n,t,e){var r=e(1002),i=e(7326),a=e(9340),o=e(2963),c=e(1120);function u(n,t){for(;!Object.prototype.hasOwnProperty.call(n,t)&&null!==(n=(0,c.Z)(n)););return n}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(n,t,e){var r=u(n,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?n:e):i.value}},s.apply(this,arguments)}var l=e(885),p=e(4942),f=e(6033),d=e(3144),v=e(5671),g=e(2982),h=e(8640),y=e(4358),m=e(6475),P=e(3193),b=e(4516),w=e(9128),Z=e(4078),S=e(2712),C=e(8792),O=e(6310);function k(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=(0,c.Z)(n);if(t){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,o.Z)(this,e)}}function M(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function j(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?M(Object(e),!0).forEach((function(t){(0,p.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):M(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function N(n,t,e){!function(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n,t),t.set(n,e)}function T(n,t){var e=function(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}(n,t,"set");return function(n,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(e){t.set.call(n,e)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}(n,e)}var E,D,R,G,A=!1;function I(n,t){var e=t.onSuccess,r=t.onError;new C.Z((function(t){return t(n())})).then(e,(function(n){n instanceof x?r.apply(void 0,[n.message].concat((0,g.Z)(n.args))):r("GPP error:",n)}))}var _="1.0",x=(0,d.Z)((function n(t,e){(0,v.Z)(this,n),this.message=t,this.args=null==e?[]:[e]})),z=new WeakMap,L=new WeakMap,U=new WeakMap,V=function(){function n(t,e){var r=this;(0,v.Z)(this,n),N(this,z,{writable:!0,value:void 0}),N(this,L,{writable:!0,value:void 0}),N(this,U,{writable:!0,value:[]}),(0,p.Z)(this,"initialized",!1),this.apiVersion=this.constructor.apiVersion,this.cmpVersion=e,this.cmp=e;var i=[0,1].map((function(n){return function(t){for(;(0,f.Z)(r,U).length;)(0,f.Z)(r,U).pop()[n](t)}})),a=(0,l.Z)(i,2);T(this,z).value=a[0],T(this,L).value=a[1]}return(0,d.Z)(n,[{key:"init",value:function(n){var t=this,e=this.updateWhenReady(n);return this.initialized||(this.initialized=!0,this.cmp({command:"addEventListener",callback:function(n,e){var r;null==e||e?"error"===(null==n||null===(r=n.pingData)||void 0===r?void 0:r.cmpStatus)?(0,f.Z)(t,L).call(t,new x('CMP status is "error"; please check CMP setup',n)):t.isCMPReady((null==n?void 0:n.pingData)||{})&&t.events.includes(null==n?void 0:n.eventName)&&(0,f.Z)(t,z).call(t,t.updateConsent(n.pingData)):(0,f.Z)(t,L).call(t,new x("Received error response from CMP",n))}})),e}},{key:"refresh",value:function(){return this.cmp({command:"ping"}).then(this.updateWhenReady.bind(this))}},{key:"updateConsent",value:function(n){return this.getGPPData(n).then((function(n){if(null==n||(0,y.xb)(n))throw new x("Received empty response from CMP",n);return X(n)})).then((function(n){return(0,y.PN)("Retrieved GPP consent from CMP:",n),n}))}},{key:"nextUpdate",value:function(){var n=this;return new C.Z((function(t,e){(0,f.Z)(n,U).push([t,e])}))}},{key:"updateWhenReady",value:function(n){return this.isCMPReady(n)?this.updateConsent(n):this.nextUpdate()}}],[{key:"register",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.apiVersion=n,this.CLIENTS[n]=this,t&&(this.CLIENTS.default=this)}},{key:"init",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.b6,e=this.INST;if(!e){var r,i=function(){return r&&(n.INST=null)};e=this.INST=this.ping(t).catch((function(n){throw r=!0,i(),n})),i()}return e.then((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1];return[e,e.initialized?e.refresh():e.init(r)]}))}},{key:"ping",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.b6,e={apiName:"__gpp",apiArgs:["command","callback","parameter"]},r=t(j(j({},e),{},{mode:S.kX}));return new C.Z((function(i,a){if(null!=r){var o=!1,c=function(r,c){if(!o)if(null==c||c){if(null!=r){o=!0;var u=null==r?void 0:r.gppVersion,s=n.getClient(u);u!==s.apiVersion?(0,y.yN)("Unrecognized GPP CMP version: ".concat(u,". Continuing using GPP API version ").concat(s,"...")):(0,y.PN)("Using GPP version ".concat(u));var l=s.apiVersion===_?S.sM:S.m1,p=new s(u,t(j(j({},e),{},{mode:l})));i([p,r])}}else a(r)};r({command:"ping",callback:c}).then((function(n){return c(n,!0)}),a)}else a(new x("GPP CMP not found"))})).finally((function(){r&&r.close()}))}},{key:"getClient",value:function(n){return this.CLIENTS.hasOwnProperty(n)?this.CLIENTS[n]:this.CLIENTS.default}}]),n}();(0,p.Z)(V,"CLIENTS",{}),(0,p.Z)(V,"INST",void 0);var W=function(n){(0,a.Z)(e,n);var t=k(e);function e(){var n;(0,v.Z)(this,e);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),(0,p.Z)((0,i.Z)(n),"events",["sectionChange","cmpStatus"]),n}return(0,d.Z)(e,[{key:"isCMPReady",value:function(n){return"loaded"===n.cmpStatus}},{key:"getGPPData",value:function(n){var t=this,e=C.Z.all((n.supportedAPIs||n.apiSupport||[]).map((function(n){return t.cmp({command:"getSection",parameter:n}).catch((function(t){(0,y.yN)("Could not retrieve GPP section '".concat(n,"'"),t)})).then((function(t){return[n,t]}))}))).then((function(n){return Object.fromEntries(n.filter((function(n){var t=(0,l.Z)(n,2);t[0];return null!=t[1]})).map((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1],i=[Object.fromEntries(Object.entries(r).filter((function(n){return"Gpc"!==(0,l.Z)(n,1)[0]})))];return null!=r.Gpc&&i.push({SubsectionType:1,Gpc:r.Gpc}),[e,i]})))}));return C.Z.all([this.cmp({command:"getGPPData"}),e]).then((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1];return Object.assign({},e,{parsedSections:r})}))}}]),e}(V);s((0,c.Z)(W),"register",W).call(W,_);var B=function(n){(0,a.Z)(e,n);var t=k(e);function e(){var n;(0,v.Z)(this,e);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),(0,p.Z)((0,i.Z)(n),"events",["sectionChange","signalStatus"]),n}return(0,d.Z)(e,[{key:"isCMPReady",value:function(n){return"ready"===n.signalStatus}},{key:"getGPPData",value:function(n){return C.Z.resolve(n)}}]),e}(V);s((0,c.Z)(B),"register",B).call(B,"1.1",!0);var H={iab:function(n){var t=n.onSuccess,e=n.onError,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.b6;I((function(){return V.init(r).then((function(n){var t=(0,l.Z)(n,2);t[0];return t[1]}))}),{onSuccess:t,onError:e})},static:function(n){return I((function(){return X(R)}),n)}};function J(n){var t=!1,e=null;function r(r,i,a){if(null!=e&&clearTimeout(e),t=!0,b.TJ.setConsentData(r),"function"==typeof n){for(var o=arguments.length,c=new Array(o>3?o-3:0),u=3;u<o;u++)c[u-3]=arguments[u];n.apply(void 0,[i,a].concat(c))}}if(H.hasOwnProperty(E)){var i={onSuccess:function(n){return r(n,!1)},onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];r.apply(void 0,[null,!0,n].concat(e))}};if(H[E](i),!t){var a=function(){var n=function(n){r(n,!1,"GPP CMP did not load, continuing auction...")};I((function(){return X(G)}),{onSuccess:n,onError:function(){return n(F())}})};0===D?a():e=setTimeout(a,D)}}else r(null,!1,"GPP CMP framework (".concat(E,") is not a supported framework.  Aborting consentManagement module and resuming auction."))}var q=(0,w.g3)("gpp",(function(n,t){var e;e=function(e,r){if(r){var i=y.yN;e&&(i=y.H,r="".concat(r," Canceling auction as per consentManagement config."));for(var a=arguments.length,o=new Array(a>2?a-2:0),c=2;c<a;c++)o[c-2]=arguments[c];i.apply(void 0,[r].concat(o))}e?(n.stopTiming(),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():(0,y.H)("Error executing bidsBackHandler")):n.call(this,t)},G?((0,y.PN)("User consent information already known.  Pulling internally stored information..."),e(!1)):J(e)}));function X(n){if(null!=(null==n?void 0:n.applicableSections)&&!Array.isArray(n.applicableSections)||null!=(null==n?void 0:n.gppString)&&!(0,y.d8)(n.gppString)||null!=(null==n?void 0:n.parsedSections)&&!(0,y.PO)(n.parsedSections))throw new x("CMP returned unexpected value during lookup process.",n);return["usnatv1","uscav1"].forEach((function(t){var e;null!=n&&null!==(e=n.parsedSections)&&void 0!==e&&e[t]&&(0,y.yN)("Received invalid section from cmp: '".concat(t,"'. Some functionality may not work as expected"),n)})),F(n)}function F(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G={gppString:null==n?void 0:n.gppString,applicableSections:(null==n?void 0:n.applicableSections)||[],parsedSections:(null==n?void 0:n.parsedSections)||{},gppData:n},b.TJ.setConsentData(n),G}P.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.gpp)&&"object"===(0,r.Z)(n)?((0,y.d8)(n.cmpApi)?E=n.cmpApi:(E="iab",(0,y.PN)("consentManagement.gpp config did not specify cmp.  Using system default setting (".concat("iab",")."))),(0,y.hj)(n.timeout)?D=n.timeout:(D=1e4,(0,y.PN)("consentManagement.gpp config did not specify timeout.  Using system default setting (".concat(1e4,")."))),"static"===E&&((0,y.PO)(n.consentData)?(R=n.consentData,D=0):(0,y.H)("consentManagement.gpp config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),(0,y.PN)("consentManagement.gpp module has been activated..."),A||((0,h.R)().requestBids.before(q,50),O.Ww.before((function(n,t){return n(Object.assign({gppConsent:b.TJ.getConsentData()},t))}))),A=!0,b.TJ.enable(),J()):(0,y.yN)("consentManagement.gpp config not defined, exiting consent manager module")}(n.consentManagement)})),Z.S.before((function(n,t){return n(t.then((function(n){var t=b.TJ.getConsentData();return t&&(Array.isArray(t.applicableSections)&&(0,m.N)(n,"regs.gpp_sid",t.applicableSections),(0,m.N)(n,"regs.gpp",t.gppString)),n})))})),(0,h.z)("consentManagementGpp")}},function(n){n.O(0,[7968,5823,9270],(function(){return t=277,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5160],{9099:function(n,t,e){var a,o,c=e(1002),i=e(8640),s=e(4358),r=e(6475),u=e(3193),l=e(3304),f=e(4516),g=e(9128),p=e(2797),d=e(4078),m=e(2712),v="iab",P=v,S=50,b=!1,y={iab:function(n){var t=n.onSuccess,e=n.onError;var a=(c={},{consentDataCallback:function(n,a){a&&n.uspString&&(c.usPrivacy=n.uspString),c.usPrivacy?U(c,{onSuccess:t,onError:e}):e("Unable to get USP consent string.")}}),o=(0,m.b6)({apiName:"__uspapi",apiVersion:1,apiArgs:["command","version","callback"]});var c;if(!o)return e("USP CMP not found.");o.isDirect?(0,s.PN)("Detected USP CMP is directly accessible, calling it now..."):(0,s.PN)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now...");o({command:"getUSPData",callback:a.consentDataCallback}),o({command:"registerDeletion",callback:function(n,t){return(null==t||t)&&l.ZP.callDataDeletionRequest(n)}}).catch((function(n){(0,s.H)("Error invoking CMP `registerDeletion`:",n)}))},static:function(n){var t=n.onSuccess,e=n.onError;U(a,{onSuccess:t,onError:e})}};function D(n){var t=null,e=!1;function a(a,o){if(null!=t&&clearTimeout(t),e=!0,f.nX.setConsentData(a),null!=n){for(var c=arguments.length,i=new Array(c>2?c-2:0),s=2;s<c;s++)i[s-2]=arguments[s];n.apply(void 0,[o].concat(i))}}if(y[P]){var o={onSuccess:a,onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];a.apply(void 0,[null,"".concat(n," Resuming auction without consent data as per consentManagement config.")].concat(e))}};y[P](o),e||(0===S?U(void 0,o):t=setTimeout(o.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),S))}else a(null,"USP framework (".concat(P,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var h=(0,g.g3)("usp",(function(n,t){var e=this;b||M(),D((function(a){if(null!=a){for(var o=arguments.length,c=new Array(o>1?o-1:0),i=1;i<o;i++)c[i-1]=arguments[i];s.yN.apply(void 0,[a].concat(c))}n.call(e,t)}))}));function U(n,t){var e=t.onSuccess,a=t.onError;!n||!n.usPrivacy?a("USPAPI returned unexpected value during lookup process.",n):(!function(n){n&&n.usPrivacy&&(o=n.usPrivacy)}(n),e(o))}function M(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b||((0,s.PN)("USPAPI consentManagement module has been activated".concat(n?"":" using default values (api: '".concat(P,"', timeout: ").concat(S,"ms)"))),b=!0,f.nX.enable()),D()}u.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.usp)&&"object"===(0,c.Z)(n)||(0,s.yN)("consentManagement.usp config not defined, using defaults"),n&&(0,s.d8)(n.cmpApi)?P=n.cmpApi:(P=v,(0,s.PN)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(v,")."))),n&&(0,s.hj)(n.timeout)?S=n.timeout:(S=50,(0,s.PN)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),"static"===P&&((0,s.PO)(n.consentData)&&(0,s.PO)(n.consentData.getUSPData)?(n.consentData.getUSPData.uspString&&(a={usPrivacy:n.consentData.getUSPData.uspString}),S=0):(0,s.H)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),M(!0)}(n.consentManagement)})),(0,p.v5)("requestBids").before(h,50),d.S.before((function(n,t){return n(t.then((function(n){var t=f.nX.getConsentData();return t&&(0,r.N)(n,"regs.ext.us_privacy",t),n})))})),(0,i.z)("consentManagementUsp")}},function(n){n.O(0,[7968,5823,9270],(function(){return t=9099,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6406],{241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(2982),_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4942),_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(8640),_src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4358),_src_utils_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(5730),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4699),_src_config_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3193),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4679),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5164),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5102),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7673),_src_Renderer_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(5706),_src_video_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(154),_src_ajax_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(8928);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,n=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){n=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(n)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var GVLID=91,ADAPTER_VERSION=36,BIDDER_CODE="criteo",CDB_ENDPOINT="https://bidder.criteo.com/cdb",PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,storage=(0,_src_storageManager_js__WEBPACK_IMPORTED_MODULE_2__.df)({bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=144,FAST_BID_VERSION_LATEST="latest",FAST_BID_VERSION_NONE="none",PUBLISHER_TAG_URL_TEMPLATE="https://static.criteo.net/js/ld/publishertag.prebid"+FAST_BID_VERSION_PLACEHOLDER+".js",PUBLISHER_TAG_OUTSTREAM_SRC="https://static.criteo.net/js/ld/publishertag.renderer.js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.Mk,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5],getUserSyncs:function(e,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=a.gppString,s=void 0===o?"":o,n=a.applicableSections,_=void 0===n?[]:n;if(e.iframeEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__.h)(r)){var d=_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.fastBidVersion");if(canFastBid(d))return[];var c=(0,_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_6__.nH)(),p="criteoPrebidAdapter",u=[];if(u.push("origin=".concat(p)),u.push("topUrl=".concat(c.domain)),r&&(r.gdprApplies&&u.push("gdpr=".concat(1==r.gdprApplies?1:0)),r.consentString&&u.push("gdpr_consent=".concat(r.consentString))),i&&u.push("us_privacy=".concat(i)),u.push("gpp=".concat(s)),Array.isArray(_)){var l,v=_createForOfIteratorHelper(_);try{for(v.s();!(l=v.n()).done;){var f=l.value;u.push("gpp_sid=".concat(f))}}catch(e){v.e(e)}finally{v.f()}}var h=Math.random().toString(),m={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:storage.cookiesAreEnabled(),lsw:storage.localStorageIsEnabled(),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:p,requestId:h,tld:c.domain,topUrl:c.domain,version:"8.52.2".replace(/\./g,"_")};window.addEventListener("message",(function e(t){if(t.data&&"https://gum.criteo.com"==t.origin&&t.data.requestId===h){this.removeEventListener("message",e),t.stopImmediatePropagation();var r=t.data;r.optout?(deleteFromAllStorages(BUNDLE_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):r.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,r.bundle,GUID_RETENTION_TIME_HOUR)}}),!0);var E=JSON.stringify(m).replace(/"/g,"%22");return[{type:"iframe",url:"https://gum.criteo.com/syncframe?".concat(u.join("&"),"#").concat(E)}]}if(e.pixelEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__.h)(r)){var T=[];if(T.push("profile=207"),r&&(!0===r.gdprApplies&&T.push("gdprapplies=true"),r.consentString&&T.push("gdpr=".concat(r.consentString))),i&&T.push("ccpa=".concat(i)),T.push("gpp=".concat(s)),Array.isArray(_)){var b,O=_createForOfIteratorHelper(_);try{for(O.s();!(b=O.n()).done;){var y=b.value;T.push("gpp_sid=".concat(y))}}catch(e){O.e(e)}finally{O.f()}}return[{type:"image",url:"https://ssp-sync.criteo.com/user-sync/redirect?".concat(T.join("&"))}]}return[]},isBidRequestValid:function(e){return!(!e||!e.params||!e.params.zoneId&&!e.params.networkId)&&!(hasVideoMediaType(e)&&!hasValidVideoMediaType(e))},buildRequests:function(e,t){var r,i,a,o,s=t.ortb2||{};Object.assign(t,{publisherExt:null===(r=s.site)||void 0===r?void 0:r.ext,userExt:null===(i=s.user)||void 0===i?void 0:i.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.ceh"),coppa:_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("coppa")});var n=_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.fastBidVersion"),_=canFastBid(n);if(!publisherTagAvailable()&&_){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var d=getFastBidUrl(n);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__.B)(d,BIDDER_CODE)}),t.timeout)}if(publisherTagAvailable()){var c=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,e,t,"8.52.2",{createOutstreamVideoRenderer:createOutstreamVideoRenderer});a=c.buildCdbUrl(),o=c.buildCdbRequest()}else{var p=buildContext(e,t);a=buildCdbUrl(p),o=buildCdbRequest(p,e,t)}if(o)return{method:"POST",url:a,data:o,bidRequests:e}},interpretResponse:function(e,t){var r,i=e.body||e;if(publisherTagAvailable()){var a=Criteo.PubTag.Adapters.Prebid.GetAdapter(t);if(a)return a.interpretResponse(i,t)}var o=[],s=[];return i&&i.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.kJ)(i.slots)&&i.slots.forEach((function(r){var a=getAssociatedBidRequest(t.bidRequests,r);if(a){var s,n,_,d,c,p,u,l=a.bidId,v={requestId:l,cpm:r.cpm,currency:r.currency,netRevenue:!0,ttl:r.ttl||60,creativeId:r.creativecode,width:r.width,height:r.height,dealId:r.deal};if(null!==(s=i.ext)&&void 0!==s&&null!==(n=s.paf)&&void 0!==n&&n.transmission&&null!==(_=r.ext)&&void 0!==_&&null!==(d=_.paf)&&void 0!==d&&d.content_id){var f={content_id:r.ext.paf.content_id,transmission:e.ext.paf.transmission};v.meta=Object.assign({},v.meta,{paf:f})}if(r.adomain&&(v.meta=Object.assign({},v.meta,{advertiserDomains:[r.adomain].flat()})),null!==(c=r.ext)&&void 0!==c&&null!==(p=c.meta)&&void 0!==p&&p.networkName&&(v.meta=Object.assign({},v.meta,{networkName:r.ext.meta.networkName})),null!==(u=r.ext)&&void 0!==u&&u.dsa&&(v.meta=Object.assign({},v.meta,{dsa:r.ext.dsa})),r.native)a.params.nativeCallback?v.ad=createNativeAd(l,r.native,a.params.nativeCallback):(v.native=createPrebidNativeAd(r.native),v.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5);else if(r.video){v.vastUrl=r.displayurl,v.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(a,"mediaTypes.video.context")===_src_video_js__WEBPACK_IMPORTED_MODULE_10__.gZ&&(v.renderer=createOutstreamVideoRenderer(r))}else v.ad=r.creative;o.push(v)}})),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.kJ)(null===(r=i.ext)||void 0===r?void 0:r.igi)&&i.ext.igi.forEach((function(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.kJ)(null==e?void 0:e.igs)&&e.igs.forEach((function(e){s.push(e)}))})),s.length?{bids:o,fledgeAuctionConfigs:s}:o},onTimeout:function(e){if(publisherTagAvailable()&&Array.isArray(e)){var t=[];e.forEach((function(e){-1===t.indexOf(e.auctionId)&&(t.push(e.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidTimeout())}))}},onBidWon:function(e){publisherTagAvailable()&&e&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidWon(e)},onSetTargeting:function(e){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleSetTargeting(e)},onDataDeletionRequest:function(e){var t=readFromAllStorages(BUNDLE_COOKIE_NAME);t&&(deleteFromAllStorages(BUNDLE_COOKIE_NAME),(0,_src_ajax_js__WEBPACK_IMPORTED_MODULE_11__.hj)("https://privacy.criteo.com/api/privacy/datadeletionrequest",null,JSON.stringify({publisherUserId:t}),{contentType:"application/json",method:"POST"}))}};function readFromAllStorages(e){var t=storage.getCookie(e),r=storage.getDataFromLocalStorage(e);return t||r||void 0}function saveOnAllStorages(e,t,r){var i=new Date;i.setTime(i.getTime()+60*r*60*1e3);var a="expires=".concat(i.toUTCString());storage.setCookie(e,t,a),storage.setDataInLocalStorage(e,t)}function deleteFromAllStorages(e){storage.setCookie(e,"",0),storage.removeDataFromLocalStorage(e)}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e,t){var r,i="";t&&t.refererInfo&&(i=t.refererInfo.page);var a=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.en)(null==t||null===(r=t.refererInfo)||void 0===r?void 0:r.topmostLocation).search,o={url:i,debug:"1"===a.pbt_debug,noLog:"1"===a.pbt_nolog,amp:!1};return e.forEach((function(e){"amp"===e.params.integrationMode&&(o.amp=!0)})),o}function buildCdbUrl(e){var t=CDB_ENDPOINT;t+="?profileId="+PROFILE_ID_INLINE,t+="&av="+String(ADAPTER_VERSION),t+="&wv="+encodeURIComponent("8.52.2"),t+="&cb="+String(Math.floor(99999999999*Math.random())),storage.localStorageIsEnabled()?t+="&lsavail=1":t+="&lsavail=0",e.amp&&(t+="&im=1"),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1");var r=readFromAllStorages(BUNDLE_COOKIE_NAME);return r&&(t+="&bundle=".concat(r)),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(t+="&optout=1"),t}function checkNativeSendId(e){return!(e.nativeParams&&(e.nativeParams.image&&(!0!==e.nativeParams.image.sendId||!0===e.nativeParams.image.sendTargetingKeys)||e.nativeParams.icon&&(!0!==e.nativeParams.icon.sendId||!0===e.nativeParams.icon.sendTargetingKeys)||e.nativeParams.clickUrl&&(!0!==e.nativeParams.clickUrl.sendId||!0===e.nativeParams.clickUrl.sendTargetingKeys)||e.nativeParams.displayUrl&&(!0!==e.nativeParams.displayUrl.sendId||!0===e.nativeParams.displayUrl.sendTargetingKeys)||e.nativeParams.privacyLink&&(!0!==e.nativeParams.privacyLink.sendId||!0===e.nativeParams.privacyLink.sendTargetingKeys)||e.nativeParams.privacyIcon&&(!0!==e.nativeParams.privacyIcon.sendId||!0===e.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(e,t,r){var i,a,o,s,n,_,d,c,p,u,l,v,f,h,m,E,T,b,O=Object.assign({},{coppa:!0===r.coppa?1:!1===r.coppa?0:void 0},null===(i=r.ortb2)||void 0===i?void 0:i.regs),y={id:(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.DO)(),publisher:{url:e.url,ext:r.publisherExt},regs:O,slots:t.map((function(e){var t,i,a,o;E||(E=e.userIdAsEids),f=e.params.networkId||f,h=e.params.pubid||h,m=e.schain||m;var s={slotid:e.bidId,impid:e.adUnitCode,transactionid:null===(t=e.ortb2Imp)||void 0===t||null===(i=t.ext)||void 0===i?void 0:i.tid};if(e.params.zoneId&&(s.zoneid=e.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"ortb2Imp.ext")&&(s.ext=e.ortb2Imp.ext),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"ortb2Imp.rwdd")&&(s.rwdd=e.ortb2Imp.rwdd),e.params.ext&&(s.ext=Object.assign({},s.ext,e.params.ext)),null!==(a=e.nativeOrtbRequest)&&void 0!==a&&a.assets&&(s.ext=Object.assign({},s.ext,{assets:e.nativeOrtbRequest.assets})),e.params.uid&&(s.ext=Object.assign({},s.ext,{bidder:{uid:e.params.uid}})),e.params.publisherSubId&&(s.publishersubid=e.params.publisherSubId),(e.params.nativeCallback||hasNativeMediaType(e))&&(s.native=!0,checkNativeSendId(e)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.yN)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)")),hasBannerMediaType(e)?s.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.banner.sizes"),parseSize):s.sizes=[],hasVideoMediaType(e)){var n={context:e.mediaTypes.video.context,playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video.playerSize"),parseSize),mimes:e.mediaTypes.video.mimes,protocols:e.mediaTypes.video.protocols,maxduration:e.mediaTypes.video.maxduration,api:e.mediaTypes.video.api,skip:e.mediaTypes.video.skip,placement:e.mediaTypes.video.placement,minduration:e.mediaTypes.video.minduration,playbackmethod:e.mediaTypes.video.playbackmethod,startdelay:e.mediaTypes.video.startdelay,plcmt:e.mediaTypes.video.plcmt,w:e.mediaTypes.video.w,h:e.mediaTypes.video.h,linearity:e.mediaTypes.video.linearity,skipmin:e.mediaTypes.video.skipmin,skipafter:e.mediaTypes.video.skipafter,minbitrate:e.mediaTypes.video.minbitrate,maxbitrate:e.mediaTypes.video.maxbitrate,delivery:e.mediaTypes.video.delivery,pos:e.mediaTypes.video.pos,playbackend:e.mediaTypes.video.playbackend,adPodDurationSec:e.mediaTypes.video.adPodDurationSec,durationRangeSec:e.mediaTypes.video.durationRangeSec},_=e.params.video;void 0!==_&&(n.skip=n.skip||_.skip||0,n.placement=n.placement||_.placement,n.minduration=n.minduration||_.minduration,n.playbackmethod=n.playbackmethod||_.playbackmethod,n.startdelay=n.startdelay||_.startdelay||0),s.video=n}return enrichSlotWithFloors(s,e),!r.fledgeEnabled&&null!==(o=s.ext)&&void 0!==o&&o.ae&&delete s.ext.ae,s}))};(f&&(y.publisher.networkid=f),y.source={tid:null===(a=r.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},m&&(y.source.ext={schain:m}),y.user=(null===(s=r.ortb2)||void 0===s?void 0:s.user)||{},y.site=(null===(n=r.ortb2)||void 0===n?void 0:n.site)||{},y.app=(null===(_=r.ortb2)||void 0===_?void 0:_.app)||{},h&&(y.site.publisher=_objectSpread(_objectSpread({},y.site.publisher),{id:h}),y.app.publisher=_objectSpread(_objectSpread({},y.app.publisher),{id:h})),y.device=(null===(d=r.ortb2)||void 0===d?void 0:d.device)||{},r&&r.ceh&&(y.user.ceh=r.ceh),r&&r.gdprConsent&&(y.gdprConsent={},void 0!==r.gdprConsent.gdprApplies&&(y.gdprConsent.gdprApplies=!!r.gdprConsent.gdprApplies),y.gdprConsent.version=r.gdprConsent.apiVersion,void 0!==r.gdprConsent.consentString&&(y.gdprConsent.consentData=r.gdprConsent.consentString)),r&&r.uspConsent&&(y.user.uspIab=r.uspConsent),r&&null!==(c=r.ortb2)&&void 0!==c&&null!==(p=c.device)&&void 0!==p&&p.sua)&&(y.user.ext=y.user.ext||{},y.user.ext.sua=(null===(T=r.ortb2)||void 0===T||null===(b=T.device)||void 0===b?void 0:b.sua)||{});return E&&(y.user.ext=y.user.ext||{},y.user.ext.eids=(0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__.Z)(E)),r&&null!==(u=r.ortb2)&&void 0!==u&&u.bcat&&(y.bcat=r.ortb2.bcat),r&&null!==(l=r.ortb2)&&void 0!==l&&l.badv&&(y.badv=r.ortb2.badv),r&&null!==(v=r.ortb2)&&void 0!==v&&v.bapp&&(y.bapp=r.ortb2.bapp),y.tmax=r.timeout,y}function parseSizes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return null==e?[]:Array.isArray(e[0])?e.map((function(e){return t(e)})):[t(e)]}function parseSize(e){return e[0]+"x"+e[1]}function hasVideoMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video")}function hasBannerMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.banner")}function hasNativeMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.native")}function hasValidVideoMediaType(e){var t=!0;return["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(r){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video."+r)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"params.video."+r)&&(t=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.H)("Criteo Bid Adapter: mediaTypes.video."+r+" is required"))})),t}function createPrebidNativeAd(e){return{sendTargetingKeys:!1,title:e.products[0].title,body:e.products[0].description,sponsoredBy:e.advertiser.description,icon:e.advertiser.logo,image:e.products[0].image,clickUrl:e.products[0].click_url,privacyLink:e.privacy.optout_click_url,privacyIcon:e.privacy.optout_image_url,cta:e.products[0].call_to_action,price:e.products[0].price,impressionTrackers:e.impression_pixels.map((function(e){return e.url}))}}function createNativeAd(e,t,r){var i="criteo_prebid_native_slots";return window[i]=window[i]||{},window[i][e]={callback:r,payload:t},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n  if(!slots){continue;}\n  var responseSlot = slots["').concat(e,'"];\n  responseSlot.callback(responseSlot.payload);\n  break;\n}\n<\/script>')}function pickAvailableGetFloorFunc(e){if(e.getFloor)return e.getFloor;if(e.params.bidFloor&&e.params.bidFloorCur)try{var t=parseFloat(e.params.bidFloor);return function(){return{currency:e.params.bidFloorCur,floor:t}}}catch(e){}}function enrichSlotWithFloors(e,t){try{var r={},i=pickAvailableGetFloorFunc(t);if(i){var a,o,s;if(null!==(a=t.mediaTypes)&&void 0!==a&&a.banner)r.banner={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(t,"mediaTypes.banner.sizes")).forEach((function(e){return r.banner[parseSize(e).toString()]=i.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.Mk})}));if(null!==(o=t.mediaTypes)&&void 0!==o&&o.video)r.video={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(t,"mediaTypes.video.playerSize")).forEach((function(e){return r.video[parseSize(e).toString()]=i.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX})}));null!==(s=t.mediaTypes)&&void 0!==s&&s.native&&(r.native={},r.native["*"]=i.call(t,{size:"*",mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5})),Object.keys(r).length>0&&(e.ext||(e.ext={}),Object.assign(e.ext,{floors:r}))}}catch(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.H)("Could not parse floors from Prebid: "+e)}}function canFastBid(e){return e!==FAST_BID_VERSION_NONE}function getFastBidUrl(e){var t;if(e===FAST_BID_VERSION_LATEST)t="";else if(e){String(e).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.yN)("Specifying a Fastbid version which is not supporting version selection."),t="."+e}else t="."+FAST_BID_VERSION_CURRENT;return PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,t)}function createOutstreamVideoRenderer(e){if(void 0!==e.ext.videoPlayerConfig&&void 0!==e.ext.videoPlayerType){var t=_src_Renderer_js__WEBPACK_IMPORTED_MODULE_13__.Th.install({url:PUBLISHER_TAG_OUTSTREAM_SRC,config:{documentResolver:function(e,t,r){return null!=r?r:t}}});return t.setRender((function(t,r){var i={slotid:e.impid,vastUrl:e.displayurl,vastXml:e.creative,documentContext:r},a=e.ext.videoPlayerConfig;window.CriteoOutStream[e.ext.videoPlayerType].play(i,a)})),t}}function getAssociatedBidRequest(e,t){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.adUnitCode===t.impid){var o,s;if(a.params.zoneId&&parseInt(a.params.zoneId)===t.zoneid)return a;if(t.native){if(null!==(s=a.mediaTypes)&&void 0!==s&&s.native||a.nativeParams)return a}else if(t.video){var n;if(null!==(n=a.mediaTypes)&&void 0!==n&&n.video)return a}else if(null!==(o=a.mediaTypes)&&void 0!==o&&o.banner||a.sizes)return a}}}catch(e){i.e(e)}finally{i.f()}}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.yN)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_1__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.PN)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.yN)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(e){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_14__.dX)(spec),(0,_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_15__.z)("criteoBidAdapter")},4611:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){null!==e&&this.fromHexString(e)}return e.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var e,t=!1,r="",i=this.t,a=this.DB-i*this.DB%4;if(i-- >0)for(a<this.DB&&(e=this[i]>>a)>0&&(t=!0,r=c(e));i>=0;)a<4?(e=(this[i]&(1<<a)-1)<<4-a,e|=this[--i]>>(a+=this.DB-4)):(e=this[i]>>(a-=4)&15,a<=0&&(a+=this.DB,--i)),e>0&&(t=!0),t&&(r+=c(e));return t?r:"0"},e.prototype.fromHexString=function(t){if(null!==t){this.t=0,this.s=0;for(var r=t.length,i=!1,a=0;--r>=0;){var o=d(t,r);o<0?"-"==t.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+4>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=4)>=this.DB&&(a-=this.DB))}0,this.clamp(),i&&e.ZERO.subTo(this,this)}},e.prototype.negate=function(){var t=a();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.mod=function(t){var r=a();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM,n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},e.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.multiplyTo=function(t,r){var i=this.abs(),a=t.abs(),o=i.t;for(r.t=o+a.t;--o>=0;)r[o]=0;for(o=0;o<a.t;++o)r[o+i.t]=i.am(0,a[o],r,o,0,i.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.divRemTo=function(t,r,i){var s=t.abs();if(!(s.t<=0)){var n=this.abs();if(n.t<s.t)return null!=r&&r.fromHexString("0"),void(null!=i&&this.copyTo(i));null==i&&(i=a());var _=a(),d=this.s,c=t.s,p=this.DB-o(s[s.t-1]);p>0?(s.lShiftTo(p,_),n.lShiftTo(p,i)):(s.copyTo(_),n.copyTo(i));var u=_.t,l=_[u-1];if(0!=l){var v=l*(1<<this.F1)+(u>1?_[u-2]>>this.F2:0),f=this.FV/v,h=(1<<this.F1)/v,m=1<<this.F2,E=i.t,T=E-u,b=null==r?a():r;for(_.dlShiftTo(T,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),e.ONE.dlShiftTo(u,b),b.subTo(_,_);_.t<u;)_[_.t++]=0;for(;--T>=0;){var O=i[--E]==l?this.DM:Math.floor(i[E]*f+(i[E-1]+m)*h);if((i[E]+=_.am(0,O,i,T,0,u))<O)for(_.dlShiftTo(T,b),i.subTo(b,i);i[E]<--O;)i.subTo(b,i)}null!=r&&(i.drShiftTo(u,r),d!=c&&e.ZERO.subTo(r,r)),i.t=u,i.clamp(),p>0&&i.rShiftTo(p,i),d<0&&e.ZERO.subTo(i,i)}}},e.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<a,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<a),t.t=this.t-r,t.clamp()}},e.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.subTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new p(t):new u(t),this.exp(e,r)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var i=a(),s=a(),n=r.convert(this),_=o(t)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,s),(t&1<<_)>0)r.mulTo(s,n,i);else{var d=i;i=s,s=d}return r.revert(i)},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},e.prototype.am1=function(e,t,r,i,a,o){for(;--o>=0;){var s=t*this[e++]+r[i]+a;a=Math.floor(s/67108864),r[i++]=67108863&s}return a},e.prototype.am2=function(e,t,r,i,a,o){for(var s=32767&t,n=t>>15;--o>=0;){var _=32767&this[e],d=this[e++]>>15,c=n*_+d*s;a=((_=s*_+((32767&c)<<15)+r[i]+(1073741823&a))>>>30)+(c>>>15)+n*d+(a>>>30),r[i++]=1073741823&_}return a},e.prototype.am3=function(e,t,r,i,a,o){for(var s=16383&t,n=t>>14;--o>=0;){var _=16383&this[e],d=this[e++]>>14,c=n*_+d*s;a=((_=s*_+((16383&c)<<14)+r[i]+a)>>28)+(c>>14)+n*d,r[i++]=268435455&_}return a},e}();function a(){return new i(null)}function o(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}t.BigInteger=i,t.nbi=a,t.nbits=o;var s,n,_=[];for(s="0".charCodeAt(0),n=0;n<=9;++n)_[s++]=n;for(s="a".charCodeAt(0),n=10;n<36;++n)_[s++]=n;for(s="A".charCodeAt(0),n=10;n<36;++n)_[s++]=n;function d(e,t){var r=_[e.charCodeAt(t)];return null==r?-1:r}t.intAt=d;function c(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}t.int2char=c;t.b64toHex=function(e){var t,r="",i=0,a=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t));o<0||(0==i?(r+=c(o>>2),a=3&o,i=1):1==i?(r+=c(a<<2|o>>4),a=15&o,i=2):2==i?(r+=c(a),r+=c(o>>2),a=3&o,i=3):(r+=c(a<<2|o>>4),r+=c(15&o),i=0))}return 1==i&&(r+=c(a<<2)),r},t.removeExtraSymbols=function(e){return e.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),u=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=a();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(i.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=a();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function l(e){var t=a();return t.fromHexString(e.toString()),t}t.nbv=l,i.ZERO=l(0),i.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52},4950:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.hash=function(t){t=e.utf8Encode(t||"");for(var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=(t+=String.fromCharCode(128)).length/4+2,o=Math.ceil(a/16),s=new Array(o),n=0;n<o;n++){s[n]=new Array(16);for(var _=0;_<16;_++)s[n][_]=t.charCodeAt(64*n+4*_)<<24|t.charCodeAt(64*n+4*_+1)<<16|t.charCodeAt(64*n+4*_+2)<<8|t.charCodeAt(64*n+4*_+3)<<0}var d=8*(t.length-1)/Math.pow(2,32),c=8*(t.length-1)>>>0;s[o-1][14]=Math.floor(d),s[o-1][15]=c;for(n=0;n<o;n++){for(var p=new Array(64),u=0;u<16;u++)p[u]=s[n][u];for(u=16;u<64;u++)p[u]=e.q1(p[u-2])+p[u-7]+e.q0(p[u-15])+p[u-16]>>>0;var l=i[0],v=i[1],f=i[2],h=i[3],m=i[4],E=i[5],T=i[6],b=i[7];for(u=0;u<64;u++){var O=b+e.z1(m)+e.Ch(m,E,T)+r[u]+p[u],y=e.z0(l)+e.Maj(l,v,f);b=T,T=E,E=m,m=h+O>>>0,h=f,f=v,v=l,l=O+y>>>0}i[0]=i[0]+l>>>0,i[1]=i[1]+v>>>0,i[2]=i[2]+f>>>0,i[3]=i[3]+h>>>0,i[4]=i[4]+m>>>0,i[5]=i[5]+E>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+b>>>0}var g=new Array(i.length);for(b=0;b<i.length;b++)g[b]=("00000000"+i[b].toString(16)).slice(-8);return g.join("")},e.utf8Encode=function(e){try{return(new TextEncoder).encode(e).reduce((function(e,t){return e+String.fromCharCode(t)}),"")}catch(t){return unescape(encodeURIComponent(e))}},e.ROTR=function(e,t){return t>>>e|t<<32-e},e.z0=function(t){return e.ROTR(2,t)^e.ROTR(13,t)^e.ROTR(22,t)},e.z1=function(t){return e.ROTR(6,t)^e.ROTR(11,t)^e.ROTR(25,t)},e.q0=function(t){return e.ROTR(7,t)^e.ROTR(18,t)^t>>>3},e.q1=function(t){return e.ROTR(17,t)^e.ROTR(19,t)^t>>>10},e.Ch=function(e,t,r){return e&t^~e&r},e.Maj=function(e,t,r){return e&t^e&r^t&r},e}();t.Sha256=r},1582:function(e,t,r){var i=r(4611),a=r(4950);t.T=function(e,t,r,o){var s=new i.BigInteger(i.b64toHex(t)),n=new i.BigInteger(i.b64toHex(r)),_=s.modPowInt(o,n);return i.removeExtraSymbols(_.toHexString())===a.Sha256.hash(e)}}},function(e){e.O(0,[5823,9270],(function(){return t=241,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9073],{7713:function(e,o,n){var t=n(8640),r=n(4358),a=n(8928),c=n(5102),i=n(2797),l=n(5164),d=n(9633),u=n(4516),s="criteo",p=(0,l.df)({moduleType:d.y2,moduleName:s}),g="cto_bidid",v="cto_bundle",f="html5",m="cookie",b=new Date(0).toString(),y=new Date((0,r.AB)()+33696e6).toString();function I(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.en)(e,{noDecodeWholeURL:!0});return o?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function h(e,o){var n,t;return(null==e||null===(n=e.storage)||void 0===n?void 0:n.type)===f?p.getDataFromLocalStorage(o):(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)===m?p.getCookie(o):p.getCookie(o)||p.getDataFromLocalStorage(o)}function S(e,o,n,t){var r,a;o&&n&&((null==e||null===(r=e.storage)||void 0===r?void 0:r.type)===f?p.setDataInLocalStorage(o,n):((null==e||null===(a=e.storage)||void 0===a?void 0:a.type)===m||p.setDataInLocalStorage(o,n),C(o,n,y,t,!0)))}function C(e,o,n,t,r){for(var a=t.split("."),c=0;c<a.length;++c){var i=a.slice(a.length-c-1,a.length).join(".");try{if(p.setCookie(e,o,n,null,"."+i),r){var l=p.getCookie(e);if(l&&l===o)break}}catch(e){}}}function U(e,o,n){var t,i,l,d,s=(void 0===(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)||(null==e||null===(i=e.storage)||void 0===i?void 0:i.type)===m)&&p.cookiesAreEnabled(),y=(void 0===(null==e||null===(l=e.storage)||void 0===l?void 0:l.type)||(null==e||null===(d=e.storage)||void 0===d?void 0:d.type)===f)&&p.localStorageIsEnabled(),h=I((0,c.nH)().page),U=I(document.location.href,!0),w="undefined"!=typeof criteo_pubtag,D=function(e,o,n,t,r,a,c){var i="https://gum.criteo.com/sid/json?origin=prebid"+"".concat(e?"&topUrl="+encodeURIComponent(e):"")+"".concat(o?"&domain="+encodeURIComponent(o):"")+"".concat(n?"&bundle="+encodeURIComponent(n):"")+"".concat(t?"&info="+encodeURIComponent(t):"")+"".concat(r?"&cw=1":"")+"".concat(c?"&pbt=1":"")+"".concat(a?"&lsw=1":""),l=u.nX.getConsentData();l&&(i+="&us_privacy=".concat(encodeURIComponent(l)));var d=u.rp.getConsentData();d&&(i+="".concat(d.consentString?"&gdprString="+encodeURIComponent(d.consentString):""),i+="&gdpr=".concat(!0===d.gdprApplies?1:0));var s=u.TJ.getConsentData();return s&&(i+="".concat(s.gppString?"&gpp="+encodeURIComponent(s.gppString):""),i+="".concat(s.applicableSections?"&gpp_sid="+encodeURIComponent(s.applicableSections):"")),i}(h,U,o.bundle,o.dnaBundle,s,y,w),k={success:function(o){var t,c=JSON.parse(o);(c.pixels&&c.pixels.forEach((function(o){return function(e,o,n){n.writeBundleInStorage&&n.bundlePropertyName&&n.storageKeyName?(0,a.hj)(n.pixelUrl,{success:function(t){if(t){var r=JSON.parse(t);r&&r[n.bundlePropertyName]&&S(e,n.storageKeyName,r[n.bundlePropertyName],o)}},error:function(e){(0,r.H)("criteoIdSystem: unable to sync user id",e)}},void 0,{method:"GET",withCredentials:!0}):(0,r.hq)(n.pixelUrl)}(e,U,o)})),c.acwsUrl)?("string"==typeof c.acwsUrl?[c.acwsUrl]:c.acwsUrl).forEach((function(e){return(0,r.hq)(e)})):c.bundle&&S(e,v,c.bundle,U);if(c.bidId){S(e,g,c.bidId,U);var i={criteoId:c.bidId};n(i)}else C(t=g,"",b,U,!0),p.removeDataFromLocalStorage(t),n()},error:function(e){(0,r.H)("criteoIdSystem: unable to sync user id",e),n()}};(0,a.hj)(D,k,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}var w={name:s,gvlid:91,decode:function(e){return e},getId:function(e){var o=function(e){return{bundle:h(e,v),dnaBundle:h(e,"cto_dna_bundle"),bidId:h(e,g)}}(e);return{id:o.bidId?{criteoId:o.bidId}:void 0,callback:function(n){return U(e,o,n)}}},eids:{criteoId:{source:"criteo.com",atype:1}}};(0,i.Bx)("userId",w),(0,t.z)("criteoIdSystem")}},function(e){e.O(0,[5823,9270],(function(){return o=7713,e(e.s=o);var o}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7910],{3410:function(n,r,t){var e=t(8640),o=t(3193),u=t(2797),i=t(4358),a=t(8792),c=t(9128),f=[];var l=(0,c.g3)("fpd",(function(n,r){var t=this;(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.global,t=void 0===r?{}:r,e=n.bidder,u=void 0===e?{}:e,c=o.vc.getConfig("firstPartyData")||{},l=a.Z.resolve({global:t,bidder:u});return f.sort((function(n,r){return(n.queue||1)-(r.queue||1)})).forEach((function(n){l=l.then((function(r){var t=r.global,e=r.bidder;return a.Z.resolve(n.processFpd(c,{global:t,bidder:e})).catch((function(r){return(0,i.H)("Error in FPD module ".concat(n.name),r),{}})).then((function(n){return{global:n.global||t,bidder:n.bidder||e}}))}))})),l})(r.ortb2Fragments).then((function(e){Object.assign(r.ortb2Fragments,e),n.call(t,r)}))}));(0,u.bA)("firstPartyData",(function(n){f.push(n)})),(0,u.v5)("startAuction").before(l,10),(0,e.z)("fpdModule")}},function(n){n.O(0,[5823,9270],(function(){return r=3410,n(n.s=r);var r}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7083],{1498:function(e,n,r){var t=r(885),o=r(8640),u=r(4358),i=r(265),a=r(3193),c=r(3304),s=r(4516),l=r(2021),p=r(2200),f=r(9633),d=r(6310),v=r(571),g=r(4947);function y(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(!e)return;if("string"==typeof e)return h(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,n)}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:o}}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 u,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,u=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw u}}}}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var m={purpose:{},feature:{}},b={purpose:"purpose.consents",feature:"specialFeatureOptins"},w={storage:{type:"purpose",default:{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]},id:1},basicAds:{type:"purpose",id:2,default:{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},personalizedAds:{type:"purpose",id:4},measurement:{type:"purpose",id:7},transmitPreciseGeo:{type:"feature",id:1}},E=new Set,A=new Set,k=new Set,B=new Set,S=new Set,P=new Set,C=!1,O=!1,D=[f.UL,f.y2,f._U,f.XG],j="TCF2",I=[],Z=[2];function x(e,n,r){if(n){var t=a.vc.getConfig("gvlMapping");if(t&&t[n])return t[n];if(e===f.wu)return"cdep"===n?s.Lw:s.$P;var o=s.qh.get(n),i=o.gvlid,c=o.modules;if(null==i&&Object.keys(c).length>0){var l,p=y(D);try{for(p.s();!(l=p.n()).done;){var d=l.value;if(c.hasOwnProperty(d)){i=c[d],d!==e&&(0,u.yN)("Multiple GVL IDs found for module '".concat(n,"'; using the ").concat(d," module's ID (").concat(i,") instead of the ").concat(e,"'s ID (").concat(c[e],")"));break}}}catch(e){p.e(e)}finally{p.f()}}return null==i&&r&&(i=r()),i||null}return null}function F(e,n,r){return null==e&&s.rp.enabled?((0,u.yN)("Attempting operation that requires purpose ".concat(n," consent while consent data is not available").concat(r?" (module: ".concat(r,")"):"",". Assuming no consent was given.")),!0):e&&e.gdprApplies}function $(e,n,r,t){var o=!!(0,i.Z)(e,"vendorData.".concat(b[n],".").concat(r)),u=!!(0,i.Z)(e,"vendorData.vendor.consents.".concat(t));return"purpose"===n&&Z.includes(r)&&(o||(o=!!(0,i.Z)(e,"vendorData.purpose.legitimateInterests.".concat(r))),u||(u=!!(0,i.Z)(e,"vendorData.vendor.legitimateInterests.".concat(t)))),{purpose:o,vendor:u}}function N(e,n,r,t){var o=w[e.purpose];if((e.vendorExceptions||[]).includes(r))return!0;var u=e.enforceVendor&&!(t===s.$P||(e.softVendorExceptions||[]).includes(r)),a=$(n,o.type,o.id,t),c=a.purpose,l=a.vendor,p=(!e.enforcePurpose||c)&&(!u||l);return t===s.Lw&&(p=!e.enforcePurpose||!!(0,i.Z)(n,"vendorData.publisher.consents.".concat(o.id))),p}function M(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return null};return function(o){var u=s.rp.getConsentData(),i=o[d.bp];if(F(u,e,i)){var a=x(o[d.$k],i,t(o)),c=!!n(u,i,a);if(!c)return r&&r.add(i),{allow:c}}}}function T(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return null};return M(e,(function(n,r,t){return!!N(m.purpose[e],n,r,t)}),n,r)}function V(e){return function(n){if(n[d.$k]!==f.wu)return e(n)}}var L,U,q,G=(L=T(1,E),function(e){if(e[d.$k]!==f.wu||O)return L(e)}),_=T(1,E),z=T(1,E),H=V(T(2,A)),K=T(7,k,(function(e){return n=e[d.bp],r=e[d.Hw],function(e){if("function"!=typeof e)return e;try{return e.call(o.adapter,r)}catch(e){(0,u.H)("Error invoking ".concat(n," adapter.gvlid()"),e)}}(null==(o=c.ZP.getAnalyticsAdapter(n))||null===(t=o.adapter)||void 0===t?void 0:t.gvlid);var n,r,t,o})),R=T(4,B),X=V((U=M("2-10",(function(e,n,r){for(var t=2;t<=10;t++){var o,u,i,a;if(null!==(o=m.purpose[t])&&void 0!==o&&null!==(u=o.vendorExceptions)&&void 0!==u&&u.includes(n))return!0;var c=$(e,"purpose",t,r),s=c.purpose,l=c.vendor;if(s&&(l||null!==(i=m.purpose[t])&&void 0!==i&&null!==(a=i.softVendorExceptions)&&void 0!==a&&a.includes(n)))return!0}return!1}),S),q=T(4,S),function(){var e,n=null!==(e=m.purpose[4])&&void 0!==e&&e.eidsRequireP4Consent?q:U;return n.apply(this,arguments)})),J=M("Special Feature 1",(function(e,n,r){return N(m.feature[1],e,n,r)}),P);l.on(p.FP.AUCTION_END,(function(){var e=function(e){return Array.from(e.keys()).filter((function(e){return null!=e}))},n={storageBlocked:e(E),biddersBlocked:e(A),analyticsBlocked:e(k),ufpdBlocked:e(B),eidsBlocked:e(S),geoBlocked:e(P)};l.j8(p.FP.TCF2_ENFORCEMENT,n),[E,A,k,B,S,P].forEach((function(e){return e.clear()}))})),a.vc.getConfig("consentManagement",(function(e){return function(e){var n=(0,i.Z)(e,"gdpr.rules");n||(0,u.yN)("TCF2: enforcing P1 and P2 by default"),n=Object.fromEntries((n||[]).map((function(e){return[e.purpose,e]}))),O=!!(0,i.Z)(e,"strictStorageEnforcement"),Object.entries(w).forEach((function(e){var r,o=(0,t.Z)(e,2),u=o[0],i=o[1];m[i.type][i.id]=null!==(r=n[u])&&void 0!==r?r:i.default})),C||(null!=m.purpose[1]&&(C=!0,I.push((0,v.oB)(g.S1,j,G)),I.push((0,v.oB)(g.K$,j,_)),I.push((0,v.oB)(g.EL,j,z))),null!=m.purpose[2]&&I.push((0,v.oB)(g.UE,j,H)),null!=m.purpose[4]&&I.push((0,v.oB)(g.oK,j,R),(0,v.oB)(g.S5,j,R)),null!=m.purpose[7]&&I.push((0,v.oB)(g.x$,j,K)),null!=m.feature[1]&&I.push((0,v.oB)(g.g0,j,J)),I.push((0,v.oB)(g.e,j,X)))}(e.consentManagement)})),(0,o.z)("gdprEnforcement")}},function(e){e.O(0,[5823,9270],(function(){return n=1498,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8958],{2670:function(n,t,u){var o=u(8640),e=u(3193),s=u(7337),a=!1;e.vc.getConfig("consentManagement",(function(n){var t;null==(null==n||null===(t=n.consentManagement)||void 0===t?void 0:t.gpp)||a||((0,s.Ji)("usnat",[7]),a=!0)})),(0,o.z)("gppControl_usnat")}},function(n){n.O(0,[5051,5823,9270],(function(){return t=2670,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5093],{6875:function(n,t,e){var r=e(885),i=e(8640),o=e(3193),a=e(7337),s=e(6475),u=e(4358),c={Version:0,Gpc:0,SharingNotice:0,SaleOptOutNotice:0,SharingOptOutNotice:0,TargetedAdvertisingOptOutNotice:0,SensitiveDataProcessingOptOutNotice:0,SensitiveDataLimitUseNotice:0,SaleOptOut:0,SharingOptOut:0,TargetedAdvertisingOptOut:0,SensitiveDataProcessing:12,KnownChildSensitiveDataConsents:2,PersonalDataConsents:0,MspaCoveredTransaction:0,MspaOptOutOptionMode:0,MspaServiceProviderMode:0};function f(n){var t=n.nullify,e=void 0===t?[]:t,i=n.move,o=void 0===i?{}:i,a=n.fn,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return o=Object.fromEntries(Object.entries(o).map((function(n){var t=(0,r.Z)(n,2),e=t[0],i=t[1];return[e,Object.fromEntries(Object.entries(i).map((function(n){var t=(0,r.Z)(n,2),e=t[0],i=t[1];return[e,Array.isArray(i)?i:[i]]})).map((function(n){var t=(0,r.Z)(n,2),e=t[0];return[--e,t[1].map((function(n){return--n}))]})))]}))),function(n){var t=Object.fromEntries(Object.entries(u).map((function(t){var e=(0,r.Z)(t,2),i=e[0],a=e[1],s=null;if(a>0){if(s=Array(a).fill(null),Array.isArray(n[i])){var u=o[i]||{},c=[];n[i].forEach((function(n,t){var e=u.hasOwnProperty(t)?[u[t],!0]:[[t],!1],i=(0,r.Z)(e,2),o=i[0],f=i[1];o.forEach((function(t){t<a&&!c.includes(t)&&(s[t]=n,f&&c.push(t))}))}))}}else null!=n[i]&&(s=Array.isArray(n[i])?null:n[i]);return[i,s]})));return e.forEach((function(n){return(0,s.N)(t,n,null)})),a&&a(n,t),t}}function v(n,t){t.KnownChildSensitiveDataConsents=0===n.KnownChildSensitiveDataConsents?[0,0]:[1,1]}var l,p={7:function(n){return n},8:f({move:{SensitiveDataProcessing:{1:9,2:10,3:8,4:[1,2],5:12,8:3,9:4}},fn:function(n,t){n.KnownChildSensitiveDataConsents.some((function(n){return 0!==n}))&&(t.KnownChildSensitiveDataConsents=[1,1])}}),9:f({fn:v}),10:f({fn:v}),11:f({move:{SensitiveDataProcessing:{3:4,4:5,5:3}},fn:v}),12:f({fn:function(n,t){var e,r=n.KnownChildSensitiveDataConsents;e=r.some((function(n){return 0!==n}))?2===r[1]&&2===r[2]?[2,1]:[1,1]:[0,0],t.KnownChildSensitiveDataConsents=e}})},O={8:"usca",9:"usva",10:"usco",11:"usut",12:"usct"},d=(l=Object.keys(O).map(Number),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.sections,e=void 0===t?{}:t,r=n.sids,i=void 0===r?l:r;return i.map((function(n){var t=(0,u.qp)("Cannot set up MSPA controls for SID ".concat(n,":")),r=e[n]||{},i=r.normalizeAs||n;if(p.hasOwnProperty(i)){var o=r.name||O[n];if("string"==typeof o)return[o,[n],p[i]];t.logError("cannot determine GPP section name")}else t.logError("no normalization rules are known for SID ".concat(i))})).filter((function(n){return null!=n}))}),m=[];o.vc.getConfig("consentManagement",(function(n){var t,e=null===(t=n.consentManagement)||void 0===t?void 0:t.gpp;if(e){for(;m.length;)m.pop()();d((null==e?void 0:e.mspa)||{}).forEach((function(n){var t=(0,r.Z)(n,3),e=t[0],i=t[1],o=t[2];return m.push((0,a.Ji)(e,i,o))}))}})),(0,i.z)("gppControl_usstates")}},function(n){n.O(0,[5051,5823,9270],(function(){return t=6875,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5296],{6787:function(t,o,e){var n=e(8640),r=e(4358),a=e(6475),u=e(265),d=e(3193),c=e(2797),i=e(4614),s=void 0,f={},l=!1,p=function(t){var o=f.customGptSlotMatching;if((0,r.T9)()){var e=t.reduce((function(t,o){return t[o.code]=t[o.code]||[],t[o.code].push(o),t}),{});window.googletag.pubads().getSlots().forEach((function(t){var n=(0,i.sE)(Object.keys(e),o?o(t):(0,r.zV)(t));if(n){var u={name:"gam",adslot:v(t.getAdUnitPath())};e[n].forEach((function(t){var o,e,n;(0,a.N)(t,"ortb2Imp.ext.data.adserver",Object.assign({},null===(o=t.ortb2Imp)||void 0===o||null===(e=o.ext)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.adserver,u))}))}}))}},v=function(t){return(d.vc.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t},b=function(t,o){var e=t.ortb2Imp.ext.data;if(e.pbadslot)return e.pbadslot;if((0,r.T9)()){var n=window.googletag.pubads().getSlots().filter((function(t){return t.getAdUnitPath()===o}));if(0!==n.length)return 1===n.length?o:"".concat(o,"#").concat(t.code)}},g=function(t){var o=t.ortb2Imp.ext.data,e=f.customPbAdSlot;if(!o.pbadslot)if(e)o.pbadslot=e(t.code,(0,u.Z)(o,"adserver.adslot"));else{try{var n=document.getElementById(t.code);if(n.dataset.adslotid)return void(o.pbadslot=n.dataset.adslotid)}catch(t){}if(!(0,u.Z)(o,"adserver.adslot"))return o.pbadslot=t.code,!0;o.pbadslot=o.adserver.adslot}},m=function(t,o){p(o);var e=f,n=e.useDefaultPreAuction,r=e.customPreAuction;o.forEach((function(t){t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};var o=t.ortb2Imp.ext;if(r||n){var e,a=(0,u.Z)(o,"data.adserver.adslot");r?e=r(t,a):n&&(e=b(t,a)),e&&(o.gpid=o.data.pbadslot=e)}else{var d=g(t);o.gpid||d||(o.gpid=o.data.pbadslot)}}));for(var a=arguments.length,d=new Array(a>2?a-2:0),c=2;c<a;c++)d[c-2]=arguments[c];return t.call.apply(t,[s,o].concat(d))},h=function(t){(f=(0,r.ei)(t,["enabled",function(t){return!1!==t},"customGptSlotMatching",function(t){return"function"==typeof t&&t},"customPbAdSlot",function(t){return"function"==typeof t&&t},"customPreAuction",function(t){return"function"==typeof t&&t},"useDefaultPreAuction",function(t){return!0===t}])).enabled?l||((0,c.v5)("makeBidRequests").before(m),l=!0):((0,r.PN)("".concat("GPT Pre-Auction",": Turning off module")),f={},(0,c.v5)("makeBidRequests").getHooks({hook:m}).remove(),l=!1)};d.vc.getConfig("gptPreAuction",(function(t){return h(t.gptPreAuction)})),h({}),(0,n.z)("gptPreAuction")}},function(t){t.O(0,[5823,9270],(function(){return o=6787,t(t.s=o);var o}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[625],{5374:function(e,n,t){var r=t(4942),i=t(1002),o=t(885),a=t(8640),c=t(4679),d=t(4358),u=t(265),s=t(3193),p=t(5164),l=t(4614),f=t(4699);function m(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y="gumgum",h=(0,p.df)({bidderCode:y}),I={t:0,rq:8,pbv:"8.52.2"},w=[c.Mk,c.pX],S=["dac.co.jp","audigent.com","id5-sync.com","liveramp.com","intentiq.com","liveintent.com","crwdcntrl.net","quantcast.com","adserver.org","yahoo.com"],O={},j=null;function x(e){var n,r,i,o,a,c,u,s,p,l,f=function(e){return new RegExp("[?#&](".concat(e,"=(.*?))($|&)"),"i")},m={};try{r=(n=t.g.top).screen,i=e||""}catch(e){return(0,d.H)(e),m}return m={vw:n.innerWidth,vh:n.innerHeight,sw:r.width,sh:r.height,pu:(s=i,["ggad","ggdeal"].reduce((function(e,n){var t=s.match(f(n));return t?(t[1]&&(e=e.replace(t[1],"")),t[3]&&(e=e.replace(t[3],"")),e):e}),s)),ce:h.cookiesAreEnabled(),dpr:n.devicePixelRatio||1,jcsi:JSON.stringify(I),ogu:(u=(document&&document.getElementsByTagName("head")[0]).querySelector("meta[property='og:url']"),u?u.content:null)},p=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection),(c=(l=p&&(p.downlink||p.bandwidth))?Math.round(1024*l):null)&&(m.ns=c),(o=(i.match(f("ggad"))||[0,0,0])[2])&&(m[isNaN(o)?"eAdBuyId":"adBuyId"]=o),(a=(i.match(f("ggdeal"))||[0,0,0])[2])&&(m.ggdeal=a),m}function C(e,n){return e.replace("AD_JSON",window.btoa(JSON.stringify(n)))}function P(e){var n=0,t=0,r=0;return e.forEach((function(e){var i=(0,o.Z)(e,2),a=i[0],c=i[1],d=a>c?a:c;(d>r||d===r&&a>=n&&c>=t)&&(r=d,n=a,t=c)})),[n,t]}var k={code:y,gvlid:61,aliases:["gg"],isBidRequestValid:function(e){var n=e.params,t=e.adUnitCode,r=n.inScreen||n.inScreenPubID||n.inSlot||n.ICV||n.video||n.inVideo||n.slot||n.native||n.zone||n.pubID;if(O[r])return(0,d.yN)("[GumGum] Please check the implementation for ".concat(r," for the placement ").concat(t)),!1;switch(!0){case!!n.zone:case!!n.pubId:case!!n.inScreen:case!!n.inScreenPubID:case!!n.inSlot:case!!n.ICV:case!!n.video:case!!n.inVideo:case!!n.videoPubID:break;default:return(0,d.yN)("[GumGum] No product selected for the placement ".concat(t,", please check your implementation.")),!1}return!(n.bidfloor&&("number"!=typeof n.bidfloor||!isFinite(n.bidfloor)))||((0,d.yN)("[GumGum] bidfloor must be a Number"),!1)},buildRequests:function(e,n){var t=[],r=n&&n.gdprConsent,a=n&&n.uspConsent,c=n&&n.gppConsent,p=n&&n.timeout,l=!0===s.vc.getConfig("coppa")?1:0,f=n&&n.refererInfo&&n.refererInfo.page;return(0,d.yi)(e,(function(e){var s,g,v,y=e.bidId,h=e.mediaTypes,I=void 0===h?{}:h,w=e.params,O=void 0===w?{}:w,C=e.schain,k=e.userId,A=void 0===k?{}:k,D=e.ortb2Imp,z=e.adUnitCode,T=void 0===z?"":z,N=function(e,n,t){var r=Object.keys(e)[0]||"banner",i={floor:0,currency:"USD"};if("function"==typeof t.getFloor){var o=t.getFloor({mediaType:r,size:"*"}),a=o.currency,c=o.floor;c&&(i.floor=c),a&&(i.currency=a),n&&c&&"USD"===a&&(i.floor=Math.max(n,parseFloat(c)))}else n&&(i.floor=n);return i}(I,O.bidfloor,e),R=N.currency,U=N.floor,Z=function(e){var n=["uid","eid","lipbid","envelope"];return Object.keys(e).reduce((function(t,r){var o=e[r];switch((0,i.Z)(o)){case"string":t[r]=o;break;case"object":var a=n.filter((function(e){return o.hasOwnProperty(e)}));a.length&&(t[r]=o[a[0]])}return t}),{})}(A),q=(0,u.Z)(D,"ext.gpid")||(0,u.Z)(D,"ext.data.pbadslot"),G=[1,1],V={displaymanager:"Prebid.js - gumgum",displaymanagerver:"8.52.2"},E=new Date,F=E.getTime(),M=E.getTimezoneOffset();if(V.lt=F,V.to=M,A&&A.pubProvidedId){var J=function(e,n){var t=JSON.stringify(e);if(t.length<=n)return t;var r=e.slice(0,Math.floor(e.length*(n/t.length)));return JSON.stringify(r)}(A.pubProvidedId.filter((function(e){return S.includes(e.source)})),1800);V.pubProvidedId=J}for(var B in A&&A.id5id&&A.id5id.uid&&A.id5id.ext&&(V.id5Id=A.id5id.uid||null,V.id5IdLinkType=A.id5id.ext.linkType||null),T&&(V.aun=T),Z)V[B]=Z[B];if(I.banner?G=I.banner.sizes:I.video&&(G=I.video.playerSize,V=function(e){var n=e.minduration,t=e.maxduration,r=e.linearity,i=e.startdelay,a=e.placement,c=e.plcmt,u=e.protocols,s=void 0===u?[]:u,p=e.playerSize,l=void 0===p?[]:p,f=(0,d.sF)(l),m=f[0]&&f[0].split("x"),g=(0,o.Z)(m,2),v=g[0],b=g[1],y="";s.length&&(y=s.join(","));var h={mind:n,maxd:t,li:r,sd:i,pt:a,pr:y,viw:v,vih:b};return null!=c&&(h.vplcmt=c),h}(I.video)),q&&(V.gpid=q),j&&(V.pv=j),U&&(V.fp=U,V.fpc=R),n&&n.ortb2&&n.ortb2.site&&function(e,n,t){var r=function(e){if(e.content&&Array.isArray(e.content.data)){var n,t=m(e.content.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name.includes("iris.com")||r.name.includes("iris.tv"))return r.ext.cids.join(",")}}catch(e){t.e(e)}finally{t.f()}}return null}(n);r?e.irisid=r:t.irisid&&"string"==typeof t.irisid&&(e.irisid=t.irisid)}(V,n.ortb2.site,O),O.iriscat&&"string"==typeof O.iriscat&&(V.iriscat=O.iriscat),O.zone||O.pubId)if(O.zone?V.t=O.zone:V.pubId=O.pubId,V.pi=2,O.slot){var X=P(G),_=(0,o.Z)(X,2),H=_[0],L=_[1];V.maxw=H,V.maxh=L,V.si=O.slot,V.pi=3,V.bf=G.reduce((function(e,n){return"".concat(e).concat(e&&",").concat(n[0],"x").concat(n[1])}),"")}else O.native?(V.ni=O.native,V.pi=5):I.video?V.pi=2===I.video.linearity?6:7:O.product&&"skins"===O.product.toLowerCase()&&(V.pi=8);else V=b(b({},V),function(e,n){var t={};e.inScreenPubID&&(t.pubId=e.inScreenPubID,t.pi=2);e.inScreen&&(t.t=e.inScreen,t.pi=2);if(e.inSlot){var r=P(n),i=(0,o.Z)(r,2),a=i[0],c=i[1];t.maxw=a,t.maxh=c,t.si=e.inSlot,t.pi=3,t.bf=n.reduce((function(e,n){return"".concat(e).concat(e&&",").concat(n[0],"x").concat(n[1])}),"")}e.ICV&&(t.ni=e.ICV,t.pi=5);e.videoPubID&&(t.pubId=e.videoPubID,t.pi=7);e.video&&(t.t=e.video,t.pi=7);e.inVideo&&(t.t=e.inVideo,t.pi=6);return t}(O,G));r&&(V.gdprApplies=r.gdprApplies?1:0),V.gdprApplies&&(V.gdprConsent=r.consentString),a&&(V.uspConsent=a),c?(V.gppString=n.gppConsent.gppString?n.gppConsent.gppString:"",V.gppSid=Array.isArray(n.gppConsent.applicableSections)?n.gppConsent.applicableSections.join(","):""):!c&&null!=n&&null!==(s=n.ortb2)&&void 0!==s&&null!==(g=s.regs)&&void 0!==g&&g.gpp&&(V.gppString=n.ortb2.regs.gpp,V.gppSid=Array.isArray(n.ortb2.regs.gpp_sid)?n.ortb2.regs.gpp_sid.join(","):"");var $,W,K=(0,u.Z)(n,"ortb2.regs.ext.dsa");K&&(V.dsa=JSON.stringify(K)),l&&(V.coppa=l),C&&C.nodes&&(V.schain=(W="".concat(($=C).ver,",").concat($.complete),$.nodes.map((function(e){W+="!".concat(encodeURIComponent(e.asi||""),","),W+="".concat(encodeURIComponent(e.sid||""),","),W+="".concat(encodeURIComponent(e.hp||""),","),W+="".concat(encodeURIComponent(e.rid||""),","),W+="".concat(encodeURIComponent(e.name||""),","),W+="".concat(encodeURIComponent(e.domain||""))})),W)),t.push({id:y,tmax:p,tId:null==D||null===(v=D.ext)||void 0===v?void 0:v.tid,pi:V.pi,selector:O.selector,sizes:G,url:"https://g2.gumgum.com/hbid/imp",method:"GET",data:Object.assign(V,x(f))})})),t},interpretResponse:function(e,n){var t=[],r=e.body;if(!r||r.err){var i=n.data||{},a=i.si||i.ni||i.t||i.pubId,u=r?r.err.drt:18e5;O[a]={productId:i.pi,timestamp:(new Date).getTime()},setTimeout((function(){O[a]&&delete O[a]}),u),(0,d.yN)("[GumGum] Please check the implementation for ".concat(a))}var s=Object.assign({ad:{price:0,id:0,markup:"",width:0,height:0},pag:{pvid:0},meta:{adomain:[],mediaType:""}},r),p=s.ad,f=p.price,m=p.id,g=p.markup,v=p.cur,y=p.width,h=p.height,w=p.maxw,S=p.maxh,x=s.cw,P=s.pag.pvid,k=s.jcsi,A=s.meta,D=A.adomain,z=A.mediaType,T=n.data||{},N=T.pi,R=6===N||7===N?c.pX:c.Mk,U=3===N&&9===T.si,Z={advertiserDomains:D||[],mediaType:z||R},q=(0,d.sF)(n.sizes);if(w&&S)q=["".concat(w,"x").concat(S)];else if(5===N&&(0,l.q9)(q,"1x1"))q=["1x1"];else if(2===N&&(0,l.q9)(q,"1x1")||3===N){var G=n.sizes&&n.sizes.reduce((function(e,n){var t=(0,o.Z)(n,2),r=t[0],i=t[1];return y===r&&h===i&&e.push(n.join("x")),e}),[])||[];q=G.length?G:(0,d.sF)(n.sizes)}var V=q[0].split("x"),E=(0,o.Z)(V,2),F=E[0],M=E[1];return k&&(r.jcsi=I),j=P,m&&t.push(b(b({ad:x?C(x,Object.assign({},r,{bidRequest:n})):g},R===c.pX&&{ad:g,vastXml:g}),{},{mediaType:R,cpm:U?.1:f,creativeId:m,currency:v||"USD",height:M,netRevenue:!0,requestId:n.id,ttl:60,width:F,meta:Z})),t},getUserSyncs:function(e,n){return n.map((function(e){return e.body&&e.body.pxs&&e.body.pxs.scr||[]})).reduce((function(e,n){return e.concat(n)}),[]).map((function(e){return{type:"f"===e.t?"iframe":"image",url:e.u}}))},supportedMediaTypes:w};(0,f.dX)(k),(0,a.z)("gumgumBidAdapter")}},function(e){e.O(0,[5823,9270],(function(){return n=5374,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9114],{5407:function(e,t,i){var n=i(8640),r=i(4358),o=i(8928),a=i(2797),p=i(5164),s=i(9633),d=i(4516),c="identityLink",l=(0,p.df)({moduleType:s.y2,moduleName:c}),v="_lr_env",u={name:c,gvlid:97,decode:function(e){return{idl_env:e}},getId:function(e,t){var i=e&&e.params||{};if(i&&"string"==typeof i.pid){var n=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,o=n?t.consentString:"";if(!n||o&&""!==o){var a=d.TJ.getConsentData(),p=!(!a||!a.gppString)&&a.gppString,s=!!(a&&a.gppString&&a.applicableSections.length>0&&-1!==a.applicableSections[0])&&a.applicableSections[0],c=p&&s,u="https://api.rlcdn.com/api/identity/envelope?pid=".concat(i.pid).concat(n?"&ct=4&cv="+o:"").concat(c?"&gpp="+p+"&gpp_sid="+s:"");return{callback:function(e){if(window.ats&&window.ats.retrieveEnvelope)r.PN("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(r.PN("identityLink: An envelope can be retrieved from ATS!"),f(!0),e(JSON.parse(t).envelope)):g(u,e,i)}));else{var t=(n=l.getCookie(v)||l.getDataFromLocalStorage(v))?window.atob(n):void 0;t?(r.PN("identityLink: LiveRamp envelope successfully retrieved from storage!"),e(JSON.parse(t).envelope)):g(u,e,i)}var n}}}r.PN("identityLink: Consent string is required to call envelope API.")}else r.H("identityLink: requires partner id to be defined")},eids:{idl_env:{source:"liveramp.com",atype:3}}};function g(e,t,i){var n,a={success:function(e){var i;if(e)try{i=JSON.parse(e)}catch(e){r.PN(e)}t(i&&i.envelope?i.envelope:"")},error:function(e){r.PN("identityLink: identityLink: ID fetch encountered an error",e),t()}};i.notUse3P||l.getCookie("_lr_retry_request")||((n=new Date).setTime(n.getTime()+36e5),l.setCookie("_lr_retry_request","true",n.toUTCString()),r.PN("identityLink: A 3P retrieval is attempted!"),f(!1),(0,o.hj)(e,a,void 0,{method:"GET",withCredentials:!0}))}function f(e){var t=new Date;t.setTime(t.getTime()+2592e6),l.setCookie("_lr_env_src_ats",e,t.toUTCString())}(0,a.Bx)("userId",u),(0,n.z)("identityLinkIdSystem")}},function(e){e.O(0,[5823,9270],(function(){return t=5407,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[155],{3390:function(e,t,r){var i=r(885),n=r(2982),a=r(4942),o=r(1002),d=r(8640),s=r(265),p=r(4358),u=r(6475),c=r(4679),l=r(3193),f=r(5164),m=r(4614),v=r(4699),g=r(154),b=r(5706),y=r(75);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}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 a,o=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){d=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(d)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var w="ix",O="roundel",C=[c.Mk,c.pX,c.B5],U=[144,144],S={JPY:1},P="p",k="x",N={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},T={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID","id5-sync.com":"","crwdcntrl.net":"","epsilon.com":"","audigent.com":"","pubcid.org":"","utiq.com":"","criteo.com":"","euid.eu":"","intimatemerger.com":"","33across.com":"","liveintent.indexexchange.com":"","google.com":""},E=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId","pairId"],j=["mimes","minduration","maxduration"],D=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],A="".concat(w,"_features"),_=(0,f.df)({bidderCode:w}),B={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat","pbjs_allow_all_eids"],featureToggles:{},isFeatureEnabled:function(e){return(0,s.Z)(this.featureToggles,"features.".concat(e,".activated"),!1)},getFeatureToggles:function(){if(_.localStorageIsEnabled()){var e=(0,p.dj)(_.getDataFromLocalStorage(A));(0,s.Z)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){var t=e.body,r=new Date,i=(0,s.Z)(t,"ext.features");i&&(this.featureToggles={expiry:r.setHours(r.getHours()+1),features:i},_.localStorageIsEnabled()&&_.setDataInLocalStorage(A,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},_.localStorageIsEnabled()&&_.removeDataFromLocalStorage(A)}},F=0,X="",z="",R=!1,L=2;function q(e){var t=M(e,c.pX),r=(0,s.Z)(e,"mediaTypes.video"),i=(0,s.Z)(e,"params.video");if(V(r,i).length)return{};t.video=i?(0,p.I8)(e.params.video):{};var n=(0,s.Z)(e,"ortb2Imp.ext.tid");for(var a in n&&(0,u.N)(t,"ext.tid",n),function(e,t){if((0,s.Z)(t,"mediaTypes.video.context")===g.gZ){var r=(0,s.Z)(t,"mediaTypes.video.renderer");if(r||(r=(0,s.Z)(t,"renderer")),(0,s.Z)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(r&&"object"===(0,o.Z)(r)){if(void 0!==r.url){var i="";try{i=new URL(r.url).hostname}catch(e){return}i.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=r.url}}else e.displaymanager="ix"}}(t,e),re(t,e),r)-1===D.indexOf(a)||t.video.hasOwnProperty(a)||(t.video[a]=r[a]);if(t.video.minduration>t.video.maxduration)return(0,p.H)("IX Bid Adapter: video minduration [".concat(t.video.minduration,"] cannot be greater than video maxduration [").concat(t.video.maxduration,"]")),{};var d=i&&i.context||r&&r.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,p.U)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,p.yN)("IX Bid Adapter: video.plcmt [".concat(e.video.plcmt,"] must be an integer between 1-4 inclusive")),delete e.video.plcmt)}(t),d&&!t.video.hasOwnProperty("placement")&&(d===g.LD?t.video.placement=1:d===g.gZ?(0,s.Z)(i,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,R=!0):(0,p.yN)("IX Bid Adapter: Video context '".concat(d,"' is not supported"))),!t.video.w||!t.video.h){var l=$((0,s.Z)(t,"video.playerSize"))||$((0,s.Z)(e,"params.size"));if(!l)return(0,p.yN)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=l[0],t.video.h=l[1]}return H(e,t,c.pX),t}function M(e,t){var r={};if(r.id=e.bidId,fe()&&(0,s.Z)(e,"params.externalId")&&(0,u.N)(r,"ext.externalID",e.params.externalId),(0,s.Z)(e,"params.".concat(t,".siteId"))&&!isNaN(Number(e.params[t].siteId)))switch(t){case c.Mk:(0,u.N)(r,"ext.siteID",e.params.banner.siteId.toString());break;case c.pX:(0,u.N)(r,"ext.siteID",e.params.video.siteId.toString());break;case c.B5:(0,u.N)(r,"ext.siteID",e.params.native.siteId.toString())}else e.params.siteId&&(0,u.N)(r,"ext.siteID",e.params.siteId.toString());return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(0,u.N)(r,"ext.sid",String(e.params.id)),r}function H(e,t,r){var i=null,n=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,p.LQ)(e.getFloor)){var a="*",o="*";if(r&&(0,p.r3)(C,r)){var d=t[r];a=r,o=[d.w,d.h]}try{n=e.getFloor({mediaType:a,size:o})}catch(e){(0,p.yN)("priceFloors module call getFloor failed, error : ",e)}}var s=!1;n?(t.bidfloor=n.floor,t.bidfloorcur=n.currency,(0,u.N)(t,"ext.fl",P),s=!0):i&&(t.bidfloor=i.floor,t.bidfloorcur=i.currency,(0,u.N)(t,"ext.fl",k),s=!0),s&&(r==c.Mk?((0,u.N)(t,"banner.ext.bidfloor",t.bidfloor),(0,u.N)(t,"banner.ext.fl",t.ext.fl)):r==c.pX?((0,u.N)(t,"video.ext.bidfloor",t.bidfloor),(0,u.N)(t,"video.ext.fl",t.ext.fl)):((0,u.N)(t,"native.ext.bidfloor",t.bidfloor),(0,u.N)(t,"native.ext.fl",t.ext.fl)))}function J(e,t,r){var i,n={},a=!(!(0,s.Z)(e,"exp")||!(0,p.U)(e.exp)),o=(0,s.Z)(e,"dealid")||(0,s.Z)(e,"ext.dealid");S.hasOwnProperty(t)?n.cpm=e.price/S[t]:n.cpm=e.price/100,n.requestId=e.impid,o&&(n.dealId=o),n.netRevenue=true,n.currency=t,n.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=L||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(n.vastUrl=e.ext.vasturl):n.vastXml=e.adm;var d=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{d=JSON.parse(e.adm)}catch(e){(0,p.yN)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||e.mtype==L?(n.width=r.video.w,n.height=r.video.h,n.mediaType=c.pX,n.mediaTypes=r.mediaTypes,n.ttl=a?e.exp:3600):d&&d.native?(n.native={ortb:d.native},n.width=e.w?e.w:1,n.height=e.h?e.h:1,n.mediaType=c.B5,n.ttl=a?e.exp:3600):(n.ad=e.adm,n.width=e.w,n.height=e.h,n.mediaType=c.Mk,n.ttl=a?e.exp:300),n.meta={},n.meta.networkId=(0,s.Z)(e,"ext.dspid"),n.meta.brandId=(0,s.Z)(e,"ext.advbrandid"),n.meta.brandName=(0,s.Z)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(n.meta.advertiserDomains=e.adomain),null!==(i=e.ext)&&void 0!==i&&i.dsa&&(n.meta.dsa=e.ext.dsa),n}function G(e){return Array.isArray(e)&&2===e.length&&(0,p.U)(e[0])&&(0,p.U)(e[1])}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(G(e))return e[0]===t[0]&&e[1]===t[1];for(var r=0;r<e.length;r++)if(e[r][0]===t[0]&&e[r][1]===t[1])return!0;return!1}function V(e,t){var r=[];e||(0,p.yN)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,n=I(j);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=e&&e.hasOwnProperty(a),d=t&&t.hasOwnProperty(a);o||d||r.push("IX Bid Adapter: ".concat(a," is not included in either the adunit or params level"))}}catch(e){n.e(e)}finally{n.f()}var s=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),c=t&&t.hasOwnProperty("protocol"),l=t&&t.hasOwnProperty("protocols");return s||u||c||l||r.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),r}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return G(e)?e:!!G(e[0])&&e[0]}function Y(e,t,r){if(e)return h(h({},(0,m.sE)(r,(function(t){return t.bidId===e}))),(0,m.sE)(t,(function(t){return t.id===e})))}function K(e,t,r,i){var n="https://htlb.casalemedia.com/openrtb/pbjs",a=function(e){var t=[],r={};if((0,p.kJ)(e)){var i,n=I(e);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=T.hasOwnProperty(a.source),d=B.isFeatureEnabled("pbjs_allow_all_eids"),u=(0,s.Z)(a,"uids.0");if((o||d)&&u&&(r[a.source]=!0,o&&""!==T[a.source]&&(a.uids[0].ext={rtiPartner:T[a.source]}),delete a.uids[0].atype,t.push(a),t.length>=50))break}}catch(e){n.e(e)}finally{n.f()}}return{toSend:t,seenSources:r}}((0,s.Z)(e,"0.userIdAsEids")),d=a.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){var r=window.headertag.getIdentityInfo();if(r&&"object"===(0,o.Z)(r))for(var i in r){if(e.length>=50)return;if(r.hasOwnProperty(i)){var n=r[i];!n.responsePending&&n.data&&"object"===(0,o.Z)(n.data)&&Object.keys(n.data).length&&!t.seenSources[n.data.source]&&e.push(n.data)}}}(d,a),t&&t.bidderCode===O&&!a.seenSources["liveramp.com"])return[];var c=[],f=function(e){var t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=_.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);f=function(e,t){t.length>0&&(e.ext.features={},t.forEach((function(t){e.ext.features[t]={activated:B.isFeatureEnabled(t)}})));return e}(f,B.REQUESTED_FEATURE_TOGGLES);var m=function(e,t){var r,i=e.map((function(e){return e.adUnitCode})).filter((function(e,t,r){return r.indexOf(e)===t})),n=(0,s.Z)(e,"0.userIdAsEids",[]),a={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"8.52.2",userIds:ne(e[0]),url:window.location.href.split("?")[0],vpd:R,ae:t,eidLength:n.length},o=I(i);try{var d=function(){var t=r.value,i=e.filter((function(e){return e.adUnitCode===t}))[0];(0,s.Z)(i,"mediaTypes")&&(Object.keys(i.mediaTypes).length>1&&a.mfu++,(0,s.Z)(i,"mediaTypes.native")&&a.nu++,(0,s.Z)(i,"mediaTypes.banner")&&a.bu++,"outstream"===(0,s.Z)(i,"mediaTypes.video.context")&&(a.ou++,le(i)&&(a.ren=!0)),"instream"===(0,s.Z)(i,"mediaTypes.video.context")&&a.iu++,a.allu++)};for(o.s();!(r=o.n()).done;)d()}catch(e){o.e(e)}finally{o.f()}return a}(e,(0,s.Z)(t,"fledgeEnabled"));for(var v in m)f.ext.ixdiag[v]=m[v];f=function(e,t,r,i,n){var a,o,d=(0,s.Z)(t,"timeout");d&&(e.ext.ixdiag.tmax=d);l.vc.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=l.vc.getConfig("userSync").syncsPerBidder);e.ext.ixdiag.imps=Object.keys(r).length,e.source={tid:null==t||null===(a=t.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},i[0].schain&&(e.source.ext={},e.source.ext.schain=i[0].schain);n.length>0&&(e.user={},e.user.eids=n);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(f,t,r,e,d),f=function(e,t){if(t){t.gdprConsent&&((X=t.gdprConsent).hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:X.gdprApplies?1:0}}),X.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:X.consentString||""},X.hasOwnProperty("addtlConsent")&&X.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:X.addtlConsent}))),t.uspConsent&&((0,u.N)(e,"regs.ext.us_privacy",t.uspConsent),z=t.uspConsent);var r=(0,s.Z)(t,"refererInfo.page");r&&(e.site.page=r),t.gppConsent&&((0,u.N)(e,"regs.gpp",t.gppConsent.gppString),(0,u.N)(e,"regs.gpp_sid",t.gppConsent.applicableSections))}l.vc.getConfig("coppa")&&(0,u.N)(e,"regs.coppa",1);return e}(f,t);var g={};e[0].params.siteId&&(F=e[0].params.siteId,g.s=F);for(var b=Object.keys(r),y=!1,x=0;x<b.length&&!(c.length>=4);x++){f=W(r,b,f,x);var Z=(0,s.Z)(t,"ortb2")||{},w=h({},Z.site||Z.context);w.page=ee(t);var C=h({},Z.user);(0,p.xb)(Z)||y||((f=te(t,f,Z,w,C)).site=(0,p.Ee)({},f.site,w),f.user=(0,p.Ee)({},f.user,C),y=!0),f=ie(r,f,b,x,g,n);var U=x===b.length-1;if(f=be(f=ge(f=xe(f))),U){var S="".concat(n,"?");0!==F&&(S+="s=".concat(F)),fe()&&(S+=0!==F?"&":"",S+="p=".concat(l.vc.getConfig("exchangeId"))),c.push({method:"POST",url:S,data:(0,p.I8)(f),option:{contentType:"text/plain"},validBidRequests:e}),f.imp=[],y=!1}}return c}function W(e,t,r,i){var a=e[t[i]],o=a.missingImps,d=void 0===o?[]:o,l=a.ixImps,f={ixImps:void 0===l?[]:l,missingBannerImpressions:d},m=Object.keys(f).map((function(e){return f[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,t){return e.concat.apply(e,(0,n.Z)(t))}),[]),v=e[t[i]].gpid,g=e[t[i]].dfp_ad_unit_code,b=e[t[i]].tid,y=e[t[i]].sid,x=e[t[i]].ae,h=e[t[i]].paapi,I=m.filter((function(e){return c.Mk in e})),Z=m.filter((function(e){return!(c.Mk in e)}));if(I.length>0){var w=I.reduce((function(e,t){return e[t.adunitCode]||(e[t.adunitCode]=[]),e[t.adunitCode].push(t),e}),{});for(var O in w){for(var C=w[O],U=C[0],S=U.id,P=U.banner.topframe,k=(0,s.Z)(C[0],"ext.externalID"),N={id:S,banner:{topframe:P,format:C.map((function(e){var t=e.banner;return{w:t.w,h:t.h,ext:e.ext}}))}},T=0;T<N.banner.format.length;T++)null!=N.banner.format[T].ext&&(null!=N.banner.format[T].ext.sid&&delete N.banner.format[T].ext.sid,null!=N.banner.format[T].ext.externalID&&delete N.banner.format[T].ext.externalID),"bidfloor"in C[T]&&(N.banner.format[T].ext.bidfloor=C[T].bidfloor),"{}"===JSON.stringify(N.banner.format[T].ext)&&delete N.banner.format[T].ext;var E=e[t[i]].pos;(0,p.U)(E)&&(N.banner.pos=E),(g||v||b||y||x||k||h)&&(N.ext={},N.ext.dfp_ad_unit_code=g,N.ext.gpid=v,N.ext.tid=b,N.ext.sid=y,N.ext.externalID=k,1==x&&(N.ext.ae=1,N.ext.paapi=h)),"bidfloor"in C[0]&&(N.bidfloor=C[0].bidfloor),"bidfloorcur"in C[0]&&(N.bidfloorcur=C[0].bidfloorcur);var j=e[t[i]].adUnitFPD;j&&(0,u.N)(N,"ext.data",j),r.imp.push(N)}}return Z.length>0&&Z.forEach((function(e){if(v&&(0,u.N)(e,"ext.gpid",v),r.imp.length>0){var t=!1;r.imp.forEach((function(i,n){e.id===i.id&&c.pX in e?(i.video=e.video,i.video.ext=Object.assign({},e.video.ext,e.ext),(0,s.Z)(i,"video.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.video.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.video.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"video.ext.siteID")&&((0,u.N)(i,"ext.siteID",e.video.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0):e.id===i.id&&c.B5 in e&&(i.native=e.native,i.native.ext=Object.assign({},e.native.ext,e.ext),(0,s.Z)(i,"native.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.native.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.native.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"native.ext.siteID",!1)&&((0,u.N)(i,"ext.siteID",e.native.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0)})),t||r.imp.push(e)}else r.imp.push(e)})),r}function ee(e){var t=e&&e.bidderCode||"ix",r=l.vc.getConfig(t),n="";if((n=(0,s.Z)(e,"ortb2.site.page")?e.ortb2.site.page:(0,s.Z)(e,"refererInfo.page"),r)&&"object"===(0,o.Z)(r.firstPartyData))return function(e,t,r){var n;try{n=new URL(t)}catch(r){(0,p.yN)("IX Bid Adapter: Invalid URL set in ortb2.site.page: ".concat(t,". Using referer URL instead.")),n=new URL((0,s.Z)(e,"refererInfo.page"))}for(var a=new URLSearchParams(n.search),o=0,d=Object.entries(r);o<d.length;o++){var u=(0,i.Z)(d[o],2),c=u[0],l=u[1];a.has(c)||a.append(c,l)}return n.search=a.toString(),n.toString()}(e,n,r.firstPartyData);return n}function te(e,t,r,i,n){if(t.ext.ixdiag.fpd=!0,Object.keys(i).forEach((function(e){-1===N.SITE.indexOf(e)&&delete i[e]})),Object.keys(n).forEach((function(e){-1===N.USER.indexOf(e)&&delete n[e]})),r.device){var a=h({},r.device.sua);(0,p.xb)(a)||(0,u.N)(t,"device.sua",a)}var o;if(r.hasOwnProperty("regs")&&!e.gppConsent&&(r.regs.hasOwnProperty("gpp")&&"string"==typeof r.regs.gpp&&(0,u.N)(t,"regs.gpp",r.regs.gpp),r.regs.hasOwnProperty("gpp_sid")&&Array.isArray(r.regs.gpp_sid)&&(0,u.N)(t,"regs.gpp_sid",r.regs.gpp_sid),null!==(o=r.regs.ext)&&void 0!==o&&o.dsa)){var d=r.regs.ext.dsa,s={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,p.hj)(d[e])&&(s[e]=d[e])})),(0,p.kJ)(d.transparency)){var c=[];d.transparency.forEach((function(e){(0,p.PO)(e)&&(0,p.d8)(e.domain)&&""!=e.domain&&(0,p.kJ)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,p.hj)(e)}))&&c.push(e)})),c.length>0&&(s.transparency=c)}(0,p.xb)(s)||(0,u.N)(t,"regs.ext.dsa",s)}return t}function re(e,t){var r=(0,s.Z)(t,"ortb2Imp.ext.data");r&&(0,u.N)(e,"ext.data",r)}function ie(e,t,r,i,n,a){var o=e[r[i]].pbadslot,d=e[r[i]].tagId,s=e[r[i]].adUnitCode,p=e[r[i]].divId;return(o||d||s||p)&&(t.ext.ixdiag.pbadslot=o,t.ext.ixdiag.tagid=d,t.ext.ixdiag.adunitcode=s,t.ext.ixdiag.divId=p),t}function ne(e){var t=e.userId||{};return E.filter((function(e){return t[e]}))}function ae(e,t){if(t)for(var r=0;r<e.length;r++){var i=e[r];if(t[0]===i[0]&&t[1]===i[1]){e.splice(r,1);break}}}function oe(e,t){var r=function(e){var t=M(e,c.B5),r=e.nativeOrtbRequest;r.eventtrackers=[{event:1,methods:[1,2]}],r.privacy=1,t.native={request:JSON.stringify(r),ver:"1.2"};var i=(0,s.Z)(e,"ortb2Imp.ext.tid");return i&&(0,u.N)(t,"ext.tid",i),re(t,e),H(e,t,c.B5),t}(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,y.ky)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function de(e,t){var r=q(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,y.ky)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function se(e,t,r,i){var n=function(e){var t=M(e,c.Mk);t.banner={},t.adunitCode=e.adUnitCode;var r=(0,s.Z)(e,"params.size");return r&&(t.banner.w=r[0],t.banner.h=r[1]),t.banner.topframe=(0,p.yL)()?0:1,H(e,t,c.Mk),t}(e),a=Q((0,s.Z)(e,"mediaTypes.banner.sizes"),(0,s.Z)(e,"params.size"));if(r.hasOwnProperty(e.adUnitCode)||(r[e.adUnitCode]={}),r[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),r[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),r[e.adUnitCode].tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),r[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),r[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId"),r[e.adUnitCode].pos=(0,s.Z)(e,"mediaTypes.banner.pos"),(0,s.Z)(i,"fledgeEnabled")){var o=(0,s.Z)(e,"ortb2Imp.ext.ae"),d=(0,s.Z)(e,"ortb2Imp.ext.paapi");d&&(r[e.adUnitCode].paapi=d),o?(0,p.U)(o)?r[e.adUnitCode].ae=o:(0,p.yN)("error setting auction environment flag - must be an integer"):1==(0,s.Z)(i,"defaultForSlots")&&(r[e.adUnitCode].ae=1)}var u=(0,s.Z)(e,"ortb2Imp.ext.data");u&&(r[e.adUnitCode].adUnitFPD=u);var l=(0,s.Z)(e,"params.id");!l||"string"!=typeof l&&"number"!=typeof l||(r[e.adUnitCode].sid=String(l));var f=e.adUnitCode,m=document.getElementById(f)?f:(0,y.ky)(f).divId;r[e.adUnitCode].adUnitCode=f,r[e.adUnitCode].divId=m,a&&(r[e.adUnitCode].hasOwnProperty("ixImps")||(r[e.adUnitCode].ixImps=[]),r[e.adUnitCode].ixImps.push(n)),function(e,t,r){if(t.hasOwnProperty(e.adUnitCode)){var i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),ae(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if((0,s.Z)(e,"mediaTypes.banner.sizes")){var n=(0,p.I8)(e.mediaTypes.banner.sizes);ae(n,e.params.size);var a={missingSizes:n,impression:r};t[e.adUnitCode]=a}}(e,t,n)}function pe(e,t,r){var i=(0,p.I8)(t);return i.banner.w=r[0],i.banner.h=r[1],H(e,i,c.Mk),i}function ue(e){e.renderer.push((function(){var t=e.adUnitCode,r=document.getElementById(t)?t:(0,y.ky)(t).divId;r?window.createIXPlayer(r,e):(0,p.yN)("IX Bid Adapter: adUnitCode: ".concat(r," not found on page."))}))}function ce(e,t){var r=b.Th.install({id:e,url:t,loaded:!1});try{r.setRender(ue)}catch(e){return(0,p.yN)("Prebid Error calling setRender on renderer",e),null}return t?r:((0,p.yN)("Outstream renderer URL not found"),null)}function le(e){if("outstream"!==(0,s.Z)(e,"mediaTypes.video.context"))return!1;var t=(0,s.Z)(e,"mediaTypes.video.renderer");return t||(t=(0,s.Z)(e,"renderer")),!!("object"!==(0,o.Z)(t)||!t.url||!t.render)||t.backupOnly}function fe(){var e=l.vc.getConfig("exchangeId");return!("number"!=typeof e||!isFinite(e))||!("string"!=typeof e||""===e.trim()||!isFinite(Number(e)))}var me={code:w,gvlid:10,aliases:[{code:O,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:C,isBidRequestValid:function(e){var t,r,i=(0,s.Z)(e,"params.video"),n=(0,s.Z)(e,"params.size"),a=(0,s.Z)(e,"mediaTypes.banner.sizes"),o=(0,s.Z)(e,"mediaTypes.video"),d=(0,s.Z)(e,"mediaTypes.video.playerSize"),u=e.params.hasOwnProperty("bidFloor"),c=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,p.r3)(C,e.mediaType))return(0,p.yN)("IX Bid Adapter: media type is not supported."),!1;if((0,s.Z)(e,"mediaTypes.banner")&&!a)return!1;if(n){var l=$(n);if(!l)return(0,p.H)("IX Bid Adapter: size has invalid format."),!1;if(!Q(e.sizes,l)&&!Q(d,l)&&!Q(a,l))return(0,p.H)("IX Bid Adapter: bid size is not included in ad unit sizes or player size."),!1}if(!fe()&&null==e.params.siteId)return(0,p.H)("IX Bid Adapter: Invalid configuration - either siteId or exchangeId must be configured."),!1;if(void 0!==e.params.siteId){if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,p.H)("IX Bid Adapter: siteId must be string or number type."),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,p.H)("IX Bid Adapter: siteId must valid value"),!1}if((u||c)&&!(u&&c&&(t=e.params.bidFloor,r=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof r&&r.match(/^[A-Z]{3}$/)))))return(0,p.H)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format."),!1;if(o&&i){var f=q(e).video,m=V(o,i);if((0,s.Z)(e,"mediaTypes.video.context")===g.gZ&&le(e)&&f){var v=[(0,s.Z)(f,"w"),(0,s.Z)(f,"h")];if(!(v[0]>=U[0]&&v[1]>=U[1]))return(0,p.H)("IX Bid Adapter: ".concat(v," is an invalid size for IX outstream renderer")),!1}if(m.length)return m.forEach((function(e){(0,p.H)(e)})),!1}return function(e){return void 0===(0,s.Z)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},resetSiteID:function(){F=0},buildRequests:function(e,t){var r=[],i={},a={},o={},d={};for(var u in B.getFeatureToggles(),e.forEach((function(e){var r=Object.keys((0,s.Z)(e,"mediaTypes",{}));for(var n in r)switch(r[n]){case c.Mk:se(e,d,i,t);break;case c.pX:de(e,a);break;case c.B5:oe(e,o);break;default:(0,p.yN)("IX Bid Adapter: ad unit mediaTypes ".concat(n," is not supported"))}})),d)if(d.hasOwnProperty(u)){var l=d[u].missingSizes;i.hasOwnProperty(u)||(i[u]={}),i[u].hasOwnProperty("missingImps")||(i[u].missingImps=[],i[u].missingCount=0);for(var f=d[u].impression,m=0;m<l.length;m++){var v=pe(e[0],f,l[m]);i[u].missingImps.push(v),i[u].missingCount++}}var g,b=[];return Object.keys(i).length>0&&b.push(i),Object.keys(a).length>0&&b.push(a),Object.keys(o).length>0&&b.push(o),B.isFeatureEnabled("pbjs_enable_multiformat")?r.push.apply(r,(0,n.Z)(K(e,t,(g={},b.forEach((function(e){Object.keys(e).forEach((function(t){Object.keys(g).includes(t)?g[t].hasOwnProperty("ixImps")&&e[t].hasOwnProperty("ixImps")?g[t].ixImps=[].concat((0,n.Z)(g[t].ixImps),(0,n.Z)(e[t].ixImps)):g[t].hasOwnProperty("missingImps")&&e[t].hasOwnProperty("missingImps")?g[t].missingImps=[].concat((0,n.Z)(g[t].missingImps),(0,n.Z)(e[t].missingImps)):e[t].hasOwnProperty("ixImps")?g[t].ixImps=e[t].ixImps:e[t].hasOwnProperty("missingImps")&&(g[t].missingImps=e[t].missingImps):g[t]=e[t]}))})),g)))):(Object.keys(i).length>0&&r.push.apply(r,(0,n.Z)(K(e,t,i))),Object.keys(a).length>0&&r.push.apply(r,(0,n.Z)(K(e,t,a))),Object.keys(o).length>0&&r.push.apply(r,(0,n.Z)(K(e,t,o)))),r},interpretResponse:function(e,t){var r=[],i=null,n=(0,s.Z)(e,"body.ext.protectedAudienceAuctionConfigs")||[];if(B.setFeatureToggles(e),!e.hasOwnProperty("body"))return r;for(var a=e.body,d=a.seatbid||[],u=0;u<d.length;u++)if(d[u].hasOwnProperty("bid")){for(var l=d[u].bid,f=t.data,m=0;m<l.length;m++){var v=Y(l[m].impid,f.imp,t.validBidRequests);if((i=J(l[m],a.cur,v)).mediaType===c.pX&&le(v)){var g=(0,s.Z)(a,"ext.videoplayerurl");if(i.renderer=ce(l[m].bidId,g),!i.renderer)continue}r.push(i)}if((0,s.Z)(f,"ext.ixdiag.err")&&_.localStorageIsEnabled())try{_.removeDataFromLocalStorage("ixdiag")}catch(e){(0,p.H)("ix can not clear ixdiag from localStorage.")}}if(!(Array.isArray(n)&&n.length>0))return r;n=n.filter((function(e){return!!function(e){return"object"===(0,o.Z)(e)&&null!==e}(e)||((0,p.yN)("Malformed auction config detected:",e),!1)}));try{return{bids:r,fledgeAuctionConfigs:n}}catch(e){return(0,p.yN)("Error attaching AuctionConfigs",e),r}},getUserSyncs:function(e,t){var r=[],i=null;if(t.length>0&&(i=(0,s.Z)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==i&&0==i)return[];if(e.iframeEnabled)r.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{var n=null;l.vc.getConfig("userSync")&&(n=l.vc.getConfig("userSync").syncsPerBidder),0===n&&(n=i),n=i&&(0===n||n)?i>n?n:i:1;for(var a=0;a<n;a++)r.push({type:"image",url:ve(n,a)})}return r}};function ve(e,t){var r="",i="0";return X&&X.hasOwnProperty("gdprApplies")&&(i=X.gdprApplies?"1":"0"),X&&X.hasOwnProperty("consentString")&&(r=X.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid"+(0!==F?"&site_id="+F.toString():"")+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+i+"&gdpr_consent="+r+"&us_privacy="+(z||"")}function ge(e){return e.imp.forEach((function(t,r){var i=t.ext;if(null==i)return e;ye(t)<2||Object.keys(i).forEach((function(n){if(c.Mk in t){var a=t.banner.ext;if(void 0!==a&&void 0!==a[n]&&a[n]==i[n]&&delete e.imp[r].banner.ext[n],void 0!==t.banner.format)for(var o=0;o<t.banner.format.length;o++)null!=t.banner.format[o].ext&&null!=t.banner.format[o].ext[n]&&t.banner.format[o].ext[n]==i[n]&&delete e.imp[r].banner.format[o].ext[n]}if(c.pX in t){var d=t.video.ext;void 0!==d&&void 0!==d[n]&&d[n]==i[n]&&delete e.imp[r].video.ext[n]}if(c.B5 in t){var s=t.native.ext;void 0!==s&&void 0!==s[n]&&s[n]==i[n]&&delete e.imp[r].native.ext[n]}}))})),e}function be(e){return e.imp.forEach((function(t,r){if(null==t.ext)return e;if(!(ye(t)<2)){if(c.Mk in t){var i=t.banner.ext;if(void 0!==i&&void 0!==i.siteID&&delete e.imp[r].banner.ext.siteID,void 0!==t.banner.format)for(var n=0;n<t.banner.format.length;n++)void 0!==t.banner.format[n].ext&&void 0!==t.banner.format[n].ext.siteID&&((0,u.N)(e.imp[r],"ext.siteID",t.banner.format[n].ext.siteID),(0,u.N)(e,"ext.ixdiag.usid",!0),delete e.imp[r].banner.format[n].ext.siteID)}if(c.pX in t){var a=t.video.ext;void 0!==a&&void 0!==a.siteID&&delete e.imp[r].video.ext.siteID}if(c.B5 in t){var o=t.native.ext;void 0!==o&&void 0!==o.siteID&&delete e.imp[r].native.ext.siteID}}})),e}function ye(e){var t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function xe(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,v.dX)(me),(0,d.z)("ixBidAdapter")}},function(e){e.O(0,[9703,5823,9270],(function(){return t=3390,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2703],{5526:function(e,t,r){var n,a,i,o=r(885),c=r(1002),u=r(8640),d=r(4358),s=r(265),l=r(3193),p=r(4699),E=r(5164),g=r(4679),I=Object.freeze({CODE:"kargo",HOST:"krk2.kargo.com",REQUEST_METHOD:"POST",REQUEST_ENDPOINT:"/api/v1/prebid",TIMEOUT_ENDPOINT:"/api/v1/event/timeout",GVLID:972,SUPPORTED_MEDIA_TYPES:[g.Mk,g.pX]}),S=(0,E.df)({bidderCode:I.CODE}),f=Object.freeze({KEY:"currency",US_DOLLAR:"USD"}),b=Object.freeze({USER_DATA:"ortb2.user.data",SOCIAL_CANVAS:"params.socialCanvas",SUA:"ortb2.device.sua",TDID_ADAPTER:"userId.tdid"}),v=Object.freeze({BROWSERS:"browsers",MOBILE:"mobile",MODEL:"model",PLATFORM:"platform",SOURCE:"source"}),m=[v.BROWSERS,v.MOBILE,v.MODEL,v.SOURCE,v.PLATFORM],D=Object.freeze({KEY:"krg_crb",SYNC_URL:"https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}&gpp={GPP_STRING}&gpp_sid={GPP_SID}",SYNC_COUNT:5,PAGE_VIEW_ID:"pageViewId",PAGE_VIEW_TIMESTAMP:"pageViewTimestamp",PAGE_VIEW_URL:"pageViewUrl"});function C(e,t){var r={};return e&&(r.ortb2=e),t&&(r.refererInfo=t),r}function T(){try{var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=-177&e[6]|64,e[8]=-65&e[8]|128;var t=Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("");return t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20)}catch(e){return""}}function _(){return n||(n=T()),n}function O(e){try{return S.getDataFromLocalStorage(e)}catch(e){return null}}function R(e,t,r,n,a){var i=h._getCrb(),o={crbIDs:i.syncIds||{}};if(!e&&i.tdID?o.tdID=i.tdID:e&&(o.tdID=e),t&&(o.usp=t),r&&(o.gdpr={consent:r.consentString||"",applies:!!r.gdprApplies}),null!=i.lexId&&(o.kargoID=i.lexId),null!=i.clientId&&(o.clientID=i.clientId),null!=i.optOut&&(o.optOut=i.optOut),null!=n&&(o.sharedIDEids=n),a){var c={};a.consentString&&(c.gppString=a.consentString),a.applicableSections&&(c.applicableSections=a.applicableSections),(0,d.xb)(c)||(o.gpp=c)}return o}var h={gvlid:I.GVLID,code:I.CODE,isBidRequestValid:function(e){return!(!e||!e.params)&&!!e.params.placementId},buildRequests:function(e,t){var r,n,o=l.vc.getConfig(f.KEY),u=o&&o.adServerCurrency?o.adServerCurrency:null,p=[];(0,d.yi)(e,(function(e){p.push(function(e){var t,r,n={id:e.bidId,tid:null===(t=e.ortb2Imp)||void 0===t||null===(r=t.ext)||void 0===r?void 0:r.tid,pid:e.params.placementId,code:e.adUnitCode};e.bidRequestsCount>0&&(n.bidRequestCount=e.bidRequestsCount);e.bidderRequestsCount>0&&(n.bidderRequestCount=e.bidderRequestsCount);e.bidderWinsCount>0&&(n.bidderWinCount=e.bidderWinsCount);var a=(0,s.Z)(e,"ortb2Imp.ext.gpid")||(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot");a&&(n.fpd={gpid:a});e.ortb2Imp&&(n.ext={ortb2Imp:e.ortb2Imp});if(e.mediaTypes){var i=e.mediaTypes,o=i.banner,u=i.video,l=i.native;if(o&&(n.banner=o),u&&(n.video=u),l&&(n.native=l),"function"==typeof e.getFloor){var p;try{p=e.getFloor({currency:"USD",mediaType:"*",size:"*"})}catch(e){(0,d.H)("Kargo: getFloor threw an error: ",e)}n.floor="object"!==(0,c.Z)(p)||"USD"!==p.currency||isNaN(parseInt(p.floor))?void 0:p.floor}}return n}(e))}));var E=e[0],g=(0,s.Z)(E,b.TDID_ADAPTER),T=function(e){var t;return{pageURL:null==e||null===(t=e.refererInfo)||void 0===t?void 0:t.page,rawCRB:S.getCookie(D.KEY),rawCRBLocalStorage:O(D.KEY)}}(t),h=Object.assign({},{pbv:"8.52.2",aid:E.auctionId,sid:_(),url:T.pageURL,timeout:t.timeout,ts:(new Date).getTime(),device:{size:[window.screen.width,window.screen.height]},imp:p,user:R(g,t.uspConsent,t.gdprConsent,E.userIdAsEids,t.gppConsent),ext:C(E.ortb2,null==t?void 0:t.refererInfo)});null!=(null===(r=E.ortb2)||void 0===r||null===(n=r.site)||void 0===n?void 0:n.cat)&&(h.site={cat:E.ortb2.site.cat}),E.schain&&E.schain.nodes&&(h.schain=E.schain),h.user.data=(0,s.Z)(E,b.USER_DATA)||[];var A=function(){if(a===window.location.pathname)return++i;return a=window.location.pathname,i=0}();null!=A&&(h.requestCount=A),null!=u&&u!=f.US_DOLLAR&&(h.cur=u),null!=T.rawCRB&&(h.rawCRB=T.rawCRB),null!=T.rawCRBLocalStorage&&(h.rawCRBLocalStorage=T.rawCRBLocalStorage);var P=(0,s.Z)(E,b.SOCIAL_CANVAS);null!=P&&(h.socan=P);var y=(0,s.Z)(E,b.SUA);if(y){var U=[];m.forEach((function(e){var t=y[e];if(t&&("string"!=typeof t||""!==t.trim()))switch(e){case v.MOBILE&&t<1:case v.SOURCE&&t<1:break;default:U.push(e)}})),h.device.sua=(0,d.ei)(y,U)}var N=null!=O(D.PAGE_VIEW_ID),w=null!=O(D.PAGE_VIEW_TIMESTAMP),L=null!=O(D.PAGE_VIEW_URL),M={};return N&&(M.id=O(D.PAGE_VIEW_ID)),w&&(M.timestamp=Number(O(D.PAGE_VIEW_TIMESTAMP))),L&&(M.url=O(D.PAGE_VIEW_URL)),(0,d.xb)(M)||(h.page=M),h.ext&&0===Object.keys(h.ext).length&&delete h.ext,Object.assign({},t,{method:I.REQUEST_METHOD,url:"https://".concat(I.HOST).concat(I.REQUEST_ENDPOINT),data:h,currency:u})},interpretResponse:function(e,t){var r=e.body,n=[],a=[];if((0,d.xb)(r)||"object"!==(0,c.Z)(r))return a;for(var i=0,u=Object.entries(r);i<u.length;i++){var s,l=(0,o.Z)(u[i],2),p=l[0],E=l[1],S={mediaType:E.mediaType&&I.SUPPORTED_MEDIA_TYPES.includes(E.mediaType)?E.mediaType:g.Mk};null!==(s=E.metadata)&&void 0!==s&&s.landingPageDomain&&(S.clickUrl=E.metadata.landingPageDomain[0],S.advertiserDomains=E.metadata.landingPageDomain);var f={requestId:p,cpm:Number(E.cpm),width:E.width,height:E.height,ttl:300,creativeId:E.creativeID,dealId:E.targetingCustom,netRevenue:!0,currency:E.currency||t.currency,mediaType:S.mediaType,meta:S};S.mediaType==g.pX?E.admUrl?f.vastUrl=E.admUrl:f.vastXml=E.adm:f.ad=E.adm,a.push(f),E.auctionConfig&&n.push({bidId:p,config:E.auctionConfig})}return n.length>0?{bids:a,fledgeAuctionConfigs:n}:a},getUserSyncs:function(e,t,r,n,a){var i=[],o=T(),c=h._getCrb().clientId,u=r&&r.gdprApplies?1:0,d=r&&r.consentString?r.consentString:"",s=a&&a.consentString?a.consentString:"",l=a&&a.applicableSections&&Array.isArray(a.applicableSections)?a.applicableSections.join(","):"";if("string"==typeof n&&4==n.length&&1==n[0]&&"Y"==n[2])return i;if(e.iframeEnabled&&o&&c)for(var p=0;p<D.SYNC_COUNT;p++)i.push({type:"iframe",url:D.SYNC_URL.replace("{UUID}",c).replace("{SEED}",o).replace("{INDEX}",p).replace("{GDPR}",u).replace("{GDPR_CONSENT}",d).replace("{US_PRIVACY}",n||"").replace("{GPP_STRING}",s).replace("{GPP_SID}",l)});return i},supportedMediaTypes:I.SUPPORTED_MEDIA_TYPES,onTimeout:function(e){null!=e&&e.forEach((function(e){!function(e,t){var r={aid:e,ato:t};try{var n=(0,d.Q2)({protocol:"https",hostname:I.HOST,pathname:I.TIMEOUT_ENDPOINT,search:r});(0,d.hq)(n)}catch(e){}}(e.auctionId,e.timeout)}))},_getCrb:function(){var e=function(){try{return JSON.parse(atob(O(D.KEY)))}catch(e){return{}}}();return Object.keys(e).length?e:function(){try{var e=JSON.parse(S.getCookie(D.KEY));if(e&&e.v){var t=JSON.parse(atob(e.v));if(t)return t}return{}}catch(e){return{}}}()},_getSessionId:_};(0,p.dX)(h),(0,u.z)("kargoBidAdapter")}},function(e){e.O(0,[5823,9270],(function(){return t=5526,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3390],{5424:function(t,e,r){var n=r(4942),o=r(1002),i=r(885),a=r(8640),s=r(4358),c=r(8928),u=r(2797),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f={exports:{}},h=function(t){return t&&t.Math===Math&&t},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof l&&l)||h("object"==typeof l&&l)||function(){return this}()||Function("return this")(),g=function(t){try{return!!t()}catch(t){return!0}},m=!g((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=m,y=Function.prototype,b=y.apply,w=y.call,S="object"==typeof Reflect&&Reflect.apply||(v?w.bind(b):function(){return w.apply(b,arguments)}),O=m,x=Function.prototype,C=x.call,E=O&&x.bind.bind(C,C),I=O?E:function(t){return function(){return C.apply(t,arguments)}},k=I,j=k({}.toString),A=k("".slice),L=function(t){return A(j(t),8,-1)},D=L,P=I,F=function(t){if("Function"===D(t))return P(t)},M="object"==typeof document&&document.all,R=void 0===M&&void 0!==M?function(t){return"function"==typeof t||t===M}:function(t){return"function"==typeof t},N={},T=!g((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=m,U=Function.prototype.call,V=_?U.bind(U):function(){return U.apply(U,arguments)},B={},W={}.propertyIsEnumerable,G=Object.getOwnPropertyDescriptor,q=G&&!W.call({1:2},1);B.f=q?function(t){var e=G(this,t);return!!e&&e.enumerable}:W;var H,Q,z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},J=g,K=L,$=Object,X=I("".split),Y=J((function(){return!$("z").propertyIsEnumerable(0)}))?function(t){return"String"===K(t)?X(t,""):$(t)}:$,Z=function(t){return null==t},tt=Z,et=TypeError,rt=function(t){if(tt(t))throw new et("Can't call method on "+t);return t},nt=Y,ot=rt,it=function(t){return nt(ot(t))},at=R,st=function(t){return"object"==typeof t?null!==t:at(t)},ct={},ut=ct,lt=p,dt=R,ft=function(t){return dt(t)?t:void 0},ht=function(t,e){return arguments.length<2?ft(ut[t])||ft(lt[t]):ut[t]&&ut[t][e]||lt[t]&&lt[t][e]},pt=I({}.isPrototypeOf),gt=p,mt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=gt.process,yt=gt.Deno,bt=vt&&vt.versions||yt&&yt.version,wt=bt&&bt.v8;wt&&(Q=(H=wt.split("."))[0]>0&&H[0]<4?1:+(H[0]+H[1])),!Q&&mt&&(!(H=mt.match(/Edge\/(\d+)/))||H[1]>=74)&&(H=mt.match(/Chrome\/(\d+)/))&&(Q=+H[1]);var St=Q,Ot=St,xt=g,Ct=p.String,Et=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol("symbol detection");return!Ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ot&&Ot<41})),It=Et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kt=ht,jt=R,At=pt,Lt=Object,Dt=It?function(t){return"symbol"==typeof t}:function(t){var e=kt("Symbol");return jt(e)&&At(e.prototype,Lt(t))},Pt=String,Ft=function(t){try{return Pt(t)}catch(t){return"Object"}},Mt=R,Rt=Ft,Nt=TypeError,Tt=function(t){if(Mt(t))return t;throw new Nt(Rt(t)+" is not a function")},_t=Tt,Ut=Z,Vt=V,Bt=R,Wt=st,Gt=TypeError,qt={exports:{}},Ht=p,Qt=Object.defineProperty,zt=p,Jt=function(t,e){try{Qt(Ht,t,{value:e,configurable:!0,writable:!0})}catch(r){Ht[t]=e}return e},Kt="__core-js_shared__",$t=qt.exports=zt[Kt]||Jt(Kt,{});($t.versions||($t.versions=[])).push({version:"3.37.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=qt.exports,Yt=Xt,Zt=function(t,e){return Yt[t]||(Yt[t]=e||{})},te=rt,ee=Object,re=function(t){return ee(te(t))},ne=re,oe=I({}.hasOwnProperty),ie=Object.hasOwn||function(t,e){return oe(ne(t),e)},ae=I,se=0,ce=Math.random(),ue=ae(1..toString),le=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ue(++se+ce,36)},de=Zt,fe=ie,he=le,pe=Et,ge=It,me=p.Symbol,ve=de("wks"),ye=ge?me.for||me:me&&me.withoutSetter||he,be=function(t){return fe(ve,t)||(ve[t]=pe&&fe(me,t)?me[t]:ye("Symbol."+t)),ve[t]},we=V,Se=st,Oe=Dt,xe=function(t,e){var r=t[e];return Ut(r)?void 0:_t(r)},Ce=function(t,e){var r,n;if("string"===e&&Bt(r=t.toString)&&!Wt(n=Vt(r,t)))return n;if(Bt(r=t.valueOf)&&!Wt(n=Vt(r,t)))return n;if("string"!==e&&Bt(r=t.toString)&&!Wt(n=Vt(r,t)))return n;throw new Gt("Can't convert object to primitive value")},Ee=TypeError,Ie=be("toPrimitive"),ke=function(t,e){if(!Se(t)||Oe(t))return t;var r,n=xe(t,Ie);if(n){if(void 0===e&&(e="default"),r=we(n,t,e),!Se(r)||Oe(r))return r;throw new Ee("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ce(t,e)},je=Dt,Ae=function(t){var e=ke(t,"string");return je(e)?e:e+""},Le=st,De=p.document,Pe=Le(De)&&Le(De.createElement),Fe=function(t){return Pe?De.createElement(t):{}},Me=Fe,Re=!T&&!g((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Ne=T,Te=V,_e=B,Ue=z,Ve=it,Be=Ae,We=ie,Ge=Re,qe=Object.getOwnPropertyDescriptor;N.f=Ne?qe:function(t,e){if(t=Ve(t),e=Be(e),Ge)try{return qe(t,e)}catch(t){}if(We(t,e))return Ue(!Te(_e.f,t,e),t[e])};var He=g,Qe=R,ze=/#|\.prototype\./,Je=function(t,e){var r=$e[Ke(t)];return r===Ye||r!==Xe&&(Qe(e)?He(e):!!e)},Ke=Je.normalize=function(t){return String(t).replace(ze,".").toLowerCase()},$e=Je.data={},Xe=Je.NATIVE="N",Ye=Je.POLYFILL="P",Ze=Je,tr=Tt,er=m,rr=F(F.bind),nr=function(t,e){return tr(t),void 0===e?t:er?rr(t,e):function(){return t.apply(e,arguments)}},or={},ir=T&&g((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ar=st,sr=String,cr=TypeError,ur=function(t){if(ar(t))return t;throw new cr(sr(t)+" is not an object")},lr=T,dr=Re,fr=ir,hr=ur,pr=Ae,gr=TypeError,mr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,yr="enumerable",br="configurable",wr="writable";or.f=lr?fr?function(t,e,r){if(hr(t),e=pr(e),hr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&wr in r&&!r.writable){var n=vr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:br in r?r.configurable:n.configurable,enumerable:yr in r?r.enumerable:n.enumerable,writable:!1})}return mr(t,e,r)}:mr:function(t,e,r){if(hr(t),e=pr(e),hr(r),dr)try{return mr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new gr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Sr=or,Or=z,xr=T?function(t,e,r){return Sr.f(t,e,Or(1,r))}:function(t,e,r){return t[e]=r,t},Cr=p,Er=S,Ir=F,kr=R,jr=N.f,Ar=Ze,Lr=ct,Dr=nr,Pr=xr,Fr=ie,Mr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return Er(t,this,arguments)};return e.prototype=t.prototype,e},Rr=function(t,e){var r,n,o,i,a,s,c,u,l,d=t.target,f=t.global,h=t.stat,p=t.proto,g=f?Cr:h?Cr[d]:Cr[d]&&Cr[d].prototype,m=f?Lr:Lr[d]||Pr(Lr,d,{})[d],v=m.prototype;for(i in e)n=!(r=Ar(f?i:d+(h?".":"#")+i,t.forced))&&g&&Fr(g,i),s=m[i],n&&(c=t.dontCallGetSet?(l=jr(g,i))&&l.value:g[i]),a=n&&c?c:e[i],(r||p||typeof s!=typeof a)&&(u=t.bind&&n?Dr(a,Cr):t.wrap&&n?Mr(a):p&&kr(a)?Ir(a):a,(t.sham||a&&a.sham||s&&s.sham)&&Pr(u,"sham",!0),Pr(m,i,u),p&&(Fr(Lr,o=d+"Prototype")||Pr(Lr,o,{}),Pr(Lr[o],i,a),t.real&&v&&(r||!v[i])&&Pr(v,i,a)))},Nr=Rr,Tr=T,_r=or.f;Nr({target:"Object",stat:!0,forced:Object.defineProperty!==_r,sham:!Tr},{defineProperty:_r});var Ur=ct.Object,Vr=f.exports=function(t,e,r){return Ur.defineProperty(t,e,r)};Ur.defineProperty.sham&&(Vr.sham=!0);var Br=d(f.exports),Wr=L,Gr=Array.isArray||function(t){return"Array"===Wr(t)},qr=Math.ceil,Hr=Math.floor,Qr=Math.trunc||function(t){var e=+t;return(e>0?Hr:qr)(e)},zr=Qr,Jr=function(t){var e=+t;return e!=e||0===e?0:zr(e)},Kr=Jr,$r=Math.min,Xr=function(t){var e=Kr(t);return e>0?$r(e,9007199254740991):0},Yr=function(t){return Xr(t.length)},Zr=TypeError,tn=T,en=or,rn=z,nn={};nn[be("toStringTag")]="z";var on="[object z]"===String(nn),an=on,sn=R,cn=L,un=be("toStringTag"),ln=Object,dn="Arguments"===cn(function(){return arguments}()),fn=an?cn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=ln(t),un))?r:dn?cn(e):"Object"===(n=cn(e))&&sn(e.callee)?"Arguments":n},hn=R,pn=Xt,gn=I(Function.toString);hn(pn.inspectSource)||(pn.inspectSource=function(t){return gn(t)});var mn=pn.inspectSource,vn=I,yn=g,bn=R,wn=fn,Sn=mn,On=function(){},xn=ht("Reflect","construct"),Cn=/^\s*(?:class|function)\b/,En=vn(Cn.exec),In=!Cn.test(On),kn=function(t){if(!bn(t))return!1;try{return xn(On,[],t),!0}catch(t){return!1}},jn=function(t){if(!bn(t))return!1;switch(wn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return In||!!En(Cn,Sn(t))}catch(t){return!0}};jn.sham=!0;var An=!xn||yn((function(){var t;return kn(kn.call)||!kn(Object)||!kn((function(){t=!0}))||t}))?jn:kn,Ln=Gr,Dn=An,Pn=st,Fn=be("species"),Mn=Array,Rn=function(t){var e;return Ln(t)&&(e=t.constructor,(Dn(e)&&(e===Mn||Ln(e.prototype))||Pn(e)&&null===(e=e[Fn]))&&(e=void 0)),void 0===e?Mn:e},Nn=function(t,e){return new(Rn(t))(0===e?0:e)},Tn=g,_n=St,Un=be("species"),Vn=Rr,Bn=g,Wn=Gr,Gn=st,qn=re,Hn=Yr,Qn=function(t){if(t>9007199254740991)throw Zr("Maximum allowed index exceeded");return t},zn=function(t,e,r){tn?en.f(t,e,rn(0,r)):t[e]=r},Jn=Nn,Kn=function(t){return _n>=51||!Tn((function(){var e=[];return(e.constructor={})[Un]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$n=St,Xn=be("isConcatSpreadable"),Yn=$n>=51||!Bn((function(){var t=[];return t[Xn]=!1,t.concat()[0]!==t})),Zn=function(t){if(!Gn(t))return!1;var e=t[Xn];return void 0!==e?!!e:Wn(t)};Vn({target:"Array",proto:!0,arity:1,forced:!Yn||!Kn("concat")},{concat:function(t){var e,r,n,o,i,a=qn(this),s=Jn(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Zn(i=-1===e?a:arguments[e]))for(o=Hn(i),Qn(c+o),r=0;r<o;r++,c++)r in i&&zn(s,c,i[r]);else Qn(c+1),zn(s,c++,i);return s.length=c,s}});var to=fn,eo=String,ro=function(t){if("Symbol"===to(t))throw new TypeError("Cannot convert a Symbol value to a string");return eo(t)},no={},oo=Jr,io=Math.max,ao=Math.min,so=it,co=function(t,e){var r=oo(t);return r<0?io(r+e,0):ao(r,e)},uo=Yr,lo=function(t){return function(e,r,n){var o=so(e),i=uo(o);if(0===i)return!t&&-1;var a,s=co(n,i);if(t&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},fo={includes:lo(!0),indexOf:lo(!1)},ho={},po=ie,go=it,mo=fo.indexOf,vo=ho,yo=I([].push),bo=function(t,e){var r,n=go(t),o=0,i=[];for(r in n)!po(vo,r)&&po(n,r)&&yo(i,r);for(;e.length>o;)po(n,r=e[o++])&&(~mo(i,r)||yo(i,r));return i},wo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],So=bo,Oo=wo,xo=Object.keys||function(t){return So(t,Oo)},Co=T,Eo=ir,Io=or,ko=ur,jo=it,Ao=xo;no.f=Co&&!Eo?Object.defineProperties:function(t,e){ko(t);for(var r,n=jo(e),o=Ao(e),i=o.length,a=0;i>a;)Io.f(t,r=o[a++],n[r]);return t};var Lo,Do=ht("document","documentElement"),Po=le,Fo=Zt("keys"),Mo=function(t){return Fo[t]||(Fo[t]=Po(t))},Ro=ur,No=no,To=wo,_o=ho,Uo=Do,Vo=Fe,Bo=Mo("IE_PROTO"),Wo=function(){},Go=function(t){return"<script>"+t+"</"+"script>"},qo=function(t){t.write(Go("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ho=function(){try{Lo=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ho="undefined"!=typeof document?document.domain&&Lo?qo(Lo):((e=Vo("iframe")).style.display="none",Uo.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Go("document.F=Object")),t.close(),t.F):qo(Lo);for(var r=To.length;r--;)delete Ho.prototype[To[r]];return Ho()};_o[Bo]=!0;var Qo=Object.create||function(t,e){var r;return null!==t?(Wo.prototype=Ro(t),r=new Wo,Wo.prototype=null,r[Bo]=t):r=Ho(),void 0===e?r:No.f(r,e)},zo={},Jo=bo,Ko=wo.concat("length","prototype");zo.f=Object.getOwnPropertyNames||function(t){return Jo(t,Ko)};var $o={},Xo=I([].slice),Yo=L,Zo=it,ti=zo.f,ei=Xo,ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];$o.f=function(t){return ri&&"Window"===Yo(t)?function(t){try{return ti(t)}catch(t){return ei(ri)}}(t):ti(Zo(t))};var ni={};ni.f=Object.getOwnPropertySymbols;var oi=xr,ii=function(t,e,r,n){return n&&n.enumerable?t[e]=r:oi(t,e,r),t},ai=or,si={},ci=be;si.f=ci;var ui,li,di,fi=ct,hi=ie,pi=si,gi=or.f,mi=function(t){var e=fi.Symbol||(fi.Symbol={});hi(e,t)||gi(e,t,{value:pi.f(t)})},vi=V,yi=ht,bi=be,wi=ii,Si=function(){var t=yi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=bi("toPrimitive");e&&!e[n]&&wi(e,n,(function(t){return vi(r,this)}),{arity:1})},Oi=fn,xi=on?{}.toString:function(){return"[object "+Oi(this)+"]"},Ci=on,Ei=or.f,Ii=xr,ki=ie,ji=xi,Ai=be("toStringTag"),Li=function(t,e,r,n){var o=r?t:t&&t.prototype;o&&(ki(o,Ai)||Ei(o,Ai,{configurable:!0,value:e}),n&&!Ci&&Ii(o,"toString",ji))},Di=R,Pi=p.WeakMap,Fi=Di(Pi)&&/native code/.test(String(Pi)),Mi=p,Ri=st,Ni=xr,Ti=ie,_i=Xt,Ui=Mo,Vi=ho,Bi="Object already initialized",Wi=Mi.TypeError,Gi=Mi.WeakMap;if(Fi||_i.state){var qi=_i.state||(_i.state=new Gi);qi.get=qi.get,qi.has=qi.has,qi.set=qi.set,ui=function(t,e){if(qi.has(t))throw new Wi(Bi);return e.facade=t,qi.set(t,e),e},li=function(t){return qi.get(t)||{}},di=function(t){return qi.has(t)}}else{var Hi=Ui("state");Vi[Hi]=!0,ui=function(t,e){if(Ti(t,Hi))throw new Wi(Bi);return e.facade=t,Ni(t,Hi,e),e},li=function(t){return Ti(t,Hi)?t[Hi]:{}},di=function(t){return Ti(t,Hi)}}var Qi={set:ui,get:li,has:di,enforce:function(t){return di(t)?li(t):ui(t,{})},getterFor:function(t){return function(e){var r;if(!Ri(e)||(r=li(e)).type!==t)throw new Wi("Incompatible receiver, "+t+" required");return r}}},zi=nr,Ji=Y,Ki=re,$i=Yr,Xi=Nn,Yi=I([].push),Zi=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(c,u,l,d){for(var f,h,p=Ki(c),g=Ji(p),m=$i(g),v=zi(u,l),y=0,b=d||Xi,w=e?b(c,m):r||a?b(c,0):void 0;m>y;y++)if((s||y in g)&&(h=v(f=g[y],y,p),t))if(e)w[y]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:Yi(w,f)}else switch(t){case 4:return!1;case 7:Yi(w,f)}return i?-1:n||o?o:w}},ta={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ea=Rr,ra=p,na=V,oa=I,ia=T,aa=Et,sa=g,ca=ie,ua=pt,la=ur,da=it,fa=Ae,ha=ro,pa=z,ga=Qo,ma=xo,va=zo,ya=$o,ba=ni,wa=N,Sa=or,Oa=no,xa=B,Ca=ii,Ea=function(t,e,r){return ai.f(t,e,r)},Ia=Zt,ka=ho,ja=le,Aa=be,La=si,Da=mi,Pa=Si,Fa=Li,Ma=Qi,Ra=ta.forEach,Na=Mo("hidden"),Ta="Symbol",_a=Ma.set,Ua=Ma.getterFor(Ta),Va=Object.prototype,Ba=ra.Symbol,Wa=Ba&&Ba.prototype,Ga=ra.RangeError,qa=ra.TypeError,Ha=ra.QObject,Qa=wa.f,za=Sa.f,Ja=ya.f,Ka=xa.f,$a=oa([].push),Xa=Ia("symbols"),Ya=Ia("op-symbols"),Za=Ia("wks"),ts=!Ha||!Ha.prototype||!Ha.prototype.findChild,es=function(t,e,r){var n=Qa(Va,e);n&&delete Va[e],za(t,e,r),n&&t!==Va&&za(Va,e,n)},rs=ia&&sa((function(){return 7!==ga(za({},"a",{get:function(){return za(this,"a",{value:7}).a}})).a}))?es:za,ns=function(t,e){var r=Xa[t]=ga(Wa);return _a(r,{type:Ta,tag:t,description:e}),ia||(r.description=e),r},os=function(t,e,r){t===Va&&os(Ya,e,r),la(t);var n=fa(e);return la(r),ca(Xa,n)?(r.enumerable?(ca(t,Na)&&t[Na][n]&&(t[Na][n]=!1),r=ga(r,{enumerable:pa(0,!1)})):(ca(t,Na)||za(t,Na,pa(1,ga(null))),t[Na][n]=!0),rs(t,n,r)):za(t,n,r)},is=function(t,e){la(t);var r=da(e),n=ma(r).concat(us(r));return Ra(n,(function(e){ia&&!na(as,r,e)||os(t,e,r[e])})),t},as=function(t){var e=fa(t),r=na(Ka,this,e);return!(this===Va&&ca(Xa,e)&&!ca(Ya,e))&&(!(r||!ca(this,e)||!ca(Xa,e)||ca(this,Na)&&this[Na][e])||r)},ss=function(t,e){var r=da(t),n=fa(e);if(r!==Va||!ca(Xa,n)||ca(Ya,n)){var o=Qa(r,n);return!o||!ca(Xa,n)||ca(r,Na)&&r[Na][n]||(o.enumerable=!0),o}},cs=function(t){var e=Ja(da(t)),r=[];return Ra(e,(function(t){ca(Xa,t)||ca(ka,t)||$a(r,t)})),r},us=function(t){var e=t===Va,r=Ja(e?Ya:da(t)),n=[];return Ra(r,(function(t){!ca(Xa,t)||e&&!ca(Va,t)||$a(n,Xa[t])})),n};aa||(Ba=function(){if(ua(Wa,this))throw new qa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ha(arguments[0]):void 0,e=ja(t),r=function(t){var n=void 0===this?ra:this;n===Va&&na(r,Ya,t),ca(n,Na)&&ca(n[Na],e)&&(n[Na][e]=!1);var o=pa(1,t);try{rs(n,e,o)}catch(t){if(!(t instanceof Ga))throw t;es(n,e,o)}};return ia&&ts&&rs(Va,e,{configurable:!0,set:r}),ns(e,t)},Ca(Wa=Ba.prototype,"toString",(function(){return Ua(this).tag})),Ca(Ba,"withoutSetter",(function(t){return ns(ja(t),t)})),xa.f=as,Sa.f=os,Oa.f=is,wa.f=ss,va.f=ya.f=cs,ba.f=us,La.f=function(t){return ns(Aa(t),t)},ia&&Ea(Wa,"description",{configurable:!0,get:function(){return Ua(this).description}})),ea({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),Ra(ma(Za),(function(t){Da(t)})),ea({target:Ta,stat:!0,forced:!aa},{useSetter:function(){ts=!0},useSimple:function(){ts=!1}}),ea({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(t,e){return void 0===e?ga(t):is(ga(t),e)},defineProperty:os,defineProperties:is,getOwnPropertyDescriptor:ss}),ea({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:cs}),Pa(),Fa(Ba,Ta),ka[Na]=!0;var ls=Et&&!!Symbol.for&&!!Symbol.keyFor,ds=Rr,fs=ht,hs=ie,ps=ro,gs=Zt,ms=ls,vs=gs("string-to-symbol-registry"),ys=gs("symbol-to-string-registry");ds({target:"Symbol",stat:!0,forced:!ms},{for:function(t){var e=ps(t);if(hs(vs,e))return vs[e];var r=fs("Symbol")(e);return vs[e]=r,ys[r]=e,r}});var bs=Rr,ws=ie,Ss=Dt,Os=Ft,xs=ls,Cs=Zt("symbol-to-string-registry");bs({target:"Symbol",stat:!0,forced:!xs},{keyFor:function(t){if(!Ss(t))throw new TypeError(Os(t)+" is not a symbol");if(ws(Cs,t))return Cs[t]}});var Es=Gr,Is=R,ks=L,js=ro,As=I([].push),Ls=Rr,Ds=ht,Ps=S,Fs=V,Ms=I,Rs=g,Ns=R,Ts=Dt,_s=Xo,Us=function(t){if(Is(t))return t;if(Es(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?As(r,o):"number"!=typeof o&&"Number"!==ks(o)&&"String"!==ks(o)||As(r,js(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Es(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Vs=Et,Bs=String,Ws=Ds("JSON","stringify"),Gs=Ms(/./.exec),qs=Ms("".charAt),Hs=Ms("".charCodeAt),Qs=Ms("".replace),zs=Ms(1..toString),Js=/[\uD800-\uDFFF]/g,Ks=/^[\uD800-\uDBFF]$/,$s=/^[\uDC00-\uDFFF]$/,Xs=!Vs||Rs((function(){var t=Ds("Symbol")("stringify detection");return"[null]"!==Ws([t])||"{}"!==Ws({a:t})||"{}"!==Ws(Object(t))})),Ys=Rs((function(){return'"\\udf06\\ud834"'!==Ws("\udf06\ud834")||'"\\udead"'!==Ws("\udead")})),Zs=function(t,e){var r=_s(arguments),n=Us(e);if(Ns(n)||void 0!==t&&!Ts(t))return r[1]=function(t,e){if(Ns(n)&&(e=Fs(n,this,Bs(t),e)),!Ts(e))return e},Ps(Ws,null,r)},tc=function(t,e,r){var n=qs(r,e-1),o=qs(r,e+1);return Gs(Ks,t)&&!Gs($s,o)||Gs($s,t)&&!Gs(Ks,n)?"\\u"+zs(Hs(t,0),16):t};Ws&&Ls({target:"JSON",stat:!0,arity:3,forced:Xs||Ys},{stringify:function(t,e,r){var n=_s(arguments),o=Ps(Xs?Zs:Ws,null,n);return Ys&&"string"==typeof o?Qs(o,Js,tc):o}});var ec=ni,rc=re;Rr({target:"Object",stat:!0,forced:!Et||g((function(){ec.f(1)}))},{getOwnPropertySymbols:function(t){var e=ec.f;return e?e(rc(t)):[]}}),mi("asyncIterator"),mi("hasInstance"),mi("isConcatSpreadable"),mi("iterator"),mi("match"),mi("matchAll"),mi("replace"),mi("search"),mi("species"),mi("split");var nc=Si;mi("toPrimitive"),nc();var oc=ht,ic=Li;mi("toStringTag"),ic(oc("Symbol"),"Symbol"),mi("unscopables"),Li(p.JSON,"JSON",!0);var ac,sc,cc,uc=ct.Symbol,lc={},dc=T,fc=ie,hc=Function.prototype,pc=dc&&Object.getOwnPropertyDescriptor,gc=fc(hc,"name"),mc={EXISTS:gc,PROPER:gc&&"something"===function(){}.name,CONFIGURABLE:gc&&(!dc||dc&&pc(hc,"name").configurable)},vc=!g((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),yc=ie,bc=R,wc=re,Sc=vc,Oc=Mo("IE_PROTO"),xc=Object,Cc=xc.prototype,Ec=Sc?xc.getPrototypeOf:function(t){var e=wc(t);if(yc(e,Oc))return e[Oc];var r=e.constructor;return bc(r)&&e instanceof r?r.prototype:e instanceof xc?Cc:null},Ic=g,kc=R,jc=st,Ac=Qo,Lc=Ec,Dc=ii,Pc=be("iterator"),Fc=!1;[].keys&&("next"in(cc=[].keys())?(sc=Lc(Lc(cc)))!==Object.prototype&&(ac=sc):Fc=!0);var Mc=!jc(ac)||Ic((function(){var t={};return ac[Pc].call(t)!==t}));kc((ac=Mc?{}:Ac(ac))[Pc])||Dc(ac,Pc,(function(){return this}));var Rc={IteratorPrototype:ac,BUGGY_SAFARI_ITERATORS:Fc},Nc=Rc.IteratorPrototype,Tc=Qo,_c=z,Uc=Li,Vc=lc,Bc=function(){return this},Wc=Rr,Gc=V,qc=mc,Hc=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Tc(Nc,{next:_c(+!n,r)}),Uc(t,o,!1,!0),Vc[o]=Bc,t},Qc=Ec,zc=Li,Jc=ii,Kc=lc,$c=Rc,Xc=qc.PROPER,Yc=$c.BUGGY_SAFARI_ITERATORS,Zc=be("iterator"),tu="keys",eu="values",ru="entries",nu=function(){return this},ou=function(t,e,r,n,o,i,a){Hc(r,e,n);var s,c,u,l=function(t){if(t===o&&g)return g;if(!Yc&&t&&t in h)return h[t];switch(t){case tu:case eu:case ru:return function(){return new r(this,t)}}return function(){return new r(this)}},d=e+" Iterator",f=!1,h=t.prototype,p=h[Zc]||h["@@iterator"]||o&&h[o],g=!Yc&&p||l(o),m="Array"===e&&h.entries||p;if(m&&(s=Qc(m.call(new t)))!==Object.prototype&&s.next&&(zc(s,d,!0,!0),Kc[d]=nu),Xc&&o===eu&&p&&p.name!==eu&&(f=!0,g=function(){return Gc(p,this)}),o)if(c={values:l(eu),keys:i?g:l(tu),entries:l(ru)},a)for(u in c)(Yc||f||!(u in h))&&Jc(h,u,c[u]);else Wc({target:e,proto:!0,forced:Yc||f},c);return a&&h[Zc]!==g&&Jc(h,Zc,g,{name:o}),Kc[e]=g,c},iu=function(t,e){return{value:t,done:e}},au=it,su=lc,cu=Qi;or.f;var uu=ou,lu=iu,du="Array Iterator",fu=cu.set,hu=cu.getterFor(du);uu(Array,"Array",(function(t,e){fu(this,{type:du,target:au(t),index:0,kind:e})}),(function(){var t=hu(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,lu(void 0,!0);switch(t.kind){case"keys":return lu(r,!1);case"values":return lu(e[r],!1)}return lu([r,e[r]],!1)}),"values"),su.Arguments=su.Array;var pu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gu=p,mu=Li,vu=lc;for(var yu in pu)mu(gu[yu],yu),vu[yu]=vu.Array;var bu=uc,wu=be,Su=or.f,Ou=wu("metadata"),xu=Function.prototype;void 0===xu[Ou]&&Su(xu,Ou,{value:null}),mi("asyncDispose"),mi("dispose"),mi("metadata");var Cu=bu,Eu=I,Iu=ht("Symbol"),ku=Iu.keyFor,ju=Eu(Iu.prototype.valueOf),Au=Iu.isRegisteredSymbol||function(t){try{return void 0!==ku(ju(t))}catch(t){return!1}};Rr({target:"Symbol",stat:!0},{isRegisteredSymbol:Au});for(var Lu=Zt,Du=ht,Pu=I,Fu=Dt,Mu=be,Ru=Du("Symbol"),Nu=Ru.isWellKnownSymbol,Tu=Du("Object","getOwnPropertyNames"),_u=Pu(Ru.prototype.valueOf),Uu=Lu("wks"),Vu=0,Bu=Tu(Ru),Wu=Bu.length;Vu<Wu;Vu++)try{var Gu=Bu[Vu];Fu(Ru[Gu])&&Mu(Gu)}catch(t){}var qu=function(t){if(Nu&&Nu(t))return!0;try{for(var e=_u(t),r=0,n=Tu(Uu),o=n.length;r<o;r++)if(Uu[n[r]]==e)return!0}catch(t){}return!1};Rr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:qu}),mi("customMatcher"),mi("observable"),Rr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Au}),Rr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:qu}),mi("matcher"),mi("metadataKey"),mi("patternMatch"),mi("replaceAll");var Hu=d(Cu),Qu=I,zu=Jr,Ju=ro,Ku=rt,$u=Qu("".charAt),Xu=Qu("".charCodeAt),Yu=Qu("".slice),Zu=function(t){return function(e,r){var n,o,i=Ju(Ku(e)),a=zu(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=Xu(i,a))<55296||n>56319||a+1===s||(o=Xu(i,a+1))<56320||o>57343?t?$u(i,a):n:t?Yu(i,a,a+2):o-56320+(n-55296<<10)+65536}},tl={codeAt:Zu(!1),charAt:Zu(!0)}.charAt,el=ro,rl=Qi,nl=ou,ol=iu,il="String Iterator",al=rl.set,sl=rl.getterFor(il);nl(String,"String",(function(t){al(this,{type:il,string:el(t),index:0})}),(function(){var t,e=sl(this),r=e.string,n=e.index;return n>=r.length?ol(void 0,!0):(t=tl(r,n),e.index+=t.length,ol(t,!1))}));var cl=d(si.f("iterator"));function ul(t){return ul="function"==typeof Hu&&"symbol"==typeof cl?function(t){return typeof t}:function(t){return t&&"function"==typeof Hu&&t.constructor===Hu&&t!==Hu.prototype?"symbol":typeof t},ul(t)}var ll=d(si.f("toPrimitive"));function dl(t){var e=function(t,e){if("object"!=ul(t)||!t)return t;var r=t[ll];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ul(e)?e:e+""}function fl(t,e,r){return(e=dl(e))in t?Br(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const hl=new RegExp("^".concat("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","$"),"i"),pl=!!String.prototype.trim;function gl(t,e){return null!=t?e(t):t}function ml(t){return"object"==typeof t?JSON.stringify(t):""+t}function vl(t){return null!=t}function yl(t){return!!t&&hl.test(wl(t))}function bl(t){return"[object Array]"===Object.prototype.toString.call(t)}function wl(t){return pl?(""+t).trim():(""+t).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Sl(t){return"string"==typeof t}function Ol(t,e){return Sl(t)&&Sl(e)&&wl(t.toLowerCase())===wl(e.toLowerCase())}function xl(t){return!!t&&"object"==typeof t&&!bl(t)}function Cl(t){return!!t&&"function"==typeof t}function El(t){return function(t,e){return new Date((new Date).getTime()+t*e)}(t,864e5)}function Il(t,e,r){if(xl(e)){let n;return n="message"in e&&"string"==typeof e.message?new Error(r||e.message):new Error(r),n.name=t,"stack"in e&&"string"==typeof e.stack&&(n.stack=e.stack),"lineNumber"in e&&"number"==typeof e.lineNumber&&(n.lineNumber=e.lineNumber),"columnNumber"in e&&"number"==typeof e.columnNumber&&(n.columnNumber=e.columnNumber),n}{const e=Error(r);return e.name=t,e}}const kl="li_errors";class jl{constructor(t){fl(this,"data",void 0);const e=parseInt(t.toString())||5;this.data={h:{},q:{},size:e}}on(t,e,r){const n={callback:e.bind(r),unbound:e};return this.data={...this.data,h:{...this.data.h,[t]:[...this.data.h[t]||[],n]}},(this.data.q[t]||[]).forEach((t=>e.call(r,t))),this}once(t,e,r){const n=this.data.q[t]||[];if(n.length>0)return e.call(r,n[0]),this;{const n=o=>{this.off(t,n),e.call(r,o)};return n._=e,this.on(t,n,r)}}emit(t,e){(this.data.h[t]||[]).forEach((t=>t.callback(e)));const r=this.data.q[t]||[];return this.data={...this.data,q:{...this.data.q,[t]:[...r.length<this.data.size?r:r.slice(1),e]}},this}off(t,e){const r=this.data.h[t],n=r&&e&&r.filter((t=>t.unbound!==e))||[];if(n.length)this.data={...this.data,h:{...this.data.h,[t]:n}};else{const{[t]:e,...r}=this.data.h;this.data={...this.data,h:r}}return this}emitErrorWithMessage(t,e,r){const n=Il(t,r,e);return this.emit(kl,n)}emitError(t,e){const r=Il(t,e);return this.emit(kl,r)}}class Al{constructor(t){var e,r,n;fl(this,"url",void 0),fl(this,"timeout",void 0),fl(this,"calls",void 0),fl(this,"eventBus",void 0),fl(this,"retries",void 0),this.url=null!==(e=t.collectorUrl)&&void 0!==e?e:"https://rp.liadm.com",this.timeout=null!==(r=t.ajaxTimeout)&&void 0!==r?r:0,this.calls=t.callHandler,this.eventBus=t.eventBus,this.retries=null!==(n=t.ajaxRetries)&&void 0!==n?n:3}callBakers(t){try{const e=JSON.parse(t).bakers;if(bl(e))for(let t=0;t<e.length;t++)this.calls.pixelGet("".concat(e[t],"?dtstmp=").concat(Date.now()))}catch(e){this.eventBus.emitErrorWithMessage("CallBakers","Error while calling bakers with ".concat(t),e)}}sendState(t,e,r,n){if(t.sendsPixel()){n&&Cl(n)&&n();const o=t.asQuery().add("dtstmp",Date.now(),{prepend:!0}).toQueryString();r("".concat(this.url,"/").concat(e).concat(o))}}sendAjax(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.sendState(t,"j",(r=>{const n=o=>{this.calls.ajaxGet(r,(t=>{e.onLoad&&Cl(e.onLoad)&&e.onLoad(),this.callBakers(t)}),(r=>{o<=0?(this.sendPixel(t,e),this.eventBus.emitError("AjaxFailed",r)):n(o-1)}),this.timeout)};n(this.retries)}),e.onPreSend)}sendPixel(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.sendState(t,"p",(t=>this.calls.pixelGet(t,e.onLoad)),e.onPreSend)}}const Ll="lips",Dl="pre_lips",Pl="_li_duid",Fl="https://idx.liadm.com/idex",Ml=[];function Rl(t){const e=function(t){t="".concat(t);for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>255)return null;let e="";for(let n=0;n<t.length;n+=3){const o=[void 0,void 0,void 0,void 0];o[0]=t.charCodeAt(n)>>2,o[1]=(3&t.charCodeAt(n))<<4,t.length>n+2?(o[1]|=t.charCodeAt(n+1)>>4,o[2]=(15&t.charCodeAt(n+1))<<2,o[2]|=t.charCodeAt(n+2)>>6,o[3]=63&t.charCodeAt(n+2)):t.length>n+1&&(o[1]|=t.charCodeAt(n+1)>>4,o[2]=(15&t.charCodeAt(n+1))<<2);for(let t=0;t<o.length;t++){const n=o[t];e+=void 0===n?"=":(r=n)>=0&&r<64?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[r]:void 0}}var r;return e}(t);return e||""}const Nl=/[+/]|=+$/g,Tl={"+":"-","/":"_"};function _l(t){return Tl[t]||""}function Ul(t){let e=null;const r=encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,((t,e)=>String.fromCharCode(parseInt("0x"+e,16))));try{e=window&&Cl(window.btoa)?window.btoa:Rl}catch(t){e=Rl}return e(r).replace(Nl,_l)}for(var Vl=[],Bl=0;Bl<64;)Vl[Bl]=0|4294967296*Math.sin(++Bl%Math.PI);function Wl(t){var e,r,n,o=[e=1732584193,r=4023233417,~e,~r],i=[],a=unescape(encodeURI(t))+"",s=a.length;for(t=--s/4+2|15,i[--t]=8*s;~s;)i[s>>2]|=a.charCodeAt(s)<<8*s--;for(Bl=a=0;Bl<t;Bl+=16){for(s=o;a<64;s=[n=s[3],e+((n=s[0]+[e&r|~e&n,n&e|~n&r,e^r^n,r^(e|~n)][s=a>>4]+Vl[a]+~~i[Bl|15&[a,5*a+1,3*a+5,7*a][s]])<<(s=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*s+a++%4])|n>>>-s),e,r])e=0|s[1],r=s[2];for(a=4;a;)o[--a]+=s[a]}for(t="";a<32;)t+=(o[a>>3]>>4*(1^a++)&15).toString(16);return t}function Gl(t){var e,r,n,o,i,a=[],s=[r=1732584193,n=4023233417,~r,~n,3285377520],c=[],u=unescape(encodeURI(t))+"",l=u.length;for(c[t=--l/4+2|15]=8*l;~l;)c[l>>2]|=u.charCodeAt(l)<<8*~l--;for(e=l=0;e<t;e+=16){for(r=s;l<80;r=[r[4]+(a[l]=l<16?~~c[e+l]:2*u|u<0)+1518500249+[n&o|~n&i,u=341275144+(n^o^i),882459459+(n&o|n&i|o&i),u+1535694389][l++/5>>2]+((u=r[0])<<5|u>>>27),u,n<<30|n>>>2,o,i])u=a[l-3]^a[l-8]^a[l-14]^a[l-16],n=r[1],o=r[2],i=r[3];for(l=5;l;)s[--l]+=r[l]}for(u="";l<40;)u+=(s[l>>3]>>4*(7-l++)&15).toString(16);return u}for(var ql,Hl=18,Ql=[],zl=[];Hl>1;Hl--)for(ql=Hl;ql<320;)Ql[ql+=Hl]=1;function Jl(t,e){return 4294967296*Math.pow(t,1/e)|0}for(ql=0;ql<64;)Ql[++Hl]||(zl[ql]=Jl(Hl,2),Ql[ql++]=Jl(Hl,3));function Kl(t,e){return t>>>e|t<<-e}function $l(t){var e=zl.slice(Hl=ql=0,8),r=[],n=unescape(encodeURI(t))+"",o=n.length;for(r[t=--o/4+2|15]=8*o;~o;)r[o>>2]|=n.charCodeAt(o)<<8*~o--;for(o=[];Hl<t;Hl+=16){for(Jl=e.slice();ql<64;Jl.unshift(n+(Kl(n=Jl[0],2)^Kl(n,13)^Kl(n,22))+(n&Jl[1]^Jl[1]&Jl[2]^Jl[2]&n)))Jl[3]+=n=0|(o[ql]=ql<16?~~r[ql+Hl]:(Kl(n=o[ql-2],17)^Kl(n,19)^n>>>10)+o[ql-7]+(Kl(n=o[ql-15],7)^Kl(n,18)^n>>>3)+o[ql-16])+Jl.pop()+(Kl(n=Jl[4],6)^Kl(n,11)^Kl(n,25))+(n&Jl[5]^~n&Jl[6])+Ql[ql++];for(ql=8;ql;)e[--ql]+=Jl[ql]}for(n="";ql<64;)n+=(e[ql>>3]>>4*(7-ql++)&15).toString(16);return n}const Xl=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]);function Yl(t){const e=Zl(t);return!!e&&Xl.has(e.length)}function Zl(t){const e=t.match(/(\s+)?[a-f0-9]{32,64}(\s+)?/gi);return e&&e.map(wl)[0]}function td(t){const e=t.toLowerCase();return{md5:Wl(e),sha1:Gl(e),sha256:$l(e)}}function ed(t){return/\S+(@|%40)\S+\.\S+/.test(t)}function rd(t){const e=t.match(/\S+(@|%40)\S+\.\S+/);return e&&e.map(wl)[0]}function nd(t){const e=function(t){const e=[],r=new RegExp("([\\w\\d.+-]+(@|%40)[\\w\\d-]+.[\\w\\d.-]+)","g");let n=r.exec(t);for(;n;)e.push(wl(n[1])),n=r.exec(t);return e}(t),r=[];let n=t;for(let t=0;t<e.length;t++){const o=e[t],i=td(o);n=n.replace(o,i.md5),r.push(i)}return{stringWithoutRawEmails:n,hashesFromOriginalString:r}}function od(t,e){return"string"==typeof e&&ed(wl(e))?"*********":e}function id(t){return function(t){return"false"!==t&&("true"===t||t)}(function(t){return"null"===t||"undefined"===t?null:t}(function(t){return isNaN(+t)?t:+t}(t)))}function ad(t,e){if(e in t){const r=t[e];return bl(r)?r.map((t=>id(cd(t)))):id(cd(r))}}function sd(t){let e,r,n;const o={};return t&&-1!==(e=t.indexOf("?"))&&(r=t.slice(e+1))&&(-1===(n=r.indexOf("#"))||(r=r.slice(0,n)))?(r.split("&").forEach((function(t){if(t){let e;const r=t.split("=");e=r[0];const n=2===r.length?r[1]:"true";if("[]"===e.slice(-2)&&(e=e.slice(0,-2)),e in o){const t=o[e];bl(t)?t.push(n):o[e]=[t,n]}else o[e]=n}})),o):o}function cd(t){return t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}class ud{constructor(t){fl(this,"hash",void 0),fl(this,"host",void 0),fl(this,"hostname",void 0),fl(this,"pathname",void 0),fl(this,"port",void 0),fl(this,"protocol",void 0),fl(this,"search",void 0);const e=t.match(/^(https?\:\/\/)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(null===e)throw new TypeError("Failed to parse URL: ".concat(t));this.protocol=e[1]||"",this.host=e[2]||"",this.hostname=e[3]||"",this.port=e[4]||"",this.pathname=e[5]||"",this.search=e[6]||"",this.hash=e[7]||""}toString(){return"".concat(this.protocol).concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)}}const ld=["items","itemids"],dd=["email","emailhash","hash","hashedemail"];const fd=[function(t){const e=t.eventSource||{},r=Object.keys(e);for(const n of r){const r=n.toLowerCase();if(dd.indexOf(r)>-1){const r=wl(ml(e[n])),o=rd(r),i=Zl(r);if(o){const e=td(cd(o));return hd({hashedEmail:[e.md5,e.sha1,e.sha256]},t)}if(i&&Yl(i))return hd({hashedEmail:[i.toLowerCase()]},t)}}return t},function(t){const e=t.eventSource||{};return Object.keys(e).forEach((t=>{const r=t.toLowerCase(),n=e[t];ld.indexOf(r)>-1&&bl(n)&&n.length>10&&(n.length=10)})),{}}];function hd(t,e){const r={};function n(t){return xl(t)?t:{}}function o(t){return Object.keys(t)}const i=n(t),a=n(e);return o(i).forEach((t=>{r[t]=i[t]})),o(a).forEach((t=>{r[t]=a[t]})),r}class pd{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];fl(this,"tuples",void 0),this.tuples=t}add(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{stripEmpty:n=!0,prepend:o=!1}=r;return""===t||n&&""===e?this:o?(this.tuples.unshift([t,e]),this):(this.tuples.push([t,e]),this)}addOptional(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vl(e)?this.add(t,e,r):this}addParamsMap(t){return Object.keys(t).forEach((e=>{const r=t[e];vl(r)&&(bl(r)?r.forEach((t=>this.add(e,t))):this.add(e,r))})),this}copy(){return new pd(this.tuples.slice())}filteredCopy(t){return new pd(this.tuples.filter((e=>{let[r,n]=e;return t(r,n)})))}toQueryString(){let t="";return this.tuples.forEach((e=>{let[r,n]=e;const o=0===t.length?"?":"&";t="".concat(t).concat(o).concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})),t}}function gd(t){return null===t?"":t}const md="full",vd="no_path";function yd(t){if(void 0===t.pageUrl||0===t.pageUrl.length)return["",!1,[]];if(function(t){return!(void 0!==t.urlCollectionMode&&t.urlCollectionMode!==md||void 0!==t.queryParametersFilter&&""!==t.queryParametersFilter)}(t))return[t.pageUrl,!1,[]];const e=new ud(t.pageUrl),r=function(t){const e=sd(t),r=[];return Object.keys(e).forEach((t=>{r.push([t,ad(e,t)])})),r}(e.search),n=function(t,e){return e.urlCollectionMode===vd&&t.pathname.length>1}(e,t),o=function(t,e){if(void 0===e.queryParametersFilter||""===e.queryParametersFilter)return[];const r=new RegExp(e.queryParametersFilter);return t.map((t=>t[0])).filter((t=>r.test(t)))}(r,t);return n&&(e.pathname="/"),o.length>0&&(e.search=function(t,e){const r=t.filter((t=>-1===e.indexOf(t[0]))).map((t=>"".concat(t[0],"=").concat(t[1])));return r.length>0?"?".concat(r.join("&")):""}(r,o)),[e.toString(),n,o]}function bd(t){if(0!==t.length){const e=new ud(t);return e.pathname="",e.search="",e.toString()}}const wd=["setemail","setemailhash","sethashedemail"];class Sd{constructor(t,e){fl(this,"data",void 0),fl(this,"eventBus",void 0),this.data=Sd.safeFiddle(t,e),this.eventBus=e}static safeFiddle(t,e){try{return xl((r=JSON.parse(JSON.stringify(t))).eventSource)?fd.reduce((function(t,e){return hd(t,e(t))}),r):r}catch(t){return console.error(t),e.emitErrorWithMessage("StateCombineWith","Error while extracting event data",t),{}}var r}combineWith(t){return new Sd(hd(this.data,t),this.eventBus)}sendsPixel(){const t=xl(this.data.eventSource)?this.data.eventSource:{},e=Object.keys(t).filter((t=>"eventname"===t.toLowerCase()||"event"===t.toLowerCase())),r=e&&e.length>=1&&e[0],n=r&&wl(t[r]);return!n||-1===wd.indexOf(n.toLowerCase())}asQuery(){var t,e,r;const n=this.data,o=(new pd).addOptional("aid",n.appId).addOptional("did",n.distributorId).addOptional("se",gl(n.eventSource,(t=>Ul(JSON.stringify(t,od))))).addOptional("duid",n.liveConnectId).addOptional("tv",n.trackerVersion);if(vl(n.pageUrl)){const[t,e,r]=yd(n);o.add("pu",t).addOptional("pu_rp",e?"1":void 0).add("pu_rqp",r.join(","))}return o.addOptional("ae",gl(n.errorDetails,(t=>Ul(JSON.stringify(t))))),bl(n.retrievedIdentifiers)&&n.retrievedIdentifiers.forEach((t=>o.add("ext_".concat(t.name),t.value))),bl(n.hashesFromIdentifiers)&&n.hashesFromIdentifiers.forEach((t=>o.add("scre","".concat(t.md5,",").concat(t.sha1,",").concat(t.sha256)))),o.addOptional("li_did",null===(t=n.decisionIds)||void 0===t?void 0:t.join(",")).addOptional("e",null===(e=n.hashedEmail)||void 0===e?void 0:e.join(",")).addOptional("us_privacy",n.usPrivacyString).addOptional("wpn",n.wrapperName).addOptional("gdpr",gl(n.gdprApplies,(t=>t?"1":"0"))).addOptional("gdpr_consent",n.gdprConsent).addOptional("refr",n.referrer).addOptional("gpp_s",n.gppString).addOptional("gpp_as",null===(r=n.gppApplicableSections)||void 0===r?void 0:r.join(",")).addOptional("cd",n.cookieDomain).addOptional("ic",gd(n.resolvedIdCookie),{stripEmpty:!1}).addOptional("c",n.contextElements),o}}function Od(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return Id((()=>t.top.document.referrer))}function xd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const e=Id((()=>t.location.ancestorOrigins))||[],r=[];let n,o=t;for(;o!==top;)r.push(o),o=o.parent;r.push(o);for(let t=r.length-1;t>=0&&!n;t--)n=Id((()=>r[t].location.href)),0!==t&&(n||(n=Id((()=>r[t-1].document.referrer))),n||(n=e[t-1]));return n}function Cd(t,e,r){if(!t&&e&&""!==e&&r){const t=function(t,e){const r=window.document.querySelectorAll(t);let n="";for(let t=0;t<r.length;t++){const o=n+nd(r[t].outerHTML).stringWithoutRawEmails;if(!(Ed(o)<=e))return n;n=o}return n}(e,r);return Ul(t)}return""}function Ed(t){return Math.ceil(4*new Blob([t]).size/3)}function Id(t){try{return t()}catch(t){return}}function kd(t){let e=[];t&&(bl(t)?e=t:Sl(t)&&(e=t.split(",")));for(let t=0;t<e.length;t++)e[t]=e[t].trim();return e}function jd(t,e){const r=[];let n=[];for(let o=0;o<t.length;o++){const i=t[o],a=e.getCookie(i)||e.getDataFromLocalStorage(i);if(a){const t=nd(ml(a));r.push({name:i,value:t.stringWithoutRawEmails}),n=n.concat(t.hashesFromOriginalString)}}return{retrievedIdentifiers:r,hashesFromIdentifiers:Ad(n)}}function Ad(t){const e=new Set,r=[];for(let n=0;n<t.length;n++)e.has(t[n].md5)||(r.push(t[n]),e.add(t[n].md5));return r}const Ld=t=>{var e;return{...t,privacyMode:!!t.gdprApplies||(null!==(e=t.gppApplicableSections)&&void 0!==e?e:[]).indexOf(2)>-1}};function Dd(t,e){if(t&&t.appId&&t.distributorId){const r=t.distributorId;delete t.distributorId,e.emitError("AppIdAndDistributorIdPresent",new Error("Event contains both appId: ".concat(t.appId," and distributorId: ").concat(r,". Ignoring distributorId")))}return t}const Pd="idCookie";class Fd{constructor(t,e,r){var n,o;fl(this,"eventBus",void 0),fl(this,"calls",void 0),fl(this,"idexConfig",void 0),fl(this,"externalIds",void 0),fl(this,"source",void 0),fl(this,"publisherId",void 0),fl(this,"url",void 0),fl(this,"timeout",void 0),fl(this,"requestedAttributes",void 0),fl(this,"query",void 0),fl(this,"privacyMode",void 0),fl(this,"resolvedIdCookie",void 0),fl(this,"generateIdCookie",void 0),fl(this,"peopleVerifiedId",void 0),fl(this,"pageUrl",void 0);const i=t||{identityResolutionConfig:{}};this.eventBus=r,this.calls=e,this.idexConfig=i.identityResolutionConfig||{},this.externalIds=i.retrievedIdentifiers||[],this.source=this.idexConfig.source||"unknown",this.publisherId=this.idexConfig.publisherId||"any",this.url=this.idexConfig.url||Fl,this.timeout=this.idexConfig.ajaxTimeout||i.ajaxTimeout||5e3,this.requestedAttributes=this.idexConfig.requestedAttributes||Ml,this.privacyMode=null!==(n=i.privacyMode)&&void 0!==n&&n,this.resolvedIdCookie=i.resolvedIdCookie,this.generateIdCookie="generated"===this.idexConfig.idCookieMode,this.peopleVerifiedId=i.peopleVerifiedId,this.pageUrl=i.pageUrl,this.query=(new pd).addOptional("duid",i.peopleVerifiedId).addOptional("us_privacy",i.usPrivacyString).addOptional("gdpr",gl(i.gdprApplies,(t=>t?1:0))).addOptional("gdpr_consent",i.gdprConsent).addOptional("did",i.distributorId).addOptional("gpp_s",i.gppString).addOptional("gpp_as",null===(o=i.gppApplicableSections)||void 0===o?void 0:o.join(",")).addOptional("cd",i.cookieDomain).addOptional("ic",gd(i.resolvedIdCookie),{stripEmpty:!1}).addOptional("pu",gl(i.pageUrl,bd)),this.externalIds.forEach((t=>{this.query.add(t.name,t.value)})),this.requestedAttributes.forEach((t=>{this.query.add("resolve",t)}))}attributeResolutionAllowed(t){return"uid2"===t?!this.privacyMode:t!==Pd}filterParams(t){return t.filteredCopy(((t,e)=>"resolve"!==t||!!Sl(e)&&this.attributeResolutionAllowed(e)))}enrichExtraIdentifiers(t,e){const r=e.tuples.filter((t=>{let[e]=t;return"resolve"===e})).map((t=>{let[,e]=t;return e}));const n={...t};var o;return o=Pd,r.indexOf(o)>-1&&(this.generateIdCookie&&this.peopleVerifiedId?n.idCookie=this.peopleVerifiedId:this.resolvedIdCookie&&(n.idCookie=this.resolvedIdCookie)),n}responseReceived(t,e){return(r,n)=>{let o={};if(r)try{const t=JSON.parse(r);xl(t)&&(o=t)}catch(t){console.error("Error parsing response",t),this.eventBus.emitError("IdentityResolverParser",t)}const i=function(t){if(xl(t)&&"getResponseHeader"in t&&Cl(t.getResponseHeader)){const e=t.getResponseHeader("expires");if(e)return new Date(e)}}(n);t(this.enrichExtraIdentifiers(o,e),{expiresAt:i})}}buildUrl(t){return"".concat(this.url,"/").concat(this.source,"/").concat(this.publisherId).concat(this.filterParams(t).toQueryString())}getUrl(t){const e=this.query.copy().addParamsMap(null!=t?t:{});return this.buildUrl(e)}resolve(t,e,r){try{const n=this.query.copy().addParamsMap(null!=r?r:{});this.calls.ajaxGet(this.buildUrl(n),this.responseReceived(t,n),e,this.timeout)}catch(t){console.error("IdentityResolve",t),e&&Cl(e)&&e(t),this.eventBus&&this.eventBus.emitError("IdentityResolve",t)}}}function Md(t){return new jl("number"==typeof t&&t>=0?t:5)}function Rd(t){Cl(t.emitErrorWithMessage)&&Cl(t.emitError)||(t.emitErrorWithMessage=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=Il(e,r,n);return t.emit(kl,o)},t.emitError=function(e,r){return t.emitErrorWithMessage(e,r.message,r)})}function Nd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Md(t)}function Td(t){const e=window[t].eventBus||window.__li__evt_bus;return Rd(e),e}const _d="_li_dcdm_c";function Ud(t){const e=t.getCookie(_d);if(e)return e;const r=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",n=r.split(".");for(let e=n.length;e>0;e--){const r=".".concat(n.slice(e-1,n.length).join("."));if(t.setCookie(_d,r,void 0,"Lax",r),t.getCookie(_d))return r}return".".concat(r)}const Vd="cookie",Bd="none",Wd="disabled",Gd=t=>{const e=t.privacyMode?Wd:t.storageStrategy||Vd;return{...t,storageStrategy:e}},qd=El(30),Hd="lidids.",Qd=(t,e,r)=>r.indexOf(t)===e,zd=t=>t&&wl(t).length>0;function Jd(t,e){return r=>{function n(t,r){try{return r()}catch(r){return e.emitErrorWithMessage("DecisionsResolve",t,r),[]}}const o=n("Error while extracting new decision ids",(()=>{var t,e;return[].concat(r.pageUrl&&(t=r.pageUrl,e="li_did",ad(sd(t),e))||[]).map(wl).filter(zd).filter(yl).filter(Qd)})),i=n("Error while retrieving stored decision ids",(()=>t.findSimilarCookies(Hd).map(wl).filter(zd).filter(yl)));return o.forEach((n=>{try{(o=n)&&t.setCookie("".concat(Hd).concat(o),o,qd,"Lax",r.cookieDomain)}catch(t){e.emitErrorWithMessage("DecisionsResolve","Error while storing new decision id",t)}var o})),{...r,decisionIds:o.concat(i).filter(Qd)}}}const Kd="0123456789ABCDEFGHJKMNPQRSTVWXYZ",$d=Kd.length,Xd=Math.pow(2,48)-1,Yd=function(){const t="undefined"!=typeof window?window:null,e=t&&(t.crypto||t.msCrypto);if(e)return()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]/255};return()=>Math.random()}();function Zd(t,e){if(t>Xd)throw function(t){const e=new Error(t);return e.source="Ulid",e}("cannot encode time greater than "+Xd);let r,n="";for(;e>0;e--)r=t%$d,n=Kd.charAt(r)+n,t=(t-r)/$d;return n}function tf(){let t=Math.floor(Yd()*$d);return t===$d&&(t=$d-1),Kd.charAt(t)}function ef(){return Zd(Date.now(),10)+function(t){let e="";for(;t>0;t--)e=tf()+e;return e}(16)}const rf="_lc2_fpi";function nf(t,e){return r=>{let n;const o=t.get(rf);if(o)n=o.data;else{const o=e.getCookie(rf);if(o)t.set(rf,o),n=o;else{var i;const e="".concat(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return Gl(t.replace(/^\./,"")).substring(0,e)}(r.cookieDomain),"--").concat(ef()).toLocaleLowerCase();t.set(rf,e),n=null===(i=t.get(rf))||void 0===i?void 0:i.data}}return n&&e.setDataInLocalStorage(Pl,n),{...r,liveConnectId:n,peopleVerifiedId:n}}}const of={errorDetails:{message:"Unknown message",name:"Unknown name"}};function af(t){try{const e=1*t;return isNaN(e)?void 0:e}catch{}}function sf(t){try{return Sl(t)&&t.length&&t.length>120?"".concat(t.substr(0,120),"..."):"".concat(t)}catch{}}function cf(t){return xl(t)?{errorDetails:{message:sf(t.message)||"",name:sf(t.name)||"",stackTrace:sf(t.stack),lineNumber:af(t.lineNumber),columnNumber:af(t.columnNumber),fileName:sf(t.fileName)}}:of}const uf=()=>{};class lf{constructor(t,e,r){fl(this,"obj",void 0),fl(this,"name",void 0),fl(this,"errors",void 0),fl(this,"eventBus",void 0),this.obj=t,this.name=e,this.errors=[],this.eventBus=r}wrap(t){var e=this;if(xl(this.obj)){const r=this.obj[t];if(Cl(r))return function(){try{for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r.call(e.obj,...o)}catch(r){e.eventBus.emitErrorWithMessage(e.name,"Failed calling ".concat(t),r)}}}return this.errors.push(t),uf}reportErrors(){this.errors.length>0&&this.eventBus.emitErrorWithMessage(this.name,"The functions '".concat(JSON.stringify(this.errors),"' were not provided"))}}const df=()=>{};function ff(t,e,r){return Ol(e,Wd)?df:t.wrap(r)}function hf(t,e,r){return Ol(e,Bd)?df:ff(t,e,r)}class pf{constructor(t,e){fl(this,"minimalFunctions",void 0),this.minimalFunctions={getCookie:ff(e,t,"getCookie"),getDataFromLocalStorage:ff(e,t,"getDataFromLocalStorage"),localStorageIsEnabled:hf(e,t,"localStorageIsEnabled")}}static make(t,e,r){const n=new lf(e,"ReadOnlyStorageHandler",r),o=new pf(t,n);return n.reportErrors(),o}localStorageIsEnabled(){return!!this.minimalFunctions.localStorageIsEnabled()}getCookie(t){return this.minimalFunctions.getCookie(t)||null}getDataFromLocalStorage(t){return this.minimalFunctions.getDataFromLocalStorage(t)||null}}class gf extends pf{constructor(t,e){super(t,e),fl(this,"storageStrategy",void 0),fl(this,"functions",void 0),this.storageStrategy=t,this.functions={setCookie:hf(e,t,"setCookie"),removeDataFromLocalStorage:hf(e,t,"removeDataFromLocalStorage"),setDataInLocalStorage:hf(e,t,"setDataInLocalStorage"),findSimilarCookies:ff(e,t,"findSimilarCookies")}}static make(t,e,r){const n=new lf(e,"StorageHandler",r),o=new gf(t,n);return n.reportErrors(),o}setCookie(t,e,r,n,o){this.functions.setCookie(t,e,r,n,o)}setDataInLocalStorage(t,e){this.functions.setDataInLocalStorage(t,e)}removeDataFromLocalStorage(t){this.functions.removeDataFromLocalStorage(t)}findSimilarCookies(t){return this.functions.findSimilarCookies(t)||[]}}class mf extends Error{constructor(t){super(t),this.name="ParseError"}}class vf{constructor(t){fl(this,"handler",void 0),fl(this,"cookieDomain",void 0),fl(this,"eventBus",void 0),this.handler=t.storageHandler,this.cookieDomain=t.cookieDomain,this.eventBus=t.eventBus}deleteCookie(t){this.handler.setCookie(t,"",new Date(0),"Lax",this.cookieDomain)}parseMetaRecord(t){const e=JSON.parse(t);if(!xl(e))throw new mf("Meta record is not an object");let r;if("e"in e&&(r=new Date(e.e),isNaN(r.getTime())))throw new mf("Invalid expiresAt");if(!("w"in e))throw new mf("Missing writtenAt");const n=new Date(e.w);if(isNaN(n.getTime()))throw new mf("Invalid writtenAt");return{expiresAt:r,writtenAt:n}}serializeMetaRecord(t){let e;return t.expiresAt&&(e=t.expiresAt.getTime()),JSON.stringify({w:t.writtenAt.getTime(),e:e})}getCookieRecord(t,e){const r=this.handler.getCookie(e);if(!r||0===r.length)return null;let n;try{n=this.parseMetaRecord(r)}catch(r){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from cookies",r),this.deleteCookie(t),this.deleteCookie(e),null}const o=n.expiresAt;if(o&&o.getTime()<=Date.now())return null;const i=this.handler.getCookie(t);return i?{data:i,meta:n}:null}getLSRecord(t,e){const r=this.handler.getDataFromLocalStorage(e);if(!r||0===r.length)return null;let n;try{n=this.parseMetaRecord(r)}catch(r){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from ls",r),this.handler.removeDataFromLocalStorage(t),this.handler.removeDataFromLocalStorage(e),null}const o=n.expiresAt;if(o&&o.getTime()<=Date.now())return this.handler.removeDataFromLocalStorage(t),this.handler.removeDataFromLocalStorage(e),null;const i=this.handler.getDataFromLocalStorage(t);return i?{data:i,meta:n}:null}get(t){const e=yf(t),r=this.getCookieRecord(t,e),n=this.getLSRecord(t,e);return r&&n?r.meta.writtenAt.getTime()===n.meta.writtenAt.getTime()?r:r.meta.writtenAt>n.meta.writtenAt?(this.handler.setDataInLocalStorage(t,r.data),this.handler.setDataInLocalStorage(e,this.serializeMetaRecord(r.meta)),r):(this.handler.setCookie(t,n.data,n.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(e,this.serializeMetaRecord(n.meta),n.meta.expiresAt,"Lax",this.cookieDomain),n):r?(this.handler.setDataInLocalStorage(t,r.data),this.handler.setDataInLocalStorage(e,this.serializeMetaRecord(r.meta)),r):n?(this.handler.setCookie(t,n.data,n.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(e,this.serializeMetaRecord(n.meta),n.meta.expiresAt,"Lax",this.cookieDomain),n):null}set(t,e,r){const n=yf(t),o=this.serializeMetaRecord({writtenAt:new Date,expiresAt:r});this.handler.setDataInLocalStorage(t,e),this.handler.setDataInLocalStorage(n,o);const i=r||El(730);this.handler.setCookie(t,e,i,"Lax",this.cookieDomain),this.handler.setCookie(n,o,i,"Lax",this.cookieDomain)}}function yf(t){return"".concat(t,"_meta")}const bf=()=>{};function wf(t,e,r){return e?bf:t.wrap(r)}class Sf{constructor(t,e,r){fl(this,"functions",void 0);const n=new lf(t,"CallHandler",e);this.functions={ajaxGet:wf(n,r,"ajaxGet"),pixelGet:wf(n,r,"pixelGet")},n.reportErrors()}ajaxGet(t,e,r,n){this.functions.ajaxGet(t,e,r,n)}pixelGet(t,e){this.functions.pixelGet(t,e)}}function Of(t){return e=>{var r,n,o,i;return"cookie"===(null===(r=e.idCookie)||void 0===r?void 0:r.strategy)&&"string"==typeof(null===(n=e.idCookie)||void 0===n?void 0:n.name)?{...e,resolvedIdCookie:t.getCookie(e.idCookie.name)}:"localStorage"===(null===(o=e.idCookie)||void 0===o?void 0:o.strategy)&&"string"==typeof(null===(i=e.idCookie)||void 0===i?void 0:i.name)?{...e,resolvedIdCookie:t.getDataFromLocalStorage(e.idCookie.name)}:e}}const xf={};function Cf(t,e,r,n){if(t&&xl(t))if("config"in t)n.emitErrorWithMessage("StrayConfig","Received a config after LC has already been initialised",new Error(JSON.stringify(t)));else{const o=new Sd(r,n),i=o.combineWith({eventSource:t});xf.hashedEmail=xf.hashedEmail||i.data.hashedEmail;const a=hd({eventSource:t},xf),s=()=>n.emit(Dl,"0"),c=()=>n.emit(Ll,r);e.sendAjax(o.combineWith(a),{onPreSend:s,onLoad:c})}else n.emitErrorWithMessage("EventNotAnObject","Received event was not an object",new Error(t))}function Ef(t,e,r,n){try{t.forEach((t=>{const o=t;bl(o)?o.forEach((t=>Cf(t,e,r,n))):Cf(o,e,r,n)}))}catch(t){console.error("Error sending events",t),n.emitErrorWithMessage("LCPush","Failed sending an event",t)}}function If(t,e,r,n){try{const i={...Dd(t,n),identifiersToResolve:t.identifiersToResolve||[],contextSelectors:t.contextSelectors||"",contextElementsLength:t.contextElementsLength||0},a=(o=Gd(Ld(i)),{...o,pageUrl:xd(),referrer:Od(),contextElements:Cd(o.privacyMode,o.contextSelectors,o.contextElementsLength)}),s=new Sf(r,n,a.privacyMode),c=gf.make(a.storageStrategy,e,n),u=function(t){return e=>({...e,cookieDomain:Ud(t)})}(c)(a),l=new vf({storageHandler:c,eventBus:n,cookieDomain:u.cookieDomain}),d=Of(c)(nf(l,c)(Jd(c,n)(function(t,e){return r=>{try{return{...r,...jd(kd(r.identifiersToResolve),t)}}catch(t){return e.emitError("IdentifiersEnricher",t),{...r,retrievedIdentifiers:[],hashesFromIdentifiers:[]}}}}(c,n)(u)))),f=new Al({collectorUrl:i.collectorUrl,ajaxTimeout:i.ajaxTimeout,eventBus:n,callHandler:s});!function(t,e,r){try{r.on(kl,(n=>{e.sendPixel(new Sd({...t,...cf(n)},r))}))}catch(t){console.error("handlers.error.register",t)}}(d,f,n);const h=new Fd(d,s,n),p=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Ef(e,f,d,n)};return{push:p,fire:()=>p({}),peopleVerifiedId:d.peopleVerifiedId,ready:!0,resolve:h.resolve.bind(h),resolutionCallUrl:h.getUrl.bind(h),config:i,eventBus:n,storageHandler:c,cache:l}}catch(t){console.error(t),n.emitErrorWithMessage("LCConstruction","Failed to build LC",t)}var o}function kf(t,e,r,n){const o=window[t.globalVarName]||[],i=function(t){try{if(window&&window[t.globalVarName]&&window[t.globalVarName].ready){const e=window[t.globalVarName].config&&function(t,e){if(t.appId!==e.appId||t.wrapperName!==e.wrapperName||t.collectorUrl!==e.collectorUrl)return{appId:[t.appId,e.appId],wrapperName:[t.wrapperName,e.wrapperName],collectorUrl:[t.collectorUrl,e.collectorUrl]}}(window[t.globalVarName].config,t);if(e){const r=new Error;r.name="ConfigSent",r.message="Additional configuration received";const n=Td(t.globalVarName);window[t.globalVarName].eventBus=n,n.emitErrorWithMessage("LCDuplication",JSON.stringify(e),r)}return window[t.globalVarName]}}catch(t){console.error("Could not initialize error bus")}}(t)||If(t,e,r,n)||o;if(bl(o))for(let t=0;t<o.length;t++)i.push(o[t]);return window[i.config.globalVarName]=i,window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((t=>t.config.globalVarName===i.config.globalVarName)).length&&window.liQ_instances.push(i),i}function jf(t,e,r,n){const o=xl(t)&&t||{},i=n||Nd();let a;try{a=o.globalVarName?kf(o,e,r,i):function(t,e,r,n){const o=If(t,e,r,n);return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(o,e,r,i)}catch(t){console.error(t),i.emitErrorWithMessage("LCConstruction","Failed to build LC",t)}return a}function Af(t,e){const r=bl(t)?t:ml(t).split(","),n=[];for(let t=0;t<r.length;t++){const i=wl(r[t]),a=e.getCookie(i)||e.getDataFromLocalStorage(i);!a||(o=ml(a),/\S+(@|%40)\S+\.\S+/.test(o))||ed(ml(a))||n.push({name:i,value:ml(a)})}var o;return n}function Lf(t,e,r,n,o){try{const i={...Dd(t,n),identifiersToResolve:t.identifiersToResolve||[]},a=Gd(Ld(i)),s=pf.make(a.storageStrategy,e,n),c=new Sf(r,n,a.privacyMode),u=function(t,e){return r=>{try{return{...r,retrievedIdentifiers:Af(r.identifiersToResolve,t)}}catch(t){return e.emitError("IdentifiersEnrich",t),{...r,retrievedIdentifiers:[]}}}}(s,n)(Of(s)(function(t,e){return r=>{try{return{...r,peopleVerifiedId:r.peopleVerifiedId||t.getDataFromLocalStorage(Pl)||void 0}}catch(t){return e.emitError("PeopleVerifiedEnrich",t),r}}}(s,n)(a))),l=new Fd(u,c,n);return{push:t=>o(t),fire:()=>o({}),peopleVerifiedId:u.peopleVerifiedId,ready:!0,resolve:l.resolve.bind(l),resolutionCallUrl:l.getUrl.bind(l),config:i,eventBus:n,storageHandler:s}}catch(t){console.error(t)}}function Df(t,e,r,n){const o=xl(t)&&t||{},i=n||Nd();try{return o.globalVarName?function(t,e,r,n){const o=window[t.globalVarName]=window[t.globalVarName]||[],i=Lf(t,e,r,n,o.push.bind(o));return window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((t=>t.config.globalVarName===i.config.globalVarName)).length&&window.liQ_instances.push(i),i}(o,e,r,i):function(t,e,r,n){const o=Lf(t,e,r,n,(()=>{}));return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(o,e,r,i)}catch(t){console.error(t)}return{}}const Pf=function(t,e,r,n,o){const i="minimal"===n,a=o||Nd();return(i?Df:jf)(xl(t)&&t||{},e,r,a)};var Ff=r(4516),Mf=r(5164),Rf=r(9633),Nf=r(1138),Tf=r(3253),_f=r(5102);function Uf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Bf="pre_lips",Wf="liveIntentId",Gf="liveintent.com",qf=(0,Mf.df)({moduleType:Rf.y2,moduleName:Wf}),Hf={nonId:!0},Qf={ajaxGet:function(t,e,r,n){(0,c.OI)(n)(t,{success:e,error:r},void 0,{method:"GET",withCredentials:!0})},pixelGet:function(t,e){return(0,s.hq)(t,e)}},zf=!1,Jf=null;function Kf(){zf=!0}function $f(t){function e(t){return Object.entries(t).flatMap((function(t){var e,r=(0,i.Z)(t,2),n=r[0],o=r[1];return"boolean"==typeof o&&o?[(e=n,"fpid"===e?"idCookie":e)]:[]}))}return"object"===(0,o.Z)(t)?e(Vf(Vf({},Hf),t)):e(Hf)}function Xf(t){if(Jf)return Jf;var e=(t=t||{}).fpid||{},r={publisherId:t.publisherId||"any",requestedAttributes:$f(t.requestedAttributesOverrides)};t.url&&(r.url=t.url),r.ajaxTimeout=t.ajaxTimeout||5e3;var n,o,i=(n=t.liCollectConfig,o={},(n=n||{}).appId&&(o.appId=n.appId),n.fpiStorageStrategy&&(o.storageStrategy=n.fpiStorageStrategy),n.fpiExpirationDays&&(o.expirationDays=n.fpiExpirationDays),n.collectorUrl&&(o.collectorUrl=n.collectorUrl),o.ajaxTimeout=n.ajaxTimeout||5e3,o);!i.appId&&t.distributorId?(i.distributorId=t.distributorId,r.source=t.distributorId):r.source=t.partner||"prebid",i.wrapperName="prebid",i.trackerVersion="8.52.2",i.identityResolutionConfig=r,i.identifiersToResolve=t.identifiersToResolve||[],i.fireEventDelay=t.fireEventDelay,i.idCookie={},i.idCookie.name=e.name,i.idCookie.strategy="html5"==e.strategy?"localStorage":e.strategy;var a=Ff.nX.getConsentData();a&&(i.usPrivacyString=a);var s=Ff.rp.getConsentData();s&&(i.gdprApplies=s.gdprApplies,i.gdprConsent=s.consentString);var c=Ff.TJ.getConsentData();return c&&(i.gppString=c.gppString,i.gppApplicableSections=c.applicableSections),Jf=Zf.getInitializer()(i,qf,Qf),t.emailHash&&Jf.push({hash:t.emailHash}),Jf}function Yf(){if(!zf&&Jf){var t=Jf.config.fireEventDelay||500;setTimeout((function(){window.liQ_instances.forEach((function(t){return t.eventBus.once(Bf,Kf)})),!zf&&Jf&&Jf.fire()}),t)}}var Zf={moduleMode:"standard",name:Wf,setModuleMode:function(t){this.moduleMode=t},getInitializer:function(){var t=this;return function(e,r,n){return Pf(e,r,n,t.moduleMode)}},decode:function(t,e){var r=e&&e.params||{};return Jf||Xf(r),Yf(),function(t){var e={},r=t.nonId||t.unifiedId;if(r){var n=Vf(Vf({},t),{},{lipbid:r});delete n.unifiedId,e.lipb=n}return t.uid2&&(e.uid2={id:t.uid2,ext:{provider:Gf}}),t.bidswitch&&(e.bidswitch={id:t.bidswitch,ext:{provider:Gf}}),t.medianet&&(e.medianet={id:t.medianet,ext:{provider:Gf}}),t.magnite&&(e.magnite={id:t.magnite,ext:{provider:Gf}}),t.index&&(e.index={id:t.index,ext:{provider:Gf}}),t.openx&&(e.openx={id:t.openx,ext:{provider:Gf}}),t.pubmatic&&(e.pubmatic={id:t.pubmatic,ext:{provider:Gf}}),t.sovrn&&(e.sovrn={id:t.sovrn,ext:{provider:Gf}}),t.idCookie&&(Ff.VP.getCoppa()||(e.lipb=Vf(Vf({},e.lipb),{},{fpid:t.idCookie}),e.fpid={id:t.idCookie}),delete e.lipb.idCookie),t.thetradedesk&&(e.lipb=Vf(Vf({},e.lipb),{},{tdid:t.thetradedesk}),e.tdid={id:t.thetradedesk,ext:{rtiPartner:"TDID",provider:(0,_f.nH)().domain||Gf}},delete e.lipb.thetradedesk),e}(t)},getId:function(t){var e=Xf(t&&t.params||{});if(e){Yf();return{callback:function(t){e.resolve((function(e){t(e)}),(function(e){(0,s.H)("".concat(Wf,": ID fetch encountered an error: "),e),t()}))}}}},eids:Vf(Vf(Vf({},Tf.u),Nf.l),{},{lipb:{getValue:function(t){return t.lipbid},source:"liveintent.com",atype:3,getEidExt:function(t){if(Array.isArray(t.segments)&&t.segments.length)return{segments:t.segments}}},bidswitch:{source:"bidswitch.net",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},medianet:{source:"media.net",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},magnite:{source:"rubiconproject.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},index:{source:"liveintent.indexexchange.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},openx:{source:"openx.net",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},pubmatic:{source:"pubmatic.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},sovrn:{source:"liveintent.sovrn.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},fpid:{source:"fpid.liveintent.com",atype:1,getValue:function(t){return t.id}}})};(0,u.Bx)("userId",Zf),(0,a.z)("liveIntentIdSystem")}},function(t){t.O(0,[7292,5240,5823,9270],(function(){return e=5424,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8223],{47:function(e,t,n){var r=n(1002),i=n(4942),o=n(8640),d=n(4679),c=n(4358),s=n(4699),a=n(8928),p=n(6896);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l="https://ms-cookie-sync.presage.io",h="1.6.0";function g(e){if(!(0,c.LQ)(e.getFloor))return 0;var t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"});return"USD"===t.currency?t.floor:0}function w(){try{return(0,c.Zy)()}catch(e){return(0,c.e7)()}}var b={code:"ogury",gvlid:31,supportedMediaTypes:[d.Mk],isBidRequestValid:function(e){var t=(0,p.p)(e),n=Boolean(t)&&t.length>0,r=!!e.params.adUnitId,i=!!e.params.assetKey;return n&&r&&i},getUserSyncs:function(e,t,n,r){var i=n&&n.consentString||"";return e.iframeEnabled?[{type:"iframe",url:"".concat(l,"/user-sync.html?gdpr_consent=").concat(i,"&source=prebid")}]:e.pixelEnabled?[{type:"image",url:"".concat(l,"/v1/init-sync/bid-switch?iab_string=").concat(i,"&source=prebid")},{type:"image",url:"".concat(l,"/ttd/init-sync?iab_string=").concat(i,"&source=prebid")},{type:"image",url:"".concat(l,"/xandr/init-sync?iab_string=").concat(i,"&source=prebid")}]:[]},buildRequests:function(e,t){var n,r,i,o,d,c,s,a,u={id:t.bidderRequestId,tmax:Math.min(1e3,t.timeout),at:1,regs:{ext:{gdpr:t.gdprConsent&&t.gdprConsent.gdprApplies?1:0}},site:{domain:location.hostname,page:location.href},user:{ext:{consent:""}},imp:[],ext:{adapterversion:h,prebidversion:"8.52.2"},device:{w:(d=window.top.document.documentElement.clientWidth?window.top.document.documentElement.clientWidth:0,c=window.top.innerWidth?window.top.innerWidth:0,s=window.top.outerWidth?window.top.outerWidth:0,a=window.top.screen.width?window.top.screen.width:0,d||c||s||a),h:(n=window.top.document.documentElement.clientHeight?window.top.document.documentElement.clientHeight:0,r=window.top.innerHeight?window.top.innerHeight:0,i=window.top.outerHeight?window.top.outerHeight:0,o=window.top.screen.height?window.top.screen.height:0,n||r||i||o),pxratio:window.devicePixelRatio}};return t.gdprConsent&&t.gdprConsent.consentString&&(u.user.ext.consent=t.gdprConsent.consentString),e.forEach((function(e){var t=(0,p.p)(e).map((function(e){return{w:e[0],h:e[1]}}));if(e.mediaTypes&&e.mediaTypes.hasOwnProperty("banner")){u.site.id=e.params.assetKey;var n=g(e);e.userId&&(u.user.ext.uids=e.userId),e.userIdAsEids&&(u.user.ext.eids=e.userIdAsEids),u.imp.push(m(m({id:e.bidId,tagid:e.params.adUnitId},n&&{bidfloor:n}),{},{banner:{format:t},ext:m(m({},e.params),{},{timeSpentOnPage:document.timeline&&document.timeline.currentTime?document.timeline.currentTime:0})}))}})),{method:"POST",url:"https://mweb-hb.presage.io/api/header-bidding-request",data:u,options:{contentType:"application/json"}}},interpretResponse:function(e){if(!e||!e.body||"object"!=(0,r.Z)(e.body)||0===Object.keys(e.body).length)return(0,c.yN)("no response or body is malformed"),[];var t=[];return e.body.seatbid.forEach((function(e){e.bid.forEach((function(e){var n={requestId:e.impid,cpm:e.price,currency:"USD",width:e.w,height:e.h,creativeId:e.id,netRevenue:!0,ttl:60,ext:e.ext,meta:{advertiserDomains:e.adomain},nurl:e.nurl,adapterVersion:h,prebidVersion:"8.52.2"};n.ad=e.adm,t.push(n)}))})),t},getFloor:g,onBidWon:function(e){w().OG_PREBID_BID_OBJECT=m({},e&&m({},e)),e&&e.nurl&&(0,a.hj)(e.nurl,null)},getWindowContext:w,onTimeout:function(e){(0,a.hj)("".concat("https://ms-ads-monitoring-events.presage.io","/bid_timeout"),null,JSON.stringify(m(m({},e[0]),{},{location:window.location.href})),{method:"POST",contentType:"application/json"})}};(0,s.dX)(b),(0,o.z)("oguryBidAdapter")}},function(e){e.O(0,[4108,5823,9270],(function(){return t=47,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1249],{4972:function(r,e,a){var n=a(8640),o=a(2797),t=a(5164),i=a(4358),u=a(9633),c="pairId",d="pairId",l=(0,t.df)({moduleType:u.y2,moduleName:c});function p(r){return l.localStorageIsEnabled()?l.getDataFromLocalStorage(r):null}function s(r){return l.cookiesAreEnabled()?l.getCookie(r):null}var f={name:c,gvlid:755,decode:function(r){return r&&Array.isArray(r)?{pairId:r}:void 0},getId:function(r){var e=p(d)||s(d),a=[];if(e&&"string"==typeof e)try{a=a.concat(JSON.parse(atob(e)))}catch(r){(0,i.PN)(r)}var n=r&&r.params||{};if(n&&n.liveramp){var o=n.liveramp.storageKey||"_lr_pairId",t=p(o)||s(o);try{var u=JSON.parse(atob(t));a=a.concat(u.envelope)}catch(r){(0,i.PN)(r)}}if(0!=a.length)return{id:a};(0,i.PN)("PairId not found.")},eids:{pairId:{source:"google.com",atype:571187}}};(0,o.Bx)("userId",f),(0,n.z)("pairIdSystem")}},function(r){r.O(0,[5823,9270],(function(){return e=4972,r(r.s=e);var e}));r.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3365],{968:function(t,n,r){var e=r(4942),a=r(885),o=r(2982),i=r(8640),u=r(2797),s=r(5164),c=r(4358),d=r(265),p=r(6475),f=r(4614),m=r(9633),l="permutive",v=(0,c.qp)("[PermutiveRTD]"),g="permutive-prebid-rtd",b="p_standard",h="permutive",x="p_standard_aud",w=(0,s.df)({moduleType:m.XG,moduleName:l});function Z(t){return(0,c.PO)(t)?{params:t}:{}}var _={};function y(t){var n=function(){try{return Z(window.permutive.addons.prebid.getPermutiveRtdConfig())}catch(t){return null}}()||_;return(0,c.Ee)({waitForIt:!1,params:{maxSegs:500,acBidders:[],overwrites:{}}},n,t)}function S(t,n,r){var i,u,s,f,m,l=(0,d.Z)(n,"params.acBidders"),g=(0,d.Z)(n,"params.maxSegs"),w=(0,d.Z)(n,"params.transformations")||[],Z=null!==(i=null==r||null===(u=r.ssp)||void 0===u?void 0:u.ssps)&&void 0!==i?i:[],_=null!==(s=null==r||null===(f=r.ssp)||void 0===f?void 0:f.cohorts)&&void 0!==s?s:[],y=null!==(m=null==r?void 0:r.topics)&&void 0!==m?m:{};new Set([].concat((0,o.Z)(l),(0,o.Z)(Z))).forEach((function(n){var i={ortb2:t[n]||{}},u=[];l.indexOf(n)>-1&&(u=r.ac),Z.indexOf(n)>-1&&(u=(0,o.Z)(new Set([].concat((0,o.Z)(u),(0,o.Z)(_)))).slice(0,g));var s=function(t,n,r,i,u,s,f){var m;v.logInfo("Current ortb2 config",{bidder:t,config:n});for(var l=(0,d.Z)(f,t)||[],g="permutive.com",w={name:g,segment:r.map((function(t){return{id:t}}))},Z=s.filter((function(t){var n=t.id;return D.hasOwnProperty(n)})).map((function(t){var n=t.id,r=t.config;return D[n](w,r)})),_={name:h,segment:l.map((function(t){return{id:t}}))},y=(0,c.Ee)({},n),S=(0,d.Z)(y,"ortb2.user.data")||[],I=[],N=0,E=Object.entries(u);N<E.length;N++){var O=(0,a.Z)(E[N],2),k=O[0],R=O[1];I.push({name:g,ext:{segtax:Number(k)},segment:R.map((function(t){return{id:t.toString()}}))})}var j=S.filter((function(t){return t.name!==w.name&&t.name!==_.name})).concat(w,Z,_).concat(I);v.logInfo("Updating ortb2.user.data",{bidder:t,user_data:j}),(0,p.N)(y,"ortb2.user.data",j);var B=(0,d.Z)(y,"ortb2.user.keywords"),F=(m={},(0,e.Z)(m,b,r),(0,e.Z)(m,x,i),(0,e.Z)(m,h,l),m),P=Object.entries(F).flatMap((function(t){var n=(0,a.Z)(t,2),r=n[0];return n[1].map((function(t){return"".concat(r,"=").concat(t)}))})),U=[B].concat((0,o.Z)(P)).filter(Boolean).join(",");v.logInfo("Updating ortb2.user.keywords",{bidder:t,keywords:U}),(0,p.N)(y,"ortb2.user.keywords",U),r.length>0&&((0,p.N)(y,"ortb2.user.ext.data.".concat(b),r),v.logInfo('Extending ortb2.user.ext.data with "'.concat(b,'"'),r));l.length>0&&((0,p.N)(y,"ortb2.user.ext.data.".concat(h),l.map(String)),v.logInfo('Extending ortb2.user.ext.data with "'.concat(h,'"'),l));r.length>0&&((0,p.N)(y,"ortb2.site.ext.permutive.".concat(b),r),v.logInfo('Extending ortb2.site.ext.permutive with "'.concat(b,'"'),r));return v.logInfo("Updated ortb2 config",{bidder:t,config:y}),y}(n,i,u,_,y,w,r);t[n]=s.ortb2}))}function I(t,n,r){var e=t&&t.adUnits||(0,i.R)().adUnits,a={deepSetValue:p.N,deepAccess:d.Z,isFn:c.LQ,mergeDeep:c.Ee},o={appnexusAst:"appnexus"};e&&e.forEach((function(t){t.bids.forEach((function(t){var e=t.bidder;void 0!==o[e]&&(e=o[e]);var i=function(t,n){var r=(0,d.Z)(t,"params.acBidders")||[];return(0,f.q9)(r,n)}(n,e),u=function(t,n){var r=(0,d.Z)(t,"params.overwrites.".concat(n));return r&&(0,c.LQ)(r)?r:null}(n,e);if(u){u(t,r,i,a,(function(t){return t}))}}))}))}function N(t){try{t()}catch(t){(0,c.H)(t)}}function E(t,n){try{return JSON.parse(w.getDataFromLocalStorage(t))||n}catch(t){return n}}var O="_unknown_",D={iab:function(t,n){return{name:t.name,ext:{segtax:n.segtax},segment:(t.segment||[]).map((function(t){return{id:(r=t.id,e=n.iabIds,e[r]||O)};var r,e})).filter((function(t){return t.id!==O}))}}};function k(t,n){var r=function(t){var n=E("_psegs",[]).map(Number).filter((function(t){return t>=1e6})).map(String),r=E("_ppam",[]),e=E("_pcrprs",[]),a={ac:[].concat((0,o.Z)(e),(0,o.Z)(r),(0,o.Z)(n)),ix:E("_pindexs",[]),rubicon:E("_prubicons",[]),appnexus:E("_papns",[]),gam:E("_pdfps",[]),ssp:E("_pssps",{cohorts:[],ssps:[]}),topics:E("_ppsts",{})};for(var i in a)if("ssp"===i)a[i].cohorts&&Array.isArray(a[i].cohorts)&&(a[i].cohorts=a[i].cohorts.slice(0,t));else if("topics"===i)for(var u in a[i])a[i][u]=a[i][u].slice(0,t);else a[i]=a[i].slice(0,t);return a}((0,d.Z)(n,"params.maxSegs"));N((function(){I(t,n,r)})),N((function(){var e;S(null===(e=t.ortb2Fragments)||void 0===e?void 0:e.bidder,n,r)}))}var R=!1,j={name:l,getBidRequestData:function(t,n,r){var e=function(){v.logInfo("Request data updated"),n()},a=y(r);k(t,a),N((function(){if(R||!a.waitForIt||void 0===window.permutive||"function"!=typeof window.permutive.ready)return e();window.permutive.ready((function(){v.logInfo("SDK is realtime, updating cohorts"),R=!0,k(t,y(r)),e()}),"realtime"),v.logInfo("Registered cohort update when SDK is realtime")}))},init:function(t,n){var r;return r=(0,c.dj)(w.getDataFromLocalStorage(g)),_=Z(r),!0}};(0,u.Bx)("realTimeData",j),(0,i.z)("permutiveRtdProvider")}},function(t){t.O(0,[5823,9270],(function(){return n=968,t(t.s=n);var n}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5030],{7497:function(e,n,t){var r,i=t(4942),o=t(8640),s=t(8525),d=t(4358),c=t(265),a=t(2200),u=t(3304),f=t(3193),p=t(4699),b=t(2021),l=t(4614),v={appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},timeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},timeout:500},openx:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.openx.net/openrtb2/auction",noP1Consent:"https://prebid.openx.net/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.openx.net/cookie_sync",noP1Consent:"https://prebid.openx.net/cookie_sync"},timeout:1e3},openwrap:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs",noP1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs"},timeout:500}},g=t(8928),m=t(2797),y=t(7673),h=t(885),C=t(1002),O=t(919),j=t(6475),B=t(9626),R=t(9933),q=t(9702),P=t(1021),S=t(6372),I=t(1087),x=t(286),E=t(9633),w=t(571),k=t(4947),D=t(9957),A=t(1136);function N(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,d=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){d=!0,o=e},f:function(){try{s||null==t.return||t.return()}finally{if(d)throw o}}}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?U(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=new Set(["bidderCode","bidderRequestId","uniquePbsTid","bids","timeout"]),H=(0,O.x)({processors:R.X,context:{netRevenue:!0},imp:function(e,n,t){Object.assign(t,n.pbsData);var r=e(n,t);if((n.bids||[]).forEach((function(e){e.ortb2Imp&&Object.keys(e.ortb2Imp).length>0&&(0,j.N)(r,"ext.prebid.imp.".concat(e.bidder),e.ortb2Imp)})),Object.values(P.E).some((function(e){return r[e]})))return r.secure=t.s2sBidRequest.s2sConfig.secure,r},request:function(e,n,t,r){if(n.length){var i=r.s2sBidRequest,o=r.requestedBidders,s=r.eidPermissions,c=e(n,t,r);return c.tmax=i.s2sConfig.timeout,c.ext.tmaxmax=c.ext.tmaxmax||r.s2sBidRequest.requestBidsTimeout,[c.app,c.dooh,c.site].forEach((function(e){var n;!e||null!==(n=e.publisher)&&void 0!==n&&n.id||(0,j.N)(e,"publisher.id",i.s2sConfig.accountId)})),(0,d.kJ)(s)&&s.length>0&&(o&&(0,d.kJ)(o)&&(s=s.map((function(e){return _(_({},e),{},{bidders:e.bidders.filter((function(e){return o.includes(e)}))})}))),(0,j.N)(c,"ext.prebid.data.eidpermissions",s)),r.transmitTids||(0,j.N)(c,"ext.prebid.createtids",!1),c}(0,d.H)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},bidResponse:function(e,n,t){var r,i,o=t.actualBidRequests.get(t.seatbid.seat);null==o&&(o=t.actualBidRequests.get(null)),o&&Object.assign(t,{bidRequest:o,bidderRequest:t.actualBidderRequests.find((function(e){return e.bidderCode===o.bidder}))});var s=e(n,t);return s.requestBidder=null===(r=o)||void 0===r?void 0:r.bidder,null!==(i=s.native)&&void 0!==i&&i.ortb&&(s.adm=s.native.ortb),s.requestTimestamp=t.requestTimestamp,{bid:Object.assign((0,B.m)(a.Q_.GOOD,{src:a.os.SRC,bidId:o?o.bidId||o.bid_Id:null,transactionId:t.adUnit.transactionId,adUnitId:t.adUnit.adUnitId,auctionId:t.bidderRequest.auctionId}),s),adUnit:t.adUnit.code}},overrides:(r={},(0,i.Z)(r,S.DZ,{id:function(e,n,t,r){n.id=r.impId},params:function(e,n,t,r){var i,o=r.s2sBidRequest.s2sConfig.adapterOptions,s=N(r.actualBidRequests.values());try{for(s.s();!(i=s.n()).done;){var d=i.value;(0,q.j)(n,d,r,r),o&&o[d.bidder]&&Object.assign(n.ext.prebid.bidder[d.bidder],o[d.bidder])}}catch(e){s.e(e)}finally{s.f()}},bidfloor:function(e,n,t,r){var i,o,s=(0,A.LT)((0,D.fe)((function(e){return[e.bidfloor,e.bidfloorcur]}))),d=N(r.actualBidRequests.values());try{for(d.s();!(o=d.n()).done;){var c=o.value,a={};if(e(a,c,r),null==a.bidfloorcur||null==a.bidfloor){i=null;break}i=null==i?a:s(i,a)}}catch(e){d.e(e)}finally{d.f()}null!=i&&Object.assign(n,i)}}),(0,i.Z)(r,S.Z,{fpd:function(e,n,t,r){var i,o,s;(r.transmitTids&&(0,j.N)(n,"source.tid",t.auctionId),(0,d.Ee)(n,null===(i=r.s2sBidRequest.ortb2Fragments)||void 0===i?void 0:i.global),r.s2sBidRequest.s2sConfig.extPrebid&&"object"===(0,C.Z)(r.s2sBidRequest.s2sConfig.extPrebid))&&(0,j.N)(n,"ext.prebid",(0,d.Ee)((null===(s=n.ext)||void 0===s?void 0:s.prebid)||{},r.s2sBidRequest.s2sConfig.extPrebid));r.getRedactor().ortb2(n);var c=Object.entries((null===(o=r.s2sBidRequest.ortb2Fragments)||void 0===o?void 0:o.bidder)||{}).filter((function(e){var n=(0,h.Z)(e,1)[0],t=r.s2sBidRequest.s2sConfig.bidders;return r.s2sBidRequest.s2sConfig.allowUnknownBidderCodes||t&&t.includes(n)})).map((function(e){var n=(0,h.Z)(e,2),t=n[0],i=n[1];return{bidders:[t],config:{ortb2:r.getRedactor(t).ortb2(i)}}}));c.length&&(0,j.N)(n,"ext.prebid.bidderconfig",c)},extPrebidAliases:function(e,n,t,r){r.actualBidderRequests.forEach((function(t){return e(n,t,r)}))},sourceExtSchain:function(e,n,t,r){var i=(0,c.Z)(n,"ext.prebid.schains")||[],o=new Set(i.flatMap((function(e){return e.bidders})));(i=Object.values(i.concat(r.actualBidderRequests.filter((function(e){return!o.has(e.bidderCode)})).map((function(e){return{bidders:[e.bidderCode],schain:(0,c.Z)(e,"bids.0.schain")}}))).filter((function(e){var n=e.bidders,t=e.schain;return(null==n?void 0:n.length)>0&&t})).reduce((function(e,n){var t=n.bidders,r=n.schain,i=JSON.stringify(r);return e.hasOwnProperty(i)||(e[i]={bidders:new Set,schain:r}),t.forEach((function(n){return e[i].bidders.add(n)})),e}),{})).map((function(e){var n=e.bidders,t=e.schain;return{bidders:Array.from(n),schain:t}}))).length&&(0,j.N)(n,"ext.prebid.schains",i)}}),(0,i.Z)(r,S.YC,{serverSideStats:function(e,n,t,r){r.actualBidderRequests.forEach((function(i){return e(n,t,_(_({},r),{},{bidderRequest:i,bidRequests:i.bids}))}))},fledgeAuctionConfigs:function(e,n,t,r){var i=Object.values(r.impContext).flatMap((function(e){return(e.paapiConfigs||[]).map((function(n){var t=e.actualBidderRequests.find((function(e){return e.bidderCode===n.bidder})),r=e.actualBidRequests.get(n.bidder);return{adUnitCode:e.adUnit.code,ortb2:null==t?void 0:t.ortb2,ortb2Imp:null==r?void 0:r.ortb2Imp,config:n.config}}))}));i.length>0&&(n.fledgeAuctionConfigs=i)}}),r)});var M=t(9128);function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var F,W,L=f.vc.getConfig,z=a.os.SRC,V=0,G={bidders:Object.freeze([]),timeout:1e3,syncTimeout:1e3,maxBids:1,adapter:"prebidServer",allowUnknownBidderCodes:!1,adapterOptions:{},syncUrlModifier:{},ortbNative:{eventtrackers:[{event:1,methods:[1,2]}]}};function Y(e){if(e){var n=Array.isArray(e)?e:[e],t=[];return n.every((function(e,n,r){!function(e){["endpoint","syncEndpoint"].forEach((function(n){if((0,d.d8)(e[n])){var t=e[n];e[n]={p1Consent:t,noP1Consent:t}}!(0,d.PO)(e[n])||e[n].p1Consent&&e[n].noP1Consent||["p1Consent","noP1Consent"].forEach((function(t){e[n][t]||(0,d.yN)("s2sConfig.".concat(n,".").concat(t," not defined.  PBS request will be skipped in some P1 scenarios."))}))}))}(e);var i=function(e){if(e.defaultVendor){var n=e.defaultVendor,t=Object.keys(e);if(!v[n])return(0,d.H)("Incorrect or unavailable prebid server default vendor option: "+n),!1;Object.keys(v[n]).forEach((function(r){G[r]!==e[r]&&(0,l.q9)(t,r)||(e[r]=v[n][r])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(e);if(!1!==i){var o=function(e){var n=Object.keys(e);if(["accountId","endpoint"].filter((function(e){return!(0,l.q9)(n,e)&&((0,d.H)(e+" missing in server to server config"),!0)})).length>0)return!1}(e);if(!1!==o)return Array.isArray(e.bidders)&&(r[n].bidders=e.bidders.filter((function(e){return-1===t.indexOf(e)&&(t.push(e),!0)}))),!0}return(0,d.yN)("prebidServer: s2s config is disabled"),!1}))?F=n:void 0}}function K(e,n,t,r,i){if(F.length!==V){V++;var o={},s=L("userSync.filterSettings");if(s){var c=s.all,a=s.iframe||c,u=s.image||c;a&&(o=Object.assign({iframe:a},o)),u&&(o=Object.assign({image:u},o))}var f={uuid:(0,d.DO)(),bidders:e,account:i.accountId,filterSettings:o},p=i.userSyncLimit;(0,d.hj)(p)&&p>0&&(f.limit=p),n&&(f.gdpr=n.gdprApplies?1:0,!1!==n.gdprApplies&&(f.gdpr_consent=n.consentString)),t&&(f.us_privacy=t),r&&(f.gpp_sid=r.applicableSections.join(),f.gpp=r.gppString),"boolean"==typeof i.coopSync&&(f.coopSync=i.coopSync);var b=JSON.stringify(f);(0,g.hj)(ee(i.syncEndpoint,n),(function(e){try{Q((e=JSON.parse(e)).bidder_status,i)}catch(e){(0,d.H)(e)}}),b,{contentType:"text/plain",withCredentials:!0})}}function Q(e,n){if(0!==e.length){var t=e.shift();t.no_cookie?function(e,n,t,r,i){i.syncUrlModifier&&"function"==typeof i.syncUrlModifier[t]&&(n=i.syncUrlModifier[t](e,n,t));!function(e,n,t,r,i){n?"image"===e||"redirect"===e?((0,d.ji)('Invoking image pixel user sync for bidder: "'.concat(t,'"')),(0,d.hq)(n,r,i)):"iframe"===e?((0,d.ji)('Invoking iframe user sync for bidder: "'.concat(t,'"')),(0,d.Vs)(n,r,i)):((0,d.H)('User sync type "'.concat(e,'" not supported for bidder: "').concat(t,'"')),r()):((0,d.H)('No sync url for bidder "'.concat(t,'": ').concat(n)),r())}(e,n,t,r,i.syncTimeout)}(t.usersync.type,t.usersync.url,t.bidder,Q.bind(null,e,n),n):Q(e,n)}}f.vc.setDefaults({s2sConfig:G}),L("s2sConfig",(function(e){return Y(e.s2sConfig)}));var X={};function $(e){var n,t,r=function(e,n){if([e,n].every(d.d8))return X["".concat(e).concat(n)]}(e.auctionId,e.adId);(0,d.d8)(r)&&((0,d.ji)('Invoking image pixel for wurl on BID_WIN: "'.concat(r,'"')),(0,d.hq)(r),n=e.auctionId,t=e.adId,[n,t].every(d.d8)&&(X["".concat(n).concat(t)]=void 0))}function ee(e,n){var t=(0,y.h)(n),r=t?e.p1Consent:e.noP1Consent;return r||(0,d.yN)("Missing matching consent URL when gdpr="+t),r}function ne(e){var n,t,r;return Array.isArray(e)&&e.length>0&&(n=e[0].gdprConsent,t=e[0].uspConsent,r=e[0].gppConsent),{gdprConsent:n,uspConsent:t,gppConsent:r}}var te=(0,m.z3)("sync",(function(e,n,t,r){var i=r.onResponse,o=r.onError,s=r.onBid,c=r.onFledge,a=ne(n).gdprConsent,p=(0,d.I8)(e.ad_units),b=p.map((function(e){return e.bids.map((function(e){return e.bidder})).filter(d.tT)})).reduce(d.xH,[]).filter(d.tT),v=e.metrics.measureTime("buildRequests",(function(){return function(e,n,t,r,i){var o,s,c=(0,d.AB)(),a=new Set,p=[],b=(0,u.O6)(e.s2sConfig),l=(o=(0,I.hb)(b),s={},function(e){return null==e?o:(s.hasOwnProperty(e)||(s[e]=(0,I.hb)((0,x.T)(E.UL,e))),s[e])});(t=t.map((function(e){return l().bidRequest(e)}))).forEach((function(e){var r=new Map;t.bids=e.bids.map((function(e){return l(e.bidder).bidRequest(e)})),e.bids.forEach((function(t){null!=t.mediaTypes&&(0,d.yN)("Prebid Server adapter does not (yet) support bidder-specific mediaTypes for the same adUnit. Size mapping configuration will be ignored for adUnit: ".concat(e.code,", bidder: ").concat(t.bidder)),r.set(t.bidder,(0,d.zE)(t.bid_id,n))}));for(var i=e.code,o=1;a.has(i);)o++,i="".concat(e.code,"-").concat(o);a.add(i),p.push(_(_(_({},e),{},{adUnitCode:e.code},(0,d.iG)(r.values().next().value||{},["userId","userIdAsEids","schain"])),{},{pbsData:{impId:i,actualBidRequests:r,adUnit:e}}))}));var v=_(_({},Object.fromEntries(Object.entries(n[0]).filter((function(e){var n=(0,h.Z)(e,1)[0];return!Z.has(n)})))),{},{fledgeEnabled:n.some((function(e){return e.fledgeEnabled}))});return H.toORTB({bidderRequest:v,bidRequests:p,context:{currency:f.vc.getConfig("currency.adServerCurrency")||"USD",ttl:e.s2sConfig.defaultTtl||60,requestTimestamp:c,s2sBidRequest:e,requestedBidders:r,actualBidderRequests:n,eidPermissions:i,nativeRequest:e.s2sConfig.ortbNative,getRedactor:l,transmitTids:(0,w.xD)(k.Jt,b)}})}(e,n,p,b,W)})),g=v&&JSON.stringify(v);(0,d.PN)("BidRequest: "+g);var m=ee(e.s2sConfig.endpoint,a);if(v&&g&&m){var y=e.metrics.startTiming("net");t(m,{success:function(n){var t;y();try{t=JSON.parse(n);var r=e.metrics.measureTime("interpretResponse",(function(){return function(e,n){return H.fromORTB({response:e,request:n})}(t,v)})),o=r.bids,a=r.fledgeAuctionConfigs;o.forEach(s),a&&a.forEach(c)}catch(e){(0,d.H)(e)}!t||t.status&&(0,l.q9)(t.status,"Error")?((0,d.H)("error parsing response: ",t?t.status:"not valid JSON"),i(!1,b)):i(!0,b,t)},error:function(){y(),o.apply(this,arguments)}},g,{contentType:"text/plain",withCredentials:!0,browsingTopics:(0,w.xD)(k.oK,(0,u.O6)(e.s2sConfig))})}else(0,d.H)("PBS request not made.  Check endpoints.")}),"processPBSRequest");(0,d.EE)().setEidPermissions=function(e){W=e},u.ZP.registerBidAdapter(new function(){var e=new s.Z("prebidServer");return e.callBids=function(e,n,t,r,o){var s=e.metrics=(0,M.Bf)((0,c.Z)(n,"0.metrics")).newMetrics().renameWith((function(n){return["adapter.s2s.".concat(n),"adapters.s2s.".concat(e.s2sConfig.defaultVendor,".").concat(n)]}));r=s.startTiming("total").stopBefore(r),n.forEach((function(e){return(0,M.Bf)(e.metrics).join(s,{continuePropagation:!1})}));var l=ne(n),v=l.gdprConsent,g=l.uspConsent,m=l.gppConsent;if(Array.isArray(F)){if(e.s2sConfig&&e.s2sConfig.syncEndpoint&&ee(e.s2sConfig.syncEndpoint,v))K(e.s2sConfig.bidders.map((function(e){return u.ZP.aliasRegistry[e]||e})).filter((function(e,n,t){return t.indexOf(e)===n})),v,g,m,e.s2sConfig);te(e,n,o,{onResponse:function(t,i,o){t&&n.forEach((function(e){return b.j8(a.FP.BIDDER_DONE,e)})),function(e,n){var t,r;return(null==e||null===(t=e.extPrebid)||void 0===t?void 0:t.returnallbidstatus)&&(null==n||null===(r=n.ext)||void 0===r?void 0:r.seatnonbid)}(e.s2sConfig,o)&&b.j8(a.FP.SEAT_NON_BID,{seatnonbid:o.ext.seatnonbid,auctionId:n[0].auctionId,requestedBidders:i,response:o,adapterMetrics:s}),r(!1),function(e,n,t,r){e.forEach((function(e){var i=u.ZP.getBidAdapter(e);i&&i.registerSyncs&&f.vc.runWithBidder(e,i.registerSyncs.bind(i,[],n,t,r))}))}(i,v,g,m)},onError:function(e,t){(0,d.H)("Prebid server call failed: '".concat(e,"'"),t),n.forEach((function(e){return b.j8(a.FP.BIDDER_ERROR,{error:t,bidderRequest:e})})),r(t.timedOut)},onBid:function(n){var r,i,o,s=n.adUnit,c=n.bid,u=c.metrics=e.metrics.fork().renameWith();u.checkpoint("addBidResponse"),null!=c.requestId&&null!=c.requestBidder||e.s2sConfig.allowUnknownBidderCodes?u.measureTime("addBidResponse.validate",(function(){return(0,p.JY)(s,c)}))?(t(s,c),c.pbsWurl&&(r=c.auctionId,i=c.adId,o=c.pbsWurl,[r,i].every(d.d8)&&(X["".concat(r).concat(i)]=o))):t.reject(s,c,a.Gw.INVALID):((0,d.yN)("PBS adapter received bid from unknown bidder (".concat(c.bidder,"), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid.")),t.reject(s,c,a.Gw.BIDDER_DISALLOWED))},onFledge:function(e){(0,p.Ie)(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({auctionId:n[0].auctionId},e),{config:e.config})}})}},b.on(a.FP.BID_WON,$),Object.assign(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:z})},"prebidServer"),(0,o.z)("prebidServerBidAdapter")}},function(e){e.O(0,[5823,5279,951,7635,9270],(function(){return n=7497,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2563],{9312:function(d,n,e){var i=e(8640),u=e(2797),o=e(4358),r={name:"pubProvidedId",gvlid:e(4516).$P,decode:function(d){var n=d?{pubProvidedId:d}:void 0;return(0,o.PN)("PubProvidedId: Decoded value "+JSON.stringify(n)),n},getId:function(d){var n=d&&d.params||{},e=[];return(0,o.kJ)(n.eids)&&(e=e.concat(n.eids)),"function"==typeof n.eidsFunction&&(e=e.concat(n.eidsFunction())),{id:e}}};(0,u.Bx)("userId",r),(0,i.z)("pubProvidedIdSystem")}},function(d){d.O(0,[5823,9270],(function(){return n=9312,d(d.s=n);var n}));d.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5126],{5817:function(e,t,r){var a=r(885),i=r(2982),n=r(4942),s=r(1002),o=r(8640),d=r(4358),p=r(265),c=r(6475),l=r(4699),u=r(4679),m=r(3193),g=r(5706),f=r(5975),h=r(2200);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v="pubmatic",w="PubMatic: ",x="USD",N=void 0,P="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),O={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:"",profId:"",verId:""},I="number",T="string",k="boolean",z="array",C={mimes:z,minduration:I,maxduration:I,startdelay:I,playbackmethod:z,api:z,protocols:z,w:I,h:I,battr:z,linearity:I,placement:I,plcmt:I,minbitrate:I,maxbitrate:I,skip:I},E=1,S=3,j={1:"PMP",5:"PREF",6:"PMPG"},_={bootstrapPlayer:function(e){var t={code:e.adUnitCode};if(e.vastXml?t.vastXml=e.vastXml:e.vastUrl&&(t.vastUrl=e.vastUrl),e.vastXml||e.vastUrl){for(var r,a=_.getRendererId("pubmatic",e.rendererCode),i=document.getElementById(e.adUnitCode),n=0;n<window.bluebillywig.renderers.length;n++)if(window.bluebillywig.renderers[n]._id===a){r=window.bluebillywig.renderers[n];break}r?r.bootstrap(t,i):(0,d.yN)("".concat(w,": Couldn't find a renderer with ").concat(a))}else(0,d.yN)("".concat(w,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,t){var r=P.replace("$RENDERER",e),a=g.Th.install({url:r,loaded:!1,adUnitCode:t});try{a.setRender(_.outstreamRender)}catch(e){(0,d.yN)("".concat(w,": Error tying to setRender on renderer"),e)}return a},outstreamRender:function(e){e.renderer.push((function(){_.bootstrapPlayer(e)}))},getRendererId:function(e,t){return"".concat(e,"-").concat(t)}},R=[u.Mk,u.pX,u.B5],M=0,U=!1,q=["pubmatic"],Z=["all"];function A(e,t){if(!(0,d.d8)(t))return t&&(0,d.yN)("PubMatic: Ignoring param key: "+e+", expects string-value, found "+(0,s.Z)(t)),N;switch(e){case"pmzoneid":return t.split(",").slice(0,50).map((function(e){return e.trim()})).join();case"kadfloor":case"lat":case"lon":return parseFloat(t)||N;case"yob":return parseInt(t)||N;default:return t}}function J(e){var t;e.params.adUnit="",e.params.adUnitIndex="0",e.params.width=0,e.params.height=0,e.params.adSlot=(t=e.params.adSlot,(0,d.d8)(t)?t.replace(/^\s+/g,"").replace(/\s+$/g,""):(t&&(0,d.yN)("pubmatic: adSlot must be a string. Ignoring adSlot"),""));var r=e.params.adSlot,a=r.split(":");if(r=a[0],2==a.length&&(e.params.adUnitIndex=a[1]),a=r.split("@"),e.params.adUnit=a[0],a.length>1){if(2!=(a=a[1].split("x")).length)return void(0,d.yN)("PubMatic: AdSlot Error: adSlot not in required format");e.params.width=parseInt(a[0],10),e.params.height=parseInt(a[1],10)}else if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(u.Mk)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var i=0,n=[];i<e.mediaTypes.banner.sizes.length;i++)2===e.mediaTypes.banner.sizes[i].length&&n.push(e.mediaTypes.banner.sizes[i]);e.mediaTypes.banner.sizes=n,e.mediaTypes.banner.sizes.length>=1&&(e.params.width=e.mediaTypes.banner.sizes[0][0],e.params.height=e.mediaTypes.banner.sizes[0][1],e.mediaTypes.banner.sizes=e.mediaTypes.banner.sizes.splice(1,e.mediaTypes.banner.sizes.length-1))}}function X(){var e=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection);switch(null==e?void 0:e.effectiveType){case"ethernet":return 1;case"wifi":return 2;case"slow-2g":case"2g":return 4;case"3g":return 5;case"4g":return 6;default:return 0}}function B(e,t,r){var a,i="Ignoring param key: "+e+", expects "+r+", found "+(0,s.Z)(t);switch(r){case k:a=d.jn;break;case I:a=d.hj;break;case T:a=d.d8;break;case z:a=d.kJ}return a(t)?t:((0,d.yN)(w+i),N)}var D={desc:"desc",desc2:"desc2",body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl",saleprice:"saleprice",displayurl:"displayurl"},F=Object.values(D);function L(e){var t;if(e.ortb){e=e.ortb,t=y(y({ver:"1.2"},e),{},{assets:[]});var r=e.assets,a=function(e){return e.title||e.img||e.data||e.video};if(r.length<1||!r.some((function(e){return a(e)})))return(0,d.yN)("".concat(w,": Native assets object is empty or contains some invalid object")),U=!0,t;r.forEach((function(e){var r=e;r.img&&(r.img.type==S?(r.w=r.w||r.width||(r.sizes?r.sizes[0]:N),r.h=r.h||r.height||(r.sizes?r.sizes[1]:N),r.wmin=r.wmin||r.minimumWidth||(r.minsizes?r.minsizes[0]:N),r.hmin=r.hmin||r.minimumHeight||(r.minsizes?r.minsizes[1]:N)):r.img.type==E&&(r.w=r.w||r.width||(r.sizes?r.sizes[0]:N),r.h=r.h||r.height||(r.sizes?r.sizes[1]:N))),r&&void 0!==r.id&&a(r)&&t.assets.push(r)}))}else t=function(e){if(!e&&!(0,d.PO)(e))return(0,d.yN)("".concat(w,": Native assets object is empty or not an object: ").concat(e)),void(U=!0);var t={ver:"1.2",assets:[]};for(var r in e)if(!h.zA.includes(r))if(h.FY.hasOwnProperty(r)||F.includes(r)){var a=e[r],i=0;a.required&&(0,d.jn)(a.required)&&(i=Number(a.required));var n={id:t.assets.length,required:i};if(r in D)n.data={type:h.s$[D[r]]},(a.len||a.length)&&(n.data.len=a.len||a.length),a.ext&&(n.data.ext=a.ext);else if("icon"===r||"image"===r){if(n.img={type:"icon"===r?h.oF.ICON:h.oF.MAIN},a.aspect_ratios)if((0,d.kJ)(a.aspect_ratios))if(a.aspect_ratios.length){var s=a.aspect_ratios[0],o=s.min_width,p=s.min_height;(0,d.U)(o)&&(0,d.U)(p)?(n.img.wmin=o,n.img.hmin=p):(0,d.yN)("".concat(w,": image.aspect_ratios min_width or min_height are invalid: ").concat(o,", ").concat(p));var c=a.aspect_ratios.filter((function(e){return e.ratio_width&&e.ratio_height})).map((function(e){return"".concat(e.ratio_width,":").concat(e.ratio_height)}));c.length>0&&(n.img.ext={aspectratios:c})}else(0,d.yN)("".concat(w,": image.aspect_ratios was passed, but it's empty: ").concat(a.aspect_ratios));else(0,d.yN)("".concat(w,": image.aspect_ratios was passed, but it's not a an array: ").concat(a.aspect_ratios));n.img.w=a.w||a.width,n.img.h=a.h||a.height,n.img.wmin=a.wmin||a.minimumWidth||(a.minsizes?a.minsizes[0]:N),n.img.hmin=a.hmin||a.minimumHeight||(a.minsizes?a.minsizes[1]:N),a.sizes&&(2===a.sizes.length&&(0,d.U)(a.sizes[0])&&(0,d.U)(a.sizes[1])?((0,d.PN)("".concat(w,": if asset.sizes exist, by OpenRTB spec we should remove wmin and hmin")),n.img.w=a.sizes[0],n.img.h=a.sizes[1],delete n.img.hmin,delete n.img.wmin):(0,d.yN)("".concat(w,": image.sizes was passed, but its value is not an array of integers: ").concat(a.sizes))),a.ext&&(n.img.ext=a.ext),a.mimes&&(n.img.mimes=a.mimes)}else"title"===r?(n.title={len:a.len||a.length||140},a.ext&&(n.title.ext=a.ext)):"ext"===r&&(n.ext=a,delete n.required);t.assets.push(n)}else(0,d.yN)("".concat(w,": Unrecognized native asset code: ").concat(r,". Asset will be ignored."));return t.assets.length<1?((0,d.yN)("".concat(w,": Could not find any valid asset")),void(U=!0)):t}(e);return t}function H(e){var t,r=e.mediaTypes.banner.sizes,a=[];if(r!==N&&(0,d.kJ)(r)){if(t={},e.params.width||e.params.height)t.w=e.params.width,t.h=e.params.height;else{if(0===r.length)return t=N,(0,d.yN)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),t;t.w=parseInt(r[0][0],10),t.h=parseInt(r[0][1],10),r=r.splice(1,r.length-1)}r.length>0&&(a=[],r.forEach((function(e){e.length>1&&a.push({w:e[0],h:e[1]})})),a.length>0&&(t.format=a)),t.pos=0,t.topframe=(0,d.yL)()?0:1}else(0,d.yN)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),t=N;return t}function V(e){var t,r=(0,d.Ee)((0,p.Z)(e.mediaTypes,"video"),e.params.video);if(r!==N){for(var a in t={},function(e,t){(0,p.Z)(e,"plcmt")||(0,d.yN)("Video.plcmt param missing for "+t)}(r,e.adUnitCode),C)r.hasOwnProperty(a)&&(t[a]=B(a,r[a],C[a]));(0,d.kJ)(e.mediaTypes.video.playerSize[0])?(t.w=parseInt(e.mediaTypes.video.playerSize[0][0],10),t.h=parseInt(e.mediaTypes.video.playerSize[0][1],10)):(0,d.hj)(e.mediaTypes.video.playerSize[0])&&(t.w=parseInt(e.mediaTypes.video.playerSize[0],10),t.h=parseInt(e.mediaTypes.video.playerSize[1],10))}else t=N,(0,d.yN)("PubMatic: Error: Video config params missing for adunit: "+e.params.adUnit+" with mediaType set as video. Ignoring video impression in the adunit.");return t}function $(e,t){var r,a,i={},n={},o=e.hasOwnProperty("sizes")?e.sizes:[],l="",g=[],f=null==t?void 0:t.fledgeEnabled;if(function(e,t){t.params.deals&&((0,d.kJ)(t.params.deals)?t.params.deals.forEach((function(t){(0,d.d8)(t)&&t.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:t})):(0,d.yN)("PubMatic: Error: deal-id present in array bid.params.deals should be a strings with more than 3 charaters length, deal-id ignored: "+t)})):(0,d.yN)("PubMatic: Error: bid.params.deals should be an array of strings."))}(i={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:A("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:A("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?A("currency",e.params.currency):x,displaymanager:"Prebid.js",displaymanagerver:"8.52.2"},e),function(e,t){var r,a="";if(t.params.dctr)if(a=t.params.dctr,(0,d.d8)(a)&&a.length>0){var i=a.split("|");a="",i.forEach((function(e){a+=e.length>0?e.trim()+"|":""})),r=a.length,"|"===a.substring(r,r-1)&&(a=a.substring(0,r-1)),e.ext.key_val=a.trim()}else(0,d.yN)("PubMatic: Ignoring param : dctr with value : "+a+", expects string-value, found empty or non-string value")}(i,e),function(e,t){var r=t.rtd&&t.rtd.jwplayer&&t.rtd.jwplayer.targeting||void 0,a="";if(void 0!==r&&""!==r&&r.hasOwnProperty("segments")){var i,n=r.segments.length;a+="jw-id="+r.content.id;for(var s=0;s<n;s++)a+="|jw-"+r.segments[s]+"=1";(i=e.ext)&&void 0===i.key_val?i.key_val=a:i.key_val+="|"+a}}(i,e),e.hasOwnProperty("mediaTypes"))for(l in e.mediaTypes)switch(l){case u.Mk:(r=H(e))!==N&&(i.banner=r);break;case u.B5:n.request=JSON.stringify(L(e.nativeParams)),U?((0,d.yN)("PubMatic: Error: Error in Native adunit "+e.params.adUnit+". Ignoring the adunit. Refer to http://prebid.org/dev-docs/show-native-ads.html for more details."),U=!1):i.native=n;break;case u.pX:(a=V(e))!==N&&(i.video=a)}else r={pos:0,w:e.params.width,h:e.params.height,topframe:(0,d.yL)()?0:1},(0,d.kJ)(o)&&o.length>1&&((o=o.splice(1,o.length-1)).forEach((function(e){g.push({w:e[0],h:e[1]})})),r.format=g),i.banner=r;return function(e,t){var r=y({},(0,p.Z)(t,"ortb2Imp.ext.data"));Object.keys(r).forEach((function(t){"pbadslot"===t?"string"==typeof r[t]&&r[t]&&(0,c.N)(e,"ext.data.pbadslot",r[t]):"adserver"===t?["name","adslot"].forEach((function(t){var a=(0,p.Z)(r,"adserver.".concat(t));"string"==typeof a&&a&&((0,c.N)(e,"ext.data.adserver.".concat(t.toLowerCase()),a),"adslot"===t&&(0,c.N)(e,"ext.dfp_ad_unit_code",a))})):(0,c.N)(e,"ext.data.".concat(t),r[t])}));var a=(0,p.Z)(t,"ortb2Imp.ext.gpid");a&&(0,c.N)(e,"ext.gpid",a)}(i,e),function(e,t){var r=-1;"function"!=typeof t.getFloor||m.vc.getConfig("pubmatic.disableFloors")||[u.Mk,u.pX,u.B5].forEach((function(a){if(e.hasOwnProperty(a)){var i=[];"banner"===a&&(e[a].w&&e[a].h&&i.push([e[a].w,e[a].h]),(0,d.kJ)(e[a].format)&&e[a].format.forEach((function(e){return i.push([e.w,e.h])}))),0===i.length&&i.push("*"),i.forEach((function(i){var n=t.getFloor({currency:e.bidfloorcur,mediaType:a,size:i});if((0,d.PN)(w,"floor from floor module returned for mediatype:",a," and size:",i," is: currency",n.currency,"floor",n.floor),"object"===(0,s.Z)(n)&&n.currency===e.bidfloorcur&&!isNaN(parseInt(n.floor))){var o=parseFloat(n.floor);(0,d.PN)(w,"floor from floor module:",o,"previous floor value",r,"Min:",Math.min(o,r)),r=-1===r?o:Math.min(o,r),(0,d.PN)(w,"new floor value:",r)}}))}}));e.bidfloor&&((0,d.PN)(w,"floor from floor module:",r,"impObj.bidfloor",e.bidfloor,"Max:",Math.max(r,e.bidfloor)),r=Math.max(r,e.bidfloor));e.bidfloor=!isNaN(r)&&r>0?r:N,(0,d.PN)(w,"new impObj.bidfloor value:",e.bidfloor)}(i,e),function(e,t,r){if(r){var a,i;e.ext=e.ext||{},void 0!==(null==t||null===(a=t.ortb2Imp)||void 0===a||null===(i=a.ext)||void 0===i?void 0:i.ae)&&(e.ext.ae=t.ortb2Imp.ext.ae)}else{var n;null!==(n=e.ext)&&void 0!==n&&n.ae&&delete e.ext.ae}}(i,e,f),i.hasOwnProperty(u.Mk)||i.hasOwnProperty(u.B5)||i.hasOwnProperty(u.pX)?i:N}function W(e,t){(t=t.filter((function(e){return"string"==typeof e||((0,d.yN)("PubMatic: acat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,t,r){return r.indexOf(e)===t}))).length>0&&((0,d.yN)("PubMatic: acat: Selected: ",t),e.ext.acat=t)}function G(e){return!0===(0,d.kJ)(e)&&e.length>0}var Y={code:v,gvlid:76,supportedMediaTypes:[u.Mk,u.pX,u.B5],isBidRequestValid:function(e){if(e&&e.params){if(!(0,d.d8)(e.params.publisherId))return(0,d.yN)("PubMatic: Error: publisherId is mandatory and cannot be numeric (wrap it in quotes in your config). Call to OpenBid will not be sent for ad unit: "+JSON.stringify(e)),!1;if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(u.pX)){var t=(0,p.Z)(e.mediaTypes,"video.mimes"),r=(0,p.Z)(e,"params.video.mimes");if(!1===G(t)&&!1===G(r))return(0,d.yN)("PubMatic: Error: For video ads, bid.mediaTypes.video.mimes OR bid.params.video.mimes should be present and must be a non-empty array. Call to OpenBid will not be sent for ad unit:"+JSON.stringify(e)),!1;if(!e.mediaTypes[u.pX].hasOwnProperty("context"))return(0,d.H)("".concat(w,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[u.pX].context&&!(0,d.d8)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[u.pX].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(u.Mk)||e.mediaTypes.hasOwnProperty(u.B5)?(delete e.mediaTypes[u.pX],(0,d.yN)("".concat(w,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):((0,d.H)("".concat(w,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: '),e),!1)}return!0}return!1},buildRequests:function(e,t){var r,a,n,o,l,g,h,b,v,w,P,I,T,k;t&&t.refererInfo&&(k=t.refererInfo);var z,C=function(e){return{pageURL:(null==e?void 0:e.page)||window.location.href,refURL:(null==e?void 0:e.ref)||window.document.referrer}}(k),E=function(e){return{id:""+(new Date).getTime(),at:1,cur:[x],imp:[],site:{page:e.pageURL,ref:e.refURL,publisher:{}},device:{ua:navigator.userAgent,js:1,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,language:navigator.language,connectiontype:X()},user:{},ext:{}}}(C),S="",j=[],_=[],R=[],U=(0,d.DO)();if(e.forEach((function(e){var r,a;if(e.params.wiid=e.params.wiid||t.auctionId||U,(z=(0,d.I8)(e)).params.adSlot=z.params.adSlot||"",J(z),z.mediaTypes&&z.mediaTypes.hasOwnProperty("video")||z.params.hasOwnProperty("video"));else if(!(z.hasOwnProperty("mediaTypes")&&z.mediaTypes.hasOwnProperty(u.B5)||0!==z.params.width||0!==z.params.height))return void(0,d.yN)("PubMatic: Skipping the non-standard adslot: ",z.params.adSlot,JSON.stringify(z));C.pubId=C.pubId||z.params.publisherId,(C=function(e,t){var r,a,i;for(r in t.kadpageurl||(t.kadpageurl=t.pageURL),O)O.hasOwnProperty(r)&&(a=e[r])&&(i=O[r],"object"===(0,s.Z)(i)&&(a=i.f(a,t)),(0,d.d8)(a)?t[r]=a:(0,d.yN)("PubMatic: Ignoring param : "+r+" with value : "+O[r]+", expects string-value, found "+(0,s.Z)(a)));return t}(z.params,C)).transactionId=null===(r=z.ortb2Imp)||void 0===r||null===(a=r.ext)||void 0===a?void 0:a.tid,""===S?S=z.params.currency||N:z.params.hasOwnProperty("currency")&&S!==z.params.currency&&(0,d.yN)("PubMatic: Currency specifier ignored. Only one currency permitted."),z.params.currency=S,z.params.hasOwnProperty("dctr")&&(0,d.d8)(z.params.dctr)&&j.push(z.params.dctr),z.params.hasOwnProperty("bcat")&&(0,d.kJ)(z.params.bcat)&&(_=_.concat(z.params.bcat)),z.params.hasOwnProperty("acat")&&(0,d.kJ)(z.params.acat)&&(R=R.concat(z.params.acat));var i=$(z,t);i&&E.imp.push(i)})),0!=E.imp.length){E.site.publisher.id=C.pubId.trim(),M=C.pubId.trim(),E.ext.wrapper={},E.ext.wrapper.profile=parseInt(C.profId)||N,E.ext.wrapper.version=parseInt(C.verId)||N,E.ext.wrapper.wiid=C.wiid||t.auctionId,E.ext.wrapper.wv="prebid_prebid_8.52.2",E.ext.wrapper.transactionId=C.transactionId,E.ext.wrapper.wp="pbjs";var B,D,F=t?f.S.get(t.bidderCode,"allowAlternateBidderCodes"):void 0;if(void 0!==F){if(E.ext.marketplace={},t&&1==F){var L=f.S.get(t.bidderCode,"allowedAlternateBidderCodes");(0,d.kJ)(L)?(L=L.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(d.tT),q=L.includes("*")?Z:[].concat((0,i.Z)(q),(0,i.Z)(L))):q=Z}E.ext.marketplace.allowedbidders=q.filter(d.tT)}E.user.gender=C.gender?C.gender.trim():N,E.user.geo={},E.user.yob=A("yob",C.yob),E.site.page=C.kadpageurl.trim()||E.site.page.trim(),E.site.domain=(B=E.site.page,(D=document.createElement("a")).href=B,D.hostname),"object"===(0,s.Z)(m.vc.getConfig("content"))&&(E.site.content=m.vc.getConfig("content")),"object"===(0,s.Z)(m.vc.getConfig("device"))&&(E.device=Object.assign(E.device,m.vc.getConfig("device"))),E.device.language=E.device.language&&E.device.language.split("-")[0],(0,c.N)(E,"source.tid",null==t||null===(r=t.ortb2)||void 0===r||null===(a=r.source)||void 0===a?void 0:a.tid),-1!==window.location.href.indexOf("pubmaticTest=true")&&(E.test=1),e[0].schain&&(0,c.N)(E,"source.ext.schain",e[0].schain),t&&t.gdprConsent&&((0,c.N)(E,"user.ext.consent",t.gdprConsent.consentString),(0,c.N)(E,"regs.ext.gdpr",t.gdprConsent.gdprApplies?1:0)),t&&t.uspConsent&&(0,c.N)(E,"regs.ext.us_privacy",t.uspConsent),null!=t&&null!==(n=t.gppConsent)&&void 0!==n&&n.gppString?((0,c.N)(E,"regs.gpp",t.gppConsent.gppString),(0,c.N)(E,"regs.gpp_sid",t.gppConsent.applicableSections)):null!=t&&null!==(o=t.ortb2)&&void 0!==o&&null!==(l=o.regs)&&void 0!==l&&l.gpp&&((0,c.N)(E,"regs.gpp",t.ortb2.regs.gpp),(0,c.N)(E,"regs.gpp_sid",t.ortb2.regs.gpp_sid)),!0===m.vc.getConfig("coppa")&&(0,c.N)(E,"regs.coppa",1),null!=t&&null!==(g=t.ortb2)&&void 0!==g&&null!==(h=g.regs)&&void 0!==h&&null!==(b=h.ext)&&void 0!==b&&b.dsa&&(0,c.N)(E,"regs.ext.dsa",t.ortb2.regs.ext.dsa),function(e,t){var r=(0,p.Z)(t,"0.userIdAsEids");(0,d.kJ)(r)&&r.length>0&&(0,c.N)(e,"user.eids",r)}(E,e);var H,V,G,Y=t&&t.ortb2||{},K=Y.user,Q=Y.device,ee=Y.site,te=Y.bcat,re=Y.badv;if(ee){var ae=E.site,ie=ae.page,ne=ae.domain,se=ae.ref;(0,d.Ee)(E,{site:ee}),E.site.page=ie,E.site.domain=ne,E.site.ref=se}if(K&&(0,d.Ee)(E,{user:K}),re&&(0,d.Ee)(E,{badv:re}),te&&(_=_.concat(te)),null!=Q&&Q.sua&&(E.device.sua=null==Q?void 0:Q.sua),null!=Q&&null!==(v=Q.ext)&&void 0!==v&&v.cdep&&(0,c.N)(E,"device.ext.cdep",Q.ext.cdep),null!=K&&K.geo&&null!=Q&&Q.geo?(E.device.geo=y(y({},E.device.geo),Q.geo),E.user.geo=y(y({},E.user.geo),K.geo)):(null!=K&&K.geo||null!=Q&&Q.geo)&&(E.user.geo=E.device.geo=null!=K&&K.geo?y(y({},E.user.geo),K.geo):y(y({},E.user.geo),Q.geo)),null!==(w=Y.ext)&&void 0!==w&&null!==(P=w.prebid)&&void 0!==P&&null!==(I=P.bidderparams)&&void 0!==I&&null!==(T=I[t.bidderCode])&&void 0!==T&&T.acat){var oe=Y.ext.prebid.bidderparams[t.bidderCode].acat;W(E,oe)}else R.length&&W(E,R);if(function(e,t){(t=t.filter((function(e){return"string"==typeof e||((0,d.yN)("PubMatic: bcat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,t,r){if(e.length>3)return r.indexOf(e)===t;(0,d.yN)("PubMatic: bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&((0,d.yN)("PubMatic: bcat: Selected: ",t),e.bcat=t)}(E,_),null!=t&&t.timeout)E.tmax=t.timeout;else E.tmax=null===(H=window)||void 0===H||null===(V=H.PWT)||void 0===V||null===(G=V.versionDetails)||void 0===G?void 0:G.timeout;return E.ext.epoch=(new Date).getTime(),"object"===(0,s.Z)(m.vc.getConfig("app"))&&(E.app=m.vc.getConfig("app"),E.app.publisher=E.site.publisher,E.app.ext=E.site.ext||N,"object"!==(0,s.Z)(E.app.content)&&(E.app.content=E.site.content||N),delete E.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(E),bidderRequest:t}}},interpretResponse:function(e,t){var r=[],i=x,n=JSON.parse(t.data),s=n.site&&n.site.ref?n.site.ref:"";try{e.body&&e.body.seatbid&&(0,d.kJ)(e.body.seatbid)&&(i=e.body.cur||i,e.body.seatbid.forEach((function(e){e.bid&&(0,d.kJ)(e.bid)&&e.bid.forEach((function(a){var o={requestId:a.impid,cpm:parseFloat((a.price||0).toFixed(2)),width:a.w,height:a.h,creativeId:a.crid||a.id,dealId:a.dealid,currency:i,netRevenue:true,ttl:300,referrer:s,ad:a.adm,pm_seat:e.seat||null,pm_dspid:a.ext&&a.ext.dspid?a.ext.dspid:null,partnerImpId:a.id||""};n.imp&&n.imp.length>0&&n.imp.forEach((function(e){if(a.impid===e.id)switch(function(e,t){if(e.ext&&null!=e.ext.bidtype)t.mediaType=R[e.ext.bidtype];else{(0,d.PN)("PubMatic: bid.ext.bidtype does not exist, checking alternatively for mediaType");var r=e.adm,a="",i=new RegExp(/VAST\s+version/);if(r.indexOf('span class="PubAPIAd"')>=0)t.mediaType=u.Mk;else if(i.test(r))t.mediaType=u.pX;else try{(a=JSON.parse(r.replace(/\\/g,"")))&&a.native&&(t.mediaType=u.B5)}catch(e){(0,d.yN)("PubMatic: Error: Cannot parse native reponse for ad response: "+r)}}}(a,o),o.mediaType){case u.Mk:break;case u.pX:o.width=a.hasOwnProperty("w")?a.w:e.video.w,o.height=a.hasOwnProperty("h")?a.h:e.video.h,o.vastXml=a.adm,function(e,t){var r,a,i;if(t.bidderRequest&&t.bidderRequest.bids){for(var n=0;n<t.bidderRequest.bids.length;n++)t.bidderRequest.bids[n].bidId===e.requestId&&(r=t.bidderRequest.bids[n].params,a=t.bidderRequest.bids[n].mediaTypes[u.pX].context,i=t.bidderRequest.bids[n].adUnitCode);a&&"outstream"===a&&r&&r.outstreamAU&&i&&(e.rendererCode=r.outstreamAU,e.renderer=_.newRenderer(e.rendererCode,i))}}(o,t),function(e,t,r){var a,i,n;if(null!=t&&null!==(a=t.ext)&&void 0!==a&&a.prebiddealpriority){var s=(0,d.zE)(e.requestId,[r.bidderRequest]),o=(0,p.Z)(s,"mediaTypes.video");if((null==o?void 0:o.context)==u.Oh){var c=(null==t||null===(i=t.ext)||void 0===i||null===(n=i.video)||void 0===n?void 0:n.duration)||(null==o?void 0:o.maxduration);e.video={context:u.Oh,durationSeconds:c,dealTier:t.ext.prebiddealpriority}}}}(o,a,t);break;case u.B5:!function(e,t){if(e.hasOwnProperty("adm")){var r="";try{r=JSON.parse(e.adm.replace(/\\/g,""))}catch(e){return void(0,d.yN)("PubMatic: Error: Cannot parse native reponse for ad response: "+t.adm)}t.native={ortb:y({},r.native)},t.mediaType=u.B5,t.width||(t.width=0),t.height||(t.height=0)}}(a,o)}})),a.ext&&a.ext.deal_channel&&(o.dealChannel=j[a.ext.deal_channel]||null),function(e,t,r){e.meta={},t.ext&&t.ext.dspid&&(e.meta.networkId=t.ext.dspid,e.meta.demandSource=t.ext.dspid),t.ext&&t.ext.dchain&&(e.meta.dchain=t.ext.dchain);var a=r||t.ext&&t.ext.advid;a&&(e.meta.advertiserId=a,e.meta.agencyId=a,e.meta.buyerId=a),t.adomain&&G(t.adomain)&&(e.meta.advertiserDomains=t.adomain,e.meta.clickUrl=t.adomain[0],e.meta.brandId=t.adomain[0]),t.cat&&G(t.cat)&&(e.meta.secondaryCatIds=t.cat,e.meta.primaryCatId=t.cat[0]),t.ext&&t.ext.dsa&&Object.keys(t.ext.dsa).length&&(e.meta.dsa=t.ext.dsa)}(o,a,e.seat),e.ext&&e.ext.buyid&&(o.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),a.ext&&a.ext.marketplace&&(o.bidderCode=a.ext.marketplace),r.push(o)}))})));var o=(0,p.Z)(e.body,"ext.fledge_auction_configs");if(o)return o=Object.entries(o).map((function(e){var t=(0,a.Z)(e,2),r=t[0],i=t[1];return{bidId:r,config:Object.assign({auctionSignals:{}},i)}})),{bids:r,fledgeAuctionConfigs:o}}catch(e){(0,d.H)(e)}return r},getUserSyncs:function(e,t,r,a,i){var n,s,o=""+M;(r&&(o+="&gdpr="+(r.gdprApplies?1:0),o+="&gdpr_consent="+encodeURIComponent(r.consentString||"")),a&&(o+="&us_privacy="+encodeURIComponent(a)),null!=i&&i.gppString&&null!=i&&null!==(n=i.applicableSections)&&void 0!==n&&n.length)&&(o+="&gpp="+encodeURIComponent(i.gppString),o+="&gpp_sid="+encodeURIComponent(null==i||null===(s=i.applicableSections)||void 0===s?void 0:s.join(",")));return!0===m.vc.getConfig("coppa")&&(o+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+o}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+o}]}};(0,l.dX)(Y),(0,o.z)("pubmaticBidAdapter")}},function(e){e.O(0,[5823,9270],(function(){return t=5817,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4967],{9747:function(t,e,n){var o=n(8640),a=n(2797),r=n(5164),i=n(4358),s=n(4516),c=n(9633),d="__qca",p=864e5,u="p-KceJUEvXN48CE",l="https://pixel.quantserve.com/pixel",f="11",g=["1","10"],v=["1"],m=["1"],h=s.rp.getConsentData(),I=s.nX.getConsentData(),y="quantcastId",C=(0,r.df)({moduleType:c.y2,moduleName:y});function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:392;if(!window._qevents&&t&&""!=t){var n,o,a=C.getCookie(d),r="0",s=x.findRootDomain(),c=new Date,f="";if(!a){var g=c.getTime(),v=new Date(g+e*p).toGMTString(),m=Math.round(2147483647*Math.random());a="B0-".concat(m,"-").concat(g),r="1",C.setCookie(d,a,v,"/",s,null)}n="&fpan=".concat(r,"&fpa=").concat(a),o="&gdpr=0",h&&"boolean"==typeof h.gdprApplies&&h.gdprApplies&&(o="gdpr=1&gdpr_consent=".concat(h.consentString)),I&&"string"==typeof I&&(f="&us_privacy=".concat(I));var y=l+"?d="+s+"&client_id="+t+"&a="+u+f+o+n;(0,i.hq)(y)}}function D(t){return!t||"boolean"!=typeof t.gdprApplies||!t.gdprApplies||!!t.vendorData&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=t.gdprApplies,o=t.purpose,a=t.vendor,r=a&&a.consents&&a.consents[11],i=a&&a.legitimateInterests&&a.legitimateInterests[11],s=t.publisher?t.publisher.restrictions:{};if(!n)return!0;return e.map((function(t){var e=!!o.consents&&o.consents[t],n=!!o.legitimateInterests&&o.legitimateInterests[t],a=s&&s[t]?s[t][11]:null;return 0!==a&&(!(!r||!e||2===a||-1==v.indexOf(t)&&1!==a)||!(1===a||!i||!n||-1!=m.indexOf(t)||-1!=v.indexOf(t)&&2!==a))})).reduce((function(t,e){return t&&e}),!0)}(t.vendorData)}var x={name:y,gvlid:f,decode:function(t){return t},getId:function(t){var e,n=C.getCookie(d);if(s.VP.getCoppa()||(e=I)&&"string"==typeof e&&4==e.length&&"Y"==e.charAt(1)&&"Y"==e.charAt(2)||!D(h)){var o=new Date(0).toUTCString(),a=x.findRootDomain();return(0,i.PN)("QuantcastId: Necessary consent not present for Id, exiting QuantcastId"),void C.setCookie(d,"",o,"/",a,null)}var r=t&&t.params||{},c=t&&t.storage||{},p=r.clientId||"",u=c.expires||392;return"complete"===document.readyState?q(p,u):window.addEventListener("load",(function(){q(p,u)})),{id:n?{quantcastId:n}:void 0}},eids:{quantcastId:{source:"quantcast.com",atype:1}}};(0,a.Bx)("userId",x),(0,o.z)("quantcastIdSystem")}},function(t){t.O(0,[5823,9270],(function(){return e=9747,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3184],{5456:function(t,n,e){var r=e(1002),o=e(885),a=e(4942),i=e(8640),c=e(3193),u=e(2797),f=e(4358),s=e(2021),g=e(2200),l=e(3304),p=e(4516),v=e(4614),h=e(9128),d=e(9633),D=e(7172);function E(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function b(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?E(Object(e),!0).forEach((function(n){(0,a.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var O,m,y=(0,e(6310).Oj)((function(t){return l.ZP.resolveAlias(t)})),P=[],T=[],j=[];var R,A=(R=!1,function(){var t;R||(Object.entries((t={},(0,a.Z)(t,g.FP.AUCTION_INIT,["onAuctionInitEvent"]),(0,a.Z)(t,g.FP.AUCTION_END,["onAuctionEndEvent",F]),(0,a.Z)(t,g.FP.BID_RESPONSE,["onBidResponseEvent"]),(0,a.Z)(t,g.FP.BID_REQUESTED,["onBidRequestEvent"]),(0,a.Z)(t,g.FP.BID_ACCEPTED,["onBidAcceptedEvent"]),t)).forEach((function(t){var n=(0,o.Z)(t,2),e=n[0],r=(0,o.Z)(n[1],2),a=r[0],i=r[1];s.on(e,(function(t){i&&i(t),T.forEach((function(n){try{n[a]&&n[a](t,n.config,m)}catch(t){(0,f.H)("RTD provider '".concat(n.name,"': error in '").concat(a,"':"),t)}}))}))})),R=!0)});function C(){return{gdpr:p.rp.getConsentData(),usp:p.nX.getConsentData(),gpp:p.TJ.getConsentData(),coppa:!!c.vc.getConfig("coppa")}}function w(){m=C();var t=[];j.forEach((function(n){var e=(0,v.sE)(P,(function(t){return t.name===n.name}));e&&e.init&&e.init(n,m)&&t.push(Object.assign(e,{config:n}))})),T=t,(0,f.PN)("Real time data module enabled, using submodules: ".concat(T.map((function(t){return t.name})).join(", ")))}var I,Z,N=(0,h.g3)("rtd",(function(t,n){m=C();var e=[],r=[];T.forEach((function(t){if("function"==typeof t.getBidRequestData){e.push(t);var n=t.config;n&&n.waitForIt&&r.push(t)}}));var o,a=r.length&&O.auctionDelay&&O.auctionDelay>0,i=r.length,c=!1,u=[];if(!e.length)return s();function f(){c||(this.config&&this.config.waitForIt&&i--,0===i&&setTimeout(s,0))}function s(){c||(c=!0,clearTimeout(o),u.forEach((function(t){return t()})),t.call(this,n))}o=setTimeout(s,a?O.auctionDelay:0),e.forEach((function(t){var e=(0,D.fC)(n.ortb2Fragments||{},y(d.XG,t.name));u.push(e.verify),t.getBidRequestData(b(b({},n),{},{ortb2Fragments:e.obj}),f.bind(t),t.config,m)}))}));function F(t){var n=T.filter((function(t){return"function"==typeof t.getTargetingData}));if(n.length){var e=t.adUnitCodes;if(e){for(var o=[],a=n.length-1;a>=0;a--){var i=n[a].getTargetingData(e,n[a].config,m,t);i&&"object"===(0,r.Z)(i)?o.push(i):(0,f.yN)("invalid getTargetingData response for sub module",n[a].name)}var c=function(t){if(!Array.isArray(t)||!t.length)return{};return t.reduce((function(t,n){for(var e in n)if(n.hasOwnProperty(e))if(t.hasOwnProperty(e)){var r=n[e];for(var o in r)r.hasOwnProperty(o)&&(t[e][o]=r[o])}else t[e]=n[e];return t}),{})}(o);return t.adUnits.forEach((function(t){var n=t.code&&c[t.code];n&&((0,f.PN)("RTD set ad unit targeting of",n,"for",t),t[g.k2.ADSERVER_TARGETING]=Object.assign(t[g.k2.ADSERVER_TARGETING]||{},n))})),t.adUnits}}}function q(t){T.forEach((function(t){if("function"==typeof t.onDataDeletionRequest)try{t.onDataDeletionRequest(t.config)}catch(n){(0,f.H)("Error executing ".concat(t.name,".onDataDeletionRequest"),n)}}));for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];t.apply(this,e)}(0,u.bA)("realTimeData",(function(t){return P.push(t),p.qh.register(d.XG,t.name,t.gvlid),function(){var n=P.indexOf(t);n>=0&&(P.splice(n,1),w())}})),I=c.vc,Z=I.getConfig("realTimeData",(function(t){var n=t.realTimeData;n.dataProviders?(Z(),O=n,j=n.dataProviders,A(),(0,u.v5)("startAuction").before(N,20),l.ZP.callDataDeletionRequest.before(q),w()):(0,f.H)("missing parameters for real time module")})),(0,i.z)("rtdModule")}},function(t){t.O(0,[2075,5823,9270],(function(){return n=5456,t(t.s=n);var n}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6187],{60:function(e,t,r){var n=r(2982),i=r(4942),o=r(885),a=r(1002),d=r(8640),s=r(919),c=r(9933),u=r(4699),l=r(3193),p=r(4679),v=r(4614),f=r(5706),m=r(4358),b=r(6475),g=r(265),x=r(676);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _="https://video-outstream.rubiconproject.com/apex-2.2.1.js",j=l.vc.getConfig("rubicon")||{};l.vc.getConfig("rubicon",(function(e){(0,m.Ee)(j,e.rubicon)}));var k={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656",622:"192x160",632:"1200x450",634:"340x450"};(0,m.yi)(k,(function(e,t){return k[e]=t}));var O=(0,s.x)({request:function(e,t,r,i){var o,s,c,u=i.bidRequests,p=e(t,r,i);p.cur=["USD"],p.test=l.vc.getConfig("debug")?1:0,(0,b.N)(p,"ext.prebid.cache",{vastxml:{returnCreative:!0===j.returnVast}}),(0,b.N)(p,"ext.prebid.bidders",{rubicon:{integration:j.int_type||"pbjs"}}),(0,b.N)(p,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(c=l.vc).getConfig("customPriceBucket")&&c.getConfig("customPriceBucket").buckets}[c.getConfig("priceGranularity")]});var v=(0,d.R)().installedModules;return!v||v.length&&-1===v.indexOf("rubiconAnalyticsAdapter")||(0,b.N)(p,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,r){var i,o,a={},d=x.c.apply(void 0,[r].concat((0,n.Z)(t.map((function(e){return e.params.keywords})))));t.forEach((function(t){var r,n,i,o,d,s={user:{ext:{data:h({},t.params.visitor)}},site:{ext:{data:h({},t.params.inventory)}}},c=e.imp.find((function(e){var t,r,n,i,o;return null===(t=e.ext)||void 0===t||null===(r=t.prebid)||void 0===r||null===(n=r.bidder)||void 0===n||null===(i=n.rubicon)||void 0===i||null===(o=i.video)||void 0===o?void 0:o.language}));c&&(s.site.content={language:null===(r=c.ext)||void 0===r||null===(n=r.prebid)||void 0===n||null===(i=n.bidder)||void 0===i||null===(o=i.rubicon)||void 0===o||null===(d=o.video)||void 0===d?void 0:d.language});a=(0,m.Ee)(a,t.ortb2||{},s);var u=l.vc.getConfig("user.id");a.user.id=a.user.id||u})),(0,m.Ee)(e,a),d&&d.length&&(0,b.N)(e,"site.keywords",d.join(","));null==e||(null===(i=e.ext)||void 0===i||(null===(o=i.prebid)||void 0===o||delete o.storedrequest))}(p,u,r.ortb2),null==p||(null===(o=p.ext)||void 0===o||(null===(s=o.prebid)||void 0===s||delete s.storedrequest)),!0===j.disableFloors&&delete p.ext.prebid.floors,u.filter((function(e){return"object"===(0,a.Z)(e.floorData)})).length>0&&(p.ext.prebid.floors={enabled:!1}),p},imp:function(e,t,r){var n,i,o=T(t);if(!o.includes(p.Mk)||1!=o.length){var a=e(t,r);return a.id=t.adUnitCode,delete a.banner,"atf"===t.params.position&&a.video&&(a.video.pos=1),"btf"===t.params.position&&a.video&&(a.video.pos=3),null===(n=a.ext)||void 0===n||(null===(i=n.prebid)||void 0===i||delete i.storedrequest),!0===t.params.bidonmultiformat&&o.length>1&&(0,b.N)(a,"ext.prebid.bidder.rubicon.formats",o),function(e,t){"USD"!=t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur);if(!t.bidfloor){var r=parseFloat((0,g.Z)(e,"params.floor"));isNaN(r)||(t.bidfloor=r,t.bidfloorcur="USD")}}(t,a),a}},bidResponse:function(e,t,r){var n,i=e(t,r);i.meta.mediaType=(0,g.Z)(t,"ext.prebid.type");var a=r.bidRequest,d="outstream"===(null===(n=a.mediaTypes.video)||void 0===n?void 0:n.context)?I(a,p.pX):[void 0,void 0],s=(0,o.Z)(d,2),c=s[0],u=s[1];return i.width=t.w||c||i.playerWidth,i.height=t.h||u||i.playerHeight,i.mediaType===p.pX&&"outstream"===a.mediaTypes.video.context&&(i.renderer=function(e){var t=f.Th.install({id:e.adId,url:j.rendererUrl||_,config:j.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(w)}catch(e){(0,m.yN)("Prebid Error calling setRender on renderer",e)}return t}(i)),(0,g.Z)(t,"ext.bidder.rp.advid")&&(0,b.N)(i,"meta.advertiserId",t.ext.bidder.rp.advid),i},context:{netRevenue:!1!==j.netRevenue,ttl:360},processors:c.X}),A={code:"rubicon",gvlid:52,supportedMediaTypes:[p.Mk,p.pX,p.B5],isBidRequestValid:function(e){var t=!0;if("object"!==(0,a.Z)(e.params))return!1;for(var r=0,n=["accountId","siteId","zoneId"];r<n.length;r++)if(e.params[n[r]]=parseInt(e.params[n[r]]),isNaN(e.params[n[r]]))return(0,m.H)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var i=T(e,!0);if(!i.length)return!1;i.includes(p.pX)&&(t=function(e){var t=!0,r=Object.prototype.toString.call([]),n=Object.prototype.toString.call(0),i={mimes:r,protocols:r,linearity:n};return Object.keys(i).forEach((function(r){Object.prototype.toString.call((0,g.Z)(e,"mediaTypes.video."+r))!==i[r]&&(t=!1,(0,m.H)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+i[r]))})),t}(e));var o=[p.Mk,p.B5].filter((function(e){return i.includes(e)})).length>0;return o?t&&o:t},buildRequests:function(e,t){var r,n=[],i=[];if((r=e.filter((function(e){var t=T(e)||[],r=t.length,n=e.params||{},i=n.bidonmultiformat,o=n.video;return 1===r&&(t.includes(p.pX)||t.includes(p.B5))||2===r&&!t.includes(p.Mk)||o&&t.includes(p.pX)||i&&(t.includes(p.pX)||t.includes(p.B5))})))&&r.length){var o=O.toORTB({bidRequests:r,bidderRequest:t});i.push({method:"POST",url:"https://".concat(j.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:o,bidRequest:r})}var a=e.filter((function(e){var t=T(e)||[],r=e.params||{},n=r.bidonmultiformat,i=r.video;return t.includes(p.Mk)&&(1===t.length||n||!n&&!i||!n&&i&&!t.includes(p.pX))}));if(!0!==j.singleRequest)n=i.concat(a.map((function(e){var r=A.createSlotParams(e,t);return{method:"GET",url:"https://".concat(j.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:A.getOrderedParams(r).reduce((function(e,t){var n=r[t];return(0,m.d8)(n)&&""!==n||(0,m.hj)(n)?"".concat(e).concat(E(t,n),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var d=a.reduce((function(e,t){return(e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e}),{});n=i.concat(Object.keys(d).reduce((function(e,r){var n,i;return(n=d[r],i=10,n.map((function(e,t){return t%i==0?n.slice(t,t+i):null})).filter((function(e){return e}))).forEach((function(r){var n=A.combineSlotUrlParams(r.map((function(e){return A.createSlotParams(e,t)})));e.push({method:"GET",url:"https://".concat(j.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:A.getOrderedParams(n).reduce((function(e,t){var r=n[t];return(0,m.d8)(r)&&""!==r||(0,m.hj)(r)?"".concat(e).concat(E(t,r),"&"):e}),"")+"slots=".concat(r.length,"&rand=").concat(Math.random()),bidRequest:r})})),e}),[]))}return n},getOrderedParams:function(e){var t=/^tg_v/,r=/^tg_i/,n=/^eid_|^tpid_/,i=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((function(e){return n.test(e)}))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((function(e){return t.test(e)}))).concat(Object.keys(e).filter((function(e){return r.test(e)}))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return i.concat(Object.keys(e).filter((function(e){return-1===i.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var t=e.reduce((function(t,r,n){return Object.keys(r).forEach((function(i){t.hasOwnProperty(i)||(t[i]=new Array(e.length)),t[i].splice(n,1,r[i])})),t}),{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){var n=t[e].join(";"),i=n.match(r);t[e]=i?i[1]:n})),t},createSlotParams:function(e,t){var r,n,i,d,s,c,u,f,b,x;e.startTime=(new Date).getTime();var y=e.params,_=I(e,"banner"),k=y.latLong||[],O=(0,o.Z)(k,2),w=O[0],C=O[1],Z={account_id:y.accountId,site_id:y.siteId,zone_id:y.zoneId,size_id:_[0],alt_size_ids:_.slice(1).join(",")||void 0,rp_floor:(y.floor=parseFloat(y.floor))>=.01?y.floor:void 0,rp_secure:"1",tk_flint:"".concat(j.int_type||"pbjs_lite","_v8.52.2"),"x_source.tid":null===(r=t.ortb2)||void 0===r||null===(n=r.source)||void 0===n?void 0:n.tid,"x_imp.ext.tid":null===(i=e.ortb2Imp)||void 0===i||null===(d=i.ext)||void 0===d?void 0:d.tid,l_pb_bid_id:e.bidId,o_cdep:null===(s=e.ortb2)||void 0===s||null===(c=s.device)||void 0===c||null===(u=c.ext)||void 0===u?void 0:u.cdep,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:y.userId,"p_geo.latitude":isNaN(parseFloat(w))?void 0:parseFloat(w).toFixed(4),"p_geo.longitude":isNaN(parseFloat(C))?void 0:parseFloat(C).toFixed(4),"tg_fl.eid":e.code,rf:S(e,t)};if("function"==typeof e.getFloor&&!j.disableFloors){var T;try{T=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,m.H)("Rubicon: getFloor threw an error: ",e)}Z.rp_hard_floor="object"!==(0,a.Z)(T)||"USD"!==T.currency||isNaN(parseInt(T.floor))?void 0:T.floor}!0===y.bidonmultiformat&&(0,g.Z)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(Z.p_formats=Object.keys(e.mediaTypes).join(","));var E={1:"atf",3:"btf"}[(0,g.Z)(e,"mediaTypes.banner.pos")]||"";Z.p_pos="atf"===y.position||"btf"===y.position?y.position:E;var N,U,q=l.vc.getConfig("user.id");(q&&(Z.ppuid=q),null!=e&&null!==(f=e.ortb2Imp)&&void 0!==f&&null!==(b=f.ext)&&void 0!==b&&b.ae&&(Z.o_ae=1),function(e,t){var r,n,i,o,a,d,s;if(!1===j.readTopics)return;var c=[1,2,5,6,7,507].concat((null===(r=j.sendSiteSegtax)||void 0===r?void 0:r.map((function(e){return Number(e)})))||[]),u=[4,508].concat((null===(n=j.sendUserSegtax)||void 0===n?void 0:n.map((function(e){return Number(e)})))||[]),l=(null===(i=e.ortb2)||void 0===i||null===(o=i.user)||void 0===o?void 0:o.data)||[],p=(null===(a=e.ortb2)||void 0===a||null===(d=a.site)||void 0===d||null===(s=d.content)||void 0===s?void 0:s.data)||[];l.forEach(R(t,"v",u)),p.forEach(R(t,"i",c))}(t,Z),e.userIdAsEids&&e.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source)Z.tpid_tdid=e.uids[0].id,Z["eid_adserver.org"]=e.uids[0].id;else if("liveintent.com"===e.source)Z["tpid_liveintent.com"]=e.uids[0].id,Z["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(Z["tg_v.LIseg"]=e.ext.segments.join(","));else if("liveramp.com"===e.source)Z.x_liverampidl=e.uids[0].id;else if("id5-sync.com"===e.source)Z["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||"");else{var t="rubiconproject.com"===e.source?e.uids[0].id:"".concat(e.uids[0].id,"^").concat(e.uids[0].atype||"");Z["eid_".concat(e.source)]=t}if(!Z.ppuid){var r=(0,v.sE)(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));r&&r.id&&(Z.ppuid=r.id)}}catch(t){(0,m.yN)("Rubicon: error reading eid:",e,t)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(Z.gdpr=Number(t.gdprConsent.gdprApplies)),Z.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(Z.us_privacy=encodeURIComponent(t.uspConsent)),null!==(x=t.gppConsent)&&void 0!==x&&x.gppString)&&(Z.gpp=t.gppConsent.gppString,Z.gpp_sid=null===(N=t.gppConsent)||void 0===N||null===(U=N.applicableSections)||void 0===U?void 0:U.toString());return Z.rp_maxbids=t.bidLimit||1,function(e,t,r){var n={user:{ext:{data:h({},e.params.visitor)}},site:{ext:{data:h({},e.params.inventory)}}};e.params.keywords&&(n.site.keywords=(0,m.kJ)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);var i=(0,m.Ee)({},e.ortb2||{},n),d=(0,g.Z)(e.ortb2Imp,"ext")||{},s=(0,g.Z)(e.ortb2Imp,"ext.data")||{},c=(0,g.Z)(e,"ortb2Imp.ext.gpid"),u=(0,g.Z)(i,"regs.ext.dsa"),l={user:[4],site:[1,2,5,6]},v={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},f=function(e,t,r){return"data"===t&&Array.isArray(e)?e.filter((function(e){return e.segment&&(0,g.Z)(e,"ext.segtax")&&l[r]&&-1!==l[r].indexOf((0,g.Z)(e,"ext.segtax"))})).map((function(e){var t=e.segment.filter((function(e){return e.id})).reduce((function(e,t){return e.push(t.id),e}),[]);if(t.length>0)return t.toString()})).toString():("object"!==(0,a.Z)(e)||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((function(e){if("object"!==(0,a.Z)(e)&&void 0!==e)return e.toString();(0,m.yN)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},b=function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=f(e,n,t),a=v[n]&&i?"".concat(v[n]):"data"===n?"".concat(v[t],"iab"):"".concat(v[t]).concat(n);r[a]=r[a]?r[a].concat(",",o):o};if(t===p.Mk){["site","user"].forEach((function(e){Object.keys(i[e]).forEach((function(t){"site"===e&&"content"===t&&i[e][t].data?b(i[e][t].data,e,"data"):"ext"!==t?b(i[e][t],e,t):i[e][t].data&&Object.keys(i[e].ext.data).forEach((function(t){b(i[e].ext.data[t],e,t,!1)}))}))})),Object.keys(s).forEach((function(e){"adserver"!==e?b(s[e],"site",e):"gam"===s[e].name&&b(s[e].adslot,name,e)})),c&&(r.p_gpid=c),u&&Object.keys(u).length&&(0,m.ei)(u,["dsainfo",function(e){return r.dsainfo=e},"dsarequired",function(e){return r.dsarequired=e},"pubrender",function(e){return r.dsapubrender=e},"datatopub",function(e){return r.dsadatatopubs=e},"transparency",function(e){Array.isArray(e)&&e.length&&(r.dsatransparency=e.reduce((function(e,t){var r=t.domain||"";if(!r)return e;var n=t.dsaparams||t.params;return Array.isArray(n)&&0!==n.length?(e&&(e+="~~"),e+"".concat(r,"~").concat(n.join("_"))):e}),""))}]),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"];var x=(0,g.Z)(i,"device.sua");x&&!1!==j.chEnabled&&(0,m.ei)(x,["architecture",function(e){return r.m_ch_arch=e},"bitness",function(e){return r.m_ch_bitness=e},"browsers",function(e){var t,n;if(Array.isArray(e)){var i=e.reduce((function(e,t){var r,n,i;return e[0].push('"'.concat(null==t?void 0:t.brand,'"|v="').concat(null==t||null===(r=t.version)||void 0===r?void 0:r[0],'"')),e[1].push('"'.concat(null==t?void 0:t.brand,'"|v="').concat(null==t||null===(n=t.version)||void 0===n||null===(i=n.join)||void 0===i?void 0:i.call(n,"."),'"')),e}),[[],[]]),a=(0,o.Z)(i,2),d=a[0],s=a[1];r.m_ch_ua=null==d||null===(t=d.join)||void 0===t?void 0:t.call(d,","),r.m_ch_full_ver=null==s||null===(n=s.join)||void 0===n?void 0:n.call(s,",")}},"mobile",function(e){return r.m_ch_mobile="?".concat(e)},"model",function(e){return r.m_ch_model=e},"platform",function(e){var t,n;r.m_ch_platform=null==e?void 0:e.brand,r.m_ch_platform_ver=null==e||null===(t=e.version)||void 0===t||null===(n=t.join)||void 0===n?void 0:n.call(t,".")}])}else Object.keys(d).length&&(0,m.Ee)(r.imp[0].ext,d),c&&(r.imp[0].ext.gpid=c),(0,m.Ee)(r,i)}(e,p.Mk,Z),!0===l.vc.getConfig("coppa")&&(Z.coppa=1),e.schain&&z(e.schain)&&(Z.rp_schain=A.serializeSupplyChain(e.schain)),Z},serializeSupplyChain:function(e){if(!z(e))return"";var t=e.ver,r=e.complete,n=e.nodes;return"".concat(t,",").concat(r,"!").concat(A.serializeSupplyChainNodes(n))},serializeSupplyChainNodes:function(e){var t=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return t.map((function(t){return encodeURIComponent(e[t]||"")})).join(",")})).join("!")},interpretResponse:function(e,t){var r;e=e.body;var n=t.data;if(!e||"object"!==(0,a.Z)(e))return[];if(e.seatbid){var i=(0,g.Z)(e,"ext.errors.rubicon");return Array.isArray(i)&&i.length>0&&(0,m.yN)("Rubicon: Error in video response"),O.fromORTB({request:n,response:e}).bids}var d,s=e.ads,c=0,u=t.bidRequest;if("object"===(0,a.Z)(u)&&!Array.isArray(u)&&T(u).includes(p.pX)&&"object"===(0,a.Z)(s)&&(s=s[u.adUnitCode]),!Array.isArray(s)||s.length<1)return[];var l=s.reduce((function(t,r,n){if(r.impression_id&&d===r.impression_id?c++:d=r.impression_id,"ok"!==r.status)return t;var i,s,l=Array.isArray(u)?u[n-c]:u;if(l&&"object"===(0,a.Z)(l)){var v={requestId:l.bidId,currency:"USD",creativeId:r.creative_id||"".concat(r.network||"","-").concat(r.advertiser||""),cpm:r.cpm||0,dealId:r.deal,ttl:360,netRevenue:!1!==j.netRevenue,rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network,mediaType:p.Mk}};if(r.creative_type&&(v.mediaType=r.creative_type),r.dsa&&Object.keys(r.dsa).length&&(v.meta.dsa=r.dsa),r.adomain&&(v.meta.advertiserDomains=Array.isArray(r.adomain)?r.adomain:[r.adomain]),r.creative_type===p.pX)v.width=l.params.video.playerWidth,v.height=l.params.video.playerHeight,v.vastUrl=r.creative_depot_url,v.impression_id=r.impression_id,v.videoCacheKey=r.impression_id;else{v.ad=(i=r.script,s=r.impression_id,"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='".concat(s,"'>\n<script type='text/javascript'>").concat(i,"<\/script>\n</div>\n</body>\n</html>"));var f=k[r.size_id].split("x").map((function(e){return Number(e)})),b=(0,o.Z)(f,2);v.width=b[0],v.height=b[1]}v.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce((function(e,t){return e[t.key]=t.values[0],e}),{rpfl_elemid:l.adUnitCode}),t.push(v)}else(0,m.H)("Rubicon: bidRequest undefined at index position:".concat(n),u,e);return t}),[]).sort((function(e,t){return(t.cpm||0)-(e.cpm||0)})),v=null===(r=e.component_auction_config)||void 0===r?void 0:r.map((function(e){return{config:e,bidId:e.bidId}}));return v?{bids:l,fledgeAuctionConfigs:v}:l},getUserSyncs:function(e,t,r,n,i){if(!N&&e.iframeEnabled){var o,a={};if(r&&("boolean"==typeof r.gdprApplies&&(a.gdpr=Number(r.gdprApplies)),"string"==typeof r.consentString&&(a.gdpr_consent=r.consentString)),n&&(a.us_privacy=encodeURIComponent(n)),null!=i&&i.gppString)a.gpp=i.gppString,a.gpp_sid=null===(o=i.applicableSections)||void 0===o?void 0:o.toString();return a=Object.keys(a).length?"?".concat((0,m.Yp)(a)):"",N=!0,{type:"iframe",url:"https://".concat(j.syncHost||"eus",".rubiconproject.com/usync.html")+a}}}};function S(e,t){var r;return r=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?r.replace(/^http:/i,"https:"):r}function w(e){var t,r=document.getElementById(e.adUnitCode);(t=r.querySelector("div[id^='google_ads']"))&&t.style.setProperty("display","none"),function(e){var t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(r);var n=h(h({},{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0}),e.renderer.getConfig());e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:r,align:n.align,position:n.position},closeButton:n.closeButton,label:n.label,collapse:n.collapse})}))}function I(e,t){var r=e.params;if(t===p.pX){var n=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?n=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,g.Z)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(r.sizes)?i=r.sizes:void 0!==(0,g.Z)(e,"mediaTypes.banner.sizes")?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,m.yN)("Rubicon: no sizes are setup or found"),function(e){var t=[15,2,9];return e.sort((function(e,r){var n=t.indexOf(e),i=t.indexOf(r);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-r}))}(i)}function R(e,t,r){return function(n){var i,o,a=Number(null===(i=n.ext)||void 0===i?void 0:i.segtax);r.includes(a)&&(e["tg_".concat(t,".tax").concat(a)]=null===(o=n.segment)||void 0===o?void 0:o.map((function(e){return e.id})).join(","))}}function C(e){return(0,m.sF)(e).reduce((function(e,t){var r=parseInt(k[t],10);return r&&e.push(r),e}),[])}function Z(e){var t=void 0!==(0,g.Z)(e,"mediaTypes.".concat(p.pX)),r=void 0!==(0,g.Z)(e,"mediaTypes.".concat(p.Mk)),n=void 0!==(0,g.Z)(e,"params.bidonmultiformat"),i="object"!==(0,a.Z)((0,g.Z)(e,"params.video"));return!(!t||!n)||(r&&i&&(t=!1),t&&i&&(0,b.N)(e,"params.video",{}),t)}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[];if(Z(e)){if(-1===["outstream","instream"].indexOf((0,g.Z)(e,"mediaTypes.".concat(p.pX,".context"))))return t&&(0,m.H)("Rubicon: mediaTypes.video.context must be outstream or instream"),r;if(I(e,p.pX).length<2)return t&&(0,m.H)("Rubicon: could not determine the playerSize of the video"),r;t&&(0,m.ji)("Rubicon: making video request for adUnit",e.adUnitCode),r.push(p.pX)}if(void 0!==(0,g.Z)(e,"mediaTypes.".concat(p.B5))&&r.push(p.B5),void 0!==(0,g.Z)(e,"mediaTypes.".concat(p.Mk))){if(0===I(e,p.Mk).length)return t&&(0,m.H)("Rubicon: could not determine the sizes for banner request"),r;t&&(0,m.ji)("Rubicon: making banner request for adUnit",e.adUnitCode),r.push(p.Mk)}return r}function z(e){var t=!1,r=["asi","sid","hp"];return e.nodes?((t=e.nodes.reduce((function(e,t){return e?r.every((function(e){return t.hasOwnProperty(e)})):e}),!0))||(0,m.H)("Rubicon: required schain params missing"),t):t}function E(e,t){return"rp_schain"===e?"rp_schain=".concat(t):"".concat(e,"=").concat(encodeURIComponent(t))}var N=!1;(0,u.dX)(A),(0,d.z)("rubiconBidAdapter")}},function(e){e.O(0,[5823,5279,951,3157,9270],(function(){return t=60,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1822],{2767:function(e,r,n){var t=n(2982),o=n(4942),c=n(8640),i=n(3304),u=n(4614),d=n(4358);function f(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?f(Object(n),!0).forEach((function(r){(0,o.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var a=i.qJ.CLIENT,s=i.qJ.SERVER,b=l(l({},i.qJ),{},{clientTestBidders:new Set});function S(e){return e&&e.enabled&&e.testing}b.bidSource={},b.globalRand=Math.random(),b.getSourceBidderMap=function(){var e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=(e={},(0,o.Z)(e,s,{}),(0,o.Z)(e,a,{}),e);return n.forEach((function(e){(e.bids||[]).forEach((function(e){t.indexOf(e.bidder)>-1&&!b.bidSource[e.bidder]&&(b.bidSource[e.bidder]=s),e.calcSource=e.calcSource||b.getSource(e.bidSource),e.finalSource=e.calcSource||b.bidSource[e.bidder]||a,c[e.finalSource][e.bidder]=!0}))})),Object.keys(b.bidSource).forEach((function(e){c[b.bidSource[e]][e]=!0})),r={},(0,o.Z)(r,s,Object.keys(c[s])),(0,o.Z)(r,a,Object.keys(c[a])),r},b.calculateBidSources=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.bidderControl||{};(e.bidders||[]).forEach((function(e){b.bidSource[e]=b.getSource(r[e]&&r[e].bidSource)||s}))},b.getSource=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[s,a],n={},t=0;if(r.forEach((function(r){t+=e[r]||0,n[r]=t})),t)for(var o=b.globalRand*t,c=0;c<r.length;c++){var i=r[c];if(o<n[i])return i}};i.Ct.before((function(e,r,n){var c,f=(0,i.uV)(n),l=!1;n.forEach((function(e){S(e)&&(b.calculateBidSources(e),b.getSourceBidderMap(r,(0,t.Z)(f))[a].forEach((function(e){return b.clientTestBidders.add(e)})));(function(e){return Boolean(S(e)&&e.testServerOnly)})(e)&&function(e,r){return Boolean((0,u.sE)(e,(function(e){return(0,u.sE)(e.bids,(function(e){return(e.bidSource||r.bidderControl&&r.bidderControl[e.bidder])&&e.finalSource===s}))})))}(r,e)&&((0,d.yN)("testServerOnly: True.  All client requests will be suppressed."),l=!0)})),e.bail((0,d.pP)(r).reduce((function(e,r){return f.has(r)&&e[s].push(r),l||f.has(r)&&!b.clientTestBidders.has(r)||e[a].push(r),e}),(c={},(0,o.Z)(c,a,[]),(0,o.Z)(c,s,[]),c)))})),i.JO.before((function(e,r,n){if(null==n)e.bail(r.filter((function(e){return!b.clientTestBidders.size||e.finalSource!==s})));else{var t=(0,i.uV)(n);e.bail(r.filter((function(e){return t.has(e.bidder)&&(!S(n)||e.finalSource!==a)})))}}));(0,c.z)("s2sTesting")}},function(e){e.O(0,[5823,9270],(function(){return r=2767,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3161],{8622:function(t,e,n){var i=n(4942),o=n(2982),r=n(885),a=n(8640),c=n(4358),s=n(5102),d=n(2797),p=n(8792),u=n(3193),f=n(5164),l=n(4614),m=n(571),h=n(4947),g=n(286),b=n(9633),v=!1,y=[];var w={maxTopicCaller:4,bidders:[{bidder:"pubmatic",iframeURL:"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html"},{bidder:"rtbhouse",iframeURL:"https://topics.authorizedvault.com/topicsapi.html"},{bidder:"openx",iframeURL:"https://pa.openx.net/topics_frame.html"},{bidder:"improvedigital",iframeURL:"https://hb.360yield.com/privacy-sandbox/topics.html"},{bidder:"onetag",iframeURL:"https://onetag-sys.com/static/topicsapi.html"},{bidder:"taboola",iframeURL:"https://cdn.taboola.com/libtrc/static/topics/taboola-prebid-browsing-topics.html"},{bidder:"discovery",iframeURL:"https://api.popin.cc/topic/prebid-topics-frame.html"},{bidder:"undertone",iframeURL:"https://creative-p.undertone.com/spk-public/topics_frame.html"},{bidder:"vidazoo",iframeURL:"https://static.vidazoo.com/topics_api/topics_frame.html"}]},L=(0,f.eA)("topicsFpd"),U="prebid:topics",x="lastUpdated",S={1:600,2:601,3:602,4:603};function j(t,e){return e.reduce((function(e,n){var i=n[t];return e.hasOwnProperty(i)||(e[i]=[]),e[i].push(n),e}),{})}function R(t){return y.push(t)}function O(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object.entries(j("taxonomyVersion",e)).filter((function(t){var e=(0,r.Z)(t,1)[0];return!!n.hasOwnProperty(e)||((0,c.yN)('Unrecognized taxonomyVersion from Topics API: "'.concat(e,'"; topic will be ignored')),!1)})).flatMap((function(e){var i=(0,r.Z)(e,2),o=i[0],a=i[1];return Object.entries(j("modelVersion",a)).map((function(e){var i=(0,r.Z)(e,2),a=i[0],c=i[1],s={ext:{segtax:n[o],segclass:a},segment:c.map((function(t){return{id:t.topic.toString()}}))};return null!=t&&(s.name=t),s}))}))}function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return"browsingTopics"in t&&t.featurePolicy.allowsFeature("browsing-topics")}var D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=null;try{T(t)&&(e=p.Z.resolve(t.browsingTopics()))}catch(t){(0,c.H)("Could not call topics API",t)}return null==e&&(e=p.Z.resolve([])),e}().then((function(t){return O((0,s.nH)().domain,t)}));function Z(){var t=[],e=(u.vc.getConfig("userSync.topics")||w).bidders||[],n=new Map((0,c.dj)(L.getDataFromLocalStorage(U)));return n&&n.forEach((function(i,r){var a=e.find((function(t){var e=t.bidder;return r===e}));a&&(0,m.xD)(h.S5,(0,g.T)(b.UL,r))&&(F(i.lastUpdated,(null==a?void 0:a.expiry)||21)?(n.delete(r),L.setDataInLocalStorage(U,JSON.stringify((0,o.Z)(n)))):Object.keys(i).forEach((function(e){e!==x&&t.push(i[e])})))})),t}function C(t){if(t&&t.data)try{var e=(0,c.dj)(t.data);if((0,l.q9)(y,t.origin)&&e&&e.segment&&!(0,c.xb)(e.segment.topics)){var n=e.segment,i=n.domain,o=n.topics,r=n.bidder,a=O(i,o);a&&E(r,a)}}catch(t){}}function E(t,e){var n=new Map((0,c.dj)(L.getDataFromLocalStorage(U))),r=(0,i.Z)({},x,(new Date).getTime());e.forEach((function(t){r[t.ext.segclass]=t})),n.set(t,r),L.setDataInLocalStorage(U,JSON.stringify((0,o.Z)(n)))}function F(t,e){var n=(new Date).getTime();return Math.ceil((n-t)/864e5)>e}function M(t,e){return(0,o.Z)(t).sort((function(){return.5-Math.random()})).slice(0,e)}function P(){window.addEventListener("message",C,!1)}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(T(t)){var e=u.vc.getConfig("userSync.topics")||w;if(e){P();var n=M(e.bidders||[],e.maxTopicCaller||1);n&&n.forEach((function(e){var n=e.bidder,i=e.iframeURL,o=e.fetchUrl,r=e.fetchRate;if(n&&i){var a=t.createElement("iframe");a.name="ifrm_".concat(n),a.src="".concat(i,"?bidder=").concat(n),a.style.display="none",R(new URL(i).origin),i&&t.documentElement.appendChild(a)}if(n&&o){var s=new Map((0,c.dj)(L.getDataFromLocalStorage(U))).get(n);(!s||s&&F(s.lastUpdated,r||1))&&window.fetch("".concat(o,"?bidder=").concat(n),{browsingTopics:!0}).then((function(t){return t.json()})).then((function(t){if(t&&t.segment&&!(0,c.xb)(t.segment.topics)){var e=t.segment,n=e.domain,i=e.topics,o=e.bidder,r=O(n,i);r&&E(o,r)}}))}}))}else(0,c.yN)("Topics config not defined under userSync Object")}}(0,d.Bx)("firstPartyData",{name:"topics",queue:1,processFpd:function(t,e){var n=e.global,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.data,r=void 0===o?D:o;return v||(_(),v=!0),r.then((function(t){return(t=[].concat(t,Z())).length&&(0,c.Ee)(n,{user:{data:t}}),{global:n}}))}}),(0,a.z)("topicsFpdModule")}},function(t){t.O(0,[5823,9270],(function(){return e=8622,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[158],{3446:function(e,r,t){var a=t(8640),i=t(6475),n=t(4358),s=t(265),d=t(3193),o=t(4699),p=t(4679),u="ttd",m="https://match.adsrvr.org",c=1,l=2;function v(e){var r;return{ttdprebid:{ver:"TTD-PREBID-2023.09.05",pbjs:"8.52.2",keywords:null!==(r=e.site)&&void 0!==r&&r.keywords?e.site.keywords.split(",").map((function(e){return e.trim()})):[]}}}function f(e){var r,t={};return e.gdprConsent&&"boolean"==typeof e.gdprConsent.gdprApplies&&i.N(t,"ext.gdpr",e.gdprConsent.gdprApplies?1:0),e.uspConsent&&i.N(t,"ext.us_privacy",e.uspConsent),!0===d.vc.getConfig("coppa")&&(t.coppa=1),null!==(r=e.ortb2)&&void 0!==r&&r.regs&&n.Ee(t,e.ortb2.regs),t}function b(e,r){var t,a,n={tid:null==r||null===(t=r.ortb2)||void 0===t||null===(a=t.source)||void 0===a?void 0:a.tid};return e[0].schain&&i.N(n,"ext.schain",e[0].schain),n}function y(e){var r=navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,t={ua:navigator.userAgent,dnt:n.oV()?1:0,language:r,connectiontype:g()};return n.Ee(t,e.device),t}function g(){var e=navigator.connection||navigator.webkitConnection;if(!e)return 0;switch(e.type){case"ethernet":return 1;case"wifi":return 2;case"cellular":switch(e.effectiveType){case"slow-2g":case"2g":return 4;case"3g":return 5;case"4g":return 6;default:return 3}default:return 0}}function h(e,r){var t={};e.gdprConsent&&i.N(t,"ext.consent",e.gdprConsent.consentString),n.d8(s.Z(e,"bids.0.userId.tdid"))&&(t.buyeruid=e.bids[0].userId.tdid);var a=s.Z(e,"bids.0.userIdAsEids");return a&&a.length&&i.N(t,"ext.eids",a),n.Ee(t,r.user),t}function I(e,r){var t=n.Ee({page:s.Z(e,"refererInfo.page"),ref:s.Z(e,"refererInfo.ref"),publisher:{id:s.Z(e,"bids.0.params.publisherId")}},r.site),a=e.refererInfo.domain;return a&&i.N(t,"publisher.domain",a),t}function T(e){var r={id:e.bidId},t=s.Z(e,"ortb2Imp.ext.gpid")||e.params.placementId;t&&(r.tagid=t);var a=s.Z(e,"mediaTypes.video"),i={};s.Z(e,"mediaTypes.banner")&&(i[p.Mk]=function(e){var r=function(e){return n.sF(e).filter((function(e){return e})).map((function(e){return e.split("x")})).map((function(e){return{width:parseInt(e[0]),height:parseInt(e[1])}}))}(e.mediaTypes.banner.sizes).map((function(e){return{w:e.width,h:e.height}})),t=parseInt(s.Z(e,"mediaTypes.banner.pos")),a=s.Z(e,"params.banner.expdir"),i={};t&&(i.pos=t);a&&Array.isArray(a)&&(i.expdir=a);var d=Object.assign({w:r[0].w,h:r[0].h,format:r},i),o=s.Z(e,"ortb2Imp.battr");o&&(d.battr=o);return d}(e)),a&&(i[p.pX]=function(e){var r=s.Z(e,"mediaTypes.video.minduration"),t=s.Z(e,"mediaTypes.video.maxduration"),a=s.Z(e,"mediaTypes.video.playerSize"),i=s.Z(e,"mediaTypes.video.api"),d=s.Z(e,"mediaTypes.video.mimes"),o=s.Z(e,"mediaTypes.video.placement"),p=s.Z(e,"mediaTypes.video.plcmt"),u=s.Z(e,"mediaTypes.video.protocols"),m=s.Z(e,"mediaTypes.video.playbackmethod"),c=s.Z(e,"mediaTypes.video.pos"),l=s.Z(e,"mediaTypes.video.startdelay"),v=s.Z(e,"mediaTypes.video.skip"),f=s.Z(e,"mediaTypes.video.skipmin"),b=s.Z(e,"mediaTypes.video.skipafter"),y=s.Z(e,"mediaTypes.video.minbitrate"),g=s.Z(e,"mediaTypes.video.maxbitrate");r&&n.U(r)||(r=0);var h={minduration:r,maxduration:t,api:i,mimes:d,placement:o,protocols:u};void 0!==a&&(n.kJ(a[0])?(h.w=parseInt(a[0][0]),h.h=parseInt(a[0][1])):n.hj(a[0])&&(h.w=parseInt(a[0]),h.h=parseInt(a[1]))),m&&(h.playbackmethod=m),p&&(h.plcmt=p),c&&(h.pos=c),l&&n.U(l)&&(h.startdelay=l),!v||0!==v&&1!==v||(h.skip=v),f&&n.U(f)&&(h.skipmin=f),b&&n.U(b)&&(h.skipafter=b),y&&n.U(y)&&(h.minbitrate=y),g&&n.U(g)&&(h.maxbitrate=g);var I=s.Z(e,"ortb2Imp.battr");return I&&(h.battr=I),h}(e)),Object.assign(r,i);var d=function(e){if(e.params.bidfloor)return e.params.bidfloor;if(!n.LQ(e.getFloor))return null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return n.PO(r)&&!isNaN(r.floor)&&"USD"===r.currency?r.floor:null}(e);d&&(r.bidfloor=parseFloat(d),r.bidfloorcur="USD");var o=s.Z(e,"ortb2Imp.secure");return r.secure=(0,n.hj)(o)?o:1,n.Ee(r,e.ortb2Imp),r}var Z={code:u,gvlid:21,aliases:["thetradedesk"],supportedMediaTypes:[p.Mk,p.pX],isBidRequestValid:function(e){if(!e||!e.params)return n.yN("ttd: Missing bid parameters"),!1;if(!e.params.supplySourceId)return n.yN("ttd: Missing required parameter params.supplySourceId"),!1;if(!/^[\w+]+$/.test(e.params.supplySourceId))return n.yN("ttd: supplySourceId must only contain alphabetic characters"),!1;if(!e.params.publisherId)return n.yN("ttd: Missing required parameter params.publisherId"),!1;if(e.params.publisherId.length>32)return n.yN("ttd: params.publisherId must be 32 characters or less"),!1;if(e.params.bidfloor&&isNaN(parseFloat(e.params.bidfloor)))return!1;var r=s.Z(e,"ortb2Imp.ext.gpid");if(!e.params.placementId&&!r)return n.yN("ttd: one of params.placementId or gpid (via the GPT module https://docs.prebid.org/dev-docs/modules/gpt-pre-auction.html) must be passed"),!1;var t=s.Z(e,"mediaTypes.banner"),a=s.Z(e,"mediaTypes.video");if(!t&&!a)return n.yN("ttd: one of mediaTypes.banner or mediaTypes.video must be passed"),!1;if(a){if(!a.maxduration||!n.U(a.maxduration))return n.yN("ttd: mediaTypes.video.maxduration must be set to the maximum video ad duration in seconds"),!1;if(!a.api||0===a.api.length)return n.yN("ttd: mediaTypes.video.api should be an array of supported api frameworks. See the Open RTB v2.5 spec for valid values"),!1;if(!a.mimes||0===a.mimes.length)return n.yN("ttd: mediaTypes.video.mimes should be an array of supported mime types"),!1;if(!a.protocols)return n.yN("ttd: mediaTypes.video.protocols should be an array of supported protocols. See the Open RTB v2.5 spec for valid values"),!1}return!0},buildRequests:function(e,r){var t=r.ortb2||{},a={id:r.bidderRequestId,imp:e.map((function(e){return T(e)})),site:I(r,t),device:y(t),user:h(r,t),at:1,cur:["USD"],regs:f(r),source:b(e,r),ext:v(t)};return t&&t.bcat&&(a.bcat=t.bcat),t&&t.badv&&(a.badv=t.badv),t&&t.app&&(a.app=t.app),t&&t.pmp&&(a.pmp=t.pmp),{method:"POST",url:"https://direct.adsrvr.org/bid/bidder/"+r.bids[0].params.supplySourceId,data:a,options:{withCredentials:!0}}},interpretResponse:function(e,r){var t=s.Z(e,"body.seatbid"),a=s.Z(e,"body.cur");if(!t||0===t.length)return[];var i=[],d=s.Z(r,"data.imp");return t.forEach((function(e){e.bid.forEach((function(e){var r=d.find((function(r){return r.id===e.impid})),t=e.price||0,s={requestId:e.impid,cpm:t,creativeId:e.crid,dealId:e.dealid||null,currency:a||"USD",netRevenue:!0,ttl:e.ttl||360,meta:{}};e.adomain&&e.adomain.length>0&&(s.meta.advertiserDomains=e.adomain),e.ext.mediatype===c?Object.assign(s,{width:e.w,height:e.h,ad:n.ew(e.adm,t),mediaType:p.Mk}):e.ext.mediatype===l&&(Object.assign(s,{width:r.video.w,height:r.video.h,mediaType:p.pX}),e.nurl?s.vastUrl=n.ew(e.nurl,t):s.vastXml=n.ew(e.adm,t)),i.push(s)}))})),i},getUserSyncs:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=[],n="&gdpr=".concat(t.gdprApplies?1:0,"&gdpr_consent=").concat(encodeURIComponent(t.consentString)),s="".concat(m,"/track/usersync?us_privacy=").concat(encodeURIComponent(a)).concat(n);return e.pixelEnabled?i.push({type:"image",url:s+"&ust=image"}):e.iframeEnabled&&i.push({type:"iframe",url:s+"&ust=iframe"}),i}};(0,o.dX)(Z),(0,a.z)("ttdBidAdapter")}},function(e){e.O(0,[5823,9270],(function(){return r=3446,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6433,8102],{8816:function(e,t,r){var n=r(4942),o=r(8640),i=r(4358),a=r(2797),s=r(5164),u=r(9633),c=r(890),l=r(1138);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var p="uid2",f=c.ov,h="PrebidJS-".concat("8.52.2","-UID2Module-").concat(f),v="UID2: ";function y(e,t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(void 0,[t+" "].concat(n))}}var g=y(i.PN,v),b=y(i.yN,v),m=(0,s.df)({moduleType:u.y2,moduleName:p}),k={name:p,decode:function(e){var t=function(e){if("string"==typeof e){return g("Found server-only token. Refresh is unavailable for this token."),{uid2:{id:e}}}if("optout"===e.latestToken)return g("Found optout token.  Refresh is unavailable for this token."),{uid2:{optout:!0}};if(Date.now()<e.latestToken.identity_expires)return{uid2:{id:e.latestToken.advertising_token}};return null}(e);return g("UID2 decode returned",t),t},getId:function(e,t){var r,o,i,a,s,u,l,p;if(!0!==(null==t?void 0:t.gdprApplies)){var f,v,y,k={apiBaseUrl:null!==(r=null==e||null===(o=e.params)||void 0===o?void 0:o.uid2ApiBase)&&void 0!==r?r:"https://prod.uidapi.com",paramToken:null==e||null===(i=e.params)||void 0===i?void 0:i.uid2Token,serverCookieName:null!==(a=null==e||null===(s=e.params)||void 0===s?void 0:s.uid2Cookie)&&void 0!==a?a:null==e||null===(u=e.params)||void 0===u?void 0:u.uid2ServerCookie,storage:null!==(l=null==e||null===(p=e.params)||void 0===p?void 0:p.storage)&&void 0!==l?l:"localStorage",clientId:h,internalStorage:"__uid2_advertising_token"};k.cstg=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({serverPublicKey:null==e||null===(f=e.params)||void 0===f?void 0:f.serverPublicKey,subscriptionId:null==e||null===(v=e.params)||void 0===v?void 0:v.subscriptionId},(0,c.gD)(null!==(y=null==e?void 0:e.params)&&void 0!==y?y:{})),g("UID2 configuration loaded and mapped.",k);var w=(0,c.Rh)(k,m,g,b);return g("UID2 getId returned",w),w}b("UID2 is not intended for use where GDPR applies. The UID2 module will not run.")},eids:l.l};(0,a.Bx)("userId",k),(0,o.z)("uid2IdSystem")},890:function(e,t,r){r.d(t,{ov:function(){return v},Rh:function(){return I},gD:function(){return T}});var n=r(4942);function o(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}}var a=r(2982),s=r(5671),u=r(3144),c=r(1002),l=r(4687),d=r.n(l),p=r(8640),f=r(8928),h=r(4358),v="1.1";function y(e){return!!("object"===(0,c.Z)(e)&&null!==e&&e.advertising_token&&e.identity_expires&&e.refresh_from&&e.refresh_token&&e.refresh_expires)}var g,b=function(){function e(t,r,n,o){(0,s.Z)(this,e),this._baseUrl=t.baseUrl,this._clientVersion=r,this._logInfo=n,this._logWarn=o}return(0,u.Z)(e,[{key:"createArrayBuffer",value:function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}},{key:"hasStatusResponse",value:function(e){return"object"===(0,c.Z)(e)&&e&&e.status}},{key:"isValidRefreshResponse",value:function(e){return this.hasStatusResponse(e)&&("optout"===e.status||"expired_token"===e.status||"success"===e.status&&e.body&&y(e.body))}},{key:"ResponseToRefreshResult",value:function(e){return this.isValidRefreshResponse(e)?"success"===e.status?{status:e.status,identity:e.body}:e:"Response didn't contain a valid status"}},{key:"callRefreshApi",value:function(e){var t,r,n=this,o=this._baseUrl+"/v2/token/refresh",i=new Promise((function(e,n){t=e,r=n}));return this._logInfo("Sending refresh request",e),(0,f.hj)(o,{success:function(o){try{if(e.refresh_response_key){n._logInfo("Decrypting refresh API response");var i=n.createArrayBuffer(atob(o));window.crypto.subtle.importKey("raw",n.createArrayBuffer(atob(e.refresh_response_key)),{name:"AES-GCM"},!1,["decrypt"]).then((function(e){n._logInfo("Imported decryption key"),window.crypto.subtle.decrypt({name:"AES-GCM",iv:i.slice(0,12),tagLength:128},e,i.slice(12)).then((function(e){var o=String.fromCharCode.apply(String,(0,a.Z)(new Uint8Array(e)));n._logInfo("Decrypted to:",o);var i=JSON.parse(o),s=n.ResponseToRefreshResult(i);"string"==typeof s?r(s):t(s)}),(function(e){return n._logWarn("Call to UID2 API failed",e)}))}),(function(e){return n._logWarn("Call to UID2 API failed",e)}))}else{n._logInfo("No response decryption key available, assuming unencrypted JSON");var s=JSON.parse(o),u=n.ResponseToRefreshResult(s);"string"==typeof u?r(u):t(u)}}catch(e){r(o)}},error:function(e,o){try{n._logInfo("Error status, assuming unencrypted JSON");var i=JSON.parse(o.responseText),a=n.ResponseToRefreshResult(i);"string"==typeof a?r(a):t(a)}catch(t){r(e)}}},e.refresh_token,{method:"POST",customHeaders:{"X-UID2-Client-Version":this._clientVersion}}),i}}]),e}(),m=function(){function e(t,r,n,o){(0,s.Z)(this,e),this._storage=t,this._preferLocalStorage=r,this._storageName=n,this._logInfo=o}return(0,u.Z)(e,[{key:"readCookie",value:function(e){return this._storage.cookiesAreEnabled()?this._storage.getCookie(e):null}},{key:"readLocalStorage",value:function(e){return this._storage.localStorageIsEnabled()?this._storage.getDataFromLocalStorage(e):null}},{key:"readModuleCookie",value:function(){return this.parseIfContainsBraces(this.readCookie(this._storageName))}},{key:"writeModuleCookie",value:function(e){this._storage.setCookie(this._storageName,JSON.stringify(e),Date.now()+864e5)}},{key:"readModuleStorage",value:function(){return this.parseIfContainsBraces(this.readLocalStorage(this._storageName))}},{key:"writeModuleStorage",value:function(e){this._storage.setDataInLocalStorage(this._storageName,JSON.stringify(e))}},{key:"readProvidedCookie",value:function(e){return JSON.parse(this.readCookie(e))}},{key:"parseIfContainsBraces",value:function(e){return null!=e&&e.includes("{")?JSON.parse(e):e}},{key:"storeValue",value:function(e){this._preferLocalStorage?this.writeModuleStorage(e):this.writeModuleCookie(e)}},{key:"getStoredValueWithFallback",value:function(){var e=this._preferLocalStorage?"local storage":"cookie",t=(this._preferLocalStorage?this.readModuleStorage:this.readModuleCookie).bind(this),r=(this._preferLocalStorage?this.writeModuleStorage:this.writeModuleCookie).bind(this),n=(this._preferLocalStorage?this.readModuleCookie:this.readModuleStorage).bind(this),o=t();if(o){if("string"==typeof o){var i=n();if(i&&"object"===(0,c.Z)(i))return this._logInfo("".concat(e," contained a basic token, but found a refreshable token fallback. Copying the fallback value to ").concat(e,".")),r(i),i}}else{var a=n();if(a)return this._logInfo("".concat(e," was empty, but found a fallback value.")),"object"===(0,c.Z)(a)&&(this._logInfo("Copying the fallback value to ".concat(e,".")),r(a)),a}return o}}]),e}();function k(e,t,r,n,o,i){return o("UID2 base url provided: ",e),new b({baseUrl:e},r,o,i).callRefreshApi(t).then((function(e){o("Refresh endpoint responded with:",e);var r={originalToken:t,latestToken:e.identity},i=n.getStoredValueWithFallback();return null!=i&&i.originalIdentity&&(r.originalIdentity=i.originalIdentity),n.storeValue(r),r}))}g={isCSTGOptionsValid:function(e,t){if("object"!==(0,c.Z)(e)||null===e)return t('CSTG is not being used, but is included in the Prebid.js bundle. You can reduce the bundle size by passing "--disable UID2_CSTG" to the Prebid.js build.'),!1;var r=e;if(!r.serverPublicKey&&!r.subscriptionId)return t("CSTG has been enabled but its parameters have not been set."),!1;if("string"!=typeof r.serverPublicKey)return t("CSTG opts.serverPublicKey must be a string"),!1;var n=/^(UID2|EUID)-X-[A-Z]-.+/;return n.test(r.serverPublicKey)?"string"!=typeof r.subscriptionId?(t("CSTG opts.subscriptionId must be a string"),!1):0!==r.subscriptionId.length||(t("CSTG opts.subscriptionId is empty"),!1):(t("CSTG opts.serverPublicKey must match the regular expression ".concat(n)),!1)},getValidIdentity:function(e,t){if(e.emailHash)return w.isBase64Hash(e.emailHash)?{email_hash:e.emailHash}:void t("CSTG opts.emailHash is invalid");if(e.phoneHash)return w.isBase64Hash(e.phoneHash)?{phone_hash:e.phoneHash}:void t("CSTG opts.phoneHash is invalid");if(e.email){var r=w.normalizeEmail(e.email);return void 0===r?void t("CSTG opts.email is invalid"):{email:r}}return e.phone?w.isNormalizedPhone(e.phone)?{phone:e.phone}:void t("CSTG opts.phone is invalid"):void 0},isStoredTokenInvalid:function(e,t,r,n){if(t){if("optout"===t.latestToken)return!0;var o=Object.values(e)[0];if(!this.isStoredTokenFromSameIdentity(t,o))return r("CSTG supplied new identity - ignoring stored value.",t.originalIdentity,e),!0}return!1},generateTokenAndStore:function(e,t,r,n,o,a){var s=this;return i(d().mark((function i(){var u,c,l;return d().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o("UID2 cstg opts provided: ",JSON.stringify(t)),u=new _({baseUrl:e,cstg:t},o,a),i.next=4,u.generateToken(r);case 4:return c=i.sent,o("CSTG endpoint responded with:",c),l={originalIdentity:s.encodeOriginalIdentity(r),latestToken:c.identity},n.storeValue(l),i.abrupt("return",l);case 9:case"end":return i.stop()}}),i)})))()},isStoredTokenFromSameIdentity:function(e,t){return!!e.originalIdentity&&(0,h._R)(t,e.originalIdentity.salt)===e.originalIdentity.identity},encodeOriginalIdentity:function(e){var t=Object.values(e)[0],r=Math.floor(Math.random()*Math.pow(2,32));return{identity:(0,h._R)(t,r),salt:r}}};var w=function(){function e(){(0,s.Z)(this,e)}return(0,u.Z)(e,null,[{key:"isBase64Hash",value:function(e){if(!e||44!==e.length)return!1;try{return btoa(atob(e))===e}catch(e){return!1}}},{key:"isNormalizedPhone",value:function(e){return/^\+[0-9]{10,15}$/.test(e)}},{key:"normalizeEmail",value:function(e){if(e&&e.length){var t=e.trim().toLowerCase();if(!(t.indexOf(" ")>0)){var r=this.splitEmailIntoAddressAndDomain(t);if(r){var n=r.address,o=r.domain,i=this.isGmail(o),a=this.normalizeAddressPart(n,i,i);return a?"".concat(a,"@").concat(o):void 0}}}}},{key:"splitEmailIntoAddressAndDomain",value:function(e){var t=e.split("@");if(2===t.length&&!t.some((function(e){return""===e})))return{address:t[0],domain:t[1]}}},{key:"isGmail",value:function(e){return e===this.GMAIL_DOMAIN}},{key:"dropExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.EMAIL_EXTENSION_SYMBOL;return e.split(t)[0]}},{key:"normalizeAddressPart",value:function(e,t,r){var n=e;return t&&(n=n.replaceAll(this.EMAIL_DOT,"")),r&&(n=this.dropExtension(n)),n}}]),e}();(0,n.Z)(w,"EMAIL_EXTENSION_SYMBOL","+"),(0,n.Z)(w,"EMAIL_DOT","."),(0,n.Z)(w,"GMAIL_DOMAIN","gmail.com");var _=function(){function e(t,r,n){(0,s.Z)(this,e),this._baseUrl=t.baseUrl,this._serverPublicKey=t.cstg.serverPublicKey,this._subscriptionId=t.cstg.subscriptionId,this._logInfo=r,this._logWarn=n}var t,r,n;return(0,u.Z)(e,[{key:"hasStatusResponse",value:function(e){return"object"===(0,c.Z)(e)&&e&&e.status}},{key:"isCstgApiSuccessResponse",value:function(e){return this.hasStatusResponse(e)&&"success"===e.status&&y(e.body)}},{key:"isCstgApiOptoutResponse",value:function(e){return this.hasStatusResponse(e)&&"optout"===e.status}},{key:"isCstgApiClientErrorResponse",value:function(e){return this.hasStatusResponse(e)&&"client_error"===e.status&&"string"==typeof e.message}},{key:"isCstgApiForbiddenResponse",value:function(e){return this.hasStatusResponse(e)&&"invalid_http_origin"===e.status&&"string"==typeof e.message}},{key:"stripPublicKeyPrefix",value:function(e){return e.substring(9)}},{key:"generateCstgRequest",value:(n=i(d().mark((function e(t){var r,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("email_hash"in t)&&!("phone_hash"in t)){e.next=2;break}return e.abrupt("return",t);case 2:if(!("email"in t)){e.next=7;break}return e.next=5,x.hash(t.email);case 5:return r=e.sent,e.abrupt("return",{email_hash:r});case 7:if(!("phone"in t)){e.next=12;break}return e.next=10,x.hash(t.phone);case 10:return n=e.sent,e.abrupt("return",{phone_hash:n});case 12:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"generateToken",value:(r=i(d().mark((function e(t){var r,n,o,i,a,s,u,c,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateCstgRequest(t);case 2:return r=e.sent,this._logInfo("Building CSTG request for",r),e.next=6,S.build(this.stripPublicKeyPrefix(this._serverPublicKey));case 6:return n=e.sent,o=new TextEncoder,i=Date.now(),e.next=11,n.encrypt(o.encode(JSON.stringify(r)),o.encode(JSON.stringify([i])));case 11:return a=e.sent,s=a.iv,u=a.ciphertext,e.next=16,x.exportPublicKey(n.clientPublicKey);case 16:return c=e.sent,l={payload:x.bytesToBase64(new Uint8Array(u)),iv:x.bytesToBase64(new Uint8Array(s)),public_key:x.bytesToBase64(new Uint8Array(c)),timestamp:i,subscription_id:this._subscriptionId},e.abrupt("return",this.callCstgApi(l,n));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"callCstgApi",value:(t=i(d().mark((function e(t,r){var n,o,a,s,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._baseUrl+"/v2/token/client-generate",s=new Promise((function(e,t){o=e,a=t})),this._logInfo("Sending CSTG request",t),(0,f.hj)(n,{success:function(){var e=i(d().mark((function e(t,n){var i,s,c,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=x.base64ToBytes(t),e.next=4,r.decrypt(i.slice(0,12),i.slice(12));case 4:s=e.sent,c=(new TextDecoder).decode(s),l=JSON.parse(c),u.isCstgApiSuccessResponse(l)?o({status:"success",identity:l.body}):u.isCstgApiOptoutResponse(l)?o({status:"optout",identity:"optout"}):a("API error: Response body was invalid for HTTP status 200: ".concat(c)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),a(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,r){return e.apply(this,arguments)}}(),error:function(e,t){try{if(400===t.status){var r=JSON.parse(t.responseText);u.isCstgApiClientErrorResponse(r)?a("Client error: ".concat(r.message)):a("API error: Response body was invalid for HTTP status 400: ".concat(t.responseText))}else if(403===t.status){var n=JSON.parse(t.responseText);u.isCstgApiForbiddenResponse(t)?a("Forbidden: ".concat(n.message)):a("API error: Response body was invalid for HTTP status 403: ".concat(t.responseText))}else a("API error: Unexpected HTTP status ".concat(t.status,": ").concat(e))}catch(t){a(e)}}},JSON.stringify(t),{method:"POST"}),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}(),S=function(){function e(t,r){(0,s.Z)(this,e),this._clientPublicKey=t,this._sharedKey=r}var t,r,n;return(0,u.Z)(e,[{key:"encrypt",value:(n=i(d().mark((function e(t,r){var n,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.crypto.getRandomValues(new Uint8Array(12)),e.next=3,window.crypto.subtle.encrypt({name:"AES-GCM",iv:n,additionalData:r},this._sharedKey,t);case 3:return o=e.sent,e.abrupt("return",{iv:n,ciphertext:o});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"decrypt",value:(r=i(d().mark((function e(t,r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.decrypt({name:"AES-GCM",iv:t},this._sharedKey,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clientPublicKey",get:function(){return this._clientPublicKey}}],[{key:"build",value:(t=i(d().mark((function t(r){var n,o,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x.generateKeyPair(e._namedCurve);case 2:return n=t.sent,t.next=5,x.importPublicKey(r,this._namedCurve);case 5:return o=t.sent,t.next=8,x.deriveKey(o,n.privateKey);case 8:return i=t.sent,t.abrupt("return",new e(n.publicKey,i));case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]),e}();(0,n.Z)(S,"_namedCurve","P-256");var x=function(){function e(){(0,s.Z)(this,e)}var t,r,n,o;return(0,u.Z)(e,null,[{key:"base64ToBytes",value:function(e){var t=atob(e);return Uint8Array.from(t,(function(e){return e.codePointAt(0)}))}},{key:"bytesToBase64",value:function(e){var t=Array.from(e,(function(e){return String.fromCodePoint(e)})).join("");return btoa(t)}},{key:"generateKeyPair",value:(o=i(d().mark((function e(t){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={name:"ECDH",namedCurve:t},e.abrupt("return",window.crypto.subtle.generateKey(r,!1,["deriveKey"]));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"importPublicKey",value:(n=i(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={name:"ECDH",namedCurve:r},e.abrupt("return",window.crypto.subtle.importKey("spki",this.base64ToBytes(t),n,!1,[]));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"exportPublicKey",value:function(e){return window.crypto.subtle.exportKey("spki",e)}},{key:"deriveKey",value:(r=i(d().mark((function e(t,r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.deriveKey({name:"ECDH",public:t},r,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"]));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"hash",value:(t=i(d().mark((function e(t){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t));case 2:return r=e.sent,e.abrupt("return",this.bytesToBase64(new Uint8Array(r)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();function I(e,t,r,n){var o,i,a,s=null,u="cookie"!==e.storage,c=new m(t,u,e.internalStorage,r);r("Module is using ".concat(u?"local storage":"cookies"," for internal storage."));var l=g&&g.isCSTGOptionsValid(e.cstg,n);l?(r("Module is using client-side token generation."),s=null):e.paramToken?(s=e.paramToken,r("Read token from params",s)):e.serverCookieName&&(s=c.readProvidedCookie(e.serverCookieName),r("Read token from server-supplied cookie",s));var d,p,f=c.getStoredValueWithFallback();if(r("Loaded module-stored tokens:",f),f&&"string"==typeof f){if(!s&&!l)return r("Returning legacy cookie value."),{id:f};r("Discarding superseded legacy cookie."),f=null}s&&f&&((null===(d=f.originalToken)||void 0===d?void 0:d.advertising_token)!==s.advertising_token&&(r("Server supplied new token - ignoring stored value.",null===(p=f.originalToken)||void 0===p?void 0:p.advertising_token,s.advertising_token),f=null));if(l){var h=g.getValidIdentity(e.cstg,n);if(h&&(f&&g.isStoredTokenInvalid(h,f,r,n)&&(f=null),!f||Date.now()>f.latestToken.refresh_expires)){var v=g.generateTokenAndStore(e.apiBaseUrl,e.cstg,h,c,r,n);return r("Generate token using CSTG"),{callback:function(e){v.then((function(t){r("Token generation responded, passing the new token on.",t),e(t)}))}}}}var y=!(null!==(o=f)&&void 0!==o&&o.latestToken)||s&&s.identity_expires>f.latestToken.identity_expires,b=y?s:f.latestToken;if(r("UID2 module selected latest token",y,b),!b||Date.now()>b.refresh_expires)return r("Newest available token is expired and not refreshable."),{id:null};if(Date.now()>b.identity_expires){var w=k(e.apiBaseUrl,b,e.clientId,c,r,n);return r("Token is expired but can be refreshed, attempting refresh."),{callback:function(e){w.then((function(t){r("Refresh reponded, passing the updated token on.",t),e(t)}))}}}Date.now()>b.refresh_from&&(r("Refreshing token in background with low priority."),k(e.apiBaseUrl,b,e.clientId,c,r,n));var _,S={originalToken:null!==(i=s)&&void 0!==i?i:null===(a=f)||void 0===a?void 0:a.originalToken,latestToken:b};l&&(S.originalIdentity=null===(_=f)||void 0===_?void 0:_.originalIdentity);return c.storeValue(S),{id:S}}function T(e){for(var t=0,r=["emailHash","phoneHash","email","phone"];t<r.length;t++){var o=r[t];if(e.hasOwnProperty(o))return(0,n.Z)({},o,e[o])}return{}}(0,p.z)("uid2IdSystem_shared")},7061:function(e,t,r){var n=r(8698).default;function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new P(n||[]);return a(i,"_invoke",{value:x(e,r,s)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function v(){}function y(){}function g(){}var b={};d(b,u,(function(){return this}));var m=Object.getPrototypeOf,k=m&&m(m(O([])));k&&k!==r&&i.call(k,u)&&(b=k);var w=g.prototype=v.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,s,u){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function x(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=I(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function I(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,I(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:y,configurable:!0}),y.displayName=d(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},_(S.prototype),d(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),d(w,l,"Generator"),d(w,u,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,r){var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},function(e){e.O(0,[7292,5823,9270],(function(){return t=8816,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8102],{890:function(e,t,r){r.d(t,{ov:function(){return y},Rh:function(){return T},gD:function(){return I}});var n=r(4942);function o(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))}}var a=r(2982),s=r(5671),u=r(3144),c=r(1002),l=r(4687),f=r.n(l),p=r(8640),h=r(8928),d=r(4358),y="1.1";function v(e){return!!("object"===(0,c.Z)(e)&&null!==e&&e.advertising_token&&e.identity_expires&&e.refresh_from&&e.refresh_token&&e.refresh_expires)}var g,b=function(){function e(t,r,n,o){(0,s.Z)(this,e),this._baseUrl=t.baseUrl,this._clientVersion=r,this._logInfo=n,this._logWarn=o}return(0,u.Z)(e,[{key:"createArrayBuffer",value:function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}},{key:"hasStatusResponse",value:function(e){return"object"===(0,c.Z)(e)&&e&&e.status}},{key:"isValidRefreshResponse",value:function(e){return this.hasStatusResponse(e)&&("optout"===e.status||"expired_token"===e.status||"success"===e.status&&e.body&&v(e.body))}},{key:"ResponseToRefreshResult",value:function(e){return this.isValidRefreshResponse(e)?"success"===e.status?{status:e.status,identity:e.body}:e:"Response didn't contain a valid status"}},{key:"callRefreshApi",value:function(e){var t,r,n=this,o=this._baseUrl+"/v2/token/refresh",i=new Promise((function(e,n){t=e,r=n}));return this._logInfo("Sending refresh request",e),(0,h.hj)(o,{success:function(o){try{if(e.refresh_response_key){n._logInfo("Decrypting refresh API response");var i=n.createArrayBuffer(atob(o));window.crypto.subtle.importKey("raw",n.createArrayBuffer(atob(e.refresh_response_key)),{name:"AES-GCM"},!1,["decrypt"]).then((function(e){n._logInfo("Imported decryption key"),window.crypto.subtle.decrypt({name:"AES-GCM",iv:i.slice(0,12),tagLength:128},e,i.slice(12)).then((function(e){var o=String.fromCharCode.apply(String,(0,a.Z)(new Uint8Array(e)));n._logInfo("Decrypted to:",o);var i=JSON.parse(o),s=n.ResponseToRefreshResult(i);"string"==typeof s?r(s):t(s)}),(function(e){return n._logWarn("Call to UID2 API failed",e)}))}),(function(e){return n._logWarn("Call to UID2 API failed",e)}))}else{n._logInfo("No response decryption key available, assuming unencrypted JSON");var s=JSON.parse(o),u=n.ResponseToRefreshResult(s);"string"==typeof u?r(u):t(u)}}catch(e){r(o)}},error:function(e,o){try{n._logInfo("Error status, assuming unencrypted JSON");var i=JSON.parse(o.responseText),a=n.ResponseToRefreshResult(i);"string"==typeof a?r(a):t(a)}catch(t){r(e)}}},e.refresh_token,{method:"POST",customHeaders:{"X-UID2-Client-Version":this._clientVersion}}),i}}]),e}(),m=function(){function e(t,r,n,o){(0,s.Z)(this,e),this._storage=t,this._preferLocalStorage=r,this._storageName=n,this._logInfo=o}return(0,u.Z)(e,[{key:"readCookie",value:function(e){return this._storage.cookiesAreEnabled()?this._storage.getCookie(e):null}},{key:"readLocalStorage",value:function(e){return this._storage.localStorageIsEnabled()?this._storage.getDataFromLocalStorage(e):null}},{key:"readModuleCookie",value:function(){return this.parseIfContainsBraces(this.readCookie(this._storageName))}},{key:"writeModuleCookie",value:function(e){this._storage.setCookie(this._storageName,JSON.stringify(e),Date.now()+864e5)}},{key:"readModuleStorage",value:function(){return this.parseIfContainsBraces(this.readLocalStorage(this._storageName))}},{key:"writeModuleStorage",value:function(e){this._storage.setDataInLocalStorage(this._storageName,JSON.stringify(e))}},{key:"readProvidedCookie",value:function(e){return JSON.parse(this.readCookie(e))}},{key:"parseIfContainsBraces",value:function(e){return null!=e&&e.includes("{")?JSON.parse(e):e}},{key:"storeValue",value:function(e){this._preferLocalStorage?this.writeModuleStorage(e):this.writeModuleCookie(e)}},{key:"getStoredValueWithFallback",value:function(){var e=this._preferLocalStorage?"local storage":"cookie",t=(this._preferLocalStorage?this.readModuleStorage:this.readModuleCookie).bind(this),r=(this._preferLocalStorage?this.writeModuleStorage:this.writeModuleCookie).bind(this),n=(this._preferLocalStorage?this.readModuleCookie:this.readModuleStorage).bind(this),o=t();if(o){if("string"==typeof o){var i=n();if(i&&"object"===(0,c.Z)(i))return this._logInfo("".concat(e," contained a basic token, but found a refreshable token fallback. Copying the fallback value to ").concat(e,".")),r(i),i}}else{var a=n();if(a)return this._logInfo("".concat(e," was empty, but found a fallback value.")),"object"===(0,c.Z)(a)&&(this._logInfo("Copying the fallback value to ".concat(e,".")),r(a)),a}return o}}]),e}();function k(e,t,r,n,o,i){return o("UID2 base url provided: ",e),new b({baseUrl:e},r,o,i).callRefreshApi(t).then((function(e){o("Refresh endpoint responded with:",e);var r={originalToken:t,latestToken:e.identity},i=n.getStoredValueWithFallback();return null!=i&&i.originalIdentity&&(r.originalIdentity=i.originalIdentity),n.storeValue(r),r}))}g={isCSTGOptionsValid:function(e,t){if("object"!==(0,c.Z)(e)||null===e)return t('CSTG is not being used, but is included in the Prebid.js bundle. You can reduce the bundle size by passing "--disable UID2_CSTG" to the Prebid.js build.'),!1;var r=e;if(!r.serverPublicKey&&!r.subscriptionId)return t("CSTG has been enabled but its parameters have not been set."),!1;if("string"!=typeof r.serverPublicKey)return t("CSTG opts.serverPublicKey must be a string"),!1;var n=/^(UID2|EUID)-X-[A-Z]-.+/;return n.test(r.serverPublicKey)?"string"!=typeof r.subscriptionId?(t("CSTG opts.subscriptionId must be a string"),!1):0!==r.subscriptionId.length||(t("CSTG opts.subscriptionId is empty"),!1):(t("CSTG opts.serverPublicKey must match the regular expression ".concat(n)),!1)},getValidIdentity:function(e,t){if(e.emailHash)return w.isBase64Hash(e.emailHash)?{email_hash:e.emailHash}:void t("CSTG opts.emailHash is invalid");if(e.phoneHash)return w.isBase64Hash(e.phoneHash)?{phone_hash:e.phoneHash}:void t("CSTG opts.phoneHash is invalid");if(e.email){var r=w.normalizeEmail(e.email);return void 0===r?void t("CSTG opts.email is invalid"):{email:r}}return e.phone?w.isNormalizedPhone(e.phone)?{phone:e.phone}:void t("CSTG opts.phone is invalid"):void 0},isStoredTokenInvalid:function(e,t,r,n){if(t){if("optout"===t.latestToken)return!0;var o=Object.values(e)[0];if(!this.isStoredTokenFromSameIdentity(t,o))return r("CSTG supplied new identity - ignoring stored value.",t.originalIdentity,e),!0}return!1},generateTokenAndStore:function(e,t,r,n,o,a){var s=this;return i(f().mark((function i(){var u,c,l;return f().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o("UID2 cstg opts provided: ",JSON.stringify(t)),u=new _({baseUrl:e,cstg:t},o,a),i.next=4,u.generateToken(r);case 4:return c=i.sent,o("CSTG endpoint responded with:",c),l={originalIdentity:s.encodeOriginalIdentity(r),latestToken:c.identity},n.storeValue(l),i.abrupt("return",l);case 9:case"end":return i.stop()}}),i)})))()},isStoredTokenFromSameIdentity:function(e,t){return!!e.originalIdentity&&(0,d._R)(t,e.originalIdentity.salt)===e.originalIdentity.identity},encodeOriginalIdentity:function(e){var t=Object.values(e)[0],r=Math.floor(Math.random()*Math.pow(2,32));return{identity:(0,d._R)(t,r),salt:r}}};var w=function(){function e(){(0,s.Z)(this,e)}return(0,u.Z)(e,null,[{key:"isBase64Hash",value:function(e){if(!e||44!==e.length)return!1;try{return btoa(atob(e))===e}catch(e){return!1}}},{key:"isNormalizedPhone",value:function(e){return/^\+[0-9]{10,15}$/.test(e)}},{key:"normalizeEmail",value:function(e){if(e&&e.length){var t=e.trim().toLowerCase();if(!(t.indexOf(" ")>0)){var r=this.splitEmailIntoAddressAndDomain(t);if(r){var n=r.address,o=r.domain,i=this.isGmail(o),a=this.normalizeAddressPart(n,i,i);return a?"".concat(a,"@").concat(o):void 0}}}}},{key:"splitEmailIntoAddressAndDomain",value:function(e){var t=e.split("@");if(2===t.length&&!t.some((function(e){return""===e})))return{address:t[0],domain:t[1]}}},{key:"isGmail",value:function(e){return e===this.GMAIL_DOMAIN}},{key:"dropExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.EMAIL_EXTENSION_SYMBOL;return e.split(t)[0]}},{key:"normalizeAddressPart",value:function(e,t,r){var n=e;return t&&(n=n.replaceAll(this.EMAIL_DOT,"")),r&&(n=this.dropExtension(n)),n}}]),e}();(0,n.Z)(w,"EMAIL_EXTENSION_SYMBOL","+"),(0,n.Z)(w,"EMAIL_DOT","."),(0,n.Z)(w,"GMAIL_DOMAIN","gmail.com");var _=function(){function e(t,r,n){(0,s.Z)(this,e),this._baseUrl=t.baseUrl,this._serverPublicKey=t.cstg.serverPublicKey,this._subscriptionId=t.cstg.subscriptionId,this._logInfo=r,this._logWarn=n}var t,r,n;return(0,u.Z)(e,[{key:"hasStatusResponse",value:function(e){return"object"===(0,c.Z)(e)&&e&&e.status}},{key:"isCstgApiSuccessResponse",value:function(e){return this.hasStatusResponse(e)&&"success"===e.status&&v(e.body)}},{key:"isCstgApiOptoutResponse",value:function(e){return this.hasStatusResponse(e)&&"optout"===e.status}},{key:"isCstgApiClientErrorResponse",value:function(e){return this.hasStatusResponse(e)&&"client_error"===e.status&&"string"==typeof e.message}},{key:"isCstgApiForbiddenResponse",value:function(e){return this.hasStatusResponse(e)&&"invalid_http_origin"===e.status&&"string"==typeof e.message}},{key:"stripPublicKeyPrefix",value:function(e){return e.substring(9)}},{key:"generateCstgRequest",value:(n=i(f().mark((function e(t){var r,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("email_hash"in t)&&!("phone_hash"in t)){e.next=2;break}return e.abrupt("return",t);case 2:if(!("email"in t)){e.next=7;break}return e.next=5,S.hash(t.email);case 5:return r=e.sent,e.abrupt("return",{email_hash:r});case 7:if(!("phone"in t)){e.next=12;break}return e.next=10,S.hash(t.phone);case 10:return n=e.sent,e.abrupt("return",{phone_hash:n});case 12:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"generateToken",value:(r=i(f().mark((function e(t){var r,n,o,i,a,s,u,c,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateCstgRequest(t);case 2:return r=e.sent,this._logInfo("Building CSTG request for",r),e.next=6,x.build(this.stripPublicKeyPrefix(this._serverPublicKey));case 6:return n=e.sent,o=new TextEncoder,i=Date.now(),e.next=11,n.encrypt(o.encode(JSON.stringify(r)),o.encode(JSON.stringify([i])));case 11:return a=e.sent,s=a.iv,u=a.ciphertext,e.next=16,S.exportPublicKey(n.clientPublicKey);case 16:return c=e.sent,l={payload:S.bytesToBase64(new Uint8Array(u)),iv:S.bytesToBase64(new Uint8Array(s)),public_key:S.bytesToBase64(new Uint8Array(c)),timestamp:i,subscription_id:this._subscriptionId},e.abrupt("return",this.callCstgApi(l,n));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"callCstgApi",value:(t=i(f().mark((function e(t,r){var n,o,a,s,u=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._baseUrl+"/v2/token/client-generate",s=new Promise((function(e,t){o=e,a=t})),this._logInfo("Sending CSTG request",t),(0,h.hj)(n,{success:function(){var e=i(f().mark((function e(t,n){var i,s,c,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=S.base64ToBytes(t),e.next=4,r.decrypt(i.slice(0,12),i.slice(12));case 4:s=e.sent,c=(new TextDecoder).decode(s),l=JSON.parse(c),u.isCstgApiSuccessResponse(l)?o({status:"success",identity:l.body}):u.isCstgApiOptoutResponse(l)?o({status:"optout",identity:"optout"}):a("API error: Response body was invalid for HTTP status 200: ".concat(c)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),a(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,r){return e.apply(this,arguments)}}(),error:function(e,t){try{if(400===t.status){var r=JSON.parse(t.responseText);u.isCstgApiClientErrorResponse(r)?a("Client error: ".concat(r.message)):a("API error: Response body was invalid for HTTP status 400: ".concat(t.responseText))}else if(403===t.status){var n=JSON.parse(t.responseText);u.isCstgApiForbiddenResponse(t)?a("Forbidden: ".concat(n.message)):a("API error: Response body was invalid for HTTP status 403: ".concat(t.responseText))}else a("API error: Unexpected HTTP status ".concat(t.status,": ").concat(e))}catch(t){a(e)}}},JSON.stringify(t),{method:"POST"}),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}(),x=function(){function e(t,r){(0,s.Z)(this,e),this._clientPublicKey=t,this._sharedKey=r}var t,r,n;return(0,u.Z)(e,[{key:"encrypt",value:(n=i(f().mark((function e(t,r){var n,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.crypto.getRandomValues(new Uint8Array(12)),e.next=3,window.crypto.subtle.encrypt({name:"AES-GCM",iv:n,additionalData:r},this._sharedKey,t);case 3:return o=e.sent,e.abrupt("return",{iv:n,ciphertext:o});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"decrypt",value:(r=i(f().mark((function e(t,r){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.decrypt({name:"AES-GCM",iv:t},this._sharedKey,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clientPublicKey",get:function(){return this._clientPublicKey}}],[{key:"build",value:(t=i(f().mark((function t(r){var n,o,i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S.generateKeyPair(e._namedCurve);case 2:return n=t.sent,t.next=5,S.importPublicKey(r,this._namedCurve);case 5:return o=t.sent,t.next=8,S.deriveKey(o,n.privateKey);case 8:return i=t.sent,t.abrupt("return",new e(n.publicKey,i));case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]),e}();(0,n.Z)(x,"_namedCurve","P-256");var S=function(){function e(){(0,s.Z)(this,e)}var t,r,n,o;return(0,u.Z)(e,null,[{key:"base64ToBytes",value:function(e){var t=atob(e);return Uint8Array.from(t,(function(e){return e.codePointAt(0)}))}},{key:"bytesToBase64",value:function(e){var t=Array.from(e,(function(e){return String.fromCodePoint(e)})).join("");return btoa(t)}},{key:"generateKeyPair",value:(o=i(f().mark((function e(t){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={name:"ECDH",namedCurve:t},e.abrupt("return",window.crypto.subtle.generateKey(r,!1,["deriveKey"]));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"importPublicKey",value:(n=i(f().mark((function e(t,r){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={name:"ECDH",namedCurve:r},e.abrupt("return",window.crypto.subtle.importKey("spki",this.base64ToBytes(t),n,!1,[]));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"exportPublicKey",value:function(e){return window.crypto.subtle.exportKey("spki",e)}},{key:"deriveKey",value:(r=i(f().mark((function e(t,r){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.deriveKey({name:"ECDH",public:t},r,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"]));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"hash",value:(t=i(f().mark((function e(t){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t));case 2:return r=e.sent,e.abrupt("return",this.bytesToBase64(new Uint8Array(r)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();function T(e,t,r,n){var o,i,a,s=null,u="cookie"!==e.storage,c=new m(t,u,e.internalStorage,r);r("Module is using ".concat(u?"local storage":"cookies"," for internal storage."));var l=g&&g.isCSTGOptionsValid(e.cstg,n);l?(r("Module is using client-side token generation."),s=null):e.paramToken?(s=e.paramToken,r("Read token from params",s)):e.serverCookieName&&(s=c.readProvidedCookie(e.serverCookieName),r("Read token from server-supplied cookie",s));var f,p,h=c.getStoredValueWithFallback();if(r("Loaded module-stored tokens:",h),h&&"string"==typeof h){if(!s&&!l)return r("Returning legacy cookie value."),{id:h};r("Discarding superseded legacy cookie."),h=null}s&&h&&((null===(f=h.originalToken)||void 0===f?void 0:f.advertising_token)!==s.advertising_token&&(r("Server supplied new token - ignoring stored value.",null===(p=h.originalToken)||void 0===p?void 0:p.advertising_token,s.advertising_token),h=null));if(l){var d=g.getValidIdentity(e.cstg,n);if(d&&(h&&g.isStoredTokenInvalid(d,h,r,n)&&(h=null),!h||Date.now()>h.latestToken.refresh_expires)){var y=g.generateTokenAndStore(e.apiBaseUrl,e.cstg,d,c,r,n);return r("Generate token using CSTG"),{callback:function(e){y.then((function(t){r("Token generation responded, passing the new token on.",t),e(t)}))}}}}var v=!(null!==(o=h)&&void 0!==o&&o.latestToken)||s&&s.identity_expires>h.latestToken.identity_expires,b=v?s:h.latestToken;if(r("UID2 module selected latest token",v,b),!b||Date.now()>b.refresh_expires)return r("Newest available token is expired and not refreshable."),{id:null};if(Date.now()>b.identity_expires){var w=k(e.apiBaseUrl,b,e.clientId,c,r,n);return r("Token is expired but can be refreshed, attempting refresh."),{callback:function(e){w.then((function(t){r("Refresh reponded, passing the updated token on.",t),e(t)}))}}}Date.now()>b.refresh_from&&(r("Refreshing token in background with low priority."),k(e.apiBaseUrl,b,e.clientId,c,r,n));var _,x={originalToken:null!==(i=s)&&void 0!==i?i:null===(a=h)||void 0===a?void 0:a.originalToken,latestToken:b};l&&(x.originalIdentity=null===(_=h)||void 0===_?void 0:_.originalIdentity);return c.storeValue(x),{id:x}}function I(e){for(var t=0,r=["emailHash","phoneHash","email","phone"];t<r.length;t++){var o=r[t];if(e.hasOwnProperty(o))return(0,n.Z)({},o,e[o])}return{}}(0,p.z)("uid2IdSystem_shared")},7061:function(e,t,r){var n=r(8698).default;function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new A(n||[]);return a(i,"_invoke",{value:S(e,r,s)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d={};function y(){}function v(){}function g(){}var b={};f(b,u,(function(){return this}));var m=Object.getPrototypeOf,k=m&&m(m(P([])));k&&k!==r&&i.call(k,u)&&(b=k);var w=g.prototype=y.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,s,u){var c=h(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=T(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function T(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=f(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,f(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},_(x.prototype),f(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),f(w,l,"Generator"),f(w,u,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,r){var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},function(e){e.O(0,[5823,9270],(function(){return t=890,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9215],{2547:function(e,n,t){var r=t(2982),o=t(1002),i=t(885),a=t(4942),u=t(8640),c=t(4614),s=t(3193),f=t(2021),l=t(4516),d=t(3304),g=t(2200),m=t(2797),v=t(4358),b=t(265),h=new Map;function y(e){var n={};function t(e){var t,o,i=JSON.stringify([null===(t=e.source)||void 0===t?void 0:t.toLowerCase(),e.ext]);n.hasOwnProperty(i)?(o=n[i].uids).push.apply(o,(0,r.Z)(e.uids)):n[i]=e}return Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],o=n[1];o=Array.isArray(o)?o:[o],("pubProvidedId"===r?(0,v.I8)(o):o.map((function(e){return function(e,n){var t=h.get(n);if(t&&e){var r={};r.source=(0,v.LQ)(t.getSource)?t.getSource(e):t.source;var o=(0,v.LQ)(t.getValue)?t.getValue(e):e;if((0,v.d8)(o)){var i={id:o,atype:t.atype};if((0,v.LQ)(t.getUidExt)){var a=t.getUidExt(e);a&&(i.ext=a)}if(r.uids=[i],(0,v.LQ)(t.getEidExt)){var u=t.getEidExt(e);u&&(r.ext=u)}return r}}return null}(e,r)}))).filter((function(e){return null!=e})).forEach(t)})),Object.values(n)}var p,w,S,I,E,O,D=t(5164),j=t(6475),k=t(7563),P=t(8792),N=t(6372),A=t(9128),T=t(8196),C=t(9633),L=t(571),Z=t(4947),x=t(286),U="User ID",_=D.c$,R=D.Dp,F="_pbjs_id_optout",H=(0,D.eA)("userId"),q={isAllowed:L.xD},J=!1,M=[],Q=[],B={},G=[],V=function(){return null==O&&(O=(0,A.V6)()),O};function W(e){return V().fork().renameWith((function(n){return["userId.mod.".concat(n),"userId.mods.".concat(e,".").concat(n)]}))}function z(e,n){n=n||e.storageMgr;var t="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,r=e.config.storage.name;return function(e,o,i){n.setCookie(r+(e||""),o,i,"Lax",t)}}function $(e,n){var t=e.config.storage;try{var r=new Date(Date.now()+864e5*t.expires).toUTCString(),o=(0,v.PO)(n)?JSON.stringify(n):n;e.enabledStorageTypes.forEach((function(n){switch(n){case _:!function(e,n,t){var r=e.config.storage,o=z(e);o(null,n,t),o("_cst",we(),t),"number"==typeof r.refreshInSeconds&&o("_last",(new Date).toUTCString(),t)}(e,o,r);break;case R:!function(e,n,t){var r=e.config.storage,o=e.storageMgr;o.setDataInLocalStorage("".concat(r.name,"_exp"),t),o.setDataInLocalStorage("".concat(r.name,"_cst"),we()),o.setDataInLocalStorage(r.name,encodeURIComponent(n)),"number"==typeof r.refreshInSeconds&&o.setDataInLocalStorage("".concat(r.name,"_last"),(new Date).toUTCString())}(e,o,r)}}))}catch(e){(0,v.H)(e)}}function K(e){Pe(e),e.enabledStorageTypes.forEach((function(n){switch(n){case _:!function(e){var n=z(e,H),t=new Date(Date.now()-864e5).toUTCString();["","_last","_cst"].forEach((function(e){try{n(e,"",t)}catch(e){(0,v.H)(e)}}))}(e);break;case R:!function(e){["","_last","_exp","_cst"].forEach((function(n){try{H.removeDataFromLocalStorage(e.config.storage.name+n)}catch(e){(0,v.H)(e)}}))}(e)}}))}function X(e){var n=(0,v.EE)().setEidPermissions;"function"==typeof n&&(0,v.kJ)(e)&&n(function(e){var n=[];return e.filter((function(e){return(0,v.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(t){var r=h.get(t)||{};(0,b.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&r.source&&n.push({source:r.source,bidders:e.config.bidders})}))})),n}(e))}function Y(e,n){return e.storageMgr.getCookie(n)}function ee(e,n){var t=e.storageMgr,r=e.config.storage,o=t.getDataFromLocalStorage("".concat(r.name,"_exp"));return""===o?t.getDataFromLocalStorage(n):o&&new Date(o).getTime()-Date.now()>0?decodeURIComponent(t.getDataFromLocalStorage(n)):void 0}function ne(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=e.config.storage,o=t?"".concat(r.name,"_").concat(t):r.name;try{e.enabledStorageTypes.find((function(t){switch(t){case _:n=Y(e,o);break;case R:n=ee(e,o)}return!!n})),"string"==typeof n&&"{"===n.trim().charAt(0)&&(n=JSON.parse(n))}catch(e){(0,v.H)(e)}return n}function te(e,n,t){n=V().fork().startTiming("userId.callbacks.total").stopBefore(n);var r=(0,v.yx)((function(){clearTimeout(undefined),n()}),e.length);e.forEach((function(e){var n=W(e.submodule.name).startTiming("callback").stopBefore(r);try{e.callback((function(r){r?(e.config.storage&&$(e,r),e.idObj=e.submodule.decode(r,e.config),Ie(re(t))):(0,v.PN)("".concat(U,": ").concat(e.submodule.name," - request id responded with an empty value")),n()}),ne.bind(null,e))}catch(t){(0,v.H)("Error in userID module '".concat(e.submodule.name,"':"),t),n()}e.callback=void 0}))}function re(e){return Array.isArray(e)&&e.length?ie(e):{}}function oe(e,n,t){return Object.fromEntries(Object.entries(e.reduce((function(e,r){var o=n(r);return o&&Object.keys(o).forEach((function(n){var i,a=null===(i=B[n])||void 0===i?void 0:i.indexOf(t(r)),u={priority:(0,v.hj)(a)?a:-1,value:o[n]};if(e[n]){var c=u.priority>e[n].priority?u:e[n];e[n]=c}else e[n]=u})),e}),{})).map((function(e){var n=(0,i.Z)(e,2);return[n[0],n[1].value]})))}function ie(e){return oe(e.filter((function(e){return(0,v.PO)(e.idObj)&&Object.keys(e.idObj).length})),(function(e){return e.idObj}),(function(e){return e.submodule.name}))}function ae(e,n){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&(0,v.kJ)(e.bids)&&e.bids.forEach((function(e){var t=function(e,n){return Array.isArray(e)&&e.length&&n?ie(e.filter((function(e){return!e.config.bidders||!(0,v.kJ)(e.config.bidders)||(0,c.q9)(e.config.bidders,n)}))):{}}(n,e.bidder);Object.keys(t).length&&(e.userId=t,e.userIdAsEids=y(t))}))}))}var ue,ce={};function se(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.delay,o=void 0===r?P.Z.timeout:r,i=(0,P.P)(),a=(0,P.P)(),u=!1;function c(t){return n=V().fork(),null!=e&&e.reject(ce),e=(0,P.P)(),P.Z.race([t,e.promise]).finally(n.startTiming("userId.total"))}var s=p,d=M;function b(e){return function(){if(s===p&&d===M)return e.apply(void 0,arguments)}}function h(){return l.NO.promise.finally(n.startTiming("userId.init.consent"))}var y=c(P.Z.all([m.Cd,i.promise]).then(h).then(b((function(){Ee(s,d)}))).then((function(){return a.promise.finally(n.startTiming("userId.callbacks.pending"))})).then(b((function(){var e=s.filter((function(e){return(0,v.LQ)(e.callback)}));if(e.length)return new P.Z((function(n){return te(e,n,s)}))}))));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refresh,t=void 0!==n&&n,r=e.submoduleNames,l=void 0===r?null:r,m=e.ready,v=void 0!==m&&m;return v&&!u&&(u=!0,i.resolve(),S>0?a.resolve():f.on(g.FP.AUCTION_END,(function e(){f.S1(g.FP.AUCTION_END,e),o(w).then(a.resolve)}))),t&&u&&(y=c(y.catch((function(){return null})).then(h).then(b((function(){var e=Ee(s,d.filter((function(e){return null==l||l.includes(e.submodule.name)})),!0).filter((function(e){return null!=e.callback}));if(e.length)return new P.Z((function(n){return te(e,n,s)}))}))))),y}}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge()||[],n=I&&e.find((function(e){return e.source===I}));if(n&&"string"==typeof(0,b.Z)(n,"uids.0.id")){var t=n.uids[0].id.replace(/[\W_]/g,"");if(t.length>=32&&t.length<=150)return t;(0,v.yN)("User ID - Googletag Publisher Provided ID for ".concat(I," is not between 32 and 150 characters - ").concat(t))}}var le=(0,A.g3)("userId",(function(e,n){var t=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.delay,i=void 0===o?P.Z.timeout:o,a=r.getIds,c=void 0===a?pe:a;P.Z.race([c().catch((function(){return null})),i(S)]).then((function(){ae(n.adUnits||(0,u.R)().adUnits,p),V().join((0,A.Bf)(n.metrics),{propagate:!1,includeGroups:!0}),e.call(t,n)}))}));function de(){return re(p)}function ge(){return y(de())}function me(e){return y(function(e,n){if(!Array.isArray(e)||!e.length)return{};var t=ie(e),r=Object.keys(t).find((function(e){var t=h.get(e);return(null==t?void 0:t.source)===n||(0,v.LQ)(null==t?void 0:t.getSource)&&t.getSource()===n}));return r?(0,a.Z)({},r,t[r]):[]}(p,e))[0]}function ve(e,n,t){return ue().then((function(){var r={};if((0,v.LQ)(t)){(0,v.PN)("".concat(U," - Getting encrypted signal from custom function : ").concat(t.name," & source : ").concat(e," "));var o=t(e);r[e]=o?be(o):null}else{var i=me(e);(0,v.PN)("".concat(U," - Getting encrypted signal for eids :").concat(JSON.stringify(i))),(0,v.xb)(i)||(r[i.source]=!0===n?be(i):i.uids[0].id)}return(0,v.PN)("".concat(U," - Fetching encrypted eids: ").concat(r[e])),r[e]}))}function be(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t="";if(1===n)t="object"===(0,o.Z)(e)?window.btoa(JSON.stringify(e)):window.btoa(e);return"".concat(n,"||").concat(t)}function he(){if((0,v.T9)()){window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];var e=s.vc.getConfig("userSync.encryptedSignalSources");if(e){var n=e.registerDelay||0;setTimeout((function(){e.sources&&e.sources.forEach((function(e){var n=e.source,t=e.encrypt,r=e.customFunc;n.forEach((function(e){window.googletag.secureSignalProviders.push({id:e,collectorFunction:function(){return ve(e,t,r)}})}))}))}),n)}else(0,v.yN)("".concat(U," - ESP : encryptedSignalSources config not defined under userSync Object"))}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.submoduleNames,t=arguments.length>1?arguments[1]:void 0;return ue({refresh:!0,submoduleNames:n}).then((function(){return t&&(0,v.LQ)(t)&&t(),de()}))}function pe(){return ue().then((function(){return de()}),(function(e){return e===ce?Promise.resolve().then(pe):((0,v.H)("Error initializing userId",e),P.Z.reject(e))}))}function we(){for(var e=Number(l.NO.hash),n=[];e>0;)n.push(String.fromCharCode(255&e)),e>>>=8;return btoa(n.join())}function Se(e,n,t){var r=l.rp.getConsentData();if(e.config.storage){var o,i=ne(e),a=!1;if("number"==typeof e.config.storage.refreshInSeconds){var u=new Date(ne(e,"last"));a=u&&Date.now()-u.getTime()>1e3*e.config.storage.refreshInSeconds}if(!i||a||n||function(e){var n=ne(e,"cst");return!n||n!==we()}(e)){var c=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);o=e.submodule.getId(c,r,i)}else"function"==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,r,i));(0,v.PO)(o)&&(o.id&&($(e,o.id),i=o.id),"function"==typeof o.callback&&(e.callback=o.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var s=e.submodule.getId(e.config,r,void 0);(0,v.PO)(s)&&("function"==typeof s.callback&&(e.callback=s.callback),s.id&&(e.idObj=e.submodule.decode(s.id,e.config)))}Ie(re(t))}function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();if(e&&I){var n=fe(y(e));n&&((0,v.T9)()?window.googletag.pubads().setPublisherProvidedId(n):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(n)}))))}}function Ee(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V().fork().measureTime("userId.init.modules",(function(){if(!n.length)return[];if(n.forEach((function(e){return Pe(e)})),!(n=n.filter((function(e){return(!e.config.storage||Ne(e))&&q.isAllowed(Z.EL,(0,x.T)(C.y2,e.config.name))}))).length)return(0,v.yN)("".concat(U," - no ID module configured")),[];var r=n.reduce((function(e,r){return W(r.submodule.name).measureTime("init",(function(){try{Se(r,t,n),e.push(r)}catch(e){(0,v.H)("Error in userID module '".concat(r.submodule.name,"':"),e)}return e}))}),[]);return r.length&&X(r),r.forEach(Oe.bind(null,e)),r}))}function Oe(e,n){for(var t=!1,r=0;r<e.length;r++)if(n.config.name.toLowerCase()===e[r].config.name.toLowerCase()){t=!0,e[r]=n;break}t||e.push(n)}function De(e){var n,t;return(null==e||null===(n=e.storage)||void 0===n||null===(t=n.type)||void 0===t?void 0:t.trim().split(/\s*&\s*/))||[]}function je(e){return Array.isArray(e)?e.reduce((function(e,n){return!n||(0,v.jH)(n.name)||(n.storage&&!(0,v.jH)(n.storage.type)&&!(0,v.jH)(n.storage.name)&&function(e){return De(e).every((function(e){return ke.has(e)}))}(n)||(0,v.PO)(n.value)?e.push(n):n.storage||n.value||e.push(n)),e}),[]):[]}var ke=new Set([R,_]);function Pe(e){if(!e.enabledStorageTypes){var n=De(e.config);e.enabledStorageTypes=n.filter((function(n){switch(n){case R:return function(e){return!(!e.storageMgr.localStorageIsEnabled()||H.getDataFromLocalStorage(F)&&((0,v.PN)("".concat(U," - opt-out localStorage found, storage disabled")),1))}(e);case _:return function(e){return!(!e.storageMgr.cookiesAreEnabled()||H.getCookie(F)&&((0,v.PN)("".concat(U," - opt-out cookie found, storage disabled")),1))}(e)}return!1}))}}function Ne(e){return!!e.enabledStorageTypes.length}function Ae(e){h.clear(),Object.entries(oe(e,(function(e){return e.eids}),(function(e){return e.name}))).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return h.set(t,r)}))}function Te(){Ae(G);var e=je(Q);if(e.length){var n=G.filter((function(e){return!(0,c.sE)(M,(function(n){return n.name===e.name}))}));M.splice(0,M.length),n.map((function(n){var t=(0,c.sE)(e,(function(e){return e.name&&(e.name.toLowerCase()===n.name.toLowerCase()||n.aliasName&&e.name.toLowerCase()===n.aliasName.toLowerCase())}));return t&&n.name!==t.name&&(t.name=n.name),t?{submodule:n,config:t,callback:void 0,idObj:void 0,storageMgr:(0,D.df)({moduleType:C.y2,moduleName:t.name})}:null})).filter((function(e){return null!==e})).forEach((function(e){return M.push(e)})),!J&&M.length&&((0,u.R)().requestBids.before(le,40),d.ZP.callDataDeletionRequest.before(Le),k.G.after((function(e){return e(fe())})),(0,v.PN)("".concat(U," - usersync config updated for ").concat(M.length," submodules: "),M.map((function(e){return e.submodule.name}))),J=!0)}}function Ce(e,n){if(e){var t={},o=new Map(n.map((function(e){return e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[]})));Object.keys(e).forEach((function(n){var i=(0,v.kJ)(e[n])?(0,r.Z)(e[n]).reverse():[];t[n]=i.map((function(e){return o.has(e)?o.get(e):e}))})),B=t}else B={}}function Le(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];(0,v.PN)("UserID: received data deletion request; deleting all stored IDs..."),M.forEach((function(e){if("function"==typeof e.submodule.onDataDeletionRequest)try{var n;(n=e.submodule).onDataDeletionRequest.apply(n,[e.config,e.idObj].concat(t))}catch(n){(0,v.H)("Error calling onDataDeletionRequest for ID submodule ".concat(e.submodule.name),n)}K(e)})),e.apply(this,t)}function Ze(e){return function(){return Promise.resolve(e.apply(this,arguments))}}!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,r=void 0===t?P.Z.timeout:t;I=void 0,M=[],Q=[],J=!1,p=[],ue=se({delay:r}),null!=E&&E(),G=[],E=e.getConfig("userSync",(function(e){var n=e.userSync;n&&(I=n.ppid,n.userIds&&(Q=n.userIds,w=(0,v.hj)(n.syncDelay)?n.syncDelay:500,S=(0,v.hj)(n.auctionDelay)?n.auctionDelay:0,Te(),Ce(n.idPriority,M),ue({ready:!0})))})),(0,u.R)().getUserIds=de,(0,u.R)().getUserIdsAsEids=ge,(0,u.R)().getEncryptedEidsForSource=Ze(ve),(0,u.R)().registerSignalSources=he,(0,u.R)().refreshUserIds=Ze(ye),(0,u.R)().getUserIdsAsync=Ze(pe),(0,u.R)().getUserIdsAsEidBySource=me}(s.vc),(0,m.bA)("userId",(function(e){e.findRootDomain=T.W,(0,c.sE)(G,(function(n){return n.name===e.name}))||(G.push(e),l.qh.register(C.y2,e.name,e.gvlid),Te(),ue({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),(0,N.f8)({type:N.Z,name:"userExtEids",fn:function(e,n,t){var r=(0,b.Z)(t,"bidRequests.0.userIdAsEids");r&&Object.keys(r).length>0&&(0,j.N)(e,"user.ext.eids",r)}}),(0,u.z)("userId")}},function(e){e.O(0,[5823,9270],(function(){return n=2547,e(e.s=n);var n}));e.O()}]);
})(),pbjs.processQueue();