wgd.wgplayer.com Open in urlscan Pro
2606:4700:10::ac43:8fe  Public Scan

URL: https://wgd.wgplayer.com/wgdu/ilovelanguages.com/wgDesktopAds.min.js
Submission: On June 19 via manual from RO — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/* wgDesktopAds 2022-11-24 */
function getNextSibling(a,b){var c=a.nextElementSibling;if(!b||"function"!=typeof b)return c;for(var d=0;c;){if(b(c,d,a))return c;d++,c=c.nextElementSibling}}var wgDesktopEnvInterval=setInterval(function(){void 0!==document.body&&null!=document.body&&(!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define("scrollMonitor",[],b):"object"==typeof exports?exports.scrollMonitor=b():a.scrollMonitor=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";var d=c(1),e=d.isInBrowser,f=c(2),g=new f(e?document.body:null);g.setStateFromDOM(null),g.listenToDOM(),e&&(window.scrollMonitor=g),a.exports=g},function(a,b){"use strict";b.VISIBILITYCHANGE="visibilityChange",b.ENTERVIEWPORT="enterViewport",b.FULLYENTERVIEWPORT="fullyEnterViewport",b.EXITVIEWPORT="exitViewport",b.PARTIALLYEXITVIEWPORT="partiallyExitViewport",b.LOCATIONCHANGE="locationChange",b.STATECHANGE="stateChange",b.eventTypes=[b.VISIBILITYCHANGE,b.ENTERVIEWPORT,b.FULLYENTERVIEWPORT,b.EXITVIEWPORT,b.PARTIALLYEXITVIEWPORT,b.LOCATIONCHANGE,b.STATECHANGE],b.isOnServer="undefined"==typeof window,b.isInBrowser=!b.isOnServer,b.defaultOffsets={top:0,bottom:0}},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){return i?0:a===document.body?window.innerHeight||document.documentElement.clientHeight:a.clientHeight}function f(a){return i?0:a===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):a.scrollHeight}function g(a){return i?0:a===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:a.scrollTop}var h=c(1),i=h.isOnServer,j=h.isInBrowser,k=h.eventTypes,l=c(3),m=!1;if(j)try{var n=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,n)}catch(a){}var o=!!m&&{capture:!1,passive:!0},p=function(){function a(b,c){function h(){if(j.viewportTop=g(b),j.viewportBottom=j.viewportTop+j.viewportHeight,j.documentHeight=f(b),j.documentHeight!==l){for(m=j.watchers.length;m--;)j.watchers[m].recalculateLocation();l=j.documentHeight}}function i(){for(n=j.watchers.length;n--;)j.watchers[n].update();for(n=j.watchers.length;n--;)j.watchers[n].triggerCallbacks()}d(this,a);var j=this;this.item=b,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=f(b),this.viewportHeight=e(b),this.DOMListener=function(){a.prototype.DOMListener.apply(j,arguments)},this.eventTypes=k,c&&(this.containerWatcher=c.create(b));var l,m,n;this.update=function(){h(),i()},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}return a.prototype.listenToDOM=function(){j&&(window.addEventListener?(this.item===document.body?window.addEventListener("scroll",this.DOMListener,o):this.item.addEventListener("scroll",this.DOMListener,o),window.addEventListener("resize",this.DOMListener)):(this.item===document.body?window.attachEvent("onscroll",this.DOMListener):this.item.attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener,o),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener,o),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},a.prototype.destroy=function(){},a.prototype.DOMListener=function(a){this.setStateFromDOM(a)},a.prototype.setStateFromDOM=function(a){var b=g(this.item),c=e(this.item),d=f(this.item);this.setState(b,c,d,a)},a.prototype.setState=function(a,b,c,d){var e=b!==this.viewportHeight||c!==this.contentHeight;if(this.latestEvent=d,this.viewportTop=a,this.viewportHeight=b,this.viewportBottom=a+b,this.contentHeight=c,e)for(var f=this.watchers.length;f--;)this.watchers[f].recalculateLocation();this.updateAndTriggerWatchers(d)},a.prototype.updateAndTriggerWatchers=function(a){for(var b=this.watchers.length;b--;)this.watchers[b].update();for(b=this.watchers.length;b--;)this.watchers[b].triggerCallbacks(a)},a.prototype.createCustomContainer=function(){return new a},a.prototype.createContainer=function(b){"string"==typeof b?b=document.querySelector(b):b&&b.length>0&&(b=b[0]);var c=new a(b,this);return c.setStateFromDOM(),c.listenToDOM(),c},a.prototype.create=function(a,b){"string"==typeof a?a=document.querySelector(a):a&&a.length>0&&(a=a[0]);var c=new l(this,a,b);return this.watchers.push(c),c},a.prototype.beget=function(a,b){return this.create(a,b)},a}();a.exports=p},function(a,b,c){"use strict";function d(a,b,c){function d(a,b){if(0!==a.length)for(u=a.length;u--;)v=a[u],v.callback.call(e,b,e),v.isOne&&a.splice(u,1)}var e=this;this.watchItem=b,this.container=a,this.offsets=c?c===+c?{top:c,bottom:c}:{top:c.top||n.top,bottom:c.bottom||n.bottom}:n,this.callbacks={};for(var o=0,p=m.length;o<p;o++)e.callbacks[m[o]]=[];this.locked=!1;var q,r,s,t,u,v;this.triggerCallbacks=function(a){switch(this.isInViewport&&!q&&d(this.callbacks[g],a),this.isFullyInViewport&&!r&&d(this.callbacks[h],a),this.isAboveViewport!==s&&this.isBelowViewport!==t&&(d(this.callbacks[f],a),r||this.isFullyInViewport||(d(this.callbacks[h],a),d(this.callbacks[j],a)),q||this.isInViewport||(d(this.callbacks[g],a),d(this.callbacks[i],a))),!this.isFullyInViewport&&r&&d(this.callbacks[j],a),!this.isInViewport&&q&&d(this.callbacks[i],a),this.isInViewport!==q&&d(this.callbacks[f],a),!0){case q!==this.isInViewport:case r!==this.isFullyInViewport:case s!==this.isAboveViewport:case t!==this.isBelowViewport:d(this.callbacks[l],a)}q=this.isInViewport,r=this.isFullyInViewport,s=this.isAboveViewport,t=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var a=this.top,b=this.bottom;if(this.watchItem.nodeName){var c=this.watchItem.style.display;"none"===c&&(this.watchItem.style.display="");for(var e=0,f=this.container;f.containerWatcher;)e+=f.containerWatcher.top-f.containerWatcher.container.viewportTop,f=f.containerWatcher.container;var g=this.watchItem.getBoundingClientRect();this.top=g.top+this.container.viewportTop-e,this.bottom=g.bottom+this.container.viewportTop-e,"none"===c&&(this.watchItem.style.display=c)}else this.watchItem===+this.watchItem?this.watchItem>0?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===a&&void 0===b||this.top===a&&this.bottom===b||d(this.callbacks[k],null)}},this.recalculateLocation(),this.update(),q=this.isInViewport,r=this.isFullyInViewport,s=this.isAboveViewport,t=this.isBelowViewport}var e=c(1),f=e.VISIBILITYCHANGE,g=e.ENTERVIEWPORT,h=e.FULLYENTERVIEWPORT,i=e.EXITVIEWPORT,j=e.PARTIALLYEXITVIEWPORT,k=e.LOCATIONCHANGE,l=e.STATECHANGE,m=e.eventTypes,n=e.defaultOffsets;d.prototype={on:function(a,b,c){switch(!0){case a===f&&!this.isInViewport&&this.isAboveViewport:case a===g&&this.isInViewport:case a===h&&this.isFullyInViewport:case a===i&&this.isAboveViewport&&!this.isInViewport:case a===j&&this.isInViewport&&this.isAboveViewport:if(b.call(this,this.container.latestEvent,this),c)return}if(!this.callbacks[a])throw new Error("Tried to add a scroll monitor listener of type "+a+". Your options are: "+m.join(", "));this.callbacks[a].push({callback:b,isOne:c||!1})},off:function(a,b){if(!this.callbacks[a])throw new Error("Tried to remove a scroll monitor listener of type "+a+". Your options are: "+m.join(", "));for(var c,d=0;c=this.callbacks[a][d];d++)if(c.callback===b){this.callbacks[a].splice(d,1);break}},one:function(a,b){this.on(a,b,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var a=this.container.watchers.indexOf(this),b=this;this.container.watchers.splice(a,1);for(var c=0,d=m.length;c<d;c++)b.callbacks[m[c]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var o=function(a){return function(b,c){this.on.call(this,a,b,c)}},p=0,q=m.length;p<q;p++){var r=m[p];d.prototype[r]=o(r)}a.exports=d}])}),clearInterval(wgDesktopEnvInterval),docReadys(function(){window.wgda=new wgDesktopAds}))},10);document.getElementsInFeed||(document.getElementsInFeed=function(a,b,c){for(var d=document.querySelectorAll(a),e=[],f=0;f<d.length;f++){for(var g=d[f],h=0;h<b.length;h++){var i=b[h],j={};if(j.item=d[f],j.rule=i,g.matches(i.value)){j.wgd_attach=c;break}}e.push(j)}return e}),Array.prototype.removeItemAd=function(a){this.hasOwnProperty(a)&&(!isNaN(parseInt(a))&&this instanceof Array?this.splice(a,1):delete this[a])},Array.prototype.removeItemAdByValue=function(a){try{if(void 0!==this&&void 0!==this.length){var b=this.indexOf(a);-1!==b&&this.splice(b,1)}}catch(a){}},function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b():"function"==typeof define&&define.amd?define(b):b()}(0,function(){"use strict";function a(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})}function b(a){return new this(function(b,c){function d(a,c){if(c&&("object"==typeof c||"function"==typeof c)){var g=c.then;if("function"==typeof g)return void g.call(c,function(b){d(a,b)},function(c){e[a]={status:"rejected",reason:c},0==--f&&b(e)})}e[a]={status:"fulfilled",value:c},0==--f&&b(e)}if(!a||void 0===a.length)return c(new TypeError(typeof a+" "+a+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;e.length>g;g++)d(g,e[g])})}function c(a){return!(!a||void 0===a.length)}function d(){}function e(a){if(!(this instanceof e))throw new TypeError("Promises must be constructed via new");if("function"!=typeof a)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],j(a,this)}function f(a,b){for(;3===a._state;)a=a._value;0!==a._state?(a._handled=!0,e._immediateFn(function(){var c=1===a._state?b.onFulfilled:b.onRejected;if(null!==c){var d;try{d=c(a._value)}catch(a){return void h(b.promise,a)}g(b.promise,d)}else(1===a._state?g:h)(b.promise,a._value)})):a._deferreds.push(b)}function g(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"==typeof b||"function"==typeof b)){var c=b.then;if(b instanceof e)return a._state=3,a._value=b,void i(a);if("function"==typeof c)return void j(function(a,b){return function(){a.apply(b,arguments)}}(c,b),a)}a._state=1,a._value=b,i(a)}catch(b){h(a,b)}}function h(a,b){a._state=2,a._value=b,i(a)}function i(a){2===a._state&&0===a._deferreds.length&&e._immediateFn(function(){a._handled||e._unhandledRejectionFn(a._value)});for(var b=0,c=a._deferreds.length;c>b;b++)f(a,a._deferreds[b]);a._deferreds=null}function j(a,b){var c=!1;try{a(function(a){c||(c=!0,g(b,a))},function(a){c||(c=!0,h(b,a))})}catch(a){if(c)return;c=!0,h(b,a)}}var k=setTimeout;e.prototype.catch=function(a){return this.then(null,a)},e.prototype.then=function(a,b){var c=new this.constructor(d);return f(this,new function(a,b,c){this.onFulfilled="function"==typeof a?a:null,this.onRejected="function"==typeof b?b:null,this.promise=c}(a,b,c)),c},e.prototype.finally=a,e.all=function(a){return new e(function(b,d){function e(a,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var h=c.then;if("function"==typeof h)return void h.call(c,function(b){e(a,b)},d)}f[a]=c,0==--g&&b(f)}catch(a){d(a)}}if(!c(a))return d(new TypeError("Promise.all accepts an array"));var f=Array.prototype.slice.call(a);if(0===f.length)return b([]);for(var g=f.length,h=0;f.length>h;h++)e(h,f[h])})},e.allSettled=b,e.resolve=function(a){return a&&"object"==typeof a&&a.constructor===e?a:new e(function(b){b(a)})},e.reject=function(a){return new e(function(b,c){c(a)})},e.race=function(a){return new e(function(b,d){if(!c(a))return d(new TypeError("Promise.race accepts an array"));for(var f=0,g=a.length;g>f;f++)e.resolve(a[f]).then(b,d)})},e._immediateFn="function"==typeof setImmediate&&function(a){setImmediate(a)}||function(a){k(a,0)},e._unhandledRejectionFn=function(a){void 0!==console&&console};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"function"!=typeof l.Promise?l.Promise=e:l.Promise.prototype.finally?l.Promise.allSettled||(l.Promise.allSettled=b):l.Promise.prototype.finally=a});var wgDeviceDetector=function(){var a=navigator.userAgent.toLowerCase(),b=function(b){return void 0!==b&&(a=b.toLowerCase()),/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(a)?"tablet":/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/.test(a)?"phone":"desktop"};return{device:b(),detect:b,isMobile:"desktop"!=b(),userAgent:a}}();!function(){if("function"==typeof NodeList.prototype.forEach)return!1;NodeList.prototype.forEach=Array.prototype.forEach}(),!self.document||"insertAdjacentHTML"in document.createElementNS("http://www.w3.org/1999/xhtml","_")||(HTMLElement.prototype.insertAdjacentHTML=function(a,b){"use strict";var c,d,e,f=this,g=f.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","_"),h=f.parentNode;switch(g.innerHTML=b,a.toLowerCase()){case"beforebegin":for(;c=g.firstChild;)h.insertBefore(c,f);break;case"afterbegin":for(d=f.firstChild;c=g.lastChild;)d=f.insertBefore(c,d);break;case"beforeend":for(;c=g.firstChild;)f.appendChild(c);break;case"afterend":for(e=f.nextSibling;c=g.lastChild;)e=h.insertBefore(c,e)}});var wgDesktopAds=function(){var that={ipBanners:[],options:null,window_height:window.outerHeight,document_height:0,sidebar_height:0,ad_id:1,sidebar_height_interval:null,sidebar_ad_unit:null,sidebar_ad_sizes:null,sidebar_infinite:null,sidebar_lazy:null,sidebar_collapse:!1,sidebar_fluid:!1,sidebar_delay_attached:0,sidebar_height_q:3,sidebar_enabled:!0,sidebar_units:0,scrollContainer:null,scrollContainerElement:null,stop_sidebar:!1,sidebarScrollContainer:null,sidebarScrollContainerElement:null,scrollContainerMonitor:null,outside_elements:{},dfp_status:!1,sections:{},dfp_options:{},extends:{},slots:{},ad_placements:[],device:{},intervals:[],afv_related:{},game_container_bounds:{},consentNeeded:!1,consentConfigured:!1,lodaItem:null,related_to_bounds:null,queue:[],queue_locked:!1,customStickyCSS:'.wgStickyBottom .wgAd{background: #f9f9f9;}.wgStickyBottom{min-height: 24px; background: #f9f9f9;filter: drop-shadow(2px -2px 2px #0003);backdrop-filter: blur(15px) !important;-webkit-backdrop-filter: blur(15px) !important;}.wgStickyBottom::before{content:"";inset: auto !important;clear: none !important;display: block !important;float: none !important;height: 5px !important;margin: 0px !important;max-height: none !important;max-width: none !important;opacity: 1 !important;overflow: visible !important;padding: 0px !important;position: relative !important;vertical-align: baseline !important;visibility: visible !important;width: auto !important;z-index: 1 !important;background-color: rgb(250, 250, 250) !important;box-shadow: rgb(0 0 0 / 20%) 0px -1px 5px -1px, rgb(0 0 0 / 10%) 0px 1px 2px -1px !important;}.wgTransition{ transition:1s;}.wgSlideInFromBottom{transform: translateY(0%);}.wgSlideOutToBottom{transform: translateY(100%);margin-top: -20px;}.wgSlideOutToBottom .close_sticky svg g{transform: rotate(180deg);transform-origin: center;}',wgddebug:!1,sticky_visible:!1,resolutions:[[1366,768],[1920,1080],[1517,853],[1440,900],[1280,720],[1300,731],[1536,864],[810,1080],[1600,900],[1280,1024],[1241,698],[1366,912],[1680,1050],[1187,667],[1280,800],[1368,912],[768,1024],[1280,854],[2560,1440],[1138,640],[1536,1024],[2048,1152],[1360,768],[1024,768],[1920,1200],[1093,615],[820,1180],[834,1194],[834,1112],[1024,1366],[3440,1440],[1792,1120],[2560,1080],[1728,1117],[3840,2160],[1512,982],[1536,960],[800,600],[1707,960],[1080,1920],[744,1133],[390,844],[414,896],[360,800],[375,812],[412,915],[393,873],[428,926],[375,667],[393,851],[360,780],[360,640],[412,892],[412,869],[384,854],[360,760],[385,854],[414,736],[412,846],[360,720],[360,740],[360,820],[320,568],[412,883],[424,942],[384,832],[320,693],[320,712],[432,960],[360,771],[384,857]],placements:{gallery:!1,anchor:!1,interstitial:!1,inline:!1,sidebar:!1,extra:!1},processQueue:function(){if(that.queue&&that.queue.length>0&&!that.queue_locked&&1==that.dfp_status){that.queue_locked=!0;for(key in that.queue){var a=that.queue[key];try{if(1==("true"==a.ad_elm.getAttribute("data-wgt-dfp")))that.displayAd(a.ad_elm,a.ad_unit);else{var b=wgda.options.units.inline.content.units[a.ad_elm.getAttribute("data-wgt-name")];that.appendCode(a.ad_elm,a.ad_unit,b,[a.ad_elm.getAttribute("data-wgt-width"),a.ad_elm.getAttribute("data-wgt-height")])}}catch(a){}}that.queue=[],that.queue_locked=!1}},addCustomCSS:function(){if(void 0!==wgDesktopAdsOptions.global.customCSS&&""!=wgDesktopAdsOptions.global.customCSS&&null!=wgDesktopAdsOptions.global.customCSS){var a=document.createElement("style");a.innerHTML=wgDesktopAdsOptions.global.customCSS,document.body.appendChild(a)}},addCSS:function(a){if(""!=a&&null!=a){var b=document.createElement("style");b.innerHTML=a,document.body.appendChild(b)}},isPSExcluded:function(){var a=window.location.href,b=wgDesktopAdsOptions.global.excluded;if(0==b.length)return!1;for(var c=0;c<b.length;c++)if(this.strstr(a,b[c],!0))return!0;return!1},strstr:function(a,b,c){var d=0;return a+="",-1!=(d=a.indexOf(b))&&(c?a.substr(0,d):a.slice(d))},isSiblingInPageWithWidth:function(a){var b=0,c=document.querySelector("div[data-wgt-name='"+a+"']");return void 0!==c&&null!=c&&(b=parseInt(c.getAttribute("data-wgt-width"))),b},calculateRemainingSpace:function(a){if(a){var b=document.querySelectorAll(a);if(void 0!==b)try{b=b[0];var c=b.getBoundingClientRect();return c}catch(a){}}},calculateContainer:function(a){if(a){var b=document.querySelectorAll(a);if(void 0!==b)try{b=b[0];var c=b.getBoundingClientRect();return that.game_container_bounds=c,c}catch(a){}}},calculateAdContainer:function(a){if(a){var b=document.querySelectorAll(a);if(void 0!==b)try{b=b[0];return b.getBoundingClientRect()}catch(a){}}},init:function(){if(document.location.href.indexOf("wgddebug")>=0&&(that.wgddebug=!0),void 0!==window.wgATFAdPlacements&&window.wgATFAdPlacements.length&&(that.ad_placements=window.wgATFAdPlacements),void 0!==wgDesktopAdsOptions.options.enableSingleRequest&&1==wgDesktopAdsOptions.options.enableSingleRequest)var a=setInterval(function(){1==that.placements.anchor&&1==that.placements.gallery&&1==that.placements.inline&&1==that.placements.interstitial&&1==that.placements.sidebar&&1==that.placements.extra&&that.slots[Object.keys(that.slots)[0]]&&(clearInterval(a),googletag.enableServices(),googletag.display(that.slots[Object.keys(that.slots)[0]]),wgda.units_displayed=!0)},1);if(void 0!==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds&&"auto"==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds)try{delete wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsM,delete wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsD,wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=window.innerHeight/2}catch(a){}try{wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=window.innerWidth>768?Math.round(window.innerHeight/2):window.innerHeight}catch(a){}if("function"==typeof wgDesktopAdsOptions.options.iic&&wgDesktopAdsOptions.options.iic(),!/bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex/i.test(navigator.userAgent)&&!(!0===wgDesktopAdsOptions.global.withParam&&"#adplacements"!=window.location.hash||void 0!==wgDesktopAdsOptions.global.excluded&&wgDesktopAdsOptions.global.excluded.length>0&&that.isPSExcluded())){if(void 0!==wgDesktopAdsOptions.global.is_game&&that.calculateContainer(wgDesktopAdsOptions.global.is_game),void 0!==wgDesktopAdsOptions.global.h_v&&!0===wgDesktopAdsOptions.global.h_v){var b=document.createElement("script");b.setAttribute("src","//st.wgplayer.com/vignette.min.js"),b.defer=!0,document.head.appendChild(b)}if(1==wgDesktopAdsOptions.options.dummy)return void(wgDesktopAdsOptions.options.dummy=!1);this.initializeDFP(),that.setScrollMonitorContainer(),that.addCustomCSS(),that.addCSS(".wgdLogo {z-index: 2147483647;cursor: pointer;width: 99%;height: 20px;margin-bottom:10px;margin-top:15px;background-position: right;background-size: contain;background-repeat: no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0iSXNvbGF0aW9uX01vZGUiIGRhdGEtbmFtZT0iSXNvbGF0aW9uIE1vZGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI3LjIxIDIxLjMyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzkxOTA5MTt9LmNscy0ye2ZpbGw6I2VkMjIyNDt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNTA0LDQ5OS4yNWMuMDgtLjIuMTQtLjM0LjItLjQ3bDEuMS0yLjZjLjItLjQ2LjM4LS45MS41Ny0xLjM3bC4zNi0uODMuNjYtMS41NWMuMzgtLjg3Ljc3LTEuNzQsMS4xNS0yLjYycy43LTEuNjksMS4wNi0yLjUzLjY0LTEuNDMuOTUtMi4xNWMuMTktLjQ2LjM2LS45NC41Ni0xLjRzLjQ3LTEuMDkuNy0xLjYzLjQyLTEuMDYuNjQtMS41OC40Ny0xLjA5LjcxLTEuNjNsLjM1LS44MmMuMTIsMCwuMjcsMCwuNDMsMGwzLjIzLDBjLjUxLDAsLjU5LjA2Ljc3LjU0YTEuNywxLjcsMCwwLDEsLjE4LjQ0LDEuMTUsMS4xNSwwLDAsMSwwLC41OGMtLjMuNzYtLjY0LDEuNTEtMSwyLjI2LS4yNC41OC0uNDYsMS4xNi0uNywxLjczcy0uNTksMS4zMy0uODgsMmMtLjQzLDEtLjg0LDItMS4yNywzLS4yNS42LS41MSwxLjE5LS43NiwxLjc5LS4zNy44Ny0uNzIsMS43NC0xLjA4LDIuNjFsLS43LDEuNjVjLS4yMS41MS0uNCwxLS42MiwxLjU1LS4xNC4zNC0uMzIuNjctLjQ4LDFhNy43LDcuNywwLDAsMS0uMzMuNzEsMy4xMiwzLjEyLDAsMCwxLTEuOCwxLjMyLDYuMjYsNi4yNiwwLDAsMS0xLjcyLjE1Yy0uNjMsMC0xLjI2LDAtMS44OSwwQzUwNC4zMiw0OTkuMzEsNTA0LjE5LDQ5OS4yNyw1MDQsNDk5LjI1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQ5MC40NyAtNDc4LjAxKSIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQ5OS44Miw0OTkuMjVhLjkxLjkxLDAsMCwxLS4yNS4wN2wtMy43OSwwYS42My42MywwLDAsMS0uMjMtLjA3bC0uNDEtLjk0YS43Ni43NiwwLDAsMSwwLS42OWMuMzItLjcuNjMtMS40MS45My0yLjEyLjM3LS44OC43My0xLjc3LDEuMTEtMi42NC4yNC0uNTcuNTEtMS4xMy43Ni0xLjdzLjM3LS45LjU3LTEuMzVjLjI2LS42Mi41NC0xLjIzLjc5LTEuODZzLjYtMS40Ny45LTIuMjFjLjE4LS40Mi4zOC0uODQuNTYtMS4yN3EuMTUtLjMzLjI3LS42NmE0LjQ5LDQuNDksMCwwLDEsLjkxLTEuNTEsNC41Niw0LjU2LDAsMCwxLC44My0uNjgsMS42NiwxLjY2LDAsMCwxLC41MS0uMTMsNS42Myw1LjYzLDAsMCwxLDEuNTktLjE4Yy41NSwwLDEuMSwwLDEuNjUsMGExLjI0LDEuMjQsMCwwLDEsLjg2LjIxYy0uMDYuMTktLjEyLjM2LS4xOS41My0uMjguNjMtLjU4LDEuMjUtLjg1LDEuODgtLjQyLDEtLjgyLDItMS4yNCwzLS4yMS41MS0uNDQsMS0uNjYsMS41M2wtLjY2LDEuNTNjLS4yNi42LS41NCwxLjItLjgsMS44MXMtLjQ3LDEuMi0uNzIsMS44Yy0uMTguNDQtLjM4Ljg3LS41NiwxLjMxLS4yNy42NC0uNTIsMS4yOS0uOCwxLjk0LS4xOC40My0uMzkuODYtLjU5LDEuMjlaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNDkzLDQ5My40Yy0uMjQtLjQ4LS40OS0xLS43MS0xLjQ3LS4zLS42Ny0uNTctMS4zNi0uODYtMnMtLjY0LTEuNC0xLTIuMWEuNTEuNTEsMCwwLDEsLjA2LS41NSw2LjY2LDYuNjYsMCwwLDAsLjUzLTEuMDcsMy40OCwzLjQ4LDAsMCwxLDIuMTEtMS45MywyLjgxLDIuODEsMCwwLDEsMS4yMi0uMTcsMTEuNjMsMTEuNjMsMCwwLDAsMS4zMiwwYy40MiwwLC44MywwLDEuMjUsMHMuNDQuMS4yOC40N2MtLjI5LjY4LS41NSwxLjM3LS44OSwyLS40OS45NS0uOTEsMS45My0xLjM1LDIuOTEtLjI1LjU2LS41NSwxLjEtLjgsMS42NnMtLjYsMS4zOC0uODgsMi4wOEM0OTMuMyw0OTMuMzYsNDkzLjI0LDQ5My40NSw0OTMsNDkzLjRaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PC9zdmc+);}.wgdLogoN {z-index: 2147483647;cursor: pointer;width: 99%;height: 20px;margin-bottom:10px;margin-top:0px;background-position: right;background-size: contain;background-repeat: no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0iSXNvbGF0aW9uX01vZGUiIGRhdGEtbmFtZT0iSXNvbGF0aW9uIE1vZGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI3LjIxIDIxLjMyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzkxOTA5MTt9LmNscy0ye2ZpbGw6I2VkMjIyNDt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNTA0LDQ5OS4yNWMuMDgtLjIuMTQtLjM0LjItLjQ3bDEuMS0yLjZjLjItLjQ2LjM4LS45MS41Ny0xLjM3bC4zNi0uODMuNjYtMS41NWMuMzgtLjg3Ljc3LTEuNzQsMS4xNS0yLjYycy43LTEuNjksMS4wNi0yLjUzLjY0LTEuNDMuOTUtMi4xNWMuMTktLjQ2LjM2LS45NC41Ni0xLjRzLjQ3LTEuMDkuNy0xLjYzLjQyLTEuMDYuNjQtMS41OC40Ny0xLjA5LjcxLTEuNjNsLjM1LS44MmMuMTIsMCwuMjcsMCwuNDMsMGwzLjIzLDBjLjUxLDAsLjU5LjA2Ljc3LjU0YTEuNywxLjcsMCwwLDEsLjE4LjQ0LDEuMTUsMS4xNSwwLDAsMSwwLC41OGMtLjMuNzYtLjY0LDEuNTEtMSwyLjI2LS4yNC41OC0uNDYsMS4xNi0uNywxLjczcy0uNTksMS4zMy0uODgsMmMtLjQzLDEtLjg0LDItMS4yNywzLS4yNS42LS41MSwxLjE5LS43NiwxLjc5LS4zNy44Ny0uNzIsMS43NC0xLjA4LDIuNjFsLS43LDEuNjVjLS4yMS41MS0uNCwxLS42MiwxLjU1LS4xNC4zNC0uMzIuNjctLjQ4LDFhNy43LDcuNywwLDAsMS0uMzMuNzEsMy4xMiwzLjEyLDAsMCwxLTEuOCwxLjMyLDYuMjYsNi4yNiwwLDAsMS0xLjcyLjE1Yy0uNjMsMC0xLjI2LDAtMS44OSwwQzUwNC4zMiw0OTkuMzEsNTA0LjE5LDQ5OS4yNyw1MDQsNDk5LjI1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQ5MC40NyAtNDc4LjAxKSIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQ5OS44Miw0OTkuMjVhLjkxLjkxLDAsMCwxLS4yNS4wN2wtMy43OSwwYS42My42MywwLDAsMS0uMjMtLjA3bC0uNDEtLjk0YS43Ni43NiwwLDAsMSwwLS42OWMuMzItLjcuNjMtMS40MS45My0yLjEyLjM3LS44OC43My0xLjc3LDEuMTEtMi42NC4yNC0uNTcuNTEtMS4xMy43Ni0xLjdzLjM3LS45LjU3LTEuMzVjLjI2LS42Mi41NC0xLjIzLjc5LTEuODZzLjYtMS40Ny45LTIuMjFjLjE4LS40Mi4zOC0uODQuNTYtMS4yN3EuMTUtLjMzLjI3LS42NmE0LjQ5LDQuNDksMCwwLDEsLjkxLTEuNTEsNC41Niw0LjU2LDAsMCwxLC44My0uNjgsMS42NiwxLjY2LDAsMCwxLC41MS0uMTMsNS42Myw1LjYzLDAsMCwxLDEuNTktLjE4Yy41NSwwLDEuMSwwLDEuNjUsMGExLjI0LDEuMjQsMCwwLDEsLjg2LjIxYy0uMDYuMTktLjEyLjM2LS4xOS41My0uMjguNjMtLjU4LDEuMjUtLjg1LDEuODgtLjQyLDEtLjgyLDItMS4yNCwzLS4yMS41MS0uNDQsMS0uNjYsMS41M2wtLjY2LDEuNTNjLS4yNi42LS41NCwxLjItLjgsMS44MXMtLjQ3LDEuMi0uNzIsMS44Yy0uMTguNDQtLjM4Ljg3LS41NiwxLjMxLS4yNy42NC0uNTIsMS4yOS0uOCwxLjk0LS4xOC40My0uMzkuODYtLjU5LDEuMjlaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNDkzLDQ5My40Yy0uMjQtLjQ4LS40OS0xLS43MS0xLjQ3LS4zLS42Ny0uNTctMS4zNi0uODYtMnMtLjY0LTEuNC0xLTIuMWEuNTEuNTEsMCwwLDEsLjA2LS41NSw2LjY2LDYuNjYsMCwwLDAsLjUzLTEuMDcsMy40OCwzLjQ4LDAsMCwxLDIuMTEtMS45MywyLjgxLDIuODEsMCwwLDEsMS4yMi0uMTcsMTEuNjMsMTEuNjMsMCwwLDAsMS4zMiwwYy40MiwwLC44MywwLDEuMjUsMHMuNDQuMS4yOC40N2MtLjI5LjY4LS41NSwxLjM3LS44OSwyLS40OS45NS0uOTEsMS45My0xLjM1LDIuOTEtLjI1LjU2LS41NSwxLjEtLjgsMS42NnMtLjYsMS4zOC0uODgsMi4wOEM0OTMuMyw0OTMuMzYsNDkzLjI0LDQ5My40NSw0OTMsNDkzLjRaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PC9zdmc+);}");var c=wgDesktopAdsOptions.global.customDelay||10,d=setInterval(function(){if(1==that.dfp_status){if(that.detectEnvironment(),clearInterval(d),that.logDisplay(),that.extendApp(),window.addEventListener("afv_end_preload",function(a){if(that.afv_related)for(var b in that.afv_related){var c=that.initAdPlacement(that.afv_related[b],b,!0,b);that.addWatchers([c])}}),"undefined"==typeof wgDesktopAdsOptions)return;that.options=wgDesktopAdsOptions,void 0!==that.options.options.spa?1==that.options.options.spa?that.attachSPAListener():that.initializeEnvironment():!0===that.options.infinite&&void 0!==that.options.infinite_parent?that.attachInfiniteListener():that.initializeEnvironment()}},c)}},eraseUnits:function(){for(var a=document.querySelectorAll(".adWrapper"),b=0;b<a.length;b++)a[b].parentElement.removeChild(a[b]);that.slots={},googletag.destroySlots()},addInterstitial:function(){var a=that.prefixAdUnit(that.options.units.interstitial.ad_unit);void 0!==a&&(window.googletag=window.googletag||{cmd:[]},googletag.cmd.push(function(){interstitialSlot=googletag.defineOutOfPageSlot(a,googletag.enums.OutOfPageFormat.INTERSTITIAL),interstitialSlot&&(interstitialSlot.addService(googletag.pubads()),that.dfp_options.enableSingleRequest||(googletag.enableServices(),googletag.display(interstitialSlot),that.dfp_options.disableInitialLoad&&googletag.pubads().refresh([interstitialSlot])),googletag.pubads().addEventListener("slotOnload",function(a){interstitialSlot,a.slot}))})),that.placements.interstitial=!0},addAnchor:function(){var a=that.prefixAdUnit(that.options.units.anchor.ad_unit);void 0!==a&&(window.googletag=window.googletag||{cmd:[]},googletag.cmd.push(function(){anchorSlot=googletag.defineOutOfPageSlot(a,googletag.enums.OutOfPageFormat[that.options.units.anchor.type]),anchorSlot&&(anchorSlot.addService(googletag.pubads()),that.dfp_options.enableSingleRequest||(googletag.enableServices(),googletag.display(anchorSlot),that.dfp_options.disableInitialLoad&&googletag.pubads().refresh([anchorSlot])),googletag.pubads().addEventListener("slotOnload",function(a){anchorSlot,a.slot}))})),that.placements.anchor=!0},initializeEnvironment:function(){if(void 0!==that.options.units.scrollable&&setTimeout(function(){that.attachScrollableAdsPlacements(that.options.units.scrollable)},500),void 0!==that.options.units.inline){new Promise(function(a,b){for(var c in that.options.units.inline)var d=that.initializeAdsPlacements(that.options.units.inline[c],c,!0);!0===d&&a(d)}).then(function(a){that.dfp_options.enableLazyLoad?(that.triggerInstantAds(),that.placements.inline=!0):setTimeout(function(){that.addWatchers(),that.placements.inline=!0},1e3)})}else that.placements.inline=!0;if(void 0!==that.options.units.interstitial?void 0!==that.options.units.interstitial.delay?setTimeout(function(){that.addInterstitial()},that.options.units.interstitial.delay):that.addInterstitial():that.placements.interstitial=!0,void 0!==that.options.units.anchor?void 0!==that.options.units.anchor.delay?setTimeout(function(){that.addAnchor()},that.options.units.anchor.delay):that.addAnchor():that.placements.anchor=!0,void 0!==that.options.units.gallery){if("double"==that.options.units.gallery.placement){var a=document.createElement("style");a.type="text/css",a.innerText="#swipebox-slider .slide.current {display: inline-grid !important;grid-template-columns: 1fr auto 1fr;width: 100% !important;height: 100% !important;grid-template-rows: 1fr;align-items: center;justify-items: center;align-content:center;justify-content: center;gap:20px} #swipebox-slider .slide.current:before{ display:none; }",document.head.appendChild(a)}that.attachGalleryAdsPlacements(that.options.units.gallery);var b=0,c=setInterval(function(){b++,100==b&&clearInterval(c),void 0!==window.wgimgs&&window.wgimgs.length>0&&(clearInterval(c),that.constructCallToAction(window.wgimgs))},40)}else that.placements.gallery=!0;if(void 0!==that.options.units.extra)for(var d in that.options.units.extra)that.initializeAdsPlacements(that.options.units.extra[d],d,!0);else that.placements.extra=!0;if(void 0!==that.options.units.sidebar){if("phone"==that.device.type)1==that.options.units.sidebar.mobile?that.initializeSidebar():that.createSidebarCSS();else if("tablet"==that.device.type){var e=that.options.units.sidebar.tablet;if(void 0!==e){var f=e[that.device.size],g=f[that.device.orientation];1==g?that.initializeSidebar():that.createSidebarCSS()}else that.createSidebarCSS()}else that.initializeSidebar()}else that.placements.sidebar=!0;wgDesktopAdsUtils.attachRepositionEvent()},constructCallToAction:function(a){if(a.length>2){var b=document.createElement("style");b.type="text/css",b.innerText="span.wgGalleryContainer a{display: flex;}span.wgGalleryContainer {padding:10px;background:#0606061f;display: grid;grid-template-columns: repeat(5, minmax(0, 1fr));grid-gap:10px;} .wgGalleryImage .essbis-container{display:none!important}",document.head.appendChild(b);var c=document.createElement("span");c.setAttribute("class","wgGalleryContainer"),c.style.display="none";var d=a.length,e=5;d<5&&(e=d);for(var f=0;f<e;f++)if(void 0!==a[f]){var g=document.createElement("a");g.setAttribute("class","wgGalleryImage swipebox"),g.href=a[f];var h=document.createElement("img");h.src="https://scylla.wgplayer.com/f_webp/w_150/h_120/"+a[f],g.appendChild(h),c.appendChild(g)}var i=document.querySelectorAll(".swipebox")[0];i&&i.insertAdjacentElement("afterend",c);var j=void 0!==wgDesktopAdsOptions.units.gallery.cta_label?wgDesktopAdsOptions.units.gallery.cta_label:"More images";c.insertAdjacentHTML("beforebegin",'<h3 class="wgGalleryLabel">'+j+"</h3>"),c.style.display="grid"}},appendToEnvironment:function(a){if(void 0!==that.options.units.inline){for(var b in that.options.units.inline)that.appendAdsPlacements(that.options.units.inline[b],b,!0,a);that.dfp_options.enableLazyLoad?that.triggerInstantAds():setTimeout(function(){that.addWatchers()},1e3)}},waitForAddedNode:function(a){new MutationObserver(function(b){var c=document.getElementById(a.id);c&&(this.disconnect(),a.done(c))}).observe(a.parent||document,{subtree:!!a.recursive,childList:!0})},waitForAddedNodeFinal:function(a){new MutationObserver(function(b){var c=document.querySelectorAll(a.id+":not(.wg-touched)")[0];c&&(wgDesktopAdsUtils.addClass(c,"wg-touched"),a.done(c))}).observe(a.parent||document,{subtree:!!a.recursive,childList:!0})},attachInfiniteListener:function(){var a=document.querySelectorAll(wgDesktopAdsOptions.infinite_parent+":not(.wg-touched)")[0];that.appendToEnvironment(getNextSibling(a,function(a){return a.matches(wgDesktopAdsOptions.infinite_parent+":not(.wg-touched)")})),that.waitForAddedNodeFinal({id:wgDesktopAdsOptions.infinite_parent,parent:document.querySelectorAll("body")[0],recursive:!0,done:function(a){setTimeout(function(){that.appendToEnvironment(getNextSibling(a,function(a){return a.matches(wgDesktopAdsOptions.infinite_parent+":not(.wg-touched)")}))},10)}})},attachSPAListener:function(){var a=location.href,b=new MutationObserver(function(b){if(a!==window.location.href){a=window.location.href;var c={},d=new CustomEvent("wgd_page_navigate",{detail:c});document.dispatchEvent(d)}}),c={childList:!0,subtree:!0};b.observe(document.body,c),that.initializeEnvironment(),document.addEventListener("wgd_page_navigate",function(a){var b=document.querySelector("body");if(1==wgDesktopAdsOptions.spa_waitForAddedNode||void 0===wgDesktopAdsOptions.spa_waitForAddedNode)that.waitForAddedNode({id:wgDesktopAdsOptions.spa_trigger,parent:b,recursive:!0,done:function(b){a.detail;try{wgDesktopAdsOptions.options.iic()}catch(a){}that.eraseUnits(),that.initializeEnvironment()}});else try{wgDesktopAdsOptions.options.iic(),that.eraseUnits(),that.initializeEnvironment()}catch(a){}})},checkForOverlap:function(a,b){var c=a.getBoundingClientRect(),d=b.getBoundingClientRect(),e=c.left<=d.left,f=e?c:d,g=e?d:c;if(f.right>g.left){var h=c.top<=d.top,i=h?c:d,j=h?d:c;return i.bottom>j.top}return!1},triggerInstantAds:function(){if("undefined"==typeof wgads||null==wgads)var a=document.getElementsByClassName("wgAd");else var a=wgads;for(var b=0;b<a.length;b++){var c=a[b],d=c.getAttribute("data-wgt-ad-unit"),e="true"==c.getAttribute("data-wgt-dfp");"true"==c.getAttribute("data-wgt-story")||(1==e?that.displayAd(c,d):that.appendCode(c,d,wgda.options.units.inline.content.units[c.getAttribute("data-wgt-name")],[parseInt(c.getAttribute("data-wgt-width")),parseInt(c.getAttribute("data-wgt-height"))]))}},addWatchers:function(a){function b(a,b){var c=b.watchItem.getAttribute("data-wgt-ad-unit"),d=b.watchItem.getAttribute("data-wgt-ovl-y");if(null!=d){contor=0;var e=setInterval(function(){var a=document.querySelector(d);if(null!=a){if(that.checkForOverlap(b.watchItem,a.firstElementChild)){var c=a.firstElementChild.getBoundingClientRect().left+a.firstElementChild.getBoundingClientRect().width-b.watchItem.getBoundingClientRect().left;c&&(wgDesktopAdsUtils.hasClass(b.watchItem.parentNode,"adWrapper")?b.watchItem.parentNode.style.marginLeft=c+5+"px":b.watchItem.style.marginLeft=c+5+"px",clearInterval(e))}else contor++;3==contor&&clearInterval(e)}},1e3)}b.enterViewport(function(){if(wgDesktopAdsUtils.hasClass(b.watchItem,"wgAd-loaded")){var a=parseInt(b.watchItem.getAttribute("data-wgt-refresh")),d=parseInt(b.watchItem.getAttribute("data-wgt-rf-trigger")),e=b.watchItem.getAttribute("data-wgt-rf-interval");if(0===a)that.refreshAd(b.watchItem),b.watchItem.setAttribute("data-wgt-ad-displayed",(new Date).getTime());else if(a>0&&"number"==typeof a){var f=(new Date).getTime(),h=b.watchItem.getAttribute("data-wgt-ad-displayed");f-h>a&&(that.refreshAd(b.watchItem),b.watchItem.setAttribute("data-wgt-ad-displayed",(new Date).getTime()))}else-1==a&&d>0&&null!=e&&(that.intervals[e]=setInterval(function(){that.refreshAd(b.watchItem),b.watchItem.setAttribute("data-wgt-ad-displayed",(new Date).getTime())},d))}else{1==("true"==b.watchItem.getAttribute("data-wgt-dfp"))?that.displayAd(b.watchItem,c):that.appendCode(b.watchItem,c,wgda.options.units.inline.content.units[b.watchItem.getAttribute("data-wgt-name")],[parseInt(b.watchItem.getAttribute("data-wgt-width")),parseInt(b.watchItem.getAttribute("data-wgt-height"))]),g.lock(),b.lock(),b.watchItem.setAttribute("data-wgt-ad-displayed",(new Date).getTime());var a=parseInt(b.watchItem.getAttribute("data-wgt-refresh")),d=parseInt(b.watchItem.getAttribute("data-wgt-rf-trigger")),e=b.watchItem.getAttribute("data-wgt-rf-interval");-1==a&&d>0&&null!=e&&(that.intervals[e]=setInterval(function(){that.refreshAd(b.watchItem),b.watchItem.setAttribute("data-wgt-ad-displayed",(new Date).getTime())},d))}}),b.exitViewport(function(){var a=b.watchItem.getAttribute("data-wgt-rf-interval");clearInterval(that.intervals[a])})}if(void 0===a||null==a)var c=document.getElementsByClassName("wgAd");else var c=a;for(var d=0;d<c.length;d++){var e=c[d],f=parseInt(e.getAttribute("data-wgt-ad-unit"));("number"!=typeof f||isNaN(f))&&(f=400);var g=scrollMonitor.create(e,{top:f,bottom:f});b(null,g)}},detectEnvironment:function(){var a=wgDeviceDetector;if(that.device.type=a.device,window.innerHeight>window.innerWidth?that.device.orientation="p":that.device.orientation="l","tablet"==that.device.type?"p"==that.device.orientation?window.innerWidth<=636?that.device.size="m":that.device.size="l":window.innerHeight<=636?that.device.size="m":that.device.size="l":"phone"==that.device.type?that.device.size="s":(that.device.size="xl",that.device.orientation=""),"desktop"==that.device.type)try{document.body.classList.add("wgd_desktop")}catch(a){}else try{document.body.classList.add("wgd_mobile")}catch(a){}},attachScrollableAdsPlacements:function(a){for(var b=a.content.units.page_scroll,c=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),d=document.querySelectorAll(b.att_rules.value+" > *"),e=[],f=Math.ceil(document.querySelectorAll(b.att_rules.value)[0].offsetHeight/c),g=0;g<f;g++)e.push({top:g*c,bottom:g*c+c});var h=1;1===f?h=0:2===f?h=2:3===f?h=2:4===f?h=2:f>4&&(h=3),void 0!==b.att_rules.density&&(h=b.att_rules.density);var i=0;for(var j in e){for(var k,l=!1,m=0;m<d.length;m++)d[m]&&d[m].getBoundingClientRect().bottom<=e[j].bottom&&d[m].getBoundingClientRect().top>=e[j].top&&d[m].getBoundingClientRect().height>0&&j>0&&j%h==0&&(k=d[m]);if(k&&!l){i++;var n=b.ad_size[m%b.ad_size.length],o=that.placeAdContainer(!1,!0,i,"scrollable",b.att_rules.withLabel,document.querySelectorAll(b.att_rules.value)[0],n,b.att_rules.placement,b.att_rules.method,!1,b.styles,b),p=document.createElement("div");p.style.width="100%",p.style.height="auto",p.appendChild(o),k.parentNode.insertBefore(p,k.nextSibling)}}},attachGalleryAdsPlacements:function(a){setTimeout(function(){var b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(void 0!==b&&null!=b){var c=that.readElementByValue(a.dom_hook_on);if(void 0!==c){new b(function(c){c.forEach(function(c){if("childList"==c.type&&c.addedNodes.length>0&&c.addedNodes[0][a.main_mutation_container.type]==a.main_mutation_container.value)for(var d=that.readElements(a.element_mutation_container.type,a.element_mutation_container.value,"all"),e=Array.prototype.slice.call(d),f=0;f<d.length;f++){var g=new b(function(b){b.forEach(function(b){b.target.getAttribute(a.active_element.type);if(wgDesktopAdsUtils.hasClass(b.target,a.active_element.value)){var c=b.target;if(void 0!==e)var d=e.indexOf(c);else var d=0;if(a.forced=!0,void 0!==c){var f=a.ad_size_desktop,g=a.ad_size_mobile;"desktop"==wgDeviceDetector.device?void 0!==f&&(a.ad_size=f):void 0!==g&&(a.ad_size=g);var h=c.getElementsByClassName("adWrapper")[0];if(void 0===h){if(1!=a.no_size){var i=a.ad_size[d%a.ad_size.length];if(void 0!==a.ad_falls){var j=a.ad_falls;i=that.adHasSpaceToDisplay("content",i,j)}}else i=a.ad_size;if("double"==a.placement&&"desktop"!=wgDeviceDetector.device&&(a.placement="beforeend"),"double"!=a.placement){a.placement="beforeend";var k=that.placeAdContainer(!1,!1,d+1,"gallery",a.withLabel,c,i,a.placement,"append",!1,a.styles,a);wgDesktopAdsUtils.hasClass(k,"adWrapper")&&(k=k.getElementsByClassName("wgAd")[0]);var l="true"==k.getAttribute("data-wgt-dfp");if(1==l)that.displayAd(k,a.ad_unit);else{var m=wgda.options.units.gallery;that.appendCode(k,a.ad_unit,m,[k.getAttribute("data-wgt-width"),k.getAttribute("data-wgt-height")])}}else{var n=that.placeAdContainer(!1,!1,d+1,"gallery_left",a.withLabel,c,i,"afterbegin","append",!1,a.styles,a),o=that.placeAdContainer(!1,!1,d+2,"gallery_right",a.withLabel,c,i,"beforeend","append",!1,a.styles,a);wgDesktopAdsUtils.hasClass(n,"adWrapper")&&(n=n.getElementsByClassName("wgAd")[0]);var l="true"==n.getAttribute("data-wgt-dfp");if(1==l)that.displayAd(n,a.ad_unit);else{var m=wgda.options.units.gallery;that.appendCode(n,a.ad_unit,m,[n.getAttribute("data-wgt-width"),n.getAttribute("data-wgt-height")])}wgDesktopAdsUtils.hasClass(o,"adWrapper")&&(n=o.getElementsByClassName("wgAd")[0]);var l="true"==o.getAttribute("data-wgt-dfp");if(1==l)that.displayAd(o,a.ad_unit);else{var m=wgda.options.units.gallery;that.appendCode(o,a.ad_unit,m,[o.getAttribute("data-wgt-width"),o.getAttribute("data-wgt-height")])}}}else if(wgDesktopAdsUtils.hasClass(b.target,"current")){wgDesktopAdsUtils.hasClass(h,"adWrapper")&&(h=h.getElementsByClassName("wgAd")[0]);var l="true"==h.getAttribute("data-wgt-dfp");1==l&&that.refreshAd(h)}}}})}),h={attributes:!0};g.observe(d[f],h)}})}).observe(c,{attributes:!0,childList:!0,characterData:!1})}that.placements.gallery=!0}},500)},extendApp:function(){if("undefined"!=typeof wgDesktopAdsPlugin&&void 0!==wgDesktopAdsPlugin.extends){that.extends=wgDesktopAdsPlugin.extends,that.extends.initPlugin(that);for(var a in that.extends&&"function"==typeof that[a])that[a]=that.extends[a]}},logDisplay:function(){var a=wgDesktopAdsUtils.getCookie("wg_display");a=null==a?1:parseInt(a)+1,wgDesktopAdsUtils.setCookie("wg_display",a,1)},resizeWindow:function(){void 0!==a&&clearTimeout(a);var a=setTimeout(function(){},200)},repositionOutsides:function(){for(var a in that.outside_elements){var b=document.getElementById(a),c=parseInt(b.getAttribute("data-wgt-width")),d=(parseInt(b.getAttribute("data-wgt-height")),parseInt(b.getAttribute("data-wgt-outside-offset"))||0),e=that.outside_elements[a].ref;wgDesktopAdsUtils.hasClass(b.parentNode,"adWrapper")&&(b=b.parentNode);var f=that.outside_elements[a].pos;if("right"==f){var g=e.offsetWidth+e.getBoundingClientRect().left;g+c>window.innerWidth?b.style.display="none":("none"==b.style.display&&(b.style.display="block"),b.style.left=e.offsetWidth+e.getBoundingClientRect().left+d+"px")}else if("left"==f){var g=e.getBoundingClientRect().left-c;if(g<0)return b.style.display="none",!1;"none"==b.style.display&&(b.style.display="block"),b.style.left=g-d+"px"}}},initializeAdsPlacements:function(a,b,c){if(void 0===a)return!1;if(a.type&&a.value){var d=that.identifyElement(a.type,a.value);void 0!==d&&(that.sections[b]={width:d.offsetWidth})}for(var e in a.units)if(null==a.units[e].wait_for||void 0===a.units[e].wait_for)if(!0===a.units[e].att_enforced&&a.units[e].att_rules instanceof Array){a.units[e].att_rules=that.sortOutTheRulesPriority(a.units[e].att_rules);var f=Object.assign({},a.units[e]);a.units[e].att_rules.sort(function(a,b){return a.priority.toString().localeCompare(b.priority.toString())});for(var g=0;g<a.units[e].att_rules.length;g++){var h=Object.assign({},f);h.att_rules=a.units[e].att_rules[g],that.initAdPlacement(h,e,!0,b)}}else if(!0===a.units[e].in_feed&&a.units[e].att_rules instanceof Array){var i=[];a.units[e].att_rules=that.processSelectors(a.units[e].att_rules);for(var g=0;g<a.units[e].att_rules.length;g++){var j=a.units[e].att_rules[g],k=j.value;j.targetElement=k.split(" ")[k.split(" ").length-1],i.push(k)}var l=document.getElementsInFeed(i,a.units[e].att_rules,a.units[e]);that.processINF(l)}else void 0!==a.units[e].withDFP?that.initAdPlacement(a.units[e],e,a.units[e].withDFP,b):that.initAdPlacement(a.units[e],e,c,b);else that.afv_related[e]=a.units[e];return!0},processSelectors:function(a){var b=[];return a.forEach(function(a){var c="",d=a.match;if("string"==typeof d){if("all"==d)c="";else if("odd"==d)c=":nth-child(odd)";else if("even"==d)c=":nth-child(even)";else if(d.indexOf(":")>=0){var e=d.split(":"),f=parseInt(e[1]);f>0&&(c=":nth-of-type("+f+"n+0)")}else if("first"==d)c=":first-of-type";else if("last"==d)c=":last-of-type";else if("middle"==d){var g=document.querySelectorAll(a.value),h=g.length,i=Math.ceil(h/2);c=":nth-of-type("+i+")"}}else if(d instanceof Array){var j=[];d.forEach(function(b){j.push(a.value+":nth-of-type("+b+")")}),a.value=j.join(","),c=""}else"number"==typeof d&&(c=":nth-of-type("+d+")");var k=a;k.value=k.value+c,b.push(k)}),b},processINF:function(a){a.forEach(function(a,b){var c=a.rule,d=void 0!==c.wrapper&&c.wrapper,e=void 0===c.collapse||c.collapse,f="in_feed",g=void 0!==c.withLabel&&c.withLabel;that.prefixAdUnit(a.wgd_attach.ad_unit);if(!0!==a.wgd_attach.no_size)if(!0!==a.wgd_attach.alternate)var h=that.computeAdPlacementSize(a.wgd_attach.ad_size,f);else var h=a.wgd_attach.ad_size;else h=a.wgd_attach.ad_size;var i=a.wgd_attach.ad_size_desktop,j=a.wgd_attach.ad_size_mobile;void 0===a.wgd_attach.only_desktop&&void 0===a.wgd_attach.only_mobile&&void 0!==i&&void 0!==j&&(h="desktop"==that.device.type?i:j);var k=void 0!==a.wgd_attach.outside&&c.outside,l=a.wgd_attach.styles;if("right"==k){var m=void 0!==a.wgd_attach.outsideOffset?a.wgd_attach.outsideOffset:0,n=a.offsetWidth+a.getBoundingClientRect().left+m;if(n+h[0]>window.innerWidth)return!1}else if("left"==k){var m=void 0!==a.wgd_attach.outsideOffset?a.wgd_attach.outsideOffset:0,n=a.getBoundingClientRect().left-h[0]-m;if(n<0)return!1}if(a.wgd_attach.att_rules=c,1==a.wgd_attach.no_size)var o=that.createAdDiv(d,e,b,f,g,h,h,k,a,l,a.wgd_attach,n);else var o=that.createAdDiv(d,e,b,f,g,h[0],h[1],k,a,l,a.wgd_attach,n);if(k){if(wgDesktopAdsUtils.hasClass(o,"adWrapper"))var p=o.getElementsByClassName("wgAd")[0];else var p=o;that.outside_elements[p.getAttribute("id")]={ref:a,pos:k}}if("append"==a.rule.method)a.item.insertAdjacentHTML(a.rule.placement,o.outerHTML);else if("replace"==a.rule.method)a.item.parentNode.replaceChild(o,a);else if("inplace"==a.rule.method)return o;if(wgDesktopAdsUtils.hasClass(o,"adWrapper")){var p=o.getElementsByClassName("wgAd")[0];return p}return o})},sortOutTheRulesPriority:function(a){for(var b=0;b<a.length;b++){var c=a[b];void 0===c.priority&&(c.priority=b+1)}return a},appendAdsPlacements:function(a,b,c,d){if(void 0!==a){if(!wgDesktopAdsUtils.hasClass(d,"wg-touched")){if(a.type&&a.value){var e=that.parentIdentifyElements(a.type,a.value,d);void 0!==e&&(that.sections[b]={width:e.offsetWidth})}for(var f in a.units)null==a.units[f].wait_for||void 0===a.units[f].wait_for?void 0!==a.units[f].withDFP?that.appendAdPlacement(a.units[f],f,a.units[f].withDFP,b,d):that.appendAdPlacement(a.units[f],f,c,b,d):that.afv_related[f]=a.units[f]}wgDesktopAdsUtils.addClass(d,"wg-touched")}},computeAdPlacementSize:function(a,b){if(1==a.length)return a[0];var c="wgAds_"+b,d=wgDesktopAdsUtils.getCookie(c);if(null==d)var e=0;else{var e=parseInt(d)+1;e>a.length-1&&(e=0)}return wgDesktopAdsUtils.setCookie(c,e,"1"),a[e]},showSticky:function(a){wgda.sticky_visible=!0,wgDesktopAdsUtils.addClass(a,"wgSlideInFromBottom"),wgDesktopAdsUtils.removeClass(a,"wgSlideOutToBottom"),window.wgdStickyHeight=0;try{window.wgdStickyHeight=a.getBoundingClientRect().height}catch(a){}try{setTimeout(function(){var b=new CustomEvent("wgdStickyShow",{detail:a});document.dispatchEvent(b)},200)}catch(a){}},hideSticky:function(a){if(1==wgda.sticky_visible){wgda.sticky_visible=!1,wgDesktopAdsUtils.removeClass(a,"wgSlideInFromBottom"),wgDesktopAdsUtils.addClass(a,"wgSlideOutToBottom");try{var b=new CustomEvent("wgdStickyHide",{detail:a});document.dispatchEvent(b)}catch(a){}}},wgDebounce:function(a,b){try{clearTimeout(a._tId),a._tId=setTimeout(function(){a()},b)}catch(a){}},a_lastScrollTop:0,a_scrollPgage:0,a_followScroll:-1,a_top:1,a_bottom:0,a_prevScroll:0,a_move:0,a_pozitie:0,a_cofeicient:200,a_scroll:0,a_prevPozitie:0,a_schimb:1,a_x:0,handleStickyScroll:function(a,b,c){var d=c.getBoundingClientRect(),e=c.parentNode.parentNode.getBoundingClientRect(),f=window.pageYOffset||document.documentElement.scrollTop;that.a_prevScroll=that.a_scrollPgage,f>that.a_lastScrollTop?that.a_scrollPgage=1:that.a_scrollPgage=-1,that.a_lastScrollTop=f,that.a_prevScroll!=that.a_scrollPgage&&0!=that.a_prevScroll&&(that.a_followScroll=-1*that.a_followScroll,that.a_x=that.a_top,that.a_top=that.a_bottom,that.a_bottom=that.a_x),that.a_scroll=Math.abs(f-that.a_prevScroll),that.a_prevScroll=f,that.a_move=5,1===that.a_top&&d.bottom<e.bottom+20&&(that.a_top=0,that.a_bottom=1,that.a_schimb=1),1===that.a_bottom&&d.top>e.top+20&&(that.a_bottom=0,that.a_top=1,that.a_schimb=1),1===that.a_schimb&&(that.a_followScroll=-1*that.a_followScroll,that.a_schimb=0),-1===that.a_scrollPgage&&1===that.a_followScroll&&(that.a_pozitie=that.a_prevPozitie-that.a_move,that.a_prevPozitie=that.a_pozitie),-1===that.a_scrollPgage&&-1===that.a_followScroll&&(that.a_pozitie=that.a_prevPozitie+that.a_move,that.a_prevPozitie=that.a_pozitie),1===that.a_scrollPgage&&1===that.a_followScroll&&(that.a_pozitie=that.a_prevPozitie-that.a_move,that.a_prevPozitie=that.a_pozitie),1===that.a_scrollPgage&&-1===that.a_followScroll&&(that.a_pozitie=that.a_prevPozitie+that.a_move,that.a_prevPozitie=that.a_pozitie),Math.abs(that.a_pozitie)>5&&(c.style.transform="translate(0px, "+that.a_pozitie+"px)")},changeCounter:1,adheight:-1,hasReachedTop:!0,hasReachedBottom:!1,followScrollDirection:1,prevScrollDirection:1,scrollDirection:1,lastScrollTop:0,paralaxCoef:10,prevAdScroll:0,attachStickyScrollEvent:function(a){try{setTimeout(function(){var b=document.documentElement.scrollTop;wgda.scroll_direction=0,a.getBoundingClientRect().height>130&&document.addEventListener("scroll",function(){that.wgDebounce(that.handleStickyScroll(b,0,a),120)},{passive:!0})},500)}catch(a){}},addSticky:function(a,b){that.addCSS(that.customStickyCSS);var c=document.getElementsByClassName("close_sticky")[0],d=document.getElementsByClassName("wgStickyBottom")[0],e=d.getElementsByClassName("wgAd ")[0],f=e.getAttribute("data-wgt-sticky-parallax");try{var g=parseInt(e.getBoundingClientRect().height/2)+1;"true"==f&&e.getBoundingClientRect().height>90&&(d.style.maxHeight=g+"px",that.attachStickyScrollEvent(e))}catch(a){}c.parentNode.parentNode.parentNode.appendChild(c.parentNode),c.addEventListener("click",function(a){if(a.preventDefault(),!1===wgDesktopAdsOptions.sticky_recall)try{d.parentElement.removeChild(d)}catch(a){}if(wgDesktopAdsUtils.hasClass(d,"wgSlideInFromBottom")||!wgDesktopAdsUtils.hasClass(d,"wgSlideInFromBottom")&&!wgDesktopAdsUtils.hasClass(d,"wgSlideOutToBottom"))wgda.sticky_visible=!0,that.hideSticky(d),setTimeout(function(){},1e3);else{try{b.style.transform="translate(0px, 0px)"}catch(a){}that.showSticky(d),that.refreshAd(b)}var c=e.getAttribute("data-wgt-rf-interval");void 0!==c&&c&&clearInterval(wgda.intervals[c])}),a.autoclose>0&&1!=a.parallax&&setTimeout(function(){that.hideSticky(d)},a.autoclose),void 0!==a.wait_for_collapse&&null!=a.wait_for_collapse&&window.addEventListener(a.wait_for_collapse,function(){that.hideSticky(d)})},initAdPlacement:function(a,b,c,d){var e=a.ad_falls;if(!0!==a.no_size)if(!0!==a.alternate)var f=that.computeAdPlacementSize(a.ad_size,b);else var f=a.ad_size;else f=a.ad_size;var g=a.ad_size_desktop,h=a.ad_size_mobile;void 0===a.only_desktop&&void 0===a.only_mobile&&void 0!==g&&void 0!==h&&(f="desktop"==that.device.type?g:h);var i=that.prefixAdUnit(a.ad_unit),j=a.lazy,k=a.styles,l=void 0!==a.att_rules.withLabel&&a.att_rules.withLabel,m=void 0!==a.outside&&a.outside,n=void 0===a.collapse||a.collapse,o=(void 0!==a.callback&&a.callback,void 0!==a.lazy_offset&&parseInt(a.lazy_offset),void 0!==a.wrapper&&a.wrapper),p=(void 0!==a.forced&&a.forced,void 0!==a.sticky&&a.sticky,void 0===a.bound||a.bound,void 0!==a.custom_display&&a.custom_display),q=void 0!==a.maxWidth&&a.maxWidth,r=void 0!==a.minWidth&&a.minWidth,s=void 0!==a.only_mobile&&a.only_mobile,t=void 0!==a.only_desktop&&a.only_desktop,u=(void 0!==a.no_size&&a.no_size,void 0!==a.self_aware&&a.self_aware,void 0!==a.sibling?a.sibling:""),v=void 0!==a.related_to?a.related_to:"";if(""!=v&&null==that.related_to_bounds&&(that.related_to_bounds=that.calculateRemainingSpace(v)),!(q&&window.innerWidth>q||r&&window.innerWidth<r||s&&"desktop"==that.device.type||t&&"desktop"!=that.device.type)){var w=null;if(a.att_rules.length>0&&1!=a.att_rules.att_enforced){a.att_rules=that.sortOutTheRulesPriority(a.att_rules),a.att_rules.sort(function(a,b){return a.priority.toString().localeCompare(b.priority.toString())});for(var x=0;x<a.att_rules.length;x++){var y=a.att_rules[x];if(void 0!==(w=that.identifyElements(y))&&(w instanceof Array&&w.length>0||w instanceof HTMLElement||w instanceof NodeList&&w.length>0)){a.att_rules=y,l=void 0!==a.att_rules.withLabel&&a.att_rules.withLabel;break}}}else w=that.identifyElements(a.att_rules);if(void 0!==w&&null!=w){if(void 0===w.length){if(a.singleton=1,1==a.alternate&&(f=f[0]),f=1==a.no_size?f:!0===a.self_aware?that.adHasSelfSpaceToDisplay(w,f,e):that.adHasSpaceToDisplay(d,f,e),0!=p&&"function"==typeof window[p]){var z=window[p]();if("none"==z)return;f="wide"==z?f:e[0]}if(v&&u){var A=window.outerWidth-that.related_to_bounds.width,B=that.isSiblingInPageWithWidth(u),C=A-B;f=that.adHasSpaceToDisplayMath(C,f,e)}if(void 0!==a.game_related){f=!1;for(var x=0;x<e.length;x++){var D=e[x],E=that.calculateContainer(a.att_rules.value);if("right"==a.game_related){if(Math.abs(E.right-that.game_container_bounds.right-D[0])>150){f=D;break}}}}if(f||!0===a.story)var F=that.placeAdContainer(o,n,1,b,l,w,f,a.att_rules.placement,a.att_rules.method,m,k,a);if(!0===a.sticky&&F&&that.addSticky(a,F),F)if(wgDesktopAdsUtils.hasClass(F,"adWrapper")&&(F=F.getElementsByClassName("wgAd")[0]),""!=a.ad_unit)1==j||(1==c?that.displayAd(F,i):that.appendCode(F,i,a,f));else if(""==a.ad_unit&&1==a.story){var G=document.title;WGStory({dataSource:a.story_api+G,hostElement:document.querySelectorAll("#"+F.getAttribute("id"))[0],width:void 0!==a.story_width?a.story_width:"100%",height:void 0!==a.story_height?a.story_height:"300px",maxItems:void 0!==a.story_items?a.story_items:5,styles:void 0!==a.story_styles?a.story_styles:""})}return F}return wgDesktopAdsOptions.units.inline[d].units[b].iterator=0,a.singleton=1,w.length>1&&(a.singleton=2),w.forEach(function(g,h){if(1==a.alternate)var p=f[h%f.length];else var p=f;var q=a.t_frequency;if(p=that.adHasSpaceToDisplay(d,p,e),"desktop"==that.device.type)try{p=that.adHasSpaceToDisplayNoSize(a.att_rules,p)}catch(a){}if("desktop"!=that.device.type&&void 0!==q&&q>0){if(0==(h+1)%q)for(var r=Object.assign([],p),s=0;s<p.length;s++){var t=p[s];if(300==t[0]&&600==t[1]){r.removeItemAd(s);break}}}if(p)var u=that.placeAdContainer(o,n,wgDesktopAdsOptions.units.inline[d].units[b].iterator,b,l,g,"object"==typeof r?r:p,a.att_rules.placement,a.att_rules.method,m,k,a);if(u)if(wgDesktopAdsOptions.units.inline[d].units[b].iterator++,wgDesktopAdsUtils.hasClass(u,"adWrapper")&&(u=u.getElementsByClassName("wgAd")[0]),""!=a.ad_unit)1==j||(1==c?that.displayAd(u,i):that.appendCode(u,i,a,p));else if(""==a.ad_unit&&1==a.story){var v=document.title.split("-")[0];WGStory({dataSource:a.story_api+v,hostElement:document.querySelectorAll("#"+u.getAttribute("id"))[0],width:void 0!==a.story_width?a.story_width:"100%",height:void 0!==a.story_height?a.story_height:"300px",maxItems:void 0!==a.story_items?a.story_items:5,styles:void 0!==a.story_styles?a.story_styles:""})}}),!0}}},appendAdPlacement:function(a,b,c,d,e){var f=a.ad_falls;if(!0!==a.no_size)if(!0!==a.alternate)var g=that.computeAdPlacementSize(a.ad_size,b);else var g=a.ad_size;else g=a.ad_size;var h=a.ad_unit,i=a.lazy,j=a.styles,k=void 0!==a.att_rules.withLabel&&a.att_rules.withLabel,l=void 0!==a.outside&&a.outside,m=void 0===a.collapse||a.collapse,n=(void 0!==a.callback&&a.callback,void 0!==a.lazy_offset&&parseInt(a.lazy_offset),void 0!==a.wrapper&&a.wrapper),o=(void 0!==a.forced&&a.forced,void 0!==a.sticky&&a.sticky,void 0===a.bound||a.bound,void 0!==a.custom_display&&a.custom_display),p=void 0!==a.maxWidth&&a.maxWidth,q=void 0!==a.minWidth&&a.minWidth,r=void 0!==a.only_mobile&&a.only_mobile,s=void 0!==a.only_desktop&&a.only_desktop;void 0!==a.no_size&&a.no_size;if(!(p&&window.innerWidth>p||q&&window.innerWidth<q||r&&"desktop"==that.device.type||s&&"desktop"!=that.device.type)){var t=that.parentIdentifyElements(a.att_rules,e);if(void 0!==t&&null!=t){if(void 0===t.length){if(1==a.alternate&&(g=g[0]),g=1==a.no_size?g:!0===a.self_aware?that.adHasSelfSpaceToDisplay(t,g,f):that.adHasSpaceToDisplay(d,g,f),0!=o&&"function"==typeof window[o]){var u=window[o]();if("none"==u)return;g="wide"==u?g:f[0]}var v=t.querySelectorAll("."+t.classList[0]+" .wgAd");if(v.length>0)return!1;if(g)var w=that.placeAdContainer(n,m,1,b,k,t,g,a.att_rules.placement,a.att_rules.method,l,j,a);return!0===a.sticky&&w&&that.addSticky(a,w),w&&(wgDesktopAdsUtils.hasClass(w,"adWrapper")&&(w=w.getElementsByClassName("wgAd")[0]),1==i||(1==c?that.displayAd(w,h):that.appendCode(w,h,a,g))),w}t.forEach(function(e,o){if(1==a.alternate)var p=g[o%g.length];else var p=g;var q=e.querySelectorAll("."+e.classList[0]+" .wgAd");if(q.length>0)return!1;if(p=that.adHasSpaceToDisplay(d,p,f))var r=that.placeAdContainer(n,m,o+1,b,k,e,p,a.att_rules.placement,a.att_rules.method,l,j,a);r&&(wgDesktopAdsUtils.hasClass(r,"adWrapper")&&(r=r.getElementsByClassName("wgAd")[0]),1==i||(1==c?that.displayAd(r,h):that.appendCode(r,h,a,p)))})}}},getDistance:function(a,b){var c=a.getBoundingClientRect(),d=b.getBoundingClientRect(),e=c.left+c.width/2,f=c.top+c.height/2,g=d.left+d.width/2,h=d.top+d.height/2,i=Math.pow(e-g,2)+Math.pow(f-h,2);return Math.sqrt(i)},getComputedDistance:function(a,b){var c=a.left+a.width/2,d=a.top+a.height/2,e=b.left+b.width/2,f=b.top+b.height/2,g=Math.pow(c-e,2)+Math.pow(d-f,2);return Math.sqrt(g)},adHasVerticalSpacing:function(a,b){"desktop"==that.device.type?void 0!==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsD&&(wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsD):void 0!==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsM&&(wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsM);var c=document.querySelectorAll(".wgAd");if(void 0!==c)for(var d=0;d<c.length;d++){var e=c[d];if(that.getDistance(a,e)<wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds)return!1}return!0},adHasSpaceToDisplayNoSize:function(a,b){var c=Object.assign([],b),d=document.querySelectorAll(a.value);if(d.length>0){d=d[0];for(var e=d.parentNode.clientWidth,f=0;f<b.length;f++){var g=b[f];"object"==typeof g&&"number"==typeof g[0]&&g[0]>e&&c.removeItemAdByValue(g)}}return c},adHasSpaceToDisplay:function(a,b,c){if("object"!=typeof c)return b;if(void 0===that.sections[a])return b;var d=that.sections[a].width;if(b[0]>d){c=c.sort(function(a,b){return b[0]-a[0]});for(var e=null,f=0;f<c.length;f++){var g=c[f];if(g[0]<b[0]&&g[0]<d){e=g;break}}return null!=e&&e}return b},adHasSpaceToDisplayMath:function(a,b,c){if("object"!=typeof c)return b;if(b[0]>a){c=c.sort(function(a,b){return b[0]-a[0]});for(var d=null,e=0;e<c.length;e++){var f=c[e];if(f[0]<b[0]&&f[0]<a){d=f;break}}return null!=d&&d}return b},adHasSelfSpaceToDisplay:function(a,b,c){if("object"!=typeof c)return b;var d=a.offsetWidth;if(b[0]>d){c=c.sort(function(a,b){return b[0]-a[0]});for(var e=null,f=0;f<c.length;f++){var g=c[f];if(g[0]<b[0]&&g[0]<=d){e=g;break}}return null!=e&&e}return b},appendCode:function(a,b,c,d){if(void 0!==a){a=document.getElementById(a.id);var e=c.ad_codes[d.toString()];if(void 0===e)var e=c.ad_falls_codes[d.toString()];if(void 0!==e){var f=document.createElement("script");f.type="text/javascript",f.async=!0,f.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",a.appendChild(f),a.insertAdjacentHTML("beforeend",e),(adsbygoogle=window.adsbygoogle||[]).push({}),wgDesktopAdsUtils.addClass(a,"wgAd-loaded")}}},placeAdContainer:function(a,b,c,d,e,f,g,h,i,j,k,l){if(void 0===f||null==f)return!1;if("right"==j){var m=void 0!==l.outsideOffset?l.outsideOffset:0,n=f.offsetWidth+f.getBoundingClientRect().left+m;if(n+g[0]>window.innerWidth)return!1}else if("left"==j){var m=void 0!==l.outsideOffset?l.outsideOffset:0,n=f.getBoundingClientRect().left-g[0]-m;if(n<0)return!1}if(1==l.no_size)var o=that.createAdDiv(a,b,c,d,e,g,g,j,f,k,l,n);else var o=that.createAdDiv(a,b,c,d,e,g[0],g[1],j,f,k,l,n);if(j){if(wgDesktopAdsUtils.hasClass(o,"adWrapper"))var p=o.getElementsByClassName("wgAd")[0];else var p=o;that.outside_elements[p.getAttribute("id")]={ref:f,pos:j}}if("append"==i)f.insertAdjacentHTML(h,o.outerHTML);else if("replace"==i)f.parentNode.replaceChild(o,f);else if("inplace"==i)return o;if(wgDesktopAdsUtils.hasClass(o,"adWrapper")){var p=o.getElementsByClassName("wgAd")[0];return p}return o},identifyElements:function(a){var b=a.match;if(void 0===a.type||(a.value,0)){if(void 0!==a.combined)for(var c=0;c<a.combined.length;c++){var d=a.combined[c],e=d.type,f=d.value,g=that.readElements(e,f,b);if(void 0!==g&&g.length>0)break}}else var e=a.type,f=a.value,g=that.readElements(e,f,b);return g},parentIdentifyElements:function(a,b){var c=a.match;if(void 0===a.type||(a.value,0)){if(void 0!==a.combined)for(var d=0;d<a.combined.length;d++){var e=a.combined[d],f=e.type,g=e.value,h=that.parentReadElements(f,g,c,b);if(void 0!==h&&h.length>0)break}}else var f=a.type,g=a.value,h=that.parentReadElements(f,g,c,b);return h},identifyElement:function(a,b){return that.readElements(a,b,1)},initializeSidebar:function(){var a=setInterval(function(){clearInterval(a);var b=that.options.units.sidebar;if(void 0!==b){if(that.sidebar_enabled=!0,that.sidebar_height_interval=that.computeSidebarHeightInterval(b.height_interval),that.sidebar_ad_unit=that.prefixAdUnit(b.ad_unit),that.sidebar_ad_sizes=b.ad_sizes,that.sidebar_infinite=b.infinite,that.sidebar_lazy=b.lazy,that.sidebar_top_margin=b.sidebar_top_margin,that.sidebar_delay_attached=b.sidebar_delay_attached?b.sidebar_delay_attached:0,that.sidebar_height_q=b.sidebar_height_q?b.sidebar_height_q:3,that.sidebar_collapse=void 0!==b.collapse&&b.collapse,that.sidebar_fluid=void 0!==b.fluid&&b.fluid,that.sidebar_styles=b.styles,b.scroll_container.length>0&&b.sidebar_scroll_container.length>0&&b.scroll_container.length==b.sidebar_scroll_container.length)for(var c=0;c<b.scroll_container.length;c++){var d=b.scroll_container[c],e=b.sidebar_scroll_container[c];that.readElementByValue(d)&&that.readElementByValue(e)&&(that.scrollContainer=d,that.sidebarScrollContainer=e)}else that.scrollContainer=b.scroll_container,that.sidebarScrollContainer=b.sidebar_scroll_container;that.footer_page_height=void 0!==b.footer_page_height?b.footer_page_height:0,setTimeout(function(){that.setSidebarMainElements(),that.createSidebarCSS(),that.sidebarHasSpaceForAd()},that.sidebar_delay_attached)}},50)},computeSidebarHeightInterval:function(a){if(void 0===a)return 1500;if(parseInt(a))return a;if("computed"==a){return 3*that.window_height}},createSidebarCSS:function(){var a=document.createElement("style");a.innerHTML="",a.type="text/css",a.innerHTML+="section.wgSection {margin: 0 auto;position: relative;width:336px !important;display:inline-block !important;z-index:998}",a.innerHTML+=".wgPage-break {display:block;margin: 0;position: absolute;top: 0; text-align:center;}",a.innerHTML+="section.wgBottom .wgPage-break {top: auto;bottom: 0;}",a.innerHTML+="section.wgFixed .wgPage-break {position: fixed !important; top:"+(void 0!==that.sidebar_top_margin?that.sidebar_top_margin:0)+"px}",a.innerHTML+=".slide {vertical-align: top;height:100% !important;}",a.innerHTML+=".current img {max-height:70% !important;}";try{that.options&&that.options.units&&that.options.units.sidebar&&that.options.units.sidebar.styles&&(a.innerHTML+=that.options.units.sidebar.styles.cssQuery+"{"+that.options.units.sidebar.styles.value+"}")}catch(a){}document.getElementsByTagName("head")[0].appendChild(a)},MTR:function(a){return"desktop"==wgDeviceDetector.device?(void 0!==a.enableRefreshDesktop&&(a.enableRefresh=a.enableRefreshDesktop),void 0!==a.refreshIntervalsDesktop&&(a.refreshIntervals=a.refreshIntervalsDesktop),void 0!==a.enableLazyLoadDesktop&&(a.enableLazyLoad=a.enableLazyLoadDesktop),void 0!==a.lazyParamsDesktop&&(a.lazyParams=a.lazyParamsDesktop)):(void 0!==a.enableRefreshMobile&&(a.enableRefresh=a.enableRefreshMobile),void 0!==a.refreshIntervalsMobile&&(a.refreshIntervals=a.refreshIntervalsMobile),void 0!==a.enableLazyLoadDMobile&&(a.enableLazyLoad=a.enableLazyLoadMobile),void 0!==a.lazyParamsMobile&&(a.lazyParams=a.lazyParamsMobile)),!0},initializeDFP:function(){var a=document;if(!1===wgDesktopAdsOptions.global.withDFP)return that.dfp_status=!0,!0;if(that.dfp_options=void 0!==wgDesktopAdsOptions.options?wgDesktopAdsOptions.options:{},that.MTR(that.dfp_options),!0===that.dfp_options.addCode){var b=a.createElement("script"),c=a.getElementsByTagName("head")[0];b.type="text/javascript",b.innerText="var googletag = googletag || {};googletag.cmd = googletag.cmd || [];(function() {var gads = document.createElement('script');gads.async = true;gads.type = 'text/javascript';var useSSL = 'https:' == document.location.protocol;gads.src = (useSSL ? 'https:' : 'http:') +'//securepubads.g.doubleclick.net/tag/js/gpt.js';var node = document.getElementsByTagName('script')[0];node.parentNode.insertBefore(gads, node);})();",c.appendChild(b)}var d=setInterval(function(){if(that.adsReady()&&0==that.dfp_status){if(clearInterval(d),googletag.pubads().set("page_url",window.location.href),googletag.pubads().collapseEmptyDivs(!1),0==that.dfp_options.setCentering?googletag.pubads().setCentering(!1):googletag.pubads().setCentering(!0),void 0===that.dfp_options.lazyParams&&(that.dfp_options.lazyParams={fetchMarginPercent:200,renderMarginPercent:100,mobileScaling:2}),0!=that.dfp_options.lazyParams&&(void 0===that.dfp_options.overwriteLazy||null==that.dfp_options.overwriteLazy||""==that.dfp_options.overwriteLazy||0==that.dfp_options.overwriteLazy?googletag.pubads().enableLazyLoad({fetchMarginPercent:100,renderMarginPercent:100,mobileScaling:1}):googletag.pubads().enableLazyLoad({fetchMarginPercent:that.dfp_options.lazyParams.fetchMarginPercent>=0?that.dfp_options.lazyParams.fetchMarginPercent:200,renderMarginPercent:that.dfp_options.lazyParams.renderMarginPercent>=0?that.dfp_options.lazyParams.renderMarginPercent:100,mobileScaling:that.dfp_options.lazyParams.mobileScaling>=0?that.dfp_options.lazyParams.mobileScaling:2})),!0===that.dfp_options.enableVideoAds&&googletag.pubads().enableVideoAds(),!0===that.dfp_options.enableSingleRequest){googletag.pubads().enableSingleRequest()||(that.dfp_options.enableSingleRequest=!1,1==that.dfp_options.disableInitialLoad&&googletag.pubads().disableInitialLoad(),!0===that.dfp_options.enableAsyncRendering&&googletag.pubads().enableAsyncRendering(),googletag.enableServices())}else 1==that.dfp_options.disableInitialLoad&&googletag.pubads().disableInitialLoad(),!0===that.dfp_options.enableAsyncRendering&&googletag.pubads().enableAsyncRendering(),googletag.enableServices();googletag.pubads().addEventListener("slotRenderEnded",that.slotRenderedListener),googletag.pubads().addEventListener("slotResponseReceived",that.slotResponseReceived),googletag.pubads().addEventListener("slotRequested",that.SlotRequestedEvent),!0===that.dfp_options.enableRefresh&&(googletag.pubads().addEventListener("impressionViewable",that.impressionViewable),googletag.pubads().addEventListener("slotVisibilityChanged",that.slotVisibilityChanged)),that.dfp_status=!0}},10);return that.dfp_status},SlotRequestedEvent:function(a){},slotResponseReceived:function(a){},refreshFallbackSlot:function(a){that.refreshAd(a),a.parentElement.style.display="block"},destroyFallbackSlot:function(a){var b=a.parentNode;b.querySelector(".wgAd").getAttribute("data-wgt-name");try{b.removeChild(b.querySelector("[data-cascade-for]"))}catch(a){}},createFallbackSlot:function(a,b,c){delete b.cascade,a+="_cascade",b.ad_unit=that.getFallbackAdUnit(b.ad_unit),b.refreshFC=!1;var d=that.createAdContainerInPlace(a,b,c);if(d=d.querySelector(".wgAd")){d.removeAttribute("data-wgt-rf-trigger"),d.removeAttribute("data-refresh-intervals"),d.removeAttribute("data-refresh-fc");try{d.setAttribute("data-cascade-for",c.querySelector(".wgAd").getAttribute("id"))}catch(a){}if("after"==b.att_rules.labelPlacement)c.insertAdjacentElement("afterbegin",d);else{var e=c.querySelector(".wg_advertisement");e?e.insertAdjacentElement("afterend",d):c.insertAdjacentElement("beforeend",d)}that.displayAd(d,b.ad_unit),c.style.display="block"}},getFallbackAdUnit:function(a){return a=a.replace("/WGAFC/","/WGAFC2/"),a=a.replace("/WGAFCC/","/WGAFC2/"),a=a.replace("/WGAFCSTICKY/","/WGAFC2/")},getFallbackAnchorAdUnit:function(a){return a=a.replace("/WGAFCSTICKY/","/WGAFCANCHOR/"),a=a.replace("/WGAFCSTISS/","/WGAFCANCHOR/")},createAdContainerInPlace:function(a,b,c){var d=void 0===b.collapse||b.collapse,e=void 0!==b.withLabel&&b.withLabel;that.prefixAdUnit(b.ad_unit);if(!0!==b.no_size)if(!0!==b.alternate)var f=that.computeAdPlacementSize(b.ad_size,a);else var f=b.ad_size;else f=b.ad_size;var g=b.ad_size_desktop,h=b.ad_size_mobile;void 0===b.only_desktop&&void 0===b.only_mobile&&void 0!==g&&void 0!==h&&(f="desktop"==that.device.type?g:h);var i=void 0!==b.outside&&b.outside,j=b.styles,k="";if(1==b.no_size)var l=that.createAdDiv(!1,d,that.slots.length+1,a,e,f,f,i,c,j,b,k);else var l=that.createAdDiv(!1,d,that.slots.length+1,a,e,f[0],f[1],i,c,j,b,k);return l},createOrRefreshFallbackUnit:function(a,b){var c=wgDesktopAdsOptions.units.inline.content.units[a];if(null!=c&&void 0!==c){var d=b.querySelector('[data-wgt-name="'+a+'_cascade"]');d?that.refreshFallbackSlot(d):that.createFallbackSlot(a,c,b)}},ipFallback:function(){function a(a,b){return Math.floor(Math.random()*(b-a+1)+a)}var b="",c=window.location.hostname;try{var d=new URL(document.querySelector('script[src*="universal"]').getAttribute("src"));c=d.searchParams.get("lh")}catch(a){c=c.split(".").slice(-2).join(".")}if(0==that.ipBanners.length){const e=new XMLHttpRequest;var f="https://ip.wgplayer.com/assets/games/jsons/"+c+"/index.json";if(!0===wgDesktopAdsOptions.wgcrossbanners)var f="https://ip.wgplayer.com/assets/games/jsons/"+c+"/c_index.json";e.open("GET",f,!1),e.onload=function(){if(!0===wgDesktopAdsOptions.wgcrossbanners){var a=JSON.parse(e.responseText);delete a[c],a=Object.values(a);var b=a.reduce(function(a,b){return a.concat(b)});that.ipBanners=b}else that.ipBanners=JSON.parse(e.responseText)};try{e.send(null)}catch(a){}}var g;if(that.ipBanners.length>0){var h=a(0,that.ipBanners.length-1);b=that.ipBanners[h],g=!0===wgDesktopAdsOptions.wgcrossbanners?'<iframe src="https://ip.wgplayer.com/?id=assets/games/jsons/'+b.file+'" width="wgd_wh" height="wgd_h" border="0" style="border:0px !important"></iframe>':'<iframe src="https://ip.wgplayer.com/?id=assets/games/jsons/'+c+"/"+b.file+'" width="wgd_wh" height="wgd_h" border="0" style="border:0px !important"></iframe>'}return g},reverseMappings:function(a){var b={};if(null!=a)for(var c=JSON.parse(atob(a)),d=window.innerWidth,e=0;e<c.length;e++){var f=c[e][0][0];b[f]=c[e][1]}var g=null;for(var h in b)d>=parseInt(h)&&(g=h);if(null!=g)return b[g]},slotRenderedListener:function(a){try{var b=a.slot.getSlotId(),c=document.getElementById(b.getDomId());if(!wgDesktopAdsUtils.hasClass(c.parentElement,"adWrapper")&&!wgDesktopAdsUtils.hasClass(c.parentElement,"waw"))return;if(a.isEmpty){if(null!=c){var d=c.parentNode,e=!1,f="text-align:center;";try{if(!0!==wgDesktopAdsOptions.wgbanners)var g=d.querySelector(".wgAd").getAttribute("data-wgt-fallback");else{var h=that.ipFallback(),g=btoa(h);f+=d.querySelector(".wgAd").getAttribute("style"),f=f.replace("display: none","display: block")}if(void 0!==g&&null!=g){if(g=atob(g),e=!0,!0!==wgDesktopAdsOptions.wgbanners)var i=d.querySelector(".wgAd").getAttribute("data-wgt-width"),j=d.querySelector(".wgAd").getAttribute("data-wgt-height");else{var k=c.getAttribute("data-wgt-mappings");if(null==k)var i=d.querySelector(".wgAd").getAttribute("data-wgt-width"),j=d.querySelector(".wgAd").getAttribute("data-wgt-height");else{var l=that.reverseMappings(k);try{if("object"==typeof l[0])var i=l[0][0],j=l[0][1];else var i=l[0],j=l[1]}catch(a){}}}var m=d.querySelector(".wgAd").getAttribute("data-wgt-name"),n=d.querySelector(".wgAd").getAttribute("data-wgt-ad-unit"),o=d.querySelector(".wgAd").getAttribute("data-wgt-num");try{var p=document.querySelectorAll('div[data-wgt-rel^="'+o+'"]');void 0!==p&&null!=p&&p.length&&p[0].parentNode.removeChild(p[0])}catch(a){}var q=!1;try{g=JSON.parse(g)}catch(a){}var r=[];"object"!=typeof g&&"DFP"!=g||(r="DFP"==g?[[1,1],"fluid"]:g,g="",q=!0);var s,t=that.makeid();if(i&&j){if(g=g.replace("wgd_wh",i),g=g.replace("wgd_h",j),d.insertAdjacentHTML("beforebegin",'<div class="wgd_fallback_'+m+'" id="wgd_fallback_'+m+"_"+t+'" data-wgt-rel="'+o+'" style="'+f+'">'+g+"</div>"),1==q){var u=that.getFallbackAdUnit(n);u=that.prefixAdUnit(u),googletag.cmd.push(function(){s=googletag.defineSlot(u,r,"wgd_fallback_"+m+"_"+t).addService(googletag.pubads()),googletag.display(s),googletag.pubads().refresh([s])})}}else try{var v=d.querySelector(".wgAd").getAttribute("data-wgt-sizes");if(v=JSON.parse(v),i=v[0][0],j=v[0][1],g=g.replace("wgd_wh",i),g=g.replace("wgd_h",j),d.insertAdjacentHTML("beforebegin",'<div class="wgd_fallback_'+m+'" id="wgd_fallback_'+m+"_"+t+'" data-wgt-rel="'+o+'" style="'+f+'">'+g+"</div>"),1==q){var u=that.getFallbackAdUnit(n);u=that.prefixAdUnit(u),googletag.cmd.push(function(){s=googletag.defineSlot(u,r,"wgd_fallback_"+m+"_"+t).addService(googletag.pubads()),googletag.display(s),googletag.pubads().refresh([s])})}}catch(a){}}}catch(a){}var w=c.getAttribute("data-wgt-sticky");if(w){var x=c.getAttribute("data-wgt-relation");if("false"===x)d.style.minHeight="0px",0==e&&that.hideSticky(c.parentNode);else{var y=c.getAttribute("data-wgt-ad-unit");y=that.getFallbackAnchorAdUnit(y);try{var z=c.parentElement.parentElement;z.parentNode.removeChild(z)}catch(a){}var A;googletag.cmd.push(function(){A=googletag.defineOutOfPageSlot(y,googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR),A&&A.addService(googletag.pubads()),googletag.display(A),that.dfp_options.disableInitialLoad&&googletag.pubads().refresh([A])})}}else"false"!=c.getAttribute("data-wgt-collapse")?(wgDesktopAdsUtils.hasClass(d,"adWrapper")&&(d.style.display="none"),c.style.display="none"):wgDesktopAdsUtils.hasClass(d,"adWrapper")?d.style.minHeight="200px":c.style.minHeight="200px";try{var B=c.getAttribute("data-wgt-name"),C=c.getAttribute("id"),D=that.slots[C];c.getAttribute("data-wgt-viewed");D.visibility=100,D.forced_visibility=!0,that.impressionViewable({slot:D}),that.slotVisibilityChanged({slot:D},!0);var E=c.getAttribute("data-wgt-cascade");"true"==E&&that.createOrRefreshFallbackUnit(B,d)}catch(a){}}}else{try{var d=c.parentNode,F=c.getAttribute("id"),G=!1,H=!1;try{G=F.indexOf("ANCHOR")>-1}catch(a){}try{H=F.indexOf("WGI")>-1}catch(a){}if(0==G&&0==H){delete a.slot.forced,delete a.slot.forced_visibility;try{c.getAttribute("data-cascade-for")||that.destroyFallbackSlot(c)}catch(a){}if(d.style.display="block",!0!==wgDesktopAdsOptions.wgbanners)var g=d.querySelector(".wgAd").getAttribute("data-wgt-fallback");else var g=!0;if(void 0!==g&&null!=g){var m=d.querySelector(".wgAd").getAttribute("data-wgt-name"),o=d.querySelector(".wgAd").getAttribute("data-wgt-num");try{var p=document.querySelectorAll('div[data-wgt-rel^="'+o+'"]');void 0!==p&&null!=p&&p.length&&p[0].parentNode.removeChild(p[0])}catch(a){}}}}catch(a){}try{var I=c.parentNode.querySelector(".wg_advertisement");I&&(I.style.display="block")}catch(a){}var J=c.getAttribute("data-wgt-nowg"),K=c.getAttribute("data-wgt-sticky");if("true"!==J&&!wgDesktopAdsUtils.hasClass(c,"wgPage-break")&&"true"!==K&&!wgDesktopAdsUtils.hasClass(c,"atf_wgAd")&&0==G){var L=c.querySelectorAll("iframe")[0],M=L.getBoundingClientRect().width,N=c.getAttribute("data-wgt-name"),O=(wgDesktopAdsOptions.units.inline.content.units[N],"");c.getAttribute("data-wgt-late-label")&&(O=atob(c.getAttribute("data-wgt-late-label"))),L.insertAdjacentHTML("afterend",'<div class="wgllod" style="width:'+M+'px;margin: 0 auto;">'+O+'<div class="wglogwgafc" style="float:right;z-index: 2147483647;  width:17px;align-self: self-end !important;cursor: pointer; height: 15px; margin-bottom: 10px; margin-top: 5px; background-position: right; background-size: contain; background-repeat: no-repeat; background-image:url(data:image/svg+xml;base64,PHN2ZyBpZD0iSXNvbGF0aW9uX01vZGUiIGRhdGEtbmFtZT0iSXNvbGF0aW9uIE1vZGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI3LjIxIDIxLjMyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzkxOTA5MTt9LmNscy0ye2ZpbGw6I2VkMjIyNDt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNTA0LDQ5OS4yNWMuMDgtLjIuMTQtLjM0LjItLjQ3bDEuMS0yLjZjLjItLjQ2LjM4LS45MS41Ny0xLjM3bC4zNi0uODMuNjYtMS41NWMuMzgtLjg3Ljc3LTEuNzQsMS4xNS0yLjYycy43LTEuNjksMS4wNi0yLjUzLjY0LTEuNDMuOTUtMi4xNWMuMTktLjQ2LjM2LS45NC41Ni0xLjRzLjQ3LTEuMDkuNy0xLjYzLjQyLTEuMDYuNjQtMS41OC40Ny0xLjA5LjcxLTEuNjNsLjM1LS44MmMuMTIsMCwuMjcsMCwuNDMsMGwzLjIzLDBjLjUxLDAsLjU5LjA2Ljc3LjU0YTEuNywxLjcsMCwwLDEsLjE4LjQ0LDEuMTUsMS4xNSwwLDAsMSwwLC41OGMtLjMuNzYtLjY0LDEuNTEtMSwyLjI2LS4yNC41OC0uNDYsMS4xNi0uNywxLjczcy0uNTksMS4zMy0uODgsMmMtLjQzLDEtLjg0LDItMS4yNywzLS4yNS42LS41MSwxLjE5LS43NiwxLjc5LS4zNy44Ny0uNzIsMS43NC0xLjA4LDIuNjFsLS43LDEuNjVjLS4yMS41MS0uNCwxLS42MiwxLjU1LS4xNC4zNC0uMzIuNjctLjQ4LDFhNy43LDcuNywwLDAsMS0uMzMuNzEsMy4xMiwzLjEyLDAsMCwxLTEuOCwxLjMyLDYuMjYsNi4yNiwwLDAsMS0xLjcyLjE1Yy0uNjMsMC0xLjI2LDAtMS44OSwwQzUwNC4zMiw0OTkuMzEsNTA0LjE5LDQ5OS4yNyw1MDQsNDk5LjI1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQ5MC40NyAtNDc4LjAxKSIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQ5OS44Miw0OTkuMjVhLjkxLjkxLDAsMCwxLS4yNS4wN2wtMy43OSwwYS42My42MywwLDAsMS0uMjMtLjA3bC0uNDEtLjk0YS43Ni43NiwwLDAsMSwwLS42OWMuMzItLjcuNjMtMS40MS45My0yLjEyLjM3LS44OC43My0xLjc3LDEuMTEtMi42NC4yNC0uNTcuNTEtMS4xMy43Ni0xLjdzLjM3LS45LjU3LTEuMzVjLjI2LS42Mi41NC0xLjIzLjc5LTEuODZzLjYtMS40Ny45LTIuMjFjLjE4LS40Mi4zOC0uODQuNTYtMS4yN3EuMTUtLjMzLjI3LS42NmE0LjQ5LDQuNDksMCwwLDEsLjkxLTEuNTEsNC41Niw0LjU2LDAsMCwxLC44My0uNjgsMS42NiwxLjY2LDAsMCwxLC41MS0uMTMsNS42Myw1LjYzLDAsMCwxLDEuNTktLjE4Yy41NSwwLDEuMSwwLDEuNjUsMGExLjI0LDEuMjQsMCwwLDEsLjg2LjIxYy0uMDYuMTktLjEyLjM2LS4xOS41My0uMjguNjMtLjU4LDEuMjUtLjg1LDEuODgtLjQyLDEtLjgyLDItMS4yNCwzLS4yMS41MS0uNDQsMS0uNjYsMS41M2wtLjY2LDEuNTNjLS4yNi42LS41NCwxLjItLjgsMS44MXMtLjQ3LDEuMi0uNzIsMS44Yy0uMTguNDQtLjM4Ljg3LS41NiwxLjMxLS4yNy42NC0uNTIsMS4yOS0uOCwxLjk0LS4xOC40My0uMzkuODYtLjU5LDEuMjlaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNDkzLDQ5My40Yy0uMjQtLjQ4LS40OS0xLS43MS0xLjQ3LS4zLS42Ny0uNTctMS4zNi0uODYtMnMtLjY0LTEuNC0xLTIuMWEuNTEuNTEsMCwwLDEsLjA2LS41NSw2LjY2LDYuNjYsMCwwLDAsLjUzLTEuMDcsMy40OCwzLjQ4LDAsMCwxLDIuMTEtMS45MywyLjgxLDIuODEsMCwwLDEsMS4yMi0uMTcsMTEuNjMsMTEuNjMsMCwwLDAsMS4zMiwwYy40MiwwLC44MywwLDEuMjUsMHMuNDQuMS4yOC40N2MtLjI5LjY4LS41NSwxLjM3LS44OSwyLS40OS45NS0uOTEsMS45My0xLjM1LDIuOTEtLjI1LjU2LS41NSwxLjEtLjgsMS42NnMtLjYsMS4zOC0uODgsMi4wOEM0OTMuMyw0OTMuMzYsNDkzLjI0LDQ5My40NSw0OTMsNDkzLjRaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDkwLjQ3IC00NzguMDEpIi8+PC9zdmc+);"</div></div>')}try{var I=c.parentNode.querySelector(".wglogwgafc");I&&I.addEventListener("click",function(a){a.preventDefault(),window.open("https://weegooads.com/","_blank")})}catch(a){}try{"true"==c.getAttribute("data-wgt-sticky")&&(that.showSticky(c.parentNode.parentNode,c),setTimeout(function(){c.style.minHeight=c.querySelector("*").offsetHeight+"px"},100))}catch(a){}}}catch(a){}},impressionViewable:function(a){var b=a.slot,c=document.getElementById(b.getSlotId().getDomId());if(!wgDesktopAdsUtils.hasClass(c,"imut_wgAd")&&!wgDesktopAdsUtils.hasClass(c,"atf_wgAd")&&null!=c){var d=c.getAttribute("data-refresh-intervals");c.setAttribute("data-wgt-viewed","1");var e=null!=c.getAttribute("data-wgt-refreshed")?parseInt(c.getAttribute("data-wgt-refreshed")):1,f=c.getAttribute("data-refresh-fc");f=void 0!==f&&"undefined"!=f&&null!=f&&"true"===f.toLowerCase(),"undefined"==d?d="":"object"!=typeof d&&(d=d.split(",")),b.intervals||(b.intervals=d);var g=51;if(void 0!==wgDesktopAdsOptions.options.refreshVP&&(g=parseInt(wgDesktopAdsOptions.options.refreshVP)),null!=b.intervals&&b.intervals.length>0&&f){var h=c.getAttribute("data-wgt-singleton");that.slotPosition(b);setTimeout(function(){if(b.visibility>g?(b.setTargeting("refreshNo",e),googletag.cmd.push(function(){googletag.pubads().refresh([b])}),c.setAttribute("data-wgt-refreshed",e+1),b.intervals.length&&b.intervals.shift()):b.refreshInterval||(b.refreshInterval=setInterval(function(){b.visibility>g&&(clearInterval(b.refreshInterval),b.setTargeting("refreshNo",e),googletag.cmd.push(function(){googletag.pubads().refresh([b])}),c.setAttribute("data-wgt-refreshed",e+1))},100)),"true"==h){parseInt(b.intervals[0]),that.slotPosition(b)}else{parseInt(b.intervals[0])}},"true"==h?parseInt(b.intervals[0])+1e3*that.slotPosition(b):parseInt(b.intervals[0]))}}},slotPosition:function(a){var b=0;for(var c in that.slots){if(c==a.getSlotElementId())return b;b++}return b},slotVisibilityChanged:function(a,b){var c=a.slot;b||c.forced_visibility?c.visibility=100:c.visibility=a.inViewPercentage},adsReady:function(){var a=window;return void 0!==a.googletag&&(typeof a.googletag&&googletag.apiReady&&void 0!==a.googletag.cmd&&void 0!==a.googletag.defineSlot)},setSidebarMainElements:function(){var a=that.readElementByValue(that.scrollContainer);void 0!==a&&0!=a&&null!=a&&(that.scrollContainerElement=a,that.document_height=a.offsetHeight);var b=that.readElementByValue(that.sidebarScrollContainer);void 0!==b&&0!=b&&null!=b&&(that.sidebarScrollContainerElement=b,that.sidebar_height=b.offsetHeight)},readElementByValue:function(a){return void 0!==a.id?document.getElementById(a.id):void 0!==a.class?document.getElementsByClassName(a.class)[0]:void 0!==a.cssrule&&document.querySelectorAll(a.cssrule)[0]},readElements:function(a,b,c){if("id"==a)var d=document.getElementById(b);else if("class"==a)var d=document.getElementsByClassName(b);else if("tagname"==a)var d=document.getElementsByTagName(b);else if("cssrule"==a)var d=document.querySelectorAll(b);if("id"!=a)if(1==c)var d=d[0];else if(parseInt(c)>1&&"number"==typeof c)var d=d[parseInt(c-1)];else if("object"==typeof c){for(var e=[],f=0;f<c.length;f++){var g=c[f];"number"==typeof g?d.length&&e.push(d[g-1]):"first"==g?d.length&&e.push(d[0]):"last"==g?d.length&&e.push(d[d.length-1]):"middle"==g&&d.length&&e.push(d[Math.floor(d.length/2)])}d=e}else if("all"!=c){for(var e=[],h=c.split(":"),i=parseInt(h[1]),f=0;f<d.length;f++)(f+1)%i==0&&f>0&&e.push(d[f]);d=e}return d},parentReadElements:function(a,b,c,d){if("id"==a)var e=d.getElementById(b);else if("class"==a)var e=d.getElementsByClassName(b);else if("tagname"==a)var e=d.getElementsByTagName(b);else if("cssrule"==a)var e=d.querySelectorAll(b);if("id"!=a)if(1==c)var e=e[0];else if(parseInt(c)>1&&"number"==typeof c)var e=e[parseInt(c-1)];else if("object"==typeof c){for(var f=[],g=0;g<c.length;g++){var h=c[g];"number"==typeof h?f.push(e[h-1]):"first"==h?e.length&&f.push(e[0]):"last"==h?e.length&&f.push(e[e.length-1]):"middle"==h&&e.length&&f.push(e[Math.floor(e.length/2)])}e=f}else if("all"!=c){for(var f=[],i=c.split(":"),j=parseInt(i[1]),g=0;g<e.length;g++)g%j==0&&g>0&&f.push(e[g]);e=f}return e},removeFixed:function(){var a=document.getElementById("execphp-16");void 0!==a&&"fixed"==a.style.position&&(a.style.position="relative")},sidebarHasSpaceForAd:function(){if(1!=that.sidebar_infinite){if(document.querySelectorAll(".wgSection")==that.sidebar_infinite)return!1}var a;if(null!=that.sidebarScrollContainerElement&&that.document_height>0){var b=0,c=Math.ceil(that.document_height-b),d=Math.ceil(that.sidebar_height-b),e=that.sidebar_units;if(c>=d){if(!0===that.sidebar_infinite&&document.hasFocus()){var a,f=that.sidebar_ad_sizes[that.sidebar_units%that.sidebar_ad_sizes.length],g=f[1];if(g+d+that.sidebar_height_interval>that.document_height)var a=that.document_height-d;that.addSidebarPageBreaker(g,a);that.sidebar_units++}else if(!1===that.sidebar_infinite){var f=that.sidebar_ad_sizes[e],g=f[1];that.addSidebarPageBreaker(g);that.sidebar_units=1}else if(parseInt(that.sidebar_infinite)){var h=parseInt(that.sidebar_infinite);if(h>that.sidebar_units){var f=that.sidebar_ad_sizes[that.sidebar_units%that.sidebar_ad_sizes.length],g=f[1];h-1==that.sidebar_units&&(a=that.document_height-that.sidebar_height);that.addSidebarPageBreaker(g,a);that.sidebar_units++}}0==that.stop_sidebar&&document.hasFocus()&&(that.sidebar_height=that.sidebar_height+0,that.replaceSidebarPageBreakers(),that.attachSidebarHandlers(),that.computeSidebarHandlers()),a>=0&&(that.stop_sidebar=!0)}}},attachSidebarPageBreakers:function(){if(null!=that.sidebarScrollContainerElement&&that.document_height>0){var a=that.document_height,b=that.sidebar_height,c=0,d=0;if(!0===that.sidebar_infinite)for(;a>0&&b<that.document_height;){var e=that.sidebar_ad_sizes[c%that.sidebar_ad_sizes.length],f=e[1];if(f+b+that.sidebar_height_interval>that.document_height)var g=that.document_height-f-b;var d=that.addSidebarPageBreaker(f,g);a-=d,b+=d,c++}else if(!1===that.sidebar_infinite)var e=that.sidebar_ad_sizes[c],f=e[1],d=that.addSidebarPageBreaker(f);else if(parseInt(that.sidebar_infinite))for(var h=parseInt(that.sidebar_infinite),i=0;i<h;i++)var e=that.sidebar_ad_sizes[i%that.sidebar_ad_sizes.length],f=e[1],d=that.addSidebarPageBreaker(f)}},refreshAd:function(a){var b=a.getAttribute("id"),c=that.slots[b];googletag.pubads().refresh([c])},displayAd:function(a,b){var c=document.getElementById(a.id);if(void 0!==c&&null!=c&&(a=c),"false"!=a.getAttribute("data-wgt-dfp")&&1==that.dfp_status&&that.adsReady()){if(-1==a.className.indexOf("wgAd-loaded")&&-1==a.className.indexOf("wgAd-skipped")){if("true"==a.getAttribute("data-wgt-loda")){that.lodaItem=a;var d={ad_elm:a,ad_unit:b};return that.queue.push(d),wgDesktopAdsUtils.addClass(a,"wgAd-loaded"),void googlefc.callbackQueue.push({CONSENT_DATA_READY:function(){__tcfapi("getTCData",0,function(b,c){wgDesktopAdsUtils.lodaLoadScript(decodeURIComponent(a.getAttribute("data-wgt-loda-source")))})}})}if(closestElementInside=function(a){var b=a.getBoundingClientRect();"desktop"==that.device.type?void 0!==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsD&&(wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsD):void 0!==wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsM&&(wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds=wgDesktopAdsOptions.global.minVerticalSpaceBetweenAdsM);for(var c=0;c<that.ad_placements.length;c++){var d=that.ad_placements[c],e=d.elm.getBoundingClientRect();if(e.elm=d.elm,!wgDesktopAdsUtils.hasClass(d.elm,"wgAd-skipped")){var f=that.getComputedDistance(b,e);if(f<wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds&&e.elm!=a){if(2==e.elm.getAttribute("data-wgt-priority")&&Math.abs(wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds-f)<=150)continue;return{elem:e.elm,dist:that.getComputedDistance(b,e)}}}}return!0},!wgDesktopAdsUtils.hasClass(a,"wgPage-break")){if("true"==a.getAttribute("data-wgt-forced"));else{var e=closestElementInside(a);if(e instanceof Object){if(0==that.wgddebug){wgDesktopAdsUtils.hasClass(a.parentNode,"adWrapper")?a.parentNode.parentNode.removeChild(a.parentNode):a.parentNode.removeChild(a);try{for(var f=document.querySelectorAll('[data-wgt-name="'+a.getAttribute("data-wgt-name")+'"]'),g=0;g<f.length;g++){var h=f[g];h&&h.setAttribute("data-wgt-pos",g)}}catch(a){}}else wgDesktopAdsUtils.addClass(a,"wgAd-skipped"),a.innerHTML="rejected by "+e.elem.getAttribute("id")+" with priority: "+e.elem.getAttribute("data-wgt-priority")+" | "+e.dist+" < "+wgDesktopAdsOptions.global.minVerticalSpaceBetweenAds+" having priority: "+a.getAttribute("data-wgt-priority"),a.style.border="1px solid red ",a.style.fontSize="12px";var i=a.getBoundingClientRect();return i.elm=a,void that.ad_placements.push(i)}}}googletag.cmd.push(function(){var c=parseInt(a.getAttribute("data-wgt-width")),d=parseInt(a.getAttribute("data-wgt-height")),e=a.getAttribute("data-wgt-name"),f=a.getAttribute("data-wgt-pos"),g=wgDesktopAdsUtils.getCookie("wg_display"),h=a.getAttribute("data-wgt-sizes"),i=!a.getAttribute("data-wgt-collapse")||a.getAttribute("data-wgt-collapse"),j=!!a.getAttribute("data-wgt-targeting")&&a.getAttribute("data-wgt-targeting"),k=!!a.getAttribute("data-wgt-sticky")&&a.getAttribute("data-wgt-sticky"),l=a.getAttribute("data-wgt-placement");if(k&&void 0!==window.wgUniversalAnchor)try{document.querySelectorAll(".wgStickyBottom")[0].style.display="none"}catch(a){}var m=[];if(j.length&&(m=j.split(",")),g=null!=g?parseInt(g):1,h)var n=googletag.defineSlot(b,JSON.parse(h),a.id);else{var n=googletag.defineSlot(b,[c,d],a.id);n.setTargeting("size",c+"x"+d)}var o=a.getAttribute("data-wgt-mappings");if(void 0!==o&&"undefined"!=o&&null!=o)try{var p=JSON.parse(atob(o));if(p instanceof Array){for(var q=googletag.sizeMapping(),r=0;r<p.length;r++){var s=p[r];q=q.addSize(s[0],s[1])}q=q.build(),n.defineSizeMapping(q)}}catch(a){}if("false"!=l&&n.setTargeting("WGAFC",l),n.setTargeting("name",e),n.setTargeting("pos",f),n.setTargeting("display",g),m.length>0)for(var r=0;r<m.length;r++){var t=m[r],u=t.split(":");u.length&&("function"==typeof window[u[1]]?n.setTargeting(u[0],window[u[1]]()):n.setTargeting(u[0],u[1]))}i&&"true"==i?n.setCollapseEmptyDiv(!0):n.setCollapseEmptyDiv(!1),n.addService(googletag.pubads());var v=n.getSlotId();v.getId();that.slots[a.id]=n;a.id;if(!k&&!wgDesktopAdsUtils.hasClass(a,"wgPage-break")){var f=a.getBoundingClientRect();f.elm=a,that.ad_placements.push(f)}if(0==that.dfp_options.enableSingleRequest&&(k&&void 0!==window.wgUniversalAnchor?setTimeout(function(){try{if(!1===window.wgUniversalAnchor){document.querySelectorAll(".wgStickyBottom")[0].style.display="block",googletag.display(a.id),that.dfp_options.disableInitialLoad&&googletag.pubads().refresh([n]);try{var b=document.querySelector('ins[id*="WGAFCANCHOR"]');null!=b&&b.parentElement.removeChild(b)}catch(a){}}}catch(a){}},2e3):(googletag.display(a.id),that.dfp_options.disableInitialLoad&&googletag.pubads().refresh([n]))),wgDesktopAdsUtils.addClass(a,"wgAd-loaded"),!0===that.wgddebug)try{a.parentElement.querySelectorAll(".wg_advertisement")[0].innerHTML=a.getAttribute("id")}catch(a){}var k=!!a.getAttribute("data-wgt-sticky")&&a.getAttribute("data-wgt-sticky"),w=!a.getAttribute("data-wgt-bound")||a.getAttribute("data-wgt-bound");if(k)setTimeout(function(){void 0!==a&&a.parentNode},500);else try{1==w&&(a.style.width=a.parentNode.getBoundingClientRect().width+"px")}catch(a){}})}var j=a.getAttribute("data-wgt-callback");j&&"function"==typeof wgDesktopAdsOptions.options[j]&&wgDesktopAdsOptions.options[j](a)}},setScrollMonitorContainer:function(){that.scrollContainerMonitor=scrollMonitor.createContainer(document.body)},getScrollMonitorContainer:function(){return that.scrollContainerMonitor},computeSidebarHandlers:function(){var a=that.sidebarScrollContainerElement.getElementsByTagName("section"),b=Object.keys(a).map(function(b){return a[b]});b.forEach(function(c,d){var e=a[d],f=e.getElementsByClassName("wgPage-break")[0];if(void 0!==f){var g=f.offsetHeight,h=scrollMonitor.create(e),i=scrollMonitor.create(e,{bottom:-1*g-that.sidebar_top_margin});i.stateChange(function(){if(h.isInViewport)if(i.isInViewport&&i.isAboveViewport){var c=3e3;try{var f=window.innerHeight,g=document.documentElement.scrollHeight;c=g-f}catch(a){}c>500&&wgDesktopAdsUtils.addClass(e,"wgFixed"),void 0!==a[d+1]&&wgDesktopAdsUtils.hasClass(a[d+1],"fixed")&&(wgDesktopAdsUtils.removeClass(e,"wgFixed"),wgDesktopAdsUtils.removeClass(e,"wgBottom"))}else i.isAboveViewport&&d+1!=b.length?(wgDesktopAdsUtils.addClass(e,"wgBottom"),wgDesktopAdsUtils.removeClass(e,"wgFixed")):d+1!=b.length&&(wgDesktopAdsUtils.removeClass(e,"wgFixed"),wgDesktopAdsUtils.removeClass(e,"wgBottom"));else wgDesktopAdsUtils.removeClass(e,"wgFixed"),wgDesktopAdsUtils.removeClass(e,"wgBottom")})}})},attachSidebarHandlers:function(){var a=that.sidebarScrollContainerElement.querySelectorAll("section.wgSection"),b=Object.keys(a).map(function(b){return a[b]});a.length==that.sidebar_infinite&&!0!==that.sidebar_infinite||b.forEach(function(b,c){if(c+1==that.sidebar_units){var d=a[c],e=d.getElementsByClassName("wgPage-break")[0];if(void 0!==e)if(1==that.sidebar_lazy){var f=scrollMonitor.create(d,1200);!0===that.sidebar_infinite&&window.pageYOffset>f.bottom&&that.sidebarHasSpaceForAd(),f.enterViewport(function(){0==("true"==f.watchItem.getElementsByClassName("wgPage-break")[0].getAttribute("data-wgt-dfp"))?that.appendCode(f.watchItem.getElementsByClassName("wgPage-break")[0],"",wgDesktopAdsOptions.units.sidebar,[f.watchItem.getElementsByClassName("wgPage-break")[0].getAttribute("data-wgt-width"),f.watchItem.getElementsByClassName("wgPage-break")[0].getAttribute("data-wgt-height")]):that.displayAd(f.watchItem.getElementsByClassName("wgPage-break")[0],that.sidebar_ad_unit),that.sidebarHasSpaceForAd(),f.destroy()})}else{var g="true"==e.getAttribute("data-wgt-dfp");0==g?that.appendCode(e,"",wgDesktopAdsOptions.units.sidebar,[e.getAttribute("data-wgt-width"),e.getAttribute("data-wgt-height")]):that.displayAd(e,that.sidebar_ad_unit),that.sidebarHasSpaceForAd()}}})},setStyle:function(a,b){for(var c in b)a.style[c]=b[c]},makeid:function(){for(var a="",b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c=0;c<5;c++)a+=b.charAt(Math.floor(Math.random()*b.length));return a},computeTargetingString:function(a){!1!==a&&a.length},attachStickyClose:function(){var a=document.createElement("div"),b=document.createElement("a");return b.setAttribute("class","close_sticky "),b.setAttribute("href","#"),b.innerHTML='<svg height="30" width="56">\n<path d="M0,26 L0,6 A6,6 0 0,1 6,1 L50,1 A6,6 0 0,1 56,6 L56,26 " stroke="#FAFAFA" stroke-width="1" fill="#f9f9f9"></path> \n<g class="down" stroke="#616161" stroke-width="2px" stroke-linecap="square">\n<line x1="22" y1="12" x2="28" y2="18"></line><line x1="28" y1="18" x2="34" y2="12"></line></g> \n</svg>',!1===wgDesktopAdsOptions.sticky_recall&&(b.innerHTML='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="30" width="56"\n\t viewBox="0 0 56 30" style="enable-background:new 0 0 56 30;" xml:space="preserve">\n<style type="text/css">\n\t.st0{fill:#F9F9F9;stroke:#FAFAFA;}\n\t.st1{fill:none;stroke:#616161;stroke-width:1.2138;stroke-linecap:square;}\n</style>\n<path class="st0" d="M0,26V6c0.5-2.9,3-5,6-5h44c3,0,5.5,2.1,6,5v20"/>\n<g>\n\t<line class="st1" x1="24.4" y1="10.4" x2="28" y2="14.1"/>\n\t<line class="st1" x1="28" y1="14.1" x2="31.6" y2="10.4"/>\n</g>\n<g>\n\t<line class="st1" x1="31.6" y1="17.9" x2="28" y2="14.3"/>\n\t<line class="st1" x1="28" y1="14.3" x2="24.4" y2="17.9"/>\n</g>\n</svg>'),a.style.position="absolute",a.style.top="-26px",a.style.left="0px",a.appendChild(b),a},prefixAdUnit:function(a){return void 0!==window.wgNetworkId&&(a=a.replace("/1002212/",window.wgNetworkId)),"true"===wgDesktopAdsUtils.getCookie("wgfall")&&(a=a.replace("/WG","/FWG")),a},handleAdSizesPriorities:function(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if("string"==typeof e)c.push(e);else if("object"==typeof e)if(2==e.length)if("string"==typeof e[0]){var f=e[1];f>0?(b+1)%f==0&&c.push(e[0]):0==f&&c.push(e[0])}else"number"==typeof e[0]&&"number"==typeof e[1]&&c.push(e);else if(3==e.length){var f=e[2];f>0?(b+1)%f==0&&c.push([e[0],e[1]]):0==f&&c.push([e[0],e[1]])}}return c},createWgLabel:function(){var a=document.createElement("DIV");return a.style.display="none",a.className="wgdLogo wgdLogos",a},createWgLabelNoAdvertisement:function(){var a=document.createElement("DIV");return a.style.display="none",a.className="wgdLogoN wgdLogos",a},createAdDiv:function(wrapper,collapse,pos,name,label,width,height,outside,element,styles,options,presumablePosition){var targeting=void 0!==options.targeting&&options.targeting,bound=void 0===options.bound||options.bound,wg_placement=void 0!==options.wg_placement&&options.wg_placement,sibling=void 0!==options.sibling?options.sibling:"",related_to=void 0!==options.related_to?options.related_to:"",refresh_intervals;void 0!==that.dfp_options.refreshIntervals&&"object"==typeof that.dfp_options.refreshIntervals&&(refresh_intervals=that.dfp_options.refreshIntervals),void 0!==options.refresh_intervals&&(refresh_intervals=options.refresh_intervals);var refresh_continous=!1;if(void 0!==that.dfp_options.refreshFC&&1==that.dfp_options.refreshFC&&(refresh_continous=!0),void 0!==options.refreshFC&&(refresh_continous=options.refreshFC),!0===wgDesktopAdsOptions.options.enableRefresh&&(refresh_continous=!0),0==label){var adiv=document.createElement("DIV");if(adiv.className="wgAd",adiv.style.margin="auto",void 0!==styles&&(styles.display="flex",styles.flexDirection="column",styles.justifyContent="center",that.setStyle(adiv,styles)),0!=outside&&("left"==outside?adiv.style.left=presumablePosition+"px":"right"==outside&&(adiv.style.left=presumablePosition+"px")),adiv.style.width=width>0&&width>10?width+"px":"100%",adiv.setAttribute("data-wgt-forced",options.forced),adiv.setAttribute("data-wgt-singleton",1==options.singleton),!0===options.cascade?adiv.setAttribute("data-wgt-cascade",!0):adiv.setAttribute("data-wgt-cascade",!1),!0===options.relation?adiv.setAttribute("data-wgt-relation",!0):adiv.setAttribute("data-wgt-relation",!1),!0===options.no_wg?adiv.setAttribute("data-wgt-nowg",!0):adiv.setAttribute("data-wgt-nowg",!1),!0===options.story?adiv.setAttribute("data-wgt-story",!0):adiv.setAttribute("data-wgt-story",!1),1==options.sticky){void 0!==styles&&1!=options.cascade&&(styles.minHeight="24px",that.setStyle(adiv,styles)),adiv.setAttribute("data-wgt-sticky",!0),!0===options.parallax?(adiv.setAttribute("data-wgt-sticky-parallax",!0),""!=options.parallaxMinHeight&&void 0!==options.parallaxMinHeight?adiv.setAttribute("data-wgt-parallax-min-height",options.parallaxMinHeight):adiv.setAttribute("data-wgt-parallax-min-height",100),""!=options.parallaxCoef&&void 0!==options.parallaxCoef?adiv.setAttribute("data-wgt-parallax-coef",options.parallaxCoef):adiv.setAttribute("data-wgt-parallax-coef",10)):(adiv.setAttribute("data-wgt-sticky-parallax",!1),adiv.setAttribute("data-wgt-parallax-min-height",-1),adiv.setAttribute("data-wgt-parallax-coef",-1));var dClose=this.attachStickyClose();adiv.appendChild(dClose)}options.ad_unit=that.prefixAdUnit(options.ad_unit),height>0&&height>10&&(void 0===styles||void 0!==styles&&void 0===styles.height)&&(adiv.style.height=height+"px");var aid="wgAdPlacement_"+that.getNextAdId();if(adiv.setAttribute("id",aid),!1!==targeting&&adiv.setAttribute("data-wgt-targeting",targeting),adiv.setAttribute("data-wgt-name",name),adiv.setAttribute("data-wgt-pos",pos),adiv.setAttribute("data-wgt-placement",wg_placement),adiv.setAttribute("data-wgt-bound",bound),adiv.setAttribute("data-self-aware",options.self_aware),adiv.setAttribute("data-sibling",sibling),adiv.setAttribute("data-related_to",related_to),adiv.setAttribute("data-refresh-intervals",refresh_intervals),adiv.setAttribute("data-refresh-fc",refresh_continous),adiv.setAttribute("data-wgt-priority",options.att_rules.priority),adiv.setAttribute("data-wgt-t-frequency",options.t_frequency),"in_feed"==name&&adiv.setAttribute("data-wgt-hook",options.att_rules.value),0!=options.withDFP&&1!=options.story&&adiv.setAttribute("data-wgt-ad-unit",options.ad_unit),null!=options.ovl_y&&void 0!==options.ovl_y&&adiv.setAttribute("data-wgt-ovl-y",options.ovl_y),adiv.setAttribute("data-wgt-dfp",void 0===options.withDFP||options.withDFP),adiv.setAttribute("data-wgt-refresh",null!=options.refresh&&void 0!==options.refresh?options.refresh:-1),adiv.setAttribute("data-wgt-rf-trigger",null!=options.rf_trigger&&void 0!==options.rf_trigger?options.rf_trigger:-1),adiv.setAttribute("data-wgt-lz",options.lazy_offset),void 0!==options.outsideOffset&&adiv.setAttribute("data-wgt-outside-offset",options.outsideOffset),null!=options.rf_trigger&&void 0!==options.rf_trigger){var rf_interval=that.makeid();adiv.setAttribute("data-wgt-rf-interval",rf_interval)}if(width>0&&height>0&&(adiv.setAttribute("data-wgt-width",width),adiv.setAttribute("data-wgt-height",height),adiv.setAttribute("data-wgt-collapse",collapse),adiv.setAttribute("data-wgt-callback",options.callback)),void 0!==options.fallback_into||void 0!==options.fallback_into_mobile||void 0!==options.fallback_into_desktop||1==wgDesktopAdsOptions.wgbanners){var vx=that.treatFalbackInto(options,that.device),finto=vx;"object"==typeof finto&&(finto=JSON.stringify(finto)),adiv.setAttribute("data-wgt-fallback",btoa(finto)),adiv.setAttribute("data-wgt-num",that.makeid())}if(1==options.no_size){for(var wdh=width,i=0;i<wdh.length;i++){var size=wdh[i];if("fluid"!=size){var w=size[0],h=size[1],frequency=void 0!==size[2]?size[2]:0;"string"==typeof w&&(w=Math.round(eval(w.replace("parentWidth",element.offsetWidth)))),"string"==typeof h&&(h=Math.round(eval(h.replace("parentHeight",element.offsetHeight)))),size=[w,h,frequency],wdh[i]=size}}wdh=that.handleAdSizesPriorities(wdh,pos),adiv.setAttribute("data-wgt-sizes",JSON.stringify(wdh))}if(options.mappings){try{for(var o=options.mappings,ix=0;ix<o.length;ix++){var o_adSizes=o[ix][1];if(o_adSizes.length>0)for(var ij=0;ij<o_adSizes.length;ij++){var o_adSize=o_adSizes[ij];if("string"!=typeof o_adSize){var o_w=o_adSize[0],o_h=o_adSize[1];"string"==typeof o_w&&(o_w=Math.round(eval(o_w.replace("parentWidth",element.offsetWidth)))),"string"==typeof o_h&&(o_h=Math.round(eval(o_h.replace("parentHeight",element.offsetHeight)))),options.mappings[ix][1][ij][0]=o_w,options.mappings[ix][1][ij][1]=o_h}else options.mappings[ix][1][ij][0]="fluid"}}}catch(a){}adiv.setAttribute("data-wgt-mappings",btoa(JSON.stringify(options.mappings)))}if(void 0!==options.variations){var lodaContainer=options.variations.loda_container,loda=options.variations.loda,loda_command=options.variations.loda_command,docl=options.variations.docl,fc=options.variations.fc,lodaCanVariate=wgDesktopAdsUtils.lodaCanVariate("loda_"+name,fc);lodaCanVariate&&(wgDesktopAdsUtils.lodaAttachEvent(docl),adiv.innerHTML=lodaContainer,wgDesktopAdsUtils.addClass(adiv,"wgVideoPlacement"),adiv.setAttribute("data-wgt-loda",!0),wgDesktopAdsUtils.lodaExecute(loda_command),adiv.setAttribute("data-wgt-loda-source",encodeURIComponent(loda)))}if(0==options.sticky||void 0===options.sticky){var adWrapper=document.createElement("DIV");adWrapper.className="adWrapper",adWrapper.appendChild(adiv)}if(!0===options.no_wg||0==options.sticky||options.sticky,0==options.sticky||void 0===options.sticky)var returns=adWrapper;else{var returns=adiv,waw=document.createElement("DIV");waw.className="waw",waw.style.width="100%",waw.style.height="100%",waw.style.overflow="hidden",waw.appendChild(returns),returns=waw}}else{var adWrapper=document.createElement("DIV");adWrapper.className="adWrapper";var advertisement=document.createElement("DIV");if(void 0===options.game_related?advertisement.style.margin="0 auto":adWrapper.style.textAlign=options.game_related,1!=options.story&&(advertisement.style.display="none"),advertisement.className="wg_advertisement",void 0!==styles&&void 0!==styles.label)for(var prop in styles.label)advertisement.style[prop]=styles.label[prop];0!=outside&&("left"==outside?adWrapper.style.left=presumablePosition+"px":"right"==outside&&(adWrapper.style.left=presumablePosition+"px")),options.ad_unit=that.prefixAdUnit(options.ad_unit),void 0===options.game_related&&(advertisement.style.width=width>0&&width>10?width+"px":"100% !important"),void 0===options.game_related?advertisement.style.textAlign="center":advertisement.style.textAlign=options.game_related,advertisement.innerHTML=label,"before"!=options.att_rules.labelPlacement&&void 0!==options.att_rules.labelPlacement||adWrapper.appendChild(advertisement);var adiv=document.createElement("DIV");if(adiv.className="wgAd",!0===options.cascade?adiv.setAttribute("data-wgt-cascade",!0):adiv.setAttribute("data-wgt-cascade",!1),!0===options.relation?adiv.setAttribute("data-wgt-relation",!0):adiv.setAttribute("data-wgt-relation",!1),!0===options.no_wg?adiv.setAttribute("data-wgt-nowg",!0):adiv.setAttribute("data-wgt-nowg",!1),!0===options.story?adiv.setAttribute("data-wgt-story",!0):adiv.setAttribute("data-wgt-story",!1),void 0===options.game_related&&(adiv.style.margin="auto"),void 0===options.game_related&&(adiv.style.width=width>0&&width>10?width+"px":"100%"),height>0&&height>10&&(adiv.style.height=height+"px"),adiv.setAttribute("data-wgt-forced",options.forced),adiv.setAttribute("data-wgt-singleton",1==options.singleton),0!=outside&&null!=options.a_top&&void 0!==options.a_top){var top_elm=document.querySelector(options.a_top);if(void 0!==top_elm)var top_pos=top_elm.getBoundingClientRect().top;adWrapper.style.top=top_pos+"px"}var aid="wgAdPlacement_"+that.getNextAdId();if(adiv.setAttribute("id",aid),1==options.sticky&&(void 0!==styles&&(styles.minHeight="24px",that.setStyle(adiv,styles)),adiv.setAttribute("data-wgt-sticky",!0),!0===options.parallax?(adiv.setAttribute("data-wgt-sticky-parallax",!0),""!=options.parallaxMinHeight&&void 0!==options.parallaxMinHeight?adiv.setAttribute("data-wgt-parallax-min-height",options.parallaxMinHeight):adiv.setAttribute("data-wgt-parallax-min-height",100),""!=options.parallaxCoef&&void 0!==options.parallaxCoef?adiv.setAttribute("data-wgt-parallax-coef",options.parallaxCoef):adiv.setAttribute("data-wgt-parallax-coef",10)):(adiv.setAttribute("data-wgt-sticky-parallax",!1),adiv.setAttribute("data-wgt-parallax-min-height",-1),adiv.setAttribute("data-wgt-parallax-coef",-1)),adiv.appendChild(this.attachStickyClose())),adiv.setAttribute("data-sibling",sibling),adiv.setAttribute("data-related_to",related_to),!1!==targeting&&adiv.setAttribute("data-wgt-targeting",targeting),adiv.setAttribute("data-wgt-name",name),adiv.setAttribute("data-wgt-pos",pos),adiv.setAttribute("data-wgt-placement",wg_placement),adiv.setAttribute("data-wgt-bound",bound),adiv.setAttribute("data-wgt-priority",options.att_rules.priority),adiv.setAttribute("data-wgt-t-frequency",options.t_frequency),"in_feed"==name&&adiv.setAttribute("data-wgt-hook",options.att_rules.value),0!=options.withDFP&&adiv.setAttribute("data-wgt-ad-unit",options.ad_unit),adiv.setAttribute("data-refresh-intervals",refresh_intervals),adiv.setAttribute("data-refresh-fc",refresh_continous),adiv.setAttribute("data-self-aware",!!options.self_aware&&options.self_aware),adiv.setAttribute("data-wgt-dfp",void 0===options.withDFP||options.withDFP),adiv.setAttribute("data-wgt-refresh",null!=options.refresh&&void 0!==options.refresh?options.refresh:-1),adiv.setAttribute("data-wgt-rf-trigger",null!=options.rf_trigger&&void 0!==options.rf_trigger?options.rf_trigger:-1),adiv.setAttribute("data-wgt-lz",options.lazy_offset),null!=options.ovl_y&&void 0!==options.ovl_y&&adiv.setAttribute("data-wgt-ovl-y",options.ovl_y),void 0!==options.outsideOffset&&adiv.setAttribute("data-wgt-outside-offset",options.outsideOffset),null!=options.rf_trigger&&void 0!==options.rf_trigger){var rf_interval=that.makeid();adiv.setAttribute("data-wgt-rf-interval",rf_interval)}if(width>0&&height>0&&(adiv.setAttribute("data-wgt-name",name),adiv.setAttribute("data-wgt-placement",wg_placement),adiv.setAttribute("data-wgt-width",width),adiv.setAttribute("data-wgt-height",height)),adiv.setAttribute("data-wgt-collapse",collapse),adiv.setAttribute("data-wgt-callback",options.callback),void 0!==options.fallback_into||void 0!==options.fallback_into_mobile||void 0!==options.fallback_into_desktop||1==wgDesktopAdsOptions.wgbanners){var vx=that.treatFalbackInto(options,that.device),finto=vx;"object"==typeof finto&&(finto=JSON.stringify(finto)),adiv.setAttribute("data-wgt-fallback",btoa(finto)),adiv.setAttribute("data-wgt-num",that.makeid())}if(1==options.no_size){for(var wdh=width,i=0;i<wdh.length;i++){var size=wdh[i];if("fluid"!=size){var w=size[0],h=size[1],frequency=void 0!==size[2]?size[2]:0;"string"==typeof w&&(w=Math.round(eval(w.replace("parentWidth",element.offsetWidth)))),"string"==typeof h&&(h=Math.round(eval(h.replace("parentHeight",element.offsetHeight)))),size=[w,h,frequency],wdh[i]=size}}wdh=that.handleAdSizesPriorities(wdh,pos),adiv.setAttribute("data-wgt-sizes",JSON.stringify(wdh))}if(options.mappings){try{for(var o=options.mappings,ix=0;ix<o.length;ix++){var o_adSizes=o[ix][1];if(o_adSizes.length>0)for(var ij=0;ij<o_adSizes.length;ij++){var o_adSize=o_adSizes[ij];if("string"!=typeof o_adSize){var o_w=o_adSize[0],o_h=o_adSize[1];"string"==typeof o_w&&(o_w=Math.round(eval(o_w.replace("parentWidth",element.offsetWidth)))),"string"==typeof o_h&&(o_h=Math.round(eval(o_h.replace("parentHeight",element.offsetHeight)))),options.mappings[ix][1][ij][0]=o_w,options.mappings[ix][1][ij][1]=o_h}else options.mappings[ix][1][ij][0]="fluid"}}}catch(a){}adiv.setAttribute("data-wgt-mappings",btoa(JSON.stringify(options.mappings)))}if(void 0!==options.variations){var lodaContainer=options.variations.loda_container,loda=options.variations.loda,loda_command=options.variations.loda_command,docl=options.variations.docl,fc=options.variations.fc,lodaCanVariate=wgDesktopAdsUtils.lodaCanVariate("loda_"+name,fc);lodaCanVariate&&(wgDesktopAdsUtils.lodaAttachEvent(docl),adiv.setAttribute("data-wgt-loda-source",encodeURIComponent(loda)),adiv.innerHTML=lodaContainer,wgDesktopAdsUtils.addClass(adiv,"wgVideoPlacement"),adiv.setAttribute("data-wgt-loda",!0),wgDesktopAdsUtils.lodaExecute(loda_command))}if(adWrapper.appendChild(adiv),"after"==options.att_rules.labelPlacement&&!0===options.no_wg)adWrapper.appendChild(advertisement);else if("after"==options.att_rules.labelPlacement&&1!=options.no_wg){advertisement.style.display="inline-block";var wggg=advertisement.outerHTML||(new XMLSerializer).serializeToString(advertisement);adiv.setAttribute("data-wgt-late-label",btoa(wggg))}options.no_wg;var returns=adWrapper}if(void 0!==styles)for(var prop in styles)"label_styles"!==prop&&(returns.style[prop]=styles[prop]);return 0!=wrapper&&(Array.isArray(wrapper)?wrapper.forEach(function(a){returns=that.wrapPlacement(a,returns)}):returns=that.wrapPlacement(wrapper,returns)),returns},treatFalbackInto:function(a,b){return void 0===a.fallback_into_desktop&&void 0===a.fallback_into_mobile?a.fallback_into:"desktop"==b.type?a.fallback_into_desktop:a.fallback_into_mobile},wrapPlacement:function(a,b){if(void 0!==a.type&&void 0!==a.element&&void 0!==a.value){var c=document.createElement(a.element);if(c[a.type]=a.value,c.className=c.className+" adWrapper",void 0!==a.styles&&that.setStyle(c,a.styles),void 0!==a.withLabel){var d=document.createElement("DIV");d.style.margin="0 auto",1!=options.story&&(d.style.display="none"),d.className="wg_advertisement",d.style.fontSize="12px",d.style.textAlign="center",d.style.color="#686d73",d.innerHTML=a.withLabel}return"before"==a.labelPlacement&&c.appendChild(d),c.appendChild(b),"after"==a.labelPlacement&&c.appendChild(d),void 0!==a.attr&&Object.keys(a.attr).map(function(b,d){var e=a.attr[b];c.setAttribute(b,e)}),c}return b},getNextAdId:function(){return that.ad_id++},replaceSidebarPageBreakers:function(){var a,b=document.getElementsByClassName("wgPage-break"),c=b.length;void 0!==that.dfp_options.refreshIntervals&&"object"==typeof that.dfp_options.refreshIntervals&&(a=that.dfp_options.refreshIntervals);var d=!1;void 0!==that.dfp_options.refreshFC&&1==that.dfp_options.refreshFC&&(d=!0);for(var e=0;e<c;e++)if(e+1==that.sidebar_units&&document.hasFocus()){var f=e%that.sidebar_ad_sizes.length,g=document.createElement("DIV");if(g.className="wgAd",g.style.margin="0px auto",g.style.height=that.sidebar_ad_sizes[f][1]+"px",g.style.width=that.sidebar_ad_sizes[f][0]+"px",void 0!==that.sidebar_styles)for(var h in that.sidebar_styles)g.style[h]=that.sidebar_styles[h];var i="wgAdSidebar_"+e;g.setAttribute("id",i),g.className="wgPage-break",g.setAttribute("data-wgt-name","wg_sidebar"),g.setAttribute("data-wgt-pos",e+1),g.setAttribute("data-wgt-id",b[e].getAttribute("id")),g.setAttribute("data-wgt-dfp",b[e].getAttribute("data-wgt-dfp")),g.setAttribute("data-refresh-intervals",a),g.setAttribute("data-refresh-fc",d),1==that.sidebar_fluid?(g.setAttribute("data-wgt-width",336),g.setAttribute("data-wgt-height",600)):(g.setAttribute("data-wgt-width",that.sidebar_ad_sizes[f][0]),g.setAttribute("data-wgt-height",that.sidebar_ad_sizes[f][1])),g.setAttribute("data-wgt-collapse",that.sidebar_collapse),1==that.sidebar_fluid&&g.setAttribute("data-wgt-sizes",JSON.stringify(that.sidebar_ad_sizes)),b[e].parentNode.replaceChild(g,b[e]),g=null,i=null}},addSidebarPageBreaker:function(a,b){var c=document.createElement("section");c.className="wgSection";var d=document.createElement("DIV");d.className="wgPage-break";var e=0;if(b>=0&&(e=void 0!==wgDesktopAdsOptions.global.sidebar_stop_height?wgDesktopAdsOptions.global.sidebar_stop_height:0,d.setAttribute("id","wgLastAdSidebar")),d.style.height=a+"px",d.style.display="block",d.style.position="relative",d.setAttribute("data-wgt-dfp",void 0===wgDesktopAdsOptions.units.sidebar.withDFP||wgDesktopAdsOptions.units.sidebar.withDFP),1===this.sidebar_infinite)var f=Math.ceil(b)-wgDesktopAdsOptions.global.sidebar_stop_height-1e4;else var f=Math.ceil(that.sidebar_height_interval);var g=that.scrollContainerElement.getBoundingClientRect().height,h=that.sidebarScrollContainerElement.getBoundingClientRect().height+e,i=Math.ceil(g-h);if(!(i>=a)){if(i<=0)return 0;var j=document.querySelectorAll(".wgSection div.separator"),k=j[j.length-1];return k&&(k.style.height=Math.ceil(k.getBoundingClientRect().height+i)+"px"),0}that.sidebar_height_interval<i||i>a&&(f=g-h);var l=document.createElement("DIV");return l.className="separator",l.style.height=f+"px",c.appendChild(d),l.style.position="relative",l.style.display="block",l.style.zIndex="-1",c.appendChild(l),d.id,d=null,l=null,that.sidebarScrollContainerElement.appendChild(c),c=null,f}},hasResourcesInterval=2500,hasResources=setInterval(function(){hasResourcesInterval--,void 0!==window.wgDesktopAdsOptions?(clearInterval(hasResources),that.init()):hasResourcesInterval<0&&clearInterval(hasResources)},1);return window.addEventListener("resize",function(){that.resizeWindow()},!1),window.addEventListener("scroll",function(){that.sidebar_enabled&&document.hasFocus()&&setTimeout(function(){var a=document.querySelectorAll("div.wgPage-break"),b={};if(void 0!==a){for(var c=0;c<a.length;c++){var d=a[c];if(void 0!==d&&null!=d){if("wgLastAdSidebar"==d.getAttribute("data-wgt-id")){var b=d;break}}}if(document.body.offsetHeight-window.pageYOffset<500)try{void 0!==a[a.length-1]&&a.lenght>2&&wgDesktopAdsUtils.removeClass(a[a.length-1].parentNode,"wgFixed")}catch(d){}if(void 0!==b.parentNode&&"undefined"!=typeof wgda){var e=b.parentNode.getBoundingClientRect().bottom+b.getBoundingClientRect().top+b.getBoundingClientRect().height>=b.getBoundingClientRect().bottom+b.parentNode.getBoundingClientRect().height,f=b.parentNode.getBoundingClientRect().bottom<=b.getBoundingClientRect().bottom,g=document.body,h=document.documentElement,i=Math.max(g.scrollHeight,g.offsetHeight,h.clientHeight,h.scrollHeight,h.offsetHeight);if(b.parentNode.offsetTop+Math.abs(b.parentNode.getBoundingClientRect().top)>i){Math.abs(b.parentNode.getBoundingClientRect().left);wgDesktopAdsUtils.addClass(b.parentNode,"wgBottom"),wgDesktopAdsUtils.removeClass(b.parentNode,"wgFixed")}if(e){Math.abs(b.parentNode.getBoundingClientRect().left);wgDesktopAdsUtils.removeClass(b.parentNode,"wgBottom"),wgDesktopAdsUtils.removeClass(b.parentNode,"wgFixed")}if(f){Math.abs(b.parentNode.getBoundingClientRect().left);wgDesktopAdsUtils.addClass(b.parentNode,"wgBottom"),wgDesktopAdsUtils.removeClass(b.parentNode,"wgFixed")}}}},10)}),that};!function(a,b){function c(){if(!f){f=!0;for(var a=0;a<e.length;a++)e[a].fn.call(window,e[a].ctx);e=[]}}function d(){"complete"===document.readyState&&c()}a=a||"docReadys",b=b||window;var e=[],f=!1,g=!1;b[a]=function(a,b){if(f)return void setTimeout(function(){a(b)},1);e.push({fn:a,ctx:b}),"complete"===document.readyState?setTimeout(c,1):g||(document.addEventListener?(document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1)):(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",c)),g=!0)}}("docReadys",window),function(a,b){a=a||"wgDesktopAdsUtils",b=b||window,b[a]={init:function(){},showUnits:function(){if(wgDesktopAdsOptions.units.sidebar,void 0===wgDesktopAdsOptions.units.inline);else for(var a in wgDesktopAdsOptions.units.inline)this.showGroup(wgDesktopAdsOptions.units.inline[a],a);return!0},showGroup:function(a,b){for(adunit in a.units);return!0},rndFindCeil:function(a,b,c,d){for(var e;c<d;)e=c+(d-c>>1),b>a[e]?c=e+1:d=e;return a[c]>=b?c:-1},rndMyRnd:function(a,b,c){var d,e=[];for(e[0]=b[0],d=1;d<c;++d)e[d]=e[d-1]+b[d];var f=Math.floor(Math.random()*e[c-1])+1;return a[this.rndFindCeil(e,f,0,c-1)]},runMyRnd:function(){var a=[1,2,3,4],b=[10,5,20,100],c=a.length,d=this.rndMyRnd(a,b,c);return 1==d},lodaLoadScript:function(a){if(a){var b=document.createElement("script");b.type="text/javascript",b.src=a,document.head.append(b)}},lodaAttachEvent:function(a){document.addEventListener(a,function(a){if(wgda.lodaItem){wgda.lodaItem.removeAttribute("data-wgt-loda"),wgDesktopAdsUtils.removeClass(wgda.lodaItem,"wgAd-loaded");var b=document.querySelectorAll(".wgContainerVideo");b&&void 0!==b[0]&&null!=b&&b[0].remove(),wgda.dfp_options.enableSingleRequest?(wgda.dfp_options.enableSingleRequest=!1,wgda.displayAd(wgda.lodaItem,wgda.lodaItem.getAttribute("data-wgt-ad-unit"))):wgda.processQueue(),setTimeout(function(){wgDesktopAdsUtils.removeClass(wgda.lodaItem,"wgVideoPlacement")},300)}})},lodaExecute:function(a){if(a){return new Function(a)()}},lodaCanVariate:function(a,b){if(-1==b)return!0;var c="_WG_"+a,d=new Date;if(a&&b){var e=localStorage.getItem(c);if(null==e){var f=new Date(d.getTime()+6e4*b);return localStorage.setItem(c,f.getTime()),!0}if(d.getTime()>e){var f=new Date(d.getTime()+6e4*b);return localStorage.setItem(c,f.getTime()),!0}return!1}},hasClass:function(a,b){if(a&&b){var c=new RegExp("\\b"+b+"\\b","");return!!a.className.match(c)}},addClass:function(a,b){a&&b&&(this.hasClass(a,b)||(a.className+=" "+b,a.className=a.className.replace(/\s\s+/g," ")))},removeClass:function(a,b){if(a&&b&&this.hasClass(a,b)){var c=new RegExp("\\b"+b+"\\b","");a.className=a.className.replace(c,""),a.className=a.className.replace(/\s\s+/g," ")}},removeChildren:function(a){if(a)for(;a.firstChild;)a.removeChild(a.firstChild)},setCookie:function(a,b,c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="expires="+d.toUTCString();document.cookie=a+"="+b+"; "+e+"; path=/"},getCookie:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return null},unescape:function(a){return a.replace(/&#(\d+);/g,function(a,b){return String.fromCharCode(b)})},escape:function(a){for(var b=[],c=a.length-1;c>=0;c--)b.unshift(["&#",a[c].charCodeAt(),";"].join(""));return b.join("")},arrayCompare:function(a,b){if(a.length!=b.length)return!1;for(var c=b.length,d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0},inArray:function(a,b){for(var c=b.length,d=0;d<c;d++)if("object"==typeof b[d]){if(this.arrayCompare(b[d],a))return!0}else if(b[d]==a)return!0;return!1},getRandomInt:function(a,b){return Math.floor(Math.random()*(b-a+1))+a},css:function(a,b,c){if(a)if("object"==typeof b)for(var d in b)if(a.length)for(var e=0;e<a.length;e++)a[e].style&&a[e].style.setProperty&&a[e].style.hasOwnProperty(d)&&a[e].style.setProperty(d,b[d]);else{if(!a.style||!a.style.setProperty)return;a.style.hasOwnProperty(d)&&a.style.setProperty(d,b[d])}else if("string"==typeof b)if(a.length)for(var e=0;e<a.length;e++)a[e].style&&a[e].style.setProperty&&a[e].style.setProperty(b,c);else{if(!a.style||!a.style.setProperty)return;a.style.setProperty(b,c)}},outerHeight:function(a,b){var c=a.offsetHeight;if(b){var d=getComputedStyle(a);c+=parseInt(d.marginTop)+parseInt(d.marginBottom)}return c},outerWidth:function(a,b){var c=a.offsetWidth;if(b){var d=getComputedStyle(a);c+=parseInt(d.marginLeft)+parseInt(d.marginRight)}return c},offset:function(a){return},getStyle:function(a,b){var c,d=(a.ownerDocument||document).defaultView;return d&&d.getComputedStyle?(b=b.replace(/([A-Z])/g,"-$1").toLowerCase(),d.getComputedStyle(a,null).getPropertyValue(b)):a.currentStyle?(b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=a.currentStyle[b],/^\d+(em|pt|%|ex)?$/i.test(c)?function(b){var c=a.style.left,d=a.runtimeStyle.left;return a.runtimeStyle.left=a.currentStyle.left,a.style.left=b||0,b=a.style.pixelLeft+"px",a.style.left=c,a.runtimeStyle.left=d,b}(c):c):void 0},elementInViewport:function(a){for(var b=a.offsetTop,c=a.offsetLeft,d=a.offsetWidth,e=a.offsetHeight;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop,c+=a.offsetLeft;return b>=window.pageYOffset&&c>=window.pageXOffset&&b+e<=window.pageYOffset+window.innerHeight&&c+d<=window.pageXOffset+window.innerWidth},isElementInViewport:function(a){var b=a.getBoundingClientRect();return b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)},dispatchRepositionEvent:function(a){var b=new CustomEvent("wgd_ads_moved",{detail:a});document.dispatchEvent(b)},repositionAds:function(a,b,c){WGDleftAd=a.parentElement;var d=document.querySelectorAll(b)[0],e=WGDleftAd.getBoundingClientRect(),f=d.getBoundingClientRect();"left"==c?(WGDleftAd.style.transform="translateX(0px)",WGDleftAd.style.transform="translateX(-"+(150-(f.left-e.right))+"px)"):WGDleftAd.style.transform="translateX(-"+(150-(e.right-f.left))+"px)"},attachRepositionEvent:function(){document.addEventListener("wgd_ads_moved",function(a){var b=a.detail;if(b.ads.length>0)for(var c=0;c<b.ads.length;c++){var d=b.ads[c];if(!wgDesktopAdsUtils.isElementInViewport(d)){if(wgDesktopAdsUtils.hasClass(d,"adWrapper")){d=d.getElementsByClassName("wgAd")[0];var e=(d.getAttribute("data-wgt-width"),d.getAttribute("data-wgt-height"),wgDesktopAdsOptions.units.inline.content.units[d.getAttribute("data-wgt-name")].ad_falls);if(wgDesktopAdsUtils.removeAdContents(d),e.length>0){for(var f=0;f<e.length;f++)if(wgDesktopAdsUtils.resizeContainer(d,e[f]),wgDesktopAdsUtils.isElementInViewport(d)){e[f];break}wgDesktopAdsUtils.repositionAds(d,wgDesktopAdsOptions.units.inline.content.units[d.getAttribute("data-wgt-name")].game_container,wgDesktopAdsOptions.units.inline.content.units[d.getAttribute("data-wgt-name")].outside),wgda.displayAd(d,wgDesktopAdsOptions.units.inline.content.units[d.getAttribute("data-wgt-name")].ad_unit)}}}}},!1)},removeAdContents:function(a){void 0!==a&&a.removeChild(a.firstChild)},resizeContainer:function(a,b){a.style.width=b[0]+"px",a.style.height=b[1]+"px",a.setAttribute("data-wgt-width",a.style.width),a.setAttribute("id",a.getAttribute("id")+"_1"),a.setAttribute("data-wgt-height",a.style.height),a.setAttribute("data-google-query-id",null),a.setAttribute("data-wgt-ad-displayed",null),wgDesktopAdsUtils.removeClass(a,"wgAd-loaded"),parent=a.parentNode,wgDesktopAdsUtils.hasClass(parent,"adWrapper")&&(parent.style.width=b[0]+"px",parent.firstChild.style.width=b[0]+"px")}}}("wgDesktopAdsUtils",window);