"use strict";!function(t){function e(e,n){var i=this;i.elem=t(e),i.opts=t.extend({},i.elem.data(),n),i.init()}t.animateCSS=t.extend({EFFECTS:{attentionSeekers:["bounce","flash","headShake","jello","pulse","rubberBand","shake","swing","tada","wobble","heartBeat"],bouncingEntrances:["bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"],bouncingExits:["bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp"],fadingEntrances:["fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig"],fadingExits:["fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig"],flipEntrances:["flip","flipInX","flipInY"],flipExits:["flipOutX","flipOutY"],lightspeedEntrances:["lightSpeedIn"],lightspeedExits:["lightSpeedOut"],rotatingEntrances:["rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight"],rotatingExits:["rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight"],slidingEntrances:["slideInDown","slideInLeft","slideInRight","slideInUp"],slidingExits:["slideOutDown","slideOutLeft","slideOutRight","slideOutUp"],specials:["hinge","jackInTheBox","rollIn","rollOut"],zoomingEntrances:["zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp"],zoomingExits:["zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp"]}}),e.prototype.init=function(){var e=this;e._groups=[],t.each(t.animateCSS.EFFECTS,(function(t){e._groups.push(t)})),e._groupRegex=new RegExp(e._groups.join("|"),"i"),e.elem.on("refresh",(function(t,n){e.animate(n)})),e.opts.effect=e.opts.effect.split(/\s*,\s*/)},e.prototype.getEffects=function(e){return void 0===e?t.animateCSS.EFFECTS:t.animateCSS.EFFECTS[e]},e.prototype.getEffect=function(e){var n=this,i=e||n.opts.effect;if("string"==typeof i)n._groupRegex.test(i)?i=n.randomEffect(t.animateCSS.EFFECTS[i]):"random"===i&&(i=n.randomEffect());else{if(1==i.length)return n.getEffect(i[0]);i=n.randomElem(i)}return i},e.prototype.randomEffect=function(e){var n=this;return void 0===e&&(e=t.animateCSS.EFFECTS[n.randomElem(n._groups)]),n.randomElem(e)},e.prototype.randomElem=function(t){return t[Math.floor(Math.random()*t.length)]},e.prototype.animate=function(e){var n=this,i=t.Deferred(),o=n.getEffect(e);return n.opts.infinite&&(o+=" infinite"),n.elem.trigger("start.animate"),this.elem.addClass("animated").addClass(o).one("animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd mozAnimationEnd oanimationend",(function(){n.elem.removeClass(o),n.elem.trigger("stop.animate"),i.resolve()})),i.promise()},t.fn.animateCSS=function(n){return this.each((function(){var i=t.data(this,"animateCSS");return"string"==typeof n&&(n={effect:n}),i?t.extend(i.opts,n):(i=new e(this,n),t.data(this,"animateCSS",i)),i.animate()}))},t(".jqAnimateCSS").livequery((function(){t(this).animateCSS()}))}(jQuery);
