Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es6-tween

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-tween - npm Package Compare versions

Comparing version 3.8.23 to 3.8.24

2

full/Tween.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.TWEEN={})}(this,function(t){"use strict";var e,n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){!function(e,n){t.exports?t.exports=n():e.InterTween=n()}("undefined"!=typeof window?window:n,function(){function t(t){var e=parseFloat(t);return"number"!=typeof e||isNaN(e)?t:e}function e(t,e){var n,r,i;3===e.length&&(e=(n=e[0])+n+(r=e[1])+r+(i=e[2])+i);var o=parseInt(e,16);return n=o>>16&m,r=o>>8&m,i=o&m,"rgb("+n+","+r+","+i+")"}function n(t){return"string"==typeof t?t.replace(_,"").replace(v,","):t}function r(t,e){if("number"==typeof e)return e;var n=x[e.substr(0,2)],r=e.substr(2);if(1===n){var i=e[0]+r;return t+parseFloat(i)}return 2===n?t*+r:3===n?t/+r:4===n?t*(+r/100):e}function i(e){var n=P(e);return"string"==typeof n?n.match(d).map(t):e}function o(t,e,n,o){if(n=null!==n&&void 0!==n?n:1e4,!d.test(e))return e;var u=i(t),s=i(e),a=f(u,s,n,o);if(a)return a;a=null;for(var p=null,l=null,y=[],_=0,v=s.length;_<v;_++){var m=s[_],g=u[_];y[_]="string"==typeof m&&1===m.indexOf("=")?e:null,h.test(m)?(p=_+2,l=_+11):c.test(m)&&(p=_,l=_+9),s[_]=g===m?null:null!==y[_]?r(g,m):m}return function(t,e,i){i||(i=o),e=void 0!==e?e:t;var a="";for(_=0;_<v;_++){var f=u[_],c=s[_],h=y[_],d="function"==typeof i?i(t):t;a+="number"==typeof c?null!==p&&_>p&&_<l?f+(c-f)*d|0:((f+(c-f)*d)*n|0)/n:f,1===e&&null!==h&&(u[_]=c,s[_]=r(c,h))}return a}}function u(t,e,n,r){for(var i=[],u=0,s=t.length;u<s;u++){var f=t[u];i[u]=g(f)?a(f,e,n,r&&r[u]||r):"object"==typeof f?p(f,e,n,r&&r[u]||r):"string"==typeof f?o(f,e,n,r&&r[u]||r):f}return function(n,o,u){o=void 0!==o?o:n,u||(u=r);for(var s=0,a=i.length;s<a;s++){var f=f="function"==typeof u?u:u&&"function"==typeof u[s]?u[s]:null,p=f(n);t[s]="function"==typeof i[s]?i[s](f?n:p,o,u):"number"==typeof i[s]?i[s]+(e-i[s])*p:i[s]}return t}}function s(t,e,n,r){for(var i=[],o=0,u=e.length;o<u;o++){var s=e[o];i[o]=l(0===o?t:e[o-1],s,n,r&&r[o]||r)}var a=e[e.length-1];i.push(l(a,a,n,r&&r[e.length-1]||r));var f=i.length-1;return function(t){var e=t*f,n=Math.max(0,Math.floor(e)),r=e-n,o=i[n];return"function"==typeof o?o(r):o}}function a(t,e,n,i){n=null!==n&&void 0!==n?n:1e4,w(e),w(t);for(var f=t.slice(),l=[],c=Math.min(t.length,e.length),h=0;h<c;h++){var d=f[h],y=e[h];void 0!==d&&null!==d?(l[h]="string"==typeof y&&1===y.indexOf("=")?y:null,f[h]=y.nodeType||y.update?y.update:d===y?null:g(y)?g(d)&&y.length===d.length?a(d,y,n,i&&i[h]||i):s(d,y,n,i&&i[h]||i):g(d)?u(d,y,n,i&&i[h]||i):"object"==typeof d?p(d,y,n,i&&i[h]||i):"string"==typeof d?o(d,y,n,i&&i[h]||i):void 0!==d?d:y,e[h]=null!==l[h]?r(d,y):y):("function"==typeof y||y&&y.update)&&(f[h]=y)}return function(o,u,s){s||(s=i);for(var a=0;a<c;a++){var p=f[a],h=e[a],d=l[a];if(null!==p&&void 0!==p){var y=y="function"==typeof s?s:s&&"function"==typeof s[a]?s[a]:null,_=y?y(o):o;t[a]="number"==typeof p?((p+(h-p)*_)*n|0)/n:"function"==typeof p?p(y?o:_,u,y):p.update?p.update(_,u,y):h&&h.update?h.update(_,u,y):h,d&&1===u&&(f[a]=h,e[a]=r(f[a],d))}}return t}}function f(t,e,n,i){if(n=null!==n&&void 0!==n?n:1e4,2===e.length&&2===t.length&&-1!==I.indexOf(e[1])){var o=+t[0],u=+e[0],s=e[1],a="string"==typeof e[0]&&1===e[0].indexOf("=")?e[0]:null;return a&&(u=r(o,u)),o===u&&e[0]===s?e:function(t,e,f){f||(f=i);var p="function"==typeof f?f(t):t,l=((o+(u-o)*p)*n|0)/n+s;return a&&1===e&&(u=r(o=u,a)),l}}return!1}function p(t,e,n,i){n=null!==n&&void 0!==n?n:1e4;var f,l={},c={};w(e),w(t),w(i);for(var h in e){c[h]=t&&t[h];var d=c[h],y=e[h];if(void 0!==d&&null!==d){var _=M(t,h);l[h]="string"==typeof y&&1===y.indexOf("=")?y:null,_&&!1===_.writable&&!_.set&&(f||(f={}),f[h]=!0),c[h]=y.nodeType?y:y.update?y:d===y?null:g(y)?g(d)&&y.length===d.length?a(d,y,n,i&&i[h]||i):s(d,y,n,i&&i[h]||i):g(d)?u(d,y,n,i&&i[h]||i):"object"==typeof d?p(d,y,n,i&&i[h]||i):"string"==typeof d?o(d,y,n,i&&i[h]||i):void 0!==d?d:y,e[h]=null!==l[h]?r(d,y):y}else("function"==typeof y||y&&y.update)&&(c[h]=y)}return function(o,u,s){s||(s=i),u=void 0!==u?u:o;for(var a in c){var p=c[a],h=e[a],d=l[a],y="function"==typeof s?s:s&&"function"==typeof s[a]?s[a]:null,_=y?y(o):o,v="number"==typeof p?((p+(h-p)*_)*n|0)/n:"function"==typeof p?p(y?o:_,u,y):p&&p.update?p.update(_,u,y):h&&h.update?h.update(_,u,y):h;f&&f[a]||(t[a]=v),d&&1===u&&(c[a]=h,e[a]=r(c[a],d))}return t}}function l(t,e,n,i){w(i),n=null!==n&&void 0!==n?n:1e4;var f="string"==typeof e&&"number"==typeof t&&1===e.indexOf("=")?e:null;return f&&(e=r(t,f)),e.nodeType?e:t.nodeType?t:g(e)?g(t)&&t.length===e.length?a(t,e,n,i):s(t,e,n,i):g(t)?u(t,e,n,i):"object"==typeof e?p(t,e,n,i):"string"==typeof e?o(t,e,n,i):"function"==typeof e?e:function(o,u,s){u=void 0!==u?u:o,s||(s=i);var a="function"==typeof s?s(o):o,p="number"==typeof e?((t+(e-t)*a)*n|0)/n:t;return f&&1===u&&(e=r(t+=e,f)),p}}var c=/rgb/g,h=/argb/g,d=/\s+|([A-Za-z?().,{}:""[\]#\%]+)|([-+/*%]+=)?([-+*/%]+)?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i,_=/\n|\r|\t/g,v=/, | ,| , /g,m=255,g=Array.isArray||function(t){return t instanceof Array},b=/([.\[])/g,T=/\]/g,O=function(t,e){var n=t[e],r=e.replace(T,"").split(b),i=r.length-1,o=Array.isArray(t),u="object"==typeof t&&!o;return u?(t[e]=null,delete t[e]):o&&t.splice(e,1),r.reduce(function(t,e,s){o&&"."!==e&&"["!==e&&(e*=1);var a="["===r[s+1];if("."===e||"["===e)return"."===e?(u=!0,o=!1):"["===e&&(u=!1,o=!0),t;if(void 0===t[e]){if(o||u)return t[e]=s===i?n:o||a?[]:u?{}:null,u=o=!1,t[e]}else if(void 0!==t[e])return s===i&&(t[e]=n),t[e];return t},t)},w=function(t){if("object"==typeof t&&t)for(var e in t)if(-1!==e.indexOf(".")||-1!==e.indexOf("["))O(t,e);else if("object"==typeof t[e]&&t[e]){var n=t[e];for(var r in n)if(-1!==r.indexOf(".")||-1!==r.indexOf("["))O(n,r);else if("object"==typeof n[r]&&n[r]){var i=n[r];for(var o in i)-1===o.indexOf(".")&&-1===o.indexOf("[")||O(i,o)}}return t},x={"+=":1,"-=":1,"*=":2,"/=":3,"%=":4},P=function(t){return"string"!=typeof t?t:n(t).replace(y,e)},I=["px","pt","pc","deg","rad","turn","em","ex","cm","mm","dm","inch","in","rem","vw","vh","vmin","vmax","%"],j=Object.getOwnPropertyDescriptor,M=j||function(){};return l})}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o=Object.create||function(t){return void 0===t&&(t={}),i({},t)},u="undefined"!=typeof window?window:"undefined"!=typeof global?global:this,s=u.requestAnimationFrame||function(t){return u.setTimeout(t,16)},a=u.cancelAnimationFrame||function(t){return u.clearTimeout(t)},f=function(){if("undefined"!=typeof process&&void 0!==process.hrtime)return function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6};if(void 0!==u.performance&&void 0!==u.performance.now)return u.performance.now.bind(u.performance);var t=u.performance&&u.performance.timing&&u.performance.timing.navigationStart?u.performance.timing.navigationStart:Date.now();return function(){return Date.now()-t}}(),p=[],l=!1,c=!1,h=s,d=a,y=f(),_=0,v=0,m=function(t){var n=p.indexOf(t);n>-1&&p.splice(n,1),p.push(t),c&&!l&&(y=f(),e=h(T),l=!0)},g=function(t){for(var e=0;e<p.length;e++)if(t===p[e])return p[e];return null},b=function(t){var e=p.indexOf(t);-1!==e&&p.splice(e,1)},T=function(t,n){if(t=void 0!==t?t:f(),(_=t-y)>150&&(v=_-50/3),y=t,c&&l&&(e=h(T)),0===p.length)return d(e),l=!1,!1;for(var r,i=0;i<p.length;)r=p[i],v&&(r._startTime+=v),r.update(t,n),i++;return v&&(v=0),!0},O={},w={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-w.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*w.Bounce.In(2*t):.5*w.Bounce.Out(2*t-1)+.5}},Stepped:{steps:function(t){return function(e){return(e*t|0)/t}}}},x=function(){function t(){this.totalTime=0,this.labels=[],this.offsets=[]}return t.prototype.parseLabel=function(t,e){var n=this,r=n.offsets,i=n.labels,o=i.indexOf(t);if("string"==typeof t&&-1!==t.indexOf("=")&&!e&&-1===o){var u=t.substr(t.indexOf("=")-1,2),s=t.split(u);e=2===s.length?u+s[1]:null,t=s[0],o=i.indexOf(t)}if(-1!==o&&t){var a=r[o]||0;if("number"==typeof e)a=e;else if("string"==typeof e&&-1!==e.indexOf("=")){var f=e.charAt(0);e=Number(e.substr(2)),"+"===f||"-"===f?a+=parseFloat(f+e):"*"===f?a*=e:"/"===f?a/=e:"%"===f&&(a*=e/100)}return a}return"number"==typeof e?e:0},t.prototype.addLabel=function(t,e){return this.labels.push(t),this.offsets.push(this.parseLabel(t,e)),this},t.prototype.setLabel=function(t,e){var n=this.labels.indexOf(t);return-1!==n&&this.offsets.splice(n,1,this.parseLabel(t,e)),this},t.prototype.eraseLabel=function(t){var e=this.labels.indexOf(t);return-1!==e&&(this.labels.splice(e,1),this.offsets.splice(e,1)),this},t}(),P=function(){function t(){this._events={}}return t.prototype.on=function(t,e){return this._events[t]||(this._events[t]=[]),this._events[t].push(e),this},t.prototype.once=function(t,e){var n=this;this._events[t]||(this._events[t]=[]);var r=this._events,i=r[t].length;return this._events[t].push(function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];e.apply(n,o),r[t].splice(i,1)}),this},t.prototype.off=function(t,e){var n=this._events;return void 0!==t&&n[t]?(e?this._events[t]=this._events[t].filter(function(t){return t!==e}):this._events[t].length=0,this):this},t.prototype.emit=function(t,e,n,r,i){var o=this._events[t];if(!o||!o.length)return this;for(var u=0,s=o.length;u<s;u++)o[u](e,n,r,i);return this},t}(),I={},j=function(t,e){if(!t||!t.nodeType)return e;var n=t.queueID||"q_"+Date.now();return t.queueID||(t.queueID=n),I[n]?(e&&(I[n]=e),I[n]):(I[n]=e,I[n])},M=function(t,e){return e?t?t===window||t===document?[t]:"string"==typeof t?!!document.querySelectorAll&&document.querySelectorAll(t):Array.isArray(t)?t:t.nodeType?[t]:[]:null:t?t===window||t===document?t:"string"==typeof t?!!document.querySelector&&document.querySelector(t):Array.isArray(t)?t[0]:t.nodeType?t:null:null},F=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.create=o;var A=0,L=w.Linear.None,q=function(t){function e(e,n){var r=t.call(this)||this;return r.id=A++,!e||"object"!=typeof e||n||e.nodeType?e&&(e.nodeType||e.length||"string"==typeof e)&&(e=r.node=M(e),n=r.object=j(e,n)):(n=r.object=e,e=null),r._valuesEnd=null,r._valuesFunc=null,r._duration=1e3,r._easingFunction=L,r._easingReverse=L,r._startTime=0,r._initTime=0,r._delayTime=0,r._repeat=0,r._r=0,r._isPlaying=!1,r._yoyo=!1,r._reversed=!1,r._onStartCallbackFired=!1,r._pausedTime=null,r._isFinite=!0,r}return F(e,t),e.fromTo=function(t,n,r,i){void 0===i&&(i={}),i.quickRender=i.quickRender?i.quickRender:!r;var o=new e(t,n).to(r,i);return i.quickRender&&(o.render().update(o._startTime),o._rendered=!1,o._onStartCallbackFired=!1),o},e.to=function(t,n,r){return e.fromTo(t,null,n,r)},e.from=function(t,n,r){return e.fromTo(t,n,null,r)},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isStarted=function(){return this._onStartCallbackFired},e.prototype.reverse=function(t){var e=this._reversed;return this._reversed=void 0!==t?t:!e,this},e.prototype.reversed=function(){return this._reversed},e.prototype.pause=function(){return this._isPlaying?(this._isPlaying=!1,b(this),this._pausedTime=f(),this.emit("pause",this.object)):this},e.prototype.play=function(){return this._isPlaying?this:(this._isPlaying=!0,this._startTime+=f()-this._pausedTime,this._initTime=this._startTime,m(this),this._pausedTime=f(),this.emit("play",this.object))},e.prototype.restart=function(t){return this._repeat=this._r,this.reassignValues(),m(this),this.emit("restart",this.object)},e.prototype.seek=function(t,e){return this._isPlaying=!0,this.update(t,!1),this.emit("seek",t,this.object),e?this:this.pause()},e.prototype.duration=function(t){return this._duration="function"==typeof t?t(this._duration):t,this},e.prototype.to=function(t,e,n){if(void 0===e&&(e=1e3),this._valuesEnd=t,"number"==typeof e||"function"==typeof e)this._duration="function"==typeof e?e(this._duration):e;else if("object"==typeof e)for(var r in e)if("function"==typeof this[r]){var i=Array.isArray(e[r])?e[r]:[e[r]],o=i[0],u=void 0===o?null:o,s=i[1],a=void 0===s?null:s,f=i[2],p=void 0===f?null:f,l=i[3],c=void 0===l?null:l;this[r](u,a,p,c)}return this},e.prototype.render=function(){if(this._rendered)return this;var t=this,e=t._valuesEnd,n=t.object,i=t.Renderer,o=t.node,u=t.InitialValues,s=t._easingFunction;o&&u&&(n?e||(e=this._valuesEnd=u(o,n)):n=this.object=j(o,u(o,e)));for(var a in e){var f=n&&n[a],p=e[a];if(O[a]){var l=O[a].prototype.update?new O[a](this,f,p,a,n):O[a](this,f,p,a,n);l&&(e[a]=l)}else;}return this._valuesFunc=r(n,e,null,s),i&&this.node&&(this.__render=new i(this,n,e)),this},e.prototype.start=function(t){return this._startTime=void 0!==t?"string"==typeof t?f()+parseFloat(t):t:f(),this._startTime+=this._delayTime,this._initTime=this._startTime,this._onStartCallbackFired=!1,this._rendered=!1,this._isPlaying=!0,m(this),this},e.prototype.stop=function(){var t=this,e=t._isPlaying,n=t._isFinite,r=t.object,i=t._startTime,o=(t._delayTime,t._duration),u=t._r;return e&&n?((u+1)%2==1?this.update(i+o):this.update(i),b(this),this.emit("stop",r)):this},e.prototype.delay=function(t){return this._delayTime="function"==typeof t?t(this._delayTime):t,this},e.prototype.repeat=function(t){return this._repeat="function"==typeof t?t(this._repeat):t,this._r=this._repeat,this._isFinite=isFinite(t),this},e.prototype.reverseDelay=function(t){return this._reverseDelayTime="function"==typeof t?t(this._reverseDelayTime):t,this},e.prototype.yoyo=function(t,e){return this._yoyo="function"==typeof t?t(this._yoyo):null===t?this._yoyo:t,t||(this._reversed=!1),this._easingReverse=e||null,this},e.prototype.easing=function(t){return this._easingFunction=t,this},e.prototype.reassignValues=function(t){var e=this,n=e._valuesFunc,r=e.object,i=e._delayTime;this._isPlaying=!0,this._startTime=void 0!==t?t:f(),this._startTime+=i,this._reversed=!1,m(this);var o=n(0);for(var u in o){var s=o[u];r[u]=s}return this},e.prototype.update=function(t,e,n){var r,i,o=this,u=o._onStartCallbackFired,s=o._easingFunction,a=o._easingReverse,p=o._repeat,l=o._delayTime,c=o._reverseDelayTime,h=o._yoyo,d=o._reversed,y=o._startTime,_=o._duration,v=o._valuesFunc,m=o.object,g=o._isFinite,T=o._isPlaying,O=o.__render;return t=void 0!==t?t:f(),!T||t<y&&!n||(u||(this._rendered||(this.render(),this._rendered=!0,v=this._valuesFunc),this.emit("start",m),this._onStartCallbackFired=!0),r=(t-y)/_,r=r>1?1:r,r=d?1-r:r,i=d?a||s:s,!m||(v(r,r,i),O&&O.update(m,r),this.emit("update",m,r),!(1===r||d&&0===r)||(p?(g&&this._repeat--,h&&(this._reversed=!d),this.emit(h&&!d?"reverse":"repeat",m),this._startTime=d&&c?t-c:t+l,!0):(e||(this._isPlaying=!1,b(this),A--),this.emit("complete",m),this._repeat=this._r,!1))))},e}(P),S=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},D=function(t){var e,n,r;for(r=t.length;r;r-=1)e=Math.floor(Math.random()*r),n=t[r-1],t[r-1]=t[e],t[e]=n;return t},E=0,R=function(t){function e(e){var n=t.call(this)||this;return n._duration=0,n._startTime=f(),n._tweens=[],n.elapsed=0,n._id=E++,n._defaultParams=e,n.position=new x,n.position.addLabel("afterLast",n._duration),n.position.addLabel("afterInit",n._startTime),n}return S(e,t),e.prototype.mapTotal=function(t){return t.call(this,this._tweens),this},e.prototype.timingOrder=function(t){var e=t(this._tweens.map(function(t){return t._startTime}));return this._tweens.map(function(t,n){t._startTime=e[n]}),this},e.prototype.getTiming=function(t,e,n,r){if(void 0===r&&(r=0),"reverse"===t){var i=n.stagger,o=(i||0)*(e.length-1);return e.map(function(t,e){return o-(i||0)*e+r})}if("async"===t)return e.map(function(t){return r});if("sequence"===t||"delayed"===t){var u=n.stagger;return u||(u=(n.duration||1e3)/(e.length-1)),e.map(function(t,e){return u*e+r})}if("oneByOne"===t)return e.map(function(t){return n.duration});if("shuffle"===t){var s=n.stagger;return D(e.map(function(t,e){return(s||0)*e+r}))}var a=n.stagger;return e.map(function(t,e){return(a||0)*e+r})},e.prototype.fromTo=function(t,e,n,r){if((t=M(t,!0))&&t.length){this._defaultParams&&(r=k({},this._defaultParams,r));for(var i=r.label,o="number"==typeof i?i:this.position.parseLabel(void 0!==i?i:"afterLast",null),u=this.getTiming(r.mode,t,r,o),s=0,a=void 0,f=t.length;s<f;s++)a=t[s],this.add(q.fromTo(a,"function"==typeof e?e(s,t.length):k({},e),"function"==typeof n?n(s,t.length):n,"function"==typeof r?r(s,t.length):r),u[s])}return this.start()},e.prototype.from=function(t,e,n){return this.fromTo(t,e,null,n)},e.prototype.to=function(t,e,n){return this.fromTo(t,null,e,n)},e.prototype.addLabel=function(t,e){return this.position.addLabel(t,e),this},e.prototype.map=function(t){for(var e=0,n=this._tweens.length;e<n;e++){var r=this._tweens[e];t(r,e),this._duration=Math.max(this._duration,r._duration+r._startTime)}return this},e.prototype.add=function(t,e){var n=this;if(Array.isArray(t))return t.map(function(t){n.add(t,e)}),this;"object"!=typeof t||t instanceof q||(t=new q(t.from).to(t.to,t));var r=this,i=r._defaultParams,o=r._duration;if(i)for(var u in i)"function"==typeof t[u]&&t[u](i[u]);var s="number"==typeof e?e:this.position.parseLabel(void 0!==e?e:"afterLast",null);return t._startTime=Math.max(this._startTime,t._delayTime,s),t._delayTime=s,t._isPlaying=!0,this._duration=Math.max(o,t._startTime+t._delayTime+t._duration),this._tweens.push(t),this.position.setLabel("afterLast",this._duration),this},e.prototype.restart=function(){return this._startTime+=f(),m(this),this.emit("restart")},e.prototype.easing=function(t){return this.map(function(e){return e.easing(t)})},e.prototype.interpolation=function(t){return this.map(function(e){return e.interpolation(t)})},e.prototype.update=function(t){var e=this,n=e._tweens,r=e._duration,i=e._reverseDelayTime,o=e._startTime,u=e._reversed,s=e._yoyo,a=e._repeat,f=e._isFinite;if(!e._isPlaying||t<o)return!0;var p=(t-o)/r;p=p>1?1:p,p=u?1-p:p,this.elapsed=p;for(var l=t-o,c=u?r-l:l,h=0;h<n.length;)n[h].update(c),h++;if(this.emit("update",p,l),1===p||u&&0===p){if(a){for(f&&this._repeat--,this.emit(u?"reverse":"repeat"),s&&(this._reversed=!u,this.timingOrder(function(t){return t.reverse()})),this._startTime=u&&i?t+i:t,h=0;h<n.length;)n[h].reassignValues(t),h++;return!0}return this.emit("complete"),this._repeat=this._r,b(this),this._isPlaying=!1,!1}return!0},e.prototype.progress=function(t){return void 0!==t?this.update(t*this._duration):this.elapsed},e}(q);t.Plugins=O,t.Selector=M,t.Interpolator=r,t.onTick=function(t){return p.push({update:t})},t.has=function(t){return null!==g(t)},t.get=g,t.getAll=function(){return p},t.removeAll=function(){p.length=0},t.remove=b,t.add=m,t.now=f,t.update=T,t.autoPlay=function(t){c=t},t.isRunning=function(){return l},t.Tween=q,t.Easing=w,t.Timeline=R,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.TWEEN={})}(this,function(t){"use strict";var e,n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){!function(e,n){t.exports?t.exports=n():e.InterTween=n()}("undefined"!=typeof window?window:n,function(){function t(t){var e=parseFloat(t);return"number"!=typeof e||isNaN(e)?t:e}function e(t,e){var n,r,i;3===e.length&&(e=(n=e[0])+n+(r=e[1])+r+(i=e[2])+i);var o=parseInt(e,16);return n=o>>16&m,r=o>>8&m,i=o&m,"rgb("+n+","+r+","+i+")"}function n(t){return"string"==typeof t?t.replace(_,"").replace(v,","):t}function r(t,e){if("number"==typeof e)return e;var n=x[e.substr(0,2)],r=e.substr(2);if(1===n){var i=e[0]+r;return t+parseFloat(i)}return 2===n?t*+r:3===n?t/+r:4===n?t*(+r/100):e}function i(e){var n=P(e);return"string"==typeof n?n.match(d).map(t):e}function o(t,e,n,o){if(n=null!==n&&void 0!==n?n:1e4,!d.test(e))return e;var u=i(t),s=i(e),a=f(u,s,n,o);if(a)return a;a=null;for(var p=null,l=null,y=[],_=0,v=s.length;_<v;_++){var m=s[_],g=u[_];y[_]="string"==typeof m&&1===m.indexOf("=")?e:null,h.test(m)?(p=_+2,l=_+11):c.test(m)&&(p=_,l=_+9),s[_]=g===m?null:null!==y[_]?r(g,m):m}return function(t,e,i){i||(i=o),e=void 0!==e?e:t;var a="";for(_=0;_<v;_++){var f=u[_],c=s[_],h=y[_],d="function"==typeof i?i(t):t;a+="number"==typeof c?null!==p&&_>p&&_<l?f+(c-f)*d|0:((f+(c-f)*d)*n|0)/n:f,1===e&&null!==h&&(u[_]=c,s[_]=r(c,h))}return a}}function u(t,e,n,r){for(var i=[],u=0,s=t.length;u<s;u++){var f=t[u];i[u]=g(f)?a(f,e,n,r&&r[u]||r):"object"==typeof f?p(f,e,n,r&&r[u]||r):"string"==typeof f?o(f,e,n,r&&r[u]||r):f}return function(n,o,u){o=void 0!==o?o:n,u||(u=r);for(var s=0,a=i.length;s<a;s++){var f=f="function"==typeof u?u:u&&"function"==typeof u[s]?u[s]:null,p=f(n);t[s]="function"==typeof i[s]?i[s](f?n:p,o,u):"number"==typeof i[s]?i[s]+(e-i[s])*p:i[s]}return t}}function s(t,e,n,r){for(var i=[],o=0,u=e.length;o<u;o++){var s=e[o];i[o]=l(0===o?t:e[o-1],s,n,r&&r[o]||r)}var a=e[e.length-1];i.push(l(a,a,n,r&&r[e.length-1]||r));var f=i.length-1;return function(t){var e=t*f,n=Math.max(0,Math.floor(e)),r=e-n,o=i[n];return"function"==typeof o?o(r):o}}function a(t,e,n,i){n=null!==n&&void 0!==n?n:1e4,w(e),w(t);for(var f=t.slice(),l=[],c=Math.min(t.length,e.length),h=0;h<c;h++){var d=f[h],y=e[h];void 0!==d&&null!==d?(l[h]="string"==typeof y&&1===y.indexOf("=")?y:null,f[h]=y.nodeType||y.update?y.update:d===y?null:g(y)?g(d)&&y.length===d.length?a(d,y,n,i&&i[h]||i):s(d,y,n,i&&i[h]||i):g(d)?u(d,y,n,i&&i[h]||i):"object"==typeof d?p(d,y,n,i&&i[h]||i):"string"==typeof d?o(d,y,n,i&&i[h]||i):void 0!==d?d:y,e[h]=null!==l[h]?r(d,y):y):("function"==typeof y||y&&y.update)&&(f[h]=y)}return function(o,u,s){s||(s=i);for(var a=0;a<c;a++){var p=f[a],h=e[a],d=l[a];if(null!==p&&void 0!==p){var y=y="function"==typeof s?s:s&&"function"==typeof s[a]?s[a]:null,_=y?y(o):o;t[a]="number"==typeof p?((p+(h-p)*_)*n|0)/n:"function"==typeof p?p(y?o:_,u,y):p.update?p.update(_,u,y):h&&h.update?h.update(_,u,y):h,d&&1===u&&(f[a]=h,e[a]=r(f[a],d))}}return t}}function f(t,e,n,i){if(n=null!==n&&void 0!==n?n:1e4,2===e.length&&2===t.length&&-1!==I.indexOf(e[1])){var o=+t[0],u=+e[0],s=e[1],a="string"==typeof e[0]&&1===e[0].indexOf("=")?e[0]:null;return a&&(u=r(o,u)),o===u&&e[0]===s?e:function(t,e,f){f||(f=i);var p="function"==typeof f?f(t):t,l=((o+(u-o)*p)*n|0)/n+s;return a&&1===e&&(u=r(o=u,a)),l}}return!1}function p(t,e,n,i){n=null!==n&&void 0!==n?n:1e4;var f,l={},c={};w(e),w(t),w(i);for(var h in e){c[h]=t&&t[h];var d=c[h],y=e[h];if(void 0!==d&&null!==d){var _=M(t,h);l[h]="string"==typeof y&&1===y.indexOf("=")?y:null,_&&!1===_.writable&&!_.set&&(f||(f={}),f[h]=!0),c[h]=y.nodeType?y:y.update?y:d===y?null:g(y)?g(d)&&y.length===d.length?a(d,y,n,i&&i[h]||i):s(d,y,n,i&&i[h]||i):g(d)?u(d,y,n,i&&i[h]||i):"object"==typeof d?p(d,y,n,i&&i[h]||i):"string"==typeof d?o(d,y,n,i&&i[h]||i):void 0!==d?d:y,e[h]=null!==l[h]?r(d,y):y}else("function"==typeof y||y&&y.update)&&(c[h]=y)}return function(o,u,s){s||(s=i),u=void 0!==u?u:o;for(var a in c){var p=c[a],h=e[a],d=l[a],y="function"==typeof s?s:s&&"function"==typeof s[a]?s[a]:null,_=y?y(o):o,v="number"==typeof p?((p+(h-p)*_)*n|0)/n:"function"==typeof p?p(y?o:_,u,y):p&&p.update?p.update(_,u,y):h&&h.update?h.update(_,u,y):h;f&&f[a]||(t[a]=v),d&&1===u&&(c[a]=h,e[a]=r(c[a],d))}return t}}function l(t,e,n,i){w(i),n=null!==n&&void 0!==n?n:1e4;var f="string"==typeof e&&"number"==typeof t&&1===e.indexOf("=")?e:null;return f&&(e=r(t,f)),e.nodeType?e:t.nodeType?t:g(e)?g(t)&&t.length===e.length?a(t,e,n,i):s(t,e,n,i):g(t)?u(t,e,n,i):"object"==typeof e?p(t,e,n,i):"string"==typeof e?o(t,e,n,i):"function"==typeof e?e:function(o,u,s){u=void 0!==u?u:o,s||(s=i);var a="function"==typeof s?s(o):o,p="number"==typeof e?((t+(e-t)*a)*n|0)/n:t;return f&&1===u&&(e=r(t+=e,f)),p}}var c=/rgb/g,h=/argb/g,d=/\s+|([A-Za-z?().,{}:""[\]#\%]+)|([-+/*%]+=)?([-+*/%]+)?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i,_=/\n|\r|\t/g,v=/, | ,| , /g,m=255,g=Array.isArray||function(t){return t instanceof Array},b=/([.\[])/g,T=/\]/g,O=function(t,e){var n=t[e],r=e.replace(T,"").split(b),i=r.length-1,o=Array.isArray(t),u="object"==typeof t&&!o;return u?(t[e]=null,delete t[e]):o&&t.splice(e,1),r.reduce(function(t,e,s){o&&"."!==e&&"["!==e&&(e*=1);var a="["===r[s+1];if("."===e||"["===e)return"."===e?(u=!0,o=!1):"["===e&&(u=!1,o=!0),t;if(void 0===t[e]){if(o||u)return t[e]=s===i?n:o||a?[]:u?{}:null,u=o=!1,t[e]}else if(void 0!==t[e])return s===i&&(t[e]=n),t[e];return t},t)},w=function(t){if("object"==typeof t&&t)for(var e in t)if(-1!==e.indexOf(".")||-1!==e.indexOf("["))O(t,e);else if("object"==typeof t[e]&&t[e]){var n=t[e];for(var r in n)if(-1!==r.indexOf(".")||-1!==r.indexOf("["))O(n,r);else if("object"==typeof n[r]&&n[r]){var i=n[r];for(var o in i)-1===o.indexOf(".")&&-1===o.indexOf("[")||O(i,o)}}return t},x={"+=":1,"-=":1,"*=":2,"/=":3,"%=":4},P=function(t){return"string"!=typeof t?t:n(t).replace(y,e)},I=["px","pt","pc","deg","rad","turn","em","ex","cm","mm","dm","inch","in","rem","vw","vh","vmin","vmax","%"],j=Object.getOwnPropertyDescriptor,M=j||function(){};return l})}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o=Object.create||function(t){return void 0===t&&(t={}),i({},t)},u="undefined"!=typeof window?window:"undefined"!=typeof global?global:this,s=u.requestAnimationFrame||function(t){return u.setTimeout(t,16)},a=u.cancelAnimationFrame||function(t){return u.clearTimeout(t)},f=function(){if("undefined"!=typeof process&&void 0!==process.hrtime)return function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6};if(void 0!==u.performance&&void 0!==u.performance.now)return u.performance.now.bind(u.performance);var t=u.performance&&u.performance.timing&&u.performance.timing.navigationStart?u.performance.timing.navigationStart:Date.now();return function(){return Date.now()-t}}(),p=[],l=!1,c=!1,h=s,d=a,y=f(),_=0,v=0,m=function(t){var n=p.indexOf(t);n>-1&&p.splice(n,1),p.push(t),c&&!l&&(y=f(),e=h(T),l=!0)},g=function(t){for(var e=0;e<p.length;e++)if(t===p[e])return p[e];return null},b=function(t){var e=p.indexOf(t);-1!==e&&p.splice(e,1)},T=function(t,n){if(t=void 0!==t?t:f(),(_=t-y)>150&&(v=_-50/3),y=t,c&&l&&(e=h(T)),0===p.length)return d(e),l=!1,!1;for(var r,i=0;i<p.length;)r=p[i],v&&(r._startTime+=v),r.update(t,n),i++;return v&&(v=0),!0},O={},w={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-w.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*w.Bounce.In(2*t):.5*w.Bounce.Out(2*t-1)+.5}},Stepped:{steps:function(t){return function(e){return(e*t|0)/t}}}},x=function(){function t(){this.totalTime=0,this.labels=[],this.offsets=[]}return t.prototype.parseLabel=function(t,e){var n=this,r=n.offsets,i=n.labels,o=i.indexOf(t);if("string"==typeof t&&-1!==t.indexOf("=")&&!e&&-1===o){var u=t.substr(t.indexOf("=")-1,2),s=t.split(u);e=2===s.length?u+s[1]:null,t=s[0],o=i.indexOf(t)}if(-1!==o&&t){var a=r[o]||0;if("number"==typeof e)a=e;else if("string"==typeof e&&-1!==e.indexOf("=")){var f=e.charAt(0);e=Number(e.substr(2)),"+"===f||"-"===f?a+=parseFloat(f+e):"*"===f?a*=e:"/"===f?a/=e:"%"===f&&(a*=e/100)}return a}return"number"==typeof e?e:0},t.prototype.addLabel=function(t,e){return this.labels.push(t),this.offsets.push(this.parseLabel(t,e)),this},t.prototype.setLabel=function(t,e){var n=this.labels.indexOf(t);return-1!==n&&this.offsets.splice(n,1,this.parseLabel(t,e)),this},t.prototype.eraseLabel=function(t){var e=this.labels.indexOf(t);return-1!==e&&(this.labels.splice(e,1),this.offsets.splice(e,1)),this},t}(),P=function(){function t(){this._events={}}return t.prototype.on=function(t,e){return this._events[t]||(this._events[t]=[]),this._events[t].push(e),this},t.prototype.once=function(t,e){var n=this;this._events[t]||(this._events[t]=[]);var r=this._events,i=r[t].length;return this._events[t].push(function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];e.apply(n,o),r[t].splice(i,1)}),this},t.prototype.off=function(t,e){var n=this._events;return void 0!==t&&n[t]?(e?this._events[t]=this._events[t].filter(function(t){return t!==e}):this._events[t].length=0,this):this},t.prototype.emit=function(t,e,n,r,i){var o=this._events[t];if(!o||!o.length)return this;for(var u=0,s=o.length;u<s;u++)o[u](e,n,r,i);return this},t}(),I={},j=function(t,e){if(!t||!t.nodeType)return e;var n=t.queueID||"q_"+Date.now();return t.queueID||(t.queueID=n),I[n]?(e&&(I[n]=e),I[n]):(I[n]=e,I[n])},M=function(t,e){return e?t?t===window||t===document?[t]:"string"==typeof t?!!document.querySelectorAll&&document.querySelectorAll(t):Array.isArray(t)?t:t.nodeType?[t]:[]:null:t?t===window||t===document?t:"string"==typeof t?!!document.querySelector&&document.querySelector(t):Array.isArray(t)?t[0]:t.nodeType?t:null:null},F=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.create=o;var A=0,L=w.Linear.None,q=function(t){function e(e,n){var r=t.call(this)||this;return r.id=A++,!e||"object"!=typeof e||n||e.nodeType?e&&(e.nodeType||e.length||"string"==typeof e)&&(e=r.node=M(e),n=r.object=j(e,n)):(n=r.object=e,e=null),r._valuesEnd=null,r._valuesFunc=null,r._duration=1e3,r._easingFunction=L,r._easingReverse=L,r._startTime=0,r._initTime=0,r._delayTime=0,r._repeat=0,r._r=0,r._isPlaying=!1,r._yoyo=!1,r._reversed=!1,r._onStartCallbackFired=!1,r._pausedTime=null,r._isFinite=!0,r}return F(e,t),e.fromTo=function(t,n,r,i){void 0===i&&(i={}),i.quickRender=i.quickRender?i.quickRender:!r;var o=new e(t,n).to(r,i);return i.quickRender&&(o.render().update(o._startTime),o._rendered=!1,o._onStartCallbackFired=!1),o},e.to=function(t,n,r){return e.fromTo(t,null,n,r)},e.from=function(t,n,r){return e.fromTo(t,n,null,r)},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isStarted=function(){return this._onStartCallbackFired},e.prototype.reverse=function(t){var e=this._reversed;return this._reversed=void 0!==t?t:!e,this},e.prototype.reversed=function(){return this._reversed},e.prototype.pause=function(){return this._isPlaying?(this._isPlaying=!1,b(this),this._pausedTime=f(),this.emit("pause",this.object)):this},e.prototype.play=function(){return this._isPlaying?this:(this._isPlaying=!0,this._startTime+=f()-this._pausedTime,this._initTime=this._startTime,m(this),this._pausedTime=f(),this.emit("play",this.object))},e.prototype.restart=function(t){return this._repeat=this._r,this.reassignValues(),m(this),this.emit("restart",this.object)},e.prototype.seek=function(t,e){var n=this,r=n._duration,i=(n._repeat,n._initTime),o=n._startTime,u=(n._delayTime,n._reversed),s=i+t;return this._isPlaying=!0,s<o&&o>=i&&(this._startTime-=r,this._reversed=!u),this.update(t,!1),this.emit("seek",t,this.object),e?this:this.pause()},e.prototype.duration=function(t){return this._duration="function"==typeof t?t(this._duration):t,this},e.prototype.to=function(t,e,n){if(void 0===e&&(e=1e3),this._valuesEnd=t,"number"==typeof e||"function"==typeof e)this._duration="function"==typeof e?e(this._duration):e;else if("object"==typeof e)for(var r in e)if("function"==typeof this[r]){var i=Array.isArray(e[r])?e[r]:[e[r]],o=i[0],u=void 0===o?null:o,s=i[1],a=void 0===s?null:s,f=i[2],p=void 0===f?null:f,l=i[3],c=void 0===l?null:l;this[r](u,a,p,c)}return this},e.prototype.render=function(){if(this._rendered)return this;var t=this,e=t._valuesEnd,n=t.object,i=t.Renderer,o=t.node,u=t.InitialValues,s=t._easingFunction;o&&u&&(n?e||(e=this._valuesEnd=u(o,n)):n=this.object=j(o,u(o,e)));for(var a in e){var f=n&&n[a],p=e[a];if(O[a]){var l=O[a].prototype.update?new O[a](this,f,p,a,n):O[a](this,f,p,a,n);l&&(e[a]=l)}else;}return this._valuesFunc=r(n,e,null,s),i&&this.node&&(this.__render=new i(this,n,e)),this},e.prototype.start=function(t){return this._startTime=void 0!==t?"string"==typeof t?f()+parseFloat(t):t:f(),this._startTime+=this._delayTime,this._initTime=this._startTime,this._onStartCallbackFired=!1,this._rendered=!1,this._isPlaying=!0,m(this),this},e.prototype.stop=function(){var t=this,e=t._isPlaying,n=t._isFinite,r=t.object,i=t._startTime,o=(t._delayTime,t._duration),u=t._r;if(!e||!n)return this;var s=(u+1)%2==1;return this._reversed=!1,s?this.update(i+o):this.update(i),b(this),this.emit("stop",r)},e.prototype.delay=function(t){return this._delayTime="function"==typeof t?t(this._delayTime):t,this},e.prototype.repeat=function(t){return this._repeat="function"==typeof t?t(this._repeat):t,this._r=this._repeat,this._isFinite=isFinite(t),this},e.prototype.reverseDelay=function(t){return this._reverseDelayTime="function"==typeof t?t(this._reverseDelayTime):t,this},e.prototype.yoyo=function(t,e){return this._yoyo="function"==typeof t?t(this._yoyo):null===t?this._yoyo:t,t||(this._reversed=!1),this._easingReverse=e||null,this},e.prototype.easing=function(t){return this._easingFunction=t,this},e.prototype.reassignValues=function(t){var e=this,n=e._valuesFunc,r=e.object,i=e._delayTime;this._isPlaying=!0,this._startTime=void 0!==t?t:f(),this._startTime+=i,this._reversed=!1,m(this);var o=n(0);for(var u in o){var s=o[u];r[u]=s}return this},e.prototype.update=function(t,e,n){var r,i,o=this,u=o._onStartCallbackFired,s=o._easingFunction,a=o._easingReverse,p=o._repeat,l=o._delayTime,c=o._reverseDelayTime,h=o._yoyo,d=o._reversed,y=o._startTime,_=o._duration,v=o._valuesFunc,m=o.object,g=o._isFinite,T=o._isPlaying,O=o.__render;return t=void 0!==t?t:f(),!T||t<y&&!n||(u||(this._rendered||(this.render(),this._rendered=!0,v=this._valuesFunc),this.emit("start",m),this._onStartCallbackFired=!0),r=(t-y)/_,r=r>1?1:r,r=d?1-r:r,i=d?a||s:s,!m||(v(r,r,i),O&&O.update(m,r),this.emit("update",m,r),!(1===r||d&&0===r)||(p?(g&&this._repeat--,h&&(this._reversed=!d),this.emit(h&&!d?"reverse":"repeat",m),this._startTime=d&&c?t-c:t+l,!0):(e||(this._isPlaying=!1,b(this),A--),this.emit("complete",m),this._repeat=this._r,!1))))},e}(P),S=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},D=function(t){var e,n,r;for(r=t.length;r;r-=1)e=Math.floor(Math.random()*r),n=t[r-1],t[r-1]=t[e],t[e]=n;return t},E=0,R=function(t){function e(e){var n=t.call(this)||this;return n._duration=0,n._startTime=f(),n._tweens=[],n.elapsed=0,n._id=E++,n._defaultParams=e,n.position=new x,n.position.addLabel("afterLast",n._duration),n.position.addLabel("afterInit",n._startTime),n}return S(e,t),e.prototype.mapTotal=function(t){return t.call(this,this._tweens),this},e.prototype.timingOrder=function(t){var e=t(this._tweens.map(function(t){return t._startTime}));return this._tweens.map(function(t,n){t._startTime=e[n]}),this},e.prototype.getTiming=function(t,e,n,r){if(void 0===r&&(r=0),"reverse"===t){var i=n.stagger,o=(i||0)*(e.length-1);return e.map(function(t,e){return o-(i||0)*e+r})}if("async"===t)return e.map(function(t){return r});if("sequence"===t||"delayed"===t){var u=n.stagger;return u||(u=(n.duration||1e3)/(e.length-1)),e.map(function(t,e){return u*e+r})}if("oneByOne"===t)return e.map(function(t){return n.duration});if("shuffle"===t){var s=n.stagger;return D(e.map(function(t,e){return(s||0)*e+r}))}var a=n.stagger;return e.map(function(t,e){return(a||0)*e+r})},e.prototype.fromTo=function(t,e,n,r){if((t=M(t,!0))&&t.length){this._defaultParams&&(r=k({},this._defaultParams,r));for(var i=r.label,o="number"==typeof i?i:this.position.parseLabel(void 0!==i?i:"afterLast",null),u=this.getTiming(r.mode,t,r,o),s=0,a=void 0,f=t.length;s<f;s++)a=t[s],this.add(q.fromTo(a,"function"==typeof e?e(s,t.length):k({},e),"function"==typeof n?n(s,t.length):n,"function"==typeof r?r(s,t.length):r),u[s])}return this.start()},e.prototype.from=function(t,e,n){return this.fromTo(t,e,null,n)},e.prototype.to=function(t,e,n){return this.fromTo(t,null,e,n)},e.prototype.addLabel=function(t,e){return this.position.addLabel(t,e),this},e.prototype.map=function(t){for(var e=0,n=this._tweens.length;e<n;e++){var r=this._tweens[e];t(r,e),this._duration=Math.max(this._duration,r._duration+r._startTime)}return this},e.prototype.add=function(t,e){var n=this;if(Array.isArray(t))return t.map(function(t){n.add(t,e)}),this;"object"!=typeof t||t instanceof q||(t=new q(t.from).to(t.to,t));var r=this,i=r._defaultParams,o=r._duration;if(i)for(var u in i)"function"==typeof t[u]&&t[u](i[u]);var s="number"==typeof e?e:this.position.parseLabel(void 0!==e?e:"afterLast",null);return t._startTime=Math.max(this._startTime,t._delayTime,s),t._delayTime=s,t._isPlaying=!0,this._duration=Math.max(o,t._startTime+t._delayTime+t._duration),this._tweens.push(t),this.position.setLabel("afterLast",this._duration),this},e.prototype.restart=function(){return this._startTime+=f(),m(this),this.emit("restart")},e.prototype.easing=function(t){return this.map(function(e){return e.easing(t)})},e.prototype.interpolation=function(t){return this.map(function(e){return e.interpolation(t)})},e.prototype.update=function(t){var e=this,n=e._tweens,r=e._duration,i=e._reverseDelayTime,o=e._startTime,u=e._reversed,s=e._yoyo,a=e._repeat,f=e._isFinite;if(!e._isPlaying||t<o)return!0;var p=(t-o)/r;p=p>1?1:p,p=u?1-p:p,this.elapsed=p;for(var l=t-o,c=u?r-l:l,h=0;h<n.length;)n[h].update(c),h++;if(this.emit("update",p,l),1===p||u&&0===p){if(a){for(f&&this._repeat--,this.emit(u?"reverse":"repeat"),s&&(this._reversed=!u,this.timingOrder(function(t){return t.reverse()})),this._startTime=u&&i?t+i:t,h=0;h<n.length;)n[h].reassignValues(t),h++;return!0}return this.emit("complete"),this._repeat=this._r,b(this),this._isPlaying=!1,!1}return!0},e.prototype.progress=function(t){return void 0!==t?this.update(t*this._duration):this.elapsed},e}(q);t.Plugins=O,t.Selector=M,t.Interpolator=r,t.onTick=function(t){return p.push({update:t})},t.has=function(t){return null!==g(t)},t.get=g,t.getAll=function(){return p},t.removeAll=function(){p.length=0},t.remove=b,t.add=m,t.now=f,t.update=T,t.autoPlay=function(t){c=t},t.isRunning=function(){return l},t.Tween=q,t.Easing=w,t.Timeline=R,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -633,5 +633,5 @@ (function (global, factory) {

* Start the tweening
* @param {number} time setting manual time instead of Current browser timestamp
* @param {number|string} time setting manual time instead of Current browser timestamp or like `+1000` relative to current timestamp
* @example tween.start()
* @memberof Lite
* @memberof Tween
*/

@@ -722,2 +722,3 @@ Lite.prototype.start = function (time) {

var atEnd = (_r + 1) % 2 === 1;
this._reversed = false;
if (atEnd) {

@@ -724,0 +725,0 @@ this.update(_startTime + _duration);

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.TWEEN={})}(this,function(t){"use strict";var n,i="undefined"!=typeof window?window:"undefined"!=typeof global?global:this,e=i.requestAnimationFrame||function(t){return i.setTimeout(t,16)},r=i.cancelAnimationFrame||function(t){return i.clearTimeout(t)},o=function(){if("undefined"!=typeof process&&void 0!==process.hrtime)return function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6};if(void 0!==i.performance&&void 0!==i.performance.now)return i.performance.now.bind(i.performance);var t=i.performance&&i.performance.timing&&i.performance.timing.navigationStart?i.performance.timing.navigationStart:Date.now();return function(){return Date.now()-t}}(),u=[],a=!1,s=!1,f=e,c=r,h=o(),l=0,p=0,_=function(t){var i=u.indexOf(t);i>-1&&u.splice(i,1),u.push(t),s&&!a&&(h=o(),n=f(v),a=!0)},y=function(t){for(var n=0;n<u.length;n++)if(t===u[n])return u[n];return null},d=function(t){var n=u.indexOf(t);-1!==n&&u.splice(n,1)},v=function(t,i){if(t=void 0!==t?t:o(),(l=t-h)>150&&(p=l-50/3),h=t,s&&a&&(n=f(v)),0===u.length)return c(n),a=!1,!1;for(var e,r=0;r<u.length;)e=u[r],p&&(e._startTime+=p),e.update(t,i),r++;return p&&(p=0),!0},m={},g={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var n=1.70158;return t*t*((n+1)*t-n)},Out:function(t){var n=1.70158;return--t*t*((n+1)*t+n)+1},InOut:function(t){var n=2.5949095;return(t*=2)<1?t*t*((n+1)*t-n)*.5:.5*((t-=2)*t*((n+1)*t+n)+2)}},Bounce:{In:function(t){return 1-g.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*g.Bounce.In(2*t):.5*g.Bounce.Out(2*t-1)+.5}},Stepped:{steps:function(t){return function(n){return(n*t|0)/t}}}},M={Linear:function(t,n){var i=t.length-1,e=i*n,r=Math.floor(e),o=M.Utils.Linear;return n<0?o(t[0],t[1],e):n>1?o(t[i],t[i-1],i-e):o(t[r],t[r+1>i?i:r+1],e-r)},Bezier:function(t,n){for(var i=0,e=t.length-1,r=Math.pow,o=M.Utils.Bernstein,u=0;u<=e;u++)i+=r(1-n,e-u)*r(n,u)*t[u]*o(e,u);return i},CatmullRom:function(t,n){var i=t.length-1,e=i*n,r=Math.floor(e),o=M.Utils.CatmullRom;return t[0]===t[i]?(n<0&&(r=Math.floor(e=i*(1+n))),o(t[(r-1+i)%i],t[r],t[(r+1)%i],t[(r+2)%i],e-r)):n<0?t[0]-(o(t[0],t[0],t[1],t[1],-e)-t[0]):n>1?t[i]-(o(t[i],t[i],t[i-1],t[i-1],e-i)-t[i]):o(t[r?r-1:0],t[r],t[i<r+1?i:r+1],t[i<r+2?i:r+2],e-r)},Utils:{Linear:function(t,n,i){return"function"==typeof t?t(i):(n-t)*i+t},Bernstein:function(t,n){var i=M.Utils.Factorial;return i(t)/i(n)/i(t-n)},Factorial:function(){var t=[1];return function(n){var i=1;if(t[n])return t[n];for(var e=n;e>1;e--)i*=e;return t[n]=i,i}}(),CatmullRom:function(t,n,i,e,r){var o=.5*(i-t),u=.5*(e-n),a=r*r;return(2*n-2*i+o+u)*(r*a)+(-3*n+3*i-2*o-u)*a+o*r+n}}},b=0,I=function(){function t(t){return this.id=b++,this.object=t,this._valuesStart={},this._valuesEnd=null,this._valuesStartRepeat={},this._duration=1e3,this._easingFunction=g.Linear.None,this._interpolationFunction=M.Linear,this._startTime=0,this._delayTime=0,this._repeat=0,this._r=0,this._isPlaying=!1,this._yoyo=!1,this._reversed=!1,this._onStartCallbackFired=!1,this._pausedTime=null,this._isFinite=!0,this._onStartCallback=null,this._onUpdateCallback=null,this._onCompleteCallback=null,this}return t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isStarted=function(){return this._onStartCallbackFired},t.prototype.pause=function(){return this._isPlaying?(this._isPlaying=!1,d(this),this._pausedTime=o(),this):this},t.prototype.play=function(){return this._isPlaying?this:(this._isPlaying=!0,this._startTime+=o()-this._pausedTime,_(this),this._pausedTime=o(),this)},t.prototype.duration=function(t){return this._duration="function"==typeof t?t(this._duration):t,this},t.prototype.to=function(t,n){return void 0===n&&(n=1e3),this._valuesEnd=t,this._duration=n,this},t.prototype.start=function(t){this._startTime=void 0!==t?"string"==typeof t?o()+parseFloat(t):t:o(),this._startTime+=this._delayTime;var n=this,i=n._valuesEnd,e=n._valuesStartRepeat,r=n._valuesStart,u=n._interpolationFunction,a=n.object;for(var s in i)!function(t){var n=a[t],o=i[t];if(!a||void 0===a[t])return"continue";var s=a[t];if("number"==typeof n){if("string"==typeof o)e[t]=o,o=n+parseFloat(o);else if(Array.isArray(o)){o.unshift(n);var f=o;o=function(t){return u(f,t)}}}else if("object"==typeof o)if(Array.isArray(o)){var c,h=o,l=n.map(function(t){return t}),p=o.length;o=function(t){for(c=0;c<p;c++)s[c]="number"==typeof l[c]?l[c]+(h[c]-l[c])*t:h[c];return s}}else{var _=o,y={};for(var d in n)y[d]=n[d];o=function(t){for(var n in o)s[n]="number"==typeof y[n]?y[n]+(_[n]-y[n])*t:_[n];return s}}r[t]=n,i[t]=o}(s);return this._isPlaying=!0,this._reversed=!1,this._onStartCallbackFired=!1,_(this),this},t.prototype.stop=function(){var t=this,n=t._isPlaying,i=t._isFinite,e=(t.object,t._startTime),r=(t._delayTime,t._duration),o=t._r;return n&&i?((o+1)%2==1?this.update(e+r):this.update(e),d(this),this):this},t.prototype.delay=function(t){return this._delayTime="function"==typeof t?t(this._delayTime):t,this},t.prototype.repeat=function(t){return this._repeat="function"==typeof t?t(this._repeat):t,this._r=this._repeat,this._isFinite=isFinite(t),this},t.prototype.reverseDelay=function(t){return this._reverseDelayTime="function"==typeof t?t(this._reverseDelayTime):t,this},t.prototype.yoyo=function(t){return this._yoyo="function"==typeof t?t(this._yoyo):t,t||(this._reversed=!1),this},t.prototype.easing=function(t){return"function"==typeof t&&(this._easingFunction=t),this},t.prototype.interpolation=function(t){return"function"==typeof t&&(this._interpolationFunction=t),this},t.prototype.update=function(t,n){var i,e,r,u=this,a=u._onStartCallbackFired,s=u._easingFunction,f=u._repeat,c=u._delayTime,h=u._reverseDelayTime,l=u._yoyo,p=u._reversed,_=u._startTime,y=u._duration,v=u._valuesStart,m=u._valuesEnd,g=u._valuesStartRepeat,M=u.object,I=u._isFinite,T=u._isPlaying,O=u._onStartCallback,C=u._onUpdateCallback,F=u._onCompleteCallback;if(t=void 0!==t?t:o(),!T||t<_)return!0;a||(O&&O(M),this._onStartCallbackFired=!0),i=(i=(t-_)/y)>1?1:i,e=s(i=p?1-i:i);for(r in m){var P=v[r],S=m[r];void 0!==P&&("function"==typeof S?M[r]=S(e):"number"==typeof S&&(M[r]=P+(S-P)*e))}if(C&&C(M,i),1===i||p&&0===i){if(f){if(I&&this._repeat--,!p)for(r in g)v[r]=m[r],m[r]+=parseFloat(g[r]);return l&&(this._reversed=!p),this._startTime=p&&h?t+h:t+c,!0}return n||(this._isPlaying=!1,d(this)),F&&F(),this._repeat=this._r,b--,!1}return!0},t}();t.Plugins=m,t.onTick=function(t){return u.push({update:t})},t.has=function(t){return null!==y(t)},t.get=y,t.getAll=function(){return u},t.removeAll=function(){u.length=0},t.remove=d,t.add=_,t.now=o,t.update=v,t.autoPlay=function(t){s=t},t.isRunning=function(){return a},t.Tween=I,t.Easing=g,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.TWEEN={})}(this,function(t){"use strict";var n,e="undefined"!=typeof window?window:"undefined"!=typeof global?global:this,i=e.requestAnimationFrame||function(t){return e.setTimeout(t,16)},r=e.cancelAnimationFrame||function(t){return e.clearTimeout(t)},o=function(){if("undefined"!=typeof process&&void 0!==process.hrtime)return function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6};if(void 0!==e.performance&&void 0!==e.performance.now)return e.performance.now.bind(e.performance);var t=e.performance&&e.performance.timing&&e.performance.timing.navigationStart?e.performance.timing.navigationStart:Date.now();return function(){return Date.now()-t}}(),u=[],a=!1,s=!1,f=i,c=r,h=o(),l=0,p=0,_=function(t){var e=u.indexOf(t);e>-1&&u.splice(e,1),u.push(t),s&&!a&&(h=o(),n=f(v),a=!0)},d=function(t){for(var n=0;n<u.length;n++)if(t===u[n])return u[n];return null},y=function(t){var n=u.indexOf(t);-1!==n&&u.splice(n,1)},v=function(t,e){if(t=void 0!==t?t:o(),(l=t-h)>150&&(p=l-50/3),h=t,s&&a&&(n=f(v)),0===u.length)return c(n),a=!1,!1;for(var i,r=0;r<u.length;)i=u[r],p&&(i._startTime+=p),i.update(t,e),r++;return p&&(p=0),!0},m={},g={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var n=1.70158;return t*t*((n+1)*t-n)},Out:function(t){var n=1.70158;return--t*t*((n+1)*t+n)+1},InOut:function(t){var n=2.5949095;return(t*=2)<1?t*t*((n+1)*t-n)*.5:.5*((t-=2)*t*((n+1)*t+n)+2)}},Bounce:{In:function(t){return 1-g.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*g.Bounce.In(2*t):.5*g.Bounce.Out(2*t-1)+.5}},Stepped:{steps:function(t){return function(n){return(n*t|0)/t}}}},M={Linear:function(t,n){var e=t.length-1,i=e*n,r=Math.floor(i),o=M.Utils.Linear;return n<0?o(t[0],t[1],i):n>1?o(t[e],t[e-1],e-i):o(t[r],t[r+1>e?e:r+1],i-r)},Bezier:function(t,n){for(var e=0,i=t.length-1,r=Math.pow,o=M.Utils.Bernstein,u=0;u<=i;u++)e+=r(1-n,i-u)*r(n,u)*t[u]*o(i,u);return e},CatmullRom:function(t,n){var e=t.length-1,i=e*n,r=Math.floor(i),o=M.Utils.CatmullRom;return t[0]===t[e]?(n<0&&(r=Math.floor(i=e*(1+n))),o(t[(r-1+e)%e],t[r],t[(r+1)%e],t[(r+2)%e],i-r)):n<0?t[0]-(o(t[0],t[0],t[1],t[1],-i)-t[0]):n>1?t[e]-(o(t[e],t[e],t[e-1],t[e-1],i-e)-t[e]):o(t[r?r-1:0],t[r],t[e<r+1?e:r+1],t[e<r+2?e:r+2],i-r)},Utils:{Linear:function(t,n,e){return"function"==typeof t?t(e):(n-t)*e+t},Bernstein:function(t,n){var e=M.Utils.Factorial;return e(t)/e(n)/e(t-n)},Factorial:function(){var t=[1];return function(n){var e=1;if(t[n])return t[n];for(var i=n;i>1;i--)e*=i;return t[n]=e,e}}(),CatmullRom:function(t,n,e,i,r){var o=.5*(e-t),u=.5*(i-n),a=r*r;return(2*n-2*e+o+u)*(r*a)+(-3*n+3*e-2*o-u)*a+o*r+n}}},b=0,I=function(){function t(t){return this.id=b++,this.object=t,this._valuesStart={},this._valuesEnd=null,this._valuesStartRepeat={},this._duration=1e3,this._easingFunction=g.Linear.None,this._interpolationFunction=M.Linear,this._startTime=0,this._delayTime=0,this._repeat=0,this._r=0,this._isPlaying=!1,this._yoyo=!1,this._reversed=!1,this._onStartCallbackFired=!1,this._pausedTime=null,this._isFinite=!0,this._onStartCallback=null,this._onUpdateCallback=null,this._onCompleteCallback=null,this}return t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isStarted=function(){return this._onStartCallbackFired},t.prototype.pause=function(){return this._isPlaying?(this._isPlaying=!1,y(this),this._pausedTime=o(),this):this},t.prototype.play=function(){return this._isPlaying?this:(this._isPlaying=!0,this._startTime+=o()-this._pausedTime,_(this),this._pausedTime=o(),this)},t.prototype.duration=function(t){return this._duration="function"==typeof t?t(this._duration):t,this},t.prototype.to=function(t,n){return void 0===n&&(n=1e3),this._valuesEnd=t,this._duration=n,this},t.prototype.start=function(t){this._startTime=void 0!==t?"string"==typeof t?o()+parseFloat(t):t:o(),this._startTime+=this._delayTime;var n=this,e=n._valuesEnd,i=n._valuesStartRepeat,r=n._valuesStart,u=n._interpolationFunction,a=n.object;for(var s in e)!function(t){var n=a[t],o=e[t];if(!a||void 0===a[t])return"continue";var s=a[t];if("number"==typeof n){if("string"==typeof o)i[t]=o,o=n+parseFloat(o);else if(Array.isArray(o)){o.unshift(n);var f=o;o=function(t){return u(f,t)}}}else if("object"==typeof o)if(Array.isArray(o)){var c,h=o,l=n.map(function(t){return t}),p=o.length;o=function(t){for(c=0;c<p;c++)s[c]="number"==typeof l[c]?l[c]+(h[c]-l[c])*t:h[c];return s}}else{var _=o,d={};for(var y in n)d[y]=n[y];o=function(t){for(var n in o)s[n]="number"==typeof d[n]?d[n]+(_[n]-d[n])*t:_[n];return s}}r[t]=n,e[t]=o}(s);return this._isPlaying=!0,this._reversed=!1,this._onStartCallbackFired=!1,_(this),this},t.prototype.stop=function(){var t=this,n=t._isPlaying,e=t._isFinite,i=(t.object,t._startTime),r=(t._delayTime,t._duration),o=t._r;if(!n||!e)return this;var u=(o+1)%2==1;return this._reversed=!1,u?this.update(i+r):this.update(i),y(this),this},t.prototype.delay=function(t){return this._delayTime="function"==typeof t?t(this._delayTime):t,this},t.prototype.repeat=function(t){return this._repeat="function"==typeof t?t(this._repeat):t,this._r=this._repeat,this._isFinite=isFinite(t),this},t.prototype.reverseDelay=function(t){return this._reverseDelayTime="function"==typeof t?t(this._reverseDelayTime):t,this},t.prototype.yoyo=function(t){return this._yoyo="function"==typeof t?t(this._yoyo):t,t||(this._reversed=!1),this},t.prototype.easing=function(t){return"function"==typeof t&&(this._easingFunction=t),this},t.prototype.interpolation=function(t){return"function"==typeof t&&(this._interpolationFunction=t),this},t.prototype.update=function(t,n){var e,i,r,u=this,a=u._onStartCallbackFired,s=u._easingFunction,f=u._repeat,c=u._delayTime,h=u._reverseDelayTime,l=u._yoyo,p=u._reversed,_=u._startTime,d=u._duration,v=u._valuesStart,m=u._valuesEnd,g=u._valuesStartRepeat,M=u.object,I=u._isFinite,T=u._isPlaying,O=u._onStartCallback,C=u._onUpdateCallback,F=u._onCompleteCallback;if(t=void 0!==t?t:o(),!T||t<_)return!0;a||(O&&O(M),this._onStartCallbackFired=!0),e=(e=(t-_)/d)>1?1:e,i=s(e=p?1-e:e);for(r in m){var P=v[r],S=m[r];void 0!==P&&("function"==typeof S?M[r]=S(i):"number"==typeof S&&(M[r]=P+(S-P)*i))}if(C&&C(M,e),1===e||p&&0===e){if(f){if(I&&this._repeat--,!p)for(r in g)v[r]=m[r],m[r]+=parseFloat(g[r]);return l&&(this._reversed=!p),this._startTime=p&&h?t+h:t+c,!0}return n||(this._isPlaying=!1,y(this)),F&&F(),this._repeat=this._r,b--,!1}return!0},t}();t.Plugins=m,t.onTick=function(t){return u.push({update:t})},t.has=function(t){return null!==d(t)},t.get=d,t.getAll=function(){return u},t.removeAll=function(){u.length=0},t.remove=y,t.add=_,t.now=o,t.update=v,t.autoPlay=function(t){s=t},t.isRunning=function(){return a},t.Tween=I,t.Easing=g,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "es6-tween",
"version": "3.8.23",
"version": "3.8.24",
"description": "ES6 implementation of amazing tween.js",

@@ -5,0 +5,0 @@ "browser": "full/Tween.min.js",

@@ -98,5 +98,5 @@ /**

* Start the tweening
* @param {number} time setting manual time instead of Current browser timestamp
* @param {number|string} time setting manual time instead of Current browser timestamp or like `+1000` relative to current timestamp
* @example tween.start()
* @memberof Lite
* @memberof Tween
*/

@@ -103,0 +103,0 @@ start(time?: number): this;

@@ -143,5 +143,5 @@ import { add, now, remove } from './core';

* Start the tweening
* @param {number} time setting manual time instead of Current browser timestamp
* @param {number|string} time setting manual time instead of Current browser timestamp or like `+1000` relative to current timestamp
* @example tween.start()
* @memberof Lite
* @memberof Tween
*/

@@ -232,2 +232,3 @@ Lite.prototype.start = function (time) {

var atEnd = (_r + 1) % 2 === 1;
this._reversed = false;
if (atEnd) {

@@ -234,0 +235,0 @@ this.update(_startTime + _duration);

@@ -205,5 +205,9 @@ var __extends = (this && this.__extends) || (function () {

Tween.prototype.seek = function (time, keepPlaying) {
var _a = this, _duration = _a._duration, _repeat = _a._repeat, _initTime = _a._initTime, _startTime = _a._startTime;
var updateTime = _startTime + time;
var _a = this, _duration = _a._duration, _repeat = _a._repeat, _initTime = _a._initTime, _startTime = _a._startTime, _delayTime = _a._delayTime, _reversed = _a._reversed;
var updateTime = _initTime + time;
this._isPlaying = true;
if (updateTime < _startTime && (_startTime >= _initTime)) {
this._startTime -= _duration;
this._reversed = !_reversed;
}
this.update(time, false);

@@ -315,2 +319,3 @@ this.emit(EVENT_SEEK, time, this.object);

var atEnd = (_r + 1) % 2 === 1;
this._reversed = false;
if (atEnd) {

@@ -317,0 +322,0 @@ this.update(_startTime + _duration);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc