{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/tween-animation/2.0.0',['pandav:/com/tween-animation/2.0.0/animationUpdate','pandav:/com/tween-animation/2.0.0/tween'],function(a,b,c){var d=Math.pow;function f(a){\"@babel/helpers - typeof\";return f='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},f(a)}function g(a,b){return k(a)||j(a,b)||w(a,b)||h()}function h(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function j(b,c){var d=null==b?null:'undefined'!=typeof Symbol&&b[Symbol.iterator]||b['@@iterator'];if(null!=d){var g,h,j,k,l=[],a=!0,m=!1;try{if(j=(d=d.call(b)).next,0===c){if(Object(d)!==d)return;a=!1}else for(;!(a=(g=j.call(d)).done)&&(l.push(g.value),l.length!==c);a=!0);}catch(a){m=!0,h=a}finally{try{if(!a&&null!=d.return&&(k=d.return(),Object(k)!==k))return}finally{if(m)throw h}}return l}}function k(a){if(Array.isArray(a))return a}function l(){return l='undefined'!=typeof Reflect&&Reflect.get?Reflect.get.bind():function d(a,b,c){var e=m(a,b);if(e){var f=Object.getOwnPropertyDescriptor(e,b);return f.get?f.get.call(3>arguments.length?a:c):f.value}},l.apply(this,arguments)}function m(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=s(a),null!==a););return a}function n(a,b,c){return b=s(b),p(a,r()?Reflect.construct(b,c||[],s(a).constructor):b.apply(a,c))}function p(a,b){if(b&&('object'===f(b)||'function'==typeof b))return b;if(void 0!==b)throw new TypeError('Derived constructors may only return object or undefined');return q(a)}function q(a){if(void 0===a)throw new ReferenceError('this hasn\\'t been initialised - super() hasn\\'t been called');return a}function r(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(r=function b(){return!!a})()}function s(a){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function b(a){return a.__proto__||Object.getPrototypeOf(a)},s(a)}function t(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&u(a,b)}function u(a,b){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function c(a,b){return a.__proto__=b,a},u(a,b)}function v(a,b){var c='undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(!c){if(Array.isArray(a)||(c=w(a))||b&&a&&'number'==typeof a.length){c&&(a=c);var d=0,e=function a(){};return{s:e,n:function b(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function w(a,b){if(a){if('string'==typeof a)return x(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?x(a,b):void 0}}function x(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=c.duration?(c.completed=!0,c.target):c.cur+this.a*d(c.t,this.n)}}]),a}(),EaseOut:function(){function a(b,c,e,f){y(this,a),this.duration=b,this.completed=!1,this.target=e,this.cur=c,this.t=0,this.n=f,this.a=(e-c)/d(b,f)}return A(a,[{key:'reset',value:function a(){this.completed=!1,this.t=0}},{key:'update',value:function b(a){var c=this;return c.t+=a,c.t>=c.duration?(c.completed=!0,c.target):c.target-c.a*d(c.duration-c.t,c.n)}}]),a}(),EaseInOut:function(){function a(b,c,e,f){y(this,a),this.duration=b,this.completed=!1,this.target=e,this.cur=c,this.t=0,this.n=f;var g=b/2,h=(e-c)/2;this.xh=g,this.a=h/d(g,f)}return A(a,[{key:'reset',value:function a(){this.completed=!1,this.t=0}},{key:'update',value:function b(a){var c=this;return c.t+=a,c.t>=c.duration?(c.completed=!0,c.target):c.t=c.duration?(c.completed=!0,c.target):c.cur+c.t*c.a}}]),a}()},T=!1,U=[],V=function(){function a(b){y(this,a),T||D(),this.obj=b,this.actionList=[],this.completed=!1,this.isLoop=!1,U.push(this),this.curIndex=0,this._onUpdate=null,this._onComplete=null}return A(a,[{key:'onUpdate',value:function b(a){this._onUpdate=a}},{key:'onComplete',value:function b(a){this._onComplete=a}},{key:'loop',value:function a(){return this.isLoop=!0,this}},{key:'callback',value:function b(a){return this.actionList.push(new X(a)),this}},{key:'delay',value:function b(a){return this.actionList.push(new Z(a)),this}},{key:'destroy',value:function a(){this.completed=!0}},{key:'to',value:function c(a,b){var d=2c.length-1)return void this.complete();var d=c[this.curIndex];d.completed||(d.update(a),!d.isDelay&&this._onUpdate&&this._onUpdate(this.obj)),d.completed&&(this.curIndex++,this.update(a))}}]),a}(),W=function(){function a(){y(this,a)}return A(a,[{key:'update',value:function b(a){}},{key:'complete',value:function a(){this.completed=!0}},{key:'reset',value:function a(){this.completed=!1}}]),a}(),X=function(a){function b(a){var c;return y(this,b),c=n(this,b),c.func=a,c}return t(b,a),A(b,[{key:'update',value:function a(){this.func(),this.completed=!0}}]),b}(W),Y=function(a){function b(a,c,d,e,f){var h,g=Math.round;return y(this,b),h=n(this,b),h._inited=!1,h.maxCount=g(d/(1e3/60)),h.obj=a,h.completed=!1,h.args=arguments,h.updateList=[],h}return t(b,a),A(b,[{key:'init',value:function a(){this._inited=!0,this.updateList=[];var b=g(this.args,5),c=b[0],d=b[1],e=b[2],h=b[3],i=b[4];if('object'==f(d))for(var j in d){var k=d[j],l=this.obj[j];'number'==typeof l&&'number'==typeof k&&0=this.duration?this.complete():this.timer+=a}},{key:'reset',value:function a(){l(s(b.prototype),'reset',this).call(this),this.timer=0}}]),b}(W);return a.exports={Tween:V,EaseType:S,animationUpdate:G,removeAnimationUpdate:H,Easing:J,Group:K,Interpolation:L,now:M,Sequence:N,nextId:O,Tweens:P,getAll:Q,removeAll:R},a.exports});", "requires": [ "pandav:/animationUpdate.js", "pandav:/tween.js" ], "buildLevel": 1, "outputDir": "/com/tween-animation/2.0.0", "outputPath": "/com/tween-animation/2.0.0/index.js", "fileName": "/index.js" }, "pandav:/animationUpdate.js": { "cubeCode": "Cube('pandav:/com/tween-animation/2.0.0/animationUpdate',[],function(a){function b(a){f?j.push(a):h=h.filter(function(b){return b!==a})}function c(a){if(d){if(f=!0,0>=h.length)return b(g),d=!1,void(f=!1);if(0(a*=2)?.5*a*a:-.5*(--a*(a-2)-1)}}),Cubic:Object.freeze({In:function(a){return a*a*a},Out:function(a){return--a*a*a+1},InOut:function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2)}}),Quartic:Object.freeze({In:function(a){return a*a*a*a},Out:function(a){return 1- --a*a*a*a},InOut:function(a){return 1>(a*=2)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)}}),Quintic:Object.freeze({In:function(a){return a*a*a*a*a},Out:function(a){return--a*a*a*a*a+1},InOut:function(a){return 1>(a*=2)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)}}),Sinusoidal:Object.freeze({In:function(a){return 1-e((1-a)*f/2)},Out:function(a){return e(a*f/2)},InOut:function(a){return .5*(1-e(f*(.5-a)))}}),Exponential:Object.freeze({In:function(a){return 0===a?0:d(1024,a-1)},Out:function(a){return 1===a?1:1-d(2,-10*a)},InOut:function(a){return 0===a?0:1===a?1:1>(a*=2)?.5*d(1024,a-1):.5*(-d(2,-10*(a-1))+2)}}),Circular:Object.freeze({In:function(a){return 1-c(1-a*a)},Out:function(a){return c(1- --a*a)},InOut:function(a){return 1>(a*=2)?-.5*(c(1-a*a)-1):.5*(c(1-(a-=2)*a)+1)}}),Elastic:Object.freeze({In:function(a){return 0===a?0:1===a?1:-d(2,10*(a-1))*e(5*(a-1.1)*f)},Out:function(a){return 0===a?0:1===a?1:d(2,-10*a)*e(5*(a-.1)*f)+1},InOut:function(a){return 0===a?0:1===a?1:(a*=2,1>a?-.5*d(2,10*(a-1))*e(5*(a-1.1)*f):.5*d(2,-10*(a-1))*e(5*(a-1.1)*f)+1)}}),Back:Object.freeze({In:function(a){var b=1.70158;return 1===a?1:a*a*((b+1)*a-b)},Out:function(a){var b=1.70158;return 0===a?0:--a*a*((b+1)*a+b)+1},InOut:function(a){var b=1.70158*1.525;return 1>(a*=2)?.5*(a*a*((b+1)*a-b)):.5*((a-=2)*a*((b+1)*a+b)+2)}}),Bounce:Object.freeze({In:function(a){return 1-h.Bounce.Out(1-a)},Out:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},InOut:function(a){return .5>a?.5*h.Bounce.In(2*a):.5*h.Bounce.Out(2*a-1)+.5}}),generatePow:function(a){var b=Number.EPSILON;return void 0===a&&(a=4),a=ab?d(2*b,a)/2:(1-d(2-2*b,a))/2+.5}}}}),j=function(){return performance.now()},k=function(){function a(){this._tweens={},this._tweensAddedDuringUpdate={}}return a.prototype.getAll=function(){var a=this;return Object.keys(this._tweens).map(function(b){return a._tweens[b]})},a.prototype.removeAll=function(){this._tweens={}},a.prototype.add=function(a){this._tweens[a.getId()]=a,this._tweensAddedDuringUpdate[a.getId()]=a},a.prototype.remove=function(a){delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]},a.prototype.update=function(a,b){void 0===a&&(a=j()),void 0===b&&(b=!1);var c=Object.keys(this._tweens);if(0===c.length)return!1;for(;0c?g(a[0],a[1],e):1d?d:f+1],e-f)},Bezier:function(a,c){for(var e=0,f=a.length-1,g=d,h=l.Utils.Bernstein,j=0;j<=f;j++)e+=g(1-c,f-j)*g(c,j)*a[j]*h(f,j);return e},CatmullRom:function(a,c){var d=a.length-1,e=d*c,g=b(e),h=l.Utils.CatmullRom;return a[0]===a[d]?(0>c&&(g=b(e=d*(1+c))),h(a[(g-1+d)%d],a[g],a[(g+1)%d],a[(g+2)%d],e-g)):0>c?a[0]-(h(a[0],a[0],a[1],a[1],-e)-a[0]):1b?0:b,this},b.prototype.duration=function(a){return void 0===a&&(a=1e3),this._duration=0>a?0:a,this},b.prototype.dynamic=function(a){return void 0===a&&(a=!1),this._isDynamic=a,this},b.prototype.start=function(a,b){if(void 0===a&&(a=j()),void 0===b&&(b=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var c in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(c),this._valuesStart[c]=this._valuesStartRepeat[c];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=a,this._startTime+=this._delayTime,!this._propertiesAreSetUp||b){if(this._propertiesAreSetUp=!0,!this._isDynamic){var d={};for(var e in this._valuesEnd)d[e]=this._valuesEnd[e];this._valuesEnd=d}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,b)}return this},b.prototype.startFromCurrentValues=function(a){return this.start(a,!0)},b.prototype._setupProperties=function(a,b,c,d,e){for(var f in c){var h=a[f],j=Array.isArray(h),k=j?'array':g(h),m=!j&&Array.isArray(c[f]);if('undefined'!==k&&'function'!==k){if(m){var n=c[f];if(0===n.length)continue;for(var o,p=[h],q=0,r=n.length;qd)return!1;b&&this.start(a,!0)}if(this._goToEnd=!1,ad)return 1;var e=a(b%c/this._duration,1);return 0===e&&0!==b&&0==b%this._duration?1:e},b.prototype._calculateCompletionStatus=function(a){return 0!==this._duration&&a=this._repeat?'completed':a===this._duration?'about-to-repeat':'repeat'},b.prototype._processRepetition=function(b,c){var d=Math.trunc,e=a(d((b-this._duration)/c)+1,this._repeat);for(var f in isFinite(this._repeat)&&(this._repeat-=e),this._valuesStartRepeat){var g=this._valuesEnd[f];this._yoyo||'string'!=typeof g||(this._valuesStartRepeat[f]+=parseFloat(g)),this._yoyo&&this._swapEndStartRepeatValues(f),this._valuesStart[f]=this._valuesStartRepeat[f]}this._yoyo&&(this._reversed=!this._reversed),this._startTime+=c*e},b.prototype._updateProperties=function(a,b,c,d){for(var e in c)if(void 0!==b[e]){var f=b[e]||0,h=c[e],i=Array.isArray(a[e]),j=Array.isArray(h),k=!i&&j;k?a[e]=this._interpolationFunction(h,d):'object'===g(h)&&h?this._updateProperties(a[e],f,h,d):(h=this._handleRelativeValue(f,h),'number'==typeof h&&(a[e]=f+(h-f)*d))}},b.prototype._handleRelativeValue=function(a,b){return'string'==typeof b?'+'===b.charAt(0)||'-'===b.charAt(0)?a+parseFloat(b):parseFloat(b):b},b.prototype._swapEndStartRepeatValues=function(a){var b=this._valuesStartRepeat[a],c=this._valuesEnd[a];'string'==typeof c?this._valuesStartRepeat[a]+=parseFloat(c):this._valuesStartRepeat[a]=this._valuesEnd[a],this._valuesEnd[a]=b},b}(),p=m.nextId,q=n,r=q.getAll.bind(q),s=q.removeAll.bind(q),t=q.add.bind(q),u=q.remove.bind(q),v=q.update.bind(q);return a.exports={Easing:h,Group:k,Interpolation:l,now:j,Sequence:m,nextId:p,Tweens:o,VERSION:'23.1.2',getAll:r,removeAll:s,add:t,remove:u,update:v},a.exports});", "requires": [], "buildLevel": 3, "outputDir": "/com/tween-animation/2.0.0", "outputPath": "/com/tween-animation/2.0.0/tween.js", "fileName": "/tween.js" } }