0byt3m1n1-V2
Path:
/
home
/
yvffpqmy
/
public_html
/
wp-content
/
plugins
/
arforms
/
js
/
[
Home
]
File: nouislider.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).noUiSlider={})}(this,function(ut){"use strict";function n(t){return"object"==typeof t&&"function"==typeof t.to}function ct(t){t.parentElement.removeChild(t)}function pt(t){return null!=t}function ft(t){t.preventDefault()}function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function dt(t,e,r){0<r&&(gt(t,e),setTimeout(function(){vt(t,e)},r))}function ht(t){return Math.max(Math.min(t,100),0)}function mt(t){return Array.isArray(t)?t:[t]}function e(t){t=(t=String(t)).split(".");return 1<t.length?t[1].length:0}function gt(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function vt(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function bt(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:(r?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(r?t.documentElement:t.body).scrollTop}}function s(t,e){return 100/(e-t)}function a(t,e,r){return 100*e/(t[r+1]-t[r])}function l(t,e){for(var r=1;t>=e[r];)r+=1;return r}function r(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=l(r,t),i=t[n-1],t=t[n],o=e[n-1],e=e[n];return o+(n=r,a(r=[i,t],r[0]<0?n+Math.abs(r[0]):n-r[0],0)/s(o,e))}function o(t,e,r,n){if(100===n)return n;var i=l(n,t),o=t[i-1],s=t[i];return r?(s-o)/2<n-o?s:o:e[i-1]?t[i-1]+(r=n-t[i-1],s=e[i-1],Math.round(r/s)*s):n}function u(t,e){if(!i(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function c(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function p(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function f(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function d(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new S(e,t.snap||!1,t.singleStep)}function h(t,e){if(e=mt(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function m(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function g(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function v(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function P(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=e}t.connect=n}function C(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function b(t,e){if(!i(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function N(t,e){if(!i(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function V(t,e){var r;if(!i(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!i(e[0])&&!i(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],r=0;r<t.spectrum.xNumSteps.length-1;r++)if(t.padding[0][r]<0||t.padding[1][r]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var e=e[0]+e[1],n=t.spectrum.xVal[0];if(1<e/(t.spectrum.xVal[t.spectrum.xVal.length-1]-n))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function k(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function M(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=0<=e.indexOf("tap"),n=0<=e.indexOf("drag"),i=0<=e.indexOf("fixed"),o=0<=e.indexOf("snap"),s=0<=e.indexOf("hover"),a=0<=e.indexOf("unconstrained"),e=0<=e.indexOf("drag-all");if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");b(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||o,drag:n,dragAll:e,fixed:i,snap:o,hover:s,unconstrained:a}}function A(t,e){if(!1!==e)if(!0===e||n(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=mt(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(t){if("boolean"!=typeof t&&!n(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),t.tooltips=e}}function U(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function D(t,e){if(!n(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function O(t,e){if(!n(r=e)||"function"!=typeof r.from)throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");var r;t.format=e}function L(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function T(t,e){t.documentElement=e}function j(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function z(e,r){if("object"!=typeof r)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function St(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:y,format:y},n={step:{r:!1,t:u},keyboardPageMultiplier:{r:!1,t:c},keyboardMultiplier:{r:!1,t:p},keyboardDefaultStep:{r:!1,t:f},start:{r:!0,t:h},connect:{r:!0,t:P},direction:{r:!0,t:k},snap:{r:!1,t:m},animate:{r:!1,t:g},animationDuration:{r:!1,t:v},range:{r:!0,t:d},orientation:{r:!1,t:C},margin:{r:!1,t:b},limit:{r:!1,t:N},padding:{r:!1,t:V},behaviour:{r:!0,t:M},ariaFormat:{r:!1,t:D},format:{r:!1,t:O},tooltips:{r:!1,t:A},keyboardSupport:{r:!0,t:L},documentElement:{r:!1,t:T},cssPrefix:{r:!0,t:j},cssClasses:{r:!0,t:z},handleAttributes:{r:!1,t:U}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:w,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10},t=(e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(t){if(pt(e[t])||void 0!==i[t])n[t].t(r,(pt(e[t])?e:i)[t]);else if(n[t].r)throw new Error("noUiSlider: '"+t+"' is required.")}),r.pips=e.pips,document.createElement("div")),o=void 0!==t.style.msTransform,t=void 0!==t.style.transform;r.transformRule=t?"transform":o?"msTransform":"webkitTransform";return r.style=[["left","top"],["right","bottom"]][r.dir][r.ort],r}function H(t,f,o){function d(t,e){var r=A.createElement("div");return e&>(r,e),t.appendChild(r),r}function j(t,c){var e,t=d(t,f.cssClasses.origin),r=d(t,f.cssClasses.handle);return d(r,f.cssClasses.touchArea),r.setAttribute("data-handle",String(c)),f.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(t){var e=c;if(F()||p(e))return!1;var r=["Left","Right"],n=["Down","Up"],i=["PageDown","PageUp"],o=["Home","End"];f.dir&&!f.ort?r.reverse():f.ort&&!f.dir&&(n.reverse(),i.reverse());var s,a=(u=t.key.replace("Arrow",""))===i[0],i=u===i[1],l=u===n[0]||u===r[0]||a,n=u===n[1]||u===r[1]||i,r=u===o[0],u=u===o[1];if(!(l||n||r||u))return!0;if(t.preventDefault(),n||l){o=l?0:1,r=rt(e)[o];if(null===r)return!1;!1===r&&(r=C.getDefaultStep(V[e],l,f.keyboardDefaultStep)),r*=i||a?f.keyboardPageMultiplier:f.keyboardMultiplier,r=Math.max(r,1e-7),r*=l?-1:1,s=N[e]+r}else s=u?f.spectrum.xVal[f.spectrum.xVal.length-1]:f.spectrum.xVal[0];return b(e,C.toStepping(s),!0,!0),m("slide",e),m("update",e),m("change",e),m("set",e),!1})),void 0!==f.handleAttributes&&(e=f.handleAttributes[c],Object.keys(e).forEach(function(t){r.setAttribute(t,e[t])})),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",f.ort?"vertical":"horizontal"),0===c?gt(r,f.cssClasses.handleLower):c===f.handles-1&>(r,f.cssClasses.handleUpper),t}function z(t,e){return!!e&&d(t,f.cssClasses.connect)}function H(t,e){return!(!f.tooltips||!f.tooltips[e])&&d(t.firstChild,f.cssClasses.tooltip)}function F(){return P.hasAttribute("disabled")}function p(t){return x[t].hasAttribute("disabled")}function s(){w&&(r("update"+xt.tooltips),w.forEach(function(t){t&&ct(t)}),w=null)}function R(){s(),w=x.map(H),e("update"+xt.tooltips,function(t,e,r){w&&f.tooltips&&!1!==w[e]&&(t=t[e],!0!==f.tooltips[e]&&(t=f.tooltips[e].to(r[e])),w[e].innerHTML=t)})}function _(t,e){return t.map(function(t){return C.fromStepping(e?C.getStep(t):t)})}function B(d){var h=function(t){if(t.mode===ut.PipsMode.Range||t.mode===ut.PipsMode.Steps)return C.xVal;if(t.mode!==ut.PipsMode.Count)return t.mode===ut.PipsMode.Positions?_(t.values,t.stepped):t.mode===ut.PipsMode.Values?t.stepped?t.values.map(function(t){return C.fromStepping(C.getStep(C.toStepping(t)))}):t.values:[];if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var e=t.values-1,r=100/e,n=[];e--;)n[e]=e*r;return n.push(100),_(n,t.stepped)}(d),m={},t=C.xVal[0],e=C.xVal[C.xVal.length-1],g=!1,v=!1,b=0;return(h=h.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==t&&(h.unshift(t),g=!0),h[h.length-1]!==e&&(h.push(e),v=!0),h.forEach(function(t,e){var r,n,i,o,s,a,l,u,c=h[e+1],p=d.mode===ut.PipsMode.Steps,f=(f=p?C.xNumSteps[e]:f)||c-t;for(void 0===c&&(c=t),f=Math.max(f,1e-7),r=t;r<=c;r=Number((r+f).toFixed(7))){for(a=(s=(i=C.toStepping(r))-b)/(d.density||1),u=s/(l=Math.round(a)),n=1;n<=l;n+=1)m[(o=b+n*u).toFixed(5)]=[C.fromStepping(o),0];s=-1<h.indexOf(r)?ut.PipsType.LargeValue:p?ut.PipsType.SmallValue:ut.PipsType.NoValue,!e&&g&&r!==c&&(s=0),r===c&&v||(m[i.toFixed(5)]=[r,s]),b=i}}),m}function q(i,o,s){function a(t,e){var r=e===f.cssClasses.value;return e+" "+(r?c:p)[f.ort]+" "+(r?n:u)[t]}var t,l=A.createElement("div"),n=((t={})[ut.PipsType.None]="",t[ut.PipsType.NoValue]=f.cssClasses.valueNormal,t[ut.PipsType.LargeValue]=f.cssClasses.valueLarge,t[ut.PipsType.SmallValue]=f.cssClasses.valueSub,t),u=((t={})[ut.PipsType.None]="",t[ut.PipsType.NoValue]=f.cssClasses.markerNormal,t[ut.PipsType.LargeValue]=f.cssClasses.markerLarge,t[ut.PipsType.SmallValue]=f.cssClasses.markerSub,t),c=[f.cssClasses.valueHorizontal,f.cssClasses.valueVertical],p=[f.cssClasses.markerHorizontal,f.cssClasses.markerVertical];return gt(l,f.cssClasses.pips),gt(l,0===f.ort?f.cssClasses.pipsHorizontal:f.cssClasses.pipsVertical),Object.keys(i).forEach(function(t){var e,r,n;r=i[e=t][0],t=i[t][1],(t=o?o(r,t):t)!==ut.PipsType.None&&((n=d(l,!1)).className=a(t,f.cssClasses.marker),n.style[f.style]=e+"%",t>ut.PipsType.NoValue&&((n=d(l,!1)).className=a(t,f.cssClasses.value),n.setAttribute("data-value",String(r)),n.style[f.style]=e+"%",n.innerHTML=String(s.to(r))))}),l}function a(){n&&(ct(n),n=null)}function l(t){a();var e=B(t),r=t.filter,t=t.format||{to:function(t){return String(Math.round(t))}};return n=P.appendChild(q(e,r,t))}function X(){var t=i.getBoundingClientRect(),e="offset"+["Width","Height"][f.ort];return 0===f.ort?t.width||i[e]:t.height||i[e]}function u(n,i,o,s){function e(t){var e,r;return!!(t=function(e,t,r){var n=0===e.type.indexOf("touch"),i=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),s=0,a=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(n){n=function(t){t=t.target;return t===r||r.contains(t)||e.composed&&e.composedPath().shift()===r};if("touchstart"===e.type){var l=Array.prototype.filter.call(e.touches,n);if(1<l.length)return!1;s=l[0].pageX,a=l[0].pageY}else{l=Array.prototype.find.call(e.changedTouches,n);if(!l)return!1;s=l.pageX,a=l.pageY}}t=t||bt(A),(i||o)&&(s=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[s,a],e.cursor=i||o,e}(t,s.pageOffset,s.target||i))&&(!(F()&&!s.doNotReject)&&(e=P,r=f.cssClasses.tap,!((e.classList?e.classList.contains(r):new RegExp("\\b"+r+"\\b").test(e.className))&&!s.doNotReject)&&(!(n===E.start&&void 0!==t.buttons&&1<t.buttons)&&((!s.hover||!t.buttons)&&(nt||t.preventDefault(),t.calcPoint=t.points[f.ort],void o(t,s))))))}var r=[];return n.split(" ").forEach(function(t){i.addEventListener(t,e,!!nt&&{passive:!0}),r.push([t,e])}),r}function Y(t){var e,r,n=ht(100*(t-(t=i,n=f.ort,e=t.getBoundingClientRect(),r=(t=t.ownerDocument).documentElement,t=bt(t),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),n?e.top+t.y-r.clientTop:e.left+t.x-r.clientLeft))/X());return f.dir?100-n:n}function I(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&c(t,e)}function W(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return c(t,e);t=(f.dir?-1:1)*(t.calcPoint-e.startCalcPoint);J(0<t,100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function c(t,e){e.handle&&(vt(e.handle,f.cssClasses.active),--it),e.listeners.forEach(function(t){U.removeEventListener(t[0],t[1])}),0===it&&(vt(P,f.cssClasses.drag),Q(),t.cursor&&(D.style.cursor="",D.removeEventListener("selectstart",ft))),e.handleNumbers.forEach(function(t){m("change",t),m("set",t),m("end",t)})}function h(t,e){var r,n,i,o;e.handleNumbers.some(p)||(1===e.handleNumbers.length&&(o=x[e.handleNumbers[0]].children[0],it+=1,gt(o,f.cssClasses.active)),t.stopPropagation(),n=u(E.move,U,W,{target:t.target,handle:o,connect:e.connect,listeners:r=[],startCalcPoint:t.calcPoint,baseSize:X(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:V.slice()}),i=u(E.end,U,c,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),o=u("mouseout",U,I,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),r.push.apply(r,n.concat(i,o)),t.cursor&&(D.style.cursor=getComputedStyle(t.target).cursor,1<x.length&>(P,f.cssClasses.drag),D.addEventListener("selectstart",ft,!1)),e.handleNumbers.forEach(function(t){m("start",t)}))}function $(t){t.stopPropagation();var i,o,s,e=Y(t.calcPoint),r=(i=e,s=!(o=100),x.forEach(function(t,e){var r,n;p(e)||(r=V[e],((n=Math.abs(r-i))<o||n<=o&&r<i||100===n&&100===o)&&(s=e,o=n))}),s);!1!==r&&(f.events.snap||dt(P,f.cssClasses.tap,f.animationDuration),b(r,e,!0,!0),Q(),m("slide",r,!0),m("update",r,!0),f.events.snap?h(t,{handleNumbers:[r]}):(m("change",r,!0),m("set",r,!0)))}function G(t){var t=Y(t.calcPoint),t=C.getStep(t),e=C.fromStepping(t);Object.keys(M).forEach(function(t){"hover"===t.split(".")[0]&&M[t].forEach(function(t){t.call(T,e)})})}function e(t,e){M[t]=M[t]||[],M[t].push(e),"update"===t.split(".")[0]&&x.forEach(function(t,e){m("update",e)})}function r(t){var n=t&&t.split(".")[0],i=n?t.substring(n.length):t;Object.keys(M).forEach(function(t){var e=t.split(".")[0],r=t.substring(e.length);n&&n!==e||i&&i!==r||((e=r)!==xt.aria&&e!==xt.tooltips||i===r)&&delete M[t]})}function m(r,n,i){Object.keys(M).forEach(function(t){var e=t.split(".")[0];r===e&&M[t].forEach(function(t){t.call(T,N.map(f.format.to),n,N.slice(),i||!1,V.slice(),T)})})}function g(t,e,r,n,i,o){var s;return 1<x.length&&!f.events.unconstrained&&(n&&0<e&&(s=C.getAbsoluteDistance(t[e-1],f.margin,!1),r=Math.max(r,s)),i&&e<x.length-1&&(s=C.getAbsoluteDistance(t[e+1],f.margin,!0),r=Math.min(r,s))),1<x.length&&f.limit&&(n&&0<e&&(s=C.getAbsoluteDistance(t[e-1],f.limit,!1),r=Math.min(r,s)),i&&e<x.length-1&&(s=C.getAbsoluteDistance(t[e+1],f.limit,!0),r=Math.max(r,s))),f.padding&&(0===e&&(s=C.getAbsoluteDistance(0,f.padding[0],!1),r=Math.max(r,s)),e===x.length-1&&(s=C.getAbsoluteDistance(100,f.padding[1],!0),r=Math.min(r,s))),!((r=ht(r=C.getStep(r)))===t[e]&&!o)&&r}function v(t,e){var r=f.ort;return(r?e:t)+", "+(r?t:e)}function J(t,r,n,e,i){var o=n.slice(),s=e[0],a=[!t,t],l=[t,!t],u=(e=e.slice(),t&&e.reverse(),1<e.length?e.forEach(function(t,e){e=g(o,t,o[t]+r,a[e],l[e],!1);!1===e?r=0:(r=e-o[t],o[t]=e)}):a=l=[!0],!1);e.forEach(function(t,e){u=b(t,n[t]+r,a[e],l[e])||u}),u&&(e.forEach(function(t){m("update",t),m("slide",t)}),null!=i&&m("drag",s))}function K(t,e){return f.dir?100-t-e:t}function Q(){k.forEach(function(t){var e=50<V[t]?-1:1,e=3+(x.length+e*t);x[t].style.zIndex=String(e)})}function b(t,e,r,n,i){return!1!==(e=i?e:g(V,t,e,r,n,!1))&&(i=e,V[r=t]=i,N[r]=C.fromStepping(i),i="translate("+v(10*(K(i,0)-ot)+"%","0")+")",x[r].style[f.transformRule]=i,Z(r),Z(r+1),!0)}function Z(t){var e,r;y[t]&&(r=100,e="translate("+v(K(e=(e=0)!==t?V[t-1]:e,r=(r=t!==y.length-1?V[t]:r)-e)+"%","0")+")",r="scale("+v(r/100,"1")+")",y[t].style[f.transformRule]=e+" "+r)}function tt(t,e){return null===t||!1===t||void 0===t?V[e]:("number"==typeof t&&(t=String(t)),!1===(t=!1!==(t=f.format.from(t))?C.toStepping(t):t)||isNaN(t)?V[e]:t)}function S(t,e,r){var n,i=mt(t),t=void 0===V[0],o=(e=void 0===e||e,f.animate&&!t&&dt(P,f.cssClasses.tap,f.animationDuration),k.forEach(function(t){b(t,tt(i[t],t),!0,!1,r)}),1===k.length?0:1);for(t&&C.hasNoSize()&&(r=!0,V[0]=0,1<k.length&&(n=100/(k.length-1),k.forEach(function(t){V[t]=t*n})));o<k.length;++o)k.forEach(function(t){b(t,V[t],!0,!0,r)});Q(),k.forEach(function(t){m("update",t),null!==i[t]&&e&&m("set",t)})}function et(t){if(t=void 0===t?!1:t)return 1===N.length?N[0]:N.slice(0);t=N.map(f.format.to);return 1===t.length?t[0]:t}function rt(t){var e=V[t],r=C.getNearbySteps(e),t=N[t],n=r.thisStep.step,i=null;if(f.snap)return[t-r.stepBefore.startValue||null,r.stepAfter.startValue-t||null];!1!==n&&t+n>r.stepAfter.startValue&&(n=r.stepAfter.startValue-t),i=t>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&t-r.stepBefore.highestStep,100===e?n=null:0===e&&(i=null);t=C.countStepDecimals();return null!==n&&!1!==n&&(n=Number(n.toFixed(t))),[i=null!==i&&!1!==i?Number(i.toFixed(t)):i,n]}var i,x,y,n,w,E=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},nt=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),P=t,C=f.spectrum,N=[],V=[],k=[],it=0,M={},A=t.ownerDocument,U=f.documentElement||A.documentElement,D=A.body,ot="rtl"===A.dir||1===f.ort?0:100;gt(t=P,f.cssClasses.target),0===f.dir?gt(t,f.cssClasses.ltr):gt(t,f.cssClasses.rtl),0===f.ort?gt(t,f.cssClasses.horizontal):gt(t,f.cssClasses.vertical),gt(t,"rtl"===getComputedStyle(t).direction?f.cssClasses.textDirectionRtl:f.cssClasses.textDirectionLtr),i=d(t,f.cssClasses.base);var O,st=f.connect,at=i,lt=d(at,f.cssClasses.connects);x=[],(y=[]).push(z(lt,st[0]));for(var L=0;L<f.handles;L++)x.push(j(at,L)),k[L]=L,y.push(z(lt,st[L+1]));(O=f.events).fixed||x.forEach(function(t,e){u(E.start,t.children[0],h,{handleNumbers:[e]})}),O.tap&&u(E.start,i,$,{}),O.hover&&u(E.move,i,G,{hover:!0}),O.drag&&y.forEach(function(e,t){var r,n,i,o,s;!1!==e&&0!==t&&t!==y.length-1&&(r=x[t-1],n=x[t],i=[e],o=[r,n],s=[t-1,t],gt(e,f.cssClasses.draggable),O.fixed&&(i.push(r.children[0]),i.push(n.children[0])),O.dragAll&&(o=x,s=k),i.forEach(function(t){u(E.start,t,h,{handles:o,handleNumbers:s,connect:e})}))}),S(f.start),f.pips&&l(f.pips),f.tooltips&&R(),r("update"+xt.aria),e("update"+xt.aria,function(t,e,o,r,s){k.forEach(function(t){var e=x[t],r=g(V,t,0,!0,!0,!0),n=g(V,t,100,!0,!0,!0),i=s[t],t=String(f.ariaFormat.to(o[t])),r=C.fromStepping(r).toFixed(1),n=C.fromStepping(n).toFixed(1),i=C.fromStepping(i).toFixed(1);e.children[0].setAttribute("aria-valuemin",r),e.children[0].setAttribute("aria-valuemax",n),e.children[0].setAttribute("aria-valuenow",i),e.children[0].setAttribute("aria-valuetext",t)})});var T={destroy:function(){for(r(xt.aria),r(xt.tooltips),Object.keys(f.cssClasses).forEach(function(t){vt(P,f.cssClasses[t])});P.firstChild;)P.removeChild(P.firstChild);delete P.noUiSlider},steps:function(){return k.map(rt)},on:e,off:r,get:et,set:S,setHandle:function(t,e,r,n){if(!(0<=(t=Number(t))&&t<k.length))throw new Error("noUiSlider: invalid handle number, got: "+t);b(t,tt(e,t),!0,!0,n),m("update",t),r&&m("set",t)},reset:function(t){S(f.start,t)},__moveHandles:function(t,e,r){J(t,e,V,r)},options:o,updateOptions:function(e,t){var r=et(),n=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"],i=(n.forEach(function(t){void 0!==e[t]&&(o[t]=e[t])}),St(o));n.forEach(function(t){void 0!==e[t]&&(f[t]=i[t])}),C=i.spectrum,f.margin=i.margin,f.limit=i.limit,f.padding=i.padding,f.pips?l(f.pips):a(),(f.tooltips?R:s)(),V=[],S(pt(e.start)?e.start:r,t)},target:P,removePips:a,removeTooltips:s,getPositions:function(){return V.slice()},getTooltips:function(){return w},getOrigins:function(){return x},pips:l};return T}function t(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");e=H(t,St(e),e);return t.noUiSlider=e}ut.PipsMode=void 0,(E=ut.PipsMode||(ut.PipsMode={})).Range="range",E.Steps="steps",E.Positions="positions",E.Count="count",E.Values="values",ut.PipsType=void 0,(E=ut.PipsType||(ut.PipsType={}))[E.None=-1]="None",E[E.NoValue=0]="NoValue",E[E.LargeValue=1]="LargeValue",E[E.SmallValue=2]="SmallValue",x.prototype.getDistance=function(t){for(var e=[],r=0;r<this.xNumSteps.length-1;r++){var n=this.xNumSteps[r];if(n&&t/n%1!=0)throw new Error("noUiSlider: 'limit', 'margin' and 'padding' of "+this.xPct[r]+"% range must be divisible by step.");e[r]=a(this.xVal,t,r)}return e},x.prototype.getAbsoluteDistance=function(t,e,r){var n=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||t!==this.xPct[n+1]||n++;for(var i,o=1,s=(e=null===e?[]:e)[n],a=0,l=0,u=0,c=r?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);0<s;)i=this.xPct[n+1+u]-this.xPct[n+u],100<e[n+u]*o+100-100*c?(a=i*c,o=(s-100*c)/e[n+u],c=1):(a=e[n+u]*i/100*o,o=0),r?(l-=a,1<=this.xPct.length+u&&u--):(l+=a,1<=this.xPct.length-u&&u++),s=e[n+u]*o;return t+l},x.prototype.toStepping=function(t){return t=r(this.xVal,this.xPct,t)},x.prototype.fromStepping=function(t){var e=this.xVal,r=this.xPct;if(100<=t)return e.slice(-1)[0];var n=l(t,r),i=e[n-1],e=e[n],o=r[n-1],r=r[n];return(t-o)*s(o,r)*((n=[i,e])[1]-n[0])/100+n[0]},x.prototype.getStep=function(t){return t=o(this.xPct,this.xSteps,this.snap,t)},x.prototype.getDefaultStep=function(t,e,r){var n=l(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},x.prototype.getNearbySteps=function(t){t=l(t,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},x.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(e);return Math.max.apply(null,t)},x.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},x.prototype.convert=function(t){return this.getStep(this.toStepping(t))},x.prototype.handleEntryPoint=function(t,e){t="min"===t?0:"max"===t?100:parseFloat(t);if(!i(t)||!i(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(t),this.xVal.push(e[0]);e=Number(e[1]);t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},x.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]===this.xVal[t+1]?this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]:(this.xSteps[t]=a([this.xVal[t],this.xVal[t+1]],e,0)/s(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e))};var S=x;function x(e,t,r){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var n,i=[];for(Object.keys(e).forEach(function(t){i.push([mt(e[t]),t])}),i.sort(function(t,e){return t[0][0]-e[0][0]}),n=0;n<i.length;n++)this.handleEntryPoint(i[n][1],i[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}var y={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},w={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},xt={tooltips:".__tooltips",aria:".__aria"},E={__spectrum:S,cssClasses:w,create:t};ut.create=t,ut.cssClasses=w,ut.default=E,Object.defineProperty(ut,"__esModule",{value:!0})});
©
2018.