(function(e){e.fn.noUiSlider=function(p,q){function r(a,d,c){var f=d.data("setup"),e=f.handles;d=f.settings;f=f.pos;a=0>a?0:100c?c:a):(c=parseFloat(e[0][0].style[f])+d.margin,a=aa[0]?d+Math.abs(a[0]):d-a[0];return 100*d/this._length(a)},from:function(a,d){return 100*d/this._length(a)},is:function(a,d){return d*this._length(a)/100+a[0]},_length:function(a){return a[0]>a[1]?a[0]-a[1]:a[1]-a[0]}},w={handles:2,serialization:{to:["",""],
resolution:0.01}};methods={create:function(){return this.each(function(){e(this).data("_isnS_",!0);var a=e.extend(w,p),d=e(this),c=[],f,k,b="",g=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},h=(a.serialization.resolution=a.serialization.resolution||0.01).toString().split("."),u=1==h[0]?0:h[1].length;a.start=g(a.start)?[a.start,0]:a.start;console&&e.each(a,function(b,c){g(c)&&(a[b]=parseFloat(c));var e=!1;switch(b){case "range":case "start":e=2!=c.length||!g(c[0])||!g(c[1]);break;case "handles":e=
1>c||2").children(":last");c[b].css(f,l.to(a.range,a.start[b])+"%");var h=(1===j?"mousedown":2===j?"MSPointerDown":"touchstart")+".noUiSliderX",q=(1===j?"mousemove":2===j?"MSPointerMove":"touchmove")+".noUiSlider",t=(1===j?"mouseup":2===j?"MSPointerUp":"touchend")+".noUiSlider";
c[b].find("div").on(h,function(b){e("body").bind("selectstart.noUiSlider",function(){return!1});if(!d.hasClass("disabled")){var n=e(this).addClass("active").parent();e("body").addClass("TOUCH");var g=n.add(e(document)).add("body"),j=parseFloat(n[0].style[f]),h=s(b),v=h,p=!1;e(document).on(q,function(b){b.preventDefault();b=s(b);b[0]-=h[0];b[1]-=h[1];var e=[v[0]!=b[0],v[1]!=b[1]],m=j+100*b[k]/(k?d.height():d.width()),m=r(m,d,n);if(e[k]&&m!=p){n.css(f,m+"%").data("input").val(l.is(a.range,m).toFixed(u));
var e=a.slide,g=d.data("_n",!0);"function"==typeof e&&e.call(g,void 0);p=m;n.css("z-index",2==c.length&&100==m&&n.is(":first-child")?2:1)}v=b});e(document).on(t+" mouseLeave.noUiSlider",function(){g.off(".noUiSlider");e("body").removeClass("TOUCH");d.find(".active").removeClass("active");d.data("_n")&&d.data("_n",!1).change()})}}).on("click",function(a){a.stopPropagation()})}if(1==j)d.on("click",function(b){if(!d.hasClass("disabled")){b=s(b);var e=100*(b[k]-d.offset()[f])/(k?d.height():d.width());
b=1').find("input:last").val(h).change(function(a){a.stopPropagation()})):
!1==a.serialization.to[b]?c[b].data("input",{val:function(){}}):c[b].data("input",a.serialization.to[b].data("handleNR",b).val(h).change(function(){var a=[null,null];a[e(this).data("handleNR")]=e(this).val();d.val(a)}));e(this).data("setup",{settings:a,handles:c,pos:f,res:u})})},val:function(a){if(a){var d="number"==typeof a?[a]:a;return this.each(function(){for(var a=e(this).data("setup"),b=0;b