!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("member-share",[],t):"object"==typeof exports?exports["member-share"]=t():e["member-share"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=0)}([function(e,t,r){"use strict";document.addEventListener("DOMContentLoaded",function(e){for(var t=["psychologytoday.com","healthprofs.com"],r=[],n=0;n<t.length;n++)r.push('script[data-badge][src*="'+t[n]+'"]');var o=document.querySelectorAll(r.join(","));for(n=0;n<o.length;n++){var a=o[n],i=a.getAttribute("data-badge"),s=a.getAttribute("data-id"),c=atob(a.getAttribute("data-code")).replace("[BADGE]",i).replace("[PROFILE_ID]",parseInt(s));if(!document.querySelector('script[src="'+c+'"]')){var d=document.createElement("script");d.setAttribute("src",c),document.body.appendChild(d)}}window.sxcallback=function(e){for(var r=[],n=0;n<t.length;n++)r.push('script[data-badge="'+e.badgeId+'"][src*="'+t[n]+'"]');var o=document.querySelector(r.join(",")).previousElementSibling;o.setAttribute("target","_top"),o.style.display="block",o.style.backgroundRepeat="no-repeat",o.style.backgroundImage='url("data:image/svg+xml;base64,'+e.image.content+'")',o.style.backgroundImage='url("data:image/svg+xml;base64,'+e.image.content+'")',o.style.width=parseInt(e.image.dimensions.width)+"px",o.style.width=parseInt(e.image.dimensions.width)+"px",o.style.height=parseInt(e.image.dimensions.height)+"px",o.title=e.name}})}])});