/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});(function($){'use strict'})(jQuery);(function($){jQuery(document).ready(function($){var gformId=ompaapplication.ompaformid;var numberOnly=new RegExp("^[0-9]*$"),stringOnly=new RegExp("^[a-zA-Z ]*$");alphanumericOnly=new RegExp("^[a-zA-Z0-9 /-]*$");jQuery('body').on('focusout keypress keyup','.ompa_main_contain_row .ompa_main.ompa_only_number_allow input',function(){var fieldvalue=jQuery(this).val();if(!numberOnly.test(fieldvalue)){var newvalue=fieldvalue.substr(0,fieldvalue.length-1);jQuery(this).attr('value',newvalue)}});jQuery('body').on('focusout keypress keyup','.ompa_main_contain_row .ompa_main.ompa_alphabetic_allow input',function(){var fieldvalue=jQuery(this).val();if(!stringOnly.test(fieldvalue)){var newvalue=fieldvalue.substr(0,fieldvalue.length-1);jQuery(this).attr('value',newvalue)}});jQuery('body').on('focusout keypress keyup','.ompa_main_contain_row .ompa_main.ompa_alphanumeric_allow input',function(){var fieldvalue=jQuery(this).val();if(!alphanumericOnly.test(fieldvalue)){var newvalue=fieldvalue.substr(0,fieldvalue.length-1);jQuery(this).attr('value',newvalue)}});jQuery('body #gform_wrapper_'+gformId).addClass('ompa_main_contain_row');jQuery('body').on('change','select.custom_change_additional_income',function(){var formcounter=jQuery('.ompa_main_contain_row ul li #main_income_additional .income_additional_more_row').length;formcounter=formcounter+1;if(formcounter>5){$.alert({title:'',content:'You cannot add more than five additional sources for income.',columnClass:'custom-alert-ompa'})}else{jQuery(this).removeClass('custom_change_additional_income');var selecteValueArr=['Alimony','Automobile Allowance','Boarder Income','Capital Gains','Child Support','Disability','Foster Care','Housing or Parsonage','Interest and Dividends','Mortgage Credit Certificate','Mortgage Differential Payments','Notes Receivable','Public Assistance','Retirement (e.g., Pension, IRA)','Royalty Payments','Separate Maintenance','Social Security','Trust','Unemployment Benefits','VA Compensation','Other'];var selectHtml='';selectHtml+='<div class="income_additional_more_row">';selectHtml+='<div class="ginput_container ginput_container_label"><p><b>Add An Additional Source If Applicable.</b></p></div>';selectHtml+='<div class="ginput_container ginput_container_text">';selectHtml+='<input name="input_21_'+formcounter+'" id="input_'+gformId+'_21_'+formcounter+'" type="number" value="" tabindex="1016" class="large" placeholder="Additional Monthly Income $..." aria-invalid="false">';selectHtml+='</div>';selectHtml+='<div class="ginput_container ginput_container_select">';selectHtml+='<select name="input_22_'+formcounter+'" id="input_'+gformId+'_22_'+formcounter+'" tabindex="1016" class="large gfield_select custom_change_additional_income" aria-invalid="false">';selectHtml+='<option value="" selected="selected" class="gf_placeholder">Source of Additional Income</option>';jQuery.each(selecteValueArr,function(index,value){selectHtml+='<option value="'+value+'">'+value+'</option>'});selectHtml+='</select>';selectHtml+='</div>';selectHtml+='</div>';jQuery('#main_income_additional .income_additional_more_row:last-child').after(selectHtml)}});jQuery('body').on('change','select.custom_co_bro_change_additional_income',function(){var coformcounter=jQuery('.ompa_main_contain_row ul li #main_co_bro_income_additional .income_co_bro_additional_more_row').length;coformcounter=coformcounter+1;if(coformcounter>5){$.alert({title:'',content:'You cannot add more than five additional sources for income.',columnClass:'custom-alert-ompa'})}else{jQuery(this).removeClass('custom_co_bro_change_additional_income');var selecteValueArr=['Alimony','Automobile Allowance','Boarder Income','Capital Gains','Child Support','Disability','Foster Care','Housing or Parsonage','Interest and Dividends','Mortgage Credit Certificate','Mortgage Differential Payments','Notes Receivable','Public Assistance','Retirement (e.g., Pension, IRA)','Royalty Payments','Separate Maintenance','Social Security','Trust','Unemployment Benefits','VA Compensation','Other'];var selectHtml='';selectHtml+='<div class="income_co_bro_additional_more_row">';selectHtml+='<div class="ginput_container ginput_container_label"><p><b>Add An Additional Source If Applicable.</b></p></div>';selectHtml+='<div class="ginput_container ginput_container_text">';selectHtml+='<input name="input_77_'+coformcounter+'" id="input_'+gformId+'_77_'+coformcounter+'" type="number" tabindex="1062" value="" class="large" placeholder="Additional Monthly Income $..." aria-invalid="false">';selectHtml+='</div>';selectHtml+='<div class="ginput_container ginput_container_select">';selectHtml+='<select name="input_78_'+coformcounter+'" id="input_'+gformId+'_78_'+coformcounter+'" tabindex="1062" class="large gfield_select custom_co_bro_change_additional_income" aria-invalid="false">';selectHtml+='<option value="" selected="selected" class="gf_placeholder">Source of Additional Income</option>';jQuery.each(selecteValueArr,function(index,value){selectHtml+='<option value="'+value+'">'+value+'</option>'});selectHtml+='</select>';selectHtml+='</div>';selectHtml+='</div>';jQuery('#main_co_bro_income_additional .income_co_bro_additional_more_row:last-child').after(selectHtml)}});jQuery('body').on('change focusout','.ompa_main_contain_row .gform_body ul li.ompa_main input',function(e){var data={'action':'gfdp_save','form':jQuery('form.gfdp#gform_'+gformId).serialize()};jQuery.post(ompaapplication.ajaxurl,data,function(response){if(response=='form saved'){$.removeCookie('gfdp')}})});jQuery('body').on('change focusout','.ompa_main_contain_row .gform_body ul li.ompa_main select',function(e){var data={'action':'gfdp_save','form':jQuery('form.gfdp#gform_'+gformId).serialize()};jQuery.post(ompaapplication.ajaxurl,data,function(response){if(response=='form saved'){$.removeCookie('gfdp')}})})})})(jQuery);!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,o,n,a;t=function(){var t,o="mCustomScrollbar",n=".mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},i=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,s=!1,c=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(t){var t=e.extend(!0,{},a,t),o=u.call(this);if(t.live){var l=t.liveSelector||this.selector||n,s=e(l);if("off"===t.live){m(l);return}r[l]=setTimeout(function(){s.mCustomScrollbar(t),"once"===t.live&&s.length&&m(l)},500)}else m(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":h(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&!0==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=$(t.scrollButtons.scrollType),f(t),e(o).each(function(){var o=e(this);if(!o.data("mCS")){o.data("mCS",{idx:++i,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data("mCS"),a=n.opt,r=o.data("mcs-axis"),l=o.data("mcs-scrollbar-position"),s=o.data("mcs-theme");r&&(a.axis=r),l&&(a.scrollbarPosition=l),s&&(a.theme=s,f(a)),p.call(this),n&&a.callbacks.onCreate&&"function"==typeof a.callbacks.onCreate&&a.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+c[2]+")").addClass(c[2]),d.update.call(null,o)}})},update:function(t,o){return e(t||u.call(this)).each(function(){var t=e(this);if(t.data("mCS")){var n=t.data("mCS"),a=n.opt,i=e("#mCSB_"+n.idx+"_container"),r=e("#mCSB_"+n.idx),l=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!i.length)return;n.tweenRunning&&j(t),o&&n&&a.callbacks.onBeforeUpdate&&"function"==typeof a.callbacks.onBeforeUpdate&&a.callbacks.onBeforeUpdate.call(this),t.hasClass(c[3])&&t.removeClass(c[3]),t.hasClass(c[4])&&t.removeClass(c[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),v.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||i.css("width",g(i)),n.overflowed=w.call(this),T.call(this),a.autoDraggerLength&&x.call(this),S.call(this),y.call(this);var s=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==a.axis&&(n.overflowed[0]?l[0].height()>l[0].parent().height()?b.call(this):(N(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(b.call(this),"y"===a.axis?B.call(this):"yx"===a.axis&&n.overflowed[1]&&N(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(n.overflowed[1]?l[1].width()>l[1].parent().width()?b.call(this):(N(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(b.call(this),"x"===a.axis?B.call(this):"yx"===a.axis&&n.overflowed[0]&&N(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&a.callbacks.onImageLoad&&"function"==typeof a.callbacks.onImageLoad?a.callbacks.onImageLoad.call(this):3===o&&a.callbacks.onSelectorChange&&"function"==typeof a.callbacks.onSelectorChange?a.callbacks.onSelectorChange.call(this):a.callbacks.onUpdate&&"function"==typeof a.callbacks.onUpdate&&a.callbacks.onUpdate.call(this)),X.call(this)}})},scrollTo:function(t,o){if(void 0!==t&&null!=t)return e(u.call(this)).each(function(){var n=e(this);if(n.data("mCS")){var a=n.data("mCS"),i=a.opt,r={trigger:"external",scrollInertia:i.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,o),s=q.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;s[0]=Y.call(this,s[0],"y"),s[1]=Y.call(this,s[1],"x"),l.moveDragger&&(s[0]*=a.scrollRatio.y,s[1]*=a.scrollRatio.x),l.dur=eo()?0:c,setTimeout(function(){null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",N(n,s[0].toString(),l)),null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",N(n,s[1].toString(),l))},l.timeout)}})},stop:function(){return e(u.call(this)).each(function(){var t=e(this);t.data("mCS")&&j(t)})},disable:function(t){return e(u.call(this)).each(function(){var o=e(this);o.data("mCS")&&(o.data("mCS"),X.call(this,"remove"),B.call(this),t&&b.call(this),T.call(this,!0),o.addClass(c[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var n=e(this);if(n.data("mCS")){var a=n.data("mCS"),i=a.opt,r=e("#mCSB_"+a.idx),l=e("#mCSB_"+a.idx+"_container"),s=e(".mCSB_"+a.idx+"_scrollbar");i.live&&m(i.liveSelector||e(t).selector),X.call(this,"remove"),B.call(this),b.call(this),n.removeData("mCS"),K(this,"mcs"),s.remove(),l.find("img."+c[2]).removeClass(c[2]),r.replaceWith(l.contents()),n.removeClass(o+" _mCS_"+a.idx+" "+c[6]+" "+c[7]+" "+c[5]+" "+c[3]).addClass(c[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){r[e]&&(clearTimeout(r[e]),K(r,e))},h=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},$=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},p=function(){var t=e(this),n=t.data("mCS"),a=n.opt,i=a.autoExpandScrollbar?" "+c[1]+"_expand":"",r=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+c[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+c[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===a.axis?"mCSB_vertical_horizontal":"x"===a.axis?"mCSB_horizontal":"mCSB_vertical",s="yx"===a.axis?r[0]+r[1]:"x"===a.axis?r[1]:r[0],d="yx"===a.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=a.autoHideScrollbar?" "+c[6]:"",f="x"!==a.axis&&"rtl"===n.langDir?" "+c[7]:"";a.setWidth&&t.css("width",a.setWidth),a.setHeight&&t.css("height",a.setHeight),a.setLeft="y"!==a.axis&&"rtl"===n.langDir?"989999px":a.setLeft,t.addClass(o+" _mCS_"+n.idx+u+f).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+a.theme+" "+l+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+a.setTop+"; left:"+a.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),h=e("#mCSB_"+n.idx+"_container");"y"===a.axis||a.advanced.autoExpandHorizontalScroll||h.css("width",g(h)),"outside"===a.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(s)):(m.addClass("mCSB_inside").append(s),h.wrap(d)),_.call(this);var $=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];$[0].css("min-height",$[0].height()),$[1].css("min-width",$[1].width())},g=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],n=t.parent().width();return o[0]>n?o[0]:o[1]>n?o[1]:"100%"},v=function(){var t=e(this).data("mCS"),o=t.opt,n=e("#mCSB_"+t.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var a=Math.ceil(n[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&a>n.parent().width()?n.css({width:a,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this).data("mCS"),o=t.opt,n=e(".mCSB_"+t.idx+"_scrollbar:first"),a=ee(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",i=["<a href='#' class='"+c[13]+"' "+a+" />","<a href='#' class='"+c[14]+"' "+a+" />","<a href='#' class='"+c[15]+"' "+a+" />","<a href='#' class='"+c[16]+"' "+a+" />"],r=["x"===o.axis?i[2]:i[0],"x"===o.axis?i[3]:i[1],i[2],i[3]];o.scrollButtons.enable&&n.prepend(r[0]).append(r[1]).next(".mCSB_scrollTools").prepend(r[2]).append(r[3])},x=function(){var t=e(this).data("mCS"),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),a=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],i=[o.height()/n.outerHeight(!1),o.width()/n.outerWidth(!1)],r=[parseInt(a[0].css("min-height")),Math.round(i[0]*a[0].parent().height()),parseInt(a[1].css("min-width")),Math.round(i[1]*a[1].parent().width())],s=l&&r[1]<r[0]?r[0]:r[1],c=l&&r[3]<r[2]?r[2]:r[3];a[0].css({height:s,"max-height":a[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":r[0]+"px"}),a[1].css({width:c,"max-width":a[1].parent().width()-10})},S=function(){var t=e(this).data("mCS"),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),a=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],i=[n.outerHeight(!1)-o.height(),n.outerWidth(!1)-o.width()],r=[i[0]/(a[0].parent().height()-a[0].height()),i[1]/(a[1].parent().width()-a[1].width())];t.scrollRatio={y:r[0],x:r[1]}},C=function(e,t,o){var n=o?c[0]+"_expanded":"",a=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(c[0]+" "+n),a.toggleClass(c[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(c[0]),a.removeClass(c[1])):(e.addClass(c[0]),a.addClass(c[1])))},w=function(){var t=e(this).data("mCS"),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),a=null==t.overflowed?n.height():n.outerHeight(!1),i=null==t.overflowed?n.width():n.outerWidth(!1),r=n[0].scrollHeight,l=n[0].scrollWidth;return r>a&&(a=r),l>i&&(i=l),[a>o.height(),i>o.width()]},b=function(){var t=e(this),o=t.data("mCS"),n=o.opt,a=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(j(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(r[0].add(i).css("top",0),N(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var l=dx=0;"rtl"===o.langDir&&(dx=Math.abs((l=a.width()-i.outerWidth(!1))/o.scrollRatio.x)),i.css("left",l),r[1].css("left",dx),N(t,"_resetX")}},y=function(){var t,o=e(this),n=o.data("mCS"),a=n.opt;n.bindEvents||(O.call(this),a.contentTouchScroll&&D.call(this),W.call(this),a.mouseWheel.enable&&function n(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),E.call(o[0])):n()},100)}(),z.call(this),H.call(this),a.advanced.autoScrollOnFocus&&P.call(this),a.scrollButtons.enable&&M.call(this),a.keyboard.enable&&U.call(this),n.bindEvents=!0)},B=function(){var t=e(this),o=t.data("mCS"),n=o.opt,a="mCS_"+o.idx,i=".mCSB_"+o.idx+"_scrollbar",r=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+i+" ."+c[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+i+">a"),l=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&r.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&r.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!R()||top.document)).unbind("."+a),r.each(function(){e(this).unbind("."+a)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),K(o.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),o.bindEvents=!1)},T=function(t){var o=e(this),n=o.data("mCS"),a=n.opt,i=e("#mCSB_"+n.idx+"_container_wrapper"),r=i.length?i:e("#mCSB_"+n.idx+"_container"),l=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],s=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==a.axis&&(n.overflowed[0]&&!t?(l[0].add(s[0]).add(l[0].children("a")).css("display","block"),r.removeClass(c[8]+" "+c[10])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&s[0].css("display","none"),r.removeClass(c[10])):(l[0].css("display","none"),r.addClass(c[10])),r.addClass(c[8]))),"y"!==a.axis&&(n.overflowed[1]&&!t?(l[1].add(s[1]).add(l[1].children("a")).css("display","block"),r.removeClass(c[9]+" "+c[11])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&s[1].css("display","none"),r.removeClass(c[11])):(l[1].css("display","none"),r.addClass(c[11])),r.addClass(c[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(c[5]):o.addClass(c[5])},k=function(t){var o=t.type,n=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,a=R()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return n?[t.originalEvent.pageY-n[0]+a[0],t.originalEvent.pageX-n[1]+a[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return n?[t.pageY-n[0]+a[0],t.pageX-n[1]+a[1],!1]:[t.pageY,t.pageX,!1]}},O=function(){var t,o,n,a=e(this),i=a.data("mCS"),r=i.opt,c="mCS_"+i.idx,d=["mCSB_"+i.idx+"_dragger_vertical","mCSB_"+i.idx+"_dragger_horizontal"],u=e("#mCSB_"+i.idx+"_container"),f=e("#"+d[0]+",#"+d[1]),m=r.advanced.releaseDraggableSelectors?f.add(e(r.advanced.releaseDraggableSelectors)):f,h=r.advanced.extraDraggableSelectors?e(!R()||top.document).add(e(r.advanced.extraDraggableSelectors)):e(!R()||top.document);function $(e,o,n,l){if(u[0].idleTimer=r.scrollInertia<233?250:0,t.attr("id")===d[1])var s="x",c=(t[0].offsetLeft-o+l)*i.scrollRatio.x;else var s="y",c=(t[0].offsetTop-e+n)*i.scrollRatio.y;N(a,c.toString(),{dir:s,drag:!0})}f.bind("contextmenu."+c,function(e){e.preventDefault()}).bind("mousedown."+c+" touchstart."+c+" pointerdown."+c+" MSPointerDown."+c,function(i){if(i.stopImmediatePropagation(),i.preventDefault(),Q(i)){s=!0,l&&(document.onselectstart=function(){return!1}),L.call(u,!1),j(a);var c=(t=e(this)).offset(),d=k(i)[0]-c.top,f=k(i)[1]-c.left,m=t.height()+c.top,h=t.width()+c.left;d<m&&d>0&&f<h&&f>0&&(o=d,n=f),C(t,"active",r.autoExpandScrollbar)}}).bind("touchmove."+c,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t.offset(),i=k(e)[0]-a.top,r=k(e)[1]-a.left;$(o,n,i,r)}),e(document).add(h).bind("mousemove."+c+" pointermove."+c+" MSPointerMove."+c,function(e){if(t){var a=t.offset(),i=k(e)[0]-a.top,r=k(e)[1]-a.left;(o!==i||n!==r)&&$(o,n,i,r)}}).add(m).bind("mouseup."+c+" touchend."+c+" pointerup."+c+" MSPointerUp."+c,function(e){t&&(C(t,"active",r.autoExpandScrollbar),t=null),s=!1,l&&(document.onselectstart=null),L.call(u,!0)})},D=function(){var o,n,a,i,r,l,c,d,u,f,m,h,$,p,g=e(this),v=g.data("mCS"),_=v.opt,x="mCS_"+v.idx,S=e("#mCSB_"+v.idx),C=e("#mCSB_"+v.idx+"_container"),w=[e("#mCSB_"+v.idx+"_dragger_vertical"),e("#mCSB_"+v.idx+"_dragger_horizontal")],b=[],y=[],B="yx"===_.axis?"none":"all",T=[],O=C.find("iframe"),D=["touchstart."+x+" pointerdown."+x+" MSPointerDown."+x,"touchmove."+x+" pointermove."+x+" MSPointerMove."+x,"touchend."+x+" pointerup."+x+" MSPointerUp."+x],W=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function E(e){if(!Z(e)||s||k(e)[2]){t=0;return}t=1,$=0,p=0,o=1,g.removeClass("mCS_touch_action");var i=C.offset();n=k(e)[0]-i.top,a=k(e)[1]-i.left,T=[k(e)[0],k(e)[1]]}function I(e){if(Z(e)&&!s&&!k(e)[2]){if(_.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!p||$)&&o){c=G();var t=S.offset(),i=k(e)[0]-t.top,r=k(e)[1]-t.left,l="mcsLinearOut";if(b.push(i),y.push(r),T[2]=Math.abs(k(e)[0]-T[0]),T[3]=Math.abs(k(e)[1]-T[1]),v.overflowed[0])var d=w[0].parent().height()-w[0].height(),u=n-i>0&&i-n>-(d*v.scrollRatio.y)&&(2*T[3]<T[2]||"yx"===_.axis);if(v.overflowed[1])var f=w[1].parent().width()-w[1].width(),h=a-r>0&&r-a>-(f*v.scrollRatio.x)&&(2*T[2]<T[3]||"yx"===_.axis);u||h?(W||e.preventDefault(),$=1):(p=1,g.addClass("mCS_touch_action")),W&&e.preventDefault(),m="yx"===_.axis?[n-i,a-r]:"x"===_.axis?[null,a-r]:[n-i,null],C[0].idleTimer=250,v.overflowed[0]&&P(m[0],0,l,"y","all",!0),v.overflowed[1]&&P(m[1],0,l,"x",B,!0)}}}function L(e){if(!Z(e)||s||k(e)[2]){t=0;return}t=1,e.stopImmediatePropagation(),j(g),l=G();var o=S.offset();i=k(e)[0]-o.top,r=k(e)[1]-o.left,b=[],y=[]}function A(e){if(Z(e)&&!s&&!k(e)[2]){o=0,e.stopImmediatePropagation(),$=0,p=0,d=G();var t=S.offset(),n=k(e)[0]-t.top,a=k(e)[1]-t.left;if(!(d-c>30)){var g="mcsEaseOut",x=(f=1e3/(d-l))<2.5,w=x?[b[b.length-2],y[y.length-2]]:[0,0],T=[Math.abs((u=x?[n-w[0],a-w[1]]:[n-i,a-r])[0]),Math.abs(u[1])];f=x?[Math.abs(u[0]/4),Math.abs(u[1]/4)]:[f,f];var O=[Math.abs(C[0].offsetTop)-u[0]*z(T[0]/f[0],f[0]),Math.abs(C[0].offsetLeft)-u[1]*z(T[1]/f[1],f[1])];m="yx"===_.axis?[O[0],O[1]]:"x"===_.axis?[null,O[1]]:[O[0],null],h=[4*T[0]+_.scrollInertia,4*T[1]+_.scrollInertia];var D=parseInt(_.contentTouchScroll)||0;m[0]=T[0]>D?m[0]:0,m[1]=T[1]>D?m[1]:0,v.overflowed[0]&&P(m[0],h[0],g,"y",B,!1),v.overflowed[1]&&P(m[1],h[1],g,"x",B,!1)}}}function z(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function P(e,t,o,n,a,i){e&&N(g,e.toString(),{dur:t,scrollEasing:o,dir:n,overwrite:a,drag:i})}C.bind(D[0],function(e){E(e)}).bind(D[1],function(e){I(e)}),S.bind(D[0],function(e){L(e)}).bind(D[2],function(e){A(e)}),O.length&&O.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(D[0],function(e){E(e),L(e)}).bind(D[1],function(e){I(e)}).bind(D[2],function(e){A(e)})})})},W=function(){var o,n=e(this),a=n.data("mCS"),i=a.opt,r=a.sequential,l="mCS_"+a.idx,c=e("#mCSB_"+a.idx+"_container"),d=c.parent();function u(e,t,a){r.type=a&&o?"stepped":"stepless",r.scrollAmount=10,F(n,e,t,"mcsLinearOut",a?60:null)}c.bind("mousedown."+l,function(e){!t&&(o||(o=1,s=!0))}).add(document).bind("mousemove."+l,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0)){var n=c.offset(),l=k(e)[0]-n.top+c[0].offsetTop,s=k(e)[1]-n.left+c[0].offsetLeft;l>0&&l<d.height()&&s>0&&s<d.width()?r.step&&u("off",null,"stepped"):("x"!==i.axis&&a.overflowed[0]&&(l<0?u("on",38):l>d.height()&&u("on",40)),"y"!==i.axis&&a.overflowed[1]&&(s<0?u("on",37):s>d.width()&&u("on",39)))}}).bind("mouseup."+l+" dragend."+l,function(e){!t&&(o&&(o=0,u("off",null)),s=!1)})},E=function(){if(e(this).data("mCS")){var t=e(this),o=t.data("mCS"),n=o.opt,a="mCS_"+o.idx,i=e("#mCSB_"+o.idx),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],s=e("#mCSB_"+o.idx+"_container").find("iframe");s.length&&s.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+a,function(e,t){c(e,t)})})}),i.bind("mousewheel."+a,function(e,t){c(e,t)})}function c(a,s){if(j(t),!A(t,a.target)){var c="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):l&&a.deltaFactor<100?100:a.deltaFactor||100,d=n.scrollInertia;if("x"===n.axis||"x"===n.mouseWheel.axis)var u="x",f=[Math.round(c*o.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],m="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=i.width()?.9*i.width():f[0],h=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),$=r[1][0].offsetLeft,p=r[1].parent().width()-r[1].width(),g="y"===n.mouseWheel.axis?a.deltaY||s:a.deltaX;else var u="y",f=[Math.round(c*o.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],m="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=i.height()?.9*i.height():f[0],h=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),$=r[0][0].offsetTop,p=r[0].parent().height()-r[0].height(),g=a.deltaY||s;("y"!==u||o.overflowed[0])&&("x"!==u||o.overflowed[1])&&((n.mouseWheel.invert||a.webkitDirectionInvertedFromDevice)&&(g=-g),n.mouseWheel.normalizeDelta&&(g=g<0?-1:1),(g>0&&0!==$||g<0&&$!==p||n.mouseWheel.preventDefault)&&(a.stopImmediatePropagation(),a.preventDefault()),a.deltaFactor<5&&!n.mouseWheel.normalizeDelta&&(m=a.deltaFactor,d=17),N(t,(h-g*m).toString(),{dir:u,dur:d}))}}},I={},R=function(t){var o=!1,n=!1,a=null;if(void 0===t?n="#empty":void 0!==e(t).attr("id")&&(n=e(t).attr("id")),!1!==n&&void 0!==I[n])return I[n];if(t){try{var i=t.contentDocument||t.contentWindow.document;a=i.body.innerHTML}catch(r){}o=null!==a}else{try{var i=top.document;a=i.body.innerHTML}catch(l){}o=null!==a}return!1!==n&&(I[n]=o),o},L=function(e){var t=this.find("iframe");t.length&&t.css("pointer-events",e?"auto":"none")},A=function(t,o){var n=o.nodeName.toLowerCase(),a=t.data("mCS").opt.mouseWheel.disableOver;return e.inArray(n,a)>-1&&!(e.inArray(n,["select","textarea"])>-1&&!e(o).is(":focus"))},z=function(){var t,o=e(this),n=o.data("mCS"),a="mCS_"+n.idx,i=e("#mCSB_"+n.idx+"_container"),r=i.parent();e(".mCSB_"+n.idx+"_scrollbar ."+c[12]).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(o){s=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(e){s=!1}).bind("click."+a,function(a){if(t&&(t=0,e(a.target).hasClass(c[12])||e(a.target).hasClass("mCSB_draggerRail"))){j(o);var l=e(this),s=l.find(".mCSB_dragger");if(l.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var d="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(i[0].offsetLeft)-u*(.9*r.width())}else{if(!n.overflowed[0])return;var d="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(i[0].offsetTop)-u*(.9*r.height())}N(o,f.toString(),{dir:d,scrollEasing:"mcsEaseInOut"})}})},P=function(){var t=e(this),o=t.data("mCS"),n=o.opt,a="mCS_"+o.idx,i=e("#mCSB_"+o.idx+"_container"),r=i.parent();i.bind("focusin."+a,function(o){var a=e(document.activeElement),l=i.find(".mCustomScrollBox").length;a.is(n.advanced.autoScrollOnFocus)&&(j(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=l?17*l:0,t[0]._focusTimeout=setTimeout(function(){var e=[et(a)[0],et(a)[1]],o=[i[0].offsetTop,i[0].offsetLeft],l=[o[0]+e[0]>=0&&o[0]+e[0]<r.height()-a.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<r.width()-a.outerWidth(!1)],s="yx"!==n.axis||l[0]||l[1]?"all":"none";"x"===n.axis||l[0]||N(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0}),"y"===n.axis||l[1]||N(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0})},t[0]._focusTimer))})},H=function(){var t=e(this).data("mCS"),o="mCS_"+t.idx,n=e("#mCSB_"+t.idx+"_container").parent();n.bind("scroll."+o,function(o){(0!==n.scrollTop()||0!==n.scrollLeft())&&e(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},M=function(){var t=e(this),o=t.data("mCS"),n=o.opt,a=o.sequential,i="mCS_"+o.idx;e(".mCSB_"+o.idx+"_scrollbar>a").bind("contextmenu."+i,function(e){e.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(i){if(i.preventDefault(),Q(i)){var r=e(this).attr("class");switch(a.type=n.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===a.type)return;s=!0,o.tweenRunning=!1,l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===a.type)return;s=!1,a.dir&&l("off",r);break;case"click":if("stepped"!==a.type||o.tweenRunning)return;l("on",r)}}function l(e,o){a.scrollAmount=n.scrollButtons.scrollAmount,F(t,e,o)}})},U=function(){var t=e(this),o=t.data("mCS"),n=o.opt,a=o.sequential,i="mCS_"+o.idx,r=e("#mCSB_"+o.idx),l=e("#mCSB_"+o.idx+"_container"),s=l.parent(),c="input,textarea,select,datalist,keygen,[contenteditable='true']",d=l.find("iframe"),u=["blur."+i+" keydown."+i+" keyup."+i];function f(i){switch(i.type){case"blur":o.tweenRunning&&a.dir&&h("off",null);break;case"keydown":case"keyup":var r=i.keyCode?i.keyCode:i.which,d="on";if("x"!==n.axis&&(38===r||40===r)||"y"!==n.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===i.type&&(d="off"),e(document.activeElement).is(c)||(i.preventDefault(),i.stopImmediatePropagation(),h(d,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type){j(t);var u=34===r?-1:1;if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(l[0].offsetLeft)-u*(.9*s.width());else var f="y",m=Math.abs(l[0].offsetTop)-u*(.9*s.height());N(t,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(c)&&((o.overflowed[0]||o.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type)){if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=35===r?Math.abs(s.width()-l.outerWidth(!1)):0;else var f="y",m=35===r?Math.abs(s.height()-l.outerHeight(!1)):0;N(t,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}function h(e,i){a.type=n.keyboard.scrollType,a.scrollAmount=n.keyboard.scrollAmount,("stepped"!==a.type||!o.tweenRunning)&&F(t,e,i)}}d.length&&d.each(function(){e(this).bind("load",function(){R(this)&&e(this.contentDocument||this.contentWindow.document).bind(u[0],function(e){f(e)})})}),r.attr("tabindex","0").bind(u[0],function(e){f(e)})},F=function(t,o,n,a,i){var r=t.data("mCS"),l=r.opt,s=r.sequential,d=e("#mCSB_"+r.idx+"_container"),u="stepped"===s.type,f=l.scrollInertia<26?26:l.scrollInertia,m=l.scrollInertia<1?17:l.scrollInertia;switch(o){case"on":if(s.dir=[n===c[16]||n===c[15]||39===n||37===n?"x":"y",n===c[13]||n===c[15]||38===n||37===n?-1:1],j(t),ee(n)&&"stepped"===s.type)return;h(u);break;case"off":clearTimeout(s.step),K(s,"step"),j(t),(u||r.tweenRunning&&s.dir)&&h(!0)}function h(e){l.snapAmount&&(s.scrollAmount=l.snapAmount instanceof Array?"x"===s.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var o="stepped"!==s.type,n=i||(e?o?f/1.5:m:1e3/60),c=e?o?7.5:40:2.5,u=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],$=[r.scrollRatio.y>10?10:r.scrollRatio.y,r.scrollRatio.x>10?10:r.scrollRatio.x],p="x"===s.dir[0]?u[1]+s.dir[1]*($[1]*c):u[0]+s.dir[1]*($[0]*c),g="x"===s.dir[0]?u[1]+s.dir[1]*parseInt(s.scrollAmount):u[0]+s.dir[1]*parseInt(s.scrollAmount),v="auto"!==s.scrollAmount?g:p;if(e&&n<17&&(v="x"===s.dir[0]?u[1]:u[0]),N(t,v.toString(),{dir:s.dir[0],scrollEasing:a||(e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),dur:n,onComplete:!!e}),e){s.dir=!1;return}clearTimeout(s.step),s.step=setTimeout(function(){h()},n)}},q=function(t){var o=e(this).data("mCS").opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},Y=function(t,o){if(null!=t&&void 0!==t){var n=e(this),a=n.data("mCS"),i=a.opt,r=e("#mCSB_"+a.idx+"_container"),l=r.parent();o||(o="x"===i.axis?"x":"y");var s="x"===o?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),c="x"===o?r[0].offsetLeft:r[0].offsetTop,u="x"===o?"left":"top";switch(typeof t){case"function":return t();case"object":var f=t.jquery?t:e(t);if(!f.length)return;return"x"===o?et(f)[1]:et(f)[0];case"string":case"number":if(ee(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(s*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(c-parseInt(t.split("-=")[1]));else if(-1!==t.indexOf("+=")){var m=c+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}else{if(-1!==t.indexOf("px")&&ee(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));else if("first"===t||"last"===t){var f=r.find(":"+t);return"x"===o?et(f)[1]:et(f)[0]}else{if(e(t).length)return"x"===o?et(e(t))[1]:et(e(t))[0];r.css(u,t),d.update.call(null,n[0]);return}}}}},X=function(t){var o=e(this),n=o.data("mCS"),a=n.opt,i=e("#mCSB_"+n.idx+"_container");if(t){clearTimeout(i[0].autoUpdate),K(i[0],"autoUpdate");return}function r(e){clearTimeout(i[0].autoUpdate),d.update.call(null,o[0],e)}(function t(){if(clearTimeout(i[0].autoUpdate),0===o.parents("html").length){o=null;return}i[0].autoUpdate=setTimeout(function(){var l,s;if(a.advanced.updateOnSelectorChange&&(n.poll.change.n=(!0===a.advanced.updateOnSelectorChange&&(a.advanced.updateOnSelectorChange="*"),l=0,s=i.find(a.advanced.updateOnSelectorChange),a.advanced.updateOnSelectorChange&&s.length>0&&s.each(function(){l+=this.offsetHeight+this.offsetWidth}),l),n.poll.change.n!==n.poll.change.o)){n.poll.change.o=n.poll.change.n,r(3);return}if(a.advanced.updateOnContentResize&&(n.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+i[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,n.poll.size.n!==n.poll.size.o)){n.poll.size.o=n.poll.size.n,r(1);return}if(a.advanced.updateOnImageLoad&&!("auto"===a.advanced.updateOnImageLoad&&"y"===a.axis)&&(n.poll.img.n=i.find("img").length,n.poll.img.n!==n.poll.img.o)){n.poll.img.o=n.poll.img.n,i.find("img").each(function(){(function t(o){if(e(o).hasClass(c[2])){r();return}var n,a,i=new Image;i.onload=(n=i,a=function t(){this.onload=null,e(o).addClass(c[2]),r(2)},function(){return a.apply(n,arguments)}),i.src=o.src})(this)});return}(a.advanced.updateOnSelectorChange||a.advanced.updateOnContentResize||a.advanced.updateOnImageLoad)&&t()},a.advanced.autoUpdateTimeout)})()},j=function(t){var o=t.data("mCS");e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal").each(function(){J.call(this)})},N=function(t,o,n){var a=t.data("mCS"),i=a.opt,r={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:i.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(r,n),l=[n.dur,n.drag?0:n.dur],s=e("#mCSB_"+a.idx),c=e("#mCSB_"+a.idx+"_container"),d=c.parent(),u=i.callbacks.onTotalScrollOffset?q.call(t,i.callbacks.onTotalScrollOffset):[0,0],f=i.callbacks.onTotalScrollBackOffset?q.call(t,i.callbacks.onTotalScrollBackOffset):[0,0];if(a.trigger=n.trigger,(0!==d.scrollTop()||0!==d.scrollLeft())&&(e(".mCSB_"+a.idx+"_scrollbar").css("visibility","visible"),d.scrollTop(0).scrollLeft(0)),"_resetY"!==o||a.contentReset.y||(T("onOverflowYNone")&&i.callbacks.onOverflowYNone.call(t[0]),a.contentReset.y=1),"_resetX"!==o||a.contentReset.x||(T("onOverflowXNone")&&i.callbacks.onOverflowXNone.call(t[0]),a.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if((a.contentReset.y||!t[0].mcs)&&a.overflowed[0]&&(T("onOverflowY")&&i.callbacks.onOverflowY.call(t[0]),a.contentReset.x=null),(a.contentReset.x||!t[0].mcs)&&a.overflowed[1]&&(T("onOverflowX")&&i.callbacks.onOverflowX.call(t[0]),a.contentReset.x=null),i.snapAmount){var m,h,$,p=i.snapAmount instanceof Array?"x"===n.dir?i.snapAmount[1]:i.snapAmount[0]:i.snapAmount;o=(m=o,h=p,Math.round(m/h)*h-($=i.snapOffset))}switch(n.dir){case"x":var g=e("#mCSB_"+a.idx+"_dragger_horizontal"),v="left",_=c[0].offsetLeft,x=[s.width()-c.outerWidth(!1),g.parent().width()-g.width()],S=[o,0===o?0:o/a.scrollRatio.x],w=u[1],b=f[1],y=w>0?w/a.scrollRatio.x:0,B=b>0?b/a.scrollRatio.x:0;break;case"y":var g=e("#mCSB_"+a.idx+"_dragger_vertical"),v="top",_=c[0].offsetTop,x=[s.height()-c.outerHeight(!1),g.parent().height()-g.height()],S=[o,0===o?0:o/a.scrollRatio.y],w=u[0],b=f[0],y=w>0?w/a.scrollRatio.y:0,B=b>0?b/a.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=x[1]?S=[x[0],x[1]]:S[0]=-S[0],!t[0].mcs&&(k(),T("onInit")&&i.callbacks.onInit.call(t[0])),clearTimeout(c[0].onCompleteTimeout),V(g[0],v,Math.round(S[1]),l[1],n.scrollEasing),(a.tweenRunning||(0!==_||!(S[0]>=0))&&(_!==x[0]||!(S[0]<=x[0])))&&V(c[0],v,Math.round(S[0]),l[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!a.tweenRunning&&(T("onScrollStart")&&(k(),i.callbacks.onScrollStart.call(t[0])),a.tweenRunning=!0,C(g),a.cbOffsets=[i.callbacks.alwaysTriggerOffsets||_>=x[0]+w,i.callbacks.alwaysTriggerOffsets||_<=-b])},onUpdate:function(){n.callbacks&&n.onUpdate&&T("whileScrolling")&&(k(),i.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===i.axis&&clearTimeout(c[0].onCompleteTimeout);var e=c[0].idleTimer||0;c[0].onCompleteTimeout=setTimeout(function(){T("onScroll")&&(k(),i.callbacks.onScroll.call(t[0])),T("onTotalScroll")&&S[1]>=x[1]-y&&a.cbOffsets[0]&&(k(),i.callbacks.onTotalScroll.call(t[0])),T("onTotalScrollBack")&&S[1]<=B&&a.cbOffsets[1]&&(k(),i.callbacks.onTotalScrollBack.call(t[0])),a.tweenRunning=!1,c[0].idleTimer=0,C(g,"hide")},e)}}})}function T(e){return a&&i.callbacks[e]&&"function"==typeof i.callbacks[e]}function k(){var e=[c[0].offsetTop,c[0].offsetLeft],o=[g[0].offsetTop,g[0].offsetLeft],a=[c.outerHeight(!1),c.outerWidth(!1)],i=[s.height(),s.width()];t[0].mcs={content:c,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}},V=function(e,t,o,n,a,i,r){e._mTween||(e._mTween={top:{},left:{}});var l,s,r=r||{},c=r.onStart||function(){},d=r.onUpdate||function(){},u=r.onComplete||function(){},f=G(),m=0,h=e.offsetTop,$=e.style,p=e._mTween[t];"left"===t&&(h=e.offsetLeft);var g=o-h;function v(){!p.stop&&(m||c.call(),m=G()-f,_(),m>=p.time&&(p.time=m>p.time?m+l-(m-p.time):m+l-1,p.time<m+1&&(p.time=m+1)),p.time<n?p.id=s(v):u.call())}function _(){n>0?(p.currVal=function e(t,o,n,a,i){switch(i){case"linear":case"mcsLinear":return n*t/a+o;case"mcsLinearOut":return t/=a,n*Math.sqrt(1- --t*t)+o;case"easeInOutSmooth":if((t/=a/2)<1)return n/2*t*t+o;return-n/2*(--t*(t-2)-1)+o;case"easeInOutStrong":if((t/=a/2)<1)return n/2*Math.pow(2,10*(t-1))+o;return n/2*(-Math.pow(2,-10*--t)+2)+o;case"easeInOut":case"mcsEaseInOut":if((t/=a/2)<1)return n/2*t*t*t+o;return n/2*((t-=2)*t*t+2)+o;case"easeOutSmooth":return t/=a,-n*(--t*t*t*t-1)+o;case"easeOutStrong":return n*(-Math.pow(2,-10*t/a)+1)+o;default:var r=(t/=a)*t,l=r*t;return o+n*(.499999999999997*l*r+-2.5*r*r+5.5*l+-6.5*r+4*t)}}(p.time,h,g,n,a),$[t]=Math.round(p.currVal)+"px"):$[t]=o+"px",d.call()}p.stop=0,"none"!==i&&null!=p.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(p.id):clearTimeout(p.id),p.id=null),l=1e3/60,p.time=m+l,s=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return _(),setTimeout(e,.01)},p.id=s(v)},G=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():new Date().getTime()},J=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var n=t[o];e._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[n].id):clearTimeout(e._mTween[n].id),e._mTween[n].id=null,e._mTween[n].stop=1)}},K=function(e,t){try{delete e[t]}catch(o){e[t]=null}},Q=function(e){return!(e.which&&1!==e.which)},Z=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ee=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},et=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},eo=function(){var e=function e(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var o=0;o<t.length;o++)if(t[o]+"Hidden" in document)return t[o]+"Hidden";return null}();return!!e&&document[e]};e.fn[o]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[o]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[o].defaults=a,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,n,a=e(t),i=a.parents(".mCSB_container");if(i.length)return o=i.parent(),(n=[i[0].offsetTop,i[0].offsetLeft])[0]+et(a)[0]>=0&&n[0]+et(a)[0]<o.height()-a.outerHeight(!1)&&n[1]+et(a)[1]>=0&&n[1]+et(a)[1]<o.width()-a.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,n){var a,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===n[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return a=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+et(s)[0],c[0].offsetLeft+et(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[a[0]<i[0]?d[0]:d[1],a[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+a[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+a[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data("mCS");if(o)return o.overflowed[0]||o.overflowed[1]}})})},o="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,a="https:"==document.location.protocol?"https:":"http:",!o&&(n?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+a+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),t()});;;/*!
 * 
 * 	elfsight.com
 * 	
 * 	Copyright (c) 2024 Elfsight, LLC. ALL RIGHTS RESERVED
 * 
 */
!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dev/",t(0)}([function(e,t,n){n(1),n(2)(window),n(64)},function(e,t,n){e.exports=n.p+"index.html"},function(e,t,n){function i(e){if(!e.eapps){var t={},n=new r,i=new o(e,e.document.body,n),s=new a;t.platform=i.facade(),t.apps=n.facade(),t.analytics=s.facade(),e.eapps=t}}n(3);var o=n(52),r=n(59),a=n(62);e.exports=i},function(e,t,n){n(4),n(42),n(49)},function(e,t,n){var i=n(5);i(i.S+i.F,"Object",{assign:n(26)})},function(e,t,n){var i=n(6),o=n(7),r=n(8),a=n(18),s=n(24),c="prototype",l=function e(t,n,l){var p,u,f,d,g=t&e.F,h=t&e.G,v=t&e.S,b=t&e.P,w=t&e.B,m=h?i:v?i[n]||(i[n]={}):(i[n]||{})[c],y=h?o:o[n]||(o[n]={}),x=y[c]||(y[c]={});h&&(l=n);for(p in l)u=!g&&m&&void 0!==m[p],f=(u?m:l)[p],d=w&&u?s(f,i):b&&"function"==typeof f?s(Function.call,f):f,m&&a(m,p,f,t&e.U),y[p]!=f&&r(y,p,d),b&&x[p]!=f&&(x[p]=f)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(9),o=n(17);e.exports=n(13)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(10),o=n(12),r=n(16),a=Object.defineProperty;t.f=n(13)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(11);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(13)&&!n(14)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(11),o=n(6).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){var i=n(11);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(6),o=n(8),r=n(19),a=n(20)("src"),s=n(21),c="toString",l=(""+s).split(c);n(7).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){e.exports=n(22)("native-function-to-string",Function.toString)},function(e,t,n){var i=n(7),o=n(6),r="__core-js_shared__",a=o[r]||(o[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(23)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var i=n(25);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(27),o=n(39),r=n(40),a=n(41),s=n(30),c=Object.assign;e.exports=!c||n(14)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i})?function(e,t){for(var n=a(e),c=arguments.length,l=1,p=o.f,u=r.f;c>l;)for(var f,d=s(arguments[l++]),g=p?i(d).concat(p(d)):i(d),h=g.length,v=0;h>v;)u.call(d,f=g[v++])&&(n[f]=d[f]);return n}:c},function(e,t,n){var i=n(28),o=n(38);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(19),o=n(29),r=n(33)(!1),a=n(37)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;t.length>c;)i(s,n=t[c++])&&(~r(l,n)||l.push(n));return l}},function(e,t,n){var i=n(30),o=n(32);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var i=n(29),o=n(34),r=n(36);e.exports=function(e){return function(t,n,a){var s,c=i(t),l=o(c.length),p=r(a,l);if(e&&n!=n){for(;l>p;)if(s=c[p++],s!=s)return!0}else for(;l>p;p++)if((e||p in c)&&c[p]===n)return e||p||0;return!e&&-1}}},function(e,t,n){var i=n(35),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(35),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},function(e,t,n){var i=n(22)("keys"),o=n(20);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(32);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";var i=n(5),o=n(43)(2);i(i.P+i.F*!n(48)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var i=n(24),o=n(30),r=n(41),a=n(34),s=n(44);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,p=4==e,u=6==e,f=5==e||u,d=t||s;return function(t,s,g){for(var h,v,b=r(t),w=o(b),m=i(s,g,3),y=a(w.length),x=0,C=n?d(t,y):c?d(t,0):void 0;y>x;x++)if((f||x in w)&&(h=w[x],v=m(h,x,b),e))if(n)C[x]=v;else if(v)switch(e){case 3:return!0;case 5:return h;case 6:return x;case 2:C.push(h)}else if(p)return!1;return u?-1:l||p?p:C}}},function(e,t,n){var i=n(45);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(11),o=n(46),r=n(47)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){var i=n(31);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(22)("wks"),o=n(20),r=n(6).Symbol,a="function"==typeof r,s=e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))};s.store=i},function(e,t,n){"use strict";var i=n(14);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(5);i(i.P,"Function",{bind:n(50)})},function(e,t,n){"use strict";var i=n(25),o=n(11),r=n(51),a=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function i(){var o=n.concat(a.call(arguments));return this instanceof i?c(t,o.length,o):r(t,o,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(53),o=n(54),r=n(57),a=n(58),s="eapps.Platform",c="disabled",l="enabled",p="first-activity",u="in-viewport",f=[c,l,p,u],d=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,g="https://core.service.elfsight.com",h=function(e,t,n){var h,v=this,b={},w=[],m=[],y=[],x=[];v.initialize=function(){v.logError=r.withModule(s),i(function(){t=t||e.document.body,v.establishPreconnections(),v.observe(),v.collectWidgets(t),v.boot(),v.watchWidgetReset()})},v.establishPreconnections=function(){v.preconnect(v.getPlatformUrl()),v.preconnect("https://static.elfsight.com"),v.preconnect("https://service-reviews-ultimate.elfsight.com"),v.preconnect("https://storage.elfsight.com")},v.preconnect=function(e){var t=document.createElement("link");t.href=e,t.rel="preconnect",t.crossOrigin="",document.head.appendChild(t)},v.facade=function(){return new a(v)},v.requireWidget=function(e){"string"!=typeof e&&v.logError("Widget Public ID required and should be a string",{pid:e}),~w.indexOf(e)||w.push(e)},v.addPlaceholder=function(e){~m.indexOf(e)||m.push(e)},v.getEappsClass=function(e){var t=e.className.split(" ");return 1===t.length?e.className:t.length>1?(t.filter(function(e){return/elfsight-app-[\S]+/.test(e)}),t[0]):void 0},v.getWidgetIdByElement=function(e){return"div"===e.tagName.toLowerCase()?v.getEappsClass(e).replace("elfsight-app-",""):e.getAttribute("data-id")},v.getLazyMode=function(e){var t=e.getAttribute("data-elfsight-app-lazy");return""===t?l:null!==t&&f.includes(t)?t:c},v.getWidgetsElements=function(e){if(e=e||t,!e||"function"!=typeof e.getElementsByTagName||"function"!=typeof e.querySelectorAll)return[];var n=Array.prototype.slice.call(e.getElementsByTagName("elfsight-app")),i=Array.prototype.slice.call(e.querySelectorAll('*[class^="elfsight-app"]')),o=i.concat(n);return e instanceof HTMLElement&&~e.className.indexOf("elfsight-app")&&o.push(e),o},v.collectWidgets=function(e){v.getWidgetsElements(e).forEach(function(e){var t=v.getWidgetIdByElement(e);if(t){var n=v.getLazyMode(e);n===c?v.requireWidget(t):v.bootWidgetDeferredly(e,t,n),v.addPlaceholder(e)}})},v.bootWidgetDeferredly=function(e,t,n){function i(){s.splice(0,s.length).forEach(function(e){e()})}function o(){i(),v.requireWidget(t),v.revise()}function r(){var e=["scroll","mousemove","touchstart","keydown","click"],t={capture:!0,passive:!0};return e.forEach(function(e){window.addEventListener(e,o,t)}),function(){e.forEach(function(e){window.removeEventListener(e,o,t)})}}function a(){if("undefined"==typeof window.IntersectionObserver)return function(){};var t=new IntersectionObserver(function(e){for(var t=0;t<e.length;++t)if(e[t].isIntersecting){o();break}});return t.observe(e),function(){t.disconnect()}}var s=[],c=[l,u].includes(n);c&&s.push(a());var f=[l,p].includes(n);f&&s.push(r())},v.watchWidgetReset=function(){window.addEventListener("message",function(e){var t=e.data;t.action&&"EappsPlatform.widgetReset"===t.action&&v.resetWidget(t.widgetId)})},v.resetWidget=function(e){var t=function e(t){var e=document.createElement("div");return e.className="elfsight-app-"+t,e};v.getWidgetsElements().forEach(function(n){v.getWidgetIdByElement(n)===e&&(delete b[e],n.parentNode.replaceChild(t(e),n))})},v.initWidget=function(e){var t=v.getWidgetIdByElement(e),i=b[t];if(i){if(!i.status||!i.data)return void v.logError('Widget "'+t+'" can`t be initialized because '+i.reason,e);i.data.id=t,i.data.platform=!0;var o=i.user||i.data.user;o&&(i.data.isOwner=o.owner),n.initWidget(e,i.data)}},v.boot=function(e,t){var n=t||w,i=[];if(n.forEach(function(e){x.includes(e)||(x.push(e),i.push(e))}),i.length){var r=new XMLHttpRequest,a=v.getPlatformUrl();a+="/p/boot/";var s=o.stringify({w:i.join(","),page:v.getPage()});r.open("get",a+"?"+s),r.withCredentials=!0,r.onload=function(){var t=JSON.parse(r.response);t.status||v.logError("Boot failed because "+t.reason,t.data),b=Object.assign({},b,t.data.widgets),v.loadAssets(t.data.assets),m.forEach(v.initWidget.bind(v)),x=x.filter(function(e){return!i.includes(e)}),e&&e()},r.send()}},v.getPage=function(){try{var e=document.location.href;if(d.test(e))return new URL(e).toString()}catch(e){}},v.getPlatformUrl=function(){return e.eappsCustomPlatformUrl?e.eappsCustomPlatformUrl:g},v.revise=function(){var e=w.filter(function(e){return!(e in b)});e.length>0?v.boot(null,e):m.forEach(v.initWidget.bind(v))},v.loadAssets=function(t){t&&t.length&&t.filter(function(e){return y.indexOf(e)===-1}).forEach(function(t){var n=e.document.createElement("script");n.src=t,n.setAttribute("defer","defer"),n.setAttribute("charset","UTF-8"),e.document.head.appendChild(n),y.push(t)})},v.observe=function(){if(e.MutationObserver&&!h){var t={childList:!0,subtree:!0,characterData:!0},n=null;h=new MutationObserver(function(e){var t=function(e){v.requireWidget(v.getWidgetIdByElement(e)),v.addPlaceholder(e)};e.forEach(function(e){var i=function(e){var i=v.getWidgetsElements(e);i.forEach(t),i.length>0&&(n&&clearTimeout(n),n=setTimeout(function(){v.revise()},1e3))};Array.prototype.forEach.call(e.addedNodes,i)})}),h.observe(e.document,t)}},v.initialize()};e.exports=h},function(e,t,n){/*!
	  * domready (c) Dustin Diaz 2014 - License MIT
	  */
!function(t,n){e.exports=n()}("domready",function(){var e,t=[],n=document,i=n.documentElement.doScroll,o="DOMContentLoaded",r=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return r||n.addEventListener(o,e=function(){for(n.removeEventListener(o,e),r=1;e=t.shift();)e()}),function(e){r?setTimeout(e,0):t.push(e)}})},function(e,t,n){"use strict";function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[a(t,e),"[",i,"]"].join(""):[a(t,e),"[",a(i,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}function r(e){var t;switch(e.arrayFormat){case"index":return function(e,n,i){return t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),void(i[e][t[1]]=n)):void(i[e]=n)};case"bracket":return function(e,n,i){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0===i[e]?void(i[e]=[n]):void(i[e]=[].concat(i[e],n)):void(i[e]=n)};default:return function(e,t,n){return void 0===n[e]?void(n[e]=t):void(n[e]=[].concat(n[e],t))}}}function a(e,t){return t.encode?t.strict?c(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():"object"===i(e)?s(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}var c=n(55),l=n(56);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){t=l({arrayFormat:"none"},t);var n=r(t),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),r=t.length>0?t.join("="):void 0;r=void 0===r?null:decodeURIComponent(r),n(decodeURIComponent(i),r,o)}),Object.keys(o).sort().reduce(function(e,t){var n=o[t];return Boolean(n)&&"object"===i(n)&&!Array.isArray(n)?e[t]=s(n):e[t]=n,e},Object.create(null))):o},t.stringify=function(e,t){var n={encode:!0,strict:!0,arrayFormat:"none"};t=l(n,t);var i=o(t);return e?Object.keys(e).sort().map(function(n){var o=e[n];if(void 0===o)return"";if(null===o)return a(n,t);if(Array.isArray(o)){var r=[];return o.slice().forEach(function(e){void 0!==e&&r.push(i(n,e,r.length))}),r.join("&")}return a(n,t)+"="+a(o,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t){/*
	object-assign
	(c) Sindre Sorhus
	@license MIT
	*/
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=i()?Object.assign:function(e,t){for(var i,s,c=n(e),l=1;l<arguments.length;l++){i=Object(arguments[l]);for(var p in i)r.call(i,p)&&(c[p]=i[p]);if(o){s=o(i);for(var u=0;u<s.length;u++)a.call(i,s[u])&&(c[s[u]]=i[s[u]])}}return c}},function(e,t){function n(e,t,n){var i=[n+' throws: "'+e+'"'];t&&(i.push("with \n\t ->"),i.push(t)),console.error.apply(console,i)}n.withModule=function(e){return function(t,i){return n(t,i,e)}},e.exports=n},function(e,t){var n=function(e){var t=this;t.initialize=function(){},t.requireWidget=function(t){return e.requireWidget(t)},t.resetWidget=function(t){return e.resetWidget(t)},t.initialize()};e.exports=n},function(e,t,n){var i=n(57),o=n(60),r=n(61),a="eapps.AppsManager",s=function(){var e=this,t={},n=[],s=[];e.initialize=function(){e.logError=i.withModule(a)},e.facade=function(){return new o(e)},e.register=function(n,i){if(t.name)return void e.logError('Application "'+n+'" is already registered');var o=new i;t[n]=new r(o),e.initWidgetsFromBuffer(n)},e.app=function(e){return t[e]},e.initWidget=function(t,i){var o=e.app(i.app);if(o){if(s.indexOf(t)!==-1)return;s.push(t),o.initWidget(t,i),e.sendExtensionPostMessage(t,i)}else n.push({element:t,config:i,initialized:!1})},e.initWidgetsFromBuffer=function(t){n&&n.length&&n.forEach(function(n){t!==n.config.app||n.initialized||(n.initialized=!0,e.initWidget(n.element,n.config))})},e.sendExtensionPostMessage=function(e,t){window.postMessage({method:"postMessagePlatformWidget",data:{settings:t.settings,app_slug:t.app,public_id:t.id,platform:"core"}},"*")},e.initialize()};e.exports=s},function(e,t){var n=function(e){var t=this;t.initialize=function(){},t.register=function(t,n){return e.register(t,n)},t.initialize()};e.exports=n},function(e,t){var n="https://dash.elfsight.com",i=function(e){var t=this,i=!1,o=[];t.initialize=function(){e.whenReady(t.ready.bind(t))},t.ready=function(){i=!0,t.initWidgetsFromBuffer()},t.initWidget=function(n,r){if(i){r.websiteUrl=window.location.host||"undefined";var a={widgetId:r.id||null,widgetToken:r.public_widget_token||null,widgetOrigin:"apps.elfsight.com",websiteUrl:r.websiteUrl,deactivate:1===r.preferences.disable_widget,deactivatedWidgetUrl:r.preferences.deactivated_widget_url,showElfsightLogo:!r.preferences.hide_elfsight_logo,owner:r.isOwner,platform:r.platform,freeLinkUrl:r.preferences.free_link_url,displayFreeLink:!!r.preferences.display_free_link,displayFreeLinkRemove:!!r.preferences.display_free_link_remove,freeLinkURL:r.preferences.free_link_url,freeLinkRemoveURL:r.preferences.free_link_remove_url,freeLinkAnchor:r.preferences.free_link_anchor,displayDeactivation:!!r.preferences.display_deactivation,deactivationURL:r.preferences.deactivation_url},s=t.getAttributeSettings(n);r.settings=[r.settings,a,s].reduce(function(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e},{}),e.initWidget(n,r.settings,r),r.isOwner&&setTimeout(function(){t.initToolbar(n,r)},500)}else o.push({element:n,config:r,initialized:!1})},t.initToolbar=function(e,t){var i=0;t.usageStatus=function(){var e="green";return i=100*t.percentage,i>=100&&(e="red"),i>=90&&i<100&&(e="orange"),e};var o=document.implementation.createHTMLDocument(),r="".concat(n,"/apps/").concat(t.app),a="".concat(n,"/apps/").concat(t.app,"/pricing"),s="".concat(n,"/widget/").concat(t.id),c=function(e,n){var i=new URLSearchParams({utm_source:"clients",utm_medium:"user-panel",utm_campaign:n,utm_content:t.app,utm_term:t.websiteUrl}),o=e.includes("?")?"&":"?";return"".concat(e).concat(o).concat(i.toString())};o.body.innerHTML='<div class="eapps-widget-toolbar">\n                <div class="eapps-widget-toolbar-panel-wrapper">\n                    <div class="eapps-widget-toolbar-panel-only-you">Panel only seen by widget owner</div>\n                    \n                    <div class="eapps-widget-toolbar-panel">\n                        <a href="'.concat(c(r,"elfsight-icon"),'" target="_blank" title="Panel only seen by widget owner"> \n                            <div class="eapps-widget-toolbar-panel-logo">\n                                <svg width="15px" height="15px" viewBox="0 0 15 15">\n                                    <path d="M9.3907705,9.84479984 C9.39084949,9.84789591 9.39120496,9.85095229 9.39120496,9.85408806 C9.39120496,10.061247 9.22563696,10.22907 9.0213232,10.22907 C8.95852427,10.22907 8.89943798,10.2130737 8.84761899,10.1850899 L8.84754,10.1851296 L7.07973033,9.29155556 L7.08206061,9.28885642 C6.36524438,8.95487756 5.87944133,8.32105601 5.8725295,7.59228825 C5.8724505,7.59197071 5.87205554,7.5920104 5.87205554,7.59161347 C5.87205554,7.04563305 5.78595386,6.41089856 4.91573446,5.65760038 C3.20314046,4.17545506 0.437578214,1.75392969 0.14052742,1.49378024 C0.133220626,1.48790564 0.126229802,1.4816738 0.119396962,1.47528319 C0.116118779,1.47238559 0.113906992,1.47048031 0.113906992,1.47048031 L0.114025481,1.47032154 C0.0438802595,1.40204918 0,1.30619002 0,1.19981216 C0,0.992653173 0.165568,0.824830183 0.369763267,0.824830183 C0.437222748,0.824830183 0.500298153,0.84344631 0.554763389,0.875439056 L0.554881878,0.875240589 L8.16441401,4.79566183 C8.18708482,4.80685532 8.20940017,4.81848544 8.23159702,4.83027433 L8.26027125,4.84504021 C8.26027125,4.84504021 8.25995528,4.84539745 8.25991578,4.84543714 C8.94031653,5.21748181 9.39013856,5.85916262 9.39013856,6.58888301 C9.39013856,6.59412252 9.38970411,6.59924295 9.38966461,6.60448246 L9.39013856,6.60392675 C9.39013856,6.60392675 9.39013856,7.81560238 9.39013856,8.75974562 C9.39013856,9.47057204 9.39065201,9.79137275 9.3907705,9.84479984 Z M7.53431857,14.7455202 C3.55890924,14.6059985 0.437604872,11.2422351 0.576433956,7.24703185 C0.583108811,7.05447997 0.592627391,6.86419061 0.614903238,6.67604469 C0.626238643,6.5803443 0.774902276,5.85483139 1.42366658,5.94136264 C1.91002258,6.00626108 2.06393921,6.43383658 2.02799768,6.75971802 C2.02108585,6.82235395 2.00698571,6.9880335 2.00698571,6.9880335 C1.99805957,7.0901245 1.99174018,7.19296966 1.98810654,7.296569 C1.87645083,10.5094981 4.38663075,13.2146316 7.58357031,13.3268443 C10.7804309,13.4390571 13.4722142,10.9164331 13.58387,7.70354372 C13.6955257,4.49049559 11.1853457,1.78536206 7.98852467,1.67314929 C7.62634467,1.66044746 7.27060255,1.68180242 6.924458,1.73395933 C6.924458,1.73395933 6.08816582,1.8731238 5.90186232,1.30555026 C5.72160174,0.756354691 6.14271005,0.438650054 6.4277935,0.379070511 C6.94780024,0.279003871 7.48672566,0.235103155 8.03781591,0.254473453 C12.0131067,0.393995167 15.1343716,3.75771881 14.9955425,7.75308087 C14.8567529,11.7482842 11.5095699,14.8850419 7.53431857,14.7455202 Z" id="path-1"></path>\n                                </svg>\n                            </div>\n                        </a>\n                        \n                        <a href="').concat(c(s,"edit-widget"),'" target="_blank"> \n                            <div class="eapps-widget-toolbar-panel-edit">\n                                <div class="eapps-widget-toolbar-panel-edit-icon">\n                                    <svg width="15px" height="15px" viewBox="0 0 15 15">\n                                        <path d="M11.8409658,5.0838519 C11.9103036,5.1860702 12.0261968,5.24949902 12.1508333,5.25 L12.25,5.25 C13.2164983,5.25 14,6.03350169 14,7 C14,7.96649831 13.2164983,8.75 12.25,8.75 L12.1998265,8.74999536 C12.0487015,8.7505981 11.9123649,8.84088722 11.8528316,8.97979334 C11.7877518,9.12733583 11.817782,9.29295657 11.9216456,9.39918771 L11.9564161,9.43395833 C12.2850259,9.76220278 12.4696678,10.2076171 12.4696678,10.6720833 C12.4696678,11.1365495 12.2850259,11.5819639 11.956875,11.9097495 C11.6286306,12.2383593 11.1832162,12.4230011 10.71875,12.4230011 C10.2542838,12.4230011 9.80886945,12.2383593 9.48085438,11.909979 L9.45042877,11.8795032 C9.33962324,11.7711153 9.1740025,11.7410852 9.02646001,11.8061649 C8.88755388,11.8656983 8.79726477,12.0020348 8.79666667,12.1508333 L8.79666667,12.25 C8.79666667,13.2164983 8.01316498,14 7.04666667,14 C6.08016835,14 5.29666667,13.2164983 5.29666667,12.25 C5.2931854,12.0554921 5.19476641,11.9178878 5.01447022,11.8503365 C4.87266417,11.7877518 4.70704343,11.817782 4.60081229,11.9216456 L4.56604167,11.9564161 C4.23779722,12.2850259 3.79238285,12.4696678 3.32791667,12.4696678 C2.86345048,12.4696678 2.41803612,12.2850259 2.09025055,11.956875 C1.76164072,11.6286306 1.5769989,11.1832162 1.5769989,10.71875 C1.5769989,10.2542838 1.76164072,9.80886945 2.09002104,9.48085438 L2.12049683,9.45042877 C2.22888469,9.33962324 2.25891482,9.1740025 2.1938351,9.02646001 C2.13430173,8.88755388 1.99796517,8.79726477 1.84916667,8.79666667 L1.75,8.79666667 C0.783501688,8.79666667 1.94289029e-16,8.01316498 0,7.04666667 C-1.2952602e-16,6.08016835 0.783501688,5.29666667 1.75,5.29666667 C1.94450787,5.2931854 2.0821122,5.19476641 2.14966349,5.01447022 C2.21224816,4.87266417 2.18221802,4.70704343 2.07835438,4.60081229 L2.04358388,4.56604167 C1.71497406,4.23779722 1.53033223,3.79238285 1.53033223,3.32791667 C1.53033223,2.86345048 1.71497406,2.41803612 2.043125,2.09025055 C2.37136945,1.76164072 2.81678382,1.5769989 3.28125,1.5769989 C3.74571618,1.5769989 4.19113055,1.76164072 4.51914562,2.09002104 L4.54957123,2.12049683 C4.66037676,2.22888469 4.8259975,2.25891482 4.96780355,2.19633016 C5.00517877,2.17983498 5.04407976,2.16735698 5.0838519,2.15903418 C5.1860702,2.08969644 5.24949902,1.97380324 5.25,1.84916667 L5.25,1.75 C5.25,0.783501688 6.03350169,1.94289029e-16 7,0 C7.96649831,0 8.75,0.783501688 8.75,1.75 L8.74999536,1.80017349 C8.7505981,1.9512985 8.84088722,2.08763507 8.98552978,2.14966349 C9.12733583,2.21224816 9.29295657,2.18221802 9.39918771,2.07835438 L9.43395833,2.04358388 C9.76220278,1.71497406 10.2076171,1.53033223 10.6720833,1.53033223 C11.1365495,1.53033223 11.5819639,1.71497406 11.9097495,2.043125 C12.2383593,2.37136945 12.4230011,2.81678382 12.4230011,3.28125 C12.4230011,3.74571618 12.2383593,4.19113055 11.909979,4.51914562 L11.8795032,4.54957123 C11.7711153,4.66037676 11.7410852,4.8259975 11.8036698,4.96780355 C11.820165,5.00517877 11.832643,5.04407976 11.8409658,5.0838519 Z M5.32570846,3.30839955 C4.77441872,3.50165553 4.15603406,3.36755835 3.72918771,2.94997896 L3.69395833,2.91474945 C3.58454352,2.80521284 3.43607206,2.74366557 3.28125,2.74366557 C3.12642794,2.74366557 2.97795648,2.80521284 2.86808278,2.91520833 C2.75854618,3.02462315 2.6969989,3.17309461 2.6969989,3.32791667 C2.6969989,3.48273873 2.75854618,3.63121018 2.86831229,3.74085438 L2.90783651,3.78042877 C3.3497255,4.23217443 3.47215604,4.90739742 3.23081273,5.45135564 C3.01171177,6.04708399 2.45070951,6.44833064 1.8025,6.46333333 L1.75,6.46333333 C1.4278339,6.46333333 1.16666667,6.72450056 1.16666667,7.04666667 C1.16666667,7.36883277 1.4278339,7.63 1.75,7.63 L1.85149318,7.63000464 C2.46761824,7.63246196 3.02345194,8.00056374 3.26366984,8.56113688 C3.51882271,9.13926925 3.39639217,9.81449224 2.94997896,10.2708123 L2.91474945,10.3060417 C2.80521284,10.4154565 2.74366557,10.5639279 2.74366557,10.71875 C2.74366557,10.8735721 2.80521284,11.0220435 2.91520833,11.1319172 C3.02462315,11.2414538 3.17309461,11.3030011 3.32791667,11.3030011 C3.48273873,11.3030011 3.63121018,11.2414538 3.74085438,11.1316877 L3.78042877,11.0921635 C4.23217443,10.6502745 4.90739742,10.527844 5.45135564,10.7691873 C6.04708399,10.9882882 6.44833064,11.5492905 6.46333333,12.1975 L6.46333333,12.25 C6.46333333,12.5721661 6.72450056,12.8333333 7.04666667,12.8333333 C7.36883277,12.8333333 7.63,12.5721661 7.63,12.25 L7.63000464,12.1485068 C7.63246196,11.5323818 8.00056374,10.9765481 8.56113688,10.7363302 C9.13926925,10.4811773 9.81449224,10.6036078 10.2708123,11.050021 L10.3060417,11.0852505 C10.4154565,11.1947872 10.5639279,11.2563344 10.71875,11.2563344 C10.8735721,11.2563344 11.0220435,11.1947872 11.1319172,11.0847917 C11.2414538,10.9753769 11.3030011,10.8269054 11.3030011,10.6720833 C11.3030011,10.5172613 11.2414538,10.3687898 11.1316877,10.2591456 L11.0921635,10.2195712 C10.6502745,9.76782557 10.527844,9.09260258 10.7829968,8.51447022 C11.0232147,7.95389707 11.5790484,7.58579529 12.1975,7.58333333 L12.25,7.58333333 C12.5721661,7.58333333 12.8333333,7.3221661 12.8333333,7 C12.8333333,6.6778339 12.5721661,6.41666667 12.25,6.41666667 L12.1485068,6.41666203 C11.5323818,6.41420471 10.9765481,6.04610293 10.7338351,5.47979334 C10.7127093,5.43050161 10.6985296,5.37864558 10.6916004,5.32570846 C10.4983445,4.77441872 10.6324417,4.15603406 11.050021,3.72918771 L11.0852505,3.69395833 C11.1947872,3.58454352 11.2563344,3.43607206 11.2563344,3.28125 C11.2563344,3.12642794 11.1947872,2.97795648 11.0847917,2.86808278 C10.9753769,2.75854618 10.8269054,2.6969989 10.6720833,2.6969989 C10.5172613,2.6969989 10.3687898,2.75854618 10.2591456,2.86831229 L10.2195712,2.90783651 C9.76782557,3.3497255 9.09260258,3.47215604 8.52020666,3.21949823 C7.95389707,2.97678527 7.58579529,2.42095158 7.58333333,1.8025 L7.58333333,1.75 C7.58333333,1.4278339 7.3221661,1.16666667 7,1.16666667 C6.6778339,1.16666667 6.41666667,1.4278339 6.41666667,1.75 L6.41666203,1.85149318 C6.41420471,2.46761824 6.04610293,3.02345194 5.47979334,3.2661649 C5.43050161,3.2872907 5.37864558,3.3014704 5.32570846,3.30839955 Z M7,9.33333333 C5.71133558,9.33333333 4.66666667,8.28866442 4.66666667,7 C4.66666667,5.71133558 5.71133558,4.66666667 7,4.66666667 C8.28866442,4.66666667 9.33333333,5.71133558 9.33333333,7 C9.33333333,8.28866442 8.28866442,9.33333333 7,9.33333333 Z M7,8.16666667 C7.64433221,8.16666667 8.16666667,7.64433221 8.16666667,7 C8.16666667,6.35566779 7.64433221,5.83333333 7,5.83333333 C6.35566779,5.83333333 5.83333333,6.35566779 5.83333333,7 C5.83333333,7.64433221 6.35566779,8.16666667 7,8.16666667 Z"></path>\n                                    </svg>\n                                </div>\n                                \n                                <div class="eapps-widget-toolbar-panel-edit-label">Edit widget</div>\n                            </div>\n                        </a>\n                        \n                        <div class="eapps-widget-toolbar-panel-views eapps-widget-toolbar-panel-views-').concat(t.usageStatus(),'">\n                            <div class="eapps-widget-toolbar-panel-views-label">Views</div>\n                            \n                            <div class="eapps-widget-toolbar-panel-views-bar">\n                                <div class="eapps-widget-toolbar-panel-views-bar-inner" style="width:').concat(i,'%"></div>\n                            </div>\n                            \n                            <div class="eapps-widget-toolbar-panel-views-percent">').concat(Math.round(i),'%</div>\n                        </div>\n                        \n                        <a href="').concat(c(a,"extend-limits"),'" target="_blank" style="display:').concat(i>=90?"block":"none",'">\n                            <div class="eapps-widget-toolbar-panel-views-get-more">\n                                Extend Limit\n                            </div>\n                        </a>\n                    </div>\n                    \n                    <div class="eapps-widget-toolbar-panel-share" style="display:').concat(i<90?"inline-flex":"none",'">\n                        <div class="eapps-widget-toolbar-panel-share-button">\n                            <svg width="12px" height="12px" viewBox="0 0 24 24">\n                                <path id="XMLID_31_" d="M12.7,15.3c-4.5,0.1-8.4,2.5-10.7,6c-0.2,0.3-0.6,0.5-0.9,0.5c-0.1,0-0.2,0-0.3,0c-0.5-0.1-0.8-0.6-0.8-1c0,0,0-0.1,0-0.1c0-7.1,5.7-12.9,12.7-13V5.5c0-0.5,0.3-0.9,0.7-1.1c0.2-0.1,0.4-0.1,0.6-0.1c0.3,0,0.5,0.1,0.7,0.2l8.8,6c0.3,0.2,0.5,0.6,0.5,0.9c0,0.4-0.2,0.7-0.5,1l-8.8,6.1c-0.2,0.2-0.5,0.2-0.7,0.2c-0.2,0-0.4,0-0.6-0.1c-0.4-0.2-0.7-0.7-0.7-1.1V15.3z"></path>\n                            </svg>\n                            \n                            <span>Share</span>\n                        </div>\n                        \n                        <div class="eapps-widget-toolbar-panel-share-block">\n                            <div class="eapps-widget-toolbar-panel-share-block-text">\n                                <div class="eapps-widget-toolbar-panel-share-block-text-icon">🔥</div>\n                                Tell your customers about<br>new website functionality!\n                            </div>\n                            \n                            <div class="eapps-widget-toolbar-panel-share-block-actions">\n                                <div class="eapps-widget-toolbar-panel-share-block-actions-item-facebook eapps-widget-toolbar-panel-share-block-actions-item">\n                                    <a href="javascript:void(0)"\n                                       onclick="window.open(\'http://www.facebook.com/sharer.php?u=').concat(encodeURIComponent(t.websiteUrl),'\', \'facebook\', \'width=555,height=640,toolbar=0,status=0\'); return false;"\n                                       target="_blank" title="Share on Facebook">\n                                       \n                                        <svg class="eapps-widget-toolbar-panel-share-block-actions-item-icon" viewBox="0 0 1024 1024">\n                                            <path d="M234.747 554.565V346.624h152.512v-81.02C387.259 125.893 492.2.068 621.186.068h168.068v207.918H621.186c-18.412 0-39.85 22.329-39.85 55.801v82.826h207.918v207.929H581.336v469.39H387.247V554.564H234.746z"></path>\n                                        </svg>\n                                    </a>\n                                </div>\n                                \n                                <div class="eapps-widget-toolbar-panel-share-block-actions-item-twitter eapps-widget-toolbar-panel-share-block-actions-item">\n                                    <a href="https://twitter.com/share?url=').concat(encodeURIComponent(t.websiteUrl),'&via=elfsight&text=Now my site is cool as ever with a widget by Elfsight from https://elfsight.com/"\n                                       onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"\n                                       target="_blank" title="Share on Twitter">\n                                       \n                                        <svg class="eapps-widget-toolbar-panel-share-block-actions-item-icon" viewBox="0 0 1024 1024">\n                                            <path d="M912.964 321.322c13.032 289.559-202.954 612.433-585.152 612.433-116.254 0-224.521-34.104-315.596-92.559 109.203 12.898 218.206-17.38 304.798-85.227-90.111-1.646-166.12-61.158-192.344-142.973 32.258 6.181 64.008 4.388 92.974-3.532-98.995-19.869-167.378-109.096-165.13-204.452 27.789 15.427 59.512 24.699 93.255 25.742-91.676-61.278-117.633-182.336-63.713-274.868C183.633 280.463 335.317 362.425 506.4 370.988c-29.983-128.778 67.66-252.779 200.585-252.779 59.204 0 112.682 25.006 150.238 65.011 46.882-9.232 90.927-26.384 130.744-49.959-15.386 48.059-48.046 88.438-90.526 113.926 41.61-4.977 81.307-16.069 118.208-32.445-27.562 41.316-62.456 77.574-102.688 106.581z"></path>\n                                        </svg>\n                                    </a>\n                                </div>\n                                \n                                <div class="eapps-widget-toolbar-panel-share-block-actions-item-google eapps-widget-toolbar-panel-share-block-actions-item">\n                                    <a href="https://plus.google.com/share?url=').concat(encodeURIComponent(t.websiteUrl),'"\n                                       onclick="javascript:window.open(this.href, \'google+\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=480\');return false;"\n                                       target="_blank" title="Share on Google+">\n                                       \n                                        <svg class="eapps-widget-toolbar-panel-share-block-actions-item-icon" viewBox="0 0 1024 1024">\n                                            <path d="M327.072 448.23v127.536s123.72-.164 174.097-.164c-27.28 82.677-69.698 127.7-174.097 127.7-105.651 0-188.112-85.65-188.112-191.302s82.461-191.302 188.112-191.302c55.861 0 91.937 19.633 125.029 47.001 26.49-26.49 24.274-30.264 91.669-93.908-57.209-52.071-133.245-83.815-216.695-83.815C149.223 189.976 5.051 334.151 5.051 512s144.175 322.024 322.024 322.024c265.837 0 330.813-231.474 309.271-385.793H327.072zm580.285 6.38V343.018h-79.709V454.61H712.866v79.709h114.782v114.782h79.709V534.319h111.592V454.61H907.357z"></path>\n                                        </svg>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>');var l=o.body.children[0];e.classList.add("eapps-widget","eapps-widget-show-toolbar"),e.appendChild(l)},t.initWidgetsFromBuffer=function(){o&&o.length&&o.forEach(function(e){e.initialized||(e.initialized=!0,t.initWidget(e.element,e.config))})},t.initialize(),t.getAttributeSettings=function(e){var t={},n="elfsightApp";for(var i in e.dataset)if(i.startsWith(n)){var o="attribute".concat(i.replace(n,""));t[o]=e.dataset[i]}return t}};e.exports=i},function(e,t,n){var i=n(63),o=function(){var e=this;e.timeout=null,e.buffer=[],e.steps=[],e.facade=function(){return new i(e)},e.send=function(){e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){if(e.buffer&&e.buffer.length){e.buffer.forEach(function(t){if(e.steps&&!e.steps.length)e.steps.push({app:t.app,widgetId:t.widgetId,event:t.event,count:t.count});else{var n=!1;e.steps.forEach(function(i,o){i.app==t.app&&i.widgetId==t.widgetId&&i.event==t.event&&(e.steps[o].count+=t.count,n=!0)}),n||e.steps.push({app:t.app,widgetId:t.widgetId,event:t.event,count:t.count})}}),e.dataToSend=[],e.steps.forEach(function(t){e.dataToSend.push({a:t.app,w:t.widgetId,e:t.event,c:t.count})});var t=new XMLHttpRequest;t.open("POST","https://eapps-analytics.elfsight.com/store",!0),t.setRequestHeader("Content-Type","text/plain; charset=UTF-8"),t.send(btoa(JSON.stringify(e.dataToSend))),e.dataToSend=[],e.buffer=[],e.steps=[]}},2500)},e.store=function(e){}};e.exports=o},function(e,t){var n=function(e){var t=this;t.store=function(e){}};e.exports=n},function(e,t,n){var i=n(65);"string"==typeof i&&(i=[[e.id,i,""]]);n(67)(i,{});i.locals&&(e.exports=i.locals)},function(e,t,n){t=e.exports=n(66)(),t.push([e.id,'div.eapps-widget{position:relative}div.eapps-widget.eapps-widget-show-toolbar:before{position:absolute;content:"";display:block;bottom:0;top:0;left:0;right:0;pointer-events:none;border:1px solid transparent;transition:border .3s ease;z-index:1}.eapps-widget-toolbar{position:absolute;top:-32px;left:0;right:0;display:block;z-index:99999;padding-bottom:4px;transition:all .3s ease;pointer-events:none;opacity:0}.eapps-widget:hover .eapps-widget-toolbar{opacity:1;pointer-events:auto}.eapps-widget-toolbar a{text-decoration:none;box-shadow:none!important}.eapps-widget-toolbar-panel{border-radius:6px;background-color:#222;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;top:0;position:relative;transition:all .3s ease;opacity:0;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 0 1px hsla(0,0%,100%,.2);height:28px}.eapps-widget:hover .eapps-widget-toolbar-panel{opacity:1}.eapps-widget-toolbar-panel-wrapper{width:100%;position:relative}.eapps-widget-toolbar-panel-only-you{position:absolute;top:-24px;font-size:11px;line-height:14px;color:#9c9c9c;padding:5px 4px}.eapps-widget-toolbar-panel-logo{width:28px;height:28px;border-right:1px solid hsla(0,0%,100%,.2);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.eapps-widget-toolbar-panel-logo svg{display:block;width:15px;height:15px;fill:#f93262}.eapps-widget-toolbar-panel-edit{font-size:12px;font-weight:400;line-height:14px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding:9px;border-right:1px solid hsla(0,0%,100%,.2);color:#fff;text-decoration:none}.eapps-widget-toolbar-panel-edit-icon{width:14px;height:14px;margin-right:8px}.eapps-widget-toolbar-panel-edit-icon svg{display:block;width:100%;height:100%;fill:#fff}.eapps-widget-toolbar-panel-views{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.eapps-widget-toolbar-panel-views-label{font-size:12px;font-weight:400;line-height:14px;margin-left:8px}.eapps-widget-toolbar-panel-views-bar{display:-ms-inline-flexbox;display:inline-flex;width:70px;height:3px;border-radius:2px;margin-left:8px;background-color:hsla(0,0%,100%,.3)}.eapps-widget-toolbar-panel-views-bar-inner{border-radius:2px;background-color:#4ad504}.eapps-widget-toolbar-panel-views-green .eapps-widget-toolbar-panel-views-bar-inner{background-color:#4ad504}.eapps-widget-toolbar-panel-views-red .eapps-widget-toolbar-panel-views-bar-inner{background-color:#ff4734}.eapps-widget-toolbar-panel-views-orange .eapps-widget-toolbar-panel-views-bar-inner{background-color:#ffb400}.eapps-widget-toolbar-panel-views-percent{display:-ms-inline-flexbox;display:inline-flex;margin-left:8px;margin-right:8px;font-size:12px;font-weight:400;line-height:14px}.eapps-widget-toolbar-panel-views-get-more{padding:9px 16px;background-color:#f93262;color:#fff;font-size:12px;font-weight:400;border-radius:0 6px 6px 0}.eapps-widget-toolbar-panel-share{position:absolute;top:0;display:inline-block;margin-left:8px;width:83px;height:28px;padding-bottom:4px;box-sizing:content-box!important}.eapps-widget-toolbar-panel-share:hover .eapps-widget-toolbar-panel-share-block{opacity:1;pointer-events:all}.eapps-widget-toolbar-panel-share-button{padding:0 18px;height:28px;background-color:#1c91ff;color:#fff;font-size:12px;font-weight:400;border-radius:6px;position:absolute;top:0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;cursor:default;-ms-flex-align:center;align-items:center}.eapps-widget-toolbar-panel-share-button svg{display:inline-block;margin-right:6px;fill:#fff;position:relative;top:-1px}.eapps-widget-toolbar-panel-share-block{position:absolute;background:#fff;border:1px solid hsla(0,0%,7%,.1);border-radius:10px;width:209px;top:32px;transform:translateX(-63px);opacity:0;pointer-events:none;transition:all .3s ease;box-shadow:0 4px 6px rgba(0,0,0,.05)}.eapps-widget-toolbar-panel-share-block:hover{opacity:1;pointer-events:all}.eapps-widget-toolbar-panel-share-block-text{color:#111;font-size:15px;font-weight:400;padding:12px 0;text-align:center}.eapps-widget-toolbar-panel-share-block-text-icon{padding-bottom:4px}.eapps-widget-toolbar-panel-share-block-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;border-top:1px solid hsla(0,0%,7%,.1)}.eapps-widget-toolbar-panel-share-block-actions-item{width:33.333333%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:39px;transition:all .3s ease;background-color:transparent}.eapps-widget-toolbar-panel-share-block-actions-item:hover{background-color:#fafafa}.eapps-widget-toolbar-panel-share-block-actions-item a{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.eapps-widget-toolbar-panel-share-block-actions-item-icon{width:16px;height:16px;display:block}.eapps-widget-toolbar-panel-share-block-actions-item-facebook .eapps-widget-toolbar-panel-share-block-actions-item-icon{fill:#3c5a9b}.eapps-widget-toolbar-panel-share-block-actions-item-twitter .eapps-widget-toolbar-panel-share-block-actions-item-icon{fill:#1ab2e8}.eapps-widget-toolbar-panel-share-block-actions-item-google .eapps-widget-toolbar-panel-share-block-actions-item-icon{fill:#dd4b39}.eapps-widget-toolbar-panel-share-block-actions-item:not(:last-child){border-right:1px solid hsla(0,0%,7%,.1)}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=d[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(l(i.parts[r],t))}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(l(i.parts[r],t));d[i.id]={id:i.id,refs:1,parts:a}}}}function o(e){for(var t=[],n={},i=0;i<e.length;i++){var o=e[i],r=o[0],a=o[1],s=o[2],c=o[3],l={css:a,media:s,sourceMap:c};n[r]?n[r].parts.push(l):t.push(n[r]={id:r,parts:[l]})}return t}function r(e,t){var n=v(),i=m[m.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),m.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=m.indexOf(e);t>=0&&m.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function c(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function l(e,t){var n,i,o;if(t.singleton){var r=w++;n=b||(b=s(t)),i=p.bind(null,n,r,!1),o=p.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),i=f.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=u.bind(null,n),o=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}function p(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function u(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,i=t.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}var d={},g=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=g(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=g(function(){return document.head||document.getElementsByTagName("head")[0]}),b=null,w=0,m=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return i(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var s=n[a],c=d[s.id];c.refs--,r.push(c)}if(e){var l=o(e);i(l,t)}for(var a=0;a<r.length;a++){var c=r[a];if(0===c.refs){for(var p=0;p<c.parts.length;p++)c.parts[p]();delete d[c.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}]);var _userway_config={account:'XwGsZCSFoU'};!function(){function t(t,e){var n=document.body||document.head,i=document.createElement("script");i.src=t,i.async=!0,i.id="a11yWidgetSrc",e&&(i.crossOrigin="anonymous",i.integrity=e),n.appendChild(i)}function e(){var t=document.createElement("iframe");t.title="Online scanning alert",t.setAttribute("style","width:100%!important;height:100%!important;position:fixed!important;left:0!important;right:0!important;top:0!important;bottom:0!important;z-index:999999"),document.body.appendChild(t),t.src=o+"scan_error.html",window.addEventListener("message",function(e){e.data&&"scan-alert-dismiss"===e.data.action&&a.indexOf(e.origin)>=0&&t.remove()})}try{var n=document.querySelector("html"),i="data-uw-w-loader";if(n&&n.hasAttribute(i))return;n.setAttribute(i,"")}catch(t){}var a="https://cdn.userway.org/",o=a+"widgetapp/",r=o+"2024-10-08-15-28-17/widget_app_base_1728401297040.js",d=o+"2024-10-08-15-28-17/widget_app_1728401297040.js",s="sha256-/L0i/PNV+MobTu5SDKJUG7AvqMd8z+LSeVVwuJp/0TQ=";if(location.origin&&location.origin.indexOf(atob("LndlYmFpbS4="))>-1||location.origin&&location.origin.indexOf(atob("YWNzYmFjZQ=="))>-1)setTimeout(function(){e()},1e3);else{if(!new RegExp("(bot|crawler)","i").test(navigator.userAgent)){var c=window._userway_config;navigator.userAgent.match(/mobile/i)&&c&&("false"===c.mobile||!1===c.mobile)||(!function(){try{UserWayWidgetApp={};var t=Object.keys(localStorage).filter(function(t){return 0===t.indexOf("userway-s")}).length>0,e=!!localStorage.getItem("isCypress");(t||e||/Edge\/|Trident\/|MSIE/.test(navigator.userAgent))&&(r=d,s="sha256-wdO/bnmEmJRVqWpX6o49vAkR2GUGpB9iaIjUIqGLvFg=",UserWayWidgetApp.lazyLoaded=!0)}catch(t){}}(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return t(r,s)}):t(r,s))}}}();jQuery(window).on('load',function(){jQuery(".trigger-next-zzd input[type='radio'], .trigger-next-zzd select").change(function(){var parent=jQuery(this).parents(".gfield.trigger-next-zzd");if(jQuery(this).parents(".gform_page").find(".gform_next_button").length>0){jQuery(this).parents(".gform_page").find(".gform_next_button").click()}else if(jQuery(this).parents(".gform_page").find("input[type='submit']").length>0){jQuery(this).parents(".gform_page").find(".gform_next_button").click()}});if(jQuery(".gform_page").length>0){jQuery(".gform_page").each(function(){if(jQuery(this).find(".hide-next-button").length>0){jQuery(this).find(".gform_next_button").addClass('keep_hidden')}else{jQuery(this).find(".gform_next_button").addClass('make_visible')}
if(jQuery(this).find(".hide-submit-button").length>0){jQuery(this).find(".gform_button").addClass('keep_hidden')}else{jQuery(this).find(".gform_button").addClass('make_visible')}})}});/*! jquery.cookie v1.4.1 | MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});(function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;this.attr("novalidate","novalidate");b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){a=this.find("input, button");a.filter(".cancel").click(function(){b.cancelSubmit=!0});b.settings.submitHandler&&a.filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("<input type='hidden'/>").attr("name",b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return!1}return!0}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=!1;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=!0;return!1}return e()}else{b.focusInvalid();return!1}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form();else{var a=!0,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name];return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a,b){this.settings=c.extend(!0,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)},onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).addClass(b).removeClass(d):c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).removeClass(b).addClass(d):c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator"),g="on"+e.type.replace(/^validate/,"");f.settings[g]&&f.settings[g].call(f,this[0],e)}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d=this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",a).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(a){this.lastElement=a=this.validationTargetFor(this.clean(a));this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=!0;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList,function(d){return!(d.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return!1;return b[this.name]=!0})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.validationTargetFor(this.clean(a));var b=c(a).rules(),d=!1,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=!0;else{d=!1;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return!1}}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+a.id+", check the '"+f.method+"' method",h);throw h}}if(!d){this.objectLength(b)&&this.successList.push(a);return!0}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a]},defaultMessage:function(a,b){return this.findDefined(this.customMessage(a.name,b),this.customMetaMessage(a,b),!this.settings.ignoreTitle&&a.title||undefined,c.validator.messages[b],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]=d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a,b){var d=this.errorsFor(a);if(d.length){d.removeClass(this.settings.validClass).addClass(this.settings.errorClass);d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:!0}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];return a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d,e){return e.form==b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this,c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=!0}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=!1}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=!1}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:!0,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings,a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e;if(e=d==="required"&&typeof c.fn.prop==="function"?a.prop(d):a.attr(d))b[d]=e;else if(a[0].getAttribute("type")===d)b[d]=!0}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{};var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]:c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===!1)delete a[d];else if(e.param||e.depends){var f=!0;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined?e.param:!0;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)?e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var b={};c.each(a.split(/\s/),function(){b[this]=!0});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a,b)>0;default:return c.trim(a).length>0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(!0,{url:d,mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===!0;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 -]+/.test(a))return!1;var d=0,e=0,f=!1;a=a.replace(/\D/g,"");for(var g=a.length-1;g>=0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery);(function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery);(function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,!0)},teardown:function(){this.removeEventListener(a,d,!0)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a,b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery);/*!
 * jquery-confirm v3.2.0 (http://craftpip.github.io/jquery-confirm/)
 * Author: Boniface Pereira
 * Website: www.craftpip.com
 * Contact: hey@craftpip.com
 *
 * Copyright 2013-2017 jquery-confirm
 * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
 */
