!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","./numberFormatter","./utils"],e)}(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var _=e("./numberFormatter"),n=e("./utils");o.DEFAULT_SLIDER_LOWER_BOUND=0,o.DEFAULT_SLIDER_UPPER_BOUND=100,o.DEFAULT_SLIDER_STEP=0,o.DEFAULT_SLIDER_DECIMALS=0,o.SLIDER_MIN_DECIMALS=0,o.SLIDER_MAX_DECIMALS=20,o.getProcessedNumberFormat=function(e){var r=e||{},t=r.precision,u=r.step,i=r.lowerBound,E=r.upperBound,i=n.isNumeric(i)?i:o.DEFAULT_SLIDER_LOWER_BOUND;(E=n.isNumeric(E)?E:o.DEFAULT_SLIDER_UPPER_BOUND)<=i&&(i=o.DEFAULT_SLIDER_LOWER_BOUND,E=o.DEFAULT_SLIDER_UPPER_BOUND),((t=n.isNumeric(t)?t:o.DEFAULT_SLIDER_DECIMALS)<o.SLIDER_MIN_DECIMALS||t>o.SLIDER_MAX_DECIMALS)&&(t=o.DEFAULT_SLIDER_DECIMALS);var u=n.isNumeric(u)&&u<=E-i&&0<u?u:o.DEFAULT_SLIDER_STEP,D=r.displayFormat,e=r.customDisplayFormat;return{currency:r.currency||_.DEFAULT_CURRENCY,customDisplayFormat:e,displayFormat:D,precision:t,step:u,lowerBound:i,upperBound:E}},o.getInitialNumberSliderValues=function(e,r){function t(e){return e=(e||"").trim(),e=n.isNumeric(e)?parseFloat(e):NaN,isNaN(e)?e:e<u?u:i<e?i:e}var u=n.isNumeric(r.lowerBound)?r.lowerBound:o.DEFAULT_SLIDER_LOWER_BOUND,i=n.isNumeric(r.upperBound)?r.upperBound:o.DEFAULT_SLIDER_UPPER_BOUND,E=[];return"string"==typeof e&&(e=t((r=e.split("\n").filter(function(e){return""!==e}))[0]),r=t(r[1]),isNaN(e)||isNaN(r)||E.push(e,r)),(E=E.sort(function(e,r){return e-r})).length?E:[u,i]}});