1!function(O,x,c,e){var n,M,s,i,l,a,o,r,u,h,t,d,p="mPageScroll2id",b="mPS2id",g={scrollSpeed:1e3,autoScrollSpeed:!0,scrollEasing:"easeInOutQuint",scrollingEasing:"easeOutQuint",pageEndSmoothScroll:!0,layout:"vertical",offset:0,highlightSelector:!1,clickedClass:b+"-clicked",targetClass:b+"-target",highlightClass:b+"-highlight",forceSingleHighlight:!1,keepHighlightUntilNext:!1,highlightByNextTarget:!1,disablePluginBelow:!1,clickEvents:!0,appendHash:!1,onStart:function(){},onComplete:function(){},defaultSelector:!1,live:!0,liveSelector:!1,excludeSelectors:!1,encodeLinks:!1,inIframe:!1},f=0,_=/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/,w={init:function(e){e=O.extend(!0,{},g,e);if(O(c).data(b,e),M=O(c).data(b),!this.selector){var t="__"+b;this.each(function(){var e=O(this);e.hasClass(t)||e.addClass(t)}),this.selector="."+t}M.liveSelector&&(this.selector+=","+M.liveSelector),n=n?n+","+this.selector:this.selector,M.defaultSelector&&("object"==typeof O(n)&&0!==O(n).length||(n=".m_PageScroll2id,a[rel~='m_PageScroll2id'],.page-scroll-to-id,a[rel~='page-scroll-to-id'],._ps2id")),M.clickEvents&&O(c).off("."+b).on("click."+b,n,function(e){if(m._isDisabled.call(null))m._removeClasses.call(null);else{var t=O(this),n=t.attr("href"),s=t.prop("href").baseVal||t.prop("href");M.excludeSelectors&&t.is(M.excludeSelectors)||n&&-1!==n.indexOf("#/")||(m._reset.call(null),h=t.data("ps2id-offset")||0,m._isValid.call(null,n,s)&&m._findTarget.call(null,n)&&(e.preventDefault(),i="selector",l=t,m._setClasses.call(null,!0),m._scrollTo.call(null)))}}),O(x).off("."+b).on("scroll."+b+" resize."+b,function(){if(m._isDisabled.call(null))m._removeClasses.call(null);else{var i=O("._"+b+"-t");i.each(function(e){var t=O(this),n=t.attr("id"),s=m._findHighlight.call(null,n);m._setClasses.call(null,!1,t,s),e==i.length-1&&m._extendClasses.call(null)})}}),s=!0,m._setup.call(null),m._live.call(null)},scrollTo:function(e,t){if(m._isDisabled.call(null))m._removeClasses.call(null);else if(e&&void 0!==e){m._isInit.call(null);var n={layout:M.layout,offset:M.offset,clicked:!1};t=O.extend(!0,{},n,t);m._reset.call(null),r=t.layout,u=t.offset,e=-1!==e.indexOf("#")?e:"#"+e,m._isValid.call(null,e)&&m._findTarget.call(null,e)&&(i="scrollTo",(l=t.clicked)&&m._setClasses.call(null,!0),m._scrollTo.call(null))}},destroy:function(){O(x).off("."+b),O(c).off("."+b).removeData(b),O("._"+b+"-t").removeData(b),m._removeClasses.call(null,!0)}},m={_isDisabled:function(){var e=x,t="inner",n=M.disablePluginBelow instanceof Array?[M.disablePluginBelow[0]||0,M.disablePluginBelow[1]||0]:[M.disablePluginBelow||0,0];return"innerWidth"in x||(t="client",e=c.documentElement||c.body),e[t+"Width"]<=n[0]||e[t+"Height"]<=n[1]},_isValid:function(e,t){if(e){var n=-1!==(t=t||e).indexOf("#/")?t.split("#/")[0]:t.split("#")[0],s=(M.inIframe||x.location===x.parent.location?x.location:x.parent.location).toString().split("#")[0];return"#"!==e&&-1!==e.indexOf("#")&&(""===n||decodeURIComponent(n)===decodeURIComponent(s))}},_setup:function(){var l=m._highlightSelector(),o=1,r=0;return O(l).each(function(){var e=O(this),t=e.attr("href"),n=e.prop("href").baseVal||e.prop("href");if(m._isValid.call(null,t,n)){if(M.excludeSelectors&&e.is(M.excludeSelectors))return;var s=-1!==t.indexOf("#/")?t.split("#/")[1]:t.substring(t.indexOf("#")+1),i=_.test(s)?O(c.getElementById(s)):O("#"+s);if(0<i.length){M.highlightByNextTarget&&i!==r&&(r?r.data(b,{tn:i}):i.data(b,{tn:"0"}),r=i),i.hasClass("_"+b+"-t")||i.addClass("_"+b+"-t"),i.data(b,{i:o}),e.hasClass("_"+b+"-h")||e.addClass("_"+b+"-h");var a=m._findHighlight.call(null,s);m._setClasses.call(null,!1,i,a),f=o,++o==O(l).length&&m._extendClasses.call(null)}}})},_highlightSelector:function(){return M.highlightSelector&&""!==M.highlightSelector?M.highlightSelector:n},_findTarget:function(e){var t=-1!==e.indexOf("#/")?e.split("#/")[1]:e.substring(e.indexOf("#")+1),n=_.test(t)?O(c.getElementById(t)):O("#"+t);if(n.length<1||"fixed"===n.css("position")){if("top"!==t)return;n=O("body")}return a=n,r||(r=M.layout),u=m._setOffset.call(null),(o=[(n.offset().top-u[0]).toString(),(n.offset().left-u[1]).toString()])[0]=o[0]<0?0:o[0],o[1]=o[1]<0?0:o[1],o},_setOffset:function(){var e,t,n,s;switch(u||(u=M.offset?M.offset:0),h&&(u=h),typeof u){case"object":case"string":0<(t=[(e=[u.y?u.y:u,u.x?u.x:u])[0]instanceof jQuery?e[0]:O(e[0]),e[1]instanceof jQuery?e[1]:O(e[1])])[0].length?(n=t[0].height(),"f
1ixed"===t[0].css("position")&&(n+=t[0][0].offsetTop)):n=!isNaN(parseFloat(e[0]))&&isFinite(e[0])?parseInt(e[0]):0,0<t[1].length?(s=t[1].width(),"fixed"===t[1].css("position")&&(s+=t[1][0].offsetLeft)):s=!isNaN(parseFloat(e[1]))&&isFinite(e[1])?parseInt(e[1]):0;break;case"function":(e=u.call(null))instanceof Array?(n=e[0],s=e[1]):n=s=e;break;default:n=s=parseInt(u)}return[n,s]},_findHighlight:function(e){var t=M.inIframe||x.location===x.parent.location?x.location:x.parent.location,n=t.toString().split("#")[0],s=t.pathname;if(-1!==n.indexOf("'")&&(n=n.replace("'","\\'")),-1!==s.indexOf("'")&&(s=s.replace("'","\\'")),n=decodeURIComponent(n),s=decodeURIComponent(s),M.encodeLinks){var i=encodeURI(n).toLowerCase(),a=encodeURI(s).toLowerCase();return O("._"+b+"-h[href='#"+e+"'],._"+b+"-h[href='"+n+"#"+e+"'],._"+b+"-h[href='"+s+"#"+e+"'],._"+b+"-h[href='#/"+e+"'],._"+b+"-h[href='"+n+"#/"+e+"'],._"+b+"-h[href='"+s+"#/"+e+"'],._"+b+"-h[href='"+i+"#/"+e+"'],._"+b+"-h[href='"+i+"#"+e+"'],._"+b+"-h[href='"+a+"#/"+e+"'],._"+b+"-h[href='"+a+"#"+e+"']")}return O("._"+b+"-h[href='#"+e+"'],._"+b+"-h[href='"+n+"#"+e+"'],._"+b+"-h[href='"+s+"#"+e+"'],._"+b+"-h[href='#/"+e+"'],._"+b+"-h[href='"+n+"#/"+e+"'],._"+b+"-h[href='"+s+"#/"+e+"']")},_setClasses:function(e,t,n){var s=M.clickedClass,i=M.targetClass,a=M.highlightClass;e&&s&&""!==s?(O("."+s).removeClass(s),l.addClass(s)):t&&i&&""!==i&&n&&a&&""!==a&&(m._currentTarget.call(null,t)?(t.addClass(i),n.addClass(a)):(!M.keepHighlightUntilNext||1<O("."+a).length)&&(t.removeClass(i),n.removeClass(a)))},_extendClasses:function(){var e=M.targetClass,t=M.highlightClass,n=O("."+e),s=O("."+t),i=e+"-first",a=e+"-last",l=t+"-first",o=t+"-last";O("._"+b+"-t").removeClass(i+" "+a),O("._"+b+"-h").removeClass(l+" "+o),M.forceSingleHighlight?M.keepHighlightUntilNext&&1<n.length?(n.slice(0,1).removeClass(e),s.slice(0,1).removeClass(t)):(n.slice(1).removeClass(e),s.slice(1).removeClass(t)):(n.slice(0,1).addClass(i).end().slice(-1).addClass(a),s.slice(0,1).addClass(l).end().slice(-1).addClass(o))},_removeClasses:function(e){O("."+M.clickedClass).removeClass(M.clickedClass),O("."+M.targetClass).removeClass(M.targetClass+" "+M.targetClass+"-first "+M.targetClass+"-last"),O("."+M.highlightClass).removeClass(M.highlightClass+" "+M.highlightClass+"-first "+M.highlightClass+"-last"),e&&(O("._"+b+"-t").removeClass("_"+b+"-t"),O("._"+b+"-h").removeClass("_"+b+"-h"))},_currentTarget:function(e){if(e.data(b)){var t=M["target_"+e.data(b).i],n=e.data("ps2id-target"),s=n&&O(n)[0]?O(n)[0].getBoundingClientRect():e[0].getBoundingClientRect();if(void 0!==t){var i=e.offset().top,a=e.offset().left,l=t.from?t.from+i:i,o=t.to?t.to+i:i,r=t.fromX?t.fromX+a:a,c=t.toX?t.toX+a:a;return s.top>=o&&s.top<=l&&s.left>=c&&s.left<=r}var u=O(x).height(),h=O(x).width(),d=n?O(n).height():e.height(),p=n?O(n).width():e.width(),g=1+d/u,f=g,_=d<u?g*(u/d):g,w=1+p/h,m=w,S=p<h?w*(h/p):w,I=[s.top<=u/f,s.bottom>=u/_,s.left<=h/m,s.right>
1=h/S];if(M.highlightByNextTarget){var v=e.data(b).tn;if(v){var C=v[0].getBoundingClientRect();"vertical"===M.layout?I=[s.top<=u/2,C.top>u/2,1,1]:"horizontal"===M.layout&&(I=[1,1,s.left<=h/2,C.left>h/2])}}return I[0]&&I[1]&&I[2]&&I[3]}},_scrollTo:function(){d=m._scrollSpeed.call(null),o=M.pageEndSmoothScroll?m._pageEndSmoothScroll.call(null):o;var e=O("html,body"),t=M.autoScrollSpeed?m._autoScrollSpeed.call(null):d,n=e.is(":animated")?M.scrollingEasing:M.scrollEasing,s=O(x).scrollTop(),i=O(x).scrollLeft();switch(r){case"horizontal":i!=o[1]&&(m._callbacks.call(null,"onStart"),e.stop().animate({scrollLeft:o[1]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")}));break;case"auto":var a;if(s!=o[0]||i!=o[1])if(m._callbacks.call(null,"onStart"),navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/))e.stop().animate({pageYOffset:o[0],pageXOffset:o[1]},{duration:t,easing:n,step:function(e,t){"pageXOffset"==t.prop?a=e:"pageYOffset"==t.prop&&x.scrollTo(a,e)}}).promise().then(function(){m._callbacks.call(null,"onComplete")}
1);else e.stop().animate({scrollTop:o[0],scrollLeft:o[1]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")});break;default:s!=o[0]&&(m._callbacks.call(null,"onStart"),e.stop().animate({scrollTop:o[0]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")}))}},_pageEndSmoothScroll:function(){var e=O(c).height(),t=O(c).width(),n=O(x).height(),s=O(x).width();return[e-o[0]<n?e-n:o[0],t-o[1]<s?t-s:o[1]]},_scrollSpeed:function(){var s=M.scrollSpeed;return l&&l.length&&l.add(l.parent()).each(function(){var e=O(this);if(e.attr("class")){var t=e.attr("class").split(" ");for(var n in t)if(String(t[n]).match(/^ps2id-speed-\d+$/)){s=t[n].split("ps2id-speed-")[1];break}}}),parseInt(s)},_autoScrollSpeed:function(){var e=O(x).scrollTop(),t=O(x).scrollLeft(),n=O(c).height(),s=O(c).width(),i=[d+d*Math.floor(Math.abs(o[0]-e)/n*100)/100,d+d*Math.floor(Math.abs(o[1]-t)/s*100)/100];return Math.max.apply(Math,i)},_callbacks:function(e){if(M)switch(this[b]={trigger:i,clicked:l,target:a,scrollTo:{y:o[0],x:o[1]}},e){case"onStart":if(M.appendHash&&x.history&&x.history.pushState&&l&&l.length){var t=l.attr("href"),n="#"+t.substring(t.indexOf("#")+1);n!==x.location.hash&&history.pushState("","",n)}M.onStart.call(null,this[b]);break;case"onComplete":M.onComplete.call(null,this[b])}},_reset:function(){r=u=h=!1},_isInit:function(){s||w.init.apply(this)},_live:function(){t=setTimeout(function(){M.live?O(m._highlightSelector()).length!==f&&m._setup.call(null):t&&clearTimeout(t),m._live.call(null)},1e3)},_easing:function(){function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}O.easing.easeInQuad=O.easing.easeInQuad||function(e){return e*e},O.easing.easeOutQuad=O.easing.easeOutQuad||function(e){return 1-(1-e)*(1-e)},O.easing.easeInOutQuad=O.easing.easeInOutQuad||function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},O.easing.easeInCubic=O.easing.easeInCubic||function(e){return e*e*e},O.easing.easeOutCubic=O.easing.easeOutCubic||function(e){return 1-Math.pow(1-e,3)},O.easing.easeInOutCubic=O.easing.easeInOutCubic||function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},O.easing.easeInQuart=O.easing.easeInQuart||function(e){return e*e*e*e},O.easing.easeOutQuart=O.easing.easeOutQuart||function(e){return 1-Math.pow(1-e,4)},O.easing.easeInOutQuart=O.easing.easeInOutQuart||function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},O.easing.easeInQuint=O.easing.easeInQuint||function(e){return e*e*e*e*e},O.easing.easeOutQuint=O.easing.easeOutQuint||function(e){return 1-Math.pow(1-e,5)},O.easing.easeInOutQuint=O.easing.easeInOutQuint||function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},O.easing.easeInExpo=O.easing.easeInExpo||function(e){return 0===e?0:Math.pow(2,10*e-10)},O.easing.easeOutExpo=O.easing.easeOutExpo||function(e){return 1===e?1:1-Math.pow(2,-10*e)},O.easing.easeInOutExpo=O.easing.easeInOutExpo||function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},O.easing.easeInSine=O.easing.easeInSine||function(e){return 1-Math.cos(e*Math.PI/2)},O.easing.easeOutSine=O.easing.easeOutSine||function(e){return Math.sin(e*Math.PI/2)},O.easing.easeInOutSine=O.easing.easeInOutSine||function(e){return-(Math.cos(Math.PI*e)-1)/2},O.easing.easeInCirc=O.easing.easeInCirc||function(e){return 1-Math.sqrt(1-Math.pow(e,2))},O.easing.easeOutCirc=O.easing.easeOutCirc||function(e){return Math.sqrt(1-Math.pow(e-1,2))},O.easing.easeInOutCirc=O.easing.easeInOutCirc||function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},O.easing.easeInElastic=O.easing.easeInElastic||function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*(2*Math.PI/3))},O.easing.easeOutElastic=O.easing.easeOutElastic||function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*(2*Math.PI/3))+1},O.easing.easeInOutElastic=O.easing.easeInOutElastic||function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2+1},O.easing.easeInBack=O.easing.easeInBack||function(e){return 2.70158*e*e*e-1.70158*e*e},O.easing.easeOutBack=O.easing.easeOutBack||function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},O.easing.easeInOutBack=O.easing.easeInOutBack||function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2},O.easing.easeInBounce=O.easing.easeInBounce||function(e){return 1-t(1-e)},O.easing.easeOutBounce=O.easing.easeOutBounce||t,O.easing.easeInOutBounce=O.easing.easeInOutBounce||function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}};
1m._easing.call(),O.fn[p]=function(e){return w[e]?w[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void O.error("Method "+e+" does not exist"):w.init.apply(this,arguments)},O[p]=function(e){return w[e]?w[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void O.error("Method "+e+" does not exist"):w.init.apply(this,arguments)},O[p].defaults=g}(jQuery,window,document),function(o){var r,c="mPS2id",u=mPS2id_params,h=u.shortcode_class,d=location.hash||null,s=/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/,p=function(e,t){var n=e.substring(e.indexOf("#")+1);try{s.test(n)?o(document.getElementById(n)):o("#"+n)}catch(e){return!1}return(s.test(n)?o(document.getElementById(n)):o("#"+n)).length&&(t||o("a[href*='#"+n+"']").filter(function(){return 1==o(this).data(c+"Element")}).length)},g=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return{y:t[0]||"0",x:t[1]||"0"}},f=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return[t[0]||"0",t[1]||"0"]},_=function(e){"horizontal"!==e&&o(window).scrollTop(0),"vertical"!==e&&o(window).scrollLeft(0)},w=function(e,t){for(var n=e.click.length-1;0<=n;n--){var s=e.click[n];s&&"mPS2id"!=s.namespace&&("a[href*=#]"===s.selector?s.selector="a[href*=#]:not(._mPS2id-h)":'a[href*="#"]'===s.selector?s.selector='a[href*="#"]:not(._mPS2id-h)':"a[href*=#]:not([href=#])"===s.selector?s.selector="a[href*=#]:not([href=#]):not(._mPS2id-h)":'a[href*="#"]:not([href="#"])'===s.selector?s.selector='a[href*="#"]:not([href="#"]):not(._mPS2id-h)':s.selector&&-1!==s.selector.indexOf("mobmenu")?t.off("click"):t.off("click",s.handler))}},m="a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#']";function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}o(function(){for(var e=0;e<u.total_instances;e++){var t=o("[class*='ps2id-id-']");if(t.length&&t.each(function(){var e,t=o(this),n=t.attr("class").split(" ");if(!t.attr("id"))for(var s in n)if(String(n[s]).match(/^ps2id-id-\S+$/)){e=n[s].split("ps2id-id-")[1],o("#"+e).length||t.attr("id",e);break}}),"true"===u.instances[c+"_instance_"+e].scrollToHash&&d&&(o(u.instances[c+"_instance_"+e].selector+",."+h+","+m).not(u.instances[c+"_instance_"+e].excludeSelector).each(function(){o(this).data(c+"Element",!0)}),p(d,"true"===u.instances[c+"_instance_"+e].scrollToHashForAll))){var n="true"===u.instances[c+"_instance_"+e].scrollToHashRemoveUrlHash?window.location.href.replace(/#.*$/,""):window.location.href.replace(/#.*$/,"#");_(u.instances[c+"_instance_"+e].layout),window.history&&window.history.replaceState?window.history.replaceState("","",n):window.location.href=n}}o("html").css("scroll-behavior","auto"),window.twentytwenty&&window.twentytwenty.smoothScroll&&(window.twentytwenty.smoothScroll=null)}),o(window).on("load",function(){for(var e=0;e<u.total_instances;e++){0<=u.instances[c+"_instance_"+e].selector.indexOf("a[href*=#]:not([href=#])")&&console.log("ps2id selector issue: a[href*=#]:not([href=#]) selector needs quotes"),0<=u.instances[c+"_instance_"+e].excludeSelector.indexOf("a[href*=#]:not([href=#])")&&console.log("ps2id excluded selector issue: a[href*=#]:not([href=#]) selector needs quotes");var n=o(u.instances[c+"_instance_"+e].selector+",."+h+","+m),t=u.instances[c+"_instance_"+e].autoCorrectScroll,s=0,i=u.instances[c+"_instance_"+e].autoCorrectScrollExtend;if(window.ps2id_special_params&&(window.ps2id_special_params.highlightSelector&&(u.instances[c+"_instance_"+e].highlightSelector=window.ps2id_special_params.highlightSelector),window.ps2id_special_params.scrollSpeed&&(u.instances[c+"_instance_"+e].scrollSpeed=window.ps2id_special_params.scrollSpeed),window.ps2id_special_params.scrollEasing&&(u.instances[c+"_instance_"+e].scrollEasing=window.ps2id_special_params.scrollEasing),void 0!==window.ps2id_special_params.forceSingleHighlight&&(u.instances[c+"_instance_"+e].forceSingleHighlight=window.ps2id_special_params.forceSingleHighlight),void 0!==window.ps2id_special_params.keepHighlightUntilNext&&(u.instances[c+"_instance_"+e].keepHighlightUntilNext=window.ps2id_special_params.keepHighlightUntilNext),void 0!==window.ps2id_special_params.appendHash&&(u.instances[c+"_instance_"+e].appendHash=window.ps2id_special_params.appendHash),window.ps2id_special_params.layout&&(u.instances[c+"_instance_"+e].layout=window.ps2id_special_params.layout),window.ps2id_special_params.offset&&(u.instances[c+"_instance_"+e].offset=window.ps2id_special_params.offset)),n.mPageScroll2id({scrollSpeed:u.instances[c+"_instance_"+e].scrollSpeed,autoScrollSpeed:"true"===u.instances[c+"_instance_"+e].autoScrollSpeed,scrollEasing:"true"===u.instances[c+"_instance_"+e].forceScrollEasing?"ps2id_"+u.instances[c+"_instance_"+e].scrollEasing:u.instances[c+"_instance_"+e].scrollEasing,scrollingEasing:"true"===u.instances[c+"_instance_"+e].forceScrollEasing?"ps2id_"+u.instances[c+"_instance_"+e].scrollingEasing:u.instances[c+"_instance_"+e].scrollingEasing,pageEndSmoothScroll:"true"===u.instances[c+"_instance_"+e].pageEndSmoothScroll,layout:u.instances[c+"_instance_"+e].layout,offset:g(u.instances[c+"_instance_"+e].offset.toString()),highlightSelector:u.instances[c+"_instance_"+e].highlightSelector,clickedClass:u.instances[c+"_instance_"+e].clickedClass,targetClass:u.instances[c+"_instance_"+e].targetClass,highlightClass:u.instances[c+"_instance_"+e].highlightClass,forceSingleHighlight:"true"===u.instances[c+"_instance_"+e].forceSingleHighlight,keepHighlightUntilNext:"true"===u.instances[c+"_instance_"+e].keepHighlightUntilNext,highlightByNextTarget:"true"===u.instances[c+"_instance_"+e].highlightByNextTarget,disablePluginBelow:f(u.instances[c+"_instance_"+e].disablePluginBelow.toString()),appendHash:"true"===u.instances[c+"_instance_"+e].appendHash,onStart:function(){"true"===t&&"selector"===mPS2id.trigger&&s++,"true"===i&&(r=[mPS2id.target.offset().top,mPS2id.target.offset().left])},onComplete:function(){"true"===i?r[0]===mPS2id.target.offset().top&&r[1]===mPS2id.target.offset().left||("selector"===mPS2id.trigger&&mPS2id.clicked.length?mPS2id.clicked.trigger("click.mPS2id"):o.mPageScroll2id("scrollTo",mPS2id.target.attr("id"))):1==s&&(mPS2id.clicked.length&&mPS2id.clicked.trigger("click.mPS2id"),s=0)},excludeSelectors:u.instances[c+"_instance_"+e].excludeSelector,encodeLinks:"true"===u.instances[c+"_instance_"+e].encodeLinks,liveSelector:u.instances[c+"_instance_"+e].selector+",."+h+","+m}),"true"===u.instances[c+"_instance_"+e].scrollToHash&&d&&p(d,"true"===u.instances[c+"_instance_"+e].scrollToHashForAll)){_(u.instances[c+"_instance_"+e].layout);var a=u.instances[c+"_instance_"+e].scrollToHashUseElementData,l=o("a._mPS2id-h[href$='"+d+"'][data-ps2id-offset]:not([data-ps2id-offset=''])").last();setTimeout(function(){"true"===a&&l.length?l.trigger("click.mPS2id"):o.mPageScroll2id("scrollTo",d),-1!==window.location.href.indexOf("#")&&(window.history&&window.history.replaceState?window.history.replaceState("","",d):window.location.hash=d)},u.instances[c+"_instance_"+e].scrollToHashDelay)}o(".ps2id-auto-scroll[id]").length&&!window.location.hash&&setTimeout(function(){o.mPageScroll2id("scrollTo",o(".ps2id-auto-scroll[id]").attr("id"))},u.instances[c+"_instance_"+e].scrollToHashDelay),"true"!==u.instances[c+"_instance_"+e].unbindUnrelatedClickEvents||u.instances[c+"_instance_"+e].unbindUnrelatedClickEventsSelector||setTimeout(function(){var e=n.length?o._data(n[0],"events"):null,t=n.length?o._data(o(document)[0],"events"):null;
1e&&w(e,n),t&&w(t,n)},300),"true"===u.instances[c+"_instance_"+e].normalizeAnchorPointTargets&&o("a._mPS2id-t[id]:empty").css({display:"inline-block","line-height":0,width:0,height:0,border:"none"}),"true"===u.instances[c+"_instance_"+e].stopScrollOnUserAction&&o(document).on("mousewheel DOMMouseScroll touchmove",function(){var e=o("html,body");e.is(":animated")&&e.stop()})}}),o.expr.pseudos?o.extend(o.expr.pseudos,{absolute:o.expr.pseudos.absolute||function(e){return"absolute"===o(e).css("position")},relative:o.expr.pseudos.relative||function(e){return"relative"===o(e).css("position")},static:o.expr.pseudos.static||function(e){return"static"===o(e).css("position")},fixed:o.expr.pseudos.fixed||function(e){return"fixed"===o(e).css("position")},sticky:o.expr.pseudos.sticky||function(e){return"sticky"===o(e).css("position")},width:o.expr.pseudos.width||function(e,t,n){var s=n[3].replace("<","<").replace(">",">");return!!s&&(">"===s.substr(0,1)?o(e).width()>s.substr(1):"<"===s.substr(0,1)?o(e).width()<s.substr(1):o(e).width()===parseInt(s))},height:o.expr.pseudos.height||function(e,t,n){var s=n[3].replace("<","<").replace(">",">");return!!s&&(">"===s.substr(0,1)?o(e).height()>s.substr(1):"<"===s.substr(0,1)?o(e).height()<s.substr(1):o(e).height()===parseInt(s))}}):o.extend(o.expr[":"],{absolute:o.expr[":"].absolute||function(e){return"absolute"===o(e).css("position")},relative:o.expr[":"].relative||function(e){return"relative"===o(e).css("position")},static:o.expr[":"].static||function(e){return"static"===o(e).css("position")},fixed:o.expr[":"].fixed||function(e){return"fixed"===o(e).css("position")},width:o.expr[":"].width||function(e,t,n){var s=n[3].replace("<","<").replace(">",">");return!!s&&(">"===s.substr(0,1)?o(e).width()>s.substr(1):"<"===s.substr(0,1)?o(e).width()<s.substr(1):o(e).width()===parseInt(s))},height:o.expr[":"].height||function(e,t,n){var s=n[3].replace("<","<").replace(">",">");return!!s&&(">"===s.substr(0,1)?o(e).height()>s.substr(1):"<"===s.substr(0,1)?o(e).height()<s.substr(1):o(e).height()===parseInt(s))}}),o.easing.ps2id_easeInQuad=o.easing.ps2id_easeInQuad||function(e){return e*e},o.easing.ps2id_easeOutQuad=o.easing.ps2id_easeOutQuad||function(e){return 1-(1-e)*(1-e)},o.easing.ps2id_easeInOutQuad=o.easing.ps2id_easeInOutQuad||function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},o.easing.ps2id_easeInCubic=o.easing.ps2id_easeInCubic||function(e){return e*e*e},o.easing.ps2id_easeOutCubic=o.easing.ps2id_easeOutCubic||function(e){return 1-Math.pow(1-e,3)},o.easing.ps2id_easeInOutCubic=o.easing.ps2id_easeInOutCubic||function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},o.easing.ps2id_easeInQuart=o.easing.ps2id_easeInQuart||function(e){return e*e*e*e},o.easing.ps2id_easeOutQuart=o.easing.ps2id_easeOutQuart||function(e){return 1-Math.pow(1-e,4)},o.easing.ps2id_easeInOutQuart=o.easing.ps2id_easeInOutQuart||function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},o.easing.ps2id_easeInQuint=o.easing.ps2id_easeInQuint||function(e){return e*e*e*e*e},o.easing.ps2id_easeOutQuint=o.easing.ps2id_easeOutQuint||function(e){return 1-Math.pow(1-e,5)},o.easing.ps2id_easeInOutQuint=o.easing.ps2id_easeInOutQuint||function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},o.easing.ps2id_easeInExpo=o.easing.ps2id_easeInExpo||function(e){return 0===e?0:Math.pow(2,10*e-10)},o.easing.ps2id_easeOutExpo=o.easing.ps2id_easeOutExpo||function(e){return 1===e?1:1-Math.pow(2,-10*e)},o.easing.ps2id_easeInOutExpo=o.easing.ps2id_easeInOutExpo||function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},o.easing.ps2id_easeInSine=o.easing.ps2id_easeInSine||function(e){return 1-Math.cos(e*Math.PI/2)},o.easing.ps2id_easeOutSine=o.easing.ps2id_easeOutSine||function(e){return Math.sin(e*Math.PI/2)},o.easing.ps2id_easeInOutSine=o.easing.ps2id_easeInOutSine||function(e){return-(Math.cos(Math.PI*e)-1)/2},o.easing.ps2id_easeInCirc=o.easing.ps2id_easeInCirc||function(e){return 1-Math.sqrt(1-Math.pow(e,2))},o.easing.ps2id_easeOutCirc=o.easing.ps2id_easeOutCirc||function(e){return Math.sqrt(1-Math.pow(e-1,2))},o.easing.ps2id_easeInOutCirc=o.easing.ps2id_easeInOutCirc||function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},o.easing.ps2id_easeInElastic=o.easing.ps2id_easeInElastic||function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*(2*Math.PI/3))},o.easing.ps2id_easeOutElastic=o.easing.ps2id_easeOutElastic||function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*(2*Math.PI/3))+1},o.easing.ps2id_easeInOutElastic=o.easing.ps2id_easeInOutElastic||function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2+1},o.easing.ps2id_easeInBack=o.easing.ps2id_easeInBack||function(e){return 2.70158*e*e*e-1.70158*e*e},o.easing.ps2id_easeOutBack=o.easing.ps2id_easeOutBack||function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},o.easing.ps2id_easeInOutBack=o.easing.ps2id_easeInOutBack||function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2},o.easing.ps2id_easeInBounce=o.easing.ps2id_easeInBounce||function(e){return 1-t(1-e)},o.easing.ps2id_easeOutBounce=o.easing.ps2id_easeOutBounce||t,o.easing.ps2id_easeInOutBounce=o.easing.ps2id_easeInOutBounce||function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}(jQuery); 2fetch(viewsCacheL10n.admin_ajax_url, { 3method: "POST", 4credentials: 'same-origin', 5headers: { 6'Content-Type': 'application/x-www-form-urlencoded', 7'Cache-Control': 'no-cache', 8}, 9body: new URLSearchParams( 10{ 11action: 'postviews', 12nonce: viewsCacheL10n.nonce, 13postviews_id: viewsCacheL10n.post_id, 14cache: !1, 15} 16), 17}) 18.then(function(response){ 19return response.json(); 20}) 21.then(function(data){ 22}) 23.catch(function(error){ 24console.log('WP-PostViews'); 25console.log(error); 26}); 27;(function($){ 28$('a#btn-view-more').on('click', function(e){ 29e.preventDefault(); 30$(this).text($(this).text()==="View More" ? "Show Less":"View More"); 31$(this).closest('.biography').find('span.desc-part-two').slideToggle(); 32}); 33$('#btn-reset-search').on('click', function(e){ 34e.preventDefault(); 35let url=new URL(window.location); 36url=url.href; 37url=getPathFromUrl(url); 38window.history.pushState({}, '', url); 39location.reload(); 40}); 41function getPathFromUrl(url){ 42return url.split(/[?#]/)[0]; 43}}(jQuery)); 44(function($){ 45var conditional_logic={ 46field_prefix: 'wpuf_', 47init: function(){ 48var self=this; 49self.refresh_conditions(); 50$(document).on('change', '.wpuf-fields input, .wpuf-fields textarea, .wpuf-fields select', function(){ 51self.refresh_conditions(); 52}); 53$(document).on('wpuf-ajax-fetched-child-categories', function(e,
53container_id){ 54self.refresh_conditions(); 55$('select', '#' + container_id).on('change', function (){ 56self.refresh_conditions(); 57}); 58}); 59$(".wpuf-fields ul.wpuf-attachment-list").bind('DOMSubtreeModified', function(){ 60self.refresh_conditions(); 61}); 62}, 63refresh_conditions: function (){ 64if($('[data-type="radio"]').closest('li').css('display')==='none'||$('[data-type="radio"]').closest('tr').css('display')==='none'){ 65$('input[type="radio"], input[type="checkbox"]').each(function (){ 66if($(this).attr('checked')==='checked'){ 67this.checked=true; 68}}); 69} 70this.apply_logic(); 71if(typeof wpuf_plupload_items!=='undefined'&&wpuf_plupload_items.length){ 72for (var i=wpuf_plupload_items.length - 1; i >=0; i--){ 73wpuf_plupload_items[i].refresh(); 74}} 75}, 76apply_logic: function(){ 77let all=[]; 78if(typeof wpuf_conditional_items==='undefined'){ 79return; 80} 81$.each(wpuf_conditional_items, function(k, item){ 82$.each(item.cond_field, function (key, item_meta){ 83let input_type=item.input_type!==undefined ? item.input_type[key]:''; 84if(input_type===''){ 85all=conditional_logic.check_field_without_input_type(item, key, item_meta); 86}else{ 87switch (input_type){ 88case 'select': 89all[key]=conditional_logic.check_select_field(item, key, item_meta); 90break; 91case 'taxonomy': 92all[key]=conditional_logic.check_taxonomy_field(item, key, item_meta); 93break; 94case 'radio': 95case 'checkbox': 96all[key]=conditional_logic.check_checked_field(item, key, item_meta, input_type); 97break; 98case 'text': 99case 'textarea': 100case 'email': 101case 'url': 102case 'password': 103all[key]=conditional_logic.check_text_field(item, key, item_meta, input_type); 104break; 105case 'numeric_text': 106all[key]=conditional_logic.check_numeric_field(item, key, item_meta); 107break; 108default: 109all[key]=conditional_logic.check_default_field(item, key, item_meta, input_type); 110break; 111}} 112}); 113var field_selector='.' + conditional_logic.field_prefix + item.name + '_' + item.form_id; 114if(item.cond_logic==='any'){ 115let check=all.indexOf(true); 116if(check!='-1'){ 117if(item.type==='address'){ 118$('li.wpuf-el.' + item.name).show(); 119}else{ 120$(field_selector).closest('li').show(); 121}}else{ 122if(item.type==='address'){ 123$('li.wpuf-el.' + item.name).hide(); 124}else{ 125$(field_selector).closest('li').hide(); 126if(item.type==='checkbox'||item.type==='radio'||item.type==='taxonomy'){ 127$(field_selector).closest('li').find(':input').each(function (){ 128this.checked=false; 129}); 130}else if(item.type==='select'){ 131$(field_selector).closest('li').hide(); 132}else if(item.type==='submit'){ 133}else{ 134$(field_selector).closest('li').find(':input').show(); 135}} 136}}else{ 137let check=all.indexOf(false); 138if(check=='-1'){ 139if(item.type==='address'){ 140$('li.wpuf-el.' + item.name).show(); 141}else{ 142$(field_selector).closest('li').show(); 143}}else{ 144if(item.type==='address'){ 145$('li.wpuf-el.' + item.name).hide(); 146}else{ 147$(field_selector).closest('li').hide(); 148if(item.type==='checkbox'||item.type==='radio'||item.type==='taxonomy'){ 149$(field_selector).closest('li').find(':input').each(function (){ 150this.checked=false; 151}); 152}else if(item.type==='select'){ 153$(field_selector).closest('li').hide(); 154}else if(item.type==='submit'){ 155}else{ 156$(field_selector).closest('li').find(':input').show(); 157}} 158}} 159all.length=0; 160}); 161}, 162check_taxonomy_field: (item, key, item_meta)=> { 163let form_id='_' + item.form_id; 164let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 165let type=$(selector).attr('type'); 166if(type==='checkbox'){ 167return conditional_logic.check_checked_field(item, key, item_meta, type); 168}else if(type==='text'){ 169return conditional_logic.check_taxonomy_text_field(item, key, item_meta, type); 170}else{ 171return conditional_logic.check_select_field(item, key, item_meta, type); 172}}, 173check_taxonomy_text_field: (item, key, item_meta, input_type)=> { 174let form_id='_' + item.form_id; 175let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 176let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 177let cond_value=item.option_title[key]; 178let field=$('input[type=text].textfield' + selector); 179let field_value=field.val(); 180field_value=field_value.replace(/,\s*$/, ""); 181if(operator==='==empty'&&field_value===''){ 182return true; 183} 184if(operator==='!=empty'&&field_value!==''){ 185return true; 186} 187if(operator==='='&&field_value===cond_value){ 188return true; 189} 190if(operator==='==contains'&&(field_value).indexOf(cond_value) > -1){ 191return true; 192} 193return operator==='!='&&field_value!==cond_value; 194}, 195check_select_field: function(item, key, item_meta){ 196let form_id='_' + item.form_id; 197let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 198let value=item.cond_option[key]; 199let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 200let select=$('select' + selector + '>option[value="' + value + '"]'); 201let select_fields=$('select' + selector + ' option'); 202if(operator==='!=empty'){ 203let has_any_value=false; 204if(select_fields){ 205$.each(select_fields, (index, select)=> { 206if($(select).is(':selected')&&$(select).val()!=='-1'){ 207has_any_value=true; 208return false;
209}}); 210} 211return has_any_value; 212} 213if(operator==='==empty'){ 214let has_no_value=true; 215if(select_fields){ 216$.each(select_fields, (index, select)=> { 217if($(select).is(':selected')&&$(select).val()!=='-1'){ 218has_no_value=false; 219return false; 220}}); 221} 222return has_no_value; 223} 224if(select.length){ 225let selected_status=select.is(':selected') ? true:false; 226if(operator==='='&&selected_status){ 227return true; 228} 229if(operator==='!='&&selected_status===false){ 230return true; 231} 232return false; 233}}, 234check_checked_field: function (item, key, item_meta, input_type){ 235let form_id='_' + item.form_id; 236let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 237let value=item.cond_option[key]; 238let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 239let field; 240let all_fields; 241if(input_type==='radio'){ 242field=$('input[type=radio][value="' + value + '"]' + selector); 243all_fields=$('input[type=radio]' + selector); 244}else{ 245field=$('input[type=checkbox][value="' + value + '"]' + selector); 246all_fields=$('input[type=checkbox]' + selector); 247} 248if(operator==='!=empty'){ 249let has_any_value=false; 250if(all_fields){ 251$.each(all_fields, (index, single_field)=> { 252if($(single_field).is(':checked')){ 253has_any_value=true; 254return false; 255}}); 256} 257return has_any_value; 258} 259if(operator==='==empty'){ 260let has_no_value=true; 261if(all_fields){ 262$.each(all_fields, (index, single_field)=> { 263if($(single_field).is(':checked')&&$(single_field).val()!=='-1'){ 264has_no_value=false; 265return false; 266}}); 267} 268return has_no_value; 269} 270if(field.length){ 271let field_checked_status=field.is(':checked'); 272if(operator==='='&&field_checked_status){ 273return true; 274} 275if(operator==='!='&&field_checked_status===false){ 276return true; 277} 278return false; 279}}, 280check_text_field: function (item, key, item_meta, input_type){ 281let form_id='_' + item.form_id; 282let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 283let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 284let cond_value=item.cond_option[key]; 285let field; 286let field_value; 287if(input_type==='text'){ 288field=$('input[type=text].textfield' + selector); 289field_value=field.val(); 290}else if(input_type==='textarea'){ 291field=$('textarea.textareafield' + selector); 292field_value=field.val(); 293}else if(input_type==='email'){ 294field=$('input[type=email]' + selector); 295field_value=field.val(); 296}else if(input_type==='url'){ 297field=$('input[type=url].url' + selector); 298field_value=field.val(); 299}else if(input_type==='password'){ 300field=$('input[type=password].password' + selector); 301field_value=field.val(); 302} 303if(operator==='==empty'&&field_value===''){ 304return true; 305} 306if(operator==='!=empty'&&field_value!==''){ 307return true; 308} 309if(operator==='='&&field_value===cond_value){ 310return true; 311} 312if(operator==='==contains'&&(field_value).indexOf(cond_value) > -1){ 313return true; 314} 315return operator==='!='&&field_value!==cond_value; 316}, 317check_numeric_field: function (item, key, item_meta){ 318let form_id='_' + item.form_id; 319let selector='.' + conditional_logic.field_prefix + item_meta + form_id; 320let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 321let cond_value=item.cond_option[key]; 322let number=$('input[type=number].textfield' + selector); 323let field_value=number.val(); 324if(operator==='==empty'&&field_value===''){ 325return true; 326} 327if(operator==='!=empty'&&field_value!==''){ 328return true; 329} 330if(operator==='==contains'&&(field_value).indexOf(cond_value) > -1){ 331return true; 332} 333field_value=parseInt(field_value); 334cond_value=parseInt(cond_value); 335if(operator==='='&&field_value===cond_value){ 336return true; 337} 338if(operator==='!='&&field_value!==cond_value){ 339return true; 340} 341if(operator==='greater'&&field_value > cond_value){ 342return true; 343} 344if(operator==='less'&&field_value < cond_value){ 345return true; 346} 347return false; 348}, 349check_default_field: function (item, key, item_meta, input_type){ 350let operator=item.cond_operator[key]!==undefined ? item.cond_operator[key]:''; 351let form_id='_' + item.form_id; 352let field; 353let field_value=null; 354if(input_type==='map'){ 355field=$('input[type=text]#wpuf-map-add-' + item_meta); 356field_value=field.val(); 357}else if(input_type==='file_upload'){ 358field=$('a.button.file-selector.' + conditional_logic.field_prefix + item_meta + form_id); 359field_value=field.siblings('ul.wpuf-attachment-list').children().length; 360} 361if(operator==='==empty'&&!field_value){ 362return true; 363} 364if(operator==='!=empty'&&field_value){ 365return true; 366} 367return false;
368}, 369check_field_without_input_type: function(item, key, item_meta){ 370let all=[]; 371let form_id='_' + item.form_id, 372value=item.cond_option[key], 373selector='.' + conditional_logic.field_prefix + item_meta + form_id, 374operator=(item.cond_operator[key]==='=') ? true:false, 375checkbox=$('input[type=checkbox][value="' + value + '"]' + selector), 376radio=$('input[type=radio][value="' + value+'"]'+ selector), 377select=$('select' + selector + '>option[value="' + value + '"]'); 378if(select.length){ 379let select_selected_status=select.is(':selected') ? true:false; 380if(operator&&select_selected_status){ 381all[key]=true; 382}else if(operator===false&&select_selected_status===false){ 383all[key]=true; 384}else{ 385all[key]=false; 386}}else if(radio.length){ 387let radio_checked_status=radio.is(':checked') ? true:false; 388if(operator&&radio_checked_status){ 389all[key]=true; 390}else if(operator===false&&radio_checked_status===false){ 391all[key]=true; 392}else{ 393all[key]=false; 394}}else if(checkbox.length){ 395let checkbox_checked_status=checkbox.is(':checked') ? true:false; 396if(operator&&checkbox_checked_status){ 397all[key]=true; 398}else if(operator===false&&checkbox_checked_status===false){ 399all[key]=true; 400}else{ 401all[key]=false; 402}}else{ 403all[key]=false; 404} 405return all; 406}}; 407conditional_logic.init(); 408})(jQuery); 409!function(a){"object"==typeof module&&module.exports?module.exports=a():window.intlTelInput=a()}(function(a){"use strict";return function(){function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function c(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function d(a,b,d){return b&&c(a.prototype,b),d&&c(a,d),a}for(var e=[["Afghanistan (â«Ø§ÙØºØ§ÙØ³ØªØ§Ùâ¬â)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (â«Ø§Ùجزائرâ¬â)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Ãsterreich)","at","43"],["Azerbaijan (AzÉrbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (â«Ø§ÙØ¨ØØ±ÙÙâ¬â)","bh","973"],["Bangladesh (বাà¦à¦²à¦¾à¦¦à§à¦¶)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (ÐелаÑÑÑÑ)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འà½à¾²à½´à½)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (ÐоÑна и ХеÑÑеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (ÐÑлгаÑиÑ)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (ááááá»áá¶)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (ä¸å½)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (â«Ø¬Ø²Ø± اÙÙ٠رâ¬â)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte dâIvoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (ÎÏÏÏοÏ)","cy","357"],["Czech Republic (Äeská republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]
409],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (â«Ù
صرâ¬â)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (á¡áá¥áá ááááá)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Îλλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (馿¸¯)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ãsland)","is","354"],["India (à¤à¤¾à¤°à¤¤)","in","91"],["Indonesia","id","62"],["Iran (â«Ø§ÛراÙâ¬â)","ir","98"],["Iraq (â«Ø§ÙعراÙâ¬â)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (â«×שר××â¬â)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (æ¥æ¬)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (â«Ø§ÙأردÙâ¬â)","jo","962"],["Kazakhstan (ÐазаÑ
ÑÑан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (â«Ø§ÙÙÙÙØªâ¬â)","kw","965"],["Kyrgyzstan (ÐÑÑгÑзÑÑан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (â«ÙØ¨ÙØ§Ùâ¬â)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (â«ÙÙØ¨Ùاâ¬â)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (æ¾³é)","mo","853"],["Macedonia (FYROM) (ÐакедониÑа)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (â«Ù
ÙØ±ÙتاÙÙØ§â¬â)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Ðонгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (â«Ø§ÙÙ
غربâ¬â)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (áá¼ááºáá¬)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नà¥à¤ªà¤¾à¤²)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (ì¡°ì 민주주ì ì¸ë¯¼ ê³µíêµ)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (â«Ø¹ÙÙ
اÙâ¬â)","om","968"],["Pakistan (â«Ù¾Ø§Ú©Ø³ØªØ§Ùâ¬â)","pk","92"],["Palau","pw","680"],["Palestine (â«ÙÙØ³Ø·ÙÙâ¬â)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (â«Ùطرâ¬â)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (РоÑÑиÑ)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and PrÃncipe (São Tomé e PrÃncipe)","st","239"],["Saudi Arabia (â«Ø§ÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©â¬â)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (СÑбиÑа)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["S
409omalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (ëí민êµ)","kr","82"],["South Sudan (â«Ø¬ÙÙØ¨ Ø§ÙØ³ÙداÙâ¬â)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (à·à·âර෠ලà¶à¶à·à·)","lk","94"],["Sudan (â«Ø§ÙØ³ÙØ¯Ø§Ùâ¬â)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (â«Ø³ÙØ±ÙØ§â¬â)","sy","963"],["Taiwan (å°ç£)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (à¹à¸à¸¢)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (â«ØªÙÙØ³â¬â)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (УкÑаÑна)","ua","380"],["United Arab Emirates (â«Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©â¬â)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (OÊ»zbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Viá»t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (â«Ø§ÙØµØØ±Ø§Ø¡ Ø§ÙØºØ±Ø¨ÙØ©â¬â)","eh","212",1,["5288","5289"]],["Yemen (â«Ø§ÙÙÙ
Ùâ¬â)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Ã
land Islands","ax","358",1,["18"]]],f=0;f<e.length;f++){var g=e[f];e[f]={name:g[0],iso2:g[1],dialCode:g[2],priority:g[3]||0,areaCodes:g[4]||null}}var h={getInstance:function(a){var b=a.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[b]},instances:{}};"object"==typeof window&&(window.intlTelInputGlobals=h);var i=0,j={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},k=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];"object"==typeof window&&window.addEventListener("load",function(){window.intlTelInputGlobals.windowLoaded=!0});var l=function(a,b){for(var c=Object.keys(a),d=0;d<c.length;d++)b(c[d],a[c[d]])},m=function(a){l(window.intlTelInputGlobals.instances,function(b){window.intlTelInputGlobals.instances[b][a]()})},n=function(){function c(a,d){var e=this;b(this,c),this.id=i++,this.a=a,this.b=null,this.c=null;var f=d||{};this.d={},l(j,function(a,b){e.d[a]=f.hasOwnProperty(a)?f[a]:b}),this.e=Boolean(a.getAttribute("placeholder"))}return d(c,[{key:"_init",value:function(){var a=this;if(this.d.nationalMode&&(this.d.autoHideDialCode=!1),this.d.separateDialCode&&(this.d.autoHideDialCode=this.d.nationalMode=!1),this.g=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.g&&(document.body.classList.add("iti-mobile"),this.d.dropdownContainer||(this.d.dropdownContainer=document.body)),"undefined"!=typeof Promise){var b=new Promise(function(b,c){a.h=b,a.i=c}),c=new Promise(function(b,c){a.i0=b,a.i1=c});this.promise=Promise.all([b,c])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this.d.localizedCountries&&this._d0(),(this.d.onlyCountries.length||this.d.localizedCountries)&&this.p.sort(this._d1)}},{key:"_c",value:function(b,c,d){c.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=c.length),this.q.hasOwnProperty(c)||(this.q[c]=[]);for(var e=0;e<this.q[c].length;e++)if(this.q[c][e]===b)return;var f=d!==a?d:this.q[c].length;this.q[c][f]=b}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var a=this.d.onlyCountries.map(function(a){return a.toLowerCase()});this.p=e.filter(function(b){return a.indexOf(b.iso2)>-1})}else if(this.d.excludeCountries.length){var b=this.d.excludeCountries.map(function(a){return a.toLowerCase()});this.p=e.filter(function(a){return-1===b.indexOf(a.iso2)})}else this.p=e}},{key:"_d0",value:function(){for(var a=0;a<this.p.length;a++){var b=this.p[a].iso2.toLowerCase();this.d.localizedCountries.hasOwnProperty(b)&&(this.p[a].name=this.d.localizedCountries[b])}}},{key:"_d1",value:function(a,b){return a.name.localeCompare(b.name)}},{key:"_d2",value:function(){this.dialCodeMaxLen=0,this.q={};for(var a=0;a<this.p.length;a++){var b=this.p[a];this._c(b.iso2,b.dialCode,b.priority)}for(var c=0;c<this.p.length;c++){var d=this.p[c];if(d.areaCodes)for(var e=this.q[d.dialCode][0],f=0;f<d.areaCodes.length;f++){for(var g=d.areaCodes[f],h=1;h<g.length;h++){var i=d.dialCode+g.substr(0,h);this._c(e,i),this._c(d.iso2,i)}this._c(d.iso2,d.dialCode+g)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var a=0;a<this.d.preferredCountries.length;a++){var b=this.d.preferredCountries[a].toLowerCase(),c=this._y(b,!1,!0);c&&this.preferredCountries.push(c)}}},{key:"_e2",value:function(a,b,c){var d=document.createElement(a);return b&&l(b,function(a,b){return d.setAttribute(a,b)}),c&&c.appendChild(d),d}},{key:"_f",value:function(){this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var a="iti";this.d.allowDropdown&&(a+=" iti--allow-dropdown"),this.d.separateDialCode&&(a+=" iti--separate-dial-code"),this.d.customContainer&&(a+=" ",a+=this.d.customContainer);var b=this._e2("div",{"class":a});if(this.a.parentNode.insertBefore(b,this.a),this.k=this._e2("div",{"class":"iti__flag-container"},b),b.appendChild(this.a),this.selectedFlag=this._e2("div",{"class":"iti__selected-flag",role:"combobox","aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.k),this.l=this._e2("div",{"class":"iti__flag"},this.selectedFlag),this.d.separateDialCode&&(this.t=this._e2("div",{"class":"iti__selected-dial-code"},this.selectedFlag)),this.d.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{"class":"iti__arrow"},this.selectedFlag),this.m=this._e2("ul",{"class":"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox"}),this.preferredCountries.length&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{"class":"iti__divider",role:"separator","aria-disabled":"true"},this.m)),this._g(this.p,"iti__standard"),this.d.dropdownContainer?(this.dropdown=this._e2("div",{"class":"iti iti--container"}),this.dropdown.appendChild(this.m)):this.k.appendChild(this.m)),this.d.hiddenInput){var c=this.d.hiddenInput,d=this.a.getAttribute("name");if(d){var e=d.lastIndexOf("[");-1!==e&&(c="".concat(d.substr(0,e),"[").concat(c,"]"))}this.hiddenInput=this._e2("input",{type:"hidden",name:c}
vendor: 6,525 bytes, line 409
409),b.appendChild(this.hiddenInput)}}},{key:"_g",value:function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e],g=c?"-preferred":"";d+="<li class='iti__country ".concat(b,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(f.iso2).concat(g,"' role='option' data-dial-code='").concat(f.dialCode,"' data-country-code='").concat(f.iso2,"'>"),d+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(f.iso2,"'></div></div>"),d+="<span class='iti__country-name'>".concat(f.name,"</span>"),d+="<span class='iti__dial-code'>+".concat(f.dialCode,"</span>"),d+="</li>"}this.m.insertAdjacentHTML("beforeend",d)}},{key:"_h",value:function(){var a=this.a.value,b=this._5(a),c=this._w(a),d=this.d,e=d.initialCountry,f=d.nationalMode,g=d.autoHideDialCode,h=d.separateDialCode;b&&!c?this._v(a):"auto"!==e&&(e?this._z(e.toLowerCase()):b&&c?this._z("us"):(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,a||this._z(this.j)),a||f||g||h||(this.a.value="+".concat(this.s.dialCode))),a&&this._u(a)}},{key:"_i",value:function(){this._j(),this.d.autoHideDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var a=this;this._a14=function(){a.hiddenInput.value=a.getNumber()},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i1",value:function(){for(var a=this.a;a&&"LABEL"!==a.tagName;)a=a.parentNode;return a}},{key:"_i2",value:function(){var a=this;this._a9=function(b){a.m.classList.contains("iti__hide")?a.a.focus():b.preventDefault()};var b=this._i1();b&&b.addEventListener("click",this._a9),this._a10=function(){!a.m.classList.contains("iti__hide")||a.a.disabled||a.a.readOnly||a._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(b){a.m.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(b.key)&&(b.preventDefault(),b.stopPropagation(),a._n()),"Tab"===b.key&&a._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var a=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.windowLoaded?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(a.d.utilsScript)}):this.i0(),"auto"===this.d.initialCountry?this._i4():this.h()}},{key:"_i4",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(a){window.intlTelInputGlobals.autoCountry=a.toLowerCase(),setTimeout(function(){return m("handleAutoCountry")})},function(){return m("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var a=this;this._a12=function(){a._v(a.a.value)&&a._8()},this.a.addEventListener("keyup",this._a12),this._a13=function(){setTimeout(a._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_j2",value:function(a){var b=this.a.getAttribute("maxlength");return b&&a.length>b?a.substr(0,b):a}},{key:"_l",value:function(){var a=this;this._a8=function(){a._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var a=this._m(this.a.value);a&&this.s.dialCode!==a||(this.a.value="")}}},{key:"_m",value:function(a){return a.replace(/\D/g,"")}},{key:"_m2",value:function(a){var b=document.createEvent("Event");b.initEvent(a,!0,!0),this.a.dispatchEvent(b)}},{key:"_n",value:function(){this.m.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.b&&(this._x(this.b,!1),this._3(this.b,!0)),this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(a,b,c){c&&!a.classList.contains(b)?a.classList.add(b):!c&&a.classList.contains(b)&&a.classList.remove(b)}},{key:"_o",value:function(){var a=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.g){var b=this.a.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,d=b.top+c,e=this.m.offsetHeight,f=d+this.a.offsetHeight+e<c+window.innerHeight,g=d-e>c;if(this._n2(this.m,"iti__country-list--dropup",!f&&g),this.d.dropdownContainer){var h=!f&&g?0:this.a.offsetHeight;this.dropdown.style.top="".concat(d+h,"px"),this.dropdown.style.left="".concat(b.left+document.body.scrollLeft,"px"),this._a4=function(){return a._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_o2",value:function(a){for(var b=a;b&&b!==this.m&&!b.classList.contains("iti__country");)b=b.parentNode;return b===this.m?null:b}},{key:"_p",value:function(){var a=this;this._a0=function(b){var c=a._o2(b.target);c&&a._x(c,!1)},this.m.addEventListener("mouseover",this._a0),this._a1=function(b){var c=a._o2(b.target);c&&a._1(c)},this.m.addEventListener("click",this._a1);var b=!0;this._a2=function(){b||a._2(),b=!1},document.documentElement.addEventListener("click",this._a2);var c="",d=null;this._a3=function(b){b.preventDefault(),"ArrowUp"===b.key||"Up"===b.key||"ArrowDown"===b.key||"Down"===b.key?a._q(b.key):"Enter"===b.key?a._r():"Escape"===b.key?a._2():/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/.test(b.key)&&(d&&clearTimeout(d),c+=b.key.toLowerCase(),a._s(c),d=setTimeout(function(){c=""},1e3))},document.addEventListener("keydown",this._a3)}},{key:"_q",value:function(a){var b="ArrowUp"===a||"Up"===a?this.c.previousElementSibling:this.c.nextElementSibling;b&&(b.classList.contains("iti__divider")&&(b="ArrowUp"===a||"Up"===a?b.previousElementSibling:b.nextElementSibling),this._x(b,!0))}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(a){for(var b=0;b<this.p.length;b++)if(this._t(this.p[b].name,a)){var c=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(this.p[b].iso2));this._x(c,!1),this._3(c,!0);break}}},{key:"_t",value:function(a,b){return a.substr(0,b.length).toLowerCase()===b}},{key:"_u",value:function(a){var b=a;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var c=!this.d.separateDialCode&&(this.d.nationalMode||"+"!==b.charAt(0)),d=intlTelInputUtils.numberFormat,e=d.NATIONAL,f=d.INTERNATIONAL,g=c?e:f;b=intlTelInputUtils.formatNumber(b,this.s.iso2,g)}b=this._7(b),this.a.value=b}},{key:"_v",value:function(a){var b=a,c=this.s.dialCode,d="1"===c;b&&this.d.nationalMode&&d&&"+"!==b.charAt(0)&&("1"!==b.charAt(0)&&(b="
4091".concat(b)),b="+".concat(b)),this.d.separateDialCode&&c&&"+"!==b.charAt(0)&&(b="+".concat(c).concat(b));var e=this._5(b),f=this._m(b),g=null;if(e){var h=this.q[this._m(e)],i=-1!==h.indexOf(this.s.iso2)&&f.length<=e.length-1;if(!("1"===c&&this._w(f))&&!i)for(var j=0;j<h.length;j++)if(h[j]){g=h[j];break}}else"+"===b.charAt(0)&&f.length?g="":b&&"+"!==b||(g=this.j);return null!==g&&this._z(g)}},{key:"_w",value:function(a){var b=this._m(a);if("1"===b.charAt(0)){var c=b.substr(1,3);return-1!==k.indexOf(c)}return!1}},{key:"_x",value:function(a,b){var c=this.c;c&&c.classList.remove("iti__highlight"),this.c=a,this.c.classList.add("iti__highlight"),b&&this.c.focus()}},{key:"_y",value:function(a,b,c){for(var d=b?e:this.p,f=0;f<d.length;f++)if(d[f].iso2===a)return d[f];if(c)return null;throw new Error("No country data for '".concat(a,"'"))}},{key:"_z",value:function(a){var b=this.s.iso2?this.s:{};this.s=a?this._y(a,!1,!1):{},this.s.iso2&&(this.j=this.s.iso2),this.l.setAttribute("class","iti__flag iti__".concat(a));var c=a?"".concat(this.s.name,": +").concat(this.s.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",c),this.d.separateDialCode){var d=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=d;var e=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.a.style.paddingLeft="".concat(e+6,"px")}if(this._0(),this.d.allowDropdown){var f=this.b;if(f&&(f.classList.remove("iti__active"),f.setAttribute("aria-selected","false")),a){var g=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(a,"-preferred"))||this.m.querySelector("#iti-".concat(this.id,"__item-").concat(a));g.setAttribute("aria-selected","true"),g.classList.add("iti__active"),this.b=g,this.selectedFlag.setAttribute("aria-activedescendant",g.getAttribute("id"))}}return b.iso2!==a}},{key:"_getHiddenSelectedFlagWidth",value:function(){var a=this.a.parentNode.cloneNode();a.style.visibility="hidden",document.body.appendChild(a);var b=this.selectedFlag.cloneNode(!0);a.appendChild(b);var c=b.offsetWidth;return a.parentNode.removeChild(a),c}},{key:"_0",value:function(){var a="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&a){var b=intlTelInputUtils.numberType[this.d.placeholderNumberType],c=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,b):"";c=this._7(c),"function"==typeof this.d.customPlaceholder&&(c=this.d.customPlaceholder(c,this.s)),this.a.setAttribute("placeholder",c)}}},{key:"_1",value:function(a){var b=this._z(a.getAttribute("data-country-code"));this._2(),this._4(a.getAttribute("data-dial-code"),!0),this.a.focus();var c=this.a.value.length;this.a.setSelectionRange(c,c),b&&this._8()}},{key:"_2",value:function(){this.m.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),document.documentElement.removeEventListener("click",this._a2),this.m.removeEventListener("mouseover",this._a0),this.m.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.g||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(a,b){var c=this.m,d=window.pageYOffset||document.documentElement.scrollTop,e=c.offsetHeight,f=c.getBoundingClientRect().top+d,g=f+e,h=a.offsetHeight,i=a.getBoundingClientRect().top+d,j=i+h,k=i-f+c.scrollTop,l=e/2-h/2;if(i<f)b&&(k-=l),c.scrollTop=k;else if(j>g){b&&(k+=l);var m=e-h;c.scrollTop=k-m}}},{key:"_4",value:function(a,b){var c,d=this.a.value,e="+".concat(a);if("+"===d.charAt(0)){var f=this._5(d);c=f?d.replace(f,e):e}else{if(this.d.nationalMode||this.d.separateDialCode)return;if(d)c=e+d;else{if(!b&&this.d.autoHideDialCode)return;c=e}}this.a.value=c}},{key:"_5",value:function(a){var b="";if("+"===a.charAt(0))for(var c="",d=0;d<a.length;d++){var e=a.charAt(d);if(!isNaN(parseInt(e,10))&&(c+=e,this.q[c]&&(b=a.substr(0,d+1)),c.length===this.dialCodeMaxLen))break}return b}},{key:"_6",value:function(){var a=this.a.value.trim(),b=this.s.dialCode,c=this._m(a);return(this.d.separateDialCode&&"+"!==a.charAt(0)&&b&&c?"+".concat(b):"")+a}},{key:"_7",value:function(a){var b=a;if(this.d.separateDialCode){var c=this._5(b);if(c){c="+".concat(this.s.dialCode);var d=" "===b[c.length]||"-"===b[c.length]?c.length+1:c.length;b=b.substr(d)}}return this._j2(b)}},{key:"_8",value:function(){this._m2("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var a=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var b=this._i1();b&&b.removeEventListener("click",this._a9)}this.hiddenInput&&a&&a.removeEventListener("submit",this._a14),this.d.autoHideDialCode&&(a&&a.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("keyup",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var c=this.a.parentNode;c.parentNode.insertBefore(this.a,c),c.parentNode.removeChild(c),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}}
vendor: 7,943 bytes, lines 409-411
409,{key:"getNumber",value:function(a){if(window.intlTelInputUtils){var b=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),b,a)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){ 410var a=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),a)}return-99}},{key:"isValidNumber",value:function(){var a=this._6().trim(),b=this.d.nationalMode?this.s.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(a,b):null}},{key:"setCountry",value:function(a){var b=a.toLowerCase();this.l.classList.contains("iti__".concat(b))||(this._z(b),this._4(this.s.dialCode,!1),this._8())}},{key:"setNumber",value:function(a){var b=this._v(a);this._u(a),b&&this._8()}},{key:"setPlaceholderNumberType",value:function(a){this.d.placeholderNumberType=a,this._0()}}]),c}();h.getCountryData=function(){return e};var o=function(a,b,c){var d=document.createElement("script");d.onload=function(){m("handleUtils"),b&&b()},d.onerror=function(){m("rejectUtilsScriptPromise"),c&&c()},d.className="iti-load-utils",d.async=!0,d.src=a,document.body.appendChild(d)};return h.loadUtils=function(a){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(b,c){return o(a,b,c)});o(a)}return null},h.defaults=j,h.version="17.0.0",function(a,b){var c=new n(a,b);return c._init(),a.setAttribute("data-intl-tel-input-id",c.id),window.intlTelInputGlobals.instances[c.id]=c,c}}()}); 411!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../safe-active-element","../unique-id","../version","../widget"],t):t(jQuery)}(function(l){"use strict";var a;return l.widget("ui.tabs",{version:"1.13.3",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(a=/#.*$/,function(t){var e=t.href.replace(a,""),i=location.href.replace(a,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=l.uniqueSort(t.disabled.concat(l.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=l(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,a=location.hash.substring(1);return null===i&&(a&&this.tabs.each(function(t,e){if(l(e).attr("aria-controls")===a)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):l()}},_tabKeydown:function(t){var e=l(l.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),a=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case l.ui.keyCode.RIGHT:case l.ui.keyCode.DOWN:i++;break;case l.ui.keyCode.UP:case l.ui.keyCode.LEFT:a=!1,i--;break;case l.ui.keyCode.END:i=this.anchors.length-1;break;case l.ui.keyCode.HOME:i=0;break;case l.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case l.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,a),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===l.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===l.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===l.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==l.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=l(),this.anchors.each(function(t,e){var i,a,s,n=l(e).uniqueId().attr("id"),h=l(e).closest("li"),r=h.attr("aria-controls");o._isLocal(e)?(s=(i=e.hash).substring(1),a=o.element.find(o._sanitizeSelector(i))):(s=h.attr("aria-controls")||l({}).uniqueId()[0].id,(a=o.element.find(i="#"+s)).length||(a=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),a.attr("aria-live","polite")),a.length&&(o.panels=o.panels.add(a)),r&&h.data("ui-tabs-aria-controls",r),h.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)
vendor: 5,047 bytes, line 411
411),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return l("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=l(e),!0===t||-1!==l.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=l(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,h=n?l():this._getPanelForTab(a),r=i.length?this._getPanelForTab(i):l(),i={oldTab:i,oldPanel:r,newTab:n?l():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?l():a,this.xhr&&this.xhr.abort(),r.length||h.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function h(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),h()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),h()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+l.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=Array.isArray(e)?l.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(i,"ui-tabs-loading"),h.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),h=this._getPanelForTab(i),r={tab:i,panel:h};this._isLocal(t[0])||(this.xhr=l.ajax(this._ajaxSettings(t,a,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.done(function(t,e,
411i){setTimeout(function(){h.html(t),n._trigger("load",a,r),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==l.uiBackCompat&&l.widget("ui.tabs",l.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),l.ui.tabs}); 412(function(e){var t=e.event,n,r;n=t.special.debouncedresize={setup:function(){e(this).on("resize",n.handler)},teardown:function(){e(this).off("resize",n.handler)},handler:function(e,i){var s=this,o=arguments,u=function(){e.type="debouncedresize";t.dispatch.apply(s,o)};if(r){clearTimeout(r)}i?u():r=setTimeout(u,n.threshold)},threshold:150}})(jQuery); 413(function(a){typeof define=="function"&&define.amd?define(["jquery"],a):typeof exports=="object"?a(require("jquery")):a(window.jQuery||window.Zepto)})(function(a){var b="Close",c="BeforeClose",d="AfterClose",e="BeforeAppend",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w=function(a,b){n.ev.on(i+a+j,b)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},z=function(b){if(b!==v||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),v=b;return n.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isLowIE=n.isIE8=document.all&&!document.addEventListener,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=B(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=a(document),n.popupsCache={}},open:function(b){var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c<d.length;c++){e=d[c],e.parsed&&(e=e.el[0]);if(e===b.el[0]){n.index=c;break}}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;if(n.isOpen){n.updateItemHTML();return}n.types=[],u="",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=s,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos=n.st.fixedContentPos==="auto"?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=x("bg").on("click"+j,function(){n.close()}),n.wrap=x("wrap").attr("tabindex",-1).on("click"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=x("container",n.wrap)),n.contentContainer=x("content"),n.st.preloader&&(n.preloader=x("preloader",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n["init"+i].call(n)}y("BeforeOpen"),n.st.showCloseBtn&&(n.st.closeBtnInside?(w(f,function(a,b,c,d){c.close_replaceWith=z(d.type)}),u+=" mfp-close-btn-in"):n.wrap.append(z())),n.st.alignTop&&(u+=" mfp-align-top"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:"hidden",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:"absolute"}),(n.st.fixedBgPos===!1||n.st.fixedBgPos==="auto"&&!n.fixedContentPos)&&n.bgOverlay.css({height:s.height(),position:"absolute"}),n.st.enableEscapeKey&&s.on("keyup"+j,function(a){a.keyCode===27&&n.close()}),r.on("resize"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(u+=" mfp-auto-cursor"),u&&n.wrap.addClass(u);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a("body, html").css("overflow","hidden"):m.overflow="hidden");var p=n.st.mainClass;return n.isIE7&&(p+=" mfp-ie7"),p&&n._addClassToMFP(p),n.updateItemHTML(),y("BuildControls"),a("html").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prepe
413ndTo||a(document.body)),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),s.on("focusin"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),y(g),b},close:function(){if(!n.isOpen)return;y(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close()},_close:function(){y(b);var c=l+" "+k+" ";n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+" "),n._removeClassFromMFP(c);if(n.fixedContentPos){var e={marginRight:""};n.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}s.off("keyup"+j+" focusin"+j),n.ev.off(j),n.wrap.attr("class","mfp-wrap").removeAttr("style"),n.bgOverlay.attr("class","mfp-bg"),n.container.attr("class","mfp-container"),n.st.showCloseBtn&&(!n.st.closeBtnInside||n.currTemplate[n.currItem.type]===!0)&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n.st.autoFocusLast&&n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,y(d)},updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css("height",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css("height",n.wH),y("Resize")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;y("BeforeChange",[n.currItem?n.currItem.type:"",c]),n.currItem=b;if(!n.currTemplate[c]){var d=n.st[c]?n.st[c].markup:!1;y("FirstMarkupParse",d),d?n.currTemplate[c]=a(d):n.currTemplate[c]=!0}t&&t!==b.type&&n.container.removeClass("mfp-"+t+"-holder");var e=n["get"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,y(h,b),t=b.type,n.container.prepend(n.contentContainer),y("AfterChange")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&n.currTemplate[b]===!0?n.content.find(".mfp-close").length||n.content.append(z()):n.content=a:n.content="",y(e),n.container.addClass("mfp-"+b+"-holder"),n.contentContainer.append(n.content)},parseEl:function(b){var c=n.items[b],d;c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src});if(c.el){var e=n.types;for(var f=0;f<e.length;f++)if(c.el.hasClass("mfp-"+e[f])){d=e[f];break}c.src=c.el.attr("data-mfp-src"),c.src||(c.src=c.el.attr("href"))}return c.type=d||n.st.type||"inline",c.index=b,c.parsed=!0,n.items[b]=c,y("ElementParse",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d="click.magnificPopup";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){var e=d.midClick!==undefined?d.midClick:a.magnificPopup.defaults.midClick;if(!e&&(b.which===2||b.ctrlKey||b.metaKey||b.altKey||b.shiftKey))return;var f=d.disableOn!==undefined?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass("mfp-s-"+q),!b&&a==="loading"&&(b=n.st.tLoading);var c={status:a,text:b};y("UpdateStatus",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),n.container.addClass("mfp-s-"+a),q=a}},_checkIfClose:function(b){if(a(b).hasClass(m))return;var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass("mfp-close")||n.preloader&&b===n.preloader[0])return!0;if(b!==n.content[0]&&!a.contains(n.content[0],b)){if(d&&a.contains(document,b))return!0}else if(c)return!0;return!1},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?s.height():document.body.scrollHeight)>
413(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(f,[b,c,d]),a.each(c,function(c,d){if(d===undefined||d===!1)return!0;e=c.split("_");if(e.length>1){var f=b.find(j+"-"+e[0]);if(f.length>0){var g=e[1];g==="replaceWith"?f[0]!==d[0]&&f.replaceWith(d):g==="img"?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(j+"-"+c).html(d)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return A(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},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:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(b){A();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var C="inline",D,E,F,G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(C),w(b+"."+C,function(){G()})},getInline:function(b,c){G();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D="mfp-"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("<div>");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var H="ajax",I,J=function(){I&&a(document.body).removeClass(I)},K=function(){J(),n.req&&n.req.abort()};a.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){n.types.push(H),I=n.st.ajax.cursor,w(b+"."+H,K),w("BeforeChange."+H,K)},getAjax:function(b){I&&a(document.body).addClass(I),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};y("ParseAjax",f),n.appendContent(a(f.data),H),b.finished=!0,J(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var L,M=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=".image";n.types.push("image"),w(g+d,function(){n.currItem.type==="image"&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off("resize"+j)}),w("Resize"+d,n.resizeImage),n.isLowIE&&w("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){L&&clearInterval(L),L=setInterval(function(){if(c.naturalWi
413dth>0){n._onImageHasSize(a);return}b>200&&clearInterval(L),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,y("ImageLoadComplete")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.el&&b.el.find("img").length&&(i.alt=b.el.find("img").attr("alt")),b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:M(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(L&&clearInterval(L),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});var N,O=function(){return N===undefined&&(N=document.createElement("p").style.MozTransform!==undefined),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;w("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y("ZoomAnimationEnded")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return O()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});var P="iframe",Q="//about:blank",R=function(a){if(n.currTemplate[P]){var b=n.currTemplate[P].find("iframe");b.length&&(a||(b[0].src=Q),n.isIE8&&b.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',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(){n.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(b+"."+P,function(){R()})},getIframe:function(b,c){var d=b.src,e=n.st.iframe;a.each(e.patterns,function(){if(d.indexOf(this.index)>-1)return this.id&&(typeof this.id=="string"?d=d.substr(d.lastIndexOf(this.id
413)+this.id.length,d.length):d=this.id.call(this,d)),d=this.src.replace("%id%",d),!1});var f={};return e.srcAction&&(f[e.srcAction]=d),n._parseMarkup(c,f,b),n.updateStatus("ready"),c}}});var S=function(a){var b=n.items.length;return a>b-1?a-b:a<0?b+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=n.st.gallery,d=".mfp-gallery";n.direction=!0;if(!c||!c.enabled)return!1;u+=" mfp-gallery",w(g+d,function(){c.navigateByImgClick&&n.wrap.on("click"+d,".mfp-img",function(){if(n.items.length>1)return n.next(),!1}),s.on("keydown"+d,function(a){a.keyCode===37?n.prev():a.keyCode===39&&n.next()})}),w("UpdateStatus"+d,function(a,b){b.text&&(b.text=T(b.text,n.currItem.index,n.items.length))}),w(f+d,function(a,b,d,e){var f=n.items.length;d.counter=f>1?T(c.tCounter,e.index,f):""}),w("BuildControls"+d,function(){if(n.items.length>1&&c.arrows&&!n.arrowLeft){var b=c.arrowMarkup,d=n.arrowLeft=a(b.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(m),e=n.arrowRight=a(b.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(m);d.click(function(){n.prev()}),e.click(function(){n.next()}),n.container.append(d.add(e))}}),w(h+d,function(){n._preloadTimeout&&clearTimeout(n._preloadTimeout),n._preloadTimeout=setTimeout(function(){n.preloadNearbyImages(),n._preloadTimeout=null},16)}),w(b+d,function(){s.off(d),n.wrap.off("click"+d),n.arrowRight=n.arrowLeft=null})},next:function(){n.direction=!0,n.index=S(n.index+1),n.updateItemHTML()},prev:function(){n.direction=!1,n.index=S(n.index-1),n.updateItemHTML()},goTo:function(a){n.direction=a>=n.index,n.index=a,n.updateItemHTML()},preloadNearbyImages:function(){var a=n.st.gallery.preload,b=Math.min(a[0],n.items.length),c=Math.min(a[1],n.items.length),d;for(d=1;d<=(n.direction?c:b);d++)n._preloadItem(n.index+d);for(d=1;d<=(n.direction?b:c);d++)n._preloadItem(n.index-d)},_preloadItem:function(b){b=S(b);if(n.items[b].preloaded)return;var c=n.items[b];c.parsed||(c=n.parseEl(b)),y("LazyLoad",c),c.type==="image"&&(c.img=a('<img class="mfp-img" />').on("load.mfploader",function(){c.hasSize=!0}).on("error.mfploader",function(){c.hasSize=!0,c.loadError=!0,y("LazyLoadError",c)}).attr("src",c.src)),c.preloaded=!0}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;b=isNaN(b)?b():b,b>1&&(w("ImageHasSize."+U,function(a,c){c.img.css({"max-width":c.img[0].naturalWidth/b,width:"100%"})}),w("ElementParse."+U,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),A()}); 414(function($){ 415"use strict"; 416$.fn.mfnMenu=function(options){ 417var menu=$(this); 418var defaults={ 419addLast: false, 420arrows: false, 421delay: 100, 422hoverClass: 'hover', 423mobileInit: 768, 424responsive: true 425}; 426options=$.extend(defaults, options); 427var init=function(){ 428$('li:has(ul)', menu).addClass('submenu'); 429$('li:has(ul)', menu).append('<a class="menu-toggle" href="#" role="link" aria-label="'+ mfn.accessibility.translation.toggleSubmenu +'"></a>').on('click', '.menu-toggle', function(e){ 430e.preventDefault(); 431if($('#Header_creative.dropdown.scroll').length){ 432$('#Header_creative').css('overflow-y','visible').css('overflow-y','hidden'); 433}}); 434menu.children('li:has(ul.mfn-megamenu)').addClass('mfn-megamenu-parent'); 435$('.submenu ul li:last-child', menu).addClass('last-item'); 436if(options.addLast){ 437$('> li:last-child', menu).addClass('last') 438.prev().addClass('last'); 439} 440if(options.arrows){ 441$('li ul li:has(ul) > a', menu).append('<i class="menu-arrow icon-right-open"></i>'); 442}}; 443var doMenu=function(){ 444if((window.innerWidth >=options.mobileInit)||(!options.responsive)){ 445$('> li, ul:not(.mfn-megamenu) li', menu).on('mouseenter', function(){ 446$(this).stop(true, true).addClass(options.hoverClass); 447$(this).children('ul').stop(true, true).fadeIn(options.delay); 448}).on('mouseleave', function(){ 449$(this).stop(true, true).removeClass(options.hoverClass); 450$(this).children('ul').stop(true, true).fadeOut(options.delay); 451}); 452}else{ 453$('li', menu).off('hover'); 454$('li > .menu-toggle', menu).off('click').on('click', function(e){ 455e.preventDefault(); 456var el=$(this).closest('li'); 457if(el.hasClass(options.hoverClass)){ 458el.removeClass(options.hoverClass) 459.children('ul').stop(true, true).fadeOut(options.delay); 460}else{ 461el.addClass(options.hoverClass) 462.children('ul').stop(true, true).fadeIn(options.delay); 463}}); 464}}; 465$(window).on('resize', doMenu); 466var __constructor=function(){ 467init(); 468doMenu(); 469}; 470__constructor(); 471};})(jQuery); 472(function(e){e.fn.visible=function(t,n,r){var i=e(this).eq(0),s=i.get(0),o=e(window),u=o.scrollTop(),a=u+o.height(),f=o.scrollLeft(),l=f+o.width(),c=i.offset().top,h=c+i.height(),p=i.offset().left,d=p+i.width(),v=t===true?h:c,m=t===true?c:h,g=t===true?d:p,y=t===true?p:d,b=n===true?s.offsetWidth*s.offsetHeight:true,r=r?r:"both";if(r==="both")return!!b&&m<=a&&v>=u&&y<=l&&g>=f;else if(r==="vertical")return!!b&&m<=a&&v>=u;else if(r==="horizontal")return!!b&&y<=l&&g>=f}})(jQuery); 473function animateElement(){jQuery(".animate").each(jQuery(window).width()>=96?function(a,n){var n=jQuery(n),i=jQuery(this).attr("data-anim-type"),t=jQuery(this).attr("data-anim-delay");n.visible(!0)&&setTimeout(function(){n.addClass(i)},t)}:function(a,n){var n=jQuery(n),i=jQuery(this).attr("data-anim-type"),t=jQuery(this).attr("data-anim-delay");setTimeout(function(){n.addClass(i)},t)})}function randomClass(){var a=Math.ceil(Math.random()*classAmount);return classesArray[a]}
473function animateOnce(a,n){"random"==n&&(n=randomClass()),jQuery(a).removeClass("trigger infinite "+triggerClasses).addClass("trigger").addClass(n).one("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){jQuery(this).removeClass("trigger infinite "+triggerClasses)})}function animateInfinite(a,n){"random"==n&&(n=randomClass()),jQuery(a).removeClass("trigger infinite "+triggerClasses).addClass("trigger infinite").addClass(n).one("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){jQuery(this).removeClass("trigger infinite "+triggerClasses)})}function animateEnd(a){jQuery(a).removeClass("trigger infinite "+triggerClasses)}jQuery(document).ready(function(){jQuery("html").hasClass("no-js")&&jQuery("html").removeClass("no-js").addClass("js"),animateElement()}),jQuery(window).on('resize',function(){animateElement()}),jQuery(window).on('scroll',function(){animateElement(),jQuery(window).scrollTop()+jQuery(window).height()==jQuery(document).height()&&animateElement()});var triggerClasses="flash strobe shakeH shakeV bounce tada wave spinCW spinCCW slingshotCW slingshotCCW wobble pulse pulsate heartbeat panic",classesArray=new Array,classesArray=triggerClasses.split(" "),classAmount=classesArray.length; 474(function(b,f){"function"===typeof define&&define.amd?define(["jquery"],f):b.jQuery?f(b.jQuery):f(b.Zepto)})(this,function(b,f){b.fn.jPlayer=function(a){var c="string"===typeof a,d=Array.prototype.slice.call(arguments,1),e=this;a=!c&&d.length?b.extend.apply(null,[!0,a].concat(d)):a;if(c&&"_"===a.charAt(0))return e;c?this.each(function(){var c=b(this).data("jPlayer"),h=c&&b.isFunction(c[a])?c[a].apply(c,d):c;if(h!==c&&h!==f)return e=h,!1}):this.each(function(){var c=b(this).data("jPlayer");c?c.option(a|| 475{}):b(this).data("jPlayer",new b.jPlayer(a,this))});return e};b.jPlayer=function(a,c){if(arguments.length){this.element=b(c);this.options=b.extend(!0,{},this.options,a);var d=this;this.element.on("remove.jPlayer",function(){d.destroy()});this._init()}};"function"!==typeof b.fn.stop&&(b.fn.stop=function(){});b.jPlayer.emulateMethods="load play pause";b.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";b.jPlayer.emulateOptions="muted volume";b.jPlayer.reservedEvent= 476"ready flashreset resize repeat error warning";b.jPlayer.event={};b.each("ready flashreset resize repeat click error warning loadstart progress suspend abort emptied stalled play pause loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange".split(" "),function(){b.jPlayer.event[this]="jPlayer_"+this});b.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough".split(" ");b.jPlayer.pause= 477function(){b.each(b.jPlayer.prototype.instances,function(a,c){c.data("jPlayer").status.srcSet&&c.jPlayer("pause")})};b.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var m=function(){this.init()};m.prototype={init:function(){this.options={timeFormat:b.jPlayer.timeFormat}},time:function(a){var c=new Date(1E3*(a&&"number"===typeof a?a:0)),b=c.getUTCHours();a=this.options.timeFormat.showHour?c.getUTCMinutes():c.getUTCMinutes()+60* 478b;c=this.options.timeFormat.showMin?c.getUTCSeconds():c.getUTCSeconds()+60*a;b=this.options.timeFormat.padHour&&10>b?"0"+b:b;a=this.options.timeFormat.padMin&&10>a?"0"+a:a;c=this.options.timeFormat.padSec&&10>c?"0"+c:c;b=""+(this.options.timeFormat.showHour?b+this.options.timeFormat.sepHour:"");b+=this.options.timeFormat.showMin?a+this.options.timeFormat.sepMin:"";return b+=this.options.timeFormat.showSec?c+this.options.timeFormat.sepSec:""}};var n=new m;b.jPlayer.convertTime=function(a){return n.time(a)}; 479b.jPlayer.uaBrowser=function(a){a=a.toLowerCase();var c=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/;a=/(webkit)[ \/]([\w.]+)/.exec(a)||c.exec(a)||b.exec(a)||0>a.indexOf("compatible")&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};b.jPlayer.uaPlatform=function(a){var c=a.toLowerCase(),b=/(android)/,e=/(mobile)/;a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(c)||[];c=/(ipad|playbook)/.exec(c)||!e.exec(c)&&b.exec(c)|| 480[];a[1]&&(a[1]=a[1].replace(/\s/g,"_"));return{platform:a[1]||"",tablet:c[1]||""}};b.jPlayer.browser={};b.jPlayer.platform={};var k=b.jPlayer.uaBrowser(navigator.userAgent);k.browser&&(b.jPlayer.browser[k.browser]=!0,b.jPlayer.browser.version=k.version);k=b.jPlayer.uaPlatform(navigator.userAgent);k.platform&&(b.jPlayer.platform[k.platform]=!0,b.jPlayer.platform.mobile=!k.tablet,b.jPlayer.platform.tablet=!!k.tablet);b.jPlayer.getDocMode=function(){var a;b.jPlayer.browser.msie&&(document.documentMode? 481a=document.documentMode:(a=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(a=7)));return a};b.jPlayer.browser.documentMode=b.jPlayer.getDocMode();b.jPlayer.nativeFeatures={init:function(){var a=document,c=a.createElement("video"),b={w3c:"fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),moz:"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "), 482webkit:" webkitCurrentFullScreenElement webkitRequestFullScreen webkitCancelFullScreen webkitfullscreenchange ".split(" "),webkitVideo:"webkitSupportsFullscreen webkitDisplayingFullscreen webkitEnterFullscreen webkitExitFullscreen ".split(" ")}
482,e=["w3c","moz","webkit","webkitVideo"],g,h;this.fullscreen=c={support:{w3c:!!a[b.w3c[0]],moz:!!a[b.moz[0]],webkit:"function"===typeof a[b.webkit[3]],webkitVideo:"function"===typeof c[b.webkitVideo[2]]},used:{}};g=0;for(h=e.length;g<h;g++){var f=e[g];if(c.support[f]){c.spec= 483f;c.used[f]=!0;break}}if(c.spec){var l=b[c.spec];c.api={fullscreenEnabled:!0,fullscreenElement:function(c){c=c?c:a;return c[l[1]]},requestFullscreen:function(a){return a[l[2]]()},exitFullscreen:function(c){c=c?c:a;return c[l[3]]()}};c.event={fullscreenchange:l[4],fullscreenerror:l[5]}}else c.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},c.event={}}};b.jPlayer.nativeFeatures.init();b.jPlayer.focus=null;b.jPlayer.keyIgnoreElementNames= 484"INPUT TEXTAREA";var p=function(a){var c=b.jPlayer.focus,d;c&&(b.each(b.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(c,b){if(a.target.nodeName.toUpperCase()===b.toUpperCase())return d=!0,!1}),d||b.each(c.options.keyBindings,function(d,g){if(g&&a.which===g.key&&b.isFunction(g.fn))return a.preventDefault(),g.fn(c),!1}))};b.jPlayer.keys=function(a){b(document.documentElement).off("keydown.jPlayer");a&&b(document.documentElement).on("keydown.jPlayer",p)};b.jPlayer.keys(!0);b.jPlayer.prototype= 485{count:0,version:{script:"2.5.0",needFlash:"2.5.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:0.8,muted:!1,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:0.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar", 486volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1E3},loop:!1,repeat:function(a){a.jPlayer.options.loop? 487b(this).off(".jPlayerRepeat").on(b.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){b(this).jPlayer("play")}):b(this).off(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/, 488android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(a){a.status.paused?a.play():a.pause()}},fullScreen:{key:13,fn:function(a){(a.status.video||a.options.audioFullScreen)&&a._setOption("fullScreen",!a.options.fullScreen)}},muted:{key:8,fn:function(a){a._muted(!a.options.muted)}},volumeUp:{key:38,fn:function(a){a.volume(a.options.volume+ 4890.1)}},volumeDown:{key:40,fn:function(a){a.volume(a.options.volume-0.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"", 490media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"', 491flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"', 492flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var a= 493this;this.element.empty();this.status=b.extend({},this.status);this.internal=b.extend({},this.internal);this.options.timeFormat=b.extend({},b.jPlayer.timeFormat,this.options.timeFormat);this.internal.cmdsIgnored=b.jPlayer.platform.ipad||b.jPlayer.platform.iphone||b.jPlayer.platform.ipod;this.internal.domNode=this.element.get(0);
493this.options.keyEnabled&&!b.jPlayer.focus&&(b.jPlayer.focus=this);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video= 494{};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);b.each(this.options.supplied.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.format[e]){var f=!1;b.each(a.formats,function(a,c){if(e===c)return f=!0,!1});f||a.formats.push(e)}});b.each(this.options.solution.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.solution[e]){var f=!1;b.each(a.solutions,function(a, 495c){if(e===c)return f=!0,!1});f||a.solutions.push(e)}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=b.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=b.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:f});this.internal.video=b.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:f});this.internal.flash= 496b.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:f,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")});this.internal.poster=b.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:f});b.each(b.jPlayer.event,function(c,b){a.options[c]!==f&&(a.element.on(b+".jPlayer",a.options[c]),a.options[c]=f)});this.require.audio=!1;this.require.video=!1;b.each(this.formats,function(c, 497b){a.require[a.format[b].media]=!0});this.options=this.require.video?b.extend(!0,{},this.optionsVideo,this.options):b.extend(!0,{},this.optionsAudio,this.options);this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this.status.noVolume=this._uaBlocklist(this.options.noVolume);b.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners();this._restrictNativeVideoControls(); 498this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){a.status.video&&!a.status.waitForPlay||a.internal.poster.jq.show()};this.element.append(this.htmlElement.poster);this.internal.poster.jq=b("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.on("click.jPlayer",function(){a._trigger(b.jPlayer.event.click)}); 499this.html.audio.available=!1;this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio));this.html.video.available=!1;this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)); 500this.flash.available=this._checkForFlash(10.1);this.html.canPlay={};this.flash.canPlay={};b.each(this.formats,function(c,b){a.html.canPlay[b]=a.html[a.format[b].media].available&&""!==a.htmlElement[a.format[b].media].canPlayType(a.format[b].codec);a.flash.canPlay[b]=a.format[b].flashCanPlay&&a.flash.available});this.html.desired=!1;this.flash.desired=!1;b.each(this.solutions,function(c,d){if(0===c)a[d].desired=!0;else{var e=!1,f=!1;b.each(a.formats,function(c,b){a[a.solutions[0]].canPlay[b]&&("video"===a.format[b].media?f=!0:e=!0)});a[d].desired=a.require.audio&&!e||a.require.video&&!f}});this.html.support={};this.flash.support={};b.each(this.formats,function(c,b){a.html.support[b]=a.html.canPlay[b]&&a.html.desired;a.flash.support[b]=a.flash.canPlay[b]&&a.flash.desired});this.html.used=!1;this.flash.used=!1;b.each(this.solutions,function(c,d){b.each(a.formats,function(c,b){if(a[d].support[b])return a[d].used=!0,!1})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor); 501this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:b.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SOLUTION,hint:b.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show());if(this.flash.used){var c,d="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+ 502"&muted="+this.options.muted;if(b.jPlayer.browser.msie&&(9>Number(b.jPlayer.browser.version)||9>b.jPlayer.browser.documentMode)){d=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+d+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];c=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>'); 503for(var e=0;e<d.length;e++)c.appendChild(document.createElement(d[e]))}else e=function(a,c,b){var d=document.createElement("param");d.setAttribute("name",c);d.setAttribute("value",b);a.appendChild(d)},c=document.createElement("object"),c.setAttribute("id",this.internal.flash.id),c.setAttribute("name",this.internal.flash.id),c.setAttribute("data",this.internal.flash.swf),c.setAttribute("type","application/x-shockwave-flash"),c.setAttribute("width","1"),c.setAttribute("height","1"),c.setAttribute("tabindex", 504"-1"),e(c,"flashvars",d),e(c,"allowscriptaccess","always"),e(c,"bgcolor",this.options.backgroundColor),e(c,"wmode",this.options.wmode);this.element.append(c);this.internal.flash.jq=b(c)}this.status.playbackRateEnabled=this.html.used&&!this.flash.used?this._testPlaybackRate("audio"):!1;this._updatePlaybackRate();this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=b("#"+this.internal.audio.id)), 505this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=b("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.on("click.jPlayer",function(){a._trigger(b.jPlayer.event.click)})));this.options.emulateHtml&&this._emulateHtmlBridge(); 506this.html.used&&!this.flash.used&&setTimeout(function(){a.internal.ready=!0;a.version.flash="n/a";a._trigger(b.jPlayer.event.repeat);a._trigger(b.jPlayer.event.ready)},100);this._updateNativeVideoControls();this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();b.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");b.each(this.css.jq,function(a, 507c){c.length&&c.off(".jPlayer")});this.internal.poster.jq.off(".jPlayer");this.internal.video.jq&&this.internal.video.jq.off(".jPlayer");this._fullscreenRemoveEventListeners();
507this===b.jPlayer.focus&&(b.jPlayer.focus=null);this.options.emulateHtml&&this._destroyHtmlBridge();this.element.removeData("jPlayer");this.element.off(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{return a.canPlayType(this.format.mp3.codec), 508!0}catch(c){return!1}},_testPlaybackRate:function(a){a=document.createElement("string"===typeof a?a:"audio");try{return"playbackRate"in a?(a.playbackRate=0.5,0.5===a.playbackRate):!1}catch(c){return!1}},_uaBlocklist:function(a){var c=navigator.userAgent.toLowerCase(),d=!1;b.each(a,function(a,b){if(b&&b.test(c))return d=!0,!1});return d},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&& 509this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(a,c){var d=this;a.preload=this.options.preload;a.muted=this.options.muted; 510a.volume=this.options.volume;this.status.playbackRateEnabled&&(a.defaultPlaybackRate=this.options.defaultPlaybackRate,a.playbackRate=this.options.playbackRate);a.addEventListener("progress",function(){c.gate&&(d.internal.cmdsIgnored&&0<this.readyState&&(d.internal.cmdsIgnored=!1),d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.progress))},!1);a.addEventListener("timeupdate",function(){c.gate&&(d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.timeupdate))},!1); 511a.addEventListener("durationchange",function(){c.gate&&(d._getHtmlStatus(a),d._updateInterface(),d._trigger(b.jPlayer.event.durationchange))},!1);a.addEventListener("play",function(){c.gate&&(d._updateButtons(!0),d._html_checkWaitForPlay(),d._trigger(b.jPlayer.event.play))},!1);a.addEventListener("playing",function(){c.gate&&(d._updateButtons(!0),d._seeked(),d._trigger(b.jPlayer.event.playing))},!1);a.addEventListener("pause",function(){c.gate&&(d._updateButtons(!1),d._trigger(b.jPlayer.event.pause))}, 512!1);a.addEventListener("waiting",function(){c.gate&&(d._seeking(),d._trigger(b.jPlayer.event.waiting))},!1);a.addEventListener("seeking",function(){c.gate&&(d._seeking(),d._trigger(b.jPlayer.event.seeking))},!1);a.addEventListener("seeked",function(){c.gate&&(d._seeked(),d._trigger(b.jPlayer.event.seeked))},!1);a.addEventListener("volumechange",function(){c.gate&&(d.options.volume=a.volume,d.options.muted=a.muted,d._updateMute(),d._updateVolume(),d._trigger(b.jPlayer.event.volumechange))},!1);a.addEventListener("ratechange", 513function(){c.gate&&(d.options.defaultPlaybackRate=a.defaultPlaybackRate,d.options.playbackRate=a.playbackRate,d._updatePlaybackRate(),d._trigger(b.jPlayer.event.ratechange))},!1);a.addEventListener("suspend",function(){c.gate&&(d._seeked(),d._trigger(b.jPlayer.event.suspend))},!1);a.addEventListener("ended",function(){c.gate&&(b.jPlayer.browser.webkit||(d.htmlElement.media.currentTime=0),d.htmlElement.media.pause(),d._updateButtons(!1),d._getHtmlStatus(a,!0),d._updateInterface(),d._trigger(b.jPlayer.event.ended))}, 514!1);a.addEventListener("error",function(){c.gate&&(d._updateButtons(!1),d._seeked(),d.status.srcSet&&(clearTimeout(d.internal.htmlDlyCmdId),d.status.waitForLoad=!0,d.status.waitForPlay=!0,d.status.video&&!d.status.nativeVideoControls&&d.internal.video.jq.css({width:"0px",height:"0px"}),d._validString(d.status.media.poster)&&!d.status.nativeVideoControls&&d.internal.poster.jq.show(),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show(),d._error({type:b.jPlayer.error.URL,context:d.status.src,message:b.jPlayer.errorMsg.URL, 515hint:b.jPlayer.errorHint.URL})))},!1);b.each(b.jPlayer.htmlEvent,function(e,g){a.addEventListener(this,function(){c.gate&&d._trigger(b.jPlayer.event[g])},!1)})},_getHtmlStatus:function(a,c){var b=0,e=0,g=0,f=0;isFinite(a.duration)&&(this.status.duration=a.duration);b=a.currentTime;e=0<this.status.duration?100*b/this.status.duration:0;"object"===typeof a.seekable&&0<a.seekable.length?(g=0<this.status.duration?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,f=0<this.status.duration? 516100*a.currentTime/a.seekable.end(a.seekable.length-1):0):(g=100,f=e);c&&(e=f=b=0);this.status.seekPercent=g;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=e;this.status.currentTime=b;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=b.extend({},this.status,b.jPlayer.prototype.status)}, 517_trigger:function(a,c,d){a=b.Event(a);a.jPlayer={};a.jPlayer.version=b.extend({},this.version);a.jPlayer.options=b.extend(!0,{},this.options);a.jPlayer.status=b.extend(!0,{},this.status);a.jPlayer.html=b.extend(!0,{},this.html);a.jPlayer.flash=b.extend(!0,{},this.flash);c&&(a.jPlayer.error=b.extend({},c));d&&(a.jPlayer.warning=b.extend({},d));this.element.trigger(a)},jPlayerFlashEvent:function(a,c){if(a===b.jPlayer.event.ready)if(!this.internal.ready)this.internal.ready=!0,this.internal.flash.jq.css({width:"0px", 518height:"0px"}),this.version.flash=c.version,this.version.needFlash!==this.version.flash&&this._error({type:b.jPlayer.error.VERSION,context:this.version.flash,message:b.jPlayer.errorMsg.VERSION+this.version.flash,hint:b.jPlayer.errorHint.VERSION}),this._trigger(b.jPlayer.event.repeat),this._trigger(a);else if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);this.volumeWorker(this.options.volume);0<d&&(e?this.pause(d):this.play(d))}this._trigger(b.jPlayer.event.flashreset)}if(this.flash.gate)switch(a){case b.jPlayer.event.progress:this._getFlashStatus(c); 519this._updateInterface();this._trigger(a);break;case b.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(a);break;case b.jPlayer.event.pause:this._updateButtons(!1);this._trigger(a);break;case b.jPlayer.event.ended:this._updateButtons(!1);this._trigger(a);break;case b.jPlayer.event.click:this._trigger(a);break;case b.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay= 520!0;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});
520this._validString(this.status.media.poster)&&this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);this._updateButtons(!1);this._error({type:b.jPlayer.error.URL,context:c.src,message:b.jPlayer.errorMsg.URL,hint:b.jPlayer.errorHint.URL});break;case b.jPlayer.event.seeking:this._seeking(); 521this._trigger(a);break;case b.jPlayer.event.seeked:this._seeked();this._trigger(a);break;case b.jPlayer.event.ready:break;default:this._trigger(a)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState= 5224;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_updateButtons:function(a){a===f?a=!this.status.paused:this.status.paused=!a;this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()));this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(), 523this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide()));this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+ 524"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));this.css.jq.currentTime.length&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(this._convertTime(this.status.duration))},_convertTime:m.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")}, 525_resetGate:function(){this.html.audio.gate=!1;this.html.video.gate=!1;this.flash.gate=!1},_resetActive:function(){this.html.active=!1;this.flash.active=!1},_escapeHtml:function(a){return a.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")},_qualifyURL:function(a){var c=document.createElement("div");c.innerHTML='<a href="'+this._escapeHtml(a)+'">x</a>';return c.firstChild.href},_absoluteMediaUrls:function(a){var c=this;b.each(a,function(b,e){c.format[b]&& 526(a[b]=c._qualifyURL(e))});return a},setMedia:function(a){var c=this,d=!1,e=this.status.media.poster!==a.poster;this._resetMedia();this._resetGate();this._resetActive();a=this._absoluteMediaUrls(a);b.each(this.formats,function(e,f){var k="video"===c.format[f].media;b.each(c.solutions,function(b,e){if(c[e].support[f]&&c._validString(a[f])){var g="html"===e;k?(g?(c.html.video.gate=!0,c._html_setVideo(a),c.html.active=!0):(c.flash.gate=!0,c._flash_setVideo(a),c.flash.active=!0),c.css.jq.videoPlay.length&& 527c.css.jq.videoPlay.show(),c.status.video=!0):(g?(c.html.audio.gate=!0,c._html_setAudio(a),c.html.active=!0):(c.flash.gate=!0,c._flash_setAudio(a),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.hide(),c.status.video=!1);d=!0;return!1}});if(d)return!1});d?(this.status.nativeVideoControls&&this.html.video.gate||!this._validString(a.poster)||(e?this.htmlElement.poster.src=a.poster:this.internal.poster.jq.show()),this.status.srcSet=!0,this.status.media=b.extend({},a),this._updateButtons(!1), 528this._updateInterface()):this._error({type:b.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SUPPORT,hint:b.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus();this._updateButtons(!1);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(); 529this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia();this._resetGate();this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(b.jPlayer.focus=this)},play:function(a){a="number"===typeof a?a:NaN;this.status.srcSet?(this.focus(),this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a)):this._urlNotSetError("play")}, 530videoPlay:function(){this.play()},pause:function(a){a="number"===typeof a?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},tellOthers:function(a,c){var d=this,e="function"===typeof c,g=Array.prototype.slice.call(arguments);"string"===typeof a&&(e&&g.splice(1,1),b.each(this.instances,function(){d.element!==this&&(e&&!c.call(this.data("jPlayer"),d)||this.jPlayer.apply(this,g))}))},pauseOthers:function(a){this.tellOthers("pause", 531function(){return this.status.srcSet},a)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);
531this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.mutedWorker(a);this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume}, 532a)},mutedWorker:function(a){this.options.muted=a;this.html.used&&this._html_setProperty("muted",a);this.flash.used&&this._flash_mute(a);this.html.video.gate||this.html.audio.gate||(this._updateMute(a),this._updateVolume(this.options.volume),this._trigger(b.jPlayer.event.volumechange))},mute:function(a){a=a===f?!0:!!a;this._muted(a)},unmute:function(a){a=a===f?!0:!!a;this._muted(!a)},_updateMute:function(a){a===f&&(a=this.options.muted);this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume? 533(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(a){this.volumeWorker(a);this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},a)},volumeWorker:function(a){a=this._limitValue(a,0,1);this.options.volume=a;this.html.used&&this._html_setProperty("volume",a);this.flash.used&&this._flash_volume(a);this.html.video.gate||this.html.audio.gate|| 534(this._updateVolume(a),this._trigger(b.jPlayer.event.volumechange))},volumeBar:function(a){if(this.css.jq.volumeBar.length){var c=b(a.currentTarget),d=c.offset(),e=a.pageX-d.left,g=c.width();a=c.height()-a.pageY+d.top;c=c.height();this.options.verticalVolume?this.volume(a/c):this.volume(e/g)}this.options.muted&&this._muted(!1)},volumeBarValue:function(){},_updateVolume:function(a){a===f&&(a=this.options.volume);a=this.options.muted?0:a;this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(), 535this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*a+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1);this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(a){var c= 536this;this.options.cssSelectorAncestor=a;this._removeUiClass();this.ancestorJq=a?b(a):[];a&&1!==this.ancestorJq.length&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();b.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)});this._updateInterface();this._updateButtons();this._updateAutohide();this._updateVolume(); 537this._updateMute()},_cssSelector:function(a,c){var d=this;"string"===typeof c?b.jPlayer.prototype.options.cssSelector[a]?(this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].off(".jPlayer"),this.options.cssSelector[a]=c,this.css.cs[a]=this.options.cssSelectorAncestor+" "+c,this.css.jq[a]=c?b(this.css.cs[a]):[],this.css.jq[a].length&&this.css.jq[a].on("click.jPlayer",function(c){c.preventDefault();d[a](c);b(this).blur()}),c&&1!==this.css.jq[a].length&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT, 538context:this.css.cs[a],message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[a].length+" found for "+a+" method.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_METHOD,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:b.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:b.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:b.jPlayer.warningHint.CSS_SELECTOR_STRING})}, 539seekBar:function(a){if(this.css.jq.seekBar.length){var c=b(a.currentTarget),d=c.offset();a=a.pageX-d.left;c=c.width();this.playHead(100*a/c)}},playBar:function(){},playbackRate:function(a){this._setOption("playbackRate",a)}
539,playbackRateBar:function(a){if(this.css.jq.playbackRateBar.length){var c=b(a.currentTarget),d=c.offset(),e=a.pageX-d.left,g=c.width();a=c.height()-a.pageY+d.top;c=c.height();this.playbackRate((this.options.verticalPlaybackRate?a/c:e/g)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+ 540this.options.minPlaybackRate)}},playbackRateBarValue:function(){},_updatePlaybackRate:function(){var a=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*a+"%"))): 541(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(a){this.options.loop!==a&&(this.options.loop=a,this._updateButtons(),this._trigger(b.jPlayer.event.repeat))},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(a,c){var d=a;if(0===arguments.length)return b.extend(!0, 542{},this.options);if("string"===typeof a){var e=a.split(".");if(c===f){for(var d=b.extend(!0,{},this.options),g=0;g<e.length;g++)if(d[e[g]]!==f)d=d[e[g]];else return this._warning({type:b.jPlayer.warning.OPTION_KEY,context:a,message:b.jPlayer.warningMsg.OPTION_KEY,hint:b.jPlayer.warningHint.OPTION_KEY}),f;return d}for(var g=d={},h=0;h<e.length;h++)h<e.length-1?(g[e[h]]={},g=g[e[h]]):g[e[h]]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(a,b){c._setOption(a, 543b)});return this},_setOption:function(a,c){var d=this;switch(a){case "volume":this.volume(c);break;case "muted":this._muted(c);break;case "globalVolume":this.options[a]=c;break;case "cssSelectorAncestor":this._cssSelectorAncestor(c);break;case "cssSelector":b.each(c,function(a,c){d._cssSelector(a,c)});break;case "playbackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("playbackRate",c);this._updatePlaybackRate(); 544break;case "defaultPlaybackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("defaultPlaybackRate",c);this._updatePlaybackRate();break;case "minPlaybackRate":this.options[a]=c=this._limitValue(c,0.1,this.options.maxPlaybackRate-0.1);this._updatePlaybackRate();break;case "maxPlaybackRate":this.options[a]=c=this._limitValue(c,this.options.minPlaybackRate+0.1,16);this._updatePlaybackRate();break;case "fullScreen":if(this.options[a]!==c){var e=b.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;if(!e||e&&!this.status.waitForPlay)e||(this.options[a]=c),c?this._requestFullscreen():this._exitFullscreen(),e||this._setOption("fullWindow",c)}break;case "fullWindow":this.options[a]!==c&&(this._removeUiClass(),this.options[a]=c,this._refreshSize());break;case "size":this.options.fullWindow||this.options[a].cssClass===c.cssClass||this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "sizeFull":this.options.fullWindow&& 545this.options[a].cssClass!==c.cssClass&&this._removeUiClass();this.options[a]=b.extend({},this.options[a],c);this._refreshSize();break;case "autohide":this.options[a]=b.extend({},this.options[a],c);this._updateAutohide();break;case "loop":this._loop(c);break;case "nativeVideoControls":this.options[a]=b.extend({},this.options[a],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullWindow":this.options[a]= 546b.extend({},this.options[a],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this._restrictNativeVideoControls();this._updateButtons();break;case "noVolume":this.options[a]=b.extend({},this.options[a],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":this.options[a]!==c&&((this.options[a]=c)?this._emulateHtmlBridge(): 547this._destroyHtmlBridge());break;case "timeFormat":this.options[a]=b.extend({},this.options[a],c);break;case "keyEnabled":this.options[a]=c;c||this!==b.jPlayer.focus||(b.jPlayer.focus=null);break;case "keyBindings":this.options[a]=b.extend(!0,{},this.options[a],c);break;case "audioFullScreen":this.options[a]=c}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(b.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow? 548(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass);this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)}, 549_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var a=this, 550c=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.off(".jPlayerAutohide"),this.css.jq.gui.off(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full|| 551!this.options.fullWindow&&this.options.autohide.restored?(this.element.on("mousemove.jPlayer.jPlayerAutohide",c),this.css.jq.gui.on("mousemove.jPlayer.jPlayerAutohide",c),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var a=this,c=b.jPlayer.nativeFeatures.fullscreen;c.api.fullscreenEnabled&&c.event.fullscreenchange&&("function"!==typeof this.internal.fullscreenchangeHandler&& 552(this.internal.fullscreenchangeHandler=function(){a._fullscreenchange()}),document.addEventListener(c.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var a=b.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.addEventListener(a.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!b.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&& 553this._setOption("fullScreen",!1)},_requestFullscreen:function(){var a=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],c=b.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&(a=this.htmlElement.video);c.api.fullscreenEnabled&&c.api.requestFullscreen(a)},_exitFullscreen:function(){var a=b.jPlayer.nativeFeatures.fullscreen,c;a.used.webkitVideo&&(c=this.htmlElement.video);a.api.fullscreenEnabled&&a.api.exitFullscreen(c)},_html_initMedia:function(a){var c=b(this.htmlElement.media).empty(); 554b.each(a.track||[],function(a,b){var g=document.createElement("track");g.setAttribute("kind",b.kind?b.kind:"");g.setAttribute("src",b.src?b.src:"");g.setAttribute("srclang",b.srclang?b.srclang:"");g.setAttribute("label",b.label?b.label:"");b.def&&g.setAttribute("default",b.def);c.append(g)});this.htmlElement.media.src=this.status.src;"none"!==this.options.preload&&this._html_load();this._trigger(b.jPlayer.event.timeupdate)},_html_setFormat:function(a){var c=this;b.each(this.formats,function(b,e){if(c.html.support[e]&& 555a[e])return c.status.src=a[e],c.status.format[e]=!0,c.status.formatType=e,!1})},_html_setAudio:function(a){this._html_setFormat(a);this.htmlElement.media=this.htmlElement.audio;this._html_initMedia(a)},_html_setVideo:function(a){this._html_setFormat(a);this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._val
555idString(a.poster)?a.poster:"");this.htmlElement.media=this.htmlElement.video;this._html_initMedia(a)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load());clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this,d=this.htmlElement.media;this._html_load();if(isNaN(a))d.play(); 556else{this.internal.cmdsIgnored&&d.play();try{if(!d.seekable||"object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a,d.play();else throw 1;}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},250);return}}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,d=this.htmlElement.media;0<a?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);d.pause();
556if(!isNaN(a))try{if(!d.seekable||"object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a;else throw 1; 557}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250);return}0<a&&this._html_checkWaitForPlay()},_html_playHead:function(a){var b=this,d=this.htmlElement.media;this._html_load();try{if("object"===typeof d.seekable&&0<d.seekable.length)d.currentTime=a*d.seekable.end(d.seekable.length-1)/100;else if(0<d.duration&&!isNaN(d.duration))d.currentTime=a*d.duration/100;else throw"e";}catch(e){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250);return}this.status.waitForLoad|| 558this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(a,b){this.html.audio.available&&(this.htmlElement.audio[a]=b);this.html.video.available&&(this.htmlElement.video[a]=b)},_flash_setAudio:function(a){var c=this;try{b.each(this.formats, 559function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4a":case "fla":c._getMovie().fl_setAudio_m4a(a[d]);break;case "mp3":c._getMovie().fl_setAudio_mp3(a[d]);break;case "rtmpa":c._getMovie().fl_setAudio_rtmp(a[d])}c.status.src=a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}},_flash_setVideo:function(a){var c=this;try{b.each(this.formats,function(b,d){if(c.flash.support[d]&& 560a[d]){switch(d){case "m4v":case "flv":c._getMovie().fl_setVideo_m4v(a[d]);break;case "rtmpv":c._getMovie().fl_setVideo_rtmp(a[d])}c.status.src=a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}}, 561_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=!1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}0<a&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}this.status.waitForLoad|| 562this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]}, 563_getFlashPluginVersion:function(){var a=0,b;if(window.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var d=b.GetVariable("$version");d&&(d=d.split(" ")[1].split(","),a=parseInt(d[0],10)+"."+parseInt(d[1],10))}}catch(e){}else navigator.plugins&&0<navigator.mimeTypes.length&&(b=navigator.plugins["Shockwave Flash"])&&(a=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return 1*a},_checkForFlash:function(a){var b=!1;this._getFlashPluginVersion()>= 564a&&(b=!0);return b},_validString:function(a){return a&&"string"===typeof a},_limitValue:function(a,b,d){return a<b?b:a>d?d:a},_urlNotSetError:function(a){this._error({type:b.jPlayer.error.URL_NOT_SET,context:a,message:b.jPlayer.errorMsg.URL_NOT_SET,hint:b.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(a){var c;c=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:b.jPlayer.error[c],context:this.internal.flash.swf,message:b.jPlayer.errorMsg[c]+a.message,hint:b.jPlayer.errorHint[c]}); 565this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(a){this._trigger(b.jPlayer.event.error,a);this.options.errorAlerts&&this._alert("Error!"+(a.message?"\n"+a.message:"")+(a.hint?"\n"+a.hint:"")+"\nContext: "+a.context)},_warning:function(a){this._trigger(b.jPlayer.event.warning,f,a);this.options.warningAlerts&&this._alert("Warning!"+(a.message?"\n"+a.message:"")+(a.hint?"\n"+a.hint:"")+"\nContext: "+a.context)},_alert:function(a){a="jPlayer "+this.version.script+":id='"+this.internal.self.id+ 566"':"+a},_emulateHtmlBridge:function(){var a=this;b.each(b.jPlayer.emulateMethods.split(/\s+/g),function(b,d){a.internal.domNode[d]=function(b){a[d](b)}});b.each(b.jPlayer.event,function(c,d){var e=!0;b.each(b.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c)return e=!1});e&&a.element.on(d+".jPlayer.jPlayerHtml",function(){a._emulateHtmlUpdate();var b=document.createEvent("Event");
566b.initEvent(c,!1,!0);a.internal.domNode.dispatchEvent(b)})})}, 567_emulateHtmlUpdate:function(){var a=this;b.each(b.jPlayer.emulateStatus.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.status[d]});b.each(b.jPlayer.emulateOptions.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.options[d]})},_destroyHtmlBridge:function(){var a=this;this.element.off(".jPlayerHtml");b.each((b.jPlayer.emulateMethods+" "+b.jPlayer.emulateStatus+" "+b.jPlayer.emulateOptions).split(/\s+/g),function(b,d){delete a.internal.domNode[d]})}};b.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled", 568NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};b.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.", 569URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+b.jPlayer.prototype.version.script+" needs Jplayer.swf version "+b.jPlayer.prototype.version.needFlash+" but found "};
569b.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.", 570URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};b.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};b.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.", 571OPTION_KEY:"The option requested in jPlayer('option') is undefined."};b.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}); 572!function(t){"use strict";t.fn.enllax=function(r){var a=t(window).height(),n=t(document).height(),o=t.extend({ratio:0,type:"background",direction:"vertical"},r),e=t("[data-enllax-ratio]");e.each(function(){var r,e,s,i=t(this),c=i.offset().top,l=i.outerHeight(),p=i.data("enllax-ratio"),d=i.data("enllax-type"),x=i.data("enllax-direction");r=p?p:o.ratio,e=d?d:o.type,s=x?x:o.direction;var f=Math.round(c*r),u=Math.round((c-a/2+l)*r);"background"==e?"vertical"==s?i.css({"background-position":"center "+-f+"px"}):"horizontal"==s&&i.css({"background-position":-f+"px center"}):"foreground"==e&&("vertical"==s?i.css({"-webkit-transform":"translateY("+u+"px)","-moz-transform":"translateY("+u+"px)",transform:"translateY("+u+"px)"}):"horizontal"==s&&i.css({"-webkit-transform":"translateX("+u+"px)","-moz-transform":"translateX("+u+"px)",transform:"translateX("+u+"px)"})),t(window).on("scroll",function(){var o=t(this).scrollTop();f=Math.round((c-o)*r),u=Math.round((c-a/2+l-o)*r),"background"==e?"vertical"==s?i.css({"background-position":"center "+-f+"px"}):"horizontal"==s&&i.css({"background-position":-f+"px center"}):"foreground"==e&&n>o&&("vertical"==s?i.css({"-webkit-transform":"translateY("+u+"px)","-moz-transform":"translateY("+u+"px)",transform:"translateY("+u+"px)"}):"horizontal"==s&&i.css({"-webkit-transform":"translateX("+u+"px)","-moz-transform":"translateX("+u+"px)",transform:"translateX("+u+"px)"}))})})}}(jQuery); 573var mfnSetup={ 574translate: null 575}; 576(function($){ 577"use strict"; 578var has3d=function(){ 579if(!window.getComputedStyle){ 580return false; 581} 582var el=document.createElement('div'), 583has3d; 584document.body.insertBefore(el, null); 585if(el.style.transform!==undefined){ 586el.style.transform="translate3d(1px,1px,1px)"; 587has3d=window.getComputedStyle(el).getPropertyValue('transform'); 588} 589document.body.removeChild(el); 590return (has3d!==undefined&&has3d!==null&&has3d.length > 0&&has3d!=="none"); 591}; 592var __construct=function(){ 593if(has3d()){ 594mfnSetup.translate=function(el, x, y){ 595el.css('transform', 'translate3d(' + x + ', ' + y + ', 0)'); 596};}else{ 597mfnSetup.translate=function(el, x, y){ 598el.css({ 599"left": x, 600"top": y 601}); 602};}}; 603__construct(); 604})(jQuery); 605(function($){ 606"use strict"; 607$.fn.mfnParallax=function(){ 608var el=$(this), 609parent=el.parent(), 610speed=500, 611element, parentPos, windowH; 612var imageSize=function(img){ 613var w, h, l, t; 614var imageW=img.get(0).naturalWidth; 615var imageH=img.get(0).naturalHeight; 616var parentW=img.parent().outerWidth(); 617var parentH=img.parent().outerHeight(); 618var windowH=$(window).height(); 619if(windowH > parentH){ 620parentH=windowH; 621} 622var diff=imageW / parentW; 623if((imageH / diff) < parentH){ 624w=imageW / (imageH / parentH); 625h=parentH; 626if(w > imageW){ 627w=imageW; 628h=imageH; 629}}else{ 630w=parentW; 631h=imageH / diff; 632} 633l=(parentW - w) / 2; 634t=(parentH - h) / 2; 635return [w, h, l, t]; 636}; 637var parallax=function(){ 638var scrollTop=$(window).scrollTop(), 639scrollDiff, ratio, translateTop; 640if(parentPos!==undefined){ 641if(scrollTop >=parentPos.min&&scrollTop <=parentPos.max){ 642scrollDiff=scrollTop - parentPos.min; 643ratio=scrollDiff / parentPos.height; 644translateTop=windowH + (ratio * speed) - scrollDiff - (speed * (windowH / parentPos.height)); 645mfnSetup.translate(el, element.left + "px", -Math.round(translateTop) + "px"); 646}} 647}; 648var init=function(){ 649windowH=$(window).height(); 650var initElement=function(){ 651var size=imageSize(el); 652el.removeAttr('style').css({ 653'width': size[0], 654'height': size[1] 655}); 656mfnSetup.translate(el, size[2] + "px", size[3] + "px"); 657return { 658'width': size[0], 659'height': size[1], 660'left': size[2], 661'top': size[3] 662};}; 663element=initElement(); 664var initParent=function(){ 665var min=parent.offset().top - $(window).height(); 666var max=parent.offset().top + $(parent).outerHeight(); 667return { 668'min': min, 669'max': max, 670'height': max - min 671};}; 672parentPos=initParent(); 673parent.css('background-image','unset'); 674}; 675var reload=function(){ 676setTimeout(function(){ 677init(); 678parallax(); 679}, 50); 680}; 681reload(); 682$(window).on('scroll', parallax); 683}; 684$(window).on('load resize', function(){ 685if($(".mfn-parallax").length){ 686$(".mfn-parallax").each(function(){ 687$(this).mfnParallax(); 688}); 689}}); 690})(jQuery); 691function queryLoopMasonry(){ 692jQuery('.mfn-query-loop-masonry').each(function(){ 693let $masonry=jQuery(this); 694$masonry.imagesLoaded(function(){ 695$masonry.isotope({ 696itemSelector: '.mfn-queryloop-item-wrapper', 697layoutMode: 'masonry', 698isOriginLeft: jQuery('body').hasClass('rtl') ? false:true 699}); 700$masonry.addClass('mfn-initialized'); 701}); 702}); 703} 704(function($){ 705"use strict"; 706var scrollTicker, lightboxAttr, sidebar, 707rtl=$('body').hasClass('rtl'), 708simple=$('body').hasClass('style-simple'), 709topBarTop='0', 710headerH=0, 711currWidth=$(window).width(), 712newWidth=$(window).width(), 713screen='desktop', 714mobileInitW=mfn.mobileInit ? mfn.mobileInit:1240; 715if(! mfn.lightbox.disable){ 716if(!(mfn.lightbox.disableMobile&&(window.innerWidth < 768))){ 717lightboxAttr={ 718title: mfn.lightbox.title ? mfn.lightbox.title:false, 719};}} 720function adminBarH(){ 721var height=0; 722if($('body').hasClass('admin-bar')){ 723var actionBarH=$('#wpadminbar').innerHeight()||0; 724height +=actionBarH; 725} 726if($('body').hasClass('woocommerce-demo-store')){ 727var demoStoreH=$('body > p.demo_store').innerHeight()||0; 728height +=demoStoreH; 729} 730return height; 731} 732function mfnSticky(){ 733if(! $('body').hasClass('sticky-header')){ 734return false;
735} 736if($('body').hasClass('header-creative')&&window.innerWidth >=768){ 737return false; 738} 739var startY=headerH; 740var windowY=$(window).scrollTop(); 741var topBarH=$('#Top_bar').height()||0; 742if(windowY > startY){ 743if(!($('#Top_bar').hasClass('is-sticky'))){ 744$('.header_placeholder').css('height', topBarH); 745$('#Top_bar') 746.addClass('is-sticky') 747.css('top', -60) 748.animate({ 749'top': adminBarH() + 'px' 750}, 300); 751headerWidth(); 752$(document).trigger('mfn:header:sticky:on'); 753}}else{ 754if($('#Top_bar').hasClass('is-sticky')){ 755$('.header_placeholder').css('height', 0); 756$('#Top_bar') 757.removeClass('is-sticky') 758.css('top', topBarTop); 759stickyLogo(); 760headerWidth(); 761$(document).trigger('mfn:header:sticky:off'); 762}} 763} 764function stickyLogo(){ 765if(window.devicePixelRatio <=1){ 766return false; 767} 768var parent=$('#Top_bar #logo'), 769el=$('img.logo-main', parent), 770height=el.data('height'); 771if(! parent.hasClass('retina')){ 772return false; 773} 774if($('body').hasClass('logo-overflow')){ 775}else if(height > parent.data('height')){ 776height=parent.data('height'); 777} 778el.css('max-height', height + 'px'); 779} 780function mfnStickyH(){ 781var topBarH=$('#Top_bar').innerHeight()||0; 782if($('body').hasClass('header-below')){ 783var sliderH=$('.mfn-main-slider').innerHeight()||0; 784headerH=topBarH + sliderH; 785}else{ 786var actionBarH=$('#Action_bar').innerHeight()||0; 787headerH=topBarH + actionBarH; 788}} 789function mfnMobileSticky(){ 790if(! $('body').hasClass('.mobile-sticky')){ 791return false; 792} 793if($(window).width() >=768){ 794return false; 795} 796var menuH, 797windowH=$(window).height()||0, 798logoH=$('#Top_bar .logo').height()||0, 799offset=adminBarH() + logoH; 800if(( ! $('#Top_bar').hasClass('is-sticky'))&&$('#Action_bar').is(':visible')){ 801offset +=$('#Action_bar').height()||0; 802} 803menuH=windowH - offset; 804if(menuH < 176){ 805menuH=176; 806} 807$('#Top_bar #menu').css('max-height', menuH + 'px'); 808} 809function headerWidth(){ 810var rightW=$('.top_bar_right').outerWidth()||0; 811rightW=Math.ceil(rightW); 812if($('body').hasClass('header-modern')){ 813rightW +=10; 814} 815var parentW=$('#Top_bar .one').width()||0; 816var leftW=parentW - rightW; 817} 818function fixStickyHeaderH(){ 819var stickyH=0; 820var topBar=$('.sticky-header #Top_bar'); 821if(topBar.length){ 822if(topBar.hasClass('is-sticky')){ 823stickyH=$('.sticky-header #Top_bar').innerHeight()||0; 824}else{ 825topBar.addClass('is-sticky'); 826stickyH=$('.sticky-header #Top_bar').innerHeight()||0; 827topBar.removeClass('is-sticky'); 828}}else if($('.mfn-header-tmpl-builder').length){ 829var height=15; 830var shift=0; 831if($('#mfn-header-template').hasClass('mfn-hasSticky')){ 832height=$('#mfn-header-template').outerHeight(); 833shift=parseFloat($('#mfn-header-template').css('top')); 834}else if($('#mfn-header-template').hasClass('mfn-header-tmpl-fixed')){ 835height=$('#mfn-header-template').outerHeight(); 836shift=parseFloat($('#mfn-header-template').css('top')); 837} 838stickyH=height + shift; 839} 840if($(window).width() < mobileInitW){ 841if($(window).width() < 768){ 842if(!$('body').hasClass('mobile-sticky')){ 843stickyH=0; 844}}else{ 845if(!$('body').hasClass('tablet-sticky')){ 846stickyH=0; 847}} 848}else{ 849if($('body').hasClass('header-creative')){ 850stickyH=0; 851}} 852return stickyH; 853} 854function mfnSidebar(){ 855if($('.mcb-sidebar').length){ 856var maxH=$('#Content .sections_group').outerHeight(); 857$('.mcb-sidebar').each(function(){ 858$(this).css('min-height', 0); 859if($(this).height() > maxH){ 860maxH=$(this).height(); 861}}); 862$('.mcb-sidebar').css('min-height', maxH + 'px'); 863if(sidebar){ 864sidebar.stickySidebar('updateSticky'); 865}} 866} 867function mfnIntroH(){ 868var windowH=$(window).height()||0; 869var headerWrapperH=$('#Header_wrapper').height()||0; 870windowH=windowH - headerWrapperH - adminBarH(); 871$('#Intro.full-screen').each(function(){ 872var el=$(this), 873inner=$('.intro-inner', el), 874innerH=inner.height()||0; 875el.css('padding', 0).css('min-height', windowH); 876var padding=(windowH - innerH) / 2; 877inner.css('padding-top', padding).css('padding-bottom', padding); 878}); 879} 880function mfnFooter(){ 881var footerH=$('#Footer').height()||0; 882if($('.footer-fixed #Footer, .footer-sliding #Footer').length){ 883footerH=footerH - 1; 884$('#Content').css('margin-bottom', footerH + 'px'); 885} 886if($('.footer-stick #Footer').length){ 887var headerWrapperH=$('#Header_wrapper').height()||0; 888var headerFooterH=headerWrapperH + footerH; 889var documentH=$(document).height() - adminBarH();
890if(( documentH <=$(window).height())&&(headerFooterH <=$(window).height())){ 891$('#Footer').addClass('is-sticky'); 892}else{ 893$('#Footer').removeClass('is-sticky'); 894}} 895} 896function backToTopSticky(){ 897if($('#back_to_top.sticky.scroll').length){ 898var el=$('#back_to_top.sticky.scroll'); 899if(scrollTicker){ 900window.clearTimeout(scrollTicker); 901scrollTicker=null; 902} 903el.addClass('focus'); 904scrollTicker=window.setTimeout(function(){ 905el.removeClass('focus'); 906}, 1500); 907}} 908function hashNav(){ 909var hash=window.location.hash; 910if(hash){ 911if(hash.indexOf("&") > -1||hash.indexOf("/") > -1||hash.indexOf("?") > -1){ 912return false; 913} 914if(hash.indexOf("wpcf7") > -1){ 915cf7popup(hash); 916} 917if($(hash).length){ 918var offset=0, 919headerH=fixStickyHeaderH(), 920tabH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0; 921if($('body').hasClass('mhb')){ 922var currentView=$('.mhb-view').filter(':visible'); 923headerH=currentView.height()||0; 924} 925offset=headerH + adminBarH() + tabH; 926$('html, body').animate({ 927scrollTop: $(hash).offset().top - offset 928}, 500); 929}} 930} 931function onePageActive(){ 932if($('body').hasClass('one-page')){ 933var stickyH=$('.sticky-header #Top_bar').innerHeight()||0; 934if($('#mfn-header-template').length) stickyH=$('#mfn-header-template').innerHeight()||0; 935var windowT=$(window).scrollTop(); 936var start=windowT + stickyH + adminBarH() + 1; 937var first=false; 938$('[data-id]:not(.elementor-element), section[data-id]').each(function(){ 939if($(this).attr('data-id')&&(-1==$(this).attr('data-id').indexOf('#'))){ 940return true; 941} 942if($(this).visible(true)){ 943if(!first){ 944first=$(this); 945}else if(($(this).offset().top < start)&&($(this).offset().top > first.offset().top)){ 946first=$(this); 947}} 948if(first){ 949var newActive=first.attr('data-id'); 950var active='[data-hash="' + newActive + '"]'; 951if(newActive){ 952var menu=$('#menu, .mhb-menu'); 953if($('#mfn-header-template').length) menu=$('#mfn-header-template .mfn-header-menu'); 954menu.find('li').removeClass('current-menu-item current-menu-parent current-menu-ancestor current_page_item current_page_parent current_page_ancestor'); 955$(active, menu) 956.closest('li').addClass('current-menu-item') 957.closest('.menu > li').addClass('current-menu-item'); 958}} 959}); 960}} 961function cf7popup(hash){ 962if(hash&&$(hash).length){ 963var id=$(hash).closest('.popup-content').attr('id'); 964$('a.popup-link[href="#' + id + '"]:not(.once)') 965.addClass('once') 966.trigger('click'); 967}} 968var stickyWrap={ 969headerH: 0, 970init: function(){ 971stickyWrap.headerH=fixStickyHeaderH() + adminBarH(); 972$('.mcb-wrap.sticky.sticky-'+screen+':not(.stickied)').each(function(){ 973var $wrap=$(this); 974if(screen=='desktop'&&$wrap.hasClass('one')) return; 975if(screen=='tablet'&&$wrap.hasClass('tablet-one')) return; 976if(screen=='mobile'&&$wrap.hasClass('mobile-one')) return; 977var size=$wrap.attr('data-'+screen+'-col'), 978padding={ 979top:$wrap.css('padding-top'), 980right:$wrap.css('padding-right'), 981bottom:$wrap.css('padding-bottom'), 982left:$wrap.css('padding-left'), 983}; 984padding=Object.values(padding).join(' '); 985$wrap.css('padding', padding); 986$wrap.addClass('stickied').removeClass(size).addClass('one') 987.wrap(function(){ 988return '<div class="mcb-wrap wrap-sticky-spacer ' + size + '"><div class="mcb-wrap wrap-sticky-rails"></div></div>'; 989}); 990}); 991stickyWrap.scroll(); 992}, 993scroll: function(){ 994if(! $('.mcb-wrap.sticky.sticky-'+screen).length){ 995return; 996} 997var windowY=$(window).scrollTop(); 998$('.mcb-wrap.sticky.sticky-'+screen+'.stickied').each(function(){ 999var $wrap=$(this), 1000$rails=$wrap.closest('.wrap-sticky-rails'), 1001$section=$wrap.closest('.mcb-section-inner'); 1002var width=$rails.width()||0, 1003sectionT=$section.offset().top, 1004sectionH=$section.innerHeight(), 1005wrapH=$wrap.outerHeight(); 1006var start=windowY + stickyWrap.headerH - sectionT, 1007limit=start + wrapH - sectionH; 1008$wrap.css('width', width) 1009.closest('.wrap-sticky-rails').css('min-height', sectionH + 'px'); 1010if(limit > 0){ 1011$wrap.removeClass('fixed').addClass('stick-bottom').css({ 1012'top':'' 1013}); 1014}else{ 1015$wrap.removeClass('stick-bottom'); 1016if(start > 0){ 1017$wrap.addClass('fixed').css({ 1018'top':stickyWrap.headerH + 'px' 1019}); 1020}else{ 1021$wrap.removeClass('fixed').css({ 1022'top':'' 1023}); 1024}} 1025}); 1026}, 1027reset: function(){ 1028if($('.wrap-sticky-spacer').length){ 1029$('.wrap-sticky-spacer').each(function(){ 1030$(this).find('.mcb-wrap.sticky').removeClass('stickied one fixed').addClass($(this).find('.mcb-wrap.sticky').attr('data-'+screen+'-col')).css({'top': '0', 'width': ''}); 1031$(this).replaceWith($(this).find('.mcb-wrap.sticky')); 1032}); 1033} 1034if($('.mcb-wrap.sticky.sticky-'+screen+':not(.stickied)').length){ 1035stickyWrap.init(); 1036}} 1037}; 1038$(document).ready(function(){ 1039class Isotope { 1040constructor(){ 1041this.runIsotopes=this.runIsotopes.bind(this); 1042this.itemToModify={}; 1043this.ajaxObjects=[]; 1044} 1045get getList(){ 1046return [ 1047{ 1048name: 'Portfolio - Isotope', 1049location: '.blog_wrapper .isotope:not(.masonry), .portfolio_wrapper .isotope:not(.masonry-flat, .masonry-hover, .masonry-minimal)', 1050beforeActive: ()=> null, 1051afterActive: ()=> null, 1052settings: { 1053itemSelector: '.isotope-item', 1054layoutMode: 'fitRows', 1055isOriginLeft: rtl ? false:true 1056}}, 1057{ 1058name: 'Portfolio - Masonry Flat', 1059location: '.portfolio_wrapper .masonry-flat', 1060beforeActive: ()=> null, 1061afterActive: ()=> null, 1062settings: { 1063itemSelector: '.isotope-item', 1064percentPosition: true, 1065masonry: { columnWidth: 1 }, 1066isOriginLeft: rtl ? false:true 1067}}, 1068{ 1069name: 'Blog & Portfolio & Shop - Masonry', 1070location: '.isotope.masonry, .isotope.masonry-hover, .isotope.masonry-minimal', 1071beforeActive: ()=> null, 1072afterActive: ()=> null, 1073settings: { 1074itemSelector: '.isotope-item', 1075layoutMode: 'masonry', 1076isOriginLeft: rtl ? false:true 1077}}, 1078{ 1079name: 'Filters - Isotope Event on Click', 1080location: '.isotope-filters .filters_wrapper', 1081beforeActive: ()=> null, 1082afterActive: ({location})=> { 1083const filterButtons=$(location).find('li:not(.close) a'); 1084filterButtons.on('click', (e)=> { 1085e.preventDefault(); 1086const buttonClicked=$(e.target);
1087let isoWrapper=$('.isotope'), 1088filters=buttonClicked.closest('.isotope-filters'), 1089parent=filters.attr('data-parent'); 1090if(parent){ 1091parent=filters.closest('.' + parent); 1092isoWrapper=parent.find('.isotope').first(); 1093} 1094filters.find('li').removeClass('current-cat'); 1095buttonClicked.closest('li').addClass('current-cat'); 1096this.isotopeFilter(buttonClicked, isoWrapper); 1097}) 1098}, 1099settings: 'do-not-run' 1100}, 1101...this.ajaxObjects 1102] 1103} 1104addEventListener(onEvent, doWhat){ 1105return $(document).on(`isotope:${onEvent}`, doWhat) 1106} 1107queryIsotopeAPI(location, apiAction, actionToPass){ 1108return $(location).isotope(apiAction, actionToPass); 1109}; 1110triggerIsotopeEvent(doWhat){ 1111return $(document).trigger(`isotope:${doWhat}`) 1112} 1113addIsotopeLocation(payload){ 1114if(!payload.location) return console.error('MfnIsotope Error: No Location Provided!'); 1115this.ajaxObjects.push({ 1116name: payload.name ? payload.name:'No name applied - Dynamic Isotope Function', 1117location: payload.location, 1118beforeActive: payload.beforeActive ? payload.beforeActive:()=> null, 1119afterActive: payload.afterActive ? payload.afterActive:()=> null, 1120settings: payload.settings ? payload.settings:{}} 1121); 1122$(payload.location).isotope(payload.settings) 1123} 1124isotopeFilter(domEl, isoWrapper){ 1125if(!domEl||!isoWrapper) return console.error('MfnIsotope Error: isotopeFilter, missing one of the values!'); 1126const filter=domEl.attr('data-rel'); 1127isoWrapper.isotope({ filter }); 1128queueMicrotask(()=> $(window).trigger('resize')); 1129setTimeout(function(){ 1130mfnIsotope.triggerIsotopeEvent('arrange'); 1131}, 500); 1132} 1133runIsotopes(resize=true){ 1134const isotopeList=this.getList; 1135isotopeList.map(item=> { 1136if($(item.location).length){ 1137item.beforeActive(item) 1138if(resize){ 1139$(window).trigger('resize'); 1140} 1141if('do-not-run'!==item.settings){ 1142queueMicrotask(()=> $(item.location).isotope(item.settings)); 1143} 1144item.afterActive(item); 1145}}); 1146}} 1147const mfnIsotope=new Isotope; 1148mfnIsotope.runIsotopes(); 1149class Waypoints { 1150constructor(){ 1151this.runWaypoints=this.runWaypoints.bind(this); 1152} 1153get getList(){ 1154return [ 1155{ 1156name: 'Chart', 1157location: '.sections_group .chart, .elementor-section .chart', 1158beforeActive: ()=> {}, 1159afterActive: ()=> {}, 1160settings: ()=> { 1161return { 1162offset: '100%', 1163triggerOnce: true, 1164handler: function(){ 1165var el=$(this.element).length ? $(this.element):$(this); 1166var lineW=simple ? 4:8; 1167el.easyPieChart({ 1168animate: 1000, 1169lineCap: 'circle', 1170lineWidth: lineW, 1171size: 140, 1172scaleColor: false 1173}); 1174if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){ 1175this.destroy(); 1176}} 1177}} 1178}, 1179{ 1180name: 'Progress Icons', 1181location: '.progress_icons', 1182beforeActive: ()=> {}, 1183afterActive: ()=> {}, 1184settings: ()=> { 1185return { 1186offset: '100%', 1187triggerOnce: true, 1188handler: function(){ 1189var el=$(this.element).length ? $(this.element):$(this); 1190var active=el.attr('data-active'); 1191var color=el.attr('data-color'); 1192var transparent=el.hasClass('transparent'); 1193var icon=el.find('.progress_icon'); 1194var timeout=200; 1195icon.each(function(i){ 1196if(i < active){ 1197var time=(i + 1) * timeout; 1198setTimeout(function(){ 1199$(icon[i]).addClass('themebg'); 1200if(transparent){ 1201$(icon[i]).css('color', color); 1202}else{ 1203$(icon[i]).css('background-color', color); 1204}}, time); 1205}}); 1206if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){ 1207this.destroy(); 1208}} 1209}} 1210}, 1211{ 1212name: 'Animate Math | Counter, Quick Fact, etc.', 1213location: '.animate-math .number', 1214beforeActive: ()=> {}, 1215afterActive: ()=> {}, 1216settings: ()=> { 1217return { 1218offset: '100%', 1219triggerOnce: true, 1220handler: function(){ 1221var el=$(this.element).length ? $(this.element):$(this); 1222var duration=Math.floor((Math.random() * 1000) + 1000); 1223var to=el.attr('data-to'); 1224$({ 1225property: 0 1226}).animate({ 1227property: to 1228}, { 1229duration: duration, 1230easing: 'linear', 1231step: function(){ 1232el.text(Math.floor(this.property)); 1233}, 1234complete: function(){ 1235el.text(this.property); 1236}}); 1237if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){ 1238this.destroy(); 1239}} 1240}} 1241}, 1242{ 1243name: 'Infinite Scroll | Blog & Portfolio', 1244location: '.mfn-infinite-load-button', 1245infiniteLoadButton: $('.mfn-infinite-load-button a'), 1246beforeActive: ()=> {}, 1247afterActive: ({infiniteLoadButton})=> { 1248}, 1249settings: ({infiniteLoadButton, location})=> { 1250return { 1251handler: function(direction){ 1252infiniteScrollFunction($(location), infiniteLoadButton, direction); 1253}, 1254offset: function(){ 1255var offsetPosition=-(($(this)[0].element.scrollHeight) - (window.innerHeight / 1.2)); 1256return offsetPosition; 1257}} 1258}}, 1259{ 1260name: 'Bars List', 1261location: '.bars_list', 1262beforeActive: ()=> {}, 1263afterActive: ({infiniteLoadButton})=> {}, 1264settings: ()=> { 1265return { 1266offset: '100%', 1267triggerOnce: true, 1268handler: function(){ 1269var el=$(this.element).length ? $(this.element):$(this); 1270el.addClass('hover'); 1271if(typeof this.destroy!=='undefined'&&$.isFunction(this.destroy)){ 1272this.destroy(); 1273}} 1274}} 1275} 1276] 1277} 1278runWaypoints(){ 1279const waypoints=this.getList; 1280waypoints.map(item=> { 1281if($(item.location).length){ 1282item.beforeActive(item) 1283queueMicrotask(()=>
1283 $(item.location).waypoint(item.settings(item))); 1284item.afterActive(item); 1285}}) 1286}} 1287const mfnWaypoints=new Waypoints; 1288mfnWaypoints.runWaypoints(); 1289if($('.promo_bar_slider').length){ 1290promoBarSlider(); 1291} 1292if($('.mfn-looped-items-slider').length){ 1293queryLoopSlider(); 1294} 1295headerTemplate.init(); 1296footerTemplate.init(); 1297if($('.mfn-menu-item-megamenu').length){ 1298headerMegamenu.init(); 1299} 1300$('#Top_bar').removeClass('loading'); 1301function sidebarSticky(){ 1302var spacing=fixStickyHeaderH(); 1303if(! mfn.sidebarSticky){ 1304return false; 1305} 1306sidebar=$('.mcb-sidebar .widget-area').stickySidebar({ 1307topSpacing: spacing 1308}); 1309} 1310sidebarSticky(); 1311if($('.mfn-off-canvas-sidebar').length){ 1312offCanvasSidebar.init(); 1313} 1314if($(window).width() < 767&&!$('.mfn-off-canvas-sidebar').length){ 1315offCanvasSidebar.mobile(); 1316screen='mobile'; 1317}else if($(window).width() < 959){ 1318screen='tablet'; 1319} 1320$(window).on('debouncedresize', function(){ 1321if($(window).width() < 767){ 1322screen='mobile'; 1323}else if($(window).width() < 959){ 1324screen='tablet'; 1325}else if($(window).width() > 960){ 1326screen='desktop'; 1327} 1328newWidth=$(window).width(); 1329if(newWidth!=currWidth){ 1330currWidth=$(window).width(); 1331headerTemplate.init(); 1332footerTemplate.init(); 1333} 1334if($(window).width() < 767&&!$('.mfn-off-canvas-sidebar').length){ 1335offCanvasSidebar.mobile(); 1336}else{ 1337$('html').removeClass('mfn-ofcs-opened'); 1338}}); 1339$('.overlay-menu-toggle').on('click',function(e){ 1340e.preventDefault(); 1341$(this).toggleClass('focus'); 1342$('#Overlay').stop(true, true).fadeToggle(500); 1343var menuH=$('#Overlay nav').height()||0; 1344menuH=menuH / 2; 1345$('#Overlay nav').css('margin-top', '-' + menuH + 'px'); 1346}); 1347$('#Overlay').on('click', '.menu-item > a', function(){ 1348$('.overlay-menu-toggle').trigger('click'); 1349}); 1350$('.header-overlay').on('keydown', function(event){ 1351if(27==event.keyCode){ 1352$('.overlay-menu-toggle.focus').trigger('click'); 1353}}); 1354$('.responsive-menu-toggle').on('click', function(e){ 1355e.preventDefault(); 1356var el=$(this); 1357var menu=$('#Top_bar #menu'); 1358var menuWrap=menu.closest('.top_bar_left'); 1359el.toggleClass('active'); 1360if(el.hasClass('is-sticky')&&el.hasClass('active')&&(window.innerWidth < 768)){ 1361var top=0; 1362if(menuWrap.length){ 1363top=menuWrap.offset().top - adminBarH(); 1364} 1365$('body,html').animate({ 1366scrollTop: top 1367}, 200); 1368} 1369menu.stop(true, true).slideToggle(200); 1370}); 1371$('#Top_bar #menu').on('click', 'a:not(.menu-toggle)', function(){ 1372var $menuButton=$('.responsive-menu-toggle.active'); 1373if($menuButton.length){ 1374setTimeout(function(){ 1375$menuButton.trigger('click'); 1376},300); 1377}}); 1378function sideSlide(){ 1379var slide=$('#Side_slide'); 1380var overlay=$('#body_overlay'); 1381var ssMobileInitW=mobileInitW; 1382var pos='right'; 1383var shiftSlide=-slide.data('width'); 1384var shiftBody=shiftSlide / 2; 1385var constructor=function(){ 1386if(!slide.hasClass('enabled')){ 1387$('nav#menu').detach().appendTo('#Side_slide .menu_wrapper'); 1388slide.addClass('enabled'); 1389}}; 1390var destructor=function(){ 1391if(slide.hasClass('enabled')){ 1392close(); 1393$('nav#menu').detach().prependTo('#Top_bar .menu_wrapper'); 1394slide.removeClass('enabled'); 1395}}; 1396var reload=function(){ 1397if(window.innerWidth < ssMobileInitW){ 1398constructor(); 1399}else if($('body').hasClass('header-shop')){ 1400if($('#Top_bar').hasClass('is-sticky')){ 1401$(document).trigger('mfn:header:sticky:on'); 1402}else{ 1403$(document).trigger('mfn:header:sticky:off'); 1404}}else{ 1405destructor(); 1406}}; 1407var init=function(){ 1408if(slide.hasClass('left')){ 1409pos='left'; 1410} 1411if($('body').hasClass('responsive-off')){ 1412ssMobileInitW=0; 1413} 1414if($('body').hasClass('header-simple')){ 1415ssMobileInitW=9999; 1416} 1417if($('#Top_bar').hasClass('is-sticky')){ 1418$(document).trigger('mfn:header:sticky:on'); 1419} 1420reload(); 1421}; 1422var reset=function(time){ 1423$('.lang-active.active', slide).removeClass('active').children('i').attr('class', 'icon-down-open-mini'); 1424$('.lang-wrapper', slide).fadeOut(0); 1425$('.icon.search.active', slide).removeClass('active'); 1426$('.search-wrapper', slide).fadeOut(0); 1427$('.menu_wrapper, .social', slide).fadeIn(time); 1428}; 1429var button=function(){ 1430if(pos=='left'){ 1431slide.animate({ 1432'left': 0 1433}, 300); 1434$('body').animate({ 1435'right': shiftBody 1436}, 300); 1437}else{ 1438slide.animate({ 1439'right': 0 1440}, 300); 1441$('body').animate({ 1442'left': shiftBody 1443}, 300); 1444} 1445overlay.fadeIn(300); 1446$('body').addClass('side-slide-is-open'); 1447reset(0); 1448}; 1449var close=function(){ 1450if(pos=='left'){
1451slide.animate({ 1452'left': shiftSlide 1453}, 300); 1454$('body').animate({ 1455'right': 0 1456}, 300); 1457}else{ 1458slide.animate({ 1459'right': shiftSlide 1460}, 300); 1461$('body').animate({ 1462'left': 0 1463}, 300); 1464} 1465overlay.fadeOut(300); 1466$('body').removeClass('side-slide-is-open'); 1467if($('body').hasClass('keyboard-support')){ 1468$('#Side_slide').attr('aria-expanded', 'false'); 1469} 1470if($('.rev_slider').length){ 1471setTimeout(function(){ 1472$(window).trigger('resize'); 1473}, 300); 1474}}; 1475$('.icon.search', slide).on('click', function(e){ 1476e.preventDefault(); 1477var el=$(this); 1478if(el.hasClass('active')){ 1479$('.search-wrapper', slide).fadeOut(0); 1480$('.menu_wrapper, .social', slide).fadeIn(300); 1481}else{ 1482$('.search-wrapper', slide).fadeIn(300); 1483$('.menu_wrapper, .social', slide).fadeOut(0); 1484$('.lang-active.active', slide).removeClass('active').children('i').attr('class', 'icon-down-open-mini'); 1485$('.lang-wrapper', slide).fadeOut(0); 1486} 1487el.toggleClass('active'); 1488}); 1489$('a.submit', slide).on('click', function(e){ 1490e.preventDefault(); 1491$('#side-form').submit(); 1492}); 1493$('.lang-active', slide).on('click', function(e){ 1494e.preventDefault(); 1495var el=$(this); 1496if(el.hasClass('active')){ 1497$('.lang-wrapper', slide).fadeOut(0); 1498$('.menu_wrapper, .social', slide).fadeIn(300); 1499el.children('i').attr('class', 'icon-down-open-mini'); 1500}else{ 1501$('.lang-wrapper', slide).fadeIn(300); 1502$('.menu_wrapper, .social', slide).fadeOut(0); 1503el.children('i').attr('class', 'icon-up-open-mini'); 1504$('.icon.search.active', slide).removeClass('active'); 1505$('.search-wrapper', slide).fadeOut(0); 1506} 1507el.toggleClass('active'); 1508}); 1509$('.responsive-menu-toggle').off('click'); 1510$('.responsive-menu-toggle').on('click', function(e){ 1511e.preventDefault(); 1512button(); 1513}); 1514overlay.on('click', function(e){ 1515close(); 1516}); 1517$('.close', slide).on('click', function(e){ 1518e.preventDefault(); 1519close(); 1520}); 1521$(slide).on('click', '.menu_wrapper a:not(.menu-toggle), .action_button', function(e){ 1522if($(this).hasClass('mega-menu-link')){ 1523return; 1524} 1525if('#'==$(this).attr('href')){ 1526e.preventDefault(); 1527return; 1528} 1529setTimeout(function(){ 1530close(); 1531},500); 1532}); 1533$(slide).on('click', function(e){ 1534if($(e.target).is(slide)){ 1535reset(300); 1536}}); 1537$(window).on('debouncedresize', reload); 1538if($('body').hasClass('header-shop')){ 1539$(document).on('mfn:header:sticky:on', function(){ 1540if(window.innerWidth >=ssMobileInitW){ 1541$('#Top_bar .menu_wrapper').css('min-height', '70px'); 1542constructor(); 1543}}); 1544$(document).on('mfn:header:sticky:off', function(){ 1545if(window.innerWidth >=ssMobileInitW){ 1546destructor(); 1547}}); 1548} 1549init(); 1550} 1551if($('body').hasClass('mobile-side-slide')){ 1552sideSlide(); 1553} 1554$('.sections_group .gallery, .mcb-section .gallery, .elementor-section .gallery').each(function(){ 1555var el=$(this); 1556var id=el.attr('id'); 1557$('> br', el).remove(); 1558$('.gallery-icon > a', el) 1559.wrap('<div class="image_frame scale-with-grid"><div class="image_wrapper"></div></div>') 1560.prepend('<div class="mask"></div>') 1561.children('img') 1562.css('height', 'auto') 1563.css('width', '100%'); 1564if(el.hasClass('file')){ 1565$('.gallery-icon a', el) 1566.attr('rel', 'prettyphoto[' + id + ']') 1567.attr('data-elementor-lightbox-slideshow', id); 1568} 1569if(el.hasClass('masonry')){ 1570mfnIsotope.addIsotopeLocation({ 1571name: 'Wordpress&&Elementor - Masonry gallery', 1572location: el, 1573settings: { 1574itemSelector: '.gallery-item', 1575layoutMode: 'masonry', 1576isOriginLeft: rtl ? false:true 1577}}) 1578mfnIsotope.runIsotopes(); 1579}}); 1580$('.sections_group .wp-block-gallery').each(function(index){ 1581var el=$(this); 1582var link=$('.blocks-gallery-item a, .wp-block-image a', el); 1583if((/\.(gif|jpg|jpeg|png)$/i).test(link.attr('href'))){ 1584link.attr('rel', 'prettyphoto[wp5-gallery-' + index + ']'); 1585}}); 1586$('.widget_media_gallery .gallery').each(function(){ 1587var el=$(this); 1588var id=el.attr('id'); 1589$('.gallery-icon a', el).attr('rel', 'prettyphoto[widget-' + id + ']'); 1590}); 1591$('a[rel^="prettyphoto[portfolio]"]').each(function(){ 1592var el=$(this); 1593var parent=el.closest('.column'); 1594var index=$('.column').index(parent); 1595el.attr('rel', 'prettyphoto[portfolio-' + index + ']'); 1596}); 1597function lightbox(){ 1598var galleries=[]; 1599var init=function(){ 1600if(lightboxAttr){ 1601compatibility(); 1602setType(); 1603constructor(); 1604}}; 1605var compatibility=function(){ 1606$('a[rel^="prettyphoto"], a.prettyphoto, a[rel^="prettyphoto"]').each(function(){ 1607var el=$(this); 1608var rel=el.attr('rel'); 1609if(rel){ 1610rel=rel.replace('prettyphoto', 'lightbox'); 1611}else{ 1612rel='lightbox'; 1613} 1614el.removeClass('prettyphoto').attr('rel', rel); 1615}); 1616}; 1617var isGallery=function(rel){ 1618if(!rel){ 1619return false;
1620} 1621var regExp=/\[(?:.*)\]/; 1622var gallery=regExp.exec(rel); 1623if(gallery){ 1624gallery=gallery[0]; 1625gallery=gallery.replace('[', '').replace(']', ''); 1626return gallery; 1627} 1628return false; 1629}; 1630var setGallery=function(gallery){ 1631if(galleries.indexOf(gallery)==-1){ 1632galleries.push(gallery); 1633return true; 1634} 1635return false; 1636}; 1637var getType=function(src){ 1638if(src.match(/youtube\.com\/watch/i)||src.match(/youtube\.com\/embed/i)||src.match(/youtu\.be/i)){ 1639return 'iframe'; 1640}else if(src.match(/youtube-nocookie\.com/i)){ 1641return 'iframe'; 1642}else if(src.match(/vimeo\.com/i)){ 1643return 'iframe'; 1644}else if(src.match(/\biframe=true\b/i)){ 1645return 'ajax'; 1646}else if(src.match(/\bajax=true\b/i)){ 1647return 'ajax'; 1648}else if(src.substr(0, 1)=='#'){ 1649return 'inline'; 1650}else{ 1651return 'image'; 1652}}; 1653var setType=function(){ 1654$('a[rel^="lightbox"]').each(function(){ 1655var el=$(this); 1656var href=el.attr('href'); 1657var rel=el.attr('rel'); 1658if(el.closest('.wpb_column').length){ 1659} 1660if(href){ 1661var gallery=isGallery(rel); 1662if(gallery){ 1663el.attr('data-lightbox-type', 'gallery'); 1664setGallery(gallery); 1665return true; 1666} 1667el.attr('data-lightbox-type', getType(href)); 1668if(getType(href)=='iframe'){ 1669el.attr('href', href.replace('&rel=0', '')); 1670}} 1671}); 1672}; 1673var constructor=function(){ 1674if(!galleries.length 1675&& !$('a[rel^="lightbox"][data-lightbox-type="image"]').length 1676&& !$('a[rel^="lightbox"][data-lightbox-type="iframe"]').length 1677&& !$('a[rel^="pdf-lightbox"]').length 1678&& !$('a[rel^="lightbox"][data-lightbox-type="inline"]').length 1679) return; 1680var attr={ 1681autoFocusLast: false, 1682removalDelay: 160, 1683image: { 1684titleSrc: function(item){ 1685var img=item.el.closest('.image_wrapper, li').find('img').first(); 1686if(lightboxAttr.title&&img.length){ 1687return img.attr('alt'); 1688}else{ 1689return false; 1690}} 1691}}; 1692$('a[rel^="lightbox"][data-lightbox-type="image"]').magnificPopup({ 1693autoFocusLast: attr.autoFocusLast, 1694removalDelay: attr.removalDelay, 1695type: 'image', 1696image: attr.image 1697}); 1698$('a[rel^="lightbox"][data-lightbox-type="iframe"]').magnificPopup({ 1699autoFocusLast: attr.autoFocusLast, 1700removalDelay: attr.removalDelay, 1701type: 'iframe', 1702iframe: { 1703patterns: { 1704youtube: { 1705index: 'youtube.com/', 1706id: 'v=', 1707src: '//www.youtube.com/embed/%id%?autoplay=1&rel=0' 1708}, 1709youtu_be: { 1710index: 'youtu.be/', 1711id: '/', 1712src: '//www.youtube.com/embed/%id%?autoplay=1&rel=0' 1713}, 1714nocookie: { 1715index: 'youtube-nocookie.com/embed/', 1716id: '/', 1717src: '//www.youtube-nocookie.com/embed/%id%?autoplay=1&rel=0' 1718}} 1719}}); 1720$('a[rel^="pdf-lightbox"]').magnificPopup({ 1721autoFocusLast: attr.autoFocusLast, 1722removalDelay: attr.removalDelay, 1723type: 'iframe' 1724}); 1725$('a[rel^="lightbox"][data-lightbox-type="inline"]').magnificPopup({ 1726autoFocusLast: attr.autoFocusLast, 1727type: 'inline', 1728midClick: true, 1729callbacks: { 1730open: function(){ 1731$('.mfp-content').children().addClass('mfp-inline'); 1732}, 1733beforeClose: function(){ 1734$('.mfp-content').children().removeClass('mfp-inline'); 1735}} 1736}); 1737for (var i=0, len=galleries.length; i < len; i++){ 1738var gallery='[' + galleries[i] + ']'; 1739gallery='a[rel^="lightbox' + gallery + '"]:visible'; 1740$(gallery).magnificPopup({ 1741autoFocusLast: attr.autoFocusLast, 1742removalDelay: attr.removalDelay, 1743type: 'image', 1744image: attr.image, 1745gallery: { 1746enabled: true, 1747tCounter: '<span class="mfp-counter">%curr% / %total%</span>' 1748}}); 1749} 1750$('.elementor-page a[rel^="lightbox"]:not([data-lightbox-type="gallery"]):not(.popup-link):not(.rs-layer)').off('click'); 1751setTimeout(function(){ 1752var $doc=$('body'); 1753var $events=$._data($doc[0],"events"); 1754if($events&&$events.click){ 1755for(var i=$events.click.length-1; i>=0; i--){ 1756var handler=$events.click[i]; 1757if(handler&&handler.selector&&handler.selector.indexOf('lightbox')!==-1){ 1758$('.wpb_column a[rel^="lightbox"]:not(.popup-link)').off('click'); 1759}} 1760}},0); 1761}; 1762var reload=function(){ 1763$('a[rel^="lightbox"]').off('click'); 1764constructor(); 1765}; 1766init(); 1767mfnIsotope.addEventListener('arrange', reload); 1768$(document).ajaxComplete(function(){ 1769reload(); 1770}); 1771} 1772lightbox(); 1773function mainMenu(){ 1774var mmMobileInitW=mobileInitW; 1775if($('body').hasClass('header-simple')||$('#Header_creative.dropdown').length){ 1776mmMobileInitW=9999; 1777} 1778$('#menu > ul.menu').mfnMenu({ 1779addLast: true, 1780arrows: true, 1781mobileInit: mmMobileInitW, 1782responsive: mfn.responsive 1783}); 1784$('#secondary-menu > ul.secondary-menu').mfnMenu({ 1785mobileInit: mmMobileInitW, 1786responsive: mfn.responsive 1787}); 1788} 1789mainMenu(); 1790function onePageScroll(){ 1791if(!$('body').hasClass('one-page')){ 1792var menu=$('#menu'); 1793if(menu.find('li.scroll').length > 1){ 1794menu.find('li.current-menu-item:not(:first)').removeClass('current-menu-item currenet-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor'); 1795menu.on('click','a',function(){ 1796$(this).closest('li').siblings('li').removeClass('current-menu-item currenet-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor'); 1797$(this).closest('li').addClass('current-menu-item'); 1798}); 1799}} 1800} 1801onePageScroll(); 1802function onePageMenu(){ 1803if($('body').hasClass('one-page')){ 1804var menu=$('#menu'); 1805if($('#mfn-header-template').length) menu=$('#mfn-header-template .mfn-header-menu'); 1806$('a[href]', menu).each(function(){ 1807var url=$(this).attr('href'); 1808if(url&&url.split('#')[1]){ 1809var hash='#' + url.split('#')[1]; 1810if(hash&&$(hash).length){ 1811$(this).attr('data-hash', hash); 1812$(hash).attr('data-id', hash); 1813} 1814var vcHash='#' + url.split('#')[1]; 1815var vcClass='.vc_row.' + url.split('#')[1]; 1816if(vcClass&&$(vcClass).length){ 1817$(this).attr('data-hash', vcHash); 1818$(vcClass).attr('data-id', vcHash); 1819}} 1820}); 1821var hash; 1822var activeSelector='li.current-menu-item, li.current-menu-parent, li.current-menu-ancestor, li.current-page-ancestor, li.current_page_item, li.current_page_parent, li.current_page_ancestor'; 1823var activeClasses='current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor'; 1824if($(activeSelector, menu).length){ 1825$(activeSelector, menu) 1826.not(':first').removeClass(activeClasses); 1827hash=$(activeSelector, menu).find('a[data-hash]').attr('data-hash'); 1828if(hash){ 1829hash='[data-id="' + hash + '"]'; 1830if($(hash).length&&$(hash).visible(true)){ 1831}else{ 1832$(activeSelector, menu).removeClass('current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor') 1833.closest('li').removeClass('current-menu-item current-menu-parent current-menu-ancestor current-page-ancestor current_page_item current_page_parent current_page_ancestor'); 1834}}else{ 1835}}else{ 1836var first=$('li:first-child', menu); 1837var firstA=first.children('a'); 1838if(firstA.attr('data-hash')){ 1839hash=firstA.attr('data-hash'); 1840hash='[data-id="' + hash + '"]'; 1841if($(hash).length&&($(hash).offset().top==adminBarH())){ 1842first.addClass('current-menu-item'); 1843}} 1844} 1845var menu_item=$('#menu a[data-hash]'); 1846if($('#mfn-header-template').length) menu_item=$('#mfn-header-template .mfn-header-menu a[data-hash]'); 1847menu_item.on('click', function(e){ 1848e.preventDefault(); 1849if($('html').hasClass('mfn-header-tmpl-burger-sidebar-opened')){ 1850$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden'); 1851} 1852menu.find('li').removeClass('current-menu-item'); 1853$(this)
1854.closest('li').addClass('current-menu-item') 1855.closest('.menu > li').addClass('current-menu-item'); 1856var hash=$(this).attr('data-hash'); 1857hash='[data-id="' + hash + '"]'; 1858if(window.innerWidth < 768){ 1859$('.responsive-menu-toggle').removeClass('active'); 1860$('#Top_bar #menu').hide(); 1861} 1862var headerFixedAbH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0; 1863var tabsHeaderH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0; 1864var offset=headerFixedAbH + tabsHeaderH + adminBarH(); 1865var stickyH=fixStickyHeaderH(); 1866if($('body').hasClass('header-below')&&$('#Content').length){ 1867if($(hash).offset().top < ($('#Content').offset().top + 60)){ 1868stickyH=-1; 1869}} 1870$('html, body').animate({ 1871scrollTop: $(hash).offset().top - offset - stickyH 1872}, 500); 1873}); 1874}} 1875onePageMenu(); 1876var cHeader='body:not(.header-open) #Header_creative', 1877cHeaderEl=$(cHeader), 1878cHeaderCurrnet; 1879function creativeHeader(){ 1880$('.creative-menu-toggle').on('click', function(e){ 1881e.preventDefault(); 1882cHeaderEl.addClass('active'); 1883$('.creative-menu-toggle, .creative-social', cHeaderEl).fadeOut(500); 1884$('#Action_bar', cHeaderEl).fadeIn(500); 1885}); 1886} 1887creativeHeader(); 1888$(document).on('mouseenter', cHeader, function(){ 1889cHeaderCurrnet=1; 1890}); 1891$(document).on('mouseleave', cHeader, function(){ 1892cHeaderCurrnet=null; 1893setTimeout(function(){ 1894if(!cHeaderCurrnet){ 1895cHeaderEl.removeClass('active'); 1896$('.creative-menu-toggle, .creative-social', cHeaderEl).fadeIn(500); 1897$('#Action_bar', cHeaderEl).fadeOut(500); 1898}}, 1000); 1899}); 1900function creativeHeaderFix(){ 1901if($('body').hasClass('header-creative')&&window.innerWidth >=768){ 1902if($('#Top_bar').hasClass('is-sticky')){ 1903$('#Top_bar').removeClass('is-sticky'); 1904}} 1905} 1906$(document).on("click", ".mfn-header-tmpl .mfn-header-menu-toggle", function(e){ 1907e.preventDefault(); 1908if($(this).closest('.mcb-column').hasClass('mfn-header-tmpl-menu-active')){ 1909$(document).unbind('click', hideSidebarTmplBurger); 1910$(this).closest('.mcb-column').removeClass('mfn-header-tmpl-menu-active'); 1911removeBringToFront(); 1912$(this).closest('.mcb-column-inner').find('.mfn-header-tmpl-menu-sidebar').attr('aria-expanded', false); 1913$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden'); 1914}else{ 1915$(document).bind('click', hideSidebarTmplBurger); 1916$(this).closest('.mcb-column').addClass('mfn-header-tmpl-menu-active'); 1917$(this).closest('.mcb-column').addClass('mfn-bring-to-front'); 1918$(this).closest('.mcb-wrap').addClass('mfn-bring-to-front'); 1919$(this).closest('.mcb-section').addClass('mfn-bring-to-front'); 1920$(this).closest('.mcb-column-inner').find('.mfn-header-tmpl-menu-sidebar').attr('aria-expanded', true); 1921var htmlW=$('html').width(); 1922$('html').addClass('mfn-header-tmpl-burger-sidebar-opened'); 1923if($('html').width()!=htmlW){ 1924$('html').addClass('scrollbar-hidden'); 1925}} 1926}); 1927$(document).on("click", ".one-page .mfn-header-tmpl-menu-sidebar .mfn-header-menu .mfn-menu-li a", function(e){ 1928let href=$(this).attr('href'); 1929if(href.includes('/')){ 1930let href_ex=href.split('#'); 1931href='#'+href_ex[1].replace('/', ''); 1932} 1933if($('body').hasClass('one-page')&&href.includes('#')&&$(href).length){ 1934e.preventDefault(); 1935let header_h=0; 1936if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-tmpl-fixed')||$('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-hasSticky')){ 1937header_h=$('.mfn-header-tmpl.mfn-header-main').outerHeight(); 1938} 1939$(this).closest('ul').find('li.current-menu-item').removeClass('current-menu-item'); 1940$(this).closest('li').addClass('current-menu-item'); 1941let scroll_offset=$(href).offset().top - header_h; 1942$('body, html').animate({ scrollTop: scroll_offset }, 500); 1943$(document).unbind('click', hideSidebarTmplBurger); 1944$(this).closest('.mcb-column').removeClass('mfn-header-tmpl-menu-active'); 1945removeBringToFront(); 1946if($('html').hasClass('mfn-header-tmpl-burger-sidebar-opened')){ 1947$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden'); 1948}} 1949}); 1950function hideSidebarTmplBurger(e){ 1951var div=$('.mfn-header-tmpl-menu-sidebar'); 1952if(!div.is(e.target)&&div.has(e.target).length===0){ 1953$('.mfn-header-tmpl-menu-active').removeClass('mfn-header-tmpl-menu-active'); 1954$(document).unbind('click', hideSidebarTmplBurger); 1955removeBringToFront(); 1956$('html').removeClass('mfn-header-tmpl-burger-sidebar-opened scrollbar-hidden'); 1957}} 1958function removeBringToFront(){ 1959if($('.mfn-bring-to-front').length){ 1960$('.mfn-bring-to-front').removeClass('mfn-bring-to-front'); 1961}} 1962$(document).on("click", ".mfn-header-tmpl .mfn-searchbar-toggle, .mfn-header-tmpl .search_wrapper .mfn-close-icon", function(e){ 1963e.preventDefault(); 1964if($(this).closest('.mcb-column-inner').hasClass('mfn-searchbar-active')){
1965$(this).closest('.mcb-column-inner').removeClass('mfn-searchbar-active'); 1966removeBringToFront(); 1967}else{ 1968$(this).closest('.mcb-column-inner').addClass('mfn-searchbar-active'); 1969$(this).closest('.mcb-column').addClass('mfn-bring-to-front'); 1970$(this).closest('.mcb-wrap').addClass('mfn-bring-to-front'); 1971$(this).closest('.mcb-section').addClass('mfn-bring-to-front'); 1972if($(this).closest('.mcb-column-inner').find('input.field').length){ 1973$(this).closest('.mcb-column-inner').find('input.field').focus(); 1974}} 1975}); 1976$(".search_button:not(.has-input), #Top_bar .icon_close").on('click', function(e){ 1977e.preventDefault(); 1978if($(this).closest('.mfn-header-tmpl').length){ 1979$(this).closest('.mcb-column').toggleClass('mfn-searchbar-active'); 1980}else{ 1981const search=$('.search_wrapper') 1982if(search.css('display')==='none'){ 1983search.fadeIn().find('.field').focus(); 1984setTimeout(function(){ search.addClass('mfn-loaded') }, 300); 1985}else{ 1986search.fadeOut().removeClass('mfn-loaded'); 1987}} 1988}); 1989function mfnWPML(){ 1990$('#menu .menu-item-language:not(.menu-item-language-current)').each(function(){ 1991var el=$(this).children('a'); 1992if(!el.children('span:not(.icl_lang_sel_bracket)').length){ 1993el.wrapInner('<span></span>'); 1994}}); 1995$('#menu span.icl_lang_sel_bracket').each(function(){ 1996var el=$(this); 1997el.replaceWith(el.html()); 1998}); 1999} 2000mfnWPML(); 2001function breadcrumbsRemoveLastLink(){ 2002var el=$('.breadcrumbs.no-link').find('li').last(); 2003var text=el.text(); 2004el.html(text); 2005} 2006breadcrumbsRemoveLastLink(); 2007$('.downcount').each(function(){ 2008var el=$(this); 2009el.downCount({ 2010date: el.attr('data-date'), 2011offset: el.attr('data-offset') 2012}); 2013}); 2014$('.tooltip, .hover_box') 2015.on('touchstart', function(){ 2016$(this).toggleClass('hover'); 2017}) 2018.on('touchend', function(){ 2019$(this).removeClass('hover'); 2020}); 2021$("#popup_contact .footer_button").on('click', function(e){ 2022e.preventDefault(); 2023$(this).parent().toggleClass('focus'); 2024}); 2025if($('#Header_creative.scroll').length&&window.innerWidth >=1240){ 2026$('#Header_creative.scroll').niceScroll({ 2027autohidemode: false, 2028cursorborder: 0, 2029cursorborderradius: 5, 2030cursorcolor: '#222222', 2031cursorwidth: 0, 2032horizrailenabled: false, 2033mousescrollstep: 40, 2034scrollspeed: 60 2035}); 2036} 2037$('.sliding-top-control').on('click', function(e){ 2038e.preventDefault(); 2039$('#Sliding-top .widgets_wrapper').slideToggle(); 2040$('#Sliding-top').toggleClass('active'); 2041}); 2042$('body').on('click', '.alert .close', function(e){ 2043e.preventDefault(); 2044$(this).closest('.alert').hide(300); 2045}); 2046$('.fixed-nav').appendTo('body'); 2047$('.feature_list').each(function(){ 2048var col=$(this).attr('data-col') ? $(this).attr('data-col'):4; 2049$(this).find('li:nth-child(' + col + 'n):not(:last-child)').after('<hr />'); 2050}); 2051function checkIE(){ 2052var ua=window.navigator.userAgent; 2053var msie=ua.indexOf("MSIE "); 2054if(msie > 0&&parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)))==9){ 2055$("body").addClass("ie"); 2056}} 2057checkIE(); 2058var ua=navigator.userAgent, 2059isMobileWebkit=/WebKit/.test(ua)&&/Mobile/.test(ua); 2060if(! isMobileWebkit&&window.innerWidth >=768){ 2061if(mfn.parallax=='stellar'){ 2062$.stellar({ 2063horizontalScrolling: false, 2064responsive: true 2065}); 2066}else{ 2067$(window).enllax(); 2068}}else{ 2069$('div[data-enllax-ratio], div[data-stellar-ratio]').css('background-attachment', 'scroll'); 2070} 2071$('.pager_load_more').on('click', function(e){ 2072e.preventDefault(); 2073var el=$(this); 2074var pager=el.closest('.pager_lm'); 2075var href=el.attr('href'); 2076var index=$('.lm_wrapper').index(el.closest('.mcb-column-inner').find('.lm_wrapper')); 2077el.fadeOut(50); 2078pager.addClass('loading'); 2079$.get(href, function(data){ 2080var content=$('.lm_wrapper:eq(' + index + ')', data).wrapInner('').html(); 2081var $content=$(content); 2082href=$('.lm_wrapper:eq(' + index + ')', data).next().find('.pager_load_more').attr('href'); 2083if($('.lm_wrapper:eq(' + index + ')').hasClass('isotope')){ 2084const location='.lm_wrapper:eq(' + index + ')'; 2085$(location).append($content); 2086mfnIsotope.queryIsotopeAPI(location, 'appended', $content); 2087mfnIsotope.addIsotopeLocation({ name: 'Load More - Ajax', location }) 2088}else if($('.lm_wrapper:eq(' + index + ')').hasClass('mfn-woo-products')){ 2089$('.lm_wrapper:eq(' + index + ') ul.products').append($content.html()); 2090href=$('.lm_wrapper:eq(' + index + ')', data).find('.pager_load_more').attr('href'); 2091var $listing=$('.lm_wrapper ul.products.isotope'); 2092if($listing.length){ 2093$listing.imagesLoaded().progress(function(){ 2094$listing.isotope('reloadItems'); 2095}); 2096}}else{ 2097$content.hide().appendTo('.lm_wrapper:eq(' + index + ')').fadeIn(1000); 2098} 2099pager.removeClass('loading'); 2100if(href){ 2101el.fadeIn(); 2102el.attr('href', href); 2103} 2104mfnJPlayer(); 2105lightbox(); 2106if($('.lm_wrapper.isotope').length){ 2107$('.lm_wrapper.isotope').imagesLoaded().progress(function(){ 2108mfnIsotope.queryIsotopeAPI('.lm_wrapper.isotope'); 2109}); 2110}}); 2111}); 2112$('.filters_buttons .open').on('click', function(e){ 2113e.preventDefault(); 2114var type=$(this).closest('li').attr('class');
2115$('.filters_wrapper').show(200); 2116$('.filters_wrapper ul.' + type).show(200); 2117$('.filters_wrapper ul:not(.' + type + ')').hide(); 2118}); 2119$('.filters_wrapper .close a').on('click', function(e){ 2120e.preventDefault(); 2121$('.filters_wrapper').hide(200); 2122}); 2123$('.portfolio_next_js').on('click', function(e){ 2124e.preventDefault(); 2125var item=$(this).closest('.portfolio-item').next(); 2126if(item.length){ 2127$('html, body').animate({ 2128scrollTop: item.offset().top - fixStickyHeaderH() 2129}, 500); 2130}}); 2131$('.portfolio_prev_js').on('click', function(e){ 2132e.preventDefault(); 2133var item=$(this).closest('.portfolio-item').prev(); 2134if(item.length){ 2135$('html, body').animate({ 2136scrollTop: item.offset().top - fixStickyHeaderH() 2137}, 500); 2138}}); 2139$('body').on('click', '.scroll > a, a.scroll, .mcb-column.scroll a', function(e){ 2140var urlL=location.href.replace(/#.*/, ''); 2141var urlT=this.href.replace(/#.*/, ''); 2142if(urlL==urlT){ 2143e.preventDefault(); 2144} 2145var hash=this.hash; 2146var headerFixedAbH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0; 2147var tabsHeaderH=$(hash).siblings('.ui-tabs-nav').innerHeight()||0; 2148var offset=headerFixedAbH + tabsHeaderH + adminBarH(); 2149if($(this).parents('.table_of_content').length){ 2150offset +=30; 2151} 2152if(hash&&$(hash).length){ 2153$('html, body').animate({ 2154scrollTop: $(hash).offset().top - offset - fixStickyHeaderH() 2155}, 500); 2156}}); 2157$('.jq-tabs').tabs(); 2158$('.fake-tabs > ul').on('click', 'a', function(e){ 2159e.preventDefault(); 2160var $li=$(this).closest('li'); 2161var tab=$li.data('tab'); 2162if($li.hasClass('active')){ 2163return; 2164} 2165$li.addClass('active') 2166.siblings().removeClass('active'); 2167$('.tab-'+ tab).addClass('active').attr('tabindex', 0) 2168.siblings('.tab').removeClass('active').attr('tabindex', -1); 2169$(window).trigger('resize'); 2170}); 2171$('body').on('click', '.mfn-toggle .toggle-bar', function(){ 2172var $parent=$(this).parent(), 2173$toggle=$(this).closest('.mfn-toggle'); 2174var speed=100; 2175if($parent.hasClass('active')){ 2176if($toggle.is('.mfn-toggle-open-all')){ 2177return; 2178} 2179$parent.removeClass('active') 2180.children('.toggle-content').slideUp(speed); 2181}else{ 2182$parent.addClass('active') 2183.children('.toggle-content').slideDown(speed); 2184if(! $toggle.is('.mfn-toggle-open-more')){ 2185$parent.siblings().removeClass('active') 2186.children('.toggle-content').slideUp(speed); 2187}} 2188setTimeout(function(){ 2189$(window).trigger('resize'); 2190}, speed); 2191}); 2192$('.mfn-acc').each(function(){ 2193var el=$(this); 2194if(el.hasClass('openAll')){ 2195el.find('.question') 2196.addClass('active') 2197.children(".answer") 2198.show(); 2199}else{ 2200var activeTab=el.attr('data-active-tab'); 2201if(el.hasClass('open1st')) activeTab=1; 2202if(activeTab){ 2203el.find('.question').eq(activeTab - 1) 2204.addClass('active') 2205.children(".answer") 2206.show(); 2207}} 2208}); 2209$('.mfn-acc .question > .title').on('click', function(){ 2210if($(this).parent().hasClass('active')){ 2211$(this).parent().removeClass('active').children(".answer").slideToggle(100); 2212}else{ 2213if(!$(this).closest('.mfn-acc').hasClass('toggle')){ 2214$(this).parents(".mfn-acc").children().each(function(){ 2215if($(this).hasClass('active')){ 2216$(this).removeClass('active').children(".answer").slideToggle(100); 2217}}); 2218} 2219$(this).parent().addClass('active'); 2220$(this).next(".answer").slideToggle(100); 2221} 2222setTimeout(function(){ 2223$(window).trigger('resize'); 2224}, 50); 2225}); 2226$('.wpb_wrapper .vc_tta-panel-title').on('click', 'a', function(){ 2227setTimeout(function(){ 2228$(window).trigger('resize'); 2229}, 50); 2230}); 2231$('.helper .link.toggle').on('click', function(e){ 2232e.preventDefault(); 2233var el=$(this); 2234var id=el.attr('data-rel'); 2235var parent=el.closest('.helper'); 2236if(el.hasClass('active')){ 2237el.removeClass('active'); 2238parent.find('.helper_content > .item-' + id).slideUp(200); 2239setTimeout(function(){ 2240parent.find('.helper_content > .item-' + id).removeClass('active'); 2241}, 200); 2242}else{ 2243parent.find('.links > .link.active').removeClass('active'); 2244parent.find('.helper_content > .item.active').slideUp(200); 2245el.addClass('active'); 2246parent.find('.helper_content > .item-' + id).addClass('active').hide().slideDown(200); 2247} 2248setTimeout(function(){ 2249$(window).trigger('resize'); 2250}, 50); 2251}); 2252function mfnJPlayer(){ 2253$('.mfn-jplayer').each(function(){ 2254var m4v=$(this).attr('data-m4v'), 2255poster=$(this).attr('data-img'), 2256swfPath=$(this).attr('data-swf'), 2257cssSelectorAncestor='#' + $(this).closest('.mfn-jcontainer').attr('id'); 2258$(this).jPlayer({ 2259ready: function(){ 2260$(this).jPlayer('setMedia', { 2261m4v: m4v, 2262poster: poster 2263}); 2264}, 2265play: function(){ 2266$(this).jPlayer('pauseOthers'); 2267}, 2268size: { 2269cssClass: 'jp-video-360p', 2270width: '100%', 2271height: '360px' 2272}, 2273swfPath: swfPath, 2274supplied: 'm4v', 2275cssSelectorAncestor: cssSelectorAncestor, 2276wmode: 'opaque' 2277}); 2278}); 2279} 2280mfnJPlayer(); 2281$('body').on('click', '.mfn-love', function(){ 2282var el=$(this); 2283if(el.hasClass('loved')){ 2284return false;
2285} 2286el.addClass('loved'); 2287var post={ 2288action: 'mfn_love', 2289post_id: el.attr('data-id') 2290}; 2291$.post(mfn.ajax, post, function(data){ 2292el.find('.label').html(data); 2293}); 2294return false; 2295}); 2296$('#back_to_top').on('click', function(){ 2297$('body,html').animate({ 2298scrollTop: 0 2299}, 500); 2300return false; 2301}); 2302$('.section .section-nav').on('click', function(){ 2303var el=$(this); 2304var section=el.closest('.section'); 2305var offset=fixStickyHeaderH() + adminBarH(); 2306if(el.hasClass('prev')){ 2307if(section.prev().length){ 2308$('html, body').animate({ 2309scrollTop: section.prev().offset().top - offset 2310}, 500); 2311}}else{ 2312if(section.next().length){ 2313$('html, body').animate({ 2314scrollTop: section.next().offset().top - offset 2315}, 500); 2316}} 2317}); 2318$('#Intro .intro-next').on('click', function(){ 2319var intro=$(this).closest('#Intro'); 2320if(intro.next().length){ 2321$('html, body').animate({ 2322scrollTop: intro.next().offset().top - fixStickyHeaderH() - adminBarH() 2323}, 500); 2324}}); 2325$('.widget_mfn_menu ul.submenus-click').each(function(){ 2326var el=$(this); 2327$('a', el).on('click', function(e){ 2328var li=$(this).closest('li'); 2329if(li.hasClass('hover')||!li.hasClass('menu-item-has-children')){ 2330}else{ 2331e.preventDefault(); 2332li.siblings('li').removeClass('hover') 2333.find('li').removeClass('hover'); 2334$(this).closest('li').addClass('hover'); 2335}}); 2336}); 2337function addToCart(){ 2338$('body').on('click', '.add_to_cart_button', function(){ 2339$(this) 2340.closest('.product') 2341.addClass('adding-to-cart') 2342.removeClass('added-to-cart'); 2343}); 2344$('body').on('added_to_cart', function(){ 2345$('.adding-to-cart') 2346.removeClass('adding-to-cart') 2347.addClass('added-to-cart'); 2348}); 2349} 2350addToCart(); 2351$('.woocommerce-product-rating').on('click', function(){ 2352var el; 2353if($('.product_tabs_wrapper.fake-tabs').length){ 2354el=$('.product_tabs_wrapper.fake-tabs'); 2355$('li[data-tab="reviews"] a', el).trigger('click'); 2356}else if($('.woocommerce-content .jq-tabs').length){ 2357el=$('.woocommerce-content .jq-tabs'); 2358$('.ui-tabs-nav a[href="#tab-reviews"]', el).trigger('click'); 2359}else{ 2360el=$('.woocommerce-content .accordion'); 2361$('#reviews').closest('.question:not(.active)').children('.title').trigger('click'); 2362} 2363var actionBarH=$('.header-fixed.ab-show #Action_bar').innerHeight()||0; 2364var offset=actionBarH + adminBarH(); 2365$('html, body').animate({ 2366scrollTop: el.offset().top - offset - fixStickyHeaderH() 2367}, 500); 2368}); 2369$('body').on('click', '.quantity-change', function(e){ 2370e.preventDefault(); 2371var $el=$(this), 2372$input=$(this).siblings('input'); 2373var step=parseFloat($input.attr('step'))||1, 2374minAttr=$input.attr('min'), 2375min=typeof minAttr!==typeof undefined&&minAttr!==false ? parseFloat(minAttr):1, 2376max=parseFloat($input.attr('max'))||9999, 2377current=$input.val() ? parseFloat($input.val()):min, 2378val=0; 2379if($el.hasClass('plus')){ 2380val=current + step; 2381if(val > max){ 2382val=current; 2383}}else{ 2384val=current - step; 2385if(val < min){ 2386val=current; 2387}} 2388val=Math.round(val * 10) / 10; 2389$input.val(val).trigger('change'); 2390}); 2391$(document).ajaxComplete(function(){ 2392setTimeout(function(){ 2393$(window).trigger('resize'); 2394mfnSidebar(); 2395}, 100); 2396}); 2397$(window).on('debouncedresize', function(){ 2398mfnIsotope.runIsotopes(false); 2399mfnFooter(); 2400headerWidth(); 2401mfnSidebar(); 2402mfnIntroH(); 2403creativeHeaderFix(); 2404}); 2405mfnSliderBlog(); 2406mfnSliderClients(); 2407mfnSliderOffer(); 2408mfnSliderOfferThumb(); 2409mfnSliderShop(); 2410sliderPortfolio(); 2411sliderTestimonials(); 2412mfnFooter(); 2413headerWidth(); 2414mfnSidebar(); 2415mfnIntroH(); 2416hashNav(); 2417gdpr(); 2418tableContentAttachId(); 2419}); 2420$(window).on('scroll', function(){ 2421mfnSticky(); 2422mfnMobileSticky(); 2423backToTopSticky(); 2424onePageActive(); 2425stickyWrap.scroll(); 2426}); 2427$(window).on('load', function(){ 2428queryLoopMasonry(); 2429setTimeout(function(){ 2430topBarTop=parseInt($('#Top_bar').css('top'), 10); 2431var scrollPos=$(window).scrollTop(); 2432if(scrollPos > 0){ 2433window.scrollTo(0, 0); 2434$(window).scrollTop(0); 2435topBarTop=parseInt($('#Top_bar').css('top'), 10); 2436window.scrollTo(0, scrollPos); 2437} 2438if(topBarTop < 0){ 2439topBarTop=0; 2440} 2441topBarTop=topBarTop + 'px'; 2442},1000); 2443alignHeights(); 2444function elementorDisableOnePage(){ 2445if(! $('body').hasClass('one-page')){ 2446return false; 2447} 2448setTimeout(function(){ 2449var doc=$(document), 2450$events=$("a[href*='#']").length ? $._data(doc[0],"events"):null; 2451if($events&&$events.click){ 2452for(var i=$events.click.length-1; i>=0; i--){ 2453var handler=$events.click[i]; 2454if(handler&&handler.namespace!="mPS2id"&&handler.selector==='a[href*="#"]') doc.off("click",handler.handler); 2455}} 2456}, 300); 2457} 2458elementorDisableOnePage(); 2459function liveSearchItemZindex(){ 2460$('.column_livesearch').each(function(){ 2461$(this).closest('.mcb-wrap').addClass('has-live-search-element') 2462.closest('.mcb-section').addClass('has-live-search-element'); 2463}); 2464} 2465liveSearchItemZindex(); 2466function retinaLogo(){ 2467if(window.devicePixelRatio <=1){ 2468return false;
2469} 2470var el, src, height, 2471parent=$('#Top_bar #logo'), 2472parentH=parent.data('height'); 2473var maxH={ 2474sticky: { 2475init: 35, 2476noPadding: 60, 2477overflow: 110 2478}, 2479mobile: { 2480mini: 50, 2481miniNoPadding: 60 2482}, 2483mobileSticky: { 2484init: 50, 2485noPadding: 60, 2486overflow: 80 2487}}; 2488$('#Top_bar #logo img').each(function(index){ 2489el=$(this); 2490src=el.data('retina'); 2491height=el.height()||0; 2492if(el.hasClass('logo-main')){ 2493if($('body').hasClass('logo-overflow')){ 2494}else if(height > parentH){ 2495height=parentH; 2496}} 2497if(el.hasClass('logo-sticky')){ 2498if($('body').hasClass('logo-overflow')){ 2499if(height > maxH.sticky.overflow){ 2500height=maxH.sticky.overflow; 2501}}else if($('body').hasClass('logo-no-sticky-padding')){ 2502if(height > maxH.sticky.noPadding){ 2503height=maxH.sticky.noPadding; 2504}}else if(height > maxH.sticky.init){ 2505height=maxH.sticky.init; 2506}} 2507if(el.hasClass('logo-mobile')){ 2508if($('body').hasClass('mobile-header-mini')){ 2509if(parent.data('padding') > 0){ 2510if(height > maxH.mobile.mini){ 2511height=maxH.mobile.mini; 2512}}else{ 2513if(height > maxH.mobile.miniNoPadding){ 2514height=maxH.mobile.miniNoPadding; 2515}} 2516}} 2517if(el.hasClass('logo-mobile-sticky')){ 2518if($('body').hasClass('logo-no-sticky-padding')){ 2519if(height > maxH.mobileSticky.noPadding){ 2520height=maxH.mobileSticky.noPadding; 2521}}else if(height > maxH.mobileSticky.init){ 2522height=maxH.mobileSticky.init; 2523}} 2524if(src){ 2525el.parent().addClass('retina'); 2526el.attr('src', src).css('max-height', height + 'px'); 2527}}); 2528} 2529setTimeout(function(){ 2530retinaLogo(); 2531}, 0); 2532$('.before_after.twentytwenty-container').each(function(){ 2533var el=$(this); 2534el.imagesLoaded().done(function(instance, image){ 2535queueMicrotask(()=> el.twentytwenty()); 2536}); 2537}); 2538if(lightboxAttr){ 2539$('a[data-rel^="prettyPhoto"]:not(.popup-link), a[rel^="lightbox"]:not(.popup-link)').each(function(){ 2540$(this).off('click.prettyphoto'); 2541}); 2542} 2543mfnStickyH(); 2544mfnSticky(); 2545mfnMobileSticky(); 2546mfnIntroH(); 2547setTimeout(function(){ 2548$(window).trigger('resize'); 2549mfnSidebar(); 2550sliderSlider(); 2551hashNav(); 2552stickyWrap.init(); 2553}, 0); 2554}); 2555$(document).on('mouseup',function(e){ 2556if($('.widget_mfn_menu ul.submenus-click').length&&($('.widget_mfn_menu ul.submenus-click').has(e.target).length===0)){ 2557$('.widget_mfn_menu ul.submenus-click li').removeClass('hover'); 2558} 2559if($('.menu_wrapper').length&&($('.menu_wrapper').has(e.target).length===0)){ 2560if($('.responsive-menu-toggle').hasClass('active')){ 2561$('.responsive-menu-toggle').trigger('click'); 2562}} 2563if($('#popup_contact').length&&($('#popup_contact').has(e.target).length===0)){ 2564if($('#popup_contact').hasClass('focus')){ 2565$('#popup_contact .footer_button').trigger('click'); 2566}} 2567if($('html').hasClass('mfn-ofcs-opened')&&!$('.mfn-off-canvas-sidebar').is(e.target)&&$('.mfn-off-canvas-sidebar').has(e.target).length===0){ 2568$('html').removeClass('mfn-ofcs-opened'); 2569}}); 2570function slickAutoResponsive(slider, max, size, round=false){ 2571if(!max){ 2572max=5; 2573} 2574if(!size){ 2575size=380; 2576} 2577var width=slider.width()||0; 2578var count; 2579if(round){ 2580count=Math.floor(width / size); 2581}else{ 2582count=Math.ceil(width / size); 2583} 2584if(count < 1) count=1; 2585if(count > max) count=max; 2586return count; 2587} 2588function mfnSliderOfferThumb(){ 2589var pager=function(el, i){ 2590var img=$(el.$slides[i]).find('.thumbnail:first').html(); 2591return '<a>' + img + '</a>'; 2592}; 2593$('.offer_thumb_ul').each(function(){ 2594var slider=$(this); 2595slider.slick({ 2596cssEase: 'ease-out', 2597arrows: false, 2598dots: true, 2599infinite: true, 2600touchThreshold: 10, 2601speed: 300, 2602adaptiveHeight: true, 2603appendDots: slider.siblings('.slider_pagination'), 2604customPaging: pager, 2605rtl: rtl ? true:false, 2606autoplay: mfn.slider.offer ? true:false, 2607autoplaySpeed: mfn.slider.offer ? mfn.slider.offer:5000, 2608slidesToShow: 1, 2609slidesToScroll: 1 2610}); 2611}); 2612} 2613function mfnSliderOffer(){ 2614$('.offer_ul').each(function(){ 2615var slider=$(this); 2616slider.slick({ 2617cssEase: 'ease-out', 2618dots: false, 2619infinite: true, 2620touchThreshold: 10, 2621speed: 300, 2622prevArrow: '<a class="slider_prev" href="#"><span class="button_icon"><i class="icon-up-open-big" aria-label="previous slide"></i></span></a>', 2623nextArrow: '<a class="slider_next" href="#"><span class="button_icon"><i class="icon-down-open-big" aria-label="next slide"></i></span></a>', 2624adaptiveHeight: true, 2625rtl: rtl ? true:false, 2626autoplay: mfn.slider.offer ? true:false, 2627autoplaySpeed: mfn.slider.offer ? mfn.slider.offer:5000, 2628slidesToShow: 1, 2629slidesToScroll: 1 2630}); 2631slider.siblings('.slider_pagination').addClass('show'); 2632slider.on('afterChange', function(event, slick, currentSlide, nextSlide){ 2633slider.siblings('.slider_pagination').find('.current').text(currentSlide + 1); 2634}); 2635}); 2636} 2637function mfnSliderShop(){ 2638var pager=function(el, i){ 2639return '<a>' + i + '</a>'; 2640}; 2641$('.shop_slider_ul').each(function(){ 2642var slider=$(this); 2643var slidesToShow=4; 2644var count=slider.closest('.shop_slider').data('count'); 2645if(slidesToShow > count){ 2646slidesToShow=count; 2647if(slidesToShow < 1){ 2648slidesToShow=1; 2649}} 2650slider.slick({ 2651cssEase: 'ease-out', 2652dots: true, 2653infinite: true, 2654touchThreshold: 10, 2655speed: 300, 2656prevArrow: '<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>', 2657nextArrow: '<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>', 2658appendArrows: slider.siblings('.blog_slider_header').children('.slider_navigation'), 2659appendDots: slider.siblings('.slider_pager'), 2660customPaging: pager, 2661rtl: rtl ? true:false, 2662autoplay: mfn.slider.shop ? true:false, 2663autoplaySpeed: mfn.slider.shop ? mfn.slider.shop:5000, 2664slidesToShow: slickAutoResponsive(slider, slidesToShow), 2665slidesToScroll: slickAutoResponsive(slider, slidesToShow) 2666}); 2667$(window).on('debouncedresize', function(){ 2668slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, slidesToShow), false); 2669slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, slidesToShow), true); 2670}); 2671}); 2672} 2673function mfnSliderBlog(){ 2674var pager=function(el, i){ 2675return '<a>' + i + '</a>'; 2676}; 2677$('.blog_slider_ul').each(function(){ 2678var slider=$(this); 2679var slidesToShow=4; 2680var count=slider.closest('.blog_slider').data('count'); 2681var singlePostMode=slider.closest('.blog_slider').hasClass('single_post_mode'); 2682if(slidesToShow > count){ 2683slidesToShow=count; 2684if(slidesToShow < 1){ 2685slidesToShow=1; 2686}} 2687if(singlePostMode){ 2688slidesToShow=1; 2689} 2690slider.slick({ 2691cssEase: 'ease-out', 2692dots: true, 2693infinite: true, 2694touchThreshold: 10, 2695speed: 300, 2696prevArrow: '<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>', 2697nextArrow: '<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>', 2698appendArrows: slider.siblings('.blog_slider_header').children('.slider_navigation'), 2699appendDots: slider.siblings('.slider_pager'), 2700customPaging: pager, 2701rtl: rtl ? true:false, 2702autoplay: mfn.slider.blog ? true:false, 2703autoplaySpeed: mfn.slider.blog ? mfn.slider.blog:5000, 2704slidesToShow: slickAutoResponsive(slider, slidesToShow), 2705slidesToScroll: slickAutoResponsive(slider, slidesToShow) 2706}); 2707$(window).on('debouncedresize', function(){ 2708slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, slidesToShow), false); 2709slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, slidesToShow), true); 2710}); 2711}); 2712} 2713function mfnSliderClients(){
2714$('.clients_slider_ul').each(function(){ 2715var slider=$(this); 2716var clientsPerSlide=slider.closest('.clients_slider').attr('data-client-per-slide') ? parseInt(slider.closest('.clients_slider').attr('data-client-per-slide')):4; 2717var navigationPosition=slider.closest('.clients_slider').attr('data-navigation-position')||false; 2718var appendArrows=(navigationPosition=='content') ? slider:slider.siblings('.blog_slider_header').children('.slider_navigation'); 2719var size=400; 2720var calc=()=> slickAutoResponsive(slider, clientsPerSlide, size - (clientsPerSlide * 40), true); 2721var calcScroll=calc; 2722var slidesToScroll=slider.closest('.clients_slider').attr('data-slides-to-scroll') ? parseInt(slider.closest('.clients_slider').attr('data-slides-to-scroll')):calc(); 2723if(1===slidesToScroll){ 2724calcScroll=()=> slickAutoResponsive(slider, 1, size - (clientsPerSlide * 40), true); 2725} 2726slider.slick({ 2727cssEase: 'ease-out', 2728dots: false, 2729infinite: true, 2730touchThreshold: 10, 2731speed: 300, 2732prevArrow: '<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>', 2733nextArrow: '<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>', 2734appendArrows: appendArrows, 2735rtl: rtl ? true:false, 2736autoplay: mfn.slider.clients ? true:false, 2737autoplaySpeed: mfn.slider.clients ? mfn.slider.clients:5000, 2738slidesToShow: calc(), 2739slidesToScroll: calcScroll() 2740}); 2741$(window).on('debouncedresize', function(){ 2742slider.slick('slickSetOption', 'slidesToShow', calc(), false); 2743slider.slick('slickSetOption', 'slidesToScroll', calcScroll(), true); 2744}); 2745}); 2746} 2747function sliderPortfolio(){ 2748$('.portfolio_slider_ul').each(function(){ 2749var slider=$(this); 2750var size=380; 2751var scroll=5; 2752if(slider.closest('.portfolio_slider').data('size')){ 2753size=slider.closest('.portfolio_slider').data('size'); 2754} 2755if(slider.closest('.portfolio_slider').data('size')){ 2756scroll=slider.closest('.portfolio_slider').data('scroll'); 2757} 2758slider.slick({ 2759cssEase: 'ease-out', 2760dots: false, 2761infinite: true, 2762touchThreshold: 10, 2763speed: 300, 2764prevArrow: '<a class="slider_nav slider_prev themebg" href="#"><i class="icon-left-open-big" aria-label="previous slide"></i></a>', 2765nextArrow: '<a class="slider_nav slider_next themebg" href="#"><i class="icon-right-open-big" aria-label="next slide"></i></a>', 2766rtl: rtl ? true:false, 2767autoplay: mfn.slider.portfolio ? true:false, 2768autoplaySpeed: mfn.slider.portfolio ? mfn.slider.portfolio:5000, 2769slidesToShow: slickAutoResponsive(slider, 5, size), 2770slidesToScroll: slickAutoResponsive(slider, scroll, size) 2771}); 2772$(window).on('debouncedresize', function(){ 2773slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider, 5, size), false); 2774slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider, scroll, size), true); 2775}); 2776}); 2777} 2778function promoBarSlider(){ 2779$('.promo_bar_slider').each(function(){ 2780var speed=parseInt($(this).attr('data-speed')) * 1000; 2781var $slider=$(this); 2782$slider.find('.pbs_one').first().addClass('pbs-active'); 2783$slider.addClass('mfn-initialized'); 2784function changeSlide(){ 2785var $current=$slider.find('.pbs_one.pbs-active'); 2786var $next=$slider.find('.pbs_one.pbs-active').next(); 2787if(!$next.length) $next=$slider.find('.pbs_one').first(); 2788$current.addClass('pbs-active-ends'); 2789setTimeout(function(){ 2790$current.removeClass('pbs-active pbs-active-ends'); 2791$next.addClass('pbs-active'); 2792}, 300); 2793} 2794if($slider.find('.pbs_one').length > 1){ 2795setInterval(changeSlide, speed); 2796}}); 2797} 2798function queryLoopSlider(){ 2799$('body:not(.mfn-ui) .mfn-looped-items-slider').each(function(i){ 2800const swipers=[]; 2801var $slider=$(this); 2802let swiperClass='mfn-ql-slider-'+i; 2803$slider.addClass(swiperClass); 2804var swiperParams={ 2805spaceBetween: parseInt($slider.attr('data-space_desktop')), 2806slidesPerView: parseInt($slider.attr('data-columns-mobile')), 2807}; 2808if(typeof $slider.attr('data-dots')!=='undefined'&&$slider.attr('data-dots')=='1'){ 2809$slider.parent().append('<div class="swiper-pagination mfn-swiper-pagination-'+i+'"></div>'); 2810swiperParams['pagination']={ 2811el: ".mfn-swiper-pagination-"+i, 2812clickable: true, 2813};} 2814if($slider.attr('data-infinity')=='1'){ 2815swiperParams['loop']=true; 2816} 2817if($slider.attr('data-arrows')=='1'){ 2818$slider.parent().append('<div class="swiper-button-next mfn-swiper-arrow mfn-swiper-button-next-'+i+'"><i class="'+$slider.attr('data-arrownext')+'"></i></div><div class="swiper-button-prev mfn-swiper-arrow mfn-swiper-button-prev-'+i+'"><i class="'+$slider.attr('data-arrowprev')+'"></i></div>'); 2819swiperParams['navigation']={ 2820nextEl: ".mfn-swiper-button-next-"+i, 2821prevEl: ".mfn-swiper-button-prev-"+i, 2822};} 2823if(!$('body').hasClass('mfn-ui')&&typeof $slider.attr('data-autoplay')!=='undefined'&&parseFloat($slider.attr('data-autoplay')) > 0){ 2824swiperParams['autoplay']={ 2825delay: parseFloat($slider.attr('data-autoplay')), 2826disableOnInteraction: true, 2827};} 2828if(!$('body').hasClass('mfn-ui')&&typeof $slider.attr('data-mousewheel')!=='undefined'&&$slider.attr('data-mousewheel') > 0){ 2829swiperParams['mousewheel']=true; 2830} 2831if($('body').hasClass('mfn-ui')){ 2832swiperParams['allowTouchMove']=false; 2833} 2834swiperParams['breakpoints']={ 2835768: { 2836spaceBetween: parseInt($slider.attr('data-space_desktop')), 2837slidesPerView: parseInt($slider.attr('data-columns-tablet')) 2838}, 2839960: {
2840spaceBetween: parseInt($slider.attr('data-space_desktop')), 2841slidesPerView: parseInt($slider.attr('data-columns')) 2842}}; 2843swipers[i]=new Swiper('.'+swiperClass, swiperParams); 2844swipers[i].on('slideChange', function (){ 2845$(window).trigger('scroll'); 2846}); 2847/*swipers[i].on('beforeSlideChangeStart', function(swiper){ 2848$(swiper.el).find('.mcb-column.animate').each(function(){ 2849$(this).removeClass($(this).attr('data-anim-type')); 2850}); 2851})*/ 2852}); 2853} 2854function sliderSlider(){ 2855var pager=function(el, i){ 2856return '<a>' + i + '</a>'; 2857}; 2858$('.content_slider_ul').each(function(){ 2859var slider=$(this); 2860var count=1; 2861var centerMode=false; 2862if(slider.closest('.content_slider').hasClass('carousel')){ 2863count=slickAutoResponsive(slider); 2864$(window).on('debouncedresize', function(){ 2865slider.slick('slickSetOption', 'slidesToShow', slickAutoResponsive(slider), false); 2866slider.slick('slickSetOption', 'slidesToScroll', slickAutoResponsive(slider), true); 2867}); 2868} 2869if(slider.closest('.content_slider').hasClass('center')){ 2870centerMode=true; 2871} 2872slider.slick({ 2873cssEase: 'cubic-bezier(.4,0,.2,1)', 2874dots: true, 2875infinite: true, 2876touchThreshold: 10, 2877speed: 300, 2878centerMode: centerMode, 2879centerPadding: '20%', 2880prevArrow: '<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>', 2881nextArrow: '<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>', 2882adaptiveHeight: true, 2883appendDots: slider.siblings('.slider_pager'), 2884customPaging: pager, 2885rtl: rtl ? true:false, 2886autoplay: mfn.slider.slider ? true:false, 2887autoplaySpeed: mfn.slider.slider ? mfn.slider.slider:5000, 2888slidesToShow: count, 2889slidesToScroll: count 2890}); 2891var clickEvent=false; 2892slider.on('dragstart', '.slick-slide a[rel="lightbox"]', function(event){ 2893if(lightboxAttr){ 2894var events=$._data(this,'events'); 2895if(events&&Object.prototype.hasOwnProperty.call(events, 'click')){ 2896clickEvent=events.click[0]; 2897$(this).addClass('off-click').off('click'); 2898}} 2899}); 2900slider.on('afterChange', function(event, slick, currentSlide, nextSlide){ 2901if(lightboxAttr){ 2902$('a.off-click[rel="lightbox"]', slider).removeClass('off-click').on('click', clickEvent); 2903}}); 2904}); 2905} 2906function sliderTestimonials(){ 2907var pager=function(el, i){ 2908var img=$(el.$slides[i]).find('.single-photo-img').html(); 2909return '<a>' + img + '</a>'; 2910}; 2911$('.testimonials_slider_ul').each(function(){ 2912var slider=$(this); 2913slider.slick({ 2914cssEase: 'ease-out', 2915dots: true, 2916infinite: true, 2917touchThreshold: 10, 2918speed: 300, 2919prevArrow: '<a class="button the-icon slider_prev" href="#"><span class="button_icon"><i class="icon-left-open-big" aria-label="previous slide"></i></span></a>', 2920nextArrow: '<a class="button the-icon slider_next" href="#"><span class="button_icon"><i class="icon-right-open-big" aria-label="next slide"></i></span></a>', 2921adaptiveHeight: true, 2922appendDots: slider.siblings('.slider_pager'), 2923customPaging: pager, 2924rtl: rtl ? true:false, 2925autoplay: mfn.slider.testimonials ? true:false, 2926autoplaySpeed: mfn.slider.testimonials ? mfn.slider.testimonials:5000, 2927slidesToShow: 1, 2928slidesToScroll: 1 2929}); 2930}); 2931} 2932$('.mfn-gdpr-button').on('click', function(){ 2933var closeAnimation=$('.mfn-gdpr-button').attr('data-animation'); 2934var barAligment=$('#mfn-gdpr').attr('data-aligment'); 2935switch(true){ 2936case 'none'===closeAnimation: 2937$('#mfn-gdpr').css('display', 'none'); 2938break; 2939case 'fade'===closeAnimation: 2940$('#mfn-gdpr').fadeOut(300); 2941break; 2942case 'slide'===closeAnimation&&'top'===barAligment: 2943$('#mfn-gdpr').slideUp(300); 2944break; 2945default: 2946$('#mfn-gdpr').slideToggle(300); 2947break; 2948} 2949setTimeout(function(){ 2950$('#mfn-gdpr').removeClass('show'); 2951gdpr_set_cookie(); 2952}, 300); 2953}); 2954function gdpr_set_cookie(){ 2955if(navigator.cookieEnabled){ 2956var cookieDays=$('.mfn-gdpr-button').attr('data-cookiedays')||365; 2957var cookieDate=new Date(); 2958var cookieText=''; 2959cookieDate.setTime(cookieDate.getTime() + (cookieDays * 24 * 60 * 60 * 1000)); 2960cookieText +="mfn-gdpr=1"; 2961cookieText +="; expires=" + cookieDate.toUTCString() + ';'; 2962cookieText +="; path=" + mfn.home_url + '/'; 2963document.cookie=cookieText; 2964}} 2965function gdpr(){ 2966if(document.cookie!==""){ 2967var cookies=document.cookie.split(/; */); 2968for (var cookie of cookies){
2969var [ cookieName ]=cookie.split("="); 2970if(cookieName==='mfn-gdpr'){ 2971return; 2972}} 2973} 2974$('#mfn-gdpr').addClass('show'); 2975} 2976function infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, scrollDirection){ 2977var screenHeight=document.body.clientHeight; 2978if(infiniteLoadContainer.attr('data-attr')===$(infiniteLoadButton).attr('href')){ 2979return; 2980}else if(scrollDirection==='down'){ 2981infiniteLoadContainer.attr('data-attr', $(infiniteLoadButton).attr('href')); 2982infiniteLoadButton.click(); 2983setTimeout(function(){ 2984var heightAfterLoadDifference=(document.body.clientHeight - screenHeight); 2985if(heightAfterLoadDifference < 249){ 2986infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, scrollDirection); 2987}}, 500); 2988}} 2989/* function infiniteScrollPortfolio(){ 2990var infiniteLoadContainer=$('.mfn-infinite-load-button'); 2991var infiniteLoadButton=$('.mfn-infinite-load-button a'); 2992$(infiniteLoadContainer).waypoint({ 2993handler: function(direction){ 2994infiniteScrollFunction(infiniteLoadContainer, infiniteLoadButton, direction); 2995}, 2996offset: function(){ 2997var offsetPosition=-(($(this)[0].element.scrollHeight) - (window.innerHeight / 1.2)); 2998return offsetPosition; 2999}}); 3000} */ 3001$('body').on('click', ".table_of_content .toggle", function(e){ 3002e.preventDefault(); 3003if($('.table_of_content').hasClass('hide')){ 3004$('.table_of_content').removeClass('hide'); 3005$('.table_of_content_wrapper').slideDown({ 3006duration: 400, 3007always: function(){ 3008$('.table_of_content').removeClass('hide_on_start'); 3009}}); 3010}else{ 3011$('.table_of_content_wrapper').slideUp({ 3012duration: 400 3013}); 3014$('.table_of_content').addClass('hide'); 3015}}); 3016function tableContentAttachId(){ 3017const container=$('.table_of_content'); 3018let tags; 3019let anchorNumber=0; 3020let anchorDom=$('.table_of_content_wrapper').find('a'); 3021if(tags=container.attr('data-tags')){ 3022tags=tags.split(/[ ,]+/).join(','); 3023let columns=$('.mfn-builder-content .column_column, .mfn-builder-content .column_heading, .mfn-builder-content .column_fancy_heading, .the_content_wrapper:not(.is-elementor), .elementor-widget:not(.elementor-widget-mfn_table_of_contents)'); 3024$(columns).each(( index, element)=> { 3025let headingsNoticed=$(element).find(tags); 3026$(headingsNoticed).each(( index, element)=> { 3027if($(element).attr('id')){ 3028const idSet='#'+$(element).attr('id'); 3029$(anchorDom[anchorNumber]).attr('href', idSet); 3030}else{ 3031let id=$(anchorDom[anchorNumber]).attr('href'); 3032$(element).attr('id', id.substr(1)); 3033} 3034anchorNumber++; 3035}) 3036}) 3037}} 3038var offCanvasSidebar={ 3039init: function(){ 3040$(document).on('click', '.mfn-off-canvas-switcher', function(e){ 3041e.preventDefault(); 3042if($('html').hasClass('mfn-ofcs-opened')){ 3043$('html').removeClass('mfn-ofcs-opened'); 3044}else{ 3045$('html').addClass('mfn-ofcs-opened'); 3046}}); 3047}, 3048mobile: function(){ 3049if($('.sidebar .widget-area').length&&$('body').hasClass('ofcs-mobile')){ 3050if(!$('.mfn-off-canvas-sidebar').length){ 3051$('body').append('<div class="mfn-off-canvas-overlay"></div><div class="mfn-off-canvas-sidebar"><div class="mfn-off-canvas-switcher"><i class="icon-list" aria-label="off-canvas sidebar toggle"></i></div><div class="mfn-off-canvas-content-wrapper"><div class="mfn-off-canvas-content"></div></div></div>'); 3052} 3053if($('body').hasClass('woocommerce-shop')&&!$('.mfn-woo-filters-wrapper .mfn-off-canvas-switcher').length){ 3054$('.mfn-woo-filters-wrapper').append('<a class="open-filters mfn-off-canvas-switcher" href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" aria-label="off-canvas sidebar toggle"><defs><style>.path{fill:none;stroke:#000;stroke-miterlimit:10;}</style></defs><g><line x1="8" y1="11" x2="14" y2="11" class="path"></line><line x1="2" y1="11" x2="4" y2="11" class="path"></line><line x1="12" y1="5" x2="14" y2="5" class="path"></line><line x1="2" y1="5" x2="8" y2="5" class="path"></line><circle cx="6" cy="11" r="2" class="path"></circle><circle cx="10" cy="5" r="2" class="path"></circle></g></svg></a>'); 3055} 3056var $ofcs=$('.mfn-off-canvas-sidebar .mfn-off-canvas-content-wrapper .mfn-off-canvas-content'); 3057$ofcs.empty(); 3058$('.sidebar .widget-area').each(function(){ 3059$ofcs.append($(this)); 3060}); 3061offCanvasSidebar.init(); 3062}} 3063} 3064function alignHeights(){ 3065var i=0; 3066if(!$('.mfn-align-heights').length) return; 3067$('.mfn-align-heights').each(function(){ 3068var max=0; 3069var newclass='mfn-align-cont-'+i; 3070$(this).addClass(newclass); 3071$("<style type='text/css'> ."+newclass+" .mfn-align-me{ height: auto;} </style>").appendTo("body"); 3072$("."+newclass+" .mfn-align-me").each(function(){ 3073if($(this).outerHeight() > max){max=$(this).outerHeight();}}); 3074$("<style type='text/css'> ."+newclass+" .mfn-align-me{ height: "+max+"px;} </style>").appendTo("body"); 3075i++; 3076}); 3077} 3078$(window).on('debouncedresize', alignHeights); 3079var headerMegamenu={ 3080init: function(){ 3081if($('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children').length){ 3082$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children > a').on('click', function(e){ 3083let href=$(this).attr('href'); 3084if(!$(this).parent('li').hasClass('mfn-li-childrens-show')){ 3085e.preventDefault(); 3086e.stopPropagation(); 3087$(this).siblings('ul').slideDown(300); 3088$(this).parent('li').addClass('mfn-li-childrens-show'); 3089}else if(href==''||href=='#'){ 3090e.preventDefault(); 3091e.stopPropagation(); 3092$(this).siblings('ul').slideUp(300); 3093$(this).parent('li').removeClass('mfn-li-childrens-show'); 3094}}); 3095} 3096if($('.column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li').length){ 3097$('.column_megamenu_menu ul.mfn-mm-menu-horizontal.mfn-mm-submenu-on-click li > a').on('click', function(e){ 3098if($(this).closest('li').hasClass('menu-item-has-children')&&!$(this).closest('li').hasClass('mfn-li-hover')){ 3099e.preventDefault(); 3100e.stopPropagation(); 3101$(this).closest('li').addClass('mfn-li-hover'); 3102}}); 3103} 3104if($('ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu').length){ 3105$('ul.mfn-menu-submenu-on-hover li.mfn-menu-item-has-megamenu, li.mfn-theme-options-menu.mfn-menu-item-has-megamenu').on('mouseenter', function(){ 3106if($(this).find('.mfn-megamenu-full-width').length||$(this).find('.mfn-megamenu-grid').length){ 3107headerMegamenu.setLeft($(this)); 3108}}); 3109} 3110if($('ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu').length){ 3111$('ul.mfn-menu-submenu-on-click li.mfn-menu-item-has-megamenu > a.mfn-menu-link').on('click', function(e){ 3112let href=$(this).attr('href'); 3113if($(this).closest('li').find('.mfn-megamenu-full-width').length||$(this).closest('li').find('.mfn-megamenu-grid').length){ 3114headerMegamenu.setLeft($(this).closest('li')); 3115} 3116if(href==''||href=='#'){ 3117e.preventDefault(); 3118e.stopPropagation(); 3119if($(this).closest('li').hasClass('mfn-li-hover')){ 3120$(this).closest('li').removeClass('mfn-li-hover'); 3121$(document).unbind('click', headerTemplate.bindUnclick); 3122$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay'); 3123}else{ 3124$(this).closest('li').addClass('mfn-li-hover'); 3125$(document).bind('click', headerTemplate.bindUnclick); 3126headerTemplate.animContentAddClass(); 3127}}else if(!$(this).closest('li').hasClass('mfn-li-hover')){ 3128e.preventDefault(); 3129e.stopPropagation(); 3130$('.mfn-header-tmpl ul li.mfn-li-hover').removeClass('mfn-li-hover'); 3131if(!$(this).closest('.mfn-megamenu-menu').length&&!$(this).closest('li.mfn-li-hover').length){ 3132if($('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show').length){ 3133$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show ul').slideUp(); 3134$('.mfn-megamenu-menu.mfn-mm-submenu-toggled li.menu-item-has-children.mfn-li-childrens-show').removeClass('mfn-li-childrens-show'); 3135}} 3136headerTemplate.animContentAddClass(); 3137$(this).parent('li').addClass('mfn-li-hover'); 3138$(document).bind('click', headerTemplate.bindUnclick); 3139}}); 3140}}, 3141setLeft: function($li){ 3142var $mm=$li.find('.mfn-menu-item-megamenu'); 3143var left=$li.offset().left; 3144$mm.css('width', $(window).width()+'px'); 3145$mm.css('left', '-'+left+'px'); 3146}} 3147var footerTemplate={ 3148init: function(){ 3149if($('body').hasClass('mfn-footer-stick')){ 3150footerTemplate.isSticky(); 3151} 3152if($('body').hasClass('mfn-footer-sliding')||$('body').hasClass('mfn-footer-fixed')){ 3153footerTemplate.isSliding(); 3154} 3155return; 3156}, 3157isSticky: function(){ 3158var offsetTop=$('.mfn-footer-tmpl').offset().top + $('.mfn-footer-tmpl').outerHeight(); 3159if(offsetTop < $(window).height()){ 3160$('.mfn-footer-tmpl').addClass('is-sticky'); 3161}else{ 3162$('.mfn-footer-tmpl').removeClass('is-sticky'); 3163}}, 3164isSliding: function(){ 3165var footer=$('.mfn-footer-tmpl').outerHeight(); 3166$('#Content').css('margin-bottom', footer); 3167}} 3168var headerTemplate={
3169hasSticky: false, 3170isMobile: false, 3171offsetScroll: 60, 3172hasBodyOffset: false, 3173height: 0, 3174type: 'default', 3175animContentOnHover: function(){ 3176if($('.mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu').hasClass('mfn-menu-submenu-on-hover')){ 3177$('.mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.mfn-menu-item-has-megamenu, .mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.menu-item-has-children').on('mouseenter', function(){ 3178headerTemplate.animContentAddClass(); 3179}); 3180} 3181$('.mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.mfn-menu-item-has-megamenu, .mfn-header-tmpl.mfn-header-main .mfn-header-menu.mfn-header-mainmenu.mfn-menu-submenu-on-hover > li.menu-item-has-children').on('mouseleave', function(){ 3182$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay'); 3183}); 3184}, 3185animContentAddClass: function(){ 3186if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-blur')){ 3187$('body').addClass('mfn-content-blur'); 3188}else if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-gray')){ 3189$('body').addClass('mfn-content-gray'); 3190}else if($('.mfn-header-tmpl.mfn-header-main').hasClass('mfn-header-content-overlay')){ 3191$('body').addClass('mfn-content-overlay'); 3192}}, 3193openOnClick: function(){ 3194$('.mfn-header-tmpl .mfn-header-menu.mfn-menu-submenu-on-click li.menu-item-has-children > a.mfn-menu-link').off().on('click', function(e){ 3195let href=$(this).attr('href'); 3196if($(this).closest('li').find('.mfn-megamenu-full-width').length||$(this).closest('li').find('.mfn-megamenu-grid').length){ 3197headerMegamenu.setLeft($(this).closest('li')); 3198} 3199if(href==''||href=='#'){ 3200e.preventDefault(); 3201e.stopPropagation(); 3202if($(this).closest('li').hasClass('mfn-li-hover')){ 3203$(this).closest('li').removeClass('mfn-li-hover'); 3204$(document).unbind('click', headerTemplate.bindUnclick); 3205$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay'); 3206}else{ 3207$(this).closest('li').addClass('mfn-li-hover'); 3208$(document).bind('click', headerTemplate.bindUnclick); 3209headerTemplate.animContentAddClass(); 3210}}else if(!$(this).closest('li').hasClass('mfn-li-hover')){ 3211e.preventDefault(); 3212e.stopPropagation(); 3213headerTemplate.animContentAddClass(); 3214$(this).parent('li').addClass('mfn-li-hover'); 3215$(document).bind('click', headerTemplate.bindUnclick); 3216}}); 3217}, 3218bindUnclick: function(e){ 3219var $li=$('.mfn-header-tmpl ul li.mfn-li-hover'); 3220if(!$li.is(e.target)){ 3221$li.removeClass('mfn-li-hover'); 3222$('body').removeClass('mfn-content-gray mfn-content-blur mfn-content-overlay'); 3223$(document).unbind('click', headerTemplate.bindUnclick); 3224}}, 3225closeable: function(){ 3226$('.mfn-header-tmpl .close-closeable-section').on('click', function(){ 3227var $section=$(this).closest('.mcb-section'); 3228$section.addClass('closeable-hidden').slideUp(300, function(){ 3229headerTemplate.resetOffset(); 3230headerTemplate.offset(); 3231}); 3232if(typeof $section.attr('data-close-days')!=='undefined'&&$section.attr('data-close-days')!='0'){ 3233var days=$section.attr('data-close-days'); 3234var uid=$section.attr('data-uid'); 3235var date=new Date(); 3236date.setTime(date.getTime()+(parseInt(days)*24*60*60*1000)); 3237var expires="; expires="+date.toGMTString(); 3238document.cookie="mfn_closed_section="+uid+expires+"; path=/" 3239}}); 3240}, 3241resetOffset: function(){ 3242if(headerTemplate.type!='default'&&headerTemplate.hasBodyOffset){ 3243$('#Wrapper').css({ 'padding-top': $('.mfn-header-tmpl').outerHeight() }); 3244}}, 3245offset: function(){ 3246if(headerTemplate.hasSticky&&!headerTemplate.isMobile) return; 3247headerTemplate.offsetScroll=0; 3248var _screen='default'; 3249if($(window).width() < 767) _screen='header-mobile'; 3250$('.mfn-header-tmpl .mfn-'+_screen+'-section.hide-on-scroll:not(.closeable-hidden)').each(function(){ 3251headerTemplate.offsetScroll +=$(this).outerHeight(); 3252}); 3253}, 3254init: function(){ 3255headerTemplate.hasBodyOffset=false; 3256if($(window).width() < 767&&$('.mfn-header-tmpl').hasClass('mfn-hasMobile')){ 3257headerTemplate.isMobile=true; 3258headerTemplate.type=$('.mfn-header-tmpl').attr('data-mobile-type'); 3259if($('.mfn-header-tmpl').hasClass('mfn-mobile-header-body-offset')){ 3260headerTemplate.hasBodyOffset=true; 3261}else{ 3262headerTemplate.hasBodyOffset=false; 3263}}else{ 3264headerTemplate.isMobile=false; 3265headerTemplate.type=$('.mfn-header-tmpl').attr('data-type'); 3266if($('.mfn-header-tmpl').hasClass('mfn-header-body-offset')){ 3267headerTemplate.hasBodyOffset=true; 3268}else{ 3269headerTemplate.hasBodyOffset=false; 3270}} 3271if($('.mfn-header-tmpl .mfn-menu-submenu-on-click').length){ 3272headerTemplate.openOnClick(); 3273} 3274if($('.mfn-header-tmpl').hasClass('mfn-header-content-blur')||$('.mfn-header-tmpl').hasClass('mfn-header-content-gray')||$('.mfn-header-tmpl').hasClass('mfn-header-content-overlay')){ 3275headerTemplate.animContentOnHover(); 3276} 3277if($('.mfn-header-tmpl').hasClass('mfn-hasSticky')){ 3278headerTemplate.hasSticky=true; 3279}else{ 3280headerTemplate.hasSticky=false; 3281} 3282if($('body style.tmp-mfn-header-template').length) $('body style.tmp-mfn-header-template').remove(); 3283if($('.mfn-header-tmpl .close-closeable-section').length) headerTemplate.closeable(); 3284if($('body').hasClass('mfn-header-scrolled')&&!$('.mfn-builder-active').length) $('body').removeClass('mfn-header-scrolled'); 3285headerTemplate.getHeight(); 3286headerTemplate.offset(); 3287headerTemplate.scroll(); 3288if($(window).scrollTop() > 10){
3289$(window).trigger('scroll'); 3290}}, 3291scroll: function(){ 3292if($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-default')&&headerTemplate.hasSticky){ 3293$('body').append('<style class="tmp-mfn-header-template">html body.mfn-header-scrolled{padding-top: '+headerTemplate.height+'px;}</style>'); 3294} 3295$(window).scroll(function(){ 3296var scrolled=$(this).scrollTop(); 3297var scroll_offset=headerTemplate.offsetScroll; 3298if(headerTemplate.hasSticky) scroll_offset=headerTemplate.height; 3299if(scrolled > scroll_offset){ 3300$('body').addClass('mfn-header-scrolled'); 3301if($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-fixed')&&$('.mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)').length){ 3302if(headerTemplate.hasSticky){ 3303$('.mfn-header-tmpl').css({'top': 0}); 3304}else{ 3305$('.mfn-header-tmpl').css({'top': '-'+headerTemplate.offsetScroll+'px'}); 3306}} 3307}else{ 3308$('body').removeClass('mfn-header-scrolled'); 3309if($('.mfn-header-tmpl').hasClass('mfn-header-tmpl-fixed')&&$('.mfn-header-tmpl .hide-on-scroll:not(.closeable-hidden)').length){ 3310$('.mfn-header-tmpl').css({'top': '-'+scrolled+'px'}); 3311}} 3312}); 3313}, 3314getHeight: function(){ 3315headerTemplate.height=$('.mfn-header-tmpl').outerHeight(); 3316if(headerTemplate.type!='default'&&headerTemplate.hasBodyOffset){ 3317$('#Wrapper').css({ 'padding-top':headerTemplate.height }); 3318}else{ 3319$('#Wrapper').removeAttr('style'); 3320} 3321$('.mfn-header-tmpl').removeAttr('style'); 3322}, 3323} 3324document.addEventListener('DOMContentLoaded', ()=> { 3325const images=Array.from(document.querySelectorAll('img.mfn-lazy')); 3326if('IntersectionObserver' in window){ 3327const imageObserver=new IntersectionObserver((entries, observer)=> { 3328entries.forEach(entry=> { 3329if(entry.isIntersecting){ 3330const image=entry.target; 3331image.src=image.dataset.src; 3332imageObserver.unobserve(image); 3333window.dispatchEvent(new Event('resize')); 3334}}); 3335}); 3336images.forEach(img=> imageObserver.observe(img)); 3337}}); 3338})(jQuery); 3339jQuery(".trigger_talk").click(function(){ 3340jQuery(".talk_modal .ekit-popup-btn").trigger("click"); 3341console.log("test"); 3342}) 3343var href=window.location.href; 3344if(href=="https://playabroad.com/universities/"||href=="https://www.playabroad.com/universities/"){ 3345jQuery(".filter_posts form .sf-field-post-meta-degree ul li:nth-of-type(2) input:radio").prop("checked", true).trigger("click"); 3346jQuery(".filter_posts form .sf-field-post-meta-ug_gpa").css("display","none"); 3347} 3348jQuery('.filter_posts form .sf-field-post-meta-degree ul li input').change(function(){ 3349if(jQuery(".filter_posts form .sf-field-post-meta-degree ul li:nth-of-type(2) input:radio").is(':checked')){ 3350jQuery(".filter_posts form .sf-field-post-meta-pg_gpa").css("display","block"); 3351jQuery(".filter_posts form .sf-field-post-meta-ug_gpa").css("display","none"); 3352jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2)").css("transform","translate(-100%, 0px)"); 3353jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3)").css("transform","translate(0%, 0px)"); 3354jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").css("transform","scale(1, 1)"); 3355jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").trigger("click"); 3356jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").trigger("mousedown"); 3357jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("click"); 3358jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("mousedown"); 3359jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("click"); 3360jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("mousedown"); 3361jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-max").text("4.0"); 3362jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-max").val("4.0"); 3363jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("mousedown"); 3364jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("click"); 3365jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("change"); 3366jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-min").text("1.0"); 3367jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-min").val("1.0"); 3368jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("mousedown"); 3369jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("click"); 3370jQuery(".filter_posts form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("change"); 3371}else{ 3372jQuery(".filter_posts form .sf-field-post-meta-ug_gpa").css("display","block"); 3373jQuery(".filter_posts form .sf-field-post-meta-pg_gpa").css("display","none"); 3374jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2)").css("transform","translate(-100%, 0px)"); 3375jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3)").css("transform","translate(0%, 0px)"); 3376jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").css("transform","scale(1, 1)"); 3377jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").trigger("click"); 3378jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").trigger("mousedown"); 3379jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("click"); 3380jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("mousedown"); 3381jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("click"); 3382jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("mousedown"); 3383jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-max").text("4.0"); 3384jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-max").val("4.0"); 3385jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("mousedown"); 3386jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("click"); 3387jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("change"); 3388jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-min").text("1.0"); 3389jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-min").val("1.0"); 3390jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("mousedown"); 3391jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("click"); 3392jQuery(".filter_posts form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("change"); 3393}}); 3394if(href=="https://playabroad.com/"||href=="https://www.playabroad.com/"){ 3395jQuery(".home_2 form .sf-field-post-meta-degree ul li:nth-of-type(2) input:radio").prop("checked", true).trigger("click"); 3396jQuery(".home_2 form .sf-field-post-meta-ug_gpa").css("display","none"); 3397} 3398jQuery('.home_2 form .sf-field-post-meta-degree ul li input').change(function(){ 3399if(jQuery(".home_2 form .sf-field-post-meta-degree ul li:nth-of-type(2) input:radio").is(':checked')){ 3400jQuery(".home_2 form .sf-field-post-meta-pg_gpa").css("display","block"); 3401jQuery(".home_2 form .sf-field-post-meta-ug_gpa").css("display","none"); 3402jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2)").css("transform","translate(-100%, 0px)"); 3403jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3)").css("transform","translate(0%, 0px)"); 3404jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").css("transform","scale(1, 1)"); 3405jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").trigger("click"); 3406jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-connects .noUi-connect").trigger("mousedown"); 3407jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("click"); 3408jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("mousedown"); 3409jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("click"); 3410jQuery(".home_2 form .sf-field-post-meta-ug_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("mousedown"); 3411jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-max").text("4.0"); 3412jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-max").val("4.0"); 3413jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("mousedown"); 3414jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("click"); 3415jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-max").trigger("change"); 3416jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-min").text("1.0"); 3417jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-min").val("1.0"); 3418jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("mousedown"); 3419jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("click"); 3420jQuery(".home_2 form .sf-field-post-meta-ug_gpa .sf-range-min").trigger("change"); 3421}else{ 3422jQuery(".home_2 form .sf-field-post-meta-ug_gpa").css("display","block"); 3423jQuery(".home_2 form .sf-field-post-meta-pg_gpa").css("display","none"); 3424jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2)").css("transform","translate(-100%, 0px)"); 3425jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3)").css("transform","translate(0%, 0px)"); 3426jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").css("transform","scale(1, 1)"); 3427jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").trigger("click"); 3428jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-connects .noUi-connect").trigger("mousedown"); 3429jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("click"); 3430jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(2) div").trigger("mousedown"); 3431jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("click"); 3432jQuery(".home_2 form .sf-field-post-meta-pg_gpa .noUi-base .noUi-origin:nth-of-type(3) div").trigger("mousedown"); 3433jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-max").text("4.0"); 3434jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-max").val("4.0"); 3435jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("mousedown"); 3436jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("click"); 3437jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-max").trigger("change"); 3438jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-min").text("1.0"); 3439jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-min").val("1.0"); 3440jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("mousedown"); 3441jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("click"); 3442jQuery(".home_2 form .sf-field-post-meta-pg_gpa .sf-range-min").trigger("change"); 3443}}); 3444jQuery(document).ready(function(){ 3445jQuery(".radio_countries label").click(function(){ 3446console.log(jQuery(this).attr("for")); 3447item=jQuery(this).attr("for"); 3448if(item=="all"){ 3449jQuery('select[name="place_category"]').prop("selectedIndex", 0).change(); 3450}else if(item=="France"){ 3451jQuery('select[name="place_category"]').val('5').change(); 3452}else if(item=="Germany"){ 3453jQuery('select[name="place_category"]').val('4').change(); 3454}else if(item=="Holland"){ 3455jQuery('select[name="place_category"]').val('8').change(); 3456}else if(item=="Ireland"){ 3457jQuery('select[name="place_category"]').val('3').change(); 3458}else if(item=="Italy"){ 3459jQuery('select[name="place_category"]').val('7').change(); 3460}else if(item=="Spain"){ 3461jQuery('select[name="place_category"]').val('6').change(); 3462}else if(item=="United"){ 3463jQuery('select[name="place_category"]').val('2').change(); 3464}}); 3465}); 3466jQuery(document).ready((function(e){}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.