[]
t.priority-e.priority).map(([t])=>t);for(const e of r){const n=o.get(e),r=t[e];if(!n||!r)continue;const c=decodeURIComponent(n),d=”plaintext”===r.type&&i(c),s=”hashed”===r.type&&c;if(d||s){a={value:c,config:r};break}}if(a){const{value:t,config:e}=a;window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(function(){window.adthrive.identityApi({source:e.source,[e.identityApiKey]:t},({success:i,data:n})=>{i?window.adthrive.log(“info”,”Plugin”,”detectEmails”,`Identity API called with ${e.type} email: ${t}`,n):window.adthrive.log(“warning”,”Plugin”,”detectEmails”,`Failed to call Identity API with ${e.type} email: ${t}`,n)})})}!function(t,e){const i=new URL(e);t.forEach(t=>i.searchParams.delete(t)),history.replaceState(null,””,i.toString())}(e,n)}()}(); ]]> p”,”skip”:1,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”stickyOverlapSelector”:””,”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[300,50],[300,300],[552,334],[728,250],[300,250],[1,2]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazyMax”:98,”enable”:true,”lazy”:true,”elementSelector”:”.entry-content-inner > p”,”skip”:1,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”stickyOverlapSelector”:””,”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[300,50],[300,300],[552,334],[728,250],[300,250],[1,2]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“desktop”,”tablet”,”phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:0,”lazyMax”:2,”enable”:true,”lazy”:true,”elementSelector”:”.wp-block-group.homepage-black.is-layout-flow.wp-block-group-is-layout-flow, .wp-block-group.homepage-gray.spotlight.full-width-element.is-layout-flow.wp-block-group-is-layout-flow”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”stickyOverlapSelector”:””,”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[300,50],[300,300],[552,334],[728,250],[300,250],[1,2]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Footer”],”key”:”location”}],”devices”:[“desktop”,”tablet”,”phone”],”name”:”Footer”,”sticky”:false,”location”:”Footer”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazyMax”:null,”enable”:true,”lazy”:false,”elementSelector”:”body”,”skip”:0,”classNames”:[],”position”:”beforeend”,”every”:1,”enabled”:true},”stickyOverlapSelector”:””,”adSizes”:[[728,90],[320,50],[468,60],[970,90],[1,1],[320,100],[300,50]],”priority”:-1,”autosize”:true}],”adDensityLayout”:{“mobile”:{“adDensity”:0.28,”onePerViewport”:false},”pageOverrides”:[{“mobile”:{“adDensity”:0.24,”onePerViewport”:true},”note”:”Enabled viewpoert override to avoid ads after each paragraph”,”pageSelector”:”.post-template-default”,”desktop”:{“adDensity”:0.24,”onePerViewport”:false}}],”desktop”:{“adDensity”:0.28,”onePerViewport”:false}},”adDensityEnabled”:true,”siteExperiments”:[],”adTypes”:{“sponsorTileDesktop”:true,”interscrollerDesktop”:true,”nativeBelowPostDesktop”:true,”miniscroller”:true,”largeFormatsMobile”:true,”nativeMobileContent”:true,”inRecipeRecommendationMobile”:true,”nativeMobileRecipe”:true,”sponsorTileMobile”:true,”expandableCatalogAdsMobile”:false,”frameAdsMobile”:true,”outstreamMobile”:true,”nativeHeaderMobile”:true,”frameAdsDesktop”:true,”inRecipeRecommendationDesktop”:true,”expandableFooterDesktop”:true,”nativeDesktopContent”:true,”outstreamDesktop”:true,”animatedFooter”:true,”skylineHeader”:false,”expandableFooter”:true,”nativeDesktopSidebar”:true,”videoFootersMobile”:true,”videoFootersDesktop”:true,”interscroller”:true,”nativeDesktopRecipe”:true,”nativeHeaderDesktop”:true,”nativeBelowPostMobile”:true,”expandableCatalogAdsDesktop”:false,”largeFormatsDesktop”:true},”adOptions”:{“theTradeDesk”:true,”usCmpClickWrap”:{“enabled”:false,”regions”:[]},”undertone”:true,”sidebarConfig”:{“dynamicStickySidebar”:{“minHeight”:2200,”enabled”:true,”blockedSelectors”:[]}},”footerCloseButton”:true,”teads”:true,”seedtag”:true,”pmp”:true,”thirtyThreeAcross”:true,”sharethrough”:true,”optimizeVideoPlayersForEarnings”:true,”removeVideoTitleWrapper”:true,”pubMatic”:true,”contentTermsFooterEnabled”:false,”infiniteScroll”:true,”longerVideoAdPod”:true,”yahoossp”:true,”spa”:false,”stickyContainerConfig”:{“recipeDesktop”:{“minHeight”:null,”enabled”:false},”blockedSelectors”:[],”stickyHeaderSelectors”:[],”content”:{“minHeight”:null,”enabled”:false},”recipeMobile”:{“minHeight”:null,”enabled”:false}},”gatedPrint”:{“printClasses”:[],”siteEmailServiceProviderId”:null,”defaultOptIn”:false,”closeButtonEnabled”:false,”enabled”:false,”newsletterPromptEnabled”:false},”yieldmo”:true,”footerSelector”:””,”consentMode”:{“enabled”:false,”customVendorList”:””},”amazonUAM”:true,”gamMCMEnabled”:true,”gamMCMChildNetworkCode”:”21817067566″,”rubicon”:true,”conversant”:true,”openx”:true,”customCreativeEnabled”:true,”secColor”:”#000000″,”unruly”:true,”mediaGrid”:true,”bRealTime”:true,”adInViewTime”:null,”regulatory”:{“privacyPolicyUrl”:”https://www.travelawaits.com/privacy/”,”termsOfServiceUrl”:”https://www.travelawaits.com/terms/”},”gumgum”:true,”comscoreFooter”:false,”desktopInterstitial”:false,”contentAdXExpansionDesktop”:true,”amx”:true,”footerCloseButtonDesktop”:false,”ozone”:true,”isAutoOptimized”:false,”comscoreTAL”:true,”targetaff”:false,”bgColor”:”#FFFFFF”,”advancePlaylistOptions”:{“playlistPlayer”:{“enabled”:true},”relatedPlayer”:{“enabled”:true,”applyToFirst”:true}},”kargo”:true,”liveRampATS”:true,”footerCloseButtonMobile”:false,”interstitialBlockedPageSelectors”:””,”prioritizeShorterVideoAds”:true,”allowSmallerAdSizes”:true,”blis”:true,”wakeLock”:{“desktopEnabled”:true,”mobileValue”:15,”mobileEnabled”:true,”desktopValue”:30},”mobileInterstitial”:false,”tripleLift”:true,”sensitiveCategories”:[“alc”,”ske”,”pol”],”liveRamp”:true,”adthriveEmailIdentity”:true,”criteo”:true,”nativo”:true,”infiniteScrollOptions”:{“selector”:”.infinite-scroll-entry”,”heightThreshold”:30},”siteAttributes”:{“mobileHeaderSelectors”:[],”desktopHeaderSelectors”:[]},”dynamicContentSlotLazyLoading”:true,”clsOptimizedAds”:true,”ogury”:true,”verticals”:[“Travel”,”Lifestyle”,”Hobbies & Interests”],”inImage”:false,”stackadapt”:true,”usCMP”:{“regions”:[“CA”,”CO”,”CT”,”DE”,”FL”,”IN”,”KY”,”MD”,”MN”,”MT”,”NE”,”NH”,”NJ”,”OR”,”RI”,”TN”,”TX”,”UT”,”VA”],”defaultOptIn”:false,”enabled”:true,”strictMode”:true},”contentAdXExpansionMobile”:true,”advancePlaylist”:true,”medianet”:true,”delayLoading”:false,”inImageZone”:null,”appNexus”:true,”rise”:true,”liveRampId”:””,”infiniteScrollRefresh”:true,”indexExchange”:true},”siteAdsProfiles”:[],”thirdPartySiteConfig”:{“partners”:{“discounts”:[]}},”videoPlayers”:{“contextual”:{“autoplayCollapsibleEnabled”:false,”overrideEmbedLocation”:false,”defaultPlayerType”:”static”},”videoEmbed”:”wordpress”,”footerSelector”:””,”contentSpecificPlaylists”:[],”players”:[{“playlistId”:”GgEwWzV6″,”pageSelector”:”body.single”,”devices”:[“desktop”],”description”:””,”skip”:0,”title”:””,”type”:”stickyPlaylist”,”enabled”:false,”formattedType”:”Sticky Playlist”,”elementSelector”:”n.entry-content-inner > p”,”id”:4085570,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”adPlayerTitle”:”MY LATEST VIDEOS”,”mobileHeaderSelector”:null,”playerId”:”SWfyRhpa”},{“playlistId”:”GgEwWzV6″,”pageSelector”:”body.single”,”devices”:[“mobile”],”mobileLocation”:”top-center”,”description”:””,”skip”:0,”title”:””,”type”:”stickyPlaylist”,”enabled”:false,”formattedType”:”Sticky Playlist”,”elementSelector”:”n.entry-content-inner > p”,”id”:4085571,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”adPlayerTitle”:”MY LATEST VIDEOS”,”mobileHeaderSelector”:”.nav-primary”,”playerId”:”SWfyRhpa”}],”partners”:{“theTradeDesk”:true,”unruly”:true,”mediaGrid”:true,”undertone”:true,”gumgum”:true,”seedtag”:true,”amx”:true,”ozone”:true,”pmp”:true,”kargo”:true,”stickyOutstream”:{“desktop”:{“enabled”:false},”blockedPageSelectors”:””,”mobileLocation”:null,”allowOnHomepage”:false,”mobile”:{“enabled”:false},”saveVideoCloseState”:false,”mobileHeaderSelector”:””,”allowForPageWithStickyPlayer”:{“enabled”:false}},”sharethrough”:true,”blis”:true,”tripleLift”:true,”pubMatic”:true,”criteo”:true,”yahoossp”:true,”nativo”:true,”stackadapt”:true,”yieldmo”:true,”amazonUAM”:true,”medianet”:true,”rubicon”:true,”appNexus”:true,”rise”:true,”openx”:true,”indexExchange”:true}}};]]> Boutique Hotels in SoHo, New York: 9 Swanky Picks | TravelAwaits Explore More”,”margin”:”25px 0px”}],”bestBy”:1763584626802,”epoch”:1718302338418,”siteCode”:”B488MTVD”,”services”:{“engagementCacheableApiDomain”:”https://c01f.app-sx.slickstream.com/”,”engagementNonCacheableApiDomain”:”https://c01b.app-sx.slickstream.com/”,”engagementResourcesDomain”:”https://c01f.app-sx.slickstream.com/”,”storyCacheableApiDomain”:”https://stories-sx.slickstream.com/”,”storyNonCacheableApiDomain”:”https://stories-sx.slickstream.com/”,”storyResourcesDomain”:”https://stories-sx.slickstream.com/”,”websocketUri”:”wss://c01b-wss.app-sx.slickstream.com/socket?site=B488MTVD”},”bootUrl”:”https://c.slickstream.com/app/2.15.5/boot-loader.js”,”appUrl”:”https://c.slickstream.com/app/2.15.5/app.js”,”adminUrl”:””,”allowList”:[“https://travelawaits-com-develop.go-vip.net/”],”abTests”:[],”wpPluginTtl”:3600},”unknown”:{“placeholders”:[],”bootTriggerTimeout”:250,”bestBy”:1763584626802,”epoch”:1718302338418,”siteCode”:”B488MTVD”,”services”:{“engagementCacheableApiDomain”:”https://c01f.app-sx.slickstream.com/”,”engagementNonCacheableApiDomain”:”https://c01b.app-sx.slickstream.com/”,”engagementResourcesDomain”:”https://c01f.app-sx.slickstream.com/”,”storyCacheableApiDomain”:”https://stories-sx.slickstream.com/”,”storyNonCacheableApiDomain”:”https://stories-sx.slickstream.com/”,”storyResourcesDomain”:”https://stories-sx.slickstream.com/”,”websocketUri”:”wss://c01b-wss.app-sx.slickstream.com/socket?site=B488MTVD”},”bootUrl”:”https://c.slickstream.com/app/2.15.5/boot-loader.js”,”appUrl”:”https://c.slickstream.com/app/2.15.5/app.js”,”adminUrl”:””,”allowList”:[“https://travelawaits-com-develop.go-vip.net/”],”abTests”:[],”wpPluginTtl”:3600}}}; win.$slickBoot.rt = ‘https://app.slickstream.com’; win.$slickBoot.s = ‘plugin’; win.$slickBoot._bd = performance.now(); })(); ]]>

{const o=”[slickstream]”;const r=”cls-inject”;const s=200;const i=50;const c=6e3;const a={onPageEmailCapture:”slick-on-page”,dcmInlineSearch:”slick-inline-search”,filmstrip:”slick-film-strip”};let l=0;const d=e=>{if(!e){return null}try{return JSON.parse(e)}catch(t){console.error(o,r,”Failed to parse config:”,e,t);return null}};const f=d(e);const u=d(t);const m=d(n);if(!f&&!u&&!m){return}const y=()=>{if(!document.body){l++;if(l{console.error(o,r,”injectAllClsDivs failed”,e)})};const g=async(e,t,n)=>{const o=document.createElement(“div”);o.classList.add(t);o.classList.add(“cls-inserted”);o.style.minHeight=n+”px”;const r=[“article p”,”section.wp-block-template-part div.entry-content p”];for(const t of r){const n=document.querySelectorAll(t);if((n===null||n===void 0?void 0:n.length)>=e){const t=n[e-1];t.insertAdjacentElement(“afterend”,o);return o}}return null};const p=async e=>{const t=a.onPageEmailCapture;try{if(document.querySelector(`.${t}`)){console.warn(o,r,`Container element already exists for ${t} class`);return}const n=S()?e.minHeightMobile||220:e.minHeight||200;if(e.cssSelector){await k(e.cssSelector,”before selector”,t,n,””,undefined)}else{await g(e.pLocation||3,t,n)}}catch(e){console.error(o,r,`Failed to inject ${t} container`,e)}};const w=async e=>{if(e.selector){await k(e.selector,e.position||”after selector”,a.filmstrip,e.minHeight||72,e.margin||e.marginLegacy||”10px auto”)}else{console.warn(o,r,”Filmstrip config missing selector property”)}};const b=async e=>{const t=Array.isArray(e)?e:[e];for(const e of t){if(e.selector){await k(e.selector,e.position||”after selector”,a.dcmInlineSearch,e.minHeight||350,e.margin||e.marginLegacy||”50px 15px”,e.id)}else{console.warn(o,r,”DCM config is missing selector property:”,e)}}};const h=async()=>{if(f){await w(f)}if(u){await b(u)}if(m){await p(m)}};const S=()=>{const e=navigator.userAgent;const t=/Mobi|iP(hone|od)|Android.*Mobile|Opera Mini|IEMobile|WPDesktop|BlackBerry|BB10|webOS|Fennec/i.test(e);const n=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Silk|SM-T|GT-P|SCH-I800|Xoom|Transformer|Tab|Slate|Pixel C|Nexus 7|Nexus 9|Nexus 10|SHIELD Tablet|Lenovo Tab|Mi Pad|Android(?!.*Mobile)/i.test(e);return t&&!n};const $=async e=>new Promise(t=>{setTimeout(t,e)});const x=async(e,t,n,o,r)=>{const i=document.querySelector(e);if(i){return i}const c=Date.now();if(c-n>=t){console.error(o,r,`Timeout waiting for selector: ${e}`);return null}await $(s);return x(e,t,n,o,r)};const A=async(e,t)=>{const n=Date.now();return x(e,t,n,o,r)};const k=async(e,t,n,s,i,a)=>{try{if(!e||e===”undefined”){console.warn(o,r,`Selector is empty or “undefined” for ${n} class; nothing to do`);return null}const l=await A(e,c);const d=a?document.querySelector(`.${n}[data-config=”${a}”]`):document.querySelector(`.${n}`);if(d){console.warn(o,r,`Container element already exists for ${n} class with selector ${e}`);return null}if(!l){console.warn(o,r,`Target node not found for selector: ${e}`);return null}const f=document.createElement(“div”);f.style.minHeight=`${s}px`;f.style.margin=i;f.classList.add(n,”cls-inserted”);if(a){f.dataset.config=a}const u={“after selector”:”afterend”,”before selector”:”beforebegin”,”first child of selector”:”afterbegin”,”last child of selector”:”beforeend”};l.insertAdjacentElement(u[t]||”afterend”,f);return f}catch(t){console.error(o,r,`Failed to inject ${n} for selector ${e}`,t);return null}};const P=()=>{window.requestAnimationFrame(y)};P()}) (”,'[{“id”:”below-post-DCM”,”injection”:”auto-inject”,”selector”:”.author-profile-widget”,”position”:”after selector”,”titleHtml”:”

Explore More”,”margin”:”25px 0px”}]’,”); ]]>

