'+t._localizedStrings.webview_notification_text+"";window._nslWebViewNoticeElement.insertAdjacentHTML("afterbegin",e);document.body.appendChild(window._nslWebViewNoticeElement)}})}}window._nslDOMReady(function(){window.nslRedirect=function(e){if(t._redirectOverlay){const e=document.createElement("div");e.id="nsl-redirect-overlay";let n="";const i="
"+t._localizedStrings.redirect_overlay_title+"",l="
"+t._localizedStrings.redirect_overlay_text+"";switch(t._redirectOverlay){case"overlay-only":break;case"overlay-with-spinner":n=i+o+r;break;default:n=i+o+s+l+r;break}e.insertAdjacentHTML("afterbegin",n);document.body.appendChild(e)}window.location=e};let e=t._targetWindow||"prefer-popup",n=false;document.addEventListener("click",function(t){if(t.target){const r=t.target.closest('a[data-plugin="nsl"][data-action="connect"]')||t.target.closest('a[data-plugin="nsl"][data-action="link"]');if(r){if(n&&!n.closed){t.preventDefault();n.focus()}else{let o=r.href,s=false;if(o.indexOf("?")!==-1){o+="&"}else{o+="?"}const l=r.dataset.redirect;if(l==="current"){o+="redirect="+encodeURIComponent(window.location.href)+"&"}else if(l&&l!==""){o+="redirect="+encodeURIComponent(l)+"&"}if(e!=="prefer-same-window"&&i()){e="prefer-same-window"}if(e==="prefer-popup"){n=NSLPopup(o+"display=popup","nsl-social-connect",r.dataset.popupwidth,r.dataset.popupheight);if(n){s=true;t.preventDefault()}}else if(e==="prefer-new-tab"){const e=window.open(o+"display=popup","_blank");if(e){if(window.focus){e.focus()}s=true;window._nslHasOpenedPopup=true;t.preventDefault()}}if(!s){window.location=o;t.preventDefault()}}}}});let s=false;const l=document.querySelectorAll(' a[data-plugin="nsl"][data-provider="google"]');if(l.length&&i()){l.forEach(function(e){if(t._unsupportedWebviewBehavior==="disable-button"){o(e)}else{e.remove();s=true}})}const d=document.querySelectorAll(' a[data-plugin="nsl"][data-provider="facebook"]');if(d.length&&i()&&/Android/.test(window.navigator.userAgent)&&!r("facebook")){d.forEach(function(e){if(t._unsupportedWebviewBehavior==="disable-button"){o(e)}else{e.remove();s=true}})}const a=document.querySelectorAll("div.nsl-separator");if(s&&a.length){a.forEach(function(e){const t=e.parentNode;if(t){const n=t.querySelector("div.nsl-container-buttons");if(n&&!n.hasChildNodes()){e.remove()}}})}})})();