(function() { var preEngineFunc={ preEngineJS: function (loaderParams) {"use strict";var pageBody=getElementAttributeValueBySelector("body","class");function addPageCSS(e){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style"),a=document.createTextNode(e);r.type="text/css",r.styleSheet?r.styleSheet.cssText=a.nodeValue:r.appendChild(a),t.appendChild(r)}function getElementAttributeValue(e,t){var r=e.getAttribute(t);return r?r.toLowerCase():null}function getElementAttributeValueBySelector(e,t){var r=document.querySelector(e);return r?getElementAttributeValue(r,t):null}function sortByDomLocation(e){return e.sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})}function buildYieldFunction(e,t){return r=t,function(){return e+r++};var r}pageBody&&pageBody.includes("noad")&&(loaderParams.su.dy.mi=0);var positionsStack={AUTO_INCREASE:buildYieldFunction("AUTO_INCREASE",1)};function replaceAscendingKeys(e){e=sortByDomLocation(e);for(var t=0;t div.preview > div.pin-wrap")&&(clearInterval(e),clearTimeout(t),r())},100),t=setTimeout(function(){clearInterval(e),r()},1e4)):r())}document.addEventListener("readystatechange",a),a();var n=setTimeout(function(){document.removeEventListener("readystatechange",a),t()},2e4)},preDemand:function(e){e.filter(function(e){return-1<["dynamic","dynamic_mc"].indexOf(e.type.toLowerCase())}).forEach(function(e){return e.ref.setAttribute("data-generated-key","AUTO_INCREASE")}),replaceAscendingKeys(e.map(function(e){return e.ref}))},preFetchAsync:function(e,t,r,a){var n;("header_bidding"===t.providerName||"dfp"===t.providerName)&&(r.kv=(r.kv||[]).concat(getPageTargetings()),"api"!==e.type||e.options&&!e.options.adUnit)&&(n="header_bidding"===e.providerName?r.c.d:r.c,r.kv.push({k:"pos",v:e.ref.getAttribute("data-generated-key")}),n.au=getAdUnit()),a()},postFetch:function(e){var t,r,a,n=!1;["right","left"].includes(e.selectedSize.selectedEmbedding)&&(n=!0,t=e.browsiAd.wrapper.style.getPropertyValue("float"),r=e.browsiAd.wrapper.style.getPropertyValue("margin-right"),a=e.browsiAd.wrapper.style.getPropertyValue("margin-left"));var o=getElementAttributeValue(e.ref.parentElement,"class");e.browsiAd.wrapper.style="",o?-1===o.indexOf("fixedad")&&(e.browsiAd.wrapper.setAttribute("class","gmgAdBrowsi"),n&&t&&a&&r&&(e.browsiAd.wrapper.style.setProperty("float",t),e.browsiAd.wrapper.style.setProperty("margin-right",r),e.browsiAd.wrapper.style.setProperty("margin-left",a))):(e.browsiAd.wrapper.setAttribute("class","gmgAdBrowsi"),n&&t&&a&&r?(e.browsiAd.wrapper.style.setProperty("float",t),e.browsiAd.wrapper.style.setProperty("margin-right",r),e.browsiAd.wrapper.style.setProperty("margin-left",a)):e.browsiAd.wrapper.style.setProperty("text-align","center"))}},loaderParams.externalFlowHandler.onPreDemand=loaderParams.externalFlowHandler.preDemand;}}; window["__browsiLoadFunc"](window["__browsiLoadObject"], preEngineFunc); })();