window.hzmr = window.hzmr || [];
/************* Start animations.js for locale en-US **************/
try {function hitch(t,n){return function(){var i=Array.prototype.slice.call(arguments);return n.apply(t,i=null==i?[]:i)}}var AnimationTransformation={neutralTransform:function(i){return i},easeInOutSCurveTransform:function(i){return 3*i*i-2*i*i*i},easeInOutSinTransform:function(i){i=Math.sin(i*Math.PI/2);return i*i},easeInOutSin2Transform:function(i){i-=Math.sin(i*Math.PI*2)/(2*Math.PI);return i*i}};function Animation(t,n,s){this.handlers=n,this.duration=t,this.started=!1,this.startTime=null,this.transform=null!=s?s:AnimationTransformation.easeInOutSin2Transform,this.process=function(t){for(i in t=this.transform(t),this.handlers){var n=this.handlers[i];n.handleAnimationProgress.apply(n,[t])}},this.finish=function(){for(i in this.handlers){var t=this.handlers[i];t.handleAnimationFinished.apply(t)}}}function SlideAnimationHandler(s,i,t){this.divElement=s,this.x=i.x,this.y=i.y,this.dx=t.x-i.x,this.dy=t.y-i.y,this.lastProgress=0,this.handleAnimationProgress=function(i){var t=this.x+i*this.dx,n=this.y+i*this.dy;s.style.top=n+"px",s.style.left=t+"px",this.lastProgress=i},this.handleAnimationFinished=function(){}}function OpacityAnimationHandler(t,i,n){this.divElement=t,this.startOpacity=i,this.endOpacity=n,this.handleAnimationProgress=function(i){t.style.visibility="visible";i=this.startOpacity+i*(this.endOpacity-this.startOpacity);t.style.opacity=i,t.style.filter="alpha(opacity="+100*i+")"},this.handleAnimationFinished=function(){1==this.endOpacity&&t.style.removeAttribute&&t.style.removeAttribute("filter")}}function DimensionsAnimationHandler(s,i,t){this.divElement=s,this.w=i.w,this.h=i.h,this.dw=t.w-i.w,this.dh=t.h-i.h,this.lastProgress=0,this.handleAnimationProgress=function(i){var t=this.w+i*this.dw,n=this.h+i*this.dh;s.style.width=t+"px",s.style.height=n+"px",this.lastProgress=i},this.handleAnimationFinished=function(){}}function Animator(){this.animationThread=null,this.animations=[],this.addAnimation=function(i){this.animations.push(i)},this.removeAnimation=function(t){for(i in this.animations)if(this.animations[i]==t)return void this.animations.splice(i,1)},this.startAnimationsThread=function(){null==this.animationThread&&0<this.animations.length&&(this.animationThread=setInterval(hitch(this,this.animate),20))},this.stopAnimationsThread=function(){null!=this.animationThread&&0==this.animations.length&&(clearInterval(this.animationThread),this.animationThread=null)},this.startAnimation=function(i){var t=(new Date).getTime();1==i.started&&this.stopAnimation(i),i.started=!0,i.startTime=t,i.progressCallback&&i.progressCallback(0),this.startAnimationsThread()},this.stopAnimation=function(i){i.process(1),i.finish(),this.stopAnimationsThread()},this.animate=function(){var t=(new Date).getTime(),n=this.animations.slice(0);for(i in n){var s,a=n[i];null!=a&&(1<=(s=(t-a.startTime)/(1e3*a.duration))?(this.removeAnimation(a),this.stopAnimation(a)):a.process(s))}}}

window.hzmr.push("animations:28948098");
} catch (err) {HZ.utils.Logger.sendJsExceptionStackTrace(err)}

/*************  End animations.js  **************/
