Files

1 line
29 KiB
JavaScript
Raw Permalink Normal View History

(function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.ProgressBar=a()}})(function(){var a;return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({1:[function(b,c,d){/*! Shifty 2.8.3 - https://github.com/jeremyckahn/shifty */!function(b,e){"object"==typeof d&&"object"==typeof c?c.exports=e():"function"==typeof a&&a.amd?a("shifty",[],e):"object"==typeof d?d.shifty=e():b.shifty=e()}(window,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},b.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.t=function(a,c){if(1&c&&(a=b(a)),8&c)return a;if(4&c&&"object"==typeof a&&a&&a.__esModule)return a;var d=Object.create(null);if(b.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&c&&"string"!=typeof a)for(var e in a)b.d(d,e,function(b){return a[b]}.bind(null,e));return d},b.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return b.d(c,"a",c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p="",b(b.s=3)}([function(a,j,k){"use strict";(function(e){function q(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function x(a){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function i(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function z(b){for(var c,d=1;d<arguments.length;d++)c=null==arguments[d]?{}:arguments[d],d%2?i(Object(c),!0).forEach(function(d){a(b,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(c)):i(Object(c)).forEach(function(a){Object.defineProperty(b,a,Object.getOwnPropertyDescriptor(c,a))});return b}function a(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function c(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=new g,c=b.tween(a);return c.tweenable=b,c}k.d(j,"e",function(){return d}),k.d(j,"c",function(){return w}),k.d(j,"b",function(){return B}),k.d(j,"a",function(){return g}),k.d(j,"d",function(){return c});var n=k(1),o="undefined"==typeof window?e:window,f=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||o.mozCancelRequestAnimationFrame&&o.mozRequestAnimationFrame||setTimeout,A=function(){},l=null,r=null,t=z({},n),d=function(b,d,g,e,h,i,j){var k=b<i?0:(b-i)/h;for(var a in d){var m=j[a],n=m.call?m:t[m],o=g[a];d[a]=o+(e[a]-o)*n(k)}return d},v=function(b,g){var j=b._attachment,e=b._currentState,k=b._delay,i=b._easing,m=b._originalState,n=b._duration,o=b._step,c=b._targetState,f=b._timestamp,q=f+k+n,l=g>q?q:g,r=n-(q-l);l>=q?(o(c,j,r),b.stop(!0)):(b._applyFilter("beforeTween"),l<f+k?(l=1,n=1,f=1):f+=k,d(l,e,m,c,n,f,i),b._applyFilter("afterTween"),o(e,j,r))},w=function(){for(var a,b=g.no