!function(a,b){varc={},d={},e={},f=null;!function(a,b){functionc(a){if("number"==typeofa)returna;varb={};for(varcina)b[c]=a[c];returnb}functiond(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=x}functione(){returna.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}functionf(b,c,e){varf=newd;returnc&&(f.fill="both",f.duration="auto"),"number"!=typeofb||isNaN(b)?void0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeoff[c]||"duration"==c)&&("number"!=typeofb[c]||isNaN(b[c])))return;if("fill"==c&&v.indexOf(b[c])==-1)return;if("direction"==c&&w.indexOf(b[c])==-1)return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;f[c]=b[c]}}):f.duration=b,f}functiong(a){return"number"==typeofa&&(a=isNaN(a)?{duration:0}:{duration:a}),a}functionh(b,c){returnb=a.numericTimingToObject(b),f(b,c)}functioni(a,b,c,d){returna<0||a>1||c<0||c>1?x:function(e){functionf(a,b,c){return3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(e<=0){varg=0;returna>0?g=b/a:!b&&c>0&&(g=d/c),g*e}if(e>=1){varh=0;returnc<1?h=(d-1)/(c-1):1==c&&a<1&&(h=(b-1)/(a-1)),1+h*(e-1)}for(vari=0,j=1;i<j;){vark=(i+j)/2,l=f(a,c,k);if(Math.abs(e-l)<1e-5)returnf(b,d,k);l<e?i=k:j=k}returnf(b,d,k)}}functionj(a,b){returnfunction(c){if(c>=1)return1;vard=1/a;returnc+=b*d,c-c%d}}functionk(a){C||(C=document.createElement("div").style),C.animationTimingFunction="",C.animationTimingFunction=a;varb=C.animationTimingFunction;if(""==b&&e())thrownewTypeError(a+" is not a valid value for easing");returnb}functionl(a){if("linear"==a)returnx;varb=E.exec(a);if(b)returni.apply(this,b.slice(1).map(Number));varc=F.exec(a);if(c)returnj(Number(c[1]),{start:y,middle:z,end:A}[c[2]]);vard=B[a];returnd?d:x}functionm(a){returnMath.abs(n(a)/a.playbackRate)}functionn(a){return0===a.duration||0===a.iterations?0:a.duration*a.iterations}functiono(a,b,c){if(null==b)returnG;vard=c.delay+a+c.endDelay;returnb<Math.min(c.delay,d)?H:b>=Math.min(c.delay+a,d)?I:J}functionp(a,b,c,d,e){switch(d){caseH:return"backwards"==b||"both"==b?0:null;caseJ:returnc-e;caseI:return"forwards"==b||"both"==b?a:null;caseG:returnnull}}functionq(a,b,c,d,e){varf=e;return0===a?b!==H&&(f+=c):f+=d/a,f}functionr(a,b,c,d,e,f){varg=a===1/0?b%1:a%1;return0!==g||c!==I||0===d||0===e&&0!==f||(g=1),g}functions(a,b,c,d){returna===I&&b===1/0?1/0:1===c?Math.floor(d)-1:Math.floor(d)}functiont(a,b,c){vard=a;if("normal"!==a&&"reverse"!==a){vare=b;"alternate-reverse"===a&&(e+=1),d="normal",e!==1/0&&e%2!==0&&(d="reverse")}return"normal"===d?c:1-c}functionu(a,b,c){vard=o(a,b,c),e=p(a,c.fill,b,d,c.delay);if(null===e)returnnull;varf=q(c.duration,d,c.iterations,e,c.iterationStart),g=r(f,c.iterationStart,d,c.iterations,e,c.duration),h=s(d,c.iterations,g,f),i=t(c.direction,h,g);returnc._easingFunction(i)}varv="backwards|forwards|both|none".split("|"),w="reverse|alternate|alternate-reverse".split("|"),x=function(a){returna};d.prototype={_setMember:function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing=a.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=a.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},getplaybackRate(){returnthis._playbackRate},setdelay(a){this._setMember("delay",a)},getdelay(){returnthis._delay},setendDelay(a){this._setMember("endDelay",a)},getendDelay(){returnthis._endDelay},setfill(a){this._setMember("fill",a)},getfill(){returnthis._fill},setiterationStart(a){if((isNaN(a)||a<0)&&e())thrownewTypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",a)},getiterationStart(){returnthis._iterationStart},setduration(a){if("
this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},c=window.Element.prototype.animate;window.Element.prototype.animate=function(d,e){varf=c.call(this,d,e);f._cancelHandlers=[],f.oncancel=null;varg=f.cancel;f.cancel=function(){g.call(this);varc=newb(this,null,a()),d=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){d.forEach(function(a){a.call(c.target,c)})},0)};varh=f.addEventListener;f.addEventListener=function(a,b){"function"==typeofb&&"cancel"==a?this._cancelHandlers.push(b):h.call(this,a,b)};vari=f.removeEventListener;returnf.removeEventListener=function(a,b){if("cancel"==a){varc=this._cancelHandlers.indexOf(b);c>=0&&this._cancelHandlers.splice(c,1)}elsei.call(this,a,b)},f}}}(),function(a){varb=document.documentElement,c=null,d=!1;try{vare=getComputedStyle(b).getPropertyValue("opacity"),f="0"==e?"1":"0";c=b.animate({opacity:[f,f]},{duration:1}),c.currentTime=0,d=getComputedStyle(b).getPropertyValue("opacity")==f}catch(a){}finally{c&&c.cancel()}if(!d){varg=window.Element.prototype.animate;window.Element.prototype.animate=function(b,c){returnwindow.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Array.from(b)),Array.isArray(b)||null===b||(b=a.convertToArrayForm(b)),g.call(this,b,c)}}}(c),!function(a,b,c){functiond(a){varc=b.timeline;c.currentTime=a,c._discardAnimations(),0==c._animations.length?f=!1:requestAnimationFrame(d)}vare=window.requestAnimationFrame;window.requestAnimationFrame=function(a){returne(function(c){b.timeline._updateAnimationsPromises(),a(c),b.timeline._updateAnimationsPromises()})},b.AnimationTimeline=function(){this._animations=[],this.currentTime=void0},b.AnimationTimeline.prototype={getAnimations:function(){returnthis._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){b.animationsWithPromises=b.animationsWithPromises.filter(function(a){returna._updatePromises()})},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playState})},_play:function(a){varc=newb.Animation(a,this);returnthis._animations.push(c),b.restartWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c._updatePromises(),c},play:function(a){returna&&a.remove(),this._play(a)}};varf=!1;b.restartWebAnimationsNextTick=function(){f||(f=!0,requestAnimationFrame(d))};varg=newb.AnimationTimeline;b.timeline=g;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){returng}})}catch(a){}try{window.document.timeline=g}catch(a){}}(c,e,f),function(a,b,c){b.animationsWithPromises=[],b.Animation=function(b,c){if(this.id="",b&&b._id&&(this.id=b._id),this.effect=b,b&&(b._animation=this),!c)thrownewError("Animation with null timeline is not supported");this._timeline=c,this._sequenceNumber=a.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},b.Animation.prototype={_updatePromises:function(){vara=this._oldPlayState,b=this.playState;returnthis._readyPromise&&b!==a&&("idle"==b?(this._rejectReadyPromise(),this._readyPromise=void0):"pending"==a?this._resolveReadyPromise():"pending"==b&&(this._readyPromise=void0)),this._finishedPromise&&b!==a&&("idle"==b?(this._rejectFinishedPromise(),this._finishedPromise=void0):"finished"==b?this._resolveFinishedPromise():"finished"==a&&(this._finishedPromise=void0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();vara,c,d,e,f=!!this._animation;f&&(a=this.playbackRate,c=this._paused,d=this.startTime,e=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effectinstanceofwindow.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect)