!(function(o,_name){o[_name]=o[_name]||function $(){($.q=$.q||[]).push(arguments)},o[_name].v=o[_name].v||2;!(function(o,t,n,f,e,i){function c(f,e){(f=(function(t,n){try{if(n=(t=o.localStorage).getItem("_aQS02MDE4OEY3ODEyNzc4OTNEQjEzNDZEM0YtNDg"))return JSON.parse(n).lgk||[];if((t.getItem("v4ac1eiZr0")||"").split(",")[4]>0)return[[_name+"-engaged","true"]]}catch(f){}})())&&typeof f.forEach===n&&(e=o[t].pubads())&&f.forEach((function(o){o&&o[0]&&e.setTargeting(o[0],o[1]||"")}))}(i=o[t]=o[t]||{}).cmd=i.cmd||[],typeof i.pubads===n?c():typeof i.cmd.unshift===n?i.cmd.unshift(c):i.cmd.push(c)})(window,"googletag","function");})(window,decodeURI('%61%64m%69%72al'));!(function(t,c,i){i=t.createElement(c),t=t.getElementsByTagName(c)[0],i.async=1,i.src="https://rangeplayground.com/static/2218e9c/1d0465a449e69eb5a18e8050775e4.main.js",t.parentNode.insertBefore(i,t)})(document,"script");!function(){"use strict";const e="https://d.pub.network",t="https://a.pub.network/core/pubfig/5.28.0/pubfig.engine.js",n=["AT","BE","BG","HR","CY","CZ","DK","EE","EL","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"],i=["CA","CT","CO","VA","UT"],r={videoAdhesion:{prettyName:"Sticky Footer Video Adhesion",disabled:!1},stickyFooter:{prettyName:"Sticky Footer",disabled:!1,refreshDisabled:!1,refreshInterval:0},video:{prettyName:"Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},standAloneVideo:{prettyName:"Stand Alone Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},revolvingRail:{prettyName:"Revolving Rail",disabled:!1,refreshDisabled:!1,refreshInterval:0},pushdown:{prettyName:"Pushdown",disabled:!1,refreshDisabled:!1,refreshInterval:0},dynamicAds:{prettyName:"Dynamic Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0,optionsPath:"dynamicAdOptions"},footerBidding:{prettyName:"Footer Bidding",disabled:!1,refreshDisabled:!1,refreshInterval:0},superflex:{prettyName:"Superflex",disabled:!1,refreshDisabled:!1,refreshInterval:0},slidingUnit:{prettyName:"Sliding Unit",disabled:!1,refreshDisabled:!1,refreshInterval:0},sideWall:{prettyName:"Sidewall",disabled:!1,refreshDisabled:!1,refreshInterval:0},pageGrabber:{prettyName:"Page Grabber",disabled:!1,refreshDisabled:!1,refreshInterval:0},interstitial:{prettyName:"Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},googleInterstitial:{prettyName:"Google Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},dianomiContentRec:{prettyName:"Dianomi Content Recommendation",disabled:!1,refreshDisabled:!1,refreshInterval:0},lazyLoad:{prettyName:"Lazy Loaded Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0}},a=document.querySelector('script[src*="pubfig.min.js"]')?document.querySelector('script[src*="pubfig.min.js"]').src.split("https://a.pub.network/")[1].split("/")[0]:"freestar-com",o=`${e}/v2/sites/${a}/configs?env=ENV`,s="&configId=NUMBER",c="&debug=true",d="&testId=TEST_ID",l="&variantId=VARIANT_ID",u="fs.abtest.group",f="fs.abtest.id",p="fs.abtest.type",w="fs.abtest.variant_type",b="fs.abtest.pubfig_location",m={pubfigEngineLoadInit:"pubfig-engine-load-init",pubfigEngineSetupStart:"pubfig-engine-setup-start",pubfigEngineLoad:"pubfig-engine-load",pubfigSlotRequested:"pubfig-slotRequested",pubfigStickyFooterSlotRequested:"pubfig-sticky-footer-slotRequested",pubfigSlotRenderEnded:"pubfig-slotRenderEnded",pubfigEngineSetupEnd:"pubfig-engine-setup-end",pubfigStickyFooterSlotRenderEnded:"pubfig-sticky-footer-slotRenderEnded",pubfigPrebidFsRequestBids:"pubfig-prebid-fsRequestBids",pubfigPrebidAuctionInit:"pubfig-prebid-auctionInit",pubfigPrebidAuctionEnd:"pubfig-prebid-auctionEnd",pubfigLoaded:"pubfig-loaded",pubfigInitRequestStart:"pubfig-init-request-start",pubfigInitRequestEnd:"pubfig-init-request-end"};function g(e){for(var t=1;t{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");let t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},_=()=>window.location.search.includes("fslog");function T({isActive:e=!1}){window.freestar.debug=!(!e&&!_())&&99}function S(e){return"US"===e.iso&&i.includes(e.state)}function E(e){return!!e&&(n.includes(e.iso)||"QC"===e.state)}function I(e){const t=E(e),n=S(e),i=(({isGDPRCountry:e,isUspApplicable:t,ccpaPrivacyManagerId:n,gdprPrivacyManagerId:i})=>"window._sp_queue = [];window._sp_ = {\n config: {\n accountId: 1638,\n baseEndpoint: 'https://cdn.privacy-mgmt.com',\n propertyHref: 'https://"+document.location.host+`',\n ${e?"gdpr: {},":""}\n ${t?"ccpa: {},":""}\n events: {\n onMessageChoiceSelect: function() {\n console.log('[event] onMessageChoiceSelect', arguments);\n },\n onMessageReady: function() {\n console.log('[event] onMessageReady', arguments);\n },\n onMessageChoiceError: function() {\n console.log('[event] onMessageChoiceError', arguments);\n },\n onPrivacyManagerAction: function() {\n console.log('[event] onPrivacyManagerAction', arguments);\n },\n onPMCancel: function() {\n console.log('[event] onPMCancel', arguments);\n },\n onMessageReceiveData: function() {\n console.log('[event] onMessageReceiveData', arguments);\n },\n onSPPMObjectReady: function() {\n console.log('[event] onSPPMObjectReady', arguments);\n },\n /* Function required for resurfacing links */\n onConsentReady: function (message_type, uuid, string, info) {\n if (document.getElementById("pmLink")) {\n if ((message_type == "ccpa") && (info.applies)) {\n /* code to insert the CCPA footer link */\n document.getElementById("pmLink").style.visibility = "visible";\n document.getElementById("pmLink").innerHTML = "Do Not Sell or Share My Personal Information";\n document.getElementById("pmLink").onclick = function () {\n /* Set CCPA ID */\n window._sp_.ccpa.loadPrivacyManagerModal('${n}');\n }\n }\n if ((message_type == "gdpr") && (info.applies)) {\n /* code to insert the GDPR footer link */\n document.getElementById("pmLink").style.visibility = "visible";\n document.getElementById("pmLink").innerHTML = "Privacy Preferences";\n document.getElementById("pmLink").onclick = function () {\n /* Set GDPR ID */\n window._sp_.gdpr.loadPrivacyManagerModal('${i}');\n }\n }\n }\n },\n onError: function() {\n console.log('[event] onError', arguments);\n },\n }\n }\n }`)({isGDPRCountry:t,isUspApplicable:n,ccpaPrivacyManagerId:freestar.fsdata.ccpaPrivacyManagerId||899036,gdprPrivacyManagerId:freestar.fsdata.gdprPrivacyManagerId||899033});F(null,null,null,i,!1),t&&F(null,null,null,'function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}()',!1),n&&F(null,null,null,'(function () { var e = false; var c = window; var t = document; function r() { if (!c.frames["__uspapiLocator"]) { if (t.body) { var a = t.body; var e = t.createElement("iframe"); e.style.cssText = "display:none"; e.name = "__uspapiLocator"; a.appendChild(e) } else { setTimeout(r, 5) } } } r(); function p() { var a = arguments; __uspapi.a = __uspapi.a || []; if (!a.length) { return __uspapi.a } else if (a[0] === "ping") { a[2]({ gdprAppliesGlobally: e, cmpLoaded: false }, true) } else { __uspapi.a.push([].slice.apply(a)) } } function l(t) { var r = typeof t.data === "string"; try { var a = r ? JSON.parse(t.data) : t.data; if (a.__cmpCall) { var n = a.__cmpCall; c.__uspapi(n.command, n.parameter, function (a, e) { var c = { __cmpReturn: { returnValue: a, success: e, callId: n.callId } }; t.source.postMessage(r ? JSON.stringify(c) : c, "*") }) } } catch (a) { } } if (typeof __uspapi !== "function") { c.__uspapi = p; __uspapi.msgHandler = l; c.addEventListener("message", l, false) } })();',!1),F("https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js")}const x=["tcloaded","useractioncomplete"];let N=!1,A=0;const D=function({data:e}){const{eventStatus:t}=e;if(x.includes(t)){const{purpose:t,vendor:n}=e,i=t?t.consents:void 0,r=n?n.consents:void 0;return function({consents:e}){freestar.consentManagement.consentData={consents:{1:e?e[1]:void 0,10:e?e[10]:void 0}}}({consents:i}),function(e,...t){return!(!e||!t)&&t.every((t=>!!e[t]))}(i,1,10)&&function(e,...t){return!(!e||!t)&&t.every((t=>!!e[t]))}(r,850)}};function M({isTCF:e}){if(void 0===freestar.fsdata.comscore||!1!==freestar.fsdata.comscore){window._comscore=window._comscore||[];const t={c1:"2",c2:"23384447"};e||(t.cs_ucfr=""),_comscore.push(t),F("https://sb.scorecardresearch.com/beacon.js")}}const O=function(e,t){if("cmpuishown"===e.eventStatus)return;const n=D({data:e});M({isTCF:!0}),t?!N&&n&&(N=!0,$()):freestar.log(1,"Error: TCF Callback Failed")},P=function(){return A++,50===A?(clearTimeout(freestar.timers.tcfapi),freestar.timers.tcfapi=null,void M({isTCF:!1})):A<50&&!window.__tcfapi?(freestar.timers||(freestar.timers={}),void(freestar.timers.tcfapi=setTimeout(P,500))):(freestar.timers&&freestar.timers.tcfapi&&(clearTimeout(freestar.timers.tcfapi),freestar.timers.tcfapi=null),void window.__tcfapi("addEventListener",2,O))};const R="FREESTAR",C="FS_SOURCEPOINT_PUBFIG",q=(e,t)=>{const n=e===C,i=e===R,r=Boolean(window.__tcfapi),a=Boolean(window.__uspapi),o=S(t)&&!a,s=E(t)&&!r;n&&(o||s)?I(t):i&&(o||s)&&function(){const e=freestar.fsdata.quantcastDomain;if(e){var t="https://cmp.quantcast.com".concat("/choice/","wZt3yQfgdwnz-","/",e,"/choice.js?tag_version=V2"),n=0;F(t),function(){for(var e,t="__tcfapiLocator",n=[],i=window;i;){try{if(i.frames[t]){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}e||(function e(){var n=i.document,r=!!i.frames[t];if(!r)if(n.body){var a=n.createElement("iframe");a.style.cssText="display:none",a.name=t,n.body.appendChild(a)}else setTimeout(e,5);return!r}(),i.__tcfapi=function(){var e,t=arguments;if(!t.length)return n;if("setGdprApplies"===t[0])t.length>3&&2===t[2]&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0));else if("ping"===t[0]){var i={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof t[2]&&t[2](i)}else"init"===t[0]&&"object"==typeof t[3]&&(t[3]=Object.assign(t[3],{tag_version:"V2"})),n.push(t)},i.addEventListener("message",(function(e){var t="string"==typeof e.data,n={};try{n=t?JSON.parse(e.data):e.data}catch(e){}var i=n.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,(function(n,r){var a={__tcfapiReturn:{returnValue:n,success:r,callId:i.callId}};t&&(a=JSON.stringify(a)),e&&e.source&&e.source.postMessage&&e.source.postMessage(a,"*")}),i.parameter)}),!1))}();var i=function(){var e=arguments;typeof window.__uspapi!==i&&setTimeout((function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,e)}),500)};if(void 0===window.__uspapi){window.__uspapi=i;var r=setInterval((function(){n++,window.__uspapi===i&&n<3?console.warn("USP is not accessible"):clearInterval(r)}),6e3)}}else freestar.log(10,"loadQuantcast","Could not get quantcastDomain from fsdata, quantcast will not be loaded!")}(),function(e,t,n){const i=t||n;window.fsCmpInitMessage={eventType:"customEvent",args:{eventName:"PRIVACY_COMPLIANCE",eventType:`SITE_HAS_CMP=${i}`,jsonValue:JSON.stringify({cmpType:e,tcfapi:t,uspapi:n})}}}(e,r,a)};var j=new class{constructor(){this.isReportingActive=100*Math.random()<1,window.freestar=window.freestar||{},window.freestar.performanceMarksData=window.freestar.performanceMarksData||{pendingMarks:[],processedMarks:[]}}fetchPerformanceMarkDetails({markerName:e,compareToData:t}){const n=performance.getEntriesByName(e,"mark");if(0===n.length)return null;let i;t&&(i=performance.getEntriesByName(t,"mark"));const r=n[0];return{marker_name:r.name,absolute_time:r.startTime.toFixed(2),...this.compareMarks({mark:r,compareToPerformanceMarkData:i})}}compareMarks({mark:e,compareToPerformanceMarkData:t}){if(!t)return{};const n=(e.startTime-t[0].startTime).toFixed(2);return{compared_to:t[0].name,relative_Time:n}}fetchUserDetails(){const{deviceInfo:e,locData:t}=window.freestar,{browser:n,os:i,device:r}=e;return{...t,browser_name:n.name,browser_version:n.version,os_name:i.name,os_version:i.version,device_type:r.type}}isFirstLoad(){return null===sessionStorage.getItem("hasLoadedBefore")&&(sessionStorage.setItem("hasLoadedBefore","true"),!0)}sendPerformanceMarkerToQueue({markerName:e,compareTo:t}){if(this.isReportingActive&&!window.freestar.performanceMarksData.processedMarks.includes(e))if(window.freestar.performanceMarksData.processedMarks.push(e),0===t.length){const t=this.fetchPerformanceMarkDetails({markerName:e}),n=this.fetchUserDetails();window.freestar&&window.freestar.msg&&window.freestar.msg.que&&window.freestar.msg.que.push({eventType:"customEvent",args:{eventType:"PERFORMANCE",jsonValue:JSON.stringify({...t,...n,is_first_load:this.isFirstLoad(),pubfig_version:window.freestar.version}),eventName:e.toUpperCase()}})}else t.forEach((t=>{const n=this.fetchPerformanceMarkDetails({markerName:e,compareToData:t}),i=this.fetchUserDetails();window.freestar&&window.freestar.msg&&window.freestar.msg.que&&freestar.msg.que.push({eventType:"customEvent",args:{eventType:"PERFORMANCE",jsonValue:JSON.stringify({...n,...i,is_first_load:this.isFirstLoad(),pubfig_version:window.freestar.version}),eventName:e.toUpperCase()}})}))}pushAllPendingMarksToMsgQue(){window.freestar.performanceMarksData.pendingMarks.forEach((e=>{this.sendPerformanceMarkerToQueue(e)}))}logMark({markerName:e,compareTo:t=[],isFreestarDataCollectorInitialized:n=!0}){performance.mark(e),n&&window.freestar.deviceInfo&&window.freestar.locData?this.sendPerformanceMarkerToQueue({markerName:e,compareTo:t}):window.freestar.performanceMarksData.pendingMarks.push({markerName:e,compareTo:t})}logPerformanceMarkers(){const e=performance.getEntriesByType("mark");for(const t of e)console.log(`Mark [${t.name}]: ${t.startTime.toFixed(2)}ms`)}};function L(){if("object"!=typeof window.freestar.fsdata)throw new Error("The fsdata object is not properly defined, exiting...");if(window.freestar.fsdata.onlyAllowedDomains&&window.freestar.fsdata.allowedDomains&&window.freestar.fsdata.allowedDomains.length&&!function({domains:e}){let t=0===e.length;return e.forEach((e=>{0===e.indexOf("*.")&&(e=e.slice(2)),t||(t=-1!==top.location.host.indexOf(e))})),!(!t&&fsdata.onlyAllowedDomains)}({domains:window.freestar.fsdata.allowedDomains}))throw new Error("The current domain is not in the allowed domains list, exiting...");if(window.freestar.fsdata.urlBlocklist&&window.freestar.fsdata.urlBlocklist.length&&function(e){const t=/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/,n=e=>{try{return new URL(e),!0}catch(e){return!1}},i=e=>{const n=e.split("/");return t.test(n[0])},{href:r,pathname:a,host:o,search:s}=top.location,c=(e,t)=>e.includes("/*")?r.includes(e.replace("/*","")):t,d=e=>"/"===e[e.length-1]?e.substring(0,e.length-1):e;return e.find((e=>n(e)?c(e,d(r)===d(e)):i(e)?c(e,d(o+a+s)===d(e)):a.includes(e)))}(window.freestar.fsdata.urlBlocklist))throw new Error("The current domain is in the blocked url list, exiting...")}function U({id:e,src:t,errorString:n}){const i=B({type:"script",id:e,src:t});throw window.freestar.fsdata=null,document.head.appendChild(i),new Error(n)}function B({type:e="div",classList:t=[],id:n=!1,src:i=!1,name:r=!1,attributes:a=[]}){const o=document.createElement(e);return t.length&&(o.className=t.join(" ")),i&&(o.src=i),n&&(o.id=n),r&&o.setAttribute("name",r),a.length&&a.forEach((e=>{const t=Object.keys(e)[0];o.setAttribute(t,e[t])})),o}function F(e,t,n=null,i,r=!0){try{const a=B({type:"script",attributes:[{"data-owner":"freestar"}]});e&&(a.src=e),i&&(a.textContent=i),n&&(a.id=n),r&&(a.async=r),a.type="text/javascript",t&&(a.onload=t),document.getElementsByTagName("head")[0].appendChild(a)}catch(e){}}function $(){if(j.logMark({markerName:m.pubfigEngineLoadInit}),freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;let e=window.fsprebid||{};if(window.fsprebid=e,e.que=e.que||[],e.retries=0,freestar.fsdata.disallowedGeos&&freestar.fsdata.disallowedGeos.length&&freestar.fsdata.disallowedGeos.includes(freestar.locData.iso))freestar.log(0,"Ad serving is blocked in "+freestar.locData.iso);else{if(freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;F(window.freestar.pubfigVersionToLoad?`https://a.pub.network/core/pubfig/${window.freestar.pubfigVersionToLoad}/pubfig.engine.js`:t,V)}}function V(){freestar.globalUnderscore&&(window._=freestar.globalUnderscore)}function z(e){Math.random()<.01&&freestar.msg.que.push({eventType:"customEvent",args:{eventName:"PUBFIG_NOT_LOADED",eventType:e||"",jsonValue:JSON.stringify({domain:window.location.hostname})}})}function G({isTest:e}){const t=window.location.search.includes("fsdebug"),n=k("fsaltconfig"),i=[].slice.call(document.querySelectorAll("script#fsaltconfig"));if(e&&e.length)window.freestar.redirected=!0,U({id:"fs-ab-test",src:e,errorString:"AB TEST FOUND - exiting after creating new instance..."});else if(n.length&&0===i.length)U({id:"fsaltconfig",src:`https://a.pub.network/${a}/test/${n}/pubfig.min.js?bypass=true`,errorString:"Alternate Configuration - found alt version, exiting after creating new instance..."});else if(t&&!window._fsQaRedirect){let e;window._fsQaRedirect=!0,document.querySelectorAll("script").forEach((t=>{t.innerText.includes("qa/pubfig")&&(e=!0)})),e||U({id:"fs-qa",src:`https://a.pub.network/${a}/qa/pubfig.min.js`,errorString:"QA version called via params - exiting after creating new instance..."})}}function J(){!function(){if(window.freestar.config.disabledProducts)for(const e in window.freestar.config.disabledProducts)Object.prototype.hasOwnProperty.call(window.freestar.config.disabledProducts,e)&&(void 0===window.freestar.config.products[e]?console.error(`Freestar product name: ${e} does not exist.`):window.freestar.config.products[e].disabled=window.freestar.config.disabledProducts[e])}(),n.indexOf(freestar.locData.iso)>-1?P():(M({isTCF:!1}),$())}var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Z}(e)}(e)};var Z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function W(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ne((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Y(e,t,n){return e.concat(t).map((function(e){return W(e,n)}))}function X(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function ee(e,t){try{return t in e}catch(e){return!1}}function te(e,t,n){var i={};return n.isMergeableObject(e)&&X(e).forEach((function(t){i[t]=W(e[t],n)})),X(t).forEach((function(r){(function(e,t){return ee(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(ee(e,r)&&n.isMergeableObject(t[r])?i[r]=function(e,t){if(!t.customMerge)return ne;var n=t.customMerge(e);return"function"==typeof n?n:ne}(r,n)(e[r],t[r],n):i[r]=W(t[r],n))})),i}function ne(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Y,n.isMergeableObject=n.isMergeableObject||K,n.cloneUnlessOtherwiseSpecified=W;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):te(e,t,n):W(t,n)}ne.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ne(e,n,t)}),{})};var ie=Q(ne);let re=k("fsdebug"),ae=[];re&&"true"!==re&&!Number.isInteger(+re)&&(ae=re.split(",").map((e=>e.toUpperCase())));const oe=(e,...t)=>{let n="Pubfig",i="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";"object"==typeof e&&(n=e.title?e.title:n,i=e.styles?e.styles:i,e=void 0!==e.level?e.level:1),(freestar.debug>=e&&0===ae.length||ae.includes(n.toUpperCase()))&&console.info(`%c${n}: `,i,...t)};const se=[{owner:"google",ua:"googlebot"},{owner:"google",ua:"mediapartners-google"},{owner:"google",ua:"adsbot-google"},{owner:"bing",ua:"bingbot"},{owner:"yahoo",ua:"slurp"},{owner:"duckduckgo",ua:"duckduckbot"},{owner:"baidu",ua:"baiduspider"},{owner:"yandex",ua:"yandexbot"},{owner:"exabot",ua:"konqueror/3.5"},{owner:"exabot",ua:"Exabot/3.0"},{owner:"facebook",ua:"facebot"},{owner:"facebook",ua:"facebookexternalhit/1.0"},{owner:"facebook",ua:"facebookexternalhit/1.1"},{owner:"alexa",ua:"ia_archiver"}];function ce(e,t){throw freestar.queue.push((()=>{freestar.msg.que.push({eventType:"customEvent",args:{eventName:"BOT_DETECTED",eventType:"botDetected",jsonValue:JSON.stringify({detected:!0})}})})),v({botCookieName:e,value:!0}),`pubfig code disabled as the user agent ${t} is a bot`}const de={string:{type:"string",default:""},array:{type:"array",default:[]},object:{type:"object",default:{}},number:{type:"number",default:void 0}};function le({key:e,type:t=de.string.type}){const n=sessionStorage.getItem(e);return t===de.object.type?n&&JSON.parse(n)instanceof Object?JSON.parse(n):de.object.default:t===de.array.type?n&&Array.isArray(JSON.parse(n))?JSON.parse(n):de.array.default:t===de.number.type?Number.isInteger(Number(n))?Number(n):de.number.default:n}function ue({key:e,type:t=de.string,value:n}){n&&(t!==de.object&&t!==de.array||(n=JSON.stringify(n)),sessionStorage.setItem(e,n))}const fe=20,pe="adRefreshRate",we="visibilityRefreshTime";function be(e,t){if(e.refreshOptIn&&function(e){return!(!e||null==e.turboActive)&&e.turboActive}(t)){const n=function(e){return e&&e.percentReduction}(t);freestar.log(20,`TURBO MODE active! Applying ${n}% reduction to refresh rates!`);const i=(e,t)=>function(e,t,n,i){if(null==e||Number.isNaN(e)||e<=0)return freestar.log(20,`TURBO: ${i} refreshRate ${e} unchanged`),e;let r=Math.floor(e*(100-t)/100);return(null==r||Number.isNaN(r)||rthis.createInstance({ClassConstructor:e,instanceName:t})}}.getInstanceFn({ClassConstructor:class{constructor(){this.results={},this.ongoingRequests=new Map}clearClassCachedData({requestId:e}){Object.prototype.hasOwnProperty.call(this.results,e)&&delete this.results[e]}async fetch({fetchFn:e,requestId:t,onError:n,onSuccess:i}){if(this.results[t])return this.results[t];if(!this.ongoingRequests.has(t)){const r=e().then((e=>{const n={data:e,error:null};return this.results[t]=n,i&&i(e),n}),(e=>{const i={data:null,error:e};return this.results[t]=i,n&&n(e),i}));this.ongoingRequests.set(t,r)}return this.ongoingRequests.get(t).finally((()=>{this.ongoingRequests.delete(t)}))}},instanceName:"requestHandler"}),ge="fs.session";const he=new class{constructor(){this.known=0,this.init()}init(){const e=JSON.parse(le({key:ge}));e&&e.known&&(this.known=1)}update(){if(this.known)return;const e=this.computeIsKnownValue(),t=JSON.parse(le({key:ge}));let n=null;null==t?n={known:e}:(null==t.known||!t.known&&e)&&(n=Object.assign({},t,{known:e})),n&&ue({key:ge,type:de.object,value:n}),this.known=e}isKnownByPrebidUser(){return Boolean(window.fsprebid&&window.fsprebid.getUserIds&&0!==Object.keys(window.fsprebid.getUserIds()).length)}computeIsKnownValue(){return Number(this.isKnownByPrebidUser())}isKnown(){return this.known!=this.computeIsKnownValue()&&this.update(),this.known}};var ve,ye,ke={exports:{}};ve=ke,ye=ke.exports,function(e,t){var n="function",i="undefined",r="object",a="string",o="major",s="model",c="name",d="type",l="vendor",u="version",f="architecture",p="console",w="mobile",b="tablet",m="smarttv",g="wearable",h="embedded",v="Amazon",y="Apple",k="ASUS",_="BlackBerry",T="Browser",S="Chrome",E="Firefox",I="Google",x="Huawei",N="LG",A="Microsoft",D="Motorola",M="Opera",O="Samsung",P="Sharp",R="Sony",C="Xiaomi",q="Zebra",j="Facebook",L="Chromium OS",U="Mac OS",B=function(e){for(var t={},n=0;n0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;u+=2}},G=function(e,n){for(var i in n)if(typeof n[i]===r&&n[i].length>0){for(var a=0;a2&&(e[s]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[c]=t,e[u]=t,z.call(e,h,y.engine),e},this.getOS=function(){var e={};return e[c]=t,e[u]=t,z.call(e,h,y.os),k&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,L).replace(/macos/i,U)),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 h},this.setUA=function(e){return h=typeof e===a&&e.length>350?V(e,350):e,this},this.setUA(h),this};Q.VERSION="1.0.36",Q.BROWSER=B([c,u,o]),Q.CPU=B([f]),Q.DEVICE=B([s,l,d,p,w,m,b,g,h]),Q.ENGINE=Q.OS=B([c,u]),ve.exports&&(ye=ve.exports=Q),ye.UAParser=Q;var K=typeof e!==i&&(e.jQuery||e.Zepto);if(K&&!K.ua){var Z=new Q;K.ua=Z.getResult(),K.ua.get=function(){return Z.getUA()},K.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)K.ua[n]=t[n]}}}("object"==typeof window?window:H);var _e=ke.exports;const Te=new class{constructor(){this.initManager()}initManager(){window.freestar=window.freestar||{},this._setDeviceType()}_setDeviceType(){window.freestar.deviceInfo=_e.UAParser(),window.freestar.deviceInfo.device.type||(window.freestar.deviceInfo.device={type:"desktop"})}getFormattedDeviceType(){if(window.freestar)return"Apple"===window.freestar.deviceInfo.device.vendor?"smartphone-ios":window.freestar.deviceInfo.device.type}},Se="4e799501-b8b6-4ef1-bad5-225b3dd1aa8d",Ee="https://api.floors.dev/sgw/v1/floors",Ie="fs.idealadstack.config";function xe(){return window.freestar.fsdata.domain||location.host}const Ne=async()=>{if(!JSON.parse(le({key:Ie}))){let e=await fetch(`https://optimise.net/?k=${he.isKnown()}&d=${xe()}&t=${Te.getFormattedDeviceType()}${k("fsiasdebug")?"&g=experiment":""}`,{method:"GET",credentials:"include",headers:{"x-api-key":Se}});const t=e.headers;e=await e.text(),e=JSON.parse(e);const{testGroup:n}=e,i={testGroup:n,roundTripTime:t.get("fs-client-rtt"),...e.config};return ue({key:Ie,type:de.object,value:i}),i}};const Ae="fs.config";function De({data:e,dataPath:t}){const n=function(e,t,n){if(!t)return;const i=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce(((e,t)=>e&&e[t]),e);return void 0===i?n:i}(e,t);if(n)return"location"===t?{iso:n.countryCode,city:n.cityName,state:n.state}:n}async function Me({callback:e}){const t=await fetch(`https://a.pub.network/${a}/fsdata.json`);if(!t.ok){const e=`No data returned from fsdata fallback endpoint: ${t.status}`;throw new Error(e)}const n=await t.json();n?(window.freestar.fsdata=n,window.freestar.locData=!1,window.freestar.networkMap=!1,e(null,!0)):e({error:"No data returned from fsdata endpoint"})}function Oe(){const e=window.location.search.includes("fsdebug"),t=k("fsaltconfig"),n=k("fstesturl"),i={env:"PROD",version:!1};return e?(i.env="QA",T({isActive:!0})):t&&t>0&&(i.env="TEST",i.version=t),n.length&&freestar.queue.push((function(){googletag.pubads().set("page_url",n)})),i}function Pe({pubfigSettings:e}){const{abTest:t}=e;if(t&&!window.freestar.redirected){const{testGroup:n,testId:i,testType:r,testVariantId:a}=t;if(`${n}`.length&&ue({key:u,value:`${n}`,type:de.string}),i&&ue({key:f,value:i,type:de.string}),a&&ue({key:w,value:a,type:de.string}),r&&(ue({key:p,value:r,type:de.string}),"PUBFIG_TEMPLATE"===r&&e.pubfigLocation))return ue({key:b,value:e.pubfigLocation,type:de.string}),e.pubfigLocation}return!1}const Re=["click","scroll"],Ce={},qe=()=>void 0!==window.freestar.config.pageSpeedOptimized?window.freestar.config.pageSpeedOptimized:window.freestar.fsdata.pageSpeedOptimized,je=()=>{Re.forEach((e=>document.removeEventListener(e,je)))},Le=({name:e,callback:t})=>{Ce[e].waiting&&!Ce[e].called&&(Ce[e].called=!0,je(),t())},Ue=({name:e,callback:t})=>{Object.prototype.hasOwnProperty.call(Ce,e)||(Ce[e]={waiting:!0},Re.forEach((n=>document.addEventListener(n,Le.bind(null,{name:e,callback:t}),{once:!0}))))};j.logMark({markerName:m.pubfigLoaded,isFreestarDataCollectorInitialized:!1}),function(){if(k("fsdisable"))throw new Error("pubfig disabled.")}();if(function(e){const t="fs.bot.found",n=y({name:t});n&&!0===Boolean(n)?ce(t,e):e&&!n&&(se.forEach((n=>{RegExp(n.ua.toLowerCase()).test(e.toLowerCase())&&ce(t,e)})),v({name:t,value:!1}))}(navigator.userAgent||window.navigator.userAgent),function(){let t=window.freestar||{};window.freestar=t,t.log=oe,t.version="5.28.0",t.hitTime=t.hitTime||Date.now(),t.queue=t.queue||[],t.config=t.config||{},t.config.products=t.config.products?ie(r,t.config.products):r,t.config.enabled_slots=t.config.enabled_slots||[],t.modulesLoaded=t.modulesLoaded||{engine:!1,messaging:!1,pubfig:!1,prebid:!1},t.msg={},t.msg.collectorURL=window.freestarUrl||"https://c.pub.network",t.msg.dispensaryURL=window.dispensaryUrl||e,t.consentManagement={consentData:{}},t.newAdSlots=function(e,n=null){t.loaded||z("newAdSlots"),t.queue.push((function(){t.newAdSlots(e,n)}))},t.deleteAdSlots=function(e){t.loaded||z("deleteAdSlots"),t.queue.push((function(){t.deleteAdSlots(e)}))},t.newStickyFooter=function(e){t.loaded||z("newStickyFooter"),t.queue.push((function(){t.newStickyFooter(e)}))},t.newSidewall=function(e){t.loaded||z("newSidewall"),t.queue.push((function(){t.newSidewall(e)}))},t.newVideo=function(e){t.loaded||z("newVideo"),t.queue.push((function(){t.newVideo(e)}))},t.newPushdown=function(e){t.loaded||z("newPushdown"),t.queue.push((function(){t.newPushdown(e)}))},t.newStandAlonePlayer=function(e){t.loaded||z("newStandAlonePlayer"),t.queue.push((function(){t.newStandAlonePlayer(e)}))},t.deleteStandAlonePlayer=function(e){t.loaded||z("deleteStandAlonePlayer"),t.queue.push((function(){t.deleteStandAlonePlayer(e)}))}}(),Te.initManager(),!freestar.modulesLoaded.pubfig){let e=!1;const t=window.performance.getEntriesByType("navigation");t.length>0&&t[0].loadEventEnd>0&&(e=!0),window.addEventListener("load",(function(){e=!0}));const n=new URLSearchParams(window.location.search);n.get("fsLoadPubfigVersion")&&(window.freestar.pubfigVersionToLoad=n.get("fsLoadPubfigVersion")),G({isTest:!1}),j.logMark({markerName:m.pubfigInitRequestStart,isFreestarDataCollectorInitialized:!1}),async function(e){let t=le({key:Ae});if(t&&(t=JSON.parse(t),t.timestamp&&(Date.now()-t.timestamp)/1e3/60>=180&&(t=null)),("PROD"!==Oe().env||"PROD"===Oe().env&&t&&t.altconfig)&&(t=!1),!t){const n=await fetch(function(){const e=Oe();let t=o.replace("ENV",e.env);"TEST"===e.env&&(t+=s.replace("NUMBER",e.version.toString())),"PROD"!==e.env&&(t+=c);const n=le({key:f}),i=le({key:w});return n&&(t+=d.replace("TEST_ID",n)),i&&(t+=l.replace("VARIANT_ID",i)),t}(),{credentials:"include"});n.ok||e({error:`No data returned from initURL fetching fsdata endpoint: ${n.status}`}),t=await n.json(),t.timestamp=Date.now(),"TEST"!==Oe().env||t.altconfig||(t.altconfig=!0),ue({key:Ae,value:t,type:de.object})}if(freestar.msg.que=freestar.msg.que||[],t&&0===Object.keys(t).length)return window.freestar.msg.que.push({eventType:"customEvent",args:{eventName:"INIT_ENDPOINT_FAILED",eventType:"EMPTY_FSDATA",jsonValue:JSON.stringify(window.freestar.fsdata)}}),Me({callback:e});t?(G({isTest:Pe({pubfigSettings:t.pubfigSettings})}),window.freestar.msg.fpc=De({data:t,dataPath:"fsuid"}),window.freestar.locData=De({data:t,dataPath:"location"}),window.freestar.networkMap=De({data:t,dataPath:"networkMap.networks"}),window.freestar.fsdata=De({data:t,dataPath:"pubfigSettings.fsdata"}),window.freestar.adRefreshTurboConfig=De({data:t,dataPath:"adRefresh"}),be(window.freestar.fsdata,window.freestar.adRefreshTurboConfig),window.freestar.fsdata&&0===Object.keys(window.freestar.fsdata).length&&(window.freestar.msg.que.push({eventType:"customEvent",args:{eventName:"INIT_ENDPOINT_FAILED",eventType:"EMPTY_FSDATA",jsonValue:JSON.stringify(window.freestar.fsdata)}}),Me({callback:e})),me().fetch({fetchFn:Ne,requestId:"getIdealData",onError:()=>{me().fetch({requestId:"getFloorsData",fetchFn:()=>async function(e,t,n,i,r){const a=xe(),o="Apple"===e?"smartphone-ios":t,s=he.isKnown(),c=i&&null!=r?`&mb=${r}&au=${encodeURIComponent(i)}`:"",d=fetch(`${Ee}?d=${a}&t=${o}&k=${s}&r=${n}${c}`,{headers:{"x-api-key":Se}}),l=await d;return await l.json()}(window.freestar.deviceInfo.device.vendor,window.freestar.deviceInfo.device.type,0)})}}),e(null,{})):e({error:"Empty fsdata returned from get call"})}(((t,n)=>{if(j.logMark({markerName:m.pubfigInitRequestEnd,compareTo:[m.pubfigInitRequestStart]}),q(window.freestar.fsdata.cmpType,window.freestar.locData),T({}),L(),freestar.fsdata.footerBiddingEnabled&&!function({name:e}){return!(!window.freestar.config.products[e]||!window.freestar.config.products[e].disabled||(window.freestar.log(1,`${r[e].prettyName} Disabled via freestar.config.products.${e}.disabled`),0))}({name:"footerBidding"})){let{psoDisableInteraction:t=!1}=freestar.fsdata;(!qe()||qe()&&t)&&(e?J():window.addEventListener("load",J)),qe()&&!t&&Ue({name:"engine",callback:J})}else J();freestar.modulesLoaded.pubfig=!0}))}}();