iwmlib/dist/iwmlib.3rdparty.preload.min.js

1 line
114 KiB
JavaScript
Raw Normal View History

2019-05-27 11:01:48 +02:00
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var P,x,b,w,g,i,y,S,v,T,c,p,d,t,e,l,h,r;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,_,v){var m=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},d=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle},g=function(t){if("function"==typeof t)return t;var p="object"==typeof t?t:{each:t},m=p.ease,d=p.from||0,g=p.base||0,y={},v=isNaN(d),T=p.axis,x={center:.5,end:1}[d]||0;return function(t,e,i){var r,n,s,a,o,l,h,_,u,f=(i||p).length,c=y[f];if(!c){if(!(u="auto"===p.grid?0:(p.grid||[1/0])[0])){for(h=-1/0;h<(h=i[u++].getBoundingClientRect().left)&&u<f;);u--}for(c=y[f]=[],r=v?Math.min(u,f)*x-.5:d%u,n=v?f*x/u-.5:d/u|0,_=1/(h=0),l=0;l<f;l++)s=l%u-r,a=n-(l/u|0),c[l]=o=T?Math.abs("y"===T?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<_&&(_=o);c.max=h-_,c.min=_,c.v=f=p.amount||p.each*(f<u?f-1:T?"y"===T?f/u:u:Math.max(u,f/u))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(m?m.getRatio(f):f)*c.v}},y=function(t,e,i){v.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render},T=1e-8,x=v._internals,b=x.isSelector,w=x.isArray,t=y.prototype=v.to({},.1,{}),P=[];y.version="2.1.3",t.constructor=y,t.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=v.killTweensOf,y.getTweensOf=v.getTweensOf,y.lagSmoothing=v.lagSmoothing,y.ticker=v.ticker,y.render=v.render,y.distribute=g,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),v.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,r=this,n=r.ratio,s=r.vars.immediateRender||t.immediateRender;for(i in e&&r._startTime<r._timeline._time&&(r._startTime=r._timeline._time,r._uncache(!1),r._gc?r._enabled(!0,!1):r._timeline.insert(r,r._startTime-r._delay)),t)r.vars[i]=t[i];if(r._initted||s)if(e)r._initted=!1,s&&r.render(0,!0,!0);else if(r._gc&&r._enabled(!0,!1),r._notifyPluginsOfEnabled&&r._firstPT&&v._onPluginEvent("_onDisable",r),.998<r._time/r._duration){var a=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(a,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var o,l=1/(1-n),h=r._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return r},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,a,o,l,h,_,u,f=this,c=f._dirty?f.totalDuration():f._totalDuration,p=f._time,m=f._totalTime,d=f._cycle,g=f._duration,y=f._rawPrevTime;if(c-T<=t&&0<=t?(f._totalTime=c,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=g,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(r=!0,n="onComplete",i=i||f._timeline.autoRemoveChildren),0===g&&(f._initted||!f.vars.lazy||i)&&(f._startTime===f._timeline._duration&&(t=0),(y<0||t<=0&&-T<=t||y===T&&"isPause"!==f.data)&&y!==t&&(i=!0,T<y&&(n="onReverseComplete")),f._rawPrevTime=_=!e||t||y===t?t:T)):t<T?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==m||0===g&&0<y)&&(n="onReverseComplete",r=f._reversed),-T<t?t=0:t<0&&(f._active=!1,0===g&&(f._initted||!f.vars.lazy||i)&&(0<=y&&(i=!0),f._rawPrevTime=_=!e||t||y===t?t:T)),f._initted||(i=!0)):(f._totalTime=f._time=t,0!==f._repeat&&(a=g+f._repeatDelay,f._cycle=f._totalTime/a>>0,0!==f._cycle&&f._cycle===f._totalTime/a&&m<=t&&f._cycle--,f._time=f._totalTime-f._cycle*a,f._yoyo&&0!=(1&f._cycle)&&(f._time=g-f._time,(u=f._yoyoEase||f.vars.yoyoEase)&&(f._yoyoEase||(!0!==u||f._initted?f._yoyoEase=u=!0===u?f._ease:u instanceof Ease?u:Ease.map[u]:(u=f.vars.ease,f._yoyoEase=u=u?u instanceof Ease?u:"function"==typeof u?new Ease(u,f.vars.easeParams):Ease.map[u]||v.defaultEase