"use strict";function clamp(r,b,e){return Math.max(b,Math.min(r,e))}function rubberband(r,b,e){return 0===b||Math.abs(b)===1/0?Math.pow(r,5*e):r*b*e/(b+e*r)}function rubberbandIfOutOfBounds(r,b,e){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.15;return 0===n?clamp(r,b,e):r<b?-rubberband(b-r,e-b,n)+b:e<r?+rubberband(r-e,e-b,n)+e:r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.clamp=clamp,exports.rubberband=rubberband,exports.rubberbandIfOutOfBounds=rubberbandIfOutOfBounds;