/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});var advads_options={"blog_id":"1","privacy":{"enabled":!1,"state":"not_needed"}};(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){if("function"!=typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}}function t(){var t,o=this.parentNode,a=arguments.length;if(o)for(a||o.removeChild(this);a--;)"object"!==e(t=arguments[a])?t=this.ownerDocument.createTextNode(t):t.parentNode&&t.parentNode.removeChild(t),a?o.insertBefore(t,this.nextSibling):o.replaceChild(t,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=t),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=t),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=t),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){var o,a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage:function(){"use strict";try{return!(!window||void 0===window.localStorage)&&(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),!0)}catch(e){return!1}},max_per_session:function(e,t){var o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e,t){var o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:function(e){return!!get_cookie(e)||(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,a,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),a=n[t].substr(n[t].indexOf("=")+1),(o=o.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(a)},set_cookie:function(e,t,o,a,n,i){var s=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,s,a,n,i)},set_cookie_sec:function(e,t,o,a,n,i){var s=new Date;s.setSeconds(s.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+s.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==n?"":"; domain="+n)+(null==i?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move:function(e,t,o){var a=jQuery(e),n=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+n+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative:function(e,t){t=void 0!==t?t:{};var o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element:function(e,t){t=void 0!==t?t:{};var o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();var a=parseInt(o.offset().top),n=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){var i=jQuery(window).width()-n-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",i+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",n+"px").css("right","")},find_wrapper:function(e,t){var o;return jQuery("body").children().each((function(a,n){if(n.id!==e.substring(1)){var i=jQuery(n);if("right"===t&&i.offset().left+jQuery(i).width()<jQuery(window).width()||"left"===t&&i.offset().left>0)return"static"!==i.css("position")&&""!==i.css("position")||i.css("position","relative"),o=n,!1}})),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close:function(e){jQuery(e).remove()},wait_for_images:function(e,t){var o=0,a=[];e.find('img[src][src!=""]').each((function(){a.push(this.src)})),0===a.length&&t.call(e),jQuery.each(a,(function(n,i){var s=new Image;s.src=i;var r="load error";jQuery(s).one(r,(function n(i){if(jQuery(this).off(r,n),++o==a.length)return t.call(e[0]),!1}))}))},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?"),t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var o=0,a=setInterval((function(){switch(600==++o&&clearInterval(a),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(a),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(a),window.__tcfapi("addEventListener",2,(function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){var o="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",o));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",o));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",o)}}))}}),100);return advads.privacy.state},is_adsense_npa_enabled:function(){return!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"])},dispatch_event:function(e,t){var o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push((function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))}))},is_ad_decoded:function(e){return null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]')},decode_ad:function(e,t){t="boolean"!=typeof t||t;var o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",(function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)}))})();var advanced_ads_pro_visitor_conditions={"referrer_cookie_name":"advanced_ads_pro_visitor_referrer","referrer_exdays":"365","page_impr_cookie_name":"advanced_ads_page_impressions","page_impr_exdays":"3650"};!function(){var e;"object"==typeof advanced_ads_pro_visitor_conditions&&(i.prototype.exists=function(){return void 0!==this.data},i.prototype.save=function(e){this.data=e,get_unix_time_in_seconds=function(){return Math.round((new Date).getTime()/1e3)};var i=this.expires-get_unix_time_in_seconds();i<=0&&(i=24*this.exdays*60*60,this.expires=get_unix_time_in_seconds()+i),advads.set_cookie_sec(this.name,JSON.stringify({expires:this.expires,data:this.data}),i)},advanced_ads_pro_visitor_conditions.cookie_storage=i,(e=new i(advanced_ads_pro_visitor_conditions.referrer_cookie_name,advanced_ads_pro_visitor_conditions.referrer_exdays)).exists()||""===document.referrer||e.save(document.referrer),(e=new i(advanced_ads_pro_visitor_conditions.page_impr_cookie_name,advanced_ads_pro_visitor_conditions.page_impr_exdays)).exists()?e.save(parseInt(e.data,10)+1||1):e.save(1));function i(e,i){this.name=e,this.exdays=i,this.data=void 0,this.expires=0;var t=advads.get_cookie(e);if(t){try{var s=JSON.parse(t)}catch(e){return void(this.data=t)}"object"==typeof s?(this.data=s.data,this.expires=parseInt(s.expires,10)):this.data=t}else this.data=t}}();/*!
 * @copyright Copyright (c) 2017 IcoMoon.io
 * @license   Licensed under MIT license
 *            See https://github.com/Keyamoon/svgxuse
 * @version   1.2.6
 */
