!function(){"use strict";const o=window,t=o.document;let c=null;function l(){return t.cookie.indexOf("scroll0=")>-1}function r(){if(l()&&(o.blogherads.adq.push((function(){o.blogherads.disableAds()})),o.pmc_jwplayer&&o.pmc_jwplayer.handleDirectSold("scroll0"),o.pmc&&(o.pmc.no_ads=!0),o.__SPOTIM_ADS_DISABLED__=!0,t.getElementsByTagName("html")[0].className+=" scrolluser",!c||c!==o.history.pushState)){const t=o.history.pushState;c=function(){return"object"==typeof o.Scroll&&"function"==typeof o.Scroll.do&&"function"==typeof o.Scroll.virtualPage&&o.Scroll.do((function(){o.Scroll.virtualPage()})),t.apply(o.history,arguments)},o.history.pushState=c}}!function(){o.blogherads=o.blogherads||{},o.blogherads.adq=o.blogherads.adq||[],function(o,t,c,l){if(!o.Scroll){const t=o.Scroll={};t._q=[],t.do=function(o){t._q.push(o)}}}(o),o.Scroll.config={detected:l()};const t=document.createElement("script");t.src="https://static.scroll.com/js/scroll.js",document.head.appendChild(t),o.pmc&&o.pmc.hooks&&(o.pmc.hooks.add_filter("pmc-adm-show-interrupt-ads",(function(o){return!l()&&o})),o.pmc.hooks.add_filter("pmc_jwplayer_id",(function(t){return l()&&o.pmc_partner_scroll&&o.pmc_partner_scroll.player_id?o.pmc_partner_scroll.player_id:t}))),l()?r():o.Scroll.do((function(){l()&&r()}))}()}();; !function(a){"use strict";a(document).ready(function(){function b(b){return"object"!=typeof b||"string"!=typeof b.container||"object"!=typeof b.data_points||"string"!=typeof b.data_points.name||"string"!=typeof b.data_points.price?!1:void a(b.container).click(function(a){var c=jQuery(a.currentTarget),d=c.find(b.data_points.name).length>0?c.find(b.data_points.name)[0].innerText:"",f=c.find(b.data_points.price).length>0?c.find(b.data_points.price)[0].innerText:"",g=c.find(b.data_points.link).length>0?c.find(b.data_points.link)[0].href:c[0].href;if(f=parseFloat(f.split(" ")[0].replace("$","")),d&&g&&f){var h={title:d,link:g,price:f,type:b.event_type_label};e(h)}})}function c(b){return"object"!=typeof b||"string"!=typeof b.container?!1:void a(b.container).click(function(a){var c=jQuery(a.currentTarget),d=c.length>0?c[0].innerText:"",f=c.length>0?c[0].href:"";if(d&&f){var g={title:d,link:f,type:b.event_type_label};e(g)}})}function d(b){return"object"!=typeof b||"string"!=typeof b.container?!1:void a(b.container).click(function(a){var c=jQuery(a.currentTarget),d=c.length>0?c[0].innerText:"",f=c.length>0?c[0].href:"";if(f){var g={title:d,type:b.event_type_label,link:f};e(g)}})}function e(a){if("undefined"!=typeof a){var b="string"==typeof a.link?f(a.link):"",c="string"==typeof a.type?a.type:"",d="string"==typeof a.title?a.title:"",e="number"==typeof a.price?a.price:"",g=["amazon","amzn"];b=g.includes(b.toLowerCase())?"Amazon":b,permutive.track("WidgetLinkClick",{widget:{type:c},partner:b,product:{price:e,currency:"US",category:"",name:d}})}}function f(a){var b=document.createElement("a");b.href=a;var c=b.hostname,d=c.split(".");return d.pop(),d.length>1&&d.shift(),d.join()}var g="object"==typeof pmc_permutive_data?pmc_permutive_data:{};g.length>0&&g.forEach(function(a){"buy-now"===a.tracker.type?b(a.tracker):"inline-link"===a.tracker.type?c(a.tracker):"widget"===a.tracker.type&&d(a.tracker)})})}(jQuery);; /** sourcebuster v1.1.0 **/ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function s(a,o){if(!r[a]){if(!t[a]){var c="function"==typeof require&&require;if(!o&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[a]={exports:{}};t[a][0].call(p.exports,function(e){var r=t[a][1][e];return s(r?r:e)},p,p.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a0))return k=a.getHost(e),!0;for(var t=0;t0)for(var i=0;i0)for(var a=0;a=0&&h>=0&&{top:c,bottom:d,left:e,right:f,width:g,height:h}}function h(a){var b;try{b=a.getBoundingClientRect()}catch(c){}return b?(b.width&&b.height||(b={top:b.top,right:b.right,bottom:b.bottom,left:b.left,width:b.right-b.left,height:b.bottom-b.top}),b):i()}function i(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(a,b){for(var c=b;c;){if(c==a)return!0;c=k(c)}return!1}function k(a){var b=a.parentNode;return b&&11==b.nodeType&&b.host?b.host:b&&b.assignedSlot?b.assignedSlot.parentNode:b}if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var l=window.document,m=[];b.prototype.THROTTLE_TIMEOUT=100,b.prototype.POLL_INTERVAL=null,b.prototype.USE_MUTATION_OBSERVER=!0,b.prototype.observe=function(a){var b=this._observationTargets.some(function(b){return b.element==a});if(!b){if(!a||1!=a.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:a,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},b.prototype.unobserve=function(a){this._observationTargets=this._observationTargets.filter(function(b){return b.element!=a}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},b.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},b.prototype.takeRecords=function(){var a=this._queuedEntries.slice();return this._queuedEntries=[],a},b.prototype._initThresholds=function(a){var b=a||[0];return Array.isArray(b)||(b=[b]),b.sort().filter(function(a,b,c){if("number"!=typeof a||isNaN(a)||0>a||a>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return a!==c[b-1]})},b.prototype._parseRootMargin=function(a){var b=a||"0px",c=b.split(/\s+/).map(function(a){var b=/^(-?\d*\.?\d+)(px|%)$/.exec(a);if(!b)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(b[1]),unit:b[2]}});return c[1]=c[1]||c[0],c[2]=c[2]||c[0],c[3]=c[3]||c[1],c},b.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(e(window,"resize",this._checkForIntersections,!0),e(l,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(l,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},b.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,f(window,"resize",this._checkForIntersections,!0),f(l,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},b.prototype._checkForIntersections=function(){var b=this._rootIsInDom(),d=b?this._getRootRect():i();this._observationTargets.forEach(function(e){var f=e.element,g=h(f),i=this._rootContainsTarget(f),j=e.entry,k=b&&i&&this._computeTargetAndRootIntersection(f,d),l=e.entry=new a({time:c(),target:f,boundingClientRect:g,rootBounds:d,intersectionRect:k});j?b&&i?this._hasCrossedThreshold(j,l)&&this._queuedEntries.push(l):j&&j.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},b.prototype._computeTargetAndRootIntersection=function(a,b){if("none"!=window.getComputedStyle(a).display){for(var c=h(a),d=c,e=k(a),f=!1;!f;){var i=null,j=1==e.nodeType?window.getComputedStyle(e):{};if("none"==j.display)return;if(e==this.root||e==l?(f=!0,i=b):e!=l.body&&e!=l.documentElement&&"visible"!=j.overflow&&(i=h(e)),i&&(d=g(i,d),!d))break;e=k(e)}return d}},b.prototype._getRootRect=function(){var a;if(this.root)a=h(this.root);else{var b=l.documentElement,c=l.body;a={top:0,left:0,right:b.clientWidth||c.clientWidth,width:b.clientWidth||c.clientWidth,bottom:b.clientHeight||c.clientHeight,height:b.clientHeight||c.clientHeight}}return this._expandRectByRootMargin(a)},b.prototype._expandRectByRootMargin=function(a){var b=this._rootMarginValues.map(function(b,c){return"px"==b.unit?b.value:b.value*(c%2?a.width:a.height)/100}),c={top:a.top-b[0],right:a.right+b[1],bottom:a.bottom+b[2],left:a.left-b[3]};return c.width=c.right-c.left,c.height=c.bottom-c.top,c},b.prototype._hasCrossedThreshold=function(a,b){var c=a&&a.isIntersecting?a.intersectionRatio||0:-1,d=b.isIntersecting?b.intersectionRatio||0:-1;if(c!==d)for(var e=0;ef!=d>f)return!0}},b.prototype._rootIsInDom=function(){return!this.root||j(l,this.root)},b.prototype._rootContainsTarget=function(a){return j(this.root||l,a)},b.prototype._registerInstance=function(){m.indexOf(this)<0&&m.push(this)},b.prototype._unregisterInstance=function(){var a=m.indexOf(this);-1!=a&&m.splice(a,1)},window.IntersectionObserver=b,window.IntersectionObserverEntry=a}}();;