if("undefined"==typeof jQuery)throw new Error("jquery-confirm requires jQuery");var jconfirm,Jconfirm;!function(a,b){"use strict";a.fn.confirm=function(b,c){return"undefined"==typeof b&&(b={}),"string"==typeof b&&(b={content:b,title:!!c&&c}),a(this).each(function(){var c=a(this);c.on("click",function(d){d.preventDefault();var e=a.extend({},b);if(c.attr("data-title")&&(e.title=c.attr("data-title")),c.attr("data-content")&&(e.content=c.attr("data-content")),"undefined"==typeof e.buttons&&(e.buttons={}),e.$target=c,c.attr("href")&&0==Object.keys(e.buttons).length){var f=a.extend(!0,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{}),g=Object.keys(f)[0];e.buttons=f,e.buttons[g].action=function(){location.href=c.attr("href")}}e.closeIcon=!1,a.confirm(e)})}),a(this)},a.confirm=function(b,c){if("undefined"==typeof b&&(b={}),"string"==typeof b&&(b={content:b,title:!!c&&c}),"object"!=typeof b.buttons&&(b.buttons={}),0==Object.keys(b.buttons).length){var d=a.extend(!0,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{});b.buttons=d}return jconfirm(b)},a.alert=function(b,c){if("undefined"==typeof b&&(b={}),"string"==typeof b&&(b={content:b,title:!!c&&c}),"object"!=typeof b.buttons&&(b.buttons={}),0==Object.keys(b.buttons).length){var d=a.extend(!0,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{}),e=Object.keys(d)[0];b.buttons[e]=d[e]}return jconfirm(b)},a.dialog=function(a,b){return"undefined"==typeof a&&(a={}),"string"==typeof a&&(a={content:a,title:!!b&&b,closeIcon:function(){}}),a.buttons={},"undefined"==typeof a.closeIcon&&(a.closeIcon=function(){}),a.confirmKeys=[13],jconfirm(a)},jconfirm=function(b){"undefined"==typeof b&&(b={});var c=a.extend(!0,{},jconfirm.pluginDefaults);jconfirm.defaults&&(c=a.extend(!0,c,jconfirm.defaults)),c=a.extend(!0,{},c,b);var d=new Jconfirm(c);return jconfirm.instances.push(d),d},Jconfirm=function(b){a.extend(this,b),this._init()},Jconfirm.prototype={_init:function(){var b=this;jconfirm.instances.length||(jconfirm.lastFocused=a("body").find(":focus")),this._id=Math.round(99999*Math.random()),setTimeout(function(){b.open()},0)},_buildHTML:function(){var b=this;this._parseAnimation(this.animation,"o"),this._parseAnimation(this.closeAnimation,"c"),this._parseBgDismissAnimation(this.backgroundDismissAnimation),this._parseColumnClass(this.columnClass),this._parseTheme(this.theme),this._parseType(this.type);var c=a(this.template);c.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed),this.typeAnimated&&c.find(".jconfirm-box").addClass("jconfirm-type-animated"),this.useBootstrap?(c.find(".jc-bs3-row").addClass(this.bootstrapClasses.row),c.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center"),c.find(".jconfirm-box-container").addClass(this.columnClassParsed),this.containerFluid?c.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid):c.find(".jc-bs3-container").addClass(this.bootstrapClasses.container)):c.find(".jconfirm-box").css("width",this.boxWidth),this.titleClass&&c.find(".jconfirm-title-c").addClass(this.titleClass),c.addClass(this.themeParsed);var d="jconfirm-box"+this._id;c.find(".jconfirm-box").attr("aria-labelledby",d).attr("tabindex",-1),c.find(".jconfirm-content").attr("id",d),null!=this.bgOpacity&&c.find(".jconfirm-bg").css("opacity",this.bgOpacity),this.rtl&&c.addClass("jconfirm-rtl"),this.$el=c.appendTo(this.container),this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container"),this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box"),this.$jconfirmBg=this.$el.find(".jconfirm-bg"),this.$title=this.$el.find(".jconfirm-title"),this.$titleContainer=this.$el.find(".jconfirm-title-c"),this.$content=this.$el.find("div.jconfirm-content"),this.$contentPane=this.$el.find(".jconfirm-content-pane"),this.$icon=this.$el.find(".jconfirm-icon-c"),this.$closeIcon=this.$el.find(".jconfirm-closeIcon"),this.$btnc=this.$el.find(".jconfirm-buttons"),this.$scrollPane=this.$el.find(".jconfirm-scrollpane"),this._contentReady=a.Deferred(),this._modalReady=a.Deferred(),this.setTitle(),this.setIcon(),this._setButtons(),this._parseContent(),this.initDraggable(),this.isAjax&&this.showLoading(!1),a.when(this._contentReady,this._modalReady).then(function(){b.isAjaxLoading?setTimeout(function(){b.isAjaxLoading=!1,b.setContent(),b.setTitle(),b.setIcon(),setTimeout(function(){b.hideLoading(!1)},100),"function"==typeof b.onContentReady&&b.onContentReady()},50):(b.setContent(),b.setTitle(),b.setIcon(),"function"==typeof b.onContentReady&&b.onContentReady()),b.autoClose&&b._startCountDown()}),b._contentHash=this._hash(b.$content.html()),b._contentHeight=this.$content.height(),this._watchContent(),this.setDialogCenter(),"none"==this.animation&&(this.animationSpeed=1,this.animationBounce=1),this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce)),this.$contentPane.css(this._getCSS(this.animationSpeed,1)),this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1))},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(a){this.typeParsed=this._typePrefix+a},setType:function(a){var b=this.typeParsed;this._parseType(a),this.$jconfirmBox.removeClass(b).addClass(this.typeParsed)},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(a){var b=this.theme;this.theme=a||this.theme,this._parseTheme(this.theme),b&&this.$el.removeClass(b),this.$el.addClass(this.themeParsed),this.theme=a},_parseTheme:function(b){var c=this;b=b.split(","),a.each(b,function(d,e){e.indexOf(c._themePrefix)==-1&&(b[d]=c._themePrefix+a.trim(e))}),this.themeParsed=b.join(" ").toLowerCase()},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(b){var c=b.split(","),d=this;a.each(c,function(b,e){e.indexOf(d._bgDismissPrefix)==-1&&(c[b]=d._bgDismissPrefix+a.trim(e))}),this.backgroundDismissAnimationParsed=c.join(" ").toLowerCase()},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(a){this.animation=a||this.animation,this._parseAnimation(this.animation,"o")},_parseAnimation:function(b,c){c=c||"o";var d=b.split(","),e=this;a.each(d,function(b,c){c.indexOf(e._animationPrefix)==-1&&(d[b]=e._animationPrefix+a.trim(c))});var f=d.join(" ").toLowerCase();return"o"==c?this.animationParsed=f:this.closeAnimationParsed=f,f},setCloseAnimation:function(a){this.closeAnimation=a||this.closeAnimation,this._parseAnimation(this.closeAnimation,"c")},setAnimationSpeed:function(a){this.animationSpeed=a||this.animationSpeed},columnClassParsed:"",setColumnClass:function(a){this.columnClass=a||this.columnClass,this._parseColumnClass(this.columnClass),this.$jconfirmBoxContainer.addClass(this.columnClassParsed)},_parseColumnClass:function(a){a=a.toLowerCase();var b;switch(a){case"xl":case"xlarge":b="col-md-12";break;case"l":case"large":b="col-md-8 col-md-offset-2";break;case"m":case"medium":b="col-md-6 col-md-offset-3";break;case"s":case"small":b="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":b="col-md-2 col-md-offset-5";break;default:b=a}this.columnClassParsed=b},initDraggable:function(){var c=this,d=this.$titleContainer;this.resetDrag(),this.draggable&&(d.addClass("jconfirm-hand"),d.on("mousedown",function(a){c.mouseX=a.clientX,c.mouseY=a.clientY,c.isDrag=!0}),a(b).on("mousemove."+this._id,function(a){c.isDrag&&(c.movingX=a.clientX-c.mouseX+c.initialX,c.movingY=a.clientY-c.mouseY+c.initialY,c.setDrag())}),a(b).on("mouseup."+this._id,function(){c.isDrag&&(c.isDrag=!1,c.initialX=c.movingX,c.initialY=c.movingY)}))},resetDrag:function(){this.isDrag=!1,this.initialX=0,this.initialY=0,this.movingX=0,this.movingY=0,this.movingXCurrent=0,this.movingYCurrent=0,this.mouseX=0,this.mouseY=0,this.$jconfirmBoxContainer.css("transform","translate(0px, 0px)")},setDrag:function(){if(this.draggable){this.alignMiddle=!1,this._boxWidth=this.$jconfirmBox.outerWidth();var c=a(b).width(),d=this;if(d.movingX%2==0||d.movingY%2==0){var e=d._boxTopMargin-d.dragWindowGap;e+d.movingY<0?d.movingY=-e:d.movingYCurrent=d.movingY;var f=c/2-d._boxWidth/2,g=c/2+d._boxWidth/2-d._boxWidth;g-=d.dragWindowGap,f-=d.dragWindowGap,f+d.movingX<0?d.movingX=-f:g-d.movingX<0?d.movingX=g:d.movingXCurrent=d.movingX,d.$jconfirmBoxContainer.css("transform","translate("+d.movingX+"px, "+d.movingY+"px)")}}},_hash:function(a){var b=a.toString(),c=0;if(0==b.length)return c;for(var d=0;d<b.length;d++){var e=b.toString().charCodeAt(d);c=(c<<5)-c+e,c&=c}return c},_watchContent:function(){var a=this;this._timer&&clearInterval(this._timer),this._timer=setInterval(function(){var b=a._hash(a.$content.html()),c=a.$content.height();a._contentHash==b&&a._contentHeight==c||(a._contentHash=b,a._contentHeight=c,a.setDialogCenter(),a._imagesLoaded())},this.watchInterval)},_hilightAnimating:!1,_hiLightModal:function(){var a=this;if(!this._hilightAnimating){a.$body.addClass("hilight");var b=2;this._hilightAnimating=!0,setTimeout(function(){a._hilightAnimating=!1,a.$body.removeClass("hilight")},1e3*b)}},_bindEvents:function(){var c=this;this.boxClicked=!1,this.$scrollPane.click(function(a){if(!c.boxClicked){var e,b=!1,d=!1;if(e="function"==typeof c.backgroundDismiss?c.backgroundDismiss():c.backgroundDismiss,"string"==typeof e&&"undefined"!=typeof c.buttons[e]?(b=e,d=!1):d="undefined"==typeof e||1==!!e,b){var f=c.buttons[b].action.apply(c);d="undefined"==typeof f||!!f}d?c.close():c._hiLightModal()}c.boxClicked=!1}),this.$jconfirmBox.click(function(a){c.boxClicked=!0});var d=!1;a(b).on("jcKeyDown."+c._id,function(a){d||(d=!0,console.log("keydown"+d))}),a(b).on("keyup."+c._id,function(a){d&&(c.reactOnKey(a),d=!1)}),a(b).on("resize."+this._id,function(){c.setDialogCenter(!0),setTimeout(function(){c.resetDrag()},100)})},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(a,b){return{"-webkit-transition-duration":a/1e3+"s","transition-duration":a/1e3+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+b+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+b+")"}},_imagesLoaded:function(){var b=this;b.imageLoadInterval&&clearInterval(b.imageLoadInterval),a.each(this.$content.find("img:not(.loaded)"),function(c,d){b.imageLoadInterval=setInterval(function(){var c=a(d).css("height");"0px"!==c&&(a(d).addClass("loaded"),clearInterval(b.imageLoadInterval),b.setDialogCenter())},40)})},_setButtons:function(){var b=this,c=0;if("object"!=typeof this.buttons&&(this.buttons={}),a.each(this.buttons,function(d,e){c+=1,"function"==typeof e&&(b.buttons[d]=e={action:e}),b.buttons[d].text=e.text||d,b.buttons[d].btnClass=e.btnClass||"btn-default",b.buttons[d].action=e.action||function(){},b.buttons[d].keys=e.keys||[],a.each(b.buttons[d].keys,function(a,c){b.buttons[d].keys[a]=c.toLowerCase()});var f=a('<button type="button" class="btn '+b.buttons[d].btnClass+'">'+b.buttons[d].text+"</button>").click(function(a){a.preventDefault();var c=b.buttons[d].action.apply(b);b.onAction(d),b._stopCountDown(),("undefined"==typeof c||c)&&b.close()});b.buttons[d].el=f,b.buttons[d].setText=function(a){f.html(a)},b.buttons[d].addClass=function(a){f.addClass(a)},b.buttons[d].removeClass=function(a){f.removeClass(a)},b.buttons[d].disable=function(){f.prop("disabled",!0)},b.buttons[d].enable=function(){f.prop("disabled",!1)},b.buttons[d].show=function(){f.css("display",""),b.setDialogCenter()},b.buttons[d].hide=function(){f.css("display","none"),b.setDialogCenter()},b["$_"+d]=b["$$"+d]=f,b.$btnc.append(f)}),0===c&&this.$btnc.hide(),null===this.closeIcon&&0===c&&(this.closeIcon=!0),this.closeIcon){if(this.closeIconClass){var d='<i class="'+this.closeIconClass+'"></i>';this.$closeIcon.html(d)}this.$closeIcon.click(function(a){a.preventDefault();var e,c=!1,d=!1;if(e="function"==typeof b.closeIcon?b.closeIcon():b.closeIcon,"string"==typeof e&&"undefined"!=typeof b.buttons[e]?(c=e,d=!1):d="undefined"==typeof e||1==!!e,c){var f=b.buttons[c].action.apply(b);d="undefined"==typeof f||!!f}d&&b.close()}),this.$closeIcon.show()}else this.$closeIcon.hide()},setTitle:function(a,b){if(b=b||!1,"undefined"!=typeof a)if("string"==typeof a)this.title=a;else if("function"==typeof a){"function"==typeof a.promise&&console.error("Promise was returned from title function, this is not supported.");var c=a();"string"==typeof c?this.title=c:this.title=!1}else this.title=!1;this.isAjaxLoading&&!b||this.$title.html(this.title||"")},setIcon:function(a,b){if(b=b||!1,"undefined"!=typeof a)if("string"==typeof a)this.icon=a;else if("function"==typeof a){var c=a();"string"==typeof c?this.icon=c:this.icon=!1}else this.icon=!1;this.isAjaxLoading&&!b||this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':"")},setContentPrepend:function(a,b){this.contentParsed=a+this.contentParsed,this.isAjaxLoading&&!b||this.$content.prepend(a)},setContentAppend:function(a,b){this.contentParsed=this.contentParsed+a,this.isAjaxLoading&&!b||this.$content.append(a)},setContent:function(a,b){b=b||!1;var c=this;this.contentParsed="undefined"==typeof a?this.contentParsed:a,this.isAjaxLoading&&!b||(this.$content.html(this.contentParsed),this.setDialogCenter(),setTimeout(function(){c.$body.find("input[autofocus]:visible:first").focus()},100))},loadingSpinner:!1,showLoading:function(a){this.loadingSpinner=!0,this.$jconfirmBox.addClass("loading"),a&&this.$btnc.find("button").prop("disabled",!0),this.setDialogCenter()},hideLoading:function(a){this.loadingSpinner=!1,this.$jconfirmBox.removeClass("loading"),a&&this.$btnc.find("button").prop("disabled",!1),this.setDialogCenter()},ajaxResponse:!1,contentParsed:"",isAjax:!1,isAjaxLoading:!1,_parseContent:function(){var b=this,c="&nbsp;";if("function"==typeof this.content){var d=this.content.apply(this);"string"==typeof d?this.content=d:"object"==typeof d&&"function"==typeof d.always?(this.isAjax=!0,this.isAjaxLoading=!0,d.always(function(a,c,d){b.ajaxResponse={data:a,status:c,xhr:d},b._contentReady.resolve(a,c,d),"function"==typeof b.contentLoaded&&b.contentLoaded(a,c,d)}),this.content=c):this.content=c}if("string"==typeof this.content&&"url:"===this.content.substr(0,4).toLowerCase()){this.isAjax=!0,this.isAjaxLoading=!0;var e=this.content.substring(4,this.content.length);a.get(e).done(function(a){b.contentParsed=a}).always(function(a,c,d){b.ajaxResponse={data:a,status:c,xhr:d},b._contentReady.resolve(a,c,d),"function"==typeof b.contentLoaded&&b.contentLoaded(a,c,d)})}this.content||(this.content=c),this.isAjax||(this.contentParsed=this.content,this.setContent(this.contentParsed),b._contentReady.resolve())},_stopCountDown:function(){clearInterval(this.autoCloseInterval),this.$cd&&this.$cd.remove()},_startCountDown:function(){var b=this,c=this.autoClose.split("|");if(2!==c.length)return console.error("Invalid option for autoClose. example 'close|10000'"),!1;var d=c[0],e=parseInt(c[1]);if("undefined"==typeof this.buttons[d])return console.error("Invalid button key '"+d+"' for autoClose"),!1;var f=e/1e3;this.$cd=a('<span class="countdown"> ('+f+")</span>").appendTo(this["$_"+d]),this.autoCloseInterval=setInterval(function(){b.$cd.html(" ("+(f-=1)+") "),0===f&&(b["$$"+d].trigger("click"),b._stopCountDown())},1e3)},_getKey:function(a){switch(a){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space"}var b=String.fromCharCode(a);return!!/^[A-z0-9]+$/.test(b)&&b.toLowerCase()},reactOnKey:function(b){var c=this,d=a(".jconfirm");if(d.eq(d.length-1)[0]!==this.$el[0])return!1;var e=b.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(e))return!1;var f=this._getKey(e);if("esc"===f&&this.escapeKey)if(this.escapeKey===!0)this.$scrollPane.trigger("click");else if("string"==typeof this.escapeKey||"function"==typeof this.escapeKey){var g;g="function"==typeof this.escapeKey?this.escapeKey():this.escapeKey,g&&("undefined"==typeof this.buttons[g]?console.warn("Invalid escapeKey, no buttons found with key "+g):this["$_"+g].trigger("click"))}a.each(this.buttons,function(a,b){b.keys.indexOf(f)!=-1&&c["$_"+a].trigger("click")})},_boxTopMargin:0,_boxBottomMargin:0,_boxWidth:0,setDialogCenter:function(){var c,d,e;c=0,d=0,"none"!=this.$contentPane.css("display")&&(c=this.$content.outerHeight()||0,d=this.$contentPane.height()||0);var f=this.$content.children();if(0!=f.length){var g=parseInt(f.eq(0).css("margin-top"));g&&(c+=g)}0==d&&(d=c);var i,h=a(b).height();i=this.$body.outerHeight()-d+c;var j=(h-i)/2;i>h-(this.offsetTop+this.offsetBottom)||!this.alignMiddle?(e={"margin-top":this.offsetTop,"margin-bottom":this.offsetBottom},this._boxTopMargin=this.offsetTop,this._boxBottomMargin=this.offsetBottom,a("body").addClass("jconfirm-no-scroll-"+this._id)):(e={"margin-top":j,"margin-bottom":this.offsetBottom},this._boxTopMargin=j,this._boxBottomMargin=this.offsetBottom,a("body").removeClass("jconfirm-no-scroll-"+this._id)),this.$contentPane.css({height:c}).scrollTop(0),this.$body.css(e),this.setDrag()},_unwatchContent:function(){clearInterval(this._timer)},close:function(){var c=this;"function"==typeof this.onClose&&this.onClose(),this._unwatchContent(),clearInterval(this.imageLoadInterval),a(b).unbind("resize."+this._id),a(b).unbind("keyup."+this._id),a(b).unbind("jcKeyDown."+this._id),this.draggable&&(a(b).unbind("mousemove."+this._id),a(b).unbind("mouseup."+this._id),this.$titleContainer.unbind("mousedown")),a("body").removeClass("jconfirm-no-scroll-"+this._id),this.$body.addClass(this.closeAnimationParsed),this.$jconfirmBg.addClass("jconfirm-bg-h");var d="none"==this.closeAnimation?1:this.animationSpeed;return c.$el.removeClass(c.loadedClass),setTimeout(function(){c.$el.remove();var e=(jconfirm.instances,jconfirm.instances.length-1);for(e;e>=0;e--)jconfirm.instances[e]._id==c._id&&jconfirm.instances.splice(e,1);if(!jconfirm.instances.length&&c.scrollToPreviousElement&&jconfirm.lastFocused&&jconfirm.lastFocused.length&&a.contains(document,jconfirm.lastFocused[0])){var f=jconfirm.lastFocused;if(c.scrollToPreviousElementAnimate){var g=a(b).scrollTop(),h=jconfirm.lastFocused.offset().top,i=a(b).height();if(h>g&&h<g+i)f.focus();else{var j=h-Math.round(i/3);a("html, body").animate({scrollTop:j},c.animationSpeed,"swing",function(){f.focus()})}}else f.focus();jconfirm.lastFocused=!1}"function"==typeof c.onDestroy&&c.onDestroy()},.4*d),!0},open:function(){return this._buildHTML(),this._bindEvents(),this._open(),!0},_open:function(){var a=this;"function"==typeof a.onOpenBefore&&a.onOpenBefore(),this.$body.removeClass(this.animationParsed),this.$jconfirmBg.removeClass("jconfirm-bg-h"),this.$body.focus(),setTimeout(function(){a.$body.css(a._getCSS(a.animationSpeed,1)),a.$body.css({"transition-property":a.$body.css("transition-property")+", margin"}),a._modalReady.resolve(),"function"==typeof a.onOpen&&a.onOpen(),a.$el.addClass(a.loadedClass)},this.animationSpeed)},loadedClass:"jconfirm-open",isClosed:function(){return""===this.$el.css("display")},isOpen:function(){return!this.isClosed()},toggle:function(){this.isOpen()?this.close():this.open()}},jconfirm.instances=[],jconfirm.lastFocused=!1,jconfirm.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">&times;</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:!0,draggable:!1,alignMiddle:!0,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",bgOpacity:null,theme:"light",animation:"zoom",closeAnimation:"scale",animationSpeed:400,animationBounce:1.2,escapeKey:!0,rtl:!1,container:"body",containerFluid:!1,backgroundDismiss:!1,backgroundDismissAnimation:"shake",autoClose:!1,closeIcon:null,closeIconClass:!1,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:!0,scrollToPreviousElementAnimate:!0,useBootstrap:!0,offsetTop:50,offsetBottom:50,dragWindowGap:15,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var c=!1;a(b).on("keydown",function(d){if(!c){var e=a(d.target),f=!1;e.closest(".jconfirm-box").length&&(f=!0),f&&a(b).trigger("jcKeyDown"),c=!0}}),a(b).on("keyup",function(a){c=!1})}(jQuery,window);/*! This file is auto-generated */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});!function(e){"use strict";var s,t,i,n,o,r,a,u,f,p,h,l,c,d=(t="sf-js-enabled",i="sf-with-ul",n=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").on("click",e.noop),s}(),o="behavior"in(s=document.documentElement.style)&&"fill"in s&&/iemobile/i.test(navigator.userAgent),r=function(e,s){var i=t;e.toggleClass(i)},a=function(e){e.children("a").toggleClass(i)},u=function(e){var s=e.css("ms-touch-action");s="pan-y"===s?"auto":"pan-y",e.css("ms-touch-action",s)},f=function(s){var t=e(this),i=c(t);t.siblings(s.data.popUpSelector).length>0&&(t.parent("li").hasClass(i.hoverClass)?t.trigger("click"):(t.one("click.superfish",!1),"MSPointerDown"===s.type?t.trigger("focus"):e.proxy(p,t.parent("li"))()))},p=function(){var s=e(this),t=c(s);clearTimeout(t.sfTimer),s.siblings().wpexSuperfish("hide").end().wpexSuperfish("show")},h=function(){var s=e(this),t=c(s);n?e.proxy(l,s,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(e.proxy(l,s,t),t.delay))},l=function(e){this.wpexSuperfish("hide")},c=function(e){return function(e){return e.closest("."+t)}(e).data("sf-options")},{hide:function(e){if(this.length){var s=c(this);if(!s)return this;var t=this.find("li."+s.hoverClass).add(this).removeClass(s.hoverClass).children(s.popUpSelector);e&&t.show()}return this},show:function(){var e=c(this);return e?(this.addClass(e.hoverClass).children(e.popUpSelector),this):this},destroy:function(){return this.each((function(){var s,t=e(this),i=t.data("sf-options");if(!i)return!1;s=t.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),r(t),a(s),u(t),t.off(".superfish").off(".hoverIntent"),t.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(t),t.removeData("sf-options")}))},init:function(s){return this.each((function(){var t=e(this);if(t.data("sf-options"))return!1;var i=e.extend({},e.fn.wpexSuperfish.defaults,s),n=t.find(i.popUpSelector).parent("li");t.data("sf-options",i),r(t),a(n),u(t),function(s,t){var i="li:has("+t.popUpSelector+")";e.fn.hoverIntent&&!t.disableHI?s.hoverIntent(p,h,i):s.on("mouseenter.superfish",i,p).on("mouseleave.superfish",i,h);var n="touchend.superfish ";o&&(n+=" mousedown.superfish"),s.on("focusin.superfish","li",p).on("focusout.superfish","li",h).on(n,"a",t,f)}(t,i)}))}});e.fn.wpexSuperfish=function(s,t){return d[s]?d[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.wpexSuperfish"):d.init.apply(this,arguments)},e.fn.wpexSuperfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",delay:800,disableHI:!1,onDestroy:e.noop}}(jQuery),function(e,s){"use strict";e("#site-navigation ul.sf-menu").wpexSuperfish({delay:s.delay,disableHI:!1})}(jQuery,wpex_superfish_params);window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var o=0;o<this.length;o++)e.call(t,this[o],o,this)}),"undefined"==typeof Element||Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),s=1;s<arguments.length;s++){var n=arguments[s];if(null!=n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])}return o},writable:!0,configurable:!0}),"function"!==window.wpexEqualHeights&&(window.wpexEqualHeights=function(e,t,o){if(e&&t){o&&o.childNodes||(o=document);var s=o.querySelectorAll(e);s&&(s.forEach((function(e){"function"==typeof imagesLoaded?new imagesLoaded(e).on("always",(function(t){n(e,!1)})):n(e,!1)})),window.addEventListener("resize",(function(){s.forEach((function(e){n(e,!0)}))})))}function n(e,o){var s=0,n=e.querySelectorAll(t);if(n&&(n.forEach((function(e){if(!e.classList.contains("vc_column-inner")||!e.closest(".vc_row.vc_inner")){o&&(e.style.height="");var t=e.getBoundingClientRect().height;t>s&&(s=t)}})),s&&(n.forEach((function(e){e.style.height=s+"px"})),"undefined"!=typeof Isotope))){var i=Isotope.data(e);i&&i.layout()}}}),"undefined"!=typeof jQuery&&(jQuery.fn.wpexEqualHeights=function(){this.get()&&console.log("The jQuery wpexEqualHeights prototype has been deprecated. Please use the new wpexEqualHeights function.")});
/**
 * Project: Total WordPress Theme.
 *
 * @license All rights reserved.
 */
