var pmcPiano;!function(){"use strict";var e={561:function(e,o){Object.defineProperty(o,"__esModule",{value:!0});var n={hookIntoPmcPiano:function(){var e=this;window.pmcPiano.piano.registerOnPageLoadNotHasUserCallback(e.maybeRenderMyAccountPage.bind(e)),window.pmcPiano.piano.registerOnPageLoadNotHasUserCallback(e.maybeRenderPasswordResetPage.bind(e)),window.pmcPiano.piano.registerOnLoggedInUserCallback(e.maybeRenderMyAccountPage.bind(e)),window.pmcPiano.piano.registerOnLoggedInUserCallback(e.maybeRenderPasswordResetPage.bind(e)),window.pmcPiano.piano.registerOnLoggedInUserCallback(e.setAuthenticatedUserId.bind(e)),window.pmcPiano.piano.registerOnLoggedOutUserCallback(e.maybeRenderMyAccountPage.bind(e)),window.tp.push(["addHandler","checkoutComplete",function(){/reader_id=amp/gi.exec(window.location.search)&&window.close()}]),window.tp.push(["addHandler","externalCheckoutComplete",function(){location.reload()}])},maybeRenderMyAccountPage:function(){var e=".js-subscription-my-account-component";document.querySelector(e)&&window.tp.myaccount.show({displayMode:"inline",containerSelector:e})},maybeRenderPasswordResetPage:function(){if(!document.querySelector(".js-subscription-password-reset-component"))return"password reset element missing";var e=window.location.search.match(/reset_token=([A-Za-z0-9]+)/);if(!e)return"invalid token";window.addEventListener("message",this.redirectHomeOnClosedMessage.bind(this)),window.tp.pianoId.show({resetPasswordToken:e[1],loggedIn:function(){window.location="/"}})},redirectHomeOnClosedMessage:function(e){if(!e.origin.endsWith("tinypass.com"))return!1;var o;try{o=JSON.parse(e.data)}catch(e){return!1}return!!(o.sender&&o.event&&o.sender.startsWith("piano-id")&&"closed"===o.event)&&(window.location="/",!0)},setAuthenticatedUserId:function(){var e=window.blogherads||{},o=window.pmcPiano.piano.getUser().uid;this.canDebug&&console.log("PMC: Piano: setAuthenticatedUserId",o),e.adq=e.adq||[],e.adq.push((function(){try{e.setAuthenticatedUserId(o,"piano")}catch(e){}}))},registerStickyFooter:function(e){var o=window.pmcPiano.wordPressThemes;window.pmcPiano.piano.registerOnPageLoadNotHasUserCallback(function(){var n=document.querySelector(e.className||".js-subscription-sticky-footer");if(n){var t=document.getElementsByClassName(e.targetClassName||"footer"),i=function(){var e=function(){var e=window.scrollY,o=window.innerHeight,i=t[0].offsetTop;return e+o+("static"===n.style.position?n.clientHeight:0)>i};setTimeout(function(){this.stickyFooterPrevTime=this.stickyFooterPrevTime||Date.now(),this.stickyFooterPrevTime&&500>Date.now()-this.stickyFooterPrevTime||(this.stickyFooterPrevTime=Date.now(),e()||"fixed"===n.style.position?e()&&"static"!==n.style.position&&(n.style.position="static"):(n.style.position="fixed",n.style.bottom="0px"))}.bind(o),500)};i(),window.addEventListener("load",i),window.addEventListener("scroll",i),window.addEventListener("resize",i)}}.bind(o))}};n.hookIntoPmcPiano(),e.exports=n}},o={},n=function n(t){var i=o[t];if(void 0!==i)return i.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}(561);(pmcPiano=void 0===pmcPiano?{}:pmcPiano).wordPressThemes=n}();; jQuery(document).ready(function(){"undefined"==typeof _gaq&&"object"==typeof pmc&&"object"==typeof pmc.tracking&&"function"==typeof pmc.tracking.remove_from_browser_url&&pmc.tracking.remove_from_browser_url()});; (()=>{"use strict";const d=window,o=d.document,e="pmcadm:";function t(){try{const e=[];o.querySelectorAll("div.admz-ads-grid").forEach((d=>d.style.display="none")),o.querySelectorAll("div.pmc-adm-boomerang-pub-div.ads-grid > div.ads-grid-c").forEach((d=>{e.push(d.id)})),d.blogherads.destroySlots(e)}catch(d){console.error(d)}}const c={"dfp:isdirect=true":t};d.addEventListener("message",(function(d){const o=d.data;if("string"==typeof o&&0===o.indexOf(e))for(const[d,t]of Object.entries(c))o.indexOf(d)>=e.length&&t()}),!1),d.pmc&&d.pmc.hooks&&d.pmc.hooks.add_action("pmc_adm_dfp_direct_sold",t)})();; (()=>{"use strict";const t=window;t.pmc=t.pmc||{};const e=()=>t.pmc;class o{init(){const t=e();this.fetchAtlasId().then((t=>{t?.value&&(this.value=t.value)})).then((()=>{t?.hooks?.do_action("pmc_fpc_data_ready")}))}async fetchAtlasId(){let t=null;"undefined"!=typeof pmcFirstPartyCookie&&(t=pmcFirstPartyCookie.endpoint??null);try{const e=await fetch(t,{credentials:"include"});if(void 0!==e.ok&&!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.json()}catch(t){return null}}}window.pmc_fpc_consent=new class{hookIntoOneTrust(){window.pmc.hooks.add_action("pmc_onetrust_consent_data_ready",this.determineFpcMode.bind(this))}determineFpcMode({groupsConsentedTo:t}){0{e.adq.push((()=>{e.push1PDEvent(t,a)}))},r=[{tag:"a",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;const r=e.getAttribute("href");let n=e.getAttribute("data-xid");if(!n&&r){const t=/xid:([^&/])*/gm.exec(r);t&&(n=t[0])}n=n?.replace("xid:","")||"";const c=e.hasAttribute("custom-ga-data")?JSON.parse(e.getAttribute("custom-ga-data")):{},i=!(!c["1pd"]&&!e.getAttribute("data-1pd")),o=c.product||{},d=o.category||e.getAttribute("data-category-name"),s=o.currency||e.getAttribute("data-currency")||"US",u=o.name||e.getAttribute("data-product-name"),l=o.price||e.getAttribute("data-price"),g=c.type||e.getAttribute("data-type");let m=c.partner||e.getAttribute("data-partner");if(!m?.length&&r?.length){const t=e.hostname?.split(".");t&&(t.pop(),t.length>1&&t.shift(),m=t.join(),["amazon","amzn"].includes(m)&&(m="Amazon"))}(i||n?.length>0||u?.length>0||g?.length>0)&&a("ecommerce_click",{href:r,xid:n,data_partner:m,data_price:l,data_product_name:u,data_product_category:d,data_product_currency:s,data_type:g})}},{tag:"button",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;if(!/(sign up|subscribe|newsletter)/.test(e.innerHTML.toLowerCase()))return;const r={source_id:e.className,source_value:e.innerHTML.trim(),email:""};let n=e;for(;n&&"FORM"!==n.tagName;)n=n.parentElement;n&&Array.from(n.children).forEach((t=>{if(!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))return;const e=t.getAttribute("name")?.toLowerCase(),a=t.getAttribute("id")?.toLowerCase(),n=t.value;"source"===e&&(r.source_id=t.id,r.source_value=n),(e?.indexOf("email")>=0||a?.indexOf("email")>=0)&&(r.email=n)})),a("newsletter_signup_click",r)}}];document.addEventListener("DOMContentLoaded",(()=>{r.forEach((t=>{Array.from(document.getElementsByTagName(t.tag)).forEach((e=>{e.addEventListener("click",t.handler)}))}))}))}();; (()=>{"use strict";const t=t=>new Promise((o=>{try{const o=__gpp("getGPPData");-1!==o.applicableSections&&null!==o&&(t.__gpp=o,window.pmc_onetrust.initialized.__gpp=!0)}catch{}o(t)})),o=t=>new Promise((o=>{var e;"function"==typeof __uspapi&&"object"==typeof pmc_fastly_geo_data&&"US"===(null===(e=pmc_fastly_geo_data)||void 0===e?void 0:e.country)&&__uspapi("getUSPData",1,((e,n)=>{var i;"1---"===(null==e?void 0:e.uspString)&&o(t);let a=Array(4).fill(void 0);"string"==typeof(null==e?void 0:e.uspString)&&4===e.uspString.length&&(a=e.uspString.split("")),t.__uspapi={...e,version:null!==(i=a[0])&&void 0!==i?i:null==e?void 0:e.version,doNotSellDataOffered:"Y"===a[1],consentsToSellData:"N"===a[2],IABLSPA:"Y"===a[3]},window.pmc_onetrust.initialized.__uspapi=!0,o(t)}))})),e=t=>new Promise((o=>{try{!1===window.pmc_onetrust.initialized.__tcfapi&&__tcfapi("addEventListener",2,((e,n)=>{!n||"useractioncomplete"!==e.eventStatus&&"tcloaded"!==e.eventStatus||("undefined"!=typeof Rollbar&&void 0!==window.pmcGARollbar&&Rollbar.debug("tcfCallbackBefore",window.pmcGARollbar.getParams()),e.purpose.consents[1]&&e.purpose.consents[8]&&e.purpose.consents[10]&&window.triggerGA?window.triggerGA(!0):window.triggerGA(!1),"undefined"!=typeof Rollbar&&void 0!==window.pmcGARollbar&&Rollbar.debug("tcfCallbackAfter",window.pmcGARollbar.getParams()),t.__tcfapi=e,window.pmc_onetrust.initialized.__tcfapi=!0,o(t))}))}catch{}})),n=t=>new Promise((o=>{Object.keys(t).length&&pmc.hooks.do_action("pmc_onetrust_consent_data_ready",{groupsConsentedTo:window.OptanonActiveGroups.split(",").filter((t=>t)),consentData:t}),o()}));window.pmc_onetrust={init:()=>{!function(){var i,a,l,d,c,_,r,p,s,u,g,v,f,y,m;let w={};"object"==typeof pmc_fastly_geo_data&&"EU"!==(null===(i=pmc_fastly_geo_data)||void 0===i?void 0:i.continent)&&"CA"!==(null===(a=pmc_fastly_geo_data)||void 0===a?void 0:a.region)&&"US"!==(null===(l=pmc_fastly_geo_data)||void 0===l?void 0:l.country)&&"VA"!==(null===(d=pmc_fastly_geo_data)||void 0===d?void 0:d.region)&&"US"!==(null===(c=pmc_fastly_geo_data)||void 0===c?void 0:c.country)&&"CO"!==(null===(_=pmc_fastly_geo_data)||void 0===_?void 0:_.region)&&"US"!==(null===(r=pmc_fastly_geo_data)||void 0===r?void 0:r.country)&&"CT"!==(null===(p=pmc_fastly_geo_data)||void 0===p?void 0:p.region)&&"US"!==(null===(s=pmc_fastly_geo_data)||void 0===s?void 0:s.country)&&"UT"!==(null===(u=pmc_fastly_geo_data)||void 0===u?void 0:u.region)&&"US"!==(null===(g=pmc_fastly_geo_data)||void 0===g?void 0:g.country)&&"OR"!==(null===(v=pmc_fastly_geo_data)||void 0===v?void 0:v.region)&&"US"!==(null===(f=pmc_fastly_geo_data)||void 0===f?void 0:f.country)&&"TX"!==(null===(y=pmc_fastly_geo_data)||void 0===y?void 0:y.region)&&"US"!==(null===(m=pmc_fastly_geo_data)||void 0===m?void 0:m.country)&&document.querySelectorAll('script[class*="optanon-category"][type="text/plain"]').forEach((t=>function(t){const o=function(t){if(!t)return!1;const o=[...t.matchAll(/optanon-category-([a-zA-Z0-9]+)/g)];return!(!o||0===o.length)&&o.map((t=>t[1]))}(t.className);if(!o||0===o.length)return!1;let e=!0;for(const t of o)if(n=t,!("EU"!==(null===(i=pmc_fastly_geo_data)||void 0===i?void 0:i.continent)||"string"==typeof OnetrustActiveGroups&&OnetrustActiveGroups.includes(n))){e=!1;break}var n,i;e&&function(t){const o=t.cloneNode(!0);o.setAttribute("type","text/javascript"),t.replaceWith(o)}(t)}(t))),t(w).then(o(w)).then(e(w)).then(n(w))}()},initialized:{__gpp:!1,__uspapi:!1,__tcfapi:!1}}})();; (()=>{var e={200:()=>{window.pmc_onetrust_helpers={getActiveConsentGroups:()=>(window.OptanonActiveGroups||"").split(",").filter(Boolean)}}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var p=r[o]={exports:{}};return e[o](p,p.exports,t),p.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(200)})()})();; var pmc_comscore=pmc_comscore||{pageview:function(c){try{void 0!==pmc_comscore_options.pageview_candidate_url&&fetch(pmc_comscore_options.pageview_candidate_url,{method:"GET",cache:"no-cache"}),"function"==typeof c&&c()}catch(c){}}};;