jQuery(document).ready(function(){var t=!1;void 0!==eztoc_smooth_local.JumpJsLinks&&1===parseInt(eztoc_smooth_local.JumpJsLinks)&&(t=!0),document.querySelectorAll(".ez-toc-link").forEach(t=>{t=t.replaceWith(t.cloneNode(!0))}),document.querySelectorAll(".ez-toc-section").forEach(t=>{t.setAttribute("ez-toc-data-id","#"+decodeURI(t.getAttribute("id")))}),jQuery("a.ez-toc-link").click(function(){let e=jQuery(this).attr("data-href"),i=jQuery(this).attr("href");if(1===parseInt(eztoc_smooth_local.add_request_uri)||1===parseInt(eztoc_smooth_local.add_self_reference_link)){if(jQuery(this).attr("data-href")){let r=jQuery(this).attr("data-href").split("#");r&&r.length>1&&(e=`#${r[1]}`)}if(jQuery(this).attr("href")){let a=jQuery(this).attr("href").split("#");a&&a.length>1&&(i=`#${a[1]}`)}}let l=t?e:i,o=jQuery("#wpadminbar"),s=jQuery("header"),h=0;if(parseInt(eztoc_smooth_local.scroll_offset)>30&&(h=parseInt(eztoc_smooth_local.scroll_offset)),o.length&&(h+=o.height()),(s.length&&"fixed"==s.css("position")||"sticky"==s.css("position"))&&(h+=s.height()),jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').length>0&&(h=jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').offset().top-h),jQuery("html, body").animate({scrollTop:h},500),t)return!1})});
!function(factory){var registeredInModuleLoader;if("function"==typeof define&&define.amd&&(define(factory),registeredInModuleLoader=!0),"object"==typeof exports&&(module.exports=factory(),registeredInModuleLoader=!0),!registeredInModuleLoader){var OldCookies=window.Cookies,api=window.Cookies=factory();api.noConflict=function(){return window.Cookies=OldCookies,api}}}((function(){function extend(){for(var i=0,result={};i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(converter){function api(){}function set(key,value,attributes){if("undefined"!=typeof document){"number"==typeof(attributes=extend({path:"/"},api.defaults,attributes)).expires&&(attributes.expires=new Date(1*new Date+864e5*attributes.expires)),attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{var result=JSON.stringify(value);/^[\{\[]/.test(result)&&(value=result)}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)attributes[attributeName]&&(stringifiedAttributes+="; "+attributeName,!0!==attributes[attributeName]&&(stringifiedAttributes+="="+attributes[attributeName].split(";")[0]));return document.cookie=key+"="+value+stringifiedAttributes}}function get(key,json){if("undefined"!=typeof document){for(var jar={},cookies=document.cookie?document.cookie.split("; "):[],i=0;i<cookies.length;i++){var parts=cookies[i].split("="),cookie=parts.slice(1).join("=");json||'"'!==cookie.charAt(0)||(cookie=cookie.slice(1,-1));try{var name=decode(parts[0]);if(cookie=(converter.read||converter)(cookie,name)||decode(cookie),json)try{cookie=JSON.parse(cookie)}catch(e){}if(jar[name]=cookie,key===name)break}catch(e){}}return key?jar[key]:jar}}return api.set=set,api.get=function(key){return get(key,!1)},api.getJSON=function(key){return get(key,!0)},api.remove=function(key,attributes){set(key,"",extend(attributes,{expires:-1}))},api.defaults={},api.withConverter=init,api}return init((function(){}))}));
(function(){var a,b;a=this.jQuery||window.jQuery;b=a(window);a.fn.stick_in_parent=function(d){var p,m,o,n,j,h,k,f,l,e,c,g;if(d==null){d={};}g=d.sticky_class,h=d.inner_scrolling,c=d.recalc_every,e=d.parent,l=d.offset_top,f=d.spacer,o=d.bottoming;
if(l==null){l=0;}if(e==null){e=void 0;}if(h==null){h=true;}if(g==null){g="is_stuck";}p=a(document);if(o==null){o=true;}n=function(t,G,q,i,B,C,y,z){var D,H,r,F,I,s,w,u,x,A,v,E;
if(t.data("sticky_kit")){return;}t.data("sticky_kit",true);I=p.height();w=t.parent();if(e!=null){w=w.closest(e);}if(!w.length){throw"failed to find stick parent";
}r=false;D=false;v=f!=null?f&&t.closest(f):a("<div />");u=function(){var J,L,K;if(z){return;}I=p.height();J=parseInt(w.css("border-top-width"),10);L=parseInt(w.css("padding-top"),10);
G=parseInt(w.css("padding-bottom"),10);q=w.offset().top+J+L;i=w.height();if(r){r=false;D=false;if(f==null){t.insertAfter(v);v.detach();}t.css({position:"",top:"",width:"",bottom:""}).removeClass(g);
K=true;}B=t.offset().top-(parseInt(t.css("margin-top"),10)||0)-l;C=t.outerHeight(true);y=t.css("float");if(v){v.css({width:t.outerWidth(true),height:C,display:t.css("display"),"vertical-align":t.css("vertical-align"),"float":y});
}if(K){return E();}};u();if(C===i){return;}F=void 0;s=l;A=c;E=function(){var L,O,M,K,J,N;if(z){return;}M=false;if(A!=null){A-=1;if(A<=0){A=c;u();M=true;
}}if(!M&&p.height()!==I){u();M=true;}K=b.scrollTop();if(F!=null){O=K-F;}F=K;if(r){if(o){J=K+C+s>i+q;if(D&&!J){D=false;t.css({position:"fixed",bottom:"",top:s}).trigger("sticky_kit:unbottom");
}}if(K<B){r=false;s=l;if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);}v.detach();}L={position:"",width:"",top:""};t.css(L).removeClass(g).trigger("sticky_kit:unstick");
}if(h){N=b.height();if(C+l>N){if(!D){s-=O;s=Math.max(N-C,s);s=Math.min(l,s);if(r){t.css({top:s+"px"});}}}}}else{if(K>B){r=true;L={position:"fixed",top:s};
L.width=t.css("box-sizing")==="border-box"?t.outerWidth()+"px":t.width()+"px";t.css(L).addClass(g);if(f==null){t.after(v);if(y==="left"||y==="right"){v.append(t);
}}t.trigger("sticky_kit:stick");}}if(r&&o){if(J==null){J=K+C+s>i+q;}if(!D&&J){D=true;if(w.css("position")==="static"){w.css({position:"relative"});}return t.css({position:"absolute",bottom:G,top:"auto"}).trigger("sticky_kit:bottom");
}}};x=function(){u();return E();};H=function(){z=true;b.off("touchmove",E);b.off("scroll",E);b.off("resize",x);a(document.body).off("sticky_kit:recalc",x);
t.off("sticky_kit:detach",H);t.removeData("sticky_kit");t.css({position:"",bottom:"",top:"",width:""});w.position("position","");if(r){if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);
}v.remove();}return t.removeClass(g);}};b.on("touchmove",E);b.on("scroll",E);b.on("resize",x);a(document.body).on("sticky_kit:recalc",x);t.on("sticky_kit:detach",H);
return setTimeout(E,0);};for(j=0,k=this.length;j<k;j++){m=this[j];n(a(m));}return this;};}).call(this);
jQuery(function(e){if("undefined"!=typeof ezTOC){function t(){if(0!==e(".ez-toc-widget-container.ez-toc-affix").length){var t=30;void 0!==ezTOC.scroll_offset&&(t=parseInt(ezTOC.scroll_offset)),e(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:t})}if(e.fn.shrinkTOCWidth=function(){e(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&e(this).css("width","")},void 0!==ezTOC.visibility_hide_by_default){var i=e(".ez-toc-toggle:not(.ez-toc-loaded),.ez-toc-widget-sticky-toggle:not(.ez-toc-loaded)"),o=void 0!==ezTOC.visibility_hide_by_device?ezTOC.visibility_hide_by_device:0,c=ezTOC.visibility_hide_by_default;e.each(i,function(t,i){var n=e(this);e(n).addClass("ez-toc-loaded");var a=e(n).parents("#ez-toc-container,#ez-toc-widget-container,#ez-toc-widget-sticky-container").find("ul.ez-toc-list,ul.ez-toc-widget-sticky-list");e(a).hasClass("eztoc-toggle-hide-by-default")&&(c=1),"undefined"!=typeof Cookies&&(Cookies?(1==Cookies.get("ezTOC_hidetoc-"+t)?e(n).data("visible",!1):e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t)):(e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t))),c&&"0"!=o&&e(n).data("visible",!1),e(n).data("visible")||a.hide(),e(n).on("click",function(i){i.preventDefault();let o=document.querySelector("#ez-toc-container");if(o)o.classList.toggle("toc_close");else{let n=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");n.classList.toggle("toc_close")}e(this).data("visible")?(e(this).data("visible",!1),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"})),a.hide("fast")):(e(this).data("visible",!0),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"})),a.show("fast"))})})}var n,a,l,s=e("span.ez-toc-section").toArray(),r=(n=s,n.reduce(function(t,i){var o;return t[i.id]=e('.ez-toc-widget-container .ez-toc-list a[href="#'+e(o=i).attr("id")+'"]'),t},{})),d=e.map(r,function(e,t){return e}),h=(a=5,void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(a=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30),l=e("#wpadminbar"),l.length&&(a+=l.height()),a);function f(){var t,i,o,c,n,a=(t=h,i=s,o=e(window).scrollTop()+t+1,c=i[0],n=o-e(c).offset().top,i.forEach(function(t){var i=o-e(t).offset().top;i>0&&i<n&&(n=i,c=t)}),c);if(a){var l,f,z,u,v,g,p,b,m,y=r[a.id];(function e(t,i){i.forEach(function(e){t!==e&&e.parent().hasClass("active")&&e.parent().removeClass("active")})})(y,d),(z=(l=y).parent()).hasClass("active")||z.addClass("active"),m=(u=f=z,v=e(u),g=v.html(),v.parent().append('<li id="ez-toc-height-test" class="active">'+g+"</li>"),p=e("#ez-toc-height-test"),b=p.height(),p.remove(),b-(v.children("ul").first().height()||0)),e(".ez-toc-widget-container ul.ez-toc-list li.active").css("height",m+"px")}}function z(){e(window).off("load resize scroll",f)}s.length>0&&e(".ez-toc-widget-container").length&&e(window).on("load resize scroll",f)}e("#ez-toc-container").length&&!e("#ez-toc-container .ez-toc-toggle label span").html()&&e("#ez-toc-container .ez-toc-toggle label").html(ezTOC.fallbackIcon),ezTOC.init=function(){t()},t(),void 0!==ezTOC.ajax_toggle&&1===parseInt(ezTOC.ajax_toggle)&&e(document).ajaxComplete(function(){t()})}e(document).on("click","#ez-toc-open-sub-hd",function(t){e(this).attr("id","ez-toc-open-sub-hd-active"),t.preventDefault()}),e(document).on("click","#ez-toc-open-sub-hd-active",function(t){e(this).attr("id","ez-toc-open-sub-hd"),t.preventDefault()}),e("#ez-toc-more-links-enabler").click(function(){e(".ez-toc-more-link").show(),e("#ez-toc-more-links-enabler").hide(),e("#ez-toc-more-links-disabler").attr("style","display:inline-block")}),e("#ez-toc-more-links-disabler").click(function(){e(".ez-toc-more-link").hide(),e("#ez-toc-more-links-enabler").show(),e("#ez-toc-more-links-disabler").hide()}),1===parseInt(ezTOC.chamomile_theme_is_on)&&e("#ez-toc-container").find(".hamburger").remove()});
!function(){"use strict";function e(e,t){var n=e.getAttribute(t);"string"==typeof n&&""!==n&&"sidr-inner"!==n&&e.setAttribute(t,n.replace(/([A-Za-z0-9_.-]+)/g,"sidr-"+t+"-$1"))}function t(e,t,n){for(var i=n.split(" "),o=0;o<i.length;o++){var s=i[o].trim();e.classList[t](s)}}function n(e,t,n){e[t]=n}function i(e,t,n){return e[t]}function o(e){return"BODY"===e.tagName}function s(e){var t="sidr-open";return"sidr"!==e&&(t+=" "+e+"-open"),t}function r(e){return"status"===e?k:M[e]?M[e].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof e&&"string"!=typeof e&&e?void console.error("Method "+e+" does not exist on sidr"):M.toggle.apply(this,arguments)}for(var a={name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,timing:"ease",method:"toggle",bind:"click",onOpen:function(){},onClose:function(){},onOpenEnd:function(){},onCloseEnd:function(){}},l={},u=function(e,t){l[e]=t},c=function(e){return l[e]},d=function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},h=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},p=function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(n.responseText)},n.open("GET",e,!0),n.send()},f={id:function(e){return document.getElementById(e)},qs:function(e){return document.querySelector(e)},qsa:function(e){return document.querySelectorAll(e)},createElement:function(e){var t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},getHTMLContent:function(e){for(var t="",n=this.qsa(e),i=0;i<n.length;i++)t+='<div class="sidr-inner">'+n[i].innerHTML+"</div>";return t},addPrefixes:function(t){var n=document.createElement("div");n.innerHTML=t;for(var i=n.querySelectorAll("*"),o=0;o<i.length;o++)e(i[o],"id"),e(i[o],"class"),i[o].removeAttribute("style");return n.innerHTML},transitions:function(){var e=(document.body||document.documentElement).style,t=!1,n="transition",i="transition",o="transitionend";if(n in e)t=!0;else{var s=function(e,t){for(var n=void 0,i=["moz","webkit","o","ms"],o=0;o<i.length;o++)if((n=i[o])+e in t)return n;return!1}(n=n.charAt(0).toUpperCase()+n.substr(1),e);i=(t=!!s)?s+n:null,n=t?"-"+s+"-"+n.toLowerCase():null,"webkit"===s?o="webkitTransitionEnd":"0"===s&&(o="oTransitionEnd")}return{cssProperty:i,supported:t,property:n,event:o}}()},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),y=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},g=function(){function e(t){m(this,e),this.element=t}return v(e,[{key:"bind",value:function(e,t){this.element.addEventListener(e,t,!1)}},{key:"unbind",value:function(e,t){this.element.removeEventListener(e,t,!1)}},{key:"style",value:function(e,t){if("string"==typeof e)this.element.style[e]=t;else for(var n in e)e.hasOwnProperty(n)&&(this.element.style[n]=e[n])}},{key:"addClass",value:function(e){t(this.element,"add",e)}},{key:"removeClass",value:function(e){t(this.element,"remove",e)}},{key:"html",value:function(e){if(!e)return i(this.element,"innerHTML");n(this.element,"innerHTML",e)}},{key:"scrollTop",value:function(e){if(!e)return i(this.element,"scrollTop");n(this.element,"scrollTop",e)}},{key:"offsetWidth",value:function(){return this.element.offsetWidth}}]),e}(),C=function(e){function t(e,n){m(this,t);var i=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.qs(e.body)));return i.name=e.name,i.side=e.side,i.speed=e.speed,i.timing=e.timing,i.displace=e.displace,i.menuWidth=n,i}return y(t,g),v(t,[{key:"prepare",value:function(e){var t="open"===e?"hidden":"";if(o(this.element)){var n=new g(f.qs("html")),i=n.scrollTop();n.style("overflowX",t),n.scrollTop(i)}}},{key:"unprepare",value:function(){if(o(this.element)){new g(f.qs("html")).style("overflowX","")}}},{key:"move",value:function(e){this.addClass("sidr-animating"),"open"===e?this.open():this.close()}},{key:"open",value:function(){var e=this;if(this.displace){var t=f.transitions,n={width:this.offsetWidth()+"px",position:"absolute"};this.style(this.side,"0"),this.style(t.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.style(n),setTimeout(function(){return e.style(e.side,e.menuWidth+"px")},1)}}},{key:"onClose",value:function(){var e=f.transitions,t={width:"",position:"",right:"",left:""};t[e.cssProperty]="",this.style(t),this.unbind(e.event,this.temporalCallback)}},{key:"close",value:function(){if(this.displace){var e=f.transitions;this.style(this.side,0);var t=this;this.temporalCallback=function(){t.onClose()},this.bind(e.event,this.temporalCallback)}}},{key:"removeAnimationClass",value:function(){this.removeClass("sidr-animating")}},{key:"removeOpenClass",value:function(){this.removeClass(s(this.name))}},{key:"addOpenClass",value:function(){this.addClass(s(this.name))}}]),t}(),k={moving:!1,opened:!1},O=function(e){function t(e){m(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f.id(e.name)));return n.name=e.name,n.speed=e.speed,n.side=e.side,n.displace=e.displace,n.source=e.source,n.timing=e.timing,n.method=e.method,n.renaming=e.renaming,n.onOpenCallback=e.onOpen,n.onCloseCallback=e.onClose,n.onOpenEndCallback=e.onOpenEnd,n.onCloseEndCallback=e.onCloseEnd,n.init(e),n}return y(t,g),v(t,[{key:"init",value:function(e){this.element||(this.element=f.createElement(this.name)),this.style(f.transitions.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.addClass("sidr sidr-"+this.side),this.body=new C(e,this.offsetWidth()),this.reload()}},{key:"reload",value:function(){var e=this;if("function"==typeof this.source){var t=this.source(name);this.html(t)}else if("string"==typeof this.source&&d(this.source))p(this.source,function(t){e.html(t)});else if("string"==typeof this.source){var n=f.getHTMLContent(this.source);this.renaming&&(n=f.addPrefixes(n)),this.html(n)}else null!==this.source&&console.error("Invalid Sidr Source")}},{key:"move",value:function(e,t){k.moving=!0,this.body.prepare(e),this.body.move(e),this.moveMenu(e,t)}},{key:"open",value:function(e){var t=this;if(k.opened!==this.name&&!k.moving)if(!1===k.opened)this.move("open",e),this.onOpenCallback();else{c(k.opened).close(function(){t.open(e)})}}},{key:"close",value:function(e){k.opened!==this.name||k.moving||(this.move("close",e),this.onCloseCallback())}},{key:"toggle",value:function(e){k.opened===this.name?this.close(e):this.open(e)}},{key:"onOpenMenu",value:function(e){var t=this.name;k.moving=!1,k.opened=t,this.unbind(f.transitions.event,this.temporalOpenMenuCallback),this.body.removeAnimationClass(),this.body.addOpenClass(),this.onOpenEndCallback(),"function"==typeof e&&e(t)}},{key:"openMenu",value:function(e){var t=this;this.style(this.side,0),this.temporalOpenMenuCallback=function(){t.onOpenMenu(e)},this.bind(f.transitions.event,this.temporalOpenMenuCallback)}},{key:"onCloseMenu",value:function(e){this.unbind(f.transitions.event,this.temporalCloseMenuCallback),this.style({left:"",right:""}),this.body.unprepare(),k.moving=!1,k.opened=!1,this.body.removeAnimationClass(),this.body.removeOpenClass(),this.onCloseEndCallback(),"function"==typeof e&&e(name)}},{key:"closeMenu",value:function(e){var t=this;this.style(this.side,""),this.temporalCloseMenuCallback=function(){t.onCloseMenu(e)},this.bind(f.transitions.event,this.temporalCloseMenuCallback)}},{key:"moveMenu",value:function(e,t){"open"===e?this.openMenu(t):this.closeMenu(t)}}]),t}(),w=function(e){return function(t,n){"function"==typeof t?(n=t,t="sidr"):t||(t="sidr");c(t)[e](n)}},M={},E=["open","close","toggle","reload"],_=0;_<E.length;_++){var T=E[_];M[T]=w(T)}var A=function(e){function t(e,n){m(this,t);var i=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.init(n),i}return y(t,g),v(t,[{key:"init",value:function(e){if(!this.element.getAttribute("data-sidr")){var t=e.name,n=e.method,i=e.bind;this.element.setAttribute("data-sidr",t),this.bind(i,function(e){e.preventDefault(),r(n,t)})}}}]),t}(),P={new:function(e,t){var n=h(a,t),i=f.qsa(e);u(n.name,new O(n));for(var o=0;o<i.length;o++)new A(i[o],n)},status:function(){return r.apply(void 0,["status"].concat(Array.prototype.slice.call(arguments)))},reload:function(){return r.apply(void 0,["reload"].concat(Array.prototype.slice.call(arguments)))},close:function(){return r.apply(void 0,["close"].concat(Array.prototype.slice.call(arguments)))},open:function(){return r.apply(void 0,["open"].concat(Array.prototype.slice.call(arguments)))},toggle:function(){return r.apply(void 0,["toggle"].concat(Array.prototype.slice.call(arguments)))}};window.sidr=P}();
(function(sidr){
"use strict";
sidr.new('#gmr-responsive-menu', {
name: 'topnavmenus',
source: '.gmr-logomobile, .close-topnavmenu-wrap, .gmr-mainmenu, .gmr-secondmenu',
displace: false,
onOpen:function(name){
var elems=document.querySelectorAll("[class*='sidr-class-icon_'], [class*='sidr-class-_mi']"), i;
for(i=0; i < elems.length; i++){
var elm=elems[i];
if(elm.className){
elm.className=elm.className.replace(/sidr-class-/g,'');
}}
}});
document.querySelector('#sidr-id-close-topnavmenu-button').addEventListener('click',
function(e){
e.preventDefault();
sidr.close('topnavmenus');
}
);
var elmTag=document.querySelectorAll('.sidr-inner li'), i;
for(i=0; i < elmTag.length; i++){
if(elmTag[i].querySelectorAll('ul').length > 0){
var elm=elmTag[i].querySelectorAll('a');
if(elm!==null){
elm[0].innerHTML +='<span class="sub-toggle"><span class="gmr-icon-down"></span></span>';
}}
}
var elmTag=document.querySelectorAll('.sidr-inner .sub-toggle'), i;
for(i=0; i < elmTag.length; i++){
elmTag[i].addEventListener('click',
function(e){
e.preventDefault();
var t=this;
t.classList.toggle('is-open');
if(t.classList.contains('is-open')){
var txt='<span class="gmr-icon-up"></span>';
}else{
var txt='<span class="gmr-icon-down"></span>';
}
t.innerHTML=txt;
var container=t.parentNode.parentNode.querySelectorAll('a')[0].nextElementSibling;
if(!container.classList.contains('active')){
container.classList.add('active');
}else{
container.classList.remove('active');
}}
);
}})(window.sidr);
(function(){
"use strict";
var btn=document.getElementById('search-menu-button');
if(btn){
btn.addEventListener('click',
function(e){
e.stopPropagation();
e.preventDefault();
var dropdowns=document.querySelector('.search-dropdown');
var closebtn='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M10.657 12.071L5 6.414L6.414 5l5.657 5.657L17.728 5l1.414 1.414l-5.657 5.657l5.657 5.657l-1.414 1.414l-5.657-5.657l-5.657 5.657L5 17.728z" fill="currentColor" fill-rule="evenodd"/></svg>';
var searchbtn='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></g></svg>';
dropdowns.classList.toggle('active');
if(dropdowns.classList.contains('active')){
btn.innerHTML=closebtn;
}else{
btn.innerHTML=searchbtn;
}
var getid=document.getElementById('search-dropdown-container');
document.addEventListener('click',
function(e){
if(getid!==e.target&&!getid.contains(e.target)){
if(dropdowns.classList.contains('active')){
dropdowns.classList.remove('active');
btn.innerHTML=searchbtn;
}}
}
);
}
);
}})();
(function(){
"use strict";
window.addEventListener('scroll',
function(){
var elmontop=document.querySelector('.gmr-ontop');
if(document.body.scrollTop > 85||document.documentElement.scrollTop > 85){
if(elmontop!==null){
elmontop.style.display='block';
document.querySelector('.gmr-ontop').addEventListener('click',
function(e){
e.preventDefault();
window.scroll({top: 0, left: 0, behavior: 'smooth'});
}
);
}}else{
if(elmontop!==null){
elmontop.style.display='none';
}}
});
})();
var _gaq=_gaq||[];var stFailbackDefaults={trackScrolling:true,stLogInterval:10,docTitle:window.document.title,cutOffTime:900,trackNoEvents:false,trackNoMaxTime:false};window.total_time=0;var stIntervalObj=null;var EventNONInteraction=false;var Frequency=null;var Repentance=null;function TrackingLogTime(a){return a[0]==50?(parseInt(a[1])+1)+":00":(a[1]||"0")+":"+(parseInt(a[0])+10)}function stInitializeControlVars(){if(typeof window.trackScrolling=="undefined"){window.trackScrolling=window.stFailbackDefaults.trackScrolling}if(typeof window.stLogInterval=="undefined"){window.stLogInterval=window.stFailbackDefaults.stLogInterval*1000}if(typeof window.docTitle=="undefined"){window.docTitle=window.stFailbackDefaults.docTitle}if(typeof window.cutOffTime=="undefined"){window.cutOffTime=window.stFailbackDefaults.cutOffTime}if(typeof window.trackNoEvents=="undefined"){window.trackNoEvents=window.stFailbackDefaults.trackNoEvents}if(typeof window.trackNoMaxTime=="undefined"){window.trackNoMaxTime=window.stFailbackDefaults.trackNoMaxTime}if(window.trackScrolling===true){setTimeout(function(){window.onscroll=function(){window.onscroll=null;ga("send","event","Scroll",window.docTitle,"scrolled")}},2000)}}if(window.trackNoEvents===false){function startTimeTracking(a){stInitializeControlVars();window.stIntervalObj=window.setInterval(function(){total_time+=10;if(window.trackNoMaxTime===true){total_time=1}if(window.total_time<=window.cutOffTime){a=TrackingLogTime(a.split(":").reverse());ga("send","event","Time","Log",a)}else{window.clearInterval(window.stIntervalObj)}},(window.stLogInterval))}jQuery(document).ready(function(){startTimeTracking("00")})}if(window.trackScrollingPercentage===true){Frequency=ScrollingPercentageNumber;Repentance=100/ScrollingPercentageNumber;var ScrollMatrix=new Array();for(ix=0;ix<Repentance;ix++){ScrollMatrix[ix]=[Frequency,"false"];Frequency=ScrollingPercentageNumber+Frequency}$(document).scroll(function(a){for(iz=0;iz<ScrollMatrix.length;iz++){if(($(window).scrollTop()+$(window).height()>=$(document).height()*ScrollMatrix[iz][0]/100)&&(ScrollMatrix[iz][1]=="false")){ScrollMatrix[iz][1]="true";ga("send","event","Percentage Page Scroll",window.docTitle,ScrollMatrix[iz][0]+"%",{nonInteraction:EventNONInteraction})}}})};
var wpquads_adblocker_check=true;
var wpquads_adblocker_check_2=true;
window.addEventListener("load", function(){
var wpquads_sticky=document.querySelector(".quads-sticky .quads-location");
var wpquads_location_ad=document.querySelectorAll(".quads-location");
if(wpquads_sticky){
wpquads_sticky.style.backgroundColor='hsla(0,0%,100%,.7)';
}
Array.from(wpquads_location_ad).forEach(elm=>{
var img_elements=elm.querySelectorAll("img");
var wpquads_lazy_delay=3000;
if(img_elements.length){
img_elements.forEach(img=>{
if(img.dataset&&img.dataset.lazydelay > 0){
wpquads_lazy_delay=img.dataset.lazydelay;
}
setTimeout(()=>{
if(img.dataset&&img.dataset.src){
img.src=img.dataset.src;
}
elm.style.visibility="visible";
}, wpquads_lazy_delay);
});
}else{
if(elm.dataset.lazydelay&&elm.dataset.lazydelay > 0){
wpquads_lazy_delay=elm.dataset.lazydelay;
}
setTimeout(()=>{
elm.style.visibility="visible";
}, wpquads_lazy_delay);
}})
});