").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,e){var i=this;if("disabled"===t)return this[e?"_disable":"_enable"](),void(this.options[t]=e);this._super(t,e),"content"===t&&T.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_disable:function(){var s=this;T.each(this.tooltips,function(t,e){var i=T.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=T(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=T(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,e=T(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=T(this);e.data("ui-tooltip-open")&&((t=T.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t)return this._open(i,e,t);(t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,o,a,r=T.extend({},this.options.position);function h(t){r.of=t,n.is(":hidden")||n.position(r)}i&&((s=this._find(e))?s.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),s=this._tooltip(e),n=s.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),i.clone?(a=i.clone()).removeAttr("id").find("[id]").removeAttr("id"):a=i,T("
").html(a).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:h}),h(t)):n.position(T.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){n.is(":visible")&&(h(r.of),clearInterval(o))},T.fx.interval)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===T.ui.keyCode.ESCAPE&&((t=T.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=T(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(T(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&T.each(this.parents,function(t,e){T(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=T("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),i=e.uniqueId().attr("id");return T("
").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var s=this;T.each(this.tooltips,function(t,e){var i=T.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),T("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var c,d,u,f,p,g,m,v,b,w,_,y,x,C,z,W,D,H,I,E,N,P="ui-effects-",S=T;function M(t,e,i){var s=b[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:s.max")[0],y=d.each,_.style.cssText="background-color:rgba(1,1,1,.5)",w.rgba=-1<_.style.backgroundColor.indexOf("rgba"),y(v,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),(m.fn=d.extend(m.prototype,{parse:function(n,t,e,i){if(n===u)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=d(n).css(t),t=u);var s,o=this,a=this._rgba=[];return"function"==typeof n&&(s="function"),t!==u&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(k(n)||f._default):"array"===s?(y(v.rgba.props,function(t,e){a[e.idx]=M(n[e.idx],e)}),this):"object"===s?(y(v,n instanceof m?function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}:function(t,i){var s=i.cache;y(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=M(n[t],e,!0)}),o[s]&&d.inArray(null,o[s].slice(0,3))<0&&(o[s][3]=1,i.from&&(o._rgba=i.from(o[s])))}),this):void 0},is:function(t){var n=m(t),o=!0,a=this;return y(v,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],y(e.props,function(t,e){if(null!=s[e.idx])return o=s[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],s=this;return y(v,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var e=(l=m(t))._space(),i=v[e],t=0===this.alpha()?m("transparent"):this,r=t[i.cache]||i.to(t._rgba),h=r.slice(),l=l[i.cache];return y(i.props,function(t,e){var i=e.idx,s=r[i],n=l[i],o=b[e.type]||{};null!==n&&(null===s?h[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),h[i]=M((n-s)*a+s,e)))}),this[e](h)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=m(t)._rgba;return m(d.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=d.map(this._rgba,function(t,e){return null==t?2
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!T.contains(i[0],n)||T(n).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(T.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),T.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!T.contains(t[0],e)||T(e).focus()),t},setTransition:function(s,t,n,o){return o=o||{},T.each(t,function(t,e){var i=s.cssUnit(e);0
").css({position:"absolute",visibility:"visible",left:-s*f,top:-i*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:p,left:n+(d?a*f:0),top:o+(d?r*p:0),opacity:d?0:1}).animate({left:n+(d?0:a*f),top:o+(d?0:r*p),opacity:d?1:0},t.duration||500,t.easing,m)},T.effects.effect.fade=function(t,e){var i=T(this),s=T.effects.setMode(i,t.mode||"toggle");i.animate({opacity:s},{queue:!1,duration:t.duration,easing:t.easing,complete:e})},T.effects.effect.fold=function(t,e){var i=T(this),s=["position","top","bottom","left","right","height","width"],n=T.effects.setMode(i,t.mode||"hide"),o="show"===n,a="hide"===n,r=t.size||15,h=/([0-9]+)%/.exec(r),l=!!t.horizFirst,c=o!=l,d=c?["width","height"]:["height","width"],u=t.duration/2,f={},p={};T.effects.save(i,s),i.show(),n=T.effects.createWrapper(i).css({overflow:"hidden"}),c=c?[n.width(),n.height()]:[n.height(),n.width()],h&&(r=parseInt(h[1],10)/100*c[a?0:1]),o&&n.css(l?{height:0,width:r}:{height:r,width:0}),f[d[0]]=o?c[0]:r,p[d[1]]=o?c[1]:0,n.animate(f,u,t.easing).animate(p,u,t.easing,function(){a&&i.hide(),T.effects.restore(i,s),T.effects.removeWrapper(i),e()})},T.effects.effect.highlight=function(t,e){var i=T(this),s=["backgroundImage","backgroundColor","opacity"],n=T.effects.setMode(i,t.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"===n&&(o.opacity=0),T.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&i.hide(),T.effects.restore(i,s),e()}})},T.effects.effect.size=function(o,t){var e,a,r=T(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["width","height","overflow"],s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=T.effects.setMode(r,o.mode||"effect"),d=o.restore||"effect"!==n,u=o.scale||"both",f=o.origin||["middle","center"],p=r.css("position"),g=d?i:["position","top","bottom","left","right","overflow","opacity"],m={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&r.show(),e={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===o.mode&&"show"===n?(r.from=o.to||m,r.to=o.from||e):(r.from=o.from||("show"===n?m:e),r.to=o.to||("hide"===n?m:e)),a={from:{y:r.from.height/e.height,x:r.from.width/e.width},to:{y:r.to.height/e.height,x:r.to.width/e.width}},"box"!==u&&"both"!==u||(a.from.y!==a.to.y&&(g=g.concat(l),r.from=T.effects.setTransition(r,l,a.from.y,r.from),r.to=T.effects.setTransition(r,l,a.to.y,r.to)),a.from.x!==a.to.x&&(g=g.concat(c),r.from=T.effects.setTransition(r,c,a.from.x,r.from),r.to=T.effects.setTransition(r,c,a.to.x,r.to))),"content"!==u&&"both"!==u||a.from.y!==a.to.y&&(g=g.concat(s).concat(h),r.from=T.effects.setTransition(r,s,a.from.y,r.from),r.to=T.effects.setTransition(r,s,a.to.y,r.to)),T.effects.save(r,g),r.show(),T.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),f&&(f=T.effects.getBaseline(f,e),r.from.top=(e.outerHeight-r.outerHeight())*f.y,r.from.left=(e.outerWidth-r.outerWidth())*f.x,r.to.top=(e.outerHeight-r.to.outerHeight)*f.y,r.to.left=(e.outerWidth-r.to.outerWidth)*f.x),r.css(r.from),"content"!==u&&"both"!==u||(l=l.concat(["marginTop","marginBottom"]).concat(s),c=c.concat(["marginLeft","marginRight"]),h=i.concat(l).concat(c),r.find("*[width]").each(function(){var t=T(this),e=t.height(),i=t.width(),s=t.outerHeight(),n=t.outerWidth();d&&T.effects.save(t,h),t.from={height:e*a.from.y,width:i*a.from.x,outerHeight:s*a.from.y,outerWidth:n*a.from.x},t.to={height:e*a.to.y,width:i*a.to.x,outerHeight:e*a.to.y,outerWidth:i*a.to.x},a.from.y!==a.to.y&&(t.from=T.effects.setTransition(t,l,a.from.y,t.from),t.to=T.effects.setTransition(t,l,a.to.y,t.to)),a.from.x!==a.to.x&&(t.from=T.effects.setTransition(t,c,a.from.x,t.from),t.to=T.effects.setTransition(t,c,a.to.x,t.to)),t.css(t.from),t.animate(t.to,o.duration,o.easing,function(){d&&T.effects.restore(t,h)})})),r.animate(r.to,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===n&&r.hide(),T.effects.restore(r,g),d||("static"===p?r.css({position:"relative",top:r.to.top,left:r.to.left}):T.each(["top","left"],function(n,t){r.css(t,function(t,e){var i=parseInt(e,10),s=n?r.to.left:r.to.top;return"auto"===e?s+"px":i+s+"px"})})),T.effects.removeWrapper(r),t()}})},T.effects.effect.scale=function(t,e){var i=T(this),s=T.extend(!0,{},t),n=T.effects.setMode(i,t.mode||"effect"),o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"hide"===n?0:100),a=t.direction||"both",r=t.origin,h={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},l="horizontal"!==a?o/100:1,o="vertical"!==a?o/100:1;s.effect="size",s.queue=!1,s.complete=e,"effect"!==n&&(s.origin=r||["middle","center"],s.restore=!0),s.from=t.from||("show"===n?{height:0,width:0,outerHeight:0,outerWidth:0}:h),s.to={height:h.height*l,width:h.width*o,outerHeight:h.outerHeight*l,outerWidth:h.outerWidth*o},s.fade&&("show"===n&&(s.from.opacity=0,s.to.opacity=1),"hide"===n&&(s.from.opacity=1,s.to.opacity=0)),i.effect(s)},T.effects.effect.puff=function(t,e){var i=T(this),s=T.effects.setMode(i,t.mode||"hide"),n="hide"===s,o=parseInt(t.percent,10)||150,a=o/100,r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};T.extend(t,{effect:"scale",queue:!1,fade:!0,mode:s,complete:e,percent:n?o:100,from:n?r:{height:r.height*a,width:r.width*a,outerHeight:r.outerHeight*a,outerWidth:r.outerWidth*a}}),i.effect(t)},T.effects.effect.pulsate=function(t,e){var i,s=T(this),n=T.effects.setMode(s,t.mode||"show"),o="show"===n,a="hide"===n,r=2*(t.times||5)+(o||"hide"===n?1:0),h=t.duration/r,l=0,c=s.queue(),n=c.length;for(!o&&s.is(":visible")||(s.css("opacity",0).show(),l=1),i=1;i
").appendTo(document.body).addClass(t.className).css({top:s.top-a,left:s.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(o,t.duration,t.easing,function(){h.remove(),e()})}});