if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var isMobile=!0;else isMobile=!1;function createCookie(e,t,n){var o;if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toGMTString()}else o="";document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+"; path=/"}function readCookie(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),o=0;o").addClass("nice-select").addClass(e.attr("class")||"").addClass(e.attr("disabled")?"disabled":"").attr("tabindex",e.attr("disabled")?null:"0").html(''));var o=e.next(),t=e.find("option"),n=e.find("option:selected");o.find(".current").html(n.data("display")||n.text()),t.each(function(e){var t=s(this),n=t.data("display");o.find("ul").append(s("
  • ").attr("data-value",t.val()).attr("data-display",n||null).addClass("option"+(t.is(":selected")?" selected":"")+(t.is(":disabled")?" disabled":"")).html(t.text()))})}if("string"==typeof e)return"update"==e?this.each(function(){var e=s(this),t=s(this).next(".nice-select"),n=t.hasClass("open");t.length&&(t.remove(),o(e),n&&e.next().trigger("click"))}):"destroy"==e?(this.each(function(){var e=s(this),t=s(this).next(".nice-select");t.length&&(t.remove(),e.css("display",""))}),0==s(".nice-select").length&&s(document).off(".nice_select")):console.log('Method "'+e+'" does not exist.'),this;this.hide(),this.each(function(){var e=s(this);e.next().hasClass("nice-select")||o(e)}),s(document).off(".nice_select"),s(document).on("click.nice_select",".nice-select",function(e){var t=s(this);s(".nice-select").not(t).removeClass("open"),t.toggleClass("open"),t.hasClass("open")?(t.find(".option"),t.find(".focus").removeClass("focus"),t.find(".selected").addClass("focus")):t.focus()}),s(document).on("click.nice_select",function(e){0===s(e.target).closest(".nice-select").length&&s(".nice-select").removeClass("open").find(".option")}),s(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(e){var t=s(this),n=t.closest(".nice-select");n.find(".selected").removeClass("selected"),t.addClass("selected");var o=t.data("display")||t.text();n.find(".current").text(o),n.prev("select").val(t.data("value")).trigger("change")}),s(document).on("keydown.nice_select",".nice-select",function(e){var t=s(this),n=s(t.find(".focus")||t.find(".list .option.selected"));if(32==e.keyCode||13==e.keyCode)return t.hasClass("open")?n.trigger("click"):t.trigger("click"),!1;if(40==e.keyCode){if(t.hasClass("open")){var o=n.nextAll(".option:not(.disabled)").first();0(e||C.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!d.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(i,e,t){var s;t.data&&(e=d.extend(t.data,e)),f(b,[i,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(s=e.split("_")).length){var n=i.find(y+"-"+s[0]);if(0").attr("src",t).attr("class",n.attr("class"))):n.attr(s[1],t)}}else i.find(y+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===m.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return m.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return s(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},d.fn.magnificPopup=function(e){s();var t=d(this);if("string"==typeof e)if("open"===e){var n,o=a?t.data("magnificPopup"):t[0].magnificPopup,i=parseInt(arguments[1],10)||0;n=o.items?o.items[i]:(n=t,o.delegate&&(n=n.find(o.delegate)),n.eq(i)),m._openClick({mfpEl:n},t,o)}else m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),a?t.data("magnificPopup",e):t[0].magnificPopup=e,m.addGroup(t,e);return t};function r(){_&&(x.after(_.addClass(k)).detach(),_=null)}var k,x,_,E="inline";d.magnificPopup.registerModule(E,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(E),p(l+"."+E,function(){r()})},getInline:function(e,t){if(r(),e.src){var n=m.st.inline,o=d(e.src);if(o.length){var i=o[0].parentNode;i&&i.tagName&&(x||(k=n.hiddenClass,x=u(k),k="mfp-"+k),_=o.after(x).detach().removeClass(k)),m.updateStatus("ready")}else m.updateStatus("error",n.tNotFound),o=d("
    ");return e.inlineElement=o}return m.updateStatus("ready"),m._parseMarkup(t,{},e),t}}});var S;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,s=m.st.zoom,t=".zoom";if(s.enabled&&m.supportsTransition){function n(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+s.duration/1e3+"s "+s.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return o["-webkit-"+i]=o["-moz-"+i]=o["-o-"+i]=o[i]=n,t.css(o),t}function o(){m.content.css("visibility","visible")}var i,a,r=s.duration;p("BuildControls"+t,function(){if(m._allowZoom()){if(clearTimeout(i),m.content.css("visibility","hidden"),!(e=m._getItemToZoom()))return void o();(a=n(e)).css(m._getOffset()),m.wrap.append(a),i=setTimeout(function(){a.css(m._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){a.remove(),e=a=null,f("ZoomAnimationEnded")},16)},r)},16)}}),p(c+t,function(){if(m._allowZoom()){if(clearTimeout(i),m.st.removalDelay=r,!e){if(!(e=m._getItemToZoom()))return;a=n(e)}a.css(m._getOffset(!0)),m.wrap.append(a),m.content.css("visibility","hidden"),setTimeout(function(){a.css(m._getOffset())},16)}}),p(l+t,function(){m._allowZoom()&&(o(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var t,n=(t=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem)).offset(),o=parseInt(t.css("padding-top"),10),i=parseInt(t.css("padding-bottom"),10);n.top-=d(window).scrollTop()-o;var s={width:t.width(),height:(a?t.innerHeight():t[0].offsetHeight)-i-o};return void 0===S&&(S=void 0!==document.createElement("p").style.MozTransform),S?s["-moz-transform"]=s.transform="translate("+n.left+"px,"+n.top+"px)":(s.left=n.left,s.top=n.top),s}}});function T(e){if(m.currTemplate[I]){var t=m.currTemplate[I].find("iframe");t.length&&(e||(t[0].src="//about:blank"),m.isIE8&&t.css("display",e?"block":"none"))}}var I="iframe";d.magnificPopup.registerModule(I,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(I),p("BeforeChange",function(e,t,n){t!==n&&(t===I?T():n===I&&T(!0))}),p(l+"."+I,function(){T()})},getIframe:function(e,t){var n=e.src,o=m.st.iframe;d.each(o.patterns,function(){if(-1

    '+np_localize.popup_exit_quiz_title+'

    '+np_localize.popup_exit_quiz_description+'

    '+np_localize.popup_exit_quiz_start+'

    '+np_localize.popup_exit_quiz_info+"

    ";e(document).mouseleave(function(){0==o&&(e.magnificPopup.instance.isOpen||(createCookie(n,"1","365"),o=1,e.magnificPopup.open({focus:"none",enableEscapeKey:!1,closeOnBgClick:!1,items:{src:s,type:"inline",midClick:!0},callbacks:{open:function(){e("body").addClass(i)},close:function(){e("body").removeClass(i)}}})))})}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(i){"use strict";var s=[],t=[],o={precision:100,elapse:!1,defer:!1};t.push(/^[0-9]*$/.source),t.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),t.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),t=new RegExp(t.join("|"));var u={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"};function f(e,t){var n="s",o="";return e&&(n=1===(e=e.replace(/(:|;|\s)/gi,"").split(/\,/)).length?e[0]:(o=e[0],e[1])),1=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-n.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(e){var t=i.Event(e+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=i.extend({},this.offset),t.strftime=function(p){return function(e){var t,n,o=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(o)for(var i=0,s=o.length;i";t("body").append(o);var i,s=t("#bottombar");function a(){var e=s.outerHeight();t("body").css("padding-bottom",e)}t(window).resize(function(){clearTimeout(i),i=setTimeout(a,250)}),a(),s.css("position","fixed").css("top","auto"),s.css("position","fixed").css("bottom","0"),t(s).find(".accept").on("click",function(e){e.preventDefault(),createCookie(n,"1","365"),t(s).hide(),t("body").css("padding-bottom",0)})}}(jQuery),function(e){e(".menu-item-has-children > a").on("click",function(e){e.preventDefault()}),e(".nice-select").niceSelect(),setTimeout(function(){e(".nice-select .list").wrap('
      ').contents().unwrap(),e(".optiscroll").optiscroll({forceScrollbars:!0,preventParentScroll:!0,wrapContent:!1})},1e3),e(".form select.extend").change(function(){e(this).parentsUntil(".form").find(".part").removeClass("hidden")}),"undefined"!=typeof lang_geo&&e('input[name="cf-lang-geo"]').val(lang_geo),e('input[name="cf-ref"]').val(document.referrer),e('.wpcf7 select[aria-required="true"]').each(function(){e(this).prop("required",!0)}),e(".wpcf7 option:disabled").each(function(){e(this).attr("value","")}),e(".wpcf7 .wpcf7-telephone").each(function(){e(this).prop("placeholder",np_localize.phone)}),e("a").not('[href*="mailto:"]').each(function(){new RegExp("/"+window.location.host+"/").test(this.href)||e(this).attr("target","_blank").attr("rel","noopener")}),reframe("iframe:not( #SOI_neilpatel )")}(jQuery);