!function(){var e={63166:function(e,t,n){"use strict";n.d(t,{O8:function(){return r},mO:function(){return c}});const o=function(e,t,n){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+n+"$2"):e+r+t+"="+n},r=function(e){const t=new Date;t.setTime(t.getTime()+31536e6),document.cookie="jp-premium-content-session="+e+"; expires="+t.toGMTString()+"; path=/"},c=function(e,t){let n=o(document.location.href,"token",e);t&&Object.keys(t).forEach((e=>{n=o(n,e,t[e])})),document.location.href=n}},80425:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)},47701:function(e){"use strict";e.exports=window.wp.domReady}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var c=t[o]={exports:{}};return e[o](c,c.exports,n),c.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"}(),function(){"use strict";n(80425)}(),function(){"use strict";var e=n(47701),t=n.n(e),o=n(63166);t()((function(){const e=document.querySelector(".wp-block-jetpack-subscriptions__container form");if(!e)return;let t="";e.payments_attached||(e.payments_attached=!0,e.addEventListener("submit",(function(n){const r=e.querySelector("input[type=email]").value;if(e.resubmitted||!r)return;n.preventDefault();const c=Array.from(e.querySelectorAll(".wp-block-jetpack-subscriptions__newsletter-category input[type=checkbox]")).filter((e=>!e.checked)).map((e=>e.value)),s="https://subscribe.wordpress.com/memberships/?blog="+e.dataset.blog+"&plan=newsletter&source=jetpack_subscribe&post_access_level="+e.dataset.post_access_level+"&display=alternate&email="+encodeURIComponent(r)+"&excluded_newsletter_categories="+c.join(",");window.scrollTo(0,0),tb_show(null,s+"&TB_iframe=true",null);const i=function(e){if("https://subscribe.wordpress.com"===e.origin&&e.data){const n=JSON.parse(e.data);n&&n.result&&n.result.jwt_token?(t=n.result.jwt_token,(0,o.O8)(t)):n&&"close"===n.action&&t?(0,o.mO)(t,{subscribe:"success"}):n&&"close"===n.action&&(window.removeEventListener("message",i),tb_remove())}};window.addEventListener("message",i,!1);document.querySelector("#TB_window").classList.add("jetpack-memberships-modal"),window.scrollTo(0,0)})))}))}()}();