if(function(a,b){"use strict";function d(d){var e=b.console;c[d]||(c[d]=!0,a.migrateWarnings.push(d),e&&e.warn&&!a.migrateMute&&(e.warn("JQMIGRATE: "+d),a.migrateTrace&&e.trace&&e.trace()))}function e(a,b,c,e){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return d(e),c}})}a.migrateVersion="3.0.0",function(){var c=b.console&&b.console.log&&function(){b.console.log.apply(b.console,arguments)},d=/^[12]\./;c&&(a&&!d.test(a.fn.jquery)||c("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),a.migrateWarnings&&c("JQMIGRATE: Migrate plugin loaded multiple times"),c("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion))}();var c={};a.migrateWarnings=[],void 0===a.migrateTrace&&(a.migrateTrace=!0),a.migrateReset=function(){c={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var f=a.fn.init,g=a.isNumeric,h=a.find,i=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,j=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;a.fn.init=function(a){var b=Array.prototype.slice.call(arguments);return"string"==typeof a&&"#"===a&&(d("jQuery( '#' ) is not a valid selector"),b[0]=[]),f.apply(this,b)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&i.test(a))try{document.querySelector(a)}catch(c){a=a.replace(j,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(a){d("Attribute selector with '#' was not fixed: "+b[0])}}return h.apply(this,b)};var k;for(k in h)Object.prototype.hasOwnProperty.call(h,k)&&(a.find[k]=h[k]);a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length},a.parseJSON=function(){return d("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},a.isNumeric=function(b){function c(b){var c=b&&b.toString();return!a.isArray(b)&&c-parseFloat(c)+1>=0}var e=g(b),f=c(b);return e!==f&&d("jQuery.isNumeric() should not be called on constructed objects"),f},e(a,"unique",a.uniqueSort,"jQuery.unique is deprecated, use jQuery.uniqueSort"),e(a.expr,"filters",a.expr.pseudos,"jQuery.expr.filters is now jQuery.expr.pseudos"),e(a.expr,":",a.expr.pseudos,'jQuery.expr[":"] is now jQuery.expr.pseudos');var l=a.ajax;a.ajax=function(){var a=l.apply(this,arguments);return a.promise&&(e(a,"success",a.done,"jQXHR.success is deprecated and removed"),e(a,"error",a.fail,"jQXHR.error is deprecated and removed"),e(a,"complete",a.always,"jQXHR.complete is deprecated and removed")),a};var m=a.fn.removeAttr,n=a.fn.toggleClass,o=/\S+/g;a.fn.removeAttr=function(b){var c=this;return a.each(b.match(o),function(b,e){a.expr.match.bool.test(e)&&(d("jQuery.fn.removeAttr no longer sets boolean properties: "+e),c.prop(e,!1))}),m.apply(this,arguments)},a.fn.toggleClass=function(b){return void 0!==b&&"boolean"!=typeof b?n.apply(this,arguments):(d("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var c=this.getAttribute&&this.getAttribute("class")||"";c&&a.data(this,"__className__",c),this.setAttribute&&this.setAttribute("class",c||!1===b?"":a.data(this,"__className__")||"")}))};var p=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return p=!0,a=d.apply(this,arguments),p=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};p||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f};var q=a.data;a.data=function(b,c,e){var f;return c&&c!==a.camelCase(c)&&(f=a.hasData(b)&&q.call(this,b))&&c in f?(d("jQuery.data() always sets/gets camelCased names: "+c),arguments.length>2&&(f[c]=e),f[c]):q.apply(this,arguments)};var r=a.Tween.prototype.run;a.Tween.prototype.run=function(b){a.easing[this.easing].length>1&&(d('easing function "jQuery.easing.'+this.easing.toString()+'" should use only first argument'),a.easing[this.easing]=a.easing[this.easing].bind(a.easing,b,this.options.duration*b,0,1,this.options.duration)),r.apply(this,arguments)};var s=a.fn.load,t=a.event.fix;a.event.props=[],a.event.fixHooks={},a.event.fix=function(b){var c,e=b.type,f=this.fixHooks[e],g=a.event.props;if(g.length)for(d("jQuery.event.props are deprecated and removed: "+g.join());g.length;)a.event.addProp(g.pop());if(f&&!f._migrated_&&(f._migrated_=!0,d("jQuery.event.fixHooks are deprecated and removed: "+e),(g=f.props)&&g.length))for(;g.length;)a.event.addProp(g.pop());return c=t.call(this,b),f&&f.filter?f.filter(c,b):c},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?s.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.on.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a(function(){a(document).triggerHandler("ready")}),a.event.special.ready={setup:function(){this===document&&d("'ready' event is deprecated")}},a.fn.extend({bind:function(a,b,c){return d("jQuery.fn.bind() is deprecated"),this.on(a,null,b,c)},unbind:function(a,b){return d("jQuery.fn.unbind() is deprecated"),this.off(a,null,b)},delegate:function(a,b,c,e){return d("jQuery.fn.delegate() is deprecated"),this.on(b,a,c,e)},undelegate:function(a,b,c){return d("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var u=a.fn.offset;a.fn.offset=function(){var b,c=this[0],e={top:0,left:0};return c&&c.nodeType?(b=(c.ownerDocument||document).documentElement,a.contains(b,c)?u.apply(this,arguments):(d("jQuery.fn.offset() requires an element connected to a document"),e)):(d("jQuery.fn.offset() requires a valid DOM element"),e)};var v=a.param;a.param=function(b,c){var e=a.ajaxSettings&&a.ajaxSettings.traditional;return void 0===c&&e&&(d("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),c=e),v.call(this,b,c)};var w=a.fn.andSelf||a.fn.addBack;a.fn.andSelf=function(){return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)};var x=a.Deferred,y=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];a.Deferred=function(b){var c=x(),e=c.promise();return c.pipe=e.pipe=function(){var b=arguments;return d("deferred.pipe() is deprecated"),a.Deferred(function(d){a.each(y,function(f,g){var h=a.isFunction(b[f])&&b[f];c[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},b&&b.call(c,c),c}}(jQuery,window),function(a){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function D(b){return!b||void 0!==b.allowPageScroll||void 0===b.swipe&&void 0===b.swipeStatus||(b.allowPageScroll=i),void 0!==b.click&&void 0===b.tap&&(b.tap=b.click),b||(b={}),b=a.extend({},a.fn.swipe.defaults,b),this.each(function(){var c=a(this),d=c.data(B);d||(d=new E(this,b),c.data(B,d))})}function E(b,p){function ba(b){if(!(Ka()||a(b.target).closest(p.excludedElements,S).length>0)){var d,c=b.originalEvent?b.originalEvent:b,e=c.touches,f=e?e[0]:c;return T=u,(e?U=e.length:!1!==p.preventDefaultEvents&&b.preventDefault(),I=0,J=null,K=null,Q=null,L=0,M=0,N=0,O=1,P=0,R=Ra(),Ia(),Ma(0,f),!e||U===p.fingers||p.fingers===s||qa()?(W=$a(),2==U&&(Ma(1,e[1]),M=N=Ua(V[0].start,V[1].start)),(p.swipeStatus||p.pinchStatus)&&(d=ia(c,T))):d=!1,!1===d)?(T=x,ia(c,T),d):(p.hold&&(aa=setTimeout(a.proxy(function(){S.trigger("hold",[c.target]),p.hold&&(d=p.hold.call(S,c,c.target))},this),p.longTapThreshold)),La(!0),null)}}function ca(a){var b=a.originalEvent?a.originalEvent:a;if(T!==w&&T!==x&&!Ja()){var c,d=b.touches,e=d?d[0]:b,f=Na(e);if(X=$a(),d&&(U=d.length),p.hold&&clearTimeout(aa),T=v,2==U&&(0==M?(Ma(1,d[1]),M=N=Ua(V[0].start,V[1].start)):(Na(d[1]),N=Ua(V[0].end,V[1].end),Q=Wa(V[0].end,V[1].end)),O=Va(M,N),P=Math.abs(M-N)),U===p.fingers||p.fingers===s||!d||qa()){if(J=Za(f.start,f.end),K=Za(f.last,f.end),oa(a,K),I=Xa(f.start,f.end),L=Ta(),Pa(J,I),c=ia(b,T),!p.triggerOnTouchEnd||p.triggerOnTouchLeave){var g=!0;if(p.triggerOnTouchLeave){var h=_a(this);g=ab(f.end,h)}!p.triggerOnTouchEnd&&g?T=ha(v):p.triggerOnTouchLeave&&!g&&(T=ha(w)),T!=x&&T!=w||ia(b,T)}}else T=x,ia(b,T);!1===c&&(T=x,ia(b,T))}}function da(a){var b=a.originalEvent?a.originalEvent:a,c=b.touches;if(c){if(c.length&&!Ja())return Ha(b),!0;if(c.length&&Ja())return!0}return Ja()&&(U=Z),X=$a(),L=Ta(),la()||!ka()?(T=x,ia(b,T)):p.triggerOnTouchEnd||0==p.triggerOnTouchEnd&&T===v?(!1!==p.preventDefaultEvents&&a.preventDefault(),T=w,ia(b,T)):!p.triggerOnTouchEnd&&xa()?(T=w,ja(b,T,m)):T===v&&(T=x,ia(b,T)),La(!1),null}function ea(){U=0,X=0,W=0,M=0,N=0,O=1,Ia(),La(!1)}function fa(a){var b=a.originalEvent?a.originalEvent:a;p.triggerOnTouchLeave&&(T=ha(w),ia(b,T))}function ga(){S.unbind(D,ba),S.unbind(H,ea),S.unbind(E,ca),S.unbind(F,da),G&&S.unbind(G,fa),La(!1)}function ha(a){var b=a,c=na(),d=ka(),e=la();return!c||e?b=x:!d||a!=v||p.triggerOnTouchEnd&&!p.triggerOnTouchLeave?!d&&a==w&&p.triggerOnTouchLeave&&(b=x):b=w,b}function ia(a,b){var c,d=a.touches;return(ua()||ta())&&(c=ja(a,b,k)),(ra()||qa())&&!1!==c&&(c=ja(a,b,l)),Fa()&&!1!==c?c=ja(a,b,n):Ga()&&!1!==c?c=ja(a,b,o):Ea()&&!1!==c&&(c=ja(a,b,m)),b===x&&(ta()&&(c=ja(a,b,k)),qa()&&(c=ja(a,b,l)),ea(a)),b===w&&(d?d.length||ea(a):ea(a)),c}function ja(b,i,j){var q;if(j==k){if(S.trigger("swipeStatus",[i,J||null,I||0,L||0,U,V,K]),p.swipeStatus&&!1===(q=p.swipeStatus.call(S,b,i,J||null,I||0,L||0,U,V,K)))return!1;if(i==w&&sa()){if(clearTimeout(_),clearTimeout(aa),S.trigger("swipe",[J,I,L,U,V,K]),p.swipe&&!1===(q=p.swipe.call(S,b,J,I,L,U,V,K)))return!1;switch(J){case c:S.trigger("swipeLeft",[J,I,L,U,V,K]),p.swipeLeft&&(q=p.swipeLeft.call(S,b,J,I,L,U,V,K));break;case d:S.trigger("swipeRight",[J,I,L,U,V,K]),p.swipeRight&&(q=p.swipeRight.call(S,b,J,I,L,U,V,K));break;case e:S.trigger("swipeUp",[J,I,L,U,V,K]),p.swipeUp&&(q=p.swipeUp.call(S,b,J,I,L,U,V,K));break;case f:S.trigger("swipeDown",[J,I,L,U,V,K]),p.swipeDown&&(q=p.swipeDown.call(S,b,J,I,L,U,V,K))}}}if(j==l){if(S.trigger("pinchStatus",[i,Q||null,P||0,L||0,U,O,V]),p.pinchStatus&&!1===(q=p.pinchStatus.call(S,b,i,Q||null,P||0,L||0,U,O,V)))return!1;if(i==w&&pa())switch(Q){case g:S.trigger("pinchIn",[Q||null,P||0,L||0,U,O,V]),p.pinchIn&&(q=p.pinchIn.call(S,b,Q||null,P||0,L||0,U,O,V));break;case h:S.trigger("pinchOut",[Q||null,P||0,L||0,U,O,V]),p.pinchOut&&(q=p.pinchOut.call(S,b,Q||null,P||0,L||0,U,O,V))}}return j==m?i!==x&&i!==w||(clearTimeout(_),clearTimeout(aa),ya()&&!Ba()?($=$a(),_=setTimeout(a.proxy(function(){$=null,S.trigger("tap",[b.target]),p.tap&&(q=p.tap.call(S,b,b.target))},this),p.doubleTapThreshold)):($=null,S.trigger("tap",[b.target]),p.tap&&(q=p.tap.call(S,b,b.target)))):j==n?i!==x&&i!==w||(clearTimeout(_),clearTimeout(aa),$=null,S.trigger("doubletap",[b.target]),p.doubleTap&&(q=p.doubleTap.call(S,b,b.target))):j==o&&(i!==x&&i!==w||(clearTimeout(_),$=null,S.trigger("longtap",[b.target]),p.longTap&&(q=p.longTap.call(S,b,b.target)))),q}function ka(){var a=!0;return null!==p.threshold&&(a=I>=p.threshold),a}function la(){var a=!1;return null!==p.cancelThreshold&&null!==J&&(a=Qa(J)-I>=p.cancelThreshold),a}function ma(){return null===p.pinchThreshold||P>=p.pinchThreshold}function na(){return!p.maxTimeThreshold||!(L>=p.maxTimeThreshold)}function oa(a,b){if(!1!==p.preventDefaultEvents)if(p.allowPageScroll===i)a.preventDefault();else{var g=p.allowPageScroll===j;switch(b){case c:(p.swipeLeft&&g||!g&&p.allowPageScroll!=q)&&a.preventDefault();break;case d:(p.swipeRight&&g||!g&&p.allowPageScroll!=q)&&a.preventDefault();break;case e:(p.swipeUp&&g||!g&&p.allowPageScroll!=r)&&a.preventDefault();break;case f:(p.swipeDown&&g||!g&&p.allowPageScroll!=r)&&a.preventDefault()}}}function pa(){var a=va(),b=wa(),c=ma();return a&&b&&c}function qa(){return!!(p.pinchStatus||p.pinchIn||p.pinchOut)}function ra(){return!(!pa()||!qa())}function sa(){var a=na(),b=ka(),c=va(),d=wa();return!la()&&d&&c&&b&&a}function ta(){return!!(p.swipe||p.swipeStatus||p.swipeLeft||p.swipeRight||p.swipeUp||p.swipeDown)}function ua(){return!(!sa()||!ta())}function va(){return U===p.fingers||p.fingers===s||!y}function wa(){return 0!==V[0].end.x}function xa(){return!!p.tap}function ya(){return!!p.doubleTap}function za(){return!!p.longTap}function Aa(){if(null==$)return!1;var a=$a();return ya()&&a-$<=p.doubleTapThreshold}function Ba(){return Aa()}function Ca(){return(1===U||!y)&&(isNaN(I)||Ip.longTapThreshold&&I<=p.fingerReleaseThreshold&&(a=!0)}return a}function Ka(){return!(!0!==S.data(B+"_intouch"))}function La(a){S&&(!0===a?(S.bind(E,ca),S.bind(F,da),G&&S.bind(G,fa)):(S.unbind(E,ca,!1),S.unbind(F,da,!1),G&&S.unbind(G,fa,!1)),S.data(B+"_intouch",!0===a))}function Ma(a,b){var c={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return c.start.x=c.last.x=c.end.x=b.pageX||b.clientX,c.start.y=c.last.y=c.end.y=b.pageY||b.clientY,V[a]=c,c}function Na(a){var b=void 0!==a.identifier?a.identifier:0,c=Oa(b);return null===c&&(c=Ma(b,a)),c.last.x=c.end.x,c.last.y=c.end.y,c.end.x=a.pageX||a.clientX,c.end.y=a.pageY||a.clientY,c}function Oa(a){return V[a]||null}function Pa(a,b){b=Math.max(b,Qa(a)),R[a].distance=b}function Qa(a){if(R[a])return R[a].distance}function Ra(){var a={};return a[c]=Sa(c),a[d]=Sa(d),a[e]=Sa(e),a[f]=Sa(f),a}function Sa(a){return{direction:a,distance:0}}function Ta(){return X-W}function Ua(a,b){var c=Math.abs(a.x-b.x),d=Math.abs(a.y-b.y);return Math.round(Math.sqrt(c*c+d*d))}function Va(a,b){return(b/a*1).toFixed(2)}function Wa(){return O<1?h:g}function Xa(a,b){return Math.round(Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)))}function Ya(a,b){var c=a.x-b.x,d=b.y-a.y,e=Math.atan2(d,c),f=Math.round(180*e/Math.PI);return f<0&&(f=360-Math.abs(f)),f}function Za(a,b){var g=Ya(a,b);return g<=45&&g>=0?c:g<=360&&g>=315?c:g>=135&&g<=225?d:g>45&&g<135?f:e}function $a(){return(new Date).getTime()}function _a(b){b=a(b);var c=b.offset();return{left:c.left,right:c.left+b.outerWidth(),top:c.top,bottom:c.top+b.outerHeight()}}function ab(a,b){return a.x>b.left&&a.xb.top&&a.y<10547||(navigator.userAgent.match(h)||[])[1]<537;var j={},k=window.requestAnimationFrame||setTimeout,l=document.getElementsByTagName("use");e&&d()}return c}),function(a){"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b,document,window,navigator)}):"object"==typeof exports?a(require("jquery"),document,window,navigator):a(jQuery,document,window,navigator)}(function(a,b,c,d,e){"use strict";var f=0,g=function(){var e,b=d.userAgent,c=/msie\s\d+/i;return b.search(c)>0&&(e=c.exec(b).toString(),(e=e.split(" ")[1])<9)&&(a("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(b){var c=this,d=[].slice;if("function"!=typeof c)throw new TypeError;var e=d.call(arguments,1),f=function(){if(this instanceof f){var a=function(){};a.prototype=c.prototype;var g=new a,h=c.apply(g,e.concat(d.call(arguments)));return Object(h)===h?h:g}return c.apply(b,e.concat(d.call(arguments)))};return f}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;var f=+b||0;if(Math.abs(f)===1/0&&(f=0),f>=e)return-1;for(c=Math.max(f>=0?f:e-Math.abs(f),0);c!",h[0]),k={type:h.data("type"),min:h.data("min"),max:h.data("max"),from:h.data("from"),to:h.data("to"),step:h.data("step"),min_interval:h.data("minInterval"),max_interval:h.data("maxInterval"),drag_interval:h.data("dragInterval"),values:h.data("values"),from_fixed:h.data("fromFixed"),from_min:h.data("fromMin"),from_max:h.data("fromMax"),from_shadow:h.data("fromShadow"),to_fixed:h.data("toFixed"),to_min:h.data("toMin"),to_max:h.data("toMax"),to_shadow:h.data("toShadow"),prettify_enabled:h.data("prettifyEnabled"),prettify_separator:h.data("prettifySeparator"),force_edges:h.data("forceEdges"),keyboard:h.data("keyboard"),keyboard_step:h.data("keyboardStep"),grid:h.data("grid"),grid_margin:h.data("gridMargin"),grid_num:h.data("gridNum"),grid_snap:h.data("gridSnap"),hide_min_max:h.data("hideMinMax"),hide_from_to:h.data("hideFromTo"),prefix:h.data("prefix"),postfix:h.data("postfix"),max_postfix:h.data("maxPostfix"),decorate_both:h.data("decorateBoth"),values_separator:h.data("valuesSeparator"),input_values_separator:h.data("inputValuesSeparator"),disable:h.data("disable")},k.values=k.values&&k.values.split(",");for(l in k)k.hasOwnProperty(l)&&(k[l]!==e&&""!==k[l]||delete k[l]);i!==e&&""!==i&&(i=i.split(k.input_values_separator||f.input_values_separator||";"),i[0]&&i[0]==+i[0]&&(i[0]=+i[0]),i[1]&&i[1]==+i[1]&&(i[1]=+i[1]),f&&f.values&&f.values.length?(j.from=i[0]&&f.values.indexOf(i[0]),j.to=i[1]&&f.values.indexOf(i[1])):(j.from=i[0]&&+i[0],j.to=i[1]&&+i[1])),a.extend(j,f),a.extend(j,k),this.options=j,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};l.prototype={init:function(a){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var a='';this.$cache.input.before(a),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('01000'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(''),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(''),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.min,b=this.options.max,c=this.options.from,d=this.options.to;c>a&&d===b?this.$cache.s_from.addClass("type_last"):d'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),g&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),g&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(a){if(this.dragging){var b=a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX;this.coords.x_pointer=b-this.coords.x_gap,this.calc()}},pointerUp:function(b){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,g&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],b.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(b,c){c.preventDefault();var d=c.pageX||c.originalEvent.touches&&c.originalEvent.touches[0].pageX;2!==c.button&&("both"===b&&this.setTempMinInterval(),b||(b=this.target||"from"),this.current_plugin=this.plugin_count,this.target=b,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(b),g&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer;a?b+=this.options.keyboard_step:b-=this.options.keyboard_step,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options&&(this.calc_count++,(10===this.calc_count||a)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var b=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,b=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,b=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(b)),this.target){case"base":var c=(this.options.max-this.options.min)/100,d=(this.result.from-this.options.min)/c,e=(this.result.to-this.options.min)/c;this.coords.p_single_real=this.toFixed(d),this.coords.p_from_real=this.toFixed(d),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(b),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(b),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(b),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<0&&(k=0,l=k+i),l>100&&(l=100,k=l-i),this.coords.p_from_real=this.calcWithStep(k),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(l),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){if(!this.coords.w_rs)return void(this.coords.p_pointer=0);this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return b<0?b=0:b>a&&(b=a),b},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click||this.is_first_update)&&(this.is_key=!1,this.is_click=!1,this.is_first_update=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var c,d,e,a=this.options.values.length,b=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)a?(c=this.decorate(b[this.result.from]),this.$cache.single.html(c)):(c=this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(c)),this.calcLabels(),this.labels.p_single_left100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{a?(this.options.decorate_both?(c=this.decorate(b[this.result.from]),c+=this.options.values_separator,c+=this.decorate(b[this.result.to])):c=this.decorate(b[this.result.from]+this.options.values_separator+b[this.result.to]),d=this.decorate(b[this.result.from]),e=this.decorate(b[this.result.to]),this.$cache.single.html(c),this.$cache.from.html(d),this.$cache.to.html(e)):(this.options.decorate_both?(c=this.decorate(this._prettify(this.result.from),this.result.from),c+=this.options.values_separator,c+=this.decorate(this._prettify(this.result.to),this.result.to)):c=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),d=this.decorate(this._prettify(this.result.from),this.result.from),e=this.decorate(this._prettify(this.result.to),this.result.to),this.$cache.single.html(c),this.$cache.from.html(d),this.$cache.to.html(e)),this.calcLabels();var f=Math.min(this.labels.p_single_left,this.labels.p_from_left),g=this.labels.p_single_left+this.labels.p_single_fake,h=this.labels.p_to_left+this.labels.p_to_fake,i=Math.max(g,h);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",i=h):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",i=Math.max(g,h))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),f100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var g,h,i,j,a=this.options,b=this.$cache,c="number"==typeof a.from_min&&!isNaN(a.from_min),d="number"==typeof a.from_max&&!isNaN(a.from_max),e="number"==typeof a.to_min&&!isNaN(a.to_min),f="number"==typeof a.to_max&&!isNaN(a.to_max);"single"===a.type?a.from_shadow&&(c||d)?(g=this.convertToPercent(c?a.from_min:a.min),h=this.convertToPercent(d?a.from_max:a.max)-g,g=this.toFixed(g-this.coords.p_handle/100*g),h=this.toFixed(h-this.coords.p_handle/100*h),g+=this.coords.p_handle/2,b.shad_single[0].style.display="block",b.shad_single[0].style.left=g+"%",b.shad_single[0].style.width=h+"%"):b.shad_single[0].style.display="none":(a.from_shadow&&(c||d)?(g=this.convertToPercent(c?a.from_min:a.min),h=this.convertToPercent(d?a.from_max:a.max)-g,g=this.toFixed(g-this.coords.p_handle/100*g),h=this.toFixed(h-this.coords.p_handle/100*h),g+=this.coords.p_handle/2,b.shad_from[0].style.display="block",b.shad_from[0].style.left=g+"%",b.shad_from[0].style.width=h+"%"):b.shad_from[0].style.display="none",a.to_shadow&&(e||f)?(i=this.convertToPercent(e?a.to_min:a.min),j=this.convertToPercent(f?a.to_max:a.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),j=this.toFixed(j-this.coords.p_handle/100*j),i+=this.coords.p_handle/2,b.shad_to[0].style.display="block",b.shad_to[0].style.left=i+"%",b.shad_to[0].style.width=j+"%"):b.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(a,b){var e,f,c=this.options.max-this.options.min,d=c/100;return c?(e=b?a:a-this.options.min,f=e/d,this.toFixed(f)):(this.no_diapason=!0,0)},convertToValue:function(a){var f,g,b=this.options.min,c=this.options.max,d=b.toString().split(".")[1],e=c.toString().split(".")[1],h=0,i=0;if(0===a)return this.options.min;if(100===a)return this.options.max;d&&(f=d.length,h=f),e&&(g=e.length,h=g),f&&g&&(h=f>=g?f:g),b<0&&(i=Math.abs(b),b=+(b+i).toFixed(h),c=+(c+i).toFixed(h));var l,j=(c-b)/100*a+b,k=this.options.step.toString().split(".")[1];return k?j=+j.toFixed(k.length):(j/=this.options.step,j*=this.options.step,j=+j.toFixed(0)),i&&(j-=i),l=k?+j.toFixed(k.length):this.toFixed(j),lthis.options.max&&(l=this.options.max),l},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;return b>100&&(b=100),100===a&&(b=100),this.toFixed(b)},checkMinInterval:function(a,b,c){var e,f,d=this.options;return d.min_interval?(e=this.convertToValue(a),f=this.convertToValue(b),"from"===c?f-ed.max_interval&&(e=f-d.max_interval):e-f>d.max_interval&&(e=f+d.max_interval),this.convertToPercent(e)):a},checkDiapason:function(a,b,c){var d=this.convertToValue(a),e=this.options;return"number"!=typeof b&&(b=e.min),"number"!=typeof c&&(c=e.max),dc&&(d=c),this.convertToPercent(d)},toFixed:function(a){return+(a=a.toFixed(20))},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){return this.options.force_edges?(a<0?a=0:a>100-b&&(a=100-b),this.toFixed(a)):this.toFixed(a)},validate:function(){var e,f,a=this.options,b=this.result,c=a.values,d=c.length;if("string"==typeof a.min&&(a.min=+a.min),"string"==typeof a.max&&(a.max=+a.max),"string"==typeof a.from&&(a.from=+a.from),"string"==typeof a.to&&(a.to=+a.to),"string"==typeof a.step&&(a.step=+a.step),"string"==typeof a.from_min&&(a.from_min=+a.from_min),"string"==typeof a.from_max&&(a.from_max=+a.from_max),"string"==typeof a.to_min&&(a.to_min=+a.to_min),"string"==typeof a.to_max&&(a.to_max=+a.to_max),"string"==typeof a.keyboard_step&&(a.keyboard_step=+a.keyboard_step),"string"==typeof a.grid_num&&(a.grid_num=+a.grid_num),a.maxa.max&&(a.from=a.max)):(a.froma.max&&(a.from=a.max),a.toa.max&&(a.to=a.max),this.update_check.from&&(this.update_check.from!==a.from&&a.from>a.to&&(a.from=a.to),this.update_check.to!==a.to&&a.toa.to&&(a.from=a.to),a.to<0)&&(a.step=1),("number"!=typeof a.keyboard_step||isNaN(a.keyboard_step)||!a.keyboard_step||a.keyboard_step<0)&&(a.keyboard_step=5),"number"==typeof a.from_min&&a.froma.from_max&&(a.from=a.from_max),"number"==typeof a.to_min&&a.toa.to_max&&(a.to=a.to_max),b&&(b.min!==a.min&&(b.min=a.min),b.max!==a.max&&(b.max=a.max),(b.fromb.max)&&(b.from=a.from),(b.tob.max)&&(b.to=a.to)),("number"!=typeof a.min_interval||isNaN(a.min_interval)||!a.min_interval||a.min_interval<0)&&(a.min_interval=0),("number"!=typeof a.max_interval||isNaN(a.max_interval)||!a.max_interval||a.max_interval<0)&&(a.max_interval=0),a.min_interval&&a.min_interval>a.max-a.min&&(a.min_interval=a.max-a.min),a.max_interval&&a.max_interval>a.max-a.min&&(a.max_interval=a.max-a.min)},decorate:function(a,b){var c="",d=this.options;return d.prefix&&(c+=d.prefix),c+=a,d.max_postfix&&(d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" "))),d.postfix&&(c+=d.postfix),c},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var b,c,i,j,l,a=this.options,d=a.max-a.min,e=a.grid_num,f=0,g=0,h=4,k=0,m="";for(this.calcGridMargin(),a.grid_snap?(e=d/a.step,f=this.toFixed(a.step/(d/100))):f=this.toFixed(100/e),e>4&&(h=3),e>7&&(h=2),e>14&&(h=1),e>28&&(h=0),b=0;b100&&(g=100,(i-=2)<0&&(i=0)),this.coords.big[b]=g,j=(g-f*(b-1))/(i+1),c=1;c<=i&&0!==g;c++)k=this.toFixed(g-j*c),m+='';m+='',l=this.convertToValue(g),l=a.values.length?a.p_values[l]:this._prettify(l),m+=''+l+""}this.coords.big_num=Math.ceil(e+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(m),this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;b<-this.coords.grid_gap&&(c[0]=-this.coords.grid_gap,d[0]=this.toFixed(c[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[e-1]>100+this.coords.grid_gap&&(d[e-1]=100+this.coords.grid_gap,c[e-1]=this.toFixed(d[e-1]-this.coords.big_p[e-1]),this.coords.big_x[e-1]=this.toFixed(this.coords.big_p[e-1]-this.coords.grid_gap))),this.calcGridCollision(2,c,d),this.calcGridCollision(4,c,d),a=0;a=g);d+=a)f=this.$cache.grid_labels[e][0],c[d]<=b[e]?f.style.visibility="visible":f.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(b){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,b),this.validate(),this.updateResult(b),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},a.fn.ionRangeSlider=function(b){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new l(this,b,f++))})},function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<1/c?b*a*a:a<2/c?b*(a-=1.5/c)*a+.75:a<2.5/c?b*(a-=2.25/c)*a+.9375:b*(a-=2.625/c)*a+.984375}a.easing.jswing=a.easing.swing;var b=Math.pow,c=Math.sqrt,d=Math.sin,e=Math.cos,f=Math.PI,g=1.70158,h=1.525*g,i=g+1,j=2*f/3,k=2*f/4.5;a.extend(a.easing,{def:"easeOutQuad",swing:function(b){return a.easing[a.easing.def](b)},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return 1-(1-a)*(1-a)},easeInOutQuad:function(a){return a<.5?2*a*a:1-b(-2*a+2,2)/2},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1-b(1-a,3)},easeInOutCubic:function(a){return a<.5?4*a*a*a:1-b(-2*a+2,3)/2},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return 1-b(1-a,4)},easeInOutQuart:function(a){return a<.5?8*a*a*a*a:1-b(-2*a+2,4)/2},easeInQuint:function(a){return a*a*a*a*a},easeOutQuint:function(a){return 1-b(1-a,5)},easeInOutQuint:function(a){return a<.5?16*a*a*a*a*a:1-b(-2*a+2,5)/2},easeInSine:function(a){return 1-e(a*f/2)},easeOutSine:function(a){return d(a*f/2)},easeInOutSine:function(a){return-(e(f*a)-1)/2},easeInExpo:function(a){return 0===a?0:b(2,10*a-10)},easeOutExpo:function(a){return 1===a?1:1-b(2,-10*a)},easeInOutExpo:function(a){return 0===a?0:1===a?1:a<.5?b(2,20*a-10)/2:(2-b(2,-20*a+10))/2},easeInCirc:function(a){return 1-c(1-b(a,2))},easeOutCirc:function(a){return c(1-b(a-1,2))},easeInOutCirc:function(a){return a<.5?(1-c(1-b(2*a,2)))/2:(c(1-b(-2*a+2,2))+1)/2},easeInElastic:function(a){return 0===a?0:1===a?1:-b(2,10*a-10)*d((10*a-10.75)*j)},easeOutElastic:function(a){return 0===a?0:1===a?1:b(2,-10*a)*d((10*a-.75)*j)+1},easeInOutElastic:function(a){return 0===a?0:1===a?1:a<.5?-b(2,20*a-10)*d((20*a-11.125)*k)/2:b(2,-20*a+10)*d((20*a-11.125)*k)/2+1},easeInBack:function(a){return i*a*a*a-g*a*a},easeOutBack:function(a){return 1+i*b(a-1,3)+g*b(a-1,2)},easeInOutBack:function(a){return a<.5?b(2*a,2)*(2*(h+1)*a-h)/2:(b(2*a-2,2)*((h+1)*(2*a-2)+h)+2)/2},easeInBounce:function(a){return 1-l(1-a)},easeOutBounce:l,easeInOutBounce:function(a){return a<.5?(1-l(1-2*a))/2:(1+l(2*a-1))/2}})}),function(a,b,c){"use strict";function B(b,d,e){function Da(c){var e=Z.length;if(R.old=a.extend({},R),P=M?0:N[K.horizontal?"width":"height"](),U=S[K.horizontal?"width":"height"](),Q=M?b:O[K.horizontal?"outerWidth":"outerHeight"](),Z.length=0,R.start=0,R.end=y(Q-P,0),ia){_.length,$=O.children(K.itemSelector),_.length=0;var l,f=H(O,K.horizontal?"paddingLeft":"paddingTop"),g=H(O,K.horizontal?"paddingRight":"paddingBottom"),h="border-box"===a($).css("boxSizing"),i="none"!==$.css("float"),j=0,k=$.length-1;Q=0,$.each(function(b,c){var d=a(c),e=c.getBoundingClientRect(),h=x(K.horizontal?e.width||e.right-e.left:e.height||e.bottom-e.top),m=H(d,K.horizontal?"marginLeft":"marginTop"),n=H(d,K.horizontal?"marginRight":"marginBottom"),o=h+m+n,p=!m||!n,q={};q.el=c,q.size=p?h:o,q.half=q.size/2,q.start=Q+(p?m:0),q.center=q.start-x(P/2-q.size/2),q.end=q.start-P+q.size,b||(Q+=f),Q+=o,K.horizontal||i||n&&m&&b>0&&(Q-=z(m,n)),b===k&&(q.end+=g,Q+=g,j=p?n:0),_.push(q),l=q}),O[0].style[K.horizontal?"width":"height"]=(h?Q:Q-f-g)+50+"px",Q-=j,_.length?(R.start=_[0][ga?"center":"start"],R.end=ga?l.center:P0&&(K.dynamicHandle?(V=R.start===R.end?U:x(U*P/Q),V=I(V,K.minHandleSize,U),T[0].style[K.horizontal?"width":"height"]=V+"px"):V=T[K.horizontal?"outerWidth":"outerHeight"](),W.end=U-V,xa||Ga()),!M&&P>0){var m=R.start,n="";if(ia)a.each(_,function(a,b){ga?Z.push(b.center):b.start+b.size>m&&m<=R.end&&(m=b.start,Z.push(m),(m+=P)>R.end&&mR.start&&aR.end?a=R.end+(a-R.end)/6:a<.1?R.cur=ta.to:R.cur+=ta.tweeseDelta*(va.released?K.swingSpeed:K.syncSpeed)):(ta.time=z(+new Date-ta.start,K.speed),R.cur=ta.from+ta.delta*a.easing[K.easing](ta.time/K.speed,ta.time,0,1,K.speed)),ta.to===R.cur?(R.cur=ta.to,va.tweese=xa=0):xa=h(Fa),hb("move"),M||(i?O[0].style[i]=j+(K.horizontal?"translateX":"translateY")+"("+-R.cur+"px)":O[0].style[K.horizontal?"left":"top"]=-x(R.cur)+"px"),!xa&&va.released&&hb("moveEnd"),Ga()}}function Ga(){T.length&&(W.cur=R.start===R.end?0:((va.init&&!va.slidee?R.dest:R.cur)-R.start)/(R.end-R.start)*W.end,W.cur=I(x(W.cur),W.start,W.end),sa.hPos!==W.cur&&(sa.hPos=W.cur,i?T[0].style[i]=j+(K.horizontal?"translateX":"translateY")+"("+W.cur+"px)":T[0].style[K.horizontal?"left":"top"]=W.cur+"px"))}function Ha(){Y[0]&&sa.page!==aa.activePage&&(sa.page=aa.activePage,Y.removeClass(K.activeClass).eq(aa.activePage).addClass(K.activeClass),hb("activePage",sa.page))}function Ia(){ua.speed&&R.cur!==(ua.speed>0?R.end:R.start)||L.stop(),Aa=va.init?h(Ia):0,ua.now=+new Date,ua.pos=R.cur+(ua.now-ua.lastTime)/1e3*ua.speed,Ea(va.init?ua.pos:x(ua.pos)),va.init||R.cur!==R.dest||hb("moveEnd"),ua.lastTime=ua.now}function Ja(a,b,d){if("boolean"===C(b)&&(d=b,b=c),b===c)Ea(R[a],d);else{if(ha&&"center"!==a)return;var e=L.getPos(b);e&&Ea(e[a],d,!ha)}}function Ka(a){return null!=a?G(a)?a>=0&&a<_.length?a:-1:$.index(a):-1}function La(a){return Ka(G(a)&&a<0?a+_.length:a)}function Ma(a,b){var c=Ka(a);return!(!ia||c<0)&&((sa.active!==c||b)&&($.eq(aa.activeItem).removeClass(K.activeClass),$.eq(c).addClass(K.activeClass),sa.active=aa.activeItem=c,Pa(),hb("active",c)),c)}function Na(a){a=I(G(a)?a:R.dest,R.start,R.end);var b={},c=ga?0:P/2;if(!M)for(var d=0,e=Z.length;d=R.end||d===Z.length-1){b.activePage=Z.length-1;break}if(a<=Z[d]+c){b.activePage=d;break}}if(ia){for(var f=!1,g=!1,h=!1,i=0,j=_.length;i<=_[i].start+_[i].half&&(f=i),!1===h&&a<=_[i].center+_[i].half&&(h=i),i===j-1||a<=_[i].end+_[i].half){g=i;break}b.firstItem=G(f)?f:0,b.centerItem=G(h)?h:b.firstItem,b.lastItem=G(g)?g:b.centerItem}return b}function Oa(b){a.extend(aa,Na(b))}function Pa(){var a=R.dest<=R.start,b=R.dest>=R.end,c=(a?1:0)|(b?2:0);if(sa.slideePosState!==c&&(sa.slideePosState=c,pa.is("button,input")&&pa.prop("disabled",a),qa.is("button,input")&&qa.prop("disabled",b),pa.add(ma)[a?"addClass":"removeClass"](K.disabledClass),qa.add(la)[b?"addClass":"removeClass"](K.disabledClass)),sa.fwdbwdState!==c&&va.released&&(sa.fwdbwdState=c,ma.is("button,input")&&ma.prop("disabled",a),la.is("button,input")&&la.prop("disabled",b)),ia&&null!=aa.activeItem){var d=0===aa.activeItem,e=aa.activeItem>=_.length-1,f=(d?1:0)|(e?2:0);sa.itemsButtonState!==f&&(sa.itemsButtonState=f,na.is("button,input")&&na.prop("disabled",d),oa.is("button,input")&&oa.prop("disabled",e),na[d?"addClass":"removeClass"](K.disabledClass),oa[e?"addClass":"removeClass"](K.disabledClass))}}function Qa(a,b,c){if(a=La(a),b=La(b),a>-1&&b>-1&&a!==b&&(!c||b!==a-1)&&(c||b!==a+1)){$.eq(a)[c?"insertAfter":"insertBefore"](_[b].el);var d=ab?a:c?b+1:b,f=a>b;null!=aa.activeItem&&(a===aa.activeItem?sa.active=aa.activeItem=c?f?b+1:b:f?b:b-1:aa.activeItem>d&&aa.activeItem<2)||(c||D(b),Va(d),va.init=0,va.$source=a(b.target),va.touch=c,va.pointer=c?b.originalEvent.touches[0]:b,va.initX=va.pointer.pageX,va.initY=va.pointer.pageY,va.initPos=e?R.cur:W.cur,va.start=+new Date,va.time=0,va.path=0,va.delta=0,va.locked=0,va.history=[0,0,0,0],va.pathToLock=e?c?30:10:0,k.on(c?n:m,Xa),L.pause(1),(e?O:T).addClass(K.draggedClass),hb("moveStart"),e&&(ya=setInterval(Ua,10))))}function Xa(a){if(va.released="mouseup"===a.type||"touchend"===a.type,va.pointer=va.touch?a.originalEvent[va.released?"changedTouches":"touches"][0]:a,va.pathX=va.pointer.pageX-va.initX,va.pathY=va.pointer.pageY-va.initY,va.path=v(w(va.pathX,2)+w(va.pathY,2)),va.delta=K.horizontal?va.pathX:va.pathY,va.released||!(va.path<1)){if(!va.init){if(va.pathu(va.pathY):u(va.pathX)va.pathToLock&&va.slidee&&(va.locked=1,va.$source.on(p,E)),va.released&&(Ya(),K.releaseSwing&&va.slidee&&(va.swing=(va.delta-va.history[0])/40*300,va.delta+=va.swing,va.tweese=u(va.swing)>10)),Ea(va.slidee?x(va.initPos-va.delta):Ta(va.initPos+va.delta))}}function Ya(){clearInterval(ya),va.released=!0,k.off(va.touch?n:m,Xa),(va.slidee?O:T).removeClass(K.draggedClass),setTimeout(function(){va.$source.off(p,E)}),R.cur===R.dest&&va.init&&hb("moveEnd"),L.resume(1),va.init=0}function Za(b){return~a.inArray(b.nodeName,r)||a(b).is(K.interactive)}function $a(){L.stop(),k.off("mouseup",$a)}function _a(a){switch(D(a),this){case la[0]:case ma[0]:L.moveBy(la.is(this)?K.moveBy:-K.moveBy),k.on("mouseup",$a);break;case na[0]:L.prev();break;case oa[0]:L.next();break;case pa[0]:L.prevPage();break;case qa[0]:L.nextPage()}}function ab(a){return wa.curDelta=(K.horizontal?a.deltaY||a.deltaX:a.deltaY)||-a.wheelDelta,wa.curDelta/=1===a.deltaMode?3:100,ia?(t=+new Date,wa.last<1?wa.finalDelta=0:(wa.finalDelta=x(wa.delta/1),wa.delta%=1),wa.finalDelta):wa.curDelta}function bb(a){a.originalEvent[f]=L;var b=+new Date;if(A+K.scrollHijack>b&&ja[0]!==document&&ja[0]!==window)return void(A=b);if(K.scrollBy&&R.start!==R.end){var c=ab(a.originalEvent);(K.scrollTrap||c>0&&R.dest<0&&R.dest>R.start)&&D(a,1),L.slideBy(K.scrollBy*c)}}function cb(a){K.clickBar&&a.target===S[0]&&(D(a),Ea(Ta((K.horizontal?a.pageX-S.offset().left:a.pageY-S.offset().top)-V/2)))}function db(a){if(K.keyboardNavBy)switch(a.which){case K.horizontal?37:38:D(a),L["pages"===K.keyboardNavBy?"prevPage":"prev"]();break;case K.horizontal?39:40:D(a),L["pages"===K.keyboardNavBy?"nextPage":"next"]()}}function eb(a){if(Za(this))return void(a.originalEvent[f+"ignore"]=!0);this.parentNode!==O[0]||a.originalEvent[f+"ignore"]||L.activate(this)}function fb(){this.parentNode===X[0]&&L.activatePage(Y.index(this))}function gb(a){K.pauseOnHover&&L["mouseenter"===a.type?"pause":"resume"](2)}function hb(a,b){if(ra[a]){for(Ca=ra[a].length,s.length=0,Ba=0;Ba0?R.end:R.start)&&(ua.lastTime=+new Date,ua.startPos=R.cur,Va("button"),va.init=1,hb("moveStart"),g(Aa),Ia())},L.stop=function(){"button"===va.source&&(va.init=0,va.released=1)},L.prev=function(){L.activate(null==aa.activeItem?0:aa.activeItem-1)},L.next=function(){L.activate(null==aa.activeItem?0:aa.activeItem+1)},L.prevPage=function(){L.activatePage(aa.activePage-1)},L.nextPage=function(){L.activatePage(aa.activePage+1)},L.slideBy=function(a,b){a&&(ia?L[ha?"toCenter":"toStart"](I((ha?aa.centerItem:aa.firstItem)+K.scrollBy*a,0,_.length)):Ea(R.dest+a,b))},L.slideTo=function(a,b){Ea(a,b)},L.toStart=function(a,b){Ja("start",a,b)},L.toEnd=function(a,b){Ja("end",a,b)},L.toCenter=function(a,b){Ja("center",a,b)},L.getIndex=Ka,L.activate=function(a,b){var c=Ma(a);K.smart&&!1!==c&&(ha?L.toCenter(c,b):c>=aa.lastItem?L.toStart(c,b):c<=aa.firstItem?L.toEnd(c,b):Sa())},L.activatePage=function(a,b){G(a)&&Ea(Z[I(a,0,Z.length-1)],b)},L.resume=function(a){K.cycleBy&&K.cycleInterval&&("items"!==K.cycleBy||_[0]&&null!=aa.activeItem)&&!(a=_.length-1?0:aa.activeItem+1);break;case"pages":L.activatePage(aa.activePage>=Z.length-1?0:aa.activePage+1)}},K.cycleInterval))},L.pause=function(a){a=_.length?d.appendTo(O):_.length&&d.insertBefore(_[c].el),null!=aa.activeItem&&c<=aa.activeItem&&(sa.active=aa.activeItem+=d.length)):O.append(d),Da()},L.remove=function(b){if(ia){var c=La(b);if(c>-1){$.eq(c).remove();var d=c===aa.activeItem;null!=aa.activeItem&&cc?c:a}function J(a){var b={};return b.style={},b.save=function(){if(a&&a.nodeType){for(var c=0;c
  • "+(a+1)+"
  • "},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"}}(jQuery,window),jQuery(function(a){"use strict";!function(){var b=a("#gallery-carousel"),d=(b.children("ul").eq(0),b.closest(".gallery"));b.sly({horizontal:1,itemNav:"basic",smart:1,activateOn:"click",mouseDragging:1,touchDragging:1,releaseSwing:1,startAt:0,scrollBar:d.find(".gallery__scrollbar"),scrollBy:0,pagesBar:d.find(".pages"),activatePageOn:"click",speed:300,elasticBounds:1,easing:"easeOutExpo",dragHandle:1,dynamicHandle:1,clickBar:1})}()}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(a){"use strict";function c(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})}var b=function(b){this.element=a(b)};b.VERSION="3.3.7",b.TRANSITION_DURATION=150,b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},b.prototype.activate=function(c,d,e){function h(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),c.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),g?(c[0].offsetWidth,c.addClass("in")):c.removeClass("fade"),c.parent(".dropdown-menu").length&&c.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var f=d.find("> .active"),g=e&&a.support.transition&&(f.length&&f.hasClass("fade")||!!d.find("> .fade").length);f.length&&g?f.one("bsTransitionEnd",h).emulateTransitionEnd(b.TRANSITION_DURATION):h(),f.removeClass("in")};var d=a.fn.tab;a.fn.tab=c,a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(b){b.preventDefault(),c.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function c(c,d){if(this.el=c,this.$el=a(c),this.s=a.extend({},b,d),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=a(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(a(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var b={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};c.prototype.init=function(){var b=this;b.s.preload>b.$items.length&&(b.s.preload=b.$items.length);var c=window.location.hash;c.indexOf("lg="+this.s.galleryId)>0&&(b.index=parseInt(c.split("&slide=")[1],10),a("body").addClass("lg-from-hash"),a("body").hasClass("lg-on")||(setTimeout(function(){b.build(b.index)}),a("body").addClass("lg-on"))),b.s.dynamic?(b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||0,a("body").hasClass("lg-on")||setTimeout(function(){b.build(b.index),a("body").addClass("lg-on")})):b.$items.on("click.lgcustom",function(c){try{c.preventDefault(),c.preventDefault()}catch(a){c.returnValue=!1}b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||b.$items.index(this),a("body").hasClass("lg-on")||(b.build(b.index),a("body").addClass("lg-on"))})},c.prototype.build=function(b){var c=this;c.structure(),a.each(a.fn.lightGallery.modules,function(b){c.modules[b]=new a.fn.lightGallery.modules[b](c.el)}),c.slide(b,!1,!1,!1),c.s.keyPress&&c.keyPress(),c.$items.length>1&&(c.arrow(),setTimeout(function(){c.enableDrag(),c.enableSwipe()},50),c.s.mousewheel&&c.mousewheel()),c.counter(),c.closeGallery(),c.$el.trigger("onAfterOpen.lg"),c.$outer.on("mousemove.lg click.lg touchstart.lg",function(){c.$outer.removeClass("lg-hide-items"),clearTimeout(c.hideBartimeout),c.hideBartimeout=setTimeout(function(){c.$outer.addClass("lg-hide-items")},c.s.hideBarsDelay)}),c.$outer.trigger("mousemove.lg")},c.prototype.structure=function(){var f,b="",c="",d=0,e="",g=this;for(a("body").append('
    '),a(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),d=0;d1&&(c='
    '+this.s.prevHtml+'
    '+this.s.nextHtml+"
    "),".lg-sub-html"===this.s.appendSubHtmlTo&&(e='
    '),f='
    '+b+'
    '+c+e+"
    ",a("body").append(f),this.$outer=a(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),g.setTop(),a(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){g.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var h=this.$outer.find(".lg-inner");h.css("transition-timing-function",this.s.cssEasing),h.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){a(".lg-backdrop").addClass("in")}),setTimeout(function(){g.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append(''),this.prevScrollTop=a(window).scrollTop()},c.prototype.setTop=function(){if("100%"!==this.s.height){var b=a(window).height(),c=(b-parseInt(this.s.height,10))/2,d=this.$outer.find(".lg");b>=parseInt(this.s.height,10)?d.css("top",c+"px"):d.css("top","0px")}},c.prototype.doCss=function(){return!!function(){var a=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],b=document.documentElement,c=0;for(c=0;c
    '+(parseInt(this.index,10)+1)+' / '+this.$items.length+"
    ")},c.prototype.addHtml=function(b){var d,e,c=null;if(this.s.dynamic?this.s.dynamicEl[b].subHtmlUrl?d=this.s.dynamicEl[b].subHtmlUrl:c=this.s.dynamicEl[b].subHtml:(e=this.$items.eq(b),e.attr("data-sub-html-url")?d=e.attr("data-sub-html-url"):(c=e.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!c&&(c=e.attr("title")||e.find("img").first().attr("alt")))),!d)if(void 0!==c&&null!==c){var f=c.substring(0,1);"."!==f&&"#"!==f||(c=this.s.subHtmlSelectorRelative&&!this.s.dynamic?e.find(c).html():a(c).html())}else c="";".lg-sub-html"===this.s.appendSubHtmlTo?d?this.$outer.find(this.s.appendSubHtmlTo).load(d):this.$outer.find(this.s.appendSubHtmlTo).html(c):d?this.$slide.eq(b).load(d):this.$slide.eq(b).append(c),void 0!==c&&null!==c&&(""===c?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[b])},c.prototype.preload=function(a){var b=1,c=1;for(b=1;b<=this.s.preload&&!(b>=this.$items.length-a);b++)this.loadContent(a+b,!1,0);for(c=1;c<=this.s.preload&&!(a-c<0);c++)this.loadContent(a-c,!1,0)},c.prototype.loadContent=function(b,c,d){var g,h,i,j,k,l,e=this,f=!1,m=function(b){for(var c=[],d=[],e=0;eg){h=d[i];break}};if(e.s.dynamic){if(e.s.dynamicEl[b].poster&&(f=!0,i=e.s.dynamicEl[b].poster),l=e.s.dynamicEl[b].html,h=e.s.dynamicEl[b].src,e.s.dynamicEl[b].responsive){m(e.s.dynamicEl[b].responsive.split(","))}j=e.s.dynamicEl[b].srcset,k=e.s.dynamicEl[b].sizes}else{if(e.$items.eq(b).attr("data-poster")&&(f=!0,i=e.$items.eq(b).attr("data-poster")),l=e.$items.eq(b).attr("data-html"),h=e.$items.eq(b).attr("href")||e.$items.eq(b).attr("data-src"),e.$items.eq(b).attr("data-responsive")){m(e.$items.eq(b).attr("data-responsive").split(","))}j=e.$items.eq(b).attr("data-srcset"),k=e.$items.eq(b).attr("data-sizes")}var p=!1;e.s.dynamic?e.s.dynamicEl[b].iframe&&(p=!0):"true"===e.$items.eq(b).attr("data-iframe")&&(p=!0);var q=e.isVideo(h,b);if(!e.$slide.eq(b).hasClass("lg-loaded")){if(p)e.$slide.eq(b).prepend('
    ');else if(f){var r="";r=q&&q.youtube?"lg-has-youtube":q&&q.vimeo?"lg-has-vimeo":"lg-has-html5",e.$slide.eq(b).prepend('
    ')}else q?(e.$slide.eq(b).prepend('
    '),e.$el.trigger("hasVideo.lg",[b,h,l])):e.$slide.eq(b).prepend('
    ');if(e.$el.trigger("onAferAppendSlide.lg",[b]),g=e.$slide.eq(b).find(".lg-object"),k&&g.attr("sizes",k),j){g.attr("srcset",j);try{picturefill({elements:[g[0]]})}catch(a){console.error("Make sure you have included Picturefill version 2")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&e.addHtml(b),e.$slide.eq(b).addClass("lg-loaded")}e.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){var c=0;d&&!a("body").hasClass("lg-from-hash")&&(c=d),setTimeout(function(){e.$slide.eq(b).addClass("lg-complete"),e.$el.trigger("onSlideItemLoad.lg",[b,d||0])},c)}),q&&q.html5&&!f&&e.$slide.eq(b).addClass("lg-complete"),!0===c&&(e.$slide.eq(b).hasClass("lg-complete")?e.preload(b):e.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){e.preload(b)}))},c.prototype.slide=function(b,c,d,e){var f=this.$outer.find(".lg-current").index(),g=this;if(!g.lGalleryOn||f!==b){var h=this.$slide.length,i=g.lGalleryOn?this.s.speed:0;if(!g.lgBusy){if(this.s.download){var j;j=g.s.dynamic?!1!==g.s.dynamicEl[b].downloadUrl&&(g.s.dynamicEl[b].downloadUrl||g.s.dynamicEl[b].src):"false"!==g.$items.eq(b).attr("data-download-url")&&(g.$items.eq(b).attr("data-download-url")||g.$items.eq(b).attr("href")||g.$items.eq(b).attr("data-src")),j?(a("#lg-download").attr("href",j),g.$outer.removeClass("lg-hide-download")):g.$outer.addClass("lg-hide-download")}if(this.$el.trigger("onBeforeSlide.lg",[f,b,c,d]),g.lgBusy=!0,clearTimeout(g.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){g.addHtml(b)},i),this.arrowDisable(b),e||(bf&&(e="next")),c){this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide");var k,l;h>2?(k=b-1,l=b+1,0===b&&f===h-1?(l=0,k=h-1):b===h-1&&0===f&&(l=0,k=h-1)):(k=0,l=1),"prev"===e?g.$slide.eq(l).addClass("lg-next-slide"):g.$slide.eq(k).addClass("lg-prev-slide"),g.$slide.eq(b).addClass("lg-current")}else g.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(f).addClass("lg-next-slide")):(this.$slide.eq(b).addClass("lg-next-slide"),this.$slide.eq(f).addClass("lg-prev-slide")),setTimeout(function(){g.$slide.removeClass("lg-current"),g.$slide.eq(b).addClass("lg-current"),g.$outer.removeClass("lg-no-trans")},50);g.lGalleryOn?(setTimeout(function(){g.loadContent(b,!0,0)},this.s.speed+50),setTimeout(function(){g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])},this.s.speed)):(g.loadContent(b,!0,g.s.backdropDuration),g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])),g.lGalleryOn=!0,this.s.counter&&a("#lg-counter-current").text(b+1)}}},c.prototype.goToNextSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index+1<3&&(c=!1),b.lgBusy||(b.index>0?(b.index--,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):c?(b.index=b.$items.length-1,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-left-end"),setTimeout(function(){b.$outer.removeClass("lg-left-end")},400)))},c.prototype.keyPress=function(){var b=this;this.$items.length>1&&a(window).on("keyup.lg",function(a){b.$items.length>1&&(37===a.keyCode&&(a.preventDefault(),b.goToPrevSlide()),39===a.keyCode&&(a.preventDefault(),b.goToNextSlide()))}),a(window).on("keydown.lg",function(a){!0===b.s.escKey&&27===a.keyCode&&(a.preventDefault(),b.$outer.hasClass("lg-thumb-open")?b.$outer.removeClass("lg-thumb-open"):b.destroy())})},c.prototype.arrow=function(){var a=this;this.$outer.find(".lg-prev").on("click.lg",function(){a.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){a.goToNextSlide()})},c.prototype.arrowDisable=function(a){!this.s.loop&&this.s.hideControlOnEnd&&(a+10?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},c.prototype.setTranslate=function(a,b,c){this.s.useLeft?a.css("left",b):a.css({transform:"translate3d("+b+"px, "+c+"px, 0px)"})},c.prototype.touchMove=function(b,c){var d=c-b;Math.abs(d)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),d,0),this.setTranslate(a(".lg-prev-slide"),-this.$slide.eq(this.index).width()+d,0),this.setTranslate(a(".lg-next-slide"),this.$slide.eq(this.index).width()+d,0))},c.prototype.touchEnd=function(a){var b=this;"lg-slide"!==b.s.mode&&b.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){b.$outer.removeClass("lg-dragging"),a<0&&Math.abs(a)>b.s.swipeThreshold?b.goToNextSlide(!0):a>0&&Math.abs(a)>b.s.swipeThreshold?b.goToPrevSlide(!0):Math.abs(a)<5&&b.$el.trigger("onSlideClick.lg"),b.$slide.removeAttr("style")}),setTimeout(function(){b.$outer.hasClass("lg-dragging")||"lg-slide"===b.s.mode||b.$outer.removeClass("lg-slide")},b.s.speed+100)},c.prototype.enableSwipe=function(){var a=this,b=0,c=0,d=!1;a.s.enableSwipe&&a.isTouch&&a.doCss()&&(a.$slide.on("touchstart.lg",function(c){a.$outer.hasClass("lg-zoomed")||a.lgBusy||(c.preventDefault(),a.manageSwipeClass(),b=c.originalEvent.targetTouches[0].pageX)}),a.$slide.on("touchmove.lg",function(e){a.$outer.hasClass("lg-zoomed")||(e.preventDefault(),c=e.originalEvent.targetTouches[0].pageX,a.touchMove(b,c),d=!0)}),a.$slide.on("touchend.lg",function(){a.$outer.hasClass("lg-zoomed")||(d?(d=!1,a.touchEnd(c-b)):a.$el.trigger("onSlideClick.lg"))}))},c.prototype.enableDrag=function(){var b=this,c=0,d=0,e=!1,f=!1;b.s.enableDrag&&!b.isTouch&&b.doCss()&&(b.$slide.on("mousedown.lg",function(d){b.$outer.hasClass("lg-zoomed")||(a(d.target).hasClass("lg-object")||a(d.target).hasClass("lg-video-play"))&&(d.preventDefault(),b.lgBusy||(b.manageSwipeClass(),c=d.pageX,e=!0,b.$outer.scrollLeft+=1,b.$outer.scrollLeft-=1,b.$outer.removeClass("lg-grab").addClass("lg-grabbing"),b.$el.trigger("onDragstart.lg")))}),a(window).on("mousemove.lg",function(a){e&&(f=!0,d=a.pageX,b.touchMove(c,d),b.$el.trigger("onDragmove.lg"))}),a(window).on("mouseup.lg",function(g){f?(f=!1,b.touchEnd(d-c),b.$el.trigger("onDragend.lg")):(a(g.target).hasClass("lg-object")||a(g.target).hasClass("lg-video-play"))&&b.$el.trigger("onSlideClick.lg"),e&&(e=!1,b.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},c.prototype.manageSwipeClass=function(){var a=this.index+1,b=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?b=this.$slide.length-1:this.index===this.$slide.length-1&&(a=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),b>-1&&this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(a).addClass("lg-next-slide")},c.prototype.mousewheel=function(){var a=this;a.$outer.on("mousewheel.lg",function(b){b.deltaY&&(b.deltaY>0?a.goToPrevSlide():a.goToNextSlide(),b.preventDefault())})},c.prototype.closeGallery=function(){var b=this,c=!1;this.$outer.find(".lg-close").on("click.lg",function(){b.destroy()}),b.s.closable&&(b.$outer.on("mousedown.lg",function(b){c=!!(a(b.target).is(".lg-outer")||a(b.target).is(".lg-item ")||a(b.target).is(".lg-img-wrap"))}),b.$outer.on("mouseup.lg",function(d){(a(d.target).is(".lg-outer")||a(d.target).is(".lg-item ")||a(d.target).is(".lg-img-wrap")&&c)&&(b.$outer.hasClass("lg-dragging")||b.destroy())}))},c.prototype.destroy=function(b){var c=this;b||(c.$el.trigger("onBeforeClose.lg"),a(window).scrollTop(c.prevScrollTop)),b&&(c.s.dynamic||this.$items.off("click.lg click.lgcustom"),a.removeData(c.el,"lightGallery")),this.$el.off(".lg.tm"),a.each(a.fn.lightGallery.modules,function(a){c.modules[a]&&c.modules[a].destroy()}),this.lGalleryOn=!1,clearTimeout(c.hideBartimeout),this.hideBartimeout=!1,a(window).off(".lg"),a("body").removeClass("lg-on lg-from-hash"),c.$outer&&c.$outer.removeClass("lg-visible"),a(".lg-backdrop").removeClass("in"),setTimeout(function(){c.$outer&&c.$outer.remove(),a(".lg-backdrop").remove(),b||c.$el.trigger("onCloseAfter.lg")},c.s.backdropDuration+50)},a.fn.lightGallery=function(b){return this.each(function(){if(a.data(this,"lightGallery"))try{a(this).data("lightGallery").init()}catch(a){console.error("lightGallery has not initiated properly")}else a.data(this,"lightGallery",new c(this,b))})},a.fn.lightGallery.modules={}}()}),function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof exports?module.exports=b():b()}(0,function(){!function(a,b,c,d){"use strict";var e={fullScreen:!0},f=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},e,this.core.s),this.init(),this};f.prototype.init=function(){var a="";if(this.core.s.fullScreen){if(!(c.fullscreenEnabled||c.webkitFullscreenEnabled||c.mozFullScreenEnabled||c.msFullscreenEnabled))return;a='',this.core.$outer.find(".lg-toolbar").append(a),this.fullScreen()}},f.prototype.requestFullscreen=function(){var a=c.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},f.prototype.exitFullscreen=function(){c.exitFullscreen?c.exitFullscreen():c.msExitFullscreen?c.msExitFullscreen():c.mozCancelFullScreen?c.mozCancelFullScreen():c.webkitExitFullscreen&&c.webkitExitFullscreen()},f.prototype.fullScreen=function(){var b=this;a(c).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){b.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement||c.msFullscreenElement?b.exitFullscreen():b.requestFullscreen()})},f.prototype.destroy=function(){this.exitFullscreen(),a(c).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=f}(jQuery,window,document)}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),!(this.core.$items.length<2)&&(this.core.s=a.extend({},b,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};c.prototype.init=function(){var a=this;a.core.s.autoplayControls&&a.controls(),a.core.s.progressBar&&a.core.$outer.find(".lg").append('
    '),a.progress(),a.core.s.autoplay&&a.startlAuto(),a.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){a.interval&&(a.cancelAuto(),a.canceledOnTouch=!0)}),a.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!a.interval&&a.canceledOnTouch&&(a.startlAuto(),a.canceledOnTouch=!1)})},c.prototype.progress=function(){var b,c,a=this;a.$el.on("onBeforeSlide.lg.tm",function(){a.core.s.progressBar&&a.fromAuto&&(b=a.core.$outer.find(".lg-progress-bar"),c=a.core.$outer.find(".lg-progress"),a.interval&&(c.removeAttr("style"),b.removeClass("lg-start"),setTimeout(function(){c.css("transition","width "+(a.core.s.speed+a.core.s.pause)+"ms ease 0s"),b.addClass("lg-start")},20))),a.fromAuto||a.core.s.fourceAutoplay||a.cancelAuto(),a.fromAuto=!1})},c.prototype.controls=function(){var b=this;a(this.core.s.appendAutoplayControlsTo).append(''),b.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){a(b.core.$outer).hasClass("lg-show-autoplay")?(b.cancelAuto(),b.core.s.fourceAutoplay=!1):b.interval||(b.startlAuto(),b.core.s.fourceAutoplay=b.fourceAutoplayTemp)})},c.prototype.startlAuto=function(){var a=this;a.core.$outer.find(".lg-progress").css("transition","width "+(a.core.s.speed+a.core.s.pause)+"ms ease 0s"),a.core.$outer.addClass("lg-show-autoplay"),a.core.$outer.find(".lg-progress-bar").addClass("lg-start"),a.interval=setInterval(function(){a.core.index+1-1?c.core.slide(a,!1,!1):c.core.lGalleryOn&&c.core.destroy()})},f.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?b.location.hash=this.oldHash:history.pushState?history.pushState("",c.title,b.location.pathname+b.location.search):b.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=f}(jQuery,window,document)}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={pager:!1},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};c.prototype.init=function(){var d,e,f,b=this,c="";if(b.core.$outer.find(".lg").append('
    '),b.core.s.dynamic)for(var g=0;g';else b.core.$items.each(function(){b.core.s.exThumbImage?c+='
    ':c+='
    '});e=b.core.$outer.find(".lg-pager-outer"),e.html(c),d=b.core.$outer.find(".lg-pager-cont"),d.on("click.lg touchend.lg",function(){var c=a(this);b.core.index=c.index(),b.core.slide(b.core.index,!1,!0,!1)}),e.on("mouseover.lg",function(){clearTimeout(f),e.addClass("lg-pager-hover")}),e.on("mouseout.lg",function(){f=setTimeout(function(){e.removeClass("lg-pager-hover")})}),b.core.$el.on("onBeforeSlide.lg.tm",function(a,b,c){d.removeClass("lg-pager-active"),d.eq(c).addClass("lg-pager-active")})},c.prototype.destroy=function(){},a.fn.lightGallery.modules.pager=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.$el=a(c),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.left=0,this.init(),this};c.prototype.init=function(){var a=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){a.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb?(this.core.s.enableThumbDrag&&!this.core.isTouch&&this.core.doCss()&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.core.isTouch&&this.core.doCss()&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},c.prototype.build=function(){function g(a,e,f){var h,g=b.core.isVideo(a,f)||{},i="";g.youtube||g.vimeo||g.dailymotion?g.youtube?h=b.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+g.youtube[1]+"/"+b.core.s.youtubeThumbSize+".jpg":e:g.vimeo?b.core.s.loadVimeoThumbnail?(h="//i.vimeocdn.com/video/error_"+d+".jpg",i=g.vimeo[1]):h=e:g.dailymotion&&(h=b.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+g.dailymotion[1]:e):h=e,c+='
    ',i=""}var e,b=this,c="",d="",f='
    ';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":d="640";break;case"thumbnail_medium":d="200x150";break;case"thumbnail_small":d="100x75"}if(b.core.$outer.addClass("lg-has-thumb"),b.core.$outer.find(".lg").append(f),b.$thumbOuter=b.core.$outer.find(".lg-thumb-outer"),b.thumbOuterWidth=b.$thumbOuter.width(),b.core.s.animateThumb&&b.core.$outer.find(".lg-thumb").css({width:b.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&b.$thumbOuter.css("height",b.core.s.thumbContHeight+"px"),b.core.s.dynamic)for(var h=0;hthis.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(b.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||b.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||b.css("left",-this.left+"px"),this.setTranslate(this.left)}},c.prototype.enableThumbDrag=function(){var b=this,c=0,d=0,e=!1,f=!1,g=0;b.$thumbOuter.addClass("lg-grab"),b.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(a){b.thumbTotalWidth>b.thumbOuterWidth&&(a.preventDefault(),c=a.pageX,e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.thumbClickable=!1,b.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.thumb",function(a){e&&(g=b.left,f=!0,d=a.pageX,b.$thumbOuter.addClass("lg-dragging"),g-=d-c,g>b.thumbTotalWidth-b.thumbOuterWidth&&(g=b.thumbTotalWidth-b.thumbOuterWidth),g<0&&(g=0),b.setTranslate(g))}),a(window).on("mouseup.lg.thumb",function(){f?(f=!1,b.$thumbOuter.removeClass("lg-dragging"),b.left=g,Math.abs(d-c)a.thumbOuterWidth&&(c.preventDefault(),b=c.originalEvent.targetTouches[0].pageX,a.thumbClickable=!1)}),a.core.$outer.find(".lg-thumb").on("touchmove.lg",function(f){a.thumbTotalWidth>a.thumbOuterWidth&&(f.preventDefault(),c=f.originalEvent.targetTouches[0].pageX,d=!0,a.$thumbOuter.addClass("lg-dragging"),e=a.left,e-=c-b,e>a.thumbTotalWidth-a.thumbOuterWidth&&(e=a.thumbTotalWidth-a.thumbOuterWidth),e<0&&(e=0),a.setTranslate(e))}),a.core.$outer.find(".lg-thumb").on("touchend.lg",function(){a.thumbTotalWidth>a.thumbOuterWidth&&d?(d=!1,a.$thumbOuter.removeClass("lg-dragging"),Math.abs(c-b)'),a.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){a.core.$outer.toggleClass("lg-thumb-open")}))},c.prototype.thumbkeyPress=function(){var b=this;a(window).on("keydown.lg.thumb",function(a){38===a.keyCode?(a.preventDefault(),b.core.$outer.addClass("lg-thumb-open")):40===a.keyCode&&(a.preventDefault(),b.core.$outer.removeClass("lg-thumb-open"))})},c.prototype.destroy=function(){this.core.s.thumbnail&&this.core.$items.length>1&&(a(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},a.fn.lightGallery.modules.Thumbnail=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b=function(){var a=!1,b=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return b&&parseInt(b[2],10)<54&&(a=!0),a},c={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:b()},d=function(b){return this.core=a(b).data("lightGallery"),this.core.s=a.extend({},c,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()),this};d.prototype.init=function(){var b=this,c='';b.core.s.actualSize&&(c+=''),b.core.s.useLeftForZoom?b.core.$outer.addClass("lg-use-left-for-zoom"):b.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(c),b.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(c,d,e){var f=b.core.s.enableZoomAfter+e;a("body").hasClass("lg-from-hash")&&e?f=0:a("body").removeClass("lg-from-hash"),b.zoomabletimeout=setTimeout(function(){b.core.$slide.eq(d).addClass("lg-zoomable")},f+30)});var d=1,e=function(c){var e,f,d=b.core.$outer.find(".lg-current .lg-image"),g=(a(window).width()-d.prop("offsetWidth"))/2,h=(a(window).height()-d.prop("offsetHeight"))/2+a(window).scrollTop();e=b.pageX-g,f=b.pageY-h;var i=(c-1)*e,j=(c-1)*f;d.css("transform","scale3d("+c+", "+c+", 1)").attr("data-scale",c),b.core.s.useLeftForZoom?d.parent().css({left:-i+"px",top:-j+"px"}).attr("data-x",i).attr("data-y",j):d.parent().css("transform","translate3d(-"+i+"px, -"+j+"px, 0)").attr("data-x",i).attr("data-y",j)},f=function(){d>1?b.core.$outer.addClass("lg-zoomed"):b.resetZoom(),d<1&&(d=1),e(d)},g=function(c,e,g,h){var j,i=e.prop("offsetWidth");j=b.core.s.dynamic?b.core.s.dynamicEl[g].width||e[0].naturalWidth||i:b.core.$items.eq(g).attr("data-width")||e[0].naturalWidth||i;var k;b.core.$outer.hasClass("lg-zoomed")?d=1:j>i&&(k=j/i,d=k||2),h?(b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop()):(b.pageX=c.pageX||c.originalEvent.targetTouches[0].pageX,b.pageY=c.pageY||c.originalEvent.targetTouches[0].pageY),f(),setTimeout(function(){b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},h=!1;b.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(a,c){var d=b.core.$slide.eq(c).find(".lg-image");d.on("dblclick",function(a){g(a,d,c)}),d.on("touchstart",function(a){h?(clearTimeout(h),h=null,g(a,d,c)):h=setTimeout(function(){h=null},300),a.preventDefault()})}),a(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop(),e(d)}),a("#lg-zoom-out").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d-=b.core.s.scale,f())}),a("#lg-zoom-in").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d+=b.core.s.scale,f())}),a("#lg-actual-size").on("click.lg",function(a){g(a,b.core.$slide.eq(b.core.index).find(".lg-image"),b.core.index,!0)}),b.core.$el.on("onBeforeSlide.lg.tm",function(){d=1,b.resetZoom()}),b.core.isTouch||b.zoomDrag(),b.core.isTouch&&b.zoomSwipe()},d.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()},d.prototype.zoomSwipe=function(){var a=this,b={},c={},d=!1,e=!1,f=!1;a.core.$slide.on("touchstart.lg",function(c){if(a.core.$outer.hasClass("lg-zoomed")){var d=a.core.$slide.eq(a.core.index).find(".lg-object");f=d.prop("offsetHeight")*d.attr("data-scale")>a.core.$outer.find(".lg").height(),e=d.prop("offsetWidth")*d.attr("data-scale")>a.core.$outer.find(".lg").width(),(e||f)&&(c.preventDefault(),b={x:c.originalEvent.targetTouches[0].pageX,y:c.originalEvent.targetTouches[0].pageY})}}),a.core.$slide.on("touchmove.lg",function(g){if(a.core.$outer.hasClass("lg-zoomed")){var i,j,h=a.core.$slide.eq(a.core.index).find(".lg-img-wrap");g.preventDefault(),d=!0,c={x:g.originalEvent.targetTouches[0].pageX,y:g.originalEvent.targetTouches[0].pageY},a.core.$outer.addClass("lg-zoom-dragging"),j=f?-Math.abs(h.attr("data-y"))+(c.y-b.y):-Math.abs(h.attr("data-y")),i=e?-Math.abs(h.attr("data-x"))+(c.x-b.x):-Math.abs(h.attr("data-x")),(Math.abs(c.x-b.x)>15||Math.abs(c.y-b.y)>15)&&(a.core.s.useLeftForZoom?h.css({left:i+"px",top:j+"px"}):h.css("transform","translate3d("+i+"px, "+j+"px, 0)"))}}),a.core.$slide.on("touchend.lg",function(){a.core.$outer.hasClass("lg-zoomed")&&d&&(d=!1,a.core.$outer.removeClass("lg-zoom-dragging"),a.touchendZoom(b,c,e,f))})},d.prototype.zoomDrag=function(){var b=this,c={},d={},e=!1,f=!1,g=!1,h=!1;b.core.$slide.on("mousedown.lg.zoom",function(d){var f=b.core.$slide.eq(b.core.index).find(".lg-object");h=f.prop("offsetHeight")*f.attr("data-scale")>b.core.$outer.find(".lg").height(),g=f.prop("offsetWidth")*f.attr("data-scale")>b.core.$outer.find(".lg").width(),b.core.$outer.hasClass("lg-zoomed")&&a(d.target).hasClass("lg-object")&&(g||h)&&(d.preventDefault(),c={x:d.pageX,y:d.pageY},e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.zoom",function(a){if(e){var j,k,i=b.core.$slide.eq(b.core.index).find(".lg-img-wrap");f=!0,d={x:a.pageX,y:a.pageY},b.core.$outer.addClass("lg-zoom-dragging"),k=h?-Math.abs(i.attr("data-y"))+(d.y-c.y):-Math.abs(i.attr("data-y")),j=g?-Math.abs(i.attr("data-x"))+(d.x-c.x):-Math.abs(i.attr("data-x")),b.core.s.useLeftForZoom?i.css({left:j+"px",top:k+"px"}):i.css("transform","translate3d("+j+"px, "+k+"px, 0)")}}),a(window).on("mouseup.lg.zoom",function(a){e&&(e=!1,b.core.$outer.removeClass("lg-zoom-dragging"),!f||c.x===d.x&&c.y===d.y||(d={x:a.pageX,y:a.pageY},b.touchendZoom(c,d,g,h)),f=!1),b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},d.prototype.touchendZoom=function(a,b,c,d){var e=this,f=e.core.$slide.eq(e.core.index).find(".lg-img-wrap"),g=e.core.$slide.eq(e.core.index).find(".lg-object"),h=-Math.abs(f.attr("data-x"))+(b.x-a.x),i=-Math.abs(f.attr("data-y"))+(b.y-a.y),j=(e.core.$outer.find(".lg").height()-g.prop("offsetHeight"))/2,k=Math.abs(g.prop("offsetHeight")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").height()+j),l=(e.core.$outer.find(".lg").width()-g.prop("offsetWidth"))/2,m=Math.abs(g.prop("offsetWidth")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").width()+l);(Math.abs(b.x-a.x)>15||Math.abs(b.y-a.y)>15)&&(d&&(i<=-k?i=-k:i>=-j&&(i=-j)),c&&(h<=-m?h=-m:h>=-l&&(h=-l)),d?f.attr("data-y",Math.abs(i)):i=-Math.abs(f.attr("data-y")),c?f.attr("data-x",Math.abs(h)):h=-Math.abs(f.attr("data-x")),e.core.s.useLeftForZoom?f.css({left:h+"px",top:i+"px"}):f.css("transform","translate3d("+h+"px, "+i+"px, 0)"))},d.prototype.destroy=function(){var b=this;b.core.$el.off(".lg.zoom"),a(window).off(".lg.zoom"),b.core.$slide.off(".lg.zoom"),b.core.$el.off(".lg.tm.zoom"),b.resetZoom(),clearTimeout(b.zoomabletimeout),b.zoomabletimeout=!1},a.fn.lightGallery.modules.zoom=d}()}),function(a){svg4everybody({}),a(".scroll").on("click",function(b){b.preventDefault();var c=a(this);a("html, body").stop().animate({scrollTop:a(c.attr("href")).offset().top},1e3)}),a("#range1").ionRangeSlider({type:"double",min:18,max:60,hide_min_max:!0,grid:!1,onFinish:function(b){a("#searchage1").val(b.from),a("#searchage2").val(b.to)}}),a("#range2").ionRangeSlider({type:"double",min:130,max:200,hide_min_max:!0,grid:!1,onFinish:function(b){a("#searchheight1").val(b.from),a("#searchheight2").val(b.to)}}),a("#range3").ionRangeSlider({type:"double",min:40,max:100,hide_min_max:!0,grid:!1,onFinish:function(b){a("#searchweight1").val(b.from),a("#searchweight2").val(b.to)}}),a("#range4").ionRangeSlider({type:"double",min:0,max:7,grid:!0,step:1,hide_min_max:!0,hide_from_to:!0,grid_snap:!0,onFinish:function(b){a("#searchbust1").val(b.from),a("#searchbust2").val(b.to),a(".irs-grid-text").each(function(){parseInt(a(this).html())>=parseInt(b.from)&&parseInt(a(this).html())<=parseInt(b.to)?a(this).css("color","#000000"):a(this).css("color","#90a4ae")})}}),a(".irs-grid-text").each(function(){parseInt(a(this).html())>=0&&parseInt(a(this).html())<=7?a(this).css("color","#000000"):a(this).css("color","#90a4ae")}),a(".hide").on("click",function(b){b.preventDefault(),a(this).hide()}),a("#button-gallery").on("click",function(b){b.preventDefault(),a(".gallery-hidden").slideToggle("400"),a(this).toggleClass("active"),a("#button-gallery").hasClass("active")?a("#button-gallery").text("Скрыть фото"):(a("#button-gallery").text("Показать еще фото"),a("html, body").animate({scrollTop:a("#tabs").offset().top},400))}),a(".toggle-search").on("click",function(b){b.preventDefault(),a(this).addClass("clicked"),a(".form-search").addClass("active")}),a(document).mouseup(function(b){0===a(".form-search").has(b.target).length&&(a(".form-search").removeClass("active"),a(".toggle-search").removeClass("clicked"))}),a(".toggle-dropdown > a").on("click",function(b){b.preventDefault(),a(this).parent().siblings().removeClass("clicked").find(".submenu").removeClass("open"),a(this).parent().toggleClass("clicked"),a(this).parent().find(".submenu").toggleClass("open")}),a(document).click(function(b){a(b.target).closest(".toggle-dropdown").length||(a(".parent").removeClass("clicked"),a(".submenu").removeClass("open"),b.stopPropagation())}),a("#lightgallery").lightGallery({download:!1,thumbnail:!0,animateThumb:!0,showThumbByDefault:!0}),a("#menu-button").on("click",function(b){b.preventDefault(),a(this).toggleClass("is-active"),a("#menu").toggleClass("open")})}(jQuery);