!function(){function e(){document.querySelectorAll(".social-share-button").forEach(function(e){const t=e.getAttribute("data-social-type");if(!e.hasAttribute("data-social-initialized")){if(e.setAttribute("data-social-initialized","true"),t&&"undefined"!=typeof SocialShareData){const a=function(e){switch(e){case"facebook":return"Facebook";case"twitter":return"Twitter";case"linkedin":return"LinkedIn";case"pinterest":return"Pinterest";case"reddit":return"Reddit";case"whatsapp":return"WhatsApp";default:return""}}(t);e.setAttribute("title",`Share on ${a}`)}e.addEventListener("click",function(e){e.preventDefault();const t=this.classList[1];if("undefined"!=typeof SocialShareData&&SocialShareData.share_urls[t]){let e=SocialShareData.share_urls[t];e+="twitter"===t||"pinterest"===t||"reddit"===t?encodeURIComponent(SocialShareData.permalink)+"&text="+encodeURIComponent(SocialShareData.title):"whatsapp"===t?encodeURIComponent(SocialShareData.title+" "+SocialShareData.permalink):encodeURIComponent(SocialShareData.permalink),window.open(e,"share-dialog","width=626,height=436")}else window.open(this.href,"share-dialog","width=626,height=436")})}})}window.reinitSocialShareButtons=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),new MutationObserver(t=>{t.forEach(t=>{(t.addedNodes.length||t.removedNodes.length)&&e()})}).observe(document.body,{childList:!0,subtree:!0})}();