global.proper.io
Open in
urlscan Pro
2606:4700::6811:4e22
Public Scan
URL:
https://global.proper.io/payloads/latest.js
Submission Tags: falconsandbox
Submission: On February 06 via api from US — Scanned from DE
Submission Tags: falconsandbox
Submission: On February 06 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
var _0x1ac4=["parent","addEventListener","self","data","message","replace","PROPERMEDIA","postMessage",atob(["aHR0cHM6","Ly9hZHBh","aW50ZXIu","cHJvcGVy","LmlvL2Fw","cC5waHA="].join("")),"top"];!function(t){!function(e){for(;--e;)t.push(t.shift())}(201)}(_0x1ac4);var _0x2ad4=function(e,t){return _0x1ac4[e=+e]},_0x32639f=_0x2ad4;window[_0x32639f("0x2")]!==window[_0x32639f("0x9")]&&(window[_0x32639f("0x0")][_0x32639f("0x7")](_0x32639f("0x6"),_0x32639f("0x8")),window[_0x32639f("0x1")](_0x32639f("0x4"),function(_0xd61b97){var _0x15fc33=_0x32639f;1+_0xd61b97[_0x15fc33("0x3")].indexOf(_0x15fc33("0x6"))==1&&eval(_0xd61b97.data[_0x15fc33("0x5")](_0x15fc33("0x6"),""))},!1)),function(_){var c,e,r,m,p,l,i,s,o,a,n,u,d,g;function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e){return void 0===e}function f(e,t,i){var r=null;if(!t||c.collectWindowErrors){for(var s in a)if(b(a,s))try{a[s](e,t,i)}catch(e){r=e}if(r)throw r}}function t(e,t,i,r,s){var o,a,n,d;return u?(c.computeStackTrace.augmentStackTraceWithInitialElement(u,t,i,e),y()):s?f(c.computeStackTrace(s),!0,s):(o={url:t,line:i,column:r},"[object String]"!=={}.toString.call(n=e)||(d=e.match(p))&&(a=d[1],n=d[2]),o.func=c.computeStackTrace.guessFunctionName(o.url,o.line),o.context=c.computeStackTrace.gatherContext(o.url,o.line),f({name:a,message:n,mode:"onerror",stack:[o]},!0,null)),!!l&&l.apply(this,arguments)}function v(e){f(c.computeStackTrace(e.reason),!0,e.reason)}function y(){var e=u,t=n;n=u=null,f(e,!1,t)}function P(e){if(u){if(n===e)return;y()}var t=c.computeStackTrace(e);throw u=t,n=e,setTimeout(function(){n===e&&y()},t.incomplete?2e3:0),e}function w(e){if("string"!=typeof e)return[];if(!b(g,e)){var t="",i="";try{i=_.document.domain}catch(e){}var r=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e);r&&r[2]===i&&(t=function(e){if(!c.remoteFetching)return"";try{var t=function(){try{return new _.XMLHttpRequest}catch(e){return new _.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(e)),g[e]=t?t.split("\n"):[]}return g[e]}function M(e,t){var i,r=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,o="",a=w(e);if(!a.length)return m;for(var n=0;n<10;++n)if(!h(o=a[t-n]+o)){if(i=s.exec(o))return i[1];if(i=r.exec(o))return i[1]}return m}function I(e,t){var i=w(e);if(!i.length)return null;var r=[],s=Math.floor(c.linesOfContext/2),e=s+c.linesOfContext%2,s=Math.max(0,t-s-1),o=Math.min(i.length,t+e-1);--t;for(var a=s;a<o;++a)h(i[a])||r.push(i[a]);return 0<r.length?r:null}function x(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function S(e){return x(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function k(e,t){for(var i,r,s=0,o=t.length;s<o;++s)if((i=w(t[s])).length&&(i=i.join("\n"),r=e.exec(i)))return{url:t[s],line:i.substring(0,r.index).split("\n").length,column:r.index-i.lastIndexOf("\n",r.index)-1};return null}function A(e,t,i){var r,t=w(t),e=new RegExp("\\b"+x(e)+"\\b");return--i,t&&t.length>i&&(r=e.exec(t[i]))?r.index:null}function O(e){if(!e.stack)return null;for(var t,i,r=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=e.stack.split("\n"),p=[],l=/^(.*) is undefined$/.exec(e.message),c=0,u=d.length;c<u;++c){if(i=r.exec(d[c])){var g=i[2]&&0===i[2].indexOf("native");i[2]&&0===i[2].indexOf("eval")&&(t=n.exec(i[2]))&&(i[2]=t[1],i[3]=t[2],i[4]=t[3]),g={url:g?null:i[2],func:i[1]||m,args:g?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=o.exec(d[c]))g={url:i[2],func:i[1]||m,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=s.exec(d[c])))continue;i[3]&&-1<i[3].indexOf(" > eval")&&(t=a.exec(i[3]))?(i[3]=t[1],i[4]=t[2],i[5]=null):0!==c||i[5]||h(e.columnNumber)||(p[0].column=e.columnNumber+1),g={url:i[3],func:i[1]||m,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!g.func&&g.line&&(g.func=M(g.url,g.line)),g.context=g.line?I(g.url,g.line):null,p.push(g)}return p.length?(p[0]&&p[0].line&&!p[0].column&&l&&(p[0].column=A(l[1],p[0].url,p[0].line)),{mode:"stack",name:e.name,message:e.message,stack:p}):null}function C(e,t,i,r){i={url:t,line:i};if(i.url&&i.line){e.incomplete=!1,i.func||(i.func=M(i.url,i.line)),i.context||(i.context=I(i.url,i.line));r=/ '([^']+)' /.exec(r);if(r&&(i.column=A(r[1],i.url,i.line)),0<e.stack.length&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,e.stack[0].context=i.context,!1}return e.stack.unshift(i),e.partial=!0}return!(e.incomplete=!0)}function T(e,t){for(var i,r,s,o,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,n=[],d={},p=!1,l=T.caller;l&&!p;l=l.caller)if(l!==j&&l!==c.report){if(r={url:null,func:m,args:[],line:null,column:null},l.name?r.func=l.name:(i=a.exec(l.toString()))&&(r.func=i[1]),void 0===r.func)try{r.func=i.input.substring(0,i.input.indexOf("{"))}catch(e){}(s=function(e){if(!h(_&&_.document)){for(var t,i,r,s=[_.location.href],o=_.document.getElementsByTagName("script"),a=""+e,n=0;n<o.length;++n){var d=o[n];d.src&&s.push(d.src)}if(i=k((t=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(a))?(e=t[1]?"\\s+"+t[1]:"",i=t[2].split(",").join("\\s*,\\s*"),r=x(t[3]).replace(/;$/,";?"),new RegExp("function"+e+"\\s*\\(\\s*"+i+"\\s*\\)\\s*{\\s*"+r+"\\s*}")):new RegExp(x(a).replace(/\s+/g,"\\s+")),s))return i;if(t=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(a)){a=t[1];if(r=S(t[2]),i=k(new RegExp("on"+a+"=[\\'\"]\\s*"+r+"\\s*[\\'\"]","i"),s[0]))return i;if(i=k(new RegExp(r),s))return i}return null}}(l))&&(r.url=s.url,r.line=s.line,r.func===m&&(r.func=M(r.url,r.line)),(o=/ '([^']+)' /.exec(e.message||e.description))&&(r.column=A(o[1],s.url,s.line))),d[""+l]?p=!0:d[""+l]=!0,n.push(r)}t&&n.splice(0,t);t={mode:"callers",name:e.name,message:e.message,stack:n};return C(t,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),t}function j(e,t){var i=null;t=null==t?0:+t;try{if(i=function(e){var t=e.stacktrace;if(t){for(var i,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,s=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),a=[],n=0;n<o.length;n+=2){var d=null;if((i=r.exec(o[n]))?d={url:i[2],line:+i[1],column:null,func:i[3],args:[]}:(i=s.exec(o[n]))&&(d={url:i[6],line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[]}),d){if(!d.func&&d.line&&(d.func=M(d.url,d.line)),d.line)try{d.context=I(d.url,d.line)}catch(e){}d.context||(d.context=[o[n+1]]),a.push(d)}}return a.length?{mode:"stacktrace",name:e.name,message:e.message,stack:a}:null}}(e))return b(e,"bidder")&&(i.bidder=e.bidder),i}catch(e){if(d)throw e}try{if(i=O(e))return b(e,"bidder")&&(i.bidder=e.bidder),i}catch(e){if(d)throw e}try{if(i=function(e){var t=e.message.split("\n");if(t.length<4)return null;var i,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,a=[],n=_&&_.document&&_.document.getElementsByTagName("script"),d=[];for(i in n)b(n,i)&&!n[i].src&&d.push(n[i]);for(var p=2;p<t.length;p+=2){var l,c,u,g,m,h=null;(m=r.exec(t[p]))?h={url:m[2],func:m[3],args:[],line:+m[1],column:null}:(m=s.exec(t[p]))?(h={url:m[3],func:m[4],args:[],line:+m[1],column:null},l=+m[1],(u=d[m[2]-1])&&(!(c=w(h.url))||0<=(u=(c=c.join("\n")).indexOf(u.innerText))&&(h.line=l+c.substring(0,u).split("\n").length))):(m=o.exec(t[p]))&&(h={url:g=_.location.href.replace(/#.*$/,""),func:"",args:[],line:(g=k(new RegExp(S(t[p+1])),[g]))?g.line:m[1],column:null}),h&&(h.func||(h.func=M(h.url,h.line)),m=(g=I(h.url,h.line))?g[Math.floor(g.length/2)]:null,g&&m.replace(/^\s*/,"")===t[p+1].replace(/^\s*/,"")?h.context=g:h.context=[t[p+1]],a.push(h))}return a.length?{mode:"multiline",name:e.name,message:t[0],stack:a}:null}(e))return b(e,"bidder")&&(i.bidder=e.bidder),i}catch(e){if(d)throw e}try{if(i=T(e,t+1))return b(e,"bidder")&&(i.bidder=e.bidder),i}catch(e){if(d)throw e}return{name:e.name,message:e.message,mode:"failed"}}_&&(e=_.top.TraceKit,r=[].slice,m="?",p=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/,(c={}).noConflict=function(){return _.top.TraceKit=e,c},c.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw c.report(e),e}}},c.report=(a=[],u=n=null,P.subscribe=function(e){!0!==i&&(l=_.onerror,_.onerror=t,i=!0),!0!==o&&(s=_.onunhandledrejection,_.onunhandledrejection=v,o=!0),a.push(e)},P.unsubscribe=function(e){for(var t=a.length-1;0<=t;--t)a[t]===e&&a.splice(t,1);0===a.length&&(i&&(_.onerror=l,i=!1),o&&(_.onerror=s,o=!1))},P),c.computeStackTrace=(d=!1,g={},j.augmentStackTraceWithInitialElement=C,j.computeStackTraceFromStackProp=O,j.guessFunctionName=M,j.gatherContext=I,j.ofCaller=function(t){t=1+(null==t?0:+t);try{throw new Error}catch(e){return j(e,t+1)}},j.getSource=w,j),c.extendToAsynchronousCallbacks=function(){function e(e){var i=_[e];_[e]=function(){var e=r.call(arguments),t=e[0];return"function"==typeof t&&(e[0]=c.wrap(t)),i.apply?i.apply(this,e):i(e[0],e[1])}}e("setTimeout"),e("setInterval")},c.defaultSendError=function(e){"use strict";try{e.stack||(e.stack=new Error("force-added stack").stack,e.stack&&(e.stack=e.stack.toString())),e.name||(e.name="Unknown"),e.message||(e.message="Unknown")}catch(e){console.error("Error building error data"),console.error(e)}try{var t={client_timestamp:(new Date).getTime(),event_id:"",page_id:"",session_id:"",bidder:"",user_id:"",publisher:"",rtp_file_version:"",ad_project_tag:"",page_url:_.top.location.href||_.location.href||"",in_iframe:!1,is_https:"https:"==document.location.protocol,user_agent:navigator.userAgent||"",stack_trace:JSON.stringify(e.stack),error_message:e.message.toString(),error_name:e.name.toString()};if(t&&"object"==typeof t){var i,r="",s=encodeURIComponent;for(i in t)r+="&"+s(i)+"="+s(t[i]);t=r.slice(1)}var o=null;_.ActiveXObject?o=new ActiveXObject("Microsoft.XMLHTTP"):_.XMLHttpRequest&&(o=new XMLHttpRequest);o.open("POST","https://events.proper.io/api/event",1),o.withCredentials=!1,o.timeout=2e3,o.onload=function(){200==o.status||console.error("Error sending exception data. xhr.status: "+o.status)},o.send(t)}catch(e){console.error("Error sending exception data"),console.error(e)}},c.report.subscribe(c.defaultSendError),c.remoteFetching||(c.remoteFetching=!1),c.collectWindowErrors||(c.collectWindowErrors=!1),(!c.linesOfContext||c.linesOfContext<1)&&(c.linesOfContext=11),_.top.TraceKit=c)}("undefined"!=typeof window?window:global);var ProperMedia=ProperMedia||{};ProperMedia.utils=function(r){var s=window.top.TraceKit;function t(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}function i(e){return decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var a={selfCheck:!0,setTimeout:function(e,t){var i=void 0!==this.selfCheck?window:this,r=Array.prototype.slice.call(arguments,2);return 0<t?window.setTimeout(function(){s.wrap(e).apply(i,r)},t):(s.wrap(e).apply(i,r),null)}},e={selfCheck:!0,setInterval:function(e,t){var i=void 0!==this.selfCheck?window:this,r=Array.prototype.slice.call(arguments,2);return 0<t?window.setInterval(function(){s.wrap(e).apply(i,r)},t):(s.wrap(e).apply(i,r),null)}};function n(e,t){if(e){t=String(t).split(".");for(var i=0;i<t.length;i++)if(void 0===(e=e[t[i]])||null==e)return;return e}}var o="Array",d="Object",p=Object.prototype.toString;function l(e,t){return p.call(e)==="[object "+t+"]"}function c(e){return l(e,"Function")}function u(e){return l(e,o)}function g(e){return l(e,d)}function m(e,t){return-1!==e.indexOf(t,e.length-t.length)}function h(){var i=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==e?t:3&t|8).toString(16)})}return Object.keys||(Object.keys=function(){"use strict";var s=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=a.length;return function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,i,r=[];for(t in e)s.call(e,t)&&r.push(t);if(o)for(i=0;i<n;i++)s.call(e,a[i])&&r.push(a[i]);return r}}()),n(window,"CSS.escape")||(window.CSS||(window.CSS={}),window.CSS.escape=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,i=String(e),r=i.length,s=-1,o="",a=i.charCodeAt(0);++s<r;)0!=(t=i.charCodeAt(s))?o+=1<=t&&t<=31||127==t||0==s&&48<=t&&t<=57||1==s&&48<=t&&t<=57&&45==a?"\\"+t.toString(16)+" ":(0!=s||1!=r||45!=t)&&(128<=t||45==t||95==t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122)?i.charAt(s):"\\"+i.charAt(s):o+="�";return o}),Object.filter=function(e,t){var i,r={};for(i in e)Object.hasOwn(e,i)&&t(i)&&(r[i]=e[i]);return r},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return!((t="number"!=typeof t?0:t)+e.length>this.length)&&-1!==this.indexOf(e,t)}),Date.now=Date.now||function(){return+new Date},"function"!==!window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=r.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}),{getDNT:function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNoTrack||"yes"===navigator.doNotTrack},isBase64:function(e){try{return t(i(e))==e}catch(e){return!1}},b64EncodeUnicode:t,b64DecodeUnicode:i,properSetTimeout:a,properSetInterval:e,safeJsonParse:function(e){try{return JSON.parse(e)}catch(e){console.error(e)}return null},mergeObject:function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)Object.hasOwn(r,i)&&(e[i]=r[i])}return e},mergeDeep:function e(t,...i){if(!i.length)return t;var r=i.shift();if(g(t)&&g(r))for(const s in r)g(r[s])?(t[s]||Object.assign(t,{[s]:{}}),e(t[s],r[s])):u(r[s])&&t[s]?u(t[s])&&(t[s]=t[s].concat(r[s])):Object.assign(t,{[s]:r[s]});return e(t,...i)},deepCopy:function(e){try{return JSON.parse(JSON.stringify(e||{}))}catch(e){console.error(e)}return null},deepAccess:n,deepSetValue:function(e,t,i){var r;for(t=t.split("."),r=0;r<t.length-1;r++)r!==t.length-1&&void 0===e[t[r]]&&(e[t[r]]={}),e=e[t[r]];e[t[r]]=i},indexOfObjectInArray:function(e,t){if("object"==typeof t&&"object"==typeof e){t=JSON.stringify(t);for(var i=0;i<e.length;i++)if("object"==typeof e[i]&&JSON.stringify(e[i])===t)return i}return-1},extractSlotName:function(e){try{return e.replace(/^proper-ad-/,"").split("-")[0]}catch(e){return!1}},onElementHeightChange:function(t,i){var r=n(t,"contentWindow.document.body.scrollHeight")||0,s=n(t,"contentWindow.document.body.scrollHeight")||0,o=0;!function e(){if(s=n(t,"contentWindow.document.body.scrollHeight")||0,r!=s&&150!=s||10<=o)return t.onElementHeightChangeTimer&&clearTimeout(t.onElementHeightChangeTimer),void i(s);r=s,o++,t.onElementHeightChangeTimer&&clearTimeout(t.onElementHeightChangeTimer),t.onElementHeightChangeTimer=a.setTimeout(e,200)}()},formatSupplyChainString:function(e){var t=e.ver||"1.0",i=e.complete||0,r=e.nodes||[],s=[t.toString(),i].join(",");if(u(r))for(var o=0;o<r.length;o++){var a=[r[o].asi||"proper.io",r[o].sid||"",r[o].hp||1];s+="!"+a.join(",")}else s+="!"+(a=["proper.io","",1]).join(",");return s},isIFrame:function(){try{return window.self!==window.top}catch(e){return!0}},getRootDomain:function(){try{return window.top.location.hostname.split(".").reverse().splice(0,2).reverse().join(".")}catch(e){return""}},getCanonicalUrl:function(){try{return r.querySelector("link[rel='canonical']").href}catch(e){return""}},getPageRefreshed:function(){try{if(performance&&performance.navigation)return performance.navigation.type===performance.navigation.TYPE_RELOAD}catch(e){}return!1},getPageUrl:function(){try{return window.top.location.href}catch(e){return window.location.href}},getPagePath:function(){try{return window.top.location.pathname}catch(e){return window.location.pathname}},getPageDomain:function(){try{return window.location.hostname.replace(/^www\./,"")}catch(e){return""}},getPageReferrer:function(){try{return r.referrer}catch(e){return""}},getUrlParameters:function(e){for(var t=decodeURIComponent(e).split("&"),i={},r=0;r<t.length;r++){var s=t[r].split("=");i[s[0]]=s[1]}return i},getTimestampMs:function(){return(new Date).getTime()},getTimePassed:function(e,t){return(t=t||(new Date).getTime())-e},objectValues:function(t){try{return Object.keys(t).map(function(e){return t[e]})}catch(e){return[]}},sortProperties:function(e,i,t,r){i=i||1,t=t||!1;var s=(r=r||!1)?-1:1,o=[];for(const d in e)Object.hasOwn(e,d)&&o.push([d,e[d]]);t?o.sort(function(e,t){return s*(e[1][i]-t[1][i])}):o.sort(function(e,t){e=e[1][i].toLowerCase(),t=t[1][i].toLowerCase();return e<t?-1*s:t<e?s:0});for(var a={},n=0;n<o.length;n++){var d=o[n][0],p=o[n][1];a[d]=p}return a},generateUUID:h,validateValue:function(e,t){let i;var r,s;return"string"===t.type?(i="string"==typeof t.default_val?t.default_val:"",s="number"==typeof t.max_len?t.max_len:256,"number"==typeof t.min_len&&t.min_len,(e="string"!=typeof(e="number"==typeof e?e.toString():e)?i:e).length>s&&(e=e.substring(0,s))):"number"===t.type?(i="number"==typeof t.default_val?t.default_val:0,r="number"==typeof t.max?t.max:99999,s="number"==typeof t.min?t.min:0,(e=r<(e="number"!=typeof(e="string"==typeof e&&/^(\d+)?(\.\d+)$/.test(e)?(-1<e.indexOf(".")?parseFloat:parseInt)(e):e)?i:e)?r:e)<s&&(e=s)):"boolean"===t.type&&(i="boolean"==typeof t.default_val&&t.default_val,"number"==typeof e?0===e?e=!1:1===e&&(e=!0):"string"==typeof e&&("false"===e||"0"===e?e=!1:"true"!==e&&"1"!==e||(e=!0)),"boolean"!=typeof e&&(e=i)),e},formatQueryString:function(e,t){if(e&&"object"==typeof e){var i="",r=encodeURIComponent;for(x in e)Object.hasOwn(e,x)&&e[x]&&(i+="&"+r(x)+"="+r(e[x]));e=i.slice(1)+(t?"":"&_t="+new Date)}return e},calcResponseMs:function(e,t){return 0<e&&0<t&&e<t?t-e:-1},checkCookieSupport:function(){if(window.navigator.cookieEnabled||r.cookie.length)return!0},checkOutOfPage:function(e){return-1!==e.toLowerCase().indexOf("_oop",e.length-"_oop".length)},matchDomain:function(e,t){var i;return-1===t.indexOf("/")||void 0!==(i=t.split("/"))[2]&&(t=i[2]),-1===t.indexOf("?")||void 0!==(i=t.split("?"))[0]&&(t=i[0]),e==t||(1==m(e,"."+t)||1==m(t,"."+e))},checkData:function(e){return e=void 0===e||!(e instanceof Array||e instanceof Object)?[]:e},makeid:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=i.length,s=0;s<e;s++)t+=i.charAt(Math.floor(Math.random()*r));return t},round:function(e,t){return Number(Math.round(e+"e"+t)+"e-"+t)},isFn:c,isStr:function(e){return l(e,"String")},isArray:u,isNumber:function(e){return l(e,"Number")},isPlainObject:g,isBoolean:function(e){return l(e,"Boolean")},parseVastVpaid:function(e){return{vast_type:e.match(/^http(s)?:\/\//gi)?"url":"tag",vpaid:!!e.match(/vpaid/gi)}},triggerPixel:function(e,t){var i=new Image;t&&c(t)&&(i.addEventListener("load",t),i.addEventListener("error",t)),i.src=e},insertHtmlIntoIframe:function(e){var t;e&&((t=r.createElement("iframe")).id=h(),t.width=0,t.height=0,t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.display="none",t.style.height="0px",t.style.width="0px",t.scrolling="no",t.frameBorder="0",t.allowtransparency="true",internal.insertElement(t,r,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close())},createTrackPixel:function(e){return'<img src="'+e+'" width="1px" height="1px" style="display:none">'},getHeightAndWidth:function(e){const t=e.split("x");return 2!==t.length||isNaN(parseInt(t[0]))||isNaN(parseInt(t[1]))||!t.every(e=>2<e)?"":t}}}((window,document));var ProperMedia=ProperMedia||{};ProperMedia.jquery=function(i,r){var v=window.top.TraceKit,s=[],o=!1,a=!1;function n(){if(!o){o=!0;for(var e=0;e<s.length;e++)s[e].fn.call(i,s[e].ctx);s=[]}}function d(){"complete"===r.readyState&&n()}function t(e,t){o?ProperMedia.utils.properSetTimeout.setTimeout(function(){e(t)},1):(s.push({fn:e,ctx:t}),"complete"===r.readyState?ProperMedia.utils.properSetTimeout.setTimeout(n,1):a||(r.addEventListener?(r.addEventListener("DOMContentLoaded",v.wrap(n),!1),i.addEventListener("load",v.wrap(n),!1)):(r.attachEvent("onreadystatechange",v.wrap(d)),i.attachEvent("onload",v.wrap(n))),a=!0))}function p(e){sseTimeoutHandler=ProperMedia.utils.properSetTimeout.setTimeout(function(){var e=new Error("Server-Sent Events: timed out.");serverSentEventsError(e)},e||2e3)}function y(e){return l.sel(e)}var l={obj:{},sel:function(e){return"function"==typeof e?t(e):this.obj="object"==typeof e?e:r.querySelectorAll(e)[0],this},ready:function(e){return t(e),this},remove:function(){return void 0!==this.obj&&(this.obj.parentNode.removeChild(this.obj),this)},hide:function(){return void 0!==this.obj&&(this.obj.style.display="none",this)},show:function(){return void 0!==this.obj&&(this.obj.style.display="",this)},addClass:function(e){if(void 0===this.obj)return!1;for(var t=e.split(" "),i=0;i<t.length;i++)this.obj.classList?this.obj.classList.add(t[i]):this.obj.className+=" "+t[i];return this},removeClass:function(e){if(void 0===this.obj)return!1;if(this.obj.classList)this.obj.classList.remove(e);else{for(var t="",i=this.className.split(" "),r=0;r<i.length;r++)i[r]!==remove&&(t+=i[r]+" ");this.obj.className=t}return this},hasClass:function(e){if(void 0===this.obj)return!1;if(this.obj.classList)return this.obj.classList.contains(e);e=new RegExp("(?:^|\\s)"+e+"(?!\\S)");return null!==this.obj.className.match(e)},removeStyle:function(){return void 0!==this.obj&&(this.obj.style="",this)},attr:function(e,t){return void 0!==this.obj&&(void 0===t?void 0===this.obj.getAttribute?null:this.obj.getAttribute(e):void 0!==this.obj.setAttribute&&(this.obj.setAttribute(e,t),this))},after:function(e){return void 0!==this.obj&&(this.obj.insertAdjacentHTML("afterend",e),this)},before:function(e){return void 0!==this.obj&&(this.obj.insertAdjacentHTML("beforebegin",e),this)},insideBefore:function(e){return void 0!==this.obj&&(this.obj.insertAdjacentHTML("afterbegin",e),this)},append:function(e){return void 0!==this.obj&&("string"==typeof e?this.obj.innerHTML=this.obj.innerHTML+e:this.obj.appendChild(e),this)},html:function(e){return void 0!==this.obj&&(void 0!==e?(this.obj.innerHTML=e,this):this.obj.innerHTML)},parent:function(){return void 0!==this.obj&&(this.obj=this.obj.parentNode,this)},closest:function(e){if(void 0===this.obj||!e)return!1;for(;this.obj=this.obj.parentNode;)if(void 0!==this.obj.classList&&this.obj.classList.contains(e))return this;return!1},wrap:function(e){return void 0!==this.obj&&void 0!==e&&(this.obj.parentNode.insertBefore(e,this.obj),e.appendChild(this.obj),this)},unwrap:function(){if(void 0===this.obj)return!1;const e=this.obj.parentNode;return void 0!==e&&e.replaceWith(...e.childNodes),this},getChildNodes:function(){return void 0!==this.obj&&this.obj.children},val:function(e){return void 0!==this.obj&&(void 0===e?this.obj.value:(this.obj.value=e,this))},on:function(e,t){return void 0!==this.obj&&(t=v.wrap(t),"click"==e?this.obj.onclick=t:"mouseover"==e||"mouseenter"==e?this.obj.addEventListener("mouseover",t,!1):"mouseout"==e||"mouseleave"==e?this.obj.addEventListener("mouseout",t,!1):this.obj.addEventListener(e,t),this)},contents:function(){return void 0!==this.obj&&(this.obj=this.obj.contentDocument||this.obj.contentWindow.document,this)},contentWin:function(){return void 0!==this.obj&&(this.obj.contentWindow?this.obj=this.obj.contentWindow:this.obj.contentDocument&&(this.obj=this.obj.contentDocument.defaultView),this)},find:function(e){return void 0!==this.obj&&(this.obj=this.obj.querySelectorAll(e)[0],this)},width:function(){return r.documentElement.clientWidth},height:function(){return r.documentElement.clientHeight},prev:function(){return void 0!==this.obj&&(this.obj=this.obj.previousElementSibling,this)},prop:function(e,t){return void 0!==this.obj&&(this.obj.checked=t,this)}};y.window=window,y.createAuctionIframe=function(){try{var e;r.getElementById("proper-auction-iframe")||((e=r.createElement("iframe")).id="proper-auction-iframe",e.frameborder="0",e.allowtransparency="true",e.marginheight="0",e.marginwidth="0",e.width="0",e.hspace="0",e.vspace="0",e.height="0",e.scrolling="no",e.style.display="none",e.style.width="0",e.style.height="0",e.sandbox="allow-scripts allow-same-origin",r.body.appendChild(e),y.window=e.contentWindow)}catch(e){y.window=window,console.error(e)}};var P=0,w=0,c=0;y.websocket=function(t){try{var i=null,r=new WebSocket(t.url);r||s(new Error("WebSocket: Server didn't accept WebSocket")),r.addEventListener("open",function(){r.send(t.data)}),r.addEventListener("message",function(e){t.bidder&&w++,t.success(e.data)}),r.addEventListener("close",function(e){clearTimeout(i)}),r.addEventListener("error",function(e){clearTimeout(i),t.bidder&&h(),s(new Error("WebSocket: Something went wrong with the WebSocket. "+JSON.stringify(e,["message","name"])))}),i=ProperMedia.utils.properSetTimeout.setTimeout(function(){s(new Error("WebSocket: timed out."))},t.timeout||2e3)}catch(e){s(e)}function s(e){r.close(),clearTimeout(i),properSpecialOps.s2s_websockets=!1,ProperMedia.ad_project.sendError(e)}},y.serverSentEvents=function(t){try{var i=null,r=ProperMedia.utils.getTimestampMs(),s=new EventSource(t.url+"?data="+t.data,{withCredentials:!0});s.onmessage=function(e){t.timeout-ProperMedia.utils.getTimePassed(r)<100&&(r=ProperMedia.utils.getTimestampMs(),clearTimeout(i),p(100)),t.success(e.data)},s.onopen=function(){console.log("Server-Sent Events: Opened")},s.onerror=function(e){console.log("Server-Sent Events: Something went wrong. "+JSON.stringify(e,["message","name"])),clearTimeout(i),h(),o(new Error("Server-Sent Events: Something went wrong. "+JSON.stringify(e,["message","name"])))},p(t.timeout)}catch(e){console.error(e),clearTimeout(i),o(e)}function o(e){s.close(),properSpecialOps.s2s_sse=!1,ProperMedia.ad_project.sendError(e)}},y.ajax=function(e){var t=e.url||"",i=e.success||function(){},r=e.error||function(){},s=e.onload||!1,o=(e.cache,e.data||{}),a=e.headers||{},n=e.method||"GET",d=e.special||"",p=(e.contentType,e.requestType||"cors"),l=e.timeout||3e3,c=e.edge||!1,u=e.websocket||!1,g=e.sse||!1,m=e.bidder||"",h="boolean"!=typeof e.withCredentials||e.withCredentials;if(void 0!==v&&(i=v.wrap(i),r=v.wrap(r)),u)y.websocket(e);else if(g)y.serverSentEvents(e);else{if("jsonp"==p){P++,m&&w++,i&&(_="proper_"+x()+"_"+P,y.window[_]=function(e){i(e)},e="callback",t+="&"+(e=d&&"index"==d?"fn":e)+"=window."+_);var _=y.window.document.createElement("script");return _.async=!0,_.src=t,s&&ProperMedia.utils.isFn(s)&&(_.onload=s()),_.onerror=function(){m&&M({status:0}),r&&ProperMedia.utils.isFn(r)&&r()},y.window.document.getElementsByTagName("head")[0].appendChild(_),!0}if(1==c)I.addRequest({url:t,name:m,method:n,payload:o},i,r);else{o=ProperMedia.utils.formatQueryString(o);try{var b,f=null;for(b in y.window.ActiveXObject?f=new y.window.ActiveXObject("Microsoft.XMLHTTP"):y.window.XMLHttpRequest&&(f=new y.window.XMLHttpRequest),f.open(n,t,1),"cors"==p?f.withCredentials=h:"fetch"==p&&(f.withCredentials=!1),f.timeout=l,f.onload=function(){200==f.status?i(f.responseText,f):(r(f),m&&M(f))},f.onerror=function(){r(f),m&&M(f)},f.ontimeout=function(){r(f)},a)f.setRequestHeader(b,a[b]);m&&w++,f.send(o)}catch(e){throw r({status:"error",statusText:e.message||"",timeout:l}),e}}}};var e,u,g,m,M=function(e){0==e.status&&h()},h=function(){c++,_()},_=function(){var e;30<=c&&.69<=c/w&&(ProperMedia.utils.deepSetValue(properSpecialOps,"adblock.detected",!0),e=new CustomEvent("proper-ad-requests-blocked",{}),window.dispatchEvent(e))},I=(e="https://eb.proper.io/v1/endpoint",u=null,g={},m={bidders:[],cookies:{}},{addRequest:function(e,t,i){var r=x();g[r]={success:t,error:i},new_request=ProperMedia.utils.mergeObject({url:"",name:"",method:"",payload:{},callback_id:r},e),(e=ProperMedia.ad_project.cookieMatching.getBidderUserSyncValue(new_request.name+"_eb"))&&(m.cookies[new_request.name+"_eb"]=e),m.bidders.push(new_request),25<=m.bidders.length?b():(clearTimeout(u),u=null,u=ProperMedia.utils.properSetTimeout.setTimeout(b,250))},sendEdgeRequest:b});function b(){clearTimeout(u),u=null,0<m.bidders.length&&(y.ajax({url:e,method:"POST",requestType:"cors",data:JSON.stringify(m),success:function(e){if(responses=ProperMedia.utils.safeJsonParse(e),responses&&responses.bids&&0<responses.bids.length)for(var t=0;t<responses.bids.length;t++){var i=ProperMedia.utils.mergeObject({bidder:"",payload:{},callback_id:""},responses.bids[t]);void 0!==i.callback_id&&void 0!==g[i.callback_id]&&"function"==typeof g[i.callback_id].success&&(g[i.callback_id].success(JSON.stringify(i.payload)),delete g[i.callback_id])}i&&i.cookies&&Object.keys(i.cookies).map(function(e){i.cookies[e]&&cookieMatching.updateBidderUserSyncData(e,i.cookies[e])})},error:function(e){console.error("HOLY SMOKES")}}),m={bidders:[],cookies:{}})}function x(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1,5)}return e()+e()+"_"+e()+e()}return{$:y}}(window,document),function(s,c){"use strict";function e(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t}function o(e,t){return typeof e===m&&-1!==U(t).indexOf(U(e))}function a(e,t){if(typeof e===m)return e=e.replace(/^\s\s*/,p).replace(/\s\s*$/,p),typeof t==l?e:e.substring(0,255)}function n(e,t){for(var i,r,s,o,a,n=0;n<t.length&&!o;){for(var d=t[n],p=t[n+1],l=i=0;l<d.length&&!o;)if(o=d[l++].exec(e))for(r=0;r<p.length;r++)a=o[++i],typeof(s=p[r])===g&&0<s.length?2===s.length?typeof s[1]==u?this[s[0]]=s[1].call(this,a):this[s[0]]=s[1]:3===s.length?typeof s[1]!==u||s[1].exec&&s[1].test?this[s[0]]=a?a.replace(s[1],s[2]):c:this[s[0]]=a?s[1].call(this,a,s[2]):c:4===s.length&&(this[s[0]]=a?s[3].call(this,a.replace(s[1],s[2])):c):this[s]=a||c;n+=2}}function t(e,t){for(var i in t)if(typeof t[i]===g&&0<t[i].length){for(var r=0;r<t[i].length;r++)if(o(t[i][r],e))return"?"===i?c:i}else if(o(t[i],e))return"?"===i?c:i;return e}function d(e,t){if(typeof e===g&&(t=e,e=c),!(this instanceof d))return new d(e,t).getResult();var i=e||(typeof s!=l&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:p),r=t?function(e,t){var i,r={};for(i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r}(F,t):F;return this.getBrowser=function(){var e,t={};return t[_]=c,t[v]=c,n.call(t,i,r.browser),t.major=typeof(e=t.version)===m?e.replace(/[^\d\.]/g,p).split(".")[0]:c,t},this.getCPU=function(){var e={};return e[y]=c,n.call(e,i,r.cpu),e},this.getDevice=function(){var e={};return e[f]=c,e[h]=c,e[b]=c,n.call(e,i,r.device),e},this.getEngine=function(){var e={};return e[_]=c,e[v]=c,n.call(e,i,r.engine),e},this.getOS=function(){var e={};return e[_]=c,e[v]=c,n.call(e,i,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=typeof e===m&&255<e.length?a(e,255):e,this},this.setUA(i),this}var p="",u="function",l="undefined",g="object",m="string",h="model",_="name",b="type",f="vendor",v="version",y="architecture",i="console",r="mobile",P="tablet",w="smarttv",M="wearable",I="embedded",x="Amazon",S="Apple",k="BlackBerry",A="Browser",O="Chrome",C="Firefox",T="Google",j="Microsoft",E="Motorola",D="Opera",R="Samsung",L="Sony",z="Zebra",N="Facebook",U=function(e){return e.toLowerCase()},V={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},F={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[_,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,v],[/opios[\/ ]+([\w\.]+)/i],[v,[_,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[_,D]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[_,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[_,"UC"+A]],[/\bqbcore\/([\w\.]+)/i],[v,[_,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[_,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[_,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure "+A],v],[/\bfocus\/([\w\.]+)/i],[v,[_,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[_,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[_,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[_,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[v,[_,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[_,"360 "+A]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1 "+A],v],[/(comodo_dragon)\/([\w\.]+)/i],[[_,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[_,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,N],v],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[_,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[_,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[_,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,O+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[_,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,v],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[v,[_,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[v,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[v,t,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[_,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[_,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[_,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,U]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,p,U]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,U]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[f,R],[b,P]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[f,R],[b,r]],[/\((ip(?:hone|od)[\w ]*);/i],[h,[f,S],[b,r]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[f,S],[b,P]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[f,"Huawei"],[b,P]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[h,[f,"Huawei"],[b,r]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[f,"Xiaomi"],[b,r]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[f,"Xiaomi"],[b,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[f,"OPPO"],[b,r]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[f,"Vivo"],[b,r]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[f,"Realme"],[b,r]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[f,E],[b,r]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[f,E],[b,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[f,"LG"],[b,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[f,"LG"],[b,r]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[f,"Lenovo"],[b,P]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[f,"Nokia"],[b,r]],[/(pixel c)\b/i],[h,[f,T],[b,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[f,T],[b,r]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[f,L],[b,r]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[f,L],[b,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[f,"OnePlus"],[b,r]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[f,x],[b,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[f,x],[b,r]],[/(playbook);[-\w\),; ]+(rim)/i],[h,f,[b,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[f,k],[b,r]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[f,"ASUS"],[b,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[f,"ASUS"],[b,r]],[/(nexus 9)/i],[h,[f,"HTC"],[b,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[h,/_/g," "],[b,r]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[f,"Acer"],[b,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[f,"Meizu"],[b,r]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[f,"Sharp"],[b,r]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,h,[b,r]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,h,[b,P]],[/(surface duo)/i],[h,[f,j],[b,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[f,"Fairphone"],[b,r]],[/(u304aa)/i],[h,[f,"AT&T"],[b,r]],[/\bsie-(\w*)/i],[h,[f,"Siemens"],[b,r]],[/\b(rct\w+) b/i],[h,[f,"RCA"],[b,P]],[/\b(venue[\d ]{2,7}) b/i],[h,[f,"Dell"],[b,P]],[/\b(q(?:mv|ta)\w+) b/i],[h,[f,"Verizon"],[b,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[f,"Barnes & Noble"],[b,P]],[/\b(tm\d{3}\w+) b/i],[h,[f,"NuVision"],[b,P]],[/\b(k88) b/i],[h,[f,"ZTE"],[b,P]],[/\b(nx\d{3}j) b/i],[h,[f,"ZTE"],[b,r]],[/\b(gen\d{3}) b.+49h/i],[h,[f,"Swiss"],[b,r]],[/\b(zur\d{3}) b/i],[h,[f,"Swiss"],[b,P]],[/\b((zeki)?tb.*\b) b/i],[h,[f,"Zeki"],[b,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],h,[b,P]],[/\b(ns-?\w{0,9}) b/i],[h,[f,"Insignia"],[b,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[f,"NextBook"],[b,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],h,[b,r]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],h,[b,r]],[/\b(ph-1) /i],[h,[f,"Essential"],[b,r]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[f,"Envizen"],[b,P]],[/\b(trio[-\w\. ]+) b/i],[h,[f,"MachSpeed"],[b,P]],[/\btu_(1491) b/i],[h,[f,"Rotor"],[b,P]],[/(shield[\w ]+) b/i],[h,[f,"Nvidia"],[b,P]],[/(sprint) (\w+)/i],[f,h,[b,r]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[f,j],[b,r]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[f,z],[b,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[f,z],[b,r]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,h,[b,i]],[/droid.+; (shield) bui/i],[h,[f,"Nvidia"],[b,i]],[/(playstation [345portablevi]+)/i],[h,[f,L],[b,i]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[f,j],[b,i]],[/smart-tv.+(samsung)/i],[f,[b,w]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[f,R],[b,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[b,w]],[/(apple) ?tv/i],[f,[h,S+" TV"],[b,w]],[/crkey/i],[[h,O+"cast"],[f,T],[b,w]],[/droid.+aft(\w)( bui|\))/i],[h,[f,x],[b,w]],[/\(dtv[\);].+(aquos)/i],[h,[f,"Sharp"],[b,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,a],[h,a],[b,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,w]],[/((pebble))app/i],[f,h,[b,M]],[/droid.+; (glass) \d/i],[h,[f,T],[b,M]],[/droid.+; (wt63?0{2,3})\)/i],[h,[f,z],[b,M]],[/(quest( 2)?)/i],[h,[f,N],[b,M]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[b,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[b,r]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[b,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,P]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[b,r]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[_,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[_,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[_,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,_]],os:[[/microsoft (windows) (vista|xp)/i],[_,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[_,[v,t,V]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_,"Windows"],[v,t,V]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[v,_],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_,v],[/\(bb(10);/i],[v,[_,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[_,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[_,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[_,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[_,"Chromium OS"],v],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_,v],[/(sunos) ?([\w\.\d]*)/i],[[_,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[_,v]]};d.VERSION="0.7.31",d.BROWSER=e([_,v,"major"]),d.CPU=e([y]),d.DEVICE=e([h,f,b,i,r,w,P,M,I]),d.ENGINE=d.OS=e([_,v]),typeof exports!=l?(typeof module!=l&&module.exports&&(exports=module.exports=d),exports.UAParser=d):typeof define===u&&define.amd?define(function(){return d}):typeof s!=l&&(s.UAParser=d);var B,q=typeof s!=l&&(s.jQuery||s.Zepto);q&&!q.ua&&(B=new d,q.ua=B.getResult(),q.ua.get=function(){return B.getUA()},q.ua.set=function(e){B.setUA(e);var t,i=B.getResult();for(t in i)q.ua[t]=i[t]})}("object"==typeof window?window:this);var properSpecialOps=properSpecialOps||{},googletag=googletag||{};googletag.cmd=googletag.cmd||[];var propertag=propertag||{};propertag.cmd=propertag.cmd||[];var _qevents=_qevents||[];!function(){var e=document.createElement("script");e.src=("https:"==document.location.protocol?"https://secure":"http://edge")+".quantserve.com/quant.js",e.async=!0,e.type="text/javascript";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}();try{_qevents.push({qacct:"p-mEzuYq24VEJ-3"})}catch(e){console.error("Error pushing Quantcast event"),console.error(e)}"undefined"==typeof console&&(console={log:function(e){},error:function(e){},info:function(e){},table:function(e){}}),ProperMedia.ad_project=function(win,document){var $=ProperMedia.jquery.$,properSetTimeout=ProperMedia.utils.properSetTimeout,properSetInterval=ProperMedia.utils.properSetInterval,TraceKit=window.top.TraceKit;function sendError(e){try{e.stack||(e.stack=new Error("force-added stack").stack),e.name||(e.name="Unknown"),e.message||(e.message="Unknown")}catch(e){console.error("Error building error data"),console.error(e)}try{var t={client_timestamp:(new Date).getTime(),event_type:e.event_type||"exception",event_id:ProperMedia.utils.generateUUID(),page_id:ProperMedia.utils.generateUUID(),session_id:ProperMedia.utils.generateUUID(),bidder:e.bidder||"",user_id:ProperMedia.utils.validateValue(properUser.pubcid,{type:"string"}),publisher:ProperMedia.utils.validateValue(properOps.site_name,{type:"string",default_val:"unknown",max_len:40}),rtp_file_version:ProperMedia.utils.validateValue(properOps.rtp_file_version,{type:"string"}),ad_project_tag:ProperMedia.utils.validateValue(properOps.rtp_file_revision,{type:"string"}),page_url:ProperMedia.utils.getPageUrl()||"",in_iframe:!1,is_https:"https:"==document.location.protocol,user_agent:navigator.userAgent||"",stack_trace:JSON.stringify(e.stack),error_message:e.message.toString()||"",error_name:e.name.toString()||""};properPage.uuid&&""!==properPage.uuid&&(t.page_id=properPage.uuid),properSession&&properSession.sessionData&&properSession.sessionData.uuid&&""!==properSession.sessionData.uuid&&(t.session_id=properSession.sessionData.uuid),$.ajax({url:"https://events.proper.io/api/event",requestType:"fetch",method:"POST",data:JSON.stringify(t),withCredentials:!1,success:function(e){console.log("Proper exception logged successfully.")},error:function(){console.error("Unable to log Proper exception.")}})}catch(e){console.error("Error sending exception data"),console.error(e)}}TraceKit.report.subscribe(sendError),TraceKit.report.unsubscribe(TraceKit.defaultSendError);var storageObj=(zg=["core"],Ag.prototype.isValid=function({gvlid:e,moduleName:t,bidderCode:i,moduleType:r}){return-1!==zg.indexOf(r)||!!gdprEnforcement.deviceAccessEnforcement(e,i||t)},Ag.prototype.setCookie=function(e,t,i,r,s,o){this.isValid(o)&&(o=s&&""!==s?" ;domain="+encodeURIComponent(s):"",s=i&&""!==i?" ;expires="+i:"",i=null!=r&&"none"==r.toLowerCase()?"; Secure":"",document.cookie=e+"="+encodeURIComponent(t)+s+";path=/"+o+(r?";SameSite="+r:"")+i)},Ag.prototype.deleteCookie=function(e,t,i,r){var s=new Date;s.setTime(s.getTime()-6e4);s=s.toGMTString();this.setCookie(e,"",s,t,i,r)},Ag.prototype.getCookie=function(e,t){if(this.isValid(t)){e=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return e?decodeURIComponent(e[2]):null}return null},Ag.prototype.localStorageIsEnabled=function(e){if(this.isValid(e))try{return localStorage.setItem("proper.cookieTest","1"),"1"===localStorage.getItem("proper.cookieTest")}catch(e){}finally{try{localStorage.removeItem("proper.cookieTest")}catch(e){}}return!1},Ag.prototype.cookiesAreEnabled=function(e){return!!this.isValid(e)&&(!!ProperMedia.utils.checkCookieSupport()||(window.document.cookie="proper.cookieTest",-1!==window.document.cookie.indexOf("proper.cookieTest")))},Ag.prototype.setDataInLocalStorage=function(e,t,i){this.isValid(i)&&this.hasLocalStorage(i)&&window.localStorage.setItem(e,t)},Ag.prototype.getDataFromLocalStorage=function(e,t){return this.isValid(t)&&this.hasLocalStorage(t)?window.localStorage.getItem(e):null},Ag.prototype.removeDataFromLocalStorage=function(e,t){this.isValid(t)&&this.hasLocalStorage(t)&&window.localStorage.removeItem(e)},Ag.prototype.hasLocalStorage=function(e){if(this.isValid(e))try{return!!window.localStorage}catch(e){properLog.mylog("Local storage api disabled")}return!1},Ag),zg;function Ag(){}properStorage=new storageObj;var ViewabilityTracker=(j6.prototype.addElement=function(e,t){e.lazyload&&e.fetchMarginPercent<e.renderMarginPercent&&(sendError(new Error("Lazyload Fetch Margin has to be greater than or equal to Render Margin")),e.fetchMarginPercent=e.renderMarginPercent);t={id:e.id,callback:t,lazyload:e.lazyload||!1,viewability:e.viewability||!0,autoDelete:e.autoDelete||!1,fetchMarginPercent:e.fetchMarginPercent||0,renderMarginPercent:e.renderMarginPercent||0,autoDeleteMarginPercent:e.autoDeleteMarginPercent||300,minHeight:e.minHeight||0,activeTab:!0,viewable:!1,inFetchZone:!1,inRenderZone:!1,inDeleteZone:!1};t.lazyload||this.incrementSlotsInFetchZone(),this.elements[e.id]=t,this.started&&this.runViewabilityCheck(t.id)},j6.prototype.removeElement=function(e){this.elements[e]&&(this.killEntry(this.elements[e]),delete this.elements[e])},j6.prototype.start=function(){this.activeTab=!0,this.updateElelemtsActiveTab();var e=new CustomEvent("properActiveTab");if(window.dispatchEvent(e),this.started)return!0;var t=this;this.timer=properSetInterval.setInterval.call(t,function(){Object.keys(t.elements).forEach(function(e){t.runViewabilityCheck(e)},t)},200),this.started=!0},j6.prototype.stop=function(){clearInterval(this.timer),this.activeTab=!1,this.updateElelemtsActiveTab();var e=new CustomEvent("properInactiveTab");window.dispatchEvent(e),Object.keys(this.elements).forEach(function(e){this.killEntry(this.elements[e])},this),this.started=!1},j6.prototype.updateElelemtsActiveTab=function(){Object.keys(this.elements).forEach(function(e){this.elements[e].activeTab=this.activeTab},this)},j6.prototype.runViewabilityCheck=function(e,t){var i=this.elements[e]||!1;i&&(e=!1,i.viewability&&(e=function(e){var t=!1,i=e.viewable;if(e.element=e.element||document.getElementById(e.id),!e.element)return!1;var r=e.element.getBoundingClientRect();if(0==r.height&&0<r.top&&r.top<window.innerHeight&&0<r.left&&r.right<window.innerWidth)return!0;var s=r.width*r.height,o=Math.max(r.top,0),a=Math.min(r.bottom,window.innerHeight),n=Math.min(r.right,window.innerWidth),r=Math.max(r.left,0);i=o<a&&r<n&&(r=Math.abs(a-o)*Math.abs(n-r),.5<r/s);return t=i!=e.viewable,e.viewable=i,t}(i)),((e=i.lazyload||i.autoDelete?this.checkMargins(i)||e:e)||t)&&i.callback(i))},j6.prototype.calculateViewablePercentage=function(e){var t=e.getElement();if(null!==t){if("visible"!==window.top.document.visibilityState)return 0;e=t.getBoundingClientRect(),t={};if(void 0!==e)return t.left=Math.max(e.left,0),t.right=Math.min(e.right,window.top.innerWidth),t.left>=t.right?0:(t.top=Math.max(e.top,0),t.bottom=Math.min(e.bottom,window.top.innerHeight),t.top>=t.bottom?0:(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width*t.height/(e.width*e.height)*100))}return 0},j6.prototype.checkMargins=function(e){if(e.element=e.element||document.getElementById(e.id),!e.element)return!1;var t=e.element.getBoundingClientRect(),i=(e.inFetchZone,e.inRenderZone,t.height||e.minHeight),t=t.top+i/2,i=!1;t>window.innerHeight?t-=window.innerHeight:t=t<0?(i=!0,Math.abs(t)):0;t=t/window.innerHeight*100;e.inDeleteZone=i&&e.autoDelete&&t>=e.autoDeleteMarginPercent;var r=(t<=e.fetchMarginPercent||-1==e.fetchMarginPercent)&&!e.inDeleteZone,s=(t<=e.renderMarginPercent||-1==e.fetchMarginPercent)&&!e.inDeleteZone,t=r!=e.inFetchZone||s!=e.inRenderZone||e.inDeleteZone;return r&&!e.inFetchZone?this.incrementSlotsInFetchZone():!r&&e.inFetchZone&&(this.slotsInFetchZone=Math.max(0,--this.slotsInFetchZone)),e.inFetchZone=r,e.inRenderZone=s,t},j6.prototype.killEntry=function(e){e.inFetchZone&&(this.slotsInFetchZone=Math.max(0,--this.slotsInFetchZone)),e.activeTab=!1,e.viewable=!1,e.inFetchZone=!1,e.inRenderZone=!1,e.callback(e)},j6.prototype.setCallback=function(e){this.auctionCallback=e},j6.prototype.incrementSlotsInFetchZone=function(){this.slotsInFetchZone++,ProperMedia.utils.isFn(this.auctionCallback)&&(this.auctionCallback(),this.auctionCallback.auctionCallback=null)},j6);function j6(){this.timer=null,this.elements={},this.supportsPassive=function(){try{var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t),e}catch(e){return sendError(TraceKit.computeStackTrace(e)),!1}}(),this.activeTab=!0,this.slotsInFetchZone=0,this.auctionCallback=null,consentManager.ready(function(){var t,i,e,r,s;this.start(),t=this,i="hidden",e=function(e){document[i]?t.stop():t.start()},r=function(){t.stop()},s=function(){t.start()},e=TraceKit.wrap(e),r=TraceKit.wrap(r),s=TraceKit.wrap(s),i in document?document.addEventListener("visibilitychange",e):(i="mozHidden")in document?document.addEventListener("mozvisibilitychange",e):(i="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",e):(i="msHidden")in document?document.addEventListener("msvisibilitychange",e):"onfocusin"in document?(document.onfocusin=s,document.onfocusout=r):"onpagehide"in window?(window.addEventListener("pagehide",r,!1),window.addEventListener("pageshow",s,!1)):"onblur"in window&&(window.onfocus=s,window.onblur=r)}.bind(this))}var pageObj=(kh.prototype.init=function(){this.start_ts=ProperMedia.utils.getTimestampMs(),this.setBidPageUrl(),this.viewability_tracker=new ViewabilityTracker,properLog.mylog("width: "+this.width),properSession.init(),properLog.init_bid_data(),consentManager.ready(function(){this.initDfp(),this.buildSlots(),properSetTimeout.setTimeout.call(this,function(){this.buildSlots()},850),properAdPool.startNewAuction(),checkProperDebugConsole()}.bind(this))},kh.prototype.setBidPageUrl=function(){this.spa_settings.enabled&&this.spa_settings.gallery_id&&this.spa_settings.gallery_base_url?this.bidder_page_url=this.spa_settings.gallery_base_url:this.bidder_page_url=this.url},kh.prototype.setPageVariables=function(){this.uuid=ProperMedia.utils.generateUUID(),window.proper_ad_page_uuid=this.uuid,"https:"==document.location.protocol?(this.protocol="https:",this.use_ssl=!0):this.protocol="http:",this.url=ProperMedia.utils.getPageUrl(),this.path=ProperMedia.utils.getPagePath(),this.domain=ProperMedia.utils.getPageDomain(),this.root_domain=ProperMedia.utils.getRootDomain(),this.get_vars=ProperMedia.utils.getUrlParameters(window.location.search.substring(1)),this.referrer=ProperMedia.utils.getPageReferrer(),this.canonical_url=ProperMedia.utils.getCanonicalUrl(),this.width=$(window).width(),this.height=$(window).height(),this.takeover={bidder:"",logged:!1,price:0},this.checkDomainProtection(),this.checkProperTestMode(),this.checkPageIsolation(),this.loadBidderInitScripts(),this.setPageMeta(),this.setPostId(),this.setSPASettings(),this.setVideoEnabled(),this.setDynamicAdMatches()},kh.prototype.loadBidderInitScripts=function(){consentManager.ready(function(){Object.keys(properOps.bidders).forEach(function(i){Object.keys(properOps.bidders[i]).forEach(function(e){var t=bidderToAdapterName(e);(properOps.testing_mode.enabled&&properOps.testing_mode.bidder==e||ProperMedia.utils.deepAccess(properOps,"bidders."+i+"."+e+".enabled"))&&"function"==typeof ProperMedia.utils.deepAccess(bidAdapters,t+".loadInitScripts")&&bidAdapters[t].loadInitScripts()})})})},kh.prototype.getTimeOnPage=function(){return 0==this.start_ts?0:Date.now()-this.start_ts},kh.prototype.incrementVideoPlayerCount=function(e,t){-1!==["instream","outstream"].indexOf(e.video_type)&&-1==this.video_player_count[e.video_type][t].indexOf(e.name)&&this.video_player_count[e.video_type][t].push(e.name)},kh.prototype.decrementVideoPlayerCount=function(e,t){-1!==["instream","outstream"].indexOf(e.video_type)&&-1!==this.video_player_count[e.video_type][t].indexOf(e.name)&&this.video_player_count[e.video_type][t].splice(this.video_player_count[e.video_type][t].indexOf(e.name),1)},kh.prototype.checkDomainProtection=function(){return properOps.domain_protection&&0==[properOps.domain].concat(properOps.additional_domains).filter(function(e){e=new RegExp("(^|\\.)"+e.replace(/(http(s)?:\/\/)?(www\.)?/,"")+"$");return this.domain.match(e)},this).length&&(properLog.mylog("WARNING: Domains don't match. Bids wont be sent out for this page"),this.dont_send_bids=!0),this.dont_send_bids},kh.prototype.checkProperTestMode=function(){void 0!==this.get_vars.proper_test&&""!==this.get_vars.proper_test?(properOps.testing_mode.bidder=this.get_vars.proper_test,properOps.testing_mode.ids=!0):(void 0!==this.get_vars.proper_bidder&&""!==this.get_vars.proper_bidder&&(properOps.testing_mode.bidder=this.get_vars.proper_bidder),void 0!==this.get_vars.proper_test_ids&&""!==this.get_vars.proper_test_ids&&(properOps.testing_mode.ids=!0)),(properOps.testing_mode.bidder||properOps.testing_mode.ids)&&(properLog.mylog("TESTING MODE"),properOps.testing_mode.enabled=!0,properOps.refresh.desktop.enabled=0,properOps.refresh.mobile.enabled=0)},kh.prototype.checkPageIsolation=function(){if((this.isolated=0)<properOps.isolated_urls.length)for(var e=0;e<properOps.isolated_urls.length;e++){var t=properOps.isolated_urls[e];if(t&&this.path==t){this.isolated=1;break}}0!=this.isolated||!properOps.testing_mode.bidder&&!properOps.testing_mode.ids||ProperMedia.utils.deepAccess(this,"get_vars.proper_dfp")||(this.isolated=1),void 0!==properSpecialOps.isolated&&0==this.isolated&&(this.isolated=properSpecialOps.isolated),consentManager.ready(function(){properLog.mylog("CMP resolved GDPR: Applies: "+gdprConsent.gdprApplies+", Consent String: "+gdprConsent.consentString),properLog.mylog("CMP resolved USPC: Applies: "+uspConsent.cmpApplies+", Consent String: "+uspConsent.usPrivacy),properLog.mylog("CMP resolved GPP: Applies: "+gppConsent.gppApplies+", Consent String: "+gppConsent.gppString),gdprEnforcement.makeBidRequestEnforcement("gam")||(this.isolated=1,properLog.mylog("Isolated mode due to consent"))}.bind(this))},kh.prototype.setPageMeta=function(){this.page_meta=ProperMedia.utils.mergeDeep({},{category:"",editor:"",writer:"",buyer:"",page_type:"",split:"",tags:[],dfp_kv:{},custom:{set_as_kv_to_gam:!1,dimension_1:"",dimension_2:"",dimension_3:"",dimension_4:"",dimension_5:"",dimension_6:"",dimension_7:"",dimension_8:"",dimension_9:"",dimension_10:""}},properSpecialOps.page_meta||{}),properOps.default_tags&&properOps.default_tags.length&&(this.page_meta.tags=this.page_meta.tags.concat(properOps.default_tags)),properSpecialOps.tags&&properSpecialOps.tags.length&&(this.page_meta.tags=this.page_meta.tags.concat(properSpecialOps.tags)),properSpecialOps.customGamKeyValues&&Object.keys(properSpecialOps.customGamKeyValues).length&&(this.page_meta.dfp_kv=ProperMedia.utils.mergeObject({},properSpecialOps.customGamKeyValues,this.page_meta.dfp_kv))},kh.prototype.setPostId=function(){properOps.post_id=(void 0!==properSpecialOps.post_id&&null!=properSpecialOps.post_id?properSpecialOps:properOps).post_id,this.post_id=properOps.post_id},kh.prototype.setSPASettings=function(){ProperMedia.utils.mergeObject(this.spa_settings,ProperMedia.utils.deepCopy(properSpecialOps.spa_settings))},kh.prototype.setVideoEnabled=function(){this.video_enabled=void 0!==properSpecialOps.video_enabled?!!properSpecialOps.video_enabled:this.video_enabled},kh.prototype.loadVideoPlayerScript=function(){var e;!0===this.video_enabled&&0==this.video_script_loaded&&void 0===window.ProperMediaVideo&&(window.propervideotag=window.propervideotag||[],(e=document.createElement("script")).src="https://player.propervideo.io/new_rtp/main.js",e.async=!0,window.top.document.getElementsByTagName("head")[0].appendChild(e)),this.video_script_loaded=!0},kh.prototype.buildSlots=function(){for(a in Object.keys(properOps.ad_slots).reverse().forEach(function(t){Object.keys(properOps.ad_slots[t]).forEach(function(e){"dynamic"!=t&&this.buildSlot(t,e)},this)},this),this.dynamic_ad_matches)this.buildSlot("dynamic",this.dynamic_ad_matches[a]);this.init_slots_build=1},kh.prototype.buildSlot=function(e,t,i={is_flex:!1}){let r=null;if(!e||!t)return r;var s,o,a=properDevice.isMobile()?"mobile":"desktop",n=ProperMedia.utils.deepCopy(ProperMedia.utils.deepAccess(properOps,`ad_slots.${e}.${i.is_flex?i.dfp_name:t}`)||{}),d={...ProperMedia.utils.deepAccess(n,"dynamic."+a)||{enabled:!1}};if(i.is_flex&&!properDevice.isMobile()&&(d=ProperMedia.utils.mergeObject(d,{enabled:!0,cssselector:`#${t}_flex`,cssplacement:"append"}),t=properOps?.site_name+"_dynamic_flex",o=(s={...properOps?.ad_slots?.display?.[t]||{dynamic:{desktop:{enabled:!0}}}}).dynamic?.desktop?.instances||0,ProperMedia.utils.mergeDeep(s.dynamic?.[a],d),ProperMedia.utils.deepSetValue(s,`dynamic.${a}.instances`,o),ProperMedia.utils.mergeDeep(n,s),n.flex_ad=i.flex_ad,n.allowed_size=i.allowed_size||i.flex_ad?.size,n.is_flex=!0,d=ProperMedia.utils.deepAccess(n,"dynamic."+a)),d.enabled){var i=d.cssselector+":not(."+this.dynamic_css_class+")",p=document.querySelectorAll(i);if(p&&0<p.length)for(var l=0;l<p.length;l++){var c,u=p[l];d.instances=(parseInt(d.instances)||0)+1,ProperMedia.utils.deepSetValue(properOps,`ad_slots.${e}.${t}.dynamic.${a}.instances`,d.instances),(void 0===d.max_instances||d.instances<=parseInt(d.max_instances))&&(c=ProperMedia.utils.deepCopy(n),ProperMedia.utils.deepSetValue(c,"dynamic."+a+".instance_number",d.instances),r=new slotObj("video"==e?"video":"display",t,c,u))}}else r=ProperMedia.utils.deepAccess(this,"slots."+e+"."+t)?ProperMedia.utils.deepAccess(this,"slots."+e+"."+t):new slotObj(e,t,n);return r},kh.prototype.rebuildSlots=function(i){i=i??[],Object.keys(this.slots).forEach(function(t){Object.keys(this.slots[t]).forEach(function(e){i&&i.includes(e)||(e=this.getSlotFromPageObject(e,[t]))&&e.getElement()&&e.rebuildSlot()},this)},this),this.buildSlots()},kh.prototype.updateDpfPageTargeting=function(){0==this.isolated&&1==this.dfp_init&&googletag.cmd.push(function(){properOps.dfp_per_slot?Object.keys(this.slots.display).length&&Object.keys(this.slots.display).forEach(function(e){e=this.slots.display[e];e.googletag().pubads()&&setDfpPageTargeting(e.googletag().pubads())}.bind(this)):setDfpPageTargeting(googletag.pubads())}.bind(this))},kh.prototype.SpaNextPage=function(){properLog.mylog("========== New SPA Page =========="),this.newPageView(),this.init_slots_build=0,this.rebuildSlots([]),properSetTimeout.setTimeout.call(this,function(){this.buildSlots()},850),properAdPool.startNewAuction()},kh.prototype.newPageView=function(){var e=new CustomEvent("properNewPageview");window.dispatchEvent(e);e=this.getTimeOnPage();properLog.mylog("Time on page: "+e),this.spa_settings.page_number++,this.start_ts=ProperMedia.utils.getTimestampMs(),this.setPageVariables(),!ProperMedia.utils.deepAccess(this.spa_settings,"enabled")||ProperMedia.utils.deepAccess(this.spa_settings,"gallery_id")&&ProperMedia.utils.deepAccess(properSpecialOps,"spa_settings.gallery_id")&&ProperMedia.utils.deepAccess(this.spa_settings,"gallery_id")===ProperMedia.utils.deepAccess(properSpecialOps,"spa_settings.gallery_id")?properAdPool.clearExpiredAds():properAdPool.clearCachedAds(),this.setBidPageUrl(),properSession.init(),properLog.init_bid_data(),properAdPool.auction_count=0,properAdPool.vid_auction_count=0,this.updateDpfPageTargeting()},kh.prototype.InfScrollNextPage=function(){properLog.mylog("========== New Infinite Scroll Page =========="),this.newPageView(),this.init_slots_build=0,this.buildSlots(),properSetTimeout.setTimeout.call(this,function(){this.buildSlots()},850),properAdPool.startNewAuction()},kh.prototype.initDfp=function(){if(1==this.dfp_init||1==properPage.isolated||1==properOps.dfp_per_slot)return!1;ProperMedia.utils.deepAccess(properOps,"confiant.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"confiant.enabled")?confiantWrapper.loadDFPTag(window):(ProperMedia.utils.deepAccess(properOps,"adlightning.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.enabled"))&&adLightningWrapper.loadDFPTag(window),googletag._loadStarted_||function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript";var t="https:"==document.location.protocol;e.src=(t?"https:":"http:")+"//securepubads.g.doubleclick.net/tag/js/gpt.js";t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),googletag.cmd.push(function(){gdprEnforcement.deviceAccessEnforcement(755,"gam")||(properLog.mylog("DFP: disable personalized GPT ads"),googletag.pubads().setPrivacySettings({nonPersonalizedAds:!0})),uspConsent.restrictDataProcessing&&googletag.pubads().setPrivacySettings({restrictDataProcessing:!0}),googletag.pubads().addEventListener("slotOnload",function(e){var t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),e=e.slot.getAdUnitPath(),e=properPage.getSlotFromPageObject(t)||properPage.getSlotFromPageObjectByAdUnitPath(e);properLog.mylog("DFP slotOnload: "+t),e&&e.dispatchCustomEvent("proper-ads-fired",{cpm:ProperMedia.utils.deepAccess(e,"displayed_ad.price"),size:ProperMedia.utils.deepAccess(e,"displayed_ad.size"),ad_type:e.ad_type})}),googletag.pubads().addEventListener("impressionViewable",function(e){var t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),e=e.slot.getAdUnitPath(),e=properPage.getSlotFromPageObject(t)||properPage.getSlotFromPageObjectByAdUnitPath(e);properLog.mylog("DFP impressionViewable: "+t),e&&(e.interstitial&&proper_render_dfp_interstitial(e),e.dispatchCustomEvent("proper-impression-viewable",{cpm:ProperMedia.utils.deepAccess(e,"displayed_ad.price"),size:ProperMedia.utils.deepAccess(e,"displayed_ad.size"),ad_type:e.ad_type}))}),googletag.pubads().addEventListener("slotRenderEnded",TraceKit.wrap(function(e){var t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),i=e.slot.getAdUnitPath(),i=properPage.getSlotFromPageObject(t)||properPage.getSlotFromPageObjectByAdUnitPath(i);properLog.mylog("DFP slotRenderEnded: "+t),i&&(i.tracking_times.dfp_returned_ts=ProperMedia.utils.getTimestampMs(),i.interstitial?0==e.isEmpty&&proper_render_dfp(i.name,e):(e.advertiserId!=properOps.proper_advertiser&&e.advertiserId!=properOps.amazon_advertiser&&(e.isEmpty?properOps.thirdPartyAdManager&&log_unfilled(i):(proper_render_dfp(i.name,e),proper_inview(e.isEmpty,i.name,e.size.join("x"),e.creativeId,e.lineItemId,e.advertiserId))),(!i.sticky&&ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.enabled")&&ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.reportAd")||ProperMedia.utils.deepAccess(properOps,"adlightning.enabled")&&ProperMedia.utils.deepAccess(properOps,"adlightning.reportAd"))&&adLightningWrapper.addReportAd(e)))})),googletag.pubads().addEventListener("slotOnload",TraceKit.wrap(function(e){let t;try{t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId());var i,r=e.slot.getAdUnitPath(),s=properPage.getSlotFromPageObject(t)||properPage.getSlotFromPageObjectByAdUnitPath(r);properLog.mylog("DFP slotOnload: "+t),s&&(!window.top.document.getElementById(s.dfpIframeId)||(i=window.top.document.getElementById(s.dfpIframeId).contentWindow.document)&&(i.getElementById("common_15click_overlay")||i.getElementById("common_15click_anchor"))&&sendError(new Error("Detected Google Confirmed Click: "+s.dfp_name+" | "+ProperMedia.utils.deepAccess(s,"displayed_ad.size"))))}catch(e){properLog.mylog("Error Detecting Google Confirmed Click: "+t)}})),setDfpPageTargeting(googletag.pubads()),googletag.pubads().setPrivacySettings({childDirectedTreatment:!!ProperMedia.utils.deepAccess(properSpecialOps,"coppa")}),googletag.pubads().disableInitialLoad(),googletag.pubads().setPublisherProvidedId(properUser.pubcid),googletag.pubads().enableSingleRequest(),googletag.enableServices(),this.dfp_enabled_services=!0}.bind(this)),this.dfp_init=1},kh.prototype.dfpSraCall=function(){googletag.cmd.push(function(){var t;clearTimeout(this.sra_settings.timeout_handler),this.sra_settings.timeout_handler=null,0<Object.keys(this.sra_settings.slot_queue).length&&(1==properSpecialOps.update_correlator&&0==this.dfp_correlator&&1<this.spa_settings.page_number&&(googletag.pubads().updateCorrelator(),this.dfp_correlator=!0,properLog.mylog("Correlator updated for page: "+this.spa_settings.page_number)),t=[],Object.keys(this.sra_settings.slot_queue).forEach(function(e){e=this.sra_settings.slot_queue[e];t.push(e.dfp_slot),e.tracking_times.dfp_sent_ts=ProperMedia.utils.getTimestampMs(),properLog.mylog("DFP refresh called: "+e.name),e.dfp_refreshed=1,e.auction_send_complete=!0},this),this.sra_settings.slot_queue={},googletag.pubads().refresh(t))}.bind(this))},kh.prototype.getSlotFromPageObject=function(t,e){var i=null;return(e=e||Object.keys(this.slots)||["display","video","interstitial"]).every(function(e){return!this.slots[e][t]||(i=this.slots[e][t],!1)},this),i},kh.prototype.getSlotFromPageObjectByAdUnitPath=function(i,e){var r=null;return(e=e||Object.keys(this.slots)||["display","video","interstitial"]).every(function(t){return!r&&this.slots[t]&&Object.keys(this.slots[t])&&Object.keys(this.slots[t]).every(function(e){return!(!r&&this.slots[t][e].dfpAdUnitPath==i)||(r=this.slots[t][e],!1)},this),!r},this),r},kh.prototype.getSlotByNumber=function(i,e){var r=null;return(e=e||Object.keys(this.slots)).every(function(t){return Object.keys(this.slots[t]).every(function(e){e=this.slots[t][e];return e.number!=i||(r=e,!1)},this),!r},this),r},kh.prototype.getSlotFromPageObjectByDfpName=function(i,e){try{var r=!1;return(e=e||Object.keys(this.slots)||["display","video","interstitial"]).every(function(t){return!(r=Object.keys(this.slots[t]).some(function(e){return this.slots[t][e].dfp_name==i},this))},this),r}catch(e){return!1}},kh.prototype.deleteDynamicSlots=function(e){(e=e||Object.keys(this.slots)).forEach(function(r){this.slots[r]&&Object.keys(this.slots[r]).length&&Object.keys(this.slots[r]).forEach(function(e){e=this.slots[r][e];if(ProperMedia.utils.deepAccess(e,"dynamic.enabled")){e.deleteSlot(!0);var e=ProperMedia.utils.deepAccess(e,"dynamic.cssselector")+"."+this.dynamic_css_class,t=document.querySelectorAll(e);if(t&&0<t.length)for(var i=0;i<t.length;i++)t[i].classList.remove(this.dynamic_css_class)}},this)},this)},kh.prototype.resetDynamicSlotInstanceCount=function(e){e=e||Object.keys(this.slots);const i=properDevice.isMobile()?"mobile":"desktop";e.forEach(function(t){properOps.ad_slots[t]&&Object.keys(properOps.ad_slots[t]).length&&Object.keys(properOps.ad_slots[t]).forEach(function(e){ProperMedia.utils.deepAccess(properOps,"ad_slots."+t+"."+e+".dynamic."+i+".instances")&&ProperMedia.utils.deepSetValue(properOps,"ad_slots."+t+"."+e+".dynamic."+i+".instances",0)},this)},this)},kh.prototype.setDynamicAdMatches=function(){var e=[],t=!!(i=this.url.substr(this.url.indexOf(this.domain)+this.domain.length,this.url.length-1).replace(window.location.hash,"")).includes("?")&&i.split("?")[1],i=t?i.split("?")[0]:i;for(group in properOps.page_groups){var r=!1,s=properOps.page_groups[group];for(url in s.url_matches)(i==s.url_matches[url]||-1<s.url_matches[url].indexOf("*")&&1+i.search(s.url_matches[url].split("/").join("/").split("=").join("\\=").split("*").join(".*")))&&(r=!0);if(r){for(url in s.url_exclude)(i==s.url_exclude[url]||-1<s.url_exclude[url].indexOf("*")&&1+i.search(s.url_exclude[url].split("/").join("/").split("=").join("\\=").split("*").join(".*")))&&(r=!1);if(r&&(e=e.concat(s.ads)),t)for(utm_group in s.url_mods)for(utm in s.url_mods[utm_group].conditions)1+t.search(s.url_mods[utm_group].conditions[utm])&&(e=e.concat(s.url_mods[utm_group].extra_ads))}}this.dynamic_ad_matches=e},kh);function kh(){this.uuid=null,this.use_ssl=!1,this.protocol="http:",this.url="",this.domain="",this.path="",this.get_vars={},this.canonical_url="",this.takeover={bidder:"",logged:!1,price:0},this.bidder_page_url="",this.referrer="",this.isolated=0,this.width=0,this.height=0,this.post_id="",this.init_slots_build=0,this.slots={display:{},video:{},interstitial:{}},this.sra_settings={slot_queue:{},timeout_handler:null,timeout_ms:100},this.video_enabled=null,this.video_player_count={instream:{possible:[],onpage:[],inview:[]},outstream:{possible:[],onpage:[],inview:[]}},this.video_script_loaded=!1,this.dynamic_css_class="proper-dynamic-insertion",this.start_ts=0,this.dfp_init=!1,this.dfp_correlator=!1,this.dfp_enabled_services=!1,this.dont_send_bids=!1,this.viewability_tracker={},this.dynamic_ad_matches=[],this.spa_settings={enabled:!1,prefetch:!1,gallery_id:null,page_number:1,gallery_base_url:""},this.page_meta={category:"",editor:"",writer:"",buyer:"",page_type:"",split:"",tags:[],custom:{}},this.dfp_targeting={}}var slotObj=(f8.prototype.getElement=function(){return(this.iframe_window||top).document.getElementById(this.div_id)},f8.prototype.addFlexWrapper=function(e){const t=document.createElement("div");t.classList.add("proper-flex-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)},f8.prototype.addFlexSlot=function(t){var e=this.getElement(),i=`${this.name}_flex`;if(e){const r=this.getFlexWrapper();if(r.className.includes("proper-flex-wrapper")){const s=document.createElement("div");s.id=i,s.classList.add("proper-flex"),r.appendChild(s);for(const o of r.children)o.classList.add("proper-flex");propertag.cmd.push(function(){properLog.mylog("Adding Flex Slot "+this.name);var e=properPage.buildSlot(this.type,this.name,{is_flex:!0,allowed_size:t,dfp_name:this.dfp_name,flex_ad:this.flex_ad});this.flex_name=e?.name}.bind(this))}}},f8.prototype.hasFlexSlot=function(){return!!this.flex_name},f8.prototype.removeFlexSlot=function(){const e=properPage.getSlotFromPageObject(this.flex_name);var t;e?(properLog.mylog(`Removing flex slot: ${this.flex_name}`),e?.deleteSlot(!0),t=this.getElement(),$(t?.parentNode).removeClass("proper-flex"),this.flex_name=null):properLog.mylog(`Flex slot not found for ${this.name}!`)},f8.prototype.clearFlexBid=function(){this.hasFlexBid()&&(0!=this.flex_ad.displayed||this.flex_ad.checkIfExpired()||properAdPool.addBidToPool(this.flex_ad),delete this.flex_ad,this.flex_ad={})},f8.prototype.getFlexWrapper=function(){let e=this.getElement(),t=0;for(;!e?.className.includes("proper-flex-wrapper")&&t<7;)e=e.parentNode,t++;return e},f8.prototype.getContentDocument=function(){return this.iframe_window?this.iframe_window.document:this.iframe_id?window.top.document.getElementById(this.iframe_id).contentDocument:window.top.document.getElementById(this.properIframeId)?window.top.document.getElementById(this.properIframeId).contentDocument:window.top.document},f8.prototype.setStickySettings=function(e){try{var t;this.sticky&&(t=ProperMedia.utils.mergeObject({},this.sticky_settings,e.sticky_settings||{}),this.sticky_settings=ProperMedia.utils.deepCopy(t))}catch(e){return properLog.mylog("Error setting sticky settings: "+this.name),!1}return!0},f8.prototype.setSliderSettings=function(e){try{var t;this.slider&&(t=ProperMedia.utils.mergeObject({},this.slider_settings,e.slider_settings||{}),this.slider_settings=ProperMedia.utils.deepCopy(t))}catch(e){return properLog.mylog("Error setting slider settings: "+this.name),!1}return!0},f8.prototype.setScrollableSettings=function(e){try{var t;"display"==this.type&&(t=ProperMedia.utils.mergeObject({},this.scrollable,e.scrollable||{}),this.scrollable=ProperMedia.utils.deepCopy(t))}catch(e){return properLog.mylog("Error setting scrollable settings: "+this.name),!1}return!0},f8.prototype.setScrollableElemHeight=function(){try{var e,t,i=parseInt(properPage.height*(parseInt(this.scrollable.percentage)/100));"display"==this.type&&properDevice.isMobile()&&this.scrollable.enabled&&0<parseInt(this.scrollable.percentage)&&i>this.max_height&&((e=window.top.document.getElementById(this.div_id))&&-1!==e.parentNode.className.indexOf(properOps.slot_wrapper_class)&&((t=e.parentNode).style="min-height: "+i+"px;",t.className+=" in-content-slider-cont",e.className+=" in-content-slider-unit"))}catch(e){properLog.mylog("Error setting scrollable elem height: "+this.name)}},f8.prototype.setRefresh=function(e){try{var t=properDevice.isMobile()?"mobile":"desktop",i=e.refresh&&e.refresh[t]?e.refresh[t]:{},r=ProperMedia.utils.mergeObject({},this.refresh,properOps.refresh[t],i);(properUser.checkAdBlockDetected()||this.is_flex_slot)&&(r.enabled=0),this.refresh=ProperMedia.utils.deepCopy(r)}catch(e){return properLog.mylog("Error setting refresh settings: "+this.name),!1}return!0},f8.prototype.setLazyload=function(e){try{var t=properDevice.isMobile()?"mobile":"desktop",i=e.lazyload&&e.lazyload[t]?e.lazyload[t]:{},r=ProperMedia.utils.mergeObject({},this.lazyload,properOps.lazyload[t],i);this.lazyload=ProperMedia.utils.deepCopy(r),this.sticky&&(this.lazyload.enabled=!1)}catch(e){return properLog.mylog("Error setting lazy-load settings: "+this.name),!1}return!0},f8.prototype.setAutoDelete=function(e){try{var t=properDevice.isMobile()?"mobile":"desktop",i=ProperMedia.utils.deepAccess(e,"autoDelete."+t)||{},r=ProperMedia.utils.mergeObject({},this.autoDelete,properOps.autoDelete[t],i);this.autoDelete=ProperMedia.utils.deepCopy(r),this.sticky&&(this.autoDelete.enabled=!1)}catch(e){return properLog.mylog("Error setting auto delete settings: "+this.name),!1}return!0},f8.prototype.setPageRestrictions=function(e){try{var t=ProperMedia.utils.deepAccess(e,"page_restricted_depth")||{},i=ProperMedia.utils.mergeObject({},this.page_restricted_depth,t);this.page_restricted_depth=ProperMedia.utils.deepCopy(i);var r=ProperMedia.utils.deepAccess(e,"url_restricted")||{},s=ProperMedia.utils.mergeObject({},this.url_restricted,r);this.url_restricted=ProperMedia.utils.deepCopy(s)}catch(e){return properLog.mylog("Error setting page restriction settings: "+this.name),!1}return!0},f8.prototype.setFloors=function(e){try{var t=properDevice.isMobile()?"mobile":"desktop",i=e.floors&&e.floors[t]?e.floors[t]:{},r=ProperMedia.utils.mergeObject({},this.floors,properOps.floors[t],i);this.floors=ProperMedia.utils.deepCopy(r)}catch(e){return properLog.mylog("Error setting floors settings: "+this.name),!1}return!0},f8.prototype.setDynamic=function(e){try{var t=properDevice.isMobile()?"mobile":"desktop",i=e.dynamic&&e.dynamic[t]?e.dynamic[t]:{},r=ProperMedia.utils.mergeObject({},this.dynamic,i);this.dynamic=ProperMedia.utils.deepCopy(r)}catch(e){return properLog.mylog("Error setting dynamic settings: "+this.name),!1}return!0},f8.prototype.setAdvertisementDisclosure=function(e){try{var t=ProperMedia.utils.mergeObject({},this.advertisement_disclosure,properOps.advertisement_disclosure,e.advertisement_disclosure||{});this.advertisement_disclosure=ProperMedia.utils.deepCopy(t)}catch(e){return properLog.mylog("Error setting Advertisement Disclosure settings: "+this.name),!1}return!0},f8.prototype.getFloor=function(e){e=this.floors.sizes[e]||this.floors.backup||0;return parseFloat(e)},f8.prototype.checkVideoInviewLimit=function(){return"outstream"==this.video_type&&(!properOps.video_limit.enabled||properOps.video_limit.outstream_inview_limit<properPage.video_player_count.outstream.inview.length)},f8.prototype.checkStickyFreqCapMet=function(){return!(1!=this.sticky||!(this.sticky_settings.disable_on_close&&1==properUser.stickyFreqCapHandler.getStickyClosedCookie()||this.sticky_settings.freq_cap_enabled&&properUser.stickyFreqCapHandler.getStickyUnitImps()>=this.sticky_settings.freq_cap))},f8.prototype.checkPageDepthRestriction=function(){return!!(this.page_restricted_depth.enabled&&"is_greater"==this.page_restricted_depth.qualifier&&properSession.sessionData.depth>parseInt(this.page_restricted_depth.page)||"is_lesser"==this.page_restricted_depth.qualifier&&properSession.sessionData.depth<parseInt(this.page_restricted_depth.page))},f8.prototype.checkUrlRestriction=function(){var e=!1;if(this.url_restricted.enabled&&this.url_restricted.values.length)for(var e=!0,t=0;t<this.url_restricted.values.length;t++){var i=this.url_restricted.values[t],r=new RegExp(i.url_value);if((!i.url_value||!i.qualifier||"contains"==i.qualifier&&properPage.url.match(r)||"does_not_contain"==i.qualifier&&!properPage.url.match(r))&&(!i.page_depth||!i.page_depth_qualifier||"is_lesser"==i.page_depth_qualifier&&properSession.sessionData.depth<parseInt(i.page_depth)||"is_greater"==i.page_depth_qualifier&&properSession.sessionData.depth>parseInt(i.page_depth))){e=!1;break}}return e},f8.prototype.setViewabilityTracker=function(){var e={id:this.div_id,lazyload:this.lazyload.enabled,viewability:!0,fetchMarginPercent:this.lazyload.fetchMarginPercent,renderMarginPercent:this.lazyload.renderMarginPercent,minHeight:this.min_height,autoDelete:this.autoDelete.enabled,autoDeleteMarginPercent:this.autoDelete.autoDeleteMarginPercent};properPage.viewability_tracker.addElement(e,this.viewabilityChange.bind(this))},f8.prototype.insertDynamicSlot=function(e,t){var i=document.createElement("div"),r=document.createElement("div");i.className=properOps.slot_wrapper_class,r.id="proper-ad-"+this.name,this.sticky?(i.className+=" ad-sticky",i.style="display: none;"):"display"==this.type&&properDevice.isMobile()&&this.scrollable.enabled&&0<parseInt(this.scrollable.percentage)&&(s=ProperMedia.utils.deepAccess(this.scrollable,"dynamic_occurences.incidences_to_target")||[],ProperMedia.utils.deepAccess(this.scrollable,"dynamic_occurences.enabled")&&-1===s.indexOf(this.dynamic.instance_number)||(o=parseInt(properPage.height*(parseInt(this.scrollable.percentage)/100)))>this.max_height&&(i.style="min-height: "+o+"px;",i.className+=" in-content-slider-cont",r.className+=" in-content-slider-unit"));var s=e.getAttribute("data-gamTargetingKey")||"",o=e.getAttribute("data-gamTargetingValue")||"";s&&r.setAttribute("data-gamTargetingKey",s),o&&r.setAttribute("data-gamTargetingValue",o),""!=this.dynamic.css_ad&&(i.style+=this.dynamic.css_ad),""!=this.dynamic.css_page&&(head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style"),head.appendChild(style),style.type="text/css",style.styleSheet?style.styleSheet.cssText=this.dynamic.css_page:style.appendChild(document.createTextNode(this.dynamic.css_page))),this.flex_enabled&&this.addFlexWrapper(e),"after"==t?e.parentNode.insertBefore(i,e.nextSibling):"before"==t?e.parentNode.insertBefore(i,e):"append"==t?e.appendChild(i):"prepend"==t&&(e.childNodes&&0<e.childNodes.length?e.insertBefore(i,e.childNodes[0]):e.appendChild(i)),i.appendChild(r),$(e).addClass(properPage.dynamic_css_class)},f8.prototype.getGamTargetingAttr=function(){var e,t=this.getElement();t&&(e=t.getAttribute("data-gamTargetingKey")||"tags",t=t.getAttribute("data-gamTargetingValue")??void 0,void 0!==(t=ProperMedia.utils.isStr(t)&&t.includes(",")?t.split(","):t)&&""!==t&&(this.gamTargeting={key:e,value:t}))},f8.prototype.buildSlot=function(e,t,i,r){if(this.type=e||"display",this.name=t,this.dfp_name=t,this.number=i.number||0,this.location=i.location||"unknown",this.sticky=i.sticky||0,this.slider=i.slider||0,this.min_height=i.min_height||0,this.max_height=i.max_height||0,this.specified_min_height=!!i.min_height,this.is_flex_slot=!!i.is_flex,this.flex_enabled=!this.is_flex_slot&&i.flex||!1,this.size_map=i.resolution_size_map||{},this.mcm_type=i.mcm_type||properOps.mcm_type,this.dfp_id="mcm"==this.mcm_type&&properOps.proper_dfp_id!==properOps.dfp_id?properOps.proper_dfp_id+","+properOps.dfp_id:properOps.dfp_id,this.div_id="display"==this.type?"proper-ad-"+this.name:this.name,this.dfpAdUnitPath="/"+this.dfp_id+"/"+this.name,this.properIframeId=this.div_id+"-iframe",this.dfpIframeId="google_ads_iframe_"+this.dfpAdUnitPath+"_0",this.disable_adx=ProperMedia.utils.deepAccess(i,"disable_adx."+(properDevice.isMobile()?"mobile":"desktop")),!this.name||"display"==this.type&&!this.number)return!1;if(this.is_flex_slot&&(this.winning_ad=i.flex_ad||{}),this.setDynamic(i),this.dynamic.enabled&&(this.child_name="dynamic_"+this.dynamic.instance_number,this.dfpAdUnitPath="/"+this.dfp_id+"/"+this.dfp_name+"/"+this.child_name,this.dfpIframeId="google_ads_iframe_"+this.dfpAdUnitPath+"_0",this.name=this.name+"_"+this.dynamic.instance_number,this.number=parseFloat(this.number+this.dynamic.instance_number/100),this.div_id="proper-ad-"+this.name,this.properIframeId=this.div_id+"-iframe",i.custom_css&&(this.dynamic.css_ad=i.custom_css[0]||"",this.dynamic.css_page=i.custom_css[1]||"")),this.getMaxTier(),this.parseTierSizes(i.allowed_size),0==this.sizes.length)return!1;if(this.setPageRestrictions(i),this.checkPageDepthRestriction())return!1;if(this.checkUrlRestriction())return!1;if(this.interstitial&&1==properOps.dfp_per_slot)return!1;if(this.setFloors(i),this.setLazyload(i),this.setAutoDelete(i),this.setScrollableSettings(i),this.setAdvertisementDisclosure(i),this.dynamic.enabled&&this.insertDynamicSlot(r,this.dynamic.cssplacement),properUser.checkAdBlockDetected()&&(!properUser.adblock.deliver_to_adblock||-1!==["multiple","unknown"].indexOf(this.location)))return!(this.kill_slot=!0);if(!this.getElement())return!1;if(!this.sticky&&-1==["sticky","skin"].indexOf(this.location)&&!this.getElement().offsetParent)return!1;const s=this.getElement().parentNode;if(!this.dynamic.enabled&&this.flex_enabled&&this.addFlexWrapper(s),"display"==this.type&&properDevice.isMobile()&&this.scrollable.enabled&&!this.dynamic.enabled&&this.setScrollableElemHeight(),this.setSliderSettings(i),i.video_player&&!1!==properPage.video_enabled&&(r=ProperMedia.utils.deepAccess(properOps,"video_players."+i.video_player)||{},0<Object.keys(r).length&&(this.video_player=new videoPlayer(i.video_player,r,this),this.video_type=this.video_player.player_settings.video_type,properPage.incrementVideoPlayerCount(this,"possible"))),"display"==this.type?(this.setRefresh(i),this.ad_types.push("display","native"),this.video_player&&!1!==properPage.video_enabled&&this.ad_types.push("video")):"video"==this.type&&this.video_player instanceof videoPlayer&&!1!==properPage.video_enabled&&this.ad_types.push("video"),this.checkVideoEnabled(),this.sticky){if(this.setStickySettings(i),this.checkStickyFreqCapMet())return!1;if(!this.getElement().parentNode.className.includes("sticky-inner")){s.classList.add(this.name);const o=document.createElement("div");if(o.setAttribute("class","sticky-inner"),o.setAttribute("style","display:none"),this.sticky_settings.brand||this.sticky_settings.close_btn){const a=document.createElement("div");a.setAttribute("class","inner-left");const n=document.createElement("div");n.setAttribute("class","inner-right");const d=document.createElement("a");d.setAttribute("class","brand"),d.setAttribute("target","_blank"),d.setAttribute("href","https://sovrn.com?ref=ms-sticky"),this.sticky_settings.brand&&d.setAttribute("style","display:block");const p=document.createElement("div");p.setAttribute("class","close"),this.sticky_settings.close_btn&&p.setAttribute("style","display:block"),p.onclick=function(e){e.preventDefault(),s.classList.remove("isOpen"),s.classList.add("close"),this.sticky_settings.disable_on_close&&properUser.stickyFreqCapHandler.setStickyClosedCookie(),this.deleteSlot(!0)}.bind(this),a.appendChild(d),n.appendChild(p),o.appendChild(a),o.appendChild(n)}s.appendChild(o),o.insertAdjacentElement("beforeEnd",this.getElement())}}else if(this.slider&&!this.getElement().parentNode.className.includes("slider_unit")&&"display"==this.type&&(s.classList.add("slider_unit"),properPage.width>this.slider_settings.breakpoint?(s.classList.add("slider_position_"+this.slider_settings.location.desktop[0]),s.classList.add("slider_position_"+this.slider_settings.location.desktop[1])):(s.classList.add("slider_position_"+this.slider_settings.location.mobile[0]),s.classList.add("slider_position_"+this.slider_settings.location.mobile[1])),1!=this.slider_settings.adjustment_size&&document.documentElement.style.setProperty("--slider_mobile_adjustment_size",this.slider_settings.adjustment_size),this.slider_settings.close_button)){const l=document.createElement("div");l.setAttribute("id","close_button"),l.setAttribute("name",this.name),l.onclick=function(e){e.preventDefault();try{$(".slider_unit #close_button").remove(),s.classList.remove("slider_unit"),this.disableSlotRefresh(),this.closeSliderSlot()}catch(e){console.error(e)}}.bind(this);i=document.createTextNode("x");l.appendChild(i),s.appendChild(l)}return(properPage.slots[this.type][this.name]=this).setViewabilityTracker(),("display"==this.type&&!this.lazyload.enabled||"video"==this.type&&ProperMedia.utils.deepAccess(this,"video_player.auto_insert"))&&(this.checkBidsReady()||(this.setWaitInterval(),this.setMaxAuctionTimeout())),"display"==this.type?consentManager.ready(function(){0==properPage.isolated&&(1!=properOps.dfp_per_slot||this.disable_adx?(0==properPage.dfp_init&&properPage.initDfp(),1==properPage.dfp_init&&(0!=this.mapped_dfp_sizes||this.disable_adx||this.buildDfpSizeMapping())):0==this.dfp_init?this.initDfp():0==this.mapped_dfp_sizes&&this.buildDfpSizeMapping())}.bind(this)):this.interstitial&&consentManager.ready(function(){properOps.dfp_per_slot||properPage.isolated||(0==properPage.dfp_init&&properPage.initDfp(),1==properPage.dfp_init&&(0==this.mapped_dfp_sizes&&(this.buildDfpSizeMapping(),this.dfp_ready=1),1==this.mapped_dfp_sizes&&(0==this.dfp_ready&&this.addBidToDfpSlot(),1==this.dfp_ready&&(0!=this.dfp_sent&&0!=this.dfp_refreshed||this.dfpDisplayOrRefresh()))))}.bind(this)),this.refresh.enabled&&1==properPage.init_slots_build&&0==Object.keys(properAdPool.auctions).length&&null==properAdPool.timeout_handle&&properAdPool.auction_count<properAdPool.max_auctions&&properAdPool.startNewAuction(),properLog.mylog("Building slot: "+this.name),this.tracking_times.built_ts=ProperMedia.utils.getTimestampMs(),!0},f8.prototype.disableSlotRefresh=function(){this.refresh.enabled=0,this.removeRefreshTimeout()},f8.prototype.checkVideoEnabled=function(){-1===this.ad_types.indexOf("video")&&1!=properPage.video_enabled||(null===properPage.video_enabled&&(properPage.video_enabled=!0),properPage.loadVideoPlayerScript())},f8.prototype.rebuildSlot=function(){var e,t;null==this.rebuild_timeout_handle&&"display"==this.type&&(e=Math.max(0,this.min_time_on_page-this.timeSinceDisplayed()),properLog.mylog("Rebuilding slot: "+this.name+" ("+e+")"),t=ProperMedia.utils.deepAccess(properOps,"ad_slots."+this.type+"."+this.name)||{},this.setRefresh(t),t=this.max_tier,this.getMaxTier(),t!==this.max_tier&&this.parseTierSizes(),this.rebuild_timeout_handle=properSetTimeout.setTimeout.call(this,function(){clearTimeout(this.rebuild_timeout_handle),this.rebuild_timeout_handle=null,this.refresh.count=0,this.resetBidData(),0<this.sizes.length&&consentManager.ready(function(){this.checkBidsReady()||(this.setWaitInterval(),this.setMaxAuctionTimeout())}.bind(this))},e))},f8.prototype.getMaxTier=function(){this.max_tier=0,Object.keys(this.size_map).forEach(function(e){e=parseInt(e),properPage.width>=e&&e>=this.max_tier&&(this.max_tier=e)},this)},f8.prototype.parseTierSizes=function(e){var t=0,i=this.size_map[this.max_tier]||[];if((i=this.is_flex_slot&&e?[e]:i)&&0<i.length){for(var r=0;r<i.length;r++){var s=i[r].split("x");if(s[0]=parseInt(s[0])||NaN,s[1]=parseInt(s[1])||NaN,!properUser.checkAdBlockDetected()||"in_content"!=this.location||!(!s[1]||isNaN(s[1])||150<s[1]))if(this.sizes.push(i[r]),isNaN(s[0])||isNaN(s[1])){if("interstitial"==i[r]){this.setInterstitial();break}}else 1!=s[0]&&1!=s[1]&&((s[0]<this.min_width||0==this.min_width)&&(this.min_width=s[0]),(s[1]<this.min_height||0==this.min_height)&&!this.specified_min_height&&(this.min_height=s[1]),(s[1]>this.max_height||0==this.max_height)&&(this.max_height=s[1]),(s[0]*s[1]<t||0==t)&&(this.default_size=i[r].split("x"),t=s[0]*s[1]))}return!0}return!1},f8.prototype.setInterstitial=function(){this.type="interstitial",this.ad_types=["interstitial"],this.sizes=["interstitial"],this.interstitial=!0,this.min_width=1,this.min_height=1,this.default_size=[1,1],this.refresh.enabled=!1,this.lazyload.enabled=!1},f8.prototype.googletag=function(){return this.google_tag||(1==properOps.dfp_per_slot?this.google_tag={}:this.google_tag=googletag),void 0===this.google_tag.cmd&&(this.google_tag.cmd=[]),this.google_tag},f8.prototype.buildDfpSizeMapping=function(){this.getElement()&&0<this.sizes.length&&0==this.mapped_dfp_sizes&&(this.googletag().cmd.push(function(){for(var e=[[1,1]],t=0;t<this.sizes.length;t++){var i,r=this.sizes[t];"1x1"!=r&&-1===["400x300","640x480"].indexOf(r)&&((i=r.split("x"))[0]=parseInt(i[0]),i[1]=parseInt(i[1]),isNaN(i[0])||isNaN(i[1])?"fluid"==r&&e.push(r):e.push(i))}this.interstitial?(this.dfp_slot=this.googletag().defineOutOfPageSlot(this.dfpAdUnitPath,this.googletag().enums.OutOfPageFormat.INTERSTITIAL).addService(this.googletag().pubads()),this.dfp_slot&&(this.div_id=this.dfp_slot.getSlotElementId())):ProperMedia.utils.checkOutOfPage(this.dfpAdUnitPath)?this.dfp_slot=this.googletag().defineOutOfPageSlot(this.dfpAdUnitPath,this.div_id).addService(this.googletag().pubads()):this.sticky&&properSpecialOps.sliderHeader?this.dfp_slot=this.googletag().defineSlot(this.dfpAdUnitPath,e,this.div_id).setCollapseEmptyDiv(!0).addService(this.googletag().pubads()):this.dfp_slot=this.googletag().defineSlot(this.dfpAdUnitPath,e,this.div_id).addService(this.googletag().pubads()),this.dfp_slot.setTargeting("proper_slot",this.number),this.sticky&&this.dfp_slot.setTargeting("proper_sticky",this.sticky.toString()),0<Object.keys(this.floors.sizes).length&&Object.keys(this.floors.sizes).map(function(e){var t;-1===this.sizes.indexOf(e)||(t=this.floors.sizes[e])>this.floors.backup&&(t=round_floor(t),this.dfp_slot.setTargeting("proper_floor_"+e,t.toFixed(2).toString()))},this);var s=round_floor(this.floors.backup);this.dfp_slot.setTargeting("proper_floor",s.toFixed(2).toString())}.bind(this)),this.mapped_dfp_sizes=1,this.bids_ready&&!this.dfp_ready&&this.addBidToDfpSlot())},f8.prototype.clearWinningBid=function(){return this.hasWinningBid()&&(0!=this.winning_ad.displayed||this.winning_ad.checkIfExpired()||properAdPool.addBidToPool(this.winning_ad),delete this.winning_ad,this.winning_ad={},this.hasFlexBid()&&this.clearFlexBid()),!0},f8.prototype.hasWinningBid=function(){return this.winning_ad instanceof adObj&&""!==this.winning_ad.bidder&&0<this.winning_ad.price&&this.winning_ad.id},f8.prototype.hasFlexBid=function(){return!this.is_flex_slot&&this.flex_enabled&&this.flex_ad instanceof adObj&&""!==this.flex_ad.bidder&&0<this.flex_ad.price&&this.flex_ad.id},f8.prototype.getWinningBid=function(e,t){e=e??this.ad_types,t=t??this.video_type,this.clearWinningBid();var{flex_ad:e,winning_ad:t}=properAdPool.getWinningBids(this,e,t);return this.winning_ad=t,this.flex_ad=e,this.hasFlexBid()&&properLog.mylog(`FLEX WIN! (${this.name}, bidder=${this.winning_ad?.bidder} + ${this.flex_ad?.bidder}, size=${this.winning_ad?.size}, price=${this.winning_ad?.price} + ${this.flex_ad?.price})`),this.hasWinningBid()},f8.prototype.getRunnerUp=function(e,t){if(!this.hasWinningBid())return 0;e=e??this.ad_types,t=t??this.video_type;var i=properAdPool.ads.filter(e=>e.size===this.winning_ad.size);return properAdPool.getWinningBid(this,e,t,i)?.price??0},f8.prototype.clearWinningAmazonBid=function(){return this.hasWinningAmazonBid()&&(0!=this.winning_amazon_ad.displayed||this.winning_amazon_ad.checkIfExpired()||properAdPool.addAmazonBidToPool(this.winning_amazon_ad),delete this.winning_amazon_ad,this.winning_amazon_ad={}),!0},f8.prototype.hasWinningAmazonBid=function(){return!!(this.winning_amazon_ad instanceof adObj&&""!==this.winning_amazon_ad.bidder&&this.winning_amazon_ad.price&&this.winning_amazon_ad.id)},f8.prototype.getWinningAmazonBid=function(e,t){return e=e??this.ad_types,t=t??this.video_type,this.clearWinningAmazonBid(),properAdPool.getWinningAmazonBid(this,e,t),this.hasWinningAmazonBid()},f8.prototype.clearNonWinningBid=function(e){return this.hasWinningAmazonBid()&&ProperMedia.utils.deepAccess(this,"winning_amazon_ad.id")!==ProperMedia.utils.deepAccess(e,"id")?this.clearWinningAmazonBid():this.hasWinningBid()&&ProperMedia.utils.deepAccess(this,"winning_ad.id")!==ProperMedia.utils.deepAccess(e,"id")&&this.clearWinningBid(),!0},f8.prototype.checkBidsReady=function(){if(properUser.checkAdBlockDetected()&&(!properUser.adblock.deliver_to_adblock||-1!==["multiple","unknown"].indexOf(this.location)))return this.deleteSlot(!0),!1;if(checkKillAllAds()||!this.getElement()||1==this.kill_slot||this.interstitial||this.dfp_ready||this.auction_send_complete||this.lazyload.enabled&&!this.lazyload.inRenderZone)return!1;var e=properAdPool.calcTimeout(),t=ProperMedia.utils.getTimePassed(this.auction_started_ts),t=this.max_timeout-t;return!((0==e&&0==properAdPool.auction_count||0<Object.keys(properAdPool.auctions).length||0==Object.keys(properAdPool.finished_auctions).length)&&!this.max_timeout_met)&&(this.getWinningBid(this.ad_types,this.video_type)||t<e||this.max_timeout_met?(this.bids_ready=1,this.tracking_times.bids_ready_ts=ProperMedia.utils.getTimestampMs(),"display"==this.type&&(this.hasWinningBid()&&-1!==this.ad_types.indexOf(this.winning_ad.type)&&(-1!==["display","native"].indexOf(this.winning_ad.type)||"video"==this.winning_ad.type&&"outstream"==this.winning_ad.video_type)||!this.hasWinningBid()&&(t<e||this.max_timeout_met))?(-1!==this.ad_types.indexOf("video")&&this.video_player instanceof videoPlayer&&this.video_player.removePlayer(),1==this.disable_adx||1==properPage.isolated||0<this.refresh.count&&1==this.refresh.exclude_dfp?this.lazyload.enabled&&!this.lazyload.inRenderZone||(this.videoAdCheck()?this.dispalyVideoAd():showWinningAd(this)&&(this.auction_send_complete=!0)):1==properOps.dfp_per_slot?0==this.dfp_init?this.initDfp():0==this.mapped_dfp_sizes?this.buildDfpSizeMapping():0==this.dfp_ready?this.addBidToDfpSlot():this.dfp_sent&&this.dfp_refreshed||this.dfpDisplayOrRefresh():(0==properPage.dfp_init&&properPage.initDfp(),1==properPage.dfp_init&&(0==this.mapped_dfp_sizes&&this.buildDfpSizeMapping(),1==this.mapped_dfp_sizes&&(0==this.dfp_ready&&this.addBidToDfpSlot(),1==this.dfp_ready&&(0!=this.dfp_sent&&0!=this.dfp_refreshed||this.dfpDisplayOrRefresh()))))):this.videoAdCheck()&&this.dispalyVideoAd(),(this.dfp_ready||this.auction_send_complete)&&(this.clearWaitInterval(),this.clearMaxAuctionTimeout()),!0):(this.clearWinningBid(),!1))},f8.prototype.videoAdCheck=function(){return this.checkVideoInviewLimit()&&(this.hasWinningBid()&&"video"==this.winning_ad.type&&-1!==this.ad_types.indexOf(this.winning_ad.type)||this.hasWinningAmazonBid()&&"video"==this.winning_amazon_ad.type&&-1!==this.ad_types.indexOf(this.winning_amazon_ad.type)||"video"==this.type&&this.max_timeout_met)&&this.video_player&&this.video_player instanceof videoPlayer},f8.prototype.dispalyVideoAd=function(){this.hasFlexSlot()&&this.removeFlexSlot(),this.refresh.enabled=0,this.removeRefreshTimeout(),this.auction_send_complete=!0,this.video_player.removePlayer(),this.video_player.insertPlayer()},f8.prototype.initDfp=function(){if(1==this.dfp_init||1==properPage.isolated)return!1;var e,t=!1;if(this.iframe_window)e=this.iframe_window,t=!0;else if(this.iframe_id){var i=document.getElementById(this.iframe_id);if(!i)return void properLog.mylog("ERROR: "+this.iframe_id+" doesn't exist in the DOM.");this.iframe_window=i.contentWindow,e=i.contentWindow,t=!0}else{const s=document.getElementById(this.div_id);if(!s)return void properLog.mylog("WARNING: "+this.div_id+" doesn't exist in the DOM. This should re-run when proper_display is called");const o=document.createElement("iframe");s.innerHTML="",s.appendChild(o),o.id=this.properIframeId,o.frameBorder=0,o.scrolling="no",o.marginWidth="0",o.marginHeight="0",o.style.overflow="hidden",o.style.border="0px",o.style.width="1px",o.style.height="1px",o.style.verticalAlign="bottom";var r="<html><head><script src='https://securepubads.g.doubleclick.net/tag/js/gpt.js' async><\/script></head><body><div id='"+this.div_id+"'></div></body></html>";o.src='javascript:"'+r+'"',o.contentWindow.document.open(),o.contentWindow.document.write(r),o.contentWindow.document.close(),e=o.contentWindow,this.iframe_window=e}t&&((r=document.createElement("script")).async=!0,r.type="text/javascript",t="https:"==document.location.protocol,r.src=(t?"https:":"http:")+"//securepubads.g.doubleclick.net/tag/js/gpt.js",e.document.getElementsByTagName("head")[0].appendChild(r)),ProperMedia.utils.deepAccess(properOps,"confiant.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"confiant.enabled")?confiantWrapper.loadDFPTag(e):(ProperMedia.utils.deepAccess(properOps,"adlightning.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.enabled"))&&adLightningWrapper.loadDFPTag(e),e.googletag=e.googletag||{},this.google_tag=e.googletag||{},void 0===this.googletag().cmd&&(this.googletag().cmd=[]),this.googletag().cmd.push(function(){gdprEnforcement.deviceAccessEnforcement(755,"gam")||(properLog.mylog("DFP: disable personalized GPT ads"),this.googletag().pubads().setPrivacySettings({nonPersonalizedAds:!0})),uspConsent.restrictDataProcessing&&this.googletag().pubads().setPrivacySettings({restrictDataProcessing:!0}),this.googletag().pubads().addEventListener("slotOnload",function(e){var t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),e=properPage.getSlotFromPageObject(t);properLog.mylog("DFP slotOnload: "+t),e&&e.dispatchCustomEvent("proper-ads-fired",{cpm:ProperMedia.utils.deepAccess(e,"displayed_ad.price"),size:ProperMedia.utils.deepAccess(e,"displayed_ad.size"),ad_type:e.ad_type})}),this.googletag().pubads().addEventListener("impressionViewable",function(e){var t=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),e=e.slot.getAdUnitPath(),e=properPage.getSlotFromPageObject(t)||properPage.getSlotFromPageObjectByAdUnitPath(e);e&&(properLog.mylog("DFP impressionViewable: "+t),e.dispatchCustomEvent("proper-impression-viewable",{cpm:ProperMedia.utils.deepAccess(e,"displayed_ad.price"),size:ProperMedia.utils.deepAccess(e,"displayed_ad.size"),ad_type:e.ad_type}))}),this.googletag().pubads().addEventListener("slotRenderEnded",TraceKit.wrap(function(e){var t=e.slot.getSlotElementId(),i=ProperMedia.utils.extractSlotName(t),t=properPage.getSlotFromPageObject(i);properLog.mylog("DFP slotRenderEnded: "+i),t&&(t.tracking_times.dfp_returned_ts=ProperMedia.utils.getTimestampMs(),e.advertiserId!==properOps.proper_advertiser&&e.advertiserId!=properOps.amazon_advertiser&&(e.isEmpty?properOps.thirdPartyAdManager&&log_unfilled(t):(proper_render_dfp(i,e),proper_inview(e.isEmpty,i,e.size.join("x"),e.creativeId,e.lineItemId,e.advertiserId))),(!t.sticky&&ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.enabled")&&ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.reportAd")||ProperMedia.utils.deepAccess(properOps,"adlightning.enabled")&&ProperMedia.utils.deepAccess(properOps,"adlightning.reportAd"))&&adLightningWrapper.addReportAd(e))})),this.googletag().pubads().addEventListener("slotOnload",TraceKit.wrap(function(e){try{var t,i,r=ProperMedia.utils.extractSlotName(e.slot.getSlotElementId()),s=properPage.getSlotFromPageObject(r);properLog.mylog("DFP slotOnload: "+r),!s||(t=s.getContentDocument())&&t.getElementById(s.dfpIframeId)&&((i=t.getElementById(s.dfpIframeId).contentWindow.document)&&(i.getElementById("common_15click_overlay")||i.getElementById("common_15click_anchor"))&&sendError(new Error("Detected Google Confirmed Click: "+s.dfp_name+" | "+ProperMedia.utils.deepAccess(s,"displayed_ad.size"))))}catch(e){properLog.mylog("Error Detecting Google Confirmed Click: "+r)}})),setDfpPageTargeting(this.googletag().pubads()),this.googletag().pubads().setPrivacySettings({childDirectedTreatment:!!ProperMedia.utils.deepAccess(properSpecialOps,"coppa")}),this.googletag().pubads().disableInitialLoad(),this.googletag().pubads().setPublisherProvidedId(properUser.pubcid),this.googletag().pubads().enableSingleRequest(),this.googletag().enableServices(),this.dfp_enabled_services=!0}.bind(this)),this.dfp_init=1,this.buildDfpSizeMapping()},f8.prototype.addBidToDfpSlot=function(){this.googletag().cmd.push(function(){if(this.dfp_ready||!this.mapped_dfp_sizes||!this.isSlotDefinedInGPT())return!1;0<this.dfp_slot.getTargeting("sovrn_amznbid").length&&this.dfp_slot.clearTargeting("sovrn_amznbid"),0<this.dfp_slot.getTargeting("sovrn_amzniid").length&&this.dfp_slot.clearTargeting("sovrn_amzniid"),!this.hasWinningBid()||"video"===ProperMedia.utils.deepAccess(this,"winning_ad.type")&&"outstream"!=ProperMedia.utils.deepAccess(this,"winning_ad.video_type")?(this.dfp_bid_price=roundPriceToDfpBucket(ProperMedia.utils.deepAccess(this,"floors.backup")),0<this.dfp_slot.getTargeting("proper_bid").length&&this.dfp_slot.clearTargeting("proper_bid"),0<this.dfp_slot.getTargeting("proper_bidder").length&&this.dfp_slot.clearTargeting("proper_bidder"),properLog.mylog("Floor added to DFP request ( Floor, "+this.name+") = "+this.dfp_bid_price)):(this.hasFlexBid()?this.winning_ad.dfp_price=roundPriceToDfpBucket(parseFloat(this.winning_ad.dfp_price)+parseFloat(this.flex_ad.dfp_price)):this.winning_ad.dfp_price=roundPriceToDfpBucket(parseFloat(this.winning_ad.price)),this.dfp_bid_price=this.winning_ad.dfp_price,properLog.mylog("Bid added to DFP request ("+this.winning_ad.bidder+", "+this.name+"@"+this.winning_ad.size+") = "+this.winning_ad.dfp_price),this.dfp_slot.setTargeting("proper_bidder",properOps.site_name+"_"+this.winning_ad.bidder),this.dfp_slot.setTargeting("proper_bid",this.dfp_bid_price.toString())),!this.getWinningAmazonBid()||"video"===ProperMedia.utils.deepAccess(this,"winning_amazon_ad.type")&&"outstream"!=ProperMedia.utils.deepAccess(this,"winning_amazon_ad.video_type")||(properLog.mylog("Amazon Bid added to DFP request ("+this.name+"@"+this.winning_amazon_ad.size+") = "+this.winning_amazon_ad.price),this.dfp_slot.setTargeting("sovrn_amznbid",ProperMedia.utils.deepAccess(this,"winning_amazon_ad.price")),this.dfp_slot.setTargeting("sovrn_amzniid",ProperMedia.utils.deepAccess(this,"winning_amazon_ad.ad_details.amzniid")),this.winning_amazon_ad.dfp_price=ProperMedia.utils.deepAccess(this,"winning_amazon_ad.price"),this.dfp_bid_price=_0x4f6067(this)),this.customGamTargeting.length&&(this.customGamTargeting.forEach(function(e){this.dfp_slot.clearTargeting(e)},this),this.customGamTargeting=[]),this.getGamTargetingAttr(),this.gamTargeting.key&&""!==this.gamTargeting.value&&void 0!==this.gamTargeting.value&&(properLog.mylog(`DFP request slot targeting ${this.name}: ${this.gamTargeting.key} = ${this.gamTargeting.value}`),this.dfp_slot.setTargeting(this.gamTargeting.key,this.gamTargeting.value),this.customGamTargeting.push(this.gamTargeting.key)),void 0===this.refresh.count?this.dfp_slot.setTargeting("refresh_count",0):this.dfp_slot.setTargeting("refresh_count",this.refresh.count.toString()),this.dfp_ready=1,this.getElement()&&this.dfpDisplayOrRefresh()}.bind(this))},f8.prototype.dfpDisplayOrRefresh=function(){this.googletag().cmd.push(function(){this.dfp_sent||(this.dfp_sent=1,this.googletag().display(this.div_id),properLog.mylog("DFP display called: "+this.name)),1==properOps.dfp_per_slot?this.dfpSraCall():ProperMedia.utils.deepAccess(properPage,"sra_settings.slot_queue."+this.name)||(properPage.sra_settings.slot_queue[this.name]=this,clearTimeout(properPage.sra_settings.timeout_handler),properPage.sra_settings.timeout_handler=null,properPage.sra_settings.timeout_handler=properSetTimeout.setTimeout.call(properPage,function(){properPage.dfpSraCall()},properSpecialOps.sra_timoeut_ms||properPage.sra_settings.timeout_ms))}.bind(this))},f8.prototype.dfpSraCall=function(){this.googletag().cmd.push(function(){1==properSpecialOps.update_correlator&&0==properPage.dfp_correlator&&1<properPage.spa_settings.page_number&&(this.googletag().pubads().updateCorrelator(),properPage.dfp_correlator=!0,properLog.mylog("Correlator updated for page: "+properPage.spa_settings.page_number)),this.tracking_times.dfp_sent_ts=ProperMedia.utils.getTimestampMs(),properLog.mylog("DFP refresh called: "+this.name),this.dfp_refreshed=1,this.auction_send_complete=!0,this.googletag().pubads().refresh([this.dfp_slot])}.bind(this))},f8.prototype.setWaitInterval=function(){properLog.mylog("Set wait interval for "+this.name+" ( "+this.wait_interval+" )");var e=this;null==this.wait_interval_handle&&(this.wait_interval_handle=properSetInterval.setInterval.call(e,function(){e.checkBidsReady()},e.wait_interval))},f8.prototype.clearWaitInterval=function(){clearInterval(this.wait_interval_handle),this.wait_interval_handle=null},f8.prototype.setMaxAuctionTimeout=function(){var e=this;null==this.max_timeout_handle&&(this.auction_started_ts=ProperMedia.utils.getTimestampMs(),this.max_timeout_handle=properSetTimeout.setTimeout.call(e,function(){e.max_timeout_met=!0,e.clearWaitInterval(),e.clearMaxAuctionTimeout(),e.checkBidsReady()},e.max_timeout))},f8.prototype.clearMaxAuctionTimeout=function(){clearTimeout(this.max_timeout_handle),this.max_timeout_handle=null},f8.prototype.setRefreshInterval=function(){if(0==this.refresh.enabled||1==ProperMedia.utils.deepAccess(this,"displayed_ad.displayed")&&1==ProperMedia.utils.deepAccess(properOps,"bidder_info."+this.displayed_ad.bidder+".dont_refresh"))return this.refresh.enabled=0,!1;var e=Math.max(this.refresh.interval,this.refresh.min_interval);if(-1!==this.refresh.inview_interval){if(!this.viewability.viewable)return!1;e=Math.max(0,this.refresh.inview_interval-this.viewability.total_time_inview,e-this.timeSinceDisplayed())}else e=Math.max(0,e-this.timeSinceDisplayed());return this.refresh.current_interval=e,this.addRefreshTimeout(this.refresh.current_interval),!0},f8.prototype.addRefreshTimeout=function(e){var t=this;this.removeRefreshTimeout(),this.refresh_handler=properSetTimeout.setTimeout.call(t,function(){t.removeRefreshTimeout(),t.refreshSlot()},e),properLog.mylog(this.name+": Starting refresh timer. ms = "+e)},f8.prototype.timeSinceDisplayed=function(){return 0==this.last_displayed_ts?0:Date.now()-this.last_displayed_ts},f8.prototype.removeRefreshTimeout=function(){this.refresh_handler&&(properLog.mylog(this.name+": Removing refresh timer."),clearTimeout(this.refresh_handler),this.refresh_handler=null)},f8.prototype.resetBidData=function(){this.last_displayed_ts=0,this.bids_ready=0,this.dfp_ready=0,this.dfp_refreshed=0,this.dfp_bid_price=0,this.winning_ad={},this.exclude_advertiser=[],this.advertiserId=0,this.auction_started_ts=0,this.max_timeout_met=!1,this.auction_send_complete=!1,this.adl_blocked=!1,this.viewability.entered_inview_ts=this.viewability.viewable?ProperMedia.utils.getTimestampMs():0,this.viewability.total_time_inview=0,this.clearWaitInterval(),this.clearMaxAuctionTimeout(),this.removeRefreshTimeout()},f8.prototype.refreshSlot=function(e){return properUser.checkAdBlockDetected()&&(this.refresh.enabled=0),!!(this.refresh.count<this.refresh.max&&this.refresh.enabled||e)&&(!(this.lazyload.enabled&&!this.lazyload.inFetchZone)&&(properLog.mylog("Refreshing slot: "+this.name),this.refresh.count++,this.resetBidData(),this.checkBidsReady()||(this.setWaitInterval(),this.setMaxAuctionTimeout()),!0))},f8.prototype.getTimeInview=function(){return 0==this.viewability.entered_inview_ts?0:Date.now()-this.viewability.entered_inview_ts},f8.prototype.viewabilityChange=function(e){return e.inDeleteZone?(this.deleteSlot(!0),!1):(this.viewability.viewable===e.viewable&&this.viewability.activeTab===e.activeTab||(properLog.mylog(this.name+": Viewability Change. visible = "+e.viewable+" Active Tab = "+e.activeTab),this.viewability.viewable=e.viewable,this.displayed&&this.refresh.enabled&&this.refresh.count<this.refresh.max&&e.activeTab&&(e.viewable&&-1!==this.refresh.inview_interval||-1==this.refresh.inview_interval)?this.setRefreshInterval():this.removeRefreshTimeout(),e.viewable?(this.dispatchCustomEvent("inview"),this.viewability.entered_inview_ts=ProperMedia.utils.getTimestampMs(),"video"==ProperMedia.utils.deepAccess(this,"displayed_ad.type")&&properPage.incrementVideoPlayerCount(this,"inview")):(this.dispatchCustomEvent("not-inview"),this.viewability.total_time_inview+=this.getTimeInview(),"video"==ProperMedia.utils.deepAccess(this,"displayed_ad.type")&&properPage.decrementVideoPlayerCount(this,"inview")),this.viewability.activeTab=e.activeTab),this.viewability.viewable||this.getElement()?(this.lazyload.enabled&&(this.lazyload.inFetchZone!==e.inFetchZone&&(properLog.mylog(this.name+": LazyLoad Change. inFetchZone = "+e.inFetchZone),this.lazyload.inFetchZone=e.inFetchZone,this.lazyload.inFetchZone?(this.wait_interval_handle||this.max_timeout_met||this.setWaitInterval(),this.max_timeout_handle||this.max_timeout_met||this.setMaxAuctionTimeout()):this.clearWaitInterval()),this.lazyload.inRenderZone!==e.inRenderZone&&(properLog.mylog(this.name+": LazyLoad Change. inRenderZone = "+e.inRenderZone),this.lazyload.inRenderZone=e.inRenderZone,this.lazyload.inRenderZone&&this.checkBidsReady())),!0):(this.deleteSlot(!0),!1))},f8.prototype.dispatchCustomEvent=function(e,t){t=ProperMedia.utils.mergeObject({slot:this.name,event:e},t=t||{}),t=new CustomEvent("properEvents",{detail:t});window.dispatchEvent(t)},f8.prototype.getGPTSlots=function(){var e=[];return 0==properPage.isolated&&this.googletag().cmd.push(function(){e=this.googletag().pubads().getSlots().map(function(e){return e.getSlotElementId()})}.bind(this)),e},f8.prototype.isSlotDefinedInGPT=function(){return!!this.div_id&&-1!==this.getGPTSlots().indexOf(this.div_id)},f8.prototype.removeCreative=function(){var e;0<this.refresh.count&&ProperMedia.utils.deepAccess(this,"displayed_ad.bidder")&&(e=bidderToAdapterName(this.displayed_ad.bidder),void 0!==bidAdapters[e]&&"function"==typeof bidAdapters[e].removeCreative&&bidAdapters[e].removeCreative(this))},f8.prototype.closeSliderSlot=function(){var e;return this.slider_settings.keep_on_close||(this.deleteSlot(!1),(e=window.top.document.getElementById(this.div_id))&&(e.innerHTML="")),!0},f8.prototype.removeElemFromDOM=function(){try{var e=this.sticky?window.top.document.getElementsByClassName("proper-ad-unit ad-sticky "+this.name)[0]:window.top.document.getElementById(this.div_id);if(e&&((e=-1!==e.parentNode.className.indexOf(properOps.slot_wrapper_class)?e.parentNode:e).parentNode.removeChild(e),this.is_flex_slot)){var t=this.dynamic?.cssselector;const i=window.top.document.querySelector(t);i?.parentNode.removeChild(i)}}catch(e){properLog.mylog("Error deleting slot: "+this.name)}},f8.prototype.deleteSlot=function(e){try{0==this.kill_slot&&(this.kill_slot=!0,this.refresh.enabled=0,-1!==this.ad_types.indexOf("video")&&(properPage.decrementVideoPlayerCount(this,"possible"),"video"==ProperMedia.utils.deepAccess(this,"displayed_ad.type")&&this.video_player instanceof videoPlayer&&this.video_player.removePlayer()),this.resetBidData(),this.lazyload.enabled=0,this.destroyDfpSlot(),properPage.viewability_tracker.removeElement(this.div_id),e&&this.getElement()&&this.removeElemFromDOM(),properPage.getSlotFromPageObject(this.name,[this.type])&&delete properPage.slots[this.type][this.name],properLog.mylog("Deleted Slot: "+this.name))}catch(e){console.error(e)}},f8.prototype.destroyDfpSlot=function(){0==properPage.isolated&&this.isSlotDefinedInGPT()&&(this.googletag().cmd.push(function(){this.googletag().destroySlots([this.dfp_slot])}.bind(this)),this.dfp_slot={},this.dfp_init=0,this.dfp_ready=0,this.dfp_sent=0,this.dfp_refreshed=0,this.mapped_dfp_sizes=0)},f8.prototype.getDefinedSizes=function(){return this.defined_sizes.length||this.sizes.forEach(e=>{e=ProperMedia.utils.getHeightAndWidth(e);e&&this.defined_sizes.push(e)}),this.defined_sizes},f8.prototype.getFlexMap=function(){if(!this.flex_map){const o=this.getDefinedSizes();this.flex_map=o.reduce((e,[i,r])=>{var t,s=o.find(([e,t])=>2*+i<=+e&&+r<=+t||2*+r<=+t&&+i<=+e);return s&&([t,s]=s,t=Math.floor(t/i),s=Math.floor(s/r),e[`${i}x${r}`]=Math.max(t,s)),e},{})}return this.flex_map},f8);function f8(e,t,i,r){this.name="",this.dfp_name="",this.number=0,this.dfp_id=0,this.mcm_type="mcm",this.location="unknown",this.type="",this.div_id="",this.max_tier=0,this.size="0x0",this.sizes=[],this.defined_sizes=[],this.default_size=[0,0],this.min_width=0,this.min_height=0,this.specified_min_height=!1,this.interstitial=!1,this.last_displayed_ts=0,this.dfp_slot={},this.dfp_init=0,this.dfp_ready=0,this.dfp_sent=0,this.dfp_refreshed=0,this.google_tag=null,this.mapped_dfp_sizes=0,this.dfp_enabled_services=!1,this.auction_send_complete=!1,this.winning_ad={},this.displayed_ad={},this.displayed=0,this.delay_handle=null,this.auction_started_ts=null,this.max_timeout_handle=null,this.max_timeout_met=!1,this.max_timeout=1200,this.wait_interval=50,this.wait_interval_handle=null,this.min_time_on_page=2e3,this.rebuild_timeout_handle=null,this.exclude_advertiser=[],this.advertiserId=0,this.report_ad_tool=0,this.video_player=null,this.video_type="",this.ad_types=[],this.adl_blocked=!1,this.disable_adx=!1,this.gamTargeting={},this.customGamTargeting=[],this.url_restricted={values:[],enabled:!1},this.page_restricted_depth={enabled:!1},this.is_flex_slot=!1,this.flex_enabled=!1,this.flex_ad=null,this.flex_map=null,this.flex_name=null,this.sticky=0,this.slider=0,this.sticky_settings={brand:0,close_btn:0,disable_on_close:0,freq_cap_enabled:0,freq_cap:0,position:"right"},this.slider_settings={close_button:!0,adjustment_size:.7,breakpoint:480,location:{desktop:["right","bottom"],mobile:["right","bottom"]},keep_on_close:!1},this.scrollable={enabled:!1,percentage:10,dynamic_occurences:{enabled:!1,incidences_to_target:[]}},this.refresh={enabled:0,max:5,count:0,interval:6e4,min_interval:15e3,current_interval:6e4,inview_interval:15e3,exclude_dfp:0},this.floors={backup:.15,sizes:{}},this.lazyload={enabled:1,inFetchZone:!1,inRenderZone:!1,fetchMarginPercent:0,renderMarginPercent:0},this.autoDelete={enabled:!1,inDeleteZone:!1,autoDeleteMarginPercent:200},this.viewability={viewable:!1,activeTab:!0,entered_inview_ts:0,total_time_inview:0},this.dynamic={enabled:!1,cssplacement:"after",cssselector:"",instance_number:0,child_name:"",css_ad:"",css_page:""},this.tracking_times={built_ts:0,bids_ready_ts:0,dfp_sent_ts:0,dfp_returned_ts:0,creative_on_page:0},this.advertisement_disclosure={enabled:!1,location:"below"},this.kill_slot=!1,this.buildSlot(e,t,i,r)}var videoPlayer=function(e,t,i){this.slot=null,this.auto_insert=!1,this.auto_inserted=!1,this.player_settings={id:"",div_id:"",dfp_ad_unit:"",video_id:"",video_type:"",number_of_ads:10,autoplay:1,backfill:!1,backfill_id:"",small_player:"desktop_ad",small_player_bottom:100,ad_failure_limit:5,vast_timeout:5e3,no_ads_no_player:!1,horizontal_slider:"right",vertical_slider:"bottom"},this.getElement=function(){return top.document.getElementById(this.player_settings.div_id)},this.init=function(e,t,i){this.slot=i,this.checkAutoInsert(),this.setPlayerSettings(e,t.player_settings)},this.checkAutoInsert=function(){var e=top.document.getElementById(this.slot.div_id);e&&(e.classList.contains("propervideo-main_player_container")||e.hasAttribute("data-video-id"))?(this.div_id=this.slot.div_id,this.auto_insert=!1):this.auto_insert=!0},this.setPlayerSettings=function(e,t){this.slot.slider&&(i=properDevice.isMobile()?"mobile":"desktop",i=ProperMedia.utils.deepAccess(this.slot,"slider_settings.location."+i)||["right","bottom"],t.horizontal_slider=i[0]||"right",t.vertical_slider=i[1]||"bottom",t.close_button=ProperMedia.utils.deepAccess(this.slot,"slider_settings.close_button"),t.keep_on_close=ProperMedia.utils.deepAccess(this.slot,"slider_settings.keep_on_close"));var i=this.player_settings.div_id||e+"-"+ProperMedia.utils.makeid(10);(t=ProperMedia.utils.mergeObject({},this.player_settings,t||{},{id:e,div_id:i,dfp_id:this.slot.dfp_id})).autoplay=t.autoplay?1:0,this.player_settings=ProperMedia.utils.deepCopy(t)},this.insertPlayer=function(){var e,t=top.document.getElementById(this.slot.div_id);this.slot.slider&&$(".slider_unit #close_button").obj&&$(".slider_unit #close_button").remove(),t&&this.auto_insert&&(document.getElementById(this.player_settings.div_id)?(window.top.propervideotag=window.top.propervideotag||[],this.auto_inserted&&"outstream"==this.player_settings.video_type?window.top.propervideotag.push(function(){window.top.propervideo_display(this.player_settings.div_id,this.slot.name,properOps.site_name,"outstream_restart")}.bind(this)):window.top.propervideotag.push(function(){window.top.propervideo_display(this.player_settings.div_id,this.slot.name,properOps.site_name)}.bind(this))):(this.slot.getElement().innerHTML="",!properOps.dfp_per_slot||(e=top.document.getElementById(this.slot.div_id+"-iframe"))&&(e.style.width="0px",e.style.height="0px"),e=this.buildPlayerElem(),t.prepend(e),this.auto_inserted=!0)),properPage.incrementVideoPlayerCount(this.slot,"onpage"),this.slot.viewability.viewable&&properPage.incrementVideoPlayerCount(this.slot,"inview")},this.removePlayer=function(){try{var e=top.document.getElementById(this.player_settings.div_id);e&&(this.auto_inserted=!1,e.remove()),this.destroyVideoPlayerObj(),properPage.decrementVideoPlayerCount(this.slot,"onpage"),this.slot.viewability.viewable&&properPage.decrementVideoPlayerCount(this.slot,"inview")}catch(e){}},this.destroyVideoPlayer=function(){this.removePlayer();var e=ProperMedia.utils.deepAccess(properOps,"ad_slots."+this.slot.type+"."+this.slot.name)||{};this.slot.setRefresh(e),this.slot.refreshSlot()},this.destroyVideoPlayerObj=function(){if("undefined"!=typeof ProperMediaVideo&&ProperMedia.utils.deepAccess(ProperMediaVideo,"ad_project.applications")&&ProperMedia.utils.deepAccess(ProperMediaVideo,"ad_project.applications").length)for(var e=0;e<ProperMediaVideo.ad_project.applications.length;e++)if(ProperMedia.utils.deepAccess(ProperMediaVideo,"ad_project.applications."+e+".video_player.destroy_player")&&ProperMedia.utils.deepAccess(ProperMediaVideo,"ad_project.applications."+e+".div_name")==this.player_settings.div_id){ProperMediaVideo.ad_project.applications[e].video_player.destroy_player();break}},this.buildPlayerElem=function(){if("instream"==this.player_settings.video_type){(t=document.createElement("div")).id=this.player_settings.div_id,t.setAttribute("data-video-id",this.player_settings.video_id),t.setAttribute("data-small-player",this.player_settings.small_player),this.player_settings.number_of_ads&&t.setAttribute("data-number-of-ads",this.player_settings.number_of_ads),this.player_settings.autoplay&&t.setAttribute("data-autoplay",this.player_settings.autoplay?1:0);var e='var window.top.propervideotag = window.top.propervideotag || []; window.top.propervideotag.push(function(){ window.top.propervideo_display("'+this.player_settings.div_id+'", "'+this.slot.name+'", "'+this.slot.name+'"); });';return(i=document.createElement("script")).type="text/javascript",i.appendChild(document.createTextNode(e)),t.appendChild(i),t}if("outstream"==this.player_settings.video_type){var t;(t=document.createElement("div")).id=this.player_settings.div_id,t.setAttribute("data-auto-injected",!0),t.setAttribute("data-video-id",properOps.site_name+"-"+this.player_settings.video_type),t.setAttribute("data-outstream",this.player_settings.video_type),t.setAttribute("data-small-player",this.player_settings.small_player),t.setAttribute("data-backfill",this.player_settings.backfill),this.player_settings.backfill&&this.player_settings.backfill_id&&t.setAttribute("data-backfill-id",this.player_settings.backfill_id),this.player_settings.number_of_ads&&t.setAttribute("data-number-of-ads",this.player_settings.number_of_ads),this.player_settings.autoplay&&t.setAttribute("data-autoplay",this.player_settings.autoplay?1:0);var i,e='window.top.propervideotag = window.top.propervideotag || []; window.top.propervideotag.push(function(){ window.top.propervideo_display("'+this.player_settings.div_id+'", "'+this.slot.name+'", "'+properOps.site_name+'", "outstream_restart"); });';return(i=document.createElement("script")).type="text/javascript",i.appendChild(document.createTextNode(e)),t.appendChild(i),t}},this.adSuccessCallback=function(){console.log("adSuccessCallback")},this.adErrorCallback=function(){console.log("adErrorCallback")},this.init(e,t,i)},bidObj=(bk.prototype.incrementRequestsSent=function(e){this.sent+=isNaN(parseInt(e))?0:parseInt(e),this.auction.incrementRequestsSent(e)},bk.prototype.incrementBidResponseCount=function(e){this.returned+=isNaN(parseInt(e))?0:parseInt(e),this.auction.incrementBidResponseCount(e)},bk.prototype.logBidResponse=function(e){var t=bidderToAdapterName(this.bidder),i="s2s"==t?"s2s":"header",r=ProperMedia.utils.deepAccess(properOps,"bidder_info."+this.bidder+".rev_share")||ProperMedia.utils.deepAccess(bidAdapters,t+".bidderInfo.rev_share")||1;ProperMedia.utils.deepAccess(properOps,"bidders."+i+"."+this.bidder+".account_overrides.enabled")&&ProperMedia.utils.deepAccess(properOps,"bidders."+i+"."+this.bidder+".account_overrides.rev_share")&&(r=Math.round(ProperMedia.utils.deepAccess(properOps,"bidders."+i+"."+this.bidder+".account_overrides.rev_share"))/100),e.pub_demand=!!ProperMedia.utils.deepAccess(properOps,"bidders."+i+"."+this.bidder+".account_overrides.enabled"),r<1&&ProperMedia.utils.isNumber(e.price)&&(e.price=parseFloat(e.price)*parseFloat(r)),"a9"!=this.bidder&&"a9"!=t||!ProperMedia.utils.isStr(e.price)?e.price&&ProperMedia.utils.isNumber(e.price)&&(e.dfp_price=roundPriceToDfpBucket(e.price)):e.price=e.price.replace(/(o_|v_)/,""),e.price&&!e.nobid&&"display"==e.type&&e.adcode||"video"==e.type&&e.vast_tag||"native"==e.type&&Object.keys(e.native).length?(this.responses.push(ProperMedia.utils.deepCopy(e)),this.auction.logBidResponse(e,this),properLog.log_bid(e)):this.logNoBidResponse(e)},bk.prototype.logNoBidResponse=function(e){this.responses_no_bid.push(e),properLog.log_bid(e)},bk.prototype.logBidResponseError=function(e){this.response_errors.push(e)},bk);function bk(e,t,i,r){this.bidder=e,this.auction=r,this.sent=0,this.returned=0,this.requests=t,this.slot_requests=i,this.responses=[],this.responses_no_bid=[],this.response_errors=[]}var adObj=(ok.prototype.timePassed=function(){return(new Date).getTime()-this.received_ts},ok.prototype.checkIfExpired=function(){return this.timePassed()>this.ttl},ok.prototype.timeTillExpiration=function(){return this.ttl-this.timePassed()},ok.prototype.onBidWon=function(e){try{var t,i,r,s,o,a,n,d,p=bidderToAdapterName(this.bidder);ProperMedia.utils.deepAccess(bidAdapters,p+".onBidWon")&&bidAdapters[p].onBidWon(this,e),"native"==this.type&&fireNativeTrackers("impression",this),"1x1"!=this.size&&"native"!=this.type&&!properOps.native_sizes[this.size]||(t=e.getContentDocument())&&(i=window.top.document.getElementById(e.div_id).parentNode.parentNode,r=getComputedStyle(i),s=parseInt(r.marginTop),o=parseInt(r.marginBottom),h=parseInt(i.offsetHeight),a=h+s+o,(n=window.top.document.getElementById(e.properIframeId))&&(n.style.height=a+"px"),(d=t.getElementById(e.dfpIframeId))&&(d.style.height=a+"px"))}catch(e){}},ok);function ok(e){this.id=e.id||ProperMedia.utils.generateUUID(),this.type=e.type||"display",this.gross=e.gross||0,this.price=e.price||0,this.displayed=e.displayed||0,this.dfp_price=e.dfp_price||0,this.floor=e.floor||0,this.bidder=e.bidder||"",this.size=e.size||"1x1",this.adcode=e.adcode||"",this.nurl=e.nurl||"",this.burl=e.burl||"",this.vast_tag=e.vast_tag||"",this.vast_type=e.vast_type||"",this.vpaid=e.vpaid||!1,this.video_type=e.video_type||"",this.tag_id=e.tag_id||"",this.ad_details=e.ad_details||{},this.request_url=e.request_url||"",this.response=e.response||{},this.response_ms=e.response_ms||0,this.received_ts=e.received_ts||0,this.ttl=e.ttl||12e4,this.dealid=e.dealid||"",this.cid=e.cid||"",this.crid=e.crid||"",this.adid=e.adid||"",this.adomain=e.adomain||[],this.cat=e.cat||[],this.attr=e.attr||[],this.ext=e.ext||{},this.native=e.native||{},this.nobid=e.nobid||!1,this.pub_demand=e.pub_demand||!1,this.target_slot=e.target_slot||!1}var deviceObj=function(){this.browser="",this.browser_version="",this.browser_group="",this.device_type="",this.os="",this.os_group="",this.init=function(){var t={browser:{IE:"Explorer","Chrome Headless":"Chrome","Chrome WebView":"Chrome"},device:{console:"desktop"}};"undefined"!=typeof UAParser&&!function(){var e=(new UAParser).getResult();this.browser=e.browser.name,e.browser.version&&(this.browser_version=e.browser.version),this.browser_group=e.browser.name,void 0!==t.browser&&void 0!==t.browser[this.browser_group]&&(this.browser_group=t.browser[this.browser_group]),this.device_type=e.device.type,this.device_type||(this.device_type="desktop"),void 0!==t.device&&void 0!==t.device[this.device_type]&&(this.device_type=t.device[this.device_type]),this.os=e.os.name,e.os.version&&(this.os+=" "+e.os.version),this.os_group=e.os.name}.bind(this)(),window.device={browser:this.browser,browser_group:this.browser_group,device_type:this.device_type,os:this.os,os_group:this.os_group}},this.isMobile=function(){return"mobile"==this.device_type},this.init()},userIds=function(){var o="cookie",a="localstorage";PBJS_USER_ID_OPTOUT_NAME="_pbjs_id_optout";var n={},e=[],i=[],r={},d={},t=!1,s=!1,p=50,l=null,c=null,u=0,g={moduleType:"core",moduleName:"userid"};function m(){var e;t||(properUser.sovrn_sync_done?(t=!0,((e=properOps.userIds)&&e.identityAdapters&&Object.keys(e.identityAdapters).length?function(){var e=ProperMedia.utils.objectValues(ProperMedia.utils.deepAccess(properOps,"userIds.identityAdapters")||{});if(e.length){var t=gdprEnforcement.userIdEnforcement(e);if(!t.hasValidated&&!gdprConsentModule.hasPurpose1Consent())return properLog.mylog("User Ids - gdpr permission not valid for local storage or cookies, exit module");e=t.submodules||[];for(var i=0;i<e.length;i++){var r,s=e[i];s.name&&userIdAdapters[s.name]?(r=userIdAdapters[s.name],s.config&&ProperMedia.utils.isPlainObject(s.config)&&ProperMedia.utils.mergeObject(r.config,s.config),s.storage&&ProperMedia.utils.isPlainObject(s.storage)&&ProperMedia.utils.mergeObject(r.storage,s.storage),r.config.enabled&&(n[s.name]=r),ProperMedia.utils.deepAccess(n,s.name+".initialize")&&ProperMedia.utils.isFn(n[s.name].initialize)&&n[s.name].initialize(d)):properLog.mylog("Coudln't find identityAdapter with name: "+s.name)}0<Object.keys(n).length?consentManager.ready(function(){Object.keys(n).forEach(function(e){!function(e){{var t,i,r,s,o;e.storage?(t=e.storage,i=_(t,void 0),r=!1,"number"==typeof t.refreshInSeconds&&(s=new Date(_(t,"last")),r=s&&Date.now()-s.getTime()>1e3*t.refreshInSeconds),!i||r?o=e.getId(i):ProperMedia.utils.isFn(e.extendId)&&(o=e.extendId(i)),ProperMedia.utils.isPlainObject(o)&&(o.id&&(b(t,o.id),i=o.id),ProperMedia.utils.isFn(o.callback)&&(e.callback=o.callback,u++)),i&&(e.idObj=e.decode(i))):e.config.value?e.idObj=e.config.value:(o=e.getId(),ProperMedia.utils.isPlainObject(o)&&(ProperMedia.utils.isFn(o.callback)&&(e.callback=o.callback,u++),o.id&&(e.idObj=e.decode(o.id))))}}(n[e])}),l=properSetTimeout.setTimeout(y,p),0<u?Object.keys(n).forEach(function(e){var t=n[e];ProperMedia.utils.isFn(t.callback)&&t.callback(function(e){e?(t.storage&&b(t.storage,e),t.idObj=t.decode(e)):properLog.mylog("UserID: "+t.name+" - request id responded with an empty value"),(0==--u?y:f)(),t.callback=void 0})}):y()}):y()}}:y)()):properLog.mylog("UserIds: Wait for Sovrn Hashed Email Matching."))}function h(){return d.emailHashes||(d.emailHashes=_({gvlid:13,type:"localstorage",name:"sovrn-hem",expiresInDays:7}),d.emailHashes&&b({gvlid:13,type:"localstorage",name:"sovrn-hem",expiresInDays:7},d.emailHashes)),d.emailHashes||!1}function _(e,t){var i,t=t?e.name+"_"+t:e.name;try{var r,s={gvlid:e.gvlid,moduleName:e.name||"userid"};e.type===o?i=decodeURIComponent(properStorage.getCookie(t,s)||""):e.type===a&&(""===(r=properStorage.getDataFromLocalStorage(e.name+"_exp",s))?i=properStorage.getDataFromLocalStorage(t,s):r&&0<new Date(r).getTime()-Date.now()&&(i=decodeURIComponent(properStorage.getDataFromLocalStorage(t,s)))),"string"==typeof i&&"{"===(i=i.trim()).charAt(0)&&(i=ProperMedia.utils.safeJsonParse(i))}catch(e){properLog.mylog(e)}return i}function b(e,t){try{if(!t)return;var i={gvlid:e.gvlid,moduleName:e.name||"userid"},r=ProperMedia.utils.isPlainObject(t)?JSON.stringify(t):t,s=new Date(Date.now()+864e5*e.expiresInDays).toUTCString();e.type===o?(properStorage.setCookie(e.name,r,s,"Lax","",i),"number"==typeof e.refreshInSeconds&&properStorage.setCookie(e.name+"_last",(new Date).toUTCString(),s,"Lax","",i)):e.type===a&&(properStorage.setDataInLocalStorage(e.name+"_exp",s,i),properStorage.setDataInLocalStorage(e.name,encodeURIComponent(r),i),"number"==typeof e.refreshInSeconds&&properStorage.setDataInLocalStorage(e.name+"_last",(new Date).toUTCString(),i))}catch(e){properLog.mylog(e)}}function f(){i=[],Object.keys(n).forEach(function(e){var t=n[e];ProperMedia.utils.deepAccess(t.excludeEid)||((e=v(t))&&i.push(e),t.idObj&&(ProperMedia.utils.isPlainObject(t.idObj)&&Object.keys(t.idObj).length||ProperMedia.utils.isStr(t.idObj))&&(r[t.eid_name]=t.idObj))})}function v(e){var t={};t.source=e.source||"";var i=ProperMedia.utils.isFn(e.getValue)?e.getValue():e.idObj;if(ProperMedia.utils.deepAccess(e.excludeEid)||!ProperMedia.utils.isStr(i))return null;var r={id:i,atype:e.atype||1};return!ProperMedia.utils.isFn(e.getUidExt)||(i=e.getUidExt())&&(r.ext=i),t.uids=[r],!ProperMedia.utils.isFn(e.getEidExt)||(e=e.getEidExt())&&(t.ext=e),t}function y(){var e;f(),1!=s&&(s=1,ProperMedia.utils.isFn(c)&&(c(),c=null),(properOps.sovrn_signal||properSpecialOps.sovrn_signal)&&((e=document.createElement("script")).src="https://get.s-onetag.com/70badba6-d3bf-4921-9807-0c0f5d9ffc19/tag.min.js",e.async=!0,e.defer=!0,window.top.document.getElementsByTagName("head")[0].appendChild(e)),properLog.mylog("UserId Matching Done"),clearTimeout(l),l=null)}return{init:function(){-1!==(e=[properStorage.localStorageIsEnabled(g)?a:null,properStorage.cookiesAreEnabled(g)?o:null].filter(function(e){return null!==e})).indexOf(o)&&properStorage.getCookie(PBJS_USER_ID_OPTOUT_NAME,g)?properLog.mylog("userIds - opt-out cookie found, exit module"):-1!==e.indexOf(a)&&properStorage.getDataFromLocalStorage(PBJS_USER_ID_OPTOUT_NAME,g)?properLog.mylog("userIds - opt-out localStorage found, exit module"):(function(){ProperMedia.utils.deepAccess(properSpecialOps,"userIdData")?d=ProperMedia.utils.deepAccess(properSpecialOps,"userIdData"):properStorage.getCookie("properUserIdData",g)&&(d=properStorage.getCookie("properUserIdData",g));d&&ProperMedia.utils.isStr(d)&&(d=ProperMedia.utils.safeJsonParse(d));h()}(),m())},getUIdsObj:function(){return ProperMedia.utils.deepCopy(r||{})},setCallback:function(e){c=e},getEidsArray:function(){return ProperMedia.utils.deepCopy(i||[])},getUserIdData:function(){return ProperMedia.utils.deepCopy(d||{})},getEmailHashes:h,isDoneMatching:function(){return!!s},createEidObject:v,setUserIdDataValue:function(e,t){try{ProperMedia.utils.deepSetValue(d,e,t)}catch(e){}},runIdentityAdapters:m,mergeUserIdDataValue:function(e){try{ProperMedia.utils.mergeObject(d,e)}catch(e){}}}}(),userObj=function(){this.lang="",this.tzone="",this.member="no",this.pubcid="",this.adblock={detected:!1,acceptable_ads:!1,deliver_to_adblock:!1},this.sovrn_sync_done=!0,this.userIdsCallback=null,this.init=function(){this.tzone=(new Date).getTimezoneOffset(),this.lang=navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,this.pubcid=userIdAdapters.pubCommonId.getValue()||ProperMedia.utils.generateUUID(),this.setAdBock(),(properOps.sovrn_signal_email_hash||properSpecialOps.sovrn_signal_email_hash)&&(this.sovrn_sync_done=!1,this.getSovrnSignalEmailHash()),window.addEventListener("proper-ad-requests-blocked",function(){this.setAdBock()}.bind(this)),window.addEventListener("proper-adblock-pixels-blocked",function(){this.setAdBock()}.bind(this))},this.setAdBock=function(){var e;this.adblock=ProperMedia.utils.deepAccess(properSpecialOps,"adblock")||this.adblock,this.adblock.deliver_to_adblock=properOps.deliver_to_adblock||!1,!this.checkAdBlockDetected()||this.adblock.acceptable_ads&&this.adblock.deliver_to_adblock||(properSpecialOps.kill_all_ads=!0,e=new CustomEvent("proper-ad-bidders-blocked",{}),window.dispatchEvent(e)),this.checkAdBlock()&&properSpecialOps.iframe_auction&&$.createAuctionIframe()},this.checkAdBlock=function(){return!!(this.checkAdBlockDetected()&&this.adblock.acceptable_ads&&this.adblock.deliver_to_adblock)},this.checkAdBlockDetected=function(){return!(!this.adblock.detected||properSpecialOps.disable_adblock_solution||properSpecialOps.adtoniq)},this.getSovrnSignalEmailHash=function(){function t(){clearTimeout(e),properUser.sovrn_sync_done=!0,userIds.runIdentityAdapters()}var e,i;userIds.getEmailHashes()?(properLog.mylog("UserID - Hashed Emails From Storage"),properUser.sovrn_sync_done=!0):(e=properSetTimeout.setTimeout(t,350),i=ProperMedia.utils.deepAccess(properPage,"get_vars.signal_test_id")?"83919c0c-77b4-4e6a-92a9-de8cd16be2db":this.pubcid,$.ajax({url:"https://ehash.proper.io/get/"+i,method:"GET",timeout:300,requestType:"cors",withCredentials:!0,success:function(e){e&&(e=ProperMedia.utils.safeJsonParse(e),ProperMedia.utils.isPlainObject(e)&&(properLog.mylog("UserID - Sovrn Signal Hashed Email: "+e),userIds.setUserIdDataValue("emailHashes",e))),t()},error:function(e){t()}}))},this.stickyFreqCapHandler={setStickyClosedCookie:function(){var e=new Date;e.setHours(23,59,59,0),properStorage.setCookie("properStickyClosed","true",e.toGMTString(),"Lax","",{moduleType:"core",moduleName:"userid"})},getStickyClosedCookie:function(){return"true"==properStorage.getCookie("properStickyClosed",{moduleType:"core",moduleName:"userid"})},setStickyUnitImps:function(e){var t=new Date;t.setHours(23,59,59,0),properStorage.setCookie("properStickyUnitImps",parseInt(e),t.toGMTString(),"Lax","",{moduleType:"core",moduleName:"userid"})},getStickyUnitImps:function(){var e=properStorage.getCookie("properStickyUnitImps",{moduleType:"core",moduleName:"userid"});return NaN!=parseInt(e)?parseInt(e):0},incrementStickyUnitImps:function(){var e=this.getStickyUnitImps()||0;this.setStickyUnitImps(e+=1)}}},logObj=function(){this.log_lines={},this.autoplay_html={},this.rogue_data=[],this.saved_data={},this.bid_data={},this.interstitial_bid_data={},this.ad_info={},this.rogue_timeout=null,this.tracker_timeout=null,this.tracker_wait=250,this.init_bid_data=function(){ProperMedia.utils.deepAccess(this,"bid_data.ad_slots")&&0<Object.keys(this.bid_data.ad_slots).length&&this.proper_tracker(),this.setBidData(),this.send_pageview_pixel()},this.setBidData=function(){this.bid_data={page_guid:ProperMedia.utils.validateValue(properPage.uuid,{type:"string"}),website:ProperMedia.utils.validateValue(properOps.site_name,{type:"string",default_val:"unknown",max_len:40}),url:ProperMedia.utils.validateValue(properPage.url,{type:"string",max_len:255}),url_path:ProperMedia.utils.validateValue(properPage.path,{type:"string",max_len:150}),os:ProperMedia.utils.validateValue(properDevice.os_group,{type:"string",max_len:30}),browser:ProperMedia.utils.validateValue(properDevice.browser_group,{type:"string",max_len:30}),device:ProperMedia.utils.validateValue(properDevice.device_type,{type:"string",max_len:10}),use_ssl:ProperMedia.utils.validateValue(properPage.use_ssl,{type:"boolean"}),is_mobile:ProperMedia.utils.validateValue("mobile"==properDevice.device_type,{type:"boolean"}),is_isolated:ProperMedia.utils.validateValue(properPage.isolated,{type:"boolean"}),session_depth:ProperMedia.utils.validateValue(properSession.sessionData.depth,{type:"number"}),session_guid:ProperMedia.utils.validateValue(properSession.sessionData.uuid,{type:"string"}),resolution_width:ProperMedia.utils.validateValue(properPage.width,{type:"number",max:99999}),resolution_height:ProperMedia.utils.validateValue(properPage.height,{type:"number",max:99999}),rtp_file_version:ProperMedia.utils.validateValue(properOps.rtp_file_version,{type:"number"}),referrer:ProperMedia.utils.validateValue(properSession.sessionData.referrer,{type:"string",max_len:255}),utm_source:ProperMedia.utils.validateValue(properSession.sessionData.utm_source,{type:"string",max_len:100}),utm_campaign:ProperMedia.utils.validateValue(properSession.sessionData.utm_campaign,{type:"string",max_len:255}),utm_medium:ProperMedia.utils.validateValue(properSession.sessionData.utm_medium,{type:"string",max_len:100}),utm_term:ProperMedia.utils.validateValue(properSession.sessionData.utm_term,{type:"string",max_len:100}),utm_content:ProperMedia.utils.validateValue(properSession.sessionData.utm_content,{type:"string",max_len:100}),utm_template:ProperMedia.utils.validateValue(properSession.sessionData.utm_template,{type:"string",max_len:100}),utm_referrer:ProperMedia.utils.validateValue(properSession.sessionData.utm_referrer,{type:"string",max_len:100}),utm_adset:ProperMedia.utils.validateValue(properSession.sessionData.utm_adset,{type:"string",max_len:100}),utm_subid:ProperMedia.utils.validateValue(properSession.sessionData.utm_subid,{type:"string",max_len:100}),gclid:ProperMedia.utils.validateValue(properSession.sessionData.gclid,{type:"string",max_len:100}),fbclid:ProperMedia.utils.validateValue(properSession.sessionData.fbclid,{type:"string",max_len:100}),category:ProperMedia.utils.validateValue(properPage.page_meta.category,{type:"string",max_len:50}),editor:ProperMedia.utils.validateValue(properPage.page_meta.editor,{type:"string",max_len:50}),writer:ProperMedia.utils.validateValue(properPage.page_meta.writer,{type:"string",max_len:50}),buyer:ProperMedia.utils.validateValue(properPage.page_meta.buyer,{type:"string",max_len:50}),page_type:ProperMedia.utils.validateValue(properPage.page_meta.page_type,{type:"string",max_len:50}),split:ProperMedia.utils.validateValue(properPage.page_meta.split,{type:"string",max_len:50}),tags:ProperMedia.utils.validateValue(properPage.page_meta.tags.join(","),{type:"string",max_len:500}),custom:this.validateCustom(properPage.page_meta.custom),adblock:ProperMedia.utils.validateValue(properUser.adblock.detected,{type:"boolean"}),ad_slots:{}}},this.validateCustom=function(e){var t,i={};for(t in e)t.match(/^dimension_([1-9]|10)$/)&&(i[t]=ProperMedia.utils.validateValue(e[t],{type:"string",max_len:100}));return i},this.send_pageview_pixel=function(){ProperMedia.utils.deepSetValue(this,"bid_data.ad_slots.pageview_pixel",{slot_name:"pageview_pixel",bidder:"pageview_pixel",price:0,gross:0,size:"0x0",refresh_cnt:0,line_item_id:"",response_ms:0,auction_duration:0,precent_bids_ready:0,tag_id:"",adid:"",adomain:"",cid:"",crid:"",dealid:""}),this.proper_tracker()},this.send_takeover_pixel=function(e,t){var i;properPage.takeover.logged||""==ProperMedia.utils.deepAccess(properPage,"takeover.bidder")||(i=ProperMedia.utils.getTimePassed(e.auction_started_ts),e=properOps.site_name+"_page_takeover_"+properPage.takeover.bidder,ProperMedia.utils.deepSetValue(this,"bid_data.ad_slots."+e,{slot_name:ProperMedia.utils.validateValue(e,{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(properPage,"takeover.bidder"),{type:"string",max_len:30}),price:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(properPage,"takeover.price"),{type:"string",max_len:30}),gross:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(properPage,"takeover.price"),{type:"string",max_len:30}),size:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"size"),{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"refresh.count"),{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"response_ms"),{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(i,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"tag_id"),{type:"string",max_len:50}),adid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"adid"),{type:"string",max_len:50}),adomain:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"adomain.0"),{type:"string",max_len:50}),cid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"cid"),{type:"string",max_len:50}),crid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"crid"),{type:"string",max_len:50}),dealid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"dealid"),{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"floor"),{type:"number",max:999,max_len:15})}),this.proper_tracker(),properPage.takeover.logged=!0)},this.log_bid=function(e){this.mylog(e.bidder+" ("+e.tag_id+"@"+e.size+") = "+e.price)},this.mylog=function(e,t){this.log_lines[t=t||"proper"]=ProperMedia.utils.checkData(this.log_lines[t]),this.log_lines[t].push(e),(1==ProperMedia.utils.deepAccess(properPage,"get_vars."+t)||"proper"==t&&1==properStorage.getCookie("proper_log",{moduleType:"core"}))&&console.log(e)},this.rogue_tracker=function(){var t,i;clearTimeout(this.rogue_timeout),this.rogue_timeout=null,0<this.rogue_data.length&&(t=this.rogue_data,this.rogue_data=[],i=this,$.ajax({url:"https://proper.io/ajax/tracker.php?rogue=1",method:"POST",data:"data="+JSON.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"},success:function(e){i.mylog("autoplay ads tracked! x"+t.length)}}))},this.proper_tracker=function(){var e,i,t=this;clearTimeout(this.tracker_timeout),this.tracker_timeout=null,this.bid_data.ad_slots&&0<Object.keys(this.bid_data.ad_slots).length&&(i=ProperMedia.utils.deepCopy(this.bid_data.ad_slots),this.setBidData(),this.bid_data.website||(this.bid_data.website="unknown"),this.bid_data.ad_slots=Object.keys(i).filter(function(e){return!("pageview_pixel"!=e&&0!==e.indexOf(properOps.site_name))}).reduce(function(e,t){return e[t]=i[t],e}.bind(this),{}),0<Object.keys(this.bid_data.ad_slots).length&&(e=JSON.stringify(this.bid_data),this.bid_data.ad_slots={},properOps.testing_mode.ids?t.mylog("Not logging winnig bids. Test IDs are being used."):$.ajax({url:"https://bids.proper.io/api/bidding",method:"POST",withCredentials:!1,data:e,success:function(e){t.mylog("bids tracked!")},error:function(e){t.mylog("error tracking bid data")}})))},this.track_rogue=function(e,t){var i={},i=void 0!==e.displayed_ad.displayed&&1==e.displayed_ad.displayed?e.displayed_ad:{bidder:"static_tag",price:0,size:"",adcode:"[DFP STATIC TAG]"};this.mylog("rogue "+t+" detected (slot="+e.name+", bidder="+i.bidder+")"),this.rogue_data.push({rogue_type:t,bidder:i.bidder,cpm:i.price,size:i.size,slot:e.dfp_name,website:properOps.site_name,device:properDevice.device_type,os:properDevice.os_group,browser:properDevice.browser_group,is_mobile:properDevice.isMobile(),tag_id:i.tag_id,ad_details:i.ad_details,split_version:properOps.rtp_file_version}),clearTimeout(this.rogue_timeout),this.rogue_timeout=null,this.rogue_timeout=properSetTimeout.setTimeout.call(this,function(){this.rogue_tracker()},this.tracker_wait),e.getWinningBid()&&showWinningAd(e)},this.proper_log=function(e){if("page"!=(e=e||"proper"))if("bid_table"!=e){if("bid_table_csv"!=e){if("on"==e){e="proper";var t=new Date;t.setTime(t.getTime()+36e5),document.cookie="proper_log=1; expires="+t.toGMTString()+"; path=/; SameSite=Lax;",console.log("NOTICE: Turning on persistent logging. Run proper_log('off'); to turn off.")}else if("off"==e)return e="proper",console.log("NOTICE: Turning off persistent logging."),document.cookie="proper_log=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax;",ProperMedia.utils.deepSetValue(properPage,"get_vars."+e,0),!1;for(var i=0;i<properLog.log_lines[e].length;i++)properLog.log_lines[e][i]&&console.log(properLog.log_lines[e][i]),ProperMedia.utils.deepSetValue(properPage,"get_vars."+e,1);return!0}if((r=o()).length){csv_output="",header_keys=Object.keys(r[0]);for(s=0;s<header_keys.length;s++)csv_output+='"'+header_keys[s]+'"'+(s<header_keys.length-1?",":"");for(s=0;s<r.length;s++)csv_output+='\n"'+ProperMedia.utils.objectValues(r[s]).join('","')+'"';t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(csv_output)),t.setAttribute("download","proper_bid_table_"+document.location.hostname+".csv"),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}else console.warn("No responses")}else{var r;if((r=o()).length)if(console.table)console.table(r);else for(var s=0;s<r.length;s++)console.log(r[s]);else console.warn("No responses")}else console.log(properPage);function o(){var o=[],a=properPage.slots;return Object.keys(properPage.slots).forEach(function(s){Object.keys(properPage.slots[s]).forEach(function(e){var t=a[s][e];if(t instanceof slotObj)for(var i=0;i<t.ads.length;i++){var r=n(t.ads[i]);-1===ProperMedia.utils.indexOfObjectInArray(o,r)&&o.push(r)}t.hasWinningBid()&&(r=n(t.winning_ad),-1===ProperMedia.utils.indexOfObjectInArray(o,r)&&o.push(r)),t.hasWinningAmazonBid()&&(r=n(t.winning_amazon_ad),-1===ProperMedia.utils.indexOfObjectInArray(o,r)&&o.push(r))},this)},this),o;function n(e){return{slot_name:e.slot.name,size:e.size,bidder:e.bidder,time:e.response_ms,floor:e.floor,cpm:e.price,dfp_price:e.dfp_price,gross:e.gross,price:e.price,tag_id:e.tag_id,refresh_cnt:e.slot.refresh.count,displayed:e.displayed}}}}},properLog=new logObj,optionsObj=function(){this.rtp_file_version=0,this.dfp_per_slot=0,this.prebid_version="7.31.0",this.post_id="",this.additional_domains=[],this.site_name="",this.domain="",this.domain_protection=0,this.confiant=0,this.extra_css="",this.extra_js="",this.default_tags=[],this.mcm_type="mcm",this.proper_dfp_id=5376056,this.dfp_advertiser_ids={google:42904576,proper:600883576,adsense:1349528536},this.dfp_id=5376056,this.google_advertiser=42904576,this.proper_advertiser=600883576,this.amazon_advertiser=455011336,this.adsense_advertiser=1349528536,this.dynamic_floors={mobile:{enabled:!1,init_floor_max:1.25,init_size_floor_max:{"640x480":3.5,"400x300":3.5},init_mult_max:.5,init_mult_min:.5,avg_mult:3,avg_max:10},desktop:{enabled:!1,init_floor_max:1.25,init_size_floor_max:{"640x480":3.5,"400x300":3.5},init_mult_max:.5,init_mult_min:.5,avg_mult:3,avg_max:10}},this.nobid_auction_limit={enabled:!1,display:10,video:15},this.testing_mode={enabled:!1,bidder:!1,ids:!1},this.video_players={},this.video_limit={enabled:!1,outstream_inview_limit:5},this.ad_slots={},this.isolated_urls=[],this.s2s_websockets=!1,this.s2s_sse=!1,this.s2s_wss_endpoint="wss://eb-staging.proper.io/s2s",this.s2s_sse_endpoint="https://eb-staging.proper.io/s2s",this.s2s_endpoint="https://eb.proper.io/s2s",this.crid_whitelist_api="https://creative-whitelist-dev.properio.workers.dev/cwl/",this.slot_wrapper_class="proper-ad-unit",this.usync_endpoint="https://usync.proper.io/v1/usersync",this.usync_hb_endpoint="https://eb.proper.io/v1/usersync",this.sandbox_iframe=1,this.sandbox_options=["allow-popups","allow-pointer-lock","allow-scripts","allow-same-origin"],this.audience_pixels={enabled:!1,thresholds:[]},this.audience_segments={},this.native_sizes={skin:"1x1",native_vertical:"1x1",native_horizontal:"1x1",sticky_horizontal:"1x1"},this.advertisement_disclosure={enabled:!1,location:"below"},this.schain={ver:"1.0",complete:0,nodes:[]},this.skip_schain=!1,this.refresh={desktop:{enabled:1,interval:6e4,inview_interval:15e3,max:5,exclude_dfp:0},mobile:{enabled:1,interval:3e4,inview_interval:15e3,max:5,exclude_dfp:0}},this.floors={desktop:{backup:.15,sizes:{}},mobile:{backup:.15,sizes:{}}},this.lazyload={desktop:{enabled:1,fetchMarginPercent:0,renderMarginPercent:0},mobile:{enabled:1,fetchMarginPercent:0,renderMarginPercent:0}},this.autoDelete={desktop:{enabled:!1,autoDeleteMarginPercent:200},mobile:{enabled:!1,autoDeleteMarginPercent:200}},this.userIds={identityAdapters:{id5id:{name:"id5Id",config:{enabled:!1},storage:{}},identitylink:{name:"identityLink",config:{enabled:!1},storage:{}},pubcommonid:{name:"pubCommonId",config:{enabled:!0},storage:{}},publink:{name:"pubLink",config:{enabled:!1},storage:{}},fabrickid:{name:"fabrickId",config:{enabled:!1,apiKey:""},storage:{}},verizonmediaid:{name:"verizonMediaId",config:{enabled:!1},storage:{}}}},this.adlightning={enabled:!1,clientId:"properio",reportAd:!1},this.bidders={header:{},s2s:{}},this.bidder_info={adaptmx_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s"},adaptmx_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",adapter_name:"s2s",default_bid_ttl:3e5},adaptmx_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",adapter_name:"s2s",default_bid_ttl:3e5},pubmatic_s2s:{rev_share:1,demand_type:"display",bid_grouping:"slot",adapter_name:"s2s",default_bid_ttl:6e4,gvlid:76},sovrn_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s",gvlid:13},sovrn_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",adapter_name:"s2s",default_bid_ttl:3e5,gvlid:13},sovrn_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",adapter_name:"s2s",default_bid_ttl:3e5,gvlid:13},sonobi_s2s:{rev_share:1,demand_type:"display",bid_grouping:"slot",adapter_name:"s2s",gvlid:104},gumgum_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s",gvlid:13,native_sizes:{desktop:{"1x1":"sticky_horizontal"},mobile:{"1x1":"sticky_horizontal"}}},mediagrid_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s",gvlid:13},mediagrid_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",adapter_name:"s2s",gvlid:13},verizon_media_s2s:{rev_share:1,demand_type:"display",bid_grouping:"slot",adapter_name:"s2s",gvlid:25},aol_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",adapter_name:"s2s",gvlid:25},aol_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",adapter_name:"s2s",gvlid:25},engagebdr_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s"},magnite_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s",gvlid:52},yieldmo_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",adapter_name:"s2s",gvlid:173},appnexus_native:{rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"appnexus",gvlid:32,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},brealtime:{rev_share:.9,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"appnexus",gvlid:32},districtm:{rev_share:.9,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"appnexus",gvlid:32},shemedia:{rev_share:.5,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"rubicon",gvlid:337},openx_pmp:{rev_share:1,bid_grouping:"slot",gvlid:69},triplelift_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"triplelift",gvlid:28},triplelift_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"triplelift",gvlid:28},undertone_instream:{rev_share:.9,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"undertone",gvlid:677},undertone_outstream:{rev_share:.9,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"undertone",gvlid:677},vidazoo_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"vidazoo",gvlid:744},vidazoo_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"vidazoo",gvlid:744},thirtythreeacross_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:36e4,adapter_name:"thirtythreeacross",gvlid:58},thirtythreeacross_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:36e4,adapter_name:"thirtythreeacross",gvlid:58},smart_adserver_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"smart_adserver",gvlid:45},smart_adserver_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"smart_adserver",gvlid:45},medianet_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"medianet",gvlid:142},unruly_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"unruly",gvlid:32},unruly_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"unruly",gvlid:32},rhythmone_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"rhythmone",gvlid:36},rhythmone_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"rhythmone",gvlid:36},adyoulike_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:36e5,adapter_name:"adyoulike",gvlid:259},adyoulike_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:36e5,adapter_name:"adyoulike",gvlid:259},districtmdmx_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"districtmdmx"},districtmdmx_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"districtmdmx"},amazon_tam_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"a9",gvlid:793},amazon_tam_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"a9",gvlid:793},emx_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"emx",gvlid:183},emx_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"emx",gvlid:183},sonobi_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"sonobi",gvlid:104},sonobi_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"sonobi",gvlid:104},appnexus_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"appnexus",gvlid:32},appnexus_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"appnexus",gvlid:32},index:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"ix",gvlid:10},ix_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"ix",gvlid:10},ix_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"ix",gvlid:10},engagebdr_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s"},engagebdr_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s"},magnite_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:25},magnite_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:102},yahoo_s2s:{rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:25},yahoo_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:25},yahoo_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:25},yahoo_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"yahoo",gvlid:25},yahoo_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:3e5,adapter_name:"yahoo",gvlid:25},aol_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"aol_instream",gvlid:25},beachfront_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"beachfront_instream",gvlid:335},openx_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"openx_instream",gvlid:69},pubmatic_outstream:{rev_share:.81,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"pubmatic_instream",gvlid:76},rubicon_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"rubicon_instream",gvlid:52},spotx_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"spotx_instream",gvlid:165},beeswax_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:12},beeswax_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:12},beeswax_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:12},xandr_s2s:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:32},xandr_native_s2s:{rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:32,native_sizes:{desktop:{"728x90":"native_horizontal","300x250":"native_horizontal","160x600":"native_vertical"},mobile:{"300x250":"native_horizontal","320x50":"native_horizontal"}}},pubmatic_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:76},pubmatic_native_s2s:{rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:6e4,adapter_name:"s2s",gvlid:76,native_sizes:{desktop:{"728x90":"native_horizontal","300x250":"native_horizontal","160x600":"native_vertical"},mobile:{"300x250":"native_horizontal","320x50":"native_horizontal"}}},pubmatic_native:{rev_share:.81,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"pubmatic",gvlid:76,native_sizes:{desktop:{"300x250":"native_horizontal","320x50":"native_horizontal"},mobile:{"300x250":"native_horizontal","320x50":"native_horizontal"}}},medianet_native:{rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"medianet",gvlid:142},xandr_instream_s2s:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:32},xandr_outstream_s2s:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"s2s",gvlid:32},criteo_instream:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"criteo",gvlid:91},criteo_outstream:{rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"criteo",gvlid:91},criteo_native:{rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"criteo",gvlid:91},alias_appnexus:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"appnexus",gvlid:32},alias_appnexus_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"appnexus",gvlid:32},alias_appnexus_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"appnexus",gvlid:32},alias_appnexus_native:{alias:1,rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"appnexus",gvlid:32,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},alias_index:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"ix",gvlid:10},alias_adagio:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"adagio",gvlid:617},alias_teads:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",div_insertion:1,adapter_name:"teads",gvlid:132,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},alias_triplelift:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"triplelift",gvlid:28,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},alias_medianet:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"medianet",gvlid:142},alias_rubicon:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"rubicon",gvlid:52},alias_mediagrid_s2s:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:12e4,adapter_name:"s2s",gvlid:13},alias_sovrn:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:9e4,adapter_name:"sovrn",gvlid:13},alias_emx:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"emx",gvlid:183},alias_openx:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"openx",gvlid:69},alias_rhythmone:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:35e4,adapter_name:"rhythmone",gvlid:36},alias_sharethrough:{alias:1,rev_share:.9,demand_type:"display",bid_grouping:"slot",default_bid_ttl:36e4,adapter_name:"sharethrough",gvlid:80,native_sizes:{native_horizontal:"1x1",native_vertical:"1x1"}},alias_thirtythreeacross:{alias:1,rev_share:.8,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,adapter_name:"thirtythreeacross",gvlid:58},alias_pubmatic:{alias:1,rev_share:.81,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,acceptable_ads:!0,adapter_name:"pubmatic",gvlid:76},alias_criteo:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:6e4,adapter_name:"criteo",gvlid:91},alias_aol:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,adapter_name:"aol",gvlid:25},alias_spotx_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:36e4,adapter_name:"spotx_instream"},alias_spotx_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"spotx_instream",gvlid:165},alias_a9:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:12e4,adapter_name:"a9",gvlid:793},alias_amazon_tam_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"a9",gvlid:793},alias_amazon_tam_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"a9",gvlid:793},alias_adyoulike_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"slot",default_bid_ttl:36e5,adapter_name:"adyoulike",gvlid:259},alias_criteo_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"criteo",gvlid:91},alias_criteo_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"criteo",gvlid:91},alias_ix:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"ix",gvlid:10},alias_ix_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"ix",gvlid:10},alias_ix_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"ix",gvlid:10},alias_index_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:36e5,adapter_name:"ix",gvlid:10},alias_openx_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,gvlid:69},alias_openx_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"openx_instream",gvlid:69},alias_pubmatic_instream:{alias:1,rev_share:.81,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"pubmatic_instream",gvlid:76},alias_pubmatic_native:{alias:1,rev_share:.81,demand_type:"native",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"pubmatic",gvlid:76,native_sizes:{desktop:{"300x250":"native_horizontal","320x50":"native_horizontal"},mobile:{"300x250":"native_horizontal","320x50":"native_horizontal"}}},alias_pubmatic_native_s2s:{alias:1,rev_share:1,demand_type:"native",bid_grouping:"page",default_bid_ttl:6e4,adapter_name:"s2s",gvlid:76,native_sizes:{desktop:{"728x90":"native_horizontal","300x250":"native_horizontal","160x600":"native_vertical"},mobile:{"300x250":"native_horizontal","320x50":"native_horizontal"}}},alias_pubmatic_outstream_s2s:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:3e5,adapter_name:"s2s",gvlid:76},alias_pubmatic_s2s:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,adapter_name:"s2s",gvlid:76},alias_unruly:{alias:1,rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:36e4,adapter_name:"unruly",gvlid:32},alias_unruly_instream:{alias:1,rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"unruly",gvlid:32},alias_unruly_outstream:{alias:1,rev_share:1,demand_type:"video",video_type:"outstream",bid_grouping:"page",default_bid_ttl:6e5,adapter_name:"unruly",gvlid:32}}},adPoolObj=(jn.prototype.init=function(){window.addEventListener("properActiveTab",function(e){this.setNextAuctionTimeout()}.bind(this)),window.addEventListener("properInactiveTab",function(e){properLog.proper_tracker(),this.clearNextAuctionTimeout()}.bind(this))},jn.prototype.setSizes=function(){try{var t;this.sizes={},Object.keys(properPage.slots).map(function(r){Object.keys(properPage.slots[r]).length&&Object.keys(properPage.slots[r]).map(function(e){if(0<properPage.slots[r][e].sizes.length)for(var t,i=0;i<properPage.slots[r][e].sizes.length;i++)0<this.size_override.length&&-1===this.size_override.indexOf(e)||(t=properPage.slots[r][e].sizes[i],properSpecialOps.no_bid_limit?this.sizes[t]=99:this.sizes[t]=this.sizes[t]?this.sizes[t]+1:1)},this)},this),Object.keys(this.sizes).length||(t=ProperMedia.utils.deepAccess(properOps,"auctions.resolution_size_map")||{},0<Object.keys(t).length&&Object.keys(t).forEach(function(e){properPage.width>=e&&t[e].forEach(function(e){this.sizes[e]=99},this)},this))}catch(e){return properLog.mylog("AdPool: Error setting auction sizes"),!1}return!0},jn.prototype.setAuctionRounds=function(){try{var e=properDevice.isMobile()?"mobile":"desktop";this.auction_rounds=parseInt(ProperMedia.utils.deepAccess(properOps,"auctions."+e+".rounds")||this.auction_rounds)}catch(e){return properLog.mylog("AdPool: Error setting auction rounds"),!1}return!0},jn.prototype.setMaxAuctions=function(){try{var e=properDevice.isMobile()?"mobile":"desktop";this.max_auctions=parseInt(ProperMedia.utils.deepAccess(properOps,"auctions."+e+".max")||this.max_auctions)}catch(e){return properLog.mylog("AdPool: Error setting max auction"),!1}return!0},jn.prototype.setDefaultTimeout=function(){try{var e=properDevice.isMobile()?"mobile":"desktop";this.default_timeout=parseInt(ProperMedia.utils.deepAccess(properOps,"auctions."+e+".timeout")||this.default_timeout)}catch(e){return properLog.mylog("AdPool: Error setting auction default timeout"),!1}return!0},jn.prototype.checkSlotRefresh=function(){var t=!1;return Object.keys(properPage.slots.display).forEach(function(e){properPage.slots.display[e].refresh.enabled&&(t=!0)}),t},jn.prototype.checkMaxAuctionsReached=function(){return!!(this.auction_count>=this.max_auctions||""!==ProperMedia.utils.deepAccess(properPage,"takeover.bidder"))},jn.prototype.setDefaultFloors=function(){try{var e=properDevice.isMobile()?"mobile":"desktop";this.floors=ProperMedia.utils.deepCopy(ProperMedia.utils.deepAccess(properOps,"floors."+e)||{})}catch(e){return properLog.mylog("AdPool: Error setting auction default floors"),!1}return!0},jn.prototype.startNewAuction=function(e){return userIds.isDoneMatching()?consentManager.checkIfMissing()?(properLog.mylog("AdPool: Wait for CMP Consent To Finish."),consentManager.loadIfMissing(this.startNewAuction.bind(this)),!1):properPage.viewability_tracker.slotsInFetchZone?properPage.init_slots_build?(this.initialized=!0,this.setDefaultFloors(),this.setMaxAuctions(),this.setAuctionRounds(),this.setDefaultTimeout(),this.clearNextAuctionTimeout(),void this.setNextAuctionTimeout(e)):(properLog.mylog("AdPool: Initial slots for page haven't been built yet."),!1):(properLog.mylog("AdPool: No slots are in the fetch zone."),properPage.viewability_tracker.setCallback(this.startNewAuction.bind(this)),!1):(properLog.mylog("AdPool: Wait for UserId Matching To Finish."),userIds.setCallback(this.startNewAuction.bind(this)),!1)},jn.prototype.startNewVideoAuction=function(e){this.setSizes(),this.sendVideoAuction(e),this.clearExpiredAds()},jn.prototype.sendVideoAuction=function(e){properLog.mylog("AdPool: Starting New Video Auction"),this.vid_auction_count++;e=new auctionObj(parseFloat(this.total_auctions+"."+this.vid_auction_count),"video",e);return(this.auctions[e.id]=e).sendBids(),!0},jn.prototype.sendAuction=function(e){if(this.checkMaxAuctionsReached()&&!e)return properLog.mylog("AdPool: Max Auctions reached: "+this.max_auctions),!1;if(!this.checkSlotRefresh()&&0<this.auction_count&&!e)return properLog.mylog("AdPool: Auction disabled. No slots have refresh enabled."),!1;if(!this.auction_refresh&&0<this.auction_count)return properLog.mylog("AdPool: Auction Refresh is disabled."),!1;properLog.mylog("AdPool: Starting New Auction"),this.setSizes(),this.auction_count+=1,this.total_auctions+=1,properSession.updateSessionAuctionCount(),properPage.video_enabled&&this.vid_auction_count++;e=new auctionObj(this.total_auctions);return(this.auctions[e.id]=e).sendBids(),this.size_override=[],!0},jn.prototype.auctionFinished=function(e){var t;this.auctions[e]&&(t=new Event("properAuctionDone"),window.dispatchEvent(t),this.last_auction_ts=Date.now(),this.finished_auctions[e]=this.auctions[e],delete this.auctions[e],this.setNextAuctionTimeout(),10<(e=Object.keys(this.finished_auctions)||[]).length&&e.splice(0,e.length-10).forEach(function(e){delete this.finished_auctions[e]},this))},jn.prototype.addBidToPool=function(e){0<e.price&&((e=new adObj(ProperMedia.utils.deepCopy(e))).dfp_price=roundPriceToDfpBucket(e.price),this.ads.push(e),this.ads.sort(function(e,t){return parseFloat(t.price)-parseFloat(e.price)}))},jn.prototype.getWinningBids=function(i,r,s){let e,t;var o=this.getWinningBid(i,r,s);if(i.flex_enabled){var a=i.getFlexMap();const n=Object.entries(a).map(([t])=>{var e=this.ads.filter(e=>e.size===t);return this.getWinningBid(i,r,s,e,2)});a=n.reduce((e,t)=>t?.price<e?.price?e:t,o)?.ads;a?.length&&(e=new adObj(ProperMedia.utils.deepCopy(a[0])),1<a.length&&(t=new adObj(ProperMedia.utils.deepCopy(a[1]))))}else o?.ads?.length&&(e=new adObj(ProperMedia.utils.deepCopy(o.ads[0])));return this.removeAds(e,t),{winning_ad:e,flex_ad:t}},jn.prototype.getWinningBid=function(e,t,i,r,s){const o=e.sizes,a=[];if(t=t||["display","native","video"],s=s||1,0<(r=r||this.ads).length){!1!==properPage.video_enabled&&e.video_player instanceof videoPlayer||(t=["display","native"]);for(const d of r)if(d.checkIfExpired())this.removeAds(d);else if(1!==d.displayed&&-1!==t.indexOf(d.type)&&("video"!==d.type||i&&i===d.video_type)&&-1!==o.indexOf(d.size)&&(!(1===e.sticky&&1===e.displayed&&0<e.refresh.count&&e.size!==d.size)||properSpecialOps.sliderHeader)&&!(0<e.refresh.count&&1===ProperMedia.utils.deepAccess(properOps,"bidder_info."+d.bidder+".dont_refresh"))){if("beeswax_s2s"===d.bidder){var n=d.tag_id.match(/^slot_(.*)$/);if(n&&1<n.length&&n[1]!==e.dfp_name)return}else if(d.target_slot&&d.target_slot!==e.dfp_name)return;if(!properUser.checkAdBlock()||ProperMedia.utils.deepAccess(properOps,"bidder_info."+d.bidder+".acceptable_ads")&&"native"===ProperMedia.utils.deepAccess(properOps,"bidder_info."+d.bidder+".demand_type")){n=properOps.testing_mode.enabled?0:e.getFloor(d.size);if((""===ProperMedia.utils.deepAccess(properPage,"takeover.bidder")||d.bidder===ProperMedia.utils.deepAccess(properPage,"takeover.bidder"))&&d.price>=n&&(a.push(d),a.length>=s))break}}return{ads:a,price:a.reduce((e,{price:t})=>e+t,0)}}return null},jn.prototype.removeAd=function(e){this.ads.splice(e,1)},jn.prototype.removeAds=function(...r){this.ads?.reduce((e,t,i)=>r.find(e=>e?.id===t?.id)?[i,...e]:e,[]).forEach(e=>this.removeAd(e))},jn.prototype.addAmazonBidToPool=function(e){e.price&&(e=new adObj(ProperMedia.utils.deepCopy(e)),this.amazon_ads.push(e),this.amazon_ads=_0x2b21de(this.amazon_ads))},jn.prototype.getWinningAmazonBid=function(e,t,i){var r=e.sizes;if(t=t||["display","native","video"],0<this.amazon_ads.length&&(!1!==properPage.video_enabled&&e.video_player instanceof videoPlayer||-1===t.indexOf("video")||t.splice(t.indexOf("video"),1),0!=t.length))for(var s=0;s<this.amazon_ads.length;s++){var o=this.amazon_ads[s];if(o.checkIfExpired())this.amazon_ads.splice(s,1),s--;else if(1!=o.displayed&&-1!=t.indexOf(o.type)&&("video"!=o.type||i&&i===o.video_type)&&-1!=r.indexOf(o.size)&&(!(1==e.sticky&&1==e.displayed&&0<e.refresh.count&&e.size!==o.size)||properSpecialOps.sliderHeader)&&!(0<e.refresh.count&&1==ProperMedia.utils.deepAccess(properOps,"bidder_info."+o.bidder+".dont_refresh"))&&(!o.target_slot||o.target_slot===e.dfp_name)&&(!properUser.checkAdBlock()||ProperMedia.utils.deepAccess(properOps,"bidder_info."+o.bidder+".acceptable_ads")&&"native"===ProperMedia.utils.deepAccess(properOps,"bidder_info."+o.bidder+".demand_type"))&&(""==ProperMedia.utils.deepAccess(properPage,"takeover.bidder")||o.bidder==ProperMedia.utils.deepAccess(properPage,"takeover.bidder"))){e.winning_amazon_ad=new adObj(ProperMedia.utils.deepCopy(o)),this.amazon_ads.splice(s,1);break}}},jn.prototype.calcTimeout=function(){return 0===this.total_auctions&&0===this.auction_count||1===this.total_auctions&&1===this.auction_count&&properPage.spa_settings.enabled&&properPage.spa_settings.prefetch?this.timeout=0:0===this.auction_count&&0<this.total_auctions?this.timeout=this.timeSinceLastAuction()<this.min_timeout?this.min_timeout:0:this.timeout=Math.max(this.min_timeout,this.default_timeout),this.timeout=this.timeout-this.timeSinceLastAuction(),Math.max(this.timeout,0)},jn.prototype.getTimeLeftOnRunningAuctions=function(){var t=[];try{Object.keys(this.auctions).length&&Object.keys(this.auctions).forEach(function(e){e=this.auctions[e],e=Math.max(0,e.max_timeout-e.auctionTimePassed());0<e&&t.push(e)},this)}catch(e){console.log(e)}return t},jn.prototype.setNextAuctionTimeout=function(e){null==this.timeout_handle&&!this.checkMaxAuctionsReached()&&this.initialized&&(this.calcTimeout(),this.timeout_handle=properSetTimeout.setTimeout.call(this,function(){this.clearNextAuctionTimeout(),this.sendAuction(e),this.clearExpiredAds()},Math.max(0,this.timeout)))},jn.prototype.clearNextAuctionTimeout=function(){clearTimeout(this.timeout_handle),this.timeout_handle=null},jn.prototype.timeSinceLastAuction=function(){return 0===this.last_auction_ts?0:Date.now()-this.last_auction_ts},jn.prototype.clearExpiredAds=function(){if(0<this.ads.length)for(var e=0;e<this.ads.length;e++)this.ads[e].checkIfExpired()&&this.ads.splice(e--,1)},jn.prototype.clearCachedAds=function(){properLog.mylog("AdPool: Clearing Cached Ads"),this.ads=[],this.displayedAds=[]},jn);function jn(){this.initialized=!1,this.ads=[],this.amazon_ads=[],this.displayed_ads=[],this.auctions={},this.finished_auctions={},this.auction_refresh=!0,this.total_auctions=0,this.auction_count=0,this.vid_auction_count=0,this.max_auctions=10,this.last_auction_ts=0,this.timeout_handle=null,this.timeout=58e3,this.default_timeout=58e3,this.min_timeout=3e3,this.auction_rounds=1,this.sizes={},this.floors={},this.size_override=[],this.init()}var auctionObj=(Ro.prototype.sendBids=function(){if(checkKillAllAds())return!1;this.setAliasAccounts(),this.setMaxAuctionTimeout(),this.bids_started_ts=ProperMedia.utils.getTimestampMs(),this.sendS2SBidders(),this.sendHeaderBidders(),this.bids_sent_finished=!0},Ro.prototype.sendS2SBidders=function(){if(!cookieMatching.done_matching)return properLog.mylog("Wait for S2S Cookie Matching To Finish."),void(cookieMatching.callback=this.sendS2SBidders.bind(this));if(this.getAuctionBidders("s2s"),0<this.auction_bidders.length){var m={},h=properDevice.isMobile()?"mobile":"desktop",_=Math.max(0,parseInt(properAdPool.auction_count-1)%parseInt(properAdPool.auction_rounds));if(this.auction_bidders.forEach(function(e){var t=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".tag_ids."+h)||!1;if(!this.checkAlternateAccounts(e))return!1;if(!t||0==t.length)return!1;var i,r=ProperMedia.utils.deepCopy(t),s=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".site_id")||"",o=Object.filter(r[_]||{},function(e){return void 0!==properAdPool.sizes[e]&&0<r[_][e].length});for(i in o){var a=properAdPool.sizes[i],n=[];if("beeswax_s2s"==e)for(var d=ProperMedia.utils.deepCopy(o[i]),p=0;p<d.length;p++){var l=d[p],c=l.match(/^slot_(.*)$/);c&&1<c.length&&(ProperMedia.utils.deepAccess(properOps,"ad_slots.display."+c[1])||ProperMedia.utils.deepAccess(properOps,"ad_slots.video."+c[1]))&&(n.push(o[i].splice(o[i].indexOf(l),1)[0]),0<a&&a--)}0<o[i].length-a&&"beeswax_s2s"!==e&&o[i].splice(a,o[i].length-a),o[i]=o[i].concat(n),ProperMedia.utils.deepAccess(this,"sizes."+i)||(this.sizes[i]=properAdPool.sizes[i])}var u=ProperMedia.utils.deepCopy(ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".floors."+h)||{}),g=!schainCheck(e),t={};ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".account_overrides.enabled")&&ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".account_overrides.bidder_ids")&&(t=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".account_overrides.bidder_ids")),0<Object.keys(o).length&&(m[e]={site_id:s,tag_ids:o,bidder_ids:t,skip_schain:g,bidder_floors:u})},this),0<Object.keys(m).length){this.bids.s2s=new bidObj("s2s",m,{},this);try{consentManager.ready(function(){bidAdapters.s2s.send(this.bids.s2s)}.bind(this))}catch(e){console.error(e),e.bidder="s2s",sendError(TraceKit.computeStackTrace(e))}}}},Ro.prototype.sendHeaderBidders=function(){var h,_;this.getAuctionBidders("header"),0<this.auction_bidders.length&&(h=properDevice.isMobile()?"mobile":"desktop",this.shuffleBidders(),_=Math.max(0,parseInt(properAdPool.auction_count-1)%parseInt(properAdPool.auction_rounds)),this.auction_bidders.forEach(function(e){var t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+e+".tag_ids."+h)||!1,i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+e+".slot_tag_ids."+h)||!1,r=bidderToAdapterName(e);if(!this.checkAlternateAccounts(e))return!1;if((!t||0==t.length)&&(!i||i.length))return!1;var s,o,a=ProperMedia.utils.deepCopy(t),n=Object.filter(a[_]||{},function(e){return void 0!==properAdPool.sizes[e]&&0<a[_][e].length}),i=ProperMedia.utils.deepCopy(i),d=Object.filter(i[_]||{},function(e){return properPage.getSlotFromPageObjectByDfpName(e)});for(s in n){var p=properAdPool.sizes[s];if(-1!=["sharethrough","triplelift","teads"].indexOf(e))for(var l=ProperMedia.utils.deepCopy(n[s]),c=0;c<l.length;c++){var u=l[c],g=u.split("|");g&&1<g.length&&properPage.getSlotFromPageObjectByDfpName(g[0])?(ProperMedia.utils.deepAccess(d,g[0])||(d[g[0]]={}),ProperMedia.utils.deepAccess(d,g[0]+"."+s)||(d[g[0]][s]=[]),n[s].splice(n[s].indexOf(u),1),d[g[0]][s].push(g[1])):g&&1<g.length&&(ProperMedia.utils.deepAccess(properOps,"ad_slots.video."+g[0])||ProperMedia.utils.deepAccess(properOps,"ad_slots.display."+g[0]))&&!properPage.getSlotFromPageObjectByDfpName(g[0])&&n[s].splice(n[s].indexOf(u),1)}0<n[s].length-p&&n[s].splice(p,n[s].length-p),ProperMedia.utils.deepAccess(this,"sizes."+s)||(this.sizes[s]=properAdPool.sizes[s])}for(o in d)for(var m in d[o])void 0!==properAdPool.sizes[m]&&0<d[o][m].length?ProperMedia.utils.deepAccess(this,"sizes."+m)||(this.sizes[m]=properAdPool.sizes[m]):delete d[o][m];if(0<Object.keys(n).length||0<Object.keys(d).length){this.bids[e]=new bidObj(e,n,d,this);try{void 0!==bidAdapters[r]&&consentManager.ready(function(){bidAdapters[r].send(this.bids[e]),"function"==typeof bidAdapters[r].getUserSyncs&&bidAdapters[r].getUserSyncs()}.bind(this))}catch(e){console.error(e),e.bidder=r,sendError(TraceKit.computeStackTrace(e))}}},this))},Ro.prototype.getAuctionBidders=function(a){this.auction_bidders=Object.keys(properOps.bidders[a]||{}).filter(function(e){var t=properOps.bidders[a][e],i=(bidderToAdapterName(e),ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".demand_type")||"display"),r=ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".acceptable_ads")||!1,s=ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".video_type")||null,o=ProperMedia.utils.deepAccess(properSession,"sessionData.no_bid_cnt."+e)||0;return!!gdprEnforcement.makeBidRequestEnforcement(e)&&(properOps.nobid_auction_limit.enabled&&o>=properOps.nobid_auction_limit[i]+3?(o=properOps.nobid_auction_limit[i]-1,ProperMedia.utils.deepSetValue(properSession,"sessionData.no_bid_cnt."+e,o)):properOps.nobid_auction_limit.enabled&&o>=properOps.nobid_auction_limit[i]&&ProperMedia.utils.deepSetValue(properSession,"sessionData.no_bid_cnt."+e,++o),!(ProperMedia.utils.deepAccess(properSpecialOps,"disabled_bidders")||[]).includes(e)&&(!(properUser.checkAdBlock()&&!r&&"native"!==i)&&((""==ProperMedia.utils.deepAccess(properPage,"takeover.bidder")||ProperMedia.utils.deepAccess(properPage,"takeover.bidder")==e)&&((!properOps.nobid_auction_limit.enabled||o<properOps.nobid_auction_limit[i])&&(!this.demand_type||this.demand_type==i)&&("display"==i||"native"==i||"video"==i&&1==properPage.video_enabled&&0<properPage.video_player_count[s].possible.length&&(!this.video_type||this.video_type==s))&&(t.enabled&&!t.test&&!properOps.testing_mode.bidder||properOps.testing_mode.bidder==e)))))},this),this.bidders_no_bids=this.bidders_no_bids.concat(ProperMedia.utils.deepCopy(this.auction_bidders)),this.all_bidders=ProperMedia.utils.deepCopy(this.bidders_no_bids)},Ro.prototype.setAuctionTopAverages=function(){var e=properDevice.isMobile()?"mobile":"desktop";let t=properSpecialOps.dynamicFloorsAvgMult||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+e+".avg_mult")||(properSession?.sessionData?.depth<5?3:4),i=properSpecialOps.dynamicFloorsAvgMax||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+e+".avg_max")||10;var o,a={};(properSpecialOps.dynamicFloors||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+e+".enabled"))&&(o={},properSession.sessionData.bid_avg=properSession.sessionData.bid_avg||{},Object.keys(this.sizes).forEach(function(e){a[e]=Math.min(Math.round((99===this.sizes[e]?4:this.sizes[e])*t),i),o[e]=[]},this),this.ads.forEach(function(e){void 0===o[e.size]&&(a[e.size]=Math.min(Math.round((99===this.sizes[e.size]?4:this.sizes[e.size])*t),i),o[e.size]=[]),o[e.size].length<a[e.size]&&o[e.size].push(e.price)},this),o=_0x359c5d(this,o,a,t,i),Object.keys(o).forEach(function(e){var t=a[e]+1,i=ProperMedia.utils.deepAccess(properAdPool,"floors.sizes."+e)||properAdPool.floors.backup;properSession.sessionData.bid_avg[e]||(t=a[e],properSession.sessionData.bid_avg[e]=0);for(var r=0;r<a[e];r++){var s=o[e][r]||i;properSession.sessionData.bid_avg[e]+=s}properSession.sessionData.bid_avg[e]=Number((properSession.sessionData.bid_avg[e]/t).toFixed(2))},this),properSession.setSessionData())},Ro.prototype.shuffleBidders=function(){for(var e,t,i=this.auction_bidders.length;0!==i;)t=Math.floor(Math.random()*i),e=this.auction_bidders[--i],this.auction_bidders[i]=this.auction_bidders[t],this.auction_bidders[t]=e;return this.auction_bidders},Ro.prototype.setMaxAuctionTimeout=function(){null==this.max_timeout_handle&&(this.max_timeout_handle=properSetTimeout.setTimeout.call(this,function(){this.auctionFinished()},properOps.custom_auction_timeout||this.max_timeout))},Ro.prototype.clearMaxAuctionTimeout=function(){clearTimeout(this.max_timeout_handle),this.max_timeout_handle=null},Ro.prototype.incrementRequestsSent=function(e){this.bids_sent+=isNaN(parseInt(e))?0:parseInt(e),this.requests_sent++},Ro.prototype.incrementBidResponseCount=function(e){this.bids_returned+=isNaN(parseInt(e))?0:parseInt(e),this.bids_sent<=this.bids_returned&&1==this.bids_sent_finished&&0==this.finished&&this.auctionFinished()},Ro.prototype.getPerecentBidsReady=function(){return 0<this.bids_sent?(this.bids_returned/this.bids_sent*100).toFixed(2):0},Ro.prototype.logBidResponse=function(e,t){var i=new adObj(ProperMedia.utils.deepCopy(e)),r=bidderToAdapterName(t.bidder);"a9"==t.bidder||"a9"==r?(this.amazon_ads.push(i),this.amazon_ads=_0x2b21de(this.amazon_ads)):(this.ads.push(i),this.ads.sort(function(e,t){return parseFloat(t.price)-parseFloat(e.price)}));i=("s2s"==t.bidder?e:t).bidder;-1!==this.bidders_no_bids.indexOf(i)&&this.bidders_no_bids.splice(this.bidders_no_bids.indexOf(i),1),properUser.checkAdBlockDetected()&&!properUser.checkAdBlock()||("a9"==t.bidder||"a9"==r?properAdPool.addAmazonBidToPool(e):properAdPool.addBidToPool(e))},Ro.prototype.calcAuctionMs=function(){return 0<this.bids_done_ts&&0<this.bids_started_ts&&this.bids_done_ts>this.bids_started_ts?this.bids_done_ts-this.bids_started_ts:-1},Ro.prototype.auctionTimePassed=function(){return(new Date).getTime()-this.bids_started_ts},Ro.prototype.auctionFinished=function(){this.finished||(this.finished=!0,properLog.mylog("Auction Finished"),this.clearMaxAuctionTimeout(),this.bids_done_ts=ProperMedia.utils.getTimestampMs(),properAdPool.auctionFinished(this.id),this.setAuctionTopAverages(),this.setBiddersWithNoBids())},Ro.prototype.setBiddersWithNoBids=function(){properOps.nobid_auction_limit.enabled&&this.all_bidders.length&&(this.all_bidders.forEach(function(e){var t;-1!==this.bidders_no_bids.indexOf(e)?(t=(ProperMedia.utils.deepAccess(properSession,"sessionData.no_bid_cnt."+e)||0)+1,ProperMedia.utils.deepSetValue(properSession,"sessionData.no_bid_cnt."+e,t)):ProperMedia.utils.deepAccess(properSession,"sessionData.no_bid_cnt."+e)&&delete properSession.sessionData.no_bid_cnt[e]},this),properSession.setSessionData())},Ro.prototype.setAliasAccounts=function(){this.alias_accounts=!!(ProperMedia.utils.deepAccess(properSpecialOps,"alias_accounts")||ProperMedia.utils.deepAccess(properSpecialOps,"alternate_bidders_pageviews")&&ProperMedia.utils.deepAccess(properSession,"sessionData.depth")%2==0||ProperMedia.utils.deepAccess(properSpecialOps,"alternate_bidders_auctions")&&ProperMedia.utils.deepAccess(properSession,"sessionData.auction_count")%2==0)},Ro.prototype.checkAlternateAccounts=function(e){var t=ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".alias")||!1;return(properSpecialOps.alias_accounts||properSpecialOps.alternate_bidders_auctions||properSpecialOps.alternate_bidders_pageviews)&&this.alias_accounts&&(t||!t&&-1==this.auction_bidders.indexOf("alias_"+e))||!this.alias_accounts&&!t},Ro);function Ro(e,t,i){this.id=ProperMedia.utils.generateUUID(),this.requests_sent=0,this.ads=[],this.amazon_ads=[],this.bid_errors=[],this.bids={},this.bids_sent_finished=!1,this.bids_sent=0,this.bids_returned=0,this.bids_started_ts=0,this.bids_done_ts=0,this.auction_bidders=[],this.all_bidders=[],this.bidders_no_bids=[],this.max_timeout=1500,this.max_timeout_handle=null,this.auction_num=e,this.alias_accounts=!1,this.demand_type=t||null,this.video_type=i||null,this.sizes={},this.finished=!1}var cookieMatchingObj=function(){this.proper_uid="",this.bidderUserSyncValues={},this.cookie_map={aol:["aol_outstream","aol_instream"],sovrn:["sovrn","sovrn_instream","sovrn_outstream"],yahoo:["yahoo","yahoo_instream","yahoo_outstream"],adaptmx:["adaptmx","adaptmx_outstream","adaptmx_instream"],magnite:["magnite","magnite_instream","magnite_outstream"],pubmatic:["pubmatic","pubmatic_outstream","pubmatic_native"],engagebdr:["engagebdr","engagebdr_instream","engagebdr_outstream"],xandr:["xandr","xandr_native","xandr_instream","xandr_outstream"],verizon_media:["verizon_media","yahoo","yahoo_instream","yahoo_outstream"]},this.done_matching=!1,this.sent=0,this.received=0,this.timeout=1e3,this.timeout_handle=null,this.callback=null,this.init=function(){this.proper_uid=properUser.pubcid||userIdAdapters.pubCommonId.getValue(),Object.keys(ProperMedia.utils.deepAccess(properOps,"bidders.s2s")||{}).forEach(function(e){(ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".enabled")||properOps.testing_mode.enabled&&properOps.testing_mode.bidder==e)&&this.getBidderUserSyncValue(e)},this)},this.cookieMatch=function(){var t=[];Object.keys(ProperMedia.utils.deepAccess(properOps,"bidders.s2s")||{}).forEach(function(e){(ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+".enabled")||properOps.testing_mode.enabled&&properOps.testing_mode.bidder==e)&&t.push(e)});for(var e=0;e<t.length;e++){var i=t[e].replace("_s2s","");this.bidderUserSyncValues[i]||consentManager.ready(function(){this.requestCookieMatch(i)}.bind(this))}0==this.sent?this.matchingDone():this.addTimeout()},this.requestCookieMatch=function(e){if(!gdprEnforcement.userSyncEnforcement(e+"_s2s"))return!1;properLog.mylog("Start "+e+" Cookie Matching");var t=[];"boolean"==typeof gdprConsent.gdprApplies&&(t.push("gdpr="+gdprConsent.gdprApplies.toString()),gdprConsent.consentString&&t.push("gdpr_consent="+gdprConsent.consentString)),uspConsent.usPrivacy&&t.push("us_privacy="+uspConsent.usPrivacy);var i,r=t.join("&"),s=properOps.usync_endpoint+"?bidder="+e+"&proper_uid="+this.proper_uid+"&uid=",o="",a="",n="",d="",t=!1;"adaptmx"==e||"adaptmx_instream"==e||"adaptmx_outstream"==e?a="https://prebid.a-mo.net/cchain/0?cb="+encodeURIComponent(s)+"&"+r:"sovrn"==e||"sovrn_instream"==e||"sovrn_outstream"==e?(o="[SOVRNID]",a="https://ce.lijit.com/merge?pid="+(i=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.site_id")||263069)+"&3pid="+this.proper_uid+"&location="+encodeURIComponent(s+o)+"&"+r):"pubmatic"==e||"pubmatic_outstream"==e||"pubmatic_native"==e?(o="#PM_USER_ID",a="https://image6.pubmatic.com/AdServer/UCookieSetPug?oid=1&rd="+encodeURIComponent(s+o)+"&"+r):"districtm"==e?(o="$UID",a="https://ib.adnxs.com/getuid?"+encodeURIComponent(s+o)+"&"+r):"sonobi"==e?(o="[UID]",a="https://sync.go.sonobi.com/us?loc="+encodeURIComponent(s+o)+"&"+r):"yieldmo"==e?(o="$UID",a="https://ads.yieldmo.com/pbsync?&redirectUri="+encodeURIComponent(s+o)+"&"+r):"gumgum"==e?(d="gg-usync-iframe",(i=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.site_id")||"")&&!document.getElementById(d)&&(n="https://rtb.gumgum.com/getuid/"+i+"?r="+encodeURIComponent(s+o)+"&"+r)):"mediagrid"==e?(o="${BSW_UUID}",a="https://x.bidswitch.net/check_uuid/"+encodeURIComponent(s+o)+"?"+r):"verizon_media"==e||"yahoo"==e||"yahoo_instream"==e||"yahoo_outstream"==e?(a="https://ups.analytics.yahoo.com/ups/58355/sync?redir=true",t=function(){this.received++}.bind(this)):"aol_instream"==e||"aol_outstream"==e?a="https://pixel.advertising.com/ups/58316/sync?redir=true&"+r:"xandr"==e||"xandr_native"==e||"xandr_instream"==e||"xandr_outstream"==e?(o="$UID",a="https://ib.adnxs.com/getuid?"+encodeURIComponent(s+o)):"engagebdr"==e||"engagebdr_instream"==e||"engagebdr_outstream"==e?(o="[UUID]",r=1000227,a="https://match.bnmla.com/usersync?sspid="+(r=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.account_overrides.enabled")?ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.account_overrides.bidder_ids.sspid")||r:r)+"&redir="+encodeURIComponent(s+o)):"magnite"!=e&&"magnite_instream"!=e&&"magnite_outstream"!=e||document.getElementById(d="multisync-iframe")||(o=8777,n="https://secure-assets.rubiconproject.com/utils/xapi/multi-sync.html?p="+(o=ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.account_overrides.enabled")?ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e+"_s2s.account_overrides.bidder_ids.account_id")||o:o)+"&endpoint=us-west"),""!=a?(this.sent++,$.ajax({url:a,bidder:e,requestType:"jsonp",onload:t})):n&&d&&(this.sent++,(t=document.createElement("iframe")).id=d,t.width=0,t.height=0,t.marginWidth=0,t.marginHeight=0,t.scrolling="no",t.frameBorder=0,t.style.border="0px",t.style.display="none",t.src=n,document.body.appendChild(t))},this.logMatchingResponse=function(e,i,t){this.updateBidderUserSyncData(e,t),this.received++,"sonobi"==e&&$(function(){try{var e=document.createElement("script");e.src="//sync.go.sonobi.com/uc.js?pubid="+(i||this.proper_uid),e.async=!0,e.type="text/javascript";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}catch(e){console.log(e),sendError(TraceKit.computeStackTrace(e))}}),this.received>=this.sent&&this.matchingDone()},this.getBidderUserSyncValue=function(e){var t={bidderCode:e},e=e.replace("_s2s","");properStorage.cookiesAreEnabled(t)&&properStorage.getCookie(e+"_cookie",t)&&(this.bidderUserSyncValues[e]=properStorage.getCookie(e+"_cookie",t)),properStorage.hasLocalStorage(t)&&(this.bidderUserSyncValues[e]?(properStorage.setDataInLocalStorage("ProperS2SUserSync."+e,this.bidderUserSyncValues[e],t),properStorage.deleteCookie(e+"_cookie","Lax","",t)):properStorage.getDataFromLocalStorage("ProperS2SUserSync."+e,t)&&(this.bidderUserSyncValues[e]=properStorage.getDataFromLocalStorage("ProperS2SUserSync."+e,t)))},this.updateBidderUserSyncData=function(e,t){if(e&&t)for(var i,r,s,o={bidderCode:e.includes("_s2s")?e:e+"_s2s"},a=(e=e.replace("_s2s","")).replace(/_instream|_outstream/,""),n=this.cookie_map[a]||[e],d=0;d<n.length;d++)this.bidderUserSyncValues[n[d]]=t,properStorage.hasLocalStorage(o)?properStorage.setDataInLocalStorage("ProperS2SUserSync."+n[d],t,o):properStorage.cookiesAreEnabled(o)&&((s=new Date).setTime(s.getTime()+5184e6),i=n[d]+"_cookie",r=t,s=s.toGMTString(),properStorage.setCookie(i,r,s,"Lax","",{bidderCode:e}))},this.matchingDone=function(){1!=this.done_matching&&(this.done_matching=1,ProperMedia.utils.isFn(this.callback)&&(this.callback(),this.callback=null),properLog.mylog("S2S Cookie Matching Done"),this.resetTimeout())},this.addTimeout=function(){var e=this;this.timeout_handle=properSetTimeout.setTimeout.call(e,function(){e.resetTimeout(),e.matchingDone()},e.timeout)},this.resetTimeout=function(){clearTimeout(this.timeout_handle),this.timeout_handle=null}},sessionObj=function(){this.sessionData={uuid:"",depth:0,referrer:"",gclid:"",fbclid:"",utm_campaign:"",utm_source:"",utm_medium:"",utm_term:"",utm_content:"",utm_template:"",utm_referrer:"",utm_adset:"",utm_subid:"",revenue:0,bid_avg:{},no_bid_cnt:{},auction_count:0,last_threshold:0},this.sessionCookieNameOld="properSessionData",this.sessionCookieNameNew="properSessionStorage",this.coreStorageObj={moduleType:"core",moduleName:"sessionData"},this.init=function(){this.getSessionData(),ProperMedia.utils.deepAccess(this,"sessionData.depth")&&ProperMedia.utils.isNumber(parseInt(this.sessionData.depth))?this.sessionData.depth=parseInt(this.sessionData.depth)+1:this.sessionData.depth=1,this.initBidAvg();var e=["utm_medium","utm_source","utm_campaign","utm_term","utm_content","utm_template","utm_referrer","utm_adset","utm_subid","gclid","fbclid"],t=e.some(function(e){return void 0!==properPage.get_vars[e]},this);""===properPage.referrer||ProperMedia.utils.matchDomain(properPage.domain,properPage.referrer)||this.checkForChange("referrer",properPage.referrer)&&(t=!0),t&&e.forEach(function(e){this.checkForChange(e,properPage.get_vars[e]||"")},this),void 0!==this.sessionData.uuid&&""!=this.sessionData.uuid||(this.sessionData.uuid=ProperMedia.utils.generateUUID(),this.sessionData.referrer=properPage.referrer,this.sessionData.last_threshold=0),audiencePixels.controller.newPageview();e=1e3*parseFloat(properPage.get_vars.proper_rps??0);0<e&&(this.sessionData.last_threshold=this.sessionData.revenue-.01),this.setSessionRevenue(e),window.proper_ad_session_uuid=this.sessionData.uuid,this.setSessionData()},this.checkForChange=function(e,t){return this.sessionData[e]!==t&&(this.sessionData[e]=t,this.sessionData.uuid="",this.sessionData.depth=1,!0)},this.getSessionData=function(){var e=properStorage.getCookie(this.sessionCookieNameNew,this.coreStorageObj)||properStorage.getCookie(this.sessionCookieNameOld,this.coreStorageObj);e&&ProperMedia.utils.isStr(e)&&(e=ProperMedia.utils.isBase64(e)?ProperMedia.utils.b64DecodeUnicode(e):decodeURIComponent(e),e=ProperMedia.utils.safeJsonParse(e)||{},ProperMedia.utils.mergeObject(this.sessionData,e)),properPage.domain!==properPage.root_domain&&this.deleteSessionData(this.sessionCookieNameOld,"."+properPage.domain)},this.setSessionData=function(){try{var e=new Date;e.setTime(e.getTime()+18e5);var t=new Date;t.setHours(23,59,59,0);var i=(Date.parse(e)<Date.parse(t)?e:t).toGMTString();properStorage.setCookie(this.sessionCookieNameNew,ProperMedia.utils.b64EncodeUnicode(JSON.stringify(this.sessionData)),i,"Lax","."+properPage.root_domain,this.coreStorageObj)}catch(e){}},this.deleteSessionData=function(e,t){properStorage.deleteCookie(e,"Lax",t,this.coreStorageObj)},this.setSessionRevenue=function(e){this.sessionData.revenue+=parseFloat(e)/1e3||0,properLog.mylog("Session revenue: "+this.sessionData.revenue),this.setSessionData(),audiencePixels.controller.checkThresholds(),window.proper_rps=this.sessionData.revenue},this.updateSessionAuctionCount=function(){this.sessionData.auction_count+=1,properLog.mylog("Session Auction Count: "+this.sessionData.auction_count),this.setSessionData()},this.initBidAvg=function(){let s=properDevice.isMobile()?"mobile":"desktop";if((properSpecialOps.dynamicFloors||ProperMedia.utils.deepAccess(properOps,"dynamic_floors.enabled"))&&1==this.sessionData.depth&&ProperMedia.utils.isPlainObject(properSpecialOps.initDynamicFloorPrices)&&Object.keys(properSpecialOps.initDynamicFloorPrices).length){this.sessionData.bid_avg=ProperMedia.utils.deepAccess(properSpecialOps,"initDynamicFloorPrices")||{};let i=1;var e=Math.round(100*(ProperMedia.utils.deepAccess(properOps,"dynamic_floors.init_mult_min")||.5))/100,t=Math.round(100*(ProperMedia.utils.deepAccess(properOps,"dynamic_floors.init_mult_max")||.5))/100;properSpecialOps.dynamicFloorsInitModifier?i=properSpecialOps.dynamicFloorsInitModifier:ProperMedia.utils.isNumber(e)&&ProperMedia.utils.isNumber(t)&&0<e&&0<t&&(e==t?i=t:e<t&&(i=Math.random()*(t-e)+e));let r=ProperMedia.utils.deepAccess(properSpecialOps,"initDynamicFloorInitMax")||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+s+".init_floor_max")||1.25;Object.keys(this.sessionData.bid_avg).forEach(function(e){var t=ProperMedia.utils.deepAccess(properSpecialOps,"initDynamicFloorSizeInitMax."+e)||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+s+".init_size_floor_max."+e)||r;this.sessionData.bid_avg[e]=ProperMedia.utils.round(Math.min(this.sessionData.bid_avg[e]*i,t),2)},this)}}},userSyncs=(Br=!1,Er=null,Fr=null,Gr=[],Ir={iframe:function(e){var t=document.createElement("iframe");t.id=Hr("i-"),t.frameborder="0",t.allowtransparency="true",t.marginheight="0",t.marginwidth="0",t.width="0",t.hspace="0",t.vspace="0",t.height="0",t.scrolling="no",t.style.display="none",t.style.width="0",t.style.height="0",t.sandbox="allow-scripts allow-same-origin",t.src=e.url,t.onload=function(){e.payload?properStorage.setDataInLocalStorage("ProperEbUserSync."+e.bidder,Date.now(),{bidderCode:e.bidder}):properStorage.setDataInLocalStorage("ProperUserSync."+e.bidder,Date.now(),{bidderCode:e.bidder})},Fr.appendChild(t),e.payload&&(t.contentWindow.document.open(),t.contentWindow.document.write(e.payload),t.contentWindow.document.close())},image:function(e){var t=new Image;t.src=e.url,t.onload=function(){properStorage.setDataInLocalStorage("ProperUserSync."+e.bidder,Date.now(),{bidderCode:e.bidder})}}},{add:function(i){return consentManager.ready(function(){var e=ProperMedia.utils.isArray(i)?i[0]:i,t=ProperMedia.utils.deepAccess(e,"demand_type"),e=ProperMedia.utils.deepAccess(e,"bidder");"video"!=t&&"display"!=t&&t||!function(e){if(gdprEnforcement.userSyncEnforcement(e)&&ProperMedia.utils.deepAccess(properOps,"bidders.header."+e+".enabled")){if(!properStorage.hasLocalStorage({bidderCode:e}))return 1;e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+e+".edge")||!1?properStorage.getDataFromLocalStorage("ProperEbUserSync."+e,{bidderCode:e}):properStorage.getDataFromLocalStorage("ProperUserSync."+e,{bidderCode:e});return!e||2592e6<Date.now()-parseInt(e)}}(e)||(Gr=Gr.concat(i),Kr())}),!0},start:function(){Br||(Br=!0,(Fr=document.createElement("div")).id=Hr("us-"),Fr.style.display="none",Fr.style.width="0",Fr.style.height="0",document.body.appendChild(Fr)),Kr()}}),Br,Er,Fr,Gr,Ir;function Hr(e){return(e||"")+Math.random().toString(16).substr(2)}function Jr(){ebData={usersyncs:[],cookies:{}},Gr.splice(0,5).forEach(function(e){var t;ProperMedia.utils.deepAccess(properOps,"bidders.header."+e.bidder+".edge")||!1?(ebData.usersyncs.push(e),(t=cookieMatching.getBidderUserSyncValue(e.bidder+"_eb"))&&(ebData.cookies[bidder]=t)):Ir[e.type](e)}),ebData.usersyncs.length&&$.ajax({url:properOps.usync_hb_endpoint,method:"POST",requestType:"cors",data:JSON.stringify(ebData),success:function(e){if(response=ProperMedia.utils.safeJsonParse(e),response&&response.syncs&&0<response.syncs.length)for(var t=0;t<response.syncs.length;t++){var i=response.syncs[t];i.bidder&&i.type&&i.payload&&("iframe"==i.type?(i.url="javascript:\"<html><body style='background:transparent'></body></html>\"",Ir[i.type](i)):properStorage.setDataInLocalStorage("ProperEbUserSync."+i.bidder,Date.now(),{bidderCode:i.bidder}))}response.cookies&&Object.keys(response.cookies).map(function(e){response.cookies[e]&&cookieMatching.updateBidderUserSyncData(e,response.cookies[e])})},error:function(e){}}),0===Gr.length&&(clearInterval(Er),Er=null)}function Kr(){Br&&0!==Gr.length&&null===Er&&(Er=setInterval(Jr,1500),Jr())}var debugConsole=function(){this.enabled=!1,this.resize_elem=null,this.breadcrumb_elem=null,this.debug_cont_elem=null,this.debug_console_elem=null,this.view_refresh_timer=null,this.slot_refresh_interval=null,this.debug_style_elem=null,this.createDebugConsole=function(e){this.enabled=!0,this.debug_console_elem||(this.debug_console_elem=document.createElement("div"),this.debug_console_elem.id="proper-debug-console",document.body.appendChild(this.debug_console_elem)),this.resize_elem||(this.resize_elem=document.createElement("div"),this.resize_elem.innerHTML="⋮",this.resize_elem.id="proper-debug-console-resizer",this.debug_console_elem.appendChild(this.resize_elem)),this.breadcrumb_elem||(this.breadcrumb_elem=document.createElement("div"),this.breadcrumb_elem.id="proper-debug-console-breadcrumb",this.debug_console_elem.appendChild(this.breadcrumb_elem)),this.debug_cont_elem||(this.debug_cont_elem=document.createElement("div"),this.debug_cont_elem.id="proper-debug-console-cont",this.debug_console_elem.appendChild(this.debug_cont_elem)),this.addCssStyle(),this.resize_elem&&this.breadcrumb_elem&&this.setDragAndResizeActions(),this.addSlotOverlays(),this.createOverview()},this.addCssStyle=function(){this.debug_style_elem||(this.debug_style_elem=document.createElement("style"),this.debug_style_elem.id="proper-debug-styling",this.debug_style_elem.innerHTML=this.debug_console_css,document.body.appendChild(this.debug_style_elem))},this.createDebugOverlays=function(){this.addCssStyle(),this.addSlotOverlays(),this.refreshViewInterval()},this.addSlotOverlays=function(){Object.keys(properPage.slots).forEach(function(t){Object.keys(properPage.slots[t]).forEach(function(e){e=properPage.slots[t][e];this.addSlotOverlay(e)},this)},this)},this.addSlotOverlay=function(e){return e instanceof slotObj&&(e.getElement()&&(s="proper_debug_overlay_"+e.name,r=document.getElementById(s),(t=document.getElementById(e.div_id))&&r&&r.parentNode.removeChild(r),(i=document.createElement("div")).id=s,i.classList.add("proper-debug-overlay"),(r=document.createElement("div")).classList.add("proper-debug-overlay-background"),(s=document.createElement("div")).classList.add("proper-debug-overlay-text"),s.innerHTML=[e.name,"Size: "+e.displayed_ad.size,"Bidder: "+e.displayed_ad.bidder,"CPM: "+e.displayed_ad.price].join("<br>"),$(r).on("click",function(){this.toggleMobileSticky(!0),this.createSlotView(e)}.bind(this)),i.append(s),i.append(r),t.appendChild(i)),!0);var t,i,r,s},this.toggleMobileSticky=function(e){e=e?"remove":"toggle";document.body.classList[e]("proper-debug-pinned"),document.getElementById("proper-debug-console").classList[e]("pinned")},this.destroyDebugConsole=function(){this.enabled=!1,this.debug_console_elem&&this.debug_console_elem.parentNode.removeChild(this.debug_console_elem),this.debug_style_elem&&this.debug_style_elem.parentNode.removeChild(this.debug_style_elem),this.view_refresh_timer&&clearTimeout(this.view_refresh_timer),this.view_refresh_timer=null,this.debug_console_elem=null,this.breadcrumb_elem=null,this.debug_cont_elem=null,this.debug_style_elem=null,this.resize_elem=null,Object.keys(properPage.slots).forEach(function(t){Object.keys(properPage.slots[t]).forEach(function(e){e=properPage.slots[t][e];this.removeSlotOverlay(e)},this)},this)},this.removeSlotOverlay=function(e){if(!(e instanceof slotObj))return!1;e=e.getElement();return e&&$(e).parent().find(".proper-debug-overlay").remove(),!0},this.refreshViewInterval=function(){clearTimeout(this.slot_refresh_interval),this.slot_refresh_interval=properSetInterval.setInterval.call(this,this.loadViewCallback,1500)},this.refreshViewTimer=function(e,t){clearTimeout(this.view_refresh_timer),this.view_refresh_timer=properSetTimeout.setTimeout.call(this,this.loadViewCallback,1500,e,t)},this.loadViewCallback=function(e,t){this.addSlotOverlays(),"overview"==e?this.createOverview():"page"==e?this.createPageView(t):"slot"==e?this.createSlotView(t):"ad_pool"==e?this.createAdPoolView(t):"auction"==e&&this.createAuctionView(t)},this.createBreadcrumb=function(r){this.breadcrumb_elem.innerHTML="";var e=document.createElement("span");$(e).addClass("proper-debug-mobile-pin-btn"),e.innerHTML="↓",$(e).on("click",function(){this.toggleMobileSticky()}.bind(this)),this.breadcrumb_elem.appendChild(e),Object.keys(r).forEach(function(e){var t=r[e],i=document.createElement("div");$(i).addClass("proper-debug-breadcrumb"),i.innerHTML=t.text,$(i).on("click",function(){this.loadViewCallback(t.text.replaceAll(" ","_"),t.obj)}.bind(this)),this.breadcrumb_elem.appendChild(i),e<r.length-1?(i=document.createElement("div"),$(i).addClass("proper-debug-breadcrumb-spacer"),this.breadcrumb_elem.appendChild(i)):e==r.length-1&&this.refreshViewTimer(t.text,t.obj)},this);e=document.createElement("span");$(e).addClass("proper-debug-close-console-btn"),e.innerHTML="×",$(e).on("click",function(){this.destroyDebugConsole()}.bind(this)),this.breadcrumb_elem.appendChild(e)},this.createTitleElement=function(e){var t=document.createElement("div");$(t).addClass("proper-debug-cont-title"),t.style.cssText="padding: 4px; margin: 4px; font-size: 1em; font-weight: 700; display: inline-block;",$(t).html(e),this.debug_cont_elem.appendChild(t)},this.createStateElements=function(i){var r=document.createElement("div");$(r).addClass("proper-debug-state-cont"),this.debug_cont_elem.appendChild(r),Object.keys(i).forEach(function(e){var t=document.createElement("div");$(t).addClass("proper-debug-state-cell"),i[e]||$(t).addClass("proper-debug-state-cell red"),$(t).html(e),r.appendChild(t)},this)},this.createOverview=function(){this.createBreadcrumb([{text:"overview",obj:{}}]),this.debug_cont_elem.innerHTML="",this.createTitleElement("Sections");var e=document.createElement("div");$(e).addClass("proper-debug-sections-cont"),this.debug_cont_elem.appendChild(e);var t=document.createElement("button");$(t).addClass("proper-debug-page-cell"),properPage instanceof pageObj==0&&$(t).addClass("proper-debug-page-cell red"),$(t).html("Page & Slots"),$(t).on("click",function(){this.createPageView(properPage)}.bind(this)),e.appendChild(t);t=document.createElement("button");$(t).addClass("proper-debug-ad-pool-cell"),0==properAdPool.ads.length&&0==properAdPool.amazon_ads.length&&$(t).addClass("proper-debug-ad-pool-cell red"),$(t).html("Ad Pool & Auctions"),$(t).on("click",function(){this.createAdPoolView(properAdPool)}.bind(this)),e.appendChild(t),this.createTitleElement("Device");t=[{property:"OS",value:properDevice.os},{property:"OS Group",value:properDevice.os_group},{property:"Browser",value:properDevice.browser},{property:"Browser Group",value:properDevice.browser_group},{property:"Device Type",value:properDevice.device_type},{property:"User Agent",value:navigator.userAgent}];this.createTable("#proper-debug-console-cont",t,!1),this.createTitleElement("Session Data");t=[{property:"UUID",value:properSession.sessionData.uuid},{property:"Depth",value:properSession.sessionData.depth},{property:"Referrer",value:properSession.sessionData.referrer},{property:"UTM campaign",value:properSession.sessionData.utm_campaign},{property:"UTM source",value:properSession.sessionData.utm_source},{property:"UTM medium",value:properSession.sessionData.utm_medium},{property:"UTM term",value:properSession.sessionData.utm_term},{property:"UTM content",value:properSession.sessionData.utm_content},{property:"RPS",value:properSession.sessionData.revenue}];this.createTable("#proper-debug-console-cont",t,!1),this.createTitleElement("Special Ops");t=document.createElement("pre");t.innerHTML=JSON.stringify(properSpecialOps,void 0,2),this.debug_cont_elem.appendChild(t),this.debug_cont_elem.appendChild(document.createElement("hr"))},this.createPageView=function(t){this.createBreadcrumb([{text:"overview",obj:{}},{text:"page",obj:t}]),this.debug_cont_elem.innerHTML="",this.createTitleElement("Slots");var r=document.createElement("div");$(r).addClass("proper-debug-page-slots-cont"),this.debug_cont_elem.appendChild(r),Object.keys(properPage.slots).forEach(function(i){Object.keys(properPage.slots[i]).forEach(function(e){var t=properPage.slots[i][e],e=(t.getElement(),document.createElement("button"));$(e).addClass("proper-debug-page-slot-cell"),$(e).html(t.name),$(e).on("click",function(){this.createSlotView(t)}.bind(this)),r.appendChild(e)},this)},this),this.createTitleElement("States");var e={};1!==t.isolated&&0==properOps.dfp_per_slot&&(e["DFP Init"]=properPage.dfp_init,void 0!==properPage.dfp_enabled_services&&1==properPage.dfp_enabled_services&&"function"==typeof googletag.pubads().isSRA&&googletag.pubads().isSRA()&&(e["DFP Single Request Enabled"]=1)),0<Object.keys(e).length&&this.createStateElements(e),this.createTitleElement("Page Data");e=[{property:"UUID",value:t.uuid},{property:"DFP ID",value:properOps.dfp_id},{property:"MCM Type",value:properOps.mcm_type},{property:"Url",value:t.url},{property:"Referrer",value:t.referrer},{property:"Protocol",value:t.protocol},{property:"Canonical url",value:t.canonical_url},{property:"Isolated",value:t.isolated},{property:"Width",value:t.width},{property:"Height",value:t.height},{property:"Post id",value:t.post_id},{property:"SPA enabled",value:t.spa_settings.enabled}];1==t.spa_settings.enabled&&(e=e.concat([{property:"SPA gallery id",value:t.spa_settings.gallery_id},{property:"SPA gallery url",value:t.spa_settings.gallery_base_url},{property:"SPA page number",value:t.spa_settings.page_number},{property:"SPA prefetch enabled",value:t.spa_settings.prefetch}])),this.createTable("#proper-debug-console-cont",e,!1),this.createTitleElement("Page Meta");var i=[];Object.keys(t.page_meta).forEach(function(e){i.push({property:e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "),value:"object"==typeof t.page_meta[e]?JSON.stringify(t.page_meta[e]):t.page_meta[e]})}),this.createTable("#proper-debug-console-cont",i,!1)},this.createSlotView=function(e){this.createBreadcrumb([{text:"overview",obj:{}},{text:"page",obj:properPage},{text:"slot",obj:e}]),this.debug_cont_elem.innerHTML="",this.createTitleElement("Slots");var s=document.createElement("div");$(s).addClass("proper-debug-page-slots-cont"),this.debug_cont_elem.appendChild(s);var o=e.name.toString();Object.keys(properPage.slots).forEach(function(r){Object.keys(properPage.slots[r]).forEach(function(e){var t=properPage.slots[r][e],i=(t.getElement(),document.createElement("button"));$(i).addClass("proper-debug-page-slot-cell"),o==e&&$(i).addClass("proper-debug-page-slot-cell active"),$(i).html(t.name),$(i).on("click",function(){this.createSlotView(t)}.bind(this)),s.appendChild(i)},this)},this),this.createTitleElement("States");var t={"In DOM":e.getElement()?1:0};0==properPage.isolated&&(1==properOps.dfp_per_slot?(t["Slot DFP Init"]=e.dfp_init,1==e.dfp_enabled_services&&"function"==typeof e.googletag().pubads().isSRA&&e.googletag().pubads().isSRA()&&(t["DFP Single Request"]=1)):(t["DFP Init"]=properPage.dfp_init,1==properPage.dfp_enabled_services&&"function"==typeof googletag.pubads().isSRA&&googletag.pubads().isSRA()&&(t["DFP Single Request Enabled"]=1)),t["Mapped DFP Sizes"]=e.mapped_dfp_sizes,t["DFP Ready"]=e.dfp_ready,t["DFP Sent"]=e.dfp_sent,e.refresh.enabled&&0<e.refresh.count&&(t["DFP Refreshed"]=e.dfp_refreshed)),t.Displayed=e.displayed,this.createStateElements(t),this.createTitleElement(e.name);var i=document.createElement("div");$(i).addClass("proper-debug-scroll-slot-inview"),i.style.cssText="display: inline-block; cursor: pointer;",$(i).html("👁"),$(i).on("click",function(){e.getElement().scrollIntoView()}.bind(this)),this.debug_cont_elem.appendChild(i);var r,t=e.sizes||[],i=0==e.viewability.viewable?e.viewability.total_time_inview:e.viewability.total_time_inview+e.getTimeInview(),i=[{property:"Type",value:e.type},{property:"Size",value:e.size},{property:"Sizes",value:t.join(", ")},{property:"Default size",value:e.default_size.join("x")},{property:"MCM Type",value:e.mcm_type},{property:"DFP ID",value:e.dfp_id},{property:"DFP AD Unit Path",value:e.dfpAdUnitPath},{property:"Div ID",value:e.div_id},{property:"Number",value:e.number},{property:"Refresh",value:e.refresh.enabled},{property:"Refresh cnt",value:e.refresh.count},{property:"Refresh max",value:e.refresh.max},{property:"Refresh interval",value:e.refresh.current_interval},{property:"Refresh inview interval",value:e.refresh.inview_interval},{property:"Viewable",value:e.viewability.viewable},{property:"Time inview",value:i},{property:"Slider",value:e.slider},{property:"Sticky",value:e.sticky}];i=(i=1==e.sticky?i.concat([{property:"Position",value:e.sticky_settings.position},{property:"Brand",value:e.sticky_settings.brand},{property:"Close btn",value:e.sticky_settings.close_btn},{property:"Disable on close",value:e.sticky_settings.disable_on_close},{property:"Freq cap enabled",value:e.sticky_settings.freq_cap_enabled},{property:"Freq cap",value:e.sticky_settings.freq_cap}]):i).concat([{property:"Lazyload enabled",value:e.lazyload.enabled}]),i=(i=e.lazyload.enabled?i.concat([{property:"In fetch zone",value:e.lazyload.inFetchZone},{property:"In render zone",value:e.lazyload.inRenderZone},{property:"Fetch zone %",value:e.lazyload.fetchMarginPercent+"%"},{property:"Render zone %",value:e.lazyload.renderMarginPercent+"%"}]):i).concat([{property:"Auto delete enabled",value:e.autoDelete.enabled}]),i=(i=e.autoDelete.enabled?i.concat([{property:"In delete zone",value:e.autoDelete.inDeleteZone},{property:"Delete zone %",value:e.autoDelete.autoDeleteMarginPercent+"%"}]):i).concat([{property:"Dynamic enabled",value:e.dynamic.enabled}]),e.dynamic.enabled&&(i=i.concat([{property:"CSS Placement",value:e.dynamic.cssplacement},{property:"CSS Selector",value:e.dynamic.cssselector},{property:"Instance number",value:e.dynamic.instance_number}])),1==properPage.spa_settings.enabled&&1==properPage.spa_settings.prefetch&&(i=i.concat([{property:"Prefetch enabled",value:1}])),this.createTable("#proper-debug-console-cont",i,!1),"video"==e.type&&e.video_player instanceof videoPlayer&&(this.createTitleElement("Video Player"),r=[{property:"ID",value:(r=ProperMedia.utils.deepAccess(e,"video_player.player_settings")||{}).id},{property:"Div ID",value:r.div_id},{property:"DFP Ad Unit",value:r.dfp_ad_unit},{property:"Video ID",value:r.video_id},{property:"Video Type",value:r.video_type},{property:"Number of Ads",value:r.number_of_ads},{property:"Autoplay",value:r.autoplay},{property:"Backfill",value:r.backfill},{property:"Backfill ID",value:r.backfill_id},{property:"Small Player",value:r.small_player},{property:"Small Player Bottom",value:r.small_player_bottom},{property:"Ad Failure Limit",value:r.ad_failure_limit},{property:"Vast Timeout",value:r.vast_timeout},{property:"No Ads No Player",value:r.no_ads_no_player}],i=i.concat([{property:"Lazyload enabled",value:e.lazyload.enabled}]),this.createTable("#proper-debug-console-cont",r,!1)),1==e.displayed&&0<Object.keys(e.displayed_ad).length&&(this.createTitleElement("Displayed Ad"),r=Math.max(0,ProperMedia.utils.getTimePassed(e.tracking_times.dfp_sent_ts,e.tracking_times.dfp_returned_ts)),a=[{property:"Bidder",value:e.displayed_ad.bidder},{property:"Media Type",value:e.displayed_ad.type},{property:"Size",value:e.displayed_ad.size},{property:"Gross",value:e.displayed_ad.gross},{property:"Price",value:e.displayed_ad.price},{property:"Floor price",value:e.displayed_ad.floor},{property:"DFP price",value:e.displayed_ad.dfp_price},{property:"Tag ID",value:e.displayed_ad.tag_id||""},{property:"Campaign ID",value:e.displayed_ad.cid},{property:"Creative ID",value:e.displayed_ad.crid},{property:"Deal ID",value:e.displayed_ad.dealid},{property:"Ad ID",value:e.displayed_ad.adid},{property:"Ad Domain",value:JSON.stringify(e.displayed_ad.adomain)},{property:"Categories",value:JSON.stringify(e.displayed_ad.cat)},{property:"Attributes",value:JSON.stringify(e.displayed_ad.attr)},{property:"Extensions",value:JSON.stringify(e.displayed_ad.ext)}],a=(a=ProperMedia.utils.deepAccess(properOps,"bidders.header."+e.displayed_ad.bidder)||ProperMedia.utils.deepAccess(properOps,"bidders.s2s."+e.displayed_ad.bidder)?a.concat([{property:"Header Response Time",value:e.displayed_ad.response_ms+" ms"}]):a).concat([{property:"DFP Response Time",value:r+" ms"}]),this.createTable("#proper-debug-console-cont",a,!1)),this.createTitleElement("Floors");var a=document.createElement("pre");a.innerHTML=JSON.stringify({floors:e.floors},void 0,2),this.debug_cont_elem.appendChild(a)},this.createAdPoolView=function(i){this.createBreadcrumb([{text:"overview",obj:{}},{text:"ad_pool",obj:i}]),this.debug_cont_elem.innerHTML="",this.createTitleElement("Auctions");var r=document.createElement("div");$(r).addClass("proper-debug-auction-cont"),this.debug_cont_elem.appendChild(r),Object.keys(i.finished_auctions).forEach(function(e){var t=i.finished_auctions[e],e=(t.bids_sent,document.createElement("button"));$(e).addClass("proper-debug-auction-cell"),$(e).html("Auction "+t.auction_num),$(e).on("click",function(){this.createAuctionView(t,i)}.bind(this)),r.appendChild(e)},this),Object.keys(i.auctions).forEach(function(e){var t=i.auctions[e],e=(t.bids_sent,document.createElement("button"));$(e).addClass("proper-debug-auction-cell"),$(e).html("Auction "+t.auction_num),$(e).on("click",function(){this.createAuctionView(t,i)}.bind(this)),r.appendChild(e)},this),this.debug_cont_elem.appendChild(document.createElement("hr")),this.createTitleElement("Bidders");var s=document.createElement("div");$(s).addClass("proper-debug-bidders-cont"),this.debug_cont_elem.appendChild(s),Object.keys(properOps.bidders).forEach(function(r){Object.keys(properOps.bidders[r]).forEach(function(e){var t=properOps.bidders[r][e],i=document.createElement("div");$(i).addClass("proper-debug-bidder-cell"),t.enabled||$(i).addClass("red"),$(i).html(e),s.appendChild(i)},this)},this),this.debug_cont_elem.appendChild(document.createElement("hr")),this.createTitleElement("Bids ("+i.ads.length+")");for(var e=[],t=0;t<i.ads.length;t++){var o=i.ads[t];e.push({bidder:o.bidder,type:o.type,size:o.size,gross:o.gross,price:o.price,floor:o.floor,dfp_price:o.dfp_price,tag_id:o.tag_id,response_ms:o.response_ms,ttl:o.ttl,dealid:o.dealid,crid:o.crid})}this.createTable("#proper-debug-console-cont",e,!0),this.createTitleElement("Amazon Bids ("+i.amazon_ads.length+")");for(e=[],t=0;t<i.amazon_ads.length;t++){o=i.amazon_ads[t];e.push({bidder:o.bidder,type:o.type,size:o.size,gross:o.gross,price:o.price,floor:o.floor,dfp_price:o.dfp_price,tag_id:o.tag_id,response_ms:o.response_ms,ttl:o.ttl,dealid:o.dealid,crid:o.crid})}this.createTable("#proper-debug-console-cont",e,!0),this.createTitleElement("Displayed Bids"),e=[];for(t=0;t<i.displayed_ads.length;t++){o=i.displayed_ads[t];e.push({bidder:o.bidder,type:o.type,size:o.size,gross:o.gross,price:o.price,floor:o.floor,dfp_price:o.dfp_price,tag_id:o.tag_id,response_ms:o.response_ms,ttl:o.ttl,dealid:o.dealid,crid:o.crid})}this.createTable("#proper-debug-console-cont",e,!0);var a=document.createElement("div");$(a).addClass("proper-debug-auction-meta");var n=document.createElement("pre");n.innerHTML=JSON.stringify({"dynamic floors":properSession.sessionData.bid_avg},void 0,2),a.appendChild(n);n=document.createElement("pre");n.innerHTML=JSON.stringify({no_bid_cnt:properSession.sessionData.no_bid_cnt},void 0,2),a.appendChild(n),this.debug_cont_elem.appendChild(a)},this.createAuctionView=function(s){this.createBreadcrumb([{text:"overview",obj:{}},{text:"ad_pool",obj:properAdPool},{text:"auction",obj:s}]),this.debug_cont_elem.innerHTML="",this.createTitleElement("Auction Data");var e=[{property:"Network Requests",value:s.requests_sent},{property:"Bids returned / sent",value:s.bids_returned+" / "+s.bids_sent},{property:"Bids sent",value:s.bids_started_ts?1:0},{property:"Bids ready",value:s.bids_done_ts?1:0},{property:"Auction ms",value:s.calcAuctionMs()},{property:"Max timeout",value:s.max_timeout}];this.createTable("#proper-debug-console-cont",e,!1),this.createTitleElement("Bids");var o=[];0<Object.keys(s.bids).length&&Object.keys(s.bids).forEach(function(e){var t=s.bids[e];if(0<t.responses.length)for(var i=0;i<t.responses.length;i++){var r=t.responses[i];o.push({bidder:r.bidder,displayed:r.displayed,type:r.type,size:r.size,gross:r.gross,price:r.price,floor:r.floor,dfp_price:r.dfp_price,tag_id:r.tag_id,"response ms":r.response_ms,ttl:r.ttl})}}),this.createTable("#proper-debug-console-cont",o,!0),this.createTitleElement("No Bid Responses");o=[];0<Object.keys(s.bids).length&&Object.keys(s.bids).forEach(function(e){var t=s.bids[e];if(0<t.responses_no_bid.length)for(var i=0;i<t.responses_no_bid.length;i++){var r=t.responses_no_bid[i];o.push({bidder:r.bidder,type:r.type,tag_id:r.tag_id,"response ms":r.response_ms})}}),this.createTable("#proper-debug-console-cont",o,!0),this.createTitleElement("Errored Bid Requests");o=[];0<Object.keys(s.bids).length&&Object.keys(s.bids).forEach(function(e){var t=s.bids[e];if(0<t.response_errors.length)for(var i=0;i<t.response_errors.length;i++){var r=t.response_errors[i];o.push({bidder:r.bidder,status:r.status,statusText:r.statusText,responseMs:r.response_ms,timeoutMs:r.timeout})}}),this.createTable("#proper-debug-console-cont",o,!0)},this.createTable=function(a,n,d){var p;!function(){p=document.createElement("table"),$(p).addClass("proper-debug-table"),p.style.cssText="margin: 5px;",$(a).append(p);for(var e=function(){for(var e=[],t=document.createElement("tr"),i=0;i<n.length;i++){var r,s;for(r in n[i])0==e.includes(r)&&(e.push(r),(s=document.createElement("th")).innerHTML=r,$(t).append(s))}1==d&&$(p).append(t);return e}(),t=0;t<n.length;t++){for(var i=document.createElement("tr"),r=0;r<e.length;r++){var s=n[t][e[r]];null==s&&(s="");var o=document.createElement("td");o.style.cssText="padding: 5px;",o.innerHTML=s,$(i).append(o)}$(p).append(i)}}()},this.setDragAndResizeActions=function(){var i=20,r=0,s=0,t=0,o=0,a=0,n=0,d=this.debug_console_elem,e=this.resize_elem,p=this.breadcrumb_elem;function l(e){var t=r+(e.pageY-o),e=s+(e.pageX-n);i<t&&(d.style.height=t+"px"),i<e&&(d.style.width=e+"px")}function c(e){d.style.top=t+(e.pageY-o)+"px",d.style.left=a+(e.pageX-n)+"px"}function u(){window.removeEventListener("mousemove",l)}function g(){window.removeEventListener("mousemove",c)}e.addEventListener("mousedown",function(e){e.preventDefault(),r=parseFloat(getComputedStyle(d,null).getPropertyValue("height").replace("px","")),s=parseFloat(getComputedStyle(d,null).getPropertyValue("width").replace("px","")),t=d.getBoundingClientRect().top,o=e.pageY,a=d.getBoundingClientRect().left,n=e.pageX,window.addEventListener("mousemove",l),window.addEventListener("mouseup",u)}),p.addEventListener("mousedown",function(e){e.preventDefault(),t=d.getBoundingClientRect().top,o=e.pageY,a=d.getBoundingClientRect().left,n=e.pageX,window.addEventListener("mousemove",c),window.addEventListener("mouseup",g)})},this.css_values={fontMedium:"12px",fontLarge:"16px",maxZ:2147483647,purple:"#2C3050",purpleLight:"#555F9E",purpleDark:"#1A1D3E",green:"#44B558",greenLight:"#57EB73",greenDark:"#008C2B",grayLight:"#f6f8fa",grayDark:"#3b565d"},this.debug_console_css="\t\t@keyframes console-tween-in {\t\t\tfrom {left: -500px}\t\t\tto {left: 15px}\t\t}\t\t#proper-debug-console {\t\t\tbackground: "+this.css_values.grayLight+";\t\t\tz-index: "+this.css_values.maxZ+";\t\t\tposition: fixed;\t\t\ttop: 15px;\t\t\tleft: 15px;\t\t\twidth: calc(100% - 30px);\t\t\toverflow: auto;\t\t\theight: 500px;\t\t\twidth: 600px;\t\t\tborder-radius: 5px;\t\t\tcolor:"+this.css_values.grayDark+';\t\t\tfont-size:12px !important;\t\t\tmax-width: calc(100vw - 30px);\t\t\tbox-shadow: 0 0 0 7px rgba(255,255,255,0.7), 0 10px 10px 0 rgba(0,0,0,0.65), inset 0 -4px 0 0 white;\t\t\tanimation: console-tween-in 500ms ease-out;\t\t}#proper-debug-console, #proper-debug-console * {\t\t\t font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif !important;\t\t}\t\t#proper-debug-console.short {\t\t\theight:250px;\t\t}#proper-debug-console-cont {\t\t\tpadding: 8px 8px;\t\t}\t\t#proper-debug-console-resizer {\t\t\twidth: 12px;\t\t\theight: 20px;\t\t\tposition: sticky;\t\t\tz-index: 9999999;\t\t\tbackground: white;\t\t\tcolor: gray;\t\t\tfont-size:16px;\t\t\tdisplay:flex;\t\t\talign-items:center;\t\t\tjustify-content:center;\t\t\tcursor: nwse-resize;\t\t\ttop:calc(100% - 20px);\t\t\tleft:calc(100% - 12px);\t\t\tmargin-bottom: -20px;\t\t}\t\t#proper-debug-console-breadcrumb {\t\t\tfont-weight: bold;\t\t\tborder-radius: 6px 6px 0 0;\t\t\tpadding-left: 11px;\t\t\tbackground: '+this.css_values.purple+";\t\t\tposition: sticky;\t\t\ttop:0;\t\t\tz-index: 999;\t\t\tcursor: move;\t\t\tbox-shadow:inset 0 0 0 4px "+this.css_values.grayLight+";\t\t\tdisplay:flex;\t\t\theight:50px;\t\t}.proper-debug-breadcrumb {\t\t\tmargin: 0px 3px;\t\t\tcursor: pointer;\t\t\tdisplay:block;\t\t\tcolor:white;\t\t}.proper-debug-breadcrumb:not(:last-of-type){\t\t\topacity:0.7;\t\t}\t\t#proper-debug-console-breadcrumb > * {\t\t\tdisplay:flex;\t\t\talign-items:center;\t\t\ttext-transform: capitalize;\t\t}.proper-debug-breadcrumb-spacer {\t\t\tmargin-right:3px;\t\t}.proper-debug-breadcrumb-spacer:after {\t\t\tcontent:'';\t\t\twidth: 4px;\t\t\theight:4px;\t\t\tborder-top: solid 1px white;\t\t\tborder-right: solid 1px white;\t\t\ttransform: rotate(45deg);\t\t\topacity:0.7;\t\t}\t\t.proper-debug-close-console-btn {\t\t\tpadding: 4px;\t\t\tmargin: 0 12px 0 auto;\t\t\tcursor: pointer;\t\t\tdisplay: inline-block;\t\t\tfloat: right;\t\t\tfont-size:21px;\t\t\tfont-family:'Futura', sans-serif !important;\t\t\tfont-weight:normal;\t\t\tcolor: white;\t\t}\t\t#proper-debug-console-cont {\t\t\tdisplay:flex;\t\t\tflex-direction:column;\t\t}#proper-debug-console-cont > * {\t\t\tflex: 1 1 100%;\t\t\tmargin:6px 0 0 0 !important;\t\t\tpadding:0;\t\t}\t\t.proper-debug-auction-meta pre {\t\t\twidth: 50%;\t\t\tfloat: left;\t\t}\t\t.proper-debug-overlay-text {\t\t\ttext-align: left;\t\t\tz-index: "+(this.css_values.maxZ-1)+";\t\t\tpadding: 4px 8px 8px 8px;\t\t\tposition: absolute;\t\t\ttop: 0px;\t\t\tleft: 0px;\t\t\topacity: .90;\t\t\tbackground: "+this.css_values.greenLight+";\t\t\tfont-size: "+this.css_values.fontMedium+";\t\t\tline-height: 1.3em;\t\t\tcolor: black;\t\t}\t\t."+properOps.slot_wrapper_class+".ad-sticky.sticky-btm .proper-debug-overlay-text{\t\t\ttop:auto;\t\t\tbottom:0;\t\t}\t\t.proper-debug-overlay-background {\t\t\tcursor: pointer;\t\t\tbox-shadow: 0 0 0 4px "+this.css_values.greenLight+";\t\t\tz-index: "+(this.css_values.maxZ-2)+";\t\t\tposition: absolute;\t\t\ttop: 0px;\t\t\tbottom: 0px;\t\t\tleft: 0px;\t\t\tright: 0px;\t\t\tmax-width: calc(100vw - 8px);\t\t\tmargin:0 auto;\t\t}\t\t.proper-debug-page-slot-cell {\t\t\tborder: 2px solid black;\t\t\tpadding: 4px;\t\t\tmargin: 4px;\t\t\twidth: fit-content;\t\t\tdisplay: inline-block;\t\t\tcursor: pointer;\t\t}.proper-debug-page-slot-cell.active {\t\t\tbackground:"+this.css_values.greenLight+" !important\t\t}\t\t.proper-debug-state-cell,\t\t.proper-debug-bidder-cell {\t\t\tpadding: 4px 6px 4px 18px;\t\t\tmargin: 4px;\t\t\twidth: fit-content;\t\t\tdisplay: inline-block;\t\t\tposition:relative;\t\t\tbackground: white;\t\t\tborder-radius:30px;\t\t\tbox-shadow: 0 1px 5px 0 rgba(0,0,0,0.1);\t\t}.proper-debug-state-cell:before,\t\t.proper-debug-bidder-cell:before{\t\t\tcontent:'';\t\t\twidth:8px;\t\t\theight:8px;\t\t\tposition: absolute;\t\t\tleft: 5px;\t\t\ttop: 6px;\t\t\tz-index:3;\t\t\tmargin-right:5px;\t\t\tbackground-image: linear-gradient("+this.css_values.greenLight+","+this.css_values.greenDark+");\t\t\tborder-radius: 5px;\t\t\tbox-shadow: inset 0 0 2px 0 "+this.css_values.greenLight+";\t\t}.proper-debug-state-cell.red,\t\t.proper-debug-bidder-cell.red {\t\t\tcolor:red;\t\t}.proper-debug-state-cell.red:before,\t\t.proper-debug-bidder-cell.red:before {\t\t\tbackground:red;\t\t\tbox-shadow:none;\t\t}\t\t.proper-debug-state-cell{\t\t\tborder-radius:0;\t\t}.proper-debug-state-cell:first-of-type {\t\t\tborder-radius: 30px 0 0 30px;\t\t}\t\t.proper-debug-state-cell:last-of-type {\t\t\tborder-radius: 0 30px 30px 0;\t\t}.proper-debug-state-cell:first-of-type:last-of-type{\t\t\tborder-radius: 30px;\t\t}\t\t.proper-debug-state-cell:not(:last-of-type) {\t\t\tmargin-right:-2px;\t\t}\t\t."+properOps.slot_wrapper_class+",\t\t.proper-ad-insert {\t\t\tbackground: "+this.css_values.greenDark+"AA;\t\t}."+properOps.slot_wrapper_class+":hover,\t\t.proper-ad-insert:hover {\t\t\tbackground: "+this.css_values.greenLight+";\t\t}\t\t#proper-debug-console table {\t\t\tborder-top: solid 2px "+this.css_values.purple+";\t\t\tbackground:white;\t\t\tborder-bottom: solid 1px #ccc;\t\t\tline-height:1.4em;\t\t}#proper-debug-console table td:not(:first-of-type){\t\t\tborder-left: solid 1px #ccc;\t\t}#proper-debug-console table td:first-of-type{\t\t\tmin-width:100px;\t\t\tbackground:white;\t\t\twidth:1px;\t\t\tfont-weight:bold;\t\t}#proper-debug-console table th {\t\t\tfont-weight:bold;\t\t\tborder-bottom:solid 1px #cccccc80;\t\t}\t\t#proper-debug-console hr {\t\t\tborder:none;\t\t\tborder-bottom: solid 1px "+this.css_values.grayDark+";\t\t\topacity:0.3;\t\t}\t\t#proper-debug-console button {\t\t\t-webkit-appearance:none;\t\t\tcursor:pointer;\t\t\tborder:none;\t\t\tborder-radius: 4px;\t\t\tpadding: 5px 9px;\t\t\tfont-weight:bold;\t\t\tcolor:white;\t\t\tbackground:"+this.css_values.green+";\t\t\tdisplay:inline-block;\t\t}#proper-debug-console button:not(:hover) {\t\t\topacity:0.9;\t\t}\t\t#proper-debug-console button.red {\t\t\tbackground:red;\t\t}\t\t.proper-debug-mobile-pin-btn {\t\t\tdisplay:none !important;\t\t\tbackground:white;\t\t\twidth:24px;\t\t\theight:24px;\t\t\tfont-weight:bold;\t\t\tborder-radius: 4px;\t\t\tmargin-top:13px;\t\t\tmargin-right:6px;\t\t\tcursor:pointer;\t\t\tjustify-content:center;\t\t\talign-items:center;\t\t}\t\t@media screen and (max-width: 727px){\t\t\t#proper-debug-console {\t\t\t\tmax-width:100vw !important;\t\t\t\twidth:100vw !important;\t\t\t\tposition:fixed !important;\t\t\t\tleft:0 !important;\t\t\t\ttop: auto !important;\t\t\t\tbottom:0 !important;\t\t\t\tbox-shadow: none !important;\t\t\t\tanimation:none !important;\t\t\t\tmax-height:500px !important;\t\t\t\ttransition: max-height 250ms !important;\t\t\t}\t\t\t#proper-debug-console.pinned {\t\t\t\tmax-height:50px !important;\t\t\t}\t\t\t#proper-debug-console.pinned .proper-debug-mobile-pin-btn{\t\t\t\ttransform: scaleY(-1);\t\t\t}\t\t\t#proper-debug-console-breadcrumb {\t\t\t\tcursor: default !important;\t\t\t}\t\t\t#proper-debug-console-resizer {\t\t\t\tdisplay:none;\t\t\t}\t\t\t.proper-debug-mobile-pin-btn {\t\t\t\tdisplay:flex !important;\t\t\t}\t\t\tbody.proper-debug-pinned ."+properOps.slot_wrapper_class+".sticky-btm{\t\t\t\ttransform: translateY(-50px);\t\t\t}\t\t}\t\t"},consentManager=(Yu={gdpr:!1,uspc:!1},Zu=!0,$u=!1,_u=[],av={ready:function(e,t){"unshift"==t?_u.unshift(e):_u.push(e)},consentReady:function(e){!0!==Yu[e]&&(Yu[e]=!0,("gdpr"==e&&gdprConsent&&gdprConsent.gdprApplies||"uspc"==e&&uspConsent&&uspConsent.ccpaApplies||"gpp"==e&&gppConsent&&gppConsent.gppApplies||0==ProperMedia.utils.objectValues(Yu).filter(function(e){return 0==e}).length)&&function(){av.ready=function(e){e.call()};for(;_u.length;)_u.shift().call()}())},checkIfMissing:function(){return!(1!=Zu||!ProperMedia.utils.deepAccess(properSpecialOps,"gdprDoesApply")||Object.keys(gdprConsent).length&&(!gdprConsent.gdprApplies||gdprConsent.consentString))||(1==Zu&&ProperMedia.utils.deepAccess(properSpecialOps,"uspcDoesApply")&&(!Object.keys(uspConsent).length||uspConsent.ccpaApplies&&!uspConsent.usPrivacy)||1==Zu&&ProperMedia.utils.deepAccess(properSpecialOps,"gppDoesApply")&&(!Object.keys(gppConsent).length||gppConsent.gppApplies&&!gppConsent.gppString)?!(Zu=!1):Zu=!1)},loadIfMissing:function(i){return ProperMedia.utils.deepAccess(properSpecialOps,"gdprDoesApply")&&!$u?($u=!0,gdprConsentModule.loadIfMissing(function(e,t){$u=!1,e||(Zu=!1,i())})):ProperMedia.utils.deepAccess(properSpecialOps,"uspcDoesApply")&&!$u?($u=!0,uspConsentModule.loadIfMissing(function(){$u=!1,i()})):ProperMedia.utils.deepAccess(properSpecialOps,"gppDoesApply")&&!$u&&($u=!0,gppConsentModule.loadIfMissing(function(){$u=!1,i()})),!0}},av),Yu,Zu,$u,_u,av,gppConsentModule=(nv=1,ov="iab",pv=ProperMedia.utils.deepAccess(properSpecialOps,"gppDoesApply")||!1,tv={iab:function({onSuccess:i,onError:r}){const a="__gpp";let n=!1;var d={};const{cmpFrame:s,cmpDirectAccess:e}=function(){let e=window,t;for(;;){try{if("function"==typeof e[a]){t=e;break}}catch(e){}try{if(e.frames.__gppLocator){t=e;break}}catch(e){}if(e===window.top)break;e=e.parent}return{cmpFrame:t,cmpFunction:void 0}}();if(!s)return r("GPP: CMP not found.");e&&"function"==typeof s[a]?(properLog.mylog("Detected GPP CMP API is directly accessible, calling it now..."),s[a]("addEventListener",function(e){{var t;e&&(properLog.mylog("Received a response from GPP CMP for event "+JSON.stringify(e)),"sectionChange"===e.eventName||"loaded"===e?.pingData?.cmpStatus&&"visible"!==e?.pingData?.cmpDisplayStatus?(t=s[a]("getGPPData"),properLog.mylog("Received a response from GPP CMP for getGPPData "+JSON.stringify(t)),Av(t,{onSuccess:i,onError:r})):"error"===e?.pingData?.cmpStatus?r("CMP returned with a cmpStatus:error response. Please check CMP setup."):sv||(e=s[a]("getGPPData"),properLog.mylog("Called GPP CMP early to determine the value of applicableSections; value returned from CMP: "+JSON.stringify(e)),wv(e)?sv=e:vv(e)&&((sv=e).applicableSections=e.applicableSection,delete sv.applicableSection)))}})):(properLog.mylog("Detected GPP CMP is outside the current iframe where Prebid.js is located, calling it now..."),t("addEventListener",s,function(e){e&&(properLog.mylog("Received a postmsg response from GPP CMP for event "+JSON.stringify(e)),"sectionChange"===e.eventName||"loaded"===e?.pingData?.cmpStatus&&"visible"!==e?.pingData?.cmpDisplayStatus?t("getGPPData",s,o):"error"===e?.pingData?.cmpStatus?r("CMP returned with a cmpStatus:error response. Please check CMP setup."):sv||t("getGPPData",s,p))}));function t(e,s,t,i){var r="__gpp-pm";const o=`${a}Call`;window[r]=function(e,t,i){var r=Math.random().toString(),i={[o]:{command:e,parameter:i,version:1,callId:r}};d[r]=t,s.postMessage(i,"*")},n||(window.addEventListener("message",function(e){var t=`${a}Return`,e="string"==typeof e.data&&e.data.includes(t)?JSON.parse(e.data):e.data;e[t]&&e[t].callId&&(t=e[t],d.hasOwnProperty(t.callId)&&d[t.callId](t.returnValue))},!1),n=!0),window[r](e,t,i)}function o(e){properLog.mylog("Received a postmsg response from GPP CMP for getGPPData "+JSON.stringify(e)),Av(e,{onSuccess:i,onError:r})}function p(e){properLog.mylog("Called GPP CMP early to determine the value of applicableSections; postmsg response returned from CMP: "+JSON.stringify(e)),wv(e)?sv=e:vv(e)&&((sv=e).applicableSections=e.applicableSection,delete sv.applicableSection)}},static:function({onSuccess:e,onError:t}){Av(void 0,{onSuccess:e,onError:t})}},uv={},zv(),{gppConsent:uv,loadIfMissing:function(e){Object.keys(uv).length?(properLog.mylog("GPP: User consent information already known. Pulling internally stored information..."),e(!1)):zv(e)}}),sv,nv,ov,pv,tv,uv;function vv(e){return e&&Array.isArray(e.applicableSection)&&0<e.applicableSection.length&&0!==e.applicableSection[0]}function wv(e){return e&&Array.isArray(e.applicableSections)&&0<e.applicableSections.length&&0!==e.applicableSections[0]}function zv(s){var e,o=!1,a=null,i=0,n=null;function r(e,t,i,...r){null!=a&&(clearTimeout(a),a=null),null!=n&&(clearTimeout(n),n=null),o=!0,"function"==typeof s?s(t,i,...r):t||consentManager.consentReady("gpp")}if(properLog.mylog("GPP: CMP gppDoesApply: "+ProperMedia.utils.deepAccess(properSpecialOps,"gppDoesApply")),!1!==ProperMedia.utils.deepAccess(properSpecialOps,"gppDoesApply"))if(Object.keys(tv).includes(ov)){const d={onSuccess:e=>r(e,!1),onError:function(e,...t){properLog.mylog(e),"function"==typeof s?r(null,!0,e,...t):(null!=n&&(clearTimeout(n),n=null),++i<20?n=setTimeout(function(){tv.iab(d)},500):r(null,!0,e,...t))}};tv.iab(d),o||null!=n||(e=()=>{var e=e=>{r(e,!1,"GPP: CMP did not load, continuing auction...")};Av(sv,{onSuccess:e,onError:()=>e(Bv(void 0))})},a=setTimeout(e,1e4))}else r(null,!1,"GPP: CMP framework (iab) is not a supported framework. Aborting consentManagement module and resuming auction.");else r(null,!1,"GPP: GPP does not apply.")}function Av(i,{onSuccess:e,onError:t}){!function(){i&&"boolean"==typeof i.gppApplies&&i.gppApplies;var e=i&&i.gppString,t=wv(i)?i.applicableSections:vv(i)?i.applicableSection:sv&&sv.applicableSections?sv.applicableSections:[];return!Array.isArray(t)||!(!Array.isArray(t)||e&&isStr(e))}()?e(Bv(i)):t("CMP returned unexpected value during lookup process.",i)}function Bv(e){return(uv={gppString:e?e.gppString:sv&&ProperMedia.utils.isStr(sv.gppString)&&""!==sv.gppString?sv.gppString:void 0,fullGppData:e||void 0,gppApplies:e&&"boolean"==typeof e.gppApplies?e.gppApplies:pv}).applicableSections=wv(e)?e.applicableSections:vv(e)?e.applicableSection:sv?.applicableSections?sv.applicableSections:[],uv.apiVersion=nv,uv}var gppConsent=gppConsentModule.gppConsent,uspConsentModule=($w={ccpaApplies:ProperMedia.utils.deepAccess(properSpecialOps,"uspcDoesApply")||!1},_w={iab:function(r,s){var e=function(){var i={};return{consentDataCallback:function(e,t){t&&e.uspString&&(i.usPrivacy=e.uspString),i.usPrivacy?dx(i,r,s):s("USPC: Unable to get USP consent string.")}}}(),o={},t=function(){for(var e,t,i=window;!e;){try{if("function"==typeof i.__uspapi){t=i.__uspapi,e=i;break}}catch(e){}try{if(i.frames.__uspapiLocator){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}return{uspapiFrame:e,uspapiFunction:t}}(),i=t.uspapiFrame,t=t.uspapiFunction;if(!i)return s("USPC: USP CMP not found.");ProperMedia.utils.isFn(t)?(properLog.mylog("USPC: Detected USP CMP is directly accessible, calling it now..."),t("getUSPData",1,e.consentDataCallback)):(properLog.mylog("USPC: Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(e,s,t){window.__uspapi=function(e,t,i){var r=Math.random()+"",t={__uspapiCall:{command:e,version:t,callId:r}};o[r]=i,s.postMessage(t,"*")},window.addEventListener("message",function(e){(e=e&&e.data&&e.data.__uspapiReturn)&&e.callId&&void 0!==o[e.callId]&&(o[e.callId](e.returnValue,e.success),delete o[e.callId])},!1),window.__uspapi(e,1,t)}("getUSPData",i,e.consentDataCallback))},static:function(e,t){dx(void 0,e,t)}},cx(),{uspConsent:$w,loadIfMissing:function(t){cx(function(e){null!=e&&(properLog.mylog(e),ProperMedia.utils.isFn(t)&&t())})}}),$w,_w;function cx(r){var i,s=null,o=!1,a=0,n=null;function d(e,t,...i){null!=s&&(clearTimeout(s),s=null),null!=n&&(clearTimeout(n),n=null),o=!0,ProperMedia.utils.isFn(r)?r(t,...i):consentManager.consentReady("uspc")}properLog.mylog("USPC: CMP uspcDoesApply: "+ProperMedia.utils.deepAccess(properSpecialOps,"uspcDoesApply")),!1!==ProperMedia.utils.deepAccess(properSpecialOps,"uspcDoesApply")?_w.iab?(i={onSuccess:d,onError:function(e,...t){"function"==typeof r?d(null,e+" Resuming auction without consent data as per consentManagement config.",...t):(null!=n&&(clearTimeout(n),n=null),++a<6?n=setTimeout(function(){_w.iab(i.onSuccess,i.onError)},250):d(null,e+" Resuming auction without consent data as per consentManagement config.",...t))}},_w.iab(i.onSuccess,i.onError),o||(s=setTimeout(i.onError.bind(null,"USPC: USPAPI workflow exceeded timeout threshold."),50))):d(null,"USPC: USP framework (iab) is not a supported framework. Aborting consentManagement module and resuming auction."):d(null,"USPC: USPC does not apply.")}function dx(e,t,i){var r;!e||!e.usPrivacy?i("USPC: USPAPI returned unexpected value during lookup process.",e):((r=e)&&r.usPrivacy&&($w.usPrivacy=r.usPrivacy,$w.restrictDataProcessing=!!r.usPrivacy.match(/^\d{1}[\w-]{1}Y[\w-]{1}$/)),t($w))}var uspConsent=uspConsentModule.uspConsent,gdprConsentModule=(gy=2,hy="iab",iy=ProperMedia.utils.deepAccess(properSpecialOps,"gdprDoesApply")||!1,my={iab:function(i,r){function e(e,t){properLog.mylog("GDPR: Received a response from CMP. gdprApplies: "+e.gdprApplies+", tcString: "+e.tcString),t?!1===e.gdprApplies||"tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus?ry(e,i,r):ly=e:r("GDPR: CMP unable to register callback function. Please check CMP setup.")}var a={},t=function(){for(var e,t,i=window;;){try{if("function"==typeof i.__tcfapi){t=i.__tcfapi,e=i;break}}catch(e){}try{if(i.frames.__tcfapiLocator){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}return{cmpFrame:e,cmpFunction:t}}(),s=t.cmpFrame,t=t.cmpFunction;if(!s)return r("GDPR: CMP not found.");"function"==typeof t?(properLog.mylog("GDPR: Detected CMP API is directly accessible, calling it now..."),t("addEventListener",gy,e)):(properLog.mylog("GDPR: Detected CMP is outside the current iframe where ad project is located, calling it now..."),function(e,o,t){var i="__tcfapi";window[i]=function(e,t,i,r){var s=Math.random()+"",r={__tcfapiCall:{command:e,version:t,parameter:r,callId:s}};a[s]=i,o.postMessage(r,"*")},window.addEventListener("message",function(e){var t=i+"Return";(e="string"==typeof e.data&&e.data.includes(t)?ProperMedia.utils.safeJsonParse(e.data):e.data)[t]&&e[t].callId&&(t=e[t],void 0!==a[t.callId]&&a[t.callId](t.returnValue,t.success))},!1),window[i](e,gy,t)}("addEventListener",s,e))},static:function(e,t){ry(void 0,e,t)}},ny={},qy(),{gdprConsent:ny,loadIfMissing:function(e){Object.keys(ny).length?(properLog.mylog("GDPR: User consent information already known. Pulling internally stored information..."),e(!1)):qy(e)},hasPurpose1Consent:function(){return!ny.gdprApplies||!0===ProperMedia.utils.deepAccess(ny,"vendorData.purpose.consents.1")}}),ly,gy,hy,iy,my,ny;function qy(s){var i,e,o=!1,a=null,r=0,n=null;function d(e,t,i,...r){null!=a&&(clearTimeout(a),a=null),null!=n&&(clearTimeout(n),n=null),o=!0,"function"==typeof s?s(t,i,...r):t||consentManager.consentReady("gdpr")}properLog.mylog("GDPR: CMP gdprDoesApply: "+ProperMedia.utils.deepAccess(properSpecialOps,"gdprDoesApply")),!1!==ProperMedia.utils.deepAccess(properSpecialOps,"gdprDoesApply")?Object.keys(my).includes(hy)?(i={onSuccess:function(e){d(e,!1)},onError:function(e,...t){properLog.mylog(e),"function"==typeof s?d(null,!0,e,...t):(null!=n&&(clearTimeout(n),n=null),++r<20?n=setTimeout(function(){my[hy](i.onSuccess,i.onError)},500):d(null,!0,e,...t))}},my[hy](i.onSuccess,i.onError),o||null!=n||(e=function(){function e(e){d(e,!1,"GDPR: CMP did not load, continuing auction...")}ry(ly,e,function(){e(sy(void 0))})},a=setTimeout(e,1e4))):d(null,!1,"GDPR: CMP framework ("+hy+") is not a supported framework. Aborting consentManagement module and resuming auction."):d(null,!1,"GDPR: GDPR does not apply.")}function ry(e,t,i){var r,s;"static"===hy&&(e=e.getTCData),r=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:iy,s=e&&e.tcString,"boolean"==typeof r&&(!0!==r||s&&ProperMedia.utils.isStr(s))?t(sy(e)):i("GDPR: CMP returned unexpected value during lookup process.",e)}function sy(e){return ny.consentString=e?e.tcString:void 0,ny.vendorData=e||void 0,ny.gdprApplies=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:iy,e&&e.addtlConsent&&ProperMedia.utils.isStr(e.addtlConsent)&&(ny.addtlConsent=e.addtlConsent),ny.apiVersion=gy,ny}var gdprConsent=gdprConsentModule.gdprConsent,gdprEnforcement=function(){var r,i,t,e={},o={purpose1:{id:1,name:"storage"},purpose2:{id:2,name:"basicAds"},purpose7:{id:7,name:"measurement"}},s=[{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:["pubcid"]},{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}],a=[],n=[],d={gam:755};function p(e){var t=null;return t=e?function(e){var t=null;{var i;e&&(i=bidderToAdapterName(e),t=ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".gvlid")||ProperMedia.utils.deepAccess(properOps,"bidder_info."+i+".gvlid")||d[e]||null)}return t}("string"==typeof e?e:e.name)||(ProperMedia.utils.deepAccess(userIdAdapters,e+".storage.gvlid")||null)||null:t}function l(t,e,i){var r=o[Object.keys(o).filter(e=>o[e].name===t.purpose)[0]].id;if(-1!==(t.vendorExceptions||[]).indexOf(e))return!0;var s=ProperMedia.utils.deepAccess(gdprConsent,"vendorData.purpose.consents."+r),e=ProperMedia.utils.deepAccess(gdprConsent,"vendorData.vendor.consents."+i),i=ProperMedia.utils.deepAccess(gdprConsent,"vendorData.purpose.legitimateInterests."+r),s=!1===t.enforcePurpose||!0===s,e=!1===t.enforceVendor||!0===e;return 2===r?s&&e||!0===i:s&&e}e.deviceAccessEnforcement=function(e,t){var i;return gdprConsent&&gdprConsent.gdprApplies?(e=p(t)||e,l(r,t,e)?i=!0:(t&&properLog.mylog("TCF2 denied device access for "+t),i=!1,a.push(t))):i=!0,i},e.userSyncEnforcement=function(e){var t,i;return gdprConsent&&gdprConsent.gdprApplies?(i=p(e),(i=l(r,e,i))?t=i:(t=!1,properLog.mylog("User sync not allowed for "+e),a.push(e))):t=!0,t},e.userIdEnforcement=function(e){return gdprConsent&&gdprConsent.gdprApplies?{submodules:e.map(function(e){if(e.name&&userIdAdapters[e.name]){var t=userIdAdapters[e.name],i=ProperMedia.utils.deepAccess(t,"storage.gvlid")||null,t=ProperMedia.utils.deepAccess(t,"name")||"";if(l(r,t,i))return e;properLog.mylog("User denied permission to fetch user id for "+t+" User id module"),a.push(t)}}).filter(function(e){return e}),hasValidated:!0}:{submodules:e}},e.makeBidRequestEnforcement=function(e){if(gdprConsent&&gdprConsent.gdprApplies){var t=p(e);if(-1!==n.indexOf(e))return!1;t=!!l(i,e,t);return t||(properLog.mylog("TCF2 blocked auction for "+e),n.push(e)),t}return!0};function c(e){return e.purpose===o.purpose1.name}function u(e){return e.purpose===o.purpose2.name}function g(e){return e.purpose===o.purpose7.name}return e.setEnforcementConfig=function(e){e=ProperMedia.utils.deepAccess(e,"gdpr.rules");t=e||(properLog.mylog("TCF2: enforcing P1 and P2 by default"),s),ProperMedia.utils.isArray(t)&&(r=t.find(c),i=t.find(u),t.find(g),r=r||s[0],i=i||s[1])},e}(),confiantWrapper={cdnHost:"cdn.clarium.io",confiantId:"TzdoClhg0h30W2CCYiFFb2rl5ww",mapBlockingType:{1:{type:"manual",desc:"Deprecated"},2:{type:"creative",desc:"Creative-based detection"},3:{type:"provider_security",desc:"Domain-based detection for unsafe domains"},4:{type:"banned_domain",desc:"Domain-based detection for banned domains"},5:{type:"provider_ibv",desc:"Domain-based detection for in-banner-video"},6:{type:"unsafejs",desc:"Javascript-based detection for unsafe ads"},7:{type:"hrap",desc:"Domain-based detection for high risk ad platform domains"}},loadDFPTag:function(e){var t;properLog.mylog("Confiant loadDFPTag"),e=e||window,this.confiantId=ProperMedia.utils.deepAccess(properSpecialOps,"confiant.accountId")||ProperMedia.utils.deepAccess(properOps,"confiant.accountId")||this.confiantId,2==ProperMedia.utils.deepAccess(properSpecialOps,"confiant.version")?((t=e)._clrm=t._clrm||{},t._clrm.gpt={propertyId:this.confiantId,confiantCdn:this.cdnHost,sandbox:0,mapping:"W3siaSI6MiwidCI6Int7b319Ont7d319eHt7aH19IiwicCI6MCwiRCI6MSwiciI6W119LHsiaSI6NiwidCI6Int7Y299fTp7e3d9fXh7e2h9fSIsInAiOjUwLCJEIjowLCJyIjpbeyJ0IjoiZXgiLCJzIjpudWxsLCJ2IjoiY28ifV19XQ==",activation:"||neq|NDM5NjA3NDE2,||neq|NDk4NzQ4NDU2,||neq|NTExMjA0NTc2,||neq|ODA2NzU4NTc2,||neq|ODA2NzYxMjE2,||neq|ODEyODU5NjE2,||neq|ODEyODg1Mjk2,||neq|MTU2MTIwNzQ1Ng==",callback:TraceKit.wrap(this.callback.bind(this))},(t=document.createElement("script")).async=!0,t.src="//"+this.cdnHost+"/gpt/a/wrap.js?v2_1"):(e.confiant=e.confiant||{},e.confiant.callback=TraceKit.wrap(this.callback.bind(this)),(t=e.document.createElement("script")).async=!0,t.src="https://cdn.confiant-integrations.net/"+this.confiantId+"/gpt_and_prebid/config.js"),e.document.getElementsByTagName("head")[0].appendChild(t)},callback:function(e,t,i,r,s,o){properLog.mylog("Confiant Callback");var a={},n={cpm:0,size:"1x1",bidder:"dfp",blockData:arguments};if(o&&void 0!==o.dfp){var d=o.dfp.ad||null,p=o.dfp.y||null;d==properOps.amazon_advertiser?n.bidder="a9":d==properOps.adsense_advertiser?n.bidder="adsense":d!=properOps.google_advertiser&&1!=d&&0!=d&&null!=d&&null==p||(n.bidder="adx");a=ProperMedia.utils.extractSlotName(o.dfp.s)||properPage.getSlotFromPageObjectByAdUnitPath(o.dfp.A)||"";if(a&&a instanceof slotObj){if(n.size=a.size,"adx"!=n.bidder&&"adsense"!=n.bidder||(p=a.interstitial?"interstitial":creative_size,p=a.getFloor(p),a.dfp_bid_price&&parseFloat(a.dfp_bid_price)>p?n.cpm=parseFloat(a.dfp_bid_price)+.01:n.cpm=parseFloat(p)+.01),i&&a.getWinningBid())return void showWinningAd(a)}else properLog.mylog("Confiant DFP Callback: Cannnot determin slot.")}this.trackBadAd(n)},wrapTag:function(n,e,d){properLog.mylog("Confiant wrapTag: "+n.name),this.confiantId=ProperMedia.utils.deepAccess(properSpecialOps,"confiant.accountId")||ProperMedia.utils.deepAccess(properOps,"confiant.accountId")||this.confiantId;var t=TraceKit.wrap(function(o,a,e,n,d){function p(e){return(r(e)||"")[s]("/","_")[s]("+","-")}var t=a.bidder,i=a.size,l=o.parentWindow||o.defaultView,c=l.JSON,r=l.btoa,u=l.encodeURIComponent;if(!c||!r)return!1;var g="script",m="src",s="replace",h="error",_="stringify",b="write",f="https://"+e+"/?wrapper="+u(n)+"&tpid=",v={k:{hb_bidder:[t],hb_size:[i]}};return function(){var e,t,i=p(n+"/"+v.k.hb_bidder[0]+":"+v.k.hb_size[0]),r={wh:i,wd:c.parse(c[_](v)),wr:0};s=i,e=p(c[_](r)),t=function(){o[b](a.ad)},s=f+u(s)+"&d="+e,e="err__"+ +new Date,l[e]=t,o[b]("<"+g+" on"+h+'="void('+e+'())" '+m+'="'+s+'" type="text/java'+g+'" ></'+g+">");var s={prebid:{adId:a.adId,cpm:a.cpm}},s={d:r,t:a.ad,cb:d,id:s};l[n]={},l[n][i]=s}(),o.close(),!0}),i=TraceKit.wrap(function(e,t,i,r,s,o){var a={cpm:d.price,size:d.size,bidder:d.bidder,blockData:arguments};i&&(properLog.mylog("Confiant blocked ad: "+n.name+" - "+a.bidder),n.winning_ad={},n.getWinningBid())?showWinningAd(n):this.trackBadAd(a)});t(e,{bidder:d.bidder,size:d.size,ad:d.adcode},this.cdnHost,this.confiantId,i.bind(this))||(properLog.mylog("Confiant failed: "+n.name),e.write(ad.adcode))},trackBadAd:function(e){try{var t=ProperMedia.utils.deepAccess(e,"blockData.0")||"",i={client_timestamp:(new Date).getTime(),event_type:"rogue_ad",event_id:ProperMedia.utils.generateUUID(),page_id:ProperMedia.utils.generateUUID(),session_id:ProperMedia.utils.generateUUID(),bidder:e.bidder||"",user_id:ProperMedia.utils.validateValue(properUser.pubcid,{type:"string"}),publisher:ProperMedia.utils.validateValue(properOps.site_name,{type:"string"}),rtp_file_version:ProperMedia.utils.validateValue(properOps.rtp_file_version,{type:"string"}),ad_project_tag:ProperMedia.utils.validateValue(properOps.rtp_file_revision,{type:"string"}),page_url:getPageUrl()||"",in_iframe:1!==properOps.run_dfp_in_window,is_https:"https:"==document.location.protocol,user_agent:navigator.userAgent||"",stack_trace:JSON.stringify(e),error_message:ProperMedia.utils.deepAccess(this,"mapBlockingType."+t+".desc")||"Confiant Flagged Ad",error_name:ProperMedia.utils.deepAccess(this,"mapBlockingType."+t+".type")||"rogue_ad"};properPage.uuid&&""!==properPage.uuid&&(i.page_id=properPage.uuid),ProperMedia.utils.deepAccess(properSession,"sessionData.uuid")&&(i.session_id=properSession.sessionData.uuid),$.ajax({url:"https://events.proper.io/api/event",requestType:"fetch",method:"POST",data:JSON.stringify(i),withCredentials:!1,success:function(e){console.log("Proper exception logged successfully.")},error:function(){console.error("Unable to log Proper exception.")}})}catch(e){console.error("Error sending exception data"),console.error(e)}}},adLightningWrapper={clientId:"properio",loadDFPTag:function(e){e=e||window,this.clientId=ProperMedia.utils.deepAccess(properOps,"adlightning.clientId")||ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.clientId")||this.clientId;var t=e.document.createElement("script");t.async=!0,t.src="https://tagan.adlightning.com/"+this.clientId+"/op.js",e.document.getElementsByTagName("head")[0].appendChild(t),window.addEventListener("message",function(e){var t=e.data;"ADL_BLOCKED"===t.message&&t.adUnit&&(e=t.adUnit.split("/").pop(),(e=properPage.getSlotFromPageObject(e)||properPage.getSlotFromPageObject(e.replace(/_\d+$/,"")))&&((t=new Error(e.name+" data:"+JSON.stringify(t))).event_type="ADL_BLOCKED",sendError(t),properLog.mylog("ADL Blocked Ad for "+e.name),e.adl_blocked||(e.adl_blocked=!0,e.getWinningBid(),showWinningAd(e))))})},wrapTag:function(e,t,i){properLog.mylog("Running AdLightning Wrapper: "+e.name);var r=encodeURIComponent(i.adcode),s=i.size.split("x"),e='<script> var urlEncodedUrl = "%%ENCODED_AD_TAG%%";<\/script> <script src="https://tagan.adlightning.com/%%CLIENT_ID%%/blacklist_script.js" type="text/javascript"><\/script> <script src="https://tagan.adlightning.com/%%CLIENT_ID%%/blocking_script.js" type="text/javascript"><\/script> <script type="text/javascript"> function createTagDetails(){ var tagDetails = {}; tagDetails.w = "%%WIDTH%%"; tagDetails.h = "%%HEIGHT%%"; tagDetails.adServerDetails = {advertiserId: "%%ADVERTISER_ID%%", campaignId: "%%CAMPAIGN_ID%%", creativeId: "%%CREATIVE_ID%%", lineitemId: "%%LINEITEM_ID%%", adServer: "%%AD_SERVER%%"}; tagDetails.au = "%%AD_UNIT_ID%%"; tagDetails.markupInDom = true; tagDetails.refreshMessage = "true"; var timeBase36 = Date.now().toString(36); var random = Math.random().toString(36).substr(2).split("") .map(function (c) { return (Math.random() < 0.5 ? c.toUpperCase() : c); }) .join(""); tagDetails.currentTagId="adltag_" + timeBase36 + "_" + random; return tagDetails; } var random = "" + Math.round(Math.random() * 1e8); var clientId = "%%CLIENT_ID%%"; var site_id = random + "_" + clientId; window[site_id]={}; window[site_id].tagDetails=createTagDetails(); !function(){"use strict";"blocker"in window||(window.blocker=function(e,n,t,o,r){function i(e){var n=window.Request,t=n&&n.prototype||{};if(navigator&&navigator.sendBeacon)navigator.sendBeacon(e);else if(window.fetch){var o={method:"GET"};"keepalive"in t&&(o.keepalive=!0),window.fetch(e,o)}else{var r=new Image(1,1);"loading"in r&&(r.loading="eager"),r.src=e}}if((r=r||{}).bw){if(Math.random()<.1)for(var a="undefined"!=typeof btoa?btoa:String,x="https://"+clientId+"-tagan.adlightning.com",c=window[e]?window[e].tagDetails:{},d={siteId:clientId,url:window.top.location.href,tagDetails:c,errorData:null,errorMethod:"missing_blocker"},f=function(){var t=(new Date).getTime();"undefined"!=typeof performance&&"function"==typeof performance.now&&(t+=performance.now());return"xxxxxxxxxxxxxxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)})}(),l=encodeURIComponent(JSON.stringify(d)).replace(/%([0-9A-F]{2})/g,function(e,n){return String.fromCharCode("0x"+n)}),g=encodeURIComponent(a(l)),w=8e3-(x.length+100),u=Math.ceil(g.length/w),s=0,p=1;p<=u;p+=1){i(x+"/error?d="+g.substr(s,w)+"&i="+p+"-"+u+"&t="+c.currentTagId+"&r="+f+"&c="+clientId+"&z=1"),s+=w}document.write(n)}})}(); blocker(site_id, decodeURIComponent(urlEncodedUrl) + "\x3c!--ADL_WRAPPED--\x3e", false, window, {bw:true}); <\/script>'.replace(/%%ENCODED_AD_TAG%%/g,r).replace(/%%CLIENT_ID%%/g,this.clientId).replace(/%%WIDTH%%/g,s[0]).replace(/%%HEIGHT%%/g,s[1]).replace(/%%ADVERTISER_ID%%/g,i.adid).replace(/%%CAMPAIGN_ID%%/g,i.cid).replace(/%%CREATIVE_ID%%/g,i.crid).replace(/%%LINEITEM_ID%%/g,"").replace(/%%AD_SERVER%%/g,"proper").replace(/%%AD_UNIT_ID%%/g,e.name);t.document.open(),t.document.write(e),t.document.close()},addReportAd:function(e){try{var t=e.slot.getSlotElementId(),i=ProperMedia.utils.makeid(10)+"-"+t,r=document.createElement("div");r.id=i,r.className="adl-report-ad-container-parent";var s=document.createElement("div");s.className="adl-report-ad-container";var o={adlAction:"createUserReportButton",selector:"#"+i,uniqueId:e.creativeId||e.sourceAgnosticCreativeId,targetAd:t};r.appendChild(s);var a=document.getElementById(t),n=a.parentElement.getElementsByClassName("adl-report-ad-container-parent");n&&n.length&&n[0].remove(),a&&(a.insertAdjacentElement("afterend",r),window.postMessage(o,"*"))}catch(e){properLog.mylog("Error creating Ad Lightning report ad button. "+JSON.stringify(e))}}},geoEdgeWrapper={wrapTag:function(e,t,i){properLog.mylog("Running geoEdge Wrapper: "+e.name);i='<div id="grumi-container"><script type="text/javascript" nonce="!headerNonce!">!function(d,i){var p={wver:"1.1.5",wtype:"dfp",key:"caae3efc-52af-4938-bc92-44182723e3e2",meta:{adup:"%%ADUNIT%%",dest:"%%DEST_URL_ESC%%",w:"%%WIDTH%%",h:"%%HEIGHT%%",li:"%eaid!",adv:"%eadv!",ord:"%ebuy!",cr:"%ecid!",ygIds:"%_ygIds!",aduid:"%epid!",haduid:"%esid!",isAfc:"%_isAfc!",isAmp:"%_isAmp!",qid:"%qid!",cust_imp:"%cust_imp!",cust1:"%cust1!",cust2:"%cust2!",cust3:"%cust3!",caid:"%caid!",di:"%DEMAND_ID!",dn:"%DEMAND_NAME!",dcid:"%DEMAND_CREATIVE_ID!",pid:"%PUBLISHER_ID!",pn:"%PUBLISHER_NAME!",adElId:"%_adElId!"},sp:"dfp",cfg:{},pbAdId:"%%PATTERN:hb_adid%%",pbAdIdAst:"%%PATTERN:hb_adid_appnexusAst%%",pbBidder:"%%PATTERN:hb_bidder%%",hbPb:"%%PATTERN:hb_pb%%",hbCid:"%_hbcid!",site:"%%SITE%%",pimp:"%_pimp%"};window.grumi=p}();<\/script><template style="display: none;" id="template0"><xmp style="display: none;" id="xmp0">'.replace(/%DEMAND_ID!/g,i.bidder).replace(/%DEMAND_NAME!/g,i.bidder).replace(/%DEMAND_CREATIVE_ID!/g,i.crid).replace(/%PUBLISHER_ID!/g,properOps.site_name).replace(/%PUBLISHER_NAME!/g,properOps.site_name)+i.adcode+'</xmp></template><script type="text/javascript" nonce="!footerNonce!">!function(t){var o=window.grumi.key,r=window.grumi,e=r&&r.wtype&&"gpt"===r.wtype,n=window.onerror,i=1*new Date,a=navigator.userAgent&&navigator.userAgent.match(/\\b(MSIE |Trident.*?rv:|Edge\\/)(\\d+)/),w=e&&!a;function d(){var e=function(){for(var e,n=document.getElementsByTagName("template"),t=n.length-1;0<=t;t--)if("template0"===n[t].id){e=n[t];break}return e}();return e.content?e.content.getElementById?e.content.getElementById("xmp0"):e.content.childNodes[0]:e.getElementsByTagName("xmp")[0]}function u(){var e=d();return e&&e.innerHTML}function c(e,n){n=n||!1,top.postMessage&&top.postMessage({evType:e||"",key:r.key,adup:r.meta.adup,html:window.grumi?window.grumi.tag:"",el:r.meta.adElId,refresh:n},"*")}var m=!1;function g(e,n){if(!m){m=!0;var t="",o=a&&"complete"===document.readyState;window.grumi&&(window.grumi.fsRan=!0,t=window.grumi.tag),o||(t||(t=u()),w&&window.document.open(),window.document.write(t),window.document.close()),((n=n||!1)||o)&&c(e,o)}}function l(e,t){return function(){var n=setTimeout(function(){var e=document.getElementById(i);e&&null===function(e){if(void 0!==e.nextElementSibling)return e.nextElementSibling;for(var n=e.nextSibling;n&&1!==n.nodeType;)n=n.nextSibling;return n}(e)&&t&&t(),clearTimeout(n)},e)}}l(5e3,function(){g()})(),l(2e3,function(){c("slwCl")})(),window.grumi.tag=u(),window.grumi.scriptHost=t,window.grumi.pbGlobal=window.grumi.cfg&&window.grumi.cfg.pbGlobal||"pbjs",window.grumi.onerror=n,window.parent&&window.parent.postMessage&&window.parent.postMessage({iw:!0,key:r.key,adup:r.meta.adup,el:r.meta.adElId},"*"),function(){var e=document.createElement("script");e.type="text/javascript",e.src=t+o+"/grumi.js",e.className="rm",e.id=i,w&&(e.async=!0);var n="_"+1*new Date;window[n]=function(){g("netErr",!0)},window.grumi.start=1*new Date;try{window.document.write(e.outerHTML.replace(\'class="rm"\',\'onerror="\'+n+\'();"\'))}catch(e){g()}}(),window.onerror=function(e){"function"==typeof n&&n.apply(this,arguments),l(0,g)(),window.onerror=n}}(("http"===window.location.protocol.substr(0,4)?window.location.protocol:"https:")+"//rumcdn.geoedge.be/");<\/script></div>';t.open(),t.write(i),t.close()}},bidAdapters={},userIdAdapters={},audiencePixels={networks:{}},properOps=new optionsObj,properSession=new sessionObj,properDevice=new deviceObj,properUser=new userObj,cookieMatching=new cookieMatchingObj,properPage=new pageObj,properAdPool=new adPoolObj,debugObj=new debugConsole,thirtyThreeAcrossIdAdapter=function(){const r="thirtyThreeAcrossId";function e(){this.name=r,this.eid_name="33acrossId",this.source="33across.com",this.atype=1,this.config={enabled:!1,pid:null},this.storage={type:"localstorage",name:"33acrossId",expiresInDays:90,refreshInSeconds:28800,gvlid:58},this.idObj=null,this.callback=null}return e.prototype.calculateQueryStringParams=function(){var e=uspConsent&&uspConsent.usPrivacy?uspConsent.usPrivacy:"",t=Boolean(gdprConsent.gdprApplies);const i={pid:this.config.pid,gdpr:Number(t),src:"pbjs",ver:properOps.prebid_version};return e&&(i.us_privacy=e),t&&(i.gdpr_consent=gdprConsent.consentString||""),i},e.prototype.getValue=function(){return ProperMedia.utils.deepAccess(this,"idObj."+this.eid_name+".envelope")||void 0},e.prototype.decode=function(e){return{[this.eid_name]:{envelope:e}}},e.prototype.getId=function(e){if("string"!=typeof this.config.pid)return void properLog.mylog(`${r}: Submodule requires a partner ID to be defined`);const{apiUrl:t="https://lexicon.33across.com/v1/envelope"}=this.config;return{callback:function(i){var e=this.calculateQueryStringParams();$.ajax({url:t+"?"+ProperMedia.utils.formatQueryString(e),method:"GET",timeout:1e4,success:function(e){let t;try{t=function(e){if(e?.data?.envelope)return e.data.envelope;properLog.mylog(`${r}: No envelope was received`)}(ProperMedia.utils.safeJsonParse(e))}catch(e){properLog.mylog(`${r}: ID reading error:`+e)}i(t)}.bind(this),error:function(e){properLog.mylog(`${r}: ID error response`,err),i()}})}}},e}();userIdAdapters.thirtyThreeAcrossId=new thirtyThreeAcrossIdAdapter;var verizonMediaIdAdapter=(ZC="__PIXEL_ID__",$C="https://ups.analytics.yahoo.com/ups/"+ZC+"/fed",aD.prototype.initialize=function(e){ProperMedia.utils.deepAccess(e,"emailHashes.sha256")&&(this.emailHash=e.emailHashes.sha256)},aD.prototype.getValue=function(){return this.idObj||void 0},aD.prototype.decode=function(e){if(!cD())return"object"==typeof e&&(e.connectid||e.vmuid)?e.connectid||e.vmuid:void 0},aD.prototype.getId=function(e){if(!cD()){if(this.emailHash&&this.config.pixelId){var t={"1p":"0",he:this.emailHash,pixelId:this.config.pixelId,gdpr:bD(gdprConsent)?"1":"0",gdpr_consent:bD(gdprConsent)?gdprConsent.consentString:"",us_privacy:uspConsent&&uspConsent.usPrivacy?uspConsent.usPrivacy:""},r=$C.replace(ZC,this.config.pixelId)+"?"+ProperMedia.utils.formatQueryString(t);return{callback:function(i){$.ajax({url:r,method:"GET",success:function(e){var t;if(e)try{t=ProperMedia.utils.safeJsonParse(e)}catch(e){properLog.mylog(e)}i(t)}.bind(this),error:function(e){properLog.mylog("VerizonMediaId - ID fetch encountered an error: "+JSON.stringify(e)),i()}})}}}properLog.mylog("The verizonMediaId submodule requires userIdData.emailHash.sha256 and pixelId parameters to be defined.")}},aD),ZC,$C;function aD(){this.name="verizonMediaId",this.eid_name="connectid",this.source="verizonmedia.com",this.emailHash="",this.atype=3,this.config={enabled:!1,pixelId:58491},this.storage={type:"localstorage",name:"connectid",expiresInDays:15,gvlid:25},this.idObj=null,this.callback=null}function bD(e){return e&&e.gdprApplies}function cD(){try{return"1"===localStorage.getItem("connectIdOptOut")}catch{return}}userIdAdapters.verizonMediaId=new verizonMediaIdAdapter;var identityLinkAdapter=(qD.prototype.initialize=function(e){var t;e.email?this.email=e.email:ProperMedia.utils.deepAccess(properSpecialOps,"liveramp_email")?this.email=ProperMedia.utils.deepAccess(properSpecialOps,"liveramp_email"):properStorage.getCookie("proper_lre",{moduleName:this.name,gvlid:this.storage.gvlid})&&(this.email=properStorage.getCookie("proper_lre",{moduleName:this.name,gvlid:this.storage.gvlid})),this.email&&(this.config.atsEnabled=!0,ProperMedia.utils.isBase64(this.email)&&(this.email=ProperMedia.utils.b64DecodeUnicode(this.email))),this.config.urlParameter&&ProperMedia.utils.deepAccess(properPage,"get_vars."+this.config.urlParameter)&&((t=properPage.get_vars[this.config.urlParameter]).includes("@")?this.config.urlHashType="email":32==t.length?this.config.urlHashType="md5":40==t.length?this.config.urlHashType="sha1":64==t.length&&(this.config.urlHashType="sha256"),t&&this.config.urlHashType&&"email"!=this.config.urlHashType&&!ProperMedia.utils.deepAccess(e,"emailHashes."+this.config.urlHashType)&&ProperMedia.utils.deepSetValue(e,"emailHashes."+this.config.urlHashType,t)),this.config.cssSelectors=this.config.cssSelectors?this.config.cssSelectors.split(","):[],(this.config.detectionType||this.config.urlParameter||this.config.detectionSubject||this.config.detectDynamicNodes||this.config.detectionEventType||this.config.rootDomain||this.config.detectionInterval||this.config.urlHashType||this.config.urlRegex||this.config.logging||this.config.cssSelectors&&this.config.cssSelectors.length)&&(this.config.atsEnabled=!0),ProperMedia.utils.deepAccess(e,"emailHashes")?(this.config.atsEnabled=!0,this.emailHashes=ProperMedia.utils.objectValues(ProperMedia.utils.deepAccess(e,"emailHashes"))||[]):ProperMedia.utils.deepAccess(properSpecialOps,"liveramp_emailHashes")&&(this.config.atsEnabled=!0,this.emailHashes=ProperMedia.utils.objectValues(ProperMedia.utils.deepAccess(properSpecialOps,"liveramp_emailHashes"))||[]),this.config.atsEnabled&&this.loadAtsScript()},qD.prototype.runATS=function(e){this.config.atsEnabled=!0,e&&(this.email=e),this.atsLoaded?this.atsOnLoad():this.loadAtsScript()},qD.prototype.atsOnLoad=function(){this.atsLoaded=!0;var t={placementID:this.config.placementID};this.email?t.email=this.email.toLowerCase().trim():this.emailHashes&&this.emailHashes.length?t.emailHashes=this.emailHashes:["detectionType","urlParameter","detectionSubject","detectDynamicNodes","detectionEventType","detectionInterval","urlHashType","urlRegex","logging"].forEach(function(e){this.config[e]&&(t[e]=this.config[e])},this),this.config.cssSelectors&&this.config.cssSelectors.length&&(t.cssSelectors=this.config.cssSelectors),this.config.rootDomain&&(t.rootDomain=this.config.rootDomain),properLog.mylog("identityLink: ATS params: "+JSON.stringify(t)),window.top.ats.start(t),this.getIdCalled&&!this.atsCalled&&this.callAts()},qD.prototype.loadAtsScript=function(){var e=window.top.document.createElement("script");e.onload=this.atsOnLoad.bind(this),e.src="https://ats.rlcdn.com/ats.js",window.top.document.body.appendChild(e)},qD.prototype.decode=function(e){return e||void 0},qD.prototype.getValue=function(){return this.idObj||void 0},qD.prototype.getId=function(){this.getIdCalled=!0;return{callback:function(e){this.atsCallback=e,this.config.atsEnabled?this.callAts():this.getEnvelope()}}},qD.prototype.callAts=function(){window.top.ats&&this.getIdCalled&&!this.atsCalled&&(this.atsCalled=!0,properLog.mylog("identityLink: ATS exists!"),window.top.ats.retrieveEnvelope(function(e){e?(properLog.mylog("identityLink: An envelope can be retrieved from ATS!"),this.setEnvelopeSource(!0),this.atsCallback(ProperMedia.utils.safeJsonParse(e).envelope||"")):this.getEnvelope()}.bind(this)))},qD.prototype.getEnvelope=function(){var e,t,i;properStorage.getCookie("_lr_retry_request",{moduleName:this.name,gvlid:this.storage.gvlid})?this.atsCallback():(i=(e=gdprConsent&&"boolean"==typeof gdprConsent.gdprApplies&&gdprConsent.gdprApplies?1:0)?gdprConsent.consentString:"",t=2===ProperMedia.utils.deepAccess(gdprConsent,"vendorData.tcfPolicyVersion"),!e||i&&""!==i?(i="https://api.rlcdn.com/api/identity/envelope?pid="+this.config.placementID+(e?(t?"&ct=4&cv=":"&ct=1&cv=")+i:""),this.setRetryCookie(),properLog.mylog("identityLink: A 3P retrieval is attempted!"),this.setEnvelopeSource(!1),$.ajax({url:i,method:"GET",requestType:"cors",success:function(e){var t;if(e)try{t=ProperMedia.utils.safeJsonParse(e)}catch(e){properLog.mylog(e)}this.atsCallback(t&&t.envelope?t.envelope:"")}.bind(this),error:function(e){properLog.mylog("identityLink: identityLink: ID fetch encountered an error "+JSON.stringify(e)),this.atsCallback()}.bind(this)})):properLog.mylog("identityLink: Consent string is required to call envelope API."))},qD.prototype.setRetryCookie=function(){var e=new Date;e.setTime(e.getTime()+36e5),properStorage.setCookie("_lr_retry_request","true",e.toUTCString(),"","",{moduleName:this.name,gvlid:this.storage.gvlid})},qD.prototype.setEnvelopeSource=function(e){var t=new Date;t.setTime(t.getTime()+2592e6),properStorage.setCookie("_lr_env_src_ats",e,t.toUTCString(),"","",{moduleName:this.name,gvlid:this.storage.gvlid})},qD);function qD(){this.name="identityLink",this.eid_name="idl_env",this.envelope="",this.email="",this.emailHashes=[],this.source="liveramp.com",this.atype=3,this.config={enabled:!1,placementID:72,atsEnabled:!1,detectionType:"",urlParameter:"",detectionSubject:"",detectDynamicNodes:"",detectionEventType:"",cssSelectors:"",rootDomain:"",detectionInterval:0,urlRegex:"",logging:""},this.storage={type:"cookie",name:"idl_env",expiresInDays:5,gvlid:97},this.idObj=null,this.callback=null,this.atsLoaded=null,this.atsCallback=null,this.getIdCalled=!1,this.atsCalled=!1,this.excludeEid=!0}userIdAdapters.identityLink=new identityLinkAdapter;var pubCommonIdAdapter=(ND="_pubcid",OD="_pubcid_optout",PUB_COMMON="PublisherCommonId",EXP_SUFFIX="_exp",COOKIE="cookie",LOCAL_STORAGE="localstorage",MODULE_NAME="pubCommonId",GVLID=887,QD.prototype.decode=function(e){return e||void 0},QD.prototype.getValue=function(){return ProperMedia.utils.isStr(this.idObj)?this.idObj:ProperMedia.utils.deepAccess(this,"idObj.pubcid")},QD.prototype.init=function(){properStorage.localStorageIsEnabled({moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})?this.storage.type=LOCAL_STORAGE:properStorage.cookiesAreEnabled({moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})?this.storage.type=COOKIE:this.storage.type=null,this.getId()},QD.prototype.removeStorageItem=function(e){try{properStorage.removeDataFromLocalStorage(e+EXP_SUFFIX,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID}),properStorage.removeDataFromLocalStorage(e,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})}catch(e){properLog.mylog(JSON.stringify(e))}},QD.prototype.readValue=function(e,t){var i;return(t=t||this.storage.type)===COOKIE?i=properStorage.getCookie(e,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID}):t===LOCAL_STORAGE&&(i=function(e){var t=null;try{var i=properStorage.getDataFromLocalStorage(e+EXP_SUFFIX,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID});!i||0<new Date(i).getTime()-Date.now()?t=properStorage.getDataFromLocalStorage(e,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID}):removeStorageItem(e)}catch(e){properLog.mylog(JSON.stringify(e))}return t}(e)),"undefined"===i||"null"===i?null:i},QD.prototype.writeValue=function(e,t,i){var r;e&&t&&(this.storage.type===COOKIE?((r=new Date).setTime(r.getTime()+864e5*expires),properStorage.setCookie(e,t,r.toGMTString(),"Lax","."+properPage.root_domain,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})):this.storage.type===LOCAL_STORAGE&&function(e,t,i){try{var r;void 0!==i&&null!=i&&(r=new Date(Date.now()+864e5*i).toUTCString(),properStorage.setDataInLocalStorage(e+EXP_SUFFIX,r,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})),properStorage.setDataInLocalStorage(e,t,{moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})}catch(e){properLog.mylog(JSON.stringify(e))}}(e,t,i))},QD.prototype.getId=function(){var e=null,t=properStorage.cookiesAreEnabled({moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})&&this.readValue(OD,COOKIE)||properStorage.hasLocalStorage({moduleType:"core",moduleName:MODULE_NAME,gvlid:GVLID})&&this.readValue(OD,LOCAL_STORAGE);return!(!this.storage.type||t)&&("object"==typeof window[PUB_COMMON]?(e=window[PUB_COMMON].getId(),properLog.mylog(PUB_COMMON+": pubcid = "+e)):((e=this.readValue(ND))||(this.storage.type==COOKIE?e=this.readValue(ND,LOCAL_STORAGE):this.storage.type==LOCAL_STORAGE&&(e=this.readValue(ND,COOKIE))),e?this.config.extend&&this.writeValue(ND,e,this.storage.expiresInDays):this.config.create&&(e=(e=this.storage.type===LOCAL_STORAGE?this.readValue(ND,COOKIE):e)||ProperMedia.utils.generateUUID(),this.writeValue(ND,e,this.storage.expiresInDays),e=this.readValue(ND)),properLog.mylog("pubCommonId: pubcid = "+e)),this.idObj={pubcid:e},!0)},QD),ND,OD;function QD(){this.name="pubcid",this.eid_name="pubcid",this.source="pubcid.org",this.atype=1,this.config={enabled:!0,create:!0,extend:!0},this.storage={type:LOCAL_STORAGE,name:ND,expiresInDays:365,gvlid:GVLID},this.idObj=null,this.callback=null}userIdAdapters.pubCommonId=new pubCommonIdAdapter;var fabrickIdAdapter=(pE.prototype.initialize=function(e){ProperMedia.utils.deepAccess(e,"emailHashes.sha256")?this.config.e=ProperMedia.utils.deepAccess(e,"emailHashes.sha256"):ProperMedia.utils.deepAccess(e,"emailHashes.sha1")?this.config.e=ProperMedia.utils.deepAccess(e,"emailHashes.sha1"):ProperMedia.utils.deepAccess(e,"emailHashes.md5")&&(this.config.e=ProperMedia.utils.deepAccess(e,"emailHashes.md5")),e.ipv4&&(this.config.i4=e.ipv4),e.ipv6&&(this.config.i6=e.ipv6)},pE.prototype.decode=function(e){return e.fabrickId||void 0},pE.prototype.getValue=function(){return this.idObj||void 0},pE.prototype.getId=function(e){try{if(!this.config.enabled)return;if("string"!=typeof this.config.apiKey)return void properLog.mylog("fabrickId submodule requires an apiKey.");try{var t,r="https://fid.agkn.com/f?",i=Object.keys(this.config);for(t in i){var s=i[t];if("url"!==s&&"refererInfo"!==s&&"enabled"!==s){var o=this.config[s];if(Array.isArray(o))for(var a in o)r+=s+"="+o[a]+"&";else r+=s+"="+o+"&"}}var r=r.slice(0,-1),n=[];r=qE(n,r,"r",properPage.referer),r=qE(n,r,"r",properPage.canonical_url),r=qE(n,r,"r",properPage.url);return{callback:function(i){$.ajax({url:r,method:"GET",requestType:"cors",success:function(e){var t;if(e)try{t=ProperMedia.utils.safeJsonParse(e)}catch(e){properLog.mylog(e),t={}}i(t)}.bind(this),error:function(e){properLog.mylog("fabrickId fetch encountered an error",e),i()}})}}}catch(e){properLog.mylog("fabrickIdSystem encountered an error",e)}}catch(e){properLog.mylog("fabrickIdSystem encountered an error",e)}},pE);function pE(){this.name="fabrickId",this.eid_name="fabrickId",this.source="neustar.biz",this.atype=1,this.config={enabled:!1,apiKey:null},this.storage={type:"cookie",name:"fabrickId",expiresInDays:7},this.idObj=null,this.callback=null}function qE(e,t,i,r){return r&&t.length<2e3&&(200<r.length&&(r=r.substring(0,200)),-1==e.indexOf(r))?(e.push(r),t+"&"+i+"="+r):t}userIdAdapters.fabrickId=new fabrickIdAdapter;var pubLinkAdapter=(OE.prototype.initialize=function(e){this.enabled=ProperMedia.utils.deepAccess(properOps,"bidders.header.conversant.enabled")||!1,this.enabled&&(this.config.siteId=ProperMedia.utils.deepAccess(properOps,"bidders.header.conversant.site_id")||0,e.email&&(this.email=e.email),this.email&&ProperMedia.utils.isBase64(this.email)&&(this.email=ProperMedia.utils.b64DecodeUnicode(this.email)),this.emailHashes=ProperMedia.utils.deepAccess(e,"emailHashes")||{})},OE.prototype.decode=function(e){return e||void 0},OE.prototype.getValue=function(){return this.idObj||void 0},OE.prototype.getId=function(){var e=this.getlocalValue();if(e)return{id:e};if(!this.idObj){e=this.emailHashes.md5||this.email||"";if(e&&/^[A-F0-9]+$/i.test(e)&&this.config.siteId&&this.config.apiKey){e={deh:e,mpn:"Prebid.js",mpv:properOps.prebid_version};e.sid=this.config.siteId,e.apikey=this.config.apiKey,e.gdpr=gdprConsent.gdprApplies?1:0,e.gdpr_consent=gdprConsent.consentString,uspConsent.usPrivacy&&"string"==typeof uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy);var i="https://proc.ad.cpe.dotomi.com/cvx/client/sync/publink?"+ProperMedia.utils.formatQueryString(e);return{callback:function(t){$.ajax({url:i,method:"GET",requestType:"cors",withCredentials:!0,success:function(e){if(e)try{responseObj=ProperMedia.utils.safeJsonParse(e),e=responseObj.publink}catch(e){properLog.mylog(e)}t(e)}.bind(this),error:function(e){properLog.mylog("pubLink fetch encountered an error",e),t()}})}}}properLog.mylog("params.e must be a hex string and requires a Site ID and API Key")}},OE.prototype.getlocalValue=function(){function e(e){var t;if("string"==typeof(t=(t=properStorage.hasLocalStorage({moduleName:this.name,gvlid:this.storage.gvlid})?properStorage.getDataFromLocalStorage(e,{moduleName:this.name,gvlid:this.storage.gvlid}):t)||properStorage.getCookie(e,{moduleName:this.name,gvlid:this.storage.gvlid}))){if("{"!==(t=decodeURIComponent(t)).charAt(0))return t;try{var i=ProperMedia.utils.safeJsonParse(t);if(i)return i.publink}catch(e){properLog.mylog(e)}}}return e.call(this,this.storage.name+"_srv")||e.call(this,this.storage.name)},OE);function OE(){this.name="pubLink",this.eid_name="publinkId",this.email="",this.emailHashes={},this.source="epsilon.com",this.atype=3,this.config={enabled:!1,siteId:null,apiKey:null},this.storage={type:"cookie",name:"_publink",expiresInDays:30,gvlid:24},this.idObj=null,this.callback=null}userIdAdapters.pubLink=new pubLinkAdapter;var id5IdAdapter=(gF=131,hF="id5Id",iF=30,jF="id5id",kF=jF+"_no_email",lF=jF+"_privacy",mF.prototype.initialize=function(e){ProperMedia.utils.deepAccess(e,"emailHashes.sha256")?this.email=e.emailHashes.sha256:ProperMedia.utils.deepAccess(e,"emailHashes.md5")&&(this.email=e.emailHashes.md5)},mF.prototype.generatePD=function(){return this.email?ProperMedia.utils.b64EncodeUnicode("1="+this.email+(properUser.pubcid?"&5="+properUser.pubcid:"")):""},mF.prototype.getValue=function(){return ProperMedia.utils.deepAccess(this,"idObj.uid")},mF.prototype.getUidExt=function(){if(ProperMedia.utils.deepAccess(this,"idObj.ext"))return ProperMedia.utils.deepAccess(this,"idObj.ext")},mF.prototype.decode=function(e){var t,i=0,i=e&&"string"==typeof e.universal_uid?(t=e.universal_uid,e.link_type||i):void 0;return{uid:t,ext:{linkType:i}}},mF.prototype.getId=function(e){var t="https://id5-sync.com/g/v2/"+this.config.partnerId+".json",i=gdprConsent&&"boolean"==typeof gdprConsent.gdprApplies&&gdprConsent.gdprApplies?1:0,r=uspConsent.usPrivacy||"",e=e&&e.signature?e.signature:"",s={gdpr:i,gdpr_consent:i?gdprConsent.consentString:"",partner:this.config.partnerId,nbPage:rF(this.config.partnerId),o:"api",pd:this.generatePD(),provider:"",rf:properPage.referrer,s:e,top:1,u:properPage.url,us_privacy:r,v:properOps.prebid_version};return{callback:function(i){$.ajax({url:t,method:"POST",requestType:"cors",data:JSON.stringify(s),success:function(e){var t;if(e)try{t=ProperMedia.utils.safeJsonParse(e),pF(this.config.partnerId,0),this.email?tF(kF)&&(properStorage.removeDataFromLocalStorage(kF,{moduleName:hF,gvlid:gF}),properStorage.removeDataFromLocalStorage(kF+"_exp",{moduleName:hF,gvlid:gF})):uF(kF,1,iF),t.privacy&&uF(lF,JSON.stringify(t.privacy),iF)}catch(e){properLog.mylog(e)}i(t)}.bind(this),error:function(e){properLog.mylog("UserID - ID5 submodule getId fetch encountered an error: "+JSON.stringify(e)),i()}})}}},mF.prototype.extendId=function(e){return this.email&&tF(kF)?this.getId(e):(rF(this.config.partnerId||0),e)},mF),gF,hF,iF,jF,kF,lF,aG,kG,vG,wG,xG,PG,QG,hH,iH,CH,DH,QH,RH,GJ,HJ,IJ,JJ,KJ,OJ,QJ,RJ,SJ,TJ,FL,GL,eK,mK,nM,pM,qM,rM,fN,iN,jN,TO,UO,HP,IP,KP,LP,GQ,HQ,IQ,JQ,KQ,LQ,MQ,FR,GR,HR,IR,XU,mW,oW,pW,qW,UZ,YZ,T$,U$,V$,W$,X$,Y$,Z$,oaa,paa,Dba,Eba,_aa,a0a,c0a,o1a,G2a,I2a,Rca,Sca,Tca,s3a,n3a,o3a,p3a,q3a,wea,xea,yea,zea,Bea,j5a,l5a,nfa,qfa,rfa,tfa,ufa,vfa,wfa,xfa,yfa,Lga,Mga,Pga,tha,uha,C7a,Qia,Ria,gja,hja,ija,jja,kja,zka,Cka,Ula,Vla,Wla,Yla,tna,bpa,Usa,Vsa,Wsa,Kva,Lva,Jwa,Lwa,Hxa,Jxa,Mxa,Nxa,Qya,Sya;function mF(){this.name=hF,this.eid_name="id5id",this.source="id5-sync.com",this.email="",this.atype=1,this.config={enabled:!1,partnerId:445},this.storage={type:"localstorage",name:jF,expiresInDays:90,refreshInSeconds:28800,gvlid:gF},this.idObj=null,this.callback=null}function oF(e){return jF+"_"+e+"_nb"}function pF(e,t){uF(oF(e),t,iF)}function rF(e){var t,t=((t=tF(oF(t=e)))?parseInt(t):0)+1;return pF(e,t),t}function tF(e){var t=properStorage.getDataFromLocalStorage(e+"_exp",{moduleName:hF,gvlid:gF});return""===t||t&&0<new Date(t).getTime()-Date.now()?properStorage.getDataFromLocalStorage(e,{moduleName:hF,gvlid:gF}):(properStorage.removeDataFromLocalStorage(e,{moduleName:hF,gvlid:gF}),null)}function uF(e,t,i){properStorage.setDataInLocalStorage(e+"_exp",(i=i,new Date(Date.now()+864e5*i).toUTCString()),{moduleName:hF,gvlid:gF}),properStorage.setDataInLocalStorage(e,t,{moduleName:hF,gvlid:gF})}function UJ(e){e=e.split("x");return{w:parseInt(e[0]),h:parseInt(e[1])}}function VJ(n,d,p){var l={imps:{},data_map:{},request_cnt:0},c=p.auctionId;return 0<Object.keys(n).length&&(Object.keys(n).forEach(function(e){for(var t=0;t<n[e].length;t++){var i,r,s,o=n[e][t];void 0===l.imps[o]&&(s=o.split("-")[0]||o,i="adagio-"+ProperMedia.utils.generateUUID(),r={page_dimensions:aK().toString(),viewport_dimensions:bK().toString(),user_timestamp:cK().toString(),dom_loading:dK().toString(),print_number:(t+1).toString(),adunit_position:""},Object.keys(r).forEach(function(e){""===r[e]&&delete r[e]}),l.imps[o]={bidId:o,auctionId:c,bidderRequestId:ProperMedia.utils.generateUUID(),adUnitCode:i,mediaTypes:{},bidder:"adagio",params:{site:RJ,placement:s,adUnitElementId:i,organizationId:QJ.toString(),environment:properDevice.device_type},features:r,floors:[]},mK.enqueue({action:"features",ts:Date.now(),data:{features:r,params:l.imps[o].params,adUnitCode:l.imps[o].adUnitCode}}),"display"==p.demand_type?l.imps[o].mediaTypes.banner={sizes:[]}:"video"==p.demand_type?(s=UJ(e),l.imps[o].mediaTypes.video={context:p.video_type,mimes:["video/mp4","application/javascript"],w:s.w,h:s.h,maxduration:30,minduration:10,api:[2],delivery:6,pos:0,playbackmethod:6,placement:"outstream"==p.video_type?3:1,linearity:"outstream"==p.video_type?2:1,protocols:[2,3,5,6],startdelay:0,skip:0},_buildVideoBidRequest(bidRequest)):"native"==p.demand_type&&(l.imps[o].mediaTypes.ntaive={main_image:{required:!0,sizes:[]},icon:{required:!0,sizes:[{width:50,height:50}]},clickUrl:{required:!0},title:{required:!0,len:80},sponsored_by:{required:!0},ctatext:{required:!1}}),1==properOps.testing_mode.ids&&(l.imps[o].params.debug={enabled:!0,cpm:3}),l.data_map[o]={floors:{},div_id:i}),"display"==p.demand_type&&(a=UJ(e),l.imps[o].mediaTypes.banner.sizes.push([a.w,a.h]));var a=getBidderFloor(d,e);l.imps[o].floors.push({mt:p.demand_type,s:e,f:a}),l.data_map[o].floors[e]=a,l.request_cnt++}}),Object.keys(l.imps).forEach(function(e){!function(t){const e=window.top;var i;e.ADAGIO=e.ADAGIO||{},e.ADAGIO.pbjsAdUnits=e.ADAGIO.pbjsAdUnits.filter(function(e){return e.code!==t.adUnitCode}),t.features&&t.features.print_number?i=t.features.print_number:t.params.features&&t.params.features.print_number&&(i=t.params.features.print_number);e.ADAGIO.pbjsAdUnits.push({code:t.adUnitCode,mediaTypes:t.mediaTypes||{},sizes:(t.mediaTypes&&t.mediaTypes.banner&&Array.isArray(t.mediaTypes.banner.sizes)?t.mediaTypes.banner:t).sizes,bids:[{bidder:t.bidder,params:t.params}],auctionId:t.auctionId,pageviewId:mK.getPageviewId(),printNumber:i}),e.ADAGIO.adUnits[t.adUnitCode]={auctionId:t.auctionId,pageviewId:mK.getPageviewId(),printNumber:i}}(l.imps[e])})),l}function aK(){var e=window.document.querySelector("body"),t=window.document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)+"x"+Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}function bK(){return(window.innerWidth||0)+"x"+(window.innerHeight||0)}function cK(){return Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()}function dK(){var e=-1,t=window.performance;return t&&t.timing&&0<t.timing.navigationStart&&(0<(t=t.timing.domLoading-t.timing.navigationStart)&&(e=t)),e}function kN(e,t){e=(e=ProperMedia.utils.deepAccess(t,"native_sizes."+e)||e).split("x");return{width:parseInt(e[0]),height:parseInt(e[1])}}function lN(n,d,p){var l={astTags:{},data_map:{},request_cnt:0};return 0<Object.keys(n).length&&Object.keys(n).forEach(function(e){for(i=0;i<n[e].length;i++){var t,r,s,o=n[e][i];void 0===l.astTags[o]&&(t=kN(e,p),r=function(){var i=(new Date).getTime(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)});return e=e.split("-")[4]}(),s=ProperMedia.utils.deepAccess(properOps,"bidders.header."+d+".site_id")||o,l.astTags[o]={sizes:[],primary_size:t,uuid:r,id:parseInt(s),prebid:!0,ad_types:[],reserve:0,hb_source:1,disable_psa:!0,allow_smaller_sizes:!1,use_pmt_rule:!1},l.data_map[r]={tag_id:o,floor:0}),"display"==p.demand_type?l.astTags[o].ad_types.push("banner"):"native"==p.demand_type?(-1==l.astTags[o].ad_types.indexOf("native")&&l.astTags[o].ad_types.push("native"),(a=ProperMedia.utils.deepAccess(l,"astTags."+o+".native.layouts.0")||jN).main_image.sizes.push(kN(e)),l.astTags[o].native={layouts:[a]}):"video"==p.demand_type&&(l.astTags[o].ad_types.push("video"),"instream"==p.video_type?l.astTags[o].require_asset_url=!0:"outstream"==p.video_type&&(l.astTags[o].require_asset_url=!1),l.astTags[o].allow_smaller_sizes=!0,l.astTags[o].video_frameworks=[2],l.astTags[o].video={minduration:1,playback_method:2,mimes:["video/mp4","application/javascript"],custom_renderer_present:!0});var a=getBidderFloor(d,e);(!l.astTags[o].reserve||a<l.astTags[o].reserve)&&(l.astTags[o].reserve=a,ProperMedia.utils.deepSetValue(l,"data_map."+ProperMedia.utils.deepAccess(l,"astTags."+o+".uuid")+".floor",a)),l.astTags[o].sizes.push(kN(e)),l.request_cnt++}}),l}function VO(a){var n={imps:{},request_count:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=e.split("x"),i=0;i<a[e].length;i++){n.request_count++;var r=a[e][i],s=getBidderFloor(UO,e);n.imps[r]||(n.imps[r]={id:r.toString(),tag_id:r.toString(),bidfloor:Math.min(s,n.imps[r])||s,banner:{format:[],ext:{viewability:"na"}}}),n.imps[r].banner.format.push({w:parseInt(t[0]),h:parseInt(t[1])});var o=n.imps[r].bidfloor;(!o||s<o)&&(n.imps[r].bidfloor=s)}}),n}function MP(r){var s={bids:{},request_cnt:0},o=ProperMedia.utils.deepAccess(properOps,"bidders.header."+KP+".site_id")||0;if(!o)return properLog.mylog("Error: Concert Site ID is Required."),s;var e=properDevice.isMobile()?"mobile":"desktop",a=LP[e]||[];return 0<Object.keys(r).length&&Object.keys(r).forEach(function(e){for(var t,i=0;i<r[e].length;i++)"native_horizontal"==e&&(t=r[e][i],void 0===s.bids[t]&&(s.bids[t]={name:t,bidId:t,transactionId:ProperMedia.utils.generateUUID(),sizes:a,partnerId:o,adSlot:t,site:properPage.url,ref:properPage.referrer,placementId:""},s.request_cnt+=1))}),s}function QP(){return"true"===properStorage.getDataFromLocalStorage("c_nap",{bidderCode:KP})}function OQ(a){var n={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i=a[e][t],r=i.split("|"),s=r[0]||"",o=r[1]||"",r=(r[2]||"").split(",");void 0===n.imps[i]&&(n.imps[i]={networkId:HQ,siteId:IQ,divName:i,unitName:s,unitId:o,zoneIds:[],adTypes:[],bidfloor:0}),r instanceof Array?n.imps[i].zoneIds.concat(r.map(function(e){return parseInt(e)})):n.imps[i].zoneIds.push(parseInt(r));r=(r=e.split("x"),0<=(r=MQ.indexOf(r[0]+"x"+r[1]))&&r);r&&(n.imps[i].adTypes.push(r),n.request_cnt++);r=getBidderFloor(JQ,e);(!n.imps[i].bidfloor||r<n.imps[i].bidfloor)&&(n.imps[i].bidfloor=r,n.data_map[i]=r)}}),n}function KR(s){var o={imps:{},data_map:{},request_cnt:0};return ProperMedia.utils.deepAccess(properOps,"bidders.header."+HR+".account_overrides.enabled")&&(IR=ProperMedia.utils.deepAccess(properOps,"bidders.header."+HR+".account_overrides.bidder_ids.displaymanager")||IR),0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===o.imps[i]&&(o.imps[i]={id:i.toString(),bidfloor:0,secure:properPage.use_ssl?1:0,displaymanager:IR,displaymanagerver:"2.2.4",banner:{format:[],pos:0}});var r=getBidderFloor(HR,e);(!o.imps[i].bidfloor||r<o.imps[i].bidfloor)&&(o.imps[i].bidfloor=r,o.data_map[i]=r),o.imps[i].banner.format.push((i=(i=e).split("x"),{w:parseInt(i[0]),h:parseInt(i[1])})),o.request_cnt++}}),o}function ZU(o,a,n){var d={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i,r=o[e][t];void 0===d.imps[r]&&(i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+a+".site_id")||r,s=e.split("x"),d.imps[r]={id:r.toString(),tid:ProperMedia.utils.generateUUID(),tagid:i.toString(),secure:properPage.use_ssl?1:0,bidfloor:0,bidfloorcur:"USD"},"display"==n.demand_type?d.imps[r].banner={w:parseInt(s[0])||0,h:parseInt(s[1])||0,format:[]}:"video"==n.demand_type&&(d.imps[r].video={topframe:1,skippable:1,linearity:"outstream"==n.video_type?2:1,minduration:10,maxduration:30,playback_methods:["auto_play_sound_off"],api:[1,2],mimes:["video/mp4","application/javascript"],protocols:[2,3,5,6],w:parseInt(s[0])||0,h:parseInt(s[1])||0}));var s=getBidderFloor(a,e);(!d.imps[r].bidfloor||s<d.imps[r].bidfloor)&&(d.imps[r].bidfloor=s,d.data_map[r]=s),"display"==n.demand_type&&d.imps[r].banner.format.push((r=(r=e).split("x"),{w:parseInt(r[0]),h:parseInt(r[1])})),d.request_cnt++}}),d}function sW(s,o,a){var n={imps:{}};return 0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===n.imps[i]&&(r=i.split("-"),n.imps[i]={bidfloor:0,sizes:[],tag_id:i,native_size:""},ProperMedia.utils.deepAccess(a,"native_sizes."+e)?(n.imps[i].type=2,pW||(n.imps[i].zoneId=r[0]||"",n.imps[i].native_size=e)):(n.imps[i].type=3,pW?n.imps[i].slotId=r[0]||"":(n.imps[i].zoneId=r[0]||"",n.imps[i].slotId=r[1]||"")));var r=getBidderFloor(o,e);(!n.imps[i].bidfloor||r<n.imps[i].bidfloor)&&(n.imps[i].bidfloor=r),3==n.imps[i].type&&n.imps[i].sizes.push(function(e,t){try{var i=(e=ProperMedia.utils.deepAccess(t,"native_sizes."+e)||e).split("x");return[parseInt(i[0]),parseInt(i[1])]}catch(e){return!1}}(e))}}),n}function ZZ(o){var a={imps:{},JPbids:{},request_cnt:0},n=properDevice.isMobile()?"mobile":"desktop";return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i=o[e][t];void 0===a.imps[i]&&(a.imps[i]={tag_id:parseInt(i),sizes:[],slot_types:[[],{}]}),a.JPbids[i]=e;var r=(ProperMedia.utils.deepAccess(UZ,"native_sizes."+n+"."+e)||e).split("x").map(function(e){return parseInt(e)});if("728"==r[0]&&"90"==r[1])a.imps[i].slot_types[0]=a.imps[i].slot_types[0].concat(["cf","pu","as"]),a.imps[i].sizes.push([r[0],r[1]]),a.request_cnt++;else if("160"==r[0]&&"600"==r[1])a.imps[i].slot_types[0]=a.imps[i].slot_types[0].concat(["sa"]),a.imps[i].sizes.push([r[0],r[1]]),a.request_cnt++;else if("320"==r[0]&&"50"==r[1]){var s=["ms"];"native_horizontal"==e&&properDevice.isMobile()&&s.push("is"),a.imps[i].slot_types[0]=a.imps[i].slot_types[0].concat(s),a.imps[i].sizes.push([r[0],r[1]]),a.request_cnt++}else{if("1"!=r[0]||"1"!=r[1])return a;a.imps[i].slot_types[0]=a.imps[i].slot_types[0].concat(["wp"]),a.imps[i].sizes.push([r[0],r[1]]),a.request_cnt++}}}),a}function a_(s){var o={bidIDs:{},bidSizes:{},request_cnt:0,tag_size_map:{},floor:0};return Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t],r=i.split("-")[0];void 0===o.bidIDs[i]&&(o.bidIDs[i]=r,o.bidSizes[i]=[]),o.bidSizes[i].push((r=e,r=(r=ProperMedia.utils.deepAccess(T$,"native_sizes."+r)||r).split("x"),[parseInt(r[0]),parseInt(r[1])]));r=getBidderFloor(V$,e);(!o.floor||r<o.floor)&&(o.floor=r),o.request_cnt++,ProperMedia.utils.deepAccess(T$,"native_sizes."+e)&&(o.tag_size_map[i]=e)}}),o}function g_(){var e=function(){try{return JSON.parse(atob(h_("krg_crb")))}catch(e){return{}}}();return Object.keys(e).length?e:function(){try{var e=JSON.parse(decodeURIComponent(properStorage.getCookie("krg_crb",{bidderCode:V$,gvlid:T$.gvlid})));if(e&&e.v){var t=JSON.parse(atob(e.v));if(t)return t}return{}}catch(e){return{}}}()}function h_(e){try{return properStorage.getDataFromLocalStorage(e,{bidderCode:V$,gvlid:T$.gvlid})}catch(e){return null}}function qaa(r){var s={bidRequests:{},request_cnt:0};return 0<Object.keys(r).length&&Object.keys(r).forEach(function(e){for(var t=0;t<r[e].length;t++){var i=r[e][t];void 0===s.bidRequests[i]&&(s[i],s.bidRequests[i]={requestId:i,adUnitCode:i,adUnitId:i,sizes:[]}),s.bidRequests[i].sizes.push(e),s.request_cnt++}}),s}function e0a(r){var s={bids:{},request_cnt:0};return 0<Object.keys(r).length&&Object.keys(r).forEach(function(e){for(var t=0;t<r[e].length;t++){var i=r[e][t];void 0===s.bids[i]&&(s.bids[i]={bidId:i,sizes:[]}),s.bids[i].sizes.push((i=(i=e).split("x"),{width:parseInt(i[0]),height:parseInt(i[1])})),s.request_cnt++}}),s}function g0a(e,t,i){var r={referrer:document.referrer,tz:(new Date).getTimezoneOffset(),buster:(new Date).getTime(),secure:"https:"===document.location.protocol,version:9};if(h0a()&&!n0a()||(r.mobile=!n0a()&&function(e){var t=!e&&("ontouchstart"in window||navigator.msMaxTouchPoints);if(h0a())return!t;e=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth;return!t&&(!e||e>=(window.mantis_breakpoint||768))}(!0)?"false":"true"),window.mantis_uuid?r.uuid=window.mantis_uuid:!window.localStorage||(s=window.localStorage.getItem("mantis:uuid"))&&(r.uuid=s),h0a())r.iframe=!0;else try{r.title=window.top.document.title,r.referrer=window.top.document.referrer,r.url=window.top.document.location.href}catch(e){}n0a()&&(r.amp=!0,!r.url&&window.context.canonicalUrl&&(r.url=window.context.canonicalUrl),!r.url&&window.context.location&&(r.url=window.context.location.href),!r.referrer&&window.context.referrer&&(r.referrer=window.context.referrer)),Object.keys(t||{}).forEach(function(e){r[e]=t[e]});var s=function e(t,i,r){if(!t)return null;var s=r||[];for(var o in t){var a=o;i&&(a=i+"["+o+"]");var n=t[o];if(p0a(n))for(var d=0;d<n.length;d++){var p=a+"["+d+"]",l=n[d];q0a(l)?e(l,p,s):m0a(l)&&s.push(p+"="+encodeURIComponent(l))}else q0a(n)?e(n,a,s):m0a(n)&&s.push(a+"="+encodeURIComponent(n))}return s.join("&")}(r);return(void 0===window.mantis_domain?i||c0a:window.mantis_domain)+e+"?"+s}function h0a(){try{return window.self!==window.top&&!window.mantis_link}catch(e){return 1}}function m0a(e){return null!=e&&("string"==typeof e?!(!e||/^\s*$/.test(e)):"number"!=typeof e||!isNaN(e))}function n0a(){return"object"==typeof window.context&&("AMP-AD"===window.context.tagName||"AMP-EMBED"===window.context.tagName)}function p0a(e){return"[object Array]"===Object.prototype.toString.call(e)}function q0a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s0a(i,o,a,n){function d(){u&&g&&g(),u=!1}function r(e,t,i){var r=void 0!==document.hidden&&document.hidden;if(0==i.width||0==i.height||r)return d(),0;var s=i.height*n,r=i.width*n;return(i.top<0&&i.bottom>=s||0<i.top&&t-i.top>=s)&&(i.left<0&&i.right>=r||0<i.left&&e-i.left>=r)?!c&&a?(c=Date.now(),d()):a&&Date.now()-c<a?d():void(u||o(function(e){e?u=!0:(p&&clearInterval(p),l&&l())},function(e){g=e})):d()}var p,l,c=null,u=!1,g=null;n0a()&&(l=window.context.observeIntersection(function(e){e.forEach(function(e){r(e.rootBounds.width,e.rootBounds.height,e.boundingClientRect)})})),p=setInterval(function(){var e=window.innerHeight||document.documentElement.clientHeight,t=window.innerWidth||document.documentElement.clientWidth;r(t,e,i.getBoundingClientRect())},100)}function t0a(e,t){var i=document.createElement("img");i.src=e,i.style.cssText="display:none !important;",(t||document.body).appendChild(i)}function q1a(a,n,d){var p={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i,r=a[e][t],s=e.split("x");void 0===p.imps[r]&&(i="display"==d.demand_type?properDevice.isMobile()?"506882127":"515514711":"677195738",p.imps[r]={id:r.toString(),tagid:i,bidfloor:0,ext:{visibility:0}},"display"==d.demand_type?p.imps[r].banner=[]:"video"==d.demand_type?p.imps[r].video={protocols:[1,2,3,4,5,6],pos:0,topframe:1,minduration:10,maxduration:30,mimes:["video/mp4","application/javascript"],api:[1,2],playbackmethod:[6],placement:"outstream"==d.video_type?3:1,context:d.video_type,playerSize:[e.split("x").map(function(e){return parseInt(e)})]}:"native"==d.demand_type&&(p.imps[r].native=JSON.stringify({request:{ver:"1.2",context:1,plcmttype:1,privacy:1,assets:[{id:1,required:1,title:{len:80}},{id:2,required:1,img:{type:3,w:parseInt(s[0]),h:parseInt(s[1])}},{id:3,required:0,img:{type:1,w:50,h:50}},{id:4,required:1,data:{type:1}},{id:5,required:0,data:{type:2}},{id:6,required:1,data:{type:0}},{id:10,required:0,img:{type:0,w:50,h:50}},{id:11,required:0,data:{type:1}},{id:12,required:0,data:{type:2}},{id:21,required:0,data:{type:11}},{id:22,required:0,data:{type:12}}]}}))),"display"==d.demand_type&&p.imps[r].banner.push((o=(o=e).split("x"),{w:parseInt(o[0]),h:parseInt(o[1])}));var o=getBidderFloor(n,e);(!p.imps[r].bidfloor||o<p.imps[r].bidfloor)&&(p.imps[r].bidfloor=o,p.data_map[r]=o),p.request_cnt++}}),p}function t1a(e,t){e=function(e,t){try{var i=window.top.document.querySelector(e);if(null!==i&&i[t])return i[t]}catch(e){}}(e,t);return e&&(t=e,(e=window.top.document.createElement("a")).href=t,e.href)}function K2a(r,s,e){var o={adUnits:{},data_map:{},placementIds:[],floors:{},request_cnt:0,request_counts:{}};return 0<Object.keys(r).length&&Object.keys(r).forEach(function(e){for(var t=0;t<r[e].length;t++){var i=r[e][t];void 0===o.adUnits[i]&&(o.placementIds.push(i),o.request_counts[i]=1,o.adUnits[i]={adUnitCode:i,mediaTypes:{banner:{sizes:[]}}},o.data_map[i]={tag_id:i,tag_sizes:[]},o.floors[i]={banner:{},"*":{}}),o.data_map[i].tag_sizes.push(e),o.floors[i]["*"][e]=getBidderFloor(s,e),o.floors[i].banner[e]=getBidderFloor(s,e),o.adUnits[i].mediaTypes.banner.sizes.push((i=e,i=(i=ProperMedia.utils.deepAccess(G2a,"native_sizes."+i)||i).split("x"),[parseInt(i[0]),parseInt(i[1])])),o.request_cnt++}}),o}function Uca(s,e,o){const a={imps:[],request_count:0};return 0<Object.keys(s).length&&Object.keys(s).forEach(function(t){var i=t.split("x").map(Number);for(let e=0;e<s[t].length;e++){var r=s[t][e];a.imps[r]||(a.imps[r]={d:ProperMedia.utils.generateUUID(),sid:Sca,pid:r,at:"display"==o.demand_type?"banner":"video",params:{siteId:Sca,placementId:r},z:[],g:{}}),a.request_count++,a.imps[r].z.push(i)}}),a}function u3a(s){var o={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===o.imps[i]&&(o.imps[i]={id:i,tagid:i,bidfloor:0,banner:{format:[]},ext:{assetKey:s3a,adUnitId:i}},o.data_map[i]={floor:0,tag_sizes:[]});var r=getBidderFloor(o3a,e);(!o.imps[i].bidfloor||r<o.imps[i].bidfloor)&&(o.imps[i].bidfloor=r,o.data_map[i].floor=r),o.data_map[i].tag_sizes.push(e),o.imps[i].banner.format.push((r=e,r=(r=ProperMedia.utils.deepAccess(n3a,"native_sizes."+r)||r).split("x"),{w:parseInt(r[0]),h:parseInt(r[1])})),o.imps[i].banner.format.some(e=>1===e.w&&1===e.h)||(o.imps[i].ext.skipSizeCheck=!0),o.request_cnt++}}),o}function Cea(o,a,e){var n={data:{},request_cnt:0};return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i,r=o[e][t],s=xea||r.split("-")[0]||r;void 0===n.data[r]&&(i="openx-"+ProperMedia.utils.generateUUID(),n.data[r]={price_floor:0,slot_div:i,tag_id:s,sizes:[]});s=getBidderFloor(a,e);(!n.data[r].price_floor||s<n.data[r].price_floor)&&(n.data[r].price_floor=s),n.data[r].sizes.push(e),n.request_cnt++}}),n}function p5a(a,n,d){var p={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i,r,s=a[e][t];1==s&&(s=ProperMedia.utils.makeid(10)),void 0===p.imps[s]&&(i=s.split("-")[0],r=e.split("x"),p.imps[s]={id:s.toString(),tagid:i.toString(),bidfloor:0,bidfloorcur:"USD",secure:1,ext:{}},"display"==d.demand_type?p.imps[s].banner={w:parseInt(r[0]),h:parseInt(r[1]),pos:0,format:[],topframe:1}:"native"==d.demand_type&&(p.imps[s].native=JSON.stringify({request:{ver:"1.2",context:1,plcmttype:1,privacy:1,assets:[{id:1,required:1,title:{len:80}},{id:2,required:1,img:{type:3,w:parseInt(r[0]),h:parseInt(r[1])}},{id:3,required:0,img:{type:1,w:50,h:50}},{id:4,required:1,data:{type:1}},{id:5,required:0,data:{type:2}},{id:6,required:1,data:{type:0}},{id:10,required:0,img:{type:0,w:50,h:50}},{id:11,required:0,data:{type:1}},{id:12,required:0,data:{type:2}},{id:21,required:0,data:{type:11}},{id:22,required:0,data:{type:12}}]}}))),"display"==d.demand_type&&p.imps[s].banner.format.push((o=(o=e).split("x"),{w:parseInt(o[0]),h:parseInt(o[1])}));var o=getBidderFloor(n,e);(!p.imps[s].bidfloor||o<p.imps[s].bidfloor)&&(p.imps[s].bidfloor=o,p.data_map[s]=o),p.request_cnt++}}),p}function zfa(a,n,d){var p={imps:[],data_map:{}};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i=e.split("x"),r=ProperMedia.utils.makeid(10),s=getBidderFloor(n,e),o={id:r,bidfloor:s,secure:properPage.use_ssl?1:0,ext:{bidder:{placementId:rfa,zone:"1r",path:"mvo"}}};"display"==d.demand_type?o.banner={format:[{w:i[0],h:i[1]}]}:"video"==d.demand_type&&(o.video={mimes:vfa,protocols:ufa,w:parseInt(i[0]),h:parseInt(i[1]),startdelay:0,skip:0,playbackmethod:wfa,delivery:xfa,api:yfa}),p.imps.push(o),p.data_map[r]=s}}),p}function Qga(s,o,e){var a={imps:{},request_cnt:0},n={},d=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".site_id")||0;return Lga=e.alias?Mga:Lga,ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".account_overrides.enabled")&&(Lga=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".account_overrides.bidder_ids.accountId")||Lga),d?0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i,r=s[e][t];void 0===a.imps[r]&&(i=r.split("-")[0],n[r]=[],a.imps[r]={account_id:parseInt(Lga),site_id:parseInt(d),zone_id:parseInt(i),size_id:void 0,alt_size_ids:"",rp_floor:getBidderFloor(o,e),rp_secure:1==properPage.use_ssl?"1":"0",tk_flint:"pbjs_lite_v3.2.0","x_source.tid":ProperMedia.utils.generateUUID(),p_screen_res:properPage.width+"x"+properPage.height,kw:"",tk_user_key:"","p_geo.latitude":void 0,"p_geo.longitude":void 0,"tg_fl.eid":r,rf:properPage.bidder_page_url},""!=schainCheck(o)&&properOps.schain.nodes&&properOps.schain.nodes[0]&&properOps.schain.nodes[0].sid&&(a.imps[r]["x_source.pchain"]="proper.io:"+properOps.schain.nodes[0].sid)),void 0!==Pga[e]&&(i=getBidderFloor(o,e),(!a.imps[r].rp_floor||i<a.imps[r].rp_floor)&&(a.imps[r].rp_floor=i),n[r].push(Pga[e]),n[r]=function(e){var s=[15,2,9];return e.sort(function(e,t){var i=s.indexOf(e),r=s.indexOf(t);return-1<i||-1<r?-1===i?1:-1===r?-1:i-r:e-t})}(n[r]),a.imps[r].size_id=n[r][0],a.imps[r].alt_size_ids=n[r].slice(1).join(","),a.request_cnt++)}}):properLog.mylog("Error: Rubicon Site ID is Required."),a}function wha(e){var o={};if(e.requests&&i(e.requests,""),e.slot_requests)for(var t in e.slot_requests)i(e.slot_requests[t],t);function i(r,s){0<Object.keys(r).length&&Object.keys(r).forEach(function(e){for(var t=0;t<r[e].length;t++){var i=r[e][t];void 0===o[i]&&(o[i]={tag_id:i,pkey:i,size:e,slot_name:s})}})}return o}function H7a(s,o,a){var n={},d=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".account_overrides.enabled")?ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".account_overrides.bidder_ids.page_id"):"";return!d&&a.alias&&(d="1284312"),0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===n[i]&&(r=i.split("-"),d||(d=r[0]||d,!(r.length<2)&&r[1]&&r[0]||properLog.mylog("Error: Smart Ad Server missing id for tag_id. Tag ID needs to be in format: {pageid}-{formatid} or page_id must be filled out")),n[i]={pageid:d,formatid:r[1],sizes:[],bidfloor:0,tagId:ProperMedia.utils.generateUUID(),transactionId:ProperMedia.utils.generateUUID(),bidId:ProperMedia.utils.generateUUID()});var r=getBidderFloor(o,e);(!n[i].bidfloor||r<n[i].bidfloor)&&(n[i].bidfloor=r),"video"==a.demand_type?(r=e.split("x"),n[i].isVideo="outstream"!=a.video_type,n[i].videoData={videoProtocol:6,playerWidth:r[0],playerHeight:r[1],adBreak:1}):n[i].sizes.push((i=(i=e).split("x"),{w:parseInt(i[0]),h:parseInt(i[1])}))}}),n}function L8a(s,o){var a={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===a.imps[i]&&(r=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o+".site_id")||i,a.imps[i]={bidId:r,floor:0,sizes:[]});var r=getBidderFloor(o,e);(!a.imps[i].floor||r<a.imps[i].floor)&&(a.imps[i].floor=r,a.data_map[i]=r),a.imps[i].sizes.push(e),a.request_cnt++}}),a}function Tia(s,o,e){var a={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(s).length&&Object.keys(s).forEach(function(e){e.split("x");for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===a.imps[i]&&(a.imps[i]={id:i.toString(),banner:{format:[],w:1,h:1},tagid:i,bidfloor:0},(r=function(){var e=[],t=ProperMedia.utils.deepAccess(properSpecialOps,"carbon_deal_id")||"";t&&(ProperMedia.utils.isStr(t)&&(t=t.split(",")),e.concat(t.map(e=>e.trim())));t=ProperMedia.utils.deepAccess(properSpecialOps,"signal_deal_id")||"";t&&(ProperMedia.utils.isStr(t)&&(t=t.split(",")),e.concat(t.map(e=>e.trim())));return e}()).length&&(a.imps[i].ext=a.imps[i].ext||{},a.imps[i].ext.deals=r));var r=getBidderFloor(o,e);(!a.imps[i].bidfloor||r<a.imps[i].bidfloor)&&(a.imps[i].bidfloor=r,a.data_map[i]=r),a.imps[i].banner.format.push((i=(i=e).split("x"),{w:parseInt(i[0]),h:parseInt(i[1])})),a.request_cnt++}}),a}function mja(n,d,p){var l={imps:{},request_cnt:0},c=ProperMedia.utils.generateUUID();return 0<Object.keys(n).length&&Object.keys(n).forEach(function(e){for(var t,i=0;i<n[e].length;i++){var r,s,o,a=n[e][i];void 0===l.imps[a]&&(r=function(){var e=window.sublime=window.sublime||{},t=e.notifyId;t=t||ProperMedia.utils.generateUUID();e.notifyId||(e.notifyId=t);return t}(),s=ProperMedia.utils.generateUUID(),o=ProperMedia.utils.generateUUID(),t={transactionId:s,notifyId:r,zoneId:jja,debug:properOps.testing_mode.ids||!1},Object.assign(kja,t),l.imps[a]={adUnitCode:a,auctionId:c,bidder:d,requestId:a,sizes:[],notifyId:r,zoneId:jja,bidRequestsCount:0,bidderRequestId:o,transactionId:s}),"display"==p.demand_type&&l.imps[a].sizes.push((a=(a=e).split("x"),{w:parseInt(a[0]),h:parseInt(a[1])}))}}),l}function rja(e,t){var i=Date.now(),i={t:i,tse:i,z:kja.zoneId,e:e,src:"pa",puid:kja.transactionId||kja.notifyId,notid:kja.notifyId||"",pbav:ija,pubtimeout:kja.timeout,pubpbv:properOps.prebid_version,device:(/(?:phone|windows\s+phone|ipod|blackberry|Galaxy Nexus|SM-G892A|(?:android|bbd+|meego|silk|googlebot) .+?mobile|palm|windows\s+ce|opera mini|avantgo|docomo)/i.test(navigator.userAgent)?"m":/(?:ipad|playbook|Tablet|(?:android|bb\d+|meego|silk)(?! .+? mobile))/i.test(navigator.userAgent)&&"t")||"d"};"bidwon"===e&&(i.sspname=t||"");i=ProperMedia.utils.formatQueryString(i);(new Image).url="https://"+hja+"/?"+i}function Dka(e,t,d){var p={data:{},data_map:{},request_cnt:0},l=ProperMedia.utils.deepAccess(properOps,"bidders.header."+t+".site_id")||0,c=ProperMedia.utils.deepAccess(e,"auction.id");if(e.requests&&r(e.requests,""),e.slot_requests)for(var i in e.slot_requests)r(e.slot_requests[i],i);function r(a,n){0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i,r=a[e][t],s=r.split("-"),s=l?(i=l,s[0]):(i=s[0],s[1]);if(!i)return properLog.mylog("Error: Teads Page ID is Required."),p;if(!s)return properLog.mylog("Error: Teads Placement ID is Required."),p;void 0===p.data[r]&&(o="teads-"+ProperMedia.utils.generateUUID(),p.data[r]={bidId:r,placementId:parseInt(s),pageId:parseInt(i),adUnitCode:o,bidderRequestId:ProperMedia.utils.generateUUID(),transactionId:ProperMedia.utils.generateUUID(),auctionId:c,sizes:[]},p.data_map[r]={sizes:[],tag_id:r,slot_name:n||""});var o=d.native_sizes[e]||e;p.data[r].sizes.push(o),p.data_map[r].sizes.push(e),p.request_cnt++}})}return p}function Fka(e,t,i){var r=Cka.GDPR_APPLIES_PUBLISHER;return e?(i=i,((t=t)&&1===i?t.hasGlobalScope||t.hasGlobalConsent:t&&2===i&&!t.isServiceSpecific)&&(r=Cka.GDPR_APPLIES_GLOBAL)):r=Cka.GDPR_DOESNT_APPLY,r}function $la(o,a,n){var d={};return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t,i=0;i<o[e].length;i++){var r,s=o[e][i];void 0===d[s]&&(d[s]={},"display"==n.demand_type?(d[s].banner={format:[]},d[s].product="siab"):"video"==n.demand_type&&(r=e.split("x"),d[s].video={skip:1,skipafter:5,linearity:"outstream"==n.video_type?2:1,placement:1,startdelay:0,minduration:15,maxduration:30,playback_methods:[2,3,6],api:[1,2],mimes:["video/mp4","application/javascript"],protocols:[2,3,5,6],w:parseInt(r[0])||0,h:parseInt(r[1])||0,ext:{ttx:{bidfloors:[getBidderFloor(a,e)]}}},d[s].product=n.video_type,"outstream"==n.video_type&&(d[s].placement=2))),"display"==n.demand_type&&(d[s].banner.format.push((t=void 0,t=(r=Yla[r=e]||r).split("x"),{w:parseInt(t[0]),h:parseInt(t[1]),ext:{ttx:{bidfloors:[getBidderFloor(Ula,r)]}}})),"sticky_horizontal"==e&&(d[s].product="inview",d[s].special_size=e))}}),d}function wna(e,d,p){var l={imps:{},data_map:{},request_cnt:0};if(e.requests&&i(e.requests,""),e.slot_requests)for(var t in e.slot_requests)i(e.slot_requests[t],t);function i(a,n){0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i=a[e][t],r=i.split("-"),s=(s=(s=ProperMedia.utils.deepAccess(p,"native_sizes."+e)||e).split("x"),{w:parseInt(s[0]),h:parseInt(s[1])});placementId=r[0],void 0===l.imps[i]&&(o={id:i,tagid:placementId,floor:0},"display"==p.demand_type?o.banner={format:[s]}:"video"==p.demand_type&&(o.video={mimes:["video/mp4","application/javascript"],w:s.w,h:s.h,context:p.video_type},"instream"==p.video_type?o.video.placement=1:o.video.placement=3),l.imps[i]=o,l.data_map[i]={tag_id:i,tag_sizes:[],slot_name:n||"",floor:0});var o=getBidderFloor(d,e);(!l.imps[i].floor||o<l.imps[i].floor)&&(l.imps[i].floor=o,ProperMedia.utils.deepSetValue(l,"data_map."+i+".floor",o)),l.data_map[i].tag_sizes.push(e),l.request_cnt++}})}return l}function Bna(e,t,i,r){return!(!e||!e[t])&&(t=e[t],{source:i,uids:[{id:t.id||t,ext:{rtiPartner:r}}]})}function cpa(o,a){var n={imps:{},tag_sizes:{},tag_ids:{},request_cnt:0},d=properDevice.isMobile()?"mobile":"desktop";return Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i,r,s=o[e][t];void 0===n.imps[s]&&(r={bidRequestId:i=ProperMedia.utils.generateUUID(),hbadaptor:"prebid",url:properPage.bidder_page_url,domain:properPage.domain,placementId:void 0!==s?s.toString():null,publisherId:parseInt(bpa),sizes:ProperMedia.utils.deepAccess(a,"native_sizes."+d+"."+e)||[e.split("x").map(function(e){return parseInt(e)})],params:{placementId:s.toString(),publisherId:parseInt(bpa)}},"video"==a.demand_type&&(r.video={streamType:a.video_type,playbackmethod:[6],maxDuration:30,skippable:!0},r.mediaType="video"),0<r.sizes.length&&(n.request_cnt++,n.imps[s]=r,ProperMedia.utils.deepAccess(a,"native_sizes."+d+"."+e)&&(n.tag_sizes[i]=e)),n.tag_ids[i]=s)}}),n}function epa(){return gdprConsent?"gdpr="+(gdprConsent.gdprApplies?"1":"0")+"&gdprstr="+(gdprConsent.consentString||""):null}function Xsa(e){e=e.split("x");return{w:parseInt(e[0]),h:parseInt(e[1])}}function Ysa(o,a,n){var d={imps:{},data_map:{},request_cnt:0};return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i,r=o[e][t];void 0===d.imps[r]&&(i=r.split("-")[0]||r,1==properOps.testing_mode.ids&&(i="video"==n.demand_type?"8a96958a017a7a57ac375d50c0c700cc":"8a969978017a7aaabab4ab0bc01a0009"),d.imps[r]={id:r.toString(),tagid:i,secure:properPage.use_ssl?1:0,bidfloor:0,ext:{pos:i}},1==properOps.testing_mode.ids&&(d.imps[r].ext.e2eTestMode=!0),"display"==n.demand_type?(i=properUser.checkAdBlock()?["text/html","image/jpg"]:["text/html","text/javascript","application/javascript","image/jpg"],d.imps[r].banner={mimes:i,format:[]}):"video"==n.demand_type&&(s=Xsa(e),d.imps[r].video={mimes:["video/mp4","application/javascript"],w:s.w,h:s.h,maxbitrate:void 0,maxduration:30,minduration:10,api:[2],delivery:6,pos:0,playbackmethod:6,placement:"outstream"==n.video_type?3:1,linearity:"outstream"==n.video_type?2:1,protocols:[2,3,5,6],startdelay:0,rewarded:void 0})),"display"==n.demand_type&&d.imps[r].banner.format.push(Xsa(e));var s=getBidderFloor(a,e);(!d.imps[r].bidfloor||s<d.imps[r].bidfloor)&&(d.imps[r].bidfloor=s,d.data_map[r]=s),d.request_cnt++}}),d}function Uya(o,a,n){var d={imps:[],data_map:{}},p=1;return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i=o[e][t];1==properOps.testing_mode.ids&&(i=properDevice.isMobile()?"2124083":"2124082");var r=e.split("x"),s=getBidderFloor(a,e);d.imps.push({id:p.toString(),tagid:i,secure:properPage.use_ssl?1:0,ext:{},bidfloor:s,bidfloorcur:"USD",video:{mimes:["video/mp4","application/javascript"],minduration:1,maxduration:15,startdelay:0,playbackmethod:[6],api:[2],protocols:[2,3,5,6],w:parseInt(r[0]),h:parseInt(r[1]),linearity:1,placement:"outstream"==n.video_type?3:1,ext:{video_skippable:1}}}),d.data_map[p]={tag_id:i,floor:s,size:r[0]+"x"+r[1]},p++}}),d}function buildNativeAdCode(e,t){var i=ProperMedia.utils.deepAccess(t,"native.link.url")||"",r=ProperMedia.utils.deepAccess(t,"native.assets")||[],s="",o="",a="",n="",d="",p="";r.length&&r.forEach(function(e){var t;e.title?a=ProperMedia.utils.deepAccess(e,"title.text")||"":e.img?1==(t=ProperMedia.utils.deepAccess(e,"img.type")||"")?s=ProperMedia.utils.deepAccess(e,"img.url")||"":2==t&&(o=ProperMedia.utils.deepAccess(e,"img.url")||""):1==e.type?n=e.value:2==e.type?d=e.value:11==e.type?e.value:12==e.type&&(p=e.value)});r=getNativeCss()+'<div class="proper-ad-unit native"><div class="inner"><div class="c1"><div class="img" style="background-image:url('+s+')"></div></div><div class="c2"><div class="txt"><h1 class="title">'+a+"</h1><p>"+d+'</p></div><div class="cta"><span><img src="'+o+'" style="max-width:14px; max-height: 14px; margin-right:4px;"/>'+n+'</span><div class="btn"><a href="#cta" onclick="fireTrackers(\'click\')">'+p+"</a></div></div></div></div></div>";r+='<script>function fireTrackers(action) {var message = { message: "Proper Native", slotName: + "'+e.name+'" };if (action === "click") { message.action = "click"; }window.parent.postMessage(JSON.stringify(message), "*");window.open("'+i+"\", '_blank').focus();}<\/script>",t.adcode=r}function getNativeCss(){var e='a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}body,html{height:100%}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:\'\';content:none}table{border-collapse:collapse;border-spacing:0}input{border-radius:0}hr{border:none;height:1px;margin:0}.ds-all *{box-shadow:inset 0 0 0 1px red}iframe{border:none}.btn a{background:#EE2C1D !important;box-shadow:inset 0 -1px 0 0 rgba(0, 0, 0, 0.3) !important}body{background:white;color:black;font-family:"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;padding:0;margin:0}body *{box-sizing:border-box}body > h1{font-weight:bold;padding-bottom:3px;border-bottom:solid 1px black;margin-bottom:7px}body > h1:not(:first-of-type){margin-top:50px}.proper-ad-unit.native{display:flex;width:100vw;height:100vh;background:white;border-radius:4px;overflow:hidden;box-shadow:inset 0 0 0 1px #cccccc}.proper-ad-unit.native .inner{max-height:100%;flex:1 1 100%;display:flex;flex-wrap:wrap}.proper-ad-unit.native .c1{flex:1 1 300px;box-shadow:inset 0 0 0 1px #cccccc}.proper-ad-unit.native .c2{flex:1 0 50%;min-width:calc(100% - 300px);display:flex;flex-direction:column;justify-content:center}.proper-ad-unit.native .img{width:100%;height:100%;min-height:55px;background-repeat:no-repeat;background-size:contain;background-position:center;transform:scale(0.94, 0.94)}.proper-ad-unit.native .txt{max-height:200px;padding:0 3vw 1vw;line-height:0.94em}.proper-ad-unit.native .title{font-weight:bold;font-size:1.25em;line-height:1.1em;margin-bottom:0.25em;position:relative}.proper-ad-unit.native p{font-size:0.9em}.proper-ad-unit.native .cta{flex:1;display:flex;flex-wrap:wrap}.proper-ad-unit.native span{color:#333;letter-spacing:0.05em;font-size:0.7em;flex:1 1 160px;padding:0 0 4px 3vw;display:flex;align-items:flex-end}.proper-ad-unit.native .btn{flex:1 1 160px;align-self:flex-end;border:solid 4px rgba(0, 0, 0, 0);margin:1px;position:relative;min-height:32px;min-width:158px}.proper-ad-unit.native a{position:absolute;bottom:0;right:0;width:100%;max-width:300px;text-decoration:none;white-space:nowrap;color:white;background:#0437dd;display:flex;justify-content:center;align-items:center;height:28px;border-radius:4px}@media screen and (max-height: 240px){.proper-ad-unit.native .c1{flex:0 1 100vh}.proper-ad-unit.native .txt{padding:3vh}.proper-ad-unit.native .title{margin-bottom:1vh !important}.proper-ad-unit.native span{padding-left:3vh}}@media screen and (max-width: 240px){.proper-ad-unit.native .inner{flex-direction:column}.proper-ad-unit.native .c1{flex:0 1 100vw}.proper-ad-unit.native .cta{flex-direction:column}.proper-ad-unit.native span{flex:0 0 20px}}@media screen and (min-height: 240px) and (min-width: 320px){.proper-ad-unit.native .cta{flex:0}}';return properSpecialOps.extra_native_css&&(e+=properSpecialOps.extra_native_css),'<style type="text/css">'+e+"</style>"}function listenMessagesFromCreative(){window.addEventListener("message",receiveMessage,!1)}function receiveMessage(e){var t=e.message?"message":"data",e=ProperMedia.utils.safeJsonParse(e[t]);!e.slotName||(t=properPage.getSlotFromPageObject(e.slotName,["display"]))&&t.displayed_ad instanceof adObj&&"native"==t.displayed_ad.type&&"Proper Native"===e.message&&fireNativeTrackers(e.auction,t.displayed_ad)}function fireNativeTrackers(e,t){try{var i=[];"click"===e?i=ProperMedia.utils.deepAccess(t,"native.clickTrackers")||ProperMedia.utils.deepAccess(t,"native.link.clickTrackers"):(i=ProperMedia.utils.deepAccess(t,"native.imptrackers"),ProperMedia.utils.deepAccess(t,"native.jstracker")&&(ProperMedia.utils.isArray(t.native.jstracker)?(t.native.jstracker||[]).forEach(Propermedia.utils.insertHtmlIntoIframe):ProperMedia.utils.isStr(t.native.jstracker)&&Propermedia.utils.insertHtmlIntoIframe(t.native.jstracker)),ProperMedia.utils.deepAccess(t,"native.eventtrackers")&&(t.native.eventtrackers||[]).forEach(function(e){var t;1==e.event?i.push(e.url):2==e.event&&((t=document.createElement("script")).src=e.url,t.async=!0,t.type="text/javascript",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e))})),(i||[]).forEach(Propermedia.utils.triggerPixel)}catch(e){properLog.mylog("Error firing NativeTrackers: "+JSON.stringify(e))}}function init(){for(propertag.cmd.push=function(e){consentManager.ready(e)},propertag.cmd.unshift=function(e){consentManager.ready(e,"unshift")},propertag.cmd.length&&propertag.cmd.shift().call();propertag.cmd.length;)consentManager.ready(propertag.cmd.shift())}function set_options(e){e.extra_js&&(e.extra_js="try {\n"+e.extra_js+"\n} catch(e) { console.error(e); }",Function('"use strict"; '+e.extra_js.replace(/\\n|\\r/g," "))()),setBidAdapterSettings(),setThirdPartyAdManagerSettings(e=sortAdSlotsByNumber(e)),setConfigSettings(e),validateConfigSettings(),gdprEnforcement.setEnforcementConfig(properOps),audiencePixels.controller.init(properOps.audience_segments,properOps.audience_pixels),addStyleSheet(),properPage.setPageVariables(),userIdAdapters.pubCommonId.init(),consentManager.ready(function(){properUser.init(),cookieMatching.init(),cookieMatching.cookieMatch(),userIds.init()},"unshift"),properPage.init();e=new Event("proper-has-been-loaded");window.dispatchEvent(e)}function schainCheck(e){var t=bidderToAdapterName(e);return properOps.schain&&!ProperMedia.utils.deepAccess(properOps,"bidders."+("s2s"==t?"s2s":"header")+"."+e+".account_overrides.enabled")?properOps.schain:""}function setBidAdapterSettings(){if(void 0!==bidAdapters)for(var e in bidAdapters)properOps.bidder_info[e]=bidAdapters[e].bidderInfo}function setConfigSettings(e){ProperMedia.utils.mergeObject(properOps,e)}function validateConfigSettings(){properOps.dfp_id||(properOps.dfp_id=properOps.proper_dfp_id),properOps.google_advertiser||(properOps.google_advertiser=properOps.dfp_advertiser_ids.google),properOps.proper_advertiser||(properOps.proper_advertiser=properOps.dfp_advertiser_ids.proper),properOps.adsense_advertiser||(properOps.adsense_advertiser=properOps.dfp_advertiser_ids.adsense)}function setThirdPartyAdManagerSettings(e){e.remote_gam&&(e.thirdPartyAdManager=!0),properSpecialOps.dfp_id&&(e.dfp_id=properSpecialOps.dfp_id,e.thirdPartyAdManager=!0),properSpecialOps.google_advertiser&&(e.google_advertiser=properSpecialOps.google_advertiser,e.thirdPartyAdManager=!0),properSpecialOps.proper_advertiser&&(e.proper_advertiser=properSpecialOps.proper_advertiser,e.thirdPartyAdManager=!0),properSpecialOps.adsense_advertiser&&(e.adsense_advertiser=properSpecialOps.adsense_advertiser,e.thirdPartyAdManager=!0)}function sortAdSlotsByNumber(t){return Object.keys(t.ad_slots).forEach(function(e){t.ad_slots[e]=ProperMedia.utils.sortProperties(t.ad_slots[e],"number",!0,!1)}),t}function addStyleSheet(){var e=document.createElement("style");e.type="text/css";var t=":root {--slider_mobile_adjustment_size: 1;}.proper-ad-unit {margin: auto;position: relative;display: block;width: 100%;min-width: 100px;text-align: center;box-sizing: border-box !important;}.proper-ad-unit * {box-sizing: border-box !important;}.proper-ad-unit.in-content-slider-cont {display: block !important;flex-direction: column;margin: auto;background-color: #ededed;overflow: unset !important;}.proper-ad-unit.in-content-slider-cont > .in-content-slider-unit {position: sticky;top: 0px;margin: 0px auto;}.proper-ad-unit > div:first-of-type:not(.sticky-inner):not(.in-content-slider-unit) {position: relative;margin: auto;}.proper-ad-unit > div:first-of-type:not(.sticky-inner).active-highlight:after {content: '';margin: auto;position: absolute;top: 0;right: 0;bottom: 0;left: 0;pointer-events: none;background: none;border: 5px solid rgba(218, 48, 48, 0.85);}.proper-ad-unit > div:first-of-type:not(.sticky-inner) > .noad {background-color: #c2c2c2;}.proper-ad-unit .report-ad {position: relative !important;display: block !important;font-family: sans-serif;left: 0;right: 0;color: #999 !important;font-size: 12px;line-height: 23px;white-space: nowrap;text-decoration: none !important;-webkit-font-smoothing: antialiased;}.proper-ad-unit .report-ad:hover {color: black;text-decoration: underline !important;}.proper-ad-unit .disclosure_box {font-size: 12px;text-transform: uppercase;text-decoration: none;width: 100%;text-align: center;color: #828282;}.proper-ad-unit.ad-sticky {width: 100%;text-align: center;z-index: 10000000;pointer-events: none;position: fixed;}.proper-ad-unit.ad-sticky.close {display: none !important;}.proper-ad-unit.ad-sticky, .proper-ad-unit.ad-sticky .sticky-inner {pointer-events: none;}.proper-ad-unit.ad-sticky .sticky-inner > * {pointer-events: all;}.proper-ad-unit.ad-sticky .close {pointer-events: all;cursor: pointer;}.proper-ad-unit.ad-sticky .close::after {content: '\\00d7';color: black;font-size: 21px !important;font-family: 'Futura', sans-serif !important;line-height: 31px !important;border-radius: 500px;display: block;width: 32px;height: 32px;margin: 9px 0 0 9px;box-shadow: inset 0 0 0 2px #ccc;}.proper-ad-unit.ad-sticky:not(.for-mobile).close:hover:after {box-shadow: inset 0 0 0 2px #333;}.proper-ad-unit.ad-sticky #propervideo-video_container iframe {background-color: transparent !important;}.proper-ad-unit.ad-sticky iframe {background-color: white;pointer-events: all;vertical-align: bottom;position: relative;cursor: pointer;z-index: 2;}.proper-ad-unit.ad-sticky .brand {display: none;cursor: pointer;pointer-events: all;position: absolute;width: 100%;height: 100%;top: 0;left: 0;}.proper-ad-unit.ad-sticky .brand:after {content: '';position: relative;width: 100%;height: 15px;display: block;background: no-repeat center;background-size: 42px 15px;background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAgCAYAAADtwH1UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDExNi4xNjQ2NTUsIDIwMjEvMDEvMjYtMTU6NDE6MjAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MjY1YmM5NTctOTliMS00YjRjLWJlYTMtOWZhMThjZWYyYzEwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk1NUQzREZFM0I2RTExRUM4QjhCQUE4QkI1MERBNDIxIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk1NUQzREZEM0I2RTExRUM4QjhCQUE4QkI1MERBNDIxIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4yIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTk0MzY2NzlCRjBFMTFFQUJBOTU5NzBBQTVBNDdDOEIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTk0MzY2N0FCRjBFMTFFQUJBOTU5NzBBQTVBNDdDOEIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Y6CFxAAACJ0lEQVR42uxavUpDMRS+kVaqQv0BB7s5WCku4qqTk7jr5Fh8Cl/EoYOzD+DoYHFwl6IPoOJS1EmtxkTOlRDyc5Lbm0p7Pjjk9uacQ5ovOT+ljHOeEUaHKdoCIoAIIBABRACBCCACCETAxKGCVWy1WvnjqZBjpBnr9XqqrcSdkKbD5l7Iev4B7F3dIhNinRf2DNbPsfYImx0hXYuvv3UPlQBA0bYZY98EPZboEMZ8p67DV9C6U4YgnpjsscsBrivMMkJQ6CnjBjBNtpGn2UUel/kjj8kOWzmemOK/tPf4UOP+ryBsLkH33ZArv8oi4MJxM3LpK3rXSNJ8JOhJ3IazSLss3/QA7MJYK3qoQ5T3EToLQvYUQnyoamMRHEWGDBYaNhTMJytDMSVfBGaEfMLow8Cz3q2YBQSefB1zo2jEJAmHSN0bz/yrNrqwaXh3pTwfmGr5kvFgeNdPkYTPDUnXFpJceNFGV6i4tTRExsoj9GRLHwVCkX6rSyOAG8SFNRjblvk6+Khb5tuIDeWeTtmnY/sePhtbdVcLCdPDKENdRDzC2In03YkJK4nCT/JGLAYNZL2P6g+wYUXoLRoS+MQRwAKbrqwAWb5EWPmvBKAXBgkqamO05MaQp9hFzoqQJ+gf8h/ABlCXT1tsGhASq0rIlO8/hGwYbKSfJSHPio2UWeVGrYLPb/AlS+plIW/oU0r/CxrvHEAgAogAAhFABBCIACKAYMCPAAMAOUmeBNC2HO0AAAAASUVORK5CYII=\");}.proper-ad-unit.ad-sticky .sticky-inner > div:last-of-type {display: inline-block;}.proper-ad-unit.sticky-btm {bottom: 0;left: 0;}.proper-ad-unit.sticky-btm:before {content: '';position: absolute;width: 100%;height: 50%;top: 50%;left: 0;background: rgba(255, 255, 255, 0.79);pointer-events: all;box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);}.proper-ad-unit.sticky-btm .sticky-inner {height: inherit;display: inline-block;}.proper-ad-unit.sticky-btm .inner-left, .proper-ad-unit.sticky-btm .inner-right {height: 100%;width: 48px;display: block;}.proper-ad-unit.sticky-btm .inner-left {float: left;}.proper-ad-unit.sticky-btm .inner-right {float: right;position: inherit;}.proper-ad-unit.sticky-btm .brand {position: absolute;width: 48px;height: 16px;left: 0;top: 50%;}.proper-ad-unit.sticky-btm .close {display: none;position: absolute;bottom: 0;right: 0;width: 48px;height: 48px;}.proper-ad-unit[class*='sticky-corner-']:before, .proper-ad-unit.sticky-right:before, .proper-ad-unit.sticky-left:before, .proper-ad-unit.sticky-btm.for-mobile:before {top: -2px;left: 0;height: 200%;background: white;box-shadow: 0 0 0 2px #ccc;}.proper-ad-unit[class*='sticky-corner-'] .inner-left, .proper-ad-unit[class*='sticky-corner-'] .inner-right, .proper-ad-unit.sticky-right .inner-left, .proper-ad-unit.sticky-right .inner-right, .proper-ad-unit.sticky-left .inner-left, .proper-ad-unit.sticky-left .inner-right, .proper-ad-unit.sticky-btm.for-mobile .inner-left, .proper-ad-unit.sticky-btm.for-mobile .inner-right {height: 0;position: initial;}.proper-ad-unit[class*='sticky-corner-'] .brand, .proper-ad-unit[class*='sticky-corner-'] .close, .proper-ad-unit.sticky-right .brand, .proper-ad-unit.sticky-right .close, .proper-ad-unit.sticky-left .brand, .proper-ad-unit.sticky-left .close, .proper-ad-unit.sticky-btm.for-mobile .brand, .proper-ad-unit.sticky-btm.for-mobile .close {bottom: 100%;top: auto;}.proper-ad-unit[class*='sticky-corner-'] .brand, .proper-ad-unit.sticky-right .brand, .proper-ad-unit.sticky-left .brand, .proper-ad-unit.sticky-btm.for-mobile .brand {top: -18px;width: 48px;background-color: white;border-radius: 0 6px 0 0;border: solid 2px #ccc;border-left: none;border-bottom: none;}.proper-ad-unit[class*='sticky-corner-'] .brand:after, .proper-ad-unit.sticky-right .brand:after, .proper-ad-unit.sticky-left .brand:after, .proper-ad-unit.sticky-btm.for-mobile .brand:after {background-position: 1px 0px;}.proper-ad-unit[class*='sticky-corner-'] .close:after, .proper-ad-unit.sticky-right .close:after, .proper-ad-unit.sticky-left .close:after, .proper-ad-unit.sticky-btm.for-mobile .close:after {position: absolute;bottom: 2px;right: 0;box-shadow: none;border-radius: 11px 0 0 0;background: #ffffff;border: solid 2px #ccc;border-right: none;border-bottom: none;}.proper-ad-unit[class*='sticky-corner-'], .proper-ad-unit.sticky-left, .proper-ad-unit.sticky-right {right: 0;width: auto;top: 0;height: 100% !important;display: table;}.proper-ad-unit[class*='sticky-corner-'] .sticky-inner, .proper-ad-unit.sticky-left .sticky-inner, .proper-ad-unit.sticky-right .sticky-inner {display: table-cell;vertical-align: middle;}.proper-ad-unit[class*='sticky-corner-'] .inner-left, .proper-ad-unit[class*='sticky-corner-'] .inner-right, .proper-ad-unit.sticky-left .inner-left, .proper-ad-unit.sticky-left .inner-right, .proper-ad-unit.sticky-right .inner-left, .proper-ad-unit.sticky-right .inner-right {position: relative;}.proper-ad-unit[class*='sticky-corner-'] .brand, .proper-ad-unit.sticky-left .brand, .proper-ad-unit.sticky-right .brand {height: 14px;width: 52px;top: -12px;border-left: solid 2px #ccc;border-radius: 4px 4px 0 0;}.proper-ad-unit[class*='sticky-corner-'] .brand:after, .proper-ad-unit.sticky-left .brand:after, .proper-ad-unit.sticky-right .brand:after {background-position: 2px 0px;}.proper-ad-unit[class*='sticky-corner-'] .close:after, .proper-ad-unit.sticky-left .close:after, .proper-ad-unit.sticky-right .close:after {bottom: -2px;}.proper-ad-unit[class*='sticky-corner-'] .sticky-inner > div:last-of-type, .proper-ad-unit.sticky-left .sticky-inner > div:last-of-type, .proper-ad-unit.sticky-right .sticky-inner > div:last-of-type {border: solid 2px #ccc;border-right: none;padding: 4px;padding-right: 0;background: white;border-radius: 0 0 0 4px;}.proper-ad-unit.sticky-corner-left, .proper-ad-unit.sticky-left {right: auto;left: 0;}.proper-ad-unit.sticky-corner-left .close:after, .proper-ad-unit.sticky-left .close:after {border-radius: 6px 6px 0 0;border-right: solid 2px #ccc;}.proper-ad-unit.sticky-corner-left .sticky-inner > div:last-of-type, .proper-ad-unit.sticky-left .sticky-inner > div:last-of-type {border-left: none;padding: 4px;padding-left: 0;border-right: solid 2px #ccc;border-radius: 0 0 4px 0;}.proper-ad-unit.sticky-left .brand {border-left: none;border-radius: 0 4px 0 0;width: 48px;}.proper-ad-unit.sticky-left .brand:after {background-position: 1px 0px;}.proper-ad-unit[class*='sticky-corner-'] {padding: 15px;}.proper-ad-unit[class*='sticky-corner-'] .sticky-inner {vertical-align: bottom;}.proper-ad-unit[class*='sticky-corner-'] .brand {border-left: solid 2px #ccc;}.proper-ad-unit[class*='sticky-corner-'] .brand:after {background-position: 2px 0px;}.proper-ad-unit[class*='sticky-corner-'] .close:after {border-radius: 6px 6px 0 0;border-right: solid 2px #ccc;}.proper-ad-unit[class*='sticky-corner-'] .sticky-inner > div:last-of-type {padding: 4px;border: solid 2px #ccc;border-radius: 3px;}.slider_unit.slider_position_right > div:first-of-type > :not(div[data-outstream]) {right: 25px;left: unset;}.slider_unit.slider_position_right .close_button {right: 25px;left: unset;}.slider_unit.slider_position_left > div:first-of-type > :not(div[data-outstream]) {left: 25px;right: unset;}.slider_unit.slider_position_left .close_button {left: 314px;right: unset;}.slider_unit.slider_position_top > div:first-of-type > :not(div[data-outstream]) {top: 100px;bottom: unset;}.slider_unit.slider_position_top .close_button {top: 75px;bottom: unset;}.slider_unit.slider_position_bottom > div:first-of-type > :not(div[data-outstream]) {bottom: 100px;top: unset;}.slider_unit.slider_position_bottom .close_button {bottom: 350px;top: unset;}.slider_unit > div:first-of-type > :not(div[data-outstream]) {min-width: 300px;min-height: 250px;position: fixed;z-index: 10000;}@media only screen and (max-width: 480px) {.slider_unit > div:first-of-type > div > div[id='propervideo-super_outer_container'] > div[id='propervideo-main_container'] > div[class='propervideo-bottom_player'] {zoom: var(--slider_mobile_adjustment_size);}}.slider_unit #close_button {display: none;}.slider_unit .close_button {position: fixed;z-index: 10000;color: #afafaf;font-size: 22px;display: block !important;}.slider_unit .close_button:hover {cursor: pointer;}.proper-flex-wrapper {text-align: center;width: 100%;}.proper-flex-wrapper .proper-flex {text-align: center;min-width: 50%;display: inline-block;}.proper-flex-wrapper .proper-flex:first-of-type {margin-bottom: 20px;}.proper-flex-wrapper .proper-flex:empty {display: none;}";properOps.extra_css&&(t+=properOps.extra_css),"proper-ad-unit"!==properOps.slot_wrapper_class&&(t=t.replace(/proper-ad-unit/gi,properOps.slot_wrapper_class)),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(e)}function checkProperDebugConsole(){void 0!==properPage.get_vars.proper_debug_console||window.location.hash.includes("proper_debug_console")?debugObj.createDebugConsole():void 0===properPage.get_vars.proper_debug_console&&!window.location.hash.includes("proper_overlay")||debugObj.createDebugOverlays()}function checkKillAllAds(){return(properSpecialOps.kill_all_ads||properPage.dont_send_bids)&&(properLog.mylog("Kill All Ads enabled! Good bye!"),1)}function bidderToAdapterName(e){var t=e;return t=ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".adapter_name")?ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".adapter_name"):t}function getBidderFloor(e,t,i){try{if(properOps.testing_mode.enabled)return.01;var r=i?"s2s":"header",s=properDevice.isMobile()?"mobile":"desktop",o=ProperMedia.utils.deepCopy(ProperMedia.utils.deepAccess(properOps,"bidders."+r+"."+e+".floors."+s)||{}),a=ProperMedia.utils.deepCopy(properOps.floors[s]||{}),n=o.backup||a.backup||0,d=[];if(ProperMedia.utils.isStr(t)?d=t.split(","):ProperMedia.utils.isArray(t)&&(d=t),0<d.length){for(var p=new Array,l=0;l<d.length;l++){var c,u,g=(properSpecialOps.dynamicFloors||ProperMedia.utils.deepAccess(properOps,"dynamic_floors."+s+".enabled"))&&ProperMedia.utils.deepAccess(properSession,"sessionData.bid_avg."+d[l])||0;o.sizes&&o.sizes[d[l]]?(c=Math.max(o.sizes[d[l]],g),p.push(c)):a.sizes&&a.sizes[d[l]]?(u=Math.max(a.sizes[d[l]],g),p.push(u)):g&&p.push(g)}0<p.length&&(n=Math.min.apply(null,p))}ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".rev_share")&&(n=parseFloat((n/ProperMedia.utils.deepAccess(properOps,"bidder_info."+e+".rev_share")).toFixed(2)))}catch(e){console.error(e),n=o.backup||a.backup||0,sendError(TraceKit.computeStackTrace(e))}return ProperMedia.utils.round(n,2)}function roundPriceToDfpBucket(e){return e=properOps.thirdPartyAdManager?"reference"==properOps.site_name||"simpli"==properOps.site_name||"bloglines"==properOps.site_name||"informationvine"==properOps.site_name||"faqtoids"==properOps.site_name||"smarter"==properOps.site_name||"directhit"==properOps.site_name||"theanswerhub"==properOps.site_name||"top10answers"==properOps.site_name||"answerroot"==properOps.site_name||"allquestionsanswered"==properOps.site_name?40<e?40:(Math.ceil(20*e)/20).toFixed(2):800<e?800:(100<e?5*Math.ceil(e/5):20<e?Math.ceil(20*e)/20:e).toFixed(2):800<e?800:(100<e?Math.ceil(e):Math.ceil(20*e)/20).toFixed(2)}function round_floor(e){e=parseFloat(e);var t=properDevice.isMobile()?"mobile":"desktop",t=ProperMedia.utils.deepCopy(properOps.floors[t]||{});return e=e&&""!=e?e<=.1?.1:e<=.25?.25:e<=.4?.4:e<=2?(Math.ceil(4*e)/4).toFixed(2):e<=5?(Math.ceil(2*e)/2).toFixed(2):5:t.backup,ProperMedia.utils.round(e,2)}function setDfpPageTargeting(i){void 0!==properPage.post_id&&null!=properPage.post_id&&""!=properPage.post_id||(properPage.post_id="unknown"),i.setTargeting("post_id",properPage.post_id.toString()),void 0!==properOps.member&&null!=properOps.member&&""!=properOps.member||(properOps.member="no"),i.setTargeting("member",properOps.member.toString()),i.setTargeting("category",ProperMedia.utils.deepAccess(properPage,"page_meta.category").toString()),i.setTargeting("split_version",properOps.rtp_file_version.toString()),i.setTargeting("proper_site",properOps.site_name.toString()),i.setTargeting("proper_page",ProperMedia.utils.deepAccess(properPage,"spa_settings.page_number").toString()),i.setTargeting("s_depth",ProperMedia.utils.deepAccess(properSession,"sessionData.depth").toString()),properUser.checkAdBlockDetected()?i.setTargeting("adblock","true"):0<i.getTargeting("adblock").length&&i.clearTargeting("adblock"),Object.keys(properPage.dfp_targeting).length&&Object.keys(properPage.dfp_targeting).forEach(function(e){properPage.dfp_targeting[e]&&(i.clearTargeting(e),delete properPage.dfp_targeting[e])}),ProperMedia.utils.deepAccess(properPage,"page_meta.tags")&&properPage.page_meta.tags.length&&(i.setTargeting("tags",[properPage.page_meta.tags.toString()]),properPage.dfp_targeting.tags=1),ProperMedia.utils.deepAccess(properPage,"page_meta.dfp_kv")&&Object.keys(properPage.page_meta.dfp_kv).length&&Object.keys(properPage.page_meta.dfp_kv).forEach(function(e){var t=ProperMedia.utils.deepAccess(properPage,"page_meta.dfp_kv."+e);void 0!==t&&(t=ProperMedia.utils.isArray(t)?t.map(function(e){return e.toString()}):t.toString(),i.setTargeting(e,t),properPage.dfp_targeting[e]=1)}),ProperMedia.utils.deepAccess(properPage,"page_meta.custom.set_as_kv_to_gam")&&Object.keys(properPage.page_meta.custom).length&&Object.keys(properPage.page_meta.custom).forEach(function(e){var t;!e.match(/^dimension_([1-9]|10)$/)||""!=(t=ProperMedia.utils.deepAccess(properPage,"page_meta.custom."+e))&&(i.setTargeting(e,t.toString()),properPage.dfp_targeting[e]=1)})}function proper_display(e,t){let i=e||"";if(checkKillAllAds())return properLog.mylog("Kill All Ads enabled! Goodbye!"),!1;if(void 0===i){try{var r=document.scripts[document.scripts.length-1];if(i=r.parentNode.id,void 0===r.parentNode||void 0===i)return;i=ProperMedia.utils.extractSlotName(i)}catch(e){console.error(e),sendError(TraceKit.computeStackTrace(e))}if(void 0===i||!i)return!1}r=ProperMedia.utils.extractSlotName(i);if(!r)return properLog.mylog("Couldn't find slot from id: "+i),!1;properPage.buildSlot("display",r,t)}function showWinningAd(e){if(e.getElement()){var t=1;if(e.hasWinningBid())t=0;else if(1==properOps.testing_mode.enabled){if(void 0===e.default_size||"0x0"==e.default_size)return;var t=0,i=new adObj({bidder:"unfilled",size:e.default_size.join("x"),adcode:'<div style="text-align:center;width:'+e.default_size[0]+"px;height:"+e.default_size[1]+'px;background:#ccc;color:#000;padding-top:10px;">-- no ad found --</div>'});e.winning_ad=i}return 0==t?proper_render(e.getElement(),e.number,1):log_unfilled(e),1}}function proper_render_isolated(e,t,i,r){e.innerHTML="";var s=document.createElement("iframe");s.id=t.properIframeId,s.frameBorder=0,s.scrolling="no",s.marginWidth="0",s.marginHeight="0",s.width=r[0],s.height=r[1],s.style.overflow="hidden",s.style.border="0px",s.style.verticalAlign="bottom",s.onload=function(){console.log("Proper isolated slotOnload: "+t.name),1==properOps.testing_mode.enabled&&"unfilled"==properOps.testing_mode.bidder&&"unfilled"==i.bidder?t.dispatchCustomEvent("proper-unfilled"):t.dispatchCustomEvent("proper-ads-fired",{cpm:ProperMedia.utils.deepAccess(t,"displayed_ad.price"),size:ProperMedia.utils.deepAccess(t,"displayed_ad.size"),ad_type:t.ad_type})},properOps.sandbox_iframe&&(s.sandbox=properOps.sandbox_options.join(" ")||""),s.src="javascript:\"<!DOCTYPE html><html><body style='background:transparent'></body></html>\"",e.appendChild(s);e="<!DOCTYPE html><html><body>"+i.adcode+"</body></html>";ProperMedia.utils.deepAccess(properOps,"adlightning.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"adlightning.enabled")?adLightningWrapper.wrapTag(t,s.contentWindow,ProperMedia.utils.mergeObject({},i,{adcode:e})):ProperMedia.utils.deepAccess(properOps,"geoedge.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"geoedge.enabled")?geoEdgeWrapper.wrapTag(t,s.contentWindow.document,ProperMedia.utils.mergeObject({},i,{adcode:e})):ProperMedia.utils.deepAccess(properOps,"confiant.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"confiant.enabled")?confiantWrapper.wrapTag(t,s.contentWindow.document,ProperMedia.utils.mergeObject({},i,{adcode:e})):(s.contentWindow.document.open(),s.contentWindow.document.write(e),s.contentWindow.document.close()),"auto"==r[1]&&ProperMedia.utils.onElementHeightChange(s,function(e){0<e&&(s.style.height=e+"px")})}function proper_render_bidder_order(e,t,i,r){var s,o,a,n=window.top.document.getElementById(t.properIframeId);n&&(n.style.width=formatCssSize(r[0]),n.style.height=formatCssSize(r[1])),e.defaultView&&e.defaultView.frameElement&&(s=r[0],o=r[1],e.defaultView.frameElement.width=s,e.defaultView.frameElement.height=o),ProperMedia.utils.deepAccess(properOps,"geoedge.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"geoedge.enabled")?geoEdgeWrapper.wrapTag(t,e,i):ProperMedia.utils.deepAccess(properOps,"confiant.enabled")||ProperMedia.utils.deepAccess(properSpecialOps,"confiant.enabled")?confiantWrapper.wrapTag(t,e,i):e.write(i.adcode),"auto"==r[1]&&(n?(a=n.contentWindow.document.getElementById(t.dfpIframeId))?ProperMedia.utils.onElementHeightChange(a,function(e){0<e&&(a.style.height=e+"px",n.style.height=e+"px")}):ProperMedia.utils.onElementHeightChange(n,function(e){0<e&&(n.style.height=e+"px")}):(n=window.top.document.getElementById(t.dfpIframeId))&&ProperMedia.utils.onElementHeightChange(n,function(e){0<e&&(n.style.height=e+"px")}))}function proper_render(e,t,i,r){var s=properPage.getSlotByNumber(t,["display"]);if(!s)return properLog.mylog("Couldn't find slot with number: "+t),!1;s.hasFlexSlot()&&s.removeFlexSlot();var o,a,n=[0,0];2==(i=i||0)?((s.hasWinningAmazonBid()||s.getWinningAmazonBid())&&(o=s.winning_amazon_ad),a=(s.winning_ad?.price??0)+(s.flex_ad?.price??0)):s.getWinningBid()&&(o=s.winning_ad,a=s.getRunnerUp()),o&&o instanceof adObj||properOps.testing_mode.enabled&&o instanceof adObj?(s.clearNonWinningBid(o),t=s.getFlexMap(),s.flex_enabled&&t[o.size]&&s.addFlexSlot(o.size),s.videoAdCheck()?(s.removeCreative(),s.dispalyVideoAd()):(o.displayed=1,n=o.size.split("x"),"1x1"!=o.size&&!properOps.native_sizes[o.size]||(n=["100%","auto"]),t=bidderToAdapterName(o.bidder),ProperMedia.utils.deepAccess(bidAdapters,t+".bidderInfo.div_insertion")&&(o.adcode=o.adcode.replace(/{PROPER_SLOT_DIV_ID}/g,s.div_id)),"native"==o.type&&buildNativeAdCode(s,o),s.removeCreative(),1==i?proper_render_isolated(e,s,o,n):0!=i&&2!=i||proper_render_bidder_order(e,s,o,n),o.onBidWon(s),properLog.mylog("displayed! ("+s.name+", bidder="+o.bidder+", size="+o.size+", price="+o.price+")"),i=ProperMedia.utils.getTimePassed(s.auction_started_ts),e=_0x59ab84(o.price),n=_0x59ab84(o.gross),a=_0x59ab84(a),properSession.setSessionRevenue(e),properLog.saved_data[s.name]={bidder:o.bidder,cpm:e,size:o.size,slot:s.dfp_name,request_url:o.request_url,request_response:o.response,adcode:o.adcode,ad_details:o.ad_details},ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+s.name,{slot_name:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(s,"dfp_name"),{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"bidder"),{type:"string",max_len:30}),runner_up:a,gross:n,price:e,size:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"size"),{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"refresh.count"),{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"response_ms"),{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(i,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"tag_id"),{type:"string",max_len:50}),adid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"adid"),{type:"string",max_len:50}),adomain:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"adomain.0"),{type:"string",max_len:50}),cid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"cid"),{type:"string",max_len:50}),crid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"crid"),{type:"string",max_len:50}),dealid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"dealid"),{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"floor"),{type:"number",max:999,max_len:15}),publisher_demand:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"pub_demand"),{type:"boolean"})}),s.displayed_ad=new adObj(ProperMedia.utils.deepCopy(o)),properAdPool.displayed_ads.push(ProperMedia.utils.deepCopy(s.displayed_ad)),proper_inview(0,s.name,o.size,0,0,0),clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait))):log_unfilled(s)}function proper_render_dfp_interstitial(e){ProperMedia.utils.deepAccess(properLog,"interstitial_bid_data."+e.name)&&(ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+e.name,ProperMedia.utils.deepAccess(properLog,"interstitial_bid_data."+e.name)),clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait))}function proper_render_dfp(e,t){var i,r,s,o,a,n,d,p=properPage.getSlotFromPageObject(e,["display","interstitial"]);p&&(p.hasFlexSlot()&&p.removeFlexSlot(),p.interstitial||(p.removeCreative(),(n=window.top.document.getElementById(p.properIframeId))&&(n.style.width=formatCssSize(t.size[0]),n.style.height=formatCssSize(t.size[1]))),i=t.size[0]+"x"+t.size[1],p.flex_enabled&&p.getFlexMap()[i]&&p.addFlexSlot(i),r=t.advertiserId,s="dfp",t.advertiserId==properOps.amazon_advertiser?s="a9":t.advertiserId==properOps.adsense_advertiser?s="adsense":t.advertiserId!=properOps.google_advertiser&&1!=t.advertiserId&&0!=t.advertiserId&&null!=t.advertiserId&&null==t.yieldGroupIds||(s="adx"),p.advertiserId=t.advertiserId,a=0,"adx"!=s&&"adsense"!=s||(d=p.interstitial?"interstitial":i,o=p.getFloor(d),a=p.dfp_bid_price&&parseFloat(p.dfp_bid_price)>o?parseFloat(p.dfp_bid_price)+.01:parseFloat(o)+.01),e=Math.max(a-.01,0),properLog.mylog("displayed! DFP ("+p.name+", bidder="+s+", size="+i+", price: "+a+")"),n=ProperMedia.utils.getTimePassed(p.auction_started_ts),properSession.setSessionRevenue(a),d=(p.winning_ad?.price??0)+(p.flex_ad?.price??0),e={slot_name:ProperMedia.utils.validateValue(p.dfp_name,{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue(s,{type:"string",max_len:30}),price:ProperMedia.utils.validateValue(a,{type:"number",max:1e3}),runner_up:ProperMedia.utils.validateValue(d,{type:"number",max:1e3}),gross:ProperMedia.utils.validateValue(a,{type:"number",max:1e3}),size:ProperMedia.utils.validateValue(i,{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(p.refresh.count,{type:"number",max:999}),line_item_id:ProperMedia.utils.validateValue(t.lineItemId,{type:"string",max_len:15}),response_ms:ProperMedia.utils.validateValue(n,{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(n,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue(r,{type:"string",max_len:50}),adid:ProperMedia.utils.validateValue(t.advertiserId,{type:"string",max_len:50}),adomain:ProperMedia.utils.validateValue("",{type:"string",max_len:50}),cid:ProperMedia.utils.validateValue(t.campaignId,{type:"string",max_len:50}),crid:ProperMedia.utils.validateValue(t.creativeId,{type:"string",max_len:50}),dealid:ProperMedia.utils.validateValue("",{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(e,{type:"number",max:1e3}),publisher_demand:ProperMedia.utils.validateValue(!!properOps.remote_gam,{type:"boolean"})},p.interstitial?properLog.interstitial_bid_data[p.name]=e:ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+p.name,e),p.displayed_ad=new adObj({type:"display",price:a,gross:a,dfp_price:a,bidder:s,size:i,adCode:"",tag_id:r,response_ms:n,displayed:1,adid:t.advertiserId,cid:t.campaignId,crid:t.creativeId,floor:o}),properAdPool.displayed_ads.push(ProperMedia.utils.deepCopy(p.displayed_ad)),properLog.saved_data[p.name]={bidder:s,cpm:a,size:i,slot:p.dfp_name,request_url:"",request_response:"",adcode:"",ad_details:{}},clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait))}function proper_inview(e,t,i,r,s,o,a){setTimeout(userSyncs.start,3e3);var n=".ad-sticky[class*='"+t+"']",t=properPage.getSlotFromPageObject(t,["display"]);t&&(e||(t.size=i,properLog.ad_info[t.name]={creative_id:s,line_item_id:o,size:i}),i=properOps.native_sizes[i]||i,t.sticky?e?properSpecialOps.sliderHeader?t.deleteSlot(!0):0==t.refresh.count&&$(n).hide():(t.displayed=1,ProperMedia.utils.deepAccess(t,"sticky_settings.freq_cap_enabled")&&0==t.refresh.count&&properUser.stickyFreqCapHandler.incrementStickyUnitImps(),void 0===t.displayed_ad.bidder||0==t.displayed_ad.displayed||1==t.displayed_ad.displayed&&void 0===properOps.native_sizes[t.displayed_ad.size]?($(n).removeClass("sticky-right"),$(n).removeClass("sticky-left"),$(n).removeClass("sticky-btm"),$(n).removeClass("slider"),$(n).removeClass("slider-with-video"),$(n).removeClass("slider-with-static"),s=i.split("x"),o=parseInt(s[0]),s=parseInt(s[1]),300==o&&250==s||336==o&&280==s?$(n).addClass("sticky-corner-"+t.sticky_settings.position):o<s?$(n).addClass("sticky-"+t.sticky_settings.position):$(n).addClass("sticky-btm"),properSpecialOps.sliderHeader&&($(n).addClass("slider"),"video"==t.displayed_ad.type&&1==t.displayed_ad.displayed?($(n).addClass("slider-with-video"),$(n).attr("data-ad-height","110px")):$(n).addClass("slider-with-static")),"1x1"!==i?($(n+" .sticky-inner .inner-left").show(),$(n+" .sticky-inner .inner-right").show(),$(n).attr("style","height: "+s+"px")):$(n).hide(),$(n+" .sticky-inner").attr("style",""),(!window.innerWidth||window.innerWidth<=720||window.innerWidth<=o-96)&&$(n).addClass("for-mobile")):"gumgum"==t.displayed_ad.bidder||"gumgum_s2s"==t.displayed_ad.bidder?($(n+" .sticky-inner .inner-left,.inner-right").hide(),$(n).addClass("sticky-btm"),$(n).obj.style.background="none"):$(n).hide()):e||(t.slider&&t.slider_settings.close_button&&$(".slider_unit #close_button").addClass("close_button"),1<t.min_width&&1<t.min_height&&($("#"+CSS.escape(t.div_id)).obj.style.width="",$("#"+CSS.escape(t.div_id)).obj.style.height="",$("#"+CSS.escape(t.div_id)).obj.style.minWidth=t.min_width+"px",$("#"+CSS.escape(t.div_id)).obj.style.minHeight=t.min_height+"px"),ProperMedia.utils.deepAccess(t,"advertisement_disclosure.enabled")&&!$("#"+CSS.escape(t.div_id)).obj.parentNode.querySelector(".disclosure_box")&&((n=document.createElement("p")).setAttribute("class","disclosure_box"),n.innerHTML="Advertisement","above"==ProperMedia.utils.deepAccess(t,"advertisement_disclosure.location")?$("#"+CSS.escape(t.div_id)).obj.closest(".proper-ad-unit").insertBefore(n,$("#"+CSS.escape(t.div_id)).obj):$("#"+CSS.escape(t.div_id)).obj.closest(".proper-ad-unit").append(n)),t.displayed=1),1!=t.displayed||e||(t.last_displayed_ts=ProperMedia.utils.getTimestampMs(),t.tracking_times.creative_on_page=ProperMedia.utils.getTimestampMs(),1==ProperMedia.utils.deepAccess(t,"displayed_ad.displayed")&&(1==ProperMedia.utils.deepAccess(properOps,"bidder_info."+t.displayed_ad.bidder+".dont_refresh")||""!=ProperMedia.utils.deepAccess(properPage,"takeover.bidder")&&ProperMedia.utils.deepAccess(t,"displayed_ad.bidder")==ProperMedia.utils.deepAccess(properPage,"takeover.bidder")||checkDisableDirectAdRefresh(t.displayed_ad))&&t.disableSlotRefresh(),t.refresh.count),1==t.refresh.enabled&&t.refresh.count<t.refresh.max&&t.setRefreshInterval(),1==debugObj.enabled&&debugObj.addSlotOverlay(t),t.clearWinningBid(),t.clearWinningAmazonBid())}function checkDisableDirectAdRefresh(e){return e.adid&&"dfp"==e.bidder&&(properSpecialOps.disableRefreshByAdvertiserId&&-1!==properSpecialOps.disableRefreshByAdvertiserId.indexOf(e.adid)||properOps.disableRefreshByAdvertiserId&&-1!==properOps.disableRefreshByAdvertiserId.indexOf(e.adid))}function log_unfilled(e){var t,i;proper_inview(1,e.name,"0x0",0,0,0),"display"==e.type&&0<e.refresh.count||(t=ProperMedia.utils.getTimePassed(e.auction_started_ts),i=e.getFloor(),ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+e.name,{slot_name:ProperMedia.utils.validateValue(e.dfp_name,{type:"string",max_len:50}),bidder:"unfilled",price:0,gross:0,size:ProperMedia.utils.validateValue(e.default_size,{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(e.refresh.count,{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(t,{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(t,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:"",adid:"",adomain:"",cid:"",crid:"",dealid:"",floor:ProperMedia.utils.validateValue(i,{type:"number",max:1e3}),publisher_demand:ProperMedia.utils.validateValue(!1,{type:"boolean"})}),e.displayed_ad=new adObj({price:0,gross:0,dfp_price:0,bidder:"unfilled",size:e.default_size.join("x"),adCode:"",tag_id:"",response_ms:t,floor:i}),properAdPool.displayed_ads.push(ProperMedia.utils.deepCopy(e.displayed_ad)),e.dispatchCustomEvent("proper-unfilled"),clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait))}function proper_debug_console(){debugObj.createDebugConsole()}function proper_debug_overlay(){debugObj.createDebugOverlays()}function formatCssSize(e){return"string"!=typeof e||-1===e.indexOf("%")&&"auto"!=e?e+"px":e}function getReportAdInfo(e){var t,i={};return void 0!==e.site_name&&1==e.site_name&&(i.site_name=properOps.site_name),void 0!==e.split_version&&1==e.rtp_file_version&&(i.split_version=properOps.rtp_file_version),void 0!==e.slot_id&&(t=ProperMedia.utils.extractSlotName(e.slot_id),properLog.autoplay_html[e.slot_id]&&(i.autoplay_html=properLog.autoplay_html[e.slot_id]),void 0!==properLog.log_lines&&(i.log_lines=properLog.log_lines),void 0!==properLog.saved_data[t]&&(i.saved_data=properLog.saved_data[t]),void 0!==properLog.ad_info[t]&&(i.ad_info=properLog.ad_info[t])),i}function logMatchingResponse(e,t,i){cookieMatching.logMatchingResponse(e,t,i)}function getAdSlots(){return Object.keys(properPage.slots.display).concat(properPage.slots.video)}function refreshSlotByName(e){e=properPage.getSlotFromPageObject(e,["display"]);return!!e&&(e.removeRefreshTimeout(),e.refreshSlot(!0),!0)}function disableSlotRefresh(e){e=properPage.getSlotFromPageObject(e,["display"]);return!!e&&(e.disableSlotRefresh(),!0)}function spaNewPage(){propertag.cmd.push(function(){properPage.SpaNextPage()})}function spaNewSection(e){propertag.cmd.push(function(){properLog.mylog("========== New SPA Section =========="),properPage.init_slots_build=0,properPage.rebuildSlots(e),properAdPool.startNewAuction()})}function spaNewPageReset(){propertag.cmd.push(function(){properLog.mylog("========== New SPA Page With Dyanmic Reset =========="),properPage.deleteDynamicSlots(),properPage.resetDynamicSlotInstanceCount(),properPage.SpaNextPage()})}function newPageView(){propertag.cmd.push(function(){properLog.mylog("========== New Pageview =========="),properPage.newPageView()})}function infScrollNewPage(){propertag.cmd.push(function(){properPage.InfScrollNextPage()})}function buildSlots(){propertag.cmd.push(function(){properLog.mylog("Build slots called"),properPage.buildSlots()})}function deleteSlot(e){e=properPage.getSlotFromPageObject(e,["display"]);return!!e&&(e.deleteSlot(!0),!0)}function destroyDfpSlot(e){e=properPage.getSlotFromPageObject(e,["display"]);return!!e&&(e.destroyDfpSlot(),!0)}function closeSliderSlot(e){e=properPage.getSlotFromPageObject(e,["display"]);return!!e&&(e.closeSliderSlot(),!0)}function getVideoPlayerOps(e){e=properPage.getSlotFromPageObject(e);return e&&e.video_player instanceof videoPlayer&&e.video_player.player_settings||{}}function createVideoSlot(t){try{return properLog.mylog("Create video slot for: "+t),properPage.video_enabled=!0,propertag.cmd.push(function(){var e=properPage.getSlotFromPageObject(t,["video"])?properPage.getSlotFromPageObject(t,["video"]):properPage.buildSlot("video",t);0==properAdPool.vid_auction_count&&properAdPool.startNewVideoAuction(e.video_player.player_settings.video_type)}),!0}catch(e){return!1}}function runVideoAuction(t){propertag.cmd.push(function(){var e=properPage.getSlotFromPageObject(t);return!!(e&&e.video_player instanceof videoPlayer)&&(properAdPool.startNewVideoAuction(e.video_player.player_settings.video_type),!0)})}function runNewAuction(){propertag.cmd.push(function(){return properAdPool.auction_refresh=!0,properAdPool.startNewAuction(!0),!0})}function disableAuctionRefresh(){propertag.cmd.push(function(){return properLog.mylog("AdPool: Disable Auction Refresh"),properAdPool.auction_refresh=!1,properAdPool.clearNextAuctionTimeout(),!0})}function getVideoAd(e){var t=properPage.getSlotFromPageObject(e);if(t&&t.video_player instanceof videoPlayer){var i=t.video_player.player_settings.video_type,r=properAdPool.getTimeLeftOnRunningAuctions(),s=!!(0<properAdPool.auction_count&&0==r.length),e=!s&&0<r.length?Math.min(r):0;if(t.getWinningBid(["video"],i),t.getWinningAmazonBid(["video"],i),t.hasWinningBid()||t.hasWinningAmazonBid()){r=_0x432f92(t);t.clearNonWinningBid(r);r=ProperMedia.utils.deepCopy(r);return t.tracking_times.dfp_sent_ts=ProperMedia.utils.getTimestampMs(),{auction:{finished:s,time_remaining:e},ad:r}}if("video"==t.type)return t.tracking_times.dfp_sent_ts=ProperMedia.utils.getTimestampMs(),{auction:{finished:s,time_remaining:e},ad:{price:t.getFloor("dfp_floor"),bidder:"dfp_floor",vast_tag:"",vast_type:"",vpaid:"",video_type:i,ad_details:""}};1!==t.displayed&&"display"==t.type&&s&&(s=ProperMedia.utils.deepAccess(properOps,"ad_slots."+t.type+"."+t.name)||{},t.video_player.removePlayer(),t.setRefresh(s),t.getWinningBid(["display","native"]),t.getWinningAmazonBid(["display","native"]),showWinningAd(t))}return!1}function destroyVideoPlayer(e){e=properPage.getSlotFromPageObject(e);e&&e.video_player instanceof videoPlayer&&e.video_player.destroyVideoPlayer()}function logOutstreamAdSuccess(e,t){var i,r,s,o=properPage.getSlotFromPageObject(e);return o&&o.video_player instanceof videoPlayer&&ProperMedia.utils.isPlainObject(t)&&t.id&&t.bidder&&t.price&&(o.hasWinningAmazonBid()?o.winning_amazon_ad.id==t.id?t=o.winning_amazon_ad:o.clearWinningAmazonBid():o.hasWinningBid()&&(o.winning_ad.id==t.id?t=o.winning_ad:o.clearWinningBid()),i=_0x59ab84(t.price),r=_0x59ab84(t.gross),s=_0x59ab84(o.getRunnerUp()),e=ProperMedia.utils.getTimePassed(o.auction_started_ts),e={slot_name:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"dfp_name"),{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"bidder"),{type:"string",max_len:30}),gross:r,price:i,runner_up:s,size:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"size"),{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(o,"refresh.count"),{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"response_ms"),{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(e,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"tag_id"),{type:"string",max_len:50}),adid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"adid"),{type:"string",max_len:50}),adomain:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"adomain.0"),{type:"string",max_len:50}),cid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"cid"),{type:"string",max_len:50}),crid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"crid"),{type:"string",max_len:50}),dealid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"dealid"),{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"floor"),{type:"number",max:999,max_len:15}),publisher_demand:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(t,"pub_demand"),{type:"boolean"})},t.displayed=1,o.size=t.size,o.displayed_ad=new adObj(ProperMedia.utils.deepCopy(t)),t.onBidWon(o),o.displayed=1,o.refresh.count++,o.last_displayed_ts=ProperMedia.utils.getTimestampMs(),o.tracking_times.dfp_returned_ts=ProperMedia.utils.getTimestampMs(),o.tracking_times.creative_on_page=ProperMedia.utils.getTimestampMs(),o.dispatchCustomEvent("video-ad-played"),o.dispatchCustomEvent("proper-ads-fired",{cpm:e.price,size:e.size,ad_type:ProperMedia.utils.deepAccess(o,"displayed_ad.video_type")}),properSession.setSessionRevenue(e.price),properAdPool.displayed_ads.push(ProperMedia.utils.deepCopy(o.displayed_ad)),ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+o.dfp_name,e),o.sticky&&proper_inview(0,o.name,t.size,t.crid,0,t.adid),clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait),properLog.mylog("displayed! ("+o.name+", bidder="+e.bidder+", size="+e.size+", price="+e.price+")")),!0}function logVideoAdSuccess(e,t,i){var r=properPage.getSlotFromPageObject(e);if(r&&r.video_player instanceof videoPlayer){var s=ProperMedia.utils.getTimePassed(r.auction_started_ts),o=properDevice.isMobile()?"640x480":"400x300",a=null;if(t){var n=parseFloat(t)+.01;const e=_0x59ab84(r.winning_ad?.price);a={slot_name:ProperMedia.utils.validateValue(r.dfp_name,{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue("dfp_video",{type:"string",max_len:30}),gross:ProperMedia.utils.validateValue(n,{type:"number",max:999,max_len:15}),price:ProperMedia.utils.validateValue(n,{type:"number",max:999,max_len:15}),runner_up:e,size:ProperMedia.utils.validateValue(o,{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(r.refresh.count,{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(s,{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(s,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue("",{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(t,{type:"number",max:999,max_len:15}),publisher_demand:ProperMedia.utils.validateValue(!!properOps.remote_gam,{type:"boolean"})},r.displayed_ad=new adObj({type:"video",price:n,gross:n,dfp_price:n,bidder:"dfp_video",size:o,adCode:"",tag_id:"",response_ms:s,displayed:1,video_type:r.video_type,floor:t}),r.clearWinningBid()}else r&&r.video_player instanceof videoPlayer&&ProperMedia.utils.isPlainObject(i)&&i.id&&i.bidder&&i.price&&(r.hasWinningAmazonBid()?r.winning_amazon_ad.id==i.id?i=r.winning_amazon_ad:r.clearWinningAmazonBid():r.hasWinningBid()&&(r.winning_ad.id==i.id?i=r.winning_ad:r.clearWinningBid()),o=_0x59ab84(i.price),t=_0x59ab84(i.gross),e=_0x59ab84(r.getRunnerUp()),a={slot_name:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(r,"dfp_name"),{type:"string",max_len:50}),bidder:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"bidder"),{type:"string",max_len:30}),gross:t,price:o,runner_up:e,size:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"size"),{type:"string",max_len:10}),refresh_cnt:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(r,"refresh.count"),{type:"number",max:999}),line_item_id:"",response_ms:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"response_ms"),{type:"number",max:999999}),auction_duration:ProperMedia.utils.validateValue(s,{type:"number",max:999999}),precent_bids_ready:ProperMedia.utils.validateValue(100,{type:"number",max:100}),tag_id:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"tag_id"),{type:"string",max_len:50}),adid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"adid"),{type:"string",max_len:50}),adomain:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"adomain.0"),{type:"string",max_len:50}),cid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"cid"),{type:"string",max_len:50}),crid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"crid"),{type:"string",max_len:50}),dealid:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"dealid"),{type:"string",max_len:50}),floor:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"floor"),{type:"number",max:999,max_len:15}),publisher_demand:ProperMedia.utils.validateValue(ProperMedia.utils.deepAccess(i,"pub_demand"),{type:"boolean"})},i.displayed=1,r.size=i.size,r.displayed_ad=new adObj(ProperMedia.utils.deepCopy(i)),i.onBidWon(r));a&&(r.displayed=1,r.refresh.count++,r.last_displayed_ts=ProperMedia.utils.getTimestampMs(),r.tracking_times.dfp_returned_ts=ProperMedia.utils.getTimestampMs(),r.tracking_times.creative_on_page=ProperMedia.utils.getTimestampMs(),r.dispatchCustomEvent("video-ad-played"),r.dispatchCustomEvent("proper-ads-fired",{cpm:a.price,size:a.size,ad_type:ProperMedia.utils.deepAccess(r,"displayed_ad.video_type")}),properSession.setSessionRevenue(a.price),properAdPool.displayed_ads.push(ProperMedia.utils.deepCopy(r.displayed_ad)),ProperMedia.utils.deepSetValue(properLog,"bid_data.ad_slots."+r.dfp_name,a),clearTimeout(properLog.tracker_timeout),properLog.tracker_timeout=null,properLog.tracker_timeout=properSetTimeout.setTimeout.call(properPage,function(){properLog.proper_tracker()},properLog.tracker_wait),properLog.mylog("displayed! ("+r.name+", bidder="+a.bidder+", size="+a.size+", price="+a.price+")"))}return!0}function logVideoUnfilled(e){e=properPage.getSlotFromPageObject(e);e&&log_unfilled(e)}function logVideoAdError(e,t,i){var r=new Error(JSON.stringify(t.msg));r.bidder=t.bidder,t.stack&&(r.stack=t.stack),r.event_type="video_exception",sendError(r);e=properPage.getSlotFromPageObject(e);e&&(e.hasWinningBid()&&"dfp"!==t.bidder&&(delete e.winning_ad,e.winning_ad={}),e.hasWinningAmazonBid()&&"dfp"!==t.bidder&&(delete e.winning_amazon_ad,e.winning_amazon_ad={}),!0===i&&"display"==e.type&&(i=ProperMedia.utils.deepAccess(properOps,"ad_slots."+e.type+"."+e.name)||{},e.setRefresh(i),e.refreshSlot()))}function proper_remnant(e,t){if(!properPage.getSlotByNumber(t,["display"]))return properLog.mylog("Couldn't find slot with number: "+t),!1;proper_render(e,t,0)}function runATS(e){userIdAdapters.identityLink&&userIdAdapters.identityLink.runATS(e)}function publisherAudiencesOptOut(e){ProperMedia.utils.deepAccess(bidAdapters,"a9.updateOptOut")&&bidAdapters.a9.updateOptOut(e)}function testRps(e){try{if(!e||!parseFloat(e))return;ProperMedia.utils.deepSetValue(properSession,"sessionData.revenue",parseFloat(e)),ProperMedia.utils.isFn(audiencePixels.controller.checkThresholds)&&audiencePixels.controller.checkThresholds()}catch(e){}}function refreshAuctionAndSlotsByName(e){try{ProperMedia.utils.isArray(e)&&0<e.length&&(properAdPool.size_override=e),runNewAuction(),e.forEach(function(e){refreshSlotByName(e)})}catch(e){}}function getUserIdsAsEids(){return ProperMedia.utils.deepCopy(userIds.getEidsArray())}userIdAdapters.id5Id=new id5IdAdapter,audiencePixels.controller=(aG={},{init:function(e,t){var i=ProperMedia.utils.mergeObject({},e);i.networks&&Object.keys(i.networks).length&&Object.keys(i.networks).forEach(function(e){ProperMedia.utils.deepAccess(i,"networks."+e+".enabled")&&ProperMedia.utils.deepAccess(audiencePixels,"networks."+e)&&(aG[e]=audiencePixels.networks[e],aG[e].setConfig(i.networks[e]),aG[e].init())}),audiencePixels.audience_pixels.init(t)},newPageview:function(){Object.keys(aG).length&&Object.keys(aG).forEach(function(e){ProperMedia.utils.deepAccess(aG,e+".newPageview")&&aG[e].newPageview()})},checkThresholds:function(){Object.keys(aG).length&&Object.keys(aG).forEach(function(e){aG[e].checkThresholds()}),audiencePixels.audience_pixels.checkThresholds()}}),audiencePixels.audience_pixels=(kG={enabled:!1,thresholds:[]},{init:function(e){kG=ProperMedia.utils.mergeObject(kG,e)},checkThresholds:function(){var t=ProperMedia.utils.deepAccess(properSession,"sessionData.last_threshold")||0,i={price:0,pixel:""};kG.thresholds.map(function(e){e.price>i.price&&e.price>t&&e.price<properSession.sessionData.revenue&&(i=e)}),i.price&&function(e){{var t,i;kG.enabled&&e.pixel&&(t="audience-pixel-"+e.price.toString(),document.getElementById(t)||(properLog.mylog("Place audience pixel: "+e.price),(i=document.createElement("iframe")).id=t,i.width="0px",i.height="0px",i.style.display="none",document.getElementsByTagName("body")[0].appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.write(e.pixel.toString()),i.contentWindow.document.close(),ProperMedia.utils.deepSetValue(properSession,"sessionData.last_threshold",e.price),properSession.setSessionData()))}}(i)}}),audiencePixels.networks.taboola=(vG=0,wG=0,xG={enabled:!1,disable_init_code:!1,ids:[],range:{min:.01,max:.22,exceptions:[]},pageview:{enabled:!1,everyPage:!1}},{checkThresholds:function(){var e=parseFloat(Math.floor(100*properSession.sessionData.revenue)/100);wG<e&&xG.range.min<=e&&xG.range.max>=e&&-1==xG.range.exceptions.indexOf(e)&&function(e){try{wG=e;var t="rps_"+parseInt(100*e);properLog.mylog("audiencePixels: Taboola pixel: "+e+" "+t),window.top.fireTaboolaPixel(t)}catch(e){console.error(e)}}(e)},newPageview:function(){try{vG&&xG.pageview.enabled&&(xG.pageview.everyPage||properSession.sessionData.depth<=1)&&(properLog.mylog("audiencePixels: Taboola newPageview: "+vG),window.top._tfa.push({notify:"event",name:"page_view",id:vG}))}catch(e){console.error(e)}},setConfig:function(e){xG=ProperMedia.utils.mergeObject(xG,e)},init:function(){var e,t,i,r;if(!xG.disable_init_code)try{vG=xG.ids.shift(),properLog.mylog("audiencePixels: Taboola Init: "+vG),vG&&(window.top._tfa=window.top._tfa||[],e=document.createElement("script"),t=document.getElementsByTagName("script")[0],i="//cdn.taboola.com/libtrc/unip/"+vG+"/tfa.js",r="tb_tfa_script",document.getElementById(r)||(e.async=1,e.src=i,e.id=r,t.parentNode.insertBefore(e,t)),window.top.fireTaboolaPixel=function(e){window.top._tfa.push({notify:"event",name:e,id:vG})})}catch(e){console.error(e)}}}),audiencePixels.networks.outbrain=(PG=0,QG={enabled:!1,disable_init_code:!1,ids:[],range:{min:.01,max:.22,exceptions:[]}},{checkThresholds:function(){var e=parseFloat(Math.floor(100*properSession.sessionData.revenue)/100);PG<e&&QG.range.min<=e&&QG.range.max>=e&&-1==QG.range.exceptions.indexOf(e)&&function(e){try{PG=e;var t="rps_"+parseInt(100*e);properLog.mylog("audiencePixels: Outbrain pixel: "+e+" "+t),window.top.obApi("track",t)}catch(e){console.error(e)}}(e)},setConfig:function(e){QG=ProperMedia.utils.mergeObject(QG,e)},init:function(){var e,t,i,r;if(!QG.disable_init_code)try{e=window.top,r=QG.ids,properLog.mylog("audiencePixels: Outbrain Init: "+JSON.stringify(QG.ids)),e.obApi?e.obApi.marketerId=(t=function(e){return"[object Array]"===Object.prototype.toString.call(e)?e:[e]})(e.obApi.marketerId).concat(t(r)):((i=e.obApi=function(){i.dispatch?i.dispatch.apply(i,arguments):i.queue.push(arguments)}).version="1.1",i.loaded=!0,i.marketerId=OB_ADV_ID,i.queue=[],(r=document.createElement("script")).async=!0,r.src="//amplify.outbrain.com/cp/obtp.js",r.type="text/javascript",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(r,e))}catch(e){console.error(e)}}}),audiencePixels.networks.facebook=(hH=0,iH={enabled:!1,disable_init_code:!1,ids:[],range:{min:.01,max:.22,exceptions:[]},pageview:{enabled:!1,everyPage:!1}},{checkThresholds:function(){var e=parseFloat(Math.floor(100*properSession.sessionData.revenue)/100);hH<e&&iH.range.min<=e&&iH.range.max>=e&&-1==iH.range.exceptions.indexOf(e)&&function(e){try{hH=e,properLog.mylog("audiencePixels: Facebook pixel: "+e),window.top.fbq("trackCustom",e.toString(),{value:parseFloat(e),currency:"USD"})}catch(e){console.error(e)}}(e)},newPageview:function(){try{iH.pageview.enabled&&(iH.pageview.everyPage||properSession.sessionData.depth<=1)&&(properLog.mylog("audiencePixels: Facebook newPageview"),window.top.fbq("track","PageView"))}catch(e){console.error(e)}},setConfig:function(e){iH=ProperMedia.utils.mergeObject(iH,e)},init:function(){var e,t,i,r,s;if(!iH.disable_init_code)try{if(e=window,t=document,e.fbq||(i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},e._fbq||(e._fbq=i),(i.push=i).loaded=!0,i.version="2.0",i.queue=[],(r=t.createElement("script")).async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",(s=t.getElementsByTagName("script")[0]).parentNode.insertBefore(r,s)),fbq("dataProcessingOptions",["LDU"],0,0),iH.ids.length)for(var o=0;o<iH.ids.length;o++)properLog.mylog("audiencePixels: Facebook Init: "+iH.ids[o]),window.top.fbq("init",iH.ids[o])}catch(e){console.error(e)}}}),audiencePixels.networks.google=(CH=0,DH={enabled:!1,disable_init_code:!1,configId:"",range:{}},{checkThresholds:function(){var e=parseFloat(Math.floor(100*properSession.sessionData.revenue)/100);CH<e&&DH.range[e]&&function(e){try{CH=e,properLog.mylog("audiencePixels: Google pixel: "+e+" "+DH.configId+" "+DH.range[e]),window.top.gtag("event","conversion",{send_to:DH.range[e]})}catch(e){console.error(e)}}(e)},setConfig:function(e){DH=ProperMedia.utils.mergeObject(DH,e)},init:function(){if(!DH.disable_init_code)try{var e=DH.configId.split(",");properLog.mylog("audiencePixels: Google Init");const i=document.createElement("script");i.src="https://www.googletagmanager.com/gtag/js",i.setAttribute("async",""),window.top.document.getElementsByTagName("body")[0].prepend(i),window.top.dataLayer=window.top.dataLayer||[],window.top.gtag=function(){window.top.dataLayer.push(arguments)},window.top.gtag("js",new Date);for(var t=0;t<e.length;t++)properLog.mylog("audiencePixels: Google config: "+e[t]),window.top.gtag("config",e[t])}catch(e){console.error(e)}}}),audiencePixels.networks.twitter=(QH=0,RH={enabled:!1,disable_init_code:!1,range:{}},{checkThresholds:function(){var e=parseFloat(Math.floor(100*properSession.sessionData.revenue)/100);QH<e&&RH.range.min<=e&&RH.range.max>=e&&-1==RH.range.exceptions.indexOf(e)&&function(e){try{QH=e,properLog.mylog("audiencePixels: Twitter pixel: "+e+" "+RH.range[e]),twttr.conversion.trackPid(RH.range[e],{tw_sale_amount:e})}catch(e){console.error(e)}}(e)},setConfig:function(e){RH=ProperMedia.utils.mergeObject(RH,e)},init:function(){if(!RH.disable_init_code)try{properLog.mylog("audiencePixels: Twitter Init"),function(){var e=document.createElement("script");e.async=!0,e.src="//platform.twitter.com/oct.js",e.type="text/javascript";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){console.error(e)}}}),bidAdapters.a9=function(){var a="a9",n=[],d=0,P=0,s=0;amazon_crid_map={};var p=window.top,w="https://c.amazon-adsystem.com/e/dtb/bid",i="pub_audiences_opt_out",M={display:{fiuark:"a9","1777sow":"adgeneration_tam",tvrabk:"conversant_tam","6kpe68":"districtm_tam",pfxs74:"districtmdmx_tam","1bn1atc":"gumgum_tam",rnuj9c:"index_tam",pzwyyo:"mediagrid_tam","1rqdr0g":"medianet_tam","7onrpc":"oath_tam",fgcef4:"openx_tam",s7tq0w:"onetag_tam","1lmmolc":"pubmatic_tam",obzeo0:"pulsepoint_tam",bki328:"risecodes_tam",x7meww:"rubicon_tam",l04a2o:"rhythmone_tam","1ye4074":"sharethrough_tam",jw5wjk:"smaato_tam",b0iwao:"sovrn_tam","11nfx1c":"triplelift_tam","1eywfeo":"xandr_tam",n8114w:"yahoo_tam","1oyht6o":"yieldmo_tam"},video:{instream:{"5gr0n4":"adobe_tam_instream",fiuark:"amazon_tam_instream","1r6ek8w":"amobee_tam_instream","1777sow":"adgeneration_tam_instream","19f4jr4":"conversant_uam_instream",tvrabk:"conversant_tam_instream",pfxs74:"dmx_tam_instream","6kpe68":"districtm_tam_instream","1bn1atc":"gumgum_tam_instream","1mql24g":"gumgum_uam_instream",rnuj9c:"index_tam_instream",x7meww:"magnite_tam_instream",pzwyyo:"mediagrid_tam_instream","1rqdr0g":"medianet_tam_instream",fgcef4:"openx_tam_instream",s7tq0w:"onetag_tam_instream","1lmmolc":"pubmatic_tam_instream",obzeo0:"pulsepoint_tam_instream",bki328:"risecodes_tam_instream","1ye4074":"sharethrough_tam_instream",l04a2o:"unruly_tam_instream",jw5wjk:"smaato_tam_instream",b0iwao:"sovrn_tam_instream","11nfx1c":"triplelift_tam_instream","7onrpc":"verizon_media_tam_instream",n8114w:"verizon_media_tam_instream","1eywfeo":"xandr_tam_instream","1tebbb4":"yahoo_tam_instream","1oyht6o":"yieldmo_tam_instream"},outstream:{"5gr0n4":"adobe_tam_outstream",fiuark:"amazon_tam_outstream","1r6ek8w":"amobee_tam_outstream","1777sow":"adgeneration_tam_outstream","19f4jr4":"conversant_uam_outstream",tvrabk:"conversant_tam_outstream",pfxs74:"dmx_tam_outstream","6kpe68":"districtm_tam_outstream","1bn1atc":"gumgum_tam_outstream","1mql24g":"gumgum_uam_outstream",rnuj9c:"index_tam_outstream",x7meww:"magnite_tam_outstream",pzwyyo:"mediagrid_tam_outstream","1rqdr0g":"medianet_tam_outstream",fgcef4:"openx_tam_outstream",s7tq0w:"onetag_tam_outstream","1lmmolc":"pubmatic_tam_outstream",obzeo0:"pulsepoint_tam_outstream","1ye4074":"sharethrough_tam_outstream",l04a2o:"unruly_tam_outstream",bki328:"risecodes_tam_outstream",jw5wjk:"smaato_tam_outstream",b0iwao:"sovrn_tam_outstream","11nfx1c":"triplelift_tam_outstream","7onrpc":"verizon_media_tam_outstream",n8114w:"verizon_media_tam_outstream","1eywfeo":"xandr_tam_outstream","1tebbb4":"yahoo_tam_outstream","1oyht6o":"yieldmo_tam_outstream"}}},I={sovrn_tam:9e4},l="cb3b5777-430d-4622-b7fc-358cfa27d518";function r(o,a,n){var d={slots:{},data_map:{},request_cnt:0,bidderInfo:n};return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i=o[e][t],r="video"==n.demand_type?i.split("-")[0]:i;void 0===d.slots[i]&&(d.slots[i]={slotID:r},"video"==n.demand_type?d.slots[i].mediaType="video":d.slots[i].sizes=[],d.slots[i].floor={value:0,currency:"USD"},d.data_map[r]={tag_sizes:[],floor:0}),"display"==n.demand_type&&d.slots[i].sizes.push(e.split("x").map(function(e){return parseInt(e)}));var s=parseInt(100*getBidderFloor(a,e));(!d.slots[i].floor.value||s<d.slots[i].floor.value)&&(d.slots[i].floor.value=s,ProperMedia.utils.deepSetValue(d,"data_map."+r+".floor",s/100)),d.data_map[r].tag_sizes.push(e),d.request_cnt++}}),d}function o(){var i,o,e,t;function r(e,t){o[i]._Q.push([e,t])}properPage.isolated||1==s||1==d||(0!=P||1!=properOps.dfp_per_slot?(s=1,i="apstag",e=(o=p).document,o[i]||(o[i]={init:function(){r("i",arguments)},fetchBids:function(){r("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},deleteId:function(){r("di",arguments)},renewId:function(){r("ri",arguments)},updateId:function(){r("ui",arguments)},_Q:[]},link1=e.createElement("link"),link1.rel="dns-prefetch",link1.href="https://c.amazon-adsystem.com",link2=e.createElement("link"),link2.rel="preconnect",link2.href="https://c.amazon-adsystem.com",t=e.createAttribute("crossorigin"),link2.setAttributeNode(t),(t=e.createElement("script")).async=1,t.src="https://c.amazon-adsystem.com/aax2/apstag.js",t.addEventListener("load",TraceKit.wrap(function(){try{var e={pubID:l,params:{},bidTimeout:350},t=schainCheck(a);""!=t&&(e.schain=t),gdprConsent.gdprApplies&&(e.gdpr={enabled:!!gdprConsent.gdprApplies,consent:gdprConsent.consentString||""}),uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy),properPage.video_enabled&&(e.videoAdServer="DFP"),o.apstag.init(e);var r=o.apstag.bids;o.apstag.bids=function(e){if(r(e),e.slots&&e.slots.length)for(var t=0;t<e.slots.length;t++){var i=e.slots[t];i.amzniid&&i.crid&&(amazon_crid_map[i.amzniid]=i.crid)}}.bind(o.apstag);var i=g();if(i.hashedRecords&&i.hashedRecords.length&&o.apstag.renewId(i,function(){properLog.mylog("Amazon: Publisher Audience ID Renewed. params: "+JSON.stringify(i))}),d=1,n.length)for(var s=0;s<n.length;s++)c(n[s]);n=[]}catch(e){throw e.bidder=a,e}})),(e=e.getElementsByTagName("head")[0]).appendChild(link1),e.appendChild(link2),e.appendChild(t))):u())}function c(_){"function"==typeof ProperMedia.utils.deepAccess(p,"apstag.debug")&&(1==properOps.testing_mode.ids?p.apstag.debug("enable"):p.apstag.debug("disable"));var b,e,f=_.bidData||{},v=_.request_cnt||0,t=ProperMedia.utils.objectValues(_.slots)||[],y=_.data_map||{};0==t.length&&0<v?properLog.mylog("Amazon: No slots defined"):(properLog.mylog("Amazon bids sent",_.bidderInfo.bidder),f.incrementRequestsSent(v),b=ProperMedia.utils.getTimestampMs(),e=function(e){try{properLog.mylog("Amazon bids returned: "+e.length);for(var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t),r=0;r<e.length;r++){var s=e[r],o=0;1==properOps.testing_mode.ids?o="testBid":s.amznbid&&(o=s.amznbid);var a=s.amznp||"fiuark",n=("video"==ProperMedia.utils.deepAccess(_,"bidderInfo.demand_type")?ProperMedia.utils.deepAccess(M,_.bidderInfo.demand_type+"."+_.bidderInfo.video_type+"."+a):ProperMedia.utils.deepAccess(M,_.bidderInfo.demand_type+"."+a))||_.bidderInfo.bidder,d=s.encodedQsParams||"",p=s.qsParams||"",l=amazon_crid_map[s.amzniid]||"";amazon_crid_map[s.amzniid]&&delete amazon_crid_map[s.amzniid];var c,u,g=s.ttl||I[n]||ProperMedia.utils.deepAccess(_,"bidderInfo.default_bid_ttl"),m={encodedQsParams:d,qsParams:p,amznp:s.amznp,amznbid:s.amznbid,amzniid:s.amzniid},h=new adObj({bidder:n,price:o,gross:o,size:s.size,tag_id:s.slotID,crid:l,request_url:w,response:s,response_ms:i,received_ts:t,ad_details:m,ttl:g,floor:ProperMedia.utils.deepAccess(y,s.slotID+".floor")||0});"video"==ProperMedia.utils.deepAccess(_,"bidderInfo.demand_type")?(s.size&&-1!==["400x300","640x480"].indexOf(s.size)?c=s.size:ProperMedia.utils.deepAccess(y,s.slotID+".tag_sizes.0")&&-1!==["400x300","640x480"].indexOf(ProperMedia.utils.deepAccess(y,s.slotID+".tag_sizes.0"))?c=ProperMedia.utils.deepAccess(y,s.slotID+".tag_sizes.0"):s.slotID&&s.slotID.match(/_\d+x\d+$/)&&(1<(u=s.slotID.match(/_(\d+x\d+)$/)).length&&-1!==["400x300","640x480"].indexOf(match[1])&&(c=u[1])),c=c||(properDevice.isMobile()?["400x300"]:["640x480"]),h.type="video",h.vast_type="url",h.vast_tag="https://aax.amazon-adsystem.com/e/dtb/vast?b="+s.amzniid+"&pp="+s.amznbid+"&rnd="+Math.round((new Date).getTime())+"&cust_params="+p,h.vpaid=!1,h.video_type=ProperMedia.utils.deepAccess(_,"bidderInfo.video_type"),h.size=c):(h.type="display",1==P&&1==properOps.dfp_per_slot?h.adcode='<script>try {var amazon_ifr = window.top.document.getElementById("proper-a9-auction-iframe");if(amazon_ifr) {var amzn_win = amazon_ifr.contentWindow;if(amzn_win && amzn_win.apstag) {window.apstag = amzn_win.apstag;window.apstag.renderImp(document,"'+s.amzniid+'");}}} catch(e) {console.error(e);}<\/script>':h.adcode='<script>var amzn_win=window,amzn_c=5,amzn_x=0;while(amzn_x<amzn_c){amzn_win=amzn_win.parent;if(amzn_win.apstag)try{amzn_win.apstag.renderImp(document,"'+s.amzniid+'");amzn_x=amzn_c}catch(e){}amzn_x++};<\/script>'),f.logBidResponse(h)}f.incrementBidResponseCount(v)}catch(e){throw e.bidder=_.bidderInfo.bidder,e}},void 0!==TraceKit&&TraceKit.wrap(e),"function"==typeof ProperMedia.utils.deepAccess(p,"apstag.fetchBids")&&p.apstag.fetchBids({slots:t,timeout:550},e))}function u(){try{var e=document.createElement("iframe");e.id="proper-a9-auction-iframe",e.frameborder="0",e.allowtransparency="true",e.marginheight="0",e.marginwidth="0",e.width="0",e.hspace="0",e.vspace="0",e.height="0",e.scrolling="no",e.style.display="none",e.style.width="0",e.style.height="0",e.sandbox="allow-scripts allow-same-origin",e.onload=function(){p=e.contentWindow,P=1,p.__tcfapi=window.top.__tcfapi,0==s&&o()},document.getElementsByTagName("body")[0].appendChild(e)}catch(e){p=window,console.error(e)}}function g(){var e={},t=userIds.getUserIdData();return ProperMedia.utils.deepAccess(t,"emailHashes.sha256")&&(e={hashedRecords:[{type:"email",record:ProperMedia.utils.deepAccess(t,"emailHashes.sha256")}]}),gdprConsent.gdprApplies&&(e.gdpr={enabled:!!gdprConsent.gdprApplies,consent:gdprConsent.consentString}),void 0!==properStorage.getCookie(i,{moduleType:"core"})&&(e.optOut=!!properStorage.getCookie(i,{moduleType:"core"})),e}return{send:function(e){if(properPage.isolated)return properLog.mylog("Turn off Amazon bidder for isolated pages"),!0;var t=e.bidder,i=properOps.bidder_info[t]||i;i.bidder=t,l=i.alias?"748e627c-0eaa-42c2-9e73-69aef798751c":l,ProperMedia.utils.deepAccess(properOps,"bidders.header."+t+".account_overrides.enabled")&&(l=ProperMedia.utils.deepAccess(properOps,"bidders.header."+t+".account_overrides.bidder_ids.pub_id")||l),(i=r(e.requests,t,i)).bidData=e,1==d?c(i):(n.push(i),0==P&&1==properOps.dfp_per_slot?u():0==s&&o())},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:12e4,gvlid:793},updateOptOut:function(e){var t;e?properStorage.setCookie(i,!0,1209600,"Lax","",{moduleType:"core"}):ProperMedia.utils.deleteCookie(i,"Lax","",{moduleType:"core"}),"function"==typeof ProperMedia.utils.deepAccess(p,"apstag.updateId")&&((t=g()).optOut=e,p.apstag.updateId(t,function(){properLog.mylog("Amazon: Publisher Audience ID Updated. params: "+JSON.stringify(t))}))},formatRequest:r,loadInitScripts:o}}(),bidAdapters.adagio=(GJ={rev_share:1,demand_type:"display",bid_grouping:"page",div_insertion:1,default_bid_ttl:3e4,gvlid:617},HJ="https://mp.4dex.io/prebid",IJ="adagio",JJ="https://script.4dex.io/localstore.js",KJ="adagioScript",OJ=GJ.gvlid,QJ=1003,RJ=null,SJ=!1,TJ={},GL={},eK={clearFeatures:function(){FL=void 0},clearExchangeData:function(){GL={}},getOrSetGlobalFeatures:function(){return FL=FL||{page_dimensions:aK().toString(),viewport_dimensions:bK().toString(),user_timestamp:cK().toString(),dom_loading:dK().toString()}},prepareExchangeData(e){var t=JSON.parse(e,function(e,t){if("_"!==e.charAt(0)||""===e)return t}),i=ProperMedia.utils.deepAccess(t,"session.rnd"),e=!1;mK.isNewSession(t)&&(e=!0,i=Math.random()),ProperMedia.utils.mergeDeep(GL,t,{session:{new:e,rnd:i}}),mK.enqueue({action:"session",ts:Date.now(),data:GL})},getExchangeData(){return GL}},mK={enqueue:function(e){var t=window.top;t.ADAGIO=t.ADAGIO||{},t.ADAGIO.queue=t.ADAGIO.queue||[],t.ADAGIO.queue.push(e)},getPageviewId:function(){var e=window.top;return e.ADAGIO=e.ADAGIO||{},e.ADAGIO.pageviewId=e.ADAGIO.pageviewId||ProperMedia.utils.generateUUID(),e.ADAGIO.pageviewId},adagioScriptFromLocalStorageCb:function(e){try{if(!e)return void properLog.mylog("Adagio script not found.");/^(\/\/ hash: (.+)\n)(.+\n)$/.test(e)||properStorage.removeDataFromLocalStorage(KJ,TJ)}catch(e){properLog.mylog("Adagio: "+JSON.stringify(e))}},isNewSession:function(e){var t=Date.now(),e=(i=ProperMedia.utils.deepAccess(e,"session")||{}).lastActivityTime||void 0,i=i.vwSmplg||void 0;return!ProperMedia.utils.isNumber(e)||!ProperMedia.utils.isNumber(i)||18e5<t-e}},{send:function(n){var d=n.bidder,p=properOps.bidder_info[d]||p;if(TJ={gvlid:p.gvlid||OJ,bidderCode:d},ProperMedia.utils.deepAccess(properOps,"bidders.header."+d+".account_overrides.enabled")&&(QJ=ProperMedia.utils.deepAccess(properOps,"bidders.header."+d+".account_overrides.bidder_ids.organizationId")||QJ),!(RJ=ProperMedia.utils.deepAccess(properOps,"bidders.header."+d+".site_id")||0))return properLog.mylog("Adagio: Error Site ID is Required."),!1;p.auctionId=ProperMedia.utils.deepAccess(n,"auction.id");var e=VJ(n.requests,d,p),t=ProperMedia.utils.objectValues(e.imps)||[],l=e.data_map||{},s=e.request_cnt,i=navigator.language?"language":"userLanguage",r=!gdprConsent?{}:{apiVersion:gdprConsent.apiVersion,consentString:gdprConsent.consentString,consentRequired:gdprConsent.gdprApplies?1:0,allowAuctionWithoutConsent:gdprConsent.allowAuctionWithoutConsent?1:0},o=!uspConsent.usPrivacy?{}:{uspConsent:uspConsent.usPrivacy},a=schainCheck(IJ),e=ProperMedia.utils.deepCopy(userIds.getEidsArray())||[]||[],e={id:ProperMedia.utils.generateUUID(),pageviewId:mK.getPageviewId(),organizationId:QJ.toString(),secure:properPage.use_ssl?1:0,site:{page:properPage.bidder_page_url,domain:properPage.domain,referrer:properPage.referrer},device:{userAgent:navigator.userAgent,language:navigator[i],dnt:ProperMedia.utils.getDNT()?1:0,geo:{},js:1},adUnits:t,data:eK.getExchangeData(),regs:{gdpr:r,ccpa:o,coppa:{required:ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?1:0}},user:{eids:e},prebidVersion:properOps.prebid_version,featuresVersion:"1"};""!=a&&(e.schain=a),properLog.mylog(HJ,d),n.incrementRequestsSent(s);var c=ProperMedia.utils.getTimestampMs(),a=ProperMedia.utils.deepAccess(properOps,"bidders.header."+d+".edge")||!1;$.ajax({url:HJ,method:"POST",requestType:"cors",bidder:d,edge:a,headers:{"Content-Type":"text/plain"},data:JSON.stringify(e),success:function(e){try{var t,o=ProperMedia.utils.getTimestampMs(),a=ProperMedia.utils.calcResponseMs(c,o);(e=ProperMedia.utils.safeJsonParse(e))?(e.data&&mK.enqueue({action:"ssp-data",ts:Date.now(),data:e.data}),e.bids&&e.bids.length&&(properLog.mylog(e,d),e.bids.forEach(function(e){var t=e.requestId||"",i=e.cpm||0;width=e.width||1,height=e.height||1,adcode=e.ad||"",nurl=e.nurl||"",crid=e.creativeId||0,dealid=e.dealId||"",adomain=e.aDomain||[],ttl=e.ttl||p.default_bid_ttl/1e3;var r=width+"x"+height,s={div_id:ProperMedia.utils.deepAccess(l,t+".div_id")},s=new adObj({bidder:d,size:r,price:parseFloat(i),gross:parseFloat(i),nurl:nurl,tag_id:t,crid:crid,dealid:dealid,ad_details:s,request_url:HJ,response:e,response_ms:a,received_ts:o,ttl:1e3*ttl,floor:ProperMedia.utils.deepAccess(l,t+".floors."+r)||0});"display"==p.demand_type?(r='<script> var elem = window.top.document.getElementById("{PROPER_SLOT_DIV_ID}"); if(elem) { if(elem.parentNode.className.indexOf("'+properOps.slot_wrapper_class+"\") !== -1) { elem = elem.parentNode; elem.setAttribute('id', \""+ProperMedia.utils.deepAccess(l,t+".div_id")+'");}} <\/script>',s.adcode=r+'<div id="'+ProperMedia.utils.deepAccess(l,t+".div_id")+'">'+adcode+"</div>"):"video"==p.demand_type?(s.type="video",s.vast_tag=e.vastXml,t=ProperMedia.utils.parseVastVpaid(s.vast_tag),s.vast_type=t.vast_type,s.vpaid=t.vpaid,s.video_type=p.video_type):"native"==p.demand_type&&((e=e.admNative||{}).clickTrackers=ProperMedia.utils.deepAccess(e,"link.clicktrackers")||[],s.type="native",s.native=e),n.logBidResponse(s)}),function(e){try{var t,i,r,s;ProperMedia.utils.deepAccess(e,"ext.pixels")&&(t=e.ext.pixels||[],i=/\w*(?=\s)/,r=/src=("|')(.*?)\1/,!t||(s=t.match(/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi))&&s.forEach(function(e){var t=e.match(i)[0],e=e.match(r)[2];t&&e&&(t="img"===t.toLowerCase()?"image":"iframe",userSyncs.add({type:t,url:e}))}))}catch(e){throw e.bidder=IJ,e}}(e))):(properLog.mylog("Adagio: No bids returned"),t=new adObj({bidder:d,price:0,gross:0,tag_id:"",request_url:HJ,response:e,response_ms:a,received_ts:o,ttl:0}),n.logNoBidResponse(t)),n.incrementBidResponseCount(s)}catch(e){throw e.bidder=d,e}},error:function(e){try{n.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(c,t),r={bidder:d,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};n.logBidResponseError(r)}catch(e){throw e.bidder=d,e}}})},onBidWon:function(e,t){try{window.top.ADAGIO.queue.push({action:"adagio-creative-rendered",data:{eventName:"renderEvent",args:{isEmpty:!1,elementId:ProperMedia.utils.deepAccess(e,"ad_details.div_id"),creativeId:e.crid,creativeSize:e.size.split("x").map(function(e){return parseInt(e)})}},ts:Date.now()})}catch(e){console.error(e)}},bidderInfo:GJ,formatRequest:VJ,loadInitScripts:function(){if(!SJ){SJ=!0;var e=window.top;e.ADAGIO=e.ADAGIO||{},e.ADAGIO.adUnits=e.ADAGIO.adUnits||{},e.ADAGIO.pbjsAdUnits=e.ADAGIO.pbjsAdUnits||[],e.ADAGIO.queue=e.ADAGIO.queue||[],e.ADAGIO.versions=e.ADAGIO.versions||{},e.ADAGIO.versions.pbjs=properOps.prebid_version,e.ADAGIO.isSafeFrameWindow=0;var t=properStorage.getDataFromLocalStorage("adagio",TJ)||"{}";try{eK.prepareExchangeData(t)}catch(e){properLog.mylog("Adagio: "+JSON.stringify(e))}e=properStorage.getDataFromLocalStorage(KJ,TJ),mK.adagioScriptFromLocalStorageCb(e),properStorage.localStorageIsEnabled(TJ)&&((t=document.createElement("script")).src=JJ,t.async=!0,t.type="text/javascript",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e))}}}),bidAdapters.aol=(nM="aol",pM=/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi,qM=/\w*(?=\s)/,rM=/src=("|')(.*?)\1/,{send:function(m){var h=m.bidder,_=properOps.bidder_info[h]||_,i=m.requests;Object.keys(i).forEach(function(e){for(var t=0;t<i[e].length;t++)!function(e,l){var t={"728x90":225,"160x600":154,"300x600":529,"300x250":170,"320x50":3055};if(void 0===t[e])return;var c=getBidderFloor(h,e),i=t[e],t=l,e=(new Date).getTime(),u="https://adserver-us.adtech.advertising.com/pubapi/3.0/9857.1/"+l+"/0/"+i+"/ADTECH;v=2;cmd=bid;cors=yes;alias="+t+";misc="+e+";bidfloor="+c;"boolean"==typeof gdprConsent.gdprApplies&&(u+=";gdpr="+Number(gdprConsent.gdprApplies));gdprConsent.consentString&&(u+=";euconsent="+gdprConsent.consentString);uspConsent.usPrivacy&&(u+=";us_privacy="+uspConsent.usPrivacy);properLog.mylog(u,h),m.incrementRequestsSent(1);var g=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+h+".edge")||!1;$.ajax({url:u,special:"aol",requestType:"cors",bidder:h,edge:e,success:function(e){try{var t,i,r,s,o,a,n,d,p;properLog.mylog(e,h),(e=ProperMedia.utils.safeJsonParse(e)||{})&&e.seatbid&&0<e.seatbid.length?(t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(g,t),r=e.seatbid[0].bid[0]||{},0<Object.keys(r).length?(void 0!==r.crid&&r.crid,s=r.w||1,o=r.h||1,a=r.price||0,n=r.adm||"",d=r.crid||"",p=new adObj({bidder:h,size:s+"x"+o,price:parseFloat(a),gross:parseFloat(a),adcode:n,tag_id:l,crid:d,request_url:u,response:r,response_ms:i,received_ts:t,ttl:_.default_bid_ttl,floor:c}),m.logBidResponse(p)):(p=new adObj({bidder:h,price:0,gross:0,tag_id:r.tag_id||"",request_url:u,response:r,response_ms:i,received_ts:t,ttl:0,floor:c}),m.logNoBidResponse(p))):(p=new adObj({bidder:h,price:0,gross:0,tag_id:l,request_url:u,response:e,response_ms:i,received_ts:t,ttl:0,floor:c}),m.logNoBidResponse(p)),m.incrementBidResponseCount(1),function(e){{var i;e&&e.ext&&e.ext.pixels&&((e=e.ext.pixels.match(pM))&&(i=[],e.forEach(function(e){var t=e.match(qM)[0],e=e.match(rM)[2];t&&e&&i.push({type:"img"===t?"image":"iframe",url:e,bidder:nM})}),userSyncs.add(i)))}}(e)}catch(e){throw e.bidder=h,e}},error:function(e){try{m.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(g,t),r={bidder:h,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};m.logBidResponseError(r)}catch(e){throw e.bidder=h,e}}})}(e,i[e][t])})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,gvlid:25}}),bidAdapters.appnexus=(fN="https://ib.adnxs.com/ut/v3/prebid",iN=[userIdAdapters.identityLink],jN={main_image:{required:!0,sizes:[]},icon:{required:!0,sizes:[{width:50,height:50}]},clickUrl:{required:!0},title:{required:!0,len:80},sponsored_by:{required:!0},ctatext:{required:!1}},{send:function(A){var O=A.bidder,C=properOps.bidder_info[O]||C,i=lN(A.requests,O,C),e=ProperMedia.utils.objectValues(i.astTags)||[],T=i.data_map||{},j=i.request_cnt;if(0==e.length)return!1;i={tags:e,sdk:{source:"pbjs",version:properOps.prebid_version},referrer_detection:{rd_ref:encodeURIComponent(properPage.url),rd_top:!0,rd_ifs:0,rd_stk:encodeURIComponent(properPage.url)},user:{}},ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(i.user.coppa=!0);var s=[];if(iN.forEach(function(e){var t,i,r;ProperMedia.utils.deepAccess(e,"config.enabled")&&(t=s,i=e.getValue(),r=e.source,e=null,i&&(e?t.push({source:r,id:i,rti_partner:e}):t.push({source:r,id:i})))}),s.length&&(i.eids=s),""!=(e=schainCheck(O))&&(i.schain=e),gdprConsent&&(i.gdpr_consent={consent_string:gdprConsent.consentString,consent_required:gdprConsent.gdprApplies},gdprConsent.addtlConsent&&-1!==gdprConsent.addtlConsent.indexOf("~"))){let e=gdprConsent.addtlConsent,t=e.substring(e.indexOf("~")+1);i.gdpr_consent.addtl_consent=t.split(".").map(e=>parseInt(e,10))}uspConsent.usPrivacy&&(i.us_privacy=uspConsent.usPrivacy),gppConsent&&(i.privacy={gpp:gppConsent.gppString,gpp_sid:gppConsent.applicableSections}),properLog.mylog(fN,O),A.incrementRequestsSent(j);var E=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+O+".edge")||!1;$.ajax({url:fN,requestType:"cors",method:"POST",bidder:O,edge:e,data:JSON.stringify(i),success:function(e){try{properLog.mylog(e,O);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(E,t),r=ProperMedia.utils.safeJsonParse(e);if(r&&r.error){properLog.mylog("Error: "+O+" adapter - "+r.error);var s={bidder:O,status:418,statusText:r.error+"(x"+j+")",response_ms:i};A.logBidResponseError(s)}else if(r&&r.tags&&r.tags.length)for(var o=0;o<r.tags.length;o++){var a,n=r.tags[o];if(n.ads&&n.ads[0]){var d=n.tag_id,p=n.uuid,l=n.ads[0],c=l.cpm||0,u=l.creative_id||"",g=l.adId||l.advertiser_id||"",m=new adObj({bidder:O,price:parseFloat(c),gross:parseFloat(c),tag_id:ProperMedia.utils.deepAccess(T,p+".tag_id")||d,adid:g,crid:u,request_url:fN,response:n,response_ms:i,received_ts:t,ttl:C.default_bid_ttl,floor:ProperMedia.utils.deepAccess(T,p+".floor")||0});if("video"==C.demand_type){var h=ProperMedia.utils.deepAccess(l,"rtb.notify_url")||"",_=ProperMedia.utils.deepAccess(l,"rtb.video.asset_url")||"",b=(ProperMedia.utils.deepAccess(l,"rtb.video.notify_url"),ProperMedia.utils.deepAccess(l,"rtb.video.player_width")||""),f=ProperMedia.utils.deepAccess(l,"rtb.video.player_height")||"",v="";"instream"==C.video_type?v=h+"&redir="+encodeURIComponent(_):"outstream"==C.video_type&&(v=ProperMedia.utils.deepAccess(l,"rtb.video.content")||""),m.size=b+"x"+f,m.type="video",m.vast_tag=v;var y=ProperMedia.utils.parseVastVpaid(m.vast_tag);m.vast_type=y.vast_type,m.vpaid=y.vpaid,m.video_type=C.video_type}else if("native"==C.demand_type){m.type="native";var P=ProperMedia.utils.deepAccess(l,"rtb.native");m.native=(k=P,{link:{url:ProperMedia.utils.deepAccess(k,"link.url")||""},assets:[{title:{text:ProperMedia.utils.deepAccess(k,"title")||""}},{img:{type:1,url:ProperMedia.utils.deepAccess(k,"main_img.url")||"",height:ProperMedia.utils.deepAccess(k,"main_img.height")||"",width:ProperMedia.utils.deepAccess(k,"main_img.width")||""}},{img:{type:2,url:ProperMedia.utils.deepAccess(k,"icon.url")||"",height:ProperMedia.utils.deepAccess(k,"icon.height")||"",width:ProperMedia.utils.deepAccess(k,"icon.width")||""}},{type:1,value:ProperMedia.utils.deepAccess(k,"advertiser.description")||""},{type:2,value:ProperMedia.utils.deepAccess(k,"sponsored")||""},{type:12,value:ProperMedia.utils.deepAccess(k,"ctatext")||""}],clickTrackers:ProperMedia.utils.deepAccess(k,"link.click_trackers")||[],imptrackers:ProperMedia.utils.deepAccess(k,"impression_trackers")||[],jstracker:ProperMedia.utils.deepAccess(k,"javascript_trackers")||[],javascriptViewability:ProperMedia.utils.deepAccess(k,"viewability.config")||""})}else{var w=ProperMedia.utils.deepAccess(l,"rtb.banner.content")||"",M=ProperMedia.utils.deepAccess(l,"rtb.banner.width")||"",I=ProperMedia.utils.deepAccess(l,"rtb.banner.height")||"",x="";try{x=ProperMedia.utils.deepAccess(l,"rtb.trackers.0.impression_urls.0")}catch(e){}w+='<div style="position:absolute;left:0px;top:0px;visibility:hidden;"><img src="'+encodeURI(x)+'"></div>',m.size=M+"x"+I,m.adcode=w}A.logBidResponse(m)}else n.nobid&&(a=new adObj({bidder:O,price:0,gross:0,tag_id:n.tag_id||"",request_url:fN,response:n,response_ms:i,received_ts:t,ttl:0}),A.logNoBidResponse(a))}else{var S=new adObj({bidder:O,price:0,gross:0,tag_id:"",request_url:fN,response:r,response_ms:i,received_ts:t,ttl:0});A.logNoBidResponse(S)}A.incrementBidResponseCount(j)}catch(e){throw e.bidder=O,e}var k},error:function(e){try{A.incrementBidResponseCount(j);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(E,t),r={bidder:O,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};A.logBidResponseError(r)}catch(e){throw e.bidder=O,e}}})},onBidWon:function(e,t){var i;return ProperMedia.utils.deepAccess(e,"native.javascriptViewability")&&e.adId&&(i="pbjs_adid="+e.adId+";pbjs_auc="+t.div_id,t=e.native.javascriptViewability.replace("dom_id=%native_dom_id%",i),null==(i=ProperMedia.utils.deepAccess(e,"native.javascript_trackers"))?i=t:ProperMedia.utils.isStr(i)?i=[i,t]:ProperMedia.utils.isArray(i)&&i.push(t),e.native.jstracker=i),!0},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:32},getUserSyncs:function(){!gdprConsentModule.hasPurpose1Consent()||gppConsent&&Array.isArray(gppConsent.applicableSections)&&!gppConsent.applicableSections.every(e=>"number"==typeof e&&e<=5)||userSyncs.add({type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html",bidder:"appnexus"})},formatRequest:lN}),bidAdapters.brightcom=(TO="https://brightcombid.marphezis.com/hb",UO="brightcom",{bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:883},formatRequest:VO,send:function(l){var e=VO(l.requests),s=e.request_count,t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+UO+".edge")??!1,i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+UO+".site_id");if(!i)return properLog.mylog("Brightcom: Error Publisher ID is Required."),!1;e={device:{devicetype:/(ios|ipod|ipad|iphone|android)/i.test(navigator.userAgent)?1:/(smart-?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent)?3:2,w:screen.width,h:screen.height},id:ProperMedia.utils.generateUUID(),imp:ProperMedia.utils.objectValues(e.imps)??[],site:{domain:properPage.domain,page:properPage.url,publisher:{id:i}},tmax:550},"boolean"==typeof gdprConsent.gdprApplies&&(ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",+gdprConsent.gdprApplies),gdprConsent.consentString&&ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString)),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&ProperMedia.utils.deepSetValue(e,"regs.coppa",1),""!=(i=schainCheck(UO))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",i),(i=userIds.getEidsArray())&&i.length&&ProperMedia.utils.deepSetValue(e,"user.ext.eids",i||[]),(i=userIds.getUIdsObj())&&Object.keys(i).length&&ProperMedia.utils.deepSetValue(e,"user.ext.ids",i||{}),properLog.mylog(TO,UO),l.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs();$.ajax({method:"POST",url:TO,bidder:UO,edge:t,contentType:"text/plain",withCredentials:!1,data:JSON.stringify(e),success:function(e){try{var d=ProperMedia.utils.getTimestampMs(),p=ProperMedia.utils.calcResponseMs(o,d);e&&"object"==typeof e&&e.seatbid?(properLog.mylog(e,UO),Object.values(e.seatbid).forEach(function(e){Object.values(e.bid).forEach(function(e){var{impid:t,adm:i,price:r,crid:s,h:o,w:a,nurl:n}=e;n&&(i+=ProperMedia.utils.createTrackPixel(n)),l.logBidResponse(new adObj({bidder:UO,size:(a??1)+"x"+(o??1),price:parseFloat(r)||0,gross:parseFloat(r)||0,adcode:i??"",tag_id:t??"",crid:s??"",request_url:TO,response:e,response_ms:p,received_ts:d,ttl:6e4}))})})):(properLog.mylog("no brightcom bids returned"),l.logNoBidResponse(new adObj({bidder:UO,price:0,gross:0,tag_id:"",request_url:TO,response:e,response_ms:p,received_ts:d,ttl:0})))}catch(e){throw e.bidder=UO,e}},error:function(e){try{l.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:UO,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};l.logBidResponseError(r)}catch(e){throw e.bidder=UO,e}}})}}),bidAdapters.concert=(HP={rev_share:.75,bid_grouping:"page",default_bid_ttl:6e4,native_sizes:{"1030x590":"native_horizontal"}},IP="https://bids.concert.io/bids/prebid",KP="concert",LP={mobile:[[325,204],[325,508]],desktop:[[1030,590],[620,366]]},{send:function(c){var s,e=MP(c.requests),t=ProperMedia.utils.objectValues(e.bids)||[],o=e.request_cnt;0!=o&&(e={meta:{prebidVersion:properOps.prebid_version,pageUrl:properPage.bidder_page_url,screen:[window.screen.width,window.screen.height].join("x"),debug:1==properOps.testing_mode.ids,uid:function(){if(QP()||!function(){var e=!(uspConsent.ccpaApplies&&"string"===uspConsent.usPrivacy&&"1"===uspConsent.usPrivacy[0]&&"Y"===uspConsent.usPrivacy[2].toUpperCase()),t=!gdprConsent.gdprApplies||gdprConsentModule.hasPurpose1Consent();return e||t}())return!1;var e=properStorage.getDataFromLocalStorage("c_uid",{bidderCode:KP});e||(e=ProperMedia.utils.generateUUID(),properStorage.setDataInLocalStorage("c_uid",e,{bidderCode:KP}));return e}(),optedOut:QP(),adapterVersion:"1.0.2"},slots:t},properLog.mylog(IP,KP),c.incrementRequestsSent(o),s=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+KP+".edge")||!1,$.ajax({url:IP,method:"POST",requestType:"cors",bidder:KP,edge:t,data:JSON.stringify(e),success:function(d){try{d=ProperMedia.utils.safeJsonParse(d);var e,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(s,p);d&&d.bids&&0!=Object.keys(d.bids).length?(properLog.mylog(d,KP),Object.keys(d.bids).forEach(function(e){var t=d.bids[e],i=t.bidId||"",r=t.cpm||0,s=(t.netRevenue,t.currency,t.width||1),o=t.height||1,a=t.ad||"",n=t.creativeId||"",e=1e3*t.ttl||HP.default_bid_ttl,o=s+"x"+o;HP.native_sizes[o]&&(o=HP.native_sizes[o]);e=new adObj({bidder:KP,size:o,price:parseFloat(r),gross:parseFloat(r),adcode:a,tag_id:i,crid:n,request_url:IP,response:t,response_ms:l,received_ts:p,ttl:e});e.price&&e.adcode?c.logBidResponse(e):c.logNoBidResponse(e)})):(properLog.mylog("no "+KP+" bids returned"),e=new adObj({bidder:KP,price:0,gross:0,tag_id:"",request_url:IP,response:d,response_ms:l,received_ts:p,ttl:0}),c.logNoBidResponse(e)),c.incrementBidResponseCount(o)}catch(e){throw e.bidder=KP,e}},error:function(e){try{c.incrementBidResponseCount(o);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(s,t),r={bidder:KP,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};c.logBidResponseError(r)}catch(e){throw e.bidder=KP,e}}}))},bidderInfo:HP,getUserSyncs:function(){QP()||userSyncs.add({type:"iframe",url:"https://cdn.concert.io/lib/bids/sync.html",bidder:KP})},formatRequest:MP}),bidAdapters.consumable=(GQ={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e4},HQ="9969",IQ="1030626",JQ="consumable",KQ=1,LQ="https://e.serverbid.com/api/v2",MQ=[null,"120x90","120x90","468x60","728x90","300x250","160x600","120x600","300x100","180x150","336x280","240x400","234x60","88x31","120x60","120x240","125x125","220x250","250x250","250x90","0x0","200x90","300x50","320x50","320x480","185x185","620x45","300x125","800x250"],MQ[77]="970x90",MQ[123]="970x250",MQ[43]="300x600",MQ[286]="970x66",MQ[3230]="970x280",MQ[429]="486x60",MQ[374]="700x500",MQ[934]="300x1050",MQ[1578]="320x100",MQ[331]="320x250",MQ[3301]="320x267",MQ[2730]="728x250",{formatRequest:OQ,send:function(c){IQ=ProperMedia.utils.deepAccess(properOps,"bidders.header."+JQ+".site_id")||IQ,ProperMedia.utils.deepAccess(properOps,"bidders.header."+JQ+".account_overrides.enabled")&&(HQ=ProperMedia.utils.deepAccess(properOps,"bidders.header."+JQ+".account_overrides.bidder_ids.networkId")||HQ);var e=OQ(c.requests),t=e.imps||{},u=e.data_map||{},g=e.request_cnt;if(0==g)return!1;(e={networkId:HQ,siteId:IQ,placements:ProperMedia.utils.objectValues(t)||[],time:Date.now(),url:properPage.bidder_page_url,referrer:properPage.referrer,source:[{name:"prebidjs",version:properOps.prebid_version}]}).gdpr={consent:gdprConsent.consentString,applies:"boolean"!=typeof gdprConsent.gdprApplies||gdprConsent.gdprApplies},uspConsent.usPrivacy&&(e.ccpa=uspConsent.usPrivacy),""!=(t=schainCheck(JQ))&&(e.schain=t),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(e.coppa=!0),userSyncs.add({type:"iframe",url:"https://sync.serverbid.com/ss/"+IQ+".html",bidder:JQ}),properLog.mylog(LQ,JQ),c.incrementRequestsSent(g);var m=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+JQ+".edge")||!1;$.ajax({url:LQ,method:"POST",requestType:"cors",bidder:JQ,edge:t,data:JSON.stringify(e),success:function(e){try{var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(m,t);if(e){var r=(e=ProperMedia.utils.safeJsonParse(e))||{};if(r&&r.decisions&&0<Object.keys(r.decisions).length)for(KQ in r.decisions){var s=r.decisions[KQ],o=ProperMedia.utils.deepAccess(s,"pricing.clearPrice")||0,a=s.width||0,n=s.height||0,d=s.adId||"",p=s.adId||"",l=ProperMedia.utils.deepAccess(s,"contents[0].body")||"";c.logBidResponse(new adObj({bidder:JQ,size:a+"x"+n,price:parseFloat(o),gross:parseFloat(o),adcode:l,tag_id:KQ,crid:d,adid:p,request_url:LQ,response:e,response_ms:i,received_ts:t,ttl:GQ.default_bid_ttl,floor:ProperMedia.utils.deepAccess(u,KQ)||0})),c.incrementBidResponseCount(g)}else c.logNoBidResponse(new adObj({bidder:JQ,price:0,gross:0,tag_id:"",request_url:LQ,response:r,response_ms:i,received_ts:t,ttl:0}))}else c.logNoBidResponse(new adObj({bidder:JQ,price:0,gross:0,tag_id:"",request_url:LQ,response:e,response_ms:i,received_ts:t,ttl:0}));c.incrementBidResponseCount(g)}catch(e){throw e.bidder=JQ,e}},error:function(e){try{c.incrementBidResponseCount(g);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(m,t),r={bidder:JQ,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};c.logBidResponseError(r)}catch(e){throw e.bidder=JQ,e}}})},bidderInfo:GQ}),bidAdapters.conversant=(FR={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:24},GR="https://web.hb.ad.cpe.dotomi.com/s2s/header/24",HR="conversant",IR="propermedia",{send:function(u){if(!(i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+HR+".site_id")||0))return properLog.mylog("Error: Conversant Site ID is Required."),!1;var e=KR(u.requests),t=ProperMedia.utils.objectValues(e.imps)||[],g=e.data_map||{},s=e.request_cnt,i={id:Date.now().toString(),at:1,imp:t,site:{id:i.toString(),mobile:properDevice.isMobile()?1:0,page:properPage.bidder_page_url},device:(t=navigator.language?"language":"userLanguage",{h:screen.height,w:screen.width,dnt:ProperMedia.utils.getDNT()?1:0,language:navigator[t].split("-")[0],make:navigator.vendor||"",ua:navigator.userAgent}),user:{ext:{fpc:properUser.pubcid}}};0<(t=function(){var t=userIds.getEidsArray();if(ProperMedia.utils.isArray(t)&&0<t.length){const i={"adserver.org":1,"liveramp.com":1,"criteo.com":1,"id5-sync.com":1,"parrable.com":1,"digitru.st":1,"liveintent.com":1};t.forEach(function(e){i.hasOwnProperty(e.source)&&t.push(e)})}return t}()).length&&ProperMedia.utils.deepSetValue(i,"user.ext.eids",t),""!=(t=schainCheck(HR))&&ProperMedia.utils.deepSetValue(i,"source.ext.schain",t),gdprConsent&&(ProperMedia.utils.deepSetValue(i,"user.ext.consent",gdprConsent.consentString),"boolean"==typeof gdprConsent.gdprApplies&&(i.regs={ext:{gdpr:Number(gdprConsent.gdprApplies)}})),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(i,"regs.ext.us_privacy",uspConsent.usPrivacy),properLog.mylog(GR,HR),u.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+HR+".edge")||!1;$.ajax({url:GR,method:"POST",requestType:"cors",bidder:HR,edge:t,data:JSON.stringify(i),success:function(p){try{var e,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(o,l);(p=ProperMedia.utils.safeJsonParse(p))&&p.seatbid&&0!=p.seatbid.length&&p.seatbid[0].bid&&p.seatbid[0].bid.length?(properLog.mylog(p,HR),Object.keys(p.seatbid).forEach(function(d){Object.keys(p.seatbid[d].bid).forEach(function(e){var t=p.seatbid[d].bid[e],i=(t.id,t.impid||""),r=t.price||0,s=t.w||1,o=t.h||1,a=t.adm||"",n=t.crid||"",e=t.nurl||"";e&&(a+=ProperMedia.utils.createTrackPixel(e),e="");i=new adObj({bidder:HR,size:s+"x"+o,price:parseFloat(r),gross:parseFloat(r),adcode:a,nurl:e,tag_id:i,crid:n,request_url:GR,response:t,response_ms:c,received_ts:l,ttl:FR.default_bid_ttl,floor:ProperMedia.utils.deepAccess(g,i)||0});u.logBidResponse(i)})})):(properLog.mylog("no conversant bids returned"),e=new adObj({bidder:HR,price:0,gross:0,tag_id:"",request_url:GR,response:p,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(e)),u.incrementBidResponseCount(s)}catch(e){throw e.bidder=HR,e}},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:HR,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=HR,e}}})},onBidWon:function(e,t){return e.nurl&&((new Image).src=e.nurl),!0},bidderInfo:FR,formatRequest:KR}),bidAdapters.criteo=function(){var bidderInfo={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:6e4,acceptable_ads:!0,gvlid:91},bidder="criteo",networkId=8388,ENDPOINT_URL="https://bidder.criteo.com/cdb",FAST_BID_VERSION_CURRENT=130,PUBLISHER_TAG_URL="https://static.criteo.net/js/ld/publishertag.prebid."+FAST_BID_VERSION_CURRENT+".js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",ADAPTER_VERSION=34,PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,SID_COOKIE_NAME="cto_sid",IDCPY_COOKIE_NAME="cto_idcpy",LWID_COOKIE_NAME="cto_lwid",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,adblock_zones={"160x600":1697406,"728x90":1697405,"300x250":1697404,"320x50":1697453},NATIVE_DEF_REQ={main_image:{required:!0,sizes:[]},icon:{required:!0,sizes:[{width:50,height:50}]},clickUrl:{required:!0},title:{required:!0,len:80},sponsored_by:{required:!0},ctatext:{required:!1}};function parseSize(e){e=e.split("x");return[parseInt(e[0]),parseInt(e[1])]}function formatRequest(a,n,d,p){var l={slots:{},request_cnt:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i=a[e][t],r=parseSize(e),s=i.split("-"),o=properUser.checkAdBlock()?adblock_zones[e]:s[0],s="display"==d.demand_type?"banner":d.demand_type;if(!o)return;void 0===l.slots[i]&&(l.slots[i]={impid:i,auctionId:p,transactionid:ProperMedia.utils.generateUUID()},ProperMedia.utils.deepSetValue(l,"slots."+i+".ext.floors."+s,{}),"display"!=d.demand_type&&"native"!=d.demand_type||(l.slots[i].sizes=[]),"native"==d.demand_type?(l.slots[i].zoneid=o,l.slots[i].native=!0):"video"==d.demand_type&&(l.slots[i].video={playersizes:[r],mimes:["video/mp4","application/javascript"],protocols:[2,3,5,6],maxduration:30,api:[1,2],skip:0,placement:"outstream"==d.video_type?3:1,minduration:5,playbackmethod:[6],startdelay:0},l.slots[i].zoneid=o)),"display"!=d.demand_type&&"native"!=d.demand_type||l.slots[i].sizes.push(r),ProperMedia.utils.deepSetValue(l,"slots."+i+".ext.floors."+s+"."+e,getBidderFloor(n,e)),l.request_cnt++}}),l}function formatCriteoRequest(a,n,d,p,l){var c={bids:{},slots:{},request_cnt:0};return 0<Object.keys(a).length&&Object.keys(a).forEach(function(e){for(var t=0;t<a[e].length;t++){var i,r=a[e][t],s=parseSize(e),o=r.split("-")[0];void 0===c.slots[r]&&(c.bids[r]={bidder:n,params:{}},c.slots[r]={adUnitCode:r.toString(),auctionId:p,bidId:ProperMedia.utils.makeid(14),bidder:"criteo",bidderRequestId:l,userId:userIds.getUIdsObj(),userIdAsEids:userIds.getEidsArray(),schain:{},mediaTypes:{},params:{},src:"client",transactionId:ProperMedia.utils.generateUUID()},c.slots[r].getFloor=function(e={currency:"USD",mediaType:"*",size:"*"}){return getBidderFloor(n,e.size.join("x"))},""!=(i=schainCheck(n))&&ProperMedia.utils.deepSetValue(c,"slots."+r+".schain",i),"display"==d.demand_type&&(c.slots[r].mediaTypes={banner:{sizes:[]}},c.slots[r].params.networkId=networkId,c.bids[r].params.networkId=networkId),"native"==d.demand_type?(c.slots[r].mediaTypes={native:NATIVE_DEF_REQ},c.slots[r].params.zoneId=o,c.bids[r].params.zoneId=o):"video"==d.demand_type&&(c.slots[r].mediaTypes={video:{playerSize:s,mimes:["video/mp4","application/javascript"],protocols:[2,3,5,6],maxduration:30,api:[1,2],skip:0,placement:"outstream"==d.video_type?3:1,minduration:5,playbackmethod:[6],startdelay:0}},c.slots[r].params.zoneId=o,c.bids[r].params.zoneId=o)),"display"==d.demand_type&&c.slots[r].mediaTypes.banner.sizes.push(s),"native"==d.demand_type&&c.slots[r].mediaTypes.native.main_image.sizes.push(s),c.request_cnt++}}),c}function send(u){var e,g=u.bidder,m=properOps.bidder_info[g]||m,h=ENDPOINT_URL,s=0,t=[],i=ProperMedia.utils.deepAccess(u,"auction.id");ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.enabled")&&(networkId=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.bidder_ids.networkId")||networkId),publisherTagAvailable()||(window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid(),setTimeout(function(){var e=document.createElement("script");e.src=PUBLISHER_TAG_URL,e.async=!0,e.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(e)},1200));var r=[],o=userIds.getUserIdData();if(ProperMedia.utils.deepAccess(o,"emailHashes.md5")&&r.push({id:ProperMedia.utils.deepAccess(o,"emailHashes.md5"),atype:3,ext:{stype:"hemmd5"}}),ProperMedia.utils.deepAccess(o,"emailHashes.sha256")&&r.push({id:ProperMedia.utils.deepAccess(o,"emailHashes.sha256"),atype:3,ext:{stype:"hemsha256"}}),r.length&&(e={data:{eids:[{source:properPage.domain,uids:r}]}}),publisherTagAvailable()){properLog.mylog("Criteo: Using FastBid");var a=formatCriteoRequest(u.requests,g,m,i,d),t=ProperMedia.utils.objectValues(a.slots)||[],n=ProperMedia.utils.objectValues(a.bids)||[],d=ProperMedia.utils.makeid(14),n={auctionId:i,auctionStart:Date.now(),bidderCode:g,bidderRequestId:d,bids:n,gdprConsent:{consentString:gdprConsent.consentString||"",vendorData:gdprConsent.vendorData||{},gdprApplies:!!gdprConsent.gdprApplies},uspConsent:uspConsent.usPrivacy||"",refererInfo:{canonicalUrl:properPage.canonical_url,numIframes:0,reachedTop:!0,referer:properPage.referrer},userExt:e,coppa:"undefined"!==ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?!!ProperMedia.utils.deepAccess(properSpecialOps,"coppa"):void 0},n=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,n,properOps.prebid_version),h=n.buildCdbUrl(),n=n.buildCdbRequest(),s=a.request_cnt}else{properLog.mylog("Criteo: Sovrn Building Request");a=buildContext();h=buildCdbUrl(a);a=formatRequest(u.requests,g,m,i),i=ProperMedia.utils.objectValues(a.slots)||[];if(s=a.request_cnt,0==i.length)return!1;n={publisher:{url:properPage.bidder_page_url},slots:i,regs:{coppa:"undefined"!==ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?Number(!!ProperMedia.utils.deepAccess(properSpecialOps,"coppa")):void 0}};"display"==m.demand_type&&(n.publisher.networkid=parseInt(networkId));i=schainCheck(g);""!=i&&ProperMedia.utils.deepSetValue(n,"source.ext.schain",i),e&&ProperMedia.utils.deepSetValue(n,"user.ext",e),gdprConsent&&(n.gdprConsent={},void 0!==gdprConsent.gdprApplies&&(n.gdprConsent.gdprApplies=!!gdprConsent.gdprApplies),n.gdprConsent.version=gdprConsent.apiVersion,void 0!==gdprConsent.consentString&&(n.gdprConsent.consentData=gdprConsent.consentString)),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(n,"user.uspIab",uspConsent.usPrivacy)}var _={method:"POST",url:"request_url",data:n,bidRequests:t};properLog.mylog(h,g),u.incrementRequestsSent(s);var b=ProperMedia.utils.getTimestampMs();$.ajax({url:h,requestType:"cors",method:"POST",data:JSON.stringify(n),success:function(e){try{properLog.mylog(e,g);var t,i,r,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(b,p),c=ProperMedia.utils.safeJsonParse(e);publisherTagAvailable()?!(t=Criteo.PubTag.Adapters.Prebid.GetAdapter(_))||(i=t.interpretResponse(c,_))&&0<i.length&&i.forEach(function(e){var t=e.impid||"",i=e.cpm||0,r=e.width||0,s=e.height||0,o=e.ad||"",a=e.dealId||"",n=e.creativeId||"",d=1e3*e.ttl||m.default_bid_ttl,n=new adObj({bidder:g,size:r+"x"+s,price:parseFloat(i),gross:parseFloat(i),tag_id:t,dealid:a,crid:n,request_url:h,response:e,response_ms:l,received_ts:p,ttl:d});"native"==m.demand_type?(n.type="native",d=e.native||{},n.native=buildNative(d),"2x2"==n.size&&(n.size="1x1")):"video"==m.demand_type?(e=e.vastUrl,n.type="video",n.vast_tag=e,e=ProperMedia.utils.parseVastVpaid(n.vast_tag),n.vast_type=e.vast_type,n.vpaid=e.vpaid,n.video_type=m.video_type):n.adcode=o,u.logBidResponse(n)}):c&&c.slots&&0<Object.keys(c.slots).length?Object.keys(c.slots).forEach(function(e){var t=c.slots[e],i=t.impid||"",r=(t.zoneid,t.cpm||0),s=t.width||0,o=t.height||0,a=t.creative||"",n=t.deal||"",d=t.creativecode||"",e=1e3*t.ttl||m.default_bid_ttl,d=new adObj({bidder:g,size:s+"x"+o,price:parseFloat(r),gross:parseFloat(r),tag_id:i,dealid:n,crid:d,request_url:h,response:t,response_ms:l,received_ts:p,ttl:e});"native"==m.demand_type?(d.type="native",e=t.native||{},d.native=buildNative(e),"2x2"==d.size&&(d.size="1x1")):"video"==m.demand_type?(t=t.displayurl,d.type="video",d.vast_tag=t,t=ProperMedia.utils.parseVastVpaid(d.vast_tag),d.vast_type=t.vast_type,d.vpaid=t.vpaid,d.video_type=m.video_type):d.adcode=a,u.logBidResponse(d)}):(r=new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:h,response:c,response_ms:l,received_ts:p,ttl:0}),u.logNoBidResponse(r)),u.incrementBidResponseCount(s)}catch(e){throw e.bidder=g,e}},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t),r={bidder:g,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=g,e}}})}function buildNative(e){return{link:{url:ProperMedia.utils.deepAccess(e,"products.0.click_url")||""},assets:[{title:{text:ProperMedia.utils.deepAccess(e,"products.0.title")||""}},{img:{type:1,url:ProperMedia.utils.deepAccess(e,"products.0.image.url")||""}},{img:{type:2,url:ProperMedia.utils.deepAccess(e,"advertiser.logo.url")||""}},{type:1,value:ProperMedia.utils.deepAccess(e,"advertiser.description")||""},{type:2,value:ProperMedia.utils.deepAccess(e,"products.0.description")||""},{type:12,value:ProperMedia.utils.deepAccess(e,"products.0.call_to_action")||""}],imptrackers:(ProperMedia.utils.deepAccess(e,"impression_pixels")||[]).map(function(e){return e.url})}}function buildNativeFromPrebidNativeAd(e){return ProperMedia.utils.deepAccess(e,"clickUrl"),ProperMedia.utils.deepAccess(e,"title"),ProperMedia.utils.deepAccess(e,"image"),ProperMedia.utils.deepAccess(e,"icon.url"),ProperMedia.utils.deepAccess(e,"sponsoredBy"),ProperMedia.utils.deepAccess(e,"body"),ProperMedia.utils.deepAccess(e,"cta"),ProperMedia.utils.deepAccess(e,"impressionTrackers"),1}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=properStorage.getDataFromLocalStorage(fastBidStorageKey,{bidderCode:bidder,gvlid:bidderInfo.gvlid});if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)properLog.mylog("No hash found in FastBid"),properStorage.removeDataFromLocalStorage(fastBidStorageKey,{bidderCode:bidder,gvlid:bidderInfo.gvlid});else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);try{properLog.mylog("Using Criteo FastBid"),eval(publisherTag)}catch(e){console.error(e)}}}}catch(e){properLog.mylog("Criteo: Unable to get fast bid")}}function buildContext(){return{url:properPage.url,debug:"1"===ProperMedia.utils.deepAccess(properPage,"get_vars.pbt_debug"),noLog:"1"===ProperMedia.utils.deepAccess(properPage,"get_vars.pbt_nolog"),amp:!0}}function buildCdbUrl(e){var t=ENDPOINT_URL;t+="?profileId="+PROFILE_ID_INLINE,t+="&av="+String(ADAPTER_VERSION),t+="&wv="+encodeURIComponent(properOps.prebid_version),t+="&cb="+String(Math.floor(99999999999*Math.random())),e.amp&&(t+="&im=1"),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1");e=readFromAllStorages(BUNDLE_COOKIE_NAME);e&&(t+=`&bundle=${e}`),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(t+="&optout=1");e=readFromAllStorages(SID_COOKIE_NAME);e&&(t+=`&sid=${e}`);e=readFromAllStorages(IDCPY_COOKIE_NAME);return e&&(t+=`&idcpy=${e}`),t}function getUserSyncs(){var e,i,t="criteoPrebidAdapter";return gdprConsent.gdprApplies&&gdprConsentModule.hasPurpose1Consent()&&((e=[]).push(`origin=${t}`),e.push(`topUrl=${properPage.domain}`),gdprConsent&&(gdprConsent.gdprApplies&&e.push(`gdpr=${1==gdprConsent.gdprApplies?1:0}`),gdprConsent.consentString&&e.push(`gdpr_consent=${gdprConsent.consentString}`)),uspConsent.ccpaApplies&&uspConsent.usPrivacy&&e.push(`us_privacy=${uspConsent.usPrivacy}`),i=Math.random().toString(),t={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:properStorage.cookiesAreEnabled({bidderCode:bidder,gvlid:bidderInfo.gvlid}),localWebId:readFromAllStorages(LWID_COOKIE_NAME),lsw:properStorage.localStorageIsEnabled({bidderCode:bidder,gvlid:bidderInfo.gvlid}),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:t,requestId:i,secureIdCookie:readFromAllStorages(SID_COOKIE_NAME),tld:properPage.domain,topUrl:properPage.domain,uid:readFromAllStorages(IDCPY_COOKIE_NAME),version:"$prebid.version$".replace(/\./g,"_")},window.addEventListener("message",function e(t){t.data&&"https://gum.criteo.com"==t.origin&&t.data.requestId===i&&(this.removeEventListener("message",e),t.stopImmediatePropagation(),(t=t.data).optout?(deleteFromAllStorages(IDCPY_COOKIE_NAME),deleteFromAllStorages(SID_COOKIE_NAME),deleteFromAllStorages(BUNDLE_COOKIE_NAME),deleteFromAllStorages(LWID_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):(t.uid&&saveOnAllStorages(IDCPY_COOKIE_NAME,t.uid,GUID_RETENTION_TIME_HOUR),t.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,t.bundle,GUID_RETENTION_TIME_HOUR),t.removeSid?deleteFromAllStorages(SID_COOKIE_NAME):t.sid&&saveOnAllStorages(SID_COOKIE_NAME,t.sid,GUID_RETENTION_TIME_HOUR)))},!0),t=JSON.stringify(t).replace(/"/g,"%22"),userSyncs.add({type:"iframe",url:`https://gum.criteo.com/syncframe?${e.join("&")}#${t}`,bidder:bidder})),[]}function readFromAllStorages(e){var t=properStorage.getCookie(e,{bidderCode:bidder,gvlid:bidderInfo.gvlid}),e=properStorage.getDataFromLocalStorage(e,{bidderCode:bidder,gvlid:bidderInfo.gvlid});return t||e||void 0}function saveOnAllStorages(e,t,i){var r=new Date;r.setTime(r.getTime()+60*i*60*1e3);r=`expires=${r.toUTCString()}`;properStorage.setCookie(e,t,r,null,null,{bidderCode:bidder,gvlid:bidderInfo.gvlid}),properStorage.setDataInLocalStorage(e,t,{bidderCode:bidder,gvlid:bidderInfo.gvlid})}function deleteFromAllStorages(e){properStorage.setCookie(e,"",0,null,null,{bidderCode:bidder,gvlid:bidderInfo.gvlid}),properStorage.removeDataFromLocalStorage(e,{bidderCode:bidder,gvlid:bidderInfo.gvlid})}return{send:send,bidderInfo:bidderInfo,getUserSyncs:getUserSyncs,formatRequest:formatRequest}}(),bidAdapters.emx=(XU=[{key:"idl_env",source:"liveramp.com",rtiPartner:"idl",queryParam:"idl"},{key:"uid2.id",source:"uidapi.com",rtiPartner:"UID2",queryParam:"uid2"}],{send:function(c){var u=c.bidder,g=properOps.bidder_info[u]||g,e=ZU(c.requests,u,g),m=ProperMedia.utils.objectValues(e.imps)||[],h=e.data_map||{},s=e.request_cnt,_="https://hb.emxdgt.com?t=1000&ts="+Date.now(),t={id:Date.now().toString(),imp:m,site:{domain:ProperMedia.utils.getPageDomain(),page:properPage.bidder_page_url,ref:properPage.referrer},device:{ua:navigator.userAgent,js:1,dnt:ProperMedia.utils.getDNT()?1:0,h:properPage.height,w:properPage.width,devicetype:properDevice.isMobile()?1:2,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage},cur:"USD",version:"1.5.1"};0<(e=(e=userIds.getUIdsObj(),XU.map(function(r){return function({key:e,source:t,rtiPartner:i}){e=r[e];return e?{source:t,uids:[{id:e,ext:{rtiPartner:i}}]}:null}}(e)).filter(function(e){return e}))).length&&ProperMedia.utils.deepSetValue(t,"user.ext.eids",e),""!=(e=schainCheck(u))&&ProperMedia.utils.deepSetValue(t,"source.ext.schain",e),ProperMedia.utils.deepSetValue(t,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(t,"user.ext.consent",gdprConsent.consentString),uspConsent.usPrivacy&&(t.us_privacy=uspConsent.usPrivacy),properLog.mylog(_,u),c.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+u+".edge")||!1;$.ajax({url:_,method:"POST",requestType:"cors",bidder:u,edge:e,data:JSON.stringify(t),success:function(d){try{d=ProperMedia.utils.safeJsonParse(d);var e,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(o,p);d&&d.seatbid&&0<d.seatbid.length&&d.seatbid[0].bid&&0<d.seatbid[0].bid.length?(properLog.mylog(d,u),Object.keys(d.seatbid).forEach(function(e){var t=d.seatbid[e].bid[0],i=t.id||"",r=(t.crid||t.id,t.price||0),s=t.w||1,o=t.h||1,a=t.adm||"",n=t.crid||"",e=1e3*t.ttl||g.default_bid_ttl;1==s&&1==o&&("display"==g.demand_type&&ProperMedia.utils.deepAccess(m,"0.banner.w")&&ProperMedia.utils.deepAccess(m,"0.banner.h")?(s=ProperMedia.utils.deepAccess(m,"0.banner.w"),o=ProperMedia.utils.deepAccess(m,"0.banner.h")):"video"==g.demand_type&&ProperMedia.utils.deepAccess(m,"0.video.w")&&ProperMedia.utils.deepAccess(m,"0.videor.h")&&(s=ProperMedia.utils.deepAccess(m,"0.video.w"),o=ProperMedia.utils.deepAccess(m,"0.videor.h")));e=new adObj({bidder:u,size:s+"x"+o,price:parseFloat(r),gross:parseFloat(r),tag_id:i,crid:n,request_url:_,response:t,response_ms:l,received_ts:p,ttl:e,floor:ProperMedia.utils.deepAccess(h,i)||0});if("video"==g.demand_type){i=a;e.type="video",e.vast_tag=i;i=ProperMedia.utils.parseVastVpaid(e.vast_tag);e.vast_type=i.vast_type,e.vpaid=i.vpaid,e.video_type=g.video_type}else{try{a=decodeURIComponent(a)||""}catch(e){a=t.adm||""}e.adcode=a}c.logBidResponse(e)})):(e=new adObj({bidder:u,price:0,gross:0,tag_id:"",request_url:_,response:d,response_ms:l,received_ts:p,ttl:0}),c.logNoBidResponse(e)),c.incrementBidResponseCount(s)}catch(e){throw e.bidder=u,e}},error:function(e){try{c.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:u,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};c.logBidResponseError(r)}catch(e){throw e.bidder=u,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:183},getUserSyncs:function(){var e=[],t="https://biddr.brealtime.com/check.html";gdprConsent&&"string"==typeof gdprConsent.consentString&&("boolean"==typeof gdprConsent.gdprApplies?e.push(["gdpr",Number(gdprConsent.gdprApplies)],["gdpr_consent",gdprConsent.consentString]):e.push(["gdpr_consent",gdprConsent.consentString])),0<e.length&&(t+="?"+e.map(function(e){e.join("=")}).join("&")),userSyncs.add({type:"iframe",url:t,bidder:"emx"})},formatRequest:ZU}),bidAdapters.gumgum=(mW={t:0,rq:8,pbv:properOps.prebid_version},oW=null,pW=null,qW="gumgum",{send:function(P){var w=P.bidder,M=properOps.bidder_info[w]||M;ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".site_id")&&(e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".site_id")||"").split("-"),pW=properDevice.isMobile()&&2==e.length?e[1]:e[0]);var s=function(e){function r(e){return new RegExp(`[?#&](${e}=(.*?))($|&)`,"i")}var t,i,s,o={};try{s=window.top,t=s.screen,i=e||""}catch(e){return o}o={vw:s.innerWidth,vh:s.innerHeight,sw:t.width,sh:t.height,pu:function(i){return["ggad","ggdeal"].reduce((e,t)=>{t=i.match(r(t));return t?(t[1]&&(e=e.replace(t[1],"")),t[3]?e.replace(t[3],""):e):e},i)}(i),ce:properStorage.cookiesAreEnabled({bidderCode:qW}),dpr:s.devicePixelRatio||1,jcsi:JSON.stringify(mW),ogu:function(){var e=(document&&document.getElementsByTagName("head")[0]).querySelector("meta[property='og:url']");return e?e.content:null}()},(s=function(){var e=window.navigator&&(window.navigator.mozConnection||window.navigator.webkitConnection);return(e=e&&(e.downlink||e.bandwidth))?Math.round(1024*e):null}())&&(o.ns=s);(s=(i.match(r("ggad"))||[0,0,0])[2])&&(o[isNaN(s)?"eAdBuyId":"adBuyId"]=s);(i=(i.match(r("ggdeal"))||[0,0,0])[2])&&(o.ggdeal=i);return o}(properPage.url),o=function(){userId=userIds.getUIdsObj();var s=["uid","eid","lipbid"];return Object.keys(userId).reduce(function(e,t){var i=userId[t];switch(typeof i){case"string":e[t]=i;break;case"object":var r=s.filter(function(e){return void 0!==i[e]});r.length&&(e[t]=i[r[0]])}return e},{})}(),a=schainCheck(w),e=sW(P.requests,w,M),t=ProperMedia.utils.objectValues(e.imps)||[];0<Object.keys(t).length&&Object.keys(t).forEach(function(e){!function(_){var e,t=new Date,i={pi:_.type,lt:t.getTime(),to:t.getTimezoneOffset()};pW?i.pubId=pW:i.t=_.zoneId;3==_.type&&(r=function(e){var r=0,s=0,o=0;return e.forEach(function(e){var[t,i]=e,e=i<t?t:i;(o<e||e===o&&r<=t&&s<=i)&&(o=e,r=t,s=i)}),[r,s]}(_.sizes),i.maxw=r[0],i.maxh=r[1],i.si=_.slotId||"",i.bf=_.sizes.reduce(function(e,t){return e+((e.length?",":"")+t.join("x"))},""));oW&&(i.pv=oW);_.bidfloor&&(i.fp=_.bidfloor||0,i.fpc="USD");for(e in o)i[e]=o[e];gdprConsent&&(i.gdprApplies=gdprConsent.gdprApplies?1:0);i.gdprApplies&&(i.gdprConsent=gdprConsent.consentString);uspConsent.usPrivacy&&(i.uspConsent=uspConsent.usPrivacy);ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(i.coppa=1);a&&a.nodes&&(i.schain=function(e){var t=e.ver+","+e.complete;return e.nodes.map(function(e){t+=`!${encodeURIComponent(e.asi||"")},`,t+=`${encodeURIComponent(e.sid||"")},`,t+=`${encodeURIComponent(e.hp||"")},`,t+=`${encodeURIComponent(e.rid||"")},`,t+=`${encodeURIComponent(e.name||"")},`,t+=`${encodeURIComponent(e.domain||"")}`}),t}(a));i=ProperMedia.utils.mergeObject(i,s);var b="https://g2.gumgum.com/hbid/imp?"+ProperMedia.utils.formatQueryString(i),f=_.sizes.length,v={id:ProperMedia.utils.makeid(14),tmax:3e3,tId:ProperMedia.utils.generateUUID(),pi:i.pi,sizes:_.sizes,url:b,method:"GET",data:i};properLog.mylog(b,w),P.incrementRequestsSent(f);var y=ProperMedia.utils.getTimestampMs(),r=ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".edge")||!1;$.ajax({url:b,method:"GET",bidder:w,edge:r,success:function(e){try{var t,i,r,s,o,a,n,d,p,l,c,u=ProperMedia.utils.getTimestampMs(),g=ProperMedia.utils.calcResponseMs(y,u);e?(e=ProperMedia.utils.safeJsonParse(e))&&Object.keys(e).length&&!e.err?(properLog.mylog(e,w),i=(t=e.ad||{}).price||0,r=t.id||"",s=t.markup||"",o=t.width||0,a=t.height||0,n=e.cw||"",d=ProperMedia.utils.deepAccess(e,"meta.adomain")||[],n&&(s=n?(m=n,h=Object.assign({},e,{bidRequest:v}),m.replace("AD_JSON",ProperMedia.utils.b64EncodeUnicode(JSON.stringify(h)))):s),oW=ProperMedia.utils.deepAccess(e,"pag.pvid")||null,p=ProperMedia.utils.deepAccess(_,"native_size")||o+"x"+a,l=new adObj({bidder:w,price:parseFloat(i),gross:parseFloat(i),adcode:s,tag_id:_.tag_id,size:p,crid:r,adomain:d,request_url:b,response:t,response_ms:g,received_ts:u,ttl:M.default_bid_ttl,floor:_.bidfloor||0}),P.logBidResponse(l)):(c="No "+w+" bids returned. "+(ProperMedia.utils.deepAccess(e,"err")?e.err:""),properLog.mylog(c),P.logNoBidResponse(new adObj({bidder:w,price:0,gross:0,tag_id:"",request_url:b,response:e,response_ms:g,received_ts:u,ttl:0}))):P.logNoBidResponse(new adObj({bidder:w,price:0,gross:0,tag_id:"",request_url:b,response:e,response_ms:g,received_ts:u,ttl:0})),P.incrementBidResponseCount(f)}catch(e){throw e.bidder=w,e}var m,h},error:function(e){try{P.incrementBidResponseCount(f);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(y,t),r={bidder:w,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};P.logBidResponseError(r)}catch(e){throw e.bidder=w,e}}})}(t[e])})},bidderInfo:{rev_share:1,bid_grouping:"slot",default_bid_ttl:6e4,native_sizes:{sticky_horizontal:"1x1",native_horizontal:"1x1"},gvlid:61},formatRequest:sW,removeCreative:function(e){try{var t,i=window.top.document.getElementById("GG_PXS");!i||(t=i.parentNode)&&t.parentNode.removeChild(t)}catch(e){console.error(e)}}}),bidAdapters.ix=function(){var e={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:10},i="ix_features",c=null,a={"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":"","trustpid.com":""};let n={gvlid:e.gvlid,bidderCode:"ix"};const I={featureToggles:{},isFeatureEnabled:function(e){return ProperMedia.utils.deepAccess(this.featureToggles,`features.${e}.activated`)},getFeatureToggles:function(){var e;properStorage.localStorageIsEnabled(n)&&(e=ProperMedia.utils.safeJsonParse(properStorage.getDataFromLocalStorage(i,n)),ProperMedia.utils.deepAccess(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles())},setFeatureToggles:function(e){const t=new Date;e=ProperMedia.utils.deepAccess(e,"ext.features");e&&(this.featureToggles={expiry:t.setHours(t.getHours()+1),features:e},properStorage.localStorageIsEnabled(n)&&properStorage.setDataInLocalStorage(i,JSON.stringify(this.featureToggles),n))},clearFeatureToggles:function(){this.featureToggles={},properStorage.localStorageIsEnabled(n)&&properStorage.removeDataFromLocalStorage(i,n)}};function d(n,d,p){var l={imps:[],index_bids:{},request_cnt:0};return 0<Object.keys(n).length&&Object.keys(n).forEach(function(e){for(var t=0;t<n[e].length;t++){var i,r,s,o,a=n[e][t];void 0===l.imps[a]&&(i=a+"-"+ProperMedia.utils.makeid(5),r=e.split("x"),s=getBidderFloor(d,e),o={id:String(i),bidfloor:s,bidfloorcur:"USD",ext:{sid:i,siteID:String(c)}},"display"==p.demand_type?o.banner={topframe:1,format:[{w:parseInt(r[0])||0,h:parseInt(r[1])||0,ext:{bidfloor:s}}]}:"video"==p.demand_type&&(o.video={placement:1,topframe:1,skip:1,linearity:1,minduration:10,maxduration:30,playbackmethod:[2],api:[1,2],mimes:["video/mp4","application/javascript"],protocols:[2,3,5,6],w:parseInt(r[0])||0,h:parseInt(r[1])||0}),"outstream"==p.video_type&&(o.video.placement=4),l.imps.push(o),l.index_bids[i]={width:parseInt(r[0]),height:parseInt(r[1]),tag_id:a,floor:s}),l.request_cnt++}}),l}return{send:function(b){var f=b.bidder,v=properOps.bidder_info[f]||v;I.getFeatureToggles();var e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+f+".site_id")||"").toString().split("-")||["",""];if(!(c=properDevice.isMobile()&&2==e.length?e[1]:e[0]))return properLog.mylog("Error: "+f+" Site ID is Required."),!1;var y=d(b.requests,f,v),t=y.imps||[],P=y.request_cnt,e={id:ProperMedia.utils.generateUUID(),site:{ref:properPage.referrer,page:properPage.bidder_page_url},ext:{source:"prebid",ixdiag:{sn:0,ls:properStorage.localStorageIsEnabled(n),imps:t.length||0}},imp:t},i=function(e){var t=[],i={};if(Array.isArray(e))for(var r=0;r<e.length;r++){var s=e[r];void 0!==a[s.source]&&ProperMedia.utils.deepAccess(s,"uids.0")&&(i[s.source]=!0,""!=a[s.source]&&(s.uids[0].ext={rtiPartner:a[s.source]}),delete s.uids[0].atype,t.push(s))}return{toSend:t,seenSources:i}}(userIds.getEidsArray()),r=i.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var s=window.headertag.getIdentityInfo();if(s&&"object"==typeof s)for(var o in s)void 0===s[o]||!(o=s[o]).responsePending&&o.data&&"object"==typeof o.data&&Object.keys(o.data).length&&!i.seenSources[o.data.source]&&r.push(o.data)}0<r.length&&ProperMedia.utils.deepSetValue(e,"user.eids",r),ProperMedia.utils.deepSetValue(e,"source.tid",ProperMedia.utils.deepAccess(b,"auction.id")),""!=(t=schainCheck(f))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&ProperMedia.utils.deepSetValue(e,"regs.coppa",1),void 0!==gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),void 0!==gdprConsent.consentString&&ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString||""),void 0!==gdprConsent.addtlConsent&&gdprConsent.addtlConsent&&ProperMedia.utils.deepSetValue(e,"user.ext.consented_providers_settings.consented_providers",gdprConsent.addtlConsent),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),t=c,JSON.stringify(e);let w="https://htlb.casalemedia.com/cygnus?s="+t;properLog.mylog(w,f),b.incrementRequestsSent(P);var M=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+f+".edge")||!1;$.ajax({url:w,contentType:"text/plain",method:"POST",bidder:f,edge:t,data:JSON.stringify(e),success:function(e){try{var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(M,t);if(e)if((e=ProperMedia.utils.safeJsonParse(e))&&e.seatbid&&0!=e.seatbid.length&&e.seatbid[0].bid&&e.seatbid[0].bid.length){properLog.mylog(e,f);for(var r=0;r<e.seatbid.length;r++)for(var s=0;s<e.seatbid[r].bid.length;s++){var o,a=e.seatbid[r].bid[s],n=a.impid||"",d=a.cid||"",p=a.crid||"",l=a.adid||"",c=a.adomain||[],u=a.adm||"",g=ProperMedia.utils.isNumber(a.ttl)?1e3*a.ttl:v.default_bid_ttl,m=parseFloat(a.price/100)||0,h=y.index_bids[n],_=new adObj({bidder:f,price:m,gross:m,tag_id:h.tag_id,cid:d,crid:p,adid:l,adomain:c,request_url:w,response:a,response_ms:i,received_ts:t,ttl:g,floor:ProperMedia.utils.deepAccess(h,"floor")||0});"video"==v.demand_type?(_.type="video",_.size=h.width+"x"+h.height,_.vast_tag=ProperMedia.utils.deepAccess(a,"ext.vasturl"),o=ProperMedia.utils.parseVastVpaid(_.vast_tag),_.vast_type=o.vast_type,_.vpaid=o.vpaid,_.video_type=v.video_type):(_.size=a.w+"x"+a.h,_.adcode=u),b.logBidResponse(_)}I.setFeatureToggles(e)}else properLog.mylog("No "+f+" bids returned"),b.logNoBidResponse(new adObj({bidder:f,price:0,gross:0,tag_id:"",request_url:w,response:e,response_ms:i,received_ts:t,ttl:0}));else b.logNoBidResponse(new adObj({bidder:f,price:0,gross:0,tag_id:"",request_url:w,response:e,response_ms:i,received_ts:t,ttl:0}));b.incrementBidResponseCount(P)}catch(e){throw e.bidder=f,e}},error:function(e){try{b.incrementBidResponseCount(P);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(M,t),r={bidder:f,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};b.logBidResponseError(r)}catch(e){throw e.bidder=f,e}}})},bidderInfo:e,getUserSyncs:function(){userSyncs.add({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html",bidder:"ix"})},formatRequest:d}}(),bidAdapters.justpremium=(UZ={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:6e4,dont_refresh:1,gvlid:62,native_sizes:{desktop:{skin:"1x1",sticky_horizontal:"728x90",native_horizontal:"728x90"},mobile:{sticky_horizontal:"320x50",native_horizontal:"320x50"}}},YZ="justpremium",{send:function(m){var t,i,r,s,h=ZZ(m.requests),_=h.request_cnt;if(0==_)return!1;(o={zone:Object.keys(h.imps).map(function(e){return parseInt(e)}),referer:properPage.url,hostname:window.top.location.hostname,protocol:window.top.location.protocol.replace(":",""),sw:window.top.screen.width,sh:window.top.screen.height,ww:window.top.innerWidth,wh:window.top.innerHeight,c:(r=h.imps,s={},Object.keys(r).forEach(function(e){s[r[e].tag_id]=r[e].slot_types}),s),id:parseInt(Object.keys(h.imps).shift()),sizes:(t=h.imps,i={},Object.keys(t).forEach(function(e){i[t[e].tag_id]=t[e].sizes}),i),version:{prebid:properOps.prebid_version,jp_adapter:"1.8.3"}}).pubcid=properUser.pubcid,o.uids=userIds.getUIdsObj(),properOps.schain&&ProperMedia.utils.deepSetValue(o,"schain",properOps.schain),gdprConsent&&(o.gdpr_consent={consent_string:gdprConsent.consentString,consent_required:"boolean"!=typeof gdprConsent.gdprApplies||gdprConsent.gdprApplies}),uspConsent.usPrivacy&&(o.us_privacy=uspConsent.usPrivacy);var e=JSON.stringify(o),b="https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date;properLog.mylog(b,YZ),m.incrementRequestsSent(_);var f=ProperMedia.utils.getTimestampMs(),o=ProperMedia.utils.deepAccess(properOps,"bidders.header."+YZ+".edge")||!1;$.ajax({method:"POST",url:b,requestType:"cors",bidder:YZ,edge:o,data:e,success:function(e){try{var t,i,r,s,o,a,n,d,p,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(f,l);if(e=ProperMedia.utils.safeJsonParse(e),properLog.mylog(e,YZ),e&&e.bid)for(var u in e.bid)e.bid[u]&&0<e.bid[u].length?(t=e.bid[u].pop(),i=u,r=t.price||0,s=t.width||1,o=t.height||1,a=t.adm||"",n=t.id||"",d=1e3*t.ttl||UZ.default_bid_ttl,p=ProperMedia.utils.deepAccess(h,"JPbids."+i)||s+"x"+o,g=new adObj({bidder:YZ,size:p,price:parseFloat(r),gross:parseFloat(r),adcode:a,tag_id:i,crid:n,request_url:b,response:t,ttl:d,response_ms:c,received_ts:l}),m.logBidResponse(g)):(g=new adObj({bidder:YZ,price:0,gross:0,tag_id:"",request_url:b,response:e,response_ms:c,received_ts:l,ttl:0}),m.logNoBidResponse(g));else{var g=new adObj({bidder:YZ,price:0,gross:0,tag_id:"",request_url:b,response:e,response_ms:c,received_ts:l,ttl:0});m.logNoBidResponse(g)}m.incrementBidResponseCount(_)}catch(e){throw e.bidder=YZ,e}},error:function(e){try{m.incrementBidResponseCount(_);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(f,t),r={bidder:YZ,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};m.logBidResponseError(r)}catch(e){throw e.bidder=YZ,e}}})},bidderInfo:UZ,getUserSyncs:function(){var e="?_c=a"+Math.random().toString(36).substring(7)+Date.now();"boolean"==typeof gdprConsent.gdprApplies&&gdprConsent.gdprApplies&&gdprConsent.consentString&&(e+="&consentString="+encodeURIComponent(gdprConsent.consentString)),uspConsent.usPrivacy&&(e+="&usPrivacy="+encodeURIComponent(uspConsent.usPrivacy)),userSyncs.add({type:"iframe",url:"https://pre.ads.justpremium.com/v/1.0/t/sync"+e,bidder:YZ})},formatRequest:ZZ}),bidAdapters.kargo=(T$={rev_share:1,bid_grouping:"page",default_bid_ttl:3e5,gvlid:972,native_sizes:{native_vertical:"300x250",native_horizontal:"300x250",sticky_horizontal:"300x50"}},U$={301:24},V$="kargo",W$="https://krk.kargo.com/api/v2/bid",X$="https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}",Y$=5,Z$="",{send:function(p){if(properPage.isolated)return properLog.mylog("Turn off Kargo bidder for isolated pages"),!0;var l=a_(p.requests),s=l.request_cnt,e={sessionId:properSession.sessionData.uuid,requestCount:window.location?Z$!==window.location.pathname?(Z$=window.location.pathname,requestCounter=0):++requestCounter:0,timeout:550,currency:"USD",cpmGranularity:1,timestamp:(new Date).getTime(),bidIDs:l.bidIDs,bidSizes:l.bidSizes,cpmRange:{floor:l.floor,ceil:999999},userIDs:{},pageURL:window.location.href},t={userIDs:function(e,t){var i=g_(),t={kargoID:i.userId,clientID:i.clientId,crbIDs:i.syncIds||{},optOut:i.optOut,usp:t};gdprConsent&&(t.gdpr={consent:gdprConsent.consentString||"",applies:!!gdprConsent.gdprApplies});e&&(t.tdID=e);return t}(!1,t=uspConsent.usPrivacy||"1---"),pageURL:window.location.href,rawCRB:properStorage.getCookie("krg_crb",{bidderCode:V$,gvlid:T$.gvlid}),rawCRBLocalStorage:h_("krg_crb")};ProperMedia.utils.mergeObject(e,t),properLog.mylog(W$,V$),p.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+V$+".edge")||!1;$.ajax({url:W$+"?json="+encodeURIComponent(JSON.stringify(e)),method:"GET",bidder:V$,edge:t,requestType:"cors",success:function(a){try{a=ProperMedia.utils.safeJsonParse(a);var e,n=ProperMedia.utils.getTimestampMs(),d=ProperMedia.utils.calcResponseMs(o,n);a&&0<Object.keys(a).length?(properLog.mylog(a,V$),Object.keys(a).forEach(function(e){var t=a[e],i=t.width+"x"+t.height,r=Number(t.cpm)||0,s=t.adm||"",o=t.id||"";t.metadata&&t.metadata.landingPageDomain&&t.metadata.landingPageDomain,ProperMedia.utils.deepAccess(l,"tag_size_map."+e)&&(i=ProperMedia.utils.deepAccess(l,"tag_size_map."+e)),301==t.targetingCustom&&0==properAdPool.displayed_ads.length&&(properPage.takeover.bidder=V$,properPage.takeover.price=U$[t.targetingCustom]||r,properPage.isolated=1);t=new adObj({bidder:V$,size:i,price:parseFloat(r),gross:parseFloat(r),adcode:s,tag_id:e,crid:o,request_url:W$,response:t,response_ms:d,received_ts:n,ttl:T$.default_bid_ttl,floor:ProperMedia.utils.deepAccess(l,"floor")||0});p.logBidResponse(t)})):(properLog.mylog("no kargo bids returned"),e=new adObj({bidder:V$,price:0,gross:0,tag_id:"",request_url:W$,response:a,response_ms:d,received_ts:n,ttl:0}),p.logNoBidResponse(e)),function(){var e=ProperMedia.utils.generateUUID(),t=function(){var e=g_();if(e)return e.clientId;return null}();if(e&&t)for(var i=0;i<Y$;i++)userSyncs.add({type:"image",url:X$.replace("{UUID}",t).replace("{SEED}",e).replace("{INDEX}",i),bidder:V$})}(),p.incrementBidResponseCount(s)}catch(e){throw e.bidder=V$,e}},error:function(e){try{p.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:V$,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};p.logBidResponseError(r)}catch(e){throw e.bidder=V$,e}}})},onBidWon:function(e,t){return 0==ProperMedia.utils.deepAccess(properPage,"takeover.logged")&&""!=ProperMedia.utils.deepAccess(properPage,"takeover.bidder")&&ProperMedia.utils.deepAccess(properPage,"takeover.bidder")==e.bidder&&properLog.send_takeover_pixel(t,e),!0},bidderInfo:T$,formatRequest:a_}),bidAdapters.lockerdome=(oaa="lockerdome",paa="https://lockerdome.com/ladbid/prebid",{formatRequest:qaa,send:function(c){var e=qaa(c.requests),t=ProperMedia.utils.objectValues(e.bidRequests)||[],s=e.request_cnt;if(0==(e={bidRequests:t,referrer:properPage.referrer,url:properPage.bidder_page_url}).bidRequests.length)return!1;e.gdpr={applies:gdprConsent.gdprApplies,consent:gdprConsent.consentString},uspConsent.usPrivacy&&(e.us_privacy={consent:uspConsent.usPrivacy}),c.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs();properLog.mylog(paa,oaa),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+oaa+".edge")||!1,$.ajax({method:"POST",url:paa,requestType:"cors",bidder:oaa,edge:t,data:JSON.stringify(e),success:function(d){try{properLog.mylog(d,oaa);var e,d=ProperMedia.utils.safeJsonParse(d),p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(o,p);d&&d.bids&&0<Object.keys(d.bids).length?Object.keys(d.bids).forEach(function(e){var t=d.bids[e],i=t.requestId||"",r=t.cpm||0,s=t.width||1,o=t.height||1,a=(t.creativeId,t.currency,t.netRevenue,t.ad||""),n=t.creativeId||"",e=1e3*t.ttl||12e4,e=new adObj({bidder:oaa,size:s+"x"+o,price:parseFloat(r),gross:parseFloat(r),adcode:a,tag_id:i,crid:n,request_url:paa,response:t,response_ms:l,received_ts:p,ttl:e});c.logBidResponse(e)}):(e=new adObj({bidder:oaa,price:0,gross:0,tag_id:"",request_url:paa,response:d,response_ms:l,received_ts:p,ttl:0}),c.logNoBidResponse(e)),c.incrementBidResponseCount(s)}catch(e){throw e.bidder=oaa,e}},error:function(e){try{c.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:oaa,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};c.logBidResponseError(r)}catch(e){throw e.bidder=oaa,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page"}}),bidAdapters.mantis=(_aa={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:18e5},a0a="mantis",c0a="https://mantodea.mantisadnetwork.com",Dba="iframe",Eba=function(t){if(window.$sf){var e=!1;$sf.ext.register(t.width,t.height,function(){$sf.ext.inViewPercentage()<50||e||(e=!0,t0a(t.pixel))})}else for(var i=document.getElementsByTagName("iframe"),r=0;r<i.length;r++){var s=i[r];s.name==t.frame&&s0a(s,function(e){t0a(t.pixel),e()},1e3,.5)}},window.addEventListener("message",TraceKit.wrap(function(e){e.data.mantis&&e.data.type==Dba&&Eba(e.data.data)}),!1),{send:function(u){var e=e0a(u.requests),t=ProperMedia.utils.objectValues(e.bids)||[],g=e.request_cnt,e=ProperMedia.utils.deepAccess(properOps,"bidders.header.mantis.site_id")||"5b32cf14d866814de2efe8c2";if(1==properOps.testing_mode.ids&&(e="demo"),0==g.total)return!1;var m=g0a("/prebid/display",{measurable:!0,property:e,bids:t})+"&foo";properLog.mylog(m,a0a),u.incrementRequestsSent(g);var h=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header.mantis.edge")||!1;$.ajax({url:m,requestType:"cors",bidder:a0a,edge:t,success:function(e){try{properLog.mylog(e,a0a);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(h,t);if((e=ProperMedia.utils.safeJsonParse(e))&&e.ads&&0<e.ads.length){void 0!==e.uuid&&function(e){if(window.mantis_uuid)return;if(window.mantis_uuid=e,window.localStorage)try{window.localStorage.setItem("mantis:uuid",e)}catch(e){}}(e.uuid);for(var r=0;r<e.ads.length;r++){var s=e.ads[r],o=s.bid||"",a=s.view||"",n=s.cpm||0,d=s.width||0,p=s.height||0,l=s.html||"",c=new adObj({bidder:a0a,size:d+"x"+p,price:parseFloat(n),gross:parseFloat(n),adcode:l,tag_id:o,crid:a,request_url:m,response:s,response_ms:i,received_ts:t,ttl:_aa.default_bid_ttl});u.logBidResponse(c)}}else{c=new adObj({bidder:a0a,price:0,gross:0,tag_id:"",request_url:m,response:e,response_ms:i,received_ts:t,ttl:0});u.logNoBidResponse(c)}u.incrementBidResponseCount(g)}catch(e){throw e.bidder=a0a,e}},error:function(e){try{u.incrementBidResponseCount(g);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(h,t),r={bidder:a0a,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=a0a,e}}})},bidderInfo:_aa,getUserSyncs:function(){userSyncs.add({type:"iframe",url:g0a("/prebid/iframe"),bidder:a0a})},formatRequest:e0a}),bidAdapters.medianet=(o1a="8CUW4K2MG",{send:function(u){var g="https://prebid.media.net/rtb/prebid?cid="+(o1a=ProperMedia.utils.deepAccess(properOps,"bidders.header.undefined.site_id")||o1a),m=u.bidder,h=properOps.bidder_info[m]||h,e=q1a(u.requests,m,h),t=ProperMedia.utils.objectValues(e.imps)||[],_=e.data_map||{},s=e.request_cnt,e={canonicalUrl:t1a('link[rel="canonical"]',"href"),twitterUrl:t1a('meta[property="og:url"]',"content"),ogUrl:t1a('meta[name="twitter:url"]',"content")},e=ProperMedia.utils.mergeObject({domain:properPage.domain,page:properPage.bidder_page_url,ref:properPage.referrer,canonical_url:properPage.canonical_url,isTop:!0},e),e={id:Date.now().toString(),site:e,imp:t,ext:{customer_id:o1a.toString(),prebid_version:properOps.prebid_version,screen:{w:window.innerWidth,h:window.innerHeight}},tmax:550};""!=(t=schainCheck(m))&&ProperMedia.utils.deepSetValue(e,"ext.schain",t),(t=userIds.getUIdsObj())&&Object.keys(t).length&&ProperMedia.utils.deepSetValue(e,"ext.user_id",t),ProperMedia.utils.deepSetValue(e,"ext.coppa_applies",!!ProperMedia.utils.deepAccess(properSpecialOps,"coppa")),gdprConsent&&"boolean"==typeof gdprConsent.gdprApplies&&(ProperMedia.utils.deepSetValue(e,"ext.gdpr_applies",!!gdprConsent.gdprApplies),gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(e,"ext.gdpr_consent_string",gdprConsent.consentString||"")),ProperMedia.utils.deepSetValue(e,"ext.usp_applies",!!uspConsent),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"ext.usp_consent_string",uspConsent.usPrivacy),properLog.mylog(g,m),u.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".edge")||!1;$.ajax({url:g,method:"POST",requestType:"cors",bidder:m,edge:t,data:JSON.stringify(e),success:function(e){try{var t,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(o,l);(e=ProperMedia.utils.safeJsonParse(e))&&e.bidList&&0!=e.bidList.length?(properLog.mylog(e,m),e.bidList.map(function(e){var t=e.requestId||"",i=e.cpm||0,r=e.width||1,s=e.height||1,o=e.ad||"",a=e.creativeId||"",n=e.nurl||!1,d=1e3*e.ttl||h.default_bid_ttl;n&&"video"!==h.demand_type&&(o+=ProperMedia.utils.createTrackPixel(n),n="");var p,t=new adObj({bidder:m,size:r+"x"+s,price:parseFloat(i),gross:parseFloat(i),adcode:o,nurl:n,tag_id:t,crid:a,request_url:g,response:e,response_ms:c,received_ts:l,ttl:d,floor:ProperMedia.utils.deepAccess(_,t)||0});"video"==h.demand_type?(p=e.vastUrl||e.vastXml||o,t.type="video",t.vast_tag=p,p=ProperMedia.utils.parseVastVpaid(t.vast_tag),t.vast_type=p.vast_type,t.vpaid=p.vpaid,t.video_type=h.video_type):"native"==h.demand_type?(t.type="native",(p=e.native).clickTrackers=ProperMedia.utils.deepAccess(p,"link.clicktrackers")||[],t.native=p):t.adcode=o,e.no_bid?u.logNoBidResponse(t):u.logBidResponse(t)})):(properLog.mylog("no medianet bids returned"),t=new adObj({bidder:m,price:0,gross:0,tag_id:"",request_url:g,response:e,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(t)),u.incrementBidResponseCount(s)}catch(e){throw e.bidder=m,e}},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:m,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=m,e}}})},onBidWon:function(e,t){return e.nurl&&((new Image).src=e.nurl),!0},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:142},formatRequest:q1a}),bidAdapters.nativo=(G2a={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:36e4,gvlid:263,native_sizes:{native_vertical:"300x250",native_horizontal:"300x250"}},I2a="nativo",{formatRequest:K2a,send:function(h){var _=h.bidder,b=properOps.bidder_info[_]||b,e=K2a(h.requests,_),f=e.data_map||{},v=e.request_cnt,t=e.floors,i={adUnits:ProperMedia.utils.objectValues(e.adUnits)},i=[{key:"ntv_pb_rid",value:ProperMedia.utils.generateUUID()},{key:"ntv_ppc",value:btoa(JSON.stringify(i))},{key:"ntv_dbr",value:btoa(JSON.stringify(e.request_counts))},{key:"ntv_url",value:encodeURIComponent(properPage.bidder_page_url)}];Object.keys(t).length&&i.unshift({key:"ntv_ppf",value:btoa(JSON.stringify(t))}),i.unshift({key:"ntv_ptd",value:e.placementIds.join(",")}),gdprConsent&&i.unshift({key:"ntv_gdpr_consent",value:gdprConsent.consentString}),uspConsent.usPrivacy&&i.unshift({key:"us_privacy",value:uspConsent.usPrivacy});var y="https://exchange.postrelease.com/prebid"+("?"+i.reduce(function(e,t){return i=t.key,t=t.value,e+(e.length?"&":"")+i+"="+t;var i},""));properLog.mylog(y,_),h.incrementRequestsSent(v);var P=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+_+".edge")||!1;$.ajax({url:y,method:"GET",bidder:_,edge:i,success:function(e){try{var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(P,t);if(e)if((e=ProperMedia.utils.safeJsonParse(e))&&e.seatbid&&0!=e.seatbid.length&&e.seatbid[0].bid&&e.seatbid[0].bid.length){properLog.mylog(e,_);for(var r=0;r<e.seatbid.length;r++)for(var s=0;s<e.seatbid[r].bid.length;s++){var o=e.seatbid[r].bid[s],a=o.w||1,n=o.h||1,d=o.impid||"",p=o.adm||"",l=o.crid||"",c=o.adomain||[],u=o.id||"",g=a+"x"+n,m=parseFloat(o.price)||0;(ProperMedia.utils.deepAccess(f,d+".tag_sizes")||[]).length&&(g=ProperMedia.utils.deepAccess(f,d+".tag_sizes.0")||g),h.logBidResponse(new adObj({bidder:_,price:m,gross:m,adcode:p,size:g,tag_id:d,crid:l,dealid:u,adomain:c,request_url:y,response:o,response_ms:i,received_ts:t,ttl:o.ttl||b.default_bid_ttl}))}!function(e){var t={};t.gdpr=gdprConsent.gdprApplies?1:0,t.gdpr_consent=gdprConsent.consentString||"",t.us_privacy=encodeURIComponent(uspConsent.usPrivacy);var i=ProperMedia.utils.formatQueryString(t,!0);e.seatbid.forEach(function(e){e.syncUrls.forEach(function(e){""!==e.url.trim()&&userSyncs.add({type:e.type,url:e.url.replace("{GDPR_params}",i),bidder:I2a})})})}(e)}else properLog.mylog("No "+_+" bids returned"),h.logNoBidResponse(new adObj({bidder:_,price:0,gross:0,tag_id:"",request_url:y,response:e,response_ms:i,received_ts:t,ttl:0}));else h.logNoBidResponse(new adObj({bidder:_,price:0,gross:0,tag_id:"",request_url:y,response:e,response_ms:i,received_ts:t}));h.incrementBidResponseCount(v)}catch(e){throw e.bidder=_,e}},error:function(e){try{h.incrementBidResponseCount(v);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(P,t),r={bidder:_,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};h.logBidResponseError(r)}catch(e){throw e.bidder=_,e}}})},bidderInfo:G2a}),bidAdapters.nobid=(window.nobidVersion="1.3.2",window.nobid=window.nobid||{},window.nobid.bidResponses=window.nobid.bidResponses||{},window.nobid.timeoutTotal=0,window.nobid.bidWonTotal=0,window.nobid.refreshCount=0,window.nobid.renderTag=function(e,t){t=window.nobid.bidResponses[t.toString()];t&&t.adm2&&(t=t.adm2,e.write(t),e.close())},window.addEventListener("message",function(e){var t=e[e.message?"message":"data"].toString();"nbTagRenderer.requestAdMarkup|"===t.substring(0,"nbTagRenderer.requestAdMarkup|".length)&&(t=t.substring(t.indexOf("|")+1),window.nobid&&window.nobid.bidResponses&&((t=window.nobid.bidResponses[t.toString()])&&t.adm2&&((t=t.adm2)&&e.source.postMessage("nbTagRenderer.renderAdInSafeFrame|"+t,"*"))))},!1),{send:function(l){Rca=l.bidder;var c=properOps.bidder_info[Rca]||c;if(Tca={gvlid:c.gvlid,bidderCode:Rca},!(Sca=Number(ProperMedia.utils.deepAccess(properOps,"bidders.header."+Rca+".site_id"))))return properLog.mylog("No_Bid: Error Site ID is Required."),!1;if(void 0!==window.nobid.refreshLimit&&window.nobid.refreshLimit<window.nobid.refreshCount)return properLog.mylog("No_Bid: refreshLimit met: "+window.nobid.refreshCount),!1;var e=properStorage.getCookie("_ublock",Tca);if(e)return properLog.mylog("No_Bid: Request blocked for user. hours: "+e),!1;var t=Uca(l.requests,0,c);const s=t.request_count;var i={sid:Sca,l:properPage.url,tt:encodeURIComponent(document.title).replace(/'|;|quot;|39;|&|&|#|\r\n|\r|\n|\t|\f|%0A|"|%22|%5C|%23|%26|%26|%09/gm,""),a:Object.keys(t.imps).map(e=>t.imps[e]),t:function(){function e(e){return e.toString().padStart(2,"0")}const t=new Date,i=t.getDate(),r=t.getFullYear(),s=t.getMonth()+1,o=t.getHours(),a=t.getMinutes(),n=t.getSeconds();return r+"-"+e(s)+"-"+e(i)+" "+e(o)+":"+e(a)+":"+e(n)}(),tz:Math.round((new Date).getTimezoneOffset()),r:function(){try{var e=Math.max(document.documentElement.clientWidth,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return`${e}x${t}`}catch(e){}}(),lang:navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage,ref:properPage.referrer,gdpr:{},usp:uspConsent.usPrivacy||"",pjbdr:"nobid",schain:schainCheck(Rca)||null,eids:ProperMedia.utils.deepCopy(userIds.getEidsArray())||[],coppa:ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?{coppa:!0}:null,ortb2:{site:{domain:properPage.domain,page:properPage.url,referrer:properPage.referrer}}};"boolean"==typeof gdprConsent.gdprApplies&&(ProperMedia.utils.deepSetValue(i,"gdpr.consentRequired",gdprConsent.gdprApplies),gdprConsent.consentString&&ProperMedia.utils.deepSetValue(i,"gdpr.consentString",gdprConsent.consentString));let u=1==properOps.testing_mode.ids?"https://qa-ads.nobid.com/adreq":"https://ads.servenobid.com/adreq";properLog.mylog(u,Rca),l.incrementRequestsSent(s),window.nobid.refreshCount++;var r=!(!gdprConsent.gdprApplies||!gdprConsentModule.hasPurpose1Consent());const g=ProperMedia.utils.getTimestampMs();e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+Rca+".edge")||!1,$.ajax({url:u+"?cb="+Math.floor(11e3*Math.random()),method:"POST",requestType:"cors",bidder:Rca,edge:e,withCredentials:r,data:JSON.stringify(i).replace(/'|&|#/g,""),success:function(e){try{var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(g,t);if((n=e)&&void 0!==n.rlimit&&(window.nobid.refreshLimit=n.rlimit),(a=e)&&void 0!==a.ublock&&function(e,t,i){var r=new Date;r.setTime(r.getTime()+60*i*60*1e3);r="expires="+r.toUTCString();properStorage.setCookie(e,t,r,Tca)}("_ublock","1",a.ublock),e&&"object"==typeof e&&e.bids&&0!==e.bids.length){properLog.mylog(e,Rca);for(const d of e.bids)if(!(d.bdrid<100)){window.nobid.bidResponses[d.id?.toString()]=d;var r,{h:s,w:o}=d.size;const p=new adObj({bidder:Rca,size:(o??1)+"x"+(s??1),price:parseFloat(d.price??d.bucket??0),gross:parseFloat(d.price??d.bucket??0),adcode:d.adm,tag_id:d.divid,crid:d.creativeid,dealid:d.dealid,request_url:u,response:d,ttl:3e5});"video"!=c.demand_type&&"video"!=d.atype||(r=ProperMedia.utils.parseVastVpaid(d.vastXml)?.vast_type,d.vastUrl&&(p.vast_tag=d.vastUrl,p.vast_type=r),d.vastXml&&(p.vast_tag=d.vastXml,p.vast_type=r)),l.logBidResponse(p)}}else properLog.mylog("no no-bid bids returned"),l.logNoBidResponse(new adObj({bidder:Rca,price:0,gross:0,tag_id:"",request_url:u,response:e,response_ms:i,received_ts:t,ttl:0}))}catch(e){throw e.bidder=Rca,e}var a,n},error:function(e){try{l.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(g,t),r={bidder:Rca,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};l.logBidResponseError(r)}catch(e){throw e.bidder=Rca,e}}})},onBidWon:function(e,t){return window.nobid.bidWonTotal++,!0},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:816},getUserSyncs:function(){let e="";return gdprConsent&&"string"==typeof gdprConsent.consentString&&("boolean"==typeof gdprConsent.gdprApplies?e+=`?gdpr=${Number(gdprConsent.gdprApplies)}&gdpr_consent=${gdprConsent.consentString}`:e+=`?gdpr_consent=${gdprConsent.consentString}`),uspConsent.usPrivacy&&(0<e.length?e+="&":e+="?",e+="usp_consent="+uspConsent.usPrivacy),[{type:"iframe",url:"https://public.servenobid.com/sync.html"+e}]},formatRequest:Uca}),bidAdapters.ogury=(n3a={rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:6e4,gvlid:31,native_sizes:{sticky_horizontal:"1x1"}},o3a="ogury",p3a="https://ms-cookie-sync.presage.io",q3a="https://mweb-hb.presage.io/api/header-bidding-request",{send:function(m){if(!(s3a=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o3a+".site_id")||0))return properLog.mylog("Ogury: Error Site ID is Required."),!1;if(!function(){try{if("mobile"!=properDevice.device_type)return void properLog.mylog("Ogury: Not a correct device, Ogury is mobile only");var e=(properDevice.browser_version||"0").toString().split(".")[0];if(properDevice.os_group.includes("iOS")){if(properDevice.browser.includes("Safari"))return!(Number(e)<10)||void properLog.mylog("Ogury: Not a correct Safari version");if(properDevice.browser.includes("Chrome"))return!(Number(e)<83)||void properLog.mylog("Ogury: Not a correct Chrome version");if(properDevice.browser.includes("Facebook"))return 1}if(properDevice.os_group.includes("Android")){if(properDevice.browser.includes("Samsung"))return 1;if(properDevice.browser.includes("Chrome"))return!(Number(e)<83)||void properLog.mylog("Ogury: Not a correct Chrome version");if(properDevice.browser.includes("Facebook"))return 1}return void properLog.mylog("Ogury: Not a correct OS/Browser/Version")}catch(e){return}}())return properLog.mylog("Ogury: Not a correct device"),!1;var e=u3a(m.requests),t=ProperMedia.utils.objectValues(e.imps)||[],h=e.data_map||{},s=e.request_cnt;if(0==t.length)return!1;e={id:ProperMedia.utils.generateUUID(),tmax:550,at:1,regs:{ext:{gdpr:Number(gdprConsent.gdprApplies)}},site:{id:s3a,domain:ProperMedia.utils.getPageDomain(),page:properPage.bidder_page_url},user:{ext:{consent:""}},imp:t,ext:{adapterversion:"1.3.0",prebidversion:properOps.prebid_version}},"boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),gdprConsent.consentString&&ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString),m.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs();properLog.mylog(q3a,o3a),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+o3a+".edge")||!1,$.ajax({method:"POST",url:q3a,requestType:"cors",bidder:o3a,edge:t,headers:{"Content-Type":"application/json"},data:JSON.stringify(e),success:function(e){try{properLog.mylog(e,o3a),e=ProperMedia.utils.safeJsonParse(e);var t,u=ProperMedia.utils.getTimestampMs(),g=ProperMedia.utils.calcResponseMs(o,u);e&&e.seatbid&&0<e.seatbid.length?e.seatbid.forEach(function(e){e.bid.forEach(function(e){var t=e.impid||"",i=e.price||0,r=e.w||1,s=e.h||1,o=e.adm||"",a=e.id||"",n=e.adomain||[],d=e.nurl||"",p=e.ext||{},l=r+"x"+s,c=ProperMedia.utils.deepAccess(e,"ext.campaignid"),s={ext:p,size:l,width:r,height:s};(ProperMedia.utils.deepAccess(h,t+".tag_sizes")||[]).length&&(l=ProperMedia.utils.deepAccess(h,t+".tag_sizes.0")||l);t=new adObj({bidder:o3a,size:l,price:parseFloat(i),gross:parseFloat(i),adcode:o,ad_details:s,nurl:d,tag_id:t,crid:a,cid:c,adomain:n,request_url:q3a,response:e,response_ms:g,received_ts:u,ttl:n3a.default_bid_ttl,floor:ProperMedia.utils.deepAccess(h,t+".floor")||0});m.logBidResponse(t)})}):(t=new adObj({bidder:o3a,price:0,gross:0,tag_id:"",request_url:q3a,response:e,response_ms:g,received_ts:u,ttl:0}),m.logNoBidResponse(t)),m.incrementBidResponseCount(s)}catch(e){throw e.bidder=o3a,e}},error:function(e){try{m.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:o3a,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};m.logBidResponseError(r)}catch(e){throw e.bidder=o3a,e}}})},onBidWon:function(e,t){var i="display"==e.type?"banner":e.type,t={assetKey:s3a||"",adUnitId:e.tag_id||"",adUnitCode:t.div_id||"",creativeId:e.crid||"",campaignId:e.cid||"",requestId:e.tag_id||"",bidder:e.bidder||"",width:ProperMedia.utils.deepAccess(e,"ad_details.width")||1,height:ProperMedia.utils.deepAccess(e,"ad_details.height")||1,size:ProperMedia.utils.deepAccess(e,"ad_details.size")||"1x1",mediaType:i||"",cpm:e.price||0,ad:e.adcode||"",nurl:e.nurl||"",meta:{advertiserDomains:e.adomain},currency:"USD",netRevenue:!0,ttl:60,adapterVersion:"1.3.0",prebidVersion:properOps.prebid_version,params:[{assetKey:s3a||"",adUnitId:e.tag_id||"",adUnitCode:t.div_id||"",creativeId:e.crid||"",campaignId:e.cid||""}],ext:ProperMedia.utils.deepAccess(e,"ad_details.ext")||{}};return window.OG_PREBID_BID_OBJECT=t,e.nurl&&((new Image).src=e.nurl),!0},bidderInfo:n3a,getUserSyncs:function(){var e=gdprConsent.consentString||"";userSyncs.add({type:"image",url:p3a+"/v1/init-sync/bid-switch?iab_string="+e+"&source=prebid",bidder:o3a}),userSyncs.add({type:"image",url:p3a+"/ttd/init-sync?iab_string="+e+"&source=prebid",bidder:o3a}),userSyncs.add({type:"image",url:p3a+"/xandr/init-sync?iab_string="+e+"&source=prebid",bidder:o3a})},formatRequest:u3a}),bidAdapters.openx=(wea="openx",xea=null,yea=!0,zea="https://propermedia-d.openx.net/w/1.0/arj",Bea={britepoolid:"britepoolid",criteoId:"criteoid",fabrickId:"nuestarid",hadronId:"audigentid",id5id:"id5id",idl_env:"lre",IDP:"zeotapid",idxId:"idxid",intentIqId:"intentiqid",lipb:"lipbid",lotamePanoramaId:"lotameid",merkleId:"merkleid",netId:"netid",parrableId:"parrableid",pubcid:"pubcid",quantcastId:"quantcastid",tapadId:"tapadid",tdid:"ttduuid",uid2:"uid2",admixerId:"admixerid",deepintentId:"deepintentid",dmdId:"dmdid",nextrollId:"nextrollid",novatiq:"novatiqid",mwOpenLinkId:"mwopenlinkid",dapId:"dapid",amxId:"amxid",kpuid:"kpuid",publinkId:"publinkid",naveggId:"naveggid",imuid:"imuid",adtelligentId:"adtelligentid"},{formatRequest:Cea,send:function(w){var M=w.bidder,I=properOps.bidder_info[M]||I,e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+M+".site_id")||"").split("-");xea=properDevice.isMobile()&&2==e.length?e[1]:e[0];var t=Cea(w.requests,M),x=ProperMedia.utils.objectValues(t.data)||[],S=t.request_cnt,e={ju:properPage.bidder_page_url,jr:properPage.referrer,ch:document.charSet||document.characterSet,res:screen.width+"x"+screen.height+"x"+screen.colorDepth,ifr:!0,tz:(new Date).getTimezoneOffset(),tws:function(e){var t,i,r=window,s=document,o=s.documentElement;if(e){try{r=window.top,s=window.top.document}catch(e){return}o=s.documentElement,i=s.body,t=r.innerWidth||o.clientWidth||i.clientWidth,i=r.innerHeight||o.clientHeight||i.clientHeight}else o=s.documentElement,t=r.innerWidth||o.clientWidth,i=r.innerHeight||o.clientHeight;return t+"x"+i}(!0),aus:"",auid:"",aumfs:"",dddid:"",divIds:"",be:1,bc:"hb_pb_3.0.1",nocache:(new Date).getTime()},i=[],r=[],s=[],o=[],a=[];x.forEach(function(e){i.push(e.sizes.join(",")),r.push(e.tag_id),s.push(1e3*e.price_floor),o.push(ProperMedia.utils.generateUUID()),a.push(encodeURIComponent(e.slot_div))}),e.aus=i.join("|"),e.auid=r.join(","),e.aumfs=s.join(","),e.dddid=o.join(","),e.divIds=a.join(","),ProperMedia.utils.getDNT()&&(e.ns=1),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(e.tfcd=1),""!=(t=schainCheck(M))&&(e.schain=ProperMedia.utils.formatSupplyChainString(t)),void 0!==gdprConsent.consentString&&(e.gdpr_consent=gdprConsent.consentString),void 0!==gdprConsent.gdprApplies&&(e.gdpr=Number(gdprConsent.gdprApplies)),e.x_gdpr_f=1,uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy);var n,d,t=userIds.getUIdsObj();n=e,d=t,Object.keys(d).forEach(function(e){var t,i=d[e],r=Bea[e];if(Bea.hasOwnProperty(e))switch(e){case"merkleId":case"uid2":n[r]=i.id;break;case"lipb":n[r]=i.lipbid,Array.isArray(i.segments)&&0<i.segments.length&&(t="liveintent:"+i.segments.join("|"),n.sm=`${n.sm?n.sm+",":""}${t}`);break;case"parrableId":n[r]=i.eid;break;case"novatiq":n[r]=i.snowflake;break;case"id5id":n[r]=i.uid;break;default:n[r]=i}}),e=n,t=ProperMedia.utils.formatQueryString(e,!0),zea=I.alias?"https://onscroll-d.openx.net/v/1.0/avjp":zea;var k=(zea=ProperMedia.utils.deepAccess(properOps,"bidders.header."+M+".account_overrides.enabled")?ProperMedia.utils.deepAccess(properOps,"bidders.header."+M+".account_overrides.bidder_ids.endpoint_url")||zea:zea)+"?"+t;properLog.mylog(k,M),w.incrementRequestsSent(S);var A=ProperMedia.utils.getTimestampMs(),O=new Date,t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+M+".edge")||!1;$.ajax({url:k,requestType:"cors",bidder:M,edge:t,cache:!0,data:e,success:function(e){try{properLog.mylog(e,M);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(A,t),r=ProperMedia.utils.safeJsonParse(e)||{};if(r&&r.ads&&r.ads.ad&&0<Object.keys(r.ads.ad).length)for(var s=r.ads.ad||[],o=0;o<s.length;o++){var a=s[o]||{},n=a.creative[0]||{},d=Number(a.pub_rev)/1e3||0,p=a.html||"",l=n.width||1,c=n.height||1,u=a.adunitid||0,g=n.id||"",m=a.adid||"",h=a.idx||0;v=a,y=O,P=void 0,yea&&(yea=!1,(y={bd:+new Date-y,bp:v.pub_rev,br:"0",bs:ProperMedia.utils.getPageDomain(),bt:3e3,ts:v.ts}).br=y.bt<y.bd?"t":"p",v=(v&&v.creative&&v.creative[0]&&v.creative[0].tracking&&v.creative[0].tracking.impression||"").match(/([^?]+\/)ri\?/),(P=v&&1<v.length?v[1]+"bo?"+ProperMedia.utils.formatQueryString(y,!0):P)&&userSyncs.add({type:"image",url:P,bidder:wea+"_registerBeacon"}));var _=ProperMedia.utils.deepAccess(x,h+".price_floor")||0,b='<div id="'+(ProperMedia.utils.deepAccess(x,h+".slot_div")||"")+'"></div>',f=new adObj({bidder:M,size:l+"x"+c,price:d,gross:d,adcode:p=b+p,tag_id:u,crid:g,adid:m,request_url:k,response:a,response_ms:i,received_ts:t,ttl:I.default_bid_ttl,floor:_});w.logBidResponse(f)}else{f=new adObj({bidder:M,price:0,gross:0,tag_id:"",request_url:k,response:e,response_ms:i,received_ts:t,ttl:0});w.logNoBidResponse(f)}!function(e){var t="//u.openx.net/w/1.0/pd";e&&(e.ads&&e.ads.pixels?t=e.ads.pixels:e.pixels&&(t=e.pixels));e="";gdprConsent&&(e+="?gdpr="+(gdprConsent.gdprApplies?1:0),e+="&gdpr_consent="+encodeURIComponent(gdprConsent.consentString||""));uspConsent&&uspConsent.usPrivacy&&(e+=(0<e.length?"&":"?")+"us_privacy="+encodeURIComponent(uspConsent.usPrivacy));userSyncs.add({type:"iframe",url:t+e,bidder:wea})}(r),w.incrementBidResponseCount(S)}catch(e){throw e.bidder=M,e}var v,y,P},error:function(e){try{w.incrementBidResponseCount(S);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(A,t),r={bidder:M,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};w.logBidResponseError(r)}catch(e){throw e.bidder=M,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:69}}),bidAdapters.pubmatic=(j5a="https://hbopenbid.pubmatic.com/translator?source=prebid-client",l5a=109126,{send:function(_){var b=_.bidder,f=properOps.bidder_info[b]||f,e=p5a(_.requests,b,f),t=ProperMedia.utils.objectValues(e.imps)||[],v=e.data_map||{},y=e.request_cnt;if(l5a=f.alias?159475:l5a,properUser.checkAdBlockDetected()&&properUser.adblock.acceptable_ads&&properUser.adblock.deliver_to_adblock?l5a=161355:ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".account_overrides.enabled")&&(l5a=ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".account_overrides.bidder_ids.pubId")||l5a),0==t.length)return!1;e={id:""+(new Date).getTime(),at:1,cur:["USD"],imp:t,site:{page:properPage.bidder_page_url,domain:properPage.domain,ref:properPage.referrer,publisher:{id:l5a.toString()}},device:{ua:navigator.userAgent,js:1,h:parseInt(properPage.height),w:parseInt(properPage.width),dnt:0,language:navigator.language,geo:{}},user:{geo:{}},ext:{wrapper:{wp:"pbjs",wv:"prebid_prebid_"+properOps.prebid_version,transactionId:ProperMedia.utils.generateUUID()}},tmax:550},1==properOps.testing_mode.ids&&(e.test=1),e.device.language=e.device.language&&e.device.language.split("-")[0],(t=userIds.getEidsArray())&&t.length&&ProperMedia.utils.deepSetValue(e,"user.eids",t),""!=(t=schainCheck(b))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&ProperMedia.utils.deepSetValue(e,"regs.coppa",1),ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString||""),ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",gdprConsent.gdprApplies?1:0),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),properLog.mylog(j5a,b),_.incrementRequestsSent(y);var P=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".edge")||!1;$.ajax({method:"POST",url:j5a,requestType:"cors",bidder:b,edge:t,data:JSON.stringify(e),success:function(e){try{e=ProperMedia.utils.safeJsonParse(e);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(P,t);if(e&&e.seatbid&&0<e.seatbid.length&&e.seatbid[0].bid&&0<e.seatbid[0].bid.length)for(var r=0;r<e.seatbid.length;r++)if(e.seatbid[r].bid)for(var s=0;s<e.seatbid[r].bid.length;s++){var o,a=e.seatbid[r].bid[s],n=a.impid,d=a.price||0,p=a.w||0,l=a.h||0,c=a.cid||"",u=a.crid||"",g=a.adm||"",m=a.adomain||[],h=new adObj({bidder:b,size:p+"x"+l,price:parseFloat(d),gross:parseFloat(d),tag_id:n,cid:c,crid:u,adomain:m,request_url:j5a,response:a,response_ms:i,received_ts:t,ttl:f.default_bid_ttl,floor:ProperMedia.utils.deepAccess(v,n)||0});"native"==f.demand_type?(h.type="native",(o=(g=JSON.parse(g.replace(/\\/g,""))).native).clickTrackers=ProperMedia.utils.deepAccess(o,"link.clicktrackers")||[],h.native=o):h.adcode=g,_.logBidResponse(h)}else _.logNoBidResponse(new adObj({bidder:b,price:0,gross:0,tag_id:"",request_url:j5a,response:e.seatbid[r],response_ms:i,received_ts:t,ttl:0}));else _.logNoBidResponse(new adObj({bidder:b,price:0,gross:0,tag_id:"",request_url:j5a,response:e,response_ms:i,received_ts:t,ttl:0}));_.incrementBidResponseCount(y)}catch(e){throw e.bidder=b,e}},error:function(e){try{_.incrementBidResponseCount(y);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(P,t),r={bidder:b,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};_.logBidResponseError(r)}catch(e){throw e.bidder=b,e}}})},bidderInfo:{rev_share:.81,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,acceptable_ads:!0,gvlid:76},getUserSyncs:function(){var e="https://ads.pubmatic.com/AdServer/js/showad.js#PIX&kdntuid=1&p="+l5a;gdprConsent&&(e+="&gdpr="+(gdprConsent.gdprApplies?1:0),e+="&gdpr_consent="+encodeURIComponent(gdprConsent.consentString||"")),uspConsent.usPrivacy&&(e+="&us_privacy="+encodeURIComponent(uspConsent.usPrivacy)),userSyncs.add({type:"iframe",url:e,bidder:"pubmatic"})},formatRequest:p5a}),bidAdapters.rhythmone=(nfa="2.1",qfa=Date.now(),rfa=null,tfa="https://hbevents.1rx.io/audit",ufa=[2,3,5,6],vfa=["video/mp4","application/javascript"],wfa=[1,2,3,4],xfa=[1,2],yfa=[1,2],{formatRequest:zfa,send:function(h){var _=h.bidder,b=properOps.bidder_info[_]||b,e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+_+".site_id")||"").toString().split("-")||["",""];if(!(rfa=properDevice.isMobile()&&2==e.length?e[1]:e[0]))return properLog.mylog("Error: RhythmOne Site ID is Required."),!1;var f=zfa(h.requests,_,b),v=f.imps||[],y=f.data_map||{},P=f.imps.length,t=/(^v|(\.0)+$)/gi,w="https://tag.1rx.io/rmp/{placementId}/0/{path}?z={zone}";w=(w=(w=w.replace(/\{placementId\}/i,rfa)).replace(/\{zone\}/i,"1r")).replace(/\{path\}/i,"mvo"),w+="&hbv="+properOps.prebid_version.replace(t,"")+","+nfa.replace(t,""),e={id:ProperMedia.utils.generateUUID(),imp:v,site:{domain:properPage.domain,page:properPage.bidder_page_url,ref:properPage.referrer},device:{ua:navigator.userAgent,ip:"",dnt:ProperMedia.utils.getDNT()?1:0},at:1,tmax:550},""!=(t=schainCheck(_))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),e.user={ext:{consent:gdprConsent.gdprApplies?gdprConsent.consentString:""}},e.regs={ext:{gdpr:!!gdprConsent.gdprApplies&&Boolean(1&gdprConsent.gdprApplies)}},properLog.mylog(w,_),h.incrementRequestsSent(P),qfa=Date.now();var M=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+_+".edge")||!1;$.ajax({url:w,method:"POST",requestType:"cors",bidder:_,edge:t,data:JSON.stringify(e),success:function(e){try{properLog.mylog(e,_),e=ProperMedia.utils.safeJsonParse(e);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(M,t);if(e&&e.seatbid&&0<e.seatbid.length&&e.seatbid[0].bid&&0<e.seatbid[0].bid.length)for(var r=0;r<e.seatbid.length;r++)for(var s=0;s<e.seatbid[r].bid.length;s++){var o=e.seatbid[r].bid[s],a=o.impid||"",n=o.w||1,d=o.h||1,p=o.price||0,l=o.adm||"",c=o.crid||"",u=o.adomain||[];if(1==n&&1==d)try{n=("display"==b.demand_type?v[0].banner.format[0]:v[0].video).w,d=("display"==b.demand_type?v[0].banner.format[0]:v[0].video).h}catch(e){}else 1280==parseInt(n)&&760==parseInt(d)&&(n=properDevice.isMobile()?400:640,d=properDevice.isMobile()?300:480);var g,m=new adObj({bidder:_,size:n+"x"+d,price:parseFloat(p),gross:parseFloat(p),tag_id:n+"x"+d,crid:c,adomain:u,request_url:w,response:o,response_ms:i,received_ts:t,ttl:b.default_bid_ttl,floor:ProperMedia.utils.deepAccess(y,a)||0});"video"==b.demand_type?(m.type="video",m.vast_tag=o.nurl||"",g=ProperMedia.utils.parseVastVpaid(m.vast_tag),m.vast_type=g.vast_type,m.vpaid=g.vpaid,m.video_type=b.video_type):m.adcode=l,h.logBidResponse(m)}else{m=new adObj({bidder:_,price:0,gross:0,tag_id:"",request_url:w,response:e,response_ms:i,received_ts:t,ttl:0});h.logNoBidResponse(m)}!function(e,t){var i=[],r=[],s=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+t+".site_id")||"").toString().split("-")||["",""],o=properDevice.isMobile()&&2==s.length?s[1]:s[0];Object.keys(e).forEach(function(e){i.push(e),r.push(o)});var a={doc_version:1,doc_type:"Prebid Audit",placement_id:r.join(",").replace(/[,]+/g,",").replace(/^,|,$/g,"")},n="undefined"!=typeof window?window:{document:{location:{href:""}}},s=n.document.location.ancestorOrigins,d=[],e=tfa+"?";s&&0<s.length&&(a.ancestor_origins=s[s.length-1]);a.popped=null!==n.opener?1:0,a.framed=n.top===n?0:1;try{a.url=n.top.document.location.href.toString()}catch(e){a.url=n.document.location.href.toString()}try{a.prebid_version=properOps.prebid_version.toString(),a.prebid_timeout=1200}catch(e){}a.response_ms=Date.now()-qfa,a.placement_codes=i.join(","),a.bidder_version=nfa,a.gdpr_consent=gdprConsent.consentString,a.gdpr="boolean"==typeof gdprConsent.gdprApplies&&gdprConsent.gdprApplies,Object.keys(a).forEach(function(e){d.push(encodeURIComponent(e)+"="+encodeURIComponent("object"==typeof a[e]?JSON.stringify(a[e]):a[e]))}),d.sort(),userSyncs.add({type:"image",url:e+d.join("&"),bidder:t})}(f,_),h.incrementBidResponseCount(P)}catch(e){throw e.bidder=_,e}},error:function(e){try{h.incrementBidResponseCount(P);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(M,t),r={bidder:_,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};h.logBidResponseError(r)}catch(e){throw e.bidder=_,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:35e4,gvlid:36}}),bidAdapters.rubicon=(Lga=8777,Mga=15380,Pga={"468x60":1,"728x90":2,"120x90":5,"120x600":8,"160x600":9,"300x600":10,"200x200":13,"250x250":14,"300x250":15,"336x280":16,"300x100":19,"980x120":31,"250x360":32,"180x500":33,"980x150":145,"468x400":37,"930x180":38,"750x100":39,"750x200":40,"750x300":41,"320x50":43,"300x50":44,"300x300":48,"1024x768":53,"300x1050":54,"970x90":55,"970x250":57,"1000x90":58,"320x80":59,"320x150":60,"1000x1000":61,"580x500":64,"640x480":65,"930x600":66,"320x480":67,"1800x1000":68,"320x320":72,"320x160":73,"980x240":78,"980x300":79,"980x400":80,"480x300":83,"970x310":94,"970x210":96,"480x320":101,"768x1024":102,"480x280":103,"250x800":105,"320x240":108,"1000x300":113,"320x100":117,"800x250":125,"200x600":126,"980x600":144,"320x250":159,"250x600":179,"600x300":195,"640x360":198,"640x200":199,"1030x590":213,"980x360":214,"320x180":229,"580x400":232,"400x600":257},Object.keys(Pga).forEach(function(e){Pga[Pga[e]]=e}),{send:function(y){var P=y.bidder,w=properOps.bidder_info[P]||w,e=Qga(y.requests,P,w),M=ProperMedia.utils.objectValues(e.imps)||[],I=e.request_cnt;if(0==I)return!1;var i=function(s){if(1===s.length)return s[0];var r=s.reduce(function(t,i,r){return Object.keys(i).forEach(function(e){t.hasOwnProperty(e)||(t[e]=new Array(s.length)),t[e].splice(r,1,i[e])}),t},{}),o=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(r).forEach(function(e){var t=r[e].join(";"),i=t.match(o);r[e]=i?i[1]:t}),r}(M);properUser.pubcid&&(i.ppuid=properUser.pubcid),(e=userIds.getEidsArray())&&e.length&&e.forEach(function(t){try{"adserver.org"===t.source?(i.tpid_tdid=t.uids[0].id,i["eid_adserver.org"]=t.uids[0].id):"liveintent.com"===t.source?(i["tpid_liveintent.com"]=t.uids[0].id,i["eid_liveintent.com"]=t.uids[0].id,t.ext&&Array.isArray(t.ext.segments)&&t.ext.segments.length&&(i["tg_v.LIseg"]=t.ext.segments.join(","))):"liveramp.com"===t.source?i.x_liverampidl=t.uids[0].id:"id5-sync.com"===t.source?i["eid_id5-sync.com"]=t.uids[0].id+"^"+t.uids[0].atype+"^"+(t.uids[0].ext&&t.uids[0].ext.linkType||""):i["eid_"+t.source]=t.uids[0].id+"^"+(t.uids[0].atype||"")}catch(e){properLog.mylog("Rubicon: error reading eid:"+t+". "+JSON.stringify(e))}}),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(i.coppa=1),"boolean"==typeof gdprConsent.gdprApplies&&(i.gdpr=Number(gdprConsent.gdprApplies)),i.gdpr_consent=gdprConsent.consentString,uspConsent.usPrivacy&&(i.us_privacy=encodeURIComponent(uspConsent.usPrivacy)),""!=(e=schainCheck(P))&&(i.rp_schain=ProperMedia.utils.formatSupplyChainString(e)),i.slots=M.length,i.rand=Math.random(),e=i,t=/^tg_v/,r=/^tg_i/,(s=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","rf","dt.id","dt.keyv","dt.pref","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","p_screen_res","rp_floor","rp_secure","tk_user_key"])).concat(Object.keys(e).filter(function(e){return-1===s.indexOf(e)}));var t,r,s,x="https://fastlane.rubiconproject.com/a/api/fastlane.json?"+ProperMedia.utils.formatQueryString(i,!0);properLog.mylog(x,P),y.incrementRequestsSent(I);var S=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+P+".edge")||!1;$.ajax({url:x,requestType:"cors",bidder:P,edge:e,success:function(e){try{properLog.mylog(e,P);var t=ProperMedia.utils.safeJsonParse(e)||{};if(t&&"object"==typeof t){var i=ProperMedia.utils.getTimestampMs(),r=ProperMedia.utils.calcResponseMs(S,i),s=t.ads||[];if(Array.isArray(s)&&0<s.length)for(var o=0;o<s.length;o++){var a,n,d,p,l,c,u,g,m,h,_,b,f=s[o],v=M&&M[o]&&M[o]["tg_fl.eid"]?M[o]["tg_fl.eid"]:"";"ok"===f.status?(a=f.cpm||0,n=f.status||"",d=f.script||"",p=f.type||"",l=f.size_id||"",c=f.dealid||"",u=f.adomain||[],t.zoneId,g=f.creative_id||f.crid||(f.network||"")+"-"+(f.advertiser||""),m=ProperMedia.utils.deepAccess(f,"ext.bidder.rp.advid")||"",h=Pga[l]||"unknown","script"==p&&d&&(d="<script>"+d+"<\/script>"),_=ProperMedia.utils.deepAccess(M,o+".rp_floor")||getBidderFloor(P,h),b={},void 0!==f.advertiser&&(b.advertiser=f.advertiser),void 0!==f.seat&&(b.seat=f.seat),void 0!==f.creative_id&&(b.creative_id=f.creative_id),void 0!==f.campaign_id&&(b.campaign_id=f.campaign_id),void 0!==f.ad_id&&(b.ad_id=f.ad_id),f=new adObj({bidder:P,size:h,price:parseFloat(a),gross:parseFloat(a),adcode:d,tag_id:v,adid:m,dealid:c,crid:g,adomain:u,request_url:x,response:f,response_ms:r,received_ts:i,ttl:w.default_bid_ttl,floor:_}),"no-ads"!==n?y.logBidResponse(f):y.logNoBidResponse(f)):void 0!==f.reason&&properLog.mylog("rubicon resposne status: "+f.reason)}else{f=new adObj({bidder:P,price:0,gross:0,tag_id:"",request_url:x,response:t,response_ms:r,received_ts:i,ttl:0});y.logNoBidResponse(f)}}else{f=new adObj({bidder:P,price:0,gross:0,tag_id:"",request_url:x,response:t,response_ms:r,received_ts:i,ttl:0});y.logNoBidResponse(f)}y.incrementBidResponseCount(I)}catch(e){throw e.bidder=P,e}},error:function(e){try{y.incrementBidResponseCount(I);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(S,t),r={bidder:P,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};y.logBidResponseError(r)}catch(e){throw e.bidder=P,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:52},getUserSyncs:function(){var e="";"boolean"==typeof gdprConsent.gdprApplies?e+="?gdpr="+Number(gdprConsent.gdprApplies)+"&gdpr_consent="+gdprConsent.consentString:e+="?gdpr_consent="+gdprConsent.consentString,uspConsent.usPrivacy&&(e+=(0<e.length?"&":"?")+"us_privacy="+encodeURIComponent(uspConsent.usPrivacy)),userSyncs.add({type:"iframe",url:"https://eus.rubiconproject.com/usync.html"+e,bidder:"rubicon"})},formatRequest:Qga}),bidAdapters.sharethrough=(tha={rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:36e4,gvlid:80},uha="sharethrough",{formatRequest:wha,send:function(f){var t=wha(f);Object.keys(t).forEach(function(e){!function(u){var g=u.pkey,m=u.size,h=getBidderFloor(uha,m),e={placement_key:g,bidId:g,bidfloor:h,consent_required:!1,instant_play_capable:function(){var e=navigator.userAgent;if(!e)return!1;var t=/Android/i.test(e),i=/iPhone|iPad|iPod/i.test(e),r=parseInt((/Chrome\/([0-9]+)/.exec(e)||[0,0])[1]),s=parseInt((/CriOS\/([0-9]+)/.exec(e)||[0,0])[1]),e=parseInt((/Version\/([0-9]+)/.exec(e)||[0,0])[1]);return!!(t&&53<=r||i&&(10<=e||53<=s)||!t&&!i)}(),hbSource:"prebid",hbVersion:"3.0.0",strVersion:"3.2.0"};ProperMedia.utils.mergeObject(e,function(){var e={},t=userIdAdapters.identityLink.getValue();t&&(e.idluid=t);t=userIdAdapters.pubCommonId.getValue();t&&(e.shduid=t);t=userIdAdapters.id5Id.getValue();t&&(e.id5uid={id:t},(i=ProperMedia.utils.deepAccess(userIdAdapters.identityLink,"idObj.id5id.ext.linkType"))&&(e.id5uid.linkType=i));var i=properUser.pubcid;i&&(e.pubcid=i);return e}()),gdprConsent.consentString&&(e.consent_string=gdprConsent.consentString);e.consent_required=!!gdprConsent.gdprApplies,uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy);properOps.schain&&(e.schain=JSON.stringify(properOps.schain));var e=ProperMedia.utils.formatQueryString(e,!0),_="https://btlr.sharethrough.com/WYu2BXv1/v1?"+e;properLog.mylog(_,uha),f.incrementRequestsSent(1);var b=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+uha+".edge")||!1;$.ajax({url:_,method:"GET",requestType:"cors",bidder:uha,edge:e,success:function(e){try{properLog.mylog(e,uha);var t,i,r,s,o,a,n,d=ProperMedia.utils.getTimestampMs(),p=ProperMedia.utils.calcResponseMs(b,d),l=ProperMedia.utils.safeJsonParse(e);l&&0<l.creatives.length?(t=l.creatives[0],i=l.bidId||"",r=t.cpm||0,s="str_response_"+i,o=ProperMedia.utils.b64EncodeUnicode(JSON.stringify(l)),a='<div data-str-native-key="'+g+'" data-stx-response-name="'+s+'"></div>',a+="<script>var "+s+' = "'+o+'"<\/script>',a+='<script src="//native.sharethrough.com/assets/sfp.js"><\/script>',n=new adObj({bidder:uha,size:m,price:parseFloat(r),gross:parseFloat(r),adcode:a,tag_id:i,request_url:_,response:l,response_ms:p,received_ts:d,ttl:tha.default_bid_ttl,floor:h,target_slot:u.slot_name||""}),f.logBidResponse(n)):(n=new adObj({bidder:uha,price:0,gross:0,tag_id:"",request_url:_,response:l,response_ms:p,received_ts:d,ttl:0}),f.logNoBidResponse(n)),(c=l)&&c.cookieSyncUrls&&(c=c.cookieSyncUrls.map(function(e){return{type:"image",url:e,bidder:uha}}),userSyncs.add(c)),f.incrementBidResponseCount(1)}catch(e){throw e.bidder=uha,e}var c},error:function(e){try{f.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t),r={bidder:uha,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};f.logBidResponseError(r)}catch(e){throw e.bidder=uha,e}}})}(t[e])})},bidderInfo:tha}),bidAdapters.smart_adserver=(C7a="https://prg.smartadserver.com/prebid/v1",{formatRequest:H7a,send:function(_){var b=_.bidder,f=properOps.bidder_info[b]||f,e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".site_id")||"";if(!e&&f.alias&&(page_id="2923"),!e)return properLog.mylog("Error: Smart Ad Server site is required."),!1;var i={siteid:e,currencyCode:"USD",ckid:0,pageDomain:properPage.domain,prebidVersion:properOps.prebid_version,timeout:1e3};""!=(e=schainCheck(b))&&(i.schain=ProperMedia.utils.formatSupplyChainString(e)),(e=userIds.getEidsArray())&&e.length&&(i.eids=e),i.addtl_consent=gdprConsent.addtlConsent,i.gdpr_consent=gdprConsent.consentString,i.gdpr=gdprConsent.gdprApplies,uspConsent.usPrivacy&&(i.us_privacy=uspConsent.usPrivacy),e=H7a(_.requests,b,f),(ProperMedia.utils.objectValues(e)||[]).forEach(function(e){!function(g){var e=ProperMedia.utils.mergeObject({},i,g);properLog.mylog(C7a,b);var m="video"==f.demand_type?1:e.sizes.length;_.incrementRequestsSent(m);var h=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".edge")||!1;$.ajax({url:C7a,method:"POST",requestType:"cors",bidder:b,edge:t,data:JSON.stringify(e),success:function(e){try{var t,i,r,s,o,a,n,d,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(h,p);(e=e?ProperMedia.utils.safeJsonParse(e):"")?(properLog.mylog(e,b),t=e.cpm||0,i=e.width||1,r=e.height||1,s=e.dealId||"",o=e.creativeId||"",a=1e3*e.ttl||f.default_bid_ttl,d=new adObj({bidder:b,size:i+"x"+r,price:parseFloat(t),gross:parseFloat(t),tag_id:g.pageid+"-"+g.formatid,dealid:s,crid:o,request_url:C7a,response:e,response_ms:l,received_ts:p,ttl:a,floor:g.bidfloor||0}),"video"==f.demand_type?(d.type="video",d.vast_tag=e.adUrl,n=ProperMedia.utils.parseVastVpaid(d.vast_tag),d.vast_type=n.vast_type,d.vpaid=n.vpaid,d.video_type=f.video_type):d.adcode=e.ad,e.isNoAd?_.logNoBidResponse(d):_.logBidResponse(d),u=b,(c=e).cSyncUrl?userSyncs.add({type:"iframe",url:c.cSyncUrl,bidder:u}):c.dspPixels&&c.dspPixels.length&&c.dspPixels.forEach(function(e){userSyncs.add({type:"image",url:e,bidder:u})})):(properLog.mylog("No Smart Ad Server bids returned"),d=new adObj({bidder:b,price:0,gross:0,tag_id:"",request_url:C7a,response:e,response_ms:l,received_ts:p,ttl:0}),_.logNoBidResponse(d)),_.incrementBidResponseCount(m)}catch(e){throw e.bidder=b,e}var c,u},error:function(e){try{_.incrementBidResponseCount(m);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(h,t),r={bidder:b,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};_.logBidResponseError(r)}catch(e){throw e.bidder=b,e}}})}(e)})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:12e4,gvlid:45}}),bidAdapters.sonobi={formatRequest:L8a,send:function(u){var g=u.bidder,m=properOps.bidder_info[g]||m,h=L8a(u.requests,g),_=h.data_map||{},s=h.request_cnt;if(0==s)return!1;var e={key_maker:"",ref:properPage.bidder_page_url,s:ProperMedia.utils.generateUUID(),pv:ProperMedia.utils.generateUUID(),vp:properDevice.device_type,lib_name:"prebid",lib_v:properOps.prebid_version,us:1,ius:1},t=userIds.getUIdsObj();t&&Object.keys(t).length&&(t.id5id&&(t.id5id=ProperMedia.utils.deepAccess(t,"id5id.uid")),e.userid=JSON.stringify(t)),(t=userIds.getEidsArray())&&t.length&&(e.eids=JSON.stringify(t));var o={};Object.keys(h.imps).forEach(function(e){var t=h.imps[e],i=t.bidId,r=t.floor,t="display"==m.demand_type?t.sizes.join(","):"";o[e]=i+"|"+t+"|"+r}),e.key_maker=JSON.stringify(o),""!=(t=schainCheck(g))&&(e.schain=JSON.stringify(t)),ProperMedia.utils.deepSetValue(e,"coppa",ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?1:0),gdprConsent&&"boolean"==typeof gdprConsent.gdprApplies&&(e.gdpr=gdprConsent.gdprApplies.toString(),gdprConsent.consentString&&(e.consent_string=gdprConsent.consentString)),uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy);var b="https://apex.go.sonobi.com/trinity.json?"+ProperMedia.utils.formatQueryString(e,!0);properLog.mylog(b,g),u.incrementRequestsSent(s);var a=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".edge")||!1;$.ajax({url:b,method:"GET",requestType:"cors",bidder:g,edge:e,success:function(d){try{properLog.mylog(d,g);var p,e,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(a,l);(d=ProperMedia.utils.safeJsonParse(d)||{})&&d.slots&&0<Object.keys(d.slots).length?(p=d.sbi_dc||"",Object.keys(d.slots).forEach(function(e){var t,i,r,s,o,a,n=d.slots[e];0<Object.keys(n).length?(n.sbi_dozer,t=n.sbi_aid||"",n.sbi_ct,i=n.sbi_crid||n.sbi_aid||"",o=e,r=n.sbi_mouse,s=n.sbi_size,"video"==m.demand_type&&(s=h.imps[e].sizes[0]),a=[],n.sbi_adomain&&(a=[n.sbi_adomain]),a=new adObj({bidder:g,size:s,price:parseFloat(r),gross:parseFloat(r),tag_id:o,crid:i,adid:t,adomain:a,request_url:b,response:n,response_ms:c,received_ts:l,ttl:m.default_bid_ttl,floor:ProperMedia.utils.deepAccess(_,o)||0}),"video"==m.demand_type?(a.type="video",a.vast_tag="https://"+p+"apex.go.sonobi.com/vast.xml?vid="+t+"&ref="+encodeURIComponent(properPage.bidder_page_url),o=ProperMedia.utils.parseVastVpaid(a.vast_tag),a.vast_type=o.vast_type,a.vpaid=o.vpaid,a.video_type=m.video_type):a.adcode='<script type="text/javascript" src="https://'+p+"apex.go.sonobi.com/sbi.js?aid="+t+"&as=null&ref="+encodeURIComponent(properPage.bidder_page_url)+'"><\/script>',u.logBidResponse(a)):(a=new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:b,response:n,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(a))}),i=g,(t=d)&&t.sbi_px&&(t=t.sbi_px.map(function(e){return{type:e.type,url:e.url,bidder:i}}),userSyncs.add(t))):(e=new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:b,response:d,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(e)),u.incrementBidResponseCount(s)}catch(e){throw e.bidder=g,e}var t,i},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(a,t),r={bidder:g,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=g,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:12e4,gvlid:104}},bidAdapters.sovrn=(Qia="sovrn",Ria="https://ap.lijit.com/rtb/bid?src=prebid_prebid_"+properOps.prebid_version,{send:function(_){var b=_.bidder,f=properOps.bidder_info[b]||f,e=Tia(_.requests,b),t=ProperMedia.utils.objectValues(e.imps)||[],v=e.data_map||{},s=e.request_cnt;if(0==t.length)return!1;var i,e={id:ProperMedia.utils.generateUUID(),imp:t,site:{domain:properPage.domain,page:properPage.bidder_page_url}};(t=userIds.getEidsArray())&&t.length&&(t.forEach(function(e){e.uids&&e.uids[0]&&"criteo.com"===e.source&&(i=e.uids[0].id)}),ProperMedia.utils.deepSetValue(e,"user.ext.eids",t),i&&ProperMedia.utils.deepSetValue(e,"user.ext.prebid_criteoid",i)),""!=(t=schainCheck(b))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),properLog.mylog(Ria,b),_.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+b+".edge")||!1;$.ajax({url:Ria,method:"POST",requestType:"cors",bidder:b,edge:t,data:JSON.stringify(e),success:function(e){try{properLog.mylog(e,b);var g,t,m=ProperMedia.utils.getTimestampMs(),h=ProperMedia.utils.calcResponseMs(o,m);(e=ProperMedia.utils.safeJsonParse(e)||{})&&e.seatbid&&0!=e.seatbid.length&&e.seatbid[0].bid&&e.seatbid[0].bid.length?(g=e.seatbid[0].bid,Object.keys(g).forEach(function(e){var t=g[e],i=t.impid||"",r=t.w+"x"+t.h,s=t.cid||"",o=t.crid||"",a=t.dealid||"",n=t.adomain||[],d=t.price||0,p=t.adm||"",l=t.nurl||"",c=1e3*ProperMedia.utils.deepAccess(t,"ext.ttl")||f.default_bid_ttl,u={},e=ProperMedia.utils.getUrlParameters(l);void 0!==e.seatid&&(u.seatid=e.seatid),void 0!==e.campaignid&&(u.campaignid=e.campaignid),void 0!==e.bannerid&&(u.bannerid=e.bannerid),void 0!==e.cb&&(u.cb=e.cb),void 0!==e.rpid&&(u.rpid=e.rpid),p&&(p=decodeURIComponent(p),l&&(p+=ProperMedia.utils.createTrackPixel(l),l=""));i=new adObj({bidder:b,size:r,price:parseFloat(d),gross:parseFloat(d),adcode:p,nurl:l,tag_id:i,cid:s,crid:o,dealid:a,adomain:n,request_url:Ria,response:t,response_ms:h,received_ts:m,ttl:c,floor:ProperMedia.utils.deepAccess(v,i)||0});_.logBidResponse(i)})):(properLog.mylog("no sovrn bids found"),t=new adObj({bidder:b,price:0,gross:0,tag_id:"",request_url:Ria,response:e,response_ms:h,received_ts:m,ttl:0}),_.logNoBidResponse(t)),function(e){try{var t;e&&e.ext&&e.ext.iid&&(t="",gdprConsent&&gdprConsent.gdprApplies&&"string"==typeof gdprConsent.consentString&&(t+="&gdpr_consent="+gdprConsent.consentString),uspConsent.usPrivacy&&(t+="&us_privacy="+uspConsent.usPrivacy),userSyncs.add({type:"iframe",url:"//ap.lijit.com/beacon?informer="+e.ext.iid+t,bidder:Qia}))}catch(e){throw e.bidder=Qia,e}}(e),_.incrementBidResponseCount(s)}catch(e){throw e.bidder=b,e}},error:function(e){try{_.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:b,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};_.logBidResponseError(r)}catch(e){throw e.bidder=b,e}}})},onBidWon:function(e,t){return e.nurl&&((new Image).src=e.nurl),!0},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:9e4,gvlid:13},formatRequest:Tia}),bidAdapters.sublime=(gja="https://pbjs.sskzlabs.com/bid",hja="antenna.ayads.co",ija="0.8.0",jja=null,kja={zoneId:"",transactionId:"",notifyId:"",timeout:3e3},{formatRequest:mja,send:function(h){var _=h.bidder,b=properOps.bidder_info[_]||b;if(!(jja=Number(ProperMedia.utils.deepAccess(properOps,"bidders.header."+_+".site_id"))||0))return properLog.mylog("Sublime: Error Site ID is Required."),!1;var t=mja(h.requests,_,b);Object.keys(t.imps).forEach(function(e){!function(e,u){var g="display"==b.demand_type?e.sizes.length:1,t={pbav:ija,prebidVersion:properOps.prebid_version,currencyCode:"USD",timeout:3e3,referer:properPage.referrer};gdprConsent&&(t.gdprConsent=gdprConsent.consentString,t.gdpr=gdprConsent.gdprApplies);t=Object.assign({},t,e);t.bidRequestsCount=g,properLog.mylog(gja,_),h.incrementRequestsSent(g);var m=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+_+".edge")||!1;$.ajax({method:"POST",url:gja,requestType:"cors",contentType:"text/plain",withCredentials:!1,bidder:_,edge:e,data:JSON.stringify(t),success:function(e){try{properLog.mylog(e,_);var t,i,r,s,o,a,n,d,p,e=ProperMedia.utils.safeJsonParse(e),l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(m,l);e&&e.ad&&!e.timeout&&!/<!--\s+No\s+ad\s+-->/gim.test(e.ad)?(e.requestId,t=e.cpm||0,i=e.width||1,r=e.height||1,s=e.creativeId,e.dealId,o=e.ad||"",a=e.ttl||b.default_bid_ttl,n=i+"x"+r,d={},e.sspname&&(d.sspname=sspname),p=new adObj({bidder:_,size:n,price:parseFloat(t),gross:parseFloat(t),tag_id:u,crid:s,adomain:[],adcode:o,ad_details:d,request_url:gja,response:e,response_ms:c,received_ts:l,ttl:a}),h.logBidResponse(p)):(p=new adObj({bidder:_,price:0,gross:0,tag_id:u,request_url:gja,response:e,response_ms:c,received_ts:l,ttl:0}),h.logNoBidResponse(p)),h.incrementBidResponseCount(g)}catch(e){throw e.bidder=_,e}},error:function(e){try{h.incrementBidResponseCount(g);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(m,t),r={bidder:_,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};h.logBidResponseError(r)}catch(e){throw e.bidder=_,e}}})}(t.imps[e],e)})},onBidWon:function(e,t){rja("bidwon",ProperMedia.utils.deepAccess(e,"ad_details.sspname"))},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,gvlid:114}}),bidAdapters.teads=(zka="https://a.teads.tv/hb/bid-request",Cka={GDPR_APPLIES_PUBLISHER:12,GDPR_APPLIES_GLOBAL:11,GDPR_DOESNT_APPLY:0,CMP_NOT_FOUND_OR_ERROR:22},{send:function(g){var m=g.bidder,e=properOps.bidder_info[m]||e,h=Dka(g,m,e),t=ProperMedia.utils.objectValues(h.data)||[],_=h.request_cnt,e={referrer:properPage.bidder_page_url,data:t,deviceWidth:properPage.width,hb_version:properOps.prebid_version,...function(){var e,t={unifiedId2:"uid2.id",liveRampId:"idl_env",lotamePanoramaId:"lotamePanoramaId",id5Id:"id5id.uid",criteoId:"criteoId",yahooConnectId:"connectId",quantcastId:"quantcastId",epsilonPublisherLinkId:"publinkId",publisherFirstPartyViewerId:"pubcid",merkleId:"merkleId.id",kinessoId:"kpuid"},i=userIds.getUIdsObj(),r={};for(e in t){var s=t[e],s=ProperMedia.utils.deepAccess(i,s);s&&(r[e]=s)}return r}()};""!=(t=schainCheck(m))&&(e.schain=t),gdprConsent&&(i="boolean"==typeof gdprConsent.gdprApplies,t="string"==typeof gdprConsent.consentString,i=i?Fka(gdprConsent.gdprApplies,gdprConsent.vendorData,gdprConsent.apiVersion):Cka.CMP_NOT_FOUND_OR_ERROR,e.gdpr_iab={consent:t?gdprConsent.consentString:"",status:i,apiVersion:gdprConsent.apiVersion}),uspConsent.usPrivacy&&(e.us_privacy=uspConsent.usPrivacy),properLog.mylog(zka,m),g.incrementRequestsSent(_);var b=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".edge")||!1;$.ajax({url:zka,method:"POST",requestType:"cors",bidder:m,edge:i,data:JSON.stringify(e),success:function(e){try{e=ProperMedia.utils.safeJsonParse(e);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t);if(e&&e.responses&&0<e.responses.length){properLog.mylog(e,m);for(var r=0;r<e.responses.length;r++){var s=e.responses[r],o=s.bidId||"",a=s.width||1,n=s.height||1,d=s.cpm||0,p=s.ad||"",l=s.creativeId||"",c=1e3*(s.ttl||120),u="1x1";"1x1"==(u=-1!==h.data_map[o].sizes.indexOf(a+"x"+n)?a+"x"+n:u)&&(u=h.data_map[o].sizes.pop()||u);p=(1==properOps.dfp_per_slot&&0==properPage.isolated?'<script>try { var slot_div = window.top.document.getElementById("{PROPER_SLOT_DIV_ID}-iframe").contentWindow.document.getElementById("{PROPER_SLOT_DIV_ID}"); var div = document.createElement(\'div\'); div.setAttribute("id", "'+h.data[o].adUnitCode+'"); slot_div.appendChild(div); } catch(e) { console.error(e); }<\/script>':'<script>try { var slot_div = window.top.document.getElementById("{PROPER_SLOT_DIV_ID}"); var div = document.createElement(\'div\'); div.setAttribute("id", "'+h.data[o].adUnitCode+'"); slot_div.appendChild(div); } catch(e) { console.error(e); }<\/script>')+p;g.logBidResponse(new adObj({bidder:m,size:u,price:parseFloat(d),gross:parseFloat(d),adcode:p,tag_id:o,crid:l,request_url:zka,response:s,response_ms:i,received_ts:t,ttl:c,target_slot:ProperMedia.utils.deepAccess(h,"data_map."+o+".slot_name")||""}))}}else properLog.mylog("no teads bids returned"),g.logNoBidResponse(new adObj({bidder:m,price:0,gross:0,tag_id:"",request_url:zka,response:e,response_ms:i,received_ts:t,ttl:0}));g.incrementBidResponseCount(_)}catch(e){throw e.bidder=m,e}},error:function(e){try{g.incrementBidResponseCount(_);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t),r={bidder:m,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};g.logBidResponseError(r)}catch(e){throw e.bidder=m,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",div_insertion:1,gvlid:132,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},getUserSyncs:function(){var e,t="";gdprConsent&&(e={status:Fka(gdprConsent.gdprApplies,gdprConsent.vendorData),consent:gdprConsent.consentString},t="?gdprIab="+encodeURIComponent(JSON.stringify(e))),userSyncs.add({type:"iframe",url:"https://sync.teads.tv/iframe"+t,bidder:"teads"})},formatRequest:Dka}),bidAdapters.thirtythreeacross=(Ula="thirtythreeacross",Vla="https://ssc.33across.com/api/v1/hb",Wla="https://de.tynt.com/deb/v2?m=xch&rt=html",Yla={sticky_horizontal:"1x1"},{formatRequest:$la,send:function(f){var v=f.bidder,y=properOps.bidder_info[v]||y,t=$la(f.requests,v,y);Object.keys(t).forEach(function(e){!function(h,_){var s="display"==y.demand_type?h.banner.format.length:1,b=h.product,e="inview"==b?100:"nm",t={id:ProperMedia.utils.generateUUID(),site:{id:_},device:function(){var e=window.top.self;return{ext:{ttx:{...function(){var{innerWidth:e,innerHeight:t,screen:i}=window.top.self,[r,i]=[Math.max(i.width,i.height),Math.min(i.width,i.height)];if(e<t)return{w:i,h:r};return{w:r,h:i}}(),pxr:e.devicePixelRatio,vp:function(){var e=function(){let e=window.top.self;try{for(;e.parent!==e&&e.parent.document;)e=e.parent}catch(e){}return e}(),e=e.document.documentElement;return{w:e.clientWidth,h:e.clientHeight}}(),ah:e.screen.availHeight,mtp:e.navigator.maxTouchPoints}}}}(),imp:[],ext:{ttx:{caller:[{name:"proper.io",version:"1.0"}]}},user:{ext:{eids:userIds.getEidsArray()||""}}};"display"==y.demand_type?t.imp.push({banner:h.banner}):"video"==y.demand_type&&t.imp.push({video:h.video});t.imp[0]&&(t.imp[0].ext={ttx:{prod:b,viewability:{amount:isNaN(e)?e:Math.round(e)}}});e=schainCheck(v);""!=e&&ProperMedia.utils.deepSetValue(t,"source.ext.schain",e);t.regs={ext:{gdpr:!0===gdprConsent.gdprApplies?1:0}},gdprConsent.consentString&&ProperMedia.utils.deepSetValue(t,"regs.ext.consent",gdprConsent.consentString);uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(t,"regs.ext.us_privacy",uspConsent.usPrivacy);1==properOps.testing_mode.ids&&(t.test=1);properLog.mylog(Vla,v),f.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+v+".edge")||!1;$.ajax({method:"POST",url:Vla,requestType:"cors",bidder:v,edge:e,data:JSON.stringify(t),success:function(u){try{properLog.mylog(u,v),u=ProperMedia.utils.safeJsonParse(u);var e,g=ProperMedia.utils.getTimestampMs(),m=ProperMedia.utils.calcResponseMs(o,g);u&&u.seatbid&&0<u.seatbid.length&&u.seatbid[0].bid&&0<u.seatbid[0].bid.length?Object.keys(u.seatbid).forEach(function(e){var c=u.seatbid[e].bid;Object.keys(c).forEach(function(e){var t=c[e],i=(u.bidid,t.price||0),r=t.w||1,s=t.h||1,o=t.adid||"",a=t.cid||"",n=t.crid||"",d=t.cat||[],p=t.adomain||[],l=(u.cur,t.adm||""),e=t.ttl||y.default_bid_ttl,s=r+"x"+s;"inview"==b&&"1x1"==s&&(s=h.special_size||s);e=new adObj({bidder:v,size:s,price:parseFloat(i),gross:parseFloat(i),tag_id:_,adid:o,cid:a,crid:n,cat:d,adomain:p,request_url:Vla,response:t,response_ms:m,received_ts:g,ttl:e,floor:getBidderFloor(v,s)});"video"==y.demand_type?(e.type="video",e.vast_tag=l,s=ProperMedia.utils.parseVastVpaid(e.vast_tag),e.vast_type=s.vast_type,e.vpaid=s.vpaid,e.video_type=y.video_type):e.adcode=l,f.logBidResponse(e)})}):(e=new adObj({bidder:v,price:0,gross:0,tag_id:"",request_url:Vla,response:u,response_ms:m,received_ts:g,ttl:0}),f.logNoBidResponse(e)),f.incrementBidResponseCount(s),function(e){e=[{type:"iframe",url:Wla+"&id="+e.site.id+"&gdpr_consent="+encodeURIComponent(gdprConsent.consentString)+"&us_privacy="+encodeURIComponent(uspConsent.usPrivacy),bidder:Ula}];"boolean"==typeof gdprApplies&&(e[0].url+="&gdpr="+Number(gdprConsent.gdprApplies));userSyncs.add(e)}(t)}catch(e){throw e.bidder=v,e}},error:function(e){try{f.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:v,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};f.logBidResponseError(r)}catch(e){throw e.bidder=v,e}}})}(t[e],e)})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:6e4,gvlid:58}}),bidAdapters.triplelift=(tna="https://tlx.3lift.com/header/auction",{send:function(f){var v=f.bidder,y=properOps.bidder_info[v]||y,e=wna(f,v,y),t=ProperMedia.utils.objectValues(e.imps)||[],P=e.data_map||{},w=e.request_cnt;if(0==t.length)return!1;var i={imp:t},e=tna;e+="?lib=prebid",e+="&v="+properOps.prebid_version,e+="&referrer="+encodeURIComponent(properPage.bidder_page_url),e+="&tmax=550",ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&(e+="&coppa="+!!properSpecialOps.coppa),gdprConsent&&(void 0!==gdprConsent.gdprApplies&&(e+="&gdpr="+!!gdprConsent.gdprApplies),void 0!==gdprConsent.consentString&&(e+="&cmp_cs="+gdprConsent.consentString)),uspConsent&&uspConsent.usPrivacy&&(e+="&us_privacy="+uspConsent.usPrivacy),0<(t=function(){var e=userIds.getUIdsObj()||{};{var t,i;Object.keys(e).length&&(t=function(e){return Bna(e,"idl_env","liveramp.com","idl")}(e),e=function(e){return Bna(e,"pubcid","pubcid.org","pubcid")}(e),i=[],t&&i.push(t),e&&i.push(e))}return i}()||[]).length&&ProperMedia.utils.deepSetValue(i,"user.ext.eids",t),""!=(t=schainCheck(v))&&ProperMedia.utils.deepSetValue(i,"ext.schain",t),properLog.mylog(e,v),f.incrementRequestsSent(w);var M=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+v+".edge")||!1;$.ajax({url:e,requestType:"cors",method:"POST",bidder:v,edge:t,data:JSON.stringify(i),success:function(e){try{properLog.mylog(e,v);var t=ProperMedia.utils.safeJsonParse(e)||{},i=ProperMedia.utils.getTimestampMs(),r=ProperMedia.utils.calcResponseMs(M,i);if(t&&t.bids&&0<t.bids.length)for(var s=0;s<t.bids.length;s++){var o=t.bids[s],a=o.imp_id||0,n=o.cpm||0,d=o.ad||"",p=o.width||1,l=o.height||1,c=(o.iurl,o.crid||""),u=o.adomain||[],g=o.advertiser_name||"",m="1x1";"1x1"==(m=-1!==ProperMedia.utils.deepAccess(P,a+".tag_sizes").indexOf(p+"x"+l)?p+"x"+l:m)&&(m=(ProperMedia.utils.deepAccess(P,a+".tag_sizes")||[m]).pop());var h,_=parseFloat(n),b=new adObj({bidder:v,size:m,price:_,gross:_,tag_id:ProperMedia.utils.deepAccess(P,a+".tag_id")||a,adomain:u,crid:c,adid:g,request_url:tna,response:o,response_ms:r,received_ts:i,ttl:y.default_bid_ttl,floor:ProperMedia.utils.deepAccess(P,a+".floor")||0,target_slot:ProperMedia.utils.deepAccess(P,a+".slot_name")||""});"video"==y.demand_type?(b.type="video",b.vast_tag=d,h=ProperMedia.utils.parseVastVpaid(b.vast_tag),b.vast_type=h.vast_type,b.vpaid=h.vpaid,b.video_type=y.video_type):b.adcode=d,f.logBidResponse(b)}else f.logNoBidResponse(new adObj({bidder:v,price:0,gross:0,tag_id:"",request_url:tna,response:t,response_ms:r,received_ts:i,ttl:0}));f.incrementBidResponseCount(w)}catch(e){throw e.bidder=v,e}},error:function(e){try{f.incrementBidResponseCount(w);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(M,t),r={bidder:v,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};f.logBidResponseError(r)}catch(e){throw e.bidder=v,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,gvlid:28,native_sizes:{native_horizontal:"300x250",native_vertical:"300x250"}},getUserSyncs:function(){var e=[];gdprConsent&&(gdprConsent.gdprApplies&&e.push("gdpr="+encodeURIComponent(gdprConsent.gdprApplies)),gdprConsent.consentString&&e.push("cmp_cs="+encodeURIComponent(gdprConsent.consentString))),uspConsent&&uspConsent.usPrivacy&&e.push("us_privacy="+encodeURIComponent(uspConsent.usPrivacy)),userSyncs.add({type:"iframe",url:"https://eb2.3lift.com/sync?"+e.join("&"),bidder:"triplelift"})},formatRequest:wna,removeCreative:function(e){try{if(1==properOps.dfp_per_slot){var t=window.top.document.querySelectorAll("#"+CSS.escape(e.div_id)+" .tlod");if(t&&0<t.length)for(var i=0;i<t.length;i++){var r=t[i];r.parentNode.removeChild(r)}}}catch(e){console.error(e)}}}),bidAdapters.undertone=(bpa=0,{send:function(p){var l=p.bidder,c=properOps.bidder_info[l]||c;if(!(bpa=ProperMedia.utils.deepAccess(properOps,"bidders.header."+l+".site_id")||0))return properLog.mylog("Error: Undertone Site ID is Required."),!1;var u="https://hb.undertone.com/hb?pid="+bpa+"&domain="+properPage.domain,g=cpa(p.requests,c),e=ProperMedia.utils.objectValues(g.imps)||[],s=g.request_cnt;if(0==s)return!1;var t=Math.max(document.documentElement.clientWidth,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),t={"x-ut-hb-params":e,commons:{adapterVersion:properOps.prebid_version,uids:userIds.getUIdsObj()||{},pageSize:0==t||0==i?null:[t,i]}};(i=epa())&&(u+="&"+i),uspConsent.usPrivacy&&(u+="&ccpa="+uspConsent.usPrivacy);var o=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.deepAccess(properOps,"bidders.header."+l+".edge")||!1;$.ajax({url:u,method:"POST",requestType:"cors",bidder:l,edge:i,data:JSON.stringify(t),success:function(e){try{properLog.mylog(e,l);var t,e=ProperMedia.utils.safeJsonParse(e),n=ProperMedia.utils.getTimestampMs(),d=ProperMedia.utils.calcResponseMs(o,n);e&&Array.isArray(e)&&0<e.length?e.forEach(function(e){var t="1x1";ProperMedia.utils.deepAccess(g,"tag_sizes."+e.bidRequestId)?t=ProperMedia.utils.deepAccess(g,"tag_sizes."+e.bidRequestId):e.width&&e.height&&(t=e.width+"x"+e.height);var i=e.cpm||0,r=e.ttl||0,s=e.adId||"",o=e.adId||"",a=ProperMedia.utils.deepAccess(g,"tag_ids."+e.bidRequestId)||"",o=new adObj({bidder:l,size:t,price:parseFloat(i),gross:parseFloat(i),tag_id:a,crid:s,adid:o,ttl:1e3*r||c.default_bid_ttl,request_url:u,response:e,response_ms:d,received_ts:n});"video"==c.demand_type?(o.type="video",o.vast_tag=e.ad,r=ProperMedia.utils.parseVastVpaid(o.vast_tag),o.vast_type=r.vast_type,o.vpaid=r.vpaid,o.video_type=c.video_type):o.adcode=e.ad,p.logBidResponse(o)}):(t=new adObj({bidder:l,price:0,gross:0,tag_id:"",request_url:u,response:e,response_ms:d,received_ts:n,ttl:0}),p.logNoBidResponse(t)),p.incrementBidResponseCount(s)}catch(e){throw e.bidder=l,e}},error:function(e){try{p.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:l,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};p.logBidResponseError(r)}catch(e){throw e.bidder=l,e}}})},bidderInfo:{rev_share:.9,bid_grouping:"page",demand_type:"display",default_bid_ttl:36e4,gvlid:677,native_sizes:{desktop:{sticky_horizontal:[[1,1]],native_horizontal:[[1,2]]},mobile:{sticky_horizontal:[[1,1],[320,50]],native_horizontal:[[1,2]]}}},getUserSyncs:function(){var e="",t=epa();t&&(e+="?"+t),uspConsent.usPrivacy&&(e+=(0<e.length?"&":"?")+"ccpa="+uspConsent.usPrivacy),userSyncs.add({type:"iframe",url:"https://cdn.undertone.com/js/usersync.html"+e,bidder:"undertone"})},formatRequest:cpa}),bidAdapters.unruly=function(){const f="https://targeting.unrulymedia.com/unruly_prebid";let p=null;function l(e){return e.split("x").map(function(e){return parseInt(e)})}function i(r,s,o){const a={imps:{},request_cnt:0},n=o.auctionId,d=schainCheck(s);return 0<Object.keys(r).length&&Object.keys(r).forEach(function(t){for(let e=0;e<r[t].length;e++){var i=r[t][e];void 0===a.imps[i]&&(a.imps[i]={bidder:s,params:{siteId:p},mediaTypes:{},adUnitCode:ProperMedia.utils.generateUUID(),transactionId:ProperMedia.utils.generateUUID(),bidId:i,bidderRequestId:ProperMedia.utils.generateUUID(),auctionId:n,src:"client",bidRequestsCount:1,bidderRequestsCount:1,bidderWinsCount:0,userIdAsEids:userIds.getEidsArray(),userId:userIds.getUIdsObj()}),""!=d&&ProperMedia.utils.deepSetValue(a,"imps."+i+".schain",d),"display"==o.demand_type?(ProperMedia.utils.deepAccess(a,"imps."+i+".mediaTypes.banner")||(a.imps[i].banner={sizes:[]}),a.imps[i].banner.sizes.push(l(t))):"video"==o.demand_type&&(ProperMedia.utils.deepAccess(a,"imps."+i+".mediaTypes.video")||(a.imps[i].mediaTypes.video={context:o.video_type,playerSize:[]}),a.imps[i].mediaTypes.video.playerSize.push(l(t))),a.request_cnt++}}),a}return{formatRequest:i,send:function(g){const m=g.bidder,h=properOps.bidder_info[m]||h;var e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".site_id")||"").toString().split("-")||["",""];if(p=properDevice.isMobile()&&2==e.length?e[1]:e[0],!p)return properLog.mylog("Error: Unruly Site ID is Required."),!1;h.auctionId=ProperMedia.utils.deepAccess(g,"auction.id");var t=i(g.requests,m,h),e=ProperMedia.utils.objectValues(t.imps)||[];const _=t.request_cnt;e={bidderRequest:{bidderCode:"unruly",auctionId:e[0].auctionId,bidderRequestId:e[0].bidderRequestId,auctionStart:Date.now(),timeout:550,refererInfo:{referer:properPage.url,reachedTop:!0,numIframes:0,stack:[properPage.url],canonicalUrl:properPage.canonical_url},start:Date.now(),invalidBidsCount:0,bids:e,gdprConsent:{consentString:gdprConsent.consentString||"",vendorData:gdprConsent.vendorData||{},gdprApplies:!!gdprConsent.gdprApplies},uspConsent:uspConsent.usPrivacy||""}},properLog.mylog(f,m),g.incrementRequestsSent(_);const b=ProperMedia.utils.getTimestampMs();$.ajax({url:f,method:"POST",requestType:"cors",data:JSON.stringify(e),success:function(t){try{var i=ProperMedia.utils.getTimestampMs(),r=ProperMedia.utils.calcResponseMs(b,i);if((t=ProperMedia.utils.safeJsonParse(t))&&t.bids&&0!=t.bids.length){properLog.mylog(t,m);for(let e=0;e<t.bids.length;e++){var s,o=t.bids[e],a=o.cpm||0,n=o.width||0,d=o.height||0,p=o.bidId||"",l=o.creativeId||"";const c=new adObj({bidder:m,size:n+"x"+d,price:parseFloat(a),gross:parseFloat(a),tag_id:p,crid:l,request_url:f,response:o,response_ms:r,received_ts:i,ttl:h.default_bid_ttl}),u=ProperMedia.utils.deepAccess(o,"meta.mediaType");u&&"video"===u.toLowerCase()?(c.type="video",c.vast_tag=o.vastUrl||"",s=ProperMedia.utils.parseVastVpaid(c.vast_tag),c.vast_type=s.vast_type,c.vpaid=s.vpaid,c.video_type=ProperMedia.utils.deepAccess(o,"meta.videoContext")):u&&"banner"===u.toLowerCase()&&(c.adcode=o.ad),g.logBidResponse(c)}}else{properLog.mylog("Unruly: No bids returned");var e=new adObj({bidder:m,price:0,gross:0,tag_id:"",request_url:f,response:t,response_ms:r,received_ts:i,ttl:0});g.logNoBidResponse(e)}g.incrementBidResponseCount(_)}catch(e){throw e.bidder=m,e}},error:function(e){try{g.incrementBidResponseCount(_);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(b,t),r={bidder:m,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};g.logBidResponseError(r)}catch(e){throw e.bidder=m,e}}})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:36e4,gvlid:36}}}(),bidAdapters.vidazoo=function(){var e={rev_share:1,demand_type:"display",bid_grouping:"slot",default_bid_ttl:3e5,gvlid:744},h="vidazoo",_="59ac17c192832d0011283fe3";const b=36e5,f="vidSid",v="vdzwopt";let y={gvlid:e.gvlid,bidderCode:h};const P={britepoolid:1,criteoId:1,id5id:1,idl_env:1,lipb:1,netId:1,parrableId:1,pubcid:1,tdid:1,pubProvidedId:1};function w(e){try{return ProperMedia.utls.safeJsonParse(properStorage.getDataFromLocalStorage(e,y))}catch(e){}return null}function M(e,t,i){try{var r=i||Date.now(),s=JSON.stringify({value:t,created:r});properStorage.setDataInLocalStorage(e,s,y)}catch(e){}}return{send:function(u){var g=u.bidder,m=properOps.bidder_info[g]||m;_=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".site_id")||_;var s,o,a,t=(s=u.requests,o=g,a={},0<Object.keys(s).length&&Object.keys(s).forEach(function(e){for(var t=0;t<s[e].length;t++){var i=s[e][t];void 0===a[i]&&(a[i]={sizes:[],floor:0}),a[i].sizes.push(e);var r=getBidderFloor(o,e);(!a[i].floor||r<a[i].floor)&&(a[i].floor=r)}}),a);Object.keys(t).forEach(function(e){!function(s,e){if(!s||!e.sizes.length)return;var o=e.sizes.length;var t=function(e,t="_"){var i=e.length;let r=0,s=0;if(0<i)for(;s<i;)r=(r<<5)-r+e.charCodeAt(s++)|0;return t+r}(properPage.url),i=function(i){try{var r=w(i);let e=0,t;r&&r.value&&Date.now()-r.created<expiry&&(e=r.value,t=r.created);var s=e+1;return M(i,s,t),s}catch(e){return 0}}(t),r=function(e,t=b){const i=`u_${e}`,r=Date.now(),s=w(i);let o;!s||!s.value||r-s.created>t?(o=`${e}_${r.toString()}`,M(i,o)):o=s.value;return o}(t),a=w(f)||"",n=function(){let e=properStorage.getDataFromLocalStorage(v,y);e||(e=String(Date.now()),properStorage.setDataInLocalStorage(v,e,y));return e}(),d=properStorage.cookiesAreEnabled(y)||properStorage.localStorageIsEnabled(y);ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.enabled")&&(_=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.bidder_ids.pId")||_);var p={};"display"==m.demand_type?p.banner={sizes:e.sizes.map(e=>e.split("x").map(e=>parseInt(e)))}:"video"==m.demand_type&&(t=e.sizes[0].split("x").map(e=>parseInt(e)),p.video={context:m.video_type,mimes:["video/mp4","application/javascript"],playerSize:t,w:t[0],h:t[1],maxduration:30,minduration:10,api:[2],delivery:6,pos:0,playbackmethod:6,placement:"outstream"==m.video_type?3:1,linearity:"outstream"==m.video_type?2:1,protocols:[2,3,5,6],startdelay:0,skip:0});n={url:encodeURIComponent(properPage.url),uqs:"?"+ProperMedia.utils.formatQueryString(properPage.get_vars,!0),cb:Date.now(),bidFloor:e.floor,bidId:ProperMedia.utils.generateUUID(),referrer:properPage.referrer,adUnitCode:ProperMedia.utils.generateUUID(),publisherId:_,sessionId:a,sizes:e.sizes,dealId:i,uniqueDealId:r,bidderVersion:"1.0.0",prebidVersion:properOps.prebid_version,res:screen.width+"x"+screen.height,mediaTypes:p,ptrace:n,isStorageAllowed:d};!function(i){var r,s=userIds.getUIdsObj();Object.keys(s).forEach(function(e){if(P[e]){var t=s[e];switch(r="uid."+e,e){case"digitrustid":i[r]=ProperMedia.utils.deepAccess(t,"data.id");break;case"lipb":i[r]=t.lipbid;break;case"parrableId":i[r]=t.eid;break;case"id5id":i[r]=t.uid;break;default:i[r]=t}}})}(n);d=schainCheck(g);""!=d&&(n.schain=d);gdprConsent&&("boolean"==typeof gdprConsent.gdprApplies&&(n.gdpr=gdprConsent.gdprApplies?1:0),gdprConsent.consentString&&(n.gdprConsent=gdprConsent.consentString));uspConsent&&uspConsent.usPrivacy&&(n.usPrivacy=uspConsent.usPrivacy);var l="https://prebidnp.cootlogix.com/prebid/multi/"+s;1==properOps.testing_mode.ids&&(l="https://demoad.cootlogix.com/prebid/multi/"+(s="5e7b4eac063c510017ca44ef"));properLog.mylog(l,g),u.incrementRequestsSent(o);var c=ProperMedia.utils.getTimestampMs(),d=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".edge")||!1;$.ajax({url:l,method:"POST",requestType:"cors",bidder:g,edge:d,data:JSON.stringify(n),success:function(e){try{properLog.mylog(e,g),e=ProperMedia.utils.safeJsonParse(e);var i=ProperMedia.utils.getTimestampMs(),r=ProperMedia.utils.calcResponseMs(c,i);e.results&&Array.isArray(e.results)&&0<e.results.length?(e.results.forEach(function(e){var t=new adObj({bidder:g,size:size,price:parseFloat(e.price),gross:parseFloat(e.price),tag_id:s,ttl:1e3*(e.exp||m.default_bid_ttl),request_url:l,response:e,response_ms:r,received_ts:i});"display"==m.demand_type?t.adcode=e.ad:"video"==m.demand_type&&(t.type="video",t.vast_tag=e.vastXml,e=ProperMedia.utils.parseVastVpaid(t.vast_tag),t.vast_type=e.vast_type,t.vpaid=e.vpaid,t.video_type=m.video_type),u.logBidResponse(t)}),function(){try{var e="?gdpr="+(gdprConsent.gdprApplies?1:0)+"&gdpr_consent="+encodeURIComponent(gdprConsent.consentString||"")+"&us_privacy="+encodeURIComponent(uspConsent.usPrivacy||"");userSyncs.add({type:"iframe",url:"https://prebid.cootlogix.com/api/sync/iframe/"+e,bidder:h})}catch(e){throw e.bidder=h,e}}()):u.logNoBidResponse(new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:l,response:e,response_ms:r,received_ts:i,ttl:0})),u.incrementBidResponseCount(o)}catch(e){throw e.bidder=g,e}},error:function(e){try{u.incrementBidResponseCount(o);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(c,t),r={bidder:g,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=g,e}}})}(e.split("-")[0]||e,t[e])})},bidderInfo:e}}(),bidAdapters.yahoo=(Usa=["admixer.net","adserver.org","adtelligent.com","akamai.com","amxrtb.com","audigent.com","britepool.com","criteo.com","crwdcntrl.net","deepintent.com","hcn.health","id5-sync.com","idx.lat","intentiq.com","intimatemerger.com","liveintent.com","liveramp.com","mediawallahscript.com","merkleinc.com","netid.de","neustar.biz","nextroll.com","novatiq.com","parrable.com","pubcid.org","quantcast.com","quantcast.com","tapad.com","uidapi.com","verizonmedia.com","yahoo.com","zeotap.com"],Vsa="https://c2shb.pubgw.yahoo.com/bidRequest",Wsa="yahoo",{formatRequest:Ysa,send:function(g){var m=g.bidder,h=properOps.bidder_info[m]||h,e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".site_id")||"").split("-")||["",""],t=properDevice.isMobile()&&2==e.length?e[1]:e[0];if(!(t=1==properOps.testing_mode.ids?"8a969516017a7a396ec539d97f540011":t))return properLog.mylog("Error: Yahoo Site ID is Required."),!1;var i=Ysa(g.requests,m,h),e=ProperMedia.utils.objectValues(i.imps)||[],_=i.data_map||{},r=(i.request_cnt,{id:ProperMedia.utils.generateUUID(),cur:["USD"],imp:[],site:{id:t,page:properPage.bidder_page_url,domain:properPage.domain,ref:properPage.referrer},device:{dnt:0,ua:navigator.userAgent,ip:void 0,w:window.screen.width,h:window.screen.height},source:{ext:{hb:1,adapterver:"1.0.1",prebidver:properOps.prebid_version,integration:{name:"prebid.js",ver:properOps.prebid_version}},fd:1},user:{ext:{}}});0<(t=function(){var e=ProperMedia.utils.deepCopy(userIds.getEidsArray());if(ProperMedia.utils.isArray(e)&&0<e.length)return e.filter(function(e){return-1!==Usa.indexOf(e.source)});return[]}()).length&&ProperMedia.utils.deepSetValue(r,"user.ext.eids",t),""!=(t=schainCheck(m))&&(ProperMedia.utils.deepSetValue(r,"source.ext.schain",t),ProperMedia.utils.deepSetValue(r,"source.ext.schain.nodes.0.rid",r.id)),ProperMedia.utils.deepSetValue(r,"user.ext.consent",gdprConsent.gdprApplies?gdprConsent.consentString:""),"boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(r,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),ProperMedia.utils.deepSetValue(r,"regs.ext.us_privacy",uspConsent.usPrivacy||"");var o=1!=properOps.testing_mode.ids&&function(){if(gdprConsent&&gdprConsent.gdprApplies&&2===gdprConsent.apiVersion)return!1;return!0}();properLog.mylog(Vsa,m),e.forEach(function(e){!function(e){r.imp=[e],g.incrementRequestsSent(1);var s=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".edge")||!1;$.ajax({url:Vsa,method:"POST",requestType:"cors",bidder:m,headers:{"x-openrtb-version":"2.5","Content-Type":"application/json"},withCredentials:o,edge:e,data:JSON.stringify(r),success:function(l){try{var e,c=ProperMedia.utils.getTimestampMs(),u=ProperMedia.utils.calcResponseMs(s,c);(l=ProperMedia.utils.safeJsonParse(l))&&l.seatbid&&0<l.seatbid.length&&l.seatbid[0].bid&&0<l.seatbid[0].bid.length?(properLog.mylog(l,m),Object.keys(l.seatbid).forEach(function(p){Object.keys(l.seatbid[p].bid).forEach(function(e){var t=l.seatbid[p].bid[e],i=(t.adId||t.impid||t.crid,t.impid||""),r=t.ext&&t.ext.encp?t.ext.encp:t.price,s=t.w||1,o=t.h||1,a=t.adm||"",n=t.nurl||"",d=t.crid||0,e=t.dealId||"",i=new adObj({bidder:m,size:s+"x"+o,price:parseFloat(r),gross:parseFloat(r),nurl:n,tag_id:i,crid:d,dealid:e,request_url:Vsa,response:t,response_ms:u,received_ts:c,ttl:h.default_bid_ttl,floor:ProperMedia.utils.deepAccess(_,i)||0});"video"==h.demand_type?(i.type="video",i.vast_tag=a,n&&(i.vast_tag=n),n=ProperMedia.utils.parseVastVpaid(i.vast_tag),i.vast_type=n.vast_type,i.vpaid=n.vpaid,i.video_type=h.video_type):i.adcode=a,g.logBidResponse(i)})}),function(e){try{var t,i,r,s;ProperMedia.utils.deepAccess(e,"ext.pixels")&&(t=e.ext.pixels||[],i=/\w*(?=\s)/,r=/src=("|')(.*?)\1/,!t||(s=t.match(/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi))&&s.forEach(function(e){var t=e.match(i)[0],e=e.match(r)[2];t&&e&&(t="img"===t.toLowerCase()?"image":"iframe",userSyncs.add({type:t,url:e}))}))}catch(e){throw e.bidder=Wsa,e}}(l)):(properLog.mylog("no "+m+" bids returned"),e=new adObj({bidder:m,price:0,gross:0,tag_id:"",request_url:Vsa,response:l,response_ms:u,received_ts:c,ttl:0}),g.logNoBidResponse(e)),g.incrementBidResponseCount(1)}catch(e){throw e.bidder=m,e}},error:function(e){try{g.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(s,t),r={bidder:m,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};g.logBidResponseError(r)}catch(e){throw e.bidder=m,e}}})}(e)})},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:3e5,acceptable_ads:!0,gvlid:25}}),bidAdapters.s2s=function(){var z;properOps.s2s_endpoint;return{send:function(D){if(!D||!D.requests)return!1;var e=!!(void 0!==properSpecialOps.s2s_websockets?properSpecialOps:properOps).s2s_websockets,t=!!(void 0!==properSpecialOps.s2s_sse?properSpecialOps:properOps).s2s_sse;z=e?properOps.s2s_wss_endpoint:t?properOps.s2s_sse_endpoint:properOps.s2s_endpoint;var i=properDevice.isMobile()?"mobile":"desktop",r=ProperMedia.utils.deepCopy(properOps.floors[i]||{backup:.01,sizes:{}});ProperMedia.utils.deepAccess(properSession,"sessionData.bid_avg")&&Object.keys(properSession.sessionData.bid_avg).forEach(function(e){(!ProperMedia.utils.deepAccess(r,"sizes."+e)||r.sizes[e]<properSession.sessionData.bid_avg[e])&&ProperMedia.utils.deepSetValue(r,"sizes."+e,properSession.sessionData.bid_avg[e])});var s={openRTBBidRequest:(o={id:null,at:1,tmax:550,site:{id:"",page:properPage.bidder_page_url,ref:properPage.referrer,domain:properPage.domain,publisher:{id:properOps.site_name,name:properPage.domain,domain:properPage.domain}},device:{connectiontype:0,ua:navigator.userAgent,ip:null,dnt:ProperMedia.utils.getDNT()?1:0,js:1,geo:null,os:window.device.os_group,h:properPage.height,w:properPage.width,language:navigator.language.split("-")[0]},user:{buyeruid:null,geo:null},source:{},regs:{coppa:ProperMedia.utils.deepAccess(properSpecialOps,"coppa")?1:0,ext:{}},ext:{},test:1==properOps.testing_mode.ids?1:0,imp:[]},(i=userIds.getEidsArray())&&i.length&&ProperMedia.utils.deepSetValue(o,"user.ext.eids",i),properOps.schain&&ProperMedia.utils.deepSetValue(o,"source.ext.schain",properOps.schain),"boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(o,"regs.ext.gdpr",Number(gdprConsent.gdprApplies)),ProperMedia.utils.deepSetValue(o,"user.ext.consent",gdprConsent.consentString),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(o,"regs.ext.us_privacy",uspConsent.usPrivacy),o),bidder_ids:D.requests,proper_uid:cookieMatching.proper_uid,is_secure:properPage.use_ssl?1:0,is_mobile:properDevice.isMobile(),floors:r,cookies:{}};Object.keys(s.bidder_ids).forEach(function(e){e=e.replace("_s2s",""),cookieMatching.bidderUserSyncValues[e]&&(s.cookies[e]=cookieMatching.bidderUserSyncValues[e])}),1==properOps.testing_mode.ids&&(s.debug=!0),properLog.mylog(z,"s2s");var o=Object.keys(D.requests).length||0,R=e||t?1:o;D.incrementRequestsSent(o);var L=ProperMedia.utils.getTimestampMs();ProperMedia.utils.deepAccess(properOps,"bidders.header.s2s.edge"),$.ajax({url:z,method:"POST",requestType:"cors",websocket:e,sse:t,bidder:"s2s",timeout:(e||t)&&properDevice.isMobile()?4e3:2e3,data:JSON.stringify(s),success:function(t){try{var t=ProperMedia.utils.safeJsonParse(t),e=!!(void 0!==properSpecialOps.s2s_websockets?properSpecialOps.s2s_websockets:e),i=!!(void 0!==properSpecialOps.s2s_sse?properSpecialOps.s2s_sse:i);properLog.mylog(t,"s2s");var r=ProperMedia.utils.getTimestampMs(),s=ProperMedia.utils.calcResponseMs(L,r);if(t&&t.bids&&0<t.bids.length){for(var o=properDevice.isMobile()?"mobile":"desktop",a=0;a<t.bids.length;a++){var n=t.bids[a],d=n.nobid||!1,p=n.adcode||"",l=n.vast_tag||"",c=n.vast_type||"",u=n.vpaid||!1,g=n.bidder+"_s2s",m=n.media_type||"",h=n.price||0,_=n.impid||"",b=n.burl||"",f=n.nurl||"",v=n.dealid||"",y=n.adid||"",P=n.adomain||[],w=n.cid||"",M=n.crid||"",I=n.cat||[],x=n.ext||{},S=n.native||{},k=n.floor||0,A=parseInt(n.w||1),O=parseInt(n.h||1),C=ProperMedia.utils.deepAccess(properOps,"bidder_info."+g)||C,T=n.exp||C.default_bid_ttl||12e4;"display"==m&&f&&(p+='<img src="'+f+'" width=1 height=1>',f="");var j=A+"x"+O,j=ProperMedia.utils.deepAccess(C,"native_sizes."+o+"."+j)||j,E=new adObj({bidder:g,native:S,nobid:d,type:m,size:j,burl:b,nurl:f,price:parseFloat(h),gross:parseFloat(h),tag_id:_,request_url:z,response:n,response_ms:s,received_ts:r,dealid:v,adid:y,adomain:P,cid:w,crid:M,cat:I,ext:x,ttl:T,floor:k});"video"==m?(E.vast_tag=l,E.vast_type=c,E.vpaid=u,E.video_type=C.video_type):E.adcode=p,D.logBidResponse(E)}D.incrementBidResponseCount(R)}else(e||i)&&t.cookies?(e||i)&&t.error&&(e?sendError(new Error("WebSocket Server Error: "+t.error)):i&&sendError(new Error("Server Sent Events Error: "+t.error))):(D.incrementBidResponseCount(R),E=new adObj({bidder:"s2s",price:0,gross:0,tag_id:"",request_url:z,response:t,response_ms:s,received_ts:r,ttl:0}),D.logNoBidResponse(E));t&&t.cookies&&Object.keys(t.cookies).map(function(e){t.cookies[e]&&cookieMatching.updateBidderUserSyncData(e,t.cookies[e])})}catch(e){e.bidder="s2s",sendError(e)}},error:function(e){try{D.incrementBidResponseCount(R);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(L,t),r={bidder:"s2s",status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};D.logBidResponseError(r)}catch(e){e.bidder="s2s",sendError(e)}}})},onBidWon:function(e,t){return e.nurl&&((new Image).src=e.nurl),e.burl&&$.ajax({url:e.burl,method:"GET",withCredentials:!0}),!0},bidderInfo:{rev_share:1,demand_type:"display",bid_grouping:"page",default_bid_ttl:12e4},removeCreative:function(e){"gumgum_s2s"==e.displayed_ad.bidder&&function(){try{var e,t=window.top.document.getElementById("GG_PXS");!t||(e=t.parentNode)&&e.parentNode.removeChild(e)}catch(e){console.error(e)}}()}}}(),bidAdapters.aol_instream=(Kva=["https://cm.g.doubleclick.net/pixel?google_nid=adaptv_dbm&google_cm&google_sc","https://pr-bh.ybp.yahoo.com/sync/adaptv_ortb/{combo_uid}","https://sync-tm.everesttech.net/upi/pid/m7y5t93k?redir=https%3A%2F%2Fsync.adap.tv%2Fsync%3Ftype%3Dgif%26key%3Dtubemogul%26uid%3D%24%7BUSER_ID%7D","https://match.adsrvr.org/track/cmf/generic?ttd_pid=adaptv&ttd_tpi=1"],Lva=["adserver.org","criteo.com","id5-sync.com","intentiq.com","liveintent.com","quantcast.com","verizonmedia.com","liveramp.com"],{send:function(m){var h=m.bidder,_=properOps.bidder_info[h]||_,e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+h+".site_id")||"").toString().split("-")||["",""],e=properDevice.isMobile()&&2==e.length?e[1]:e[0];if(!(e=1==properOps.testing_mode.ids?"HBExchange":e))return properLog.mylog("Error: AOL Video Site ID is Required."),!1;var i=m.requests,b="https://ads.adaptv.advertising.com/rtb/openrtb?ext_id="+e;Object.keys(i).forEach(function(e){for(var t=0;t<i[e].length;t++)!function(e,c,t){var u=e.split("x"),g=getBidderFloor(h,e),e={id:ProperMedia.utils.generateUUID(),at:2,cur:"USD",imp:[{id:parseInt(t+1).toString(),secure:properPage.use_ssl?1:0,bidfloor:g,video:{mimes:["video/mp4","application/javascript"],w:parseInt(u[0]),h:parseInt(u[1]),linearity:"outstream"==_.video_type?2:1,protocols:[2,5],api:[2],delivery:[6],playbackmethod:[2],minduration:1,maxduration:15},ext:{hb:1}}],site:{page:properPage.url,ref:properPage.referrer},device:{ua:navigator.userAgent,js:1},tmax:550},t=(userIdAsEids=userIds.getEidsArray(),userIdAsEids.filter(function(e){return-1!==Lva.indexOf(e.source)}));t&&t.length&&ProperMedia.utils.deepSetValue(e,"user.ext.eids",t);t=schainCheck(h);""!=t&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t);"boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",gdprConsent.gdprApplies);ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy);properLog.mylog(b,h),properLog.mylog(h+": sending bid request"),m.incrementRequestsSent(1);var s=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+h+".edge")||!1;$.ajax({method:"POST",requestType:"cors",bidder:h,edge:t,data:JSON.stringify(e),url:b,success:function(e){properLog.mylog("AOL Video: parsing response");try{var t,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(s,p);(e=ProperMedia.utils.safeJsonParse(e))&&ProperMedia.utils.deepAccess(e,"seatbid.bid")&&0<e.seatbid.bid.length?(properLog.mylog(e,h),e.seatbid.forEach(function(e){(e.bid||[]).forEach(function(e){var t=e.w||u[0],i=e.h||u[1],r=e.price||0,s=e.adm||"",o=e.crid||"",a=e.dealid||"",n=e.adomain||[],d=ProperMedia.utils.parseVastVpaid(s),e=new adObj({bidder:h,type:"video",size:t+"x"+i,price:parseFloat(r),gross:parseFloat(r),vast_tag:s,vast_type:d.vast_type,vpaid:d.vpaid,video_type:_.video_type,tag_id:c,crid:o,dealid:a,adomain:n,request_url:b,response:e,response_ms:l,received_ts:p,ttl:_.default_bid_ttl,floor:g});m.logBidResponse(e)})})):(properLog.mylog(h+": no bid returned"),t=new adObj({bidder:h,price:0,gross:0,tag_id:c,request_url:b,response:e,response_ms:l,received_ts:p,ttl:0,floor:g}),m.logNoBidResponse(t)),m.incrementBidResponseCount(1)}catch(e){throw properLog.mylog(h+": unknown error with parsing response - "+e),e.bidder=h,e}},error:function(e){try{m.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(s,t),r={bidder:h,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};m.logBidResponseError(r)}catch(e){throw e.bidder=h,e}}}),function(){var e=Kva.map(function(e){return{type:"image",url:e,demand_type:"video",bidder:h}});userSyncs.add(e)}()}(e,i[e][t],t)})},bidderInfo:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:36e5,gvlid:25}}),bidAdapters.beachfront_instream=(Jwa="",Lwa={identityLink:{adapter:userIdAdapters.identityLink,rtiPartner:"idl"}},{send:function(g){var m=g.bidder,h=properOps.bidder_info[m]||h;if(Jwa=ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".site_id")||0,!(Jwa=1==properOps.testing_mode.ids?"11bc5dd5-7421-4dd8-c926-40fa653bec76":Jwa))return properLog.mylog("Error: Beachfront Video Site ID is Required."),!1;var i=g.requests,_="https://reachms.bfmio.com/bid.json?exchange_id="+Jwa;Object.keys(i).forEach(function(e){for(var t=0;t<i[e].length;t++)!function(p,l){var e=p.split("x"),c=getBidderFloor(m,p),t={isPrebid:!0,appId:Jwa,domain:properPage.domain,id:ProperMedia.utils.generateUUID(),imp:[{video:{w:parseInt(e[0]),h:parseInt(e[1]),mimes:["video/mp4","application/javascript"]},bidfloor:c,secure:properPage.use_ssl?1:0}],site:{page:properPage.url,domain:properPage.domain},device:{ua:navigator.userAgent,language:navigator.language,devicetype:properDevice.isMobile()?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent)?3:2,dnt:ProperMedia.utils.getDNT()?1:0,js:1,geo:{}},regs:{ext:{}},user:{ext:{}},cur:["USD"]},e=function(){var r=[];return Object.keys(Lwa).forEach(function(e){var t,i=Lwa[e];ProperMedia.utils.deepAccess(i,"adapter.config.enabled")&&(t=i.adapter.getValue(),e=i.adapter.source,i=i.rtiPartner,r.push({source:e,uids:[{id:t,ext:{rtiPartner:i}}]}))}),r}();e&&ProperMedia.utils.deepSetValue(t,"user.ext.eids",e);gdprConsent&&(ProperMedia.utils.deepSetValue(t,"regs.ext.gdpr",gdprConsent.gdprApplies?1:0),ProperMedia.utils.deepSetValue(t,"user.ext.consent",gdprConsent.consentString));uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(t,"regs.ext.us_privacy",uspConsent.usPrivacy);properLog.mylog(_,m),properLog.mylog(m+": sending bid request"),g.incrementRequestsSent(1);var u=ProperMedia.utils.getTimestampMs(),e=ProperMedia.utils.deepAccess(properOps,"bidders.header."+m+".edge")||!1;$.ajax({method:"POST",requestType:"cors",bidder:m,edge:e,data:JSON.stringify(t),url:_,success:function(e){properLog.mylog(m+": parsing response");try{var t,i,r,s,o,a,n=ProperMedia.utils.getTimestampMs(),d=ProperMedia.utils.calcResponseMs(u,n);(e=ProperMedia.utils.safeJsonParse(e))&&e.url&&""!=e.url?(t=e.bidPrice||0,i=e.url||e.vast||"",r=e.crid||e.cmpId||"",s=e.cmpId||"",o=ProperMedia.utils.parseVastVpaid(i),a=new adObj({bidder:m,type:"video",size:p,price:parseFloat(t),gross:parseFloat(t),vast_tag:i,vast_type:o.vast_type,vpaid:o.vpaid,video_type:h.video_type,tag_id:l,crid:r,cid:s,request_url:_,response:e,response_ms:d,received_ts:n,ttl:h.default_bid_ttl,floor:c}),g.logBidResponse(a)):(properLog.mylog(m+": no bid returned"),a=new adObj({bidder:m,price:0,gross:0,tag_id:l,request_url:_,response:e,response_ms:d,received_ts:n,ttl:0,floor:c}),g.logNoBidResponse(a)),g.incrementBidResponseCount(1)}catch(e){throw properLog.mylog(m+": unknown error with parsing response - "+e),e.bidder=m,e}},error:function(e){try{g.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(u,t),r={bidder:m,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};g.logBidResponseError(r)}catch(e){throw e.bidder=m,e}}})}(e,i[e][t])})},bidderInfo:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,gvlid:335},getUserSyncs:function(){var e="1---",t=gdprConsent.gdprApplies?1:0,i=encodeURIComponent(gdprConsent.consentString||"");uspConsent.usPrivacy&&(e=encodeURIComponent(uspConsent.usPrivacy)),e="https://sync.bfmio.com/sync_iframe?ifg=1&id="+Jwa+"&gdpr="+t+"&gc="+i+"&gce=1&us_privacy="+e,userSyncs.add({type:"iframe",url:e,demand_type:"video",bidder:"beachfront_instream"})}}),bidAdapters.openx_instream=(Hxa="openx_instream",Jxa="https://propermedia-d.openx.net/v/1.0/avjp",Mxa=!0,Nxa=[userIdAdapters.identityLink,userIdAdapters.id5Id,userIdAdapters.pubCommonId],{send:function(P){var w=P.bidder,M=properOps.bidder_info[w]||M,i=P.requests;Object.keys(i).forEach(function(e){for(var t=0;t<i[e].length;t++)!function(e,h){var _=e.split("x"),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".site_id")||h,b=getBidderFloor(w,e),e=[{video:{mimes:["video/mp4","application/javascript"],w:parseInt(_[0]),h:parseInt(_[1])},w:parseInt(_[0]),v:parseInt(_[1])}],t={ju:properPage.bidder_page_url,jr:properPage.referrer,ch:document.charSet||document.characterSet,res:screen.width+"x"+screen.height+"x"+screen.colorDepth,ifr:!1,tz:(new Date).getTimezoneOffset(),tws:window.top.innerWidth+"x"+window.top.innerHeight,be:1,bc:"hb_pb_3.0.3",dddid:ProperMedia.utils.generateUUID(),pubcid:properUser.pubcid,nocache:(new Date).getTime(),auid:t,aumfs:Math.round(1e3*b).toString(),vwd:parseInt(_[0]),vht:parseInt(_[1]),vmimes:["video/mp4","application/javascript"],openrtb:e};"outstream"==M.video_type&&(t.vos="101");e=schainCheck(w);""!=e&&(t.schain=ProperMedia.utils.formatSupplyChainString(e));gdprConsent&&(t.gdpr_consent=gdprConsent.consentString||"","boolean"==typeof gdprConsent.gdprApplies&&(t.gdpr=gdprConsent.gdprApplies?1:0),t.x_gdpr_f=1);uspConsent&&uspConsent.usPrivacy&&(t.us_privacy=uspConsent.usPrivacy);t=function(t){return Nxa.forEach(function(e){ProperMedia.utils.deepAccess(e,"config.enabled")&&ProperMedia.utils.deepAccess(e,"storage.name")&&(t[e.storage.name]=e.getValue())}),t}(t),1==properOps.testing_mode.ids&&(t.vtest="1");t=ProperMedia.utils.formatQueryString(t,!0);Jxa=M.alias?"https://onscroll-d.openx.net/v/1.0/avjp":Jxa,ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".account_overrides.enabled")&&(Jxa=ProperMedia.utils.deepAccess(properOps,"bidders.header."+w+".account_overrides.bidder_ids.endpoint_url")||Jxa);var f=Jxa+"?"+t;properLog.mylog(f,w),properLog.mylog(w+": sending bid request"),P.incrementRequestsSent(1);var v=ProperMedia.utils.getTimestampMs(),y=new Date;$.ajax({method:"GET",requestType:"cors",url:f,success:function(e){properLog.mylog(w+": parsing response");try{var t,i,r,s,o,a,n,d,p,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(v,l);(e=ProperMedia.utils.safeJsonParse(e))&&e.vastUrl&&e.pub_rev?(t=Number(e.pub_rev)/1e3||0,i=e.vastUrl||"",r=_[0]||e.width,s=_[1]||e.height,o=e.adid||"",a=e.adid||"",n=e.deal_id||"",d=ProperMedia.utils.parseVastVpaid(i),u=e,g=y,Mxa&&(Mxa=!1,(g={bd:+new Date-g,bp:u.pub_rev,br:"0",bs:ProperMedia.utils.getPageDomain(),bt:3e3,ts:u.ts}).br=g.bt<g.bd?"t":"p",u=(u&&u.creative&&u.creative[0]&&u.creative[0].tracking&&u.creative[0].tracking.impression||"").match(/([^?]+\/)ri\?/),(m=u&&1<u.length?u[1]+"bo?"+ProperMedia.utils.formatQueryString(g,!0):m)&&userSyncs.add({type:"image",url:m,bidder:Hxa})),p=new adObj({bidder:w,type:"video",size:r+"x"+s,price:parseFloat(t),gross:parseFloat(t),vast_tag:i,vast_type:d.vast_type,vpaid:d.vpaid,video_type:M.video_type,tag_id:h,crid:o,adid:a,deal_id:n,request_url:f,response:e,response_ms:c,received_ts:l,ttl:1e3*e.ttl||M.default_bid_ttl,floor:b}),P.logBidResponse(p)):(properLog.mylog(w+": no bid returned"),p=new adObj({bidder:w,price:0,gross:0,tag_id:"",request_url:f,response:e,response_ms:c,received_ts:l,ttl:0,floor:b}),P.logNoBidResponse(p)),function(e){var t="//u.openx.net/w/1.0/pd";e&&(e.ads&&e.ads.pixels?t=e.ads.pixels:e.pixels&&(t=e.pixels));e="";gdprConsent&&(e+="?gdpr="+(gdprConsent.gdprApplies?1:0),e+="&gdpr_consent="+encodeURIComponent(gdprConsent.consentString||""));uspConsent&&uspConsent.usPrivacy&&(e+=(0<e.length?"&":"?")+"us_privacy="+encodeURIComponent(uspConsent.usPrivacy));userSyncs.add({type:"iframe",url:t+e,demand_type:"video",bidder:Hxa})}(e),P.incrementBidResponseCount(1)}catch(e){properLog.mylog(w+": unknown error with parsing response - "+e)}var u,g,m},error:function(e){try{P.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(v,t),r={bidder:w,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};P.logBidResponseError(r)}catch(e){throw e.bidder=w,e}}})}(e,i[e][t])})},bidderInfo:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:3e5,gvlid:62}}),bidAdapters.pubmatic_instream=(Qya="https://hbopenbid.pubmatic.com/translator?source=prebid-client",Sya="109126",{send:function(u){var g=u.bidder,m=properOps.bidder_info[g]||m,e=Uya(u.requests,g,m),t=e.imps||[],h=e.data_map||{},s=e.imps.length;if(Sya=m.alias?"159475":Sya,ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.enabled")&&(Sya=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".account_overrides.bidder_ids.pubId")||Sya),1==properOps.testing_mode.ids&&(Sya="157593"),0==s)return!1;e={id:""+(new Date).getTime(),at:1,cur:["USD"],imp:t,site:{page:properPage.url,ref:document.referrer,publisher:{id:Sya.toString()},domain:properPage.domain},device:{ua:navigator.userAgent,js:1,dnt:ProperMedia.utils.getDNT()?1:0,h:screen.height,w:screen.width,language:navigator.language,geo:{}},user:{geo:{}},ext:{wrapper:{wv:"prebid_prebid_"+properOps.prebid_version,transactionId:ProperMedia.utils.generateUUID(),wp:"pbjs"}},tmax:550},properOps.testing_mode.enabled&&(e.test=1),e.device.language=e.device.language&&e.device.language.split("-")[0],(t=userIds.getEidsArray())&&t.length&&ProperMedia.utils.deepSetValue(e,"user.eids",t),""!=(t=schainCheck(g))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&ProperMedia.utils.deepSetValue(e,"regs.coppa",1),gdprConsent&&(ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString||""),ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",gdprConsent.gdprApplies?1:0)),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),properLog.mylog(Qya,g),properLog.mylog(g+": sending bid request"),u.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".edge")||!1;$.ajax({method:"POST",requestType:"cors",bidder:g,edge:t,data:JSON.stringify(e),url:Qya,success:function(e){properLog.mylog(g+": parsing response");try{var t,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(o,l);(e=ProperMedia.utils.safeJsonParse(e))&&e.seatbid&&0<e.seatbid.length&&e.seatbid[0].bid&&0<e.seatbid[0].bid.length?e.seatbid.forEach(function(e){(e.bid||[]).forEach(function(e){var t=e.impid||"",i=e.adm||"",r=e.price||0,s=e.w||0,o=e.h||0,a=e.adomain||[],n=e.cid||"",d=e.crid||"",p=s+"x"+o;s&&o||(p=ProperMedia.utils.deepAccess(h,t+".size")||(properDevice.isMobile()?"400x300":"640x480"));o=ProperMedia.utils.parseVastVpaid(i),p=new adObj({bidder:g,type:"video",size:p,price:parseFloat(r),gross:parseFloat(r),vast_tag:i,vast_type:o.vast_type,vpaid:o.vpaid,video_type:m.video_type,tag_id:ProperMedia.utils.deepAccess(h,t+".tag_id")||t,adomain:a,cid:n,crid:d,request_url:Qya,response:e,response_ms:c,received_ts:l,ttl:m.default_bid_ttl,floor:ProperMedia.utils.deepAccess(h,t+".floor")||getBidderFloor(g,p)});u.logBidResponse(p)})}):(t=new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:Qya,response:e,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(t)),u.incrementBidResponseCount(s)}catch(e){properLog.mylog(g+": unknown error with parsing response - "+e)}},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:g,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=g,e}}})},bidderInfo:{rev_share:.81,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,gvlid:76},getUserSyncs:function(){var e="https://ads.pubmatic.com/AdServer/js/showad.js#PIX&kdntuid=1&p="+Sya;gdprConsent&&(e+="&gdpr="+(gdprConsent.gdprApplies?1:0),e+="&gdpr_consent="+encodeURIComponent(gdprConsent.consentString||"")),uspConsent.usPrivacy&&(e+="&us_privacy="+encodeURIComponent(uspConsent.usPrivacy)),userSyncs.add({type:"iframe",url:e,demand_type:"video",bidder:"pubmatic_instream"})},formatRequest:Uya}),bidAdapters.rubicon_instream=function(){accountId=8777,alias_accountId=15380;var _="https://prebid-server.rubiconproject.com/openrtb2/auction";function i(o,a,n){var d={imps:[],data_map:{}},e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+a+".site_id")||"").toString().split("-")||["",""],p=properDevice.isMobile()&&2==e.length?e[1]:e[0];if(accountId=n.alias?alias_accountId:accountId,ProperMedia.utils.deepAccess(properOps,"bidders.header."+a+".account_overrides.enabled")&&(accountId=ProperMedia.utils.deepAccess(properOps,"bidders.header."+a+".account_overrides.bidder_ids.accountId")||accountId),!p)return properLog.mylog("Error: Rubicon Video Site ID is Required."),d;var l=1;return 0<Object.keys(o).length&&Object.keys(o).forEach(function(e){for(var t=0;t<o[e].length;t++){var i=o[e][t],r=e.split("x"),s=getBidderFloor(a,e);d.imps.push({id:l.toString(),secure:properPage.use_ssl?1:0,bidfloor:s,ext:{rubicon:{accountId:parseInt(accountId),siteId:parseInt(p),zoneId:parseInt(i),position:"btf",floor:s,video:{language:"en",size_id:"outstream"==n.video_type?203:201,playerWidth:parseInt(r[0]),playerHeight:parseInt(r[1])},prebid:{auctiontimestamp:(new Date).getTime()}}},video:{playerSize:[parseInt(r[0]),parseInt(r[1])],context:n.video_type,mimes:["video/mp4","application/javascript"],protocols:[2,5],w:parseInt(r[0]),h:parseInt(r[1]),maxduration:60,linearity:1,api:[2],pos:3}}),d.data_map[l]={floor:s,tag_id:i,size:r[0]+"x"+r[1]},l++}}),d}return{send:function(u){var g=u.bidder,m=properOps.bidder_info[g]||m,e=i(u.requests,g,m),t=e.imps||[],h=e.data_map||{},s=e.imps.length;if(0==s)return!1;e={id:ProperMedia.utils.generateUUID(),test:1==properOps.testing_mode.ids?1:0,cur:["USD"],source:{tid:ProperMedia.utils.generateUUID()},tmax:550,imp:t,ext:{prebid:{cache:{vastxml:{returnCreative:!1}},targeting:{includewinners:!0,includebidderkeys:!1,pricegranularity:{ranges:[{max:20,increment:.01}]}},bidders:{rubicon:{integration:"pbjs"}}}},site:{page:properPage.url,content:{language:"en"}}},(t=userIds.getEidsArray())&&t.length&&ProperMedia.utils.deepSetValue(e,"user.ext.eids",t),""!=(t=schainCheck(g))&&ProperMedia.utils.deepSetValue(e,"source.ext.schain",t),ProperMedia.utils.deepAccess(properSpecialOps,"coppa")&&ProperMedia.utils.deepSetValue(e,"regs.coppa",1),gdprConsent&&(ProperMedia.utils.deepSetValue(e,"user.ext.consent",gdprConsent.consentString),"boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(e,"regs.ext.gdpr",Number(gdprConsent.gdprApplies))),uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(e,"regs.ext.us_privacy",uspConsent.usPrivacy),properLog.mylog(_,g),properLog.mylog(g+": sending bid request"),u.incrementRequestsSent(s);var o=ProperMedia.utils.getTimestampMs(),t=ProperMedia.utils.deepAccess(properOps,"bidders.header."+g+".edge")||!1;$.ajax({method:"POST",requestType:"cors",bidder:g,edge:t,data:JSON.stringify(e),url:_,success:function(e){properLog.mylog(g+": parsing response");try{var t,l=ProperMedia.utils.getTimestampMs(),c=ProperMedia.utils.calcResponseMs(o,l);(e=ProperMedia.utils.safeJsonParse(e))&&e.seatbid&&0<e.seatbid.length&&e.seatbid[0].bid&&0<e.seatbid[0].bid.length?(properLog.mylog(e,g),e.seatbid.forEach(function(e){(e.bid||[]).forEach(function(e){var t=e.impid||"",i=e.price||0,r=e.w||0,s=e.h||0,o=e.adomain||[],a=e.cid||"",n=e.crid||"",d=r+"x"+s;r&&s||(d=ProperMedia.utils.deepAccess(h,t+".size")||(properDevice.isMobile()?"400x300":"640x480"));var p="",r="",s=ProperMedia.utils.deepAccess(e,"ext.prebid.targeting")||{};ProperMedia.utils.deepAccess(e,"ext.prebid.cache.vastXml.url")?p=ProperMedia.utils.deepAccess(e,"ext.prebid.cache.vastXml.url"):s&&s.hb_uuid&&s.hb_cache_host&&s.hb_cache_path&&(p="https://"+s.hb_cache_host+s.hb_cache_path+"?uuid="+s.hb_uuid),e.adm&&(p=e.adm),e.nurl&&(r=e.nurl),!p&&e.nurl&&(p=e.nurl);s=ProperMedia.utils.parseVastVpaid(p),d=new adObj({bidder:g,type:"video",size:d,price:parseFloat(i),gross:parseFloat(i),vast_tag:p,vast_type:s.vast_type,vpaid:s.vpaid,video_type:m.video_type,nurl:r,tag_id:ProperMedia.utils.deepAccess(h,t+".tag_id"),adomain:o,cid:a,crid:n,request_url:_,response:e,response_ms:c,received_ts:l,ttl:1e3*e.ttl||m.default_bid_ttl,floor:ProperMedia.utils.deepAccess(h,t+".floor")||getBidderFloor(g,d)});u.logBidResponse(d)})})):(properLog.mylog(g+": no bid returned"),t=new adObj({bidder:g,price:0,gross:0,tag_id:"",request_url:_,response:e,response_ms:c,received_ts:l,ttl:0}),u.logNoBidResponse(t)),u.incrementBidResponseCount(s)}catch(e){properLog.mylog(g+": can't parse bid response - "+e)}},error:function(e){try{u.incrementBidResponseCount(s);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(o,t),r={bidder:g,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};u.logBidResponseError(r)}catch(e){throw e.bidder=g,e}}})},bidderInfo:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"page",default_bid_ttl:3e5,gvlid:52},getUserSyncs:function(){userSyncs.add({type:"iframe",url:"https://eus.rubiconproject.com/usync.html",demand_type:"video",bidder:"rubicon_instream"})},formatRequest:i}}(),bidAdapters.spotx_instream={send:function(m){var h=m.bidder,_=properOps.bidder_info[h]||_,e=(ProperMedia.utils.deepAccess(properOps,"bidders.header."+h+".site_id")||"").split("-")||["",""],i=properDevice.isMobile()&&2==e.length?e[1]:e[0];if(!(i=1==properOps.testing_mode.ids?"79391":i))return properLog.mylog("Error: SpotX Site ID is Required."),!1;var b="https://search.spotxchange.com/openrtb/2.3/dados/"+i,r=m.requests;Object.keys(r).forEach(function(e){for(var t=0;t<r[e].length;t++)!function(e,c){var u=e.split("x"),g=getBidderFloor(h,e),t={id:i,imp:{id:ProperMedia.utils.generateUUID(),secure:!!properPage.use_ssl,bidfloor:g,video:{w:parseInt(u[0]),h:parseInt(u[1]),ext:{sdk_name:"Prebid 1+",versionOrtb:properOps.prebid_version,ad_unit:_.video_type},mimes:["video/mp4","application/javascript"]}},site:{id:"",page:properPage.url,content:"content"},device:{h:parseInt(properPage.height),w:parseInt(properPage.width),dnt:ProperMedia.utils.getDNT()?1:0,language:"en",make:navigator.vendor||"",ua:navigator.userAgent},ext:{wrap_response:1},user:{ext:{}}},e=userIds.getEidsArray();e.length&&ProperMedia.utils.deepSetValue(t,"user.ext.eids",e);properUser.pubcid&&ProperMedia.utils.deepSetValue(t,"user.ext.fpc",properUser.pubcid);e=schainCheck(h);""!=e&&ProperMedia.utils.deepSetValue(t,"source.ext.schain",e);gdprConsent&&("boolean"==typeof gdprConsent.gdprApplies&&ProperMedia.utils.deepSetValue(t,"regs.ext.gdpr",gdprConsent.gdprApplies?1:0),ProperMedia.utils.deepSetValue(t,"user.ext.consent",gdprConsent.consentString));uspConsent.usPrivacy&&ProperMedia.utils.deepSetValue(t,"regs.ext.us_privacy",uspConsent.usPrivacy);properLog.mylog(b,h),properLog.mylog(h+": sending bid request"),m.incrementRequestsSent(1);var s=ProperMedia.utils.getTimestampMs(),e=(new Date,ProperMedia.utils.deepAccess(properOps,"bidders.header."+h+".edge")||!1);$.ajax({method:"POST",requestType:"cors",bidder:h,edge:e,data:JSON.stringify(t),url:b,success:function(e){properLog.mylog(h+": parsing response");try{var t,p=ProperMedia.utils.getTimestampMs(),l=ProperMedia.utils.calcResponseMs(s,p);(e=ProperMedia.utils.safeJsonParse(e))&&e.seatbid&&0<e.seatbid.length&&e.seatbid[0].bid&&0<e.seatbid[0].bid.length?e.seatbid.forEach(function(e){(e.bid||[]).forEach(function(e){var t=e.price||0,i=u[0]||(properDevice.isMobile()?400:640),r=u[1]||(properDevice.isMobile()?300:480),s=e.adomain||[],o=e.cid||"",a=e.crid||"",n="https://search.spotxchange.com/ad/vast.html?key="+ProperMedia.utils.deepAccess(e,"ext.cache_key"),d=ProperMedia.utils.parseVastVpaid(n),e=new adObj({bidder:h,type:"video",size:i+"x"+r,price:parseFloat(t),gross:parseFloat(t),vast_tag:n,vast_type:d.vast_type,vpaid:d.vpaid,video_type:_.video_type,tag_id:c||e.impid,adomain:s,cid:o,crid:a,request_url:b,response:e,response_ms:l,received_ts:p,ttl:_.default_bid_ttl,floor:g});m.logBidResponse(e)})}):(properLog.mylog(h+": no bid returned"),t=new adObj({bidder:h,price:0,gross:0,tag_id:"",request_url:b,response:e,response_ms:l,received_ts:p,ttl:0}),m.logNoBidResponse(t)),m.incrementBidResponseCount(1)}catch(e){properLog.mylog(h+": unknown error with parsing response - "+e)}},error:function(e){try{m.incrementBidResponseCount(1);var t=ProperMedia.utils.getTimestampMs(),i=ProperMedia.utils.calcResponseMs(s,t),r={bidder:h,status:e.status,statusText:e.statusText,timeout:e.timeout,response_ms:i};m.logBidResponseError(r)}catch(e){throw e.bidder=h,e}}})}(e,r[e][t])})},bidderInfo:{rev_share:1,demand_type:"video",video_type:"instream",bid_grouping:"slot",default_bid_ttl:36e4,gvlid:165}},window.addEventListener("unload",function(){properLog.proper_tracker()}),window.addEventListener("hashchange",checkProperDebugConsole,!1);var _0x230d0f=_0x22c2;function _0x4652(){var e=["length","indexOf","size","404847SuRWOS","44228VPsDNM","isNumber","string","safeJsonParse","push","winning_ad","winning_ad.dfp_price","_0x4f6067","40YLJRwb","WyIxdTc2MjlzIiwiY3hjMHNnIiwiMWNmdzFzMCIsImxzejExYyIsIjFsYmoyMHciLCI0MXAwamsiLCIxM2s5MWo0IiwiejRmamVvIiwiMXltemtlOCIsImpyVUdMSmwiLCJHaGRUMDFIIiwidXpITXFIWCIsIkRVbXNEaDIiLCJ2UkhuYzdEIiwiY1VDYWJmdSIsIklaSE8zMTkiLCIxSzA5bVQ0IiwiRnduYWdnNCIsIlFTYWNyV0kiLCJGZVpPQVFjIiwiUnI1UDhMZSIsIkZjRHpENjQiLCJQYTdaRkdxIiwiREkwbkVMTSIsIjR2bTFiZmwiLCJIaEIwNTZxIiwiaG9jZ2tqZiIsIm9WcVRmTXEiLCJFMDQ0WHg5IiwiWDJtc3VnQyIsIjYxVkhzNDIiLCJJU0JQbHJaIiwicDZISGQ1cSIsInhodmhMaTMiLCJZZ0FUTzFuIiwiMWliY2RuOSIsIkdxZGFuSXoiLCJUYUQ2WEFNIiwib0E4VUtJNyIsInRoaVp4SXIiLCI0T3ViTzJIIiwiVTVPMnZRVCIsIkVwMXFPTU0iLCJHQlgwYW5ZIiwiTTR2RVlXaCIsIkpvaE51OFgiLCJNRTdZejAzIiwicHJwZWd4VCIsImVzZmhocDAiLCI3T3J2VTBsIiwiSE1tc3dVdyIsInFDQ2NVR3oiLCJFNGpERlZXIiwiemZ6aWc1ZSIsIm9EZUIwZ2EiLCJCbXhuNEtqIiwiTVR1NmFTaSIsInF3VW9xeE8iLCJ3dG56U2dQIiwicTdxRWl5biIsIkhoeW1hT1ciLCJFNU03dE9DIiwiMlJBVzdKNSIsIlVUdFFiWEQiLCJ2SDJQMU9BIiwiTjhydGN6dyIsIlFGSG1OSngiLCJMNUJEYjlOIiwiOVBuNmd5USIsIkZZQThIeUsiLCJUODJZdVRLIiwiT3czWTd2NyIsIno2UFJGUTkiLCJQMlpJYWVMIiwiZ1FoUWljMyIsIjFBYlo1WEMiLCJEY3R3TjFDIiwiSXc1cDZsVSIsIjV1OWVKTE0iLCI4VzhjNTVjIiwiSlQ1NWNkeCIsIlYyM3lYS1oiLCJxVWhCa0FkIiwiWmhoQ1VFWSIsImZvaXpnaDEiLCJXckVJenFXIiwiNkpNcElTZCIsIjZOczBvQkkiLCJrMGdZVmdaIiwiOGl2c3RlYyIsIldDem1QcFEiLCJkeU4yTkllIiwid1l0WXYyMyIsInl5dlpSRE4iLCJTODY1SXZWIiwidnJNTnd6TCIsIktsZm4xdnciLCJTQWNiQ1NBIiwieEZHaERIZSIsInFDNVFiUHciLCJNUkhaQXZpIiwiWHllQjMybiIsInpldEtpRWUiLCJRSWNBWlRQIiwiTDBldEF3SiIsImV4cXJiZlkiLCJGR2xubFB4IiwiaTl1YzlLYSIsImd3d05qSTQiLCJtWmVyZ3hzIiwiNHJSWG0zTCIsIncwM3pNaU8iLCJSUk5SWU84IiwickxKWjJDTCIsIlNYOWExek4iLCJ2TWdEMmpJIiwicnpSd2lFMiIsInB1R3pUdEwiLCJONzJUYVZCIiwiaGo5TFg4RCIsIjlPb25sazEiLCJMR0NlTEZoIiwiV0lEYzI0cyIsIkxCbjF1d1IiLCJtUjVMejVmIiwiSjVtcEs2MyIsIlhUUDhFYjYiLCJ3dndTN2Y3IiwiNVpVaEZhOSIsIlBiM29OSGciLCJPenlocVNWIiwiRGhXTFBieCIsIm8zZzBXSHMiLCJxUzI3THhHIiwiYlFBeTFWTCIsIkxlUWpEWHYiLCJiUFBiUnlZIiwiYWdsSm5UdyIsIkFyTVhraE8iLCJTNGZuOXpkIiwiUFNkZExubyIsIkxJeU5icXUiLCJwbDlLd3VZIiwiV0dLUGhNVCIsIlpwajJrc2UiLCJjMHhUV2VEIiwiSnhyZHNKRSIsImZtTmZvS3QiLCJNenNpVWUwIiwiRGh3N0l1ZyIsImNkajkzcTciLCI5MFdncjJsIiwiSkhoRll3eCIsIjJjMFllWUoiLCJISDF4Y29iIiwidFNqTHltMCIsInVtSE04dDgiLCJIenpXUElRIiwid0RiUDF2MCIsIkE4TlFJUWoiLCJzREdhYUU3IiwiU3pUOFB0YyIsInc5WWZCMUwiLCI4cXliMkhSIiwiZEZKWlB6dSIsInBsUGZhQnMiLCJuUHREdEpjIiwiODZ1OWQ0UiIsIk04WGgxT2EiLCJSTm5XTmJNIiwiQU5KQ1RScyIsIkdzdUY4QzkiLCJkOHFmQXZFIiwiU2F0OVA5biIsIk5Namp0ZlMiLCJlczRHYTVYIiwiRVV5Z1NmOSIsIjZrM2RkV2giLCJLVmdxQzJ5IiwiekhtSHdFciIsIjVPaDZwYmEiLCJLcWllaE5PIiwiaFF6NVRCaCIsIjhHM2cycjkiLCJwbDBIbVVwIiwiZ0hGUHo3YSIsIk1HZHFVVjkiLCI4OFA5OHcwIiwiNW0wd2x2RiIsIkZ4c25SYTkiLCJBZjFYb1JVIiwiYkxnQUo5SyIsIm9CRFdNbmQiLCJFalQ5UWdPIiwib3V3NnNqaiIsIjlBU1cyREUiLCJwM1JZQlFwIiwicEdjdDlIYyIsImgyeE5oYkMiLCJrRnFpUmMxIiwiVHpQTnFoNiIsIjRQdUo5b0kiLCJxM3d6RkJhIiwiWElKSUZxMiIsInFnNlR5NEoiLCJkVnZpWFFuIiwid1pNUGdLYSIsIkNiMWFaR0QiLCJPS0hMN0F6IiwiMmRJd3l2UyIsImhVbkFEYXkiLCJqRjZYOEI2Iiwialp6QzhNaSIsIndVVldzZ2UiLCJRZjFub29mIiwiTGpKaEZhRiIsIkoxTDZmM20iLCJMTlFTemtKIiwiUTZxTENiRiIsIkd3WnREYVAiLCJXVzFPSG1lIiwiaEtHdHMzQSIsIjFCaElOTm0iLCJuN3VEUUNGIiwiY0lIMFM4QiIsIjdxY1NKeWMiLCJUWGZtbVdwIiwiWER4bkJ1ZSIsInVGbUUyOFEiLCJjTE1FOG1QIiwibmJUZU5ldSIsIjFBY09RQTYiLCJ5dzlDaGJqIiwiMlg5ZktSSSIsInN4Y2lyQmgiLCJkSFdiU3FOIiwiZU5sVjZJRiIsIlNwbkViSVYiLCJNY3A4TzdEIiwicFhJRW96TiIsIk1PamdYQlYiLCI5M3p5QVdNIiwiZ1pmekVHTCIsIlhJTEJzcTMiLCJlUndwdGxUIiwiek96d0hqbyIsInVEWjRuTlgiLCJiQTc3TE5MIiwidUpsS2J5WCIsIktWSVFyOU8iLCJiYXpLZlBZIiwibTh1YXdYZiIsImV2UjFPNEgiLCJBVUwzaXdaIiwiWkFmWHFGZiIsIjFWNDFRbkMiLCJiRXZvVGVnIiwiVFZ1Nmh0YSIsIlhhc0ROOUciLCJTdEc3VU1uIiwiR3NYbnJMYSIsIkJIQlBoVTYiLCJLN1hDSVlZIiwieWI1Z01oQSIsIk1US2RkQWQiLCJFbkRJZ0lVIiwiYUE3N0l5MSIsIk5nNWwyTEEiLCJCSndIeW1WIiwiVmoxdTh6MyIsIk1sQTUxelAiLCJGRFA2YnZ4IiwiNThicllYeCIsIjliN21jSlkiLCIzN2UxamM0IiwiQ0xCbDRpYiIsInRMb01GTDciLCJaWlQ3SjJpIiwiR1NFblRCYSIsIkxGQkFLTzgiLCJSdjBoMzFXIiwiRzhlSFR0WiIsImxpZEQ5NVQiLCJaWEZjeHlVIiwiNE9URVo4bSIsImF0TmY5Z1UiLCJZck5FaHlhIiwiOGVST1ZxZSIsImVWdnl1S0YiLCI3eDk4em1MIiwiOVhFT2tNViIsIk1sRFRxM1MiLCJjQ01lNjhIIiwiWHF2MExiUSIsInZhVm0xMk0iLCI2ZWdGUWExIiwiUG1MODYwaCIsIkM0dGd3YVIiLCJlbnhFN05GIiwiOG9xTmZtWSIsIkhoakEwWU8iLCJ1dTIxTnd6IiwidExOaURRVyIsIk8zYldyNVQiLCIxWTI4TENVIiwibjFNd0pvNyIsIkVMVGVyNUQiLCJZb1Y1OU51Iiwic056SW5heCIsIlVGVXdDTHYiLCJPczNuTzFIIiwiWUJSRTVUdyIsIkl0S2c0R1UiLCJOUDRRTU9uIiwibEFPNmxnbyIsIm1ieHlEeTMiLCJDNGJKclduIiwiMHhGc1NDVSIsIlF0SkplU1EiLCJsSVBMRlp5IiwiVzZNUUprNiIsIjhNQlhYZWciLCJUR0w4RzdHIiwidmVwb3RVUyIsIjRwV2M1R3kiLCJNaDZBand6IiwiQ2x1Z21oUSIsIjQ2ZHRoZFUiLCJ1eGYzS28yIiwiSU5KTG53QSIsIjc4UEhSWHkiLCJvNzNyRExFIiwiT2VkV3Q2MSIsInhkc3RVMDMiLCI0V1Z3S08wIiwiSXV2aWZqUiIsIm9JNDBsb04iLCJ2eFp3Z3pmIiwiT1psRGlzNiIsIlRJcTVoVTUiLCJXUWZXUERKIiwiNnlDaXlGZCIsImlsNHltS2wiLCJtdGtvdUZmIiwiR0VQZnJqQSIsIlhwRXdyV2QiLCIyMDQyMHdUIiwicHRjTzViYSIsIlB0QU9Ub28iLCJ3aGhkWGFPIiwicnJFMW83ZyIsIkFDeEFoTEUiLCJzeGR5cWhpIiwiZFJPWTZENiIsInJLRm12RE8iLCJZeEpHNkxBIiwidENOUVFoQiIsIkVXanNJQW8iLCJUUUZLVzRvIiwiS2xzdjN2MCIsImlOQ3k4eE0iLCJYeFJJOG1pIiwiWmZ3dW82TSIsIjc2ck9PcmoiLCJTQThSWmZDIiwiUU4weUJxdSIsIlRJY2JCbTQiLCJvUFNnSUNlIiwiYWRiaWMyayIsIkRjWnpISkkiLCI0ODVzVTR4IiwiM2RrbGpYNSIsIktuNzVjR0giLCJBSWpQSzlXIiwiZWFyNTlGVyIsIko3QTBmMUQiLCJzQTRYUzhoIiwiRjNqQ0FjQyIsIjhBakRPekoiLCJJU3YxekZHIiwiMjVmczFldCIsImxsWEM3ZUUiLCJWSmFHRXpoIiwiRGwwd2ZWbyIsImVGOTZEQ3IiLCJoTUQ5MzJ1IiwiVTFDb0ltSiIsIkFhQnJ1ekUiLCJ6RTlaYnUzIiwiTzdRZXNpaCIsInhESHd1bDkiLCJXaU1mU2l5IiwiMG9FaDRlTiIsImZrZXRzbE0iLCJxbVRMQktlIiwiQWtldnZoSSIsImRncjdWaGEiLCJRYVpJbzdLIiwiTktXNjJmcSIsInpqQXdua2EiLCJhS2Q1b3FpIiwic2JWV0NDZiIsImtrOFVnUDUiLCJHRDVKeEhDIiwienlEbW1lVyIsIlU4WjdTbWYiLCI4MzBNbk1yIiwiZG5pWHJzSCIsIkdEaXI2NnYiLCJkekJPelN4IiwiWkR1eUppSCIsIjAxb2tlcmIiLCI1eU1hWnB0IiwiVWhvUUFxWSIsIjZPc1k1OGgiLCIzeUY0MGNNIiwiV1BtcEgyMiIsIm5tS3kxNGEiLCJraEJVbHBzIiwiZlpDTmYyMiIsIjJxcENOTWUiLCJuT28yRlN4Iiwiakc2ODdXTyIsIkFCMEdxVUIiLCIxZ21xTnRrIiwiY0JMOVlsUCIsIkFTS0Z6Mm8iLCJrN05QSVVmIiwiUnN1SmI3TCIsIlliTFB1TXMiLCI1YVk4SktoIiwiYUhWWlpuRCIsIlNra1k1RVYiLCIyYUN1SWNyIiwiaTVzUEo4ciIsIm1WNTk5a0YiLCJVMVA3SnNtIiwibXo4QWFEZCIsIm0zeDIybU4iLCJ0ZXN0QmlkIl0=","5656NmGTdf","log","utils","deepAccess","forEach","dfp_bid_price","validateValue","121wfizmC","40578FuhBAI","b64DecodeUnicode","isStr","amazon_ads","203XQppuy","hasWinningBid","_0x432f92","1116064GeaqGy","replace","494754RZZFqE","5bOCafQ","hasWinningAmazonBid","sizes","565752xGPwrK","winning_amazon_ad","_0x3aa07a","AMZN_BID_KEYS","17bCjsUG","sort","price"];return(_0x4652=function(){return e})()}!function(){for(var e=_0x22c2,t=_0x4652();;)try{if(124860==+parseInt(e(380))*(-parseInt(e(397))/2)+parseInt(e(372))/3+-parseInt(e(387))/4*(-parseInt(e(373))/5)+parseInt(e(363))/6*(parseInt(e(367))/7)+parseInt(e(370))/8+parseInt(e(386))/9*(parseInt(e(395))/10)+parseInt(e(404))/11*(-parseInt(e(376))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var _0x4d3546,_0xef5ca=ProperMedia[_0x230d0f(399)][_0x230d0f(390)](ProperMedia[_0x230d0f(399)][_0x230d0f(364)](_0x230d0f(396)));function _0x22c2(e,t){var i=_0x4652();return(_0x22c2=function(e,t){return i[e-=363]})(e,t)}function _0x1530b1(){var t=_0x230d0f;try{return _0x4d3546=!_0x4d3546?properSpecialOps[t(379)]?ProperMedia.utils.safeJsonParse(ProperMedia[t(399)][t(364)](properSpecialOps[t(379)])):ProperMedia[t(399)][t(390)](ProperMedia[t(399)][t(364)]("WyIxZ3Vib3FvIiwiejMxbzh3IiwiMXlsbHA4ZyIsIjhnNG5pOCIsIjE3eW9vaHMiLCJxN2VvMDAiLCIxcHB5b3prIiwiY3Z5NW1vIiwiMWNlaTZtOCIsInVuODY0ZyIsIjF1NXM3NDAiLCI0MGI1ZHMiLCIxM2l2NmRjIiwibHJsNXZrIiwiMWxhNTZ2NCIsImYzdXdvdyIsIjFlbWV4b2ciLCJ3djR4Nm8iLCIxd2RveTY4IiwiNjg3d2cwIiwiMTVxcnhmayIsIm56aHd4cyIsIjFuaTF4eGMiLCJhbzFla2ciLCIxYTZsZmswIiwic2ZiZjI4IiwiMXJ4dmcxcyIsIjFzZWViayIsIjExYXlmYjQiLCJqam9ldGMiLCIxajI4ZnN3IiwiZzd0YTgwIiwiMWZxZGI3ayIsInh6M2FwcyIsIjF4aG5icGMiLCI3YzY5ejQiLCIxNnVxYXlvIiwicDNnYWd3IiwiMW9tMGJnZyIsImJyenMzayIsIjFiYWp0MzQiLCJ0ajlzbGMiLCIxdDF0dGt3IiwiMndjcnVvIiwiMTJld3N1OCIsImtubXNjZyIsIjFrNjZ0YzAiLCJkendqNXMiLCIxZGlnazVjIiwidnI2am5rIiwiMXY5cWtuNCIsIjU0OWl3dyIsIjE0bXRqd2ciLCJtdmpqZW8iLCIxbWUza2U4IiwiOWszMTFjIiwiMTkybjIwdyIsInJiZDFqNCIsIjFxdHgyaW8iLCJvZzBzZyIsIjEwNzAxczAiLCJpZnExYTgiLCIxaHlhMjlzIiwiZ3JzZ3prIiwiMWdhY2h6NCIsInlqMmhoYyIsIjF5MW1pZ3ciLCI3dzVncW8iLCIxN2VwaHE4IiwicG5maDhnIiwiMXA1emk4MCIsImNieXl2NCIsIjFidWl6dW8iLCJ1Mzh6Y3ciLCIxdGx0MGNnIiwiM2dieW04IiwiMTJ5dnpscyIsImw3bHo0MCIsIjFrcTYwM2siLCJlanZweGMiLCIxZTJmcXd3Iiwid2I1cWY0IiwiMXZ0cHJlbyIsIjVvOHBvZyIsIjE1NnNxbzAiLCJuZmlxNjgiLCIxbXkycjVzIiwiYTQyN3N3IiwiMTltbThzZyIsInJ2YzhhbyIsIjFyZHc5YTgiLCIxOGY3azAiLCIxMHF6OGprIiwiaXpwODFzIiwiMWlpOTkxYyIsImZudTNnZyIsIjFmNmU0ZzAiLCJ4ZjQzeTgiLCIxd3hvNHhzIiwiNnM3MzdrIiwiMTZhcjQ3NCIsIm9qaDNwYyIsIjFvMjE0b3ciLCJiODBsYzAiLCIxYXFrbWJrIiwic3phbHRzIiwiMXNodW10YyIsIjJjZGwzNCIsIjExdXhtMm8iLCJrM25sa3ciLCIxam03bWtnIiwiZGZ4Y2U4IiwiMWN5aGRkcyIsInY3N2N3MCIsIjF1cHJkdmsiLCI0a2FjNWMiLCIxNDJ1ZDR3IiwibWJrY240IiwiMWx1NGRtbyIsIjkwM3U5cyIsIjE4aW52OWMiLCJxcmR1cmsiLCIxcTl4dnI0IiwiNGd1MHciLCJ6bjB2MGciLCJodnF1aW8iLCIxaGVhdmk4IiwiaGxyOTR3IiwiMWg0YmE0ZyIsInpkMTltbyIsIjF5dmxhbTgiLCI4cTQ4dzAiLCIxODhvOXZrIiwicWhlOWRzIiwiMXB6eWFkYyIsImQ1eHIwZyIsIjFjb2hzMDAiLCJ1eDdyaTgiLCIxdWZyc2hzIiwiNGFhcXJrIiwiMTNzdXJyNCIsIm0xa3I5YyIsIjFsazRzOHciLCJmZHVpMm8iLCIxZXdlajI4IiwieDU0aWtnIiwiMXdub2prMCIsIjZpN2h0cyIsIjE2MHJpdGMiLCJvOWhpYmsiLCIxbnMxamI0IiwiYXkwenk4IiwiMWFnbDB4cyIsInNwYjBnMCIsIjFzN3YxZmsiLCIyMmR6cGMiLCIxMWt5MG93IiwianRvMDc0IiwiMWpjODE2byIsImdoc3ZscyIsIjFnMGN3bGMiLCJ5OTJ3M2siLCIxeHJteDM0IiwiN201dmN3IiwiMTc0cHdjZyIsInBkZnZ1byIsIjFvdnp3dTgiLCJjMXpkaGMiLCIxYmtqZWd3IiwidHQ5ZHo0IiwiMXRidGV5byIsIjM2Y2Q4ZyIsIjEyb3dlODAiLCJreG1kcTgiLCIxa2c2ZXBzIiwiZTl3NGprIiwiMWRzZzVqNCIsIncxNjUxYyIsIjF2anE2MHciLCI1ZTk0YW8iLCIxNHd0NWE4IiwibjVqNHNnIiwiMW1vMzVzMCIsIjl1Mm1mNCIsIjE5Y21uZW8iLCJybGNtd3ciLCIxcjN3bndnIiwieWZtNjgiLCIxMGd6bjVzIiwiaXBwbW8wIiwiMWk4OW5uayIsImgxczJkYyIsIjFna2MzY3ciLCJ5dDIydjQiLCIxeWJtM3VvIiwiODY1MjRnIiwiMTdvcDM0MCIsInB4ZjJtOCIsIjFwZnozbHMiLCJjbHlrOHciLCIxYzRpbDhnIiwidWQ4a3FvIiwiMXR2c2xxOCIsIjNxYmswMCIsIjEzOHZremsiLCJsaGxraHMiLCIxbDA1bGhjIiwiZXR2YmI0IiwiMWVjZmNhbyIsIndsNWJzdyIsIjF3M3Bjc2ciLCI1eThiMjgiLCIxNWdzYzFzIiwibnBpYmswIiwiMW44MmNqayIsImFlMXQ2byIsIjE5d2x1NjgiLCJzNWJ0b2ciLCIxcm52dW8wIiwiMWllc3hzIiwiMTEweXR4YyIsImo5b3RmayIsIjFpczh1ZjQiLCJmeHRvdTgiLCIxZmdkcHRzIiwieHAzcGMwIiwiMXg3bnFiayIsIjcyNm9sYyIsIjE2a3Fwa3ciLCJvdGdwMzQiLCIxb2MwcTJvIiwiYmkwNnBzIiwiMWIwazdwYyIsInQ5YTc3ayIsIjFzcnU4NzQiLCIybWQ2Z3ciLCIxMjR4N2dnIiwia2RuNnlvIiwiMWp3Nzd5OCIsImRwd3hzMCIsIjFkOGd5cmsiLCJ2aDZ5OXMiLCIxdXpxejljIiwiNHU5eGo0IiwiMTRjdHlpbyIsIm1sankwdyIsIjFtNDN6MGciLCI5YTNmbmsiLCIxOHNuZ240IiwicjFkZzVjIiwiMXFqeGg0dyIsImVnZmVvIiwiengwZ2U4IiwiaTVxZndnIiwiMWhvYWd3MCIsImhncmdnMCIsIjFnemJoZmsiLCJ6ODFneHMiLCIxeXFsaHhjIiwiOGw0Zzc0IiwiMTgzb2g2byIsInFjZWdvdyIsIjFwdXlob2ciLCJkMHh5YmsiLCIxY2poemI0IiwidXM3eXRjIiwiMXVhcnpzdyIsIjQ1YXkybyIsIjEzbnV6MjgiLCJsd2t5a2ciLCIxbGY0emswIiwiZjh1cGRzIiwiMWVyZXFkYyIsIngwNHB2ayIsIjF3aW9xdjQiLCI2ZDdwNHciLCIxNXZycTRnIiwibzRocG1vIiwiMW5uMXFtOCIsImF0MTc5YyIsIjFhYmw4OHciLCJza2I3cjQiLCIxczJ2OHFvIiwiMXhlNzBnIiwiMTFmeTgwMCIsImpvbzdpOCIsIjFqNzg4aHMiLCJnY3Qyd3ciLCIxZnZkM3dnIiwieTQzM2VvIiwiMXhtbjRlOCIsIjdoNjJvMCIsIjE2enEzbmsiLCJwOGczNXMiLCIxb3IwNDVjIiwiYnd6a3NnIiwiMWJmamxzMCIsInRvOWxhOCIsIjF0NnRtOXMiLCIzMWNramsiLCIxZG5nY3U4IiwibjBqYzNrIiwiMXF5d3Y3ayIsImd3czlvZyIsIjE3anBhZjQiLCJ1ODhzMXMiLCIxa3Y1c3NnIiwiNXQ4aWRjIiwiMTlybTFoYyIsImo0cDBxbyIsIjF4Mm54bW8iLCJiZDBlMHciLCIxMXp4ZXJrIiwidmM3NWt3IiwiMWx6NDZiayIsIjlnbXBzIiwiMWg5YjJ0YyIsInFtZTIybyIsIjF1a3JsNm8iLCJmaXVhcmsiLCIxNjVyYmk4Iiwic3VhdDR3IiwiMWpoN3R2ayIsIjdyNW8xcyIsIjFicGo3NXMiLCJsMm02ZjQiLCIxdm9weXBzIiwiOXoyZjQwIiwiMTBsemZ1byIsInl5MXZrMCIsIjFwa3l3YW8iLCIzdmJjb3ciLCIxZWhmNHprIiwibnVpNDh3IiwiMXJzdm5jdyIsImcydGhqNCIsIjE2cHFpOXMiLCJ0ZTl6d2ciLCIxazE3MG40IiwiNHo5cTgwIiwiMTh4bjljMCIsImlhcThsYyIsIjF5ajNzdzAiLCJjdGc5YTgiLCIxM2dkYTB3Iiwid3NuMHU4IiwiMW5mazFrdyIsIjFwd2h6NCIsIjFmbnZldjQiLCJwMHllNGciLCIxc3pieDhnIiwiZHhlbXRjIiwiMTRrYm5rMCIsInI4djU2byIsIjFodnM1eGMiLCI3dG5rZTgiLCIxYnMxM2k4IiwibDU0MnJrIiwiMXZyN3YyOCIsImExa2JnZyIsIjEwb2hjNzQiLCJ4Y203bHMiLCIxbnpqOGNnIiwiMjl2b3FvIiwiMWN2emgxYyIsIm05MmdhbyIsIjFxN2Z6ZW8iLCJoajljc2ciLCIxODY2ZGo0IiwidXVwdjVzIiwiMWxobXZ3ZyIsIjZmcGxoYyIsIjFhZTM0bGMiLCJqcjYzdW8iLCIxeHA1MHFvIiwiYnpoaDR3IiwiMTJtZWh2ayIsInZ5bzhvdyIsIjFtbGw5ZmsiLCJ2eHB0cyIsIjFnaHU3MGciLCJwdXg2OXMiLCIxdHRhcGRzIiwiZXJkZXlvIiwiMTVlYWZwYyIsInMydHhjMCIsIjFpcHF5Mm8iLCI2em9zOHciLCIxYXkyYmN3Iiwia2I1YW04IiwiMXV4OTJ3dyIsIjk3bGpiNCIsInp1aWsxcyIsIno1amtsYyIsIjFwc2dsYzAiLCI0MnQxcTgiLCIxZW93dTB3IiwibzF6dGE4IiwiMXMwZGNlOCIsImdhYjZrZyIsIndkbm1yayIsIjhzbTU4ZyIsIm44MTE0dyIsImJraTMyOCIsInNlMmd3MCIsIjNmMzBnMCIsImh1aHdjZyIsImU4bjZkYyIsInhudXI1cyIsIjZieXF5byIsInByNmJyNCIsIjkzdW9zZyIsInR4MDhocyIsIjFtNW5nZyIsImxudWJjdyIsImdvMW1ndyIsInYzZ2lkYyIsIjdpZjB1OCIsIm5scmgxYyIsImN4NzNzdyIsInJjbHpwYyIsIjJkbWo5YyIsImp1d3lkYyIsImV2NDloYyIsIjUzbjF0cyIsImF4ZWl2NCIsImR0eWJrIiwiZnM3ZjI4IiwiOGFpZHE4IiwiYm92ZW8wIiwiNDc2ZGMwIiwiZG1za2NnIiwiNXE0NHhzIiwiOXZ5MW9nIiwiMXFpejI4IiwiaGp2dHZrIiwiNzBiOWMwIiwiY2YzY2FvIiwiMzlncW8wIiwiZXpobDM0IiwiNGZ4MGprIiwiYTlvaGt3IiwicDJodmsiLCJnaWZjb3ciLCI4Z2Z3MXMiLCJiOGJ0dmsiLCIzcW1zamsiLCJlNTdrZTgiLCI2bmlqMjgiLCI5ZmVndzAiLCIxNjhqcjQiLCJnemxla2ciLCI3ZXpldjQiLCJkOHF2d2ciXQ")):_0x4d3546}catch(e){return console[t(398)]("_0x1530b1",e),[]}}function _0x59ab84(t){var e=_0x230d0f;try{var i=_0x1530b1();if(ProperMedia[e(399)][e(365)](t)){var r=i[e(384)](t);return-1!==r&&_0xef5ca[r]&&(t=_0xef5ca[r]),ProperMedia[e(399)].validateValue(t,{type:e(389),max_len:15})}return ProperMedia[e(399)][e(403)](t,{type:"number",max:999,max_len:15})}catch(e){return console.log("_0x59ab84",e),t}}function _0x2b21de(t){var i=_0x230d0f;try{var r=_0x1530b1();return t.sort(function(e,t){var i=_0x22c2,e=r.indexOf(e[i(382)]);return r.indexOf(t[i(382)])-e}),t}catch(e){return console[i(398)]("_0x2b21de",e),t||[]}}function _0x4f6067(e){var t=_0x230d0f;try{var i=parseFloat(ProperMedia[t(399)][t(400)](e,t(393)))||0,r=e.hasWinningAmazonBid()?_0x3aa07a(e[t(377)][t(382)]):0,s=parseFloat(e[t(402)]||0);return Math.max(i,r,s)}catch(e){return console[t(398)](t(394),e),0}}function _0x432f92(e){var t=_0x230d0f;try{if(e[t(368)]()||e[t(374)]()){var i=parseFloat(ProperMedia[t(399)].deepAccess(e,"winning_ad.dfp_price"))||0;return(e[t(374)]()?_0x3aa07a(e[t(377)][t(382)]):0)<=i?e[t(392)]:e[t(377)]}return!1}catch(e){return console[t(398)](t(369),e),!1}}function _0x359c5d(r,s,o){var a=_0x230d0f;try{return r[a(366)]&&r[a(366)][a(383)]&&r.amazon_ads[a(401)](function(e){var t=a;void 0===s[e.size]&&(o[e[t(385)]]=Math.round(2.5*(99===r[t(375)][e[t(385)]]?4:r[t(375)][e[t(385)]])),s[e[t(385)]]=[]);var i=_0x3aa07a(e[t(382)])||0;s[e[t(385)]][t(391)](i),s[e[t(385)]][t(383)]>o[e[t(385)]]&&(s[e[t(385)]][t(381)](function(e,t){return parseFloat(t)-parseFloat(e)}),s[e.size]=s[e[t(385)]].splice(o[e[t(385)]]-1))}),s}catch(e){return console.log("_0x359c5d",e),s||[]}}function _0x3aa07a(e){var t=_0x230d0f;try{var i=_0x1530b1(),r=0;if(ProperMedia.utils[t(365)](e)){var s=e[t(371)](/(o_|v_)/,"");if("testBid"==s)return 100;var o=i[t(384)](s);-1!==o&&(o<300?r=(o+1)/100:o<424?r=3+5*(o-299)/100:o<454&&(r=o-423+20))}else ProperMedia[t(399)][t(388)](e)&&(r=e);return parseFloat(r)}catch(e){return console[t(398)](t(378),e),0}}return{init:init,set_options:set_options,proper_log:properLog.proper_log,proper_debug_console:proper_debug_console,proper_debug_overlay:proper_debug_overlay,proper_display:proper_display,proper_render:proper_render,logMatchingResponse:logMatchingResponse,disableSlotRefresh:disableSlotRefresh,getReportAdInfo:getReportAdInfo,getAdSlots:getAdSlots,refreshSlotByName:refreshSlotByName,refreshAuctionAndSlotsByName:refreshAuctionAndSlotsByName,sendError:sendError,spaNewPage:spaNewPage,spaNewSection:spaNewSection,spaNewPageReset:spaNewPageReset,newPageView:newPageView,runNewAuction:runNewAuction,disableAuctionRefresh:disableAuctionRefresh,infScrollNewPage:infScrollNewPage,buildSlots:buildSlots,deleteSlot:deleteSlot,destroyDfpSlot:destroyDfpSlot,getVideoPlayerOps:getVideoPlayerOps,createVideoSlot:createVideoSlot,runVideoAuction:runVideoAuction,getVideoAd:getVideoAd,destroyVideoPlayer:destroyVideoPlayer,logOutstreamAdSuccess:logOutstreamAdSuccess,logVideoAdSuccess:logVideoAdSuccess,logVideoUnfilled:logVideoUnfilled,logVideoAdError:logVideoAdError,proper_remnant:proper_remnant,runATS:runATS,cookieMatching:cookieMatching,publisherAudiencesOptOut:publisherAudiencesOptOut,getUserIdsAsEids:getUserIdsAsEids,closeSliderSlot:closeSliderSlot,testRps:testRps}}(window,document);var proper_log=ProperMedia.ad_project.proper_log,proper_debug_console=ProperMedia.ad_project.proper_debug_console,proper_debug_overlay=ProperMedia.ad_project.proper_debug_overlay,proper_display=ProperMedia.ad_project.proper_display,proper_render=ProperMedia.ad_project.proper_render,disableSlotRefresh=ProperMedia.ad_project.disableSlotRefresh,logMatchingResponse=ProperMedia.ad_project.logMatchingResponse,properSpaNewPage=ProperMedia.ad_project.spaNewPage,properSpaNewSection=ProperMedia.ad_project.spaNewSection,properSpaNewPageView=ProperMedia.ad_project.newPageView,properSpaNewPageReset=ProperMedia.ad_project.spaNewPageReset,properInfNewPage=ProperMedia.ad_project.infScrollNewPage,properBuildSlots=ProperMedia.ad_project.buildSlots,properDeleteSlot=ProperMedia.ad_project.deleteSlot,properDestroyDfpSlot=ProperMedia.ad_project.destroyDfpSlot,proper_remnant=ProperMedia.ad_project.proper_remnant,runATS=ProperMedia.ad_project.runATS,publisherAudiencesOptOut=ProperMedia.ad_project.publisherAudiencesOptOut,refreshAuctionAndSlotsByName=ProperMedia.ad_project.refreshAuctionAndSlotsByName;ProperMedia.ad_project.init();