")).addclass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uibuttonset=e("
")).addclass("ui-dialog-buttonset").appendto(f),s.attr({role:"dialog","aria-labelledby":a.attr("id")}),o.find("*").add(o).disableselection(),this._hoverable(u),this._focusable(u),r.draggable&&e.fn.draggable&&this._makedraggable(),r.resizable&&e.fn.resizable&&this._makeresizable(),this._createbuttons(r.buttons),this._isopen=!1,e.fn.bgiframe&&s.bgiframe(),this._on(s,{keydown:function(t){if(!r.modal||t.keycode!==e.ui.keycode.tab)return;var n=e(":tabbable",s),i=n.filter(":first"),o=n.filter(":last");if(t.target===o[0]&&!t.shiftkey)return i.focus(1),!1;if(t.target===i[0]&&t.shiftkey)return o.focus(1),!1}})},_init:function(){this.options.autoopen&&this.open()},_destroy:function(){var e,t=this.oldposition;this.overlay&&this.overlay.destroy(),this.uidialog.hide(),this.element.removeclass("ui-dialog-content ui-widget-content").hide().appendto("body"),this.uidialog.remove(),this.originaltitle&&this.element.attr("title",this.originaltitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uidialog},close:function(t){var n=this,r,i;if(!this._isopen)return;if(!1===this._trigger("beforeclose",t))return;return this._isopen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uidialog,this.options.hide,function(){n._trigger("close",t)}):(this.uidialog.hide(),this._trigger("close",t)),e.ui.dialog.overlay.resize(),this.options.modal&&(r=0,e(".ui-dialog").each(function(){this!==n.uidialog[0]&&(i=e(this).css("z-index"),isnan(i)||(r=math.max(r,i)))}),e.ui.dialog.maxz=r),this},isopen:function(){return this._isopen},movetotop:function(t,n){var r=this.options,i;return r.modal&&!t||!r.stack&&!r.modal?this._trigger("focus",n):(r.zindex>e.ui.dialog.maxz&&(e.ui.dialog.maxz=r.zindex),this.overlay&&(e.ui.dialog.maxz+=1,e.ui.dialog.overlay.maxz=e.ui.dialog.maxz,this.overlay.$el.css("z-index",e.ui.dialog.overlay.maxz)),i={scrolltop:this.element.scrolltop(),scrollleft:this.element.scrollleft()},e.ui.dialog.maxz+=1,this.uidialog.css("z-index",e.ui.dialog.maxz),this.element.attr(i),this._trigger("focus",n),this)},open:function(){if(this._isopen)return;var t,n=this.options,r=this.uidialog;return this._size(),this._position(n.position),r.show(n.show),this.overlay=n.modal?new e.ui.dialog.overlay(this):null,this.movetotop(!0),t=this.element.find(":tabbable"),t.length||(t=this.uidialogbuttonpane.find(":tabbable"),t.length||(t=r)),t.eq(0).focus(),this._isopen=!0,this._trigger("open"),this},_createbuttons:function(t){var n=this,r=!1;this.uidialogbuttonpane.remove(),this.uibuttonset.empty(),typeof t=="object"&&t!==null&&e.each(t,function(){return!(r=!0)}),r?(e.each(t,function(t,r){var i,s;r=e.isfunction(r)?{click:r,text:t}:r,r=e.extend({type:"button"},r),s=r.click,r.click=function(){s.apply(n.element[0],arguments)},i=e("",r).appendto(n.uibuttonset),e.fn.button&&i.button()}),this.uidialog.addclass("ui-dialog-buttons"),this.uidialogbuttonpane.appendto(this.uidialog)):this.uidialog.removeclass("ui-dialog-buttons")},_makedraggable:function(){function r(e){return{position:e.position,offset:e.offset}}var t=this,n=this.options;this.uidialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e(this).addclass("ui-dialog-dragging"),t._trigger("dragstart",n,r(i))},drag:function(e,n){t._trigger("drag",e,r(n))},stop:function(i,s){n.position=[s.position.left-t.document.scrollleft(),s.position.top-t.document.scrolltop()],e(this).removeclass("ui-dialog-dragging"),t._trigger("dragstop",i,r(s)),e.ui.dialog.overlay.resize()}})},_makeresizable:function(n){function u(e){return{originalposition:e.originalposition,originalsize:e.originalsize,position:e.position,size:e.size}}n=n===t?this.options.resizable:n;var r=this,i=this.options,s=this.uidialog.css("position"),o=typeof n=="string"?n:"n,e,s,w,se,sw,ne,nw";this.uidialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoresize:this.element,maxwidth:i.maxwidth,maxheight:i.maxheight,minwidth:i.minwidth,minheight:this._minheight(),handles:o,start:function(t,n){e(this).addclass("ui-dialog-resizing"),r._trigger("resizestart",t,u(n))},resize:function(e,t){r._trigger("resize",e,u(t))},stop:function(t,n){e(this).removeclass("ui-dialog-resizing"),i.height=e(this).height(),i.width=e(this).width(),r._trigger("resizestop",t,u(n)),e.ui.dialog.overlay.resize()}}).css("position",s).find(".ui-resizable-se").addclass("ui-icon ui-icon-grip-diagonal-se")},_minheight:function(){var e=this.options;return e.height==="auto"?e.minheight:math.min(e.minheight,e.height)},_position:function(t){var n=[],r=[0,0],i;if(t){if(typeof t=="string"||typeof t=="object"&&"0"in t)n=t.split?t.split(" "):[t[0],t[1]],n.length===1&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(r[e]=n[e],n[e]=t)}),t={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")};t=e.extend({},e.ui.dialog.prototype.options.position,t)}else t=e.ui.dialog.prototype.options.position;i=this.uidialog.is(":visible"),i||this.uidialog.show(),this.uidialog.position(t),i||this.uidialog.hide()},_setoptions:function(t){var n=this,s={},o=!1;e.each(t,function(e,t){n._setoption(e,t),e in r&&(o=!0),e in i&&(s[e]=t)}),o&&this._size(),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option",s)},_setoption:function(t,r){var i,s,o=this.uidialog;switch(t){case"buttons":this._createbuttons(r);break;case"closetext":this.uidialogtitlebarclosetext.text(""+r);break;case"dialogclass":o.removeclass(this.options.dialogclass).addclass(n+r);break;case"disabled":r?o.addclass("ui-dialog-disabled"):o.removeclass("ui-dialog-disabled");break;case"draggable":i=o.is(":data(draggable)"),i&&!r&&o.draggable("destroy"),!i&&r&&this._makedraggable();break;case"position":this._position(r);break;case"resizable":s=o.is(":data(resizable)"),s&&!r&&o.resizable("destroy"),s&&typeof r=="string"&&o.resizable("option","handles",r),!s&&r!==!1&&this._makeresizable(r);break;case"title":e(".ui-dialog-title",this.uidialogtitlebar).html(""+(r||" "))}this._super(t,r)},_size:function(){var t,n,r,i=this.options,s=this.uidialog.is(":visible");this.element.show().css({width:"auto",minheight:0,height:0}),i.minwidth>i.width&&(i.width=i.minwidth),t=this.uidialog.css({height:"auto",width:i.width}).outerheight(),n=math.max(0,i.minheight-t),i.height==="auto"?e.support.minheight?this.element.css({minheight:n,height:"auto"}):(this.uidialog.show(),r=this.element.css("height","auto").height(),s||this.uidialog.hide(),this.element.height(math.max(r,n))):this.element.height(math.max(i.height-t,0)),this.uidialog.is(":data(resizable)")&&this.uidialog.resizable("option","minheight",this._minheight())}}),e.extend(e.ui.dialog,{uuid:0,maxz:0,gettitleid:function(e){var t=e.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=e.ui.dialog.overlay.create(t)}}),e.extend(e.ui.dialog.overlay,{instances:[],oldinstances:[],maxz:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(t){this.instances.length===0&&(settimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(t){if(e(t.target).zindex()").addclass("ui-widget-overlay");return e(document).bind("keydown.dialog-overlay",function(r){var i=e.ui.dialog.overlay.instances;i.length!==0&&i[i.length-1]===n&&t.options.closeonescape&&!r.isdefaultprevented()&&r.keycode&&r.keycode===e.ui.keycode.escape&&(t.close(r),r.preventdefault())}),n.appendto(document.body).css({width:this.width(),height:this.height()}),e.fn.bgiframe&&n.bgiframe(),this.instances.push(n),n},destroy:function(t){var n=e.inarray(t,this.instances),r=0;n!==-1&&this.oldinstances.push(this.instances.splice(n,1)[0]),this.instances.length===0&&e([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),e.each(this.instances,function(){r=math.max(r,this.css("z-index"))}),this.maxz=r},height:function(){var t,n;return e.ui.ie?(t=math.max(document.documentelement.scrollheight,document.body.scrollheight),n=math.max(document.documentelement.offsetheight,document.body.offsetheight),t
').css({width:this.offsetwidth+"px",height:this.offsetheight+"px",position:"absolute",opacity:"0.001",zindex:1e3}).css(e(this).offset()).appendto("body")}),!0):!1)},_mousestart:function(t){var n=this.options;return this.helper=this._createhelper(t),this.helper.addclass("ui-draggable-dragging"),this._cachehelperproportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cachemargins(),this.cssposition=this.helper.css("position"),this.scrollparent=this.helper.scrollparent(),this.offset=this.positionabs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pagex-this.offset.left,top:t.pagey-this.offset.top},parent:this._getparentoffset(),relative:this._getrelativeoffset()}),this.originalposition=this.position=this._generateposition(t),this.originalpagex=t.pagex,this.originalpagey=t.pagey,n.cursorat&&this._adjustoffsetfromhelper(n.cursorat),n.containment&&this._setcontainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cachehelperproportions(),e.ui.ddmanager&&!n.dropbehaviour&&e.ui.ddmanager.prepareoffsets(this,t),this._mousedrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragstart(this,t),!0)},_mousedrag:function(t,n){this.position=this._generateposition(t),this.positionabs=this._convertpositionto("absolute");if(!n){var r=this._uihash();if(this._trigger("drag",t,r)===!1)return this._mouseup({}),!1;this.position=r.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mousestop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropbehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);var r=this.element[0],i=!1;while(r&&(r=r.parentnode))r==document&&(i=!0);if(!i&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isfunction(this.options.revert)&&this.options.revert.call(this.element,n)){var s=this;e(this.helper).animate(this.originalposition,parseint(this.options.revertduration,10),function(){s._trigger("stop",t)!==!1&&s._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseup:function(t){return e("div.ui-draggable-iframefix").each(function(){this.parentnode.removechild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragstop(this,t),e.ui.mouse.prototype._mouseup.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseup({}):this._clear(),this},_gethandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andself().each(function(){this==t.target&&(n=!0)}),n},_createhelper:function(t){var n=this.options,r=e.isfunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeattr("id"):this.element;return r.parents("body").length||r.appendto(n.appendto=="parent"?this.element[0].parentnode:n.appendto),r[0]!=this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))&&r.css("position","absolute"),r},_adjustoffsetfromhelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isarray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperproportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperproportions.height-t.bottom+this.margins.top)},_getparentoffset:function(){this.offsetparent=this.helper.offsetparent();var t=this.offsetparent.offset();this.cssposition=="absolute"&&this.scrollparent[0]!=document&&e.contains(this.scrollparent[0],this.offsetparent[0])&&(t.left+=this.scrollparent.scrollleft(),t.top+=this.scrollparent.scrolltop());if(this.offsetparent[0]==document.body||this.offsetparent[0].tagname&&this.offsetparent[0].tagname.tolowercase()=="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseint(this.offsetparent.css("bordertopwidth"),10)||0),left:t.left+(parseint(this.offsetparent.css("borderleftwidth"),10)||0)}},_getrelativeoffset:function(){if(this.cssposition=="relative"){var e=this.element.position();return{top:e.top-(parseint(this.helper.css("top"),10)||0)+this.scrollparent.scrolltop(),left:e.left-(parseint(this.helper.css("left"),10)||0)+this.scrollparent.scrollleft()}}return{top:0,left:0}},_cachemargins:function(){this.margins={left:parseint(this.element.css("marginleft"),10)||0,top:parseint(this.element.css("margintop"),10)||0,right:parseint(this.element.css("marginright"),10)||0,bottom:parseint(this.element.css("marginbottom"),10)||0}},_cachehelperproportions:function(){this.helperproportions={width:this.helper.outerwidth(),height:this.helper.outerheight()}},_setcontainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentnode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollleft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrolltop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollleft())+e(t.containment=="document"?document:window).width()-this.helperproportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrolltop())+(e(t.containment=="document"?document:window).height()||document.body.parentnode.scrollheight)-this.helperproportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=array){var n=e(t.containment),r=n[0];if(!r)return;var i=n.offset(),s=e(r).css("overflow")!="hidden";this.containment=[(parseint(e(r).css("borderleftwidth"),10)||0)+(parseint(e(r).css("paddingleft"),10)||0),(parseint(e(r).css("bordertopwidth"),10)||0)+(parseint(e(r).css("paddingtop"),10)||0),(s?math.max(r.scrollwidth,r.offsetwidth):r.offsetwidth)-(parseint(e(r).css("borderleftwidth"),10)||0)-(parseint(e(r).css("paddingright"),10)||0)-this.helperproportions.width-this.margins.left-this.margins.right,(s?math.max(r.scrollheight,r.offsetheight):r.offsetheight)-(parseint(e(r).css("bordertopwidth"),10)||0)-(parseint(e(r).css("paddingbottom"),10)||0)-this.helperproportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}else t.containment.constructor==array&&(this.containment=t.containment)},_convertpositionto:function(t,n){n||(n=this.position);var r=t=="absolute"?1:-1,i=this.options,s=this.cssposition!="absolute"||this.scrollparent[0]!=document&&!!e.contains(this.scrollparent[0],this.offsetparent[0])?this.scrollparent:this.offsetparent,o=/(html|body)/i.test(s[0].tagname);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssposition=="fixed"?-this.scrollparent.scrolltop():o?0:s.scrolltop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssposition=="fixed"?-this.scrollparent.scrollleft():o?0:s.scrollleft())*r}},_generateposition:function(t){var n=this.options,r=this.cssposition!="absolute"||this.scrollparent[0]!=document&&!!e.contains(this.scrollparent[0],this.offsetparent[0])?this.scrollparent:this.offsetparent,i=/(html|body)/i.test(r[0].tagname),s=t.pagex,o=t.pagey;if(this.originalposition){var u;if(this.containment){if(this.relative_container){var a=this.relative_container.offset();u=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]}else u=this.containment;t.pagex-this.offset.click.left
u[2]&&(s=u[2]+this.offset.click.left),t.pagey-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)}if(n.grid){var f=n.grid[1]?this.originalpagey+math.round((o-this.originalpagey)/n.grid[1])*n.grid[1]:this.originalpagey;o=u?f-this.offset.click.topu[3]?f-this.offset.click.topu[2]?l-this.offset.click.left=0;l--){var c=r.snapelements[l].left,h=c+r.snapelements[l].width,p=r.snapelements[l].top,d=p+r.snapelements[l].height;if(!(c-s=l&&o<=c||u>=l&&u<=c||oc)&&(i>=a&&i<=f||s>=a&&s<=f||if);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareoffsets:function(t,n){var r=e.ui.ddmanager.droppables[t.options.scope]||[],i=n?n.type:null,s=(t.currentitem||t.element).find(":data(droppable)").andself();e:for(var o=0;oe?0:r.max")[0],c,h=t.each;l.style.csstext="background-color:rgba(1,1,1,.5)",f.rgba=l.style.backgroundcolor.indexof("rgba")>-1,h(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),o.fn=t.extend(o.prototype,{parse:function(r,i,s,a){if(r===n)return this._rgba=[null,null,null,null],this;if(r.jquery||r.nodetype)r=t(r).css(i),i=n;var f=this,l=t.type(r),v=this._rgba=[];i!==n&&(r=[r,i,s,a],l="array");if(l==="string")return this.parse(d(r)||c._default);if(l==="array")return h(u.rgba.props,function(e,t){v[t.idx]=p(r[t.idx],t)}),this;if(l==="object")return r instanceof o?h(u,function(e,t){r[t.cache]&&(f[t.cache]=r[t.cache].slice())}):h(u,function(t,n){var i=n.cache;h(n.props,function(e,t){if(!f[i]&&n.to){if(e==="alpha"||r[e]==null)return;f[i]=n.to(f._rgba)}f[i][t.idx]=p(r[e],t,!0)}),f[i]&&e.inarray(null,f[i].slice(0,3))<0&&(f[i][3]=1,n.from&&(f._rgba=n.from(f[i])))}),this},is:function(e){var t=o(e),n=!0,r=this;return h(u,function(e,i){var s,o=t[i.cache];return o&&(s=r[i.cache]||i.to&&i.to(r._rgba)||[],h(i.props,function(e,t){if(o[t.idx]!=null)return n=o[t.idx]===s[t.idx],n})),n}),n},_space:function(){var e=[],t=this;return h(u,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=u[r],s=this.alpha()===0?o("transparent"):this,f=s[i.cache]||i.to(s._rgba),l=f.slice();return n=n[i.cache],h(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],u=a[r.type]||{};if(o===null)return;s===null?l[i]=o:(u.mod&&(o-s>u.mod/2?s+=u.mod:s-o>u.mod/2&&(s-=u.mod)),l[i]=p((o-s)*t+s,r))}),this[r](l)},blend:function(e){if(this._rgba[3]===1)return this;var n=this._rgba.slice(),r=n.pop(),i=o(e)._rgba;return o(t.map(n,function(e,t){return(1-r)*i[t]+r*e}))},torgbastring:function(){var e="rgba(",n=t.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});return n[3]===1&&(n.pop(),e="rgb("),e+n.join()+")"},tohslastring:function(){var e="hsla(",n=t.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=math.round(e*100)+"%"),e});return n[3]===1&&(n.pop(),e="hsl("),e+n.join()+")"},tohexstring:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(r*255)),"#"+t.map(n,function(e){return e=(e||0).tostring(16),e.length===1?"0"+e:e}).join("")},tostring:function(){return this._rgba[3]===0?"transparent":this.torgbastring()}}),o.fn.parse.prototype=o.fn,u.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=math.max(t,n,r),o=math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;return o===s?l=0:t===s?l=60*(n-r)/u+360:n===s?l=60*(r-t)/u+120:l=60*(t-n)/u+240,f===0||f===1?c=f:f<=.5?c=u/a:c=u/(2-a),[math.round(l)%360,c,f,i==null?1:i]},u.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[math.round(v(o,s,t+1/3)*255),math.round(v(o,s,t)*255),math.round(v(o,s,t-1/3)*255),i]},h(u,function(e,r){var s=r.props,u=r.cache,a=r.to,f=r.from;o.fn[e]=function(e){a&&!this[u]&&(this[u]=a(this._rgba));if(e===n)return this[u].slice();var r,i=t.type(e),l=i==="array"||i==="object"?e:arguments,c=this[u].slice();return h(s,function(e,t){var n=l[i==="object"?e:t.idx];n==null&&(n=c[t.idx]),c[t.idx]=p(n,t)}),f?(r=o(f(c)),r[u]=c,r):o(c)},h(s,function(n,r){if(o.fn[n])return;o.fn[n]=function(s){var o=t.type(s),u=n==="alpha"?this._hsla?"hsla":"rgba":e,a=this[u](),f=a[r.idx],l;return o==="undefined"?f:(o==="function"&&(s=s.call(this,f),o=t.type(s)),s==null&&r.empty?this:(o==="string"&&(l=i.exec(s),l&&(s=f+parsefloat(l[2])*(l[1]==="+"?1:-1))),a[r.idx]=s,this[u](a)))}})}),h(r,function(e,n){t.csshooks[n]={set:function(e,r){var i,s,u="";if(t.type(r)!=="string"||(i=d(r))){r=o(i||r);if(!f.rgba&&r._rgba[3]!==1){s=n==="backgroundcolor"?e.parentnode:e;while((u===""||u==="transparent")&&s&&s.style)try{u=t.css(s,"backgroundcolor"),s=s.parentnode}catch(a){}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.torgbastring()}try{e.style[n]=r}catch(l){}}},t.fx.step[n]=function(e){e.colorinit||(e.start=o(e.elem,n),e.end=o(e.end),e.colorinit=!0),t.csshooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}),t.csshooks.bordercolor={expand:function(e){var t={};return h(["top","right","bottom","left"],function(n,r){t["border"+r+"color"]=e}),t}},c=t.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"}}(jquery),function(){function i(){var t=this.ownerdocument.defaultview?this.ownerdocument.defaultview.getcomputedstyle(this,null):this.currentstyle,n={},r,i;if(t&&t.length&&t[0]&&t[t[0]]){i=t.length;while(i--)r=t[i],typeof t[r]=="string"&&(n[e.camelcase(r)]=t[r])}else for(r in t)typeof t[r]=="string"&&(n[r]=t[r]);return n}function s(t,n){var i={},s,o;for(s in n)o=n[s],t[s]!==o&&!r[s]&&(e.fx.step[s]||!isnan(parsefloat(o)))&&(i[s]=o);return i}var n=["add","remove","toggle"],r={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,n){e.fx.step[n]=function(e){if(e.end!=="none"&&!e.setattr||e.pos===1&&!e.setattr)jquery.style(e.elem,n,e.end),e.setattr=!0}}),e.effects.animateclass=function(t,r,o,u){var a=e.speed(r,o,u);return this.queue(function(){var r=e(this),o=r.attr("class")||"",u,f=a.children?r.find("*").andself():r;f=f.map(function(){var t=e(this);return{el:t,start:i.call(this)}}),u=function(){e.each(n,function(e,n){t[n]&&r[n+"class"](t[n])})},u(),f=f.map(function(){return this.end=i.call(this.el[0]),this.diff=s(this.start,this.end),this}),r.attr("class",o),f=f.map(function(){var t=this,n=e.deferred(),r=jquery.extend({},a,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()}),e.when.apply(e,f.get()).done(function(){u(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),a.complete.call(r[0])})})},e.fn.extend({_addclass:e.fn.addclass,addclass:function(t,n,r,i){return n?e.effects.animateclass.call(this,{add:t},n,r,i):this._addclass(t)},_removeclass:e.fn.removeclass,removeclass:function(t,n,r,i){return n?e.effects.animateclass.call(this,{remove:t},n,r,i):this._removeclass(t)},_toggleclass:e.fn.toggleclass,toggleclass:function(n,r,i,s,o){return typeof r=="boolean"||r===t?i?e.effects.animateclass.call(this,r?{add:n}:{remove:n},i,s,o):this._toggleclass(n,r):e.effects.animateclass.call(this,{toggle:n},r,i,s)},switchclass:function(t,n,r,i,s){return e.effects.animateclass.call(this,{add:n,remove:t},r,i,s)}})}(),function(){function i(t,n,r,i){e.isplainobject(t)&&(n=t,t=t.effect),t={effect:t},n==null&&(n={}),e.isfunction(n)&&(i=n,r=null,n={});if(typeof n=="number"||e.fx.speeds[n])i=r,r=n,n={};return e.isfunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:typeof r=="number"?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function s(t){return!t||typeof t=="number"||e.fx.speeds[t]?!0:typeof t=="string"&&!e.effects.effect[t]?n&&e.effects[t]?!1:!0:!1}e.extend(e.effects,{version:"1.9.2",save:function(e,t){for(var n=0;n ").addclass("ui-effects-wrapper").css({fontsize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeelement;try{s.id}catch(o){s=document.body}return t.wrap(r),(t[0]===s||e.contains(t[0],s))&&e(s).focus(),r=t.parent(),t.css("position")==="static"?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zindex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r),isnan(parseint(n[r],10))&&(n[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removewrapper:function(t){var n=document.activeelement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replacewith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus()),t},settransition:function(t,n,r,i){return i=i||{},e.each(n,function(e,n){var s=t.cssunit(n);s[0]>0&&(i[n]=s[0]*r+s[1])}),i}}),e.fn.extend({effect:function(){function a(n){function u(){e.isfunction(i)&&i.call(r[0]),e.isfunction(n)&&n()}var r=e(this),i=t.complete,s=t.mode;(r.is(":hidden")?s==="hide":s==="show")?u():o.call(r[0],t,u)}var t=i.apply(this,arguments),r=t.mode,s=t.queue,o=e.effects.effect[t.effect],u=!o&&n&&e.effects[t.effect];return e.fx.off||!o&&!u?r?this[r](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):o?s===!1?this.each(a):this.queue(s||"fx",a):u.call(this,{options:t,duration:t.duration,callback:t.complete,mode:t.mode})},_show:e.fn.show,show:function(e){if(s(e))return this._show.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(s(e))return this._hide.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(s(t)||typeof t=="boolean"||e.isfunction(t))return this.__toggle.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssunit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexof(t)>0&&(r=[parsefloat(n),t])}),r}})}(),function(){var t={};e.each(["quad","cubic","quart","quint","expo"],function(e,n){t[n]=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 e===0||e===1?e:-math.pow(2,8*(e-1))*math.sin(((e-1)*80-7.5)*math.pi/15)},back:function(e){return e*e*(3*e-2)},bounce:function(e){var t,n=4;while(e<((t=math.pow(2,--n))-1)/11);return 1/math.pow(4,3-n)-7.5625*math.pow((t*3-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easein"+t]=n,e.easing["easeout"+t]=function(e){return 1-n(1-e)},e.easing["easeinout"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})}()}(jquery);(function(e,t){var n=/up|down|vertical/,r=/up|left|vertical|horizontal/;e.effects.effect.blind=function(t,i){var s=e(this),o=["position","top","bottom","left","right","height","width"],u=e.effects.setmode(s,t.mode||"hide"),a=t.direction||"up",f=n.test(a),l=f?"height":"width",c=f?"top":"left",h=r.test(a),p={},d=u==="show",v,m,g;s.parent().is(".ui-effects-wrapper")?e.effects.save(s.parent(),o):e.effects.save(s,o),s.show(),v=e.effects.createwrapper(s).css({overflow:"hidden"}),m=v[l](),g=parsefloat(v.css(c))||0,p[l]=d?m:0,h||(s.css(f?"bottom":"right",0).css(f?"top":"left","auto").css({position:"absolute"}),p[c]=d?g:m+g),d&&(v.css(l,0),h||v.css(c,g+m)),v.animate(p,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){u==="hide"&&s.hide(),e.effects.restore(s,o),e.effects.removewrapper(s),i()}})}})(jquery);(function(e,t){e.effects.effect.bounce=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setmode(r,t.mode||"effect"),o=s==="hide",u=s==="show",a=t.direction||"up",f=t.distance,l=t.times||5,c=l*2+(u||o?1:0),h=t.duration/c,p=t.easing,d=a==="up"||a==="down"?"top":"left",v=a==="up"||a==="left",m,g,y,b=r.queue(),w=b.length;(u||o)&&i.push("opacity"),e.effects.save(r,i),r.show(),e.effects.createwrapper(r),f||(f=r[d==="top"?"outerheight":"outerwidth"]()/3),u&&(y={opacity:1},y[d]=0,r.css("opacity",0).css(d,v?-f*2:f*2).animate(y,h,p)),o&&(f/=math.pow(2,l-1)),y={},y[d]=0;for(m=0;m