!function(){"use strict";var e=-1===location.protocol.indexOf("http")?"https:":location.protocol,t=e+"//pulsembed.eu",n=function(){return(""+Math.random()).substr(2)},a=function(e){if(e.contentWindow){var n=e.getBoundingClientRect(),a=void 0!==window.innerHeight?window.innerHeight:document.documentElement.clientHeight,r=n.top,o=0;o=n.height?n.height:n.bottom-n.top;var i=0;0-r>0&&(i=0-r);var d=0;o+r-0-a>0&&(d=o+r-0-a);var s=0;o-(i+d)>0&&(s=o-(i+d));var l=0;0!==o&&(l=s/o),e.contentWindow.postMessage(JSON.stringify({vis:l}),t)}},r=function(e){if("undefined"!=typeof onetAds){var n={DV:onetAds.dv,target:onetAds.target,du:onetAds.du,dr:onetAds.dr};e.contentWindow.postMessage(JSON.stringify({adsAndStats:n,url:window.location}),t)}},o=[],i=function(t){var i=t.getAttribute("data-src");if(i){i=e+"//"+i.split("//")[1];var d=(t.getAttribute("data-height-hint")||"").trim();d=""===d?"1px":d;var s=t.getAttribute("data-sandbox")||"standard";t.removeAttribute("data-src"),t.removeAttribute("data-height-hint"),t.removeAttribute("data-sandbox"),t.removeAttribute("data-run-module");var l=n();t.setAttribute("data-id",l),t.style.position="relative",t.style.display="block",t.style.height=0,t.style.padding=0,t.style.overflow="hidden",t.style["padding-bottom"]=d,t.embedId=t.getAttribute("data-embed-id")||"",t.providerName=t.getAttribute("data-provider-name")||"";var u=document.createElement("iframe");u.src=i,u.setAttribute("frameborder",0),"standard"===s?u.setAttribute("sandbox","allow-forms allow-scripts allow-same-origin allow-popups"):"distrusted"===s&&u.setAttribute("sandbox","allow-forms allow-scripts allow-same-origin"),u.setAttribute("webkitallowfullscreen","webkitallowfullscreen"),u.setAttribute("mozallowfullscreen","mozallowfullscreen"),u.setAttribute("allowfullscreen","allowfullscreen"),u.style.position="absolute",u.style.top="0",u.style.bottom="0",u.style.left="0",u.style.width="100%",u.style.height="100%",u.style.border="none",u.onload=function(){r(u),a(u)},o.push({iframe:u,wrapper:t}),t.appendChild(u)}},d=function(e,t){var n,a={};e.default&&(a.default=e.default),e[t]&&(a[t]=e[t]);try{n=JSON.stringify({pulse2EmbedConfig:{config:a,url:window.location}})}catch(e){n="{}"}return n},s=function(e){var n=e.data||{};if(n.pulsembed){for(var a,r=0;r0;l--){var u=s.item(l-1);u!==a.iframe&&a.wrapper.removeChild(u)}else if(n.getConfigFor){var c={default:{}};"undefined"!=typeof pulse2EmbedConfig&&pulse2EmbedConfig&&(c=pulse2EmbedConfig);var f=d(c,n.getConfigFor);a.iframe.contentWindow.postMessage(f,t)}else if(n.addClass){var m=n.addClass;"string"==typeof m&&-1===a.wrapper.className.indexOf(m)&&(a.wrapper.className+=" "+m)}else if(n.scrollingIframe){var p=n.scrollingIframe;"string"==typeof p&&-1!==["yes","no","auto"].indexOf(p)&&(a.iframe.scrolling=p)}else if(n.expand){if(n.expand.src&&n.expand.style){var w=document.getElementsByTagName("body")[0],g=document.createElement("iframe");g.setAttribute("src",""+n.expand.src),g.setAttribute("style",""+n.expand.style),g.setAttribute("allowfullscreen",""),g.setAttribute("id","pulsEmbedExpand"),w.appendChild(g),document.getElementsByTagName("html")[0].style.overflow="hidden"}}else if(n.dleBroadcast){n.dleBroadcast.id=a.wrapper.embedId||n.dleBroadcast.id||"",n.dleBroadcast.provider=a.wrapper.providerName||n.dleBroadcast.provider||"";for(var v=0;v=t?setTimeout(e,0):w[t].push(e)},b=function(){m=!1;for(var e=document.querySelectorAll(".pulsembed_embed")||[],t=0;t