(function(){if("undefined"!==typeof window&&window.addEventListener){var e=Object.create(null),l,d=function(){clearTimeout(l);l=setTimeout(n,100)},m=function(){},t=function(){window.addEventListener("resize",d,!1);window.addEventListener("orientationchange",d,!1);if(window.MutationObserver){var k=new MutationObserver(d);k.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0});m=function(){try{k.disconnect(),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",d,!1)}catch(v){}}}else document.documentElement.addEventListener("DOMSubtreeModified",d,!1),m=function(){document.documentElement.removeEventListener("DOMSubtreeModified",d,!1);window.removeEventListener("resize",d,!1);window.removeEventListener("orientationchange",d,!1)}},u=function(k){function e(a){if(void 0!==a.protocol)var c=a;else c=document.createElement("a"),c.href=a;return c.protocol.replace(/:/g,"")+c.host}if(window.XMLHttpRequest){var d=new XMLHttpRequest;var m=e(location);k=e(k);d=void 0===d.withCredentials&&""!==k&&k!==m?XDomainRequest||void 0:XMLHttpRequest}return d};var n=function(){function d(){--q;0===q&&(m(),t())}function l(a){return function(){!0!==e[a.base]&&(a.useEl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a.hash),a.useEl.hasAttribute("href")&&a.useEl.setAttribute("href","#"+a.hash))}}function p(a){return function(){var c=document.body,b=document.createElement("x");a.onload=null;b.innerHTML=a.responseText;if(b=b.getElementsByTagName("svg")[0])b.setAttribute("aria-hidden","true"),b.style.position="absolute",b.style.width=0,b.style.height=0,b.style.overflow="hidden",c.insertBefore(b,c.firstChild);d()}}function n(a){return function(){a.onerror=null;a.ontimeout=null;d()}}var a,c,q=0;m();var f=document.getElementsByTagName("use");for(c=0;c<f.length;c+=1){try{var g=f[c].getBoundingClientRect()}catch(w){g=!1}var h=(a=f[c].getAttribute("href")||f[c].getAttributeNS("http://www.w3.org/1999/xlink","href")||f[c].getAttribute("xlink:href"))&&a.split?a.split("#"):["",""];var b=h[0];h=h[1];var r=g&&0===g.left&&0===g.right&&0===g.top&&0===g.bottom;g&&0===g.width&&0===g.height&&!r?(f[c].hasAttribute("href")&&f[c].setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),b.length&&(a=e[b],!0!==a&&setTimeout(l({useEl:f[c],base:b,hash:h}),0),void 0===a&&(h=u(b),void 0!==h&&(a=new h,e[b]=a,a.onload=p(a),a.onerror=n(a),a.ontimeout=n(a),a.open("GET",b),a.send(),q+=1)))):r?b.length&&e[b]&&setTimeout(l({useEl:f[c],base:b,hash:h}),0):void 0===e[b]?e[b]=!0:e[b].onload&&(e[b].abort(),delete e[b].onload,e[b]=!0)}f="";q+=1;d()};var p=function(){window.removeEventListener("load",p,!1);l=setTimeout(n,0)};"complete"!==document.readyState?window.addEventListener("load",p,!1):p()}})();advads_items={conditions:{},display_callbacks:{},display_effect_callbacks:{},hide_callbacks:{},backgrounds:{},effect_durations:{},close_functions:{},showed:[]};var advadsCfpQueue=[];var advadsCfpAd=function(adID){if('undefined'==typeof advadsProCfp){advadsCfpQueue.push(adID)}else{advadsProCfp.addElement(adID)}};if(typeof advadsGATracking==='undefined'){window.advadsGATracking={delayedAds:{},deferedAds:{}}};var advanced_ads_adblocker_test=!0;!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r<c.length;)s.is(e(c[r++]))&&(u=!1);for(;u&&h<a.length;)s.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(n.preventDefault&&o.preventDefault(),t.extend(d,n,{scrollTarget:n.scrollTarget||v,link:i}),t.smoothScroll(d))};return null!==o.delegateSelector?this.undelegate(o.delegateSelector,"click.smoothscroll").delegate(o.delegateSelector,"click.smoothscroll",s):this.unbind("click.smoothscroll").bind("click.smoothscroll",s),this}}),t.smoothScroll=function(e,o){if("options"===e&&"object"==typeof o)return t.extend(i,o);var l,s,n,c,a,r=0,h="offset",u="scrollTop",d={},p={};"number"==typeof e?(l=t.extend({link:null},t.fn.smoothScroll.defaults,i),n=e):(l=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},i),l.scrollElement&&(h="position","static"===l.scrollElement.css("position")&&l.scrollElement.css("position","relative"))),u="left"===l.direction?"scrollLeft":u,l.scrollElement?(s=l.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(r=s[u]())):s=t("html, body").firstScrollable(l.direction),l.beforeScroll.call(s,l),n="number"==typeof e?e:o||t(l.scrollTarget)[h]()&&t(l.scrollTarget)[h]()[l.direction]||0,d[u]=n+r+l.offset,c=l.speed,"auto"===c&&(a=Math.abs(d[u]-s[u]()),c=a/l.autoCoefficient),p={duration:c,easing:l.easing,complete:function(){l.afterScroll.call(l.link,l)}},l.step&&(p.step=l.step),s.length?s.stop().animate(d,p):l.afterScroll.call(l.link,l)},t.smoothScroll.version=o,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' <span class="toc_toggle"><span class="toc_brackets">[</span><a href="#">'+i+'</a><span class="toc_brackets">]</span></span>'),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("<div/>").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("<div/>").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});var advanced_ads_pro_ajax_object={"ajax_url":"https:\/\/trekking-marokko.de\/wp-admin\/admin-ajax.php","lazy_load_module_enabled":"1","lazy_load":{"default_offset":0,"offsets":[]},"moveintohidden":"","wp_timezone_offset":"0","the_id":"8079","is_singular":"1"};var advanced_ads_responsive={"reload_on_resize":"1"};/**
 * @file postscribe
 * @description Asynchronously write javascript, even with document.write.
 * @version v2.0.8
 * @see {@link https://krux.github.io/postscribe}
 * @license MIT
 * @author Derek Brans
 * @copyright 2016 Krux Digital, Inc
 */
var advanced_ads_pro,advads_pro_utils;if(function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports&&(exports.advads_postscribe=t()),e.advads_postscribe=t()}(this,(function(){return function(e){var t={};function a(i){if(t[i])return t[i].exports;var s=t[i]={exports:{},id:i,loaded:!1};return e[i].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var i,s=a(1),r=(i=s)&&i.__esModule?i:{default:i};e.exports=r.default},function(e,t,a){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e};t.default=h;var s,r=a(2),n=(s=r)&&s.__esModule?s:{default:s},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(4));function d(){}var _={afterAsync:d,afterDequeue:d,afterStreamStart:d,afterWrite:d,autoFix:!0,beforeEnqueue:d,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:d,error:function(e){throw new Error(e.msg)},releaseAsync:!1},c=0,l=[],p=null;function u(){var e=l.shift();if(e){var t=o.last(e);t.afterDequeue(),e.stream=T.apply(void 0,e),t.afterStreamStart()}}function T(e,t,a){(p=new n.default(e,a)).id=c++,p.name=a.name||p.id,h.streams[p.name]=p;var s=e.ownerDocument,r={close:s.close,open:s.open,write:s.write,writeln:s.writeln};function o(e){e=a.beforeWrite(e),p.write(e),a.afterWrite(e)}i(s,{close:d,open:d,write:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return o(t.join(""))},writeln:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return o(t.join("")+"\n")}});var _=p.win.onerror||d;return p.win.onerror=function(e,t,i){a.error({msg:e+" - "+t+": "+i}),_.apply(p.win,[e,t,i])},p.write(t,(function(){i(s,r),p.win.onerror=_,a.done(),p=null,u()})),p}function h(e,t,a){if(o.isFunction(a))a={done:a};else if("clear"===a)return l=[],p=null,void(c=0);a=o.defaults(a,_);var i=[e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e,t,a];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=d}},a.beforeEnqueue(i),l.push(i),p||u(),e.postscribe}i(h,{streams:{},queue:l,WriteStream:n.default})},function(e,t,a){"use strict";t.__esModule=!0;var i,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},r=a(3),n=(i=r)&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(4));function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _="data-ps-",c="ps-style",l="ps-script";function p(e,t){var a=_+t,i=e.getAttribute(a);return o.existy(i)?String(i):i}function u(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=_+t;o.existy(a)&&""!==a?e.setAttribute(i,a):e.removeAttribute(i)}var T=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(this,e),this.root=t,this.options=a,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new n.default("",{autoFix:a.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.nodeName),this.scriptStack=[],this.writeQueue=[],u(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var t=this.writeQueue.shift();o.isFunction(t)?this._callFunction(t):this._writeImpl(t)}},e.prototype._callFunction=function(e){var t={type:"function",value:e.name||e.toString()};this._onScriptStart(t),e.call(this.win,this.doc),this._onScriptDone(t)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var t=void 0,a=void 0,i=void 0,s=[];(t=this.parser.readToken())&&!(a=o.isScript(t))&&!(i=o.isStyle(t));)(t=this.options.beforeWriteToken(t))&&s.push(t);s.length>0&&this._writeStaticTokens(s),a&&this._handleScriptToken(t),i&&this._handleStyleToken(t)},e.prototype._writeStaticTokens=function(e){var t=this._buildChunk(e);return t.actual?(t.html=this.proxyHistory+t.actual,this.proxyHistory+=t.proxy,this.proxyRoot.innerHTML=t.html,this._walkChunk(),t):null},e.prototype._buildChunk=function(e){for(var t=this.actuals.length,a=[],i=[],s=[],r=e.length,n=0;n<r;n++){var o=e[n],d=o.toString();if(a.push(d),o.attrs){if(!/^noscript$/i.test(o.tagName)){var _=t++;i.push(d.replace(/(\/?>)/," data-ps-id="+_+" $1")),o.attrs.id!==l&&o.attrs.id!==c&&s.push("atomicTag"===o.type?"":"<"+o.tagName+" "+"data-ps-proxyof="+_+(o.unary?" />":">"))}}else i.push(d),s.push("endTag"===o.type?d:"")}return{tokens:e,raw:a.join(""),actual:i.join(""),proxy:s.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,t=[this.proxyRoot];o.existy(e=t.shift());){var a=1===e.nodeType;if(!(a&&p(e,"proxyof"))){a&&(this.actuals[p(e,"id")]=e,u(e,"id"));var i=e.parentNode&&p(e.parentNode,"proxyof");i&&this.actuals[i].appendChild(e)}t.unshift.apply(t,o.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var t=this,a=this.parser.clear();a&&this.writeQueue.unshift(a),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,(function(){t._onScriptDone(e)})))},e.prototype._handleStyleToken=function(e){var t=this.parser.clear();t&&this.writeQueue.unshift(t),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),t&&this.write()},e.prototype._writeStyleToken=function(e){var t=this._buildStyle(e);this._insertCursor(t,c),e.content&&(t.styleSheet&&!t.sheet?t.styleSheet.cssText=e.content:t.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var t=this.doc.createElement(e.tagName);return t.setAttribute("type",e.type),o.eachKey(e.attrs,(function(e,a){t.setAttribute(e,a)})),t},e.prototype._insertCursor=function(e,t){this._writeImpl('<span id="'+t+'"/>');var a=this.doc.getElementById(t);a&&a.parentNode.replaceChild(e,a)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){e===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},e.prototype._writeScriptToken=function(e,t){var a=this._buildScript(e),i=this._shouldRelease(a),s=this.options.afterAsync;e.src&&(a.src=e.src,this._scriptLoadHandler(a,i?s:function(){t(),s()}));try{this._insertCursor(a,l),a.src&&!i||t()}catch(e){this.options.error(e),t()}},e.prototype._buildScript=function(e){var t=this.doc.createElement(e.tagName);return o.eachKey(e.attrs,(function(e,a){t.setAttribute(e,a)})),e.content&&(t.text=e.content),t},e.prototype._scriptLoadHandler=function(e,t){function a(){e=e.onload=e.onreadystatechange=e.onerror=null}var i=this.options.error;function r(){a(),null!=t&&t(),t=null}function n(e){a(),i(e),null!=t&&t(),t=null}function o(e,t){var a=e["on"+t];null!=a&&(e["_on"+t]=a)}o(e,"load"),o(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){n({msg:"onload handler failed "+t+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){return void n({msg:"onerror handler failed "+t+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();t.default=T},function(e,t,a){
/**
	 * @file prescribe
	 * @description Tiny, forgiving HTML parser
	 * @version vundefined
	 * @see {@link https://github.com/krux/prescribe/}
	 * @license MIT
	 * @author Derek Brans
	 * @copyright 2016 Krux Digital, Inc
	 */
var i;i=function(){return function(e){var t={};function a(i){if(t[i])return t[i].exports;var s=t[i]={exports:{},id:i,loaded:!1};return e[i].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var i,s=a(1),r=(i=s)&&i.__esModule?i:{default:i};e.exports=r.default},function(e,t,a){"use strict";t.__esModule=!0;var i,s=_(a(2)),r=_(a(3)),n=a(6),o=(i=n)&&i.__esModule?i:{default:i},d=a(5);function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},p=function(){function e(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.stream=a;var r=!1,n={};for(var d in s)s.hasOwnProperty(d)&&(i.autoFix&&(n[d+"Fix"]=!0),r=r||n[d+"Fix"]);r?(this._readToken=(0,o.default)(this,n,(function(){return t._readTokenImpl()})),this._peekToken=(0,o.default)(this,n,(function(){return t._peekTokenImpl()}))):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e].test(this.stream)){var t=r[e](this.stream);if(t)return"startTag"===t.type&&/script|style/i.test(t.tagName)?null:(t.text=this.stream.substr(0,t.length),t)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var t=void 0;t=this.readToken();)if(e[t.type]&&!1===e[t.type](t))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();for(var u in t.default=p,p.tokenToString=function(e){return e.toString()},p.escapeAttributes=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[a]=(0,d.escapeQuotes)(e[a],null));return t},p.supports=s,s)s.hasOwnProperty(u)&&(p.browserHasFlaw=p.browserHasFlaw||!s[u]&&u)},function(e,t){"use strict";t.__esModule=!0;var a=!1,i=!1,s=window.document.createElement("div");try{var r="<P><I></P></I>";s.innerHTML=r,t.tagSoup=a=s.innerHTML!==r}catch(e){t.tagSoup=a=!1}try{s.innerHTML="<P><i><P></P></i></P>",t.selfClose=i=2===s.childNodes.length}catch(e){t.selfClose=i=!1}s=null,t.tagSoup=a,t.selfClose=i},function(e,t,a){"use strict";t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.comment=function(e){var t=e.indexOf("--\x3e");if(t>=0)return new s.CommentToken(e.substr(4,t-1),t+3)},t.chars=function(e){var t=e.indexOf("<");return new s.CharsToken(t>=0?t:e.length)},t.startTag=n,t.atomicTag=function(e){var t=n(e);if(t){var a=e.slice(t.length);if(a.match(new RegExp("</\\s*"+t.tagName+"\\s*>","i"))){var i=a.match(new RegExp("([\\s\\S]*?)</\\s*"+t.tagName+"\\s*>","i"));if(i)return new s.AtomicTagToken(t.tagName,i[0].length+t.length,t.attrs,t.booleanAttrs,i[1])}}},t.endTag=function(e){var t=e.match(r.endTag);if(t)return new s.EndTagToken(t[1],t[0].length)};var s=a(4),r={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i};function n(e){var t,a,n;if(-1!==e.indexOf(">")){var o=e.match(r.startTag);if(o){var d=(t={},a={},n=o[2],o[2].replace(r.attr,(function(e,i){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",a[arguments[5]]=!0):t[i]=arguments[2]||arguments[3]||arguments[4]||r.fillAttr.test(i)&&i||"":t[i]="",n=n.replace(e,"")})),{v:new s.StartTagToken(o[1],o[0].length,t,a,!!o[3],n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===d?"undefined":i(d)))return d.v}}}},function(e,t,a){"use strict";t.__esModule=!0,t.EndTagToken=t.AtomicTagToken=t.StartTagToken=t.TagToken=t.CharsToken=t.CommentToken=t.Token=void 0;var i=a(5);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.Token=function e(t,a){s(this,e),this.type=t,this.length=a,this.text=""},t.CommentToken=function(){function e(t,a){s(this,e),this.type="comment",this.length=a||(t?t.length:0),this.text="",this.content=t}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),t.CharsToken=function(){function e(t){s(this,e),this.type="chars",this.length=t,this.text=""}return e.prototype.toString=function(){return this.text},e}();var r=t.TagToken=function(){function e(t,a,i,r,n){s(this,e),this.type=t,this.length=i,this.text="",this.tagName=a,this.attrs=r,this.booleanAttrs=n,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a="<"+e.tagName;for(var s in e.attrs)if(e.attrs.hasOwnProperty(s)){a+=" "+s;var r=e.attrs[s];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[s]||(a+='="'+(0,i.escapeQuotes)(r)+'"')}return e.rest&&(a+=" "+e.rest),e.unary&&!e.html5Unary?a+="/>":a+=">",null!=t&&(a+=t+"</"+e.tagName+">"),a},e}();t.StartTagToken=function(){function e(t,a,i,r,n,o){s(this,e),this.type="startTag",this.length=a,this.text="",this.tagName=t,this.attrs=i,this.booleanAttrs=r,this.html5Unary=!1,this.unary=n,this.rest=o}return e.prototype.toString=function(){return r.formatTag(this)},e}(),t.AtomicTagToken=function(){function e(t,a,i,r,n){s(this,e),this.type="atomicTag",this.length=a,this.text="",this.tagName=t,this.attrs=i,this.booleanAttrs=r,this.unary=!1,this.html5Unary=!1,this.content=n}return e.prototype.toString=function(){return r.formatTag(this,this.content)},e}(),t.EndTagToken=function(){function e(t,a){s(this,e),this.type="endTag",this.length=a,this.text="",this.tagName=t}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,t){"use strict";t.__esModule=!0,t.escapeQuotes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,(function(e,t){return/\\/.test(t)?t+'"':t+'\\"'})):t}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,a){var n=function(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var t=this.last();return t&&t.tagName&&t.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var t,a=0;t=this[a];a++)if(t.tagName===e)return!0;return!1},e}(),o={startTag:function(a){var s=a.tagName;"TR"===s.toUpperCase()&&n.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),d()):t.selfCloseFix&&i.test(s)&&n.containsTagName(s)?n.lastTagNameEq(s)?r(e,n):(e.prepend("</"+a.tagName+">"),d()):a.unary||n.push(a)},endTag:function(i){n.last()?t.tagSoupFix&&!n.lastTagNameEq(i.tagName)?r(e,n):n.pop():t.tagSoupFix&&(a(),d())}};function d(){var t=function(e,t){var a=e.stream,i=s(t());return e.stream=a,i}(e,a);t&&o[t.type]&&o[t.type](t)}return function(){return d(),s(a())}};var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,i=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i;function s(e){return e&&"startTag"===e.type&&(e.unary=a.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function r(e,t){var a=t.pop();e.prepend("</"+a.tagName+">")}}])},e.exports=i()},function(e,t){"use strict";t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){return null!=e}function s(e,t,a){var i=void 0,s=e&&e.length||0;for(i=0;i<s;i++)t.call(a,e[i],i)}function r(e,t,a){for(var i in e)e.hasOwnProperty(i)&&t.call(a,i,e[i])}function n(e,t){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e))&&!!~e.tagName.toLowerCase().indexOf(t)}t.existy=i,t.isFunction=function(e){return"function"==typeof e},t.each=s,t.eachKey=r,t.defaults=function(e,t){return e=e||{},r(t,(function(t,a){i(e[t])||(e[t]=a)})),e},t.toArray=function(e){try{return Array.prototype.slice.call(e)}catch(r){var t=(i=[],s(e,(function(e){i.push(e)})),{v:i});if("object"===(void 0===t?"undefined":a(t)))return t.v}var i},t.last=function(e){return e[e.length-1]},t.isTag=n,t.isScript=function(e){return n(e,"script")},t.isStyle=function(e){return n(e,"style")}}])})),!advanced_ads_pro){advanced_ads_pro={ads:[],passive_ads:{},deferedAds:[],blockme:!1,blockmeQueue:[],observers:jQuery.Callbacks(),postscribeObservers:jQuery.Callbacks(),random_placements:!1,iterations:0,adblocker_active:!1,injected:0,injected_done:0,options:{action:"advads_ad_select"},inject_before:[],dispatchWrapperCBEvent(e,t,a){document.dispatchEvent(new CustomEvent("advads_pro_cache_busting_done",{detail:{elementId:e,isEmpty:t,type:a}}))},isBusy:!1,set busy(e){this.isBusy=e,document.dispatchEvent(new CustomEvent("advanced_ads_pro."+(e?"busy":"idle")))},get busy(){return this.isBusy},load:function(e){"use strict";var t,a,i,s,r,n,o;t=e.hasOwnProperty("id")?e.id:null,a=e.hasOwnProperty("method")?e.method:null,i=e.hasOwnProperty("params")&&"object"==typeof e.params?this.add_general_ajax_args(e.params):{},s=e.hasOwnProperty("elementid")?e.elementid:null,n=advanced_ads_pro_ajax_object.lazy_load_module_enabled&&i&&"enabled"===i.lazy_load,o=e.hasOwnProperty("blog_id")?e.blog_id:"";var d=e.hasOwnProperty("server_conditions")?e.server_conditions:"";if(s&&this.iterations>1&&jQuery("."+s).empty(),i&&"object"==typeof i){if(!advads_pro_utils.selector_exists(i))return;if(i.test_id&&(r="placement"===i.previous_method?i.previous_id:t,jQuery.inArray(r,this.get_random_placements())<0))return;i.adblocker_active=this.adblocker_active,i=JSON.stringify(i)}var _={ad_id:t,ad_method:a,ad_args:i,elementId:s,blog_id:o,server_conditions:d};n?advanced_ads_pro.lazy_load.add(s,"ajax",_):this.deferedAds[this.deferedAds.length]=_},add_general_ajax_args:function(e){return advads_pro_utils.isset(e.post)&&advads_ajax_queries_args[e.post]&&(e.post=advads_ajax_queries_args[e.post]),e},hasAd:function(e,t,a,i,s){"use strict";var r={id:e,type:t,title:a,cb_type:i,elementId:s};this.ads.push(r),this.observers.fire({event:"hasAd",ad:r})},injectBlocked:function(){"use strict";var e,t,a=this.blockmeQueue,i=a.length;for(this.blockmeQueue=[],t=0;t<i;t+=1)e=a[t],this.inject(e[0],e[1])},_inject_before:function(e,t){return e&&advads_pro_utils.each(advanced_ads_pro.inject_before,(function(a){a.elementId===e&&(advads_pro_utils.each(a.data,(function(e){t.append(e)})),t=jQuery("."+e),a.data=[])})),t},inject:function(e,t){"use strict";var a,i,s=this;if(this.blockme)this.blockmeQueue.push([e,t]);else{this.injected++;for(var r=new RegExp(/^([\s\S]*?)<script[^>]+?data-tcf="waiting-for-consent"[^>]+>(.+?)<\/script>([\s\S]*)$/i),n=r.exec(t);null!==n;){var o=document.createElement("script");o.setAttribute("type","text/plain"),o.textContent=n[2],t=n[1]+advads.privacy.decode_ad(o,!1)+n[3],n=r.exec(t)}try{if(a=t.match(/<script[^>]+src/)&&-1===t.indexOf(" async"),null===e)i=jQuery("head ");else if(!(i=jQuery("."+e)).length)return void this.injected--;if(a)this.blockme=!0,(i=s._inject_before(e,i)).each((function(){var a=jQuery(this);advads_postscribe(a,t,{beforeWriteToken:s.beforeWriteToken,afterAsync:function(){s.blockme=!1,s.injectBlocked()},done:function(){s.dispatchWrapperCBEvent(e,!1,"ajax"),s.postscribeObservers.fire({event:"postscribe_done",ref:i,ad:t})},error:function(e){console.error(e),advanced_ads_pro.injected--}})}));else{if(i=s._inject_before(e,i),-1!==t.indexOf("gform.initializeOnLoaded")){const e=document.createElement("DIV");e.innerHTML=t;const a=e.querySelector('input[type="submit"]');if(a){const t=a.getAttribute("onclick"),i=a.getAttribute("onkeypress"),s=a.id,r=document.createElement("SCRIPT");a.removeAttribute("onclick"),a.removeAttribute("onkeypress"),r.innerHTML=["click","keypress"].map((function(e){return`document.body.addEventListener("${e}", function(event){if (event.target && event.target.id === "${this.id}"){${this[e]}}})`}),{id:s,click:t,keypress:i}).join(";"),e.append(r)}const i=e.querySelector("form"),s=i.getAttribute("action");s.includes("#gf")&&i.setAttribute("action",`${window.location.href.split("#")[0]}#${s.split("#")[1]}`),t=e.innerHTML}i.each((function(){var a=jQuery(this);advads_postscribe(a,t,{beforeWriteToken:s.beforeWriteToken,done:function(){s.dispatchWrapperCBEvent(e,!1,"ajax"),s.postscribeObservers.fire({event:"postscribe_done",ref:i,ad:t})},error:function(e){console.error(e),advanced_ads_pro.injected--}})}))}}catch(e){console.error(e),this.injected--}}},beforeWriteToken:function(e){if("startTag"===e.type)for(var t in e.attrs){var a=e.attrs[t];'{"'===a.substring(0,2)&&(a=a.replace(/\"/g,"&quot;"),e.attrs[t]=a)}return"atomicTag"===e.type&&e.src&&(e.src=e.src.replace(/&amp;/g,"&")),e},loadAjaxAds:function(){"use strict";if(!this.deferedAds.length)return advanced_ads_pro.observers.fire({event:"inject_ajax_ads",ad_ids:[]}),void advanced_ads_pro.return_to_idle_injections_done();var e={action:"advads_ad_select",ad_ids:this.ads,deferedAds:this.deferedAds,consent:"undefined"==typeof advads?"not_needed":advads.privacy.get_state(),theId:window.advanced_ads_pro_ajax_object.the_id,isSingular:advanced_ads_pro_ajax_object.is_singular};document.dispatchEvent(new CustomEvent("advads_ajax_ad_select",{detail:e})),this.deferedAds=[];jQuery.ajax({url:advanced_ads_pro_ajax_object.ajax_url,method:"POST",data:e,dataType:"json"}).done((function(e){var t={};if(Array.isArray(e)){advanced_ads_pro.observe_injections();for(var a=0;a<e.length;a++){var i=e[a];if(i.status&&"error"===i.status&&advanced_ads_pro.dispatchWrapperCBEvent(i.elementId,!0,"ajax"),i.hasOwnProperty("status")&&"success"===i.status&&i.hasOwnProperty("item")&&i.item&&(i.inject_before&&advanced_ads_pro.inject_before.push({elementId:i.elementId,data:i.inject_before}),advanced_ads_pro.inject(i.elementId,i.item,!0),i.hasOwnProperty("ads")&&Array.isArray(i.ads)))for(var s=0;s<i.ads.length;s++)if(advanced_ads_pro.hasAd(i.ads[s].id,i.ads[s].type,i.ads[s].title,"ajax",i.elementId),"ad"===i.ads[s].type&&i.ads[s].tracking_enabled){var r=i.blog_id?i.blog_id:1;void 0===t[r]&&(t[r]=[]),t[r].push(i.ads[s].id)}i.hasOwnProperty("method")&&"placement"===i.method&&advanced_ads_pro.observers.fire({event:"inject_placement",id:i.id,is_empty:!!i.item,cb_type:"ajax"})}advanced_ads_pro.observers.fire({event:"inject_ajax_ads",ad_ids:t}),advads_pro_utils.log("AJAX CB response\n",e),advanced_ads_pro.return_to_idle_injections_done()}})).fail((function(){advanced_ads_pro.return_to_idle_injections_done()}))},get_random_placements:function(e){return!1!==this.random_placements||(this.random_placements=[],advads_pro_utils.each_key(e,(function(e,t){"object"==typeof t&&(random_placement=advads_pro_utils.get_random_el_by_weight(t.placements))&&this.random_placements.push(random_placement)}),this)),this.random_placements},create_non_existent_arrays:function(){0===this.iterations&&(advads_pro_utils.each(["advads_passive_ads","advads_passive_groups","advads_passive_placements"],(function(e){advads_pro_utils.isset(window[e])||(window[e]={})})),advads_pro_utils.each(["advads_placement_tests","advads_ajax_queries","advads_has_ads","advads_js_items"],(function(e){advads_pro_utils.isset(window[e])||(window[e]=[])})))},process_passive_cb:function(){var e=this;e.create_non_existent_arrays(),advads_pro_utils.print_debug_arrays();var t=function(t){e.busy=!0,e.iterations++,e.lazy_load.clear(),e.adblocker_active=t,e.observe_injections(),advads_pro_utils.each(advads_has_ads,(function(e){advanced_ads_pro.hasAd.apply(advanced_ads_pro,e)})),e.get_random_placements(advads_placement_tests),advads_pro_utils.each_key(advads_passive_ads,(function(e,t){var a=(e+"").indexOf("_");-1!==a&&(e=e.slice(0,a)),advads_pro_utils.each(t.elementid,(function(a){advanced_ads_pro.iterations>1&&jQuery("."+a).empty();var i=new Advads_passive_cb_Ad(t.ads[e],a);i.can_display()&&i.output({track:!0,inject:!0,do_has_ad:!0})}))})),advads_pro_utils.each_key(advads_passive_groups,(function(e,t){advads_pro_utils.each(t.elementid,(function(e){advanced_ads_pro.iterations>1&&jQuery("."+e).empty(),new Advads_passive_cb_Group(t,e).output()}))})),advads_pro_utils.each_key(advads_passive_placements,(function(e,t){advads_pro_utils.each(t.elementid,(function(a){advanced_ads_pro.iterations>1&&jQuery("."+a).empty();var i=new Advads_passive_cb_Placement(t,a);i.can_use_passive_cb()?advanced_ads_pro_ajax_object.lazy_load_module_enabled&&t.placement_info.options&&"enabled"===t.placement_info.options.lazy_load?advanced_ads_pro.lazy_load.add(a,"passive",{key:e,placement_id:t.placement_info.id}):i.output():advanced_ads_pro.load(i.ajax_query)}))})),advads_pro_utils.isset(window.advads_js_items)&&advads_pro_utils.each_key(advads_js_items,(function(e,t){advanced_ads_pro.iterations>1||advads_pro_utils.selector_exists(t.args)&&(t.inject_before&&advanced_ads_pro.inject_before.push({elementId:t.elementid,data:t.inject_before}),advanced_ads_pro.inject(t.elementid,t.output,!0),advads_pro_utils.each(t.has_js_items,(function(e){advanced_ads_pro.hasAd(e.id,e.type,e.title),"ad"===e.type&&(advanced_ads_pro.passive_ads[e.blog_id]||(advanced_ads_pro.passive_ads[e.blog_id]=[]),advanced_ads_pro.passive_ads[e.blog_id].push(e.id))})))})),e.observers.fire({event:"inject_passive_ads",ad_ids:e.passive_ads}),e.passive_ads={},e.process_ajax_ads(advads_ajax_queries),e.lazy_load.enable()};"function"==typeof advanced_ads_check_adblocker?advanced_ads_check_adblocker((function(e){t(e)})):t(!1)},observe_injections:function(){advanced_ads_pro.injected_done>0||advanced_ads_pro.postscribeObservers.add((function(e){"postscribe_done"===e.event&&advanced_ads_pro.injected_done++}))},return_to_idle_injections_done:function(){var e=1e3,t=setInterval((function(){e-=10,(advanced_ads_pro.injected_done>=advanced_ads_pro.injected||e<0)&&(advanced_ads_pro.injected=0,advanced_ads_pro.injected_done=0,advanced_ads_pro.busy=!1,clearInterval(t))}),10)},process_ajax_ads:function(e){Array.isArray(e)&&advads_pro_utils.each(e,(function(e){advanced_ads_pro.load(e)})),this.loadAjaxAds()},lazy_load:{lazy_map:{},did_init:!1,add:function(e,t,a){var i,s=document.getElementById(e);s&&(a.placement_id?i=a.placement_id:"placement"===a.ad_method&&(i=a.ad_id),this.lazy_map[e]={node:s,type:t,data:a,offset:this.get_offset(i)})},get_offset:function(e){var t=0;return advanced_ads_pro_ajax_object.lazy_load&&(t=advanced_ads_pro_ajax_object.lazy_load.offsets[e]?parseInt(advanced_ads_pro_ajax_object.lazy_load.offsets[e],10):parseInt(advanced_ads_pro_ajax_object.lazy_load.default_offset,10)),t},clear:function(){this.lazy_map={}},enable:function(){var e=this;e.did_init?jQuery(window).trigger("scroll"):(e._create_scroll_handler(),e.did_init=!0)},_create_scroll_handler:function(){var e=this,t=!0;function a(){var a=jQuery(window).height();advads_pro_utils.each_key(e.lazy_map,(function(t,i){var s=i.node.getBoundingClientRect(),r=i.offset;s.top+r>=0&&s.bottom-r<=a&&e._display(t)})),t=!1}function i(e){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return setTimeout(e,16)};t.call(window,e)}jQuery(window).on("scroll",(function(){t||(t=!0,i(a))})),i(a)},_display:function(e){var t=this.lazy_map[e];if(t){if(delete this.lazy_map[e],"ajax"===t.type)advanced_ads_pro.deferedAds.push(t.data),advanced_ads_pro.process_ajax_ads();else new Advads_passive_cb_Placement(advads_passive_placements[t.data.key],e).output(),advanced_ads_pro.observers.fire({event:"inject_passive_ads",ad_ids:advanced_ads_pro.passive_ads}),advanced_ads_pro.passive_ads={};advanced_ads_pro.busy=!1}}}},jQuery(document).on("advanced-ads-resize-window",(function(e){var t=function(){for(var e=advanced_ads_pro.ads.length;e--;)"off"!==advanced_ads_pro.ads.cb_method&&advanced_ads_pro.ads.splice(e,1);advanced_ads_pro.process_passive_cb()};advanced_ads_pro.busy?document.addEventListener("advanced_ads_pro.idle",t,{once:!0}):t()})),"undefined"!=typeof advads&&void 0!==advads.privacy.dispatch_event?document.addEventListener("advanced_ads_privacy",(function(e){if("unknown"===e.detail.previousState||"rejected"===e.detail.previousState&&"accepted"===e.detail.state){if(advads_pro_utils.log("reload ads! transition from "+e.detail.previousState+" to "+e.detail.state),"accepted"===e.detail.state||"not_needed"===e.detail.state){var t='script[type="text/plain"][data-tcf="waiting-for-consent"]';document.querySelectorAll(t).forEach((function(e){advanced_ads_pro.passive_ads.hasOwnProperty(e.dataset.bid)||(advanced_ads_pro.passive_ads[e.dataset.bid]=[]),advanced_ads_pro.passive_ads[e.dataset.bid].push(parseInt(e.dataset.id,10)),advads.privacy.decode_ad(e)})),new MutationObserver((function(e){var a={},i=function(e){void 0!==e.dataset.noTrack&&"impressions"===e.dataset.noTrack||(a.hasOwnProperty(e.dataset.bid)||(a[e.dataset.bid]=[]),a[e.dataset.bid].push(parseInt(e.dataset.id,10))),advads.privacy.decode_ad(e)};e.forEach((function(e){e.addedNodes.forEach((function(e){void 0===e.tagName||void 0===e.dataset||"script"!==e.tagName.toLowerCase()||"waiting-for-consent"!==e.dataset.tcf?void 0!==e.dataset&&"waiting-for-consent"===e.dataset.tcf||document.querySelectorAll(t).forEach(i):i(e)}))})),Object.keys(a).length&&advanced_ads_pro.observers.fire({event:"advanced_ads_decode_inserted_ads",ad_ids:a})})).observe(document,{subtree:!0,childList:!0})}advanced_ads_pro.busy?document.addEventListener("advanced_ads_pro.idle",advanced_ads_pro.process_passive_cb,{once:!0}):advanced_ads_pro.process_passive_cb()}else advads_pro_utils.log("no action! transition from "+e.detail.previousState+" to "+e.detail.state)})):(window.advanced_ads_ready||jQuery(document).ready).call(null,(function(){advanced_ads_pro.process_passive_cb()}));var Advads_passive_cb_Conditions={REFERRER_COOKIE_NAME:"advanced_ads_pro_visitor_referrer",PAGE_IMPRESSIONS_COOKIE_NAME:"advanced_ads_page_impressions",AD_IMPRESSIONS_COOKIE_NAME:"advanced_ads_ad_impressions",VISITOR_INFO_COOKIE_NAME:"advanced_ads_visitor",conditions:{mobile:"check_mobile",referrer_url:"check_referrer_url",user_agent:"check_user_agent",request_uri:"check_request_uri",browser_lang:"check_browser_lang",cookie:"check_cookie",page_impressions:"check_page_impressions",ad_impressions:"check_ad_impressions",new_visitor:"check_new_visitor",device_width:"check_browser_width",tablet:"check_tablet",loggedin:"check_loggedin",capability:"check_capability",role:"check_role",geo_targeting:"check_geo_targeting",buddypress_profile_field:"check_buddypress_profile_field"},init:function(){jQuery(document).trigger("advads-passive-cb-conditions",[this]),this.init=function(){}},frontend_check:function(e,t){var a=this.conditions[e.type];return"string"==typeof a&&(a=advads_pro_utils.bind(this[a],this)),!a||!!a(e,t)},check_mobile:function(e){if(function(e){var t=/iPhone/i,a=/iPod/i,i=/iPad/i,s=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,r=/Android/i,n=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,o=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,d=/IEMobile/i,_=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,c=/BlackBerry/i,l=/BB10/i,p=/Opera Mini/i,u=/(CriOS|Chrome)(?=.*\bMobile\b)/i,T=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,h=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),b=function(e,t){return e.test(t)},f=function(e){var f=e||navigator.userAgent,v=f.split("[FBAN");return void 0!==v[1]&&(f=v[0]),this.apple={phone:b(t,f),ipod:b(a,f),tablet:!b(t,f)&&b(i,f),device:b(t,f)||b(a,f)||b(i,f)},this.amazon={phone:b(n,f),tablet:!b(n,f)&&b(o,f),device:b(n,f)||b(o,f)},this.android={phone:b(n,f)||b(s,f),tablet:!b(n,f)&&!b(s,f)&&(b(o,f)||b(r,f)),device:b(n,f)||b(o,f)||b(s,f)||b(r,f)},this.windows={phone:b(d,f),tablet:b(_,f),device:b(d,f)||b(_,f)},this.other={blackberry:b(c,f),blackberry10:b(l,f),opera:b(p,f),firefox:b(T,f),chrome:b(u,f),device:b(c,f)||b(l,f)||b(p,f)||b(T,f)||b(u,f)},this.seven_inch=b(h,f),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window?this:void 0},v=function(){var e=new f;return e.Class=f,e};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=f:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=v():"function"==typeof define&&define.amd?define("isMobile",[],e.isMobile=v()):e.isMobile=v()}(this),!advads_pro_utils.isset(e.value)){if(!advads_pro_utils.isset(e.operator))return!0;const t=this.isMobile.any;return"is_not"===e.operator?!t:t}const t=this.check_tablet({operator:"is"});return Object.keys(Object.fromEntries(Object.entries({mobile:this.isMobile.any&&!t,tablet:t,desktop:!this.isMobile.any&&!t}).filter((([t,a])=>e.value.includes(t)&&a)))).length>0},check_referrer_url:function(e){var t=advads_pro_utils.extract_cookie_data(advads.get_cookie(this.REFERRER_COOKIE_NAME))||"";return this.helper_check_string(t,e)},check_user_agent:function(e){var t="object"==typeof navigator?navigator.userAgent:"";return this.helper_check_string(t,e)},check_browser_lang:function(e){var t=e.value;if(!t)return!0;var a="object"==typeof navigator?navigator.languages?navigator.languages.join(","):navigator.language||navigator.userLanguage:"";if(!a)return!0;try{var i=new RegExp("\\b"+t+"\\b","i"),s=-1!==a.search(i)}catch(e){return!0}return"is_not"===e.operator?!s:s},check_request_uri:function(e){var t="object"==typeof location?location.href:"";return this.helper_check_string(t,e)},check_cookie:function(e){e.operator&&(e.operator=this.maybe_replace_cookie_operator(e.operator));var t=!advads_pro_utils.isset(e.operator)||"match_not"!==e.operator;if(!advads_pro_utils.isset(e.cookie)||""===e.cookie)return t;var a=advads.get_cookie(e.cookie);return advads_pro_utils.isset(a)?advads_pro_utils.isset(e.value)&&""!==e.value?(e.value=unescape(e.value.replace(/\\(.)/gm,"$1")),this.helper_check_string(a,e)):t:!t},check_page_impressions:function(e){if(!advads_pro_utils.isset(e.operator)||!advads_pro_utils.isset(e.value))return!0;var t=0,a=advads_pro_utils.extract_cookie_data(advads.get_cookie(this.PAGE_IMPRESSIONS_COOKIE_NAME));if(!advads_pro_utils.isset(a))return!0;t=parseInt(a,10)||0;var i=parseInt(e.value)||0;switch(e.operator){case"is_equal":if(i!==t)return!1;break;case"is_higher":if(i>t)return!1;break;case"is_lower":if(i<t)return!1}return!0},check_ad_impressions:function(e,t){if(!advads_pro_utils.isset(e.value)||!advads_pro_utils.isset(e.timeout)||!advads_pro_utils.isset(t.id))return!0;var a=parseInt(e.value)||0,i=this.AD_IMPRESSIONS_COOKIE_NAME+"_"+t.id,s=i+"_timeout";return!(advads_pro_utils.isset(advads.get_cookie(i))&&advads_pro_utils.isset(advads.get_cookie(s))&&a<=(parseInt(advads.get_cookie(i))||0))},check_new_visitor:function(e){if(!advads_pro_utils.isset(e.operator))return!0;var t=0;switch(advads_pro_utils.isset(advads.get_cookie(this.PAGE_IMPRESSIONS_COOKIE_NAME))&&(t=parseInt(advads.get_cookie(this.PAGE_IMPRESSIONS_COOKIE_NAME))||0),e.operator){case"is":return 1===t;case"is_not":return 1<t}return!0},check_browser_width:function(e){if(!advads_pro_utils.isset(e.operator)||!advads_pro_utils.isset(e.value))return!0;var t=jQuery(window).width(),a=parseInt(e.value)||0;switch(e.operator){case"is_equal":if(a!==t)return!1;break;case"is_higher":if(a>t)return!1;break;case"is_lower":if(a<t)return!1}return!0},check_tablet:function(e){if(!advads_pro_utils.isset(e.operator))return!0;rules={iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"};var t="object"==typeof navigator?navigator.userAgent:"",a="";for(var i in rules){var s=new RegExp(rules[i],"i");if(s.test(t)){a=s;break}}switch(e.operator){case"is":return""!==a;case"is_not":return""===a}return!0},check_loggedin:function(e){if(!advads_pro_utils.isset(e.operator)||!advads_pro_utils.isset(e.type))return!0;var t=this.check_stored(e,(function(e,t){return!0===t}));switch(e.operator){case"is":return!0===t;case"is_not":return!1===t}return!0},check_capability:function(e){if(!advads_pro_utils.isset(e.operator)||!advads_pro_utils.isset(e.value)||!advads_pro_utils.isset(e.type))return!0;var t=this.check_stored(e,(function(e,t){return t===e.value}));switch(e.operator){case"can":return!0===t;case"can_not":return!1===t}return!0},check_role:function(e){if(!advads_pro_utils.isset(e.operator)||!advads_pro_utils.isset(e.value)||!advads_pro_utils.isset(e.type))return!0;var t=this.check_stored(e,(function(e,t){return t===e.value}));switch(e.operator){case"is":return!0===t;case"is_not":return!1===t}return!0},check_geo_targeting:function(e){if(!advads_pro_utils.isset(e.type)||!advads_pro_utils.isset(e.operator))return!0;var t=this.check_stored(e,(function(e,t){return"object"!=typeof t||(t.is_sucuri?this.check_geo_sucuri(e,t):this.check_geo_default(e,t))}),this);return t},check_geo_default:function(e,t){var a=e.city?e.city.trim().toLowerCase():"",i=e.region?e.region.trim().toLowerCase():"",s=e.country?e.country.trim():"",r=(""+t.visitor_city).toLowerCase(),n=(""+t.visitor_region).toLowerCase(),o=""+t.continent_code,d=t.country_code;if(0===s.indexOf("CONT_")&&(d="CONT_"+o),"latlon"===e.geo_mode){if(this.check_for_valid_lat_lon_options(e)){var _=advads_pro_utils.calculate_distance(parseFloat(t.current_lat),parseFloat(t.current_lon),parseFloat(e.lat),parseFloat(e.lon),e.distance_unit);return"gt"===e.distance_condition?_>e.distance:_<=e.distance}return!0}return"is_not"===e.operator?a?a!==r:i?i!==n:"EU"===s?!t.is_eu_state:s!==d:a?a===r:i?i===n:"EU"===s?t.is_eu_state:s===d},check_for_valid_lat_lon_options:function(e){return advads_pro_utils.is_numeric(e.lat)&&advads_pro_utils.is_numeric(e.lon)&&""!==e.distance_condition&&advads_pro_utils.is_numeric(e.distance)&&""!==e.distance_unit},check_geo_sucuri:function(e,t){e.operator&&e.operator;var a=e.country?e.country.trim():"";return"is_not"===e.operator?"EU"===a?!t.is_eu_state:a!==country_code:"EU"===a?t.is_eu_state:a===country_code},check_buddypress_profile_field:function(e){if(!(advads_pro_utils.isset(e.operator)&&advads_pro_utils.isset(e.value)&&advads_pro_utils.isset(e.type)&&advads_pro_utils.isset(e.field)))return!0;var t=this.check_stored(e,(function(e,t){if("object"!=typeof t)return!0;if(t.field!==e.field)return!1;var a=t.data;if(Array.isArray(a)){const t=-1!==["contain","start","end","match","regex"].indexOf(e.operator);return a.length?t?a.some((function(t){return Advads_passive_cb_Conditions.helper_check_string(t,e)})):a.every((function(t){return Advads_passive_cb_Conditions.helper_check_string(t,e)})):!t}return Advads_passive_cb_Conditions.helper_check_string(t.data,e)}),this);return t},check_stored:function(e,t,a){var i=Advads_passive_cb_Conditions.get_stored_info()[e.type];if("object"!=typeof i)return!0;for(var s in i)if(i.hasOwnProperty(s)){var r=i[s];if("object"==typeof r&&void 0!==r.data)if(t.call(a,e,r.data))return!0}return!1},helper_check_string:function(e,t){var a=t.operator,i=t.value;if("string"!=typeof i||""===i)return!0;var s=!0;switch(a){case"contain":s=-1!==e.indexOf(i);break;case"contain_not":s=-1===e.indexOf(i);break;case"start":s=0===e.lastIndexOf(i,0);break;case"start_not":s=0!==e.lastIndexOf(i,0);break;case"end":s=e.slice(-i.length)===i;break;case"end_not":s=e.slice(-i.length)!==i;break;case"match":s=e===i;break;case"match_not":s=e!==i;break;case"regex":case"regex_not":try{var r=new RegExp(i);s=!!e.match(r),"regex_not"===a&&(s=!s)}catch(e){advads_pro_utils.log('regular expression"'+i+'" in visitor condition is broken')}}return s},get_stored_info:function(){try{var e=JSON.parse(advads.get_cookie(this.VISITOR_INFO_COOKIE_NAME))}catch(e){}return"object"!=typeof e||"object"!=typeof e.conditions?{}:e.conditions},maybe_replace_cookie_operator:function(e){var t={show:"match",hide:"match_not"};return t[e]?t[e]:e}};function Advads_passive_cb_Placement(e,t){if(!("object"==typeof e&&e.hasOwnProperty("id")&&e.hasOwnProperty("type")&&e.hasOwnProperty("ads")&&e.hasOwnProperty("placement_info")&&"object"==typeof e.ads))throw new SyntaxError("Can not create Advads_passive_cb_Placement obj");this.id=e.id,this.ajax_query=e.ajax_query,this.type=e.type,this.element_id=t,this.ads=e.ads,this.ads_for_ab=e.ads_for_ab,this.placement_info=e.placement_info,this.placement_id=advads_pro_utils.isset_nested(this.placement_info,"id")?this.placement_info.id:null,this.group_info=e.group_info,this.group_wrap=e.group_wrap,this.server_info_duration=parseInt(e.server_info_duration,10)||0,this.server_conditions=e.server_conditions,e.inject_before&&advanced_ads_pro.inject_before.push({elementId:this.element_id,data:e.inject_before})}function Advads_passive_cb_Ad(e,t){if("object"!=typeof e||!advads_pro_utils.isset(e.id)||!advads_pro_utils.isset(e.title)||!advads_pro_utils.isset(e.content))throw new SyntaxError("Can not create Advads_passive_cb_Ad obj");this.id=e.id,this.title=e.title,this.content=e.content?e.content:"",this.type=e.type,this.expiry_date=parseInt(e.expiry_date)||0,this.visitors=e.visitors,this.once_per_page=e.once_per_page,this.elementid=t||null,this.day_indexes=e.day_indexes?e.day_indexes:null,this.debugmode=e.debugmode,this.tracking_enabled=void 0===e.tracking_enabled||1==e.tracking_enabled,this.blog_id=e.blog_id?e.blog_id:"",this.privacy=e.privacy?e.privacy:{},this.position=e.position?e.position:""}function Advads_passive_cb_Group(e,t){if(!(advads_pro_utils.isset(e.group_info.id)&&advads_pro_utils.isset(e.group_info.type)&&advads_pro_utils.isset(e.group_info.weights)&&advads_pro_utils.isset(e.group_info.ordered_ad_ids)&&advads_pro_utils.isset(e.group_info.ad_count)&&advads_pro_utils.isset(e.ads)))throw new SyntaxError("Can not create Advads_passive_cb_Group obj");this.id=e.group_info.id,this.name=e.group_info.name?e.group_info.name:this.id,this.type=e.group_info.type,this.weights=e.group_info.weights,this.ordered_ad_ids=e.group_info.ordered_ad_ids,this.ad_count=e.group_info.ad_count,this.elementid=t||null,this.slider_options=!!advads_pro_utils.isset(e.group_info.slider_options)&&e.group_info.slider_options,this.refresh_enabled=!!advads_pro_utils.isset(e.group_info.refresh_enabled),advads_pro_utils.isset(e.group_info.refresh_interval_for_ads)?this.refresh_interval=e.group_info.refresh_interval_for_ads:advads_pro_utils.isset(e.group_info.refresh_interval)?this.refresh_interval=e.group_info.refresh_interval:this.refresh_interval=2e3,this.placement=e instanceof Advads_passive_cb_Placement&&e,this.random=e.group_info.random,this.ads=e.ads,this.group_wrap=e.group_wrap,this.is_empty=!0}Advads_passive_cb_Placement.prototype.can_display=function(){if(advads_pro_utils.isset_nested(this.placement_info,"options","test_id")&&jQuery.inArray(this.placement_id,advanced_ads_pro.get_random_placements())<0)return!1;if(advads_pro_utils.isset_nested(this.placement_info,"options","layer_placement","close","enabled")&&this.placement_info.options.layer_placement.close.enabled&&advads_pro_utils.isset_nested(this.placement_info,"options","layer_placement","close","timeout_enabled")&&this.placement_info.options.layer_placement.close.timeout_enabled&&advads_pro_utils.isset(advads.get_cookie("timeout_placement_"+this.placement_info.id)))return!1;if(advads_pro_utils.isset_nested(this.placement_info,"options","close","enabled")&&this.placement_info.options.close.enabled&&advads_pro_utils.isset_nested(this.placement_info,"options","close","timeout_enabled")&&this.placement_info.options.close.timeout_enabled&&advads_pro_utils.isset(advads.get_cookie("timeout_placement_"+this.placement_info.id)))return!1;if(advads_pro_utils.isset_nested(this.placement_info,"options")&&"object"==typeof this.placement_info.options){var e=this.placement_info.options;if(!advads_pro_utils.selector_exists(e))return!1}return!0},Advads_passive_cb_Placement.prototype.can_use_passive_cb=function(){if(!this.ajax_query)return!0;var e=Advads_passive_cb_Conditions.get_stored_info(),t=~~((new Date).getTime()/1e3);for(var a in this.server_conditions)if(this.server_conditions.hasOwnProperty(a)){var i=e[this.server_conditions[a].type];if("object"!=typeof i)return!1;var s=i[a];if("object"!=typeof s)return!1;if((parseInt(s.time,10)||0)+this.server_info_duration<t)return!1}return!0},Advads_passive_cb_Placement.prototype.output=function(){var e=!0;switch(this.type){case"ad":if(!this.can_display())break;var t=new Advads_passive_cb_Ad(this.ads[this.id],this.element_id);if(t.can_display()){var a=this.get_ad_for_adblocker();a&&(t=a),t.output({track:!0,inject:!0,do_has_ad:!0}),e=!1}break;case"group":if("object"==typeof this.group_info){if(!this.can_display())break;var i=new Advads_passive_cb_Group(this,this.element_id);i.output(),e=i.is_empty}}advanced_ads_pro.dispatchWrapperCBEvent(this.element_id,e,"passive"),advanced_ads_pro.observers.fire({event:"inject_placement",id:this.placement_id,is_empty:e,cb_type:"passive"}),advanced_ads_pro.hasAd(this.placement_id,"placement",this.placement_id,"passive")},Advads_passive_cb_Placement.prototype.get_ad_for_adblocker=function(){if(advanced_ads_pro.adblocker_active&&this.ads_for_ab)for(var e in this.ads_for_ab){return new Advads_passive_cb_Ad(this.ads_for_ab[e],this.element_id)}return!1},Advads_passive_cb_Ad.prototype.output=function(e){if(e=e||{},this.debugmode){var t=this.can_display({ignore_debugmode:!0})?"displayed":"hidden",a=jQuery(this.content).find(".advads-passive-cb-debug").data(t);this.content=this.content.replace("##advanced_ads_passive_cb_debug##",a)}if(e.do_has_ad&&advanced_ads_pro.hasAd(this.id,"ad",this.title,"passive"),e.track&&this.tracking_enabled&&(advanced_ads_pro.passive_ads[this.blog_id]||(advanced_ads_pro.passive_ads[this.blog_id]=[]),advanced_ads_pro.passive_ads[this.blog_id].push(this.id)),advads_pro_utils.log("output passive ad",this.id,this.elementid,this.content),!e.inject)return this.content;advanced_ads_pro.inject(this.elementid,this.content)},Advads_passive_cb_Ad.prototype.can_display=function(e){return e=e||{},!(!this.debugmode||e.ignore_debugmode)||(""===this.content.trim()?(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: empty content"),!1):this.can_display_by_visitor()?this.can_display_by_expiry_date()?this.can_display_by_timeout()?this.can_display_by_display_limit()?this.can_display_by_weekday()?this.can_display_by_cfp()?!!this.can_display_by_consent()||(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_consent"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_cfp"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_weekday"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_display_limit"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_timeout"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_expiry_date"),!1):(advads_pro_utils.log("passive ad id",this.id,"cannot be displayed: by_visitor"),!1))},Advads_passive_cb_Ad.prototype.can_display_by_visitor=function(){if(!Array.isArray(this.visitors)||0===this.visitors.length)return!0;Advads_passive_cb_Conditions.init();for(var e,t=0,a=!1,i=0;i<this.visitors.length;++i)if(e=this.visitors[t],a&&"or"===e.connector)t++;else if(a=Advads_passive_cb_Conditions.frontend_check(e,this))t++;else if(t++,!this.visitors[t]||"or"!==this.visitors[t].connector)return!1;return!0},Advads_passive_cb_Ad.prototype.can_display_by_expiry_date=function(){return this.expiry_date<=0||this.expiry_date>~~((new Date).getTime()/1e3)},Advads_passive_cb_Ad.prototype.can_display_by_weekday=function(){if(!this.day_indexes)return!0;var e=new Date,t=window.advanced_ads_pro_ajax_object.wp_timezone_offset/60,a=t/60>=0?Math.floor(t/60):Math.ceil(t/60);return(t=e.getUTCMinutes()+t%60)>60&&(a++,t%=60),e.setHours(e.getUTCHours()+a),e.setMinutes(t),jQuery.inArray(e.getDay(),this.day_indexes)>=0},Advads_passive_cb_Ad.prototype.can_display_by_timeout=function(){return!advads_pro_utils.isset(advads.get_cookie("timeout_"+this.id))},Advads_passive_cb_Ad.prototype.can_display_by_display_limit=function(){if(this.once_per_page)for(var e=advanced_ads_pro.ads.length,t=0;t<e;t++)if("ad"===advanced_ads_pro.ads[t].type&&parseInt(advanced_ads_pro.ads[t].id,10)===this.id)return!1;return!0},Advads_passive_cb_Ad.prototype.can_display_by_cfp=function(){for(const e of this.visitors)if("ad_clicks"===e.type&&e["exclude-from-global"])return!0;return!advads.get_cookie("advads_pro_cfp_ban")},Advads_passive_cb_Ad.prototype.can_display_by_consent=function(){if(!advads.privacy||this.privacy.ignore||"adsense"===this.type&&advads.privacy.is_adsense_npa_enabled()||("image"===this.type||"dummy"===this.type)&&!this.privacy.needs_consent)return!0;var e=advads.privacy.get_state();return"accepted"===e||"not_needed"===e},Advads_passive_cb_Group.prototype.output=function(){var e=this.placement&&this.placement.get_ad_for_adblocker();if(advanced_ads_pro.hasAd(this.id,"group",this.name,"passive"),e||!this.refresh_enabled){var t,a=0,i=[];switch(this.type){case"ordered":case"slider":t=this.shuffle_ordered_ads(this.ordered_ad_ids,this.weights);break;case"grid":t=this.random?this.shuffle_ads():this.shuffle_ordered_ads(this.ordered_ad_ids,this.weights);break;default:t=this.shuffle_ads()}if(Array.isArray(t)&&jQuery.isPlainObject(this.ads)){for(var s=0;s<t.length;s++)if(this.ads.hasOwnProperty(t[s])){var r=this.ads[t[s]];if("object"==typeof r){var n=new Advads_passive_cb_Ad(r,this.elementid);n.can_display()&&(e&&(n=e),"slider"===this.type&&this.slider_options||this.group_wrap?i.push(n.output({track:!0,inject:!1,do_has_ad:!0})):n.output({track:!0,inject:!0,do_has_ad:!0}),a++,this.is_empty=!1)}if(a===this.ad_count)break;if(!this.is_empty&&e)break}i.length&&("slider"===this.type&&this.slider_options&&(i=this.output_slider(i)),advanced_ads_pro.inject(this.elementid,this.add_group_wrap(i,a)))}}else this.output_refresh()},Advads_passive_cb_Group.prototype.output_refresh=function(){var e=this.ordered_ad_ids,t=[],a=this,i=!1,s=[],r=0,n=(this.refresh_interval,jQuery("."+a.elementid));function o(e){if(jQuery.inArray(e.id,s)<0&&e.tracking_enabled){var t={};t[e.blog_id]=[e.id],advanced_ads_pro.observers.fire({event:"inject_passive_ads",ad_ids:t})}}function d(e){return"object"!=typeof a.refresh_interval?parseInt(a.refresh_interval,10)||2e3:parseInt(a.refresh_interval[e],10)||2e3}function _(e){var t="";return advads_pro_utils.isset_nested(a.placement,"placement_info","options","placement_position")&&(t=a.placement.placement_info.options.placement_position),-1===["left","right"].indexOf(t)&&(t=e.position),t}n=advanced_ads_pro._inject_before(this.elementid,n),Array.isArray(e)&&jQuery.isPlainObject(this.ads)&&function c(){for(var l=function(){var t;if("ordered"===a.type)if(-1!==(t=e.indexOf(i)))var s=e.slice(t+1).concat(e.slice(0,t));else s=e;else-1!==(t=(s=a.shuffle_ads()).indexOf(i))&&s.splice(t,1);return s}(),p=l.length,u=0;u<p;u++){var T=l[u],h=a.ads[T];if("object"==typeof h){var b=new Advads_passive_cb_Ad(h,a.elementid);if(b.can_display()){if(0===r)t=[b.output({track:!0,inject:!1,do_has_ad:!0})],advanced_ads_group_refresh.prepare_wrapper(n,_(b),!0);else{var f=jQuery.inArray(T,s)<0;t=[b.output({track:!1,inject:!1,do_has_ad:f})],o(b),advanced_ads_group_refresh.prepare_wrapper(n,_(b),!1)}s.push(b.id),advanced_ads_pro.inject(a.elementid,a.add_group_wrap(t,1)),a.is_empty=!1,r++,setTimeout((function(){a.placement&&!a.placement.can_display()||c()}),d(T)),i=b.id;break}}}}()},Advads_passive_cb_Group.prototype.add_group_wrap=function(e,t){if(!e.length)return"";var a="",i="";if(this.group_wrap)for(var s=0;s<this.group_wrap.length;s++){var r=this.group_wrap[s];if(r.min_ads=r.min_ads||1,!("object"!=typeof r||r.min_ads>t))if(r.before&&(a=r.before+a),r.after&&(i+=r.after),"string"==typeof r.each)for(var n=0;n<e.length;n++)e[n]=r.each.replace("%s",e[n]);else if("object"==typeof r.each){var o=r.each;for(n=0;n<e.length;n++){for(var d in o){var _=!1;if(o.hasOwnProperty(d)&&"all"!==d&&(1+n)%parseInt(d,10)==0){e[n]=o[d].replace("%s",e[n]),_=!0;break}}!_&&o.all&&(e[n]=o.all.replace("%s",e[n]))}}}return a+e.join("")+i},Advads_passive_cb_Group.prototype.output_slider=function(e){var t;return e.length>1&&"function"==typeof jQuery.fn.unslider&&(t=e.join("</li><li>"),(e=[]).push('<div id="'+this.slider_options.slider_id+'" class="'+this.slider_options.init_class+" "+this.slider_options.prefix+'slider"><ul><li>'),e.push(t),e.push("</li></ul></div>"),e.push("<script>jQuery(function() { jQuery('."+this.slider_options.init_class+"').unslider({ "+this.slider_options.settings+" }); });<\/script>")),e},Advads_passive_cb_Group.prototype.shuffle_ordered_ads=function(e,t){weight_array=[];for(var a=0;a<e.length;a++){var i=t[e[a]];if(!i)return e;weight_array.push(i)}var s=weight_array.length,r=0;for(a=1;a<=s;a++)if(a==s||weight_array[a]!==weight_array[a-1]){var n=a-r;if(1!==n){var o=advads_pro_utils.shuffle_array(e.slice(r,r+n)),d=[r,n].concat(o);Array.prototype.splice.apply(e,d)}r=a}return e},Advads_passive_cb_Group.prototype.shuffle_ads=function(){for(var e=[],t=jQuery.extend({},this.weights);null!==(random_ad_id=advads_pro_utils.get_random_el_by_weight(t));)delete t[random_ad_id],e.push(parseInt(random_ad_id,10));return e}}advads_pro_utils||(advads_pro_utils={debug:window.location&&window.location.hash&&-1!==window.location.hash.indexOf("#debug=true"),each:function(e,t,a){var i,s=e&&e.length||0;for(i=0;i<s;i++)t.call(a,e[i],i)},each_key:function(e,t,a){var i;if("object"==typeof e)for(i in e)e.hasOwnProperty(i)&&t.call(a,i,e[i])},log:function(){if(this.debug&&this.isset(window.console)){var e=Array.prototype.slice.call(arguments);e.unshift("Advanced Ads CB:"),window.console.log.apply(window.console,e)}},print_debug_arrays:function(){0===advanced_ads_pro.iterations&&(this.log("passive_ads\n",advads_passive_ads),this.log("passive_groups\n",advads_passive_groups),this.log("passive_placements\n",advads_passive_placements),this.log("ajax_queries\n",advads_ajax_queries),this.log(Advads_passive_cb_Conditions.VISITOR_INFO_COOKIE_NAME+"\n",Advads_passive_cb_Conditions.get_stored_info()))},isset:function(e){return void 0!==e},isset_nested:function(e){for(var t=arguments.length,a=1;a<t;a++){if(!e||!e.hasOwnProperty(arguments[a]))return!1;e=e[arguments[a]]}return!0},is_numeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},get_random_number:function(e,t){var a=e-.5+Math.random()*(t-e+1);return Math.round(a)},get_random_el_by_weight:function(e,t){var a,i=0;if(t=void 0!==t&&t,"object"==typeof e){for(var s in e)s!==t&&e.hasOwnProperty(s)&&(i+=parseInt(e[s])||0);if(i<1)return null;for(var s in a=advads_pro_utils.get_random_number(1,i),e)if(s!==t&&e.hasOwnProperty(s)&&(a-=e[s])<=0)return s}},bind:function(e,t){return function(){return e.apply(t,arguments)}},shuffle_array:function(e){var t,a,i=e.length;if(!i)return e;for(;--i;)a=~~(Math.random()*(i+1)),t=e[i],e[i]=e[a],e[a]=t;return e},selector_exists:function(e){var t=e[e.inject_by&&"pro_custom_element"!==e.inject_by?"container_id":"pro_custom_element"];if(!t)return!0;var a=jQuery(t);return a.length?!(!advanced_ads_pro_ajax_object.moveintohidden&&!a.filter(":visible").length)||(advads_pro_utils.log("selector is hidden",t),!1):(advads_pro_utils.log("selector does not exist",t),!1)},deg2rad:function(e){return e*Math.PI/180},calculate_distance:function(e,t,i,s,r){return r=r||"km",e=this.deg2rad(e),t=this.deg2rad(t),i=this.deg2rad(i),s=this.deg2rad(s),dLon=s-t,a=Math.pow(Math.cos(i)*Math.sin(dLon),2)+Math.pow(Math.cos(e)*Math.sin(i)-Math.sin(e)*Math.cos(i)*Math.cos(dLon),2),b=Math.sin(e)*Math.sin(i)+Math.cos(e)*Math.cos(i)*Math.cos(dLon),rad=Math.atan2(Math.sqrt(a),b),"mi"==r?3958.755865744*rad:6371*rad},extract_cookie_data(e){try{var t=JSON.parse(e)}catch(t){return e}return"object"!=typeof t?e:t.data}});var advanced_ads_group_refresh={element_ids:{},add_query:function(e,t){var a=[];return function(e,t){e.elementid;var i=(new Date).getTime()+t;a[i]=a[i]||[],a[i].push(e),setTimeout((function(){var e=(new Date).getTime(),t=[];for(call_time in a)if(a.hasOwnProperty(call_time)&&e>call_time-1e3){for(var i=a[call_time],s=i.length,r=0;r<s;r++)t.push(i[r]);delete a[call_time]}advanced_ads_pro.process_ajax_ads(t)}),t)}}(),find_float:function(e){var t=!1;return e.find("div").each((function(e,a){if("left"===this.style.float||"right"==this.style.float)return t=this.style.float,!1})),t},prepare_wrapper:function(e,t,a){a||(this.maybe_increase_sizes(e),e.empty()),this.set_float(e,t)},maybe_increase_sizes:function(e){var t=e.css("float");-1===["left","right"].indexOf(t)&&(t=!1);var a={};if(t){var i=parseInt(e.css("min-width"),10)||0,s=e.prop("scrollWidth")||0;s>i&&(a["min-width"]=s)}var r=parseInt(e.css("min-height"),10)||0,n=e.prop("scrollHeight")||0;n>r&&(a["min-height"]=n),(a["min-height"]||a["min-width"])&&e.css(a)},set_float:function(e,t){-1===["left","right"].indexOf(t)&&(t=!1),t!==(e.data("prev_float")||!1)&&(e.data("prev_float",t),t?e.css({"min-width":"","min-height":"",float:t}):e.css({"min-width":"","min-height":"",float:""}))}};var advanced_ads_layer_settings={"layer_class":"trekk-layer","placements":["popup-test"]};var advanced_ads_layer_cache_busting;if(!advanced_ads_layer_cache_busting){advanced_ads_layer_cache_busting={doc_loaded:!1,bufferedAds:[],flush:function(){var _bufferedAds=this.bufferedAds;this.bufferedAds=[];for(var i=0;i<_bufferedAds.length;i++){this._process_item(jQuery(_bufferedAds[i]))}},_process_item:function(banner){var banner_id=banner.attr('id');advads_items.conditions[banner_id]=advads_items.conditions[banner_id]||{};advads_layer_center_if_not_sticky(banner)
if(banner.hasClass('advads-effect')){advads_layer_gather_effects(banner_id)}
if(!banner.hasClass('use-fancybox')){advads_layer_gather_background(banner_id)}
advads_layer_gather_auto_close(banner);if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-onload')){advads_items.conditions[banner_id].scrolloffset=!0;advads_check_item_conditions(banner_id)}else if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-exit')){ouibounce(banner[0],{aggressive:!0,timer:0,callback:function(){banner.css('display','none');advads_items.conditions[banner_id].scrolloffset=!0;advads_check_item_conditions(banner_id)}})}else if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-delay')){var delay=(parseInt(banner.attr('data-advads-layer-delay'),10))||0;setTimeout(function(){advads_items.conditions[banner_id].delay_expired=!0;advads_check_item_conditions(banner_id)},delay)}else{var advads_scrollhalf=(jQuery(document).height()-jQuery(window).height())/2;var scroll_handler=function(event){if(jQuery.inArray(banner_id,advads_items.showed)!==-1){jQuery(window).off('scroll',scroll_handler);return}
if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-stop')){advads_items.conditions[banner_id].scrolloffset=!0;advads_check_item_conditions(banner_id)}
if(jQuery(document).scrollTop()>=advads_scrollhalf){if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-half')){advads_items.conditions[banner_id].scrolloffset=!0;advads_check_item_conditions(banner_id)}}
if(banner.hasClass(advanced_ads_layer_settings.layer_class+'-offset')){var custom_offset=advads_extract_custom_offset_from_class('#'+banner_id);if(jQuery(document).scrollTop()>=custom_offset){advads_items.conditions[banner_id].scrolloffset=!0;advads_check_item_conditions(banner_id)}}}
jQuery(window).onEnd('scroll',scroll_handler,100)}},observe:function(event){if(event.event==='postscribe_done'&&event.ref&&event.ad){var banner=jQuery(event.ref).children('div');if(!banner.hasClass(advanced_ads_layer_settings.layer_class+'')){return}
if(advanced_ads_layer_cache_busting.doc_loaded){advanced_ads_layer_cache_busting.bufferedAds.push(banner);advanced_ads_layer_cache_busting.flush()}}},}}
if(typeof advanced_ads_pro==='object'&&advanced_ads_pro!==null){advanced_ads_pro.postscribeObservers.add(advanced_ads_layer_cache_busting.observe)}
var layers=function(){advanced_ads_layer_cache_busting.doc_loaded=!0;jQuery('.'+advanced_ads_layer_settings.layer_class).each(function(){advanced_ads_layer_cache_busting.bufferedAds.push(jQuery(this))});advanced_ads_layer_cache_busting.flush()};if(typeof advads!=='undefined'&&typeof advads.privacy.dispatch_event!=='undefined'){document.addEventListener('advanced_ads_privacy',function(event){if(event.detail.previousState==='unknown'&&(event.detail.state==='accepted'||event.detail.state==='not_needed')&&window.advanced_ads_layer_settings.placements!==null){window.advanced_ads_layer_settings.placements.forEach(function(value){document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"][data-placement="'+value+'"]').forEach(advads.privacy.decode_ad)})}
layers()})}else{(window.advanced_ads_ready||jQuery(document).ready).call(null,function(){layers()})}
function advads_layer_center_if_not_sticky($ad){if($ad.hasClass('is-sticky')){return}
var width=parseInt($ad.attr('data-width'),10);var height=parseInt($ad.attr('data-height'),10);var is_transform_supported=getSupportedTransform();var transform_property='';if(!height){if(is_transform_supported){transform_property+='translateY(50%) '}else{jQuery($ad).css({'top':'0','bottom':'auto'})}}
if(!width){if(is_transform_supported){transform_property+='translateX(-50%) '}else{jQuery($ad).css({'left':'0','right':'auto'})}}
if(transform_property){set_ad_transform($ad,transform_property)}}
function advads_layer_gather_effects(id){var banner=jQuery('#'+id);advads_items.effect_durations[id]=advads_extract_duration_from_class(banner);if(banner.hasClass('advads-effect-fadein')){advads_items.display_effect_callbacks[id]='advads_display_effect_fadein'};if(banner.hasClass('advads-effect-show')){advads_items.display_effect_callbacks[id]='advads_display_effect_show'};if(banner.hasClass('advads-effect-slide')){advads_items.display_effect_callbacks[id]='advads_display_effect_slide'}}
function advads_layer_gather_background(id){var banner=jQuery('#'+id);if(banner.hasClass('advads-has-background')&&banner.is(':hidden')){if(!advads_items.display_callbacks[id]!='undefined'){advads_items.display_callbacks[id]={};var length=0}else{var length=advads_items.display_callbacks[id].length}
advads_items.display_callbacks[id][length]='advads_layer_display_background_callback'}}
function advads_layer_gather_auto_close($banner){var delay=parseInt($banner.data('auto-close-delay'),10);if(!delay){return}
var banner_id=$banner.attr('id');advads_items.display_callbacks[banner_id]=advads_items.display_callbacks[banner_id]||{};advads_items.display_callbacks[banner_id].auto_close=function(banner_id){setTimeout(function(){advads_layer_close_item(banner_id)},delay)}}
function can_remove_background(item){advads_items.backgrounds[item]=!1;var remove=!0;jQuery.each(advads_items.backgrounds,function(i,val){if(val==!0){remove=!1;return!1}});return remove}
function advads_check_item_conditions(id){var item=jQuery('#'+id);if(item.length==0){return}
var display=!0;jQuery.each(advads_items.conditions[id],function(method,flag){if(flag===!1){display=!1}});if(display){advads_items.showed.push(id);item.trigger(advanced_ads_layer_settings.layer_class+'-trigger');if(item.hasClass('use-fancybox')){fancybox_display(id)}else{var ad=jQuery('#'+id);var position=jQuery(ad).attr('data-position');var width=parseInt(ad.attr('data-width'),10);var height=parseInt(ad.attr('data-height'),10);var is_transform_supported=getSupportedTransform();switch(position){case 'topcenter':if(!width){if(is_transform_supported){set_ad_transform(ad,'translateX(-50%)')}else{jQuery(ad).css({'left':'0','right':'auto','top':'0','bottom':'auto'})}}
break;case 'centerleft':if(!height){if(is_transform_supported){set_ad_transform(ad,'translateY(50%)')}else{jQuery(ad).css({'left':'0','right':'auto','top':'0','bottom':'auto'})}}
break;case 'center':var transform_property='';if(!height){if(is_transform_supported){transform_property+='translateY(50%) '}else{jQuery(ad).css({'top':'0','bottom':'auto'})}}
if(!width){if(is_transform_supported){transform_property+='translateX(-50%) '}else{jQuery(ad).css({'left':'0','right':'auto'})}}
if(transform_property){set_ad_transform(ad,transform_property)}
break;case 'centerright':if(!height){if(is_transform_supported){set_ad_transform(ad,'translateY(50%)')}else{jQuery(ad).css({'left':'0','right':'auto','top':'0','bottom':'auto'})}}
break;case 'bottomcenter':if(!width){if(is_transform_supported){set_ad_transform(ad,'translateX(-50%)')}else{jQuery(ad).css({'left':'0','right':'auto','top':'0','bottom':'auto'})}}
break}
advads_layer_call_display_callbacks(id);if(advads_items.display_effect_callbacks[id]==undefined){ad.show()}else{var callback=window[advads_items.display_effect_callbacks[id]];callback(id)}}}}
function fancybox_display(id){var banner=jQuery('#'+id);var settings={'speedIn':0,'speedOut':0,'showCloseButton':!0,'hideOnOverlayClick':banner.hasClass('advads-background-click-close'),'centerOnScroll':!0,'margin':20,'padding':10,'onClosed':function(){if(typeof advads_items.close_functions[id]==='function'){advads_items.close_functions[id]()}},'onComplete':function(){advads_layer_call_display_callbacks(id)},}
if(advads_items.display_effect_callbacks[id]==undefined){settings.transitionIn='none'}else{var callback=advads_items.display_effect_callbacks[id];switch(callback){case 'advads_display_effect_fadein':settings.transitionIn='fade';break;case 'advads_display_effect_show':settings.transitionIn='elastic';break;default:settings.transitionIn='none'}}
if(!banner.hasClass('advads-has-background')){settings.overlayShow=!1}
if(!banner.hasClass('advads-close')){settings.showCloseButton=!1}
var speedIn=advads_extract_duration_from_class(banner);settings.speedIn=(speedIn)?speedIn:0;var position=jQuery(banner).attr('data-position');var output_css='#fancybox-close { right: -15px; }';output_css+='#fancybox-loading, #fancybox-loading div, #fancybox-overlay, #fancybox-wrap, #fancybox-wrap div {';output_css+='-webkit-box-sizing: content-box !important; -moz-box-sizing: content-box !important; box-sizing: content-box !important; }';switch(position){case 'topleft':output_css+='#fancybox-wrap { position: fixed; bottom: auto !important; top: 0px !important; right: auto !important; left: 0px !important; }';break;case 'topcenter':output_css+='#fancybox-wrap { position: fixed; bottom: auto !important; top: 0px !important; }';break;case 'topright':output_css+='#fancybox-wrap { position: fixed; bottom: auto !important; top: 0px !important; right: 0px !important; left: auto !important; }';break;case 'centerleft':output_css+='#fancybox-wrap { left: 0px !important; right: auto !important; }';break;case 'center':break;case 'centerright':output_css+='#fancybox-wrap { right: 0px !important; left: auto !important; }';break;case 'bottomleft':output_css+='#fancybox-wrap { position: fixed; bottom: 0px !important; top: auto !important; right: auto !important; left: 0px !important; }';break;case 'bottomcenter':output_css+='#fancybox-wrap { position: fixed; bottom: 0px !important; top: auto !important; }';break;case 'bottomright':output_css+='#fancybox-wrap { position: fixed; bottom: 0px !important; top: auto !important; right: 0px !important; left: auto !important; }';break}
jQuery('#'+advanced_ads_layer_settings.layer_class+'-custom-css').html(output_css);if(typeof jQuery.fancybox=='function'){banner.waitForImages(function(){settings.content=banner.show();jQuery.fancybox(settings)})}}
function advads_layer_call_display_callbacks(banner_id){advads_items.display_callbacks[banner_id]=advads_items.display_callbacks[banner_id]||{};jQuery.each(advads_items.display_callbacks[banner_id],function(key,func){if(typeof func==='string'){func=window[func]}
func(banner_id)})}
function advads_extract_custom_offset_from_class(field){var offset=0;var classes=jQuery(field).attr('class');if(classes!==undefined){classes=classes.split(/\s+/);jQuery.each(classes,function(key,value){if(value==='')
return!1;var pattern=new RegExp(advanced_ads_layer_settings.layer_class+'-offset-','gi');if(value.match(pattern)){infos=value.split('-');offset=parseInt(infos[3])
return!1}})}
return offset};function advads_extract_duration_from_class(field){var duration=0;var classes=field.attr('class');if(classes!==undefined){classes=classes.split(/\s+/);jQuery.each(classes,function(key,value){if(value==='')
return!1;if(value.match(/advads-duration-/gi)){infos=value.split('-');duration=parseInt(infos[2])
return!1}})}
return duration};function advads_layer_display_background_callback(id){var banner=jQuery('#'+id);if(banner.hasClass('advads-has-background')&&banner.is(':hidden')){advads_items.backgrounds[id]=!0;if(jQuery('.advads-background').length===0){var args={"class":"advads-background","style":"position: fixed; bottom: 0; right: 0; display: block; width: 100%; height: 100%; background: #000; z-index: 9998; opacity:.5;",}
if(banner.hasClass('advads-background-click-close')){args.click=function(){jQuery(this).remove();advads_layer_close_items()}}
jQuery('<div/>',args).appendTo('body')}}}
function advads_display_effect_fadein(id){var banner=jQuery('#'+id);var duration=parseInt(advads_items.effect_durations[id]);banner.fadeIn(duration)}
function advads_display_effect_show(id){var banner=jQuery('#'+id);var duration=parseInt(advads_items.effect_durations[id]);banner.show(duration)}
function advads_display_effect_slide(id){var banner=jQuery('#'+id);var duration=parseInt(advads_items.effect_durations[id]);banner.slideDown(duration)}
function getSupportedTransform(){var prefixes='transform WebkitTransform MozTransform OTransform msTransform'.split(' ');var div=document.createElement('div');for(var i=0;i<prefixes.length;i++){if(div&&div.style[prefixes[i]]!==undefined){return prefixes[i]}}
return!1}
function set_ad_transform(ad,transform_properties){jQuery(ad).css({'-webkit-transform':transform_properties,'-moz-transform':transform_properties,'transform':transform_properties})}
function advads_layer_close_item(item_id){if(typeof advads_items.close_functions[item_id]==='function'){advads_items.close_functions[item_id]();advads_items.close_functions[item_id]=null;if(jQuery.fancybox&&typeof jQuery.fancybox.close==='function'){jQuery.fancybox.close()}}}
function advads_layer_close_items(){for(var item_id in advads_items.close_functions){if(advads_items.close_functions.hasOwnProperty(item_id)){advads_layer_close_item(item_id)}}}
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.fn.onEnd=function(){var a,b=Array.prototype.slice.call(arguments),c=b.pop(),d=b.pop(),e=function(){var b=Array.prototype.slice.call(arguments);clearTimeout(a),a=setTimeout(function(){d.apply(this,b)}.bind(this),c)};e.guid=d.guid||(d.guid=jQuery.guid++),b.push(e),this.on.apply(this,b)}});
/*!
 * Ouibounce
 * https://github.com/carlsednaoui/ouibounce
 *
 * Copyright (c) 2014 Carl Sednaoui
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
 **/
!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n(require,exports,module):e.ouibounce=n()}(this,function(e,n,o){return function(e,n){"use strict";function o(e,n){return"undefined"==typeof e?n:e}function i(e){var n=24*e*60*60*1e3,o=new Date;return o.setTime(o.getTime()+n),"; expires="+o.toUTCString()}function t(){s()||(L.addEventListener("mouseleave",u),L.addEventListener("mouseenter",r),L.addEventListener("keydown",c))}function u(e){e.clientY>k||(D=setTimeout(m,y))}function r(){D&&(clearTimeout(D),D=null)}function c(e){g||e.metaKey&&76===e.keyCode&&(g=!0,D=setTimeout(m,y))}function d(e,n){return a()[e]===n}function a(){for(var e=document.cookie.split("; "),n={},o=e.length-1;o>=0;o--){var i=e[o].split("=");n[i[0]]=i[1]}return n}function s(){return d(T,"true")&&!v}function m(){s()||(e&&(e.style.display="block"),E(),f())}function f(e){var n=e||{};"undefined"!=typeof n.cookieExpire&&(b=i(n.cookieExpire)),n.sitewide===!0&&(w=";path=/"),"undefined"!=typeof n.cookieDomain&&(x=";domain="+n.cookieDomain),"undefined"!=typeof n.cookieName&&(T=n.cookieName),document.cookie=T+"=true"+b+x+w,L.removeEventListener("mouseleave",u),L.removeEventListener("mouseenter",r),L.removeEventListener("keydown",c)}var l=n||{},v=l.aggressive||!1,k=o(l.sensitivity,20),p=o(l.timer,1e3),y=o(l.delay,0),E=l.callback||function(){},b=i(l.cookieExpire)||"",x=l.cookieDomain?";domain="+l.cookieDomain:"",T=l.cookieName?l.cookieName:"viewedOuibounceModal",w=l.sitewide===!0?";path=/":"",D=null,L=document.documentElement;setTimeout(t,p);var g=!1;return{fire:m,disable:f,isDisabled:s}}});
/*! waitForImages jQuery Plugin 2015-06-02 */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b="waitForImages";a.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},a.expr[":"]["has-src"]=function(b){return a(b).is('img[src][src!=""]')},a.expr[":"].uncached=function(b){return a(b).is(":has-src")?!b.complete:!1},a.fn.waitForImages=function(){var c,d,e,f=0,g=0,h=a.Deferred();if(a.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,d=arguments[0].each,c=arguments[0].finished):1===arguments.length&&"boolean"===a.type(arguments[0])?e=arguments[0]:(c=arguments[0],d=arguments[1],e=arguments[2]),c=c||a.noop,d=d||a.noop,e=!!e,!a.isFunction(c)||!a.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=a(this),j=[],k=a.waitForImages.hasImageProperties||[],l=a.waitForImages.hasImageAttributes||[],m=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?i.find("*").addBack().each(function(){var b=a(this);b.is("img:has-src")&&j.push({src:b.attr("src"),element:b[0]}),a.each(k,function(a,c){var d,e=b.css(c);if(!e)return!0;for(;d=m.exec(e);)j.push({src:d[2],element:b[0]})}),a.each(l,function(c,d){var e,f=b.attr(d);return f?(e=f.split(","),void a.each(e,function(c,d){d=a.trim(d).split(" ")[0],j.push({src:d,element:b[0]})})):!0})}):i.find("img:has-src").each(function(){j.push({src:this.src,element:this})}),f=j.length,g=0,0===f&&(c.call(i[0]),h.resolveWith(i[0])),a.each(j,function(e,j){var k=new Image,l="load."+b+" error."+b;a(k).one(l,function m(b){var e=[g,f,"load"==b.type];return g++,d.apply(j.element,e),h.notifyWith(j.element,e),a(this).off(l,m),g==f?(c.call(i[0]),h.resolveWith(i[0]),!1):void 0}),k.src=j.src})}),h.promise()}});var advanced_ads_sticky_settings={"check_position_fixed":"","sticky_class":"trekk-sticky","placements":[]};function advanced_ads_sticky_check_position_fixed(){var container=document.body;if(document.createElement&&container&&container.appendChild&&container.removeChild){var el=document.createElement('div');if(!el.getBoundingClientRect){return null}
el.innerHTML='x';el.style.cssText='position:fixed;top:100px;';container.appendChild(el);var originalHeight=container.style.height,originalScrollTop=container.scrollTop;var extraTop=parseInt(document.documentElement.getBoundingClientRect().top,10);extraTop=extraTop>0?extraTop:0;container.style.height='3000px';container.scrollTop=500;var elementTop=parseInt(el.getBoundingClientRect().top,10);container.style.height=originalHeight;var isSupported=(elementTop-extraTop)===100;container.removeChild(el);container.scrollTop=originalScrollTop;return isSupported}
return null};document.addEventListener('advanced_ads_privacy',function(event){if(event.detail.state!=='accepted'&&event.detail.state!=='not_needed'){return}
window.advanced_ads_sticky_settings.placements.forEach(function(value){document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"][data-placement="'+value+'"]').forEach(advads.privacy.decode_ad)})});jQuery(document).ready(function($){var resize_timeout=null,$el,previous_width=$(window).width();function resize_handler(){if(resize_timeout)clearTimeout(resize_timeout);resize_timeout=setTimeout(function(){var new_width=$(window).width();if(previous_width===new_width){return}
previous_width=new_width;if(typeof advanced_ads_sticky_items!=='undefined'){$.each(advanced_ads_sticky_items,function(wrapper_id,data){$el=$('#'+wrapper_id);$el.prop('style',data.initial_css);data.modifying_func()})}},1000)}
if('undefined'===typeof advanced_ads_responsive||!parseInt(advanced_ads_responsive.reload_on_resize,10)){jQuery(window).on('resize',resize_handler)}
if(typeof advanced_ads_sticky_settings==='undefined'||!advanced_ads_sticky_settings.check_position_fixed){return}
var advanced_ads_sticky_position_fixed_supported='';var allowed_offset=$(document.body).is('.admin-bar')?$('#wpadminbar').height():0;function remove_css($stickyads){if(advanced_ads_sticky_position_fixed_supported===!1){$(window).off('resize',resize_handler);$stickyads=$stickyads||jQuery('.'+advanced_ads_sticky_settings.sticky_class);setTimeout(function(){$stickyads.each(function(key,value){var $stickyad=$(value);if(window.advanced_ads_sticky_items[$stickyad.attr('id')].can_convert_to_abs){$stickyad.css('position','absolute')}else{$stickyad.css('position','').css('top','').css('right','').css('bottom','').css('left','').css('margin-left','').css('transform','none').css('-webkit-transform','none').css('-moz-transform','none').css('-ms-transform','none')}})})}}
function scroll_handler(){clearTimeout($.data(this,'scrollTimer'));$.data(this,'scrollTimer',setTimeout(function(){if($(document).scrollTop()<=allowed_offset){return}
if(advanced_ads_sticky_position_fixed_supported==''){advanced_ads_sticky_position_fixed_supported=advanced_ads_sticky_check_position_fixed();clearTimeout($.data(this,'scrollTimer'));$(window).off('scroll',scroll_handler)}
remove_css()},100))}
if(navigator.userAgent.indexOf('Opera Mini')>-1){advanced_ads_sticky_position_fixed_supported=!1;remove_css()}else{$(window).scroll(scroll_handler)}
if(typeof advanced_ads_pro==='object'&&advanced_ads_pro!==null){advanced_ads_pro.postscribeObservers.add(function(event){if(event.event==='postscribe_done'&&event.ref&&event.ad){var $stickyad=jQuery(event.ref).children('.'+advanced_ads_sticky_settings.sticky_class);if($stickyad.length){remove_css($stickyad)}}})}});var advanced_ads_cookies={"cookie_path":"\/","cookie_domain":""};var advadsCfpInfo={"cfpExpHours":"3","cfpClickLimit":"3","cfpBan":"7","cfpPath":"","cfpDomain":""};!function(e){var t="advads_procfp",a="advanced_ads_ad_clicks",d=null,n=null;function o(e){try{return JSON.parse(e)}catch(e){return null}}e(document).on("advads-passive-cb-conditions",(function(e,t){t.conditions.ad_clicks="check_ad_clicks",t.check_ad_clicks=function(e,t){if(advads.cookie_exists(a+"_"+t.id)){var d=advads.get_cookie(a+"_"+t.id);d=o(d)}if(d){var n=parseInt((new Date).getTime()/1e3);for(var i in d)if("_"+e.expiration==i&&d[i].ttl>=n&&d[i].count>=parseInt(e.limit))return!1}return!0}}));var i=function(){this.$elements={},this.currentIFrame=!1,this.focusLost=!1,this.wrappers=[".google-auto-placed"],this.attributes={"data-anchor-status":"displayed","data-vignette-loaded":"true"},this.lastClick=0,this.init()};i.prototype={constructor:i,init:function(){const t=this;let a;e(document).on("click","a[data-cfpa]",(function(){t.onClick(parseInt(e(this).attr("data-cfpa")))})),e(window).on("blur",(function(e){setTimeout((function(){if(!t.currentIFrame)for(let e=document.activeElement;e&&e!==this&&e!==document&&(t.currentIFrame=t.checkWrappers(e),!t.currentIFrame);e=e.parentNode);t.currentIFrame&&(t.onClick(t.currentIFrame),t.focusLost=!0,top.focus())}),0)})),e(document).on("mouseenter","div[data-cfpa]",(function(){var a=parseInt(e(this).attr("data-cfpa"));t.addElement(a)})),document.addEventListener("touchmove",(function(){a=!0}),!1),document.addEventListener("touchstart",(function(){a=!1}),!1),["click","touchend"].forEach((function(e){document.addEventListener(e,(function(e){if(a||t.getTimestamp()-t.lastClick<1)return;let d=null;for(let a=e.target;a&&a!==this&&a!==document;a=a.parentNode){if(d=t.checkWrappers(a),d){t.onClick(d);break}if(a.hasAttribute("data-cfpa")&&a.hasAttribute("data-cfptl")){d=parseInt(a.getAttribute("data-cfpa"),10),t.onClick(d);break}}}))}))},getTimestamp:function(){return Math.floor(Date.now()/1e3)},checkWrappers:function(e){for(let t=0,a=this.wrappers.length,d=null;t<a;t++)if(d=this.wrappers[t],e.matches&&e.matches(d))return".google-auto-placed"===d?"google-auto-placed":null;for(const[t,a]of Object.entries(this.attributes))if(e.hasAttribute(t)&&e.getAttribute(t)===a)return"google-auto-placed";return null},addElement:function(t){!1==t instanceof jQuery&&(t=e('div[data-cfpa="'+t+'"]').first());var i=!!t.find("iframe").length;if(i||t.find("a").length){var r=parseInt(t.attr("data-cfpa"));if(this.$elements[r]=t,t.removeAttr("data-cfpa"),i?(t.find("iframe").first().attr({"data-cfpa":r}),t.attr("data-cfph")&&t.find("iframe").first().attr({"data-cfph":t.attr("data-cfph")})):(t.find("a").not(".advads-edit-button").first().attr({"data-cfpa":r}),t.attr("data-cfph")&&t.find("a").not(".advads-edit-button").first().attr({"data-cfph":t.attr("data-cfph")})),t.removeAttr("data-cfph"),advads.cookie_exists(a+"_"+r)){var s=advads.get_cookie(a+"_"+r);if(s=o(s)){var c=parseInt((new Date).getTime()/1e3),f=!1;for(var u in s)if(s.hasOwnProperty(u)&&"exp"!=u&&s[u].ttl<c){for(var p=parseFloat(u.substr(1)),v=s[u].ttl;v<c;)v+=60*p*60;s[u].ttl=v,s[u].count=0,f=!0}if(f){var _=new Date(s.exp);advads.set_cookie_sec(a+"_"+r,JSON.stringify(s,"false",!1),parseInt(_.getTime()/1e3),d,n)}}}}},_banVisitor:function(){var e=new Date,t=new Date;t.setTime(t.getTime()+24*advadsCfpInfo.cfpBan*60*60*1e3);var a=(t.getTime()-e.getTime())/1e3;advads.set_cookie_sec("advads_pro_cfp_ban",1,a,d,n),document.querySelectorAll("[data-cfpw]:not([data-cfp-exclude])").forEach((function(e){e.remove()})),this.removeEmptyWrappers(),this.wrappers.forEach((function(e){jQuery(e).remove()}));for(const[e,t]of Object.entries(this.attributes))jQuery("["+e+'="'+t+'"]').remove()},removeEmptyWrappers:function(){document.querySelectorAll("[data-cfptl]:not([data-cfpw])").forEach((function(e){e.querySelectorAll("[data-cfpw]").length||e.remove()}))},onClick:function(i){var r=this,s=!1,c=!1;if(this.lastClick=this.getTimestamp(),"google-auto-placed"!==i&&e('[data-cfpa="'+i+'"]').attr("data-cfph")){advads.cookie_exists(a+"_"+i)&&(c=o(advads.get_cookie(a+"_"+i)));const t=o(e('[data-cfpa="'+i+'"]').attr("data-cfph"));if(c){const e=parseInt((new Date).getTime()/1e3,10),o=document.querySelectorAll('[data-cfpw="'+i+'"]');for(var f in c)c.hasOwnProperty(f)&&"exp"!==f&&(c[f].count=parseInt(c[f].count,10)+1,c[f].ttl>=e&&c[f].count>=parseInt(t[f],10)&&(o.forEach((function(e){e.remove()})),r.removeEmptyWrappers()));var u=new Date,p=new Date(c.exp),v=parseInt((p.getTime()-u.getTime())/1e3);advads.set_cookie_sec(a+"_"+i,JSON.stringify(c,"false",!1),v,d,n)}else{var _={},l=0,m=new Date;u=new Date;for(var f in t)f=f.substring(1),parseFloat(f)>l&&(l=parseFloat(f)),_["_"+f]={count:1,ttl:parseInt(u.getTime()/1e3+3600*parseFloat(f),10)};m.setTime(m.getTime()+60*l*60*1e3);var w="expires="+m.toUTCString();v=parseInt((m.getTime()-u.getTime())/1e3);_.exp=w,advads.set_cookie_sec(a+"_"+i,JSON.stringify(_,"false",!1),v,d,n)}}if(advads.cookie_exists(t+"_"+i)&&(s=o(advads.get_cookie(t+"_"+i))),s){s.count=parseInt(s.count,10)+1;u=new Date,v=((p=new Date(s.exp)).getTime()-u.getTime())/1e3;advads.set_cookie_sec(t+"_"+i,JSON.stringify(s,"false",!1),v,d,n),advadsCfpInfo.cfpClickLimit<=s.count&&void 0!==advadsCfpInfo.cfpBan&&r._banVisitor()}else{m=new Date,u=new Date;m.setTime(m.getTime()+60*advadsCfpInfo.cfpExpHours*60*1e3);w="expires="+m.toUTCString(),v=(m.getTime()-u.getTime())/1e3;advads.set_cookie_sec(t+"_"+i,'{"count":1,"exp":"'+w+'"}',v,d,n),1===advadsCfpInfo.cfpClickLimit&&void 0!==advadsCfpInfo.cfpBan&&r._banVisitor()}}},e((function(){for(var t in window.advadsProCfp=new i,e(document).on("mouseenter","iframe[data-cfpa]",(function(t){var a=parseInt(e(this).attr("data-cfpa"));advadsProCfp.currentIFrame=a})).on("mouseenter",".google-auto-placed",(function(e){advadsProCfp.currentIFrame="google-auto-placed"})).on("mouseleave mouseout","[data-cfpa], .google-auto-placed",(function(){advadsProCfp.currentIFrame=!1,advadsProCfp.focusLost&&(advadsProCfp.focusLost=!1,e(window).trigger("focus"))})),advadsCfpQueue)advadsCfpQueue.hasOwnProperty(t)&&advadsProCfp.addElement(advadsCfpQueue[t]);advadsCfpQueue=[],void 0!==window.advadsCfpInfo.cfpPath&&(""!=advadsCfpInfo.cfpPath&&(d=advadsCfpInfo.cfpPath),""!=advadsCfpInfo.cfpDomain&&(n=advadsCfpInfo.cfpDomain))}))}(window.jQuery);var advanced_ads_resizetimeout=1e3,advanced_ads_cookieexpires=30,advanced_ads_browser_width=advanced_ads_get_browser_width();if(void 0!==window.advads){var cookieValue=advads.get_cookie("advanced_ads_visitor"),info=cookieValue?JSON.parse(cookieValue):{};info.browser_width&&info.browser_width===advanced_ads_browser_width||advanced_ads_save_width(advanced_ads_browser_width)}function advanced_ads_resize_window(){advads_resize_delay((function(){if(advanced_ads_browser_width!==(advanced_ads_browser_width=advanced_ads_get_browser_width())){advanced_ads_save_width(advanced_ads_browser_width);var e=window.advanced_ads_responsive||{};window.jQuery&&parseInt(e.reload_on_resize,10)&&jQuery(document).triggerHandler("advanced-ads-resize-window")}}),advanced_ads_resizetimeout)}function advanced_ads_save_width(e){if(window.advanced_ads_responsive&&void 0!==window.advads){var t=advads.get_cookie("advanced_ads_visitor"),a=t?JSON.parse(t):{};a.browser_width=e,advads.set_cookie("advanced_ads_visitor",JSON.stringify(a),advanced_ads_cookieexpires,advanced_ads_cookies.cookie_path,advanced_ads_cookies.cookie_domain)}}window.addEventListener?window.addEventListener("resize",advanced_ads_resize_window,!1):window.attachEvent&&window.attachEvent("onresize",advanced_ads_resize_window);var advads_resize_delay=function(){var e=0;return function(t,a){clearTimeout(e),e=setTimeout(t,a)}}();function advanced_ads_get_browser_width(){if(window.jQuery)return jQuery(window).width();var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e};var wellingtonScreenReaderText={"expand":"Expand child menu","collapse":"Collapse child menu","icon":"<svg class=\"icon icon-expand\" aria-hidden=\"true\" role=\"img\"> <use xlink:href=\"https:\/\/trekking-marokko.de\/wp-content\/themes\/wellington\/assets\/icons\/genericons-neue.svg#expand\"><\/use> <\/svg>"};!function(){function e(e,t){var n,a=document.querySelector(e),r=document.querySelector(t);null!==r&&(null!==(n=a.querySelector(".menu-toggle"))&&(n.setAttribute("aria-expanded","false"),n.addEventListener("click",function(){r.classList.toggle("toggled-on"),n.setAttribute("aria-expanded",r.classList.contains("toggled-on"))})),r.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a").forEach(function(e){e.after(function(){var e=document.createElement("button");e.classList.add("dropdown-toggle"),e.setAttribute("aria-expanded","false");var t=(new DOMParser).parseFromString(wellingtonScreenReaderText.icon,"text/html").body.firstElementChild;e.appendChild(t);var n=document.createElement("span");return n.classList.add("screen-reader-text"),n.textContent=wellingtonScreenReaderText.expand,e.appendChild(n),e.cloneNode(!0)}())}),r.querySelectorAll(".current-menu-ancestor > button").forEach(function(e){e.classList.add("toggled-on"),e.setAttribute("aria-expanded","true"),e.querySelector(".screen-reader-text").textContent=wellingtonScreenReaderText.collapse}),r.querySelectorAll(".current-menu-ancestor > .sub-menu").forEach(function(e){e.classList.add("toggled-on")}),r.querySelectorAll(".dropdown-toggle").forEach(function(e){e.addEventListener("click",function(){e.classList.toggle("toggled-on"),e.setAttribute("aria-expanded",e.classList.contains("toggled-on")),e.querySelector(".screen-reader-text").textContent=e.classList.contains("toggled-on")?wellingtonScreenReaderText.collapse:wellingtonScreenReaderText.expand,e.nextElementSibling.classList.toggle("toggled-on")})}),r.querySelectorAll(".menu-item-has-children a, .page_item_has_children a").forEach(function(e){e.addEventListener("focus",function(){o(e)}),e.addEventListener("blur",function(){o(e)})}));function o(e){for(var t=e.parentNode;!t.classList.contains("menu");)t.classList.contains("menu-item-has-children")&&t.classList.toggle("focus"),t=t.parentNode}}document.addEventListener("DOMContentLoaded",function(){e(".primary-navigation-wrap",".main-navigation"),e(".header-bar",".top-navigation")})}();/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);var q2w3_sidebar_options=[{"sidebar":"sidebar-1","use_sticky_position":!1,"margin_top":60,"margin_bottom":900,"stop_elements_selectors":"","screen_max_width":900,"screen_max_height":0,"widgets":["#advads_ad_widget-9"]}];"use strict";var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};function __extends(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var __assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)},reactive=function(getter,interval){void 0===interval&&(interval=300);var subs=[],v=getter(),interval_id=setInterval((function(){if(0===subs.length)return;var new_v=getter();if(v===new_v||"object"==typeof v&&JSON.stringify(v)===JSON.stringify(new_v))return;v=new_v;for(var _i=0,subs_1=subs;_i<subs_1.length;_i++){(0,subs_1[_i])(new_v)}}),interval);return{get val(){return v},on_change:function(update){update(v),subs.push(update)},clear:function(){clearInterval(interval_id)}}},StaticOffsets=function(){function StaticOffsets(el,get_root_offset,need_to_calc_offset,get_prev_sibling){void 0===el&&(el=null),void 0===get_root_offset&&(get_root_offset=function(){return Math.round(scrollY+(_this.el?_this.el.getBoundingClientRect().top:0))}),void 0===need_to_calc_offset&&(need_to_calc_offset=function(){return!1}),void 0===get_prev_sibling&&(get_prev_sibling=function(){return null});var _this=this;this.el=el,this.get_root_offset=get_root_offset,this.need_to_calc_offset=need_to_calc_offset,this.get_prev_sibling=get_prev_sibling,this.user_margins={},this.root=0,this.top=0,this.get_top_offset=function(){return _this.get_sibilings_offset(_this.get_prev_sibling,_this.get_prev_sibling(_this.el),_this.user_margins.margin_top)}}return StaticOffsets.prototype.init=function(user_margins){var _this=this;this.user_margins=user_margins,this.top_watcher=reactive(this.get_top_offset),this.top_watcher.on_change((function(top){_this.top=top})),this.root_watcher=reactive(this.get_root_offset),this.root_watcher.on_change((function(root){_this.root=root}))},StaticOffsets.prototype.clear=function(){this.top_watcher&&this.top_watcher.clear(),this.root_watcher&&this.root_watcher.clear()},StaticOffsets.prototype.update=function(){},StaticOffsets.prototype.get_sibilings_offset=function(next,el,offset){if(void 0===offset&&(offset=0),!el)return offset;if(!this.need_to_calc_offset(el))return this.get_sibilings_offset(next,next(el),offset);var _a=getComputedStyle(el),marginTop=_a.marginTop,marginBottom=_a.marginBottom;return this.get_sibilings_offset(next,next(el),offset+el.getBoundingClientRect().height+parseInt(marginTop||"0")+parseInt(marginBottom||"0"))},StaticOffsets}(),DynamicOffsets=function(_super){function DynamicOffsets(el,get_root_offset,need_to_calc_offset,get_prev_sibling,get_next_sibling){void 0===el&&(el=null),void 0===need_to_calc_offset&&(need_to_calc_offset=function(){return!1}),void 0===get_prev_sibling&&(get_prev_sibling=function(){return null}),void 0===get_next_sibling&&(get_next_sibling=function(){return null});var _this=_super.call(this,el,get_root_offset,need_to_calc_offset,get_prev_sibling)||this;return _this.get_next_sibling=get_next_sibling,_this.bottom=0,_this.max_top_offset=0,_this.relative_top=0,_this.height=0,_this.position={top:0,bottom:0},_this.border_box=0,_this.get_height=function(){return _this.el?Math.round(Math.max(_this.el.clientHeight,_this.el.getBoundingClientRect().height)):0},_this.get_bottom_offset=function(){return _this.get_sibilings_offset(_this.get_next_sibling,_this.get_next_sibling(_this.el),_this.user_margins.margin_bottom)},_this}return __extends(DynamicOffsets,_super),DynamicOffsets.prototype.init=function(user_margins){var _this=this;_super.prototype.init.call(this,user_margins),this.height_watcher=reactive(this.get_height),this.height_watcher.on_change((function(height){_this.height=height,_this.border_box=_this.get_border_box(),_this.relative_top=_this.get_relative_top()})),this.bottom_offset=reactive(this.get_bottom_offset),this.bottom_offset.on_change((function(bottom){_this.bottom=bottom,_this.relative_top=_this.get_relative_top()}))},DynamicOffsets.prototype.clear=function(){_super.prototype.clear.call(this),this.height_watcher&&this.height_watcher.clear(),this.bottom_offset&&this.bottom_offset.clear()},DynamicOffsets.prototype.update=function(){this.position=this.get_position()},DynamicOffsets.prototype.set_max_offset=function(max_top_offset){this.max_top_offset=max_top_offset,this.relative_top=this.get_relative_top()},DynamicOffsets.prototype.get_position=function(){return this.el&&this.el.parentElement?{top:this.el.offsetTop,bottom:this.el.parentElement.clientHeight-this.el.offsetTop-this.border_box}:{top:0,bottom:0}},DynamicOffsets.prototype.get_border_box=function(){if(!this.el)return 0;var _a=getComputedStyle(this.el),marginTop=_a.marginTop,marginBottom=_a.marginBottom;return this.height+parseInt(marginTop)+parseInt(marginBottom)},DynamicOffsets.prototype.get_relative_top=function(){return this.max_top_offset-this.border_box-this.bottom},DynamicOffsets}(StaticOffsets),StopWidgetClassName="FixedWidget__stop_widget",FixedWidgetClassName="FixedWidget__fixed_widget",BaseWidget=function(){function BaseWidget(el){var _this=this;this.el=el,this.get_root_offset=function(){return Math.round(scrollY+(_this.el?_this.el.getBoundingClientRect().top:0))},this.need_to_calc_el_offset=function(_){return!1},this.offsets=new StaticOffsets(this.el,this.get_root_offset)}return BaseWidget.prototype.mount=function(user_margins){void 0===user_margins&&(user_margins={}),this.offsets.init(user_margins)},BaseWidget.prototype.render=function(_reject){this.offsets.update()},BaseWidget.prototype.unmount=function(){this.offsets.clear()},BaseWidget.prototype.getElement=function(){return this.el},BaseWidget.prototype.toString=function(){var _a;return"".concat(null===(_a=this.el)||void 0===_a?void 0:_a.innerHTML)},BaseWidget.queryAllWidgetsContainers=function(className){return[].concat(Array.from(document.querySelectorAll(".".concat(className))),Array.from(document.querySelectorAll("[data-fixed_widget=".concat(className)))).map((function(el){el.classList.remove(className),el.removeAttribute("data-fixed_widget");var container=getWidgetContainer(el);return container.classList.remove(FixedWidgetClassName),container.classList.remove(StopWidgetClassName),container}))},BaseWidget.from=function(root,className){var _this=this,elements=[];try{elements=Array.from(root.querySelectorAll(":scope > .".concat(className)))}catch(_e){elements=Array.from(root.children).filter((function(e){return e.classList.contains(className)}))}return elements.filter((function(el){return null!==el})).map((function(e){return new _this(e)}))},BaseWidget}(),getWidgetContainer=function(el){if(!el.parentElement)return el;var parentClassNames=el.parentElement.classList.toString();return parentClassNames.includes("sidebar")?el:parentClassNames.includes("wp-block-group")||parentClassNames.includes("wp-block-column")||el.parentElement.classList.contains("widget")?getWidgetContainer(el.parentElement):el},compatabilty_FW_v5=function(selectors){return void 0===selectors&&(selectors=[]),selectors.some((function(s){return!/^[a-z]/i.test(s)}))?selectors:selectors.concat(selectors.map((function(s){return"#".concat(s)})))},queryElements=function(selectors){return void 0===selectors&&(selectors=[]),Array.from(selectors.map((function(selector){return Array.from(document.querySelectorAll(selector))}))).reduce((function(all,elements){return all.concat(elements)}),[]).filter((function(e){return e instanceof HTMLElement}))};function findWithProperty(el,predicate){return el&&el!==document.body?predicate(getComputedStyle(el))?el:findWithProperty(el.parentElement,predicate):null}var PositionWidget=function(_super){function PositionWidget(el){var _this=_super.call(this,el)||this;return _this.is_pinned=!1,_this.init_rect={height:0,width:0},_this.init_style={position:"static",marginBottom:"",transition:"",transform:"",marginTop:"",padding:"",width:"",top:""},_this.get_prev_sibling=function(el){return el&&!el.classList.contains(StopWidgetClassName)&&el.previousElementSibling||null},_this.get_next_sibling=function(el){return el&&!el.classList.contains(StopWidgetClassName)?el.nextElementSibling:null},_this.need_to_calc_el_offset=function(el){return el.classList.contains(FixedWidgetClassName)},_this.offsets=new DynamicOffsets(_this.el,_this.get_root_offset,_this.need_to_calc_el_offset,_this.get_prev_sibling,_this.get_next_sibling),_this}return __extends(PositionWidget,_super),PositionWidget.prototype.mount=function(user_margins){var _this=this;_super.prototype.mount.call(this,user_margins),this.el&&this.el.parentElement&&(this.store_style(getComputedStyle(this.el)),this.store_rect(this.el),this.height_watcher=reactive((function(){return _this.el?_this.el.getBoundingClientRect().height:0})))},PositionWidget.prototype.unmount=function(){var _a;_super.prototype.unmount.call(this),this.unpin(),null===(_a=this.height_watcher)||void 0===_a||_a.clear(),this.reset_style(),this.reset_rect()},PositionWidget.prototype.reset_style=function(){if(this.el){for(var prop in this.init_style)this.el.style[prop]="";this.init_style={position:"static",marginBottom:"",transition:"",transform:"",marginTop:"",padding:"",width:"",top:""}}},PositionWidget.prototype.reset_rect=function(){if(this.el){for(var prop in this.init_rect)this.el.style[prop]="";this.init_rect={height:0,width:0}}},PositionWidget.prototype.render=function(reject){_super.prototype.render.call(this,reject),this.on_scroll(Math.round(scrollY),reject)},PositionWidget.from=function(root){return _super.from.call(this,root,FixedWidgetClassName)},PositionWidget.prototype.on_scroll=function(_scroll_top,_reject){throw new Error("Method is not overridden!")},PositionWidget.prototype.pin=function(){!this.is_pinned&&this.el&&(this.is_pinned=!0,this.el.classList.add("FixedWidget__fixed_widget__pinned"))},PositionWidget.prototype.unpin=function(){this.is_pinned&&this.el&&(this.is_pinned=!1,this.el.classList.remove("FixedWidget__fixed_widget__pinned"))},PositionWidget.prototype.store_style=function(style){for(var prop in this.init_style)this.init_style[prop]=style[prop];"relative"===this.init_style.position&&(this.init_style.position="static")},PositionWidget.prototype.set_style=function(style){var _this=this;Object.entries(style).forEach((function(_a){var prop=_a[0],rule=_a[1];_this.el&&(_this.el.style[prop]=rule)}))},PositionWidget.prototype.store_rect=function(el){if(el){var r=el.getBoundingClientRect(),style=getComputedStyle(el);"content-box"==style.boxSizing&&(r.height=r.height-parseInt(style.paddingTop,10)-parseInt(style.paddingBottom,10)-parseInt(style.borderTopWidth,10)-parseInt(style.borderBottomWidth,10),r.width=r.width-parseInt(style.paddingLeft,10)-parseInt(style.paddingRight,10)-parseInt(style.borderLeftWidth,10)-parseInt(style.borderRightWidth,10));var rect={height:r.height,width:r.width};for(var prop in this.init_rect)this.init_rect[prop]=rect[prop]}},PositionWidget.prototype.restore_style=function(){if(this.el)for(var prop in this.init_style)this.el.style[prop]=this.init_style[prop]},PositionWidget.prototype.restore_rect=function(){if(this.el)for(var prop in this.init_rect)this.el.style[prop]="".concat(this.init_rect[prop],"px")},PositionWidget}(BaseWidget),FixedWidget=function(_super){function FixedWidget(el){var _this=_super.call(this,el)||this;return _this.get_root_offset=function(){if(!_this.el)return Number.MAX_VALUE;var top=_this.el.getBoundingClientRect().top,new_root_offset=Math.round(scrollY+top);return 0==scrollY?new_root_offset:(_this.is_pinned?Math.min:Math.max)(_this.offsets.root,new_root_offset)},_this.need_to_calc_el_offset=function(el){return el.classList.contains(FixedWidgetClassName)&&el!==_this.el},_this.el&&_this.el.parentElement?(_this.el.classList.add(FixedWidgetClassName),_this):_this}return __extends(FixedWidget,_super),FixedWidget.prototype.mount=function(margins){var _this=this;_super.prototype.mount.call(this,margins),this.el&&(this.clone(),this.offsets.clear(),this.offsets=new DynamicOffsets(this.clone_el,this.get_root_offset,this.need_to_calc_el_offset,this.get_prev_sibling,this.get_next_sibling),this.offsets.init(margins),this.height_watcher&&this.height_watcher.on_change((function(){_this.store_rect(_this.el),_this.clone_el&&_this.el&&(_this.clone_el.style.height="".concat(_this.init_rect.height,"px"))})))},FixedWidget.prototype.unmount=function(){var _a;_super.prototype.unmount.call(this),null===(_a=this.clone_el)||void 0===_a||_a.remove(),this.clone_el=void 0},FixedWidget.prototype.set_max_offset=function(max_top_offsets){var _this=this,max_top_offset=max_top_offsets.find((function(offset){return 0!==offset&&offset>_this.offsets.root}));max_top_offset&&this.offsets.set_max_offset(max_top_offset)},FixedWidget.prototype.on_scroll=function(scroll_top){if(this.el){var need_to_fix=scroll_top>0&&scroll_top>this.offsets.root-this.offsets.top,top=0!==this.offsets.max_top_offset&&scroll_top>this.offsets.relative_top-this.offsets.top?this.offsets.relative_top-scroll_top:this.offsets.top;need_to_fix?this.fix(top):this.is_pinned&&(this.unpin(),this.restore_style(),this.clone_el&&(this.clone_el.style.display="none"))}},FixedWidget.prototype.clone=function(){var _this=this;if(this.el&&this.el.parentElement&&!this.clone_el){for(var prop in this.clone_el=this.el.cloneNode(!1),this.clone_el.getAttributeNames().forEach((function(attr){_this.clone_el.removeAttribute(attr)})),this.init_style)this.clone_el.style[prop]=this.init_style[prop];this.clone_el.style.display="none",this.el.parentElement.insertBefore(this.clone_el,this.el)}},FixedWidget.prototype.fix=function(top){this.el&&(this.is_pinned?this.el.style.top="".concat(top,"px"):(this.pin(),this.restore_style(),this.restore_rect(),this.set_style({top:"".concat(top,"px"),position:"fixed"}),this.clone_el&&(this.clone_el.style.display="block")))},FixedWidget.new=function(selector){return new FixedWidget(document.querySelector(selector))},FixedWidget.is=function(selector){var el=document.querySelector(selector);return!!el&&el.classList.contains(FixedWidgetClassName)},FixedWidget}(PositionWidget),StickyWidget=function(_super){function StickyWidget(el){var _this=_super.call(this,el)||this;return _this.borderBox=0,_this.margins=0,_this.el&&_this.el.parentElement?(_this.el.classList.add(FixedWidgetClassName),_this):_this}return __extends(StickyWidget,_super),StickyWidget.prototype.mount=function(margins){_super.prototype.mount.call(this,margins),this.el&&(this.el.style.position="sticky",this.el.style.position="-webkit-sticky",this.el.style.transition=/all|transform/.test(this.init_style.transition)?this.init_style.transition:"transform 0s",this.el.style.boxSizing="border-box")},StickyWidget.prototype.set_max_offset=function(max_top_offsets){var _this=this;if(this.el&&this.el.parentElement){var max_top_offset=max_top_offsets.find((function(offset){return _this.el&&offset>_this.el.offsetTop}));max_top_offset&&this.offsets.set_max_offset(max_top_offset)}},StickyWidget.prototype.on_scroll=function(_scroll_top,_reject){if(this.el&&this.el.parentElement){this.offsets.position.top>this.offsets.top?this.pin():this.unpin();var actual_bottom=this.offsets.position.bottom,expected_bottom=this.offsets.max_top_offset?Math.min(this.offsets.max_top_offset-(this.el.parentElement.clientHeight-actual_bottom),actual_bottom):this.offsets.bottom;this.el.style.top="".concat(this.offsets.top,"px"),expected_bottom>=this.offsets.bottom?this.el.style.transform="translateY(0px)":this.el.style.transform="translateY(".concat(expected_bottom-this.offsets.bottom,"px)")}},StickyWidget.new=function(selector){return new StickyWidget(document.querySelector(selector))},StickyWidget.is=function(selector){var el=document.querySelector(selector);return!!el&&el.classList.contains(FixedWidgetClassName)},StickyWidget}(PositionWidget),StopWidget=function(_super){function StopWidget(el){var _this=_super.call(this,el)||this;return _this.need_to_calc_el_offset=function(){return!0},_this.el&&_this.el.parentElement?(_this.el.classList.add(StopWidgetClassName),_this):_this}return __extends(StopWidget,_super),StopWidget.new=function(selector){return new StopWidget(document.querySelector(selector))},StopWidget.is=function(selector){var el=document.querySelector(selector);return!!el&&el.classList.contains(StopWidgetClassName)},StopWidget.from=function(root){return _super.from.call(this,root,StopWidgetClassName)},StopWidget}(BaseWidget),Sidebar=function(){function Sidebar(el,margins,use_sticky_position){void 0===use_sticky_position&&(use_sticky_position=!1);var _this=this;this.el=el,this.margins=margins,this.widgets=[],this.stop_widgets=[],this.isSticky=!1,this.setWidgetsMaxOffset=function(max_offsets){for(var _i=0,_a=_this.widgets;_i<_a.length;_i++){_a[_i].set_max_offset(max_offsets)}_this.render()},this.logWidgetRenderError=function(){console.log("Fixed Widget: fallback to position sticky")},this.onWidgetRenderError=function(w){if(_this.logWidgetRenderError(),w instanceof StickyWidget){w.unmount();var i=_this.widgets.findIndex((function(widget){return w===widget})),widget=new FixedWidget(w.getElement());widget.mount(_this.margins),widget.render(_this.logWidgetRenderError),_this.widgets[i]=widget}};var isDeprecatedFloatMarkup=!!findWithProperty(this.el,(function(style){return"none"!==style.float})),isOverflowHiddenMarkup=!!findWithProperty(this.el,(function(style){return"hidden"===style.overflow}));(isDeprecatedFloatMarkup||isOverflowHiddenMarkup)&&use_sticky_position&&console.log("Fixed Widget: fallback to position sticky"),this.isSticky=!isDeprecatedFloatMarkup&&!isOverflowHiddenMarkup&&use_sticky_position;var WidgetContructor=this.isSticky?StickyWidget:FixedWidget;this.stop_widgets=StopWidget.from(this.el),this.widgets=WidgetContructor.from(this.el),this.offsets=new DynamicOffsets(this.el),this.isSticky&&(this.el.style.position="relative",0===this.stop_widgets.length&&(this.el.style.minHeight="100%"))}return Sidebar.prototype.mount=function(){var _this=this;this.offsets.clear(),this.max_offset_watcher&&this.max_offset_watcher.clear(),this.offsets.init(this.margins),this.stop_widgets.forEach((function(widget){widget.mount()})),this.widgets.forEach((function(widget){widget.mount(_this.margins)})),this.widgets=this.widgets.sort((function(a,b){return a.offsets.root-b.offsets.root}))},Sidebar.prototype.set_max_offset=function(general_stop_widgets){var is_local_stop_widgets=0!=this.stop_widgets.length,use_top_offset=this.isSticky&&is_local_stop_widgets,stop_widgets=is_local_stop_widgets?this.stop_widgets:general_stop_widgets;this.max_offset_watcher=reactive((function(){return 0===stop_widgets.length?[Math.round(document.body.scrollHeight)]:stop_widgets.map((function(widget){return Math.round(use_top_offset?widget.offsets.top:widget.offsets.root)})).sort()})),this.max_offset_watcher.on_change(this.setWidgetsMaxOffset)},Sidebar.prototype.render=function(){for(var _i=0,_a=this.stop_widgets;_i<_a.length;_i++){_a[_i].render(this.logWidgetRenderError)}for(var _b=0,_c=this.widgets;_b<_c.length;_b++){_c[_b].render(this.onWidgetRenderError)}},Sidebar.prototype.unmount=function(){for(var _i=0,_a=this.stop_widgets;_i<_a.length;_i++){_a[_i].unmount()}for(var _b=0,_c=this.widgets;_b<_c.length;_b++){_c[_b].unmount()}},Sidebar}(),Sidebars=function(){function Sidebars(elements,options){var _this=this;this.data=[],this.render=function(){for(var _i=0,_a=_this.data;_i<_a.length;_i++){_a[_i].render()}},this.data=Array.from(new Set(elements.map((function(widget){return widget.parentElement})))).filter((function(sidebar_el){return null!==sidebar_el})).map((function(sidebar_el){return new Sidebar(sidebar_el,{margin_bottom:options.margin_bottom,margin_top:options.margin_top},options.use_sticky_position)}))}return Sidebars.prototype.mount=function(){this.data.forEach((function(sidebar){sidebar.mount()})),this.set_max_offset()},Sidebars.prototype.unmonut=function(){this.data.forEach((function(sidebar){sidebar.unmount()}))},Sidebars.prototype.set_max_offset=function(){for(var general_stop_widgets=this.getGeneralStopElements(),_i=0,_a=this.data;_i<_a.length;_i++){_a[_i].set_max_offset(general_stop_widgets)}},Sidebars.prototype.getGeneralStopElements=function(){return this.data.filter((function(sidebar){return!sidebar.isSticky||0===sidebar.widgets.length})).map((function(sidebar){return sidebar.stop_widgets})).reduce((function(all,widgets){return all.concat(widgets)}),[])},Sidebars.new=function(options){var s,arr1,arr2,fixedWidgetsContainers=Array.from(new Set(BaseWidget.queryAllWidgetsContainers(FixedWidgetClassName).concat(queryElements(compatabilty_FW_v5(options.widgets))))),stopWidgetsSelectors=compatabilty_FW_v5((void 0===(s=options.stop_elements_selectors||options.stop_id)&&(s=""),s.replace(/[\r\n]|[\r]/gi,"\n").split("\n").map((function(s){return s.trim()})).filter((function(s){return""!==s})))),stopWidgetsContainers=Array.from(new Set(BaseWidget.queryAllWidgetsContainers(StopWidgetClassName).concat(queryElements(stopWidgetsSelectors)))),_a=(arr1=fixedWidgetsContainers,[(arr2=stopWidgetsContainers).filter((function(e){return!arr1.includes(e)})),arr1.filter((function(e){return arr2.includes(e)}))]),stopWidgetsUniqContainers=_a[0];return _a[1].forEach((function(w){console.error("The Widget is detected as fixed block and stop block!\n".concat(w.innerHTML))})),fixedWidgetsContainers.forEach((function(c){c.classList.add(FixedWidgetClassName)})),stopWidgetsUniqContainers.forEach((function(c){c.classList.add(StopWidgetClassName)})),new Sidebars(fixedWidgetsContainers.concat(stopWidgetsUniqContainers).filter((function(container){var hasNestedWidget=container.innerHTML.includes(FixedWidgetClassName)||container.innerHTML.includes(StopWidgetClassName);return hasNestedWidget&&console.warn("Fixed Widget: Detected nested widget in ",container),!hasNestedWidget})),options)},Sidebars}(),Plugin=function Plugin(options,version){void 0===options&&(options=[]),Plugin.version=version,Plugin.sidebars?Plugin.sidebars.render():(Plugin.sidebars=Sidebars.new(options.reduce((function(prev,cur){return __assign(__assign(__assign({},prev),cur),{stop_elements_selectors:"".concat(prev.stop_elements_selectors,"\n").concat(cur.stop_elements_selectors),widgets:(prev.widgets||[]).concat(cur.widgets||[])})}))),document.addEventListener("scroll",Plugin.sidebars.render),window.addEventListener("resize",(function(){Plugin.sidebars.unmonut(),setTimeout((function(){Plugin.sidebars.mount(),Plugin.sidebars.render()}))})),Plugin.sidebars.mount())};function onDocumentLoaded(){var admin_panel=document.querySelector("#wpadminbar"),options=(window.q2w3_sidebar_options||[{}]).map((function(option){return option.margin_top=(option.margin_top||0)+(admin_panel&&admin_panel.clientHeight||0),option}));options.some((function(option){return option.screen_max_width&&document.body.clientWidth<option.screen_max_width||option.screen_max_height&&document.body.clientHeight<option.screen_max_height}))||new Plugin(options,"6.0.7-20")}document.addEventListener("DOMContentLoaded",onDocumentLoaded),"complete"===document.readyState&&onDocumentLoaded();var wellingtonProScrollToTop={"icon":"<svg class=\"icon icon-collapse\" aria-hidden=\"true\" role=\"img\"> <use xlink:href=\"https:\/\/trekking-marokko.de\/wp-content\/themes\/wellington\/assets\/icons\/genericons-neue.svg#collapse\"><\/use> <\/svg>","label":"Scroll to top"};document.addEventListener("DOMContentLoaded",function(){var o=document.createElement("button");o.setAttribute("id","scroll-to-top"),o.setAttribute("aria-label",wellingtonProScrollToTop.label),o.classList.add("scroll-to-top-button");var t,e,n=(new DOMParser).parseFromString(wellingtonProScrollToTop.icon,"text/html").body.firstElementChild;o.appendChild(n),document.body.appendChild(o),null!==(t=o)&&((e=function(){150<(window.pageYOffset|document.body.scrollTop)?t.classList.add("visible"):t.classList.remove("visible")})(),window.onscroll=function(){e()},t.addEventListener("click",function(){return window.scrollTo({top:0,behavior:"smooth"}),!1}))});var advadsTracking={"impressionActionName":"aatrack-records","clickActionName":"aatrack-click","targetClass":"trekk-target","blogId":"1","frontendPrefix":"trekk-"};var AdvAdsTrackingUtils={hasAd:function(a){for(var e in a)if(Array.isArray(a[e])&&a[e].length)return!0;return!1},param:function(a){return Object.keys(a).map((function(e){return Array.isArray(a[e])?Object.keys(a[e]).map((function(t){return encodeURIComponent(e)+"[]="+encodeURIComponent(a[e][t])})).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(a[e])})).join("&").replace(/%20/g,"+")},concat:function(){var a=Array.prototype.slice.call(arguments),e={};for(var t in a)for(var d in a[t])void 0===e[d]?e[d]=a[t][d]:"function"==typeof e[d].concat&&(e[d]=e[d].concat(a[t][d]));return e},adsByBlog:function(a,e){var t={};return void 0!==a[e]&&(t[e]=a[e]),t},getPrefixedAttribute:function(a){return""+window.advadsTracking.frontendPrefix+a},getPrefixedDataSetAttribute:function(a){return this.getPrefixedAttribute(a).toLowerCase().replace("data-","").replace(/-([a-z]?)/g,((a,e)=>e.toUpperCase()))},extend:function(){var a={};for(var e in arguments){var t=arguments[e];for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(a[d]=t[d])}return a},inArray:function(a,e){return e.indexOf(a)>-1},findParentByClassName:function(a,e){for(;(a=a.parentElement)&&!a.classList.contains(e););return a},getTimestamp:function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Math.floor(Date.now()/1e3)},arrayUnique:function(a,e,t){return t.indexOf(a)===e},blogUseGA:function(a){return("ga"===advads_tracking_methods[a]||advads_tracking_parallel[a])&&!!advads_gatracking_uids[a]},post:function(a,e,t){var d=new XMLHttpRequest;return d.timeout=5e3,new Promise((function(r,s){d.onreadystatechange=function(){d.readyState===XMLHttpRequest.DONE&&(0===d.status||d.status>=200&&d.status<300?r(d):s({status:d.status,statusText:d.statusText}))},d.open("POST",a,t||!0),d.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),d.send("string"==typeof e?e:AdvAdsTrackingUtils.param(e))}))}},AdvAdsImpressionTracker={ajaxAds:{},passiveAds:{},initialAds:{},removeDelayedAds:function(a){var e=document.querySelectorAll("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")+'][data-delayed="1"]'),t=e.length;if(!t)return a;for(var d=0;d<t;d++){var r=parseInt(e[d].dataset[AdvAdsTrackingUtils.getPrefixedDataSetAttribute("trackid")],10),s=parseInt(e[d].dataset[AdvAdsTrackingUtils.getPrefixedDataSetAttribute("trackbid")],10);if(AdvAdsTrackingUtils.hasAd(a)&&void 0!==a[s]){var i=a[s].indexOf(r);i>-1&&a[s].splice(i,1)}}return a},track:function(a,e){if(e=e||"all",AdvAdsTrackingUtils.hasAd(a))for(var t in a){if(AdvAdsTrackingUtils.blogUseGA(t)&&(advadsGATracking.deferedAds=AdvAdsTrackingUtils.concat(advadsGATracking.deferedAds,AdvAdsTrackingUtils.adsByBlog(a,t)),"delayed"===e?this.triggerEvent("advadsGADelayedTrack"):this.triggerEvent("advadsGADeferedTrack"),"ajax"===e&&AdvAdsTrackingUtils.hasAd(AdvAdsTrackingUtils.adsByBlog(this.ajaxAds,t))))for(var d in this.ajaxAds[t]){a[t].indexOf(this.ajaxAds[t][d])>-1&&this.ajaxAds[t].splice(d,1)}"ajax"===e||"frontend"!==advads_tracking_methods[t]&&"onrequest"!==advads_tracking_methods[t]||this.sendTrack(t,a[t]),this.ajaxAds={}}},triggerEvent:function(a){var e=new CustomEvent(a);document.dispatchEvent(e)},sendTrack:function(a,e){e.length&&AdvAdsTrackingUtils.post(advads_tracking_urls[a],{ads:e,action:window.advadsTracking.impressionActionName,referrer:window.location.pathname+window.location.search,bid:a})}};!function(){var a=function(){if("undefined"!=typeof advads_tracking_ads&&(advads_tracking_ads=AdvAdsImpressionTracker.removeDelayedAds(advads_tracking_ads),AdvAdsTrackingUtils.hasAd(advads_tracking_ads)))for(var a in advads_tracking_ads)"frontend"===advads_tracking_methods[a]&&("undefined"!=typeof advads&&void 0!==advads.privacy.is_ad_decoded&&(advads_tracking_ads[a]=advads_tracking_ads[a].filter(advads.privacy.is_ad_decoded)),AdvAdsImpressionTracker.track(advads_tracking_ads),advads_tracking_ads={1:[]})};function e(a,e,t){return void 0===a[e]&&(a[e]=[]),a[e].push(t),a}function t(){return"undefined"!=typeof advads&&"unknown"===advads.privacy.get_state()}document.addEventListener("advads_track_async",(function(d){const r=d.detail.bid,s=d.detail.ad;switch(advads_tracking_methods[r]){case"frontend":"undefined"==typeof advads_tracking_ads&&(advads_tracking_ads={}),advads_tracking_ads=e(advads_tracking_ads,r,s),t()||a();break;case"ga":void 0===advadsGATracking.delayedAds&&(advadsGATracking.delayedAds={}),advadsGATracking.delayedAds=e(advadsGATracking.delayedAds,r,s),t()||AdvAdsImpressionTracker.triggerEvent("advadsGADelayedTrack")}})),t()?document.addEventListener("advanced_ads_privacy",(function(e){"unknown"===e.detail.previousState&&a()})):advanced_ads_ready(a,"interactive")}(),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var AdvAdsClickTracker={wrappers:[],overTarget:!1,currentTarget:!1,lastClick:[],elements:["iframe","a.adv-link","button.adv-link"],targets:["aswift_0","aswift_1","aswift_3","aswift_4","aswift_5","aswift_6","aswift_7","aswift_8","aswift_9"],findTargets:function(){AdvAdsClickTracker.wrappers.forEach((function(a){document.querySelectorAll(a).forEach((function(a){null!==a&&AdvAdsClickTracker.elements.forEach((function(e){Array.prototype.push.apply(AdvAdsClickTracker.targets,Array.prototype.slice.call(a.querySelectorAll(e)))}))}))})),AdvAdsClickTracker.targets=AdvAdsClickTracker.targets.filter(AdvAdsTrackingUtils.arrayUnique),this.processTargets()},processTargets:function(){AdvAdsClickTracker.targets.forEach((function(a){AdvAdsClickTracker.registerTargetHandlers(a)}))},registerTargetHandlers:function(a){a.onmouseover=this.mouseOver,a.onmouseout=this.mouseOut,void 0!==window.attachEvent?top.attachEvent("onblur",this.adClick):void 0!==window.addEventListener&&top.addEventListener("blur",this.adClick,!1)},registerWrapperHandlers:function(){var a;["click","touchend","auxclick"].forEach((function(e){document.addEventListener(e,(function(e){if(!("auxclick"===e.type&&2!==e.which&&1!==e.which||a)){var t=!1;-1!==["a","iframe","button"].indexOf(e.target.localName)&&(t=!0);for(var d=e.target;d&&d!==this;d=d.parentNode){null===d.parentNode||t||-1===["a","iframe","button"].indexOf(d.parentNode.localName)||(t=!0);var r=!1;if(AdvAdsClickTracker.wrappers.forEach((function(a){(d.matches?d.matches(a):d.msMatchesSelector(a))&&(e.target.classList.contains("notrack")||!t&&null===d.querySelector("iframe")||(r=!0))})),r){if(this.currentTarget===e.target)return;AdvAdsClickTracker.ajaxSend(e.target);break}}}}),{capture:!0})})),document.addEventListener("touchmove",(function(e){a=!0}),!1),document.addEventListener("touchstart",(function(e){a=!1}),!1)},adClick:function(){AdvAdsClickTracker.overTarget&&(AdvAdsClickTracker.ajaxSend(AdvAdsClickTracker.currentTarget),top.focus())},mouseOver:function(){AdvAdsClickTracker.overTarget=!0,AdvAdsClickTracker.currentTarget=this},mouseOut:function(){AdvAdsClickTracker.overTarget=!1,AdvAdsClickTracker.currentTarget=!1,top.focus()},ajaxSend:function(a){var e=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),t=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),d=a.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("redirect"));if(null===e){var r=AdvAdsTrackingUtils.findParentByClassName(a,[advadsTracking.targetClass]);e=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),t=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),d=r.getAttribute("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("redirect"))}var s=advads_tracking_urls[t],i={action:window.advadsTracking.clickActionName,referrer:window.location.pathname+window.location.search,type:"ajax",ads:[e],bid:t};if(10>AdvAdsTrackingUtils.getTimestamp()-this.lastClick[e])return!1;if(AdvAdsTrackingUtils.blogUseGA(t)&&(advancedAdsGAInstances.getInstance(t).trackClick(e,!1,!1,!1),this.lastClick[e]=AdvAdsTrackingUtils.getTimestamp(),!advads_tracking_parallel[t]))return;if(!d){if(navigator.sendBeacon&&-1===s.indexOf("admin-ajax.php")){var n=JSON.parse(JSON.stringify(i));n.type="beacon",n=new Blob([JSON.stringify(n)],{type:"application/json; charset=UTF-8"}),navigator.sendBeacon(s,n)}else AdvAdsTrackingUtils.post(s,i,!1);this.lastClick[e]=AdvAdsTrackingUtils.getTimestamp()}}};advanced_ads_ready((function(){AdvAdsClickTracker.wrappers=null!==advadsTracking.targetClass&&""!==advadsTracking.targetClass?Array("."+advadsTracking.targetClass,".adsbygoogle"):Array(" ",".adsbygoogle"),window.onpageshow=function(a){a&&a.persisted&&window.location.reload()},setTimeout((function(){AdvAdsClickTracker.findTargets()}),1500),AdvAdsClickTracker.registerWrapperHandlers()}),"interactive"),"undefined"!=typeof advanced_ads_pro&&advanced_ads_pro.observers.add((function(a){if(-1!==["inject_passive_ads","inject_ajax_ads","advanced_ads_decode_inserted_ads","inject_placement"].indexOf(a.event)){Array.isArray(a.ad_ids)&&!a.ad_ids.length&&(a.ad_ids={});var e="all",t={};switch("complete"!==document.readyState?document.addEventListener("readystatechange",(function(a){"complete"===a.target.readyState&&AdvAdsClickTracker.findTargets()})):AdvAdsClickTracker.findTargets(),a.event){case"inject_passive_ads":for(var d in AdvAdsImpressionTracker.passiveAds=AdvAdsTrackingUtils.concat(AdvAdsImpressionTracker.passiveAds,a.ad_ids),a.ad_ids)if("frontend"===advads_tracking_methods[d]?(t=AdvAdsTrackingUtils.concat(advads_tracking_ads,a.ad_ids),advads_tracking_ads={1:[]}):(e="passive",t=a.ad_ids),"undefined"!=typeof advads&&void 0!==advads.privacy.is_ad_decoded)for(var d in t)t[d]=t[d].filter(advads.privacy.is_ad_decoded);break;case"inject_ajax_ads":var r="undefined"!=typeof advads&&window.advads_options.privacy.enabled&&"iab_tcf_20"===window.advads_options.privacy["consent-method"];for(var d in a.ad_ids)if(AdvAdsTrackingUtils.blogUseGA(d)||r)for(var s in a.ad_ids[d]){var i=document.querySelector("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")+'="'+a.ad_ids[d][s]+'"][data-'+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+'="'+d+'"]');null!==i&&"undefined"!=typeof advads_items&&void 0!==advads_items.showed&&advads_items.showed.indexOf(i.id)>-1&&void 0!==i.dataset.delayed||(void 0===AdvAdsImpressionTracker.ajaxAds[d]&&(AdvAdsImpressionTracker.ajaxAds[d]=[]),AdvAdsImpressionTracker.ajaxAds[d].push(a.ad_ids[d][s]))}e=r&&"frontend"===advads_tracking_methods[d]?"all":"ajax",t=JSON.parse(JSON.stringify(AdvAdsImpressionTracker.ajaxAds));break;case"advanced_ads_decode_inserted_ads":t=a.ad_ids}advanced_ads_pro.busy?document.addEventListener("advanced_ads_pro.idle",(function(){AdvAdsImpressionTracker.track(AdvAdsImpressionTracker.removeDelayedAds(t),e)}),{once:!0}):AdvAdsImpressionTracker.track(AdvAdsImpressionTracker.removeDelayedAds(t),e)}}));var advadsTrackingGAEvents={"impression":"advanced_ads_impression","click":"advanced_ads_click"};const advancedAdsGAInstances={instances:[],getInstance:function(a){return void 0===this.instances[a]&&(this.instances[a]=new AdvAdsGATracker(a,advads_gatracking_uids[a])),this.instances[a]}};function AdvAdsGATracker(a,d){this.blogId=a,this.propertyIds="string"==typeof d?[d]:d,this.normalTrackingDone=!1,this.clickTimer=null;const e=this;return this.getQueryString=function(a){var d=document.createElement("a");d.href=a;var e=d.search;if(e.length&&(e=(e=e.substr(1)).split("&")).length){var n={};for(var t in e){var s=e[t].split("=");n[s[0]]=s[1]}return n}return[]},this.appendQueryString=function(a,d){for(var e in d)-1!==a.indexOf("?")?a+="&"+e+"="+d[e]:a+="?"+e+"="+d[e];return a},this.trackImpressions=function(a){void 0===a&&(a=!1);var d=[];if(!this.normalTrackingDone&&AdvAdsTrackingUtils.hasAd(AdvAdsTrackingUtils.adsByBlog(advads_tracking_ads,e.blogId))&&(d=d.concat(advads_tracking_ads[e.blogId])),"frontend"===advads_tracking_methods[e.blogId]&&(d=[]),a?void 0!==advadsGATracking.delayedAds&&AdvAdsTrackingUtils.hasAd(AdvAdsTrackingUtils.adsByBlog(advadsGATracking.delayedAds,e.blogId))&&(d=d.concat(advadsGATracking.delayedAds[e.blogId]),advadsGATracking.delayedAds[e.blogId]=[]):void 0!==advadsGATracking.deferedAds&&AdvAdsTrackingUtils.hasAd(AdvAdsTrackingUtils.adsByBlog(advadsGATracking.deferedAds,e.blogId))&&(d=d.concat(advadsGATracking.deferedAds[e.blogId]),advadsGATracking.deferedAds[e.blogId]=[]),"undefined"!=typeof advads&&void 0!==advads.privacy.is_ad_decoded&&(d=d.filter(advads.privacy.is_ad_decoded)),d.length){for(var n in d)void 0!==advads_gatracking_allads[e.blogId][d[n]]&&advads_gatracking_allads[e.blogId][d[n]].impression&&e.sendEvent(window.advadsTrackingGAEvents.impression,{event_category:"Advanced Ads",event_label:"["+d[n]+"] "+advads_gatracking_allads[e.blogId][d[n]].title,non_interaction:!0});this.normalTrackingDone=!0}},this.trackClick=function(a,d,n,t){void 0===d&&(d=!0);var s={event_category:"Advanced Ads",event_label:"["+a+"] "+advads_gatracking_allads[e.blogId][a].title,non_interaction:!0};if(n||t){var i=advads_gatracking_allads[e.blogId][a].target;void 0===advadsGATracking.postContext&&(i=(i=(i=i.replace("[CAT_SLUG]",advadsGATracking.postContext.cats)).replace("[POST_ID]",advadsGATracking.postContext.postID)).replace("[POST_SLUG]",advadsGATracking.postContext.postSlug)),i=i.replace("[AD_ID]",a);var r=t.getAttribute("href");d?i=r:(i=e.appendQueryString(i,e.getQueryString(r)),void 0!==advads_gatracking_transmitpageqs[e.blogId]&&advads_gatracking_transmitpageqs[e.blogId][a]&&(i=e.appendQueryString(i,e.getQueryString(document.location.href))));var c=!!t.getAttribute("target");if(c)e.sendEvent(window.advadsTrackingGAEvents.click,s),d||t.setAttribute("href",i);else{function o(){null!==e.clickTimer&&(clearTimeout(e.clickTimer),e.clickTimer=null),window.location=i}n.preventDefault(),e.clickTimer=setTimeout((function(){o()}),1e3),s.event_callback=o,e.sendEvent(window.advadsTrackingGAEvents.click,s)}}else e.sendEvent(window.advadsTrackingGAEvents.click,s)},this.sendEvent=(a,d)=>{e.propertyIds.forEach((e=>{d.send_to=e,gtag("event",a,structuredClone(d))}))},function(){if("function"!=typeof gtag){var a=document.createElement("script");a.src="https://www.googletagmanager.com/gtag/js",a.async=!0,document.body.appendChild(a),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date)}var d={send_page_view:!1,transport_type:"beacon"};window.advads_gatracking_anonym&&(d.anonymize_ip=!0),e.propertyIds.forEach((a=>{gtag("config",a,d)})),document.addEventListener("advadsGADeferedTrack",(function(){e.trackImpressions(!1)})),document.addEventListener("advadsGADelayedTrack",(function(){e.trackImpressions(!0)})),e.trackImpressions()}(),this}document.addEventListener("DOMContentLoaded",(function(){for(let a in advads_tracking_methods)if(a=parseInt(a,10),!isNaN(a)&&AdvAdsTrackingUtils.blogUseGA(a)){if("undefined"!=typeof advads&&"unknown"===advads.privacy.get_state())return void document.addEventListener("advanced_ads_privacy",(function(d){"not_needed"!==d.detail.state&&"accepted"!==d.detail.state||advancedAdsGAInstances.getInstance(a)}));advancedAdsGAInstances.getInstance(a)}}));!function(){var t="advads-sticky-trigger";"undefined"!=typeof advanced_ads_layer_settings&&(t+=" "+advanced_ads_layer_settings.layer_class+"-trigger"),jQuery(document).on(t,(function(t){var d=jQuery(t.target),a={},e=parseInt(d.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),10),r=parseInt(d.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),10),i=function(t,d){void 0===a[d]&&(a[d]=[]),a[d].push(t)};if(e){if(!d.data("delayed")||!d.data(AdvAdsTrackingUtils.getPrefixedAttribute("impression")))return;i(r,e)}else{if(!d.find("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+"]").length)return;d.find("[data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")+"]").each((function(){var t=jQuery(this);t.data("delayed")&&t.data(AdvAdsTrackingUtils.getPrefixedAttribute("impression"))&&(e=parseInt(t.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackbid")),10),r=parseInt(t.attr("data-"+AdvAdsTrackingUtils.getPrefixedAttribute("trackid")),10),i(r,e))}))}AdvAdsTrackingUtils.blogUseGA(e)&&(advadsGATracking.delayedAds=AdvAdsTrackingUtils.concat(advadsGATracking.delayedAds,a)),AdvAdsImpressionTracker.track(a,"delayed")}))}(jQuery);function lazyLoadThumb(e,alt,l){var t='<img data-lazy-src="https://i.ytimg.com/vi/ID/hqdefault.jpg" alt="" width="480" height="360"><noscript><img src="https://i.ytimg.com/vi/ID/hqdefault.jpg" alt="" width="480" height="360"></noscript>',a='<button class="play" aria-label="play Youtube video"></button>';if(l){t=t.replace('data-lazy-','');t=t.replace('loading="lazy"','');t=t.replace(/<noscript>.*?<\/noscript>/g,'')}t=t.replace('alt=""','alt="'+alt+'"');return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="ID?autoplay=1";t+=0===this.parentNode.dataset.query.length?"":"&"+this.parentNode.dataset.query;e.setAttribute("src",t.replace("ID",this.parentNode.dataset.src)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),e.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),this.parentNode.parentNode.replaceChild(e,this.parentNode)}document.addEventListener("DOMContentLoaded",function(){var exclusions=[".header-image",".header-image img","tm_header",".tm_header"];var e,t,p,u,l,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t<a.length;t++)(e=document.createElement("div")),(u='https://i.ytimg.com/vi/ID/hqdefault.jpg'),(u=u.replace('ID',a[t].dataset.id)),(l=exclusions.some(exclusion=>u.includes(exclusion))),e.setAttribute("data-id",a[t].dataset.id),e.setAttribute("data-query",a[t].dataset.query),e.setAttribute("data-src",a[t].dataset.src),(e.innerHTML=lazyLoadThumb(a[t].dataset.id,a[t].dataset.alt,l)),a[t].appendChild(e),(p=e.querySelector(".play")),(p.onclick=lazyLoadYoutubeIframe)});