PageSourceSearch

https://www.popsci.com/wp-content/themes/recurrent-base/js/app.js?ver=1785448210

js popsci.com collected 2026-09-24 06:45:25 UTC 74,847 bytes, 9 lines download raw bytes

1(()=>{var Xn=Object.defineProperty;var Kn=(s,t,e)=>t in s?Xn(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var cn=(s,t,e)=>Kn(s,typeof t!="symbol"?t+"":t,e);function Qn(s){return s!=null&&s===s.window}function y(s,t){if(t===void 0&&(t=null),s instanceof HTMLElement||s instanceof Node||Qn(s))return[s];if(s instanceof NodeList)return[].slice.call(s);if(typeof s=="string"){var e=t?y(t)[0]:document;return[].slice.call(e.querySelectorAll(s))}return[]}function $(s,t){if(Array.isArray(s))return s.forEach(function(n){return $(n,t)});var e=y(s);if(e.length){var i=[].concat(t);return e.forEach(function(n){i.forEach(function(o){n.classList.add(o)})}),e}}function w(s,t,e,i){if(Array.isArray(s)){s.forEach(function(c){return w(c,t,e,i)});return}var n={};typeof i=="boolean"?n.capture=i:typeof i=="object"&&(n=Object.assign({},i));var o={cb:e,options:n};window._domassistevents||(window._domassistevents={}),window._domassistevents["_"+t]=o;var a=y(s);a.length&&a.forEach(function(c){c.addEventListener(t,e,n)})}function W(s,t){var e=y(s,t);return e.length?e[0]:null}function Zn(){try{var s=new CustomEvent("t",{detail:{a:"b"}});return s.type==="t"&&s.detail.a==="b"}catch(t){return!1}}var Jn=function(t,e){var i=document.createEvent("CustomEvent");return e?i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):i.initCustomEvent(t,!1,!1,void 0),i},ce=!1;function M(s,t,e){if(e===void 0&&(e={}),Array.isArray(s))return s.forEach(function(n){return M(n,t,e)});ce||(ce=Zn()?CustomEvent:Jn);var i=y(s);if(i.length)return e.bubbles!==!1&&(e.bubbles=!0),i.forEach(function(n){var o=new ce(t,e);n.dispatchEvent(o)}),i}function un(s,t){Array.isArray(s)&&s.forEach(function(n){return un(n,t)}),window._domassistevents||(window._domassistevents={});var e=window._domassistevents["_"+t];if(e){var i=y(s);i.length&&i.forEach(function(n){n.removeEventListener(t,e.cb,e.options)})}}function dn(s,t,e,i){i===void 0&&(i=!1),w(s,t,function(n){un(s,t),e(n)},i)}function Z(s,t){if(Array.isArray(s))return s.forEach(function(n){return Z(n,t)});var e=y(s);if(e.length){var i=[].concat(t);return e.forEach(function(n){i.forEach(function(o){n.classList.remove(o)})}),e}}function H(s,t){if(Array.isArray(s))return s.forEach(function(n){return H(n,t)});var e=y(s);if(e.length){var i=[].concat(t);return e.forEach(function(n){i.forEach(function(o){n.classList.toggle(o)})}),e}}var ti=function(t){return function(e){t.push(e);function i(){for(;t.length;){var o=t.shift();typeof o=="function"&&o()}}function n(){document.removeEventListener("DOMContentLoaded",n),i()}setTimeout(function(){if(document.readyState!=="loading")return i()},0),document.addEventListener("DOMContentLoaded",n)}},Wt=ti([]);function ue(s,t){Array.isArray(s)&&s.forEach(function(i){return ue(i,t)});var e=y(s);e.length&&e.forEach(function(i){Object.keys(t).forEach(function(n){i.style[n]=t[n]})})}function Ct(s,t){if(Array.isArray(s))return s.forEach(function(i){return Ct(i,t)});var e=y(s);return e.length&&e.forEach(function(i){Object.keys(t).forEach(function(n){n in i?i[n]=t[n]:i.dataset[n]=t[n]})}),e}function de(s,t){Array.isArray(s)&&s.forEach(function(o){return de(o,t)});var e=y(s);if(e.length)for(var i=e.length,n=0;n<i;n+=1)e[n].innerHTML=t}function fe(s,t){if(Array.isArray(s))return s.forEach(function(i){return fe(i,t)});var e=y(s,t);e.length&&e.forEach(function(i){i.prototype&&i.prototype.remove?i.remove():i.parentNode&&i.parentNode.removeChild(i)})}function ei(s,t){var e={};return Object.keys(t.dataset).forEach(function(i){if(i.match(new RegExp("^"+s))&&i!==s){var n=i.replace(s,""),o=!1;n.match(/^Global/)&&(n=n.replace("Global",""),o=!0),n=""+n[0].toLowerCase()+n.slice(1),o?e[n]=window[t.dataset[i]]:e[n]=t.dataset[i],(typeof e[n]=="undefined"||e[n]==="")&&(e[n]=!0)}}),e}var xt=ei;function he(){return he=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)({}).hasOwnProperty.call(e,i)&&(s[i]=e[i])}return s},he.apply(null,arguments)}function ni(s){var t=(function(e){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,"string");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)})(s);return typeof t=="symbol"?t:t+""}function me(s,t){return t===void 0&&(t="module"),s.parentElement?s.parentElement.dataset[t]?s.parentElement:me(s.parentElement):s}var fn="[data-action]",gt={find:y,findOne:W,on:w},T=(function(){function s(n,o){var a=this;return this.el=void 0,this.options=void 0,this.moduleName=void 0,this.els=void 0,this.setUps=void 0,this.id=void 0,this.actionRouter=function(c){var u=c.
1currentTarget,f=s.parseAction(u).name,p=xt("action",u);f&&a[f].call(a,u,c,p)},this.log("Beginning setup"),this.el=n,this.options=he({},this.defaults,xt("module",this.el)),this.moduleName=o||this.el.dataset.module||"",this.els={},this.setUps={},this.id="",this.preInit(),this.generateUuid(),this.storeRef(),this.setupActions(),this.setupNamed(),this.verifyRequired(),this.postInit(),this.log("Initalized"),this}var t,e,i=s.prototype;return i.preInit=function(){this.log("No preInit() actions included.")},i.postInit=function(){this.log("No postInit() actions included.")},i.generateUuid=function(){this.id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var o=16*Math.random()|0;return(n==="x"?o:3&o|8).toString(16)})},i.storeRef=function(){if(window.domorefs===void 0&&(window.domorefs={}),window.domorefs[this.el.dataset.moduleUid||"undefined"])return!1;this.el.dataset.moduleUid=this.id,window.domorefs[this.el.dataset.moduleUid]=this},i.setupActions=function(){var n=this;this.setupAction(this.el),this.find(fn).forEach(function(o){me(o)===n.el&&n.setupAction(o)})},i.setupAction=function(n){if(n.dataset.domoduleActionProcessed!=="true"){var o=s.parseAction(n),a=o.name,c=o.type;a&&(typeof this[a]=="function"?(this.log(a+" bound"),this.storeSetUp(a,"actions"),gt.on(n,c,this.actionRouter),n.dataset.domoduleActionProcessed="true"):this.log(a+" was registered, but there is no function set up"))}},i.setupNamed=function(){var n=this;this.find("[data-name]").forEach(function(o){if(o.dataset.name){var a=o.dataset.name;me(o)===n.el&&(o.dataset.domoduleNameProcessed||(n.els[a]?Array.isArray(n.els[a])?n.els[a].push(o):n.els[a]=[n.els[a],o]:n.els[a]=o,n.storeSetUp(o.dataset.name,"named"),o.dataset.domoduleNameProcessed="true",o.dataset.domoduleOwner=n.id))}})},i.storeSetUp=function(n,o){this.setUps[o]===void 0&&(this.setUps[o]=[]),this.setUps[o].indexOf(n)<0&&this.setUps[o].push(n)},i.verifyRequired=function(){var n,o=this;return(n=this.required)!=null&&(n=n.options)!=null&&n.length&&(this.setUps.options=Object.keys(this.options)),Object.keys(this.required).forEach(function(a){o.required[a].forEach(function(c){if(o.setUps[a].indexOf(c)<0)throw new Error(c+" is required as "+a+" for "+o.moduleName+", but is missing!")})}),this},i.find=function(n){return gt.find(n,this.el)},i.findOne=function(n){return gt.findOne(n,this.el)},i.findByName=function(n){return this.els[n]},i.getOption=function(n){return this.options[n]},i.destroy=function(){var n,o=this;gt.find(fn,(n=this.el.parentElement)!=null?n:void 0).forEach(function(a){if(a.dataset.domoduleActionProcessed==="true"){var c=s.parseAction(a);a.removeEventListener(c.type,o.actionRouter),a.dataset.domoduleActionProcessed="false"}})},i.log=function(n){s.log(this.constructor.name+": "+n)},i.error=function(n){s.error(this.constructor.name+": "+n)},s.parseAction=function(n){var o;
1return{name:n.dataset.action,type:(o=n.dataset.actionType)!=null?o:"click"}},s.getInstance=function(n){return n.dataset.moduleUid&&window.domorefs?window.domorefs[n.dataset.moduleUid]:(s.log("The dataset of "+(n.getAttribute("id")||"NO ID")+" has no UID."),!1)},s.register=function(n,o){if(typeof n!="string")n=(o=n).prototype.constructor.name;else if(typeof n=="string"&&o===void 0)throw new Error("No Domodule class instance was provided in either parameter.");window.domodules||(window.domodules={}),s.log("Registering "+n),window.domodules[n]=o},s.discover=function(n){if(n===void 0&&(n="body"),s.log("Discovering modules..."),window.domodules){var o;o=n instanceof Element?[n]:Array.isArray(n)?n:gt.find(n);var a=[];return o.forEach(function(c){gt.find("[data-module]",c).forEach(function(u){var f=u.dataset.module;if(f&&window.domodules&&typeof window.domodules[f]=="function"){if(typeof window.domorefs=="object"&&u.dataset.moduleUid&&window.domorefs[u.dataset.moduleUid]!==void 0)return;s.log(f+" found");var p=window.domodules[f];a.push(new p(u))}})}),a}s.log("No modules found")},s.log=function(n){s.debug&&console.log("[DOMODULE] "+n)},s.error=function(n){console.error("[DOMODULE] "+n)},t=s,(e=[{key:"required",get:function(){return{}}},{key:"defaults",get:function(){return{}}}])&&(function(n,o){for(var a=0;a<o.length;a++){var c=o[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,ni(c.key),c)}})(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t})();T.autoDiscover=void 0,T.debug=void 0,T.debug=typeof window.localStorage=="object"&&window.localStorage.getItem("DomoduleDebug"),T.autoDiscover=!0,window.addEventListener("DOMContentLoaded",function(){T.autoDiscover&&T.discover()});var pe=class extends T{postInit(){w(this.els.SourcesToggle,"click",()=>{let t=this.els.SourcesToggle.getAttribute("aria-expanded")==="true"?"false":"true";this.els.SourcesToggle.setAttribute("aria-expanded",t),H(this.els.SourcesContent,"show")})}};T.register("ArticleSourcesBlock",pe);var ge=class extends T{postInit(){this.player=this.el,this.audioEl=this.el.querySelector(".element"),this.playBtn=this.el.querySelector(".play"),this.pauseBtn=this.el.querySelector(".pause"),this.current=this.el.querySelector(".progress .current-time"),this.total=this.el.querySelector(".progress .total-time"),this.slider=this.el.querySelector(".progress .slider"),this.pauseProgressUpdate=!1,this.reachedMilestones=new Set,this.setupListeners()}setupListeners(){this.playBtn.addEventListener("click",()=>this.audioEl.play()),this.pauseBtn.addEventListener("click",()=>this.audioEl.pause()),this.audioEl.addEventListener("timeupdate",t=>this.handleTimeUpdate(t)),this.slider.addEventListener("change",t=>this.handleProgressBarChange(t)),this.slider.addEventListener("mousedown",()=>this.pauseUpdates()),this.slider.addEventListener("touchstart",()=>this.pauseUpdates()),this.slider.addEventListener("mouseup",()=>this.resumeUpdates()),this.slider.addEventListener("touchend",()=>this.resumeUpdates()),this.audioEl.addEventListener("play",()=>this.showPlayButton()),this.audioEl.addEventListener("pause",()=>this.showPauseButton())}handleTimeUpdate(t){if(this.pauseProgressUpdate)return;let{duration:e,currentTime:i}=t.target,n=new Date(i*1e3).toISOString().substring(14,19),o=new Date(e*1e3).toISOString().substring(14,19);this.slider.value=(i/e*100).toFixed(1),n!==this.current.textContent&&(this.current.textContent=n),o!==this.total.textContent&&(this.total.textContent=o),this.checkMilestones(i,e)}checkMilestones(t,e){if(Number.isNaN(e)||Number.isNaN(t)||!Number.isFinite(e)||!Number.isFinite(t)||e===0)return;let i=Math.floor(t/e*10)*10;i=Math.min(Math.max(0,i),100),i!==0&&(this.reachedMilestones.has(i)||(this.reachedMilestones.add(i),this.pushEvent(`article_audio_playing_${i}`)))}showPlayButton(){this.player.classList.add("playing","played"),this.pushEvent("article_audio_play")}showPauseButton(){this.player.classList.remove("playing"),this.pushEvent("article_audio_pause")}pushEvent(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t})}handleProgressBarChange(t){let{duration:e}=this.audioEl;this.audioEl.currentTime=t.target.value/100*e,this.pushEvent("article_audio_seek")}resumeUpdates(){this.pauseProgressUpdate=!1}pauseUpdates(){this.pauseProgressUpdate=!0}};T.register("ArticleAudioPlayer",ge);var Ee=class extends T{toggleShelf(){H(this.els.dropdownContent,"hide-dropdown"),this.els.dropdownButton.getAttribute("aria-expanded")==="true"?(this.els.dropdownButton.setAttribute("aria-expanded","fal
1se"),this.els.dropdownButton.setAttribute("toggle-icon","+")):(this.els.dropdownButton.setAttribute("aria-expanded","true"),this.els.dropdownButton.setAttribute("toggle-icon","-"))}};T.register("Dropdown",Ee);Wt(()=>{let s=y(".schema-faq-section");Ct(s,{module:"YoastFAQ"}),T.discover()});var Te=class extends T{postInit(){let t=this.findOne(".schema-faq-question"),e=t.innerHTML;de(t,`<span class="schema-faq-question-text">${e}</span>
2			<button type="button" class="schema-faq-question-button" aria-label="Show Answer"/>`),w(this.findOne(".schema-faq-question-button"),"click",()=>{H(this.el,"show-answer"),H(this.el,"minus-icon")}),this.maybeOpenFirstQuestion()}maybeOpenFirstQuestion(){let t=this.el.parentElement;if(!t||!t.classList.contains("FaqFirstOpen"))return!1;let e=t.querySelectorAll(".schema-faq-section").item(0);if(!e||e.dataset.moduleUid!==this.el.dataset.moduleUid)return!1;let i=this.findOne(".schema-faq-question-button");return i?(i.click(),!0):!1}};T.register("YoastFAQ",Te);function ii(s){let t={};if(typeof s=="string"&&s==="meta"?t=e():typeof s=="string"&&s==="custom"?t=i():t=s,Object.keys(t).length===0)throw new Error("No breakpoints defined");function e(){let p=document.createElement("meta");p.classList.add("breakpoint-helper"),document.getElementsByTagName("head")[0].appendChild(p);let E=window.getComputedStyle(p).getPropertyValue("font-family");return E.length<=0?{}:(E=E.replace(/'|"/g,"").split("&"),E.reduce((h,m)=>{let[A,S]=m.split("=");return h[A]=S,h},{}))}function i(){return[...Array.from(document.styleSheets).filter(h=>{var m;return((m=h==null?void 0:h.href)==null?void 0:m.indexOf(window.location.origin))!==-1})].reduce((h,m)=>(Array.from(m.cssRules).forEach(A=>{A instanceof CSSStyleRule&&A.selectorText===":root"&&A.cssText.split("{")[1].replace("}","").split(";").forEach(z=>{let[J,it]=z.split(":");J.indexOf("--bph-")!==-1&&(h[J.replace("--bph-","").trim()]=it.trim())})}),h),{})}function n(p,E=!1){let h=[];return p.forEach(m=>{c(m,E)&&h.push(m)}),E?h:h.reverse()}function o(){return t}function a(p,E=!1){if(Array.isArray(p)){let[m,A]=p;return`${a(m)} and ${a(A,!0)}`}let h=t[p];if(typeof h=="undefined")throw new Error(`"${p}" does not seem to be a breakpoint name`);if(E){let m=parseFloat(h),A=h.replace(m,"");return`(max-width: ${m-(A==="em"?.0635:1)}${A})`}return`(min-width: ${h})`}function c(p,E=!1){return window.matchMedia(a(p,E)).matches}function u(p,E){let h=null,m={name:"",useMax:!1,immediate:!0};typeof p=="string"||Array.isArray(p)?m.name=p:(m.name=p.name,m.useMax=p.useMax||!1,m.immediate=typeof p.immediate=="undefined"?!0:p.immediate);function A(){h=window.matchMedia(a(m.name,m.useMax)),m.immediate&&E(h),h.addEventListener("change",E)}A();function S(){h&&(h.removeEventListener("change",E),h=null)}return{on:A,off:S}}function f(p,E={}){let h=Object.keys(t),m=[],A=h;if(h.length===0)return{on:()=>{},off:()=>{}};let{useMax:S,immediate:z,listenTo:J}=E,it={useMax:S||!1,immediate:typeof z=="undefined"?!0:z};J&&(A=J.sort((et,yt)=>parseInt(t[et],10)-parseInt(t[yt],10)));let tt=()=>{p(n(A,it.useMax))};function O(){A.forEach(et=>{let yt=u({name:et,useMax:it.useMax,immediate:!1},tt);m.push(yt)}),it.immediate&&tt()}O();function rt(){m.length&&(m.forEach(et=>et.off()),m=[])}return{on:O,off:rt}}
2return{getBreakpoints:o,getMediaQuery:a,isMatching:c,listen:u,listenAll:f}}var hn=ii;var si={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","1.5xl":"1384px","2xl":"1536px"},ri=hn(si),{getBreakpoints:mn,getMediaQuery:fs,isMatching:hs,listen:ms,listenAll:pn}=ri;var be=class extends T{postInit(){var t;this.config={sm:{paddedCount:0},md:{paddedCount:2}},this.paddedCount=this.config.md.paddedCount,this.paginationItems=this.find(".page-numbers:not(.prev):not(.next)"),this.currentPageEl=this.findOne(".page-numbers.current"),this.currentPageEl||(this.currentPageEl=(t=this.paginationItems)==null?void 0:t[0]),this.currentPageEl||console.warn("No pagination items found"),this.currentPage=parseInt(this.currentPageEl.textContent,10),this.totalPages=this.paginationItems.length,this.listener=pn(this.checkBreakpoint.bind(this),{useMax:!0})}checkBreakpoint(t){var n;let e=t[0],i=((n=this.config)==null?void 0:n[e])||this.config.md;this.paddedCount=i.paddedCount,this.reset()}reset(){var t,e,i,n;if(Z(this.paginationItems,"hidden"),fe(this.find(".page-numbers.dots")),this.currentPage-this.paddedCount>this.paddedCount){for(let o=1;o<this.currentPage-1-this.paddedCount;o++)$((t=this.paginationItems)==null?void 0:t[o],"hidden");this.currentPage>2&&((e=this.paginationItems)==null||e[Math.min(1,this.currentPage-(this.paddedCount?2:1)-this.paddedCount)].insertAdjacentHTML("afterend",'<button type="button" class="page-numbers dots" data-action="show" aria-label="Show all pages">&hellip;</button>'))}if(this.currentPage<this.totalPages-1-this.paddedCount){for(let o=this.currentPage+this.paddedCount;o<this.totalPages-1;o++)$((i=this.paginationItems)==null?void 0:i[o],"hidden");(n=this.paginationItems)==null||n[this.currentPage+this.paddedCount].insertAdjacentHTML("afterend",'<button type="button" class="page-numbers dots" data-action="show" aria-label="Show all pages">&hellip;</button>')}$(this.hideList,"hidden"),this.setupActions()}show(){Z(this.paginationItems,"hidden"),$(this.find(".dots"),"hidden")}};T.register("PaginateSEO",be);var oi=function(t,e,i){var n;return function(){var o=this,a=arguments,c=function(){n=null,i||t.apply(o,a)},u=i&&!n;clearTimeout(n),n=setTimeout(c,e),u&&t.apply(o,a)}},ct=oi;var Rt=[];w(window,"scroll",function(s){Rt.forEach(function(t){return t.handler.call(null,s)})});var ai={on:function(t,e,i){var n=t;e&&(n=ct(t,e,i)),Rt.push({handler:n,callback:t,wait:e,immediate:i})},off:function(t,e,i){t?Rt=Rt.filter(function(n){return n.callback!==t&&n.wait!==e&&n.immediate!==i}):Rt.length=0}},gn=ai;var Ae=class extends T{postInit(){this.originalUrl=window.location.href;let t=new URLSearchParams(window.location.search);this.debug=t.get("_secondscroll_debug"),this.overrideNextPostId=t.get("_secondscroll"),this.article=this.findOne("article"),this.loaded=!1,this.analytisTriggered=!1,this.eventQueue=[],this.lastScrollFiredPercent=Math.ceil(window.scrollY/(this.article.offsetHeight-window.innerHeight)*100)||0,this.initialScroll=this.lastScrollFiredPercent,this.showingIndex=1,this.articleMeta=null,this.originalPageTitle=document.title,this.secondArticleContainer=null,dn(window,"SecondScroll:trigger",this.loadPost.bind(this)),w(window,"SecondScroll:loaded",()=>{this.log("Second scroll loaded");let e=W("[data-meta]",this.secondArticleContainer);try{this.articleMeta=JSON.parse(e.dataset.meta);let i=e.dataset.permalink;affilimate_options.analytics_affilimate_enable==="1"&&affilimate_options.analytics_affilimate_id&&typeof affilimate!="undefined"&&(this.log("Affilimate track area",this.secondArticleContainer,i),affilimate.getInstance(affilimate_options.analytics_affilimate_id).then(n=>{n.trackArea({el:e,url:i})}).catch(()=>{this.log("Unable to instance the affilimate")}))}catch(i){this.log("Error parsing article meta",i,e.dataset.meta)}}),w(window,"SecondScroll:ready",()=>{this.secondArticleContainer=this.el.nextElementSibling,this.log("Second scroll ready"),this.log("Second article container",this.secondArticleContainer),new IntersectionObserver(i=>{i.forEach(n=>{n.isIntersecting&&this.showingIndex===1&&this.fire("SecondScroll:show")})}).observe(this.secondArticleContainer)}),w(window,"SecondScroll:reset",()=>{this.log("Second scroll reset"),this.showingIndex=1,document.title=this.originalPageTitle,history.pushState(null,null,this.originalUrl)}),w(window,"SecondScroll:show",()=>{var n;this.log("Second scroll show"),this.showingIndex=2,this.lastScrollFiredPercent=100;let e=W("[data-permalink]",this.secondArticleContainer),i=((n=this.articleMeta)==null?void 0:n["SEO Title"])||W("h1",e).innerText;if(document.title=i,history.pushState(null,null,e.dataset.permalink+"?utm_medium=direct&utm_source=second-scroll"),!this.analytisTriggered&&this.articleMeta)try{window.dataLayer.push(this.articleMeta),this.analytisTriggered=!0,this.log("Pushed to dataLayer",this.articleMeta)}catch(o){this.log("Error pushing to dataLayer",o)}}),gn.on(()=>
2{if(this.article){let e=this.article.offsetHeight,i=window.innerHeight,n=window.scrollY,o=Math.ceil(n/(e-i)*100);this.log(`Scrolled: ${o}%`,`Last fired: ${this.lastScrollFiredPercent?this.lastScrollFiredPercent:"never"}`),o>=80&&this.lastScrollFiredPercent<80?(this.lastScrollFiredPercent=o,this.fire("SecondScroll:ready")):o<100&&this.lastScrollFiredPercent>=100&&(this.lastScrollFiredPercent=o,this.fire("SecondScroll:reset"))}},16,!0),this.debug&&this.overrideNextPostId&&window.dispatchEvent(new CustomEvent("SecondScroll:trigger",{detail:{nextPostId:this.overrideNextPostId}})),this.initialScroll>=80&&this.fire("SecondScroll:ready")}loadPost({detail:{nextPostId:t}}){if(!t){console.error("SecondScroll:trigger event missing nextPost");return}this.log("Loading second scroll post",t);let e=`/wp-json/recurrent/v1/post/${t}/content`;fetch(e).then(i=>i.json()).then(i=>{i.content&&(this.el.insertAdjacentHTML("afterend",`<div data-nosnippet="true">${i.content}</div>`),this.loaded=!0,this.fire("SecondScroll:loaded"))})}fire(t){this.eventQueue.push(t),this.loaded&&(this.eventQueue.forEach(e=>{M(window,e)}),this.eventQueue=[])}log(...t){this.debug&&console.debug("[Sec. Scroll]",...t)}};T.register("SecondScroll",Ae);var Et={In:"scrolltriggers:inView",Out:"scrolltriggers:outOfView",Pause:"scrolltriggers:pause",Resume:"scrolltriggers:resume",Bounds:"scrolltriggers:bounds"},ye=(function(){function s(e,i){var n=this;e.hasAttribute("data-scroll-init")||(this.added=!1,this.el=e,this.options=i,this.eventHandler=ct(this.onScroll.bind(this),10,!0),this.dCalcBounds=ct(this.calcBounds.bind(this),10),this.paused=!1,this.disabled=!1,this.calcOffset(),(this.options.image||this.options.src||this.options.srcset)&&(this.options.once=!0),e.setAttribute("data-scroll-init","true"),this.calcBounds(),window.addEventListener("scroll",this.eventHandler),window.addEventListener("resize",this.dCalcBounds),w(this.el,Et.Pause,function(){n.paused=!0}),w(this.el,Et.Resume,function(){n.paused=!1}),setTimeout(this.eventHandler,400))}var t=s.prototype;return t.calcBounds=function(){var i=this;this.calcOffset();var n=this.options.progress===!0||typeof this.options.fixed!="undefined";if(!this.el.offsetParent&&!n||this.added&&this.options.once){this.disabled=!0;return}if(this.disabled=!1,n&&this.added)return this.outOfView(),requestAnimationFrame(function(){return i.calcBounds()});var o=this.options.position||"bottom";this.startEl=this.options.start?W(this.options.start):this.el,s.checkElement(this.startEl,"start",this.options.start);var a=this.startEl.getBoundingClientRect(),c=s.getScrollY(),u=a.top+c+(this.options.offset||0);if(this.start=s.processPosition(o,u),this.options.end){var f=W(this.options.end),p=f.getBoundingClientRect(),E=p.top+c,h=this.options.positionEnd||"bottom";h==="auto"&&(h="top"),this.end=s.processPosition(h,E),this.options.positionEnd==="auto"&&(this.end-=this.el.offsetHeight),s.checkElement(f,"end",this.options.end)}this.fire(Et.Bounds),this.eventHandler()},t.calcOffset=function(){this.options.offset=this.options.offset?this.options.offset:this.el.dataset.scrollOffset,this.options.image||this.options.srcset||this.options.offset==="auto"?this.options.offset=Math.max(document.documentElement.clientHeight,window.innerHeight,0)*-1:this.options.offset=parseInt(this.options.offset||0,10)},t.inView=function(){var i=this.options,n=i.className,o=i.inView;n&&this.el.classList&&$(this.el,n);var a=this.options.image,c=this.options.src,u=this.options.srcset;if(a||c){var f=a||c;switch(this.el.tagName){case"IMG":case"IFRAME":case"VIDEO":case"SCRIPT":this.el.setAttribute("src",f);break;default:ue(this.el,{backgroundImage:"url("+f+")",backgroundRepeat:"no-repeat"})}}u&&this.el.setAttribute("srcset",u),typeof o=="function"&&o(this.el,this.options),this.fire(Et.In),this.options.once&&(this.disabled=!0,window.removeEventListener("scroll",this.eventHandler),window.removeEventListener("resize",this.dCalcBounds)),this.added=!0},t.outOfView=function(){var i=this.options,n=i.className,o=i.outOfView;n&&this.el.classList&&Z(this.el,n),typeof o=="function"&&o(this.el,this.options),this.fire(Et.Out),this.added=!1},t.fire=function(i){M(this.el,i,{detail:{instance:this,options:this.options}})},t.onScroll=function(){var i=s.getScrollY();if(!(this.paused||this.disabled)){if(this.options.progress){var n=i/(document.documentElement.scrollHeight-window.innerHeight);this.el.style.width=n*100+"%"}if(i<this.start||this.end&&i>this.end){this.added&&this.outOfView();return}this.added||this.inView()}},s.checkElement=function(i,n,o){if(!i)throw new Error(n+` element doesn't match any element with selector: "`+o+'"')},s.getScrollY=function(){return window.pageYOffset||document.documentElement.scrollTop},s.processPosition=function(i,n){return i==="top"||(i==="middle"?n-=window.innerHeight/2:i==="bottom"?n-=window.innerHeight:n-=window.innerHeight*(parseInt(i,10)/100)),n},s})(),Gt=function(t){var e=[];
2if(t&&Array.isArray(t))t.forEach(function(n){var o=y(n.el);if(o===null)throw new Error("unknown element");o.forEach(function(a){delete n.el,e.push(new ye(a,n))})});else{if(t)throw new Error("please convert object to array");var i=y("[data-scroll]");i.forEach(function(n){var o=xt("scroll",n);o.progress!==null&&typeof o.progress!="undefined"&&(o.progress=!0),o.className=o.class,o.offset&&(o.offset=parseInt(o.offset,10)),typeof o.once!="undefined"&&(o.once=!0),e.push(new ye(n,o))})}return e};document.readyState!=="complete"&&document.addEventListener("readystatechange",function(){document.readyState==="complete"&&M(window,"resize")});Wt(Gt);Gt.Events=Et;Gt.ScrollTrigger=ye;var $t=Gt;var En=1e3,li=function(t,e,i,n){return(t/=n/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},ci=function s(t,e,i,n){n===void 0&&(n=function(){});var o=new Date().getTime(),a=i-e,c=a<0;if(a!==0){var u=o-t,f=Math.round(li(u,e,a,En));if(!c&&f>i&&(f=i),c&&f<i&&(f=i),u>En&&(f=i),window.scrollTo(0,f),f===i){setTimeout(n);return}f<0||window.requestAnimationFrame(function(){return s(t,e,i,n)})}},Lt=function(t,e,i,n){if(i===void 0&&(i=0),n===void 0&&(n=!1),!!t){M(t,"smoothscroll:start",{bubbles:!0});var o=t.getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop,c=Math.round(o.top+a)+i,u=new Date;t.hasAttribute("tabindex")||(t.tabIndex="-1"),n||window.history.pushState(null,"Scroll",e),ci(u.getTime(),a,c,function(){M(t,"smoothscroll:end",{bubbles:!0})}),t.focus()}},ui=function(t,e){t.dataset.smoothActive||(t.dataset.smoothActive=!0,t.addEventListener("click",function(i){var n=t.getAttribute("href");n[0]==="#"&&(i.preventDefault(),Lt(document.querySelector(n),n,e))}))},Ot=function(t,e){if(t===void 0&&(t="[data-smooth]"),e===void 0&&(e=0),!!window.requestAnimationFrame){var i=t;typeof t=="string"&&(i=document.querySelectorAll(t)),i instanceof Element&&(i=[i]);for(var n=0,o=i.length;n<o;n++){var a=i[n];ui(a,e)}}};window.addEventListener("DOMContentLoaded",function(){Ot()});var di="-20px",fi="toc-active",hi="show-more",mi="collapsible-summary--expanded",we=class extends T{postInit(){if(this.init(),!this.els.TocContent||!this.els.TocToggle)return;let t=parseInt(this.el.dataset.tocHiddenCount||"0",10);if(t===0)return;let e=this.els.TocContent.querySelectorAll(".toc-hidden"),i=this.els.TocContent.querySelectorAll(".toc-item-hidden"),n=`SHOW ${t} MORE`,o=`HIDE ${t}`;w(this.els.TocToggle,"click",()=>{let c=!(this.els.TocToggle.getAttribute("aria-expanded")==="true");this.els.TocToggle.setAttribute("aria-expanded",String(c)),H(this.els.TocContent,hi),H(this.el,mi),c?(e.forEach(u=>{u.removeAttribute("tabIndex")}),i.forEach(u=>{u.classList.remove("toc-item-hidden"),u.classList.add("toc-item-revealed")}),this.els.TocToggleText.innerText=o):(e.forEach(u=>{u.setAttribute("tabIndex","-1")}),i.forEach(u=>{u.classList.remove("toc-item-revealed"),u.classList.add("toc-item-hidden")}),this.els.TocToggleText.innerText=n)})}init(t=null){if(!t){y("[data-toc]").forEach(h=>this.init(h));return}let e=t.dataset.tocOffset?parseInt(t.dataset.tocOffset,10):1,i=t.querySelector("ul");if(!(i&&i.children.length>0))return;let o=y("li",t),a=y("a",t),c=[];o.forEach((E,h)=>{let m=E.querySelector("a");if(!m)return;let A=m.getAttribute("href");if(!A||!A.startsWith("#"))return;let S=A.substring(1);document.getElementById(S)&&c.push({el:`.toc-li-${h}`,fixed:"true",start:`#${S}`,position:"top",positionEnd:"top",className:fi,offset:di})});for(let E=0;E<c.length-1;E++)c[E].end=c[E+1].start;$t(c),Ot(a,e),w(document.body,"smoothscroll:start",()=>{M(o,"scrolltriggers:pause")}),w(document.body,"smoothscroll:end",()=>{M(o,"scrolltriggers:resume"),M(window,"scroll")});let u=window.location.hash,p=/^#[a-z0-9-]+$/i.test(u)?u:"";p&&a.some(E=>{let h=E.getAttribute("href")===p;return h&&setTimeout(()=>{let m=W(p);m&&Lt(m,null,e,!0)}),h})}};T.register("TableOfContents",we);var pi=".wp-block-yoast-seo-ai-summarize, .wp-block-recurrent-key-takeaways";function gi(s){let t=s.querySelector(".ai-summary-toggle");if(!t)return;let e=t.querySelector(".ai-summary-toggle-text"),i=s.querySelectorAll(".ai-summary-item-hidden"),n=parseInt(t.dataset.hiddenCount,10),o=s.classList.contains("collapsible-summary")?"collapsible-summary--expanded":"ai-summary-expanded";w(t,"click",()=>{let c=!(t.getAttribute("aria-expanded")==="true");
2t.setAttribute("aria-expanded",String(c)),H(s,o),i.forEach(u=>{u.classList.toggle("ai-summary-item-hidden",!c),u.classList.toggle("ai-summary-item-revealed",c)}),e.textContent=c?`HIDE ${n}`:`SHOW ${n} MORE`})}function Ei(){document.querySelectorAll(pi).forEach(gi)}Ei();var Ti=".click-to-reveal__trigger";function bi(s,t){return t?s.getAttribute("aria-pressed")==="true":s.classList.contains("is-revealed")}function Ai(s,t,e){e&&s.setAttribute("aria-pressed",String(t)),s.classList.toggle("is-revealed",t),t&&!e?(s.classList.add("is-done"),s.disabled=!0,s.dataset.revealedLabel&&s.setAttribute("aria-label",s.dataset.revealedLabel)):(s.classList.remove("is-done"),s.disabled=!1)}function yi(s){s.addEventListener("click",()=>{let t=s.dataset.reBlur==="1",e=bi(s,t);if(e&&!t)return;Ai(s,t?!e:!0,t)})}function Tn(){document.querySelectorAll(Ti).forEach(yi)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Tn):Tn();var{entries:In,setPrototypeOf:bn,isFrozen:wi,getPrototypeOf:Si,getOwnPropertyDescriptor:vi}=Object,{freeze:B,seal:j,create:bt}=Object,{apply:Re,construct:Le}=typeof Reflect!="undefined"&&Reflect;B||(B=function(t){return t});j||(j=function(t){return t});Re||(Re=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return t.apply(e,n)});Le||(Le=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return new t(...i)});var It=R(Array.prototype.forEach),_i=R(Array.prototype.lastIndexOf),An=R(Array.prototype.pop),Pt=R(Array.prototype.push),Ci=R(Array.prototype.splice),F=Array.isArray,Nt=R(String.prototype.toLowerCase),Se=R(String.prototype.toString),yn=R(String.prototype.match),Tt=R(String.prototype.replace),wn=R(String.prototype.indexOf),xi=R(String.prototype.trim),Ri=R(Number.prototype.toString),Li=R(Boolean.prototype.toString),Sn=typeof BigInt=="undefined"?null:R(BigInt.prototype.toString),vn=typeof Symbol=="undefined"?null:R(Symbol.prototype.toString),_=R(Object.prototype.hasOwnProperty),Dt=R(Object.prototype.toString),N=R(RegExp.prototype.test),jt=Oi(TypeError);function R(s){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return Re(s,t,i)}}function Oi(s){return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Le(s,e)}}function b(s,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nt;if(bn&&bn(s,null),!F(t))return s;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){let o=e(n);o!==n&&(wi(t)||(t[i]=o),n=o)}s[n]=!0}return s}function Ii(s){for(let t=0;t<s.length;t++)_(s,t)||(s[t]=null);return s}function V(s){let t=bt(null);for(let[e,i]of In(s))_(s,e)&&(F(i)?t[e]=Ii(i):i&&typeof i=="object"&&i.constructor===Object?t[e]=V(i):t[e]=i);return t}function Pi(s){switch(typeof s){case"string":return s;case"number":return Ri(s);case"boolean":return Li(s);case"bigint":return Sn?Sn(s):"0";case"symbol":return vn?vn(s):"Symbol()";case"undefined":return Dt(s);case"function":case"object":{if(s===null)return Dt(s);let t=s,e=At(t,"toString");if(typeof e=="function"){let i=e(t);return typeof i=="string"?i:Dt(i)}return Dt(s)}default:return Dt(s)}}function At(s,t){for(;s!==null;){let i=vi(s,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}s=Si(s)}function e(){return null}return e}function Di(s){try{return N(s,""),!0}catch(t){return!1}}var _n=B(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ve=B(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_e=B(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mi=B(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ce=B(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ni=B(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Cn=B(["#text"]),xn=B(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),xe=B(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Rn=B(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yt=B(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ki=j(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ui=j(/<%[\w\W]*|[\w\W]*%>/gm),Hi=j(/\$\{[\w\W]*/gm),Fi=j(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bi=j(/^aria-[\-\w]+$/),Pn=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zi=j(/^(?:\w+script|data):/i),qi=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dn=j(/^html$/i),Vi=j(/^[a-z][.\w]*(-[.\w]+)+$/i),Ln=Object.freeze({__proto__:null,ARIA_ATTR:Bi,ATTR_WHITESPACE:qi,CUSTOM_ELEMENT:Vi,DATA_ATTR:Fi,DOCTYPE_NAME:Dn,ERB_EXPR:Ui,IS_ALLOWED_URI:Pn,IS_SCRIPT_OR_DATA:zi,MUSTACHE_EXPR:ki,TMPLIT_EXPR:Hi}),Mt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Wi=function(){return typeof window=="undefined"?null:window},Gi=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));let o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},On=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Mn(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wi(),t=g=>Mn(g);if(t.version="3.4.1",t.removed=[],!s||!s.document||s.document.nodeType!==Mt.document||!s.Element)return t.isSupported=!1,t;let{document:e}=s,i=e,n=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:c,Element:u,NodeFilter:f,NamedNodeMap:p=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:E,DOMParser:h,trustedTypes:m}=s,A=u.prototype,S=At(A,"cloneNode"),z=At(A,"remove"),J=At(A,"nextSibling"),it=At(A,"childNodes"),tt=At(A,"parentNode");if(typeof a=="function"){let g=e.createElement("template");g.content&&g.content.ownerDocument&&(e=g.content.ownerDocument)}
2let O,rt="",{implementation:et,createNodeIterator:yt,createDocumentFragment:Nn,getElementsByTagName:kn}=e,{importNode:Un}=i,U=On();t.isSupported=typeof In=="function"&&typeof tt=="function"&&et&&et.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:kt,ERB_EXPR:Ut,TMPLIT_EXPR:Ht,DATA_ATTR:Hn,ARIA_ATTR:Fn,IS_SCRIPT_OR_DATA:Bn,ATTR_WHITESPACE:Ue,CUSTOM_ELEMENT:zn}=Ln,{IS_ALLOWED_URI:He}=Ln,I=null,Fe=b({},[..._n,...ve,..._e,...Ce,...Cn]),D=null,Be=b({},[...xn,...xe,...Rn,...Yt]),C=Object.seal(bt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,Ft=null,st=Object.seal(bt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ze=!0,Xt=!0,qe=!1,Ve=!0,ot=!1,St=!0,at=!1,Kt=!1,Qt=!1,ft=!1,Bt=!1,zt=!1,We=!0,Ge=!1,$e="user-content-",Zt=!0,vt=!1,ht={},K=null,Jt=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),je=null,Ye=b({},["audio","video","img","source","image","track"]),te=null,Xe=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",Q="http://www.w3.org/1999/xhtml",mt=Q,ee=!1,ne=null,qn=b({},[qt,Vt,Q],Se),ie=b({},["mi","mo","mn","ms","mtext"]),se=b({},["annotation-xml"]),Vn=b({},["title","style","font","a","script"]),_t=null,Wn=["application/xhtml+xml","text/html"],Gn="text/html",L=null,pt=null,$n=e.createElement("form"),Ke=function(r){return r instanceof RegExp||r instanceof Function},re=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pt&&pt===r)return;(!r||typeof r!="object")&&(r={}),r=V(r),_t=Wn.indexOf(r.PARSER_MEDIA_TYPE)===-1?Gn:r.PARSER_MEDIA_TYPE,L=_t==="application/xhtml+xml"?Se:Nt,I=_(r,"ALLOWED_TAGS")&&F(r.ALLOWED_TAGS)?b({},r.ALLOWED_TAGS,L):Fe,D=_(r,"ALLOWED_ATTR")&&F(r.ALLOWED_ATTR)?b({},r.ALLOWED_ATTR,L):Be,ne=_(r,"ALLOWED_NAMESPACES")&&F(r.ALLOWED_NAMESPACES)?b({},r.ALLOWED_NAMESPACES,Se):qn,te=_(r,"ADD_URI_SAFE_ATTR")&&F(r.ADD_URI_SAFE_ATTR)?b(V(Xe),r.ADD_URI_SAFE_ATTR,L):Xe,je=_(r,"ADD_DATA_URI_TAGS")&&F(r.ADD_DATA_URI_TAGS)?b(V(Ye),r.ADD_DATA_URI_TAGS,L):Ye,K=_(r,"FORBID_CONTENTS")&&F(r.FORBID_CONTENTS)?b({},r.FORBID_CONTENTS,L):Jt,wt=_(r,"FORBID_TAGS")&&F(r.FORBID_TAGS)?b({},r.FORBID_TAGS,L):V({}),Ft=_(r,"FORBID_ATTR")&&F(r.FORBID_ATTR)?b({},r.FORBID_ATTR,L):V({}),ht=_(r,"USE_PROFILES")?r.USE_PROFILES&&typeof r.USE_PROFILES=="object"?V(r.USE_PROFILES):r.USE_PROFILES:!1,ze=r.ALLOW_ARIA_ATTR!==!1,Xt=r.ALLOW_DATA_ATTR!==!1,qe=r.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=r.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=r.SAFE_FOR_TEMPLATES||!1,St=r.SAFE_FOR_XML!==!1,at=r.WHOLE_DOCUMENT||!1,ft=r.RETURN_DOM||!1,Bt=r.RETURN_DOM_FRAGMENT||!1,zt=r.RETURN_TRUSTED_TYPE||!1,Qt=r.FORCE_BODY||!1,We=r.SANITIZE_DOM!==!1,Ge=r.SANITIZE_NAMED_PROPS||!1,Zt=r.KEEP_CONTENT!==!1,vt=r.IN_PLACE||!1,He=Di(r.ALLOWED_URI_REGEXP)?r.ALLOWED_URI_REGEXP:Pn,mt=typeof r.NAMESPACE=="string"?r.NAMESPACE:Q,ie=_(r,"MATHML_TEXT_INTEGRATION_POINTS")&&r.MATHML_TEXT_INTEGRATION_POINTS&&typeof r.MATHML_TEXT_INTEGRATION_POINTS=="object"?V(r.MATHML_TEXT_INTEGRATION_POINTS):b({},["mi","mo","mn","ms","mtext"]),se=_(r,"HTML_INTEGRATION_POINTS")&&r.HTML_INTEGRATION_POINTS&&typeof r.HTML_INTEGRATION_POINTS=="object"?V(r.HTML_INTEGRATION_POINTS):b({},["annotation-xml"]);let l=_(r,"CUSTOM_ELEMENT_HANDLING")&&r.CUSTOM_ELEMENT_HANDLING&&typeof r.CUSTOM_ELEMENT_HANDLING=="object"?V(r.CUSTOM_ELEMENT_HANDLING):bt(null);if(C=bt(null),_(l,"tagNameCheck")&&Ke(l.tagNameCheck)&&(C.tagNameCheck=l.tagNameCheck),_(l,"attributeNameCheck")&&Ke(l.attributeNameCheck)&&(C.attributeNameCheck=l.attributeNameCheck),_(l,"allowCustomizedBuiltInElements")&&typeof l.allowCustomizedBuiltInElements=="boolean"&&(C.allowCustomizedBuiltInElements=l.allowCustomizedBuiltInElements),ot&&(Xt=!1),Bt&&(ft=!0),ht&&(I=b({}
vendor: 6,286 bytes, line 2
2,Cn),D=bt(null),ht.html===!0&&(b(I,_n),b(D,xn)),ht.svg===!0&&(b(I,ve),b(D,xe),b(D,Yt)),ht.svgFilters===!0&&(b(I,_e),b(D,xe),b(D,Yt)),ht.mathMl===!0&&(b(I,Ce),b(D,Rn),b(D,Yt))),st.tagCheck=null,st.attributeCheck=null,_(r,"ADD_TAGS")&&(typeof r.ADD_TAGS=="function"?st.tagCheck=r.ADD_TAGS:F(r.ADD_TAGS)&&(I===Fe&&(I=V(I)),b(I,r.ADD_TAGS,L))),_(r,"ADD_ATTR")&&(typeof r.ADD_ATTR=="function"?st.attributeCheck=r.ADD_ATTR:F(r.ADD_ATTR)&&(D===Be&&(D=V(D)),b(D,r.ADD_ATTR,L))),_(r,"ADD_URI_SAFE_ATTR")&&F(r.ADD_URI_SAFE_ATTR)&&b(te,r.ADD_URI_SAFE_ATTR,L),_(r,"FORBID_CONTENTS")&&F(r.FORBID_CONTENTS)&&(K===Jt&&(K=V(K)),b(K,r.FORBID_CONTENTS,L)),_(r,"ADD_FORBID_CONTENTS")&&F(r.ADD_FORBID_CONTENTS)&&(K===Jt&&(K=V(K)),b(K,r.ADD_FORBID_CONTENTS,L)),Zt&&(I["#text"]=!0),at&&b(I,["html","head","body"]),I.table&&(b(I,["tbody"]),delete wt.tbody),r.TRUSTED_TYPES_POLICY){if(typeof r.TRUSTED_TYPES_POLICY.createHTML!="function")throw jt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof r.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=r.TRUSTED_TYPES_POLICY,rt=O.createHTML("")}else O===void 0&&(O=Gi(m,n)),O!==null&&typeof rt=="string"&&(rt=O.createHTML(""));B&&B(r),pt=r},Qe=b({},[...ve,..._e,...Mi]),Ze=b({},[...Ce,...Ni]),jn=function(r){let l=tt(r);(!l||!l.tagName)&&(l={namespaceURI:mt,tagName:"template"});let d=Nt(r.tagName),v=Nt(l.tagName);return ne[r.namespaceURI]?r.namespaceURI===Vt?l.namespaceURI===Q?d==="svg":l.namespaceURI===qt?d==="svg"&&(v==="annotation-xml"||ie[v]):!!Qe[d]:r.namespaceURI===qt?l.namespaceURI===Q?d==="math":l.namespaceURI===Vt?d==="math"&&se[v]:!!Ze[d]:r.namespaceURI===Q?l.namespaceURI===Vt&&!se[v]||l.namespaceURI===qt&&!ie[v]?!1:!Ze[d]&&(Vn[d]||!Qe[d]):!!(_t==="application/xhtml+xml"&&ne[r.namespaceURI]):!1},Y=function(r){Pt(t.removed,{element:r});try{tt(r).removeChild(r)}catch(l){z(r)}},lt=function(r,l){try{Pt(t.removed,{attribute:l.getAttributeNode(r),from:l})}catch(d){Pt(t.removed,{attribute:null,from:l})}if(l.removeAttribute(r),r==="is")if(ft||Bt)try{Y(l)}catch(d){}else try{l.setAttribute(r,"")}catch(d){}},Je=function(r){let l=null,d=null;if(Qt)r="<remove></remove>"+r;else{let x=yn(r,/^[\r\n\t ]+/);d=x&&x[0]}_t==="application/xhtml+xml"&&mt===Q&&(r='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+r+"</body></html>");let v=O?O.createHTML(r):r;if(mt===Q)try{l=new h().parseFromString(v,_t)}catch(x){}if(!l||!l.documentElement){l=et.createDocument(mt,"template",null);try{l.documentElement.innerHTML=ee?rt:v}catch(x){}}let k=l.body||l.documentElement;return r&&d&&k.insertBefore(e.createTextNode(d),k.childNodes[0]||null),mt===Q?kn.call(l,at?"html":"body")[0]:at?l.documentElement:k},tn=function(r){return yt.call(r.ownerDocument||r,r,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},oe=function(r){return r instanceof E&&(typeof r.nodeName!="string"||typeof r.textContent!="string"||typeof r.removeChild!="function"||!(r.attributes instanceof p)||typeof r.removeAttribute!="function"||typeof r.setAttribute!="function"||typeof r.namespaceURI!="string"||typeof r.insertBefore!="function"||typeof r.hasChildNodes!="function")},ae=function(r){return typeof c=="function"&&r instanceof c};function nt(g,r,l){It(g,d=>{d.call(t,r,l,pt)})}let en=function(r){let l=null;if(nt(U.beforeSanitizeElements,r,null),oe(r))return Y(r),!0;let d=L(r.nodeName);if(nt(U.uponSanitizeElement,r,{tagName:d,allowedTags:I}),St&&r.hasChildNodes()&&!ae(r.firstElementChild)&&N(/<[/\w!]/g,r.innerHTML)&&N(/<[/\w!]/g,r.textContent)||St&&r.namespaceURI===Q&&d==="style"&&ae(r.firstElementChild)||r.nodeType===Mt.progressingInstruction||St&&r.nodeType===Mt.comment&&N(/<[/\w]/g,r.data))return Y(r),!0;if(wt[d]||!(st.tagCheck instanceof Function&&st.tagCheck(d))&&!I[d]){if(!wt[d]&&sn(d)&&(C.tagNameCheck instanceof RegExp&&N(C.tagNameCheck,d)||C.tagNameCheck instanceof Function&&C.tagNameCheck(d)))return!1;if(Zt&&!K[d]){let v=tt(r)||r.parentNode,k=it(r)||r.childNodes;if(k&&v){let x=k.length;for(let q=x-1;q>=0;--q){let G=S(k[q],!0);v.insertBefore(G,J(r))}}}return Y(r),!0}return r instanceof u&&!jn(r)||(d==="noscript"||d==="noembed"||d==="noframes")&&N(/<\/no(script|embed|frames)/i,r.innerHTML)?(Y(r),!0):(ot&&r.nodeType===Mt.text&&(l=r.textContent,It([kt,Ut,Ht],v=>{l=Tt(l,v," ")}),r.textContent!==l&&(Pt(t.removed,{element:r.cloneNode()}),r.textContent=l)),nt(U.afterSanitizeElements,r,null),!1)},nn=function(r,l,d){if(Ft[l]||We&&(l==="id"||l==="name")&&(d in e||d in $n))return!1;if(!(Xt&&!Ft[l]&&N(Hn,l))){if(!(ze&&N(Fn,l))){if(!(st.attributeCheck instanceof Function&&st.attributeCheck(l,r))){if(!D[l]||Ft[l]){if(!(sn(r)&&(C.tagNameCheck instanceof RegExp&&N(C.tagNameCheck,r)||C.tagNameCheck instanceof Function&&C.tagNameCheck(r))&&(C.attributeNameCheck instanceof RegExp&&N(C.attributeNameCheck,l)||C.attributeNameCheck instanceof Function&&C.attributeNameCheck(l,r))||l==="is"&&C.allowCustomizedBuiltInElements&&(C.tagNameCheck instanceof RegExp&&N(C.tagNameCheck,d)||C.tagNameCheck instanceof Function&&C.tagNameCheck(d))))return!1}else if(!te[l]){if(!N(He,Tt(d,Ue,""))){if(!((l==="src"||l==="xlink:href"||l==="href")&&r!=="script"&&wn(d,"data:")===0&&je[r])){if(!(qe&&!N(Bn,Tt(d,Ue,"")))){if(d)return!1}}}}}}}return!0},Yn=b({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(r){return!Yn[Nt(r)]&&N(zn,r)},rn=function(r){nt(U.beforeSanitizeAttributes,r,null);let{attributes:l}=r;if(!l||oe(r))return;let d={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0},v=l.length;for(;v--;){let k=l[v],{name:x,namespaceURI:q,value:G}=k,X=L(x),le=G,P=x==="value"?le:xi(le);if(d.attrName=X,d.attrValue=P,d.keepAttr=!0,d.forceKeepAttr=void 0,nt(U.uponSanitizeAttribute,r,d),P=d.attrValue,Ge&&(X==="id"||X==="name")&&wn(P,$e)!==0&&(lt(x,r),P=$e+P),St&&N(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,P)){lt(x,r);continue}if(X==="attributename"&&yn(P,"href")){lt(x,r);continue}if(d.forceKeepAttr)continue;if(!d.keepAttr){lt(x,r);continue}if(!Ve&&N(/\/>/i,P)){lt(x,r);continue}ot&&It([kt,Ut,Ht],ln=>{P=Tt(P,ln," ")}
2);let an=L(r.nodeName);if(!nn(an,X,P)){lt(x,r);continue}if(O&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!q)switch(m.getAttributeType(an,X)){case"TrustedHTML":{P=O.createHTML(P);break}case"TrustedScriptURL":{P=O.createScriptURL(P);break}}if(P!==le)try{q?r.setAttributeNS(q,x,P):r.setAttribute(x,P),oe(r)?Y(r):An(t.removed)}catch(ln){lt(x,r)}}nt(U.afterSanitizeAttributes,r,null)},on=function(r){let l=null,d=tn(r);for(nt(U.beforeSanitizeShadowDOM,r,null);l=d.nextNode();)nt(U.uponSanitizeShadowNode,l,null),en(l),rn(l),l.content instanceof o&&on(l.content);nt(U.afterSanitizeShadowDOM,r,null)};return t.sanitize=function(g){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=null,d=null,v=null,k=null;if(ee=!g,ee&&(g="<!-->"),typeof g!="string"&&!ae(g)&&(g=Pi(g),typeof g!="string"))throw jt("dirty is not a string, aborting");if(!t.isSupported)return g;if(Kt||re(r),t.removed=[],typeof g=="string"&&(vt=!1),vt){let G=g.nodeName;if(typeof G=="string"){let X=L(G);if(!I[X]||wt[X])throw jt("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof c)l=Je("<!---->"),d=l.ownerDocument.importNode(g,!0),d.nodeType===Mt.element&&d.nodeName==="BODY"||d.nodeName==="HTML"?l=d:l.appendChild(d);else{if(!ft&&!ot&&!at&&g.indexOf("<")===-1)return O&&zt?O.createHTML(g):g;if(l=Je(g),!l)return ft?null:zt?rt:""}l&&Qt&&Y(l.firstChild);let x=tn(vt?g:l);for(;v=x.nextNode();)en(v),rn(v),v.content instanceof o&&on(v.content);if(vt)return g;if(ft){if(ot){l.normalize();let G=l.innerHTML;It([kt,Ut,Ht],X=>{G=Tt(G,X," ")}),l.innerHTML=G}if(Bt)for(k=Nn.call(l.ownerDocument);l.firstChild;)k.appendChild(l.firstChild);else k=l;return(D.shadowroot||D.shadowrootmode)&&(k=Un.call(i,k,!0)),k}let q=at?l.outerHTML:l.innerHTML;return at&&I["!doctype"]&&l.ownerDocument&&l.ownerDocument.doctype&&l.ownerDocument.doctype.name&&N(Dn,l.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+l.ownerDocument.doctype.name+`>
3`+q),ot&&It([kt,Ut,Ht],G=>{q=Tt(q,G," ")}),O&&zt?O.createHTML(q):q},t.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};re(g),Kt=!0},t.clearConfig=function(){pt=null,Kt=!1},t.isValidAttribute=function(g,r,l){pt||re({});let d=L(g),v=L(r);return nn(d,v,l)},t.addHook=function(g,r){typeof r=="function"&&Pt(U[g],r)},t.removeHook=function(g,r){if(r!==void 0){let l=_i(U[g],r);return l===-1?void 0:Ci(U[g],l,1)[0]}return An(U[g])},t.removeHooks=function(g){U[g]=[]},t.removeAllHooks=function(){U=On()},t}var Oe=Mn();var Ie=class extends T{postInit(){var o,a,c;if(this.init(),!this.els.TagContent)return;let t=this.els.TagContent.querySelectorAll(".tag-list-item"),e=0,i=Math.max(1,Number((o=this.el.dataset)==null?void 0:o.maxVisibleTerms)||3);t.forEach((u,f)=>{let p=f>=i;p||u.classList.remove("hidden"),p&&(u.classList.add("tag-hidden"),u.setAttribute("tabIndex","-1"),e++)});let n=e>0?`See ${e} More ${(a=this.el.dataset.taxonomyPlural)!=null?a:""}`:`See More ${(c=this.el.dataset.taxonomySingular)!=null?c:""}`;e>0&&(this.els.TagToggleText.innerText=n,$(this.els.TagToggle,"inline"),Z(this.els.TagToggle,"hidden")),w(this.els.TagToggle,"click",()=>{let u=this.els.TagToggle.getAttribute("aria-expanded")==="true"?"false":"true";this.els.TagToggle.setAttribute("aria-expanded",u),H(this.els.TagContent,"show-more");let f=this.els.TagToggleText.innerText,p=this.els.TagToggleIcon;/see/i.test(f)?(this.els.TagContent.querySelectorAll(".tag-hidden").forEach(h=>{h.removeAttribute("tabIndex"),h.classList.remove("hidden")}),this.els.TagContent.classList.add("open"),this.els.TagToggleText.innerText="Hide",p.innerText="-"):/hide/i.test(f)&&(this.els.TagContent.querySelectorAll(".tag-hidden").forEach(h=>{h.setAttribute("tabIndex","-1"),h.classList.add("hidden")}),this.els.TagContent.classList.remove("open"),this.els.TagToggleText.innerText=n,p.innerText="+")})}init(t){if(!t){t=y("[data-tag-list]"),t.forEach(m=>this.init(m));return}if(!t)return;let e=this.el.parentElement,i=t.dataset.tagList.split(",").map(m=>m.trim()),n=[],o=t.dataset.tagListOffset?parseInt(t.dataset.tagListOffset,10):1,a=1;i.forEach(m=>{y(`${m}:not(nav[data-tag-list] ${m})`,e).forEach(S=>{let z=S.id||`tag-${a++}`,J=S.dataset.tagTitle?S.dataset.tagTitle.trim():S.textContent.trim(),tt=`tag-${m.replace(/((:+[\w-\d]*)|[^A-z0-9-\s])/g," ").replace(/\s{2,}/g," ").trim()}`;S.id!==z&&(S.id=z),n.push({index:z,text:J,className:tt})})});let c="<ul>",u=[];
3n.forEach((m,A)=>{let S=n[A+1],z={el:`.tag-li-${A}`,fixed:"true",start:`#${m.index}`,position:"top",positionEnd:"top",className:"tag-active",offset:"-20px"};c+=`
4<li class="tag-li-${A} ${m.className}"><a href="#${m.index}">${m.text}</a></li>`,S&&(z.end=`#${S.index}`),u.push(z)}),c+="</ul>";let f=Oe.sanitize(c);t.innerHTML=f;let p=y("li",t),E=y("a",t);$t(u),Ot(E,o),w(document.body,"smoothscroll:start",()=>{M(p,"scrolltriggers:pause")}),w(document.body,"smoothscroll:end",()=>{M(p,"scrolltriggers:resume"),M(window,"scroll")});let h=Oe.sanitize(window.location.hash);h&&E.some(m=>{let A=m.getAttribute("href")===h;return A&&setTimeout(()=>{let S=W(h);S&&Lt(S,null,o,!0)}),A})}};T.register("TagList",Ie);try{if(!(window!=null&&window._amznTag)||!(window!=null&&window._amznParam))throw"Amazon Tag not found.";let s=document.querySelectorAll('main article a[href*="amazon."], main article a[href*="amazn."]'),t=window._amznParam,e=new Date,i=e.getDate().toString().padStart(2,0)+e.getHours().toString().padStart(2,0),n=window.innerWidth.toString().substring(0,4).padStart(4,0),o=window.innerHeight.toString().substring(0,4).padStart(4,0),a=encodeURI(t.substring(0,17)+n+o+t.substring(25,35)+i);s.forEach(c=>{let u=new URL(c.getAttribute("href"));u.searchParams.has("tag")||u.searchParams.set("tag",window._amznTag),u.searchParams.has("asc_source")||u.searchParams.set("asc_source","browser"),u.searchParams.has("asc_refurl")||u.searchParams.set("asc_refurl",new URL(window.location.pathname,window.location.origin).href),u.searchParams.has("ascsubtag")||u.searchParams.set("ascsubtag",a);let{asin:f,tag:p}=$i(u.href),E=p||window._amznTag,h=a;!c.querySelector("[data-aps-asin]")&&f&&c.setAttribute("data-aps-asin",f),!c.querySelector("[data-aps-asc-tag]")&&E&&c.setAttribute("data-aps-asc-tag",E),!c.querySelector("[data-aps-asc-subtag]")&&h&&c.setAttribute("data-aps-asc-subtag",h),c.setAttribute("href",u.href)})}catch(s){console.error("Amazon Tag Error:",s)}function $i(s){try{let t=/(?:dp|gp\/product|gp\/offer-listing|gp\/aw|gp\/video)\/([A-Z0-9]{10})(?:.*?[?&]tag=([^&]+))?/,e=s.match(t);if(!e)throw new Error("No valid ASIN found in the URL");let i=e[1],n=e[2]||null;return{asin:i,tag:n}}catch(t){return console.error("Error extracting details:",t.message),{asin:null,tag:null,subtag:null}}}function ji(){document.querySelectorAll(".wp-block-columns").forEach(t=>{if(t.querySelectorAll(".wp-block-image").length>1){let i=t.querySelectorAll("img"),n=Array.from(i).map(o=>new Promise(a=>{o.complete?a():o.addEventListener("load",a,{once:!0})}));Promise.all(n).then(()=>{let o=i.values().reduce((a,c)=>Math.min(a,c.naturalWidth/c.naturalHeight),Number.MAX_SAFE_INTEGER);i.forEach(a=>{a.style["aspect-ratio"]=o,a.style["object-fit"]="cover",a.style.height="auto"})})}})}ji();var Pe=class extends T{postInit(){this.breakpoints=mn(),this.block=this.el.querySelector(".wp-block-table"),this.table=this.el.querySelector("table"),this.figure=this.el.querySelector("figure"),this.tableControls=null,this.tableExpandBtn=null,this.tableCollapseBtn=null,this.el.id||(this.el.id=`table-${this.el.hasAttribute("data-module-uid")?this.el.getAttribute("data-module-uid"):Math.random().toString(16).slice(2)}`),this.eventHandlers={checkWidth:ct(this.checkWidth.bind(this),10),scroll:this.logScroll.bind(this),expand:this.expandTable.bind(this),collapse:this.collapseTable.bind(this),resize:this.setupExpandCollapse.bind(this)},window.addEventListener("resize",this.eventHandlers.resize),this.setupExpandCollapse(),!this.enhanceTable()&&this.enableScrollableTable()}destroy(){var t;window.removeEventListener("resize",this.eventHandlers.resize),window.removeEventListener("resize",this.eventHandlers.checkWidth),(t=this.figure)==null||t.removeEventListener("scroll",this.eventHandlers.scroll),this.removeTableControlEvents()}setupExpandCollapse(){if(!window.matchMedia(`(max-width: ${this.breakpoints.md})`).matches||!this.block||!this.table){this.notCollapsibleTable();return}let i=window.innerHeight*.6;if(this.table.scrollHeight<=i){this.notCollapsibleTable();return}this.el.classList.add("table-collapsible"),this.el.classList.remove("table-no-collapse"),this.tableControls=this.el.querySelector(".table-toggle-buttons"),this.tableControls||(this.tableControls=document.createElement("span"),this.tableControls.className="table-toggle-buttons",this.tableExpandBtn=document.createElement("button"),this.tableExpandBtn.className="table-expand",this.tableExpandBtn.textContent="Show more",this.tableCollapseBtn=document.createElement("button"),this.tableCollapseBtn.className="table-collapse",this.tableCollapseBtn.textContent="Show less",this.tableExpandBtn.setAttribute("aria-controls",this.el.id),this.tableCollapseBtn.setAttribute("aria-controls",this.el.id),this.tableExpandBtn.setAttribute("aria-pressed","fal
4se"),this.tableCollapseBtn.setAttribute("aria-pressed","true"),this.tableControls.appendChild(this.tableExpandBtn),this.tableControls.appendChild(this.tableCollapseBtn),this.block.after(this.tableControls)),this.removeTableControlEvents(),this.tableExpandBtn.addEventListener("click",this.eventHandlers.expand),this.tableCollapseBtn.addEventListener("click",this.eventHandlers.collapse),this.el.setAttribute("aria-expanded","false")}notCollapsibleTable(){var t;this.el.classList.add("table-no-collapse"),this.el.classList.remove("table-collapsible"),this.el.removeAttribute("aria-expanded"),this.removeTableControlEvents(),(t=this.tableControls)==null||t.remove()}removeTableControlEvents(){var t,e;(t=this.tableExpandBtn)==null||t.removeEventListener("click",this.eventHandlers.expand),(e=this.tableCollapseBtn)==null||e.removeEventListener("click",this.eventHandlers.collapse)}expandTable(t){var e;this.el.classList.add("table-expanded"),this.el.setAttribute("aria-expanded","true"),t.target.setAttribute("aria-pressed","true"),(e=this.tableCollapseBtn)==null||e.setAttribute("aria-pressed","false")}collapseTable(t){var e;this.el.classList.remove("table-expanded"),this.el.scrollIntoView({behavior:"smooth",block:"start"}),this.el.setAttribute("aria-expanded","false"),t.target.setAttribute("aria-pressed","true"),(e=this.tableExpandBtn)==null||e.setAttribute("aria-pressed","false")}enhanceTable(){let t=window.recurrentCoreTable||{};if(!this.block||this.block.classList.contains("classic-mobile-table")||!this.table)return!1;let e=this.getHeaderCells(this.block);if(!e||e.length===0||this.hasColspanOrRowspan(this.block))return!1;let i=t.columnMin||2;return e.length<i?!1:(this.table.classList.add("enhanced-mobile-table"),e.forEach((n,o)=>{this.block.querySelectorAll(`tbody tr td:nth-child(${o+1})`).forEach(a=>{Ct(a,{beforeContent:n.innerText})})}),!0)}enableScrollableTable(){this.figure&&this.figure.classList.add("classic-mobile-table"),window.addEventListener("resize",this.eventHandlers.checkWidth),this.checkWidth()}checkWidth(){if(!this.table||!this.figure)return;let t=this.table.offsetWidth,e=this.el.offsetWidth;t>e?(this.el.classList.add("wider"),this.figure.addEventListener("scroll",this.eventHandlers.scroll)):(this.el.classList.remove("wider"),this.figure.removeEventListener("scroll",this.eventHandlers.scroll))}logScroll(t){let{scrollLeft:e}=t.target,i=t.target.scrollWidth-t.target.clientWidth;e>=i-5?this.el.classList.remove("wider"):this.el.classList.add("wider")}getHeaderCells(t){let e=t.querySelector("thead");if(e){let n=e.querySelectorAll("th");if(n.length>0)return n;let o=e.querySelectorAll("td");if(o.length>0)return o}let i=t.querySelector("tbody tr:first-child");if(i){let n=i.querySelectorAll("th");if(n.length>0)return n;let o=i.querySelectorAll("td");if(o.length>0)return o}return null}hasColspanOrRowspan(t){let e=t.querySelectorAll("th, td");return Array.from(e).some(i=>{let n=parseInt(i.getAttribute("colspan"),10)||1,o=parseInt(i.getAttribute("rowspan"),10)||1;return n>1||o>1})}};T.register("TableMobileWrapper",Pe);document.addEventListener("DOMContentLoaded",()=>{[...document.getElementsByClassName("search-wrapper")].forEach(s=>{s.addEventListener("focusin",()=>{[...s.getElementsByClassName("search-field")].forEach(t=>{t.focus()})})})});var De=class extends T{postInit(){let t=document.querySelector(".header-wrapper");if(!t)return;let e=document.querySelector(".content-wrapper > p"),i=e?e.offsetTop:window.innerHeight;setTimeout(()=>{document.addEventListener("scroll",()=>{window.scrollY+t.offsetHeight>i?$(t,"unsticky"):Z(t,"unsticky")})},2e3)}};T.register("PlaywireStickyHeader",De);var ut={MISSING_FORM_OR_URL_ACTION:"Form or action URL is missing",VERIFICATION_FAILED:"reCAPTCHA verification failed",ERROR_OCCURRED:"An error occurred. Please try again",SUBMISSION_FAILED:"Submission failed",ERROR_LOADING_RECAPTCHA_V2:"Error loading reCAPTCHA v2",CANT_LOAD_RECAPTCHA_V2:"Cannot load reCAPTCHA v2",INVALID_EMAIL:"Please enter a valid email address."},Me={SUCCESS:".newsletter-signup-success",SUBMIT:'button[type="submit"]',EMAIL_INPUT:'input[type="email"]'},Yi={V2_CONTAINER:"recaptcha-site-key"},Xi=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,dt=class dt extends T{postInit(){var t,e;this.form=this.el,this.submitButton=this.form.querySelector(Me.SUBMIT),this.successMessageElement=this.form.querySelector(Me.SUCCESS),this.emailInput=this.form.querySelector(Me.EMAIL_INPUT),this.apiUrl=this.form.getAttribute("action"),this.isSubmitting=!1,this.submitButtonOriginalContent=(e=(t=this.submitButton)==null?void 0:t.textContent)!=null?e:"",this.retryCount=0,this.maxRetries=2,this.form.addEventListener("submit",i=>this.handleSubmit(i)),this.emailInput&&this.emailInput.addEventListener("input",()=>this.preloadRecaptchaV3(),{once:!0})}preloadRecaptchaV3(){let t=this.getSiteKey(3);t&&(dt._recaptchaV3Promise||(dt._recaptchaV3Promise=this.loadAndReadyRecaptcha(t).cat
4ch(e=>(console.warn(`reCAPTCHA v3 preload failed: ${e.message}`),dt._recaptchaV3Promise=null,null))))}getSiteKey(t){var e,i;return(i=(e=window==null?void 0:window.recaptcha)==null?void 0:e[`site_key_v${t}`])!=null?i:null}isRecaptchaReady(t){let{grecaptcha:e}=window;return e?t===3?typeof e.execute=="function":typeof e.render=="function":!1}loadRecaptcha(t,e=3){return new Promise((i,n)=>{try{if(!t){n(new Error(`Missing site key for v${e}`));return}if(this.isRecaptchaReady(e)){i();return}let o=e===3?'script[src*="recaptcha/api.js?render="]':'script[src*="www.google.com/recaptcha/api.js"]:not([src*="?render="])';if(document.querySelector(o)){let p=0,E=()=>{if(this.isRecaptchaReady(e)){i();return}if(p>=5e3){n(new Error(`reCAPTCHA v${e} not available`));return}p+=50,setTimeout(E,50)};E();return}let c=document.createElement("script");c.src=e===3?`https://www.google.com/recaptcha/api.js?render=${t}`:"https://www.google.com/recaptcha/api.js",c.async=!0,c.onload=()=>i(),c.onerror=()=>n(new Error(`Failed to load reCAPTCHA v${e}`)),document.head.appendChild(c)}catch(o){n(o)}})}async loadAndReadyRecaptcha(t,e=3){if(await this.loadRecaptcha(t,e),e===3){let{grecaptcha:i}=window;if(!i||typeof i.ready!="function")throw new Error("reCAPTCHA v3 not available");return new Promise(n=>{i.ready(()=>n(i))})}return new Promise((i,n)=>{let o=Date.now(),a=null,c=()=>{if(this.isRecaptchaReady(e)){clearTimeout(a),i(window.grecaptcha);return}if(Date.now()-o>5e3){clearTimeout(a),n(new Error("reCAPTCHA v2 not ready in time"));return}a=setTimeout(c,50)};c()})}async executeRecaptchaV3(t){let e=await dt._recaptchaV3Promise;return(e!=null?e:await this.loadAndReadyRecaptcha(t)).execute(t,{action:"newsletter_submission"})}showReCaptchaV2Form(){return this.recaptchaV2Promise?this.recaptchaV2Promise:(this.recaptchaV2Promise=new Promise((t,e)=>{this.recaptchaV2PromiseResolve=t,this.recaptchaV2PromiseReject=e;let i=this.form.querySelector(`.${Yi.V2_CONTAINER}`);if(!i){this.logAndAlertError("v2 container missing",ut.CANT_LOAD_RECAPTCHA_V2),this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,e(new Error("v2 container missing"));return}let n=this.getSiteKey(2);if(!n){this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,e(new Error("Missing site key for v2"));return}this.loadAndReadyRecaptcha(n,2).then(o=>{if(i.dataset.recaptchaRendered){try{o.reset(this.recaptchaV2WidgetId)}catch(a){this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,e(a);return}return}this.recaptchaV2WidgetId=o.render(i,{sitekey:n,callback:a=>{let c=this.recaptchaV2PromiseResolve,u=this.recaptchaV2PromiseReject;try{this.handleReCaptchaV2(a),this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,typeof c=="function"&&c(a)}catch(f){this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,typeof u=="function"&&u(f)}}}),i.dataset.recaptchaRendered="true"}).catch(o=>{this.logAndAlertError(o.message,ut.ERROR_LOADING_RECAPTCHA_V2),this.recaptchaV2Promise=null,this.recaptchaV2PromiseResolve=null,this.recaptchaV2PromiseReject=null,e(o)})}),this.recaptchaV2Promise)}handleReCaptchaV3(t){return this.form.querySelectorAll('[name="g-recaptcha-response"], .g-recaptcha-response').forEach(i=>i.remove()),this.sendReCaptcha(t,"scoreToken")}handleReCaptchaV2(t){let e=this.form.querySelector(".scoreToken");return e&&e.remove(),this.sendReCaptcha(t,"g-recaptcha-response")}sendReCaptcha(t,e="scoreToken"){if(!t)throw new Error("reCAPTCHA token is not valid");this.form.querySelectorAll(`[name="${e}"]`).forEach(o=>o.remove());let n=document.createElement("input");return n.type="hidden",n.name=e,n.className=e,n.value=t,this.form.appendChild(n),!0}setLoadingState(){this.submitButton.disabled=!0,this.submitButton.textContent="Sending..."}resetSubmitState(){this.isSubmitting=!1,this.submitButton.disabled=!1,this.submitButton.textContent=this.submitButtonOriginalContent}async handleSubmit(t){var i,n;if(t.preventDefault(),this.isSubmitting)return;if(!this.form||!this.apiUrl||!this.submitButton||!this.emailInput){console.error(ut.MISSING_FORM_OR_URL_ACTION);return}let e=this.emailInput.value.trim();if(!Xi.test(e)){this.logAndAlertError(`Invalid email: ${e}`,ut.INVALID_EMAIL),this.emailInput.focus();return}this.isSubmitting=!0,this.retryCount=0,this.setLoadingState();try{this.storeEmail(e);let o=this.getSiteKey(3);if(o){let c=await this.executeRecaptchaV3(o);this.handleReCaptchaV3(c)}let a=await this.sendEmail();for(;((i=a==null?void 0:a.data)==null?void 0:i.score)!==void 0;){if(this.retryCount>=this.maxRetries)throw new Error("Max retry attempts reached");this.retryCount++,await this.showReCaptchaV2Form(),a=await this.sendEmail()}if(a.success&&this.successMessageElement)this.successMessageElement.style.display="flex";else if(!a.success)throw new Error(((n=a.data)==null?void 0:n.message)||ut.SUBMISSION_FAILED)}catch(o){this.logAndAlertError(`Failed to submit form: ${o.message}`,ut.ERROR_OCCURRED)}finally{this.resetSubmitState()}}sendEmail(){var t;return(t=window.recurrentIterable)!=null&&t.enabled?this.sendEmailToIterable():fetch(this.apiUrl,{method:"POST",credentials:"same-origin",body:new FormData(this.form)}).then(e=>{if(!e.ok)throw new Error(`Server error: ${e.status}`);return e.json()})}sendEmailToIterable(){var n,o,a,c;let t=Array.from(this.form.querySelectorAll('[name="vars[id]"], [name="vars[id][]"]')).filter(u=>u.type!=="checkbox"||u.checked).map(u=>Number(u.value)).filter(u=>Number.isInteger(u)&&u>0),e=(o=(n=this.form.querySelector('[name="scoreToken"]'))==null?void 0:n.value)!=null?o:"",i=(c=(a=this.form.querySelector('[name="g-recaptcha-response"]'))==null?void 0:a.value)!=null?c:"";return fetch(window.recurrentIterable.subscribeUrl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":window.recurrentIterable.nonce},body:JSON.stringify({email:this.emailInput.value.trim(),newsletterIds:t,recaptchaToken:e,recaptchaV2Response:i})}).then(async u=>{var p;let f=null;try{f=await u.json()}catch(E){f=null}if(u.status===400&&((p=f==null?void 0:f.data)==null?void 0:p.score)!==void 0)return{success:!1,data:{score:f.data.score,message:f.message}};if(!u.ok||!f)throw new Error((f==null?void 0:f.message)||ut.SUBMISSION_FAILED);return{success:!0,data:f}})}storeEmail(t){var a;let i=new TextEncoder().encode(t),n=String.fromCharCode.apply(null,i),o=btoa(n);window.localStorage.setItem("recurrent_user_eid",o),typeof((a=window==null?void 0:window.ramp)==null?void 0:a.setUserProfile)!="undefined"&&window.ramp.setUserProfile({eid:o,format:"EUP1"})}logAndAlertError(t,e){console.error(t),e&&alert(e)}};cn(dt,"_recaptchaV3Promise",null);var Ne=dt;T.register("NewsletterModule",Ne);
4var Ki=["a[href]","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),ke=class extends T{postInit(){this.handleEscape=this.handleEscape.bind(this),this.handleOutside=this.handleOutside.bind(this),this.handleTab=this.handleTab.bind(this),this.panel=this.el.querySelector(".header-user-menu__panel"),document.addEventListener("keydown",this.handleEscape),document.addEventListener("click",this.handleOutside),this.el.addEventListener("keydown",this.handleTab)}destroy(){document.removeEventListener("keydown",this.handleEscape),document.removeEventListener("click",this.handleOutside),this.el.removeEventListener("keydown",this.handleTab)}toggle(t,e){e.stopPropagation();let i=e.detail===0;this.setOpen(!this.isOpen(),i)}isOpen(){return this.els.trigger.getAttribute("aria-expanded")==="true"}setOpen(t,e=!1){this.el.classList.toggle("is-open",t),this.els.trigger.setAttribute("aria-expanded",t?"true":"false"),t&&e&&this.focusFirst()}getFocusable(){return this.panel?Array.from(this.panel.querySelectorAll(Ki)).filter(t=>!t.hasAttribute("disabled")&&t.offsetParent!==null):[]}focusFirst(){let t=this.getFocusable();t.length>0&&t[0].focus()}handleEscape(t){t.key!=="Escape"||!this.isOpen()||(this.setOpen(!1),this.els.trigger.focus())}handleOutside(t){this.el.contains(t.target)||!this.isOpen()||this.setOpen(!1)}handleTab(t){if(t.key!=="Tab"||!this.isOpen())return;let e=this.getFocusable();if(e.length===0)return;let i=e[0],n=e[e.length-1],o=document.activeElement;t.shiftKey&&(o===i||o===this.els.trigger)?(t.preventDefault(),n.focus()):!t.shiftKey&&o===n&&(t.preventDefault(),i.focus())}};T.register("UserMenu",ke);})();
5/*! Bundled license information:
6
7dompurify/dist/purify.es.mjs:
8  (*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE *)
9*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.