").appendTo(i),a=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[a]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var a=e.Event("blur"),n=s.element;a.target=a.currentTarget=n[0],t.close(a,!0),e("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),e.uiBackCompat!==!1&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip;var m="ui-effects-",f="ui-effects-style",g="ui-effects-animated",v=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=h(),a=s._rgba=[];return i=i.toLowerCase(),m(l,function(e,n){var r,o=n.re.exec(i),l=o&&n.parse(o),h=n.space||"rgba";return l?(r=s[h](l),s[u[h].cache]=r[u[h].cache],a=s._rgba=r._rgba,!1):t}),a.length?("0,0,0,0"===a.join()&&e.extend(a,n.transparent),s):n[i]}function a(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var n,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],h=e.Color=function(t,i,s,a){return new e.Color.fn.parse(t,i,s,a)},u={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"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=h.support={},p=e("
")[0],m=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,m(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),h.fn=e.extend(h.prototype,{parse:function(a,r,o,l){if(a===t)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=e(a).css(r),r=t);var d=this,c=e.type(a),p=this._rgba=[];return r!==t&&(a=[a,r,o,l],c="array"),"string"===c?this.parse(s(a)||n._default):"array"===c?(m(u.rgba.props,function(e,t){p[t.idx]=i(a[t.idx],t)}),this):"object"===c?(a instanceof h?m(u,function(e,t){a[t.cache]&&(d[t.cache]=a[t.cache].slice())}):m(u,function(t,s){var n=s.cache;m(s.props,function(e,t){if(!d[n]&&s.to){if("alpha"===e||null==a[e])return;d[n]=s.to(d._rgba)}d[n][t.idx]=i(a[e],t,!0)}),d[n]&&0>e.inArray(null,d[n].slice(0,3))&&(d[n][3]=1,s.from&&(d._rgba=s.from(d[n])))}),this):t},is:function(e){var i=h(e),s=!0,a=this;return m(u,function(e,n){var r,o=i[n.cache];return o&&(r=a[n.cache]||n.to&&n.to(a._rgba)||[],m(n.props,function(e,i){return null!=o[i.idx]?s=o[i.idx]===r[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return m(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=h(e),a=s._space(),n=u[a],r=0===this.alpha()?h("transparent"):this,o=r[n.cache]||n.to(r._rgba),l=o.slice();return s=s[n.cache],m(n.props,function(e,a){var n=a.idx,r=o[n],h=s[n],u=d[a.type]||{};null!==h&&(null===r?l[n]=h:(u.mod&&(h-r>u.mod/2?r+=u.mod:r-h>u.mod/2&&(r-=u.mod)),l[n]=i((h-r)*t+r,a)))}),this[a](l)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),a=h(t)._rgba;return h(e.map(i,function(e,t){return(1-s)*a[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,a=e[1]/255,n=e[2]/255,r=e[3],o=Math.max(s,a,n),l=Math.min(s,a,n),h=o-l,u=o+l,d=.5*u;return t=l===o?0:s===o?60*(a-n)/h+360:a===o?60*(n-s)/h+120:60*(s-a)/h+240,i=0===h?0:.5>=d?h/u:h/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],n=e[3],r=.5>=s?s*(1+i):s+i-s*i,o=2*s-r;return[Math.round(255*a(o,r,t+1/3)),Math.round(255*a(o,r,t)),Math.round(255*a(o,r,t-1/3)),n]},m(u,function(s,a){var n=a.props,r=a.cache,l=a.to,u=a.from;h.fn[s]=function(s){if(l&&!this[r]&&(this[r]=l(this._rgba)),s===t)return this[r].slice();var a,o=e.type(s),d="array"===o||"object"===o?s:arguments,c=this[r].slice();return m(n,function(e,t){var s=d["object"===o?e:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u?(a=h(u(c)),a[r]=c,a):h(c)},m(n,function(t,i){h.fn[t]||(h.fn[t]=function(a){var n,r=e.type(a),l="alpha"===t?this._hsla?"hsla":"rgba":s,h=this[l](),u=h[i.idx];return"undefined"===r?u:("function"===r&&(a=a.call(this,u),r=e.type(a)),null==a&&i.empty?this:("string"===r&&(n=o.exec(a),n&&(a=u+parseFloat(n[2])*("+"===n[1]?1:-1))),h[i.idx]=a,this[l](h)))})})}),h.hook=function(t){var i=t.split(" ");m(i,function(t,i){e.cssHooks[i]={set:function(t,a){var n,r,o="";if("transparent"!==a&&("string"!==e.type(a)||(n=s(a)))){if(a=h(n||a),!c.rgba&&1!==a._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=e.css(r,"backgroundColor"),r=r.parentNode}catch(l){}a=a.blend(o&&"transparent"!==o?o:"_default")}a=a.toRgbaString()}try{t.style[i]=a}catch(l){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=h(t.elem,i),t.end=h(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},h.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return m(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},n=e.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"}}(v),function(){function t(t){var i,s,a=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(a&&a.length&&a[0]&&a[a[0]])for(s=a.length;s--;)i=a[s],"string"==typeof a[i]&&(n[e.camelCase(i)]=a[i]);else for(i in a)"string"==typeof a[i]&&(n[i]=a[i]);return n}function i(t,i){var s,n,r={};for(s in i)n=i[s],t[s]!==n&&(a[s]||(e.fx.step[s]||!isNaN(parseFloat(n)))&&(r[s]=n));return r}var s=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(v.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(a,n,r,o){var l=e.speed(n,r,o);return this.queue(function(){var n,r=e(this),o=r.attr("class")||"",h=l.children?r.find("*").addBack():r;h=h.map(function(){var i=e(this);return{el:i,start:t(this)}}),n=function(){e.each(s,function(e,t){a[t]&&r[t+"Class"](a[t])})},n(),h=h.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",o),h=h.map(function(){var t=this,i=e.Deferred(),s=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,h.get()).done(function(){n(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({addClass:function(t){return function(i,s,a,n){return s?e.effects.animateClass.call(this,{add:i},s,a,n):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,a,n){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,a,n):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,a,n,r){return"boolean"==typeof s||void 0===s?a?e.effects.animateClass.call(this,s?{add:i}:{remove:i},a,n,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,a,n)}}(e.fn.toggleClass),switchClass:function(t,i,s,a,n){return e.effects.animateClass.call(this,{add:i,remove:t},s,a,n)}})}(),function(){function t(t,i,s,a){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(a=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(a=s,s=i,i={}),e.isFunction(s)&&(a=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=a||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}function s(e,t){var i=t.outerWidth(),s=t.outerHeight(),a=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,n=a.exec(e)||["",0,i,s,0];return{top:parseFloat(n[1])||0,right:"auto"===n[2]?i:parseFloat(n[2]),bottom:"auto"===n[3]?s:parseFloat(n[3]),left:parseFloat(n[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(i){return!!e(i).data(g)||t(i)}}(e.expr.filters.animated)),e.uiBackCompat!==!1&&e.extend(e.effects,{save:function(e,t){for(var i=0,s=t.length;s>i;i++)null!==t[i]&&e.data(m+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,s=0,a=t.length;a>s;s++)null!==t[s]&&(i=e.data(m+t[s]),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a={width:t.width(),height:t.height()},n=document.activeElement;try{n.id}catch(r){n=document.body}return t.wrap(s),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus"),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(a),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,i,s){return s||(s=i,i="effect"),e.effects.effect[t]=s,e.effects.effect[t].mode=i,s},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(t||100)/100:1,a="vertical"!==i?(t||100)/100:1;return{height:e.height()*a,width:e.width()*s,outerHeight:e.outerHeight()*a,outerWidth:e.outerWidth()*s}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var s=e.queue();t>1&&s.splice.apply(s,[1,0].concat(s.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(f,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(f)||"",e.removeData(f)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createPlaceholder:function(t){var i,s=t.css("position"),a=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),"float":t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(m+"placeholder",i)),t.css({position:s,left:a.left,top:a.top}),i},removePlaceholder:function(e){var t=m+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,s,a){return a=a||{},e.each(i,function(e,i){var n=t.cssUnit(i);n[0]>0&&(a[i]=n[0]*s+n[1])}),a}}),e.fn.extend({effect:function(){function i(t){function i(){o.removeData(g),e.effects.cleanUp(o),"hide"===s.mode&&o.hide(),r()}function r(){e.isFunction(l)&&l.call(o[0]),e.isFunction(t)&&t()}var o=e(this);s.mode=u.shift(),e.uiBackCompat===!1||n?"none"===s.mode?(o[h](),r()):a.call(o[0],s,i):(o.is(":hidden")?"hide"===h:"show"===h)?(o[h](),r()):a.call(o[0],s,r)}var s=t.apply(this,arguments),a=e.effects.effect[s.effect],n=a.mode,r=s.queue,o=r||"fx",l=s.complete,h=s.mode,u=[],d=function(t){var i=e(this),s=e.effects.mode(i,h)||n;i.data(g,!0),u.push(s),n&&("show"===s||s===n&&"hide"===s)&&i.show(),n&&"none"===s||e.effects.saveStyle(i),e.isFunction(t)&&t()};return e.fx.off||!a?h?this[h](s.duration,l):this.each(function(){l&&l.call(this)}):r===!1?this.each(d).each(i):this.queue(o,d).queue(o,i)},show:function(e){return function(s){if(i(s))return e.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="show",this.effect.call(this,a)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="hide",this.effect.call(this,a)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||"boolean"==typeof s)return e.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="toggle",this.effect.call(this,a)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,i){var s=e(this),a=e(t.to),n="fixed"===a.css("position"),r=e("body"),o=n?r.scrollTop():0,l=n?r.scrollLeft():0,h=a.offset(),u={top:h.top-o,left:h.left-l,height:a.innerHeight(),width:a.innerWidth()},d=s.offset(),c=e("
").appendTo("body").addClass(t.className).css({top:d.top-o,left:d.left-l,height:s.innerHeight(),width:s.innerWidth(),position:n?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){c.remove(),e.isFunction(i)&&i()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}();var y=e.effects;e.effects.define("blind","hide",function(t,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},a=e(this),n=t.direction||"up",r=a.cssClip(),o={clip:e.extend({},r)},l=e.effects.createPlaceholder(a);o.clip[s[n][0]]=o.clip[s[n][1]],"show"===t.mode&&(a.cssClip(o.clip),l&&l.css(e.effects.clipToBox(o)),o.clip=r),l&&l.animate(e.effects.clipToBox(o),t.duration,t.easing),a.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("bounce",function(t,i){var s,a,n,r=e(this),o=t.mode,l="hide"===o,h="show"===o,u=t.direction||"up",d=t.distance,c=t.times||5,p=2*c+(h||l?1:0),m=t.duration/p,f=t.easing,g="up"===u||"down"===u?"top":"left",v="up"===u||"left"===u,y=0,_=r.queue().length;for(e.effects.createPlaceholder(r),n=r.css(g),d||(d=r["top"===g?"outerHeight":"outerWidth"]()/3),h&&(a={opacity:1},a[g]=n,r.css("opacity",0).css(g,v?2*-d:2*d).animate(a,m,f)),l&&(d/=Math.pow(2,c-1)),a={},a[g]=n;c>y;y++)s={},s[g]=(v?"-=":"+=")+d,r.animate(s,m,f).animate(a,m,f),d=l?2*d:d/2;l&&(s={opacity:0},s[g]=(v?"-=":"+=")+d,r.animate(s,m,f)),r.queue(i),e.effects.unshift(r,_,p+1)}),e.effects.define("clip","hide",function(t,i){var s,a={},n=e(this),r=t.direction||"vertical",o="both"===r,l=o||"horizontal"===r,h=o||"vertical"===r;s=n.cssClip(),a.clip={top:h?(s.bottom-s.top)/2:s.top,right:l?(s.right-s.left)/2:s.right,bottom:h?(s.bottom-s.top)/2:s.bottom,left:l?(s.right-s.left)/2:s.left},e.effects.createPlaceholder(n),"show"===t.mode&&(n.cssClip(a.clip),a.clip=s),n.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("drop","hide",function(t,i){var s,a=e(this),n=t.mode,r="show"===n,o=t.direction||"left",l="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o?"-=":"+=",u="+="===h?"-=":"+=",d={opacity:0};e.effects.createPlaceholder(a),s=t.distance||a["top"===l?"outerHeight":"outerWidth"](!0)/2,d[l]=h+s,r&&(a.css(d),d[l]=u+s,d.opacity=1),a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("explode","hide",function(t,i){function s(){_.push(this),_.length===d*c&&a()}function a(){p.css({visibility:"visible"}),e(_).remove(),i()}var n,r,o,l,h,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),m=t.mode,f="show"===m,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),_=[];for(n=0;d>n;n++)for(l=g.top+n*y,u=n-(d-1)/2,r=0;c>r;r++)o=g.left+r*v,h=r-(c-1)/2,p.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-r*v,top:-n*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:o+(f?h*v:0),top:l+(f?u*y:0),opacity:f?0:1}).animate({left:o+(f?0:h*v),top:l+(f?0:u*y),opacity:f?1:0},t.duration||500,t.easing,s)}),e.effects.define("fade","toggle",function(t,i){var s="show"===t.mode;e(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("fold","hide",function(t,i){var s=e(this),a=t.mode,n="show"===a,r="hide"===a,o=t.size||15,l=/([0-9]+)%/.exec(o),h=!!t.horizFirst,u=h?["right","bottom"]:["bottom","right"],d=t.duration/2,c=e.effects.createPlaceholder(s),p=s.cssClip(),m={clip:e.extend({},p)},f={clip:e.extend({},p)},g=[p[u[0]],p[u[1]]],v=s.queue().length;l&&(o=parseInt(l[1],10)/100*g[r?0:1]),m.clip[u[0]]=o,f.clip[u[0]]=o,f.clip[u[1]]=0,n&&(s.cssClip(f.clip),c&&c.css(e.effects.clipToBox(f)),f.clip=p),s.queue(function(i){c&&c.animate(e.effects.clipToBox(m),d,t.easing).animate(e.effects.clipToBox(f),d,t.easing),i()}).animate(m,d,t.easing).animate(f,d,t.easing).queue(i),e.effects.unshift(s,v,4)}),e.effects.define("highlight","show",function(t,i){var s=e(this),a={backgroundColor:s.css("backgroundColor")};"hide"===t.mode&&(a.opacity=0),e.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("size",function(t,i){var s,a,n,r=e(this),o=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,d="effect"!==u,c=t.scale||"both",p=t.origin||["middle","center"],m=r.css("position"),f=r.position(),g=e.effects.scaledDimensions(r),v=t.from||g,y=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===u&&(n=v,v=y,y=n),a={from:{y:v.height/g.height,x:v.width/g.width},to:{y:y.height/g.height,x:y.width/g.width}},("box"===c||"both"===c)&&(a.from.y!==a.to.y&&(v=e.effects.setTransition(r,l,a.from.y,v),y=e.effects.setTransition(r,l,a.to.y,y)),a.from.x!==a.to.x&&(v=e.effects.setTransition(r,h,a.from.x,v),y=e.effects.setTransition(r,h,a.to.x,y))),("content"===c||"both"===c)&&a.from.y!==a.to.y&&(v=e.effects.setTransition(r,o,a.from.y,v),y=e.effects.setTransition(r,o,a.to.y,y)),p&&(s=e.effects.getBaseline(p,g),v.top=(g.outerHeight-v.outerHeight)*s.y+f.top,v.left=(g.outerWidth-v.outerWidth)*s.x+f.left,y.top=(g.outerHeight-y.outerHeight)*s.y+f.top,y.left=(g.outerWidth-y.outerWidth)*s.x+f.left),r.css(v),("content"===c||"both"===c)&&(l=l.concat(["marginTop","marginBottom"]).concat(o),h=h.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var i=e(this),s=e.effects.scaledDimensions(i),n={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},r={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x};a.from.y!==a.to.y&&(n=e.effects.setTransition(i,l,a.from.y,n),r=e.effects.setTransition(i,l,a.to.y,r)),a.from.x!==a.to.x&&(n=e.effects.setTransition(i,h,a.from.x,n),r=e.effects.setTransition(i,h,a.to.x,r)),d&&e.effects.saveStyle(i),i.css(n),i.animate(r,t.duration,t.easing,function(){d&&e.effects.restoreStyle(i)})})),r.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===y.opacity&&r.css("opacity",v.opacity),d||(r.css("position","static"===m?"relative":m).offset(t),e.effects.saveStyle(r)),i()}})}),e.effects.define("scale",function(t,i){var s=e(this),a=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==a?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(s),to:e.effects.scaledDimensions(s,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)}),e.effects.define("puff","hide",function(t,i){var s=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,s,i)}),e.effects.define("pulsate","show",function(t,i){var s=e(this),a=t.mode,n="show"===a,r="hide"===a,o=n||r,l=2*(t.times||5)+(o?1:0),h=t.duration/l,u=0,d=1,c=s.queue().length;for((n||!s.is(":visible"))&&(s.css("opacity",0).show(),u=1);l>d;d++)s.animate({opacity:u},h,t.easing),u=1-u;s.animate({opacity:u},h,t.easing),s.queue(i),e.effects.unshift(s,c,l+1)}),e.effects.define("shake",function(t,i){var s=1,a=e(this),n=t.direction||"left",r=t.distance||20,o=t.times||3,l=2*o+1,h=Math.round(t.duration/l),u="up"===n||"down"===n?"top":"left",d="up"===n||"left"===n,c={},p={},m={},f=a.queue().length;for(e.effects.createPlaceholder(a),c[u]=(d?"-=":"+=")+r,p[u]=(d?"+=":"-=")+2*r,m[u]=(d?"-=":"+=")+2*r,a.animate(c,h,t.easing);o>s;s++)a.animate(p,h,t.easing).animate(m,h,t.easing);a.animate(p,h,t.easing).animate(c,h/2,t.easing).queue(i),e.effects.unshift(a,f,l+1)}),e.effects.define("slide","show",function(t,i){var s,a,n=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},o=t.mode,l=t.direction||"left",h="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d=t.distance||n["top"===h?"outerHeight":"outerWidth"](!0),c={};e.effects.createPlaceholder(n),s=n.cssClip(),a=n.position()[h],c[h]=(u?-1:1)*d+a,c.clip=n.cssClip(),c.clip[r[l][1]]=c.clip[r[l][0]],"show"===o&&(n.cssClip(c.clip),n.css(h,c[h]),c.clip=s,c[h]=a),n.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});var y;e.uiBackCompat!==!1&&(y=e.effects.define("transfer",function(t,i){e(this).transfer(t,i)}))});