document.addEventListener("DOMContentLoaded",function(){var a,b,c,d=function(a){for(;a;){if(a.getAttribute&&a.getAttribute("data-specific-kind"))return a;a=a.parentNode}return a};for(a=document.querySelectorAll("div[data-link='we-link']"),c=0;c<a.length;c++){b=a[c];var e=b.getAttribute("class"),f=b.firstChild.getAttribute("href");if(e&&e.indexOf("shinybox")>-1)b.setAttribute("href",f);else{var g=b.getAttribute("target");!function(a,b,c){a.addEventListener("click",function(a){var e=d(a.target),f=d(a.currentTarget);e==f&&window.open(b,c||"_self")})}(b,f,g)}}});