An error has occurred

{{terminalError}}

Join The Intercept Thank You For Joining!
We’re independent of corporate interests — and powered by members. Join us. Will you take the next step to support our independent journalism by becoming a member of The Intercept?
By signing up, I agree to receive emails from The Intercept and to the Privacy Policy and Terms of Use.
(function() { window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; ga('create', 'UA-79475609-15', 'auto'); var script = document.createElement('script'); script.setAttribute('defer', ''); script.setAttribute('src', 'https://www.google-analytics.com/analytics.js'); script.setAttribute('type', 'text/javascript'); document.head.appendChild(script); })(); (function(src) { window.FLMPiano = window.FLMPiano || {}; window.FLMPiano.onLoad = function(handler) { window.FLMPiano.loadHandlers = window.FLMPiano.loadHandlers || []; window.FLMPiano.loadHandlers.push(handler); }; var script = document.createElement('script'); script.setAttribute('defer', ''); script.setAttribute('src', src); script.setAttribute('type', 'text/javascript'); document.head.appendChild(script); })('https://static.theintercept.com/piano/flmpiano-v3.js'); (function(src) { window.TI = window.TI || {}; window.TI.onLoad = function(handler) { window.TI.loadHandlers = window.TI.loadHandlers || []; window.TI.loadHandlers.push(handler); }; var script = document.createElement('script'); script.setAttribute('data-ti-js', ''); script.setAttribute('defer', ''); script.setAttribute('src', src); script.setAttribute('type', 'text/javascript'); document.head.appendChild(script); })('https://static.theintercept.com/ti.js/ti-v1.js'); $(function() { // config var countryCode = undefined; var experienceDismissalTtl = '48'; var experienceImpressionTtl = '48'; var experiencePrefix = '2019_global_newsletter_signup'; var lists = 'appeals, weekly-digest' .split(/,\s*/) .map(function(name) { return name.trim(); }) .filter(function(name) { return name.length > 0; }); var locale = 'en-US'; var privacyEnhanced = undefined; var realmSpeakingId = 'theintercept'; var referrerPostId = undefined; var originatingReferrer = undefined; var referrerUrl = undefined; var signupPromotion = '' || undefined; var source = 'web_intercept_20220119_mid-article_donate' || 'web_intercept_piano-unknown'; var sourceNewsletterSignup = 'web_intercept_20220119_mid-article_donate_after_sign_up' || 'web_intercept_piano-unknown'; // elements var bodyElement = document.querySelector('body'); var htmlElement = document.querySelector('html'); var $html = $(htmlElement); var containerElement = document.getElementById('Piano'); var donateButton = document.getElementById('donate-button'); var emailInput = document.getElementById('email'); var descriptionElement = document.getElementById('description'); var submitButton = document.getElementById('submit'); // event handlers function handleDonateButtonClick(event) { FLMPiano.trackGAEvent({ eventLabel: 'newsletter: donate button click', metric5: 1, transport: 'beacon' }); } function handleKeyDown(event) { switch (event.code) { case 'Enter': case 'NumpadEnter': submitButton.click(); break; default: // pass through } } function handleLoad() { FLMPiano.setUpResponsiveContainer('#Piano', { onResize: handleParentResize }); donateButton.addEventListener('click', handleDonateButtonClick); submitButton.addEventListener('click', handleSubmitButtonClick); window.addEventListener('keydown', handleKeyDown); TI.tracking.parsely.insert(); FLMPiano.waitForParams({ requirements: { customVariables: true } }).then(function(params) { countryCode = params.customVariables.countryCode; privacyEnhanced = params.customVariables.privacyEnhanced === 'true'; originatingReferrer = params.customVariables.originatingReferrer; referrerUrl = params.url; if (typeof params.customVariables.referrer_post_id === 'string') { referrerPostId = Number(params.customVariables.referrer_post_id); if (isNaN(referrerPostId)) { referrerPostId = undefined; } } donateButton.setAttribute('href', FLMPiano.buildUrl(donateButton.href, { originating_referrer: originatingReferrer, referrer_post_id: referrerPostId, referrer_url: referrerUrl, source: sourceNewsletterSignup })); if (params.preview) { $html.addClass('extraSmall'); $html.addClass('sized'); } else { FLMPiano.dispatchEventToParent('experience:impression', { experienceImpressionTtl: experienceImpressionTtl, experiencePrefix: experiencePrefix }); FLMPiano.trackGAEvent({ eventLabel: 'newsletter: popup open', metric1: 1, nonInteraction: true }); } $html.addClass('loaded'); }); } function handleParentResize(resizeEvent) { $(bodyElement).toggleClass('extraSmallHeight', resizeEvent.height < 570); FLMPiano.onNextFrame(function() { $(htmlElement).toggleClass('sized', true); }); } function handleSubmitButtonClick(event) { var email = emailInput.value; FLMPiano.newsletter.subscribe({ countryCode: countryCode, email: email, experiencePrefix: experiencePrefix, lists: lists, locale: locale, originatingReferrer: originatingReferrer, privacyEnhanced: privacyEnhanced, realmSpeakingId: realmSpeakingId, referrerPostId: referrerPostId, referrerUrl: referrerUrl, signupPromotion: signupPromotion, source: source }).then(function(response) { ga('set', 'dimension13', true); FLMPiano.trackGAEvent({ eventLabel: 'newsletter: signup', metric2: 1 }); piano.logConversion(realmSpeakingId, 'Newsletter', 1); // show step 2 containerElement.className = containerElement.className + ' subscribed'; }).catch(function(error) { piano.logMicroConversion('newsletter:subscribe:error'); descriptionElement.innerText = error.message; }); } FLMPiano.onLoad(function() { TI.onLoad(function() { handleLoad(); }); }); });