var wpex={};!function(e){"use strict";(wpex={init:function(){this.config(),this.replaceNoJsClass(),this.bindEvents()},config:function(){this.config={localScrollOffset:0,localScrollSections:[],passiveListeners:this.passiveListenersSupport(),html:document.querySelector("html")}},replaceNoJsClass:function(){let e=document.body.className;e=e.replace(/wpex-no-js/,"wpex-js"),document.body.className=e},bindEvents:function(){const t=this;t.setScrollBarWidth(),t.domReady((()=>{document.body.classList.add("wpex-docready"),t.retinaCheck()&&document.body.classList.add("wpex-is-retina"),t.mobileCheck()&&document.body.classList.add("wpex-is-mobile-device"),t.localScrollSections(),t.megaMenuAddClasses(),t.dropdownMenuOnclick(),t.dropdownMenuTouch(),t.menuWidgetAccordion(),t.inlineHeaderLogo(),t.menuSearch(),t.skipToContent(),t.backTopLink(),t.backTopButton(),t.goBackButton(),t.smoothCommentScroll(),t.toggleElements(),t.localScrollLinks(),t.customSelects(),t.hoverStyles(),t.overlaysMobileSupport(),t.accessibility()})),window.addEventListener("load",(()=>{document.body.classList.add("wpex-window-loaded"),t.megaMenusWidth(),t.megaMenusTop(),t.stickyTopBar(),t.headerOverlayOffset(),t.equalHeights(),t.localScrollHighlight(),t.stickyHeaderMenu(),t.stickyHeader(),t.stickyElements(),t.parseLocalScrollOffset("init"),t.footerReveal(),t.fixedFooter(),e.scrollToHash&&window.setTimeout((function(){t.scrollToHash(t)}),parseInt(e.scrollToHashTimeout))})),window.addEventListener("resize",(()=>{t.setScrollBarWidth(),t.parseLocalScrollOffset("resize")}))},setScrollBarWidth:function(){const e=document.querySelectorAll(".wpex-vc-full-width-row:not(.wpex-vc-full-width-row--centered)");if(!e)return;const t=this.getScrollBarWidth();e.forEach((e=>{e.style.setProperty("--scrollbar-width",`${t}px`)}))},dropdownMenuOnclick:function(){document.addEventListener("click",(e=>{const t=e.target;if(!t.closest(".wpex-dropdown-menu--onclick .menu-item-has-children > a"))return void document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.classList.remove("wpex-active")}));document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.contains(t)||e.classList.remove("wpex-active")}));const o=t.closest(".menu-item-has-children"),s=t.closest("a");o.classList.contains("wpex-active")?(o.classList.remove("wpex-active"),"#"===s.getAttribute("href")&&e.preventDefault()):(o.classList.add("wpex-active"),e.preventDefault())})),document.addEventListener("keydown",(e=>{const t=e.target.closest(".wpex-dropdown-menu--onclick .menu-item-has-children.wpex-active");"Escape"===e.key&&t&&t.classList.remove("wpex-active")})),document.querySelectorAll(".wpex-dropdown-menu--onclick .sub-menu").forEach((e=>{e.addEventListener("keydown",(e=>{if("Escape"===e.key){const t=e.target.closest(".menu-item-has-children.wpex-active");if(t){t.classList.remove("wpex-active");t.querySelector("a").focus(),e.stopPropagation()}}}))}))},dropdownMenuTouch:function(){const e=this;let t=!1;document.querySelectorAll(".wpex-dropdown-menu--onhover .menu-item-has-children > a").forEach((o=>{o.addEventListener("touchend",(e=>{if(t)return;const s=o.closest(".menu-item-has-children");s.classList.contains("wpex-touched")||(e.preventDefault(),s.classList.add("wpex-touched"))})),o.addEventListener("touchmove",(e=>{t=!0}),!!e.config.passiveListeners&&{passive:!0}),o.addEventListener("touchstart",(e=>{t=!1}),!!e.config.passiveListeners&&{passive:!0})}));const o=e=>{const t=e.target;document.querySelectorAll(".menu-item-has-children.wpex-touched").forEach((e=>{e.contains(t)||e.classList.remove("wpex-touched")}))};document.addEventListener("touchstart",o,!!e.config.passiveListeners&&{passive:!0}),document.addEventListener("touchmove",o,!!e.config.passiveListeners&&{passive:!0})},megaMenuAddClasses:function(){document.querySelectorAll(".main-navigation-ul .megamenu > .sub-menu").forEach((e=>{e.querySelectorAll(".sub-menu").forEach((e=>{e.classList.add("megamenu__inner-ul")}))}))},megaMenusWidth:function(){const e=this,t=()=>{const t=document.querySelector("#site-navigation-wrap.wpex-stretch-megamenus");let o,s;if(!e.isVisible(t))return;const n=t.querySelectorAll(".megamenu:not(.no-stretch) > ul");if(!n.length)return;const i=document.querySelector("#site-header-inner.container");if(!i)return;const r=t.classList.contains("navbar-style-one"),c=i.getBoundingClientRect().width;r&&(s=parseInt(i.getBoundingClientRect().left),o=t.getBoundingClientRect().left),n.forEach((e=>{e.style.width=c+"px",r&&(e.style.marginLeft=-(o-s)+"px")}))};t(),window.addEventListener("resize",t)},megaMenusTop:function(){const e=this,t=document.querySelector("#site-header.header-one");if(!t)return;const o=t.querySelector("#site-navigation-wrap.wpex-stretch-megamenus:not(.wpex-flush-dropdowns)");if(!this.isVisible(o))return;const s=o.querySelectorAll(".megamenu > ul");if(!s)return;const n=()=>{if(!e.isVisible(o))return;const n=o.getBoundingClientRect().height,i=(t.getBoundingClientRect().height-n)/2+n;s.forEach((e=>{e.style.top=i+"px"}))};n(),window.addEventListener("scroll",n,!!e.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",n),o.querySelectorAll(".megamenu > a").forEach((e=>{e.addEventListener("mouseenter",n,!1)}))},megaMenusMobile:function(e){if(!e)return;const t=e.classList.contains("sidr-class-dropdown-menu")?".sidr-class-megamenu.sidr-class-hide-headings":".megamenu.hide-headings";e.querySelectorAll(t).forEach((e=>{e.classList.contains("show-headings-mobile")||e.classList.contains("sidr-class-show-headings-mobile")||e.querySelectorAll(":scope > ul > li").forEach((e=>{const t=e.querySelector("a");t&&t.parentNode.removeChild(t);const o=e.querySelector("ul");o&&(o.outerHTML=o.innerHTML),e.classList.remove("sidr-class-menu-item-has-children"),e.classList.remove("menu-item-has-children")}))}))},menuSearch:function(){const e=document.querySelector(".header-searchform-wrap");if(!e)return;const t=e.querySelector('input[type="search"]');t&&(e&&(e.dataset.placeholder&&t.setAttribute("placeholder",e.dataset.placeholder),e.dataset.disableAutocomplete&&t.setAttribute("autocomplete","off")),this.menuSearchDropdown(),this.menuSearchOverlay(),this.menuSearchHeaderReplace())},menuSearchDropdown:function(){const e=this,t=document.querySelector("#searchform-dropdown");if(!t)return;let o=!1,s=null;const n=t.querySelector('input[type="search"]'),i="a.search-dropdown-toggle, a.mobile-menu-search, .wpex-header-search-icon button",r=()=>{t.classList.remove("show"),t.classList.add("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(i).forEach((e=>{e.setAttribute("aria-expanded","false");var t=e.closest("li");t&&t.classList.remove("active")})),s&&s.focus(),o=!1};document.addEventListener("click",(c=>{s=c.target.closest(i),s?(c.preventDefault(),o?r():(()=>{t.classList.add("show"),t.classList.remove("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(i).forEach((e=>{e.setAttribute("aria-expanded","true");var t=e.closest("li");t&&t.classList.add("active")})),n.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");const s=o=>{e.focusOnElement(t,n),t.removeEventListener("transitionend",s)};t.addEventListener("transitionend",s),o=!0})()):!c.target.closest("#searchform-dropdown")&&o&&r()})),t.addEventListener("keydown",(e=>{"Escape"===e.key&&o&&r()}))},menuSearchOverlay:function(){const e=this,t=document.querySelector("#wpex-searchform-overlay");if(!t)return;let o=!1,s=null;const n=t.querySelector('input[type="search"]'),i="a.search-overlay-toggle, a.mobile-menu-search, li.search-overlay-toggle > a, .wpex-header-search-icon button",r=()=>{o=!0,t.classList.add("active"),e.htmlNoScroll("add"),document.querySelectorAll(i).forEach((e=>{e.setAttribute("aria-expanded","true");const t=e.closest("li");t&&t.classList.add("active")})),n.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch"),(()=>{const o=s=>{e.focusOnElement(t,n),t.removeEventListener("transitionend",o)};t.addEventListener("transitionend",o)})()},c=n=>{o=!1,t.classList.remove("active"),document.querySelectorAll(i).forEach((e=>{e.setAttribute("aria-expanded","false");const t=e.closest("li");t&&t.classList.remove("active")})),s&&s.focus(),setTimeout((()=>{e.htmlNoScroll("remove")}),e.getElTransitionDuration(t))};document.addEventListener("click",(e=>{const t=e.target.closest(i);t?(s=t,e.preventDefault(),o?c():r()):o&&e.target.closest("#wpex-searchform-overlay .wpex-close")&&c()})),document.addEventListener("keydown",(e=>{if("Escape"===e.key&&o)return c()}))},menuSearchHeaderReplace:function(){const e=this,t=document.querySelector("#site-header-inner"),o=document.querySelector("#searchform-header-replace");if(!o)return;let s=!1,n=null;const i=o.querySelector('input[type="search"]'),r="a.search-header-replace-toggle, a.mobile-menu-search, .wpex-header-search-icon button";const c=()=>{o.classList.remove("show"),o.classList.add("wpex-invisible","wpex-opacity-0"),t&&t.classList.remove("wpex-overflow-hidden"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","false");const t=e.closest("li");t&&t.classList.remove("active")})),n&&n.focus(),s=!1};document.addEventListener("click",(l=>{const a=l.target.closest(r);a?(n=a,l.preventDefault(),s?c():(()=>{o.classList.add("show"),o.classList.remove("wpex-invisible","wpex-opacity-0"),t&&t.classList.add("wpex-overflow-hidden"),document.querySelectorAll(r).forEach((e=>{e.setAttribute("aria-expanded","true");const t=e.closest("li");t&&t.classList.add("active")})),i.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");const n=t=>{e.focusOnElement(o,i),o.removeEventListener("transitionend",n)};o.addEventListener("transitionend",n),s=!0})()):!l.target.closest("#searchform-header-replace .searchform")&&s&&c()})),o.addEventListener("keydown",(e=>{"Escape"===e.key&&s&&c()}))},headerOverlayOffset:function(){const e=document.querySelector("#site-header");if(!e||!e.classList.contains("overlay-header")||e.classList.contains("header-fixed-height"))return;const t=()=>{const t=e.getBoundingClientRect().height;document.querySelectorAll(".overlay-header-offset-div").forEach((e=>{e.style.height=t+"px"}))};t(),window.addEventListener("resize",t)},menuWidgetAccordion:function(){if(!e.menuWidgetAccordion)return;const t=this;let o=!1;document.querySelectorAll("#sidebar .widget_nav_menu .current-menu-ancestor, .widget_nav_menu_accordion .widget_nav_menu .current-menu-ancestor,#sidebar .widget_nav_menu .current-menu-item, .widget_nav_menu_accordion .widget_nav_menu .current-menu-item").forEach((e=>{e.classList.add("active")}));const s=e=>{o=!0,t.slideUp(e,300,(function(){o=!1}))};document.addEventListener("click",(e=>{const n=e.target.closest("#sidebar .widget_nav_menu .wpex-open-submenu, .widget_nav_menu_accordion .widget_nav_menu .wpex-open-submenu");if(!n)return;if(e.preventDefault(),e.stopPropagation(),o)return;const i=n.closest("li"),r=n.closest(".widget_nav_menu"),c=i.querySelector(".sub-menu");r.querySelectorAll(".menu-item-has-children").forEach((e=>{if(e.contains(n))return;const t=e.querySelector(".sub-menu");t&&e.classList.contains("active")&&(e.classList.remove("active"),s(t))})),c&&(c.classList.contains("wpex-transitioning")||(i.classList.contains("active")?(i.classList.remove("active"),s(c)):(i.classList.add("active"),(e=>{o=!0,t.slideDown(e,300,(function(){o=!1}))})(c))))}))},inlineHeaderLogo:function(){const t=this,o=document.querySelector("#site-header");if(!o||!o.classList.contains("header-five"))return;const s=document.querySelector("#site-header.header-five #site-header-inner > .header-five-logo"),n=document.querySelector("#site-header.header-five .navbar-style-five");let i=null;if(!s||!n)return;const r=()=>{const o=(()=>{const o=document.querySelectorAll(".navbar-style-five .main-navigation-ul > li");let s=[];for(let e=0;e<o.length;e++)t.isVisible(o[e])&&s.push(o[e]);const n=s.length;return s[Math.round(n/2)-parseInt(e.headerFiveSplitOffset)]})();o&&t.viewportWidth()>e.mobileMenuBreakpoint&&(i||(i=document.createElement("li"),i.className="menu-item-logo wpex-px-40"),i.appendChild(s),o.parentNode.insertBefore(i,o.nextSibling),s.classList.add("display"))};r(),window.addEventListener("resize",(()=>{const o=document.querySelector(".menu-item-logo .header-five-logo");if(t.viewportWidth()<=e.mobileMenuBreakpoint){if(o){const e=document.querySelector("#site-header-inner");e&&e.insertBefore(o,e.firstChild),i&&i.parentNode.removeChild(i)}}else o||r()}))},skipToContent:function(){const e=this;document.addEventListener("click",(t=>{if(!t.target.classList.contains("skip-to-content"))return;const o=document.querySelector(t.target.getAttribute("href"));o&&(o.setAttribute("tabIndex","-1"),e.scrollTo(o),o.focus()),t.preventDefault(),t.stopPropagation()}))},backTopLink:function(){const t=this;document.addEventListener("click",(o=>{var s=o.target;if(s.closest("a#site-scroll-top, a.wpex-scroll-top, .wpex-scroll-top a")){var n=s.closest("#site-scroll-top");if(n&&(s=n),0!==window.scrollY){const o=parseInt(s.dataset.scrollSpeed||parseInt(e.localScrollSpeed)),n=t.getEasing(s.dataset.scrollEasing);n&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:0},o,n):window.scrollTo({top:0,behavior:t.getScrollToBehavior()})}o.preventDefault(),o.stopPropagation()}}))},backTopButton:function(){const e=document.querySelector("#site-scroll-top");if(!e)return;const t=parseInt(e.dataset.scrollOffset||100);if(0===t)return;window.addEventListener("scroll",(o=>{window.pageYOffset>t?(e.classList.add("show"),e.classList.remove("wpex-invisible","wpex-opacity-0")):(e.classList.remove("show"),e.classList.add("wpex-invisible","wpex-opacity-0"))}),!!this.config.passiveListeners&&{passive:!0})},goBackButton:function(){document.addEventListener("click",(e=>{e.target.closest(".wpex-go-back")&&(e.preventDefault(),history.back())}))},smoothCommentScroll:function(){const e=this;document.addEventListener("click",(t=>{if(!t.target.closest(".comments-link"))return;const o=document.querySelector("#comments");o&&(e.scrollTo(o,-20),t.preventDefault(),t.stopPropagation())}))},toggleElements:function(){const e=this,t=(e,t)=>{t=t||document;const o=e.getAttribute("id");o&&(e.classList.remove("wpex-toggle-element--visible"),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${o}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","false"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.remove("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;o&&t&&s&&(s.textContent=o)})(e)})))};document.addEventListener("click",(o=>{const s=o.target.closest("a.wpex-toggle-element-trigger");if(!s)return;const n=(e=>{const t=e.getAttribute("aria-controls");if(t)return document.querySelector(`#${t.replace("#","")}`)})(s);if(!n||!n.classList.contains("wpex-toggle-element"))return;o.preventDefault();const i=n.classList,r=s.closest(".vc_section")||s.closest(".vc_row");let c=!1;r&&r.contains(n)&&(c=!0);const l=c?r:document;if(l.querySelectorAll(".wpex-toggle-element--visible").forEach((e=>{e.isSameNode(n)||t(e,l)})),i.contains("wpex-toggle-element--visible"))i.contains("wpex-toggle-element--persist")||t(n,l);else{let t=!1;o.isTrusted&&0===o.screenX&&0===o.screenY&&(t=!0),((e,t,o)=>{t=t||document;const s=e.getAttribute("id");if(!s)return;e.classList.add("wpex-toggle-element--visible");const n=e.parentNode;n.classList.contains("wpex-toggle-element")?(n.classList.add("wpex-toggle-element--visible"),n.setAttribute("tabIndex","-1"),o&&n.focus()):(e.setAttribute("tabIndex","-1"),o&&e.focus()),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${s}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","true"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.add("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;o&&t&&s&&(s.textContent=t)})(e)})),window.dispatchEvent(new Event("resize"))})(n,l,t),"true"!==s.getAttribute("data-wpex-toggle-localscroll")||s.classList.contains("local-scroll-link")||e.scrollTo(n)}})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=e.target.closest(".wpex-toggle-element--visible");if(!t)return;const o=t.getAttribute("id");if(!o)return;let s=(t.closest(".vc_row")||t.closest(".vc_section")).querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`);s||(s=document.querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`)),s&&s.focus()}))},parseLocalScrollOffset:function(t){const o=this;let s=0;if(e.localScrollOffset)return o.config.localScrollOffset=e.localScrollOffset,o.config.localScrollOffset;e.localScrollExtraOffset&&(s=parseInt(s)+parseInt(e.localScrollExtraOffset));const n=document.querySelector("#site-header-sticky-wrapper.wpex-can-sticky #site-header");return n&&(!e.hasStickyMobileHeader&&o.viewportWidth()<e.stickyHeaderBreakPoint?s=parseInt(s)+0:n.classList.contains("shrink-sticky-header")?("init"===t||o.isVisible(n))&&(s=parseInt(s)+parseInt(e.shrinkHeaderHeight)):s=parseInt(s)+n.getBoundingClientRect().height),document.querySelectorAll(".wpex-ls-offset,#wpadminbar,#top-bar-wrap-sticky-wrapper.wpex-can-sticky,#site-navigation-sticky-wrapper.wpex-can-sticky,#wpex-mobile-menu-fixed-top,.vcex-navbar-sticky-offset").forEach((e=>{o.isVisible(e)&&(s=parseInt(s)+e.getBoundingClientRect().height)})),s=s?s-1:0,o.config.localScrollOffset=s,o.config.localScrollOffset},scrollTo:function(t,o=0,s){const n=this;if(!t)return;let i=null,r=!1,c=null,l=0;const a=n.config.localScrollOffset,d=parseInt(e.localScrollSpeed),u=document.querySelectorAll("[data-ls_id]"),p=n.getEasing();for(let e=0;e<u.length;e++)if(t===u[e].dataset.ls_id){c=u[e];break}if(c?(i=c,r=!0):"string"==typeof t?n.isSelectorValid(t)&&(i=document.querySelector(t)):t.nodeType&&(i=t),!i)return;const m=()=>{p&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:l},d,p):window.scrollTo({top:l,behavior:n.getScrollToBehavior()})};if(i.classList.contains("vc_tta-panel")){const e=i.closest(".vc_tta-tabs");if(e){if(i.id){const t=e.querySelector(`.vc_tta-tab:not(.vc_active) a[href="#${i.id}"]`);t&&t.click()}i=e,o=-20}}l||(l=n.offset(i).top-a+o),e.localScrollUpdateHash&&"string"==typeof t&&r&&(window.location.hash=t);const h=document.querySelector(".mobile-toggle-nav");h&&h.classList.contains("visible")?("absolute"!==window.getComputedStyle(h).position&&(l-=h.getBoundingClientRect().height),document.querySelectorAll("a.mobile-menu-toggle, li.mobile-menu-toggle > a").forEach((e=>{e.classList.remove("wpex-active"),e.setAttribute("aria-expanded","false")})),n.setHamburgerIconState(),h.classList.contains("mobile-toggle-nav--animate")?n.slideUp(h,300,(function(){h.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),m()})):(h.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),m())):m()},scrollToHash:function(e){let t,o=location.hash;if(""!==o&&"#"!==o&&"undefined"!==o){if(("#view_comments"===o||"#comments_reply"===o)&&(t=document.querySelector("#comments"),t))return e.scrollTo(t,-20);if(-1!==o.indexOf("comment-")&&document.querySelector("#site-header.fixed-scroll")&&(t=document.querySelector(o),t))return e.scrollTo(t,-20);-1!==o.indexOf("localscroll-")&&(o=o.replace("localscroll-",""));try{const t=document.querySelector(`[data-ls_id="${o}"], ${o}`);!t||t.classList.contains("vcex-toggle__content")||t.classList.contains("wpex-toggle-element")||e.scrollTo(o)}catch(e){return!1}}},localScrollSections:function(){const t=this,o=document.querySelectorAll(e.localScrollTargets),s=[];return o.forEach((e=>{const o=e.getAttribute("href"),n=o?`#${o.replace(/^.*?(#|$)/,"")}`:null;if(!n||"#"===n)return;e.hasAttribute("data-ls_linkto")||e.setAttribute("data-ls_linkto",n);let i=document.querySelector(`[data-ls_id="${n}"]`);!i&&"string"==typeof n&&t.isSelectorValid(n)&&(i=document.querySelector(n)),i&&-1===s.indexOf(n)&&s.push(n)})),t.config.localScrollSections=s,t.config.localScrollSections},localScrollLinks:function(){const t=this;e.localScrollFindLinks&&document.querySelectorAll('a[href^="#"]:not([href="#"]):not(.local-scroll-link):not([target]):not([aria-selected]):not([aria-pressed]):not([aria-expanded]):not([data-vc-tabs]):not(.skip-to-content):not(#site-scroll-top):not([data-vc-accordion]):not([role="button"]):not(.wpex-lightbox):not(.wpex-lightbox-group-item)').forEach((e=>{if(e.closest(".local-scroll, .local-scroll-link, [aria-controls]"))return;let t=e.getAttribute("href");try{document.querySelector(`[data-ls_id="${t}"], ${t}`)&&e.classList.add("local-scroll-link")}catch(e){return!1}})),document.addEventListener("click",(o=>{const s=o.target.closest(e.localScrollTargets);if(!s)return;let n=s.dataset.ls_linkto||s.hash,i=!1;i=!(!t.config.localScrollSections||-1===t.config.localScrollSections.indexOf(n))||!!t.isSelectorValid(n)&&document.querySelector(`[data-ls_id="${n}"], ${n}`),i&&(s.closest(".sfHover")&&s.parentNode.classList.remove("sfHover"),s.classList.contains("wpex-toggle-element-trigger")&&"false"===s.getAttribute("aria-expanded")||(t.scrollTo(n),s.closest(".full-screen-overlay-nav-menu .local-scroll > a")||(o.preventDefault(),o.stopPropagation())))}))},localScrollHighlight:function(){const t=this,o=t.config.localScrollSections;if(!e.localScrollHighlight||!o.length)return;const s=e=>{const o=document.querySelector(`[data-ls_id="${e}"], ${e}`);if(!o)return;let s=!1;const n=t.winScrollTop(),i=t.offset(o).top-t.config.localScrollOffset-1,r=o.offsetHeight,c=document.querySelectorAll(`[data-ls_linkto="${e}"] `);s=n>=i&&n<i+r,s?(o.classList.add("wpex-ls-inview"),document.querySelectorAll(".local-scroll.menu-item").forEach((e=>{e.classList.remove("current-menu-item")}))):o.classList.remove("wpex-ls-inview"),c.forEach((e=>{s?e.classList.add("active"):e.classList.remove("active");const t=e.closest("li");t&&(s?t.classList.add("current-menu-item"):t.classList.remove("current-menu-item"))}))};window.addEventListener("scroll",(()=>{for(var e=0;e<o.length;e++)s(o[e])}),!!t.config.passiveListeners&&{passive:!0})},equalHeights:function(e){"function"==typeof window.wpexEqualHeights&&(wpexEqualHeights(".match-height-grid",".match-height-content",e),wpexEqualHeights(".match-height-row",".match-height-content",e),wpexEqualHeights(".vcex-feature-box-match-height",".vcex-match-height",e),wpexEqualHeights(".blog-equal-heights",".blog-entry-inner",e),wpexEqualHeights(".vc_row",".equal-height-column",e),wpexEqualHeights(".vc_row",".equal-height-content",e),wpexEqualHeights(".wpex-vc-row-columns-match-height",".vc_column-inner",e))},footerReveal:function(){const e=this,t=document.querySelector("#footer-reveal"),o=document.querySelector("#wrap"),s=document.querySelector("#main");if(!t||!o||!s)return;const n=()=>{if(e.viewportWidth()<960)return void(t.classList.contains("footer-reveal")&&(t.classList.remove("footer-reveal"),t.classList.add("footer-reveal-visible"),o.style.removeProperty("margin-bottom")));let s=0,n=t.offsetHeight;const i=window.innerHeight;s=t.classList.contains("footer-reveal")?o.offsetHeight+e.config.localScrollOffset:o.offsetHeight+e.config.localScrollOffset-n,i>n&&s>i?t.classList.contains("footer-reveal-visible")&&(o.style.marginBottom=n+"px",t.classList.remove("footer-reveal-visible"),t.classList.add("footer-reveal")):t.classList.contains("footer-reveal")&&(o.style.removeProperty("margin-bottom"),t.classList.remove("footer-reveal"),t.classList.remove("wpex-visible"),t.classList.add("footer-reveal-visible"))},i=()=>{t.classList.contains("footer-reveal")&&(e.scrolledToBottom(s)?t.classList.add("wpex-visible"):t.classList.remove("wpex-visible"))};n(),i(),window.addEventListener("scroll",i,!!e.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",n)},fixedFooter:function(){if(!document.body.classList.contains("wpex-has-fixed-footer"))return;const e=document.querySelector("#main");if(!e)return;const t=()=>{e.style.minHeight=e.offsetHeight+(window.innerHeight-document.documentElement.offsetHeight)+"px"};t(),window.addEventListener("resize",t)},customSelects:function(t){if(!e.customSelects)return;const o=this;t&&t.childNodes||(t=document),t.querySelectorAll(e.customSelects).forEach((t=>{const s=t.parentNode;if(s.classList.contains("wpex-select-wrap")||s.classList.contains("wpex-multiselect-wrap"))return;const n=t.id;let i=!1;if(o.isVisible(t)){const s=document.createElement("div");if(t.hasAttribute("multiple")?s.className=n?`wpex-multiselect-wrap wpex-multiselect-wrap--${n} wpex-${n}`:"wpex-multiselect-wrap":(s.className=n?`wpex-select-wrap wpex-select-wrap--${n} wpex-${n}`:"wpex-select-wrap",i=!0),t=o.wrap(t,s),i&&e.selectArrowIcon){const t=document.createElement("span");t.className="wpex-select-arrow";const o=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML=e.selectArrowIcon,o.appendChild(n.firstChild),t.appendChild(o),s.appendChild(t)}}}))},hoverStyles:function(){let e,t,o,s,n,i="",r={};if(e=document.querySelector(".wpex-hover-data"),e&&e.remove(),t=document.querySelectorAll("[data-wpex-hover]"),o=t.length,!o)return;const c=e=>{let o,s,n,i,c,l="",a="";if(o=t[e],s=o.dataset.wpexHover,s){s=JSON.parse(s),i=o.classList;for(let e=0;e<i.length;e++)-1!==i[e].indexOf("wpex-dhover-")&&o.classList.remove(i[e]);n=`wpex-dhover-${e}`,s.parent?(c=o.closest(s.parent),c&&(c.classList.add(n+"-p"),o.classList.add(n),a=`.${n}-p:hover .${n}`)):(o.classList.add(n),a=`.${n}:hover`);for(let e in s)if(s.hasOwnProperty(e)){if("target"===e||"parent"===e)continue;l+=`${e}:${s[e]}!important;`}l&&(r[l]=l in r?`${r[l]},${a}`:a)}};for(let e=0;e<o;e++)c(e);if(r)for(let e in r)r.hasOwnProperty(e)&&(i+=`${r[e]}{${e}}`);i&&(s=document.createElement("style"),s.classList.add("wpex-hover-data"),s.appendChild(document.createTextNode(i)),n=document.head||document.getElementsByTagName("head")[0],n.appendChild(s))},overlaysMobileSupport:function(){if(!window.matchMedia("(any-pointer: coarse)").matches)return;let e=!1;document.querySelectorAll(".overlay-parent.overlay-hh").forEach((e=>{if(!e.classList.contains("overlay-ms")){e.querySelector(".theme-overlay")&&e.parentNode.removeChild(e)}}));const t=()=>{document.querySelectorAll(".overlay-parent.wpex-touched, .vcex-image-swap.wpex-touched").forEach((e=>{e.classList.remove("wpex-touched")}))};document.addEventListener("touchend",(o=>{const s=o.target.closest(".overlay-parent.overlay-ms.overlay-h, .vcex-image-swap");s&&(e?t():s.classList.contains("wpex-touched")?s.classList.remove("wpex-touched"):(o.preventDefault(),t(),s.classList.add("wpex-touched")))}),!1),document.addEventListener("touchmove",(o=>{o.target.closest(".wpex-touched")||t(),o.target.closest(".overlay-parent.overlay-ms.overlay-h, .vcex-image-swap")&&(e=!0)}),!!this.config.passiveListeners&&{passive:!0}),document.addEventListener("touchstart",(o=>{o.target.closest(".wpex-touched")||t(),o.target.closest(".overlay-parent.overlay-ms.overlay-h, .vcex-image-swap")&&(e=!1)}),!!this.config.passiveListeners&&{passive:!0})},stickyTopBar:function(){const t=this;let o=!1,s=0;const n=document.querySelector("#top-bar-wrap.wpex-top-bar-sticky"),i=e.stickyTopBarBreakPoint;if(!n)return;const r=document.createElement("div");r.id="top-bar-wrap-sticky-wrapper",r.className="wpex-sticky-top-bar-holder not-sticky",t.wrap(n,r);const c=()=>(s=0,document.querySelectorAll(".wpex-sticky-el-offset,#wpex-mobile-menu-fixed-top,#wpadminbar,.easy-notification-bar--sticky").forEach((e=>{const o=window.getComputedStyle(e).position;t.isBeforeElement(e,r)&&t.isVisible(e)&&("fixed"===o||"sticky"===o)&&(s+=e.getBoundingClientRect().height)})),s),l=()=>{o||(r.style.height=n.getBoundingClientRect().height+"px",r.classList.remove("not-sticky"),r.classList.add("is-sticky"),n.classList.remove("wpex-z-99"),n.classList.add("wpex-z-999"),n.style.top=c()+"px",n.style.width=r.getBoundingClientRect().width+"px",n.style.position="fixed",o=!0)},a=()=>{o&&(r.style.height="",r.classList.remove("is-sticky"),r.classList.add("not-sticky"),n.classList.add("wpex-z-99"),n.classList.remove("wpex-z-999"),n.style.width="",n.style.top="",n.style.position="",o=!1)},d=()=>{if(!e.hasStickyTopBarMobile&&t.viewportWidth()<i)return r.classList.remove("wpex-can-sticky"),void a();const d=t.winScrollTop();r.classList.add("wpex-can-sticky"),o?(r.style.height=n.getBoundingClientRect().height+"px",n.style.top=c()+"px",n.style.width=r.getBoundingClientRect().width+"px"):(s=t.offset(r).top-c(),0!==d&&d>s?l():a())};d(),window.addEventListener("scroll",(()=>{if(!r||!r.classList.contains("wpex-can-sticky"))return;const e=t.winScrollTop();0!==e&&e>=t.offset(r).top-c()?l():a()}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",d)},stickyHeaderMenu:function(){const t=this,o=document.querySelector("#site-navigation-wrap.fixed-nav");if(!o)return;let s=!1;const n=document.querySelector("#site-header"),i=document.createElement("div");i.id="site-navigation-sticky-wrapper",i.className="wpex-sticky-navigation-holder not-sticky",t.wrap(o,i);const r=()=>{let o=0;return document.querySelectorAll(".wpex-sticky-el-offset,.wpex-top-bar-sticky,#wpex-mobile-menu-fixed-top,#wpadminbar,.easy-notification-bar--sticky").forEach((e=>{const s=window.getComputedStyle(e).position;t.isBeforeElement(e,i)&&t.isVisible(e)&&("fixed"===s||"sticky"===s)&&(o+=e.getBoundingClientRect().height)})),e.addStickyHeaderOffset&&(o+=e.addStickyHeaderOffset),o},c=t.offset(i).top-r(),l=()=>{s||(i.style.height=o.getBoundingClientRect().height+"px",i.classList.remove("not-sticky"),i.classList.add("is-sticky"),o.style.top=r()+"px",o.style.width=i.getBoundingClientRect().width+"px",n&&n.classList.remove("dyn-styles"),s=!0)},a=()=>{s&&(i.style.height="",i.classList.remove("is-sticky"),i.classList.add("not-sticky"),o.style.top="",o.style.width="",n&&n.classList.add("dyn-styles"),s=!1)},d=()=>{if(t.viewportWidth()<=e.stickyNavbarBreakPoint)return a(),void i.classList.remove("wpex-can-sticky");const n=t.winScrollTop();i.classList.add("wpex-can-sticky"),s?(i.style.height=o.getBoundingClientRect().height+"px",o.style.top=r()+"px",o.style.width=i.getBoundingClientRect().width+"px"):n>=c&&0!==n?l():a()};d(),window.addEventListener("scroll",(()=>{if(!i.classList.contains("wpex-can-sticky"))return;const e=t.winScrollTop();0!==e&&e>=c?l():a()}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",d),window.addEventListener("orientationchange",(()=>{a(),d()}))},stickyHeader:function(){const t=this;let o=e.stickyHeaderStyle;if("standard"!==o&&"shrink"!==o&&"shrink_animated"!==o)return;const s=document.querySelector("#site-header.fixed-scroll");if(!s)return;const n=s.classList.contains("fixed-scroll--mobile-only");let i=!1,r=!1;const c=document.createElement("div");c.id="site-header-sticky-wrapper",c.className="wpex-sticky-header-holder not-sticky",t.wrap(s,c);const l=()=>{let o=0;return document.querySelectorAll(".wpex-sticky-el-offset,.wpex-top-bar-sticky,#wpex-mobile-menu-fixed-top,#wpadminbar,.easy-notification-bar--sticky").forEach((e=>{const s=window.getComputedStyle(e).position;t.isBeforeElement(e,c)&&t.isVisible(e)&&("fixed"===s||"sticky"===s)&&(o+=e.getBoundingClientRect().height)})),e.addStickyHeaderOffset&&(o+=e.addStickyHeaderOffset),o},a=(()=>{let t=parseInt(e.stickyHeaderBreakPoint);return n?t-1:t})(),d=e.hasStickyMobileHeader,u=(()=>{var t=e.stickyHeaderStartPosition;if(t&&!isNaN(t))return t;var o=document.querySelector(t);return o?this.offset(o).top:0})(),p=()=>{switch(n?">":"<"){case"<":return t.viewportWidth()<a;case">":return t.viewportWidth()>a}};let m=0;const h=document.querySelector("#site-header.overlay-header");function f(){return t.winScrollTop()>m}m=h&&"absolute"===window.getComputedStyle(h).position?t.offset(s).top+s.getBoundingClientRect().height:t.offset(c).top+c.getBoundingClientRect().height;const y=()=>(u||t.offset(c).top)-l(),g=()=>{i||(c.style.height=s.getBoundingClientRect().height+"px",c.classList.remove("not-sticky"),c.classList.add("is-sticky"),s.classList.remove("dyn-styles"),s.style.top=l()+"px",s.style.width=c.getBoundingClientRect().width+"px",s.classList.contains("transform-prepare")&&s.classList.add("transform-go"),i=!0)},w=()=>{let t=!0;n?t=!0:p()&&(t=!(!d||!e.hasStickyMobileHeaderShrink)),t&&f()?!r&&i&&(s.classList.add("sticky-header-shrunk"),r=!0):(s.classList.remove("sticky-header-shrunk"),r=!1)},v=()=>{if(c.classList.remove("is-sticky"),c.classList.add("not-sticky"),s.classList.contains("shrink-sticky-header")){let e=(()=>{let e=window.getComputedStyle(s).transitionDuration,t="";return e&&"0s"===e||(t=parseFloat(e)*(e.indexOf("ms")>-1?1:1e3)),t||(t=300),t})();setTimeout((function(){i||(c.style.height="")}),e)}else c.style.height="";s.classList.add("dyn-styles"),s.style.width="",s.style.top="",s.classList.remove("transform-go"),i=!1,s.classList.remove("sticky-header-shrunk"),r=!1};function x(){i&&(u?(s.classList.remove("transform-go"),r&&(s.classList.remove("sticky-header-shrunk"),r=!1)):s.classList.remove("transform-prepare"),v())}const L=()=>{let o=t.winScrollTop();if((n||!d)&&p())return x(),c.classList.remove("wpex-can-sticky"),void s.classList.remove("transform-prepare");c.classList.add("wpex-can-sticky"),i?(s.classList.contains("shrink-sticky-header")||(c.style.height=s.getBoundingClientRect().height+"px"),s.style.top=l()+"px",s.style.width=c.getBoundingClientRect().width+"px"):0!==o&&o>y()?g():x(),e.hasStickyHeaderShrink&&w()};L(),window.addEventListener("scroll",(()=>{let o=t.winScrollTop();c.classList.contains("wpex-can-sticky")&&(u&&(()=>{var e=t.winScrollTop();i&&s.classList.add("transform-go"),e<=0?s.classList.remove("transform-prepare"):f()?s.classList.add("transform-prepare"):s.classList.remove("transform-prepare")})(),0!=o&&o>=y()?g():x(),e.hasStickyHeaderShrink&&w())}),!!t.config.passiveListeners&&{passive:!0}),window.addEventListener("resize",L),window.addEventListener("orientationchange",(()=>{x(),L()}))},stickyElements:function(){const e=document.body.classList;if(e.contains("compose-mode")||e.contains("wp-admin"))return;const t=document.querySelectorAll(".wpex-js-sticky");if(!t)return;const o=this;t.forEach((e=>{let t=!1,s=e.dataset.wpexStickyEndpoint||null;const n=parseInt(e.dataset.wpexStickyBreakpoint);s&&isNaN(s)&&(s=document.querySelector(s));const i=(e=>{const t=document.createElement("div");let o="wpex-js-sticky-wrap";const s=e.dataset.wpexStickyLsOffset||!0;return"true"!=s&&"1"!=s||(o+=" wpex-ls-offset"),t.className=o,e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(e),r=(e=>{const t=document.createElement("div");return t.className="wpex-js-sticky-holder",e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(i),c=()=>{let t=e.dataset.wpexStickyOffset?parseInt(e.dataset.wpexStickyOffset):0;return document.querySelectorAll("#top-bar-wrap-sticky-wrapper.wpex-can-sticky #top-bar-wrap,#site-header-sticky-wrapper.wpex-can-sticky #site-header,#site-navigation-sticky-wrapper.wpex-can-sticky #site-navigation-wrap,#wpex-mobile-menu-fixed-top,#wpadminbar,.wpex-sticky-el-offset,.easy-notification-bar--sticky,.wpex-js-sticky-wrap").forEach((s=>{const n=window.getComputedStyle(s).position;e.isEqualNode(s)||!o.isVisible(s)||!o.isBeforeElement(s,e)||"fixed"!==n&&"sticky"!==n||(t+=o.elHeight(s))})),t},l=()=>{if(n&&o.viewportWidth()<=n)return u();const t=o.winScrollTop(),l=c();t>o.offset(r).top-l&&0!==t?(d(l),s&&o.isVisible(s)&&(t>o.offset(s).top-l-o.elHeight(e)?i.style.position="relative":i.style.position="fixed")):u()},a=()=>{const e=r.getBoundingClientRect().width;e&&i.style.setProperty("width",e+"px")},d=s=>{o.isVisible(e)?t?i.style.top=c()+"px":(r.style.height=o.elHeight(e)+"px",i.classList.add("wpex-z-99"),i.style.position="fixed",i.style.top=s+"px",e.classList.add("wpex-js-sticky--stuck"),a(),t=!0):u()},u=()=>{t&&(r.style.height="",i.classList.remove("wpex-z-99"),i.style.position="",i.style.top="",i.style.width="",e.classList.remove("wpex-js-sticky--stuck"),t=!1)};l(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",(()=>{l(),t&&(o.isVisible(e)||u(),r.style.height=o.elHeight(e)+"px",i.style.top=c()+"px",a())})),window.addEventListener("orientationchange",(()=>{u(),l()}))}))},accessibility:function(){document.querySelectorAll("#site-navigation li.nav-no-click:not(.menu-item-has-children) > a, .mobile-toggle-nav li.nav-no-click > a, li.sidr-class-nav-no-click > a").forEach((e=>{e.setAttribute("tabIndex","-1")})),document.querySelectorAll("#site-navigation li.megamenu > ul.sub-menu > li.menu-item.menu-item-has-children > a").forEach((e=>{"#"===e.getAttribute("href")&&e.setAttribute("tabIndex","-1")})),document.querySelectorAll(".vc_toggle .vc_toggle_title").forEach((e=>{e.setAttribute("tabIndex",0),e.addEventListener("keydown",(e=>{"Enter"===e.key&&e.target.click()}))}))},domReady:function(e){if("function"!=typeof e||"undefined"==typeof document)return;const t=document.readyState;if("interactive"===t||"complete"===t)return setTimeout(e);document.addEventListener("DOMContentLoaded",e,!1)},retinaCheck:function(){return window.devicePixelRatio>1||!(!window.matchMedia||!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|iPad Simulator|iPhone Simulator|iPod Simulator|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0},passiveListenersSupport:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e},getEasing:function(t){if(!e.localScrollEasing||"function"!=typeof jQuery||void 0===jQuery.easing||"function"!=typeof jQuery.easing.jswing)return;let o=t||e.localScrollEasing;return jQuery.easing.hasOwnProperty(o)||(o="swing"),o},viewportWidth:function(){let e="inner",t=window;return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},isSelectorValid:function(e){try{t=e,document.createDocumentFragment().querySelector(t)}catch(e){return!1}var t;return!0},slideUp:function(e,t,o){if(!e)return;if("none"===window.getComputedStyle(e).display)return;const s=window.getComputedStyle(e).transitionDuration;s&&"0s"===s||(t=parseFloat(s)*(s.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t)},slideDown:function(e,t,o){if(!e)return;let s=window.getComputedStyle(e).display;if("block"===s)return;const n=window.getComputedStyle(e).transitionDuration;n&&"0s"===n||(t=parseFloat(n)*(n.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.removeProperty("display"),"none"===s&&(s="block"),e.style.display=s,e.style.transitionProperty="none";const i=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=i+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t)},focusOnElement:function(e,t){const o=this,s=e.querySelectorAll('button, [href], input, select, textarea, a,[tabindex]:not([tabindex="-1"])');if(!s.length)return;const n=[];for(let e=0;e<s.length;e++)o.isVisible(s[e])&&n.push(s[e]);if(!n.length)return;const i=n[0],r=n[n.length-1];t?t.focus():i.focus(),r.addEventListener("keydown",(e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),i.focus())})),i.addEventListener("keydown",(e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),r.focus())}))},wrap:function(e,t){e.childNodes||(e=[e]),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)},insertAfter:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},offset:function(e){const t=e.getBoundingClientRect();return{top:t.top+this.winScrollTop(),left:t.left+this.winScrollTop(),bottom:t.bottom+this.winScrollTop()}},elHeight:function(e){return e.getBoundingClientRect().height},isVisible:function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},isEmpty:function(e){return!e||""===e.innerHTML},isBeforeElement:function(e,t){if("wpadminbar"===e.id)return!0;if(!e||!t)return;return 4===e.compareDocumentPosition(t)},insertExtras:function(e,t,o){if(e&&t){switch(o){case"append":t.appendChild(e);break;case"prepend":t.insertBefore(e,t.firstChild)}e.classList.remove("wpex-hidden")}},winScrollTop:function(){let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return e<0&&(e=0),e},scrolledToBottom:function(e){return this.winScrollTop()>=e.offsetTop+e.offsetHeight-window.innerHeight},removeClassPrefix:function(e,t,o){e.forEach((e=>{const s=e.classList;for(let n=0;n<s.length;n++)if(t.test(s[n])){const t=s[n].replace(o,"");e.classList.replace(s[n],t)}}))},menuAccordion:function(t){const o=this;if(!t)return;let s=!1;const n=t.classList.contains("mobile-toggle-nav")||t.classList.contains("sidr-class-dropdown-menu");t.querySelectorAll(".menu-item-has-children, .sidr-class-menu-item-has-children").forEach((t=>{const o=t.querySelector("a");if(!o)return;const s=document.createElement("button");if(s.className=n?"wpex-open-submenu wpex-unstyled-button wpex-flex wpex-items-center wpex-justify-end wpex-absolute wpex-top-0 wpex-right-0 wpex-h-100 wpex-cursor-pointer wpex-opacity-80 wpex-overflow-hidden":"wpex-open-submenu wpex-unstyled-button wpex-block",s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","false"),s.setAttribute("role","button"),s.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",o.textContent.trim())),n){if(e.mobileMenuOpenSubmenuIcon){const t=document.createElement("div");t.innerHTML=e.mobileMenuOpenSubmenuIcon,s.appendChild(t.firstChild)}}else{const e=document.createElement("span");e.className="ticon ticon-angle-down",e.setAttribute("aria-hidden","true"),s.appendChild(e)}o.appendChild(s)}));const i=t=>{const n=t.closest("li.active");n.classList.remove("active");const i=n.querySelector("a"),r=n.querySelector(".wpex-open-submenu");r.setAttribute("aria-expanded","false"),r.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",i.textContent.trim())),s=!0,o.slideUp(t,null,(function(){s=!1}))};document.addEventListener("click",(n=>{const r=n.target.closest(".wpex-open-submenu");if(!r||!t.contains(r))return;const c=r.closest("li");if(!c)return;const l=c.querySelector("ul");if(!l)return;const a=c.querySelector("a");a&&(n.preventDefault(),n.stopPropagation(),s||(c.classList.contains("active")?(c.querySelectorAll("li.active > ul").forEach((e=>{i(e)})),c.classList.remove("active"),r.setAttribute("aria-expanded","false"),r.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",a.textContent.trim())),s=!0,o.slideUp(l,null,(function(){s=!1}))):(r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",e.i18n.closeSubmenu.replace("%s",a.textContent.trim())),t.querySelectorAll("li.active > ul").forEach((e=>{e.contains(l)||i(e)})),s=!0,o.slideDown(l,null,(function(){s=!1})),c.classList.add("active"))))}))},setHamburgerIconState:function(e){if(!e){const t=document.querySelector("a.mobile-menu-toggle, li.mobile-menu-toggle > a");e=t?t.querySelector(".wpex-hamburger-icon"):null}e&&(e.classList.contains("wpex-hamburger-icon--active")?(e.classList.remove("wpex-hamburger-icon--active"),e.classList.add("wpex-hamburger-icon--inactive")):e.classList.contains("wpex-hamburger-icon--inactive")&&(e.classList.remove("wpex-hamburger-icon--inactive"),e.classList.add("wpex-hamburger-icon--active")))},getScrollBarWidth:function(){return window.innerWidth-document.body.clientWidth},getElTransitionDuration:function(e){let t=window.getComputedStyle(e).transitionDuration;return t&&"0s"===t||(t=parseFloat(t)*(t.indexOf("ms")>-1?1:1e3)),parseFloat(t)||0},htmlNoScroll:function(e,t){const o=this.config.html;switch(e){case"add":const e=this.getScrollBarWidth();o.style.setProperty("--html-noscroll-padding",`${e}px`),o.classList.add("html-noscroll");break;case"remove":o.classList.remove("html-noscroll"),o.style.setProperty("--html-noscroll-padding","")}},debounce:function(e,t=10){let o=null;return(...s)=>{window.clearTimeout(o),o=window.setTimeout((()=>{e.apply(null,s)}),t)}},getScrollToBehavior:function(){return e.scrollToBehavior||"smooth"}}).init()}(wpex_theme_params);!function(){"use strict";var e={name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,timing:"ease",method:"toggle",bind:"click",onOpen:function(){},onClose:function(){},onOpenEnd:function(){},onCloseEnd:function(){}},t={},n=function(e,n){t[e]=n},i=function(e){return t[e]},o=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};function s(e,t){var n=e.getAttribute(t);"string"==typeof n&&""!==n&&"sidr-inner"!==n&&e.setAttribute(t,n.replace(/([A-Za-z0-9_.-]+)/g,"sidr-"+t+"-$1"))}var r={id:function(e){return document.getElementById(e)},qs:function(e){return document.querySelector(e)},qsa:function(e){return document.querySelectorAll(e)},createElement:function(e){var t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},getHTMLContent:function(e){for(var t="",n=this.qsa(e),i=0;i<n.length;i++)t+='<div class="sidr-inner">'+n[i].innerHTML+"</div>";return t},addPrefixes:function(e){var t=document.createElement("div");t.innerHTML=e;for(var n=t.querySelectorAll("*"),i=0;i<n.length;i++){let e=n[i];s(e,"id"),e.removeAttribute("style"),e.closest(".ticon")||e.closest(".wpex-svg-icon")||e.closest(".fa")||e.closest(".fas")||e.closest(".wpex-cart-link")||e.closest(".wpex-no-renaming")||e.closest(".wpex-hidden")||e.classList.contains("show-at-mm-breakpoint")||e.classList.contains("screen-reader-text")||s(e,"class")}return t.innerHTML},transitions:function(){var e=(document.body||document.documentElement).style,t=!1,n="transition",i="transition",o="transitionend";if(n in e)t=!0;else{var s=function(e,t){for(var n=void 0,i=["moz","webkit","o","ms"],o=0;o<i.length;o++)if((n=i[o])+e in t)return n;return!1}(n=n.charAt(0).toUpperCase()+n.substr(1),e);i=(t=!!s)?s+n:null,n=t?"-"+s+"-"+n.toLowerCase():null,"webkit"===s?o="webkitTransitionEnd":"0"===s&&(o="oTransitionEnd")}return{cssProperty:i,supported:t,property:n,event:o}}()},a=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};function d(e,t,n){for(var i=n.split(" "),o=0;o<i.length;o++){var s=i[o].trim();e.classList[t](s)}}function p(e,t,n){e[t]=n}function m(e,t,n){return e[t]}var f=function(){function e(t){a(this,e),this.element=t}return l(e,[{key:"bind",value:function(e,t){this.element.addEventListener(e,t,!1)}},{key:"unbind",value:function(e,t){this.element.removeEventListener(e,t,!1)}},{key:"style",value:function(e,t){if("string"==typeof e)this.element.style[e]=t;else for(var n in e)e.hasOwnProperty(n)&&(this.element.style[n]=e[n])}},{key:"addClass",value:function(e){d(this.element,"add",e)}},{key:"removeClass",value:function(e){d(this.element,"remove",e)}},{key:"html",value:function(e){if(!e)return m(this.element,"innerHTML");p(this.element,"innerHTML",e)}},{key:"scrollTop",value:function(e){if(!e)return m(this.element,"scrollTop");p(this.element,"scrollTop",e)}},{key:"offsetWidth",value:function(){return this.element.offsetWidth}}]),e}(),h="sidr-animating",v="open";function y(e){return"BODY"===e.tagName}function b(e){var t="sidr-open";return"sidr"!==e&&(t+=" "+e+"-open"),t}for(var w=function(e){function t(e,n){a(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.qs(e.body)));return i.name=e.name,i.side=e.side,i.speed=e.speed,i.timing=e.timing,i.displace=e.displace,i.menuWidth=n,i}return c(t,e),l(t,[{key:"prepare",value:function(e){var t=e===v?"hidden":"";if(y(this.element)){var n=new f(r.qs("html")),i=n.scrollTop();n.style("overflowX",t),n.scrollTop(i)}}},{key:"unprepare",value:function(){y(this.element)&&new f(r.qs("html")).style("overflowX","")}},{key:"move",value:function(e){this.addClass(h),e===v?this.open():this.close()}},{key:"open",value:function(){var e=this;if(this.displace){var t=r.transitions,n={width:this.offsetWidth()+"px",position:"absolute"};this.style(this.side,"0"),this.style(t.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.style(n),setTimeout((function(){return e.style(e.side,e.menuWidth+"px")}),1)}}},{key:"onClose",value:function(){var e=r.transitions,t={width:"",position:"",right:"",left:""};t[e.cssProperty]="",this.style(t),this.unbind(e.event,this.temporalCallback)}},{key:"close",value:function(){if(this.displace){var e=r.transitions;this.style(this.side,0);var t=this;this.temporalCallback=function(){t.onClose()},this.bind(e.event,this.temporalCallback)}}},{key:"removeAnimationClass",value:function(){this.removeClass(h)}},{key:"removeOpenClass",value:function(){this.removeClass(b(this.name))}},{key:"addOpenClass",value:function(){this.addClass(b(this.name))}}]),t}(f),g={moving:!1,opened:!1},x=function(e){function t(e){a(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.id(e.name)));return n.name=e.name,n.speed=e.speed,n.side=e.side,n.displace=e.displace,n.source=e.source,n.timing=e.timing,n.method=e.method,n.renaming=e.renaming,n.onOpenCallback=e.onOpen,n.onCloseCallback=e.onClose,n.onOpenEndCallback=e.onOpenEnd,n.onCloseEndCallback=e.onCloseEnd,n.init(e),n}return c(t,e),l(t,[{key:"init",value:function(e){this.element||(this.element=r.createElement(this.name)),this.style(r.transitions.cssProperty,this.side+" "+this.speed/1e3+"s "+this.timing),this.addClass("sidr sidr-"+this.side),this.body=new w(e,this.offsetWidth()),this.reload()}},{key:"reload",value:function(){if("string"==typeof this.source){var e=r.getHTMLContent(this.source);this.renaming&&(e=r.addPrefixes(e)),this.html(e)}else null!==this.source&&console.error("Invalid Sidr Source")}},{key:"move",value:function(e,t){g.moving=!0,this.body.prepare(e),this.body.move(e),this.moveMenu(e,t)}},{key:"open",value:function(e){var t=this;g.opened===this.name||g.moving||(!1===g.opened?(this.move("open",e),this.onOpenCallback()):i(g.opened).close((function(){t.open(e)})))}},{key:"close",value:function(e){g.opened!==this.name||g.moving||(this.move("close",e),this.onCloseCallback())}},{key:"toggle",value:function(e){g.opened===this.name?this.close(e):this.open(e)}},{key:"onOpenMenu",value:function(e){var t=this.name;g.moving=!1,g.opened=t,this.unbind(r.transitions.event,this.temporalOpenMenuCallback),this.body.removeAnimationClass(),this.body.addOpenClass(),this.onOpenEndCallback(),"function"==typeof e&&e(t)}},{key:"openMenu",value:function(e){var t=this;this.style(this.side,0),this.temporalOpenMenuCallback=function(){t.onOpenMenu(e)},this.bind(r.transitions.event,this.temporalOpenMenuCallback)}},{key:"onCloseMenu",value:function(e){this.unbind(r.transitions.event,this.temporalCloseMenuCallback),this.style({left:"",right:""}),this.body.unprepare(),g.moving=!1,g.opened=!1,this.body.removeAnimationClass(),this.body.removeOpenClass(),this.onCloseEndCallback(),"function"==typeof e&&e(name)}},{key:"closeMenu",value:function(e){var t=this;this.style(this.side,""),this.temporalCloseMenuCallback=function(){t.onCloseMenu(e)},this.bind(r.transitions.event,this.temporalCloseMenuCallback)}},{key:"moveMenu",value:function(e,t){"open"===e?this.openMenu(t):this.closeMenu(t)}}]),t}(f),k=function(e){return function(t,n){"function"==typeof t?(n=t,t="sidr"):t||(t="sidr"),i(t)[e](n)}},C={},E=["open","close","toggle","reload"],S=0;S<E.length;S++){var _=E[S];C[_]=k(_)}function L(e){return"status"===e?g:C[e]?C[e].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof e&&"string"!=typeof e&&e?void console.error("Method "+e+" does not exist on sidr"):C.toggle.apply(this,arguments)}var O=function(e){function t(e,n){a(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.init(n),i}return c(t,e),l(t,[{key:"init",value:function(e){if(!this.element.getAttribute("data-sidr")){var t=e.name,n=e.method,i=e.bind;this.element.setAttribute("data-sidr",t),this.bind(i,(function(e){e.preventDefault(),L(n,t)}))}}}]),t}(f),A={new:function(t,i){var s=o(e,i),a=r.qsa(t);n(s.name,new x(s));for(var l=0;l<a.length;l++)new O(a[l],s)},status:function(){return L.apply(void 0,["status"].concat(Array.prototype.slice.call(arguments)))},reload:function(){return L.apply(void 0,["reload"].concat(Array.prototype.slice.call(arguments)))},close:function(){return L.apply(void 0,["close"].concat(Array.prototype.slice.call(arguments)))},open:function(){return L.apply(void 0,["open"].concat(Array.prototype.slice.call(arguments)))},toggle:function(){return L.apply(void 0,["toggle"].concat(Array.prototype.slice.call(arguments)))}};window.wpexSidr=A}(),function(e){const t=e=>0===Object.keys(e).length&&e.constructor===Object,n=()=>{const t=wpex_theme_params,n=document.querySelector("a.mobile-menu-toggle, li.mobile-menu-toggle > a"),i=n?n.querySelector(".wpex-hamburger-icon--inactive"):"",o=t.mobileMenuBreakpoint,s=document.querySelector(".wpex-sidr-overlay");wpexSidr.new("a.mobile-menu-toggle, li.mobile-menu-toggle > a",{name:"sidr-main",source:e.source,side:e.side,timing:"ease-in-out",displace:e.displace,speed:parseInt(e.speed),renaming:!0,bind:"click",onOpen:function(){e.displace||wpex.htmlNoScroll("add"),document.body.classList.add("mobile-menu-is-open"),n&&(n.setAttribute("aria-expanded","true"),n.classList.add("wpex-active"),wpex.setHamburgerIconState(i)),s&&s.classList.remove("wpex-hidden"),wpex.focusOnElement(document.querySelector("#sidr-main"))},onClose:function(){e.displace||wpex.htmlNoScroll("remove"),document.body.classList.remove("mobile-menu-is-open"),n&&(n.setAttribute("aria-expanded","false"),n.classList.remove("wpex-active"),wpex.setHamburgerIconState(i)),s&&s.classList.add("wpex-hidden")},onCloseEnd:function(){document.querySelectorAll(".sidr-class-menu-item-has-children.active").forEach((e=>{e.classList.remove("active");const n=e.querySelector("ul");n&&(n.style.display="");const i=e.querySelector("a");if(i){const e=i.querySelector(".wpex-open-submenu");e&&(e.setAttribute("aria-label",t.i18n.openSubmenu.replace("%s",i.textContent.trim())),e.setAttribute("aria-expanded","false"))}})),e.displace&&"function"==typeof window.vc_rowBehaviour&&setTimeout(window.vc_rowBehaviour)}});const r=document.querySelector("#sidr-main"),a=r.querySelector(".sidr-inner");e.aria_label&&r.setAttribute("aria-label",e.aria_label),("string"!=typeof e.dark_surface||e.dark_surface)&&r.classList.add("wpex-surface-dark"),e.class&&Array.isArray(e.class)?r.classList.add(...e.class):r.classList.add("wpex-mobile-menu");const l=document.createElement("div");l.className="sidr-class-wpex-close";const c=document.createElement("a");c.href="#",c.setAttribute("role","button"),l.appendChild(c);const u=document.createElement("span");u.className="sidr-class-wpex-close__icon",u.setAttribute("aria-hidden","true"),u.innerHTML="&times;",c.appendChild(u);const d=document.createElement("span");if(d.className="screen-reader-text",d.textContent=e.aria_label_close,c.appendChild(d),r.insertBefore(l,r.firstChild),wpex.insertExtras(document.querySelector(".wpex-mobile-menu-top"),a,"prepend"),wpex.insertExtras(document.querySelector(".wpex-mobile-menu-bottom"),a,"append"),r.querySelectorAll(".sidr-class-main-navigation-ul, .sidr-class-main-navigation-dev-ul").forEach((e=>{e.classList.add("sidr-class-dropdown-menu")})),r.querySelectorAll(".sidr-class-dropdown-menu").forEach((e=>{e.classList.add("wpex-list-none","wpex-m-0","wpex-p-0"),wpex.megaMenusMobile(e),wpex.menuAccordion(e),e.classList.add("sidr-mobile-nav-menu"),e.querySelectorAll("ul").forEach((e=>{e.classList.add("wpex-list-none","wpex-m-0","wpex-p-0")})),e.querySelectorAll("li").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__item"),e.querySelectorAll("ul").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__sub-menu","wpex-hidden")}))})),e.querySelectorAll("a").forEach((e=>{e.classList.add("sidr-mobile-nav-menu__link","wpex-block","wpex-relative")}))})),document.addEventListener("click",(e=>{e.target.closest(".sidr-class-wpex-close a")&&(e.preventDefault(),wpexSidr.close("sidr-main"),n&&n.focus())})),document.addEventListener("click",(e=>{const t=e.target.closest("li.sidr-class-local-scroll > a");if(!t||!wpex.config.localScrollSections)return;const n=t.hash;n&&-1!==wpex.config.localScrollSections.indexOf(n)&&(wpexSidr.close("sidr-main"),wpex.scrollTo(n),e.preventDefault(),e.stopPropagation())})),s&&s.addEventListener("click",(e=>{wpexSidr.close("sidr-main"),e.preventDefault()})),r.addEventListener("keydown",(e=>{"Escape"===e.key&&(wpexSidr.close("sidr-main"),n&&n.focus())})),o&&"9999"!==o){const e=wpex.debounce((e=>{wpex.viewportWidth()>=o&&wpexSidr.close("sidr-main")}));window.addEventListener("resize",e)}const p=document.querySelector("#mobile-menu-alternative");p&&p.parentNode.removeChild(p)},i=()=>{if("object"!=typeof window.wpex||t(window.wpex)){const e=setInterval((()=>{window.wpex&&!t(window.wpex)&&(clearInterval(e),n())}),100);setTimeout((()=>clearInterval(e)),5e3)}else n()};"interactive"===document.readyState||"complete"===document.readyState?setTimeout(i,0):document.addEventListener("DOMContentLoaded",i,!1)}(wpex_mobile_menu_sidr_params);document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),o=e.attr("data-flex_fx"),i=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:o,slideshow:i,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),o=t.data("percentage-value");setTimeout(function(){t.css({width:o+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,n;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",n=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(e){var t=jQuery(this).attr("data-interval"),o=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(t&&0<t)try{i.tabs("rotate",1e3*t)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){o.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),n?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),n?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(e){var t=jQuery(this),o=(t.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(t.data("active-tab"),10)&&parseInt(t.data("active-tab"),10)-1),i=!1===o||"yes"===t.data("collapsible"),o=t.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:o,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===t.data("vcDisableKeydown")&&(o.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var i={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),o=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===i[o]?"fitRows":i[o]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(e){var t,o,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(o=1e3*i.attr("data-interval"))&&(o=9999999999),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:o,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?t=i.find(".wpb_image_grid_ul").imagesLoaded(function(){t.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var l=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=l('[data-vc-full-width="true"]'),l.each(e,function(e,t){var o,i,n,a,r,c,d,s=l(this),u=(s.addClass("vc_hidden"),s.next(".vc_row-full-width"));(u=u.length?u:s.parent().next(".vc_row-full-width")).length&&(o=parseInt(s.css("margin-left"),10),i=parseInt(s.css("margin-right"),10),n=0-u.offset().left-o,a=l(window).width(),r={position:"relative",left:n="rtl"===s.css("direction")?(n=n-u.width()+a)+o+i:n,"box-sizing":"border-box",width:a,"max-width":a},s.css(r),s.data("vcStretchContent")||("rtl"===s.css("direction")?((c=n)<0&&(c=0),(d=n)<0&&(d=0)):(d=a-(c=(c=-1*n)<0?0:c)-u.width()+o+i)<0&&(d=0),s.css({"padding-left":c+"px","padding-right":d+"px"})),s.attr("data-vc-full-width-init","true"),s.removeClass("vc_hidden"),l(document).trigger("vc-full-width-row-single",{el:s,offset:n,marginLeft:o,marginRight:i,elFull:u,width:a,maxWidth:a}))}),l(document).trigger("vc-full-width-row",e))}function t(){var e,t,o=l(".vc_row-o-full-height:first");o.length&&(e=l(window).height(),(t=o.offset().top)<e)&&o.css("min-height",100-t/(e/100)+"vh"),l(document).trigger("vc-full-height-row",o)}l(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&l(".vc_row-o-full-height").each(function(){"flex"===l(this).css("display")&&l(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),l(".vc_parallax-inner").remove(),l("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),l("[data-vc-parallax]").each(function(){var e,t,o,i;n=!0,"on"===l(this).data("vcParallaxOFade")&&l(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*l(this).data("vcParallax"),(t=l("<div />").addClass("vc_parallax-inner").appendTo(l(this))).height(e+"%"),o=l(this).data("vcParallaxImage"),(i=vcExtractYoutubeId(o))?insertYoutubeVideoAsBackground(t,i):void 0!==o&&t.css("background-image","url("+o+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,o=1;!1===t;){if(e.hasClass("columns_count_"+o))return t=!0,o;o++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var o=t.panel||t.newPanel,i=o.find(".vc_pie_chart:not(.vc_ready)"),n=o.find(".vc_round-chart"),a=o.find(".vc_line-chart"),r=o.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(o),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.length&&jQuery.fn.vcChat&&i.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=o.find(".isotope, .wpb_image_grid_ul"),i=o.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src",n.attr("src")),i.addClass("map_ready")),o.parents(".isotope").length&&o.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",o)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,o={};o.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,o)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var o,i,n,a;t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),i=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),o.length&&jQuery.fn.vcChat&&o.vcChat(),i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,o=jQuery(this);o.data("vcVideoBg")?(e=o.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(o,e)),jQuery(window).on("grid:items:added",function(e,t){o.has(t).length&&vcResizeVideoBackground(o)})):o.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,o){if("undefined"==typeof YT||void 0===YT.Player)return 100<(o=void 0===o?0:o)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,o++)},100);var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(i[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,o,i,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),o=r,i=-Math.round((t-a)/2)+"px",n=-Math.round((o-r)/2)+"px"):(o=(t=a)*(9/16),n=-Math.round((o-r)/2)+"px",i=-Math.round((t-a)/2)+"px"),t+="px",o+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:i,marginTop:n,width:t,height:o})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),o=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),o=e<o?o:e;t.css("min-height",(o=o<250?250:o)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(e){window.vc_js()})})(window.jQuery);