(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):c(jQuery)})(function(c){c.effects={effect:{}};(function(c,h){function b(f,a,c){var b=w[a.type]||{};if(null==f)return c||!a.def?null:a.def;f=b.floor?~~f:parseFloat(f);return isNaN(f)?a.def:b.mod?(f+b.mod)%b.mod:0>f?0:b.max<f?b.max:f}function a(f){var a=g(),b=a._rgba=[];f=f.toLowerCase();p(m,function(c,e){var d,g=e.re.exec(f);d=g&&e.parse(g);g=e.space||"rgba";if(d)return d=a[g](d),a[k[g].cache]=d[k[g].cache],b=a._rgba=d._rgba,
!1});return b.length?("0,0,0,0"===b.join()&&c.extend(b,u.transparent),a):u[f]}function e(f,a,b){b=(b+1)%1;return 1>6*b?f+(a-f)*b*6:1>2*b?a:2>3*b?f+(a-f)*(2/3-b)*6:f}var d=/^([\-+])=\s*(\d+\.?\d*)/,m=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(f){return[f[1],f[2],f[3],f[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(f){return[2.55*f[1],2.55*f[2],2.55*
f[3],f[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(f){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(f){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(f){return[f[1],f[2]/100,f[3]/100,f[4]]}}],g=c.Color=function(f,a,b,e){return new c.Color.fn.parse(f,
a,b,e)},k={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},w={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},x=g.support={},n=c("<p>")[0],u,p=c.each;n.style.cssText="background-color:rgba(1,1,1,.5)";x.rgba=-1<n.style.backgroundColor.indexOf("rgba");p(k,function(f,a){a.cache="_"+f;a.props.alpha={idx:3,type:"percent",def:1}});
g.fn=c.extend(g.prototype,{parse:function(f,e,d,r){if(f===h)return this._rgba=[null,null,null,null],this;if(f.jquery||f.nodeType)f=c(f).css(e),e=h;var l=this,t=c.type(f),m=this._rgba=[];e!==h&&(f=[f,e,d,r],t="array");if("string"===t)return this.parse(a(f)||u._default);if("array"===t)return p(k.rgba.props,function(a,c){m[c.idx]=b(f[c.idx],c)}),this;if("object"===t)return f instanceof g?p(k,function(a,b){f[b.cache]&&(l[b.cache]=f[b.cache].slice())}):p(k,function(a,e){var d=e.cache;p(e.props,function(a,
c){if(!l[d]&&e.to){if("alpha"===a||null==f[a])return;l[d]=e.to(l._rgba)}l[d][c.idx]=b(f[a],c,!0)});l[d]&&0>c.inArray(null,l[d].slice(0,3))&&(l[d][3]=1,e.from&&(l._rgba=e.from(l[d])))}),this},is:function(a){var b=g(a),c=!0,e=this;p(k,function(a,f){var d,g=b[f.cache];g&&(d=e[f.cache]||f.to&&f.to(e._rgba)||[],p(f.props,function(a,f){if(null!=g[f.idx])return c=g[f.idx]===d[f.idx]}));return c});return c},_space:function(){var a=[],b=this;p(k,function(c,e){b[e.cache]&&a.push(c)});return a.pop()},transition:function(a,
c){var e=g(a),d=e._space(),l=k[d],h=0===this.alpha()?g("transparent"):this,m=h[l.cache]||l.to(h._rgba),v=m.slice(),e=e[l.cache];p(l.props,function(a,f){var d=f.idx,g=m[d],r=e[d],l=w[f.type]||{};null!==r&&(null===g?v[d]=r:(l.mod&&(r-g>l.mod/2?g+=l.mod:g-r>l.mod/2&&(g-=l.mod)),v[d]=b((r-g)*c+g,f)))});return this[d](v)},blend:function(a){if(1===this._rgba[3])return this;var b=this._rgba.slice(),e=b.pop(),d=g(a)._rgba;return g(c.map(b,function(a,f){return(1-e)*d[f]+e*a}))},toRgbaString:function(){var a=
"rgba(",b=c.map(this._rgba,function(a,b){return null==a?2<b?1:0:a});1===b[3]&&(b.pop(),a="rgb(");return a+b.join()+")"},toHslaString:function(){var a="hsla(",b=c.map(this.hsla(),function(a,b){null==a&&(a=2<b?1:0);b&&3>b&&(a=Math.round(100*a)+"%");return a});1===b[3]&&(b.pop(),a="hsl(");return a+b.join()+")"},toHexString:function(a){var b=this._rgba.slice(),e=b.pop();a&&b.push(~~(255*e));return"#"+c.map(b,function(a){a=(a||0).toString(16);return 1===a.length?"0"+a:a}).join("")},toString:function(){return 0===
this._rgba[3]?"transparent":this.toRgbaString()}});g.fn.parse.prototype=g.fn;k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/255,c=a[1]/255,e=a[2]/255;a=a[3];var d=Math.max(b,c,e),g=Math.min(b,c,e),h=d-g,m=d+g,k=.5*m;return[Math.round(g===d?0:b===d?60*(c-e)/h+360:c===d?60*(e-b)/h+120:60*(b-c)/h+240)%360,0===h?0:.5>=k?h/m:h/(2-m),k,null==a?1:a]};k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,
c=a[1],d=a[2];a=a[3];c=.5>=d?d*(1+c):d+c-d*c;d=2*d-c;return[Math.round(255*e(d,c,b+1/3)),Math.round(255*e(d,c,b)),Math.round(255*e(d,c,b-1/3)),a]};p(k,function(a,e){var m=e.props,k=e.cache,l=e.to,t=e.from;g.fn[a]=function(a){l&&!this[k]&&(this[k]=l(this._rgba));if(a===h)return this[k].slice();var e,d=c.type(a),f="array"===d||"object"===d?a:arguments,n=this[k].slice();p(m,function(a,c){var e=f["object"===d?a:c.idx];null==e&&(e=n[c.idx]);n[c.idx]=b(e,c)});return t?(e=g(t(n)),e[k]=n,e):g(n)};p(m,function(b,
e){g.fn[b]||(g.fn[b]=function(g){var h=c.type(g),m="alpha"===b?this._hsla?"hsla":"rgba":a,k=this[m](),l=k[e.idx];if("undefined"===h)return l;"function"===h&&(g=g.call(this,l),h=c.type(g));if(null==g&&e.empty)return this;"string"===h&&(h=d.exec(g))&&(g=l+parseFloat(h[2])*("+"===h[1]?1:-1));k[e.idx]=g;return this[m](k)})})});g.hook=function(b){b=b.split(" ");p(b,function(b,e){c.cssHooks[e]={set:function(b,d){var f,h="";if("transparent"!==d&&("string"!==c.type(d)||(f=a(d)))){d=g(f||d);if(!x.rgba&&1!==
d._rgba[3]){for(f="backgroundColor"===e?b.parentNode:b;(""===h||"transparent"===h)&&f&&f.style;)try{h=c.css(f,"backgroundColor"),f=f.parentNode}catch(k){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[e]=d}catch(k){}}};c.fx.step[e]=function(a){a.colorInit||(a.start=g(a.elem,e),a.end=g(a.end),a.colorInit=!0);c.cssHooks[e].set(a.elem,a.start.transition(a.end,a.pos))}})};g.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");
c.cssHooks.borderColor={expand:function(a){var b={};p(["Top","Right","Bottom","Left"],function(e,c){b["border"+c+"Color"]=a});return b}};u=c.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(c);(function(){function q(a){var b,d=a.ownerDocument.defaultView?
a.ownerDocument.defaultView.getComputedStyle(a,null):a.currentStyle,h={};if(d&&d.length&&d[0]&&d[d[0]])for(a=d.length;a--;)b=d[a],"string"===typeof d[b]&&(h[c.camelCase(b)]=d[b]);else for(b in d)"string"===typeof d[b]&&(h[b]=d[b]);return h}var h=["add","remove","toggle"],b={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(a,b){c.fx.step[b]=function(a){if("none"!==
a.end&&!a.setAttr||1===a.pos&&!a.setAttr)c.style(a.elem,b,a.end),a.setAttr=!0}});c.fn.addBack||(c.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});c.effects.animateClass=function(a,e,d,m){var g=c.speed(e,d,m);return this.queue(function(){var e=c(this),d=e.attr("class")||"",m,n=g.children?e.find("*").addBack():e,n=n.map(function(){return{el:c(this),start:q(this)}});m=function(){c.each(h,function(b,c){if(a[c])e[c+"Class"](a[c])})};m();n=n.map(function(){this.end=
q(this.el[0]);var a=this.start,e=this.end,d={},g,h;for(g in e)h=e[g],a[g]===h||b[g]||!c.fx.step[g]&&isNaN(parseFloat(h))||(d[g]=h);this.diff=d;return this});e.attr("class",d);n=n.map(function(){var a=this,b=c.Deferred(),e=c.extend({},g,{queue:!1,complete:function(){b.resolve(a)}});this.el.animate(this.diff,e);return b.promise()});c.when.apply(c,n.get()).done(function(){m();c.each(arguments,function(){var a=this.el;c.each(this.diff,function(b){a.css(b,"")})});g.complete.call(e[0])})})};c.fn.extend({addClass:function(a){return function(b,
d,h,g){return d?c.effects.animateClass.call(this,{add:b},d,h,g):a.apply(this,arguments)}}(c.fn.addClass),removeClass:function(a){return function(b,d,h,g){return 1<arguments.length?c.effects.animateClass.call(this,{remove:b},d,h,g):a.apply(this,arguments)}}(c.fn.removeClass),toggleClass:function(a){return function(b,d,h,g,k){return"boolean"===typeof d||void 0===d?h?c.effects.animateClass.call(this,d?{add:b}:{remove:b},h,g,k):a.apply(this,arguments):c.effects.animateClass.call(this,{toggle:b},d,h,g)}}(c.fn.toggleClass),
switchClass:function(a,b,d,h,g){return c.effects.animateClass.call(this,{add:b,remove:a},d,h,g)}})})();(function(){function q(b,a,e,d){c.isPlainObject(b)&&(a=b,b=b.effect);b={effect:b};null==a&&(a={});c.isFunction(a)&&(d=a,e=null,a={});if("number"===typeof a||c.fx.speeds[a])d=e,e=a,a={};c.isFunction(e)&&(d=e,e=null);a&&c.extend(b,a);e=e||a.duration;b.duration=c.fx.off?0:"number"===typeof e?e:e in c.fx.speeds?c.fx.speeds[e]:c.fx.speeds._default;b.complete=d||a.complete;return b}function h(b){return!b||
"number"===typeof b||c.fx.speeds[b]||"string"===typeof b&&!c.effects.effect[b]||c.isFunction(b)||"object"===typeof b&&!b.effect?!0:!1}c.extend(c.effects,{version:"1.11.4",save:function(b,a){for(var c=0;c<a.length;c++)null!==a[c]&&b.data("ui-effects-"+a[c],b[0].style[a[c]])},restore:function(b,a){var c,d;for(d=0;d<a.length;d++)null!==a[d]&&(c=b.data("ui-effects-"+a[d]),void 0===c&&(c=""),b.css(a[d],c))},setMode:function(b,a){"toggle"===a&&(a=b.is(":hidden")?"show":"hide");return a},getBaseline:function(b,
a){var c,d;switch(b[0]){case "top":c=0;break;case "middle":c=.5;break;case "bottom":c=1;break;default:c=b[0]/a.height}switch(b[1]){case "left":d=0;break;case "center":d=.5;break;case "right":d=1;break;default:d=b[1]/a.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var a={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},e=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",
margin:0,padding:0}),d={width:b.width(),height:b.height()},h=document.activeElement;try{h.id}catch(g){h=document.body}b.wrap(e);(b[0]===h||c.contains(b[0],h))&&c(h).focus();e=b.parent();"static"===b.css("position")?(e.css({position:"relative"}),b.css({position:"relative"})):(c.extend(a,{position:b.css("position"),zIndex:b.css("z-index")}),c.each(["top","left","bottom","right"],function(c,d){a[d]=b.css(d);isNaN(parseInt(a[d],10))&&(a[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",
bottom:"auto"}));b.css(d);return e.css(a).show()},removeWrapper:function(b){var a=document.activeElement;b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===a||c.contains(b[0],a))&&c(a).focus());return b},setTransition:function(b,a,e,d){d=d||{};c.each(a,function(a,c){var h=b.cssUnit(c);0<h[0]&&(d[c]=h[0]*e+h[1])});return d}});c.fn.extend({effect:function(){function b(b){function d(){c.isFunction(q)&&q.call(e[0]);c.isFunction(b)&&b()}var e=c(this),q=a.complete,n=a.mode;(e.is(":hidden")?
"hide"===n:"show"===n)?(e[n](),d()):h.call(e[0],a,d)}var a=q.apply(this,arguments),e=a.mode,d=a.queue,h=c.effects.effect[a.effect];return c.fx.off||!h?e?this[e](a.duration,a.complete):this.each(function(){a.complete&&a.complete.call(this)}):!1===d?this.each(b):this.queue(d||"fx",b)},show:function(b){return function(a){if(h(a))return b.apply(this,arguments);var c=q.apply(this,arguments);c.mode="show";return this.effect.call(this,c)}}(c.fn.show),hide:function(b){return function(a){if(h(a))return b.apply(this,
arguments);var c=q.apply(this,arguments);c.mode="hide";return this.effect.call(this,c)}}(c.fn.hide),toggle:function(b){return function(a){if(h(a)||"boolean"===typeof a)return b.apply(this,arguments);var c=q.apply(this,arguments);c.mode="toggle";return this.effect.call(this,c)}}(c.fn.toggle),cssUnit:function(b){var a=this.css(b),e=[];c.each(["em","px","%","pt"],function(b,c){0<a.indexOf(c)&&(e=[parseFloat(a),c])});return e}})})();(function(){var q={};c.each(["Quad","Cubic","Quart","Quint","Expo"],
function(c,b){q[b]=function(a){return Math.pow(a,c+2)}});c.extend(q,{Sine:function(c){return 1-Math.cos(c*Math.PI/2)},Circ:function(c){return 1-Math.sqrt(1-c*c)},Elastic:function(c){return 0===c||1===c?c:-Math.pow(2,8*(c-1))*Math.sin((80*(c-1)-7.5)*Math.PI/15)},Back:function(c){return c*c*(3*c-2)},Bounce:function(c){for(var b,a=4;c<((b=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((3*b-2)/22-c,2)}});c.each(q,function(h,b){c.easing["easeIn"+h]=b;c.easing["easeOut"+h]=function(a){return 1-
b(1-a)};c.easing["easeInOut"+h]=function(a){return.5>a?b(2*a)/2:1-b(-2*a+2)/2}})})();return c.effects});