/*!
 * Jump.js 1.1.2-alpha - A small, modern, dependency-free smooth scrolling library.
 * Copyright (c) 2016 Michael Cavalea - https://github.com/bretkikehara/jump.js
 * License: MIT
 */

!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):n.Jump=o()}(this,function(){"use strict";var n=function(n,o,e,t){return n/=t/2,n<1?e/2*n*n+o:(n--,-e/2*(n*(n-2)-1)+o)},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},e=function(){function e(){return window.scrollY||window.pageYOffset}function t(n){return n.getBoundingClientRect().top+a}function i(n){b||(b=n),w=n-b,g=m(w,a,y,p),window.scrollTo(0,g),w<p?h=requestAnimationFrame(i):u()}function u(){window.scrollTo(0,a+y),d&&v&&(d.setAttribute("tabindex","-1"),d.focus()),"function"==typeof S&&S(),b=!1}function r(){b=!1,cancelAnimationFrame(h)}function c(){return!!b}function f(u){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];switch(p=c.duration||1e3,l=c.offset||0,S=c.callback,m=c.easing||n,v=c.a11y||!1,a=e(),"undefined"==typeof u?"undefined":o(u)){case"number":d=void 0,v=!1,s=a+u;break;case"object":d=u,s=t(d);break;case"string":d=document.querySelector(u),s=t(d)}switch(y=s-a+l,o(c.duration)){case"number":p=c.duration;break;case"function":p=c.duration(y)}return h=requestAnimationFrame(i),r}var d=void 0,a=void 0,s=void 0,l=void 0,m=void 0,v=void 0,y=void 0,p=void 0,b=void 0,w=void 0,g=void 0,S=void 0,h=void 0;return{jump:f,cancel:r,isJumping:c}},t=e();return t});