=Date.now()){c=e;if(t){l._bd=t}if(o){l.c=a(o)}}}if(!c){l._bd=i();const t=await fetch(f);const e=t.headers.get(“x-slickstream-consent”);l.c=a(e);try{c=await t.json()}catch(t){console.error(`[Slickstream] Error parsing page-boot-data from ${f.url}: ${(t===null||t===void 0?void 0:t.message)||””}`,t);return null}}if(c){l=Object.assign(Object.assign({},l),{d:c,s:”embed”})}return l}let d=(o=window.$slickBoot)!==null&&o!==void 0?o:{};if(!(d===null||d===void 0?void 0:d.d)||d.d.bestBy 0 || extScripts.length > 0) { console.warn(‘[slickstream]’ + [‘Slickstream scripts. This ‘, ‘may cause undesirable behavior, ‘, ‘such as increased CLS scores.’,’ WP-Rocket is deferring one or more ‘].sort().join(”)); } })(); ]]> {window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,…r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(…r);try{Function.prototype.apply.call(e,console,[i.join(“),…a])}catch(e){console.error(e);return}}};function t(e){“@babel/helpers – typeof”;return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+“}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=class{constructor(){i(this,`name`,void 0),i(this,`disable`,void 0),i(this,`gdprPurposes`,void 0)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{this.setSessionStorage(e.key,e.value)}),this._localStorageHandlerQueue.forEach(e=>{if(e.key===`adthrive_abgroup`){let t=Object.keys(e.value)[0],n=e.value[t],r=e.value[`${t}_weight`];this.getOrSetABGroupLocalStorageValue(t,n,r,{value:24,unit:`hours`})}else e.expiry?e.type===`internal`?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):e.type===`internal`?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)}),this._cookieHandlerQueue.forEach(e=>{e.type===`internal`?this.setInternalCookie(e.key,e.value):this.setExternalCookie(e.key,e.value)})),this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[])}readInternalCookie(e){return this._verifyInternalKey(e),this._readCookie(e)}readExternalCookie(e){return this._readCookie(e)}readExternalCookieList(e){return this._readCookieList(e)}getAllCookies(){return this._getCookies()}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){let t=(window.sessionStorage.getItem(e));if(!t)return null;try{return JSON.parse(t)}catch(e){return t}}deleteCookie(e){document.cookie=`${e}=; SameSite=None; Secure; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}deleteLocalStorage(e){window.localStorage.removeItem(e)}deleteSessionStorage(e){window.sessionStorage.removeItem(e)}_hasStorageConsent(){if(typeof window.__cmp==`function`)try{let e=(window.__cmp(`getCMPData`));if(!e||!e.purposeConsents)return;let t=e.purposeConsents[1];return t===!0?!0:t===!1||t==null?!1:void 0}catch(e){return}}setInternalCookie(e,t,n){this.disable||(this._verifyInternalKey(e),this._setCookieValue(`internal`,e,t,n))}setExternalCookie(e,t,n){this.disable||this._setCookieValue(`external`,e,t,n)}setInternalLocalStorage(e,t){if(!this.disable)if(this._verifyInternalKey(e),this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExternalLocalStorage(e,t){if(!this.disable)if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`external`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExpirableInternalLocalStorage(e,t,n){if(!this.disable){this._verifyInternalKey(e);try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}}setExpirableExternalLocalStorage(e,t,n){if(!this.disable)try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:JSON.stringify(t),type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(!this.disable)if(this._gdpr&&this._shouldQueue){let n={key:e,value:t};this._sessionStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.sessionStorage.setItem(e,n)}}getOrSetABGroupLocalStorageValue(e,t,n,r,i=!0){let a=`adthrive_abgroup`,o=(this.readInternalLocalStorage(a));if(o!==null){var c;let t=o[e],n=(c=o[`${e}_weight`])==null?null:c;if(this._isValidABGroupLocalStorageValue(t))return[t,n]}let l=(s(s({},o),{},{[e]:t,[`${e}_weight`]:n}));return r?this.setExpirableInternalLocalStorage(a,l,{expiry:r,resetOnRead:i}):this.setInternalLocalStorage(a,l),[t,n]}_isValidABGroupLocalStorageValue(e){return e!=null&&!(typeof e==`number`&&isNaN(e))}_getExpiryDate({value:e,unit:t}){let n=new Date;return t===`milliseconds`?n.setTime(n.getTime()+e):t==`seconds`?n.setTime(n.getTime()+e*1e3):t===`minutes`?n.setTime(n.getTime()+e*60*1e3):t===`hours`?n.setTime(n.getTime()+e*60*60*1e3):t===`days`?n.setTime(n.getTime()+e*24*60*60*1e3):t===`months`&&n.setTime(n.getTime()+e*30*24*60*60*1e3),n.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){let t=(document.cookie.split(`; `).find(t=>t.split(`=`)[0]===e));if(!t)return null;let n=(t.split(`=`))[1];if(n)try{return JSON.parse(decodeURIComponent(n))}catch(e){return decodeURIComponent(n)}return null}_readCookieList(e){let t;for(let n of document.cookie.split(`;`)){let[r,…i]=(n.split(`=`));r.trim()===e&&(t=i.join(`=`).trim())}return t&&JSON.parse(t)||[]}_getCookies(){let e=[];return document.cookie.split(`;`).forEach(t=>{let[n,r]=t.split(`=`).map(e=>e.trim());e.push({name:n,value:r})}),e}_readFromLocalStorage(e){let t=(window.localStorage.getItem(e));if(!t)return null;try{let r=(JSON.parse(t)),i=r.expires&&(new Date().getTime())>=(new Date(r.expires).getTime());if(e===`adthrive_abgroup`&&r.created)return window.localStorage.removeItem(e),null;if(r.resetOnRead&&r.expires&&!i){var n;let t=(this._resetExpiry(r));return window.localStorage.setItem(e,JSON.stringify(r)),(n=t.value)==null?t:n}else if(i)return window.localStorage.removeItem(e),null;if(Object.prototype.hasOwnProperty.call(r,`value`))try{return JSON.parse(r.value)}catch(e){return r.value}else return r}catch(e){return t}}_setCookieValue(e,t,n,r){try{if(this._gdpr&&this._shouldQueue){let r={key:t,value:n,type:e};this._cookieHandlerQueue.push(r)}else{var i,a,o;let e=(this._getExpiryDate((i=r==null?void 0:r.expiry)==null?{value:400,unit:`days`}:i)),s=(a=r==null?void 0:r.sameSite)==null?`None`:a,c=(o=r==null?void 0:r.secure)==null?!0:o,l=typeof n==`object`?JSON.stringify(n):n;document.cookie=`${t}=${l}; SameSite=${s}; ${c?`Secure;`:“} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){let t=(e.startsWith(`adthrive_`)),n=(e.startsWith(`adt_`));if(!t&&!n&&!c.includes(e))throw Error(`When reading an internal cookie, the key must start with “adthrive_” or “adt_” or be part of the allowed legacy keys.`)}},u=(e,t)=>{let n=document.getElementsByTagName(`script`)[0];n&&n.parentNode&&!t?n.parentNode.insertBefore(e,n):document.body.appendChild(e)},d=(e,t=!1,n=!1,r=!1)=>new Promise((i,a)=>{let o=document.createElement(`script`);o.addEventListener(`error`,()=>a(Error(`Failed to import script ${e}`))),o.addEventListener(`load`,()=>i(o)),o.type=`text/javascript`,o.src=e,o.defer=n,o.async=r,u(o,t)}),f=()=>{let e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return{width:e,height:t}},p=()=>{let e=new RegExp(`python,apis,googleweblight,spider,crawler,curl,wget,ia_archiver,insights,baidu,bot,monitor,scraper,A6-Indexer,addthis,admantx,agentslug,alexa,anderspink,apache-httpclient,apachebench,apis-google,appengine-google,ask jeeves,asynchttpclient,awe.sm,baidu,barkrowler,biglotron,bingpreview,brandverify,bubing,butterfly,buzztalk,cf-uc,chatgpt,check_http,cloudflare,cmradar/0.1,coldfusion,comodo ssl checker,convera,copypants,crowsnest,curl,dap/nethttp,daumoa,deepseek,deepseekbot,developers.google.com/+/web/snippet/,digitalpersona fingerprint software,drupact,duckduck,elb-healthchecker,embedly,eoaagent,europarchive,eventmachine httpclient,evrinid,exaleadcloudview,ezooms,ez publish,facebookexternalhit,feedburner,feedfetcher-google,findlink,findthatfile,flipboardproxy,garlik,genieo,getprismatic.com,ghost,gigablast,go http package,google( page speed insights| web preview|google-site-verification|-structured-data-testing-tool|-structureddatatestingtool),gpt,gptbot,hatena,headless,heritrix,htmlparser,http(_request2|client|s|unit),httrack,hubspot,ichiro,icoreservice,idmarch,in(agist|sieve|stapaper),ips-agent,jack,jakarta commons,java,jetslide,jobseeker,js-kit,kimengi,knows.is,kraken,laconica,libwww,lighthouse,linode,lipperhey,longurl,ltx71,lwp-trivial,mappydata,mastodon,mediapartners-google,megaindex.ru,metauri,mfe_expand,mixnode,mon(tastic|tools),moreover,mrchrome,nberta,net(craft|researchserver|state|vibes),newrelicpinger,newspaper,newsme,ning,nightmare,nmap,nutch,online-domain-tools,openai,paessler,page(peek|sinventory|thing),panopta,peerindex,phantomjs,pingdom,plukkie,proximic,pu_in,publiclibraryarchive.org,python-(httplib2|requests|urllib),quanti,queryseeker,quicklook,qwanti,re-animator,readability,rebelmouse,relateiq,riddler,rssmicro,ruby,scrapy,seo-audit,seodiver,seokicks,shopwiki,shortlinktranslate,siege,sincera,sistrix,site24x7,siteexplorer,skypeuripreview,slack,slurp,socialrank,sogou,spinn3r,squider,statuscake,stripe,summify,teeraid,teoma,test certificate info,tineye,traackr,ttd-content,tweetedtimes,twikle,twitjobsearch,twitmunin,twurly,typhoeus,unwindfetch,uptim(e|ia),uptm.io,vagabondo,vb project,vigil,vkshare,wappalyzer,watchsumo,webceo,webdatascout,webmon,webscout,wesee,wget,whatsapp,whatweb,wikido,wordpress,wormly,wotbox,xenu link sleuth,xing-contenttabreceiver,yandex,yanga,yeti,yff35,yourls,zelist.ro,zibb,^Mozilla/5\.0$,Viv/2`.split(`,`).join(`|`),`i`),t=window.navigator.userAgent.toLowerCase();return e.test(t)};var m=class{constructor(){i(this,`runTests`,()=>{let e=!1;return window&&document&&(e=[`webdriver`in window,`_Selenium_IDE_Recorder`in window,`callSelenium`in window,`_selenium`in window,`__webdriver_script_fn`in document,`__driver_evaluate`in document,`__webdriver_evaluate`in document,`__selenium_evaluate`in document,`__fxdriver_evaluate`in document,`__driver_unwrapped`in document,`__webdriver_unwrapped`in document,`__selenium_unwrapped`in document,`__fxdriver_unwrapped`in document,`__webdriver_script_func`in document,document.documentElement.getAttribute(`selenium`)!==null,document.documentElement.getAttribute(`webdriver`)!==null,document.documentElement.getAttribute(`driver`)!==null].some(e=>e)),e})}isSelenium(){return this.runTests()}};let h=()=>{if(navigator&&navigator.userAgent&&p())return`uav`},g=()=>{let e=f();if(e.width>5e3||e.height>5e3)return`vpv`},_=()=>{if(new m().isSelenium())return`selenium`},v=()=>{let e=[g(),h(),_()].filter(e=>!!e);return e.length?e:void 0},y=()=>l.readExternalCookie(`usprivacy`)===`1YYY`;v()||y()||(()=>{let e=`unknown`;return typeof Intl{let t=`6035453`,n=y()?`0`:`1`,r=s({c1:`2`,c2:t,cs_fpid:l.readExternalCookie(`_pubcid`)||l.readExternalLocalStorage(`_pubcid`),cs_fpit:`o`,cs_fpdm:`*null`,cs_fpdt:`*null`,options:{enableFirstPartyCookie:!0}},{cs_ucfr:n||`0`});window._comscore=window._comscore||[],window._comscore.push(r);let i=`https://sb.scorecardresearch.com/cs/${t}/beacon.js`;d(i).catch(t=>{e.error(`ComscoreTrackerComponent`,`init`,`Error during Comscore beacon.js import: `,t)})})()})();]]>{window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,…r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(…r);try{Function.prototype.apply.call(e,console,[i.join(“),…a])}catch(e){console.error(e);return}}},n=()=>window.adthriveCLS,r={Below_Post_1:`Below_Post_1`,Below_Post:`Below_Post`,Content:`Content`,Content_1:`Content_1`,Content_2:`Content_2`,Content_3:`Content_3`,Content_4:`Content_4`,Content_5:`Content_5`,Content_6:`Content_6`,Content_7:`Content_7`,Content_8:`Content_8`,Content_9:`Content_9`,Recipe:`Recipe`,Recipe_1:`Recipe_1`,Recipe_2:`Recipe_2`,Recipe_3:`Recipe_3`,Recipe_4:`Recipe_4`,Recipe_5:`Recipe_5`,Native_Recipe:`Native_Recipe`,Footer_1:`Footer_1`,Footer:`Footer`,Header_1:`Header_1`,Header_2:`Header_2`,Header:`Header`,Sidebar_1:`Sidebar_1`,Sidebar_2:`Sidebar_2`,Sidebar_3:`Sidebar_3`,Sidebar_4:`Sidebar_4`,Sidebar_5:`Sidebar_5`,Sidebar_9:`Sidebar_9`,Sidebar:`Sidebar`,Interstitial_1:`Interstitial_1`,Interstitial:`Interstitial`,Video_StickyOutstream_1:`Video_StickyOutstream_1`,Video_StickyOutstream:`Video_StickyOutstream`,Video_StickyInstream:`Video_StickyInstream`,Sponsor_Tile:`Sponsor_Tile`},i=e=>{let t=window.location.href;return e.some(e=>new RegExp(e,`i`).test(t))};function a(e){“@babel/helpers – typeof”;return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+“}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(e){this.adthrive=e,c(this,`all`,!1),c(this,`content`,!1),c(this,`recipe`,!1),c(this,`video`,!1),c(this,`locations`,new Set),c(this,`reasons`,new Set),(this.urlHasEmail(window.location.href)||this.urlHasEmail(window.document.referrer))&&(this.all=!0,this.reasons.add(`all_email`));try{this.checkCommandQueue(),document.querySelector(`.tag-novideo`)!==null&&(this.video=!0,this.locations.add(`Video`),this.reasons.add(`video_tag`))}catch(e){t.error(`ClsDisableAds`,`checkCommandQueue`,e)}}checkCommandQueue(){this.adthrive&&this.adthrive.cmd&&this.adthrive.cmd.forEach(e=>{let t=e.toString(),n=this.extractAPICall(t,`disableAds`);n&&this.disableAllAds(this.extractPatterns(n));let r=this.extractAPICall(t,`disableContentAds`);r&&this.disableContentAds(this.extractPatterns(r));let i=this.extractAPICall(t,`disablePlaylistPlayers`);i&&this.disablePlaylistPlayers(this.extractPatterns(i))})}extractPatterns(e){let t=e.match(/[“‘](.*?)[‘”]/g);if(t!==null)return t.map(e=>e.replace(/[“‘]/g,“))}extractAPICall(e,t){let n=RegExp(t+`\((.*?)\)`,`g`),r=e.match(n);return r===null?!1:r[0]}disableAllAds(e){(!e||i(e))&&(this.all=!0,this.reasons.add(`all_page`))}disableContentAds(e){(!e||i(e))&&(this.content=!0,this.recipe=!0,this.locations.add(r.Content),this.locations.add(r.Recipe),this.reasons.add(`content_plugin`))}disablePlaylistPlayers(e){(!e||i(e))&&(this.video=!0,this.locations.add(`Video`),this.reasons.add(`video_page`))}urlHasEmail(e){return e?/([A-Z0-9._%+-]+(@|%(25)*40)[A-Z0-9.-]+.[A-Z]{2,})/i.exec(e)!==null:!1}};let u=n();return u&&(u.disableAds=new l(window.adthrive)),exports.ClsDisableAds=l,exports})({});]]> {if(!e)return window.adthriveCLS&&(window.adthriveCLS.disabled=!0),!1;for(let t=0;twindow.adthriveCLS;function i(e){“@babel/helpers – typeof”;return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){if(i(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function o(e){var t=a(e,`string`);return i(t)==`symbol`?t:t+“}function s(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=class{constructor(){s(this,`_clsGlobalData`,r())}get enabled(){return!!this._clsGlobalData&&!!this._clsGlobalData.siteAds&&n(this._clsGlobalData.siteAds)}get error(){return!!(this._clsGlobalData&&this._clsGlobalData.error)}set siteAds(e){this._clsGlobalData.siteAds=e}get siteAds(){return this._clsGlobalData.siteAds}set disableAds(e){this._clsGlobalData.disableAds=e}get disableAds(){return this._clsGlobalData.disableAds}get enabledLocations(){return[e.Below_Post,e.Content,e.Recipe,e.Sidebar]}get injectedFromPlugin(){return this._clsGlobalData.injectedFromPlugin}set injectedFromPlugin(e){this._clsGlobalData.injectedFromPlugin=e}get injectedFromSiteAds(){return this._clsGlobalData.injectedFromSiteAds}set injectedFromSiteAds(e){this._clsGlobalData.injectedFromSiteAds=e}setInjectedSlots(e){this._clsGlobalData.injectedSlots=this._clsGlobalData.injectedSlots||[],this._clsGlobalData.injectedSlots.push(e)}get injectedSlots(){return this._clsGlobalData.injectedSlots}setInjectedVideoSlots(e){this._clsGlobalData.injectedVideoSlots=this._clsGlobalData.injectedVideoSlots||[],this._clsGlobalData.injectedVideoSlots.push(e)}get injectedVideoSlots(){return this._clsGlobalData.injectedVideoSlots}setExperiment(e,t,n=!1){this._clsGlobalData.experiments=this._clsGlobalData.experiments||{},this._clsGlobalData.siteExperiments=this._clsGlobalData.siteExperiments||{};let r=n?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;r[e]=t}getExperiment(e,t=!1){let n=t?this._clsGlobalData.siteExperiments:this._clsGlobalData.experiments;return n&&n[e]}setWeightedChoiceExperiment(e,t,n=!1){this._clsGlobalData.experimentsWeightedChoice=this._clsGlobalData.experimentsWeightedChoice||{},this._clsGlobalData.siteExperimentsWeightedChoice=this._clsGlobalData.siteExperimentsWeightedChoice||{};let r=n?this._clsGlobalData.siteExperimentsWeightedChoice:this._clsGlobalData.experimentsWeightedChoice;r[e]=t}getWeightedChoiceExperiment(e,t=!1){var n,r;let i=t?(n=this._clsGlobalData)==null?void 0:n.siteExperimentsWeightedChoice:(r=this._clsGlobalData)==null?void 0:r.experimentsWeightedChoice;return i&&i[e]}get bucket(){return this._clsGlobalData.bucket}set videoDisabledFromPlugin(e){this._clsGlobalData.videoDisabledFromPlugin=e}get videoDisabledFromPlugin(){return this._clsGlobalData.videoDisabledFromPlugin}set targetDensityLog(e){this._clsGlobalData.targetDensityLog=e}get targetDensityLog(){return this._clsGlobalData.targetDensityLog}get removeVideoTitleWrapper(){return this._clsGlobalData.siteAds.adOptions.removeVideoTitleWrapper}};let l=e=>{let t={};return function(…n){let r=JSON.stringify(n);if(t[r])return t[r];let i=e.apply(this,n);return t[r]=i,i}},u=l(()=>{let e=navigator.userAgent,t=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari|CrOS/i.test(e);return/Mobi|iP(hone|od)|Opera Mini/i.test(e)&&!t});var d=class{static getScrollTop(){return(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0)}static getScrollBottom(){let e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;return this.getScrollTop()+e}static shufflePlaylist(e){let t=e.length,n,r;for(;t!==0;)r=Math.floor(Math.random()*e.length),–t,n=e[t],e[t]=e[r],e[r]=n;return e}static isMobileLandscape(){return window.matchMedia(`(orientation: landscape) and (max-height: 480px)`).matches}static playerViewable(e){let t=e.getBoundingClientRect();return this.isMobileLandscape()?window.innerHeight>t.top+t.height/2&&t.top+t.height/2>0:window.innerHeight>t.top+t.height/2}static createQueryString(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join(`&`)}static createEncodedQueryString(e){return Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join(`&`)}static setMobileLocation(e,t=!1){e=e||`bottom-right`;let n=t?`raptive-player-sticky`:`adthrive-collapse`;return e===`top-left`?e=`${n}-top-left`:e===`top-right`?e=`${n}-top-right`:e===`bottom-left`?e=`${n}-bottom-left`:e===`bottom-right`?e=`${n}-bottom-right`:e===`top-center`&&(e=`adthrive-collapse-${u()?`top-center`:`bottom-right`}`),e}static addMaxResolutionQueryParam(e){let t=`max_resolution=${u()?`320`:`1280`}`,[n,r]=String(e).split(`?`),i=r?r+`&${t}`:t;return`${n}?${i}`}};let f=(e,t)=>e==null||e!==e?t:e;var p=class{constructor(e){this._clsOptions=e,s(this,`relatedSettings`,void 0),s(this,`players`,void 0),s(this,`removeVideoTitleWrapper`,void 0),s(this,`footerSelector`,void 0),this.removeVideoTitleWrapper=f(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);let t=this._clsOptions.siteAds.videoPlayers;this.footerSelector=f(t&&t.footerSelector,“),this.players=f(t&&t.players.map(e=>(e.mobileLocation=d.setMobileLocation(e.mobileLocation),e)),[]),this.relatedSettings=t&&t.contextual}},m=class{constructor(e){s(this,`mobileStickyPlayerOnPage`,!1),s(this,`collapsiblePlayerOnPage`,!1),s(this,`playlistPlayerAdded`,!1),s(this,`relatedPlayerAdded`,!1),s(this,`collapseSettings`,void 0),s(this,`footerSelector`,“),s(this,`removeVideoTitleWrapper`,!1),s(this,`desktopCollapseSettings`,void 0),s(this,`mobileCollapseSettings`,void 0),s(this,`relatedSettings`,void 0),s(this,`playerId`,void 0),s(this,`playlistId`,void 0),s(this,`desktopRelatedCollapseSettings`,void 0),s(this,`mobileRelatedCollapseSettings`,void 0),s(this,`collapsePlayerId`,void 0),s(this,`players`,void 0),s(this,`videoAdOptions`,void 0),this.videoAdOptions=new p(e),this.players=this.videoAdOptions.players,this.relatedSettings=this.videoAdOptions.relatedSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector}};navigator.vendor;let h=navigator.userAgent,g=l(e=>/Chrom|Applechromium/.test(e||h)),_=l(()=>/WebKit/.test(h)),v=l(()=>g()?`chromium`:_()?`webkit`:`other`),y=e=>{let t=e.clientWidth;if(getComputedStyle){let n=getComputedStyle(e,null);t-=parseFloat(n.paddingLeft||`0`)+parseFloat(n.paddingRight||`0`)}return t};var b=class{},ee=class extends b{constructor(e){super(),this._probability=e}get(){if(this._probability<0||this._probability>1)throw Error(`Invalid probability: ${this._probability}`);return Math.random(){this.isRolloutEnabled(e)&&t.featureRolloutId!==void 0&&this._enabledFeatureRolloutIds.push(t.featureRolloutId)})}},x;let re=new ne(window.adthriveCLS&&window.adthriveCLS.siteAds&&`featureRollouts`in window.adthriveCLS.siteAds?(x=window.adthriveCLS.siteAds.featureRollouts)==null?{}:x:{}),ie=[[728,90],[300,250],[300,600],[320,50],[970,250],[160,600],[300,1050],[336,280],[970,90],[300,50],[320,100],[468,60],[250,250],[120,240],[1,1],[300,300],[300,420],[728,250],[320,300],[300,390]],S=new Map([[e.Footer,1],[e.Header,2],[e.Sidebar,3],[e.Content,4],[e.Recipe,5],[`Sidebar_sticky`,6],[`Below Post`,7]]),C=e=>ie.filter(([t,n])=>e.some(([e,r])=>t===e&&n===r)),ae=(t,[n,r],i)=>{let{location:a,sequence:o}=t;if(a===e.Footer)return!(i===`phone`&&n===320&&r===100);if(a===e.Header)return!0;if(a===e.Recipe)return!(u()&&i===`phone`&&(n===300&&r===390||n===320&&r===300));if(a===e.Sidebar){let e=t.adSizes.some(([,e])=>e<=300),n=!!o&&o300;return i&&!e||o===9?!0:n?i?t.sticky:!0:!i}else return!0},oe=(t,n)=>{let{location:r,sticky:i}=t;if(r===e.Recipe&&n){let{recipeMobile:e,recipeDesktop:t}=n;if(u()&&e!=null&&e.enabled||!u()&&t!=null&&t.enabled)return!0}return r===e.Footer||i},se=(t,n)=>{let r=n.adUnits,i=re.isRolloutEnabled(`enable-250px-max-ad-height`);return r.filter(e=>e.dynamic!==void 0&&e.dynamic.enabled).map(r=>{let a=r.location.replace(/s+/g,`_`),o=a===`Sidebar`?0:2;return a===e.Content&&i&&g()&&(r.adSizes=r.adSizes.filter(e=>e[1]ae(r,e,t)),devices:r.devices,pageSelector:f(r.dynamic.pageSelector,“).trim(),elementSelector:f(r.dynamic.elementSelector,“).trim(),position:f(r.dynamic.position,`beforebegin`),max:Math.floor(f(r.dynamic.max,0)),spacing:f(r.dynamic.spacing,0),skip:Math.floor(f(r.dynamic.skip,0)),every:Math.max(Math.floor(f(r.dynamic.every,1)),1),classNames:r.dynamic.classNames||[],sticky:oe(r,n.adOptions.stickyContainerConfig),stickyOverlapSelector:f(r.stickyOverlapSelector,“).trim(),autosize:r.autosize,special:f(r.targeting,[]).filter(e=>e.key===`special`).reduce((e,t)=>e.concat(…t.value),[]),lazy:f(r.dynamic.lazy,!1),lazyMax:f(r.dynamic.lazyMax,o),lazyMaxDefaulted:r.dynamic.lazyMax===0?!1:!r.dynamic.lazyMax,name:r.name}})},w=(t,n)=>{let r=y(n),i=t.sticky&&t.location===e.Sidebar;return t.sizes.filter(e=>{let n=t.autosize?e[0]<=r||e[0]<=320:!0,a=i?e[1]e.devices.includes(t),le=e=>e.pageSelector.length===0||document.querySelector(e.pageSelector)!==null,T=new class{info(e,t,…n){this.call(console.info,e,t,…n)}warn(e,t,…n){this.call(console.warn,e,t,…n)}error(e,t,…n){this.call(console.error,e,t,…n),this.sendErrorLogToCommandQueue(e,t,…n)}event(e,t,…n){var r;((r=window.adthriveCLS)==null?void 0:r.bucket)===`debug`&&this.info(e,t)}sendErrorLogToCommandQueue(e,t,…n){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push(()=>{window.adthrive.logError!==void 0&&typeof window.adthrive.logError==`function`&&window.adthrive.logError(e,t,n)})}call(e,t,n,…r){let i=[`%c${t}::${n} `],a=[`color: #999; font-weight: bold;`];r.length>0&&typeof r[0]==`string`&&i.push(r.shift()),a.push(…r);try{Function.prototype.apply.call(e,console,[i.join(“),…a])}catch(e){console.error(e);return}}},E={Desktop:`desktop`,Mobile:`mobile`},ue=e=>{let t=document.body,n=`adthrive-device-${e}`;if(!t.classList.contains(n))try{t.classList.add(n)}catch(e){T.error(`BodyDeviceClassComponent`,`init`,{message:e.message});let t=`classList`in document.createElement(`_`);T.error(`BodyDeviceClassComponent`,`init.support`,{support:t})}},D=e=>`adthrive-${e.location.replace(`_`,`-`).toLowerCase()}`,O=e=>`${D(e)}-${e.sequence}`,de=(e,t)=>{let n=window.innerWidth;return n>=t?`desktop`:n>=e?`tablet`:`phone`},fe=e=>{let t=e.offsetHeight,n=e.offsetWidth,r=e.getBoundingClientRect(),i=document.body,a=document.documentElement,o=window.pageYOffset||a.scrollTop||i.scrollTop,s=window.pageXOffset||a.scrollLeft||i.scrollLeft,c=a.clientTop||i.clientTop||0,l=a.clientLeft||i.clientLeft||0,u=Math.round(r.top+o-c),d=Math.round(r.left+s-l);return{top:u,left:d,bottom:u+t,right:d+n,width:n,height:t}},pe=(e=document)=>(e===document?document.body:e).getBoundingClientRect().top,me=e=>e.includes(`,`)?e.split(`,`):[e],he=(e=document)=>{let t=e.querySelectorAll(`article`);if(t.length===0)return null;let n=Array.from(t).reduce((e,t)=>t.offsetHeight>e.offsetHeight?t:e);return n&&n.offsetHeight>window.innerHeight*1.5?n:null},ge=(e,t,n=document)=>{let r=he(n),i=r?[r]:[],a=[];e.forEach(e=>{let r=Array.from(n.querySelectorAll(e.elementSelector)).slice(0,e.skip);me(e.elementSelector).forEach(o=>{let s=n.querySelectorAll(o);for(let n=0;ne.isEqualNode(o)))continue;let c=o&&o.parentElement;c&&c!==document.body?i.push(c):i.push(o),r.indexOf(o)===-1&&a.push({dynamicAd:e,element:o})}})});let o=pe(n),s=a.sort((e,t)=>e.element.getBoundingClientRect().top-o-(t.element.getBoundingClientRect().top-o));return[i,s]},_e=(e,t,n=document)=>{let[r,i]=ge(e,t,n);return r.length===0?[null,i]:[Array.from(r).reduce((e,t)=>t.offsetHeight>e.offsetHeight?t:e)||document.body,i]},ve=(e,t=`div #comments, section .comments`)=>{let n=e.querySelector(t);return n?e.offsetHeight-n.offsetHeight:e.offsetHeight},k=()=>{let e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)},A=()=>{let e=document.body,t=document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)};function j(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var M=j;let N=e=>M(` .adthrive-device-phone .adthrive-sticky-content { height: 450px !important; margin-bottom: 100px !important; } .adthrive-content.adthrive-sticky { position: -webkit-sticky; position: sticky !important; top: 42px !important; margin-top: 42px !important; } .adthrive-content.adthrive-sticky:after { content: “— Advertisement. Scroll down to continue. —”; font-size: 10pt; margin-top: 5px; margin-bottom: 5px; display:block; color: #888; } .adthrive-sticky-container { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; min-height:${e||400}px; margin: 10px 0 10px 0; background-color: #FAFAFA; padding-bottom:0px; } `),P=e=>{M(` .adthrive-recipe.adthrive-sticky { position: -webkit-sticky; position: sticky !important; top: 42px !important; margin-top: 42px !important; } .adthrive-recipe-sticky-container { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; min-height:${e||400}px !important; margin: 10px 0 10px 0; background-color: #FAFAFA; padding-bottom:0px; } `)},F=e=>e.some(e=>document.querySelector(e)!==null),ye=e=>/^[-_a-zA-Z]+[-_a-zA-Z0-9]*$/.test(e),be=(e,t,n)=>{let r=e=>e?!!(e.classList.contains(`adthrive-ad`)||e.id.includes(`_${n}_`)):!1;switch(t){case`beforebegin`:return r(e.previousElementSibling);case`afterend`:return r(e.nextElementSibling);case`afterbegin`:return r(e.firstElementChild);case`beforeend`:return r(e.lastElementChild);default:return!1}};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t{try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return L({valid:!1},e)}},z=e=>e===“?{valid:!0}:R(e),xe=(e,t)=>Math.random()*(t-e)+e;var B=class e extends b{constructor(e=[],t){super(),this._choices=e,this._default=t}static fromArray(t,n){return new e(t.map(([e,t])=>({choice:e,weight:t})),n)}addChoice(e,t){this._choices.push({choice:e,weight:t})}get(){let e=xe(0,100),t=0;for(let{choice:n,weight:r}of this._choices)if(t+=r,t>=e)return n;return this._default}get totalWeight(){return this._choices.reduce((e,{weight:t})=>e+t,0)}};let V={AdDensity:`addensity`,AdLayout:`adlayout`,FooterCloseButton:`footerclose`,Interstitial:`interstitial`,RemoveVideoTitleWrapper:`removevideotitlewrapper`,StickyOutstream:`stickyoutstream`,StickyOutstreamOnStickyPlayer:`sospp`,VideoAdvancePlaylistRelatedPlayer:`videoadvanceplaylistrp`,MobileStickyPlayerPosition:`mspp`};var Se=class{constructor(){s(this,`name`,void 0),s(this,`disable`,void 0),s(this,`gdprPurposes`,void 0)}};let Ce=[`mcmpfreqrec`],H=new class extends Se{constructor(…e){super(…e),s(this,`name`,`BrowserStorage`),s(this,`disable`,!1),s(this,`gdprPurposes`,[1]),s(this,`_sessionStorageHandlerQueue`,[]),s(this,`_localStorageHandlerQueue`,[]),s(this,`_cookieHandlerQueue`,[]),s(this,`_gdpr`,void 0),s(this,`_shouldQueue`,!1)}init(e){this._gdpr=e.gdpr===`true`,this._shouldQueue=this._gdpr}clearQueue(e){this._gdpr&&this._hasStorageConsent()===!1||(e&&(this._shouldQueue=!1,this._sessionStorageHandlerQueue.forEach(e=>{this.setSessionStorage(e.key,e.value)}),this._localStorageHandlerQueue.forEach(e=>{if(e.key===`adthrive_abgroup`){let t=Object.keys(e.value)[0],n=e.value[t],r=e.value[`${t}_weight`];this.getOrSetABGroupLocalStorageValue(t,n,r,{value:24,unit:`hours`})}else e.expiry?e.type===`internal`?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):e.type===`internal`?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)}),this._cookieHandlerQueue.forEach(e=>{e.type===`internal`?this.setInternalCookie(e.key,e.value):this.setExternalCookie(e.key,e.value)})),this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[])}readInternalCookie(e){return this._verifyInternalKey(e),this._readCookie(e)}readExternalCookie(e){return this._readCookie(e)}readExternalCookieList(e){return this._readCookieList(e)}getAllCookies(){return this._getCookies()}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){let t=(window.sessionStorage.getItem(e));if(!t)return null;try{return JSON.parse(t)}catch(e){return t}}deleteCookie(e){document.cookie=`${e}=; SameSite=None; Secure; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}deleteLocalStorage(e){window.localStorage.removeItem(e)}deleteSessionStorage(e){window.sessionStorage.removeItem(e)}_hasStorageConsent(){if(typeof window.__cmp==`function`)try{let e=(window.__cmp(`getCMPData`));if(!e||!e.purposeConsents)return;let t=e.purposeConsents[1];return t===!0?!0:t===!1||t==null?!1:void 0}catch(e){return}}setInternalCookie(e,t,n){this.disable||(this._verifyInternalKey(e),this._setCookieValue(`internal`,e,t,n))}setExternalCookie(e,t,n){this.disable||this._setCookieValue(`external`,e,t,n)}setInternalLocalStorage(e,t){if(!this.disable)if(this._verifyInternalKey(e),this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExternalLocalStorage(e,t){if(!this.disable)if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`external`};this._localStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.localStorage.setItem(e,n)}}setExpirableInternalLocalStorage(e,t,n){if(!this.disable){this._verifyInternalKey(e);try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`internal`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}}setExpirableExternalLocalStorage(e,t,n){if(!this.disable)try{var r,i;let a=(r=n==null?void 0:n.expiry)==null?{value:400,unit:`days`}:r,o=(i=n==null?void 0:n.resetOnRead)==null?!1:i;if(this._gdpr&&this._shouldQueue){let n={key:e,value:JSON.stringify(t),type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};this._localStorageHandlerQueue.push(n)}else{let n={value:t,type:`external`,expires:this._getExpiryDate(a),expiry:a,resetOnRead:o};window.localStorage.setItem(e,JSON.stringify(n))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(!this.disable)if(this._gdpr&&this._shouldQueue){let n={key:e,value:t};this._sessionStorageHandlerQueue.push(n)}else{let n=typeof t==`string`?t:JSON.stringify(t);window.sessionStorage.setItem(e,n)}}getOrSetABGroupLocalStorageValue(e,t,n,r,i=!0){let a=`adthrive_abgroup`,o=(this.readInternalLocalStorage(a));if(o!==null){var s;let t=o[e],n=(s=o[`${e}_weight`])==null?null:s;if(this._isValidABGroupLocalStorageValue(t))return[t,n]}let c=(L(L({},o),{},{[e]:t,[`${e}_weight`]:n}));return r?this.setExpirableInternalLocalStorage(a,c,{expiry:r,resetOnRead:i}):this.setInternalLocalStorage(a,c),[t,n]}_isValidABGroupLocalStorageValue(e){return e!=null&&!(typeof e==`number`&&isNaN(e))}_getExpiryDate({value:e,unit:t}){let n=new Date;return t===`milliseconds`?n.setTime(n.getTime()+e):t==`seconds`?n.setTime(n.getTime()+e*1e3):t===`minutes`?n.setTime(n.getTime()+e*60*1e3):t===`hours`?n.setTime(n.getTime()+e*60*60*1e3):t===`days`?n.setTime(n.getTime()+e*24*60*60*1e3):t===`months`&&n.setTime(n.getTime()+e*30*24*60*60*1e3),n.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){let t=(document.cookie.split(`; `).find(t=>t.split(`=`)[0]===e));if(!t)return null;let n=(t.split(`=`))[1];if(n)try{return JSON.parse(decodeURIComponent(n))}catch(e){return decodeURIComponent(n)}return null}_readCookieList(e){let t;for(let n of document.cookie.split(`;`)){let[r,…i]=(n.split(`=`));r.trim()===e&&(t=i.join(`=`).trim())}return t&&JSON.parse(t)||[]}_getCookies(){let e=[];return document.cookie.split(`;`).forEach(t=>{let[n,r]=t.split(`=`).map(e=>e.trim());e.push({name:n,value:r})}),e}_readFromLocalStorage(e){let t=(window.localStorage.getItem(e));if(!t)return null;try{let r=(JSON.parse(t)),i=r.expires&&(new Date().getTime())>=(new Date(r.expires).getTime());if(e===`adthrive_abgroup`&&r.created)return window.localStorage.removeItem(e),null;if(r.resetOnRead&&r.expires&&!i){var n;let t=(this._resetExpiry(r));return window.localStorage.setItem(e,JSON.stringify(r)),(n=t.value)==null?t:n}else if(i)return window.localStorage.removeItem(e),null;if(Object.prototype.hasOwnProperty.call(r,`value`))try{return JSON.parse(r.value)}catch(e){return r.value}else return r}catch(e){return t}}_setCookieValue(e,t,n,r){try{if(this._gdpr&&this._shouldQueue){let r={key:t,value:n,type:e};this._cookieHandlerQueue.push(r)}else{var i,a,o;let e=(this._getExpiryDate((i=r==null?void 0:r.expiry)==null?{value:400,unit:`days`}:i)),s=(a=r==null?void 0:r.sameSite)==null?`None`:a,c=(o=r==null?void 0:r.secure)==null?!0:o,l=typeof n==`object`?JSON.stringify(n):n;document.cookie=`${t}=${l}; SameSite=${s}; ${c?`Secure;`:“} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){let t=(e.startsWith(`adthrive_`)),n=(e.startsWith(`adt_`));if(!t&&!n&&!Ce.includes(e))throw Error(`When reading an internal cookie, the key must start with “adthrive_” or “adt_” or be part of the allowed legacy keys.`)}},we=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(–n);return t>>>0},Te=e=>we(e).toString(16),Ee=e=>{if(e===null)return null;let t=e.map(({choice:e})=>e);return Te(JSON.stringify(t))},De=(e,t)=>{var n,r;return(n=(r=e.find(({choice:e})=>e===t))==null?void 0:r.weight)==null?null:n},Oe=e=>e!=null&&!(typeof e==`number`&&isNaN(e)),U=()=>(e,t,n)=>{let r=n.value;r&&(n.value=function(…e){let t=Ee(this._choices),n=this._expConfigABGroup?this._expConfigABGroup:this.abgroup,i=n?n.toLowerCase():this.key?this.key.toLowerCase():“,a=t?`${i}_${t}`:i,o=this.localStoragePrefix?`${this.localStoragePrefix}-${a}`:a,s=`config`in window.adthrive?window.adthrive.config.gdpr.enabled:window.adthrive.gdpr===`true`;if([V.AdLayout,V.AdDensity].includes(i)&&s)return r.apply(this,e);let c=H.readInternalLocalStorage(`adthrive_branch`);(c&&c.enabled)===!1&&H.deleteLocalStorage(o);let l=(()=>r.apply(this,e))(),u=De(this._choices,l),[d,f]=H.getOrSetABGroupLocalStorageValue(o,l,u,{value:24,unit:`hours`});return this._stickyResult=d,this._stickyWeight=f,d})},ke=(e=window.location.search)=>{let t=e.indexOf(`?`)===0?1:0;return e.slice(t).split(`&`).reduce((e,t)=>{let[n,r]=t.split(`=`);return e.set(n,r),e},new Map)},Ae=e=>{let t={},n=ke().get(e);if(n)try{let r=decodeURIComponent(n).replace(/+/g,“);t=JSON.parse(r),T.event(`ExperimentOverridesUtil`,`getExperimentOverrides`,e,t)}catch(e){e instanceof URIError}return t},je=(e,t)=>typeof e==typeof t,Me=(e,t)=>{let n=e.adDensityEnabled,r=e.adDensityLayout.pageOverrides.find(e=>!!document.querySelector(e.pageSelector)&&(e[t].onePerViewport||typeof e[t].adDensity==`number`));return n?!r:!0},Ne=e=>{var t;let n=(t=e.videoPlayers)==null||(t=t.partners)==null||(t=t.stickyOutstream)==null?void 0:t.blockedPageSelectors;return n?!document.querySelector(n):!0},Pe=e=>{let t=e.adOptions.interstitialBlockedPageSelectors;return t?!document.querySelector(t):!0},Fe=(e,t,n)=>{switch(t){case V.AdDensity:return Me(e,n);case V.StickyOutstream:return Ne(e);case V.Interstitial:return Pe(e);default:return!0}},Ie=e=>e.length===1,Le=e=>{let t=e.reduce((e,t)=>t.weight?t.weight+e:e,0);return e.length>0&&e.every(e=>{let t=e.value,n=e.weight;return!!(t!=null&&!(typeof t==`number`&&isNaN(t))&&n)})&&t===100},Re=(e,t)=>{if(!e)return!1;let n=!!e.enabled,r=e.dateStart==null||Date.now()>=e.dateStart,i=e.dateEnd==null||Date.now(){let t=e.key,n=Re(e,this._device),r=Fe(this._clsOptions.siteAds,t,this._device);return n&&r}))==null?[]:t}getSiteExperimentByKey(e){let t=this.siteExperiments.filter(t=>t.key.toLowerCase()===e.toLowerCase())[0],n=Ae(`at_site_features`),r=je(t!=null&&t.variants[1]?t==null?void 0:t.variants[1].value:t==null?void 0:t.variants[0].value,n[e]);return t&&n[e]&&r&&(t.variants=[{displayName:`test`,value:n[e],weight:100,id:0}]),t}},ze=class{constructor(){s(this,`experimentConfig`,void 0)}get enabled(){return this.experimentConfig!==void 0}_isValidResult(e,t=()=>!0){return t()&&Oe(e)}},G=class extends ze{constructor(…e){super(…e),s(this,`_resultValidator`,()=>!0)}_isValidResult(e){return super._isValidResult(e,()=>this._resultValidator(e)||e===`control`)}run(){if(!this.enabled)return T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to control.`),`control`;if(!this._mappedChoices||this._mappedChoices.length===0)return T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`No experiment variants found. Defaulting to control.`),`control`;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSWeightedChoiceSiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to control.`),`control`)}};function K(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s–)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var q=class extends G{constructor(e){super(),s(this,`_choices`,[]),s(this,`_mappedChoices`,[]),s(this,`_result`,“),s(this,`_clsSiteExperiments`,void 0),s(this,`_resultValidator`,e=>typeof e==`string`),s(this,`key`,V.AdLayout),s(this,`abgroup`,V.AdLayout),this._clsSiteExperiments=new W(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}get result(){return this._result}run(){if(!this.enabled)return T.error(`CLSAdLayoutSiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to empty class name.`),“;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSAdLayoutSiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to empty class name.`),“)}_mapChoices(){return this._choices.map(({weight:e,value:t})=>({weight:e,choice:t}))}};K([U()],q.prototype,`run`,null);var J=class extends G{constructor(e){super(),s(this,`_choices`,[]),s(this,`_mappedChoices`,[]),s(this,`_result`,`control`),s(this,`_clsSiteExperiments`,void 0),s(this,`_resultValidator`,e=>typeof e==`number`),s(this,`key`,V.AdDensity),s(this,`abgroup`,V.AdDensity),this._clsSiteExperiments=new W(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}get result(){return this._result}run(){if(!this.enabled)return T.error(`CLSTargetAdDensitySiteExperiment`,`run`,`() => %o`,`No experiment config found. Defaulting to control.`),`control`;let e=new B(this._mappedChoices).get();return this._isValidResult(e)?e:(T.error(`CLSTargetAdDensitySiteExperiment`,`run`,`() => %o`,`Invalid result from experiment choices. Defaulting to control.`),`control`)}_mapChoices(){return this._choices.map(({weight:e,value:t})=>({weight:e,choice:typeof t==`number`?(t||0)/100:`control`}))}};K([U()],J.prototype,`run`,null);let Y=`250px`;var Be=class{constructor(t,n){this._clsOptions=t,this._adInjectionMap=n,s(this,`_recipeCount`,0),s(this,`_mainContentHeight`,0),s(this,`_mainContentDiv`,null),s(this,`_totalAvailableElements`,[]),s(this,`_minDivHeight`,250),s(this,`_densityDevice`,E.Desktop),s(this,`_pubLog`,{onePerViewport:!1,targetDensity:0,targetDensityUnits:0,combinedMax:0}),s(this,`_densityMax`,.99),s(this,`_smallerIncrementAttempts`,0),s(this,`_absoluteMinimumSpacingByDevice`,250),s(this,`_usedAbsoluteMinimum`,!1),s(this,`_infPageEndOffset`,0),s(this,`locationMaxLazySequence`,new Map([[e.Recipe,5]])),s(this,`locationToMinHeight`,{Below_Post:Y,Content:Y,Recipe:Y,Sidebar:Y}),s(this,`_device`,void 0),s(this,`_clsTargetAdDensitySiteExperiment`,void 0);let{tablet:r,desktop:i}=this._clsOptions.siteAds.breakpoints;this._device=de(r,i),this._clsTargetAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new J(this._clsOptions):null}start(){try{var e;ue(this._device);let n=new q(this._clsOptions);if(n.enabled){let e=n.result,t=e.startsWith(`.`)?e.substring(1):e;if(ye(t))try{document.body.classList.add(t)}catch(e){T.error(`ClsDynamicAdsInjector`,`start`,`Uncaught CSS Class error: ${e}`)}else T.error(`ClsDynamicAdsInjector`,`start`,`Invalid class name: ${t}`)}let r=se(this._device,this._clsOptions.siteAds).filter(e=>this._locationEnabled(e)).filter(e=>ce(e,this._device)).filter(e=>le(e)),i=this.inject(r),a=this._clsOptions.siteAds.adOptions.stickyContainerConfig;if(!(a==null||(e=a.content)==null)&&e.enabled&&!F(a.blockedSelectors||[])){var t;N(a==null||(t=a.content)==null?void 0:t.minHeight)}i.forEach(e=>this._clsOptions.setInjectedSlots(e))}catch(e){T.error(`ClsDynamicAdsInjector`,`start`,e)}}inject(t,n=document){this._densityDevice=this._device===`desktop`?E.Desktop:E.Mobile,this._overrideDefaultAdDensitySettingsWithSiteExperiment();let r=this._clsOptions.siteAds,i=f(r.adDensityEnabled,!0),a=r.adDensityLayout&&i,o=t.filter(t=>a?t.location!==e.Content:t),s=t.filter(t=>a?t.location===e.Content:null);return this._capturePreSlotInsertionPageAreaMeasurement(),[…o.length?this._injectNonDensitySlots(o,n):[],…s.length?this._injectDensitySlots(s,n):[]]}_injectNonDensitySlots(t,n=document){var r;let i=[],a=[],o=!1;if(t.some(t=>t.location===e.Recipe&&t.sticky)&&!F(((r=this._clsOptions.siteAds.adOptions.stickyContainerConfig)==null?void 0:r.blockedSelectors)||[])){var s,c;let e=this._clsOptions.siteAds.adOptions.stickyContainerConfig,t=this._device===`phone`?e==null||(s=e.recipeMobile)==null?void 0:s.minHeight:e==null||(c=e.recipeDesktop)==null?void 0:c.minHeight;P(t),o=!0}for(let e of t)this._insertNonDensityAds(e,i,a,n);return o||a.forEach(({location:e,element:t})=>{t.style.minHeight=this.locationToMinHeight[e]}),i}_injectDensitySlots(e,t=document){try{this._calculateMainContentHeightAndAllElements(e,t),this._capturePreSlotInsertionMainContentMeasurement()}catch(e){return[]}let{onePerViewport:n,targetAll:r,targetDensityUnits:i,combinedMax:a,numberOfUnits:o}=this._getDensitySettings(e,t);return this._absoluteMinimumSpacingByDevice=n?window.innerHeight:this._absoluteMinimumSpacingByDevice,o?(this._adInjectionMap.filterUsed(),this._findElementsForAds(o,n,r,a,i,t),this._insertAds()):[]}_overrideDefaultAdDensitySettingsWithSiteExperiment(){var e;if((e=this._clsTargetAdDensitySiteExperiment)!=null&&e.enabled){let e=this._clsTargetAdDensitySiteExperiment.result;typeof e==`number`&&(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=e)}}_getDensitySettings(e,t=document){let n=this._clsOptions.siteAds.adDensityLayout,r=this._determineOverrides(n.pageOverrides),i=r.length?r[0]:n[this._densityDevice],a=i.adDensity,o=i.onePerViewport,s=this._shouldTargetAllEligible(a),c=this._getTargetDensityUnits(a,s),l=this._getCombinedMax(e,t),u=Math.min(this._totalAvailableElements.length,c,…l>0?[l]:[]);return this._pubLog={onePerViewport:o,targetDensity:a,targetDensityUnits:c,combinedMax:l},{onePerViewport:o,targetAll:s,targetDensityUnits:c,combinedMax:l,numberOfUnits:u}}_determineOverrides(e){return e.filter(e=>{let t=z(e.pageSelector);return e.pageSelector===“||t.elements&&t.elements.length}).map(e=>e[this._densityDevice])}_shouldTargetAllEligible(e){return e===this._densityMax}_getTargetDensityUnits(e,t){return t?this._totalAvailableElements.length:Math.floor(e*this._mainContentHeight/(1-e)/this._minDivHeight)-this._recipeCount}_getCombinedMax(e,t=document){return f(e.filter(e=>{let n;try{n=t.querySelector(e.elementSelector)}catch(e){}return n}).map(e=>Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax)).sort((e,t)=>t-e)[0],0)}_elementLargerThanMainContent(e){return e.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1}_elementDisplayNone(e){let t=window.getComputedStyle(e,null).display;return t&&t===`none`||e.style.display===`none`}_isBelowMaxes(e,t){return this._adInjectionMap.map.length0){let{bottom:e}=fe(d);if(ee.name===p)&&(s+=1);let m=this.getDynamicElementId(f),h=D(t),g=O(t),_=t.location===e.Sidebar&&t.sticky&&t.sequence&&t.sequence{let o=Number(r.sequence)+a,s=r.max,c=r.lazy&&o>s;r.sequence=o,r.lazy=c;let l=this._addContentAd(n,r,i);l&&(r.used=!0,e.push(l),++t)}),e}_getInsertEvery(e,t,n){let r=this._absoluteMinimumSpacingByDevice;return this._moreAvailableElementsThanUnitsToInject(n,e)?(this._usedAbsoluteMinimum=!1,r=this._useWiderSpacing(n,e)):(this._usedAbsoluteMinimum=!0,r=this._useSmallestSpacing(t)),t&&window.innerHeight>r?window.innerHeight:r}_useWiderSpacing(e,t){return this._mainContentHeight/Math.min(e,t)}_useSmallestSpacing(e){return e&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice}_moreAvailableElementsThanUnitsToInject(e,t){return this._totalAvailableElements.length>e||this._totalAvailableElements.length>t}_logDensityInfo(e,t,n){let{onePerViewport:r,targetDensity:i,targetDensityUnits:a,combinedMax:o}=this._pubLog;this._totalAvailableElements.length}_checkElementSpacing({dynamicAd:e,element:t,insertEvery:n,targetAll:r,target:i=document}){(this._isFirstAdInjected()||this._hasProperSpacing(t,e,r,n))&&this._markSpotForContentAd(t,L({},e),i)}_isFirstAdInjected(){return!this._adInjectionMap.map.length}_markSpotForContentAd(e,t,n=document){let r=t.position===`beforebegin`||t.position===`afterbegin`;this._adInjectionMap.addSorted(e,this._getElementCoords(e,r),t,n)}_hasProperSpacing(t,n,r,i){let a=n.position===`beforebegin`||n.position===`afterbegin`,o=n.position===`beforeend`||n.position===`afterbegin`,s=r||this._isElementFarEnoughFromOtherAdElements(t,i,a),c=o||this._isElementNotInRow(t,a),l=t.id.indexOf(`AdThrive_${e.Below_Post}`)===-1;return s&&c&&l}_isElementFarEnoughFromOtherAdElements(e,t,n){let r=this._getElementCoords(e,n),[i,a]=this._adInjectionMap.findNeighborIndices(r),o=i===null?void 0:this._adInjectionMap.map[i].coords,s=a===null?void 0:this._adInjectionMap.map[a].coords;return(o===void 0||r-t>o)&&(s===void 0||r+t=5&&(o=r+1),n.push(L(L({},t),{},{sequence:o,lazy:i}))}return n}_locationEnabled(e){let t=this._clsOptions.enabledLocations.includes(e.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains(`adthrive-disable-all`),r=!document.body.classList.contains(`adthrive-disable-content`)&&!this._clsOptions.disableAds.reasons.has(`content_plugin`);return t&&!n&&r}},Ve=class{constructor(){s(this,`_map`,[])}add(e,t,n,r=document){this._map.push({el:e,coords:t,dynamicAd:n,target:r})}addSorted(e,t,n,r=document){let i=this._upperBoundIndex(t);this._map.splice(i,0,{el:e,coords:t,dynamicAd:n,target:r})}get map(){return this._map}sort(){this._map.sort(({coords:e},{coords:t})=>e-t)}filterUsed(){this._map=this._map.filter(({dynamicAd:e})=>!e.used)}findNeighborIndices(e){let t=this._upperBoundIndex(e),n=t-1>=0?t-1:null,r=t>1;this._map[r].coords/Windows NT|Macintosh/i.test(e)),Ue=()=>{let e=u()?`mobile`:`tablet`;return X(h)?`desktop`:e},Z=e=>{let t=v(),n=Ue(),r=e.siteAdsProfiles,i=null;if(r&&r.length)for(let e of r){let r=e.targeting.device,a=e.targeting.browserEngine,o=r&&r.length&&r.includes(n),s=a&&a.length&&a.includes(t);o&&s&&(i=e)}return i},We=e=>{let t=Z(e);if(t){let e=t.profileId;document.body.classList.add(`raptive-profile-${e}`)}},Q={Video_Collapse_Autoplay_SoundOff:`Video_Collapse_Autoplay_SoundOff`,Video_Individual_Autoplay_SOff:`Video_Individual_Autoplay_SOff`,Video_Coll_SOff_Smartphone:`Video_Coll_SOff_Smartphone`,Video_In_Post_ClicktoPlay_SoundOn:`Video_In-Post_ClicktoPlay_SoundOn`,Video_Collapse_Autoplay_SoundOff_15s:`Video_Collapse_Autoplay_SoundOff_15s`,Video_Individual_Autoplay_SOff_15s:`Video_Individual_Autoplay_SOff_15s`,Video_Coll_SOff_Smartphone_15s:`Video_Coll_SOff_Smartphone_15s`,Video_In_Post_ClicktoPlay_SoundOn_15s:`Video_In-Post_ClicktoPlay_SoundOn_15s`};var Ge=class{get enabled(){return!0}};function Ke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function $(e,t){if(e==null)return{};var n,r,i=Ke(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.type===`stationaryRelated`&&e.enabled),this._potentialPlayerMap=t,this._potentialPlayerMap}_filterPlayerMap(){let e=this._videoConfig.players,t={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return e&&e.length?e.filter(e=>{var t;return(t=e.devices)==null?void 0:t.includes(this._device)}).reduce((e,t)=>(e[t.type]||(T.event(this._component,`constructor`,`Unknown Video Player Type detected`,t.type),e[t.type]=[]),t.enabled&&e[t.type].push(t),e),t):t}_checkPlayerSelectorOnPage(e){for(let t of this._potentialPlayerMap[e]){let e=this._getPlacementElement(t);if(e)return{player:t,playerElement:e}}return{player:null,playerElement:null}}_getOverrideElement(e,t,n){if(e&&t){let r=document.createElement(`div`);t.insertAdjacentElement(e.position,r),n=r}else{let{player:e,playerElement:t}=this._checkPlayerSelectorOnPage(`stickyPlaylist`);if(e&&t){let r=document.createElement(`div`);t.insertAdjacentElement(e.position,r),n=r}}return n}_shouldOverrideElement(e){let t=e.getAttribute(`override-embed`);return t===`true`||t===`false`?t===`true`:this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.overrideEmbedLocation:!1}_checkPageSelector(e,t,n=[]){return e&&t&&n.length===0?(window.location.pathname!==`/`&&T.event(`VideoUtils`,`getPlacementElement`,Error(`PSNF: ${e} does not exist on the page`)),!1):!0}_getElementSelector(e,t,n){return t&&t.length>n?t[n]:(T.event(`VideoUtils`,`getPlacementElement`,Error(`ESNF: ${e} does not exist on the page`)),null)}_getPlacementElement(e){let{pageSelector:t,elementSelector:n,skip:r}=e,i=z(t),{valid:a,elements:o}=i,s=$(i,qe),c=R(n),{valid:l,elements:u}=c,d=$(c,Je);return t!==“&&!a?(T.error(`VideoUtils`,`getPlacementElement`,Error(`${t} is not a valid selector`),s),null):l?this._checkPageSelector(t,a,o)&&this._getElementSelector(n,u,r)||null:(T.error(`VideoUtils`,`getPlacementElement`,Error(`${n} is not a valid selector`),d),null)}_getEmbeddedPlayerType(e){let t=e.getAttribute(`data-player-type`);return(!t||t===`default`)&&(t=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:`static`),this._stickyRelatedOnPage&&(t=`static`),t}_getMediaId(e){let t=e.getAttribute(`data-video-id`);return t?(this._relatedMediaIds.push(t),t):!1}_createRelatedPlayer(e,t,n,r){t===`collapse`?this._createCollapsePlayer(e,n):t===`static`&&this._createStaticPlayer(e,n,r)}_createCollapsePlayer(e,t){let{player:n,playerElement:r}=this._checkPlayerSelectorOnPage(`stickyRelated`),i=n||this._potentialPlayerMap.stationaryRelated[0];i&&i.playerId?(this._shouldOverrideElement(t)&&(t=this._getOverrideElement(n,r,t)),t=document.querySelector(`#cls-video-container-${e} > div`)||t,this._createStickyRelatedPlayer(L(L({},i),{},{mediaId:e}),t)):T.error(this._component,`_createCollapsePlayer`,`No video player found`)}_createStaticPlayer(e,t,n){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){let r=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(L(L({},r),{},{mediaOrPlaylistId:e}),t,n)}else T.error(this._component,`_createStaticPlayer`,`No video player found`)}_shouldRunAutoplayPlayers(){return!!(this._isVideoAllowedOnPage()&&(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length))}_setPlaylistMediaIdWhenStationaryOnPage(e,t){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId&&e&&e.length){let n=e[0].getAttribute(`data-video-id`);return n?L(L({},t),{},{mediaId:n}):t}return t}_determineAutoplayPlayers(e){let t=this._component,n=t===`VideoManagerComponent`,r=this._context;if(this._stickyRelatedOnPage){T.event(t,`stickyRelatedOnPage`,n&&{device:r&&r.device,isDesktop:this._device}||{});return}let{playerElement:i}=this._checkPlayerSelectorOnPage(`stickyPlaylist`),{player:a}=this._checkPlayerSelectorOnPage(`stickyPlaylist`);a&&a.playerId&&i?(a=this._setPlaylistMediaIdWhenStationaryOnPage(e,a),this._createPlaylistPlayer(a,i)):Math.random(){T.event(t,`noStickyPlaylist`,n&&{vendor:`none`,device:r&&r.device,isDesktop:this._device}||{})},1e3)}_initializeRelatedPlayers(e){let t=new Map;for(let n=0;n{let e=new c;!e||!e.enabled||(e.siteAds&&We(e.siteAds),new Be(e,new He).start(),new Xe(new m(e),e).init())})()}catch(e){T.error(`CLS`,`pluginsertion-iife`,e),window.adthriveCLS&&(window.adthriveCLS.injectedFromPlugin=!1)}})();]]> { mutations.forEach((mutation) => { if (mutation.addedNodes) { for (const node of mutation.addedNodes) { if (node.tagName === ‘SCRIPT’ && node.src === targetScriptUrl) { node.parentNode.removeChild(node); observer.disconnect(); // Stop observing return; } } } }); }); observer.observe(document, { childList: true, subtree: true }); })(); ]]> -1 || aff_tags.indexOf(window.quillt.itags[key].toLowerCase()) > -1) { is_aff = true; break; } } } } if (is_aff) { fire(‘ViewContent’, {‘content_id’: window.quillt.content_id || null}, [‘ta_pixel’]); $(document).on(‘click’, ‘.entry-content a’, function(event) { // Simplistic check but should work well enough if (event.target.host !== window.location.host) { fire(‘InitiateCheckout’, {‘content_id’: window.quillt.content_id || null, ‘clicked_url’: event.target.href}, [‘ta_pixel’]); } }); } }.bind(window, $, fire); if (consent.ccpa || consent.gdpr.vendor || consent.gdpr.purpose.length) { (window.__consentwrapper = window.__consentwrapper || []).push(function () { window.__consentwrapper.addEventListener(‘onConsent’, function (data) { if (consent.ccpa && data.ccpaApplies && data.ccpa.restrictDataProcessing) return; if (data.gdprApplies && data.gdpr && data.gdpr.consentData) { if (consent.gdpr.vendor && data.gdpr.consentData.vendor) { var vendors = data.gdpr.consentData.vendor; if (!(vendors.consents[consent.gdpr.vendor] || vendors.legitimateInterests[consent.gdpr.vendor])) return; } if (consent.gdpr.purpose.length && data.gdpr.consentData.purpose) { for (var i = 0; i Quantcast Actions

Selected media actions

]]> Close dialog ]]> Close uploader

{{ data.message }}

Drop files to upload

or

Maximum upload file size: 4 GB.

Suggested image dimensions: {{data.suggestedWidth}} by {{data.suggestedHeight}} pixels.

]]> List view Grid view ]]> Uploading / – ]]> Edit previous media item ]]> Attachment Preview

Related Posts