/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */(function(){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,d){e=setTimeout(d,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null);b.g(b.a)},function(){b.j(b.a)})};function Q(a,b,c,d,e,f,g){this.v=a;this.B=b;this.c=c;this.a=d;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.m=this.j=this.h=this.g=null;this.g=new M(this.c,this.s);this.h=new M(this.c,this.s);this.j=new M(this.c,this.s);this.m=new M(this.c,this.s);a=new G(this.a.c+",serif",J(this.a));a=O(a);this.g.a.style.cssText=a;a=new G(this.a.c+",sans-serif",J(this.a));a=O(a);this.h.a.style.cssText=a;a=new G("serif",J(this.a));a=O(a);this.j.a.style.cssText=a;a=new G("sans-serif",J(this.a));a= O(a);this.m.a.style.cssText=a;N(this.g);N(this.h);N(this.j);N(this.m)}var R={D:"serif",C:"sans-serif"},S=null;function T(){if(null===S){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);S=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return S}Q.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.m.a.offsetWidth;this.A=q();U(this)}; function la(a,b,c){for(var d in R)if(R.hasOwnProperty(d)&&b===a.f[R[d]]&&c===a.f[R[d]])return!0;return!1}function U(a){var b=a.g.a.offsetWidth,c=a.h.a.offsetWidth,d;(d=b===a.f.serif&&c===a.f["sans-serif"])||(d=T()&&la(a,b,c));d?q()-a.A>=a.w?T()&&la(a,b,c)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):ma(a):V(a,a.v)}function ma(a){setTimeout(p(function(){U(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.m.a);b(this.a)},a),0)};function W(a,b,c){this.c=a;this.a=b;this.f=0;this.m=this.j=!1;this.s=c}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,J(a).toString(),"active")],[b.a.c("wf",a.c,J(a).toString(),"loading"),b.a.c("wf",a.c,J(a).toString(),"inactive")]);K(b,"fontactive",a);this.m=!0;na(this)}; W.prototype.h=function(a){var b=this.a;if(b.g){var c=y(b.f,b.a.c("wf",a.c,J(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,J(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,J(a).toString(),"inactive"));w(b.f,d,e)}K(b,"fontinactive",a);na(this)};function na(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),K(a,"active")):L(a.a))};function oa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}oa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;pa(this,new ha(this.c,a),a)}; function qa(a,b,c,d,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,m=d||null||{};if(0===c.length&&f)L(b.a);else{b.f+=c.length;f&&(b.j=f);var h,l=[];for(h=0;h{e.addEventListener("focus",()=>this.handleFocus(e))}),this.trapFocus(e)}handleFocus(e){this.el.scrollTo(0,e.offsetTop)}trapFocus(e){if(e.classList.contains("mega-menu__main"))return;const t='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',s=e.querySelectorAll(t)[0],i=e.querySelectorAll(t),n=i[i.length-1];document.addEventListener("keydown",e=>{("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===s&&n&&(n.focus(),e.preventDefault()):document.activeElement===n&&s&&(s.focus(),e.preventDefault()))})}}function c(){void 0===window.pmc_side_skin_classes_removed&&(document.documentElement.classList.add("has-side-skins"),[...document.querySelectorAll('[class*="@desktop-xl"]')].forEach(e=>{const t=e.className.split(" ");e.className="",t.map(t=>{t.includes("@desktop-xl")||(e.className+=" "+t)})}),window.pmc_side_skin_classes_removed=!0),window.dispatchEvent(new Event("resize"))}var r={init:function(){let e=pmc.cookie.get("spy_fonts_loaded");void 0!==e&&e?this.load("directload"):window.addEventListener("load",()=>{this.load("load")})},load:function(e){this.getThemeUrl(),this.loadcount++;WebFont.load({google:{families:["Playfair Display"]},typekit:{id:"dda4haa"},active:function(){try{"load"==e&&pmc.cookie.set("spy_fonts_loaded",1,604800),console.log("fonts loaded "+e)}catch(e){}}})},getThemeUrl:function(){return"undefined"==typeof pmc_common_urls?"":pmc_common_urls.current_theme_uri}};class a{constructor(e){this.el=e,this.el.pmcHeader=this,this.container=document.documentElement,this.initSticky(),this.initSearch()}destroy(){this.destroySticky(),this.destroySearch(),delete this.el.pmcHeader}get stickyClass(){return this.el.dataset.headerStickyClass||"is-sticky"}get readyClass(){return this.el.dataset.headerReadyClass||"is-header-ready"}get searchClass(){return this.el.dataset.headerSearchClass||"is-search-expanded"}initSticky(){window.IntersectionObserver&&(this.observerOptions={root:null,rootMargin:"80px",threshold:[1]},this.toggleSticky=this.toggleSticky.bind(this),this.observer=new IntersectionObserver(this.toggleSticky,this.observerOptions),this.observer.observe(this.el),this.container.classList.add(this.readyClass))}destroySticky(){window.IntersectionObserver&&(this.observer.disconnect(),this.container.classList.remove(this.stickyClass,this.readyClass))}toggleSticky(e){window.IntersectionObserver&&e.forEach(e=>{const t=e.intersectionRatio;1===t?this.container.classList.remove(this.stickyClass):1>t&&this.container.classList.add(this.stickyClass)})}initSearch(){this.searchTrigger=this.el.querySelector("[data-header-search-trigger]"),null!==this.searchTrigger&&(this.expandSearch=this.expandSearch.bind(this),this.collapseSearch=this.collapseSearch.bind(this),this.searchTrigger.addEventListener("click",this.expandSearch))}destroySearch(){document.body.removeEventListener("click",this.collapseSearch),this.searchTrigger.removeEventListener("click",this.expandSearch),this.container.classList.remove(this.searchClass)}expandSearch(e){e.preventDefault(),e.stopPropagation(),this.container.classList.add(this.searchClass),this.searchTrigger.removeEventListener("click",this.expandSearch),setTimeout(()=>document.body.addEventListener("click",this.collapseSearch),1)}collapseSearch(e){e.target===this.searchTrigger||this.searchTrigger.contains(e.target)||(this.container.classList.remove(this.searchClass),this.searchTrigger.addEventListener("click",this.expandSearch),document.body.removeEventListener("click",this.collapseSearch))}}class l{constructor(e){this.el=e,this.targetTitles=[...document.querySelectorAll(".a-content h2.pmc-toc--heading")],this.initProgress()}initProgress(){const e=[];if(this.targetTitles.length&&this.targetTitles.forEach(t=>{const s=t.getBoundingClientRect();s.top=94&&e.push(t)}),e.length){document.querySelectorAll(".toc-list .c-nav-link").forEach(e=>{e.classList.remove("active")});const t=e[0].getAttribute("id"),s=document.querySelector('.toc-list-item .c-nav-link[href="#'+t+'"]');s&&s.classList.add("active")}}}var d=void 0!==window.pmc_common_urls?window.pmc_common_urls.current_theme_uri+"/assets/build/svg/defs/sprite.defs.svg?v=1":"/assets/build/svg/defs/sprite.defs.svg?v=1",u=function(){!function(e){[...document.querySelectorAll(".lrv-js-MobileHeightToggle")].forEach(t=>{768>e&&void 0===t.pmcMobileHeightToggle&&new i(t),768<=e&&void 0!==t.pmcMobileHeightToggle&&t.pmcMobileHeightToggle.destroy()})}(window.innerWidth),[...document.querySelectorAll(".js-Header")].forEach(e=>e.pmcHeader=new a(e))};window.addEventListener("DOMContentLoaded",(function(){u(),[...document.querySelectorAll(".lrv-js-EmailCapture")].forEach(e=>e.pmcEmailCapture=new n(e))})),window.addEventListener("resize",(function(){u()})),window.addEventListener("message",(function(e){!function(e){let t="",s="";"object"==typeof window.pmc_dfp_skin?s=window.pmc_dfp_skin:void 0!==window.pmc&&void 0!==window.pmc.skinAds&&(s=window.pmc.skinAds),"string"==typeof e.data&&"object"==typeof s&&"pmcadm:dfp:skinad:parameters"===e.data.substring(0,"pmcadm:dfp:skinad:parameters".length)&&(t=e.data.substring("pmcadm:dfp:skinad:parameters".length),t&&(c(),s.refresh_skin_rails()))}(e)})),window.addEventListener("load",(function(){!function(){const e=[...document.querySelectorAll(".js-MegaMenu")],t=[...document.querySelectorAll(".js-MegaMenu-Trigger")];let s;function i(){const e=document.documentElement.classList.contains("is-mega-open"),t=[...document.querySelector(".js-MegaMenu").querySelectorAll('input, [tabindex="0"]')];e?(document.documentElement.classList.remove("is-mega-open"),s.focus()):(document.documentElement.classList.add("is-mega-open"),t[0]!==document.activeElement&&setTimeout((function(){t[0].focus()}),100),s=document.activeElement)}e.forEach(e=>e.pmcMegaMenu=new o(e)),t.forEach(e=>{e.addEventListener("click",i)}),document.addEventListener("keydown",e=>{"Escape"===e.key&&document.documentElement.classList.remove("is-mega-open")})}()})),window.addEventListener("scroll",(function(){[...document.querySelectorAll(".toc > nav.toc-navigation")].forEach(e=>e.pmcTocProgress=new l(e))})),r.init(),function(e){const t=new XMLHttpRequest,s=document.createElement("div");t.open("GET",e,!0),t.send(),t.onload=function(){s.id="icon-sprite",s.innerHTML=t.responseText,document.body.insertBefore(s,document.body.childNodes[0])}}(d)}});; !function(e){var t={};function l(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}l.m=e,l.c=t,l.d=function(e,t,i){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(l.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)l.d(i,o,function(t){return e[t]}.bind(null,o));return i},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l(l.s=21)}({21:function(e,t,l){"use strict";l.r(t);class i{constructor(e){this.el=e,this.toggleEl=this.el.querySelector("[data-collapsible-toggle]"),this.panels=[...this.el.querySelectorAll("[data-collapsible-panel]")],this.group=this.findGroup(),this.toggle=this.toggle.bind(this),this.onClick=this.onClick.bind(this),this.toggleEl&&this.toggleEl.addEventListener("click",this.onClick)}destroy(){this.toggleEl&&this.toggleEl.removeEventListener("click",this.onClick),this.isCollapsed||this.toggle()}get state(){return this.el.dataset.collapsible}set state(e){this.el.dataset.collapsible=e,this.isCollapsed?this.el.classList.remove("is-expanded"):this.el.classList.add("is-expanded")}get isCollapsed(){return"collapsed"===this.state}get container(){return document.querySelector(this.el.dataset.collapsibleContainer)}get closeOnClick(){return void 0!==this.el.dataset.collapsibleCloseOnClick}findGroup(){return[...document.body.querySelectorAll("[data-collapsible-group]")].find(e=>e.contains(this.el))||null}onClick(e){e.preventDefault(),this.toggle()}toggle(){this.state=this.isCollapsed?"expanded":"collapsed",this.maybeRepositionPanel(),this.maybeCloseOnClick(),"expanded"===this.state&&(document.querySelector("[data-collapsible-toggle] + li > a").focus(),null!==this.group&&this.closeOthersInGroup())}collapse(){"expanded"===this.state&&this.toggle()}closeOthersInGroup(){[...this.group.querySelectorAll("[data-collapsible]")].forEach(e=>{e!==this.el&&e.pmcCollapsible.collapse()})}maybeRepositionPanel(){if(this.container)if(this.isCollapsed)this.panels.forEach(e=>e.style.marginLeft="");else{const e=this.container.getBoundingClientRect().left;this.panels.forEach(t=>{const l=t.getBoundingClientRect();if(0===l.width&&0===l.height)return;const i=parseInt(window.getComputedStyle(t).marginLeft,10),o=l.left-2*i;odocument.body.addEventListener("click",this.toggle),1))}}class o{constructor(e){this.el=e,this.resizeRows(),this.onResize=this.resizeRows.bind(this),window.addEventListener("resize",this.onResize)}resizeRows(){[".best-of-verdict",".best-of-pros",".best-of-cons"].forEach((function(e){let t=0;document.querySelectorAll(e).forEach((function(e){e.style.setProperty("--calculated-height",null),e.offsetHeight>t&&(t=e.offsetHeight)})),document.querySelectorAll(e).forEach((function(e){e.style.setProperty("--calculated-height",t+"px")}))}))}}class s{constructor(e){this.el=e,this.targetProductTitles=[...document.querySelectorAll(".multiple-products-data-wrapper .o-multiple-products-item")],this.jumpToDetailsLinks=[...document.querySelectorAll(".multiple-products-data-wrapper .jump-to-details")],this.jumpToDetailsLinks.length&&this.jumpToDetailsLinks.forEach(e=>{e.attributes.target.value="",e.addEventListener("click",e=>{e.preventDefault(),this.handleJumpToDetails(e)})}),this.targetProductTitles.length>3&&(this.button=this.el.querySelector(".multiple-products-button"),this.button.classList.remove("lrv-u-display-none"),this.trigger=this.el.querySelector(".view-more-button"),this.trigger.addEventListener("click",()=>{this.handleViewMore()}))}handleViewMore(){this.targetProductTitles.length&&(this.targetProductTitles.forEach(e=>{e.classList.remove("lrv-u-display-none")}),this.trigger.classList.add("lrv-u-display-none"))}handleJumpToDetails(e){this.scrollDestinationElement=document.querySelector(e.srcElement.hash);const t=window.pageYOffset+this.scrollDestinationElement.getBoundingClientRect().top;window.scrollTo({top:t-30,left:0,behavior:"smooth"})}}window.addEventListener("load",(function(){[...document.querySelectorAll("[data-collapsible]")].forEach(e=>e.pmcCollapsible=new i(e)),[...document.querySelectorAll(".product-grid")].forEach(e=>e.pmcPrintTrigger=new o(e)),document.querySelectorAll(".a-content > p").forEach((function(e){""===e.innerHTML.trim()&&e.parentNode.removeChild(e)})),[...document.querySelectorAll(".multiple-products")].forEach(e=>new s(e))}))}});;