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