/*
 * jQuery UI 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(A,D){function C(F,G){var E=F.nodeName.toLowerCase();if("area"===E){G=F.parentNode;E=G.name;
if(!F.href||!E||G.nodeName.toLowerCase()!=="map"){return false;}F=A("img[usemap=#"+E+"]")[0];return !!F&&B(F);}return(/input|select|textarea|button|object/.test(E)?!F.disabled:"a"==E?F.href||G:G)&&B(F);}function B(E){return !A(E).parents().andSelf().filter(function(){return A.curCSS(this,"visibility")==="hidden"||A.expr.filters.hidden(this);
}).length;}A.ui=A.ui||{};if(!A.ui.version){A.extend(A.ui,{version:"1.8.15",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});
A.fn.extend({propAttr:A.fn.prop||A.fn.attr,_focus:A.fn.focus,focus:function(E,F){return typeof E==="number"?this.each(function(){var G=this;setTimeout(function(){A(G).focus();F&&F.call(G);},E);}):this._focus.apply(this,arguments);},scrollParent:function(){var E;E=A.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(A.curCSS(this,"position",1))&&/(auto|scroll)/.test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1));
}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1));}).eq(0);return/fixed/.test(this.css("position"))||!E.length?A(document):E;},zIndex:function(E){if(E!==D){return this.css("zIndex",E);}if(this.length){E=A(this[0]);
for(var F;E.length&&E[0]!==document;){F=E.css("position");if(F==="absolute"||F==="relative"||F==="fixed"){F=parseInt(E.css("zIndex"),10);if(!isNaN(F)&&F!==0){return F;}}E=E.parent();}}return 0;},disableSelection:function(){return this.bind((A.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(E){E.preventDefault();
});},enableSelection:function(){return this.unbind(".ui-disableSelection");}});A.each(["Width","Height"],function(H,I){function G(K,M,N,L){A.each(E,function(){M-=parseFloat(A.curCSS(K,"padding"+this,true))||0;if(N){M-=parseFloat(A.curCSS(K,"border"+this+"Width",true))||0;}if(L){M-=parseFloat(A.curCSS(K,"margin"+this,true))||0;
}});return M;}var E=I==="Width"?["Left","Right"]:["Top","Bottom"],J=I.toLowerCase(),F={innerWidth:A.fn.innerWidth,innerHeight:A.fn.innerHeight,outerWidth:A.fn.outerWidth,outerHeight:A.fn.outerHeight};A.fn["inner"+I]=function(K){if(K===D){return F["inner"+I].call(this);}return this.each(function(){A(this).css(J,G(this,K)+"px");
});};A.fn["outer"+I]=function(K,L){if(typeof K!=="number"){return F["outer"+I].call(this,K);}return this.each(function(){A(this).css(J,G(this,K,true,L)+"px");});};});A.extend(A.expr[":"],{data:function(F,G,E){return !!A.data(F,E[3]);},focusable:function(E){return C(E,!isNaN(A.attr(E,"tabindex")));},tabbable:function(F){var G=A.attr(F,"tabindex"),E=isNaN(G);
return(E||G>=0)&&C(F,!E);}});A(function(){var E=document.body,F=E.appendChild(F=document.createElement("div"));A.extend(F.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});A.support.minHeight=F.offsetHeight===100;A.support.selectstart="onselectstart" in F;E.removeChild(F).style.display="none";
});A.extend(A.ui,{plugin:{add:function(G,H,F){G=A.ui[G].prototype;for(var E in F){G.plugins[E]=G.plugins[E]||[];G.plugins[E].push([H,F[E]]);}},call:function(G,H,F){if((H=G.plugins[H])&&G.element[0].parentNode){for(var E=0;E<H.length;E++){G.options[H[E][0]]&&H[E][1].apply(G.element,F);}}}},contains:function(E,F){return document.compareDocumentPosition?E.compareDocumentPosition(F)&16:E!==F&&E.contains(F);
},hasScroll:function(F,G){if(A(F).css("overflow")==="hidden"){return false;}G=G&&G==="left"?"scrollLeft":"scrollTop";var E=false;if(F[G]>0){return true;}F[G]=1;E=F[G]>0;F[G]=0;return E;},isOverAxis:function(F,G,E){return F>G&&F<G+E;},isOver:function(H,I,G,E,J,F){return A.ui.isOverAxis(H,G,J)&&A.ui.isOverAxis(I,E,F);
}});}})(jQuery);(function(A,D){if(A.cleanData){var C=A.cleanData;A.cleanData=function(F){for(var G=0,E;(E=F[G])!=null;G++){A(E).triggerHandler("remove");}C(F);};}else{var B=A.fn.remove;A.fn.remove=function(E,F){return this.each(function(){if(!F){if(!E||A.filter(E,[this]).length){A("*",this).add([this]).each(function(){A(this).triggerHandler("remove");
});}}return B.call(A(this),E,F);});};}A.widget=function(G,H,F){var E=G.split(".")[0],I;G=G.split(".")[1];I=E+"-"+G;if(!F){F=H;H=A.Widget;}A.expr[":"][I]=function(J){return !!A.data(J,G);};A[E]=A[E]||{};A[E][G]=function(K,J){arguments.length&&this._createWidget(K,J);};H=new H;H.options=A.extend(true,{},H.options);
A[E][G].prototype=A.extend(true,H,{namespace:E,widgetName:G,widgetEventPrefix:A[E][G].prototype.widgetEventPrefix||G,widgetBaseClass:I},F);A.widget.bridge(G,A[E][G]);};A.widget.bridge=function(E,F){A.fn[E]=function(I){var G=typeof I==="string",J=Array.prototype.slice.call(arguments,1),H=this;I=!G&&J.length?A.extend.apply(null,[true,I].concat(J)):I;
if(G&&I.charAt(0)==="_"){return H;}G?this.each(function(){var K=A.data(this,E),L=K&&A.isFunction(K[I])?K[I].apply(K,J):K;if(L!==K&&L!==D){H=L;return false;}}):this.each(function(){var K=A.data(this,E);K?K.option(I||{})._init():A.data(this,E,new F(I,this));});return H;};};A.Widget=function(E,F){arguments.length&&this._createWidget(E,F);
};A.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(F,G){A.data(G,this.widgetName,this);this.element=A(G);this.options=A.extend(true,{},this.options,this._getCreateOptions(),F);var E=this;this.element.bind("remove."+this.widgetName,function(){E.destroy();
});this._create();this._trigger("create");this._init();},_getCreateOptions:function(){return A.metadata&&A.metadata.get(this.element[0])[this.widgetName];},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled");
},widget:function(){return this.element;},option:function(F,G){var E=F;if(arguments.length===0){return A.extend({},this.options);}if(typeof F==="string"){if(G===D){return this.options[F];}E={};E[F]=G;}this._setOptions(E);return this;},_setOptions:function(E){var F=this;A.each(E,function(H,G){F._setOption(H,G);
});return this;},_setOption:function(E,F){this.options[E]=F;if(E==="disabled"){this.widget()[F?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",F);}return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);
},_trigger:function(G,H,F){var E=this.options[G];H=A.Event(H);H.type=(G===this.widgetEventPrefix?G:this.widgetEventPrefix+G).toLowerCase();F=F||{};if(H.originalEvent){G=A.event.props.length;for(var I;G;){I=A.event.props[--G];H[I]=H.originalEvent[I];}}this.element.trigger(H,F);return !(A.isFunction(E)&&E.call(this.element[0],H,F)===false||H.isDefaultPrevented());
}};})(jQuery);(function(A){A.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var B=this;this.element.bind("mousedown."+this.widgetName,function(C){return B._mouseDown(C);}).bind("click."+this.widgetName,function(C){if(true===A.data(C.target,B.widgetName+".preventClickEvent")){A.removeData(C.target,B.widgetName+".preventClickEvent");
C.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);},_mouseDown:function(E){E.originalEvent=E.originalEvent||{};if(!E.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(E);this._mouseDownEvent=E;var D=this,C=E.which==1,B=typeof this.options.cancel=="string"?A(E.target).closest(this.options.cancel).length:false;
if(!C||B||!this._mouseCapture(E)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){D.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(E)&&this._mouseDelayMet(E)){this._mouseStarted=this._mouseStart(E)!==false;if(!this._mouseStarted){E.preventDefault();
return true;}}true===A.data(E.target,this.widgetName+".preventClickEvent")&&A.removeData(E.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(F){return D._mouseMove(F);};this._mouseUpDelegate=function(F){return D._mouseUp(F);};A(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
E.preventDefault();return E.originalEvent.mouseHandled=true;}},_mouseMove:function(B){if(A.browser.msie&&!(document.documentMode>=9)&&!B.button){return this._mouseUp(B);}if(this._mouseStarted){this._mouseDrag(B);return B.preventDefault();}if(this._mouseDistanceMet(B)&&this._mouseDelayMet(B)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,B)!==false)?this._mouseDrag(B):this._mouseUp(B);
}return !this._mouseStarted;},_mouseUp:function(B){A(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;B.target==this._mouseDownEvent.target&&A.data(B.target,this.widgetName+".preventClickEvent",true);
this._mouseStop(B);}return false;},_mouseDistanceMet:function(B){return Math.max(Math.abs(this._mouseDownEvent.pageX-B.pageX),Math.abs(this._mouseDownEvent.pageY-B.pageY))>=this.options.distance;},_mouseDelayMet:function(){return this.mouseDelayMet;},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true;
}});})(jQuery);(function(A){A.widget("ui.draggable",A.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative";
}this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit();},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();return this;}},_mouseCapture:function(C){var B=this.options;if(this.helper||B.disabled||A(C.target).is(".ui-resizable-handle")){return false;}this.handle=this._getHandle(C);if(!this.handle){return false;}A(B.iframeFix===true?"iframe":B.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body");
});return true;},_mouseStart:function(C){var B=this.options;this.helper=this._createHelper(C);this._cacheHelperProportions();if(A.ui.ddmanager){A.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};A.extend(this.offset,{click:{left:C.pageX-this.offset.left,top:C.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(C);
this.originalPageX=C.pageX;this.originalPageY=C.pageY;B.cursorAt&&this._adjustOffsetFromHelper(B.cursorAt);B.containment&&this._setContainment();if(this._trigger("start",C)===false){this._clear();return false;}this._cacheHelperProportions();A.ui.ddmanager&&!B.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,C);
this.helper.addClass("ui-draggable-dragging");this._mouseDrag(C,true);A.ui.ddmanager&&A.ui.ddmanager.dragStart(this,C);return true;},_mouseDrag:function(C,B){this.position=this._generatePosition(C);this.positionAbs=this._convertPositionTo("absolute");if(!B){B=this._uiHash();if(this._trigger("drag",C,B)===false){this._mouseUp({});
return false;}this.position=B.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";}A.ui.ddmanager&&A.ui.ddmanager.drag(this,C);return false;},_mouseStop:function(D){var C=false;
if(A.ui.ddmanager&&!this.options.dropBehaviour){C=A.ui.ddmanager.drop(this,D);}if(this.dropped){C=this.dropped;this.dropped=false;}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false;}if(this.options.revert=="invalid"&&!C||this.options.revert=="valid"&&C||this.options.revert===true||A.isFunction(this.options.revert)&&this.options.revert.call(this.element,C)){var B=this;
A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){B._trigger("stop",D)!==false&&B._clear();});}else{this._trigger("stop",D)!==false&&this._clear();}return false;},_mouseUp:function(B){this.options.iframeFix===true&&A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);
});A.ui.ddmanager&&A.ui.ddmanager.dragStop(this,B);return A.ui.mouse.prototype._mouseUp.call(this,B);},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this;},_getHandle:function(C){var B=!this.options.handle||!A(this.options.handle,this.element).length?true:false;
A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==C.target){B=true;}});return B;},_createHelper:function(C){var B=this.options;C=A.isFunction(B.helper)?A(B.helper.apply(this.element[0],[C])):B.helper=="clone"?this.element.clone().removeAttr("id"):this.element;C.parents("body").length||C.appendTo(B.appendTo=="parent"?this.element[0].parentNode:B.appendTo);
C[0]!=this.element[0]&&!/(fixed|absolute)/.test(C.css("position"))&&C.css("position","absolute");return C;},_adjustOffsetFromHelper:function(B){if(typeof B=="string"){B=B.split(" ");}if(A.isArray(B)){B={left:+B[0],top:+B[1]||0};}if("left" in B){this.offset.click.left=B.left+this.margins.left;}if("right" in B){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left;
}if("top" in B){this.offset.click.top=B.top+this.margins.top;}if("bottom" in B){this.offset.click.top=this.helperProportions.height-B.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0])){B.left+=this.scrollParent.scrollLeft();
B.top+=this.scrollParent.scrollTop();}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.browser.msie){B={top:0,left:0};}return{top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var B=this.element.position();return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}else{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 D=this.options;if(D.containment=="parent"){D.containment=this.helper[0].parentNode;}if(D.containment=="document"||D.containment=="window"){this.containment=[D.containment=="document"?0:A(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,D.containment=="document"?0:A(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(D.containment=="document"?0:A(window).scrollLeft())+A(D.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(D.containment=="document"?0:A(window).scrollTop())+(A(D.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!/^(document|window|parent)$/.test(D.containment)&&D.containment.constructor!=Array){D=A(D.containment);var C=D[0];if(C){D.offset();var B=A(C).css("overflow")!="hidden";this.containment=[(parseInt(A(C).css("borderLeftWidth"),10)||0)+(parseInt(A(C).css("paddingLeft"),10)||0),(parseInt(A(C).css("borderTopWidth"),10)||0)+(parseInt(A(C).css("paddingTop"),10)||0),(B?Math.max(C.scrollWidth,C.offsetWidth):C.offsetWidth)-(parseInt(A(C).css("borderLeftWidth"),10)||0)-(parseInt(A(C).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(B?Math.max(C.scrollHeight,C.offsetHeight):C.offsetHeight)-(parseInt(A(C).css("borderTopWidth"),10)||0)-(parseInt(A(C).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=D;}}else{if(D.containment.constructor==Array){this.containment=D.containment;}}},_convertPositionTo:function(E,D){if(!D){D=this.position;}E=E=="absolute"?1:-1;var C=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=/(html|body)/i.test(C[0].tagName);
return{top:D.top+this.offset.relative.top*E+this.offset.parent.top*E-(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():B?0:C.scrollTop())*E),left:D.left+this.offset.relative.left*E+this.offset.parent.left*E-(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:C.scrollLeft())*E)};
},_generatePosition:function(H){var G=this.options,F=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,D=/(html|body)/i.test(F[0].tagName),E=H.pageX,C=H.pageY;if(this.originalPosition){var B;if(this.containment){if(this.relative_container){B=this.relative_container.offset();
B=[this.containment[0]+B.left,this.containment[1]+B.top,this.containment[2]+B.left,this.containment[3]+B.top];}else{B=this.containment;}if(H.pageX-this.offset.click.left<B[0]){E=B[0]+this.offset.click.left;}if(H.pageY-this.offset.click.top<B[1]){C=B[1]+this.offset.click.top;}if(H.pageX-this.offset.click.left>B[2]){E=B[2]+this.offset.click.left;
}if(H.pageY-this.offset.click.top>B[3]){C=B[3]+this.offset.click.top;}}if(G.grid){C=G.grid[1]?this.originalPageY+Math.round((C-this.originalPageY)/G.grid[1])*G.grid[1]:this.originalPageY;C=B?!(C-this.offset.click.top<B[1]||C-this.offset.click.top>B[3])?C:!(C-this.offset.click.top<B[1])?C-G.grid[1]:C+G.grid[1]:C;
E=G.grid[0]?this.originalPageX+Math.round((E-this.originalPageX)/G.grid[0])*G.grid[0]:this.originalPageX;E=B?!(E-this.offset.click.left<B[0]||E-this.offset.click.left>B[2])?E:!(E-this.offset.click.left<B[0])?E-G.grid[0]:E+G.grid[0]:E;}}return{top:C-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():D?0:F.scrollTop()),left:E-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&A.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():D?0:F.scrollLeft())};
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false;},_trigger:function(D,C,B){B=B||this._uiHash();A.ui.plugin.call(this,D,[C,B]);if(D=="drag"){this.positionAbs=this._convertPositionTo("absolute");
}return A.Widget.prototype._trigger.call(this,D,C,B);},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs};}});A.extend(A.ui.draggable,{version:"1.8.15"});A.ui.plugin.add("draggable","connectToSortable",{start:function(F,E){var D=A(this).data("draggable"),B=D.options,C=A.extend({},E,{item:D.element});
D.sortables=[];A(B.connectToSortable).each(function(){var G=A.data(this,"sortable");if(G&&!G.options.disabled){D.sortables.push({instance:G,shouldRevert:G.options.revert});G.refreshPositions();G._trigger("activate",F,C);}});},stop:function(E,D){var C=A(this).data("draggable"),B=A.extend({},D,{item:C.element});
A.each(C.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;C.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true;}this.instance._mouseStop(E);this.instance.options.helper=this.instance.options._helper;C.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"});
}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",E,B);}});},drag:function(E,D){var C=A(this).data("draggable"),B=this;A.each(C.sortables,function(){this.instance.positionAbs=C.positionAbs;this.instance.helperProportions=C.helperProportions;this.instance.offset.click=C.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=A(B).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return D.helper[0];
};E.target=this.instance.currentItem[0];this.instance._mouseCapture(E,true);this.instance._mouseStart(E,true,true);this.instance.offset.click.top=C.offset.click.top;this.instance.offset.click.left=C.offset.click.left;this.instance.offset.parent.left-=C.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=C.offset.parent.top-this.instance.offset.parent.top;C._trigger("toSortable",E);C.dropped=this.instance.element;C.currentItem=C.element;this.instance.fromOutside=C;}this.instance.currentItem&&this.instance._mouseDrag(E);}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",E,this.instance._uiHash(this.instance));this.instance._mouseStop(E,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();
C._trigger("fromSortable",E);C.dropped=false;}}});}});A.ui.plugin.add("draggable","cursor",{start:function(){var C=A("body"),B=A(this).data("draggable").options;if(C.css("cursor")){B._cursor=C.css("cursor");}C.css("cursor",B.cursor);},stop:function(){var B=A(this).data("draggable").options;B._cursor&&A("body").css("cursor",B._cursor);
}});A.ui.plugin.add("draggable","opacity",{start:function(C,B){C=A(B.helper);B=A(this).data("draggable").options;if(C.css("opacity")){B._opacity=C.css("opacity");}C.css("opacity",B.opacity);},stop:function(C,B){C=A(this).data("draggable").options;C._opacity&&A(B.helper).css("opacity",C._opacity);}});
A.ui.plugin.add("draggable","scroll",{start:function(){var B=A(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset();}},drag:function(E){var D=A(this).data("draggable"),C=D.options,B=false;if(D.scrollParent[0]!=document&&D.scrollParent[0].tagName!="HTML"){if(!C.axis||C.axis!="x"){if(D.overflowOffset.top+D.scrollParent[0].offsetHeight-E.pageY<C.scrollSensitivity){D.scrollParent[0].scrollTop=B=D.scrollParent[0].scrollTop+C.scrollSpeed;
}else{if(E.pageY-D.overflowOffset.top<C.scrollSensitivity){D.scrollParent[0].scrollTop=B=D.scrollParent[0].scrollTop-C.scrollSpeed;}}}if(!C.axis||C.axis!="y"){if(D.overflowOffset.left+D.scrollParent[0].offsetWidth-E.pageX<C.scrollSensitivity){D.scrollParent[0].scrollLeft=B=D.scrollParent[0].scrollLeft+C.scrollSpeed;
}else{if(E.pageX-D.overflowOffset.left<C.scrollSensitivity){D.scrollParent[0].scrollLeft=B=D.scrollParent[0].scrollLeft-C.scrollSpeed;}}}}else{if(!C.axis||C.axis!="x"){if(E.pageY-A(document).scrollTop()<C.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()-C.scrollSpeed);}else{if(A(window).height()-(E.pageY-A(document).scrollTop())<C.scrollSensitivity){B=A(document).scrollTop(A(document).scrollTop()+C.scrollSpeed);
}}}if(!C.axis||C.axis!="y"){if(E.pageX-A(document).scrollLeft()<C.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()-C.scrollSpeed);}else{if(A(window).width()-(E.pageX-A(document).scrollLeft())<C.scrollSensitivity){B=A(document).scrollLeft(A(document).scrollLeft()+C.scrollSpeed);}}}}B!==false&&A.ui.ddmanager&&!C.dropBehaviour&&A.ui.ddmanager.prepareOffsets(D,E);
}});A.ui.plugin.add("draggable","snap",{start:function(){var C=A(this).data("draggable"),B=C.options;C.snapElements=[];A(B.snap.constructor!=String?B.snap.items||":data(draggable)":B.snap).each(function(){var E=A(this),D=E.offset();this!=C.element[0]&&C.snapElements.push({item:this,width:E.outerWidth(),height:E.outerHeight(),top:D.top,left:D.left});
});},drag:function(S,R){for(var Q=A(this).data("draggable"),N=Q.options,O=N.snapTolerance,M=R.offset.left,T=M+Q.helperProportions.width,P=R.offset.top,L=P+Q.helperProportions.height,J=Q.snapElements.length-1;J>=0;J--){var G=Q.snapElements[J].left,H=G+Q.snapElements[J].width,K=Q.snapElements[J].top,I=K+Q.snapElements[J].height;
if(G-O<M&&M<H+O&&K-O<P&&P<I+O||G-O<M&&M<H+O&&K-O<L&&L<I+O||G-O<T&&T<H+O&&K-O<P&&P<I+O||G-O<T&&T<H+O&&K-O<L&&L<I+O){if(N.snapMode!="inner"){var F=Math.abs(K-L)<=O,E=Math.abs(I-P)<=O,C=Math.abs(G-T)<=O,D=Math.abs(H-M)<=O;if(F){R.position.top=Q._convertPositionTo("relative",{top:K-Q.helperProportions.height,left:0}).top-Q.margins.top;
}if(E){R.position.top=Q._convertPositionTo("relative",{top:I,left:0}).top-Q.margins.top;}if(C){R.position.left=Q._convertPositionTo("relative",{top:0,left:G-Q.helperProportions.width}).left-Q.margins.left;}if(D){R.position.left=Q._convertPositionTo("relative",{top:0,left:H}).left-Q.margins.left;}}var B=F||E||C||D;
if(N.snapMode!="outer"){F=Math.abs(K-P)<=O;E=Math.abs(I-L)<=O;C=Math.abs(G-M)<=O;D=Math.abs(H-T)<=O;if(F){R.position.top=Q._convertPositionTo("relative",{top:K,left:0}).top-Q.margins.top;}if(E){R.position.top=Q._convertPositionTo("relative",{top:I-Q.helperProportions.height,left:0}).top-Q.margins.top;
}if(C){R.position.left=Q._convertPositionTo("relative",{top:0,left:G}).left-Q.margins.left;}if(D){R.position.left=Q._convertPositionTo("relative",{top:0,left:H-Q.helperProportions.width}).left-Q.margins.left;}}if(!Q.snapElements[J].snapping&&(F||E||C||D||B)){Q.options.snap.snap&&Q.options.snap.snap.call(Q.element,S,A.extend(Q._uiHash(),{snapItem:Q.snapElements[J].item}));
}Q.snapElements[J].snapping=F||E||C||D||B;}else{Q.snapElements[J].snapping&&Q.options.snap.release&&Q.options.snap.release.call(Q.element,S,A.extend(Q._uiHash(),{snapItem:Q.snapElements[J].item}));Q.snapElements[J].snapping=false;}}}});A.ui.plugin.add("draggable","stack",{start:function(){var C=A(this).data("draggable").options;
C=A.makeArray(A(C.stack)).sort(function(E,D){return(parseInt(A(E).css("zIndex"),10)||0)-(parseInt(A(D).css("zIndex"),10)||0);});if(C.length){var B=parseInt(C[0].style.zIndex)||0;A(C).each(function(D){this.style.zIndex=B+D;});this[0].style.zIndex=B+C.length;}}});A.ui.plugin.add("draggable","zIndex",{start:function(C,B){C=A(B.helper);
B=A(this).data("draggable").options;if(C.css("zIndex")){B._zIndex=C.css("zIndex");}C.css("zIndex",B.zIndex);},stop:function(C,B){C=A(this).data("draggable").options;C._zIndex&&A(B.helper).css("zIndex",C._zIndex);}});})(jQuery);(function(A){A.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var C=this.options,B=C.accept;
this.isover=0;this.isout=1;this.accept=A.isFunction(B)?B:function(D){return D.is(B);};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};A.ui.ddmanager.droppables[C.scope]=A.ui.ddmanager.droppables[C.scope]||[];A.ui.ddmanager.droppables[C.scope].push(this);C.addClasses&&this.element.addClass("ui-droppable");
},destroy:function(){for(var C=A.ui.ddmanager.droppables[this.options.scope],B=0;B<C.length;B++){C[B]==this&&C.splice(B,1);}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this;},_setOption:function(C,B){if(C=="accept"){this.accept=A.isFunction(B)?B:function(D){return D.is(B);
};}A.Widget.prototype._setOption.apply(this,arguments);},_activate:function(C){var B=A.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);B&&this._trigger("activate",C,this.ui(B));},_deactivate:function(C){var B=A.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);
B&&this._trigger("deactivate",C,this.ui(B));},_over:function(C){var B=A.ui.ddmanager.current;if(!(!B||(B.currentItem||B.element)[0]==this.element[0])){if(this.accept.call(this.element[0],B.currentItem||B.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",C,this.ui(B));
}}},_out:function(C){var B=A.ui.ddmanager.current;if(!(!B||(B.currentItem||B.element)[0]==this.element[0])){if(this.accept.call(this.element[0],B.currentItem||B.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",C,this.ui(B));}}},_drop:function(E,D){var C=D||A.ui.ddmanager.current;
if(!C||(C.currentItem||C.element)[0]==this.element[0]){return false;}var B=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var F=A.data(this,"droppable");if(F.options.greedy&&!F.options.disabled&&F.options.scope==C.options.scope&&F.accept.call(F.element[0],C.currentItem||C.element)&&A.ui.intersect(C,A.extend(F,{offset:F.element.offset()}),F.options.tolerance)){B=true;
return false;}});if(B){return false;}if(this.accept.call(this.element[0],C.currentItem||C.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",E,this.ui(C));return this.element;
}return false;},ui:function(B){return{draggable:B.currentItem||B.element,helper:B.helper,position:B.position,offset:B.positionAbs};}});A.extend(A.ui.droppable,{version:"1.8.15"});A.ui.intersect=function(K,J,I){if(!J.offset){return false;}var F=(K.positionAbs||K.position.absolute).left,G=F+K.helperProportions.width,E=(K.positionAbs||K.position.absolute).top,L=E+K.helperProportions.height,H=J.offset.left,D=H+J.proportions.width,C=J.offset.top,B=C+J.proportions.height;
switch(I){case"fit":return H<=F&&G<=D&&C<=E&&L<=B;case"intersect":return H<F+K.helperProportions.width/2&&G-K.helperProportions.width/2<D&&C<E+K.helperProportions.height/2&&L-K.helperProportions.height/2<B;case"pointer":return A.ui.isOver((K.positionAbs||K.position.absolute).top+(K.clickOffset||K.offset.click).top,(K.positionAbs||K.position.absolute).left+(K.clickOffset||K.offset.click).left,C,H,J.proportions.height,J.proportions.width);
case"touch":return(E>=C&&E<=B||L>=C&&L<=B||E<C&&L>B)&&(F>=H&&F<=D||G>=H&&G<=D||F<H&&G>D);default:return false;}};A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(H,G){var F=A.ui.ddmanager.droppables[H.options.scope]||[],D=G?G.type:null,E=(H.currentItem||H.element).find(":data(droppable)").andSelf(),C=0;
A:for(;C<F.length;C++){if(!(F[C].options.disabled||H&&!F[C].accept.call(F[C].element[0],H.currentItem||H.element))){for(var B=0;B<E.length;B++){if(E[B]==F[C].element[0]){F[C].proportions.height=0;continue A;}}F[C].visible=F[C].element.css("display")!="none";if(F[C].visible){D=="mousedown"&&F[C]._activate.call(F[C],G);
F[C].offset=F[C].element.offset();F[C].proportions={width:F[C].element[0].offsetWidth,height:F[C].element[0].offsetHeight};}}}},drop:function(D,C){var B=false;A.each(A.ui.ddmanager.droppables[D.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&A.ui.intersect(D,this,this.options.tolerance)){B=B||this._drop.call(this,C);
}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],D.currentItem||D.element)){this.isout=1;this.isover=0;this._deactivate.call(this,C);}}});return B;},dragStart:function(C,B){C.element.parentsUntil("body").bind("scroll.droppable",function(){C.options.refreshPositions||A.ui.ddmanager.prepareOffsets(C,B);
});},drag:function(C,B){C.options.refreshPositions&&A.ui.ddmanager.prepareOffsets(C,B);A.each(A.ui.ddmanager.droppables[C.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var F=A.ui.intersect(C,this,this.options.tolerance);if(F=!F&&this.isover==1?"isout":F&&this.isover==0?"isover":null){var D;
if(this.options.greedy){var E=this.element.parents(":data(droppable):eq(0)");if(E.length){D=A.data(E[0],"droppable");D.greedyChild=F=="isover"?1:0;}}if(D&&F=="isover"){D.isover=0;D.isout=1;D._out.call(D,B);}this[F]=1;this[F=="isout"?"isover":"isout"]=0;this[F=="isover"?"_over":"_out"].call(this,B);if(D&&F=="isout"){D.isout=0;
D.isover=1;D._over.call(D,B);}}}});},dragStop:function(C,B){C.element.parentsUntil("body").unbind("scroll.droppable");C.options.refreshPositions||A.ui.ddmanager.prepareOffsets(C,B);}};})(jQuery);(function(A){A.widget("ui.resizable",A.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var I=this,F=this.options;
this.element.addClass("ui-resizable");A.extend(this,{_aspectRatio:!!F.aspectRatio,aspectRatio:F.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:F.helper||F.ghost||F.animate?F.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&A.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});
this.element.wrap(A('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));
this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});
this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize();
}this.handles=F.handles||(!A(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw";
}var G=this.handles.split(",");this.handles={};for(var E=0;E<G.length;E++){var D=A.trim(G[E]),H=A('<div class="ui-resizable-handle '+("ui-resizable-"+D)+'"></div>');/sw|se|ne|nw/.test(D)&&H.css({zIndex:++F.zIndex});"se"==D&&H.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[D]=".ui-resizable-"+D;
this.element.append(H);}}this._renderAxis=function(K){K=K||this.element;for(var J in this.handles){if(this.handles[J].constructor==String){this.handles[J]=A(this.handles[J],this.element).show();}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var L=A(this.handles[J],this.element),M=0;
M=/sw|ne|nw|se|n|s/.test(J)?L.outerHeight():L.outerWidth();L=["padding",/ne|nw|n/.test(J)?"Top":/se|sw|s/.test(J)?"Bottom":/^e$/.test(J)?"Right":"Left"].join("");K.css(L,M);this._proportionallyResize();}A(this.handles[J]);}};this._renderAxis(this.element);this._handles=A(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!I.resizing){if(this.className){var J=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);}I.axis=J&&J[1]?J[1]:"se";}});if(F.autoHide){this._handles.hide();A(this.element).addClass("ui-resizable-autohide").hover(function(){if(!F.disabled){A(this).removeClass("ui-resizable-autohide");
I._handles.show();}},function(){if(!F.disabled){if(!I.resizing){A(this).addClass("ui-resizable-autohide");I._handles.hide();}}});}this._mouseInit();},destroy:function(){this._mouseDestroy();var E=function(F){A(F).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove();
};if(this.elementIsWrapper){E(this.element);var D=this.element;D.after(this.originalElement.css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).remove();}this.originalElement.css("resize",this.originalResizeStyle);E(this.originalElement);
return this;},_mouseCapture:function(F){var D=false;for(var E in this.handles){if(A(this.handles[E])[0]==F.target){D=true;}}return !this.options.disabled&&D;},_mouseStart:function(H){var F=this.options,G=this.element.position(),E=this.element;this.resizing=true;this.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};
if(E.is(".ui-draggable")||/absolute/.test(E.css("position"))){E.css({position:"absolute",top:G.top,left:G.left});}A.browser.opera&&/relative/.test(E.css("position"))&&E.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();G=C(this.helper.css("left"));var D=C(this.helper.css("top"));if(F.containment){G+=A(F.containment).scrollLeft()||0;
D+=A(F.containment).scrollTop()||0;}this.offset=this.helper.offset();this.position={left:G,top:D};this.size=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()};this.originalSize=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()};
this.originalPosition={left:G,top:D};this.sizeDiff={width:E.outerWidth()-E.width(),height:E.outerHeight()-E.height()};this.originalMousePosition={left:H.pageX,top:H.pageY};this.aspectRatio=typeof F.aspectRatio=="number"?F.aspectRatio:this.originalSize.width/this.originalSize.height||1;F=A(".ui-resizable-"+this.axis).css("cursor");
A("body").css("cursor",F=="auto"?this.axis+"-resize":F);E.addClass("ui-resizable-resizing");this._propagate("start",H);return true;},_mouseDrag:function(G){var E=this.helper,F=this.originalMousePosition,D=this._change[this.axis];if(!D){return false;}F=D.apply(this,[G,G.pageX-F.left||0,G.pageY-F.top||0]);
this._updateVirtualBoundaries(G.shiftKey);if(this._aspectRatio||G.shiftKey){F=this._updateRatio(F,G);}F=this._respectSize(F,G);this._propagate("resize",G);E.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();
this._updateCache(F);this._trigger("resize",G,this.ui());return false;},_mouseStop:function(I){this.resizing=false;var F=this.options,G=this;if(this._helper){var E=this._proportionallyResizeElements,D=E.length&&/textarea/i.test(E[0].nodeName);E=D&&A.ui.hasScroll(E[0],"left")?0:G.sizeDiff.height;D=D?0:G.sizeDiff.width;
D={width:G.helper.width()-D,height:G.helper.height()-E};E=parseInt(G.element.css("left"),10)+(G.position.left-G.originalPosition.left)||null;var H=parseInt(G.element.css("top"),10)+(G.position.top-G.originalPosition.top)||null;F.animate||this.element.css(A.extend(D,{top:H,left:E}));G.helper.height(G.size.height);
G.helper.width(G.size.width);this._helper&&!F.animate&&this._proportionallyResize();}A("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",I);this._helper&&this.helper.remove();return false;},_updateVirtualBoundaries:function(H){var F=this.options,G,E,D;
F={minWidth:B(F.minWidth)?F.minWidth:0,maxWidth:B(F.maxWidth)?F.maxWidth:Infinity,minHeight:B(F.minHeight)?F.minHeight:0,maxHeight:B(F.maxHeight)?F.maxHeight:Infinity};if(this._aspectRatio||H){H=F.minHeight*this.aspectRatio;E=F.minWidth/this.aspectRatio;G=F.maxHeight*this.aspectRatio;D=F.maxWidth/this.aspectRatio;
if(H>F.minWidth){F.minWidth=H;}if(E>F.minHeight){F.minHeight=E;}if(G<F.maxWidth){F.maxWidth=G;}if(D<F.maxHeight){F.maxHeight=D;}}this._vBoundaries=F;},_updateCache:function(D){this.offset=this.helper.offset();if(B(D.left)){this.position.left=D.left;}if(B(D.top)){this.position.top=D.top;}if(B(D.height)){this.size.height=D.height;
}if(B(D.width)){this.size.width=D.width;}},_updateRatio:function(G){var E=this.position,F=this.size,D=this.axis;if(B(G.height)){G.width=G.height*this.aspectRatio;}else{if(B(G.width)){G.height=G.width/this.aspectRatio;}}if(D=="sw"){G.left=E.left+(F.width-G.width);G.top=null;}if(D=="nw"){G.top=E.top+(F.height-G.height);
G.left=E.left+(F.width-G.width);}return G;},_respectSize:function(L){var I=this._vBoundaries,J=this.axis,H=B(L.width)&&I.maxWidth&&I.maxWidth<L.width,M=B(L.height)&&I.maxHeight&&I.maxHeight<L.height,K=B(L.width)&&I.minWidth&&I.minWidth>L.width,G=B(L.height)&&I.minHeight&&I.minHeight>L.height;if(K){L.width=I.minWidth;
}if(G){L.height=I.minHeight;}if(H){L.width=I.maxWidth;}if(M){L.height=I.maxHeight;}var F=this.originalPosition.left+this.originalSize.width,D=this.position.top+this.size.height,E=/sw|nw|w/.test(J);J=/nw|ne|n/.test(J);if(K&&E){L.left=F-I.minWidth;}if(H&&E){L.left=F-I.maxWidth;}if(G&&J){L.top=D-I.minHeight;
}if(M&&J){L.top=D-I.maxHeight;}if((I=!L.width&&!L.height)&&!L.left&&L.top){L.top=null;}else{if(I&&!L.top&&L.left){L.left=null;}}return L;},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var H=this.helper||this.element,F=0;F<this._proportionallyResizeElements.length;
F++){var G=this._proportionallyResizeElements[F];if(!this.borderDif){var E=[G.css("borderTopWidth"),G.css("borderRightWidth"),G.css("borderBottomWidth"),G.css("borderLeftWidth")],D=[G.css("paddingTop"),G.css("paddingRight"),G.css("paddingBottom"),G.css("paddingLeft")];this.borderDif=A.map(E,function(J,I){J=parseInt(J,10)||0;
I=parseInt(D[I],10)||0;return J+I;});}A.browser.msie&&(A(H).is(":hidden")||A(H).parents(":hidden").length)||G.css({height:H.height()-this.borderDif[0]-this.borderDif[2]||0,width:H.width()-this.borderDif[1]-this.borderDif[3]||0});}}},_renderProxy:function(){var F=this.options;this.elementOffset=this.element.offset();
if(this._helper){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var D=A.browser.msie&&A.browser.version<7,E=D?1:0;D=D?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+D,height:this.element.outerHeight()+D,position:"absolute",left:this.elementOffset.left-E+"px",top:this.elementOffset.top-E+"px",zIndex:++F.zIndex});
this.helper.appendTo("body").disableSelection();}else{this.helper=this.element;}},_change:{e:function(E,D){return{width:this.originalSize.width+D};},w:function(E,D){return{left:this.originalPosition.left+D,width:this.originalSize.width-D};},n:function(F,D,E){return{top:this.originalPosition.top+E,height:this.originalSize.height-E};
},s:function(F,D,E){return{height:this.originalSize.height+E};},se:function(F,D,E){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[F,D,E]));},sw:function(F,D,E){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[F,D,E]));},ne:function(F,D,E){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[F,D,E]));
},nw:function(F,D,E){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[F,D,E]));}},_propagate:function(E,D){A.ui.plugin.call(this,E,[D,this.ui()]);E!="resize"&&this._trigger(E,D,this.ui());},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition};
}});A.extend(A.ui.resizable,{version:"1.8.15"});A.ui.plugin.add("resizable","alsoResize",{start:function(){var E=A(this).data("resizable").options,D=function(F){A(F).each(function(){var G=A(this);G.data("resizable-alsoresize",{width:parseInt(G.width(),10),height:parseInt(G.height(),10),left:parseInt(G.css("left"),10),top:parseInt(G.css("top"),10),position:G.css("position")});
});};if(typeof E.alsoResize=="object"&&!E.alsoResize.parentNode){if(E.alsoResize.length){E.alsoResize=E.alsoResize[0];D(E.alsoResize);}else{A.each(E.alsoResize,function(F){D(F);});}}else{D(E.alsoResize);}},resize:function(J,G){var H=A(this).data("resizable");J=H.options;var F=H.originalSize,D=H.originalPosition,I={height:H.size.height-F.height||0,width:H.size.width-F.width||0,top:H.position.top-D.top||0,left:H.position.left-D.left||0},E=function(K,L){A(K).each(function(){var P=A(this),N=A(this).data("resizable-alsoresize"),M={},O=L&&L.length?L:P.parents(G.originalElement[0]).length?["width","height"]:["width","height","top","left"];
A.each(O,function(R,Q){if((R=(N[Q]||0)+(I[Q]||0))&&R>=0){M[Q]=R||null;}});if(A.browser.opera&&/relative/.test(P.css("position"))){H._revertToRelativePosition=true;P.css({position:"absolute",top:"auto",left:"auto"});}P.css(M);});};typeof J.alsoResize=="object"&&!J.alsoResize.nodeType?A.each(J.alsoResize,function(K,L){E(K,L);
}):E(J.alsoResize);},stop:function(){var F=A(this).data("resizable"),D=F.options,E=function(G){A(G).each(function(){var H=A(this);H.css({position:H.data("resizable-alsoresize").position});});};if(F._revertToRelativePosition){F._revertToRelativePosition=false;typeof D.alsoResize=="object"&&!D.alsoResize.nodeType?A.each(D.alsoResize,function(G){E(G);
}):E(D.alsoResize);}A(this).removeData("resizable-alsoresize");}});A.ui.plugin.add("resizable","animate",{stop:function(J){var G=A(this).data("resizable"),H=G.options,F=G._proportionallyResizeElements,D=F.length&&/textarea/i.test(F[0].nodeName),I=D&&A.ui.hasScroll(F[0],"left")?0:G.sizeDiff.height;D={width:G.size.width-(D?0:G.sizeDiff.width),height:G.size.height-I};
I=parseInt(G.element.css("left"),10)+(G.position.left-G.originalPosition.left)||null;var E=parseInt(G.element.css("top"),10)+(G.position.top-G.originalPosition.top)||null;G.element.animate(A.extend(D,E&&I?{top:E,left:I}:{}),{duration:H.animateDuration,easing:H.animateEasing,step:function(){var K={width:parseInt(G.element.css("width"),10),height:parseInt(G.element.css("height"),10),top:parseInt(G.element.css("top"),10),left:parseInt(G.element.css("left"),10)};
F&&F.length&&A(F[0]).css({width:K.width,height:K.height});G._updateCache(K);G._propagate("resize",J);}});}});A.ui.plugin.add("resizable","containment",{start:function(){var J=A(this).data("resizable"),G=J.element,H=J.options.containment;if(G=H instanceof A?H.get(0):/parent/.test(H)?G.parent().get(0):H){J.containerElement=A(G);
if(/document/.test(H)||H==document){J.containerOffset={left:0,top:0};J.containerPosition={left:0,top:0};J.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight};}else{var F=A(G),D=[];A(["Top","Right","Left","Bottom"]).each(function(K,L){D[K]=C(F.css("padding"+L));
});J.containerOffset=F.offset();J.containerPosition=F.position();J.containerSize={height:F.innerHeight()-D[3],width:F.innerWidth()-D[1]};H=J.containerOffset;var I=J.containerSize.height,E=J.containerSize.width;E=A.ui.hasScroll(G,"left")?G.scrollWidth:E;I=A.ui.hasScroll(G)?G.scrollHeight:I;J.parentData={element:G,left:H.left,top:H.top,width:E,height:I};
}}},resize:function(J){var G=A(this).data("resizable"),H=G.options,F=G.containerOffset,D=G.position;J=G._aspectRatio||J.shiftKey;var I={top:0,left:0},E=G.containerElement;if(E[0]!=document&&/static/.test(E.css("position"))){I=F;}if(D.left<(G._helper?F.left:0)){G.size.width+=G._helper?G.position.left-F.left:G.position.left-I.left;
if(J){G.size.height=G.size.width/H.aspectRatio;}G.position.left=H.helper?F.left:0;}if(D.top<(G._helper?F.top:0)){G.size.height+=G._helper?G.position.top-F.top:G.position.top;if(J){G.size.width=G.size.height*H.aspectRatio;}G.position.top=G._helper?F.top:0;}G.offset.left=G.parentData.left+G.position.left;
G.offset.top=G.parentData.top+G.position.top;H=Math.abs((G._helper?G.offset.left-I.left:G.offset.left-I.left)+G.sizeDiff.width);F=Math.abs((G._helper?G.offset.top-I.top:G.offset.top-F.top)+G.sizeDiff.height);D=G.containerElement.get(0)==G.element.parent().get(0);I=/relative|absolute/.test(G.containerElement.css("position"));
if(D&&I){H-=G.parentData.left;}if(H+G.size.width>=G.parentData.width){G.size.width=G.parentData.width-H;if(J){G.size.height=G.size.width/G.aspectRatio;}}if(F+G.size.height>=G.parentData.height){G.size.height=G.parentData.height-F;if(J){G.size.width=G.size.height*G.aspectRatio;}}},stop:function(){var K=A(this).data("resizable"),H=K.options,I=K.containerOffset,G=K.containerPosition,D=K.containerElement,J=A(K.helper),F=J.offset(),E=J.outerWidth()-K.sizeDiff.width;
J=J.outerHeight()-K.sizeDiff.height;K._helper&&!H.animate&&/relative/.test(D.css("position"))&&A(this).css({left:F.left-G.left-I.left,width:E,height:J});K._helper&&!H.animate&&/static/.test(D.css("position"))&&A(this).css({left:F.left-G.left-I.left,width:E,height:J});}});A.ui.plugin.add("resizable","ghost",{start:function(){var F=A(this).data("resizable"),D=F.options,E=F.size;
F.ghost=F.originalElement.clone();F.ghost.css({opacity:0.25,display:"block",position:"relative",height:E.height,width:E.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof D.ghost=="string"?D.ghost:"");F.ghost.appendTo(F.helper);},resize:function(){var D=A(this).data("resizable");
D.ghost&&D.ghost.css({position:"relative",height:D.size.height,width:D.size.width});},stop:function(){var D=A(this).data("resizable");D.ghost&&D.helper&&D.helper.get(0).removeChild(D.ghost.get(0));}});A.ui.plugin.add("resizable","grid",{resize:function(){var J=A(this).data("resizable"),G=J.options,H=J.size,F=J.originalSize,D=J.originalPosition,I=J.axis;
G.grid=typeof G.grid=="number"?[G.grid,G.grid]:G.grid;var E=Math.round((H.width-F.width)/(G.grid[0]||1))*(G.grid[0]||1);G=Math.round((H.height-F.height)/(G.grid[1]||1))*(G.grid[1]||1);if(/^(se|s|e)$/.test(I)){J.size.width=F.width+E;J.size.height=F.height+G;}else{if(/^(ne)$/.test(I)){J.size.width=F.width+E;
J.size.height=F.height+G;J.position.top=D.top-G;}else{if(/^(sw)$/.test(I)){J.size.width=F.width+E;J.size.height=F.height+G;}else{J.size.width=F.width+E;J.size.height=F.height+G;J.position.top=D.top-G;}J.position.left=D.left-E;}}}});var C=function(D){return parseInt(D,10)||0;},B=function(D){return !isNaN(parseInt(D,10));
};})(jQuery);(function(A){A.widget("ui.selectable",A.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var C=this;this.element.addClass("ui-selectable");this.dragged=false;var B;this.refresh=function(){B=A(C.options.filter,C.element[0]);B.each(function(){var E=A(this),D=E.offset();
A.data(this,"selectable-item",{element:this,$element:E,left:D.left,top:D.top,right:D.left+E.outerWidth(),bottom:D.top+E.outerHeight(),startselected:false,selected:E.hasClass("ui-selected"),selecting:E.hasClass("ui-selecting"),unselecting:E.hasClass("ui-unselecting")});});};this.refresh();this.selectees=B.addClass("ui-selectee");
this._mouseInit();this.helper=A("<div class='ui-selectable-helper'></div>");},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();
return this;},_mouseStart:function(D){var C=this;this.opos=[D.pageX,D.pageY];if(!this.options.disabled){var B=this.options;this.selectees=A(B.filter,this.element[0]);this._trigger("start",D);A(B.appendTo).append(this.helper);this.helper.css({left:D.clientX,top:D.clientY,width:0,height:0});B.autoRefresh&&this.refresh();
this.selectees.filter(".ui-selected").each(function(){var E=A.data(this,"selectable-item");E.startselected=true;if(!D.metaKey){E.$element.removeClass("ui-selected");E.selected=false;E.$element.addClass("ui-unselecting");E.unselecting=true;C._trigger("unselecting",D,{unselecting:E.element});}});A(D.target).parents().andSelf().each(function(){var E=A.data(this,"selectable-item");
if(E){var F=!D.metaKey||!E.$element.hasClass("ui-selected");E.$element.removeClass(F?"ui-unselecting":"ui-selected").addClass(F?"ui-selecting":"ui-unselecting");E.unselecting=!F;E.selecting=F;(E.selected=F)?C._trigger("selecting",D,{selecting:E.element}):C._trigger("unselecting",D,{unselecting:E.element});
return false;}});}},_mouseDrag:function(I){var H=this;this.dragged=true;if(!this.options.disabled){var G=this.options,D=this.opos[0],E=this.opos[1],C=I.pageX,B=I.pageY;if(D>C){var F=C;C=D;D=F;}if(E>B){F=B;B=E;E=F;}this.helper.css({left:D,top:E,width:C-D,height:B-E});this.selectees.each(function(){var K=A.data(this,"selectable-item");
if(!(!K||K.element==H.element[0])){var J=false;if(G.tolerance=="touch"){J=!(K.left>C||K.right<D||K.top>B||K.bottom<E);}else{if(G.tolerance=="fit"){J=K.left>D&&K.right<C&&K.top>E&&K.bottom<B;}}if(J){if(K.selected){K.$element.removeClass("ui-selected");K.selected=false;}if(K.unselecting){K.$element.removeClass("ui-unselecting");
K.unselecting=false;}if(!K.selecting){K.$element.addClass("ui-selecting");K.selecting=true;H._trigger("selecting",I,{selecting:K.element});}}else{if(K.selecting){if(I.metaKey&&K.startselected){K.$element.removeClass("ui-selecting");K.selecting=false;K.$element.addClass("ui-selected");K.selected=true;
}else{K.$element.removeClass("ui-selecting");K.selecting=false;if(K.startselected){K.$element.addClass("ui-unselecting");K.unselecting=true;}H._trigger("unselecting",I,{unselecting:K.element});}}if(K.selected){if(!I.metaKey&&!K.startselected){K.$element.removeClass("ui-selected");K.selected=false;K.$element.addClass("ui-unselecting");
K.unselecting=true;H._trigger("unselecting",I,{unselecting:K.element});}}}}});return false;}},_mouseStop:function(C){var B=this;this.dragged=false;A(".ui-unselecting",this.element[0]).each(function(){var D=A.data(this,"selectable-item");D.$element.removeClass("ui-unselecting");D.unselecting=false;D.startselected=false;
B._trigger("unselected",C,{unselected:D.element});});A(".ui-selecting",this.element[0]).each(function(){var D=A.data(this,"selectable-item");D.$element.removeClass("ui-selecting").addClass("ui-selected");D.selecting=false;D.selected=true;D.startselected=true;B._trigger("selected",C,{selected:D.element});
});this._trigger("stop",C);this.helper.remove();return false;}});A.extend(A.ui.selectable,{version:"1.8.15"});})(jQuery);(function(A){A.widget("ui.sortable",A.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var B=this.options;
this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?B.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit();},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this._mouseDestroy();for(var B=this.items.length-1;B>=0;B--){this.items[B].item.removeData("sortable-item");}return this;},_setOption:function(C,B){if(C==="disabled"){this.options[C]=B;this.widget()[B?"addClass":"removeClass"]("ui-sortable-disabled");}else{A.Widget.prototype._setOption.apply(this,arguments);
}},_mouseCapture:function(F,E){if(this.reverting){return false;}if(this.options.disabled||this.options.type=="static"){return false;}this._refreshItems(F);var D=null,B=this;A(F.target).parents().each(function(){if(A.data(this,"sortable-item")==B){D=A(this);return false;}});if(A.data(F.target,"sortable-item")==B){D=A(F.target);
}if(!D){return false;}if(this.options.handle&&!E){var C=false;A(this.options.handle,D).find("*").andSelf().each(function(){if(this==F.target){C=true;}});if(!C){return false;}}this.currentItem=D;this._removeCurrentsFromItems();return true;},_mouseStart:function(E,D,C){D=this.options;var B=this;this.currentContainer=this;
this.refreshPositions();this.helper=this._createHelper(E);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");
this.cssPosition=this.helper.css("position");A.extend(this.offset,{click:{left:E.pageX-this.offset.left,top:E.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(E);this.originalPageX=E.pageX;this.originalPageY=E.pageY;
D.cursorAt&&this._adjustOffsetFromHelper(D.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();D.containment&&this._setContainment();if(D.cursor){if(A("body").css("cursor")){this._storedCursor=A("body").css("cursor");
}A("body").css("cursor",D.cursor);}if(D.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity");}this.helper.css("opacity",D.opacity);}if(D.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex");}this.helper.css("zIndex",D.zIndex);}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset();
}this._trigger("start",E,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!C){for(C=this.containers.length-1;C>=0;C--){this.containers[C]._trigger("activate",E,B._uiHash(this));}}if(A.ui.ddmanager){A.ui.ddmanager.current=this;}A.ui.ddmanager&&!D.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,E);
this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(E);return true;},_mouseDrag:function(F){this.position=this._generatePosition(F);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs;}if(this.options.scroll){var E=this.options,D=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-F.pageY<E.scrollSensitivity){this.scrollParent[0].scrollTop=D=this.scrollParent[0].scrollTop+E.scrollSpeed;}else{if(F.pageY-this.overflowOffset.top<E.scrollSensitivity){this.scrollParent[0].scrollTop=D=this.scrollParent[0].scrollTop-E.scrollSpeed;
}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-F.pageX<E.scrollSensitivity){this.scrollParent[0].scrollLeft=D=this.scrollParent[0].scrollLeft+E.scrollSpeed;}else{if(F.pageX-this.overflowOffset.left<E.scrollSensitivity){this.scrollParent[0].scrollLeft=D=this.scrollParent[0].scrollLeft-E.scrollSpeed;
}}}else{if(F.pageY-A(document).scrollTop()<E.scrollSensitivity){D=A(document).scrollTop(A(document).scrollTop()-E.scrollSpeed);}else{if(A(window).height()-(F.pageY-A(document).scrollTop())<E.scrollSensitivity){D=A(document).scrollTop(A(document).scrollTop()+E.scrollSpeed);}}if(F.pageX-A(document).scrollLeft()<E.scrollSensitivity){D=A(document).scrollLeft(A(document).scrollLeft()-E.scrollSpeed);
}else{if(A(window).width()-(F.pageX-A(document).scrollLeft())<E.scrollSensitivity){D=A(document).scrollLeft(A(document).scrollLeft()+E.scrollSpeed);}}}D!==false&&A.ui.ddmanager&&!E.dropBehaviour&&A.ui.ddmanager.prepareOffsets(this,F);}this.positionAbs=this._convertPositionTo("absolute");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";}for(E=this.items.length-1;E>=0;E--){D=this.items[E];var B=D.item[0],C=this._intersectsWithPointer(D);if(C){if(B!=this.currentItem[0]&&this.placeholder[C==1?"next":"prev"]()[0]!=B&&!A.ui.contains(this.placeholder[0],B)&&(this.options.type=="semi-dynamic"?!A.ui.contains(this.element[0],B):true)){this.direction=C==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(D)){this._rearrange(F,D);}else{break;}this._trigger("change",F,this._uiHash());break;}}}this._contactContainers(F);A.ui.ddmanager&&A.ui.ddmanager.drag(this,F);this._trigger("sort",F,this._uiHash());this.lastPositionAbs=this.positionAbs;return false;
},_mouseStop:function(D,C){if(D){A.ui.ddmanager&&!this.options.dropBehaviour&&A.ui.ddmanager.drop(this,D);if(this.options.revert){var B=this;C=B.placeholder.offset();B.reverting=true;A(this.helper).animate({left:C.left-this.offset.parent.left-B.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:C.top-this.offset.parent.top-B.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){B._clear(D);
});}else{this._clear(D,C);}return false;}},cancel:function(){var C=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var B=this.containers.length-1;B>=0;B--){this.containers[B]._trigger("deactivate",null,C._uiHash(this));
if(this.containers[B].containerCache.over){this.containers[B]._trigger("out",null,C._uiHash(this));this.containers[B].containerCache.over=0;}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();
A.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?A(this.domPosition.prev).after(this.currentItem):A(this.domPosition.parent).prepend(this.currentItem);}return this;},serialize:function(D){var C=this._getItemsAsjQuery(D&&D.connected),B=[];D=D||{};A(C).each(function(){var E=(A(D.item||this).attr(D.attribute||"id")||"").match(D.expression||/(.+)[-=_](.+)/);
if(E){B.push((D.key||E[1]+"[]")+"="+(D.key&&D.expression?E[1]:E[2]));}});!B.length&&D.key&&B.push(D.key+"=");return B.join("&");},toArray:function(D){var C=this._getItemsAsjQuery(D&&D.connected),B=[];D=D||{};C.each(function(){B.push(A(D.item||this).attr(D.attribute||"id")||"");});return B;},_intersectsWith:function(K){var J=this.positionAbs.left,I=J+this.helperProportions.width,F=this.positionAbs.top,G=F+this.helperProportions.height,E=K.left,L=E+K.width,H=K.top,D=H+K.height,C=this.offset.click.top,B=this.offset.click.left;
C=F+C>H&&F+C<D&&J+B>E&&J+B<L;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>K[this.floating?"width":"height"]?C:E<J+this.helperProportions.width/2&&I-this.helperProportions.width/2<L&&H<F+this.helperProportions.height/2&&G-this.helperProportions.height/2<D;
},_intersectsWithPointer:function(D){var C=A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,D.top,D.height);D=A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,D.left,D.width);C=C&&D;D=this._getDragVerticalDirection();var B=this._getDragHorizontalDirection();if(!C){return false;}return this.floating?B&&B=="right"||D=="down"?2:1:D&&(D=="down"?2:1);
},_intersectsWithSides:function(E){var D=A.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,E.top+E.height/2,E.height);E=A.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,E.left+E.width/2,E.width);var C=this._getDragVerticalDirection(),B=this._getDragHorizontalDirection();return this.floating&&B?B=="right"&&E||B=="left"&&!E:C&&(C=="down"&&D||C=="up"&&!D);
},_getDragVerticalDirection:function(){var B=this.positionAbs.top-this.lastPositionAbs.top;return B!=0&&(B>0?"down":"up");},_getDragHorizontalDirection:function(){var B=this.positionAbs.left-this.lastPositionAbs.left;return B!=0&&(B>0?"right":"left");},refresh:function(B){this._refreshItems(B);this.refreshPositions();
return this;},_connectWith:function(){var B=this.options;return B.connectWith.constructor==String?[B.connectWith]:B.connectWith;},_getItemsAsjQuery:function(H){var G=[],F=[],D=this._connectWith();if(D&&H){for(H=D.length-1;H>=0;H--){for(var E=A(D[H]),C=E.length-1;C>=0;C--){var B=A.data(E[C],"sortable");
if(B&&B!=this&&!B.options.disabled){F.push([A.isFunction(B.options.items)?B.options.items.call(B.element):A(B.options.items,B.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),B]);}}}}F.push([A.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):A(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);
for(H=F.length-1;H>=0;H--){F[H][0].each(function(){G.push(this);});}return A(G);},_removeCurrentsFromItems:function(){for(var D=this.currentItem.find(":data(sortable-item)"),C=0;C<this.items.length;C++){for(var B=0;B<D.length;B++){D[B]==this.items[C].item[0]&&this.items.splice(C,1);}}},_refreshItems:function(I){this.items=[];
this.containers=[this];var H=this.items,G=[[A.isFunction(this.options.items)?this.options.items.call(this.element[0],I,{item:this.currentItem}):A(this.options.items,this.element),this]],D=this._connectWith();if(D){for(var E=D.length-1;E>=0;E--){for(var C=A(D[E]),B=C.length-1;B>=0;B--){var F=A.data(C[B],"sortable");
if(F&&F!=this&&!F.options.disabled){G.push([A.isFunction(F.options.items)?F.options.items.call(F.element[0],I,{item:this.currentItem}):A(F.options.items,F.element),F]);this.containers.push(F);}}}}for(E=G.length-1;E>=0;E--){I=G[E][1];D=G[E][0];B=0;for(C=D.length;B<C;B++){F=A(D[B]);F.data("sortable-item",I);
H.push({item:F,instance:I,width:0,height:0,left:0,top:0});}}},refreshPositions:function(E){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset();}for(var D=this.items.length-1;D>=0;D--){var C=this.items[D];if(!(C.instance!=this.currentContainer&&this.currentContainer&&C.item[0]!=this.currentItem[0])){var B=this.options.toleranceElement?A(this.options.toleranceElement,C.item):C.item;
if(!E){C.width=B.outerWidth();C.height=B.outerHeight();}B=B.offset();C.left=B.left;C.top=B.top;}}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(D=this.containers.length-1;D>=0;D--){B=this.containers[D].element.offset();this.containers[D].containerCache.left=B.left;
this.containers[D].containerCache.top=B.top;this.containers[D].containerCache.width=this.containers[D].element.outerWidth();this.containers[D].containerCache.height=this.containers[D].element.outerHeight();}}return this;},_createPlaceholder:function(E){var D=E||this,C=D.options;if(!C.placeholder||C.placeholder.constructor==String){var B=C.placeholder;
C.placeholder={element:function(){var F=A(document.createElement(D.currentItem[0].nodeName)).addClass(B||D.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!B){F.style.visibility="hidden";}return F;},update:function(G,F){if(!(B&&!C.forcePlaceholderSize)){F.height()||F.height(D.currentItem.innerHeight()-parseInt(D.currentItem.css("paddingTop")||0,10)-parseInt(D.currentItem.css("paddingBottom")||0,10));
F.width()||F.width(D.currentItem.innerWidth()-parseInt(D.currentItem.css("paddingLeft")||0,10)-parseInt(D.currentItem.css("paddingRight")||0,10));}}};}D.placeholder=A(C.placeholder.element.call(D.element,D.currentItem));D.currentItem.after(D.placeholder);C.placeholder.update(D,D.placeholder);},_contactContainers:function(H){for(var G=null,F=null,D=this.containers.length-1;
D>=0;D--){if(!A.ui.contains(this.currentItem[0],this.containers[D].element[0])){if(this._intersectsWith(this.containers[D].containerCache)){if(!(G&&A.ui.contains(this.containers[D].element[0],G.element[0]))){G=this.containers[D];F=D;}}else{if(this.containers[D].containerCache.over){this.containers[D]._trigger("out",H,this._uiHash(this));
this.containers[D].containerCache.over=0;}}}}if(G){if(this.containers.length===1){this.containers[F]._trigger("over",H,this._uiHash(this));this.containers[F].containerCache.over=1;}else{if(this.currentContainer!=this.containers[F]){G=10000;D=null;for(var E=this.positionAbs[this.containers[F].floating?"left":"top"],C=this.items.length-1;
C>=0;C--){if(A.ui.contains(this.containers[F].element[0],this.items[C].item[0])){var B=this.items[C][this.containers[F].floating?"left":"top"];if(Math.abs(B-E)<G){G=Math.abs(B-E);D=this.items[C];}}}if(D||this.options.dropOnEmpty){this.currentContainer=this.containers[F];D?this._rearrange(H,D,null,true):this._rearrange(H,null,this.containers[F].element,true);
this._trigger("change",H,this._uiHash());this.containers[F]._trigger("change",H,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[F]._trigger("over",H,this._uiHash(this));this.containers[F].containerCache.over=1;}}}}},_createHelper:function(C){var B=this.options;
C=A.isFunction(B.helper)?A(B.helper.apply(this.element[0],[C,this.currentItem])):B.helper=="clone"?this.currentItem.clone():this.currentItem;C.parents("body").length||A(B.appendTo!="parent"?B.appendTo:this.currentItem[0].parentNode)[0].appendChild(C[0]);if(C[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};
}if(C[0].style.width==""||B.forceHelperSize){C.width(this.currentItem.width());}if(C[0].style.height==""||B.forceHelperSize){C.height(this.currentItem.height());}return C;},_adjustOffsetFromHelper:function(B){if(typeof B=="string"){B=B.split(" ");}if(A.isArray(B)){B={left:+B[0],top:+B[1]||0};}if("left" in B){this.offset.click.left=B.left+this.margins.left;
}if("right" in B){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left;}if("top" in B){this.offset.click.top=B.top+this.margins.top;}if("bottom" in B){this.offset.click.top=this.helperProportions.height-B.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var B=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0])){B.left+=this.scrollParent.scrollLeft();B.top+=this.scrollParent.scrollTop();}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.browser.msie){B={top:0,left:0};
}return{top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var B=this.currentItem.position();return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};
}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};
},_setContainment:function(){var D=this.options;if(D.containment=="parent"){D.containment=this.helper[0].parentNode;}if(D.containment=="document"||D.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(D.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(A(D.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];
}if(!/^(document|window|parent)$/.test(D.containment)){var C=A(D.containment)[0];D=A(D.containment).offset();var B=A(C).css("overflow")!="hidden";this.containment=[D.left+(parseInt(A(C).css("borderLeftWidth"),10)||0)+(parseInt(A(C).css("paddingLeft"),10)||0)-this.margins.left,D.top+(parseInt(A(C).css("borderTopWidth"),10)||0)+(parseInt(A(C).css("paddingTop"),10)||0)-this.margins.top,D.left+(B?Math.max(C.scrollWidth,C.offsetWidth):C.offsetWidth)-(parseInt(A(C).css("borderLeftWidth"),10)||0)-(parseInt(A(C).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,D.top+(B?Math.max(C.scrollHeight,C.offsetHeight):C.offsetHeight)-(parseInt(A(C).css("borderTopWidth"),10)||0)-(parseInt(A(C).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top];
}},_convertPositionTo:function(E,D){if(!D){D=this.position;}E=E=="absolute"?1:-1;var C=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=/(html|body)/i.test(C[0].tagName);return{top:D.top+this.offset.relative.top*E+this.offset.parent.top*E-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():B?0:C.scrollTop())*E),left:D.left+this.offset.relative.left*E+this.offset.parent.left*E-(A.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:C.scrollLeft())*E)};
},_generatePosition:function(G){var F=this.options,E=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&A.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,C=/(html|body)/i.test(E[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset();
}var D=G.pageX,B=G.pageY;if(this.originalPosition){if(this.containment){if(G.pageX-this.offset.click.left<this.containment[0]){D=this.containment[0]+this.offset.click.left;}if(G.pageY-this.offset.click.top<this.containment[1]){B=this.containment[1]+this.offset.click.top;}if(G.pageX-this.offset.click.left>this.containment[2]){D=this.containment[2]+this.offset.click.left;
}if(G.pageY-this.offset.click.top>this.containment[3]){B=this.containment[3]+this.offset.click.top;}}if(F.grid){B=this.originalPageY+Math.round((B-this.originalPageY)/F.grid[1])*F.grid[1];B=this.containment?!(B-this.offset.click.top<this.containment[1]||B-this.offset.click.top>this.containment[3])?B:!(B-this.offset.click.top<this.containment[1])?B-F.grid[1]:B+F.grid[1]:B;
D=this.originalPageX+Math.round((D-this.originalPageX)/F.grid[0])*F.grid[0];D=this.containment?!(D-this.offset.click.left<this.containment[0]||D-this.offset.click.left>this.containment[2])?D:!(D-this.offset.click.left<this.containment[0])?D-F.grid[0]:D+F.grid[0]:D;}}return{top:B-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(A.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():C?0:E.scrollTop()),left:D-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(A.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():C?0:E.scrollLeft())};
},_rearrange:function(G,F,E,C){E?E[0].appendChild(this.placeholder[0]):F.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?F.item[0]:F.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var D=this,B=this.counter;window.setTimeout(function(){B==D.counter&&D.refreshPositions(!C);
},0);},_clear:function(E,D){this.reverting=false;var C=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var B in this._storedCSS){if(this._storedCSS[B]=="auto"||this._storedCSS[B]=="static"){this._storedCSS[B]="";
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");}else{this.currentItem.show();}this.fromOutside&&!D&&C.push(function(F){this._trigger("receive",F,this._uiHash(this.fromOutside));});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!D){C.push(function(F){this._trigger("update",F,this._uiHash());
});}if(!A.ui.contains(this.element[0],this.currentItem[0])){D||C.push(function(F){this._trigger("remove",F,this._uiHash());});for(B=this.containers.length-1;B>=0;B--){if(A.ui.contains(this.containers[B].element[0],this.currentItem[0])&&!D){C.push(function(F){return function(G){F._trigger("receive",G,this._uiHash(this));
};}.call(this,this.containers[B]));C.push(function(F){return function(G){F._trigger("update",G,this._uiHash(this));};}.call(this,this.containers[B]));}}}for(B=this.containers.length-1;B>=0;B--){D||C.push(function(F){return function(G){F._trigger("deactivate",G,this._uiHash(this));};}.call(this,this.containers[B]));
if(this.containers[B].containerCache.over){C.push(function(F){return function(G){F._trigger("out",G,this._uiHash(this));};}.call(this,this.containers[B]));this.containers[B].containerCache.over=0;}}this._storedCursor&&A("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);
if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);}this.dragging=false;if(this.cancelHelperRemoval){if(!D){this._trigger("beforeStop",E,this._uiHash());for(B=0;B<C.length;B++){C[B].call(this,E);}this._trigger("stop",E,this._uiHash());}return false;}D||this._trigger("beforeStop",E,this._uiHash());
this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!D){for(B=0;B<C.length;B++){C[B].call(this,E);}this._trigger("stop",E,this._uiHash());}this.fromOutside=false;return true;},_trigger:function(){A.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel();
},_uiHash:function(C){var B=C||this;return{helper:B.helper,placeholder:B.placeholder||A([]),position:B.position,originalPosition:B.originalPosition,offset:B.positionAbs,item:B.currentItem,sender:C?C.element:null};}});A.extend(A.ui.sortable,{version:"1.8.15"});})(jQuery);jQuery.effects||function(L,J){function I(N){var M;
if(N&&N.constructor==Array&&N.length==3){return N;}if(M=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(N)){return[parseInt(M[1],10),parseInt(M[2],10),parseInt(M[3],10)];}if(M=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(N)){return[parseFloat(M[1])*2.55,parseFloat(M[2])*2.55,parseFloat(M[3])*2.55];
}if(M=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(N)){return[parseInt(M[1],16),parseInt(M[2],16),parseInt(M[3],16)];}if(M=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(N)){return[parseInt(M[1]+M[1],16),parseInt(M[2]+M[2],16),parseInt(M[3]+M[3],16)];}if(/rgba\(0, 0, 0, 0\)/.exec(N)){return C.transparent;
}return C[L.trim(N).toLowerCase()];}function H(O,N){var M;do{M=L.curCSS(O,N);if(M!=""&&M!="transparent"||L.nodeName(O,"body")){break;}N="backgroundColor";}while(O=O.parentNode);return I(M);}function E(){var Q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,N={},M,P;
if(Q&&Q.length&&Q[0]&&Q[Q[0]]){for(var O=Q.length;O--;){M=Q[O];if(typeof Q[M]=="string"){P=M.replace(/\-(\w)/g,function(R,S){return S.toUpperCase();});N[P]=Q[M];}}}else{for(M in Q){if(typeof Q[M]==="string"){N[M]=Q[M];}}}return N;}function F(O){var N,M;for(N in O){M=O[N];if(M==null||L.isFunction(M)||N in A||/scrollbar/.test(N)||!/color/i.test(N)&&isNaN(parseFloat(M))){delete O[N];
}}return O;}function D(P,N){var M={_:0},O;for(O in N){if(P[O]!=N[O]){M[O]=N[O];}}return M;}function K(P,N,M,O){if(typeof P=="object"){O=N;M=null;N=P;P=N.effect;}if(L.isFunction(N)){O=N;M=null;N={};}if(typeof N=="number"||L.fx.speeds[N]){O=M;M=N;N={};}if(L.isFunction(M)){O=M;M=null;}N=N||{};M=M||N.duration;
M=L.fx.off?0:typeof M=="number"?M:M in L.fx.speeds?L.fx.speeds[M]:L.fx.speeds._default;O=O||N.complete;return[P,N,M,O];}function G(M){if(!M||typeof M==="number"||L.fx.speeds[M]){return true;}if(typeof M==="string"&&!L.effects[M]){return true;}return false;}L.effects={};L.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(N,M){L.fx.step[M]=function(O){if(!O.colorInit){O.start=H(O.elem,M);
O.end=I(O.end);O.colorInit=true;}O.elem.style[M]="rgb("+Math.max(Math.min(parseInt(O.pos*(O.end[0]-O.start[0])+O.start[0],10),255),0)+","+Math.max(Math.min(parseInt(O.pos*(O.end[1]-O.start[1])+O.start[1],10),255),0)+","+Math.max(Math.min(parseInt(O.pos*(O.end[2]-O.start[2])+O.start[2],10),255),0)+")";
};});var C={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},B=["add","remove","toggle"],A={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
L.effects.animateClass=function(P,N,M,O){if(L.isFunction(M)){O=M;M=null;}return this.queue(function(){var U=L(this),S=U.attr("style")||" ",T=F(E.call(this)),R,Q=U.attr("class");L.each(B,function(W,V){P[V]&&U[V+"Class"](P[V]);});R=F(E.call(this));U.attr("class",Q);U.animate(D(T,R),{queue:false,duration:N,easing:M,complete:function(){L.each(B,function(W,V){P[V]&&U[V+"Class"](P[V]);
});if(typeof U.attr("style")=="object"){U.attr("style").cssText="";U.attr("style").cssText=S;}else{U.attr("style",S);}O&&O.apply(this,arguments);L.dequeue(this);}});});};L.fn.extend({_addClass:L.fn.addClass,addClass:function(P,N,M,O){return N?L.effects.animateClass.apply(this,[{add:P},N,M,O]):this._addClass(P);
},_removeClass:L.fn.removeClass,removeClass:function(P,N,M,O){return N?L.effects.animateClass.apply(this,[{remove:P},N,M,O]):this._removeClass(P);},_toggleClass:L.fn.toggleClass,toggleClass:function(Q,N,M,P,O){return typeof N=="boolean"||N===J?M?L.effects.animateClass.apply(this,[N?{add:Q}:{remove:Q},M,P,O]):this._toggleClass(Q,N):L.effects.animateClass.apply(this,[{toggle:Q},N,M,P]);
},switchClass:function(Q,N,M,P,O){return L.effects.animateClass.apply(this,[{add:N,remove:Q},M,P,O]);}});L.extend(L.effects,{version:"1.8.15",save:function(O,N){for(var M=0;M<N.length;M++){N[M]!==null&&O.data("ec.storage."+N[M],O[0].style[N[M]]);}},restore:function(O,N){for(var M=0;M<N.length;M++){N[M]!==null&&O.css(N[M],O.data("ec.storage."+N[M]));
}},setMode:function(N,M){if(M=="toggle"){M=N.is(":hidden")?"show":"hide";}return M;},getBaseline:function(O,N){var M;switch(O[0]){case"top":M=0;break;case"middle":M=0.5;break;case"bottom":M=1;break;default:M=O[0]/N.height;}switch(O[1]){case"left":O=0;break;case"center":O=0.5;break;case"right":O=1;break;
default:O=O[1]/N.width;}return{x:O,y:M};},createWrapper:function(O){if(O.parent().is(".ui-effects-wrapper")){return O.parent();}var N={width:O.outerWidth(true),height:O.outerHeight(true),"float":O.css("float")},M=L("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
O.wrap(M);M=O.parent();if(O.css("position")=="static"){M.css({position:"relative"});O.css({position:"relative"});}else{L.extend(N,{position:O.css("position"),zIndex:O.css("z-index")});L.each(["top","left","bottom","right"],function(Q,P){N[P]=O.css(P);if(isNaN(parseInt(N[P],10))){N[P]="auto";}});O.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"});
}return M.css(N).show();},removeWrapper:function(M){if(M.parent().is(".ui-effects-wrapper")){return M.parent().replaceWith(M);}return M;},setTransition:function(P,N,M,O){O=O||{};L.each(N,function(R,Q){unit=P.cssUnit(Q);if(unit[0]>0){O[Q]=unit[0]*M+unit[1];}});return O;}});L.fn.extend({effect:function(P){var N=K.apply(this,arguments),M={options:N[1],duration:N[2],callback:N[3]};
N=M.options.mode;var O=L.effects[P];if(L.fx.off||!O){return N?this[N](M.duration,M.callback):this.each(function(){M.callback&&M.callback.call(this);});}return O.call(this,M);},_show:L.fn.show,show:function(N){if(G(N)){return this._show.apply(this,arguments);}else{var M=K.apply(this,arguments);M[1].mode="show";
return this.effect.apply(this,M);}},_hide:L.fn.hide,hide:function(N){if(G(N)){return this._hide.apply(this,arguments);}else{var M=K.apply(this,arguments);M[1].mode="hide";return this.effect.apply(this,M);}},__toggle:L.fn.toggle,toggle:function(N){if(G(N)||typeof N==="boolean"||L.isFunction(N)){return this.__toggle.apply(this,arguments);
}else{var M=K.apply(this,arguments);M[1].mode="toggle";return this.effect.apply(this,M);}},cssUnit:function(O){var N=this.css(O),M=[];L.each(["em","px","%","pt"],function(Q,P){if(N.indexOf(P)>0){M=[parseFloat(N),P];}});return M;}});L.easing.jswing=L.easing.swing;L.extend(L.easing,{def:"easeOutQuad",swing:function(Q,N,M,P,O){return L.easing[L.easing.def](Q,N,M,P,O);
},easeInQuad:function(Q,N,M,P,O){return P*(N/=O)*N+M;},easeOutQuad:function(Q,N,M,P,O){return -P*(N/=O)*(N-2)+M;},easeInOutQuad:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N+M;}return -P/2*(--N*(N-2)-1)+M;},easeInCubic:function(Q,N,M,P,O){return P*(N/=O)*N*N+M;},easeOutCubic:function(Q,N,M,P,O){return P*((N=N/O-1)*N*N+1)+M;
},easeInOutCubic:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N+M;}return P/2*((N-=2)*N*N+2)+M;},easeInQuart:function(Q,N,M,P,O){return P*(N/=O)*N*N*N+M;},easeOutQuart:function(Q,N,M,P,O){return -P*((N=N/O-1)*N*N*N-1)+M;},easeInOutQuart:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N*N+M;}return -P/2*((N-=2)*N*N*N-2)+M;
},easeInQuint:function(Q,N,M,P,O){return P*(N/=O)*N*N*N*N+M;},easeOutQuint:function(Q,N,M,P,O){return P*((N=N/O-1)*N*N*N*N+1)+M;},easeInOutQuint:function(Q,N,M,P,O){if((N/=O/2)<1){return P/2*N*N*N*N*N+M;}return P/2*((N-=2)*N*N*N*N+2)+M;},easeInSine:function(Q,N,M,P,O){return -P*Math.cos(N/O*(Math.PI/2))+P+M;
},easeOutSine:function(Q,N,M,P,O){return P*Math.sin(N/O*(Math.PI/2))+M;},easeInOutSine:function(Q,N,M,P,O){return -P/2*(Math.cos(Math.PI*N/O)-1)+M;},easeInExpo:function(Q,N,M,P,O){return N==0?M:P*Math.pow(2,10*(N/O-1))+M;},easeOutExpo:function(Q,N,M,P,O){return N==O?M+P:P*(-Math.pow(2,-10*N/O)+1)+M;},easeInOutExpo:function(Q,N,M,P,O){if(N==0){return M;
}if(N==O){return M+P;}if((N/=O/2)<1){return P/2*Math.pow(2,10*(N-1))+M;}return P/2*(-Math.pow(2,-10*--N)+2)+M;},easeInCirc:function(Q,N,M,P,O){return -P*(Math.sqrt(1-(N/=O)*N)-1)+M;},easeOutCirc:function(Q,N,M,P,O){return P*Math.sqrt(1-(N=N/O-1)*N)+M;},easeInOutCirc:function(Q,N,M,P,O){if((N/=O/2)<1){return -P/2*(Math.sqrt(1-N*N)-1)+M;
}return P/2*(Math.sqrt(1-(N-=2)*N)+1)+M;},easeInElastic:function(S,N,M,R,Q){S=1.70158;var O=0,P=R;if(N==0){return M;}if((N/=Q)==1){return M+R;}O||(O=Q*0.3);if(P<Math.abs(R)){P=R;S=O/4;}else{S=O/(2*Math.PI)*Math.asin(R/P);}return -(P*Math.pow(2,10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/O))+M;},easeOutElastic:function(S,N,M,R,Q){S=1.70158;
var O=0,P=R;if(N==0){return M;}if((N/=Q)==1){return M+R;}O||(O=Q*0.3);if(P<Math.abs(R)){P=R;S=O/4;}else{S=O/(2*Math.PI)*Math.asin(R/P);}return P*Math.pow(2,-10*N)*Math.sin((N*Q-S)*2*Math.PI/O)+R+M;},easeInOutElastic:function(S,N,M,R,Q){S=1.70158;var O=0,P=R;if(N==0){return M;}if((N/=Q/2)==2){return M+R;
}O||(O=Q*0.3*1.5);if(P<Math.abs(R)){P=R;S=O/4;}else{S=O/(2*Math.PI)*Math.asin(R/P);}if(N<1){return -0.5*P*Math.pow(2,10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/O)+M;}return P*Math.pow(2,-10*(N-=1))*Math.sin((N*Q-S)*2*Math.PI/O)*0.5+R+M;},easeInBack:function(R,N,M,Q,P,O){if(O==J){O=1.70158;}return Q*(N/=P)*N*((O+1)*N-O)+M;
},easeOutBack:function(R,N,M,Q,P,O){if(O==J){O=1.70158;}return Q*((N=N/P-1)*N*((O+1)*N+O)+1)+M;},easeInOutBack:function(R,N,M,Q,P,O){if(O==J){O=1.70158;}if((N/=P/2)<1){return Q/2*N*N*(((O*=1.525)+1)*N-O)+M;}return Q/2*((N-=2)*N*(((O*=1.525)+1)*N+O)+2)+M;},easeInBounce:function(Q,N,M,P,O){return P-L.easing.easeOutBounce(Q,O-N,0,P,O)+M;
},easeOutBounce:function(Q,N,M,P,O){return(N/=O)<1/2.75?P*7.5625*N*N+M:N<2/2.75?P*(7.5625*(N-=1.5/2.75)*N+0.75)+M:N<2.5/2.75?P*(7.5625*(N-=2.25/2.75)*N+0.9375)+M:P*(7.5625*(N-=2.625/2.75)*N+0.984375)+M;},easeInOutBounce:function(Q,N,M,P,O){if(N<O/2){return L.easing.easeInBounce(Q,N*2,0,P,O)*0.5+M;}return L.easing.easeOutBounce(Q,N*2-O,0,P,O)*0.5+P*0.5+M;
}});}(jQuery);(function(A){A.effects.blind=function(B){return this.queue(function(){var I=A(this),H=["position","top","bottom","left","right"],E=A.effects.setMode(I,B.options.mode||"hide"),F=B.options.direction||"vertical";A.effects.save(I,H);I.show();var D=A.effects.createWrapper(I).css({overflow:"hidden"}),C=F=="vertical"?"height":"width";
F=F=="vertical"?D.height():D.width();E=="show"&&D.css(C,0);var G={};G[C]=E=="show"?F:0;D.animate(G,B.duration,B.options.easing,function(){E=="hide"&&I.hide();A.effects.restore(I,H);A.effects.removeWrapper(I);B.callback&&B.callback.apply(I[0],arguments);I.dequeue();});});};})(jQuery);(function(A){A.effects.bounce=function(B){return this.queue(function(){var L=A(this),K=["position","top","bottom","left","right"],H=A.effects.setMode(L,B.options.mode||"effect"),I=B.options.direction||"up",G=B.options.distance||20,M=B.options.times||5,J=B.duration||250;
/show|hide/.test(H)&&K.push("opacity");A.effects.save(L,K);L.show();A.effects.createWrapper(L);var F=I=="up"||I=="down"?"top":"left";I=I=="up"||I=="left"?"pos":"neg";G=B.options.distance||(F=="top"?L.outerHeight({margin:true})/3:L.outerWidth({margin:true})/3);if(H=="show"){L.css("opacity",0).css(F,I=="pos"?-G:G);
}if(H=="hide"){G/=M*2;}H!="hide"&&M--;if(H=="show"){var E={opacity:1};E[F]=(I=="pos"?"+=":"-=")+G;L.animate(E,J/2,B.options.easing);G/=2;M--;}for(E=0;E<M;E++){var C={},D={};C[F]=(I=="pos"?"-=":"+=")+G;D[F]=(I=="pos"?"+=":"-=")+G;L.animate(C,J/2,B.options.easing).animate(D,J/2,B.options.easing);G=H=="hide"?G*2:G/2;
}if(H=="hide"){E={opacity:0};E[F]=(I=="pos"?"-=":"+=")+G;L.animate(E,J/2,B.options.easing,function(){L.hide();A.effects.restore(L,K);A.effects.removeWrapper(L);B.callback&&B.callback.apply(this,arguments);});}else{C={};D={};C[F]=(I=="pos"?"-=":"+=")+G;D[F]=(I=="pos"?"+=":"-=")+G;L.animate(C,J/2,B.options.easing).animate(D,J/2,B.options.easing,function(){A.effects.restore(L,K);
A.effects.removeWrapper(L);B.callback&&B.callback.apply(this,arguments);});}L.queue("fx",function(){L.dequeue();});L.dequeue();});};})(jQuery);(function(A){A.effects.clip=function(B){return this.queue(function(){var I=A(this),H=["position","top","bottom","left","right","height","width"],E=A.effects.setMode(I,B.options.mode||"hide"),F=B.options.direction||"vertical";
A.effects.save(I,H);I.show();var D=A.effects.createWrapper(I).css({overflow:"hidden"});D=I[0].tagName=="IMG"?D:I;var C={size:F=="vertical"?"height":"width",position:F=="vertical"?"top":"left"};F=F=="vertical"?D.height():D.width();if(E=="show"){D.css(C.size,0);D.css(C.position,F/2);}var G={};G[C.size]=E=="show"?F:0;
G[C.position]=E=="show"?0:F/2;D.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){E=="hide"&&I.hide();A.effects.restore(I,H);A.effects.removeWrapper(I);B.callback&&B.callback.apply(I[0],arguments);I.dequeue();}});});};})(jQuery);(function(A){A.effects.drop=function(B){return this.queue(function(){var I=A(this),H=["position","top","bottom","left","right","opacity"],E=A.effects.setMode(I,B.options.mode||"hide"),F=B.options.direction||"left";
A.effects.save(I,H);I.show();A.effects.createWrapper(I);var D=F=="up"||F=="down"?"top":"left";F=F=="up"||F=="left"?"pos":"neg";var C=B.options.distance||(D=="top"?I.outerHeight({margin:true})/2:I.outerWidth({margin:true})/2);if(E=="show"){I.css("opacity",0).css(D,F=="pos"?-C:C);}var G={opacity:E=="show"?1:0};
G[D]=(E=="show"?F=="pos"?"+=":"-=":F=="pos"?"-=":"+=")+C;I.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){E=="hide"&&I.hide();A.effects.restore(I,H);A.effects.removeWrapper(I);B.callback&&B.callback.apply(this,arguments);I.dequeue();}});});};})(jQuery);(function(A){A.effects.explode=function(B){return this.queue(function(){var J=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3,I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;
B.options.mode=B.options.mode=="toggle"?A(this).is(":visible")?"hide":"show":B.options.mode;var F=A(this).show().css("visibility","hidden"),G=F.offset();G.top-=parseInt(F.css("marginTop"),10)||0;G.left-=parseInt(F.css("marginLeft"),10)||0;for(var E=F.outerWidth(true),C=F.outerHeight(true),H=0;H<J;H++){for(var D=0;
D<I;D++){F.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-D*(E/I),top:-H*(C/J)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:E/I,height:C/J,left:G.left+D*(E/I)+(B.options.mode=="show"?(D-Math.floor(I/2))*(E/I):0),top:G.top+H*(C/J)+(B.options.mode=="show"?(H-Math.floor(J/2))*(C/J):0),opacity:B.options.mode=="show"?0:1}).animate({left:G.left+D*(E/I)+(B.options.mode=="show"?0:(D-Math.floor(I/2))*(E/I)),top:G.top+H*(C/J)+(B.options.mode=="show"?0:(H-Math.floor(J/2))*(C/J)),opacity:B.options.mode=="show"?1:0},B.duration||500);
}}setTimeout(function(){B.options.mode=="show"?F.css({visibility:"visible"}):F.css({visibility:"visible"}).hide();B.callback&&B.callback.apply(F[0]);F.dequeue();A("div.ui-effects-explode").remove();},B.duration||500);});};})(jQuery);(function(A){A.effects.fade=function(B){return this.queue(function(){var D=A(this),C=A.effects.setMode(D,B.options.mode||"hide");
D.animate({opacity:C},{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){B.callback&&B.callback.apply(this,arguments);D.dequeue();}});});};})(jQuery);(function(A){A.effects.fold=function(B){return this.queue(function(){var K=A(this),J=["position","top","bottom","left","right"],G=A.effects.setMode(K,B.options.mode||"hide"),H=B.options.size||15,F=!!B.options.horizFirst,L=B.duration?B.duration/2:A.fx.speeds._default/2;
A.effects.save(K,J);K.show();var I=A.effects.createWrapper(K).css({overflow:"hidden"}),E=G=="show"!=F,D=E?["width","height"]:["height","width"];E=E?[I.width(),I.height()]:[I.height(),I.width()];var C=/([0-9]+)%/.exec(H);if(C){H=parseInt(C[1],10)/100*E[G=="hide"?0:1];}if(G=="show"){I.css(F?{height:0,width:H}:{height:H,width:0});
}F={};C={};F[D[0]]=G=="show"?E[0]:H;C[D[1]]=G=="show"?E[1]:0;I.animate(F,L,B.options.easing).animate(C,L,B.options.easing,function(){G=="hide"&&K.hide();A.effects.restore(K,J);A.effects.removeWrapper(K);B.callback&&B.callback.apply(K[0],arguments);K.dequeue();});});};})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var F=A(this),E=["backgroundImage","backgroundColor","opacity"],C=A.effects.setMode(F,B.options.mode||"show"),D={backgroundColor:F.css("backgroundColor")};
if(C=="hide"){D.opacity=0;}A.effects.save(F,E);F.show().css({backgroundImage:"none",backgroundColor:B.options.color||"#ffff99"}).animate(D,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){C=="hide"&&F.hide();A.effects.restore(F,E);C=="show"&&!A.support.opacity&&this.style.removeAttribute("filter");
B.callback&&B.callback.apply(this,arguments);F.dequeue();}});});};})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this),C=A.effects.setMode(D,B.options.mode||"show");times=(B.options.times||5)*2-1;duration=B.duration?B.duration/2:A.fx.speeds._default/2;isVisible=D.is(":visible");
animateTo=0;if(!isVisible){D.css("opacity",0).show();animateTo=1;}if(C=="hide"&&isVisible||C=="show"&&!isVisible){times--;}for(C=0;C<times;C++){D.animate({opacity:animateTo},duration,B.options.easing);animateTo=(animateTo+1)%2;}D.animate({opacity:animateTo},duration,B.options.easing,function(){animateTo==0&&D.hide();
B.callback&&B.callback.apply(this,arguments);});D.queue("fx",function(){D.dequeue();}).dequeue();});};})(jQuery);(function(A){A.effects.puff=function(B){return this.queue(function(){var G=A(this),F=A.effects.setMode(G,B.options.mode||"hide"),D=parseInt(B.options.percent,10)||150,E=D/100,C={height:G.height(),width:G.width()};
A.extend(B.options,{fade:true,mode:F,percent:F=="hide"?D:100,from:F=="hide"?C:{height:C.height*E,width:C.width*E}});G.effect("scale",B.options,B.duration,B.callback);G.dequeue();});};A.effects.scale=function(B){return this.queue(function(){var H=A(this),G=A.extend(true,{},B.options),E=A.effects.setMode(H,B.options.mode||"effect"),F=parseInt(B.options.percent,10)||(parseInt(B.options.percent,10)==0?0:E=="hide"?0:100),D=B.options.direction||"both",C=B.options.origin;
if(E!="effect"){G.origin=C||["middle","center"];G.restore=true;}C={height:H.height(),width:H.width()};H.from=B.options.from||(E=="show"?{height:0,width:0}:C);F={y:D!="horizontal"?F/100:1,x:D!="vertical"?F/100:1};H.to={height:C.height*F.y,width:C.width*F.x};if(B.options.fade){if(E=="show"){H.from.opacity=0;
H.to.opacity=1;}if(E=="hide"){H.from.opacity=1;H.to.opacity=0;}}G.from=H.from;G.to=H.to;G.mode=E;H.effect("size",G,B.duration,B.callback);H.dequeue();});};A.effects.size=function(B){return this.queue(function(){var N=A(this),M=["position","top","bottom","left","right","width","height","overflow","opacity"],J=["position","top","bottom","left","right","overflow","opacity"],K=["width","height","overflow"],I=["fontSize"],O=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],L=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],H=A.effects.setMode(N,B.options.mode||"effect"),F=B.options.restore||false,C=B.options.scale||"both",D=B.options.origin,G={height:N.height(),width:N.width()};
N.from=B.options.from||G;N.to=B.options.to||G;if(D){D=A.effects.getBaseline(D,G);N.from.top=(G.height-N.from.height)*D.y;N.from.left=(G.width-N.from.width)*D.x;N.to.top=(G.height-N.to.height)*D.y;N.to.left=(G.width-N.to.width)*D.x;}var E={from:{y:N.from.height/G.height,x:N.from.width/G.width},to:{y:N.to.height/G.height,x:N.to.width/G.width}};
if(C=="box"||C=="both"){if(E.from.y!=E.to.y){M=M.concat(O);N.from=A.effects.setTransition(N,O,E.from.y,N.from);N.to=A.effects.setTransition(N,O,E.to.y,N.to);}if(E.from.x!=E.to.x){M=M.concat(L);N.from=A.effects.setTransition(N,L,E.from.x,N.from);N.to=A.effects.setTransition(N,L,E.to.x,N.to);}}if(C=="content"||C=="both"){if(E.from.y!=E.to.y){M=M.concat(I);
N.from=A.effects.setTransition(N,I,E.from.y,N.from);N.to=A.effects.setTransition(N,I,E.to.y,N.to);}}A.effects.save(N,F?M:J);N.show();A.effects.createWrapper(N);N.css("overflow","hidden").css(N.from);if(C=="content"||C=="both"){O=O.concat(["marginTop","marginBottom"]).concat(I);L=L.concat(["marginLeft","marginRight"]);
K=M.concat(O).concat(L);N.find("*[width]").each(function(){child=A(this);F&&A.effects.save(child,K);var P={height:child.height(),width:child.width()};child.from={height:P.height*E.from.y,width:P.width*E.from.x};child.to={height:P.height*E.to.y,width:P.width*E.to.x};if(E.from.y!=E.to.y){child.from=A.effects.setTransition(child,O,E.from.y,child.from);
child.to=A.effects.setTransition(child,O,E.to.y,child.to);}if(E.from.x!=E.to.x){child.from=A.effects.setTransition(child,L,E.from.x,child.from);child.to=A.effects.setTransition(child,L,E.to.x,child.to);}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){F&&A.effects.restore(child,K);
});});}N.animate(N.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){N.to.opacity===0&&N.css("opacity",N.from.opacity);H=="hide"&&N.hide();A.effects.restore(N,F?M:J);A.effects.removeWrapper(N);B.callback&&B.callback.apply(this,arguments);N.dequeue();}});});};})(jQuery);(function(A){A.effects.shake=function(B){return this.queue(function(){var K=A(this),J=["position","top","bottom","left","right"];
A.effects.setMode(K,B.options.mode||"effect");var G=B.options.direction||"left",H=B.options.distance||20,F=B.options.times||3,L=B.duration||B.options.duration||140;A.effects.save(K,J);K.show();A.effects.createWrapper(K);var I=G=="up"||G=="down"?"top":"left",E=G=="up"||G=="left"?"pos":"neg";G={};var D={},C={};
G[I]=(E=="pos"?"-=":"+=")+H;D[I]=(E=="pos"?"+=":"-=")+H*2;C[I]=(E=="pos"?"-=":"+=")+H*2;K.animate(G,L,B.options.easing);for(H=1;H<F;H++){K.animate(D,L,B.options.easing).animate(C,L,B.options.easing);}K.animate(D,L,B.options.easing).animate(G,L/2,B.options.easing,function(){A.effects.restore(K,J);A.effects.removeWrapper(K);
B.callback&&B.callback.apply(this,arguments);});K.queue("fx",function(){K.dequeue();});K.dequeue();});};})(jQuery);(function(A){A.effects.slide=function(B){return this.queue(function(){var I=A(this),H=["position","top","bottom","left","right"],E=A.effects.setMode(I,B.options.mode||"show"),F=B.options.direction||"left";
A.effects.save(I,H);I.show();A.effects.createWrapper(I).css({overflow:"hidden"});var D=F=="up"||F=="down"?"top":"left";F=F=="up"||F=="left"?"pos":"neg";var C=B.options.distance||(D=="top"?I.outerHeight({margin:true}):I.outerWidth({margin:true}));if(E=="show"){I.css(D,F=="pos"?isNaN(C)?"-"+C:-C:C);}var G={};
G[D]=(E=="show"?F=="pos"?"+=":"-=":F=="pos"?"-=":"+=")+C;I.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){E=="hide"&&I.hide();A.effects.restore(I,H);A.effects.removeWrapper(I);B.callback&&B.callback.apply(this,arguments);I.dequeue();}});});};})(jQuery);(function(A){A.effects.transfer=function(B){return this.queue(function(){var F=A(this),E=A(B.options.to),C=E.offset();
E={top:C.top,left:C.left,height:E.innerHeight(),width:E.innerWidth()};C=F.offset();var D=A('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(B.options.className).css({top:C.top,left:C.left,height:F.innerHeight(),width:F.innerWidth(),position:"absolute"}).animate(E,B.duration,B.options.easing,function(){D.remove();
B.callback&&B.callback.apply(F[0],arguments);F.dequeue();});});};})(jQuery);(function(A){A.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase();
}},_create:function(){var E=this,D=E.options;E.running=0;E.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");E.headers=E.element.find(D.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){D.disabled||A(this).addClass("ui-state-hover");
}).bind("mouseleave.accordion",function(){D.disabled||A(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){D.disabled||A(this).addClass("ui-state-focus");}).bind("blur.accordion",function(){D.disabled||A(this).removeClass("ui-state-focus");});E.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(D.navigation){var C=E.element.find("a").filter(D.navigationFilter).eq(0);if(C.length){var B=C.closest(".ui-accordion-header");E.active=B.length?B:C.closest(".ui-accordion-content").prev();}}E.active=E._findActive(E.active||D.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
E.active.next().addClass("ui-accordion-content-active");E._createIcons();E.resize();E.element.attr("role","tablist");E.headers.attr("role","tab").bind("keydown.accordion",function(F){return E._keydown(F);}).next().attr("role","tabpanel");E.headers.not(E.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();
E.active.length?E.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):E.headers.eq(0).attr("tabIndex",0);A.browser.safari||E.headers.find("a").attr("tabIndex",-1);D.event&&E.headers.bind(D.event.split(" ").join(".accordion ")+".accordion",function(F){E._clickHandler.call(E,F,this);
F.preventDefault();});},_createIcons:function(){var B=this.options;if(B.icons){A("<span></span>").addClass("ui-icon "+B.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(B.icons.header).toggleClass(B.icons.headerSelected);this.element.addClass("ui-accordion-icons");}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();
this.element.removeClass("ui-accordion-icons");},destroy:function(){var C=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var B=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(C.autoHeight||C.fillHeight){B.css("height","");
}return A.Widget.prototype.destroy.call(this);},_setOption:function(C,B){A.Widget.prototype._setOption.apply(this,arguments);C=="active"&&this.activate(B);if(C=="icons"){this._destroyIcons();B&&this._createIcons();}if(C=="disabled"){this.headers.add(this.headers.next())[B?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled");
}},_keydown:function(F){if(!(this.options.disabled||F.altKey||F.ctrlKey)){var E=A.ui.keyCode,D=this.headers.length,B=this.headers.index(F.target),C=false;switch(F.keyCode){case E.RIGHT:case E.DOWN:C=this.headers[(B+1)%D];break;case E.LEFT:case E.UP:C=this.headers[(B-1+D)%D];break;case E.SPACE:case E.ENTER:this._clickHandler({target:F.target},F.target);
F.preventDefault();}if(C){A(F.target).attr("tabIndex",-1);A(C).attr("tabIndex",0);C.focus();return false;}return true;}},resize:function(){var D=this.options,C;if(D.fillSpace){if(A.browser.msie){var B=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden");}C=this.element.parent().height();
A.browser.msie&&this.element.parent().css("overflow",B);this.headers.each(function(){C-=A(this).outerHeight(true);});this.headers.next().each(function(){A(this).height(Math.max(0,C-A(this).innerHeight()+A(this).height()));}).css("overflow","auto");}else{if(D.autoHeight){C=0;this.headers.next().each(function(){C=Math.max(C,A(this).height("").height());
}).height(C);}}return this;},activate:function(B){this.options.active=B;B=this._findActive(B)[0];this._clickHandler({target:B},B);return this;},_findActive:function(B){return B?typeof B==="number"?this.headers.filter(":eq("+B+")"):this.headers.not(this.headers.not(B)):B===false?A([]):this.headers.filter(":eq(0)");
},_clickHandler:function(I,H){var G=this.options;if(!G.disabled){if(I.target){I=A(I.currentTarget||H);H=I[0]===this.active[0];G.active=G.collapsible&&H?false:this.headers.index(I);if(!(this.running||!G.collapsible&&H)){var D=this.active;F=I.next();C=this.active.next();B={options:G,newHeader:H&&G.collapsible?A([]):I,oldHeader:this.active,newContent:H&&G.collapsible?A([]):F,oldContent:C};
var E=this.headers.index(this.active[0])>this.headers.index(I[0]);this.active=H?A([]):I;this._toggle(F,C,B,H,E);D.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(G.icons.headerSelected).addClass(G.icons.header);if(!H){I.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(G.icons.header).addClass(G.icons.headerSelected);
I.next().addClass("ui-accordion-content-active");}}}else{if(G.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(G.icons.headerSelected).addClass(G.icons.header);this.active.next().addClass("ui-accordion-content-active");
var C=this.active.next(),B={options:G,newHeader:A([]),oldHeader:G.active,newContent:A([]),oldContent:C},F=this.active=A([]);this._toggle(F,C,B);}}}},_toggle:function(J,I,H,E,F){var D=this,K=D.options;D.toShow=J;D.toHide=I;D.data=H;var G=function(){if(D){return D._completed.apply(D,arguments);}};D._trigger("changestart",null,D.data);
D.running=I.size()===0?J.size():I.size();if(K.animated){H={};H=K.collapsible&&E?{toShow:A([]),toHide:I,complete:G,down:F,autoHeight:K.autoHeight||K.fillSpace}:{toShow:J,toHide:I,complete:G,down:F,autoHeight:K.autoHeight||K.fillSpace};if(!K.proxied){K.proxied=K.animated;}if(!K.proxiedDuration){K.proxiedDuration=K.duration;
}K.animated=A.isFunction(K.proxied)?K.proxied(H):K.proxied;K.duration=A.isFunction(K.proxiedDuration)?K.proxiedDuration(H):K.proxiedDuration;E=A.ui.accordion.animations;var C=K.duration,B=K.animated;if(B&&!E[B]&&!A.easing[B]){B="slide";}E[B]||(E[B]=function(L){this.slide(L,{easing:B,duration:C||700});
});E[B](H);}else{if(K.collapsible&&E){J.toggle();}else{I.hide();J.show();}G(true);}I.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();J.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus();},_completed:function(B){this.running=B?0:--this.running;
if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className;}this._trigger("change",null,this.data);}}});A.extend(A.ui.accordion,{version:"1.8.15",animations:{slide:function(H,G){H=A.extend({easing:"swing",duration:300},H,G);
if(H.toHide.size()){if(H.toShow.size()){var F=H.toShow.css("overflow"),D=0,E={},C={},B;G=H.toShow;B=G[0].style.width;G.width(parseInt(G.parent().width(),10)-parseInt(G.css("paddingLeft"),10)-parseInt(G.css("paddingRight"),10)-(parseInt(G.css("borderLeftWidth"),10)||0)-(parseInt(G.css("borderRightWidth"),10)||0));
A.each(["height","paddingTop","paddingBottom"],function(J,I){C[I]="hide";J=(""+A.css(H.toShow[0],I)).match(/^([\d+-.]+)(.*)$/);E[I]={value:J[1],unit:J[2]||"px"};});H.toShow.css({height:0,overflow:"hidden"}).show();H.toHide.filter(":hidden").each(H.complete).end().filter(":visible").animate(C,{step:function(J,I){if(I.prop=="height"){D=I.end-I.start===0?0:(I.now-I.start)/(I.end-I.start);
}H.toShow[0].style[I.prop]=D*E[I.prop].value+E[I.prop].unit;},duration:H.duration,easing:H.easing,complete:function(){H.autoHeight||H.toShow.css("height","");H.toShow.css({width:B,overflow:F});H.complete();}});}else{H.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},H);}}else{H.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},H);
}},bounceslide:function(B){this.slide(B,{easing:B.down?"easeOutBounce":"swing",duration:B.down?1000:200});}}});})(jQuery);(function(A){var B=0;A.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var E=this,D=this.element[0].ownerDocument,C;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(G){if(!(E.options.disabled||E.element.propAttr("readOnly"))){C=false;var F=A.ui.keyCode;switch(G.keyCode){case F.PAGE_UP:E._move("previousPage",G);
break;case F.PAGE_DOWN:E._move("nextPage",G);break;case F.UP:E._move("previous",G);G.preventDefault();break;case F.DOWN:E._move("next",G);G.preventDefault();break;case F.ENTER:case F.NUMPAD_ENTER:if(E.menu.active){C=true;G.preventDefault();}case F.TAB:if(!E.menu.active){return ;}E.menu.select(G);break;
case F.ESCAPE:E.element.val(E.term);E.close(G);break;default:clearTimeout(E.searching);E.searching=setTimeout(function(){if(E.term!=E.element.val()){E.selectedItem=null;E.search(null,G);}},E.options.delay);break;}}}).bind("keypress.autocomplete",function(F){if(C){C=false;F.preventDefault();}}).bind("focus.autocomplete",function(){if(!E.options.disabled){E.selectedItem=null;
E.previous=E.element.val();}}).bind("blur.autocomplete",function(F){if(!E.options.disabled){clearTimeout(E.searching);E.closing=setTimeout(function(){E.close(F);E._change(F);},150);}});this._initSource();this.response=function(){return E._response.apply(E,arguments);};this.menu=A("<ul></ul>").addClass("ui-autocomplete").appendTo(A(this.options.appendTo||"body",D)[0]).mousedown(function(G){var F=E.menu.element[0];
A(G.target).closest(".ui-menu-item").length||setTimeout(function(){A(document).one("mousedown",function(H){H.target!==E.element[0]&&H.target!==F&&!A.ui.contains(F,H.target)&&E.close();});},1);setTimeout(function(){clearTimeout(E.closing);},13);}).menu({focus:function(G,F){F=F.item.data("item.autocomplete");
false!==E._trigger("focus",G,{item:F})&&/^key/.test(G.originalEvent.type)&&E.element.val(F.value);},selected:function(H,G){var F=G.item.data("item.autocomplete"),I=E.previous;if(E.element[0]!==D.activeElement){E.element.focus();E.previous=I;setTimeout(function(){E.previous=I;E.selectedItem=F;},1);}false!==E._trigger("select",H,{item:F})&&E.element.val(F.value);
E.term=E.element.val();E.close(H);E.selectedItem=F;},blur:function(){E.menu.element.is(":visible")&&E.element.val()!==E.term&&E.element.val(E.term);}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");A.fn.bgiframe&&this.menu.element.bgiframe();},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();A.Widget.prototype.destroy.call(this);},_setOption:function(D,C){A.Widget.prototype._setOption.apply(this,arguments);D==="source"&&this._initSource();if(D==="appendTo"){this.menu.element.appendTo(A(C||"body",this.element[0].ownerDocument)[0]);}D==="disabled"&&C&&this.xhr&&this.xhr.abort();
},_initSource:function(){var E=this,D,C;if(A.isArray(this.options.source)){D=this.options.source;this.source=function(G,F){F(A.ui.autocomplete.filter(D,G.term));};}else{if(typeof this.options.source==="string"){C=this.options.source;this.source=function(G,F){E.xhr&&E.xhr.abort();E.xhr=A.ajax({url:C,data:G,dataType:"json",autocompleteRequest:++B,success:function(H){this.autocompleteRequest===B&&F(H);
},error:function(){this.autocompleteRequest===B&&F([]);}});};}else{this.source=this.options.source;}}},search:function(D,C){D=D!=null?D:this.element.val();this.term=this.element.val();if(D.length<this.options.minLength){return this.close(C);}clearTimeout(this.closing);if(this._trigger("search",C)!==false){return this._search(D);
}},_search:function(C){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:C},this.response);},_response:function(C){if(!this.options.disabled&&C&&C.length){C=this._normalize(C);this._suggest(C);this._trigger("open");}else{this.close();}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading");
},close:function(C){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",C);}},_change:function(C){this.previous!==this.element.val()&&this._trigger("change",C,{item:this.selectedItem});},_normalize:function(C){if(C.length&&C[0].label&&C[0].value){return C;
}return A.map(C,function(D){if(typeof D==="string"){return{label:D,value:D};}return A.extend({label:D.label||D.value,value:D.value||D.label},D);});},_suggest:function(D){var C=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(C,D);this.menu.deactivate();this.menu.refresh();C.show();
this._resizeMenu();C.position(A.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new A.Event("mouseover"));},_resizeMenu:function(){var C=this.menu.element;C.outerWidth(Math.max(C.width("").outerWidth(),this.element.outerWidth()));},_renderMenu:function(E,D){var C=this;
A.each(D,function(G,F){C._renderItem(E,F);});},_renderItem:function(D,C){return A("<li></li>").data("item.autocomplete",C).append(A("<a></a>").text(C.label)).appendTo(D);},_move:function(D,C){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(D)||this.menu.last()&&/^next/.test(D)){this.element.val(this.term);
this.menu.deactivate();}else{this.menu[D](C);}}else{this.search(null,C);}},widget:function(){return this.menu.element;}});A.extend(A.ui.autocomplete,{escapeRegex:function(C){return C.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");},filter:function(E,D){var C=new RegExp(A.ui.autocomplete.escapeRegex(D),"i");
return A.grep(E,function(F){return C.test(F.label||F.value||F);});}});})(jQuery);(function(A){A.widget("ui.menu",{_create:function(){var B=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(C){if(A(C.target).closest(".ui-menu-item a").length){C.preventDefault();
B.select(C);}});this.refresh();},refresh:function(){var B=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(C){B.activate(C,A(this).parent());}).mouseleave(function(){B.deactivate();
});},activate:function(F,E){this.deactivate();if(this.hasScroll()){var D=E.offset().top-this.element.offset().top,B=this.element.scrollTop(),C=this.element.height();if(D<0){this.element.scrollTop(B+D);}else{D>=C&&this.element.scrollTop(B+D-C+E.height());}}this.active=E.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
this._trigger("focus",F,{item:E});},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null;}},next:function(B){this.move("next",".ui-menu-item:first",B);},previous:function(B){this.move("prev",".ui-menu-item:last",B);
},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length;},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length;},move:function(D,C,B){if(this.active){D=this.active[D+"All"](".ui-menu-item").eq(0);D.length?this.activate(B,D):this.activate(B,this.element.children(C));
}else{this.activate(B,this.element.children(C));}},nextPage:function(E){if(this.hasScroll()){if(!this.active||this.last()){this.activate(E,this.element.children(".ui-menu-item:first"));}else{var D=this.active.offset().top,C=this.element.height(),B=this.element.children(".ui-menu-item").filter(function(){var F=A(this).offset().top-D-C+A(this).height();
return F<10&&F>-10;});B.length||(B=this.element.children(".ui-menu-item:last"));this.activate(E,B);}}else{this.activate(E,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"));}},previousPage:function(D){if(this.hasScroll()){if(!this.active||this.first()){this.activate(D,this.element.children(".ui-menu-item:last"));
}else{var C=this.active.offset().top,B=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var E=A(this).offset().top-C+B-A(this).height();return E<10&&E>-10;});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(D,result);}}else{this.activate(D,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"));
}},hasScroll:function(){return this.element.height()<this.element[A.fn.prop?"prop":"attr"]("scrollHeight");},select:function(B){this._trigger("selected",B,{item:this.active});}});})(jQuery);(function(A){var G,F,E,C,D=function(){var H=A(this).find(":ui-button");setTimeout(function(){H.button("refresh");
},1);},B=function(H){var K=H.name,J=H.form,I=A([]);if(K){I=J?A(J).find("[name='"+K+"']"):A("[name='"+K+"']",H.ownerDocument).filter(function(){return !this.form;});}return I;};A.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",D);
if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.propAttr("disabled");}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var H=this,K=this.options,J=this.type==="checkbox"||this.type==="radio",I="ui-state-hover"+(!J?" ui-state-active":"");if(K.label===null){K.label=this.buttonElement.html();
}if(this.element.is(":disabled")){K.disabled=true;}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!K.disabled){A(this).addClass("ui-state-hover");this===G&&A(this).addClass("ui-state-active");}}).bind("mouseleave.button",function(){K.disabled||A(this).removeClass(I);
}).bind("click.button",function(L){if(K.disabled){L.preventDefault();L.stopImmediatePropagation();}});this.element.bind("focus.button",function(){H.buttonElement.addClass("ui-state-focus");}).bind("blur.button",function(){H.buttonElement.removeClass("ui-state-focus");});if(J){this.element.bind("change.button",function(){C||H.refresh();
});this.buttonElement.bind("mousedown.button",function(L){if(!K.disabled){C=false;F=L.pageX;E=L.pageY;}}).bind("mouseup.button",function(L){if(!K.disabled){if(F!==L.pageX||E!==L.pageY){C=true;}}});}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(K.disabled||C){return false;
}A(this).toggleClass("ui-state-active");H.buttonElement.attr("aria-pressed",H.element[0].checked);});}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(K.disabled||C){return false;}A(this).addClass("ui-state-active");H.buttonElement.attr("aria-pressed","true");var L=H.element[0];
B(L).not(L).map(function(){return A(this).button("widget")[0];}).removeClass("ui-state-active").attr("aria-pressed","false");});}else{this.buttonElement.bind("mousedown.button",function(){if(K.disabled){return false;}A(this).addClass("ui-state-active");G=this;A(document).one("mouseup",function(){G=null;
});}).bind("mouseup.button",function(){if(K.disabled){return false;}A(this).removeClass("ui-state-active");}).bind("keydown.button",function(L){if(K.disabled){return false;}if(L.keyCode==A.ui.keyCode.SPACE||L.keyCode==A.ui.keyCode.ENTER){A(this).addClass("ui-state-active");}}).bind("keyup.button",function(){A(this).removeClass("ui-state-active");
});this.buttonElement.is("a")&&this.buttonElement.keyup(function(L){L.keyCode===A.ui.keyCode.SPACE&&A(this).click();});}}this._setOption("disabled",K.disabled);this._resetButton();},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";
if(this.type==="checkbox"||this.type==="radio"){var H=this.element.parents().filter(":last"),I="label[for="+this.element.attr("id")+"]";this.buttonElement=H.find(I);if(!this.buttonElement.length){H=H.length?H.siblings():this.element.siblings();this.buttonElement=H.filter(I);if(!this.buttonElement.length){this.buttonElement=H.find(I);
}}this.element.addClass("ui-helper-hidden-accessible");(H=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",H);}else{this.buttonElement=this.element;}},widget:function(){return this.buttonElement;},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");
this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");A.Widget.prototype.destroy.call(this);},_setOption:function(H,I){A.Widget.prototype._setOption.apply(this,arguments);if(H==="disabled"){I?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);}else{this._resetButton();}},refresh:function(){var H=this.element.is(":disabled");
H!==this.options.disabled&&this._setOption("disabled",H);if(this.type==="radio"){B(this.element[0]).each(function(){A(this).is(":checked")?A(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):A(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false");
});}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false");}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);
}else{var H=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),K=A("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(H.empty()).text(),J=this.options.icons,I=J.primary&&J.secondary,L=[];
if(J.primary||J.secondary){if(this.options.text){L.push("ui-button-text-icon"+(I?"s":J.primary?"-primary":"-secondary"));}J.primary&&H.prepend("<span class='ui-button-icon-primary ui-icon "+J.primary+"'></span>");J.secondary&&H.append("<span class='ui-button-icon-secondary ui-icon "+J.secondary+"'></span>");
if(!this.options.text){L.push(I?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||H.attr("title",K);}}else{L.push("ui-button-text-only");}H.addClass(L.join(" "));}}});A.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset");
},_init:function(){this.refresh();},_setOption:function(H,I){H==="disabled"&&this.buttons.button("option",H,I);A.Widget.prototype._setOption.apply(this,arguments);},refresh:function(){var H=this.element.css("direction")==="ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return A(this).button("widget")[0];
}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(H?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(H?"ui-corner-right":"ui-corner-left").end().end();},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return A(this).button("widget")[0];
}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");A.Widget.prototype.destroy.call(this);}});})(jQuery);(function(a,c){function d(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";
this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";
this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};
a.extend(this._defaults,this.regional[""]);this.dpDiv=e(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'));}function e(b){return b.bind("mouseout",function(f){f=a(f.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");
f.length&&f.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover");}).bind("mouseover",function(f){f=a(f.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(a.datepicker._isDisabledDatepicker(i.inline?b.parent()[0]:i.input[0])||!f.length)){f.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
f.addClass("ui-state-hover");f.hasClass("ui-datepicker-prev")&&f.addClass("ui-datepicker-prev-hover");f.hasClass("ui-datepicker-next")&&f.addClass("ui-datepicker-next-hover");}});}function h(b,f){a.extend(b,f);for(var j in f){if(f[j]==null||f[j]==c){b[j]=f[j];}}return b;}a.extend(a.ui,{datepicker:{version:"1.8.15"}});
var g=(new Date).getTime(),i;a.extend(d.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments);},_widgetDatepicker:function(){return this.dpDiv;},setDefaults:function(b){h(this._defaults,b||{});return this;},_attachDatepicker:function(b,f){var j=null;
for(var l in this._defaults){var o=b.getAttribute("date:"+l);if(o){j=j||{};try{j[l]=eval(o);}catch(n){j[l]=o;}}}l=b.nodeName.toLowerCase();o=l=="div"||l=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid;}var k=this._newInst(a(b),o);k.settings=a.extend({},f||{},j||{});if(l=="input"){this._connectDatepicker(b,k);
}else{o&&this._inlineDatepicker(b,k);}},_newInst:function(b,f){return{id:b[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:e(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))};
},_connectDatepicker:function(b,f){var j=a(b);f.append=a([]);f.trigger=a([]);if(!j.hasClass(this.markerClassName)){this._attachments(j,f);j.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(l,o,n){f.settings[o]=n;
}).bind("getData.datepicker",function(l,o){return this._get(f,o);});this._autoSize(f);a.data(b,"datepicker",f);f.settings.disabled&&this._disableDatepicker(b);}},_attachments:function(b,f){var j=this._get(f,"appendText"),l=this._get(f,"isRTL");f.append&&f.append.remove();if(j){f.append=a('<span class="'+this._appendClass+'">'+j+"</span>");
b[l?"before":"after"](f.append);}b.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();j=this._get(f,"showOn");if(j=="focus"||j=="both"){b.focus(this._showDatepicker);}if(j=="button"||j=="both"){j=this._get(f,"buttonText");var o=this._get(f,"buttonImage");f.trigger=a(this._get(f,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:o,alt:j,title:j}):a('<button type="button"></button>').addClass(this._triggerClass).html(o==""?j:a("<img/>").attr({src:o,alt:j,title:j})));
b[l?"before":"after"](f.trigger);f.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false;});}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var f=new Date(2009,11,20),j=this._get(b,"dateFormat");
if(j.match(/[DM]/)){var l=function(o){for(var n=0,k=0,m=0;m<o.length;m++){if(o[m].length>n){n=o[m].length;k=m;}}return k;};f.setMonth(l(this._get(b,j.match(/MM/)?"monthNames":"monthNamesShort")));f.setDate(l(this._get(b,j.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay());}b.input.attr("size",this._formatDate(b,f).length);
}},_inlineDatepicker:function(b,f){var j=a(b);if(!j.hasClass(this.markerClassName)){j.addClass(this.markerClassName).append(f.dpDiv).bind("setData.datepicker",function(l,o,n){f.settings[o]=n;}).bind("getData.datepicker",function(l,o){return this._get(f,o);});a.data(b,"datepicker",f);this._setDate(f,this._getDefaultDate(f),true);
this._updateDatepicker(f);this._updateAlternate(f);f.settings.disabled&&this._disableDatepicker(b);f.dpDiv.css("display","block");}},_dialogDatepicker:function(b,f,j,l,o){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b);}h(b.settings,l||{});f=f&&f.constructor==Date?this._formatDate(b,f):f;this._dialogInput.val(f);this._pos=o?o.length?o:[o.pageX,o.pageY]:null;
if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");
b.settings.onSelect=j;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this;},_destroyDatepicker:function(b){var f=a(b),j=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var l=b.nodeName.toLowerCase();
a.removeData(b,"datepicker");if(l=="input"){j.append.remove();j.trigger.remove();f.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp);}else{if(l=="div"||l=="span"){f.removeClass(this.markerClassName).empty();
}}}},_enableDatepicker:function(b){var f=a(b),j=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var l=b.nodeName.toLowerCase();if(l=="input"){b.disabled=false;j.trigger.filter("button").each(function(){this.disabled=false;}).end().filter("img").css({opacity:"1.0",cursor:""});}else{if(l=="div"||l=="span"){f=f.children("."+this._inlineClass);
f.children().removeClass("ui-state-disabled");f.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled");}}this._disabledInputs=a.map(this._disabledInputs,function(o){return o==b?null:o;});}},_disableDatepicker:function(b){var f=a(b),j=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var l=b.nodeName.toLowerCase();
if(l=="input"){b.disabled=true;j.trigger.filter("button").each(function(){this.disabled=true;}).end().filter("img").css({opacity:"0.5",cursor:"default"});}else{if(l=="div"||l=="span"){f=f.children("."+this._inlineClass);f.children().addClass("ui-state-disabled");f.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled");
}}this._disabledInputs=a.map(this._disabledInputs,function(o){return o==b?null:o;});this._disabledInputs[this._disabledInputs.length]=b;}},_isDisabledDatepicker:function(b){if(!b){return false;}for(var f=0;f<this._disabledInputs.length;f++){if(this._disabledInputs[f]==b){return true;}}return false;},_getInst:function(b){try{return a.data(b,"datepicker");
}catch(f){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,f,j){var l=this._getInst(b);if(arguments.length==2&&typeof f=="string"){return f=="defaults"?a.extend({},a.datepicker._defaults):l?f=="all"?a.extend({},l.settings):this._get(l,f):null;}var o=f||{};if(typeof f=="string"){o={};
o[f]=j;}if(l){this._curInst==l&&this._hideDatepicker();var n=this._getDateDatepicker(b,true),k=this._getMinMaxDate(l,"min"),m=this._getMinMaxDate(l,"max");h(l.settings,o);if(k!==null&&o.dateFormat!==c&&o.minDate===c){l.settings.minDate=this._formatDate(l,k);}if(m!==null&&o.dateFormat!==c&&o.maxDate===c){l.settings.maxDate=this._formatDate(l,m);
}this._attachments(a(b),l);this._autoSize(l);this._setDate(l,n);this._updateAlternate(l);this._updateDatepicker(l);}},_changeDatepicker:function(b,f,j){this._optionDatepicker(b,f,j);},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b);},_setDateDatepicker:function(b,f){if(b=this._getInst(b)){this._setDate(b,f);
this._updateDatepicker(b);this._updateAlternate(b);}},_getDateDatepicker:function(b,f){(b=this._getInst(b))&&!b.inline&&this._setDateFromField(b,f);return b?this._getDate(b):null;},_doKeyDown:function(b){var f=a.datepicker._getInst(b.target),j=true,l=f.dpDiv.is(".ui-datepicker-rtl");f._keyEvent=true;
if(a.datepicker._datepickerShowing){switch(b.keyCode){case 9:a.datepicker._hideDatepicker();j=false;break;case 13:j=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv);j[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,j[0]);if(b=a.datepicker._get(f,"onSelect")){j=a.datepicker._formatDate(f);
b.apply(f.input?f.input[0]:null,[j,f]);}else{a.datepicker._hideDatepicker();}return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");
break;case 35:if(b.ctrlKey||b.metaKey){a.datepicker._clearDate(b.target);}j=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey){a.datepicker._gotoToday(b.target);}j=b.ctrlKey||b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey){a.datepicker._adjustDate(b.target,l?+1:-1,"D");}j=b.ctrlKey||b.metaKey;
if(b.originalEvent.altKey){a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");}break;case 38:if(b.ctrlKey||b.metaKey){a.datepicker._adjustDate(b.target,-7,"D");}j=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey){a.datepicker._adjustDate(b.target,l?-1:+1,"D");
}j=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey){a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");}break;case 40:if(b.ctrlKey||b.metaKey){a.datepicker._adjustDate(b.target,+7,"D");}j=b.ctrlKey||b.metaKey;break;default:j=false;
}}else{if(b.keyCode==36&&b.ctrlKey){a.datepicker._showDatepicker(this);}else{j=false;}}if(j){b.preventDefault();b.stopPropagation();}},_doKeyPress:function(b){var f=a.datepicker._getInst(b.target);if(a.datepicker._get(f,"constrainInput")){f=a.datepicker._possibleChars(a.datepicker._get(f,"dateFormat"));
var j=String.fromCharCode(b.charCode==c?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||j<" "||!f||f.indexOf(j)>-1;}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal){try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);
a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b);}}catch(f){a.datepicker.log(f);}}return true;},_showDatepicker:function(b){b=b.target||b;if(b.nodeName.toLowerCase()!="input"){b=a("input",b.parentNode)[0];}if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var f=a.datepicker._getInst(b);
if(a.datepicker._curInst&&a.datepicker._curInst!=f){a.datepicker._datepickerShowing&&a.datepicker._triggerOnClose(a.datepicker._curInst);a.datepicker._curInst.dpDiv.stop(true,true);}var j=a.datepicker._get(f,"beforeShow");h(f.settings,j?j.apply(b,[b,f]):{});f.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(f);
if(a.datepicker._inDialog){b.value="";}if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(b);a.datepicker._pos[1]+=b.offsetHeight;}var l=false;a(b).parents().each(function(){l|=a(this).css("position")=="fixed";return !l;});if(l&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;
a.datepicker._pos[1]-=document.documentElement.scrollTop;}j={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;f.dpDiv.empty();f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(f);j=a.datepicker._checkOffset(f,j,l);f.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":l?"fixed":"absolute",display:"none",left:j.left+"px",top:j.top+"px"});
if(!f.inline){j=a.datepicker._get(f,"showAnim");var o=a.datepicker._get(f,"duration"),n=function(){var k=f.dpDiv.find("iframe.ui-datepicker-cover");if(k.length){var m=a.datepicker._getBorders(f.dpDiv);k.css({left:-m[0],top:-m[1],width:f.dpDiv.outerWidth(),height:f.dpDiv.outerHeight()});}};f.dpDiv.zIndex(a(b).zIndex()+1);
a.datepicker._datepickerShowing=true;a.effects&&a.effects[j]?f.dpDiv.show(j,a.datepicker._get(f,"showOptions"),o,n):f.dpDiv[j||"show"](j?o:null,n);if(!j||!o){n();}f.input.is(":visible")&&!f.input.is(":disabled")&&f.input.focus();a.datepicker._curInst=f;}}},_updateDatepicker:function(b){this.maxRows=4;
var f=a.datepicker._getBorders(b.dpDiv);i=b;b.dpDiv.empty().append(this._generateHTML(b));var j=b.dpDiv.find("iframe.ui-datepicker-cover");j.length&&j.css({left:-f[0],top:-f[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()});b.dpDiv.find("."+this._dayOverClass+" a").mouseover();f=this._getNumberOfMonths(b);
j=f[1];b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");j>1&&b.dpDiv.addClass("ui-datepicker-multi-"+j).css("width",17*j+"em");b.dpDiv[(f[0]!=1||f[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input[0]!=document.activeElement&&b.input.focus();if(b.yearshtml){var l=b.yearshtml;setTimeout(function(){l===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);
l=b.yearshtml=null;},0);}},_getBorders:function(b){var f=function(j){return{thin:1,medium:2,thick:3}[j]||j;};return[parseFloat(f(b.css("border-left-width"))),parseFloat(f(b.css("border-top-width")))];},_checkOffset:function(b,f,j){var l=b.dpDiv.outerWidth(),o=b.dpDiv.outerHeight(),n=b.input?b.input.outerWidth():0,k=b.input?b.input.outerHeight():0,m=document.documentElement.clientWidth+a(document).scrollLeft(),p=document.documentElement.clientHeight+a(document).scrollTop();
f.left-=this._get(b,"isRTL")?l-n:0;f.left-=j&&f.left==b.input.offset().left?a(document).scrollLeft():0;f.top-=j&&f.top==b.input.offset().top+k?a(document).scrollTop():0;f.left-=Math.min(f.left,f.left+l>m&&m>l?Math.abs(f.left+l-m):0);f.top-=Math.min(f.top,f.top+o>p&&p>o?Math.abs(o+k):0);return f;},_findPos:function(b){for(var f=this._get(this._getInst(b),"isRTL");
b&&(b.type=="hidden"||b.nodeType!=1||a.expr.filters.hidden(b));){b=b[f?"previousSibling":"nextSibling"];}b=a(b).offset();return[b.left,b.top];},_triggerOnClose:function(b){var f=this._get(b,"onClose");if(f){f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);}},_hideDatepicker:function(b){var f=this._curInst;
if(!(!f||b&&f!=a.data(b,"datepicker"))){if(this._datepickerShowing){b=this._get(f,"showAnim");var j=this._get(f,"duration"),l=function(){a.datepicker._tidyDialog(f);this._curInst=null;};a.effects&&a.effects[b]?f.dpDiv.hide(b,a.datepicker._get(f,"showOptions"),j,l):f.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?j:null,l);
b||l();a.datepicker._triggerOnClose(f);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv);}}this._inDialog=false;}}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker();
}},_adjustDate:function(b,f,j){b=a(b);var l=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(l,f+(j=="M"?this._get(l,"showCurrentAtPos"):0),j);this._updateDatepicker(l);}},_gotoToday:function(b){b=a(b);var f=this._getInst(b[0]);if(this._get(f,"gotoCurrent")&&f.currentDay){f.selectedDay=f.currentDay;
f.drawMonth=f.selectedMonth=f.currentMonth;f.drawYear=f.selectedYear=f.currentYear;}else{var j=new Date;f.selectedDay=j.getDate();f.drawMonth=f.selectedMonth=j.getMonth();f.drawYear=f.selectedYear=j.getFullYear();}this._notifyChange(f);this._adjustDate(b);},_selectMonthYear:function(b,f,j){b=a(b);var l=this._getInst(b[0]);
l["selected"+(j=="M"?"Month":"Year")]=l["draw"+(j=="M"?"Month":"Year")]=parseInt(f.options[f.selectedIndex].value,10);this._notifyChange(l);this._adjustDate(b);},_selectDay:function(b,f,j,l){var o=a(b);if(!(a(l).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0]))){o=this._getInst(o[0]);
o.selectedDay=o.currentDay=a("a",l).html();o.selectedMonth=o.currentMonth=f;o.selectedYear=o.currentYear=j;this._selectDate(b,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear));}},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,"");},_selectDate:function(b,f){b=this._getInst(a(b)[0]);
f=f!=null?f:this._formatDate(b);b.input&&b.input.val(f);this._updateAlternate(b);var j=this._get(b,"onSelect");if(j){j.apply(b.input?b.input[0]:null,[f,b]);}else{b.input&&b.input.trigger("change");}if(b.inline){this._updateDatepicker(b);}else{this._hideDatepicker();this._lastInput=b.input[0];b.input.focus();
this._lastInput=null;}},_updateAlternate:function(b){var f=this._get(b,"altField");if(f){var j=this._get(b,"altFormat")||this._get(b,"dateFormat"),l=this._getDate(b),o=this.formatDate(j,l,this._getFormatConfig(b));a(f).each(function(){a(this).val(o);});}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""];
},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var f=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((f-b)/86400000)/7)+1;},parseDate:function(b,f,j){if(b==null||f==null){throw"Invalid arguments";}f=typeof f=="object"?f.toString():f+"";if(f==""){return null;
}var l=(j?j.shortYearCutoff:null)||this._defaults.shortYearCutoff;l=typeof l!="string"?l:(new Date).getFullYear()%100+parseInt(l,10);for(var o=(j?j.dayNamesShort:null)||this._defaults.dayNamesShort,n=(j?j.dayNames:null)||this._defaults.dayNames,k=(j?j.monthNamesShort:null)||this._defaults.monthNamesShort,m=(j?j.monthNames:null)||this._defaults.monthNames,p=j=-1,q=-1,s=-1,r=false,u=function(z){(z=H+1<b.length&&b.charAt(H+1)==z)&&H++;
return z;},v=function(z){var I=u(z);z=new RegExp("^\\d{1,"+(z=="@"?14:z=="!"?20:z=="y"&&I?4:z=="o"?3:2)+"}");z=f.substring(y).match(z);if(!z){throw"Missing number at position "+y;}y+=z[0].length;return parseInt(z[0],10);},w=function(z,I,N){z=a.map(u(z)?N:I,function(D,E){return[[E,D]];}).sort(function(D,E){return -(D[1].length-E[1].length);
});var J=-1;a.each(z,function(D,E){D=E[1];if(f.substr(y,D.length).toLowerCase()==D.toLowerCase()){J=E[0];y+=D.length;return false;}});if(J!=-1){return J+1;}else{throw"Unknown name at position "+y;}},x=function(){if(f.charAt(y)!=b.charAt(H)){throw"Unexpected literal at position "+y;}y++;},y=0,H=0;H<b.length;
H++){if(r){if(b.charAt(H)=="'"&&!u("'")){r=false;}else{x();}}else{switch(b.charAt(H)){case"d":q=v("d");break;case"D":w("D",o,n);break;case"o":s=v("o");break;case"m":p=v("m");break;case"M":p=w("M",k,m);break;case"y":j=v("y");break;case"@":var C=new Date(v("@"));j=C.getFullYear();p=C.getMonth()+1;q=C.getDate();
break;case"!":C=new Date((v("!")-this._ticksTo1970)/10000);j=C.getFullYear();p=C.getMonth()+1;q=C.getDate();break;case"'":if(u("'")){x();}else{r=true;}break;default:x();}}}if(y<f.length){throw"Extra/unparsed characters found in date: "+f.substring(y);}if(j==-1){j=(new Date).getFullYear();}else{if(j<100){j+=(new Date).getFullYear()-(new Date).getFullYear()%100+(j<=l?0:-100);
}}if(s>-1){p=1;q=s;do{l=this._getDaysInMonth(j,p-1);if(q<=l){break;}p++;q-=l;}while(1);}C=this._daylightSavingAdjust(new Date(j,p-1,q));if(C.getFullYear()!=j||C.getMonth()+1!=p||C.getDate()!=q){throw"Invalid date";}return C;},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(b,f,j){if(!f){return"";
}var l=(j?j.dayNamesShort:null)||this._defaults.dayNamesShort,o=(j?j.dayNames:null)||this._defaults.dayNames,n=(j?j.monthNamesShort:null)||this._defaults.monthNamesShort;j=(j?j.monthNames:null)||this._defaults.monthNames;var k=function(u){(u=r+1<b.length&&b.charAt(r+1)==u)&&r++;return u;},m=function(u,v,w){v=""+v;
if(k(u)){for(;v.length<w;){v="0"+v;}}return v;},p=function(u,v,w,x){return k(u)?x[v]:w[v];},q="",s=false;if(f){for(var r=0;r<b.length;r++){if(s){if(b.charAt(r)=="'"&&!k("'")){s=false;}else{q+=b.charAt(r);}}else{switch(b.charAt(r)){case"d":q+=m("d",f.getDate(),2);break;case"D":q+=p("D",f.getDay(),l,o);
break;case"o":q+=m("o",Math.round(((new Date(f.getFullYear(),f.getMonth(),f.getDate())).getTime()-(new Date(f.getFullYear(),0,0)).getTime())/86400000),3);break;case"m":q+=m("m",f.getMonth()+1,2);break;case"M":q+=p("M",f.getMonth(),n,j);break;case"y":q+=k("y")?f.getFullYear():(f.getYear()%100<10?"0":"")+f.getYear()%100;
break;case"@":q+=f.getTime();break;case"!":q+=f.getTime()*10000+this._ticksTo1970;break;case"'":if(k("'")){q+="'";}else{s=true;}break;default:q+=b.charAt(r);}}}}return q;},_possibleChars:function(b){for(var f="",j=false,l=function(n){(n=o+1<b.length&&b.charAt(o+1)==n)&&o++;return n;},o=0;o<b.length;o++){if(j){if(b.charAt(o)=="'"&&!l("'")){j=false;
}else{f+=b.charAt(o);}}else{switch(b.charAt(o)){case"d":case"m":case"y":case"@":f+="0123456789";break;case"D":case"M":return null;case"'":if(l("'")){f+="'";}else{j=true;}break;default:f+=b.charAt(o);}}}return f;},_get:function(b,f){return b.settings[f]!==c?b.settings[f]:this._defaults[f];},_setDateFromField:function(b,f){if(b.input.val()!=b.lastVal){var j=this._get(b,"dateFormat"),l=b.lastVal=b.input?b.input.val():null,o,n;
o=n=this._getDefaultDate(b);var k=this._getFormatConfig(b);try{o=this.parseDate(j,l,k)||n;}catch(m){this.log(m);l=f?"":l;}b.selectedDay=o.getDate();b.drawMonth=b.selectedMonth=o.getMonth();b.drawYear=b.selectedYear=o.getFullYear();b.currentDay=l?o.getDate():0;b.currentMonth=l?o.getMonth():0;b.currentYear=l?o.getFullYear():0;
this._adjustInstDate(b);}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date));},_determineDate:function(b,f,j){var l=function(n){var k=new Date;k.setDate(k.getDate()+n);return k;},o=function(n){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),n,a.datepicker._getFormatConfig(b));
}catch(k){}var m=(n.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,p=m.getFullYear(),q=m.getMonth();m=m.getDate();for(var s=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=s.exec(n);r;){switch(r[2]||"d"){case"d":case"D":m+=parseInt(r[1],10);break;case"w":case"W":m+=parseInt(r[1],10)*7;break;
case"m":case"M":q+=parseInt(r[1],10);m=Math.min(m,a.datepicker._getDaysInMonth(p,q));break;case"y":case"Y":p+=parseInt(r[1],10);m=Math.min(m,a.datepicker._getDaysInMonth(p,q));break;}r=s.exec(n);}return new Date(p,q,m);};if(f=(f=f==null||f===""?j:typeof f=="string"?o(f):typeof f=="number"?isNaN(f)?j:l(f):new Date(f.getTime()))&&f.toString()=="Invalid Date"?j:f){f.setHours(0);
f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0);}return this._daylightSavingAdjust(f);},_daylightSavingAdjust:function(b){if(!b){return null;}b.setHours(b.getHours()>12?b.getHours()+2:0);return b;},_setDate:function(b,f,j){var l=!f,o=b.selectedMonth,n=b.selectedYear;f=this._restrictMinMax(b,this._determineDate(b,f,new Date));
b.selectedDay=b.currentDay=f.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=f.getMonth();b.drawYear=b.selectedYear=b.currentYear=f.getFullYear();if((o!=b.selectedMonth||n!=b.selectedYear)&&!j){this._notifyChange(b);}this._adjustInstDate(b);if(b.input){b.input.val(l?"":this._formatDate(b));}if(j=this._get(b,"onSelect")){l=this._formatDate(b);
j.apply(b.input?b.input[0]:null,[l,b]);}},_getDate:function(b){return !b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));},_generateHTML:function(b){var f=new Date;f=this._daylightSavingAdjust(new Date(f.getFullYear(),f.getMonth(),f.getDate()));
var j=this._get(b,"isRTL"),l=this._get(b,"showButtonPanel"),o=this._get(b,"hideIfNoPrevNext"),n=this._get(b,"navigationAsDateFormat"),k=this._getNumberOfMonths(b),m=this._get(b,"showCurrentAtPos"),p=this._get(b,"stepMonths"),q=k[0]!=1||k[1]!=1,s=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),r=this._getMinMaxDate(b,"min"),u=this._getMinMaxDate(b,"max");
m=b.drawMonth-m;var v=b.drawYear;if(m<0){m+=12;v--;}if(u){var w=this._daylightSavingAdjust(new Date(u.getFullYear(),u.getMonth()-k[0]*k[1]+1,u.getDate()));for(w=r&&w<r?r:w;this._daylightSavingAdjust(new Date(v,m,1))>w;){m--;if(m<0){m=11;v--;}}}b.drawMonth=m;b.drawYear=v;w=this._get(b,"prevText");w=!n?w:this.formatDate(w,this._daylightSavingAdjust(new Date(v,m-p,1)),this._getFormatConfig(b));
w=this._canAdjustMonth(b,-1,v,m)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+b.id+"', -"+p+", 'M');\" title=\""+w+'"><span class="ui-icon ui-icon-circle-triangle-'+(j?"e":"w")+'">'+w+"</span></a>":o?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+w+'"><span class="ui-icon ui-icon-circle-triangle-'+(j?"e":"w")+'">'+w+"</span></a>";
var x=this._get(b,"nextText");x=!n?x:this.formatDate(x,this._daylightSavingAdjust(new Date(v,m+p,1)),this._getFormatConfig(b));o=this._canAdjustMonth(b,+1,v,m)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+b.id+"', +"+p+", 'M');\" title=\""+x+'"><span class="ui-icon ui-icon-circle-triangle-'+(j?"w":"e")+'">'+x+"</span></a>":o?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+x+'"><span class="ui-icon ui-icon-circle-triangle-'+(j?"w":"e")+'">'+x+"</span></a>";
p=this._get(b,"currentText");x=this._get(b,"gotoCurrent")&&b.currentDay?s:f;p=!n?p:this.formatDate(p,x,this._getFormatConfig(b));n=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+g+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";
l=l?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(j?n:"")+(this._isInRange(b,x)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._gotoToday('#"+b.id+"');\">"+p+"</button>":"")+(j?"":n)+"</div>":"";
n=parseInt(this._get(b,"firstDay"),10);n=isNaN(n)?0:n;p=this._get(b,"showWeek");x=this._get(b,"dayNames");this._get(b,"dayNamesShort");var y=this._get(b,"dayNamesMin"),H=this._get(b,"monthNames"),C=this._get(b,"monthNamesShort"),z=this._get(b,"beforeShowDay"),I=this._get(b,"showOtherMonths"),N=this._get(b,"selectOtherMonths");
this._get(b,"calculateWeek");for(var J=this._getDefaultDate(b),D="",E=0;E<k[0];E++){var P="";this.maxRows=4;for(var L=0;L<k[1];L++){var Q=this._daylightSavingAdjust(new Date(v,m,b.selectedDay)),B=" ui-corner-all",F="";if(q){F+='<div class="ui-datepicker-group';if(k[1]>1){switch(L){case 0:F+=" ui-datepicker-group-first";
B=" ui-corner-"+(j?"right":"left");break;case k[1]-1:F+=" ui-datepicker-group-last";B=" ui-corner-"+(j?"left":"right");break;default:F+=" ui-datepicker-group-middle";B="";break;}}F+='">';}F+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+B+'">'+(/all|left/.test(B)&&E==0?j?o:w:"")+(/all|right/.test(B)&&E==0?j?w:o:"")+this._generateMonthYearHeader(b,m,v,r,u,E>0||L>0,H,C)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var G=p?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(B=0;B<7;B++){var A=(B+n)%7;G+="<th"+((B+n+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+x[A]+'">'+y[A]+"</span></th>";}F+=G+"</tr></thead><tbody>";G=this._getDaysInMonth(v,m);if(v==b.selectedYear&&m==b.selectedMonth){b.selectedDay=Math.min(b.selectedDay,G);
}B=(this._getFirstDayOfMonth(v,m)-n+7)%7;G=Math.ceil((B+G)/7);this.maxRows=G=q?this.maxRows>G?this.maxRows:G:G;A=this._daylightSavingAdjust(new Date(v,m,1-B));for(var R=0;R<G;R++){F+="<tr>";var S=!p?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(A)+"</td>";for(B=0;B<7;B++){var M=z?z.apply(b.input?b.input[0]:null,[A]):[true,""],K=A.getMonth()!=m,O=K&&!N||!M[0]||r&&A<r||u&&A>u;
S+='<td class="'+((B+n+6)%7>=5?" ui-datepicker-week-end":"")+(K?" ui-datepicker-other-month":"")+(A.getTime()==Q.getTime()&&m==b.selectedMonth&&b._keyEvent||J.getTime()==A.getTime()&&J.getTime()==Q.getTime()?" "+this._dayOverClass:"")+(O?" "+this._unselectableClass+" ui-state-disabled":"")+(K&&!I?"":" "+M[1]+(A.getTime()==s.getTime()?" "+this._currentClass:"")+(A.getTime()==f.getTime()?" ui-datepicker-today":""))+'"'+((!K||I)&&M[2]?' title="'+M[2]+'"':"")+(O?"":' onclick="DP_jQuery_'+g+".datepicker._selectDay('#"+b.id+"',"+A.getMonth()+","+A.getFullYear()+', this);return false;"')+">"+(K&&!I?"&#xa0;":O?'<span class="ui-state-default">'+A.getDate()+"</span>":'<a class="ui-state-default'+(A.getTime()==f.getTime()?" ui-state-highlight":"")+(A.getTime()==s.getTime()?" ui-state-active":"")+(K?" ui-priority-secondary":"")+'" href="#">'+A.getDate()+"</a>")+"</td>";
A.setDate(A.getDate()+1);A=this._daylightSavingAdjust(A);}F+=S+"</tr>";}m++;if(m>11){m=0;v++;}F+="</tbody></table>"+(q?"</div>"+(k[0]>0&&L==k[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");P+=F;}D+=P;}D+=l+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
b._keyEvent=false;return D;},_generateMonthYearHeader:function(b,f,j,l,o,n,k,m){var p=this._get(b,"changeMonth"),q=this._get(b,"changeYear"),s=this._get(b,"showMonthAfterYear"),r='<div class="ui-datepicker-title">',u="";if(n||!p){u+='<span class="ui-datepicker-month">'+k[f]+"</span>";}else{k=l&&l.getFullYear()==j;
var v=o&&o.getFullYear()==j;u+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" >";for(var w=0;w<12;w++){if((!k||w>=l.getMonth())&&(!v||w<=o.getMonth())){u+='<option value="'+w+'"'+(w==f?' selected="selected"':"")+">"+m[w]+"</option>";
}}u+="</select>";}s||(r+=u+(n||!(p&&q)?"&#xa0;":""));if(!b.yearshtml){b.yearshtml="";if(n||!q){r+='<span class="ui-datepicker-year">'+j+"</span>";}else{m=this._get(b,"yearRange").split(":");var x=(new Date).getFullYear();k=function(y){y=y.match(/c[+-].*/)?j+parseInt(y.substring(1),10):y.match(/[+-].*/)?x+parseInt(y,10):parseInt(y,10);
return isNaN(y)?x:y;};f=k(m[0]);m=Math.max(f,k(m[1]||""));f=l?Math.max(f,l.getFullYear()):f;m=o?Math.min(m,o.getFullYear()):m;for(b.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" >";f<=m;f++){b.yearshtml+='<option value="'+f+'"'+(f==j?' selected="selected"':"")+">"+f+"</option>";
}b.yearshtml+="</select>";r+=b.yearshtml;b.yearshtml=null;}}r+=this._get(b,"yearSuffix");if(s){r+=(n||!(p&&q)?"&#xa0;":"")+u;}r+="</div>";return r;},_adjustInstDate:function(b,f,j){var l=b.drawYear+(j=="Y"?f:0),o=b.drawMonth+(j=="M"?f:0);f=Math.min(b.selectedDay,this._getDaysInMonth(l,o))+(j=="D"?f:0);
l=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(l,o,f)));b.selectedDay=l.getDate();b.drawMonth=b.selectedMonth=l.getMonth();b.drawYear=b.selectedYear=l.getFullYear();if(j=="M"||j=="Y"){this._notifyChange(b);}},_restrictMinMax:function(b,f){var j=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");
f=j&&f<j?j:f;return f=b&&f>b?b:f;},_notifyChange:function(b){var f=this._get(b,"onChangeMonthYear");if(f){f.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b]);}},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b;},_getMinMaxDate:function(b,f){return this._determineDate(b,this._get(b,f+"Date"),null);
},_getDaysInMonth:function(b,f){return 32-this._daylightSavingAdjust(new Date(b,f,32)).getDate();},_getFirstDayOfMonth:function(b,f){return(new Date(b,f,1)).getDay();},_canAdjustMonth:function(b,f,j,l){var o=this._getNumberOfMonths(b);j=this._daylightSavingAdjust(new Date(j,l+(f<0?f:o[0]*o[1]),1));f<0&&j.setDate(this._getDaysInMonth(j.getFullYear(),j.getMonth()));
return this._isInRange(b,j);},_isInRange:function(b,f){var j=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");return(!j||f.getTime()>=j.getTime())&&(!b||f.getTime()<=b.getTime());},_getFormatConfig:function(b){var f=this._get(b,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);
return{shortYearCutoff:f,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")};},_formatDate:function(b,f,j,l){if(!f){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear;
}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(l,j,f)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),f,this._getFormatConfig(b));}});a.fn.datepicker=function(b){if(!this.length){return this;}if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);
a.datepicker.initialized=true;}var f=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget")){return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(f));}if(b=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(f));
}return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(f)):a.datepicker._attachDatepicker(this,b);});};a.datepicker=new d;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.15";window["DP_jQuery_"+g]=a;
})(jQuery);(function(A,E){var D={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},C={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},B=A.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};A.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(G){var F=A(this).css(G).offset().top;
F<0&&A(this).css("top",G.top-F);}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle="";}this.options.title=this.options.title||this.originalTitle;var J=this,I=J.options,F=I.title||"&#160;",K=A.ui.dialog.getTitleId(J.element),H=(J.uiDialog=A("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+I.dialogClass).css({zIndex:I.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(M){if(I.closeOnEscape&&M.keyCode&&M.keyCode===A.ui.keyCode.ESCAPE){J.close(M);
M.preventDefault();}}).attr({role:"dialog","aria-labelledby":K}).mousedown(function(M){J.moveToTop(false,M);});J.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(H);var G=(J.uiDialogTitlebar=A("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(H),L=A('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){L.addClass("ui-state-hover");
},function(){L.removeClass("ui-state-hover");}).focus(function(){L.addClass("ui-state-focus");}).blur(function(){L.removeClass("ui-state-focus");}).click(function(M){J.close(M);return false;}).appendTo(G);(J.uiDialogTitlebarCloseText=A("<span></span>")).addClass("ui-icon ui-icon-closethick").text(I.closeText).appendTo(L);
A("<span></span>").addClass("ui-dialog-title").attr("id",K).html(F).prependTo(G);if(A.isFunction(I.beforeclose)&&!A.isFunction(I.beforeClose)){I.beforeClose=I.beforeclose;}G.find("*").add(G).disableSelection();I.draggable&&A.fn.draggable&&J._makeDraggable();I.resizable&&A.fn.resizable&&J._makeResizable();
J._createButtons(I.buttons);J._isOpen=false;A.fn.bgiframe&&H.bgiframe();},_init:function(){this.options.autoOpen&&this.open();},destroy:function(){var F=this;F.overlay&&F.overlay.destroy();F.uiDialog.hide();F.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
F.uiDialog.remove();F.originalTitle&&F.element.attr("title",F.originalTitle);return F;},widget:function(){return this.uiDialog;},close:function(H){var G=this,F,I;if(false!==G._trigger("beforeClose",H)){G.overlay&&G.overlay.destroy();G.uiDialog.unbind("keypress.ui-dialog");G._isOpen=false;if(G.options.hide){G.uiDialog.hide(G.options.hide,function(){G._trigger("close",H);
});}else{G.uiDialog.hide();G._trigger("close",H);}A.ui.dialog.overlay.resize();if(G.options.modal){F=0;A(".ui-dialog").each(function(){if(this!==G.uiDialog[0]){I=A(this).css("z-index");isNaN(I)||(F=Math.max(F,I));}});A.ui.dialog.maxZ=F;}return G;}},isOpen:function(){return this._isOpen;},moveToTop:function(H,G){var F=this,I=F.options;
if(I.modal&&!H||!I.stack&&!I.modal){return F._trigger("focus",G);}if(I.zIndex>A.ui.dialog.maxZ){A.ui.dialog.maxZ=I.zIndex;}if(F.overlay){A.ui.dialog.maxZ+=1;F.overlay.$el.css("z-index",A.ui.dialog.overlay.maxZ=A.ui.dialog.maxZ);}H={scrollTop:F.element.scrollTop(),scrollLeft:F.element.scrollLeft()};A.ui.dialog.maxZ+=1;
F.uiDialog.css("z-index",A.ui.dialog.maxZ);F.element.attr(H);F._trigger("focus",G);return F;},open:function(){if(!this._isOpen){var H=this,G=H.options,F=H.uiDialog;H.overlay=G.modal?new A.ui.dialog.overlay(H):null;H._size();H._position(G.position);F.show(G.show);H.moveToTop(true);G.modal&&F.bind("keypress.ui-dialog",function(K){if(K.keyCode===A.ui.keyCode.TAB){var J=A(":tabbable",this),I=J.filter(":first");
J=J.filter(":last");if(K.target===J[0]&&!K.shiftKey){I.focus(1);return false;}else{if(K.target===I[0]&&K.shiftKey){J.focus(1);return false;}}}});A(H.element.find(":tabbable").get().concat(F.find(".ui-dialog-buttonpane :tabbable").get().concat(F.get()))).eq(0).focus();H._isOpen=true;H._trigger("open");
return H;}},_createButtons:function(I){var H=this,F=false,J=A("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),G=A("<div></div>").addClass("ui-dialog-buttonset").appendTo(J);H.uiDialog.find(".ui-dialog-buttonpane").remove();typeof I==="object"&&I!==null&&A.each(I,function(){return !(F=true);
});if(F){A.each(I,function(K,L){L=A.isFunction(L)?{click:L,text:K}:L;var M=A('<button type="button"></button>').click(function(){L.click.apply(H.element[0],arguments);}).appendTo(G);A.each(L,function(O,N){if(O!=="click"){O in B?M[O](N):M.attr(O,N);}});A.fn.button&&M.button();});J.appendTo(H.uiDialog);
}},_makeDraggable:function(){function I(K){return{position:K.position,offset:K.offset};}var H=this,F=H.options,J=A(document),G;H.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(K,L){G=F.height==="auto"?"auto":A(this).height();
A(this).height(A(this).height()).addClass("ui-dialog-dragging");H._trigger("dragStart",K,I(L));},drag:function(K,L){H._trigger("drag",K,I(L));},stop:function(K,L){F.position=[L.position.left-J.scrollLeft(),L.position.top-J.scrollTop()];A(this).removeClass("ui-dialog-dragging").height(G);H._trigger("dragStop",K,I(L));
A.ui.dialog.overlay.resize();}});},_makeResizable:function(I){function H(K){return{originalPosition:K.originalPosition,originalSize:K.originalSize,position:K.position,size:K.size};}I=I===E?this.options.resizable:I;var F=this,J=F.options,G=F.uiDialog.css("position");I=typeof I==="string"?I:"n,e,s,w,se,sw,ne,nw";
F.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:F.element,maxWidth:J.maxWidth,maxHeight:J.maxHeight,minWidth:J.minWidth,minHeight:F._minHeight(),handles:I,start:function(K,L){A(this).addClass("ui-dialog-resizing");F._trigger("resizeStart",K,H(L));},resize:function(K,L){F._trigger("resize",K,H(L));
},stop:function(K,L){A(this).removeClass("ui-dialog-resizing");J.height=A(this).height();J.width=A(this).width();F._trigger("resizeStop",K,H(L));A.ui.dialog.overlay.resize();}}).css("position",G).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");},_minHeight:function(){var F=this.options;
return F.height==="auto"?F.minHeight:Math.min(F.minHeight,F.height);},_position:function(H){var G=[],F=[0,0],I;if(H){if(typeof H==="string"||typeof H==="object"&&"0" in H){G=H.split?H.split(" "):[H[0],H[1]];if(G.length===1){G[1]=G[0];}A.each(["left","top"],function(K,J){if(+G[K]===G[K]){F[K]=G[K];G[K]=J;
}});H={my:G.join(" "),at:G.join(" "),offset:F.join(" ")};}H=A.extend({},A.ui.dialog.prototype.options.position,H);}else{H=A.ui.dialog.prototype.options.position;}(I=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(A.extend({of:window},H));I||this.uiDialog.hide();
},_setOptions:function(H){var G=this,F={},I=false;A.each(H,function(K,J){G._setOption(K,J);if(K in D){I=true;}if(K in C){F[K]=J;}});I&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",F);},_setOption:function(I,H){var F=this,J=F.uiDialog;switch(I){case"beforeclose":I="beforeClose";
break;case"buttons":F._createButtons(H);break;case"closeText":F.uiDialogTitlebarCloseText.text(""+H);break;case"dialogClass":J.removeClass(F.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+H);break;case"disabled":H?J.addClass("ui-dialog-disabled"):J.removeClass("ui-dialog-disabled");
break;case"draggable":var G=J.is(":data(draggable)");G&&!H&&J.draggable("destroy");!G&&H&&F._makeDraggable();break;case"position":F._position(H);break;case"resizable":(G=J.is(":data(resizable)"))&&!H&&J.resizable("destroy");G&&typeof H==="string"&&J.resizable("option","handles",H);!G&&H!==false&&F._makeResizable(H);
break;case"title":A(".ui-dialog-title",F.uiDialogTitlebar).html(""+(H||"&#160;"));break;}A.Widget.prototype._setOption.apply(F,arguments);},_size:function(){var H=this.options,G,F,I=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(H.minWidth>H.width){H.width=H.minWidth;
}G=this.uiDialog.css({height:"auto",width:H.width}).height();F=Math.max(0,H.minHeight-G);if(H.height==="auto"){if(A.support.minHeight){this.element.css({minHeight:F,height:"auto"});}else{this.uiDialog.show();H=this.element.css("height","auto").height();I||this.uiDialog.hide();this.element.height(Math.max(H,F));
}}else{this.element.height(Math.max(H.height-G,0));}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight());}});A.extend(A.ui.dialog,{version:"1.8.15",uuid:0,maxZ:0,getTitleId:function(F){F=F.attr("id");if(!F){this.uuid+=1;F=this.uuid;}return"ui-dialog-title-"+F;
},overlay:function(F){this.$el=A.ui.dialog.overlay.create(F);}});A.extend(A.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:A.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(F){return F+".dialog-overlay";}).join(" "),create:function(G){if(this.instances.length===0){setTimeout(function(){A.ui.dialog.overlay.instances.length&&A(document).bind(A.ui.dialog.overlay.events,function(H){if(A(H.target).zIndex()<A.ui.dialog.overlay.maxZ){return false;
}});},1);A(document).bind("keydown.dialog-overlay",function(H){if(G.options.closeOnEscape&&H.keyCode&&H.keyCode===A.ui.keyCode.ESCAPE){G.close(H);H.preventDefault();}});A(window).bind("resize.dialog-overlay",A.ui.dialog.overlay.resize);}var F=(this.oldInstances.pop()||A("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});
A.fn.bgiframe&&F.bgiframe();this.instances.push(F);return F;},destroy:function(H){var G=A.inArray(H,this.instances);G!=-1&&this.oldInstances.push(this.instances.splice(G,1)[0]);this.instances.length===0&&A([document,window]).unbind(".dialog-overlay");H.remove();var F=0;A.each(this.instances,function(){F=Math.max(F,this.css("z-index"));
});this.maxZ=F;},height:function(){var G,F;if(A.browser.msie&&A.browser.version<7){G=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);F=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return G<F?A(window).height()+"px":G+"px";}else{return A(document).height()+"px";
}},width:function(){var G,F;if(A.browser.msie){G=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);F=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return G<F?A(window).width()+"px":G+"px";}else{return A(document).width()+"px";}},resize:function(){var F=A([]);
A.each(A.ui.dialog.overlay.instances,function(){F=F.add(this);});F.css({width:0,height:0}).css({width:A.ui.dialog.overlay.width(),height:A.ui.dialog.overlay.height()});}});A.extend(A.ui.dialog.overlay.prototype,{destroy:function(){A.ui.dialog.overlay.destroy(this.$el);}});})(jQuery);(function(A){A.ui=A.ui||{};
var E=/left|center|right/,D=/top|center|bottom/,C=A.fn.position,B=A.fn.offset;A.fn.position=function(J){if(!J||!J.of){return C.apply(this,arguments);}J=A.extend({},J);var I=A(J.of),F=I[0],K=(J.collision||"flip").split(" "),H=J.offset?J.offset.split(" "):[0,0],G,L,M;if(F.nodeType===9){G=I.width();L=I.height();
M={top:0,left:0};}else{if(F.setTimeout){G=I.width();L=I.height();M={top:I.scrollTop(),left:I.scrollLeft()};}else{if(F.preventDefault){J.at="left top";G=L=0;M={top:J.of.pageY,left:J.of.pageX};}else{G=I.outerWidth();L=I.outerHeight();M=I.offset();}}}A.each(["my","at"],function(){var N=(J[this]||"").split(" ");
if(N.length===1){N=E.test(N[0])?N.concat(["center"]):D.test(N[0])?["center"].concat(N):["center","center"];}N[0]=E.test(N[0])?N[0]:"center";N[1]=D.test(N[1])?N[1]:"center";J[this]=N;});if(K.length===1){K[1]=K[0];}H[0]=parseInt(H[0],10)||0;if(H.length===1){H[1]=H[0];}H[1]=parseInt(H[1],10)||0;if(J.at[0]==="right"){M.left+=G;
}else{if(J.at[0]==="center"){M.left+=G/2;}}if(J.at[1]==="bottom"){M.top+=L;}else{if(J.at[1]==="center"){M.top+=L/2;}}M.left+=H[0];M.top+=H[1];return this.each(function(){var R=A(this),Q=R.outerWidth(),P=R.outerHeight(),O=parseInt(A.curCSS(this,"marginLeft",true))||0,V=parseInt(A.curCSS(this,"marginTop",true))||0,N=Q+O+(parseInt(A.curCSS(this,"marginRight",true))||0),U=P+V+(parseInt(A.curCSS(this,"marginBottom",true))||0),T=A.extend({},M),S;
if(J.my[0]==="right"){T.left-=Q;}else{if(J.my[0]==="center"){T.left-=Q/2;}}if(J.my[1]==="bottom"){T.top-=P;}else{if(J.my[1]==="center"){T.top-=P/2;}}T.left=Math.round(T.left);T.top=Math.round(T.top);S={left:T.left-O,top:T.top-V};A.each(["left","top"],function(W,X){A.ui.position[K[W]]&&A.ui.position[K[W]][X](T,{targetWidth:G,targetHeight:L,elemWidth:Q,elemHeight:P,collisionPosition:S,collisionWidth:N,collisionHeight:U,offset:H,my:J.my,at:J.at});
});A.fn.bgiframe&&R.bgiframe();R.offset(A.extend(T,{using:J.using}));});};A.ui.position={fit:{left:function(H,G){var F=A(window);F=G.collisionPosition.left+G.collisionWidth-F.width()-F.scrollLeft();H.left=F>0?H.left-F:Math.max(H.left-G.collisionPosition.left,H.left);},top:function(H,G){var F=A(window);
F=G.collisionPosition.top+G.collisionHeight-F.height()-F.scrollTop();H.top=F>0?H.top-F:Math.max(H.top-G.collisionPosition.top,H.top);}},flip:{left:function(J,I){if(I.at[0]!=="center"){var F=A(window);F=I.collisionPosition.left+I.collisionWidth-F.width()-F.scrollLeft();var K=I.my[0]==="left"?-I.elemWidth:I.my[0]==="right"?I.elemWidth:0,H=I.at[0]==="left"?I.targetWidth:-I.targetWidth,G=-2*I.offset[0];
J.left+=I.collisionPosition.left<0?K+H+G:F>0?K+H+G:0;}},top:function(J,I){if(I.at[1]!=="center"){var F=A(window);F=I.collisionPosition.top+I.collisionHeight-F.height()-F.scrollTop();var K=I.my[1]==="top"?-I.elemHeight:I.my[1]==="bottom"?I.elemHeight:0,H=I.at[1]==="top"?I.targetHeight:-I.targetHeight,G=-2*I.offset[1];
J.top+=I.collisionPosition.top<0?K+H+G:F>0?K+H+G:0;}}}};if(!A.offset.setOffset){A.offset.setOffset=function(J,I){if(/static/.test(A.curCSS(J,"position"))){J.style.position="relative";}var F=A(J),K=F.offset(),H=parseInt(A.curCSS(J,"top",true),10)||0,G=parseInt(A.curCSS(J,"left",true),10)||0;K={top:I.top-K.top+H,left:I.left-K.left+G};
"using" in I?I.using.call(J,K):F.css(K);};A.fn.offset=function(G){var F=this[0];if(!F||!F.ownerDocument){return null;}if(G){return this.each(function(){A.offset.setOffset(this,G);});}return B.call(this);};}})(jQuery);(function(A,B){A.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});
this.valueDiv=A("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue();},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();A.Widget.prototype.destroy.apply(this,arguments);},value:function(C){if(C===B){return this._value();}this._setOption("value",C);return this;},_setOption:function(D,C){if(D==="value"){this.options.value=C;this._refreshValue();this._value()===this.options.max&&this._trigger("complete");
}A.Widget.prototype._setOption.apply(this,arguments);},_value:function(){var C=this.options.value;if(typeof C!=="number"){C=0;}return Math.min(this.options.max,Math.max(this.min,C));},_percentage:function(){return 100*this._value()/this.options.max;},_refreshValue:function(){var D=this.value(),C=this._percentage();
if(this.oldValue!==D){this.oldValue=D;this._trigger("change");}this.valueDiv.toggle(D>this.min).toggleClass("ui-corner-right",D===this.options.max).width(C.toFixed(0)+"%");this.element.attr("aria-valuenow",D);}});A.extend(A.ui.progressbar,{version:"1.8.15"});})(jQuery);(function(A){A.widget("ui.slider",A.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var G=this,F=this.options,E=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),C=F.values&&F.values.length||1,D=[];
this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(F.disabled?" ui-slider-disabled ui-disabled":""));this.range=A([]);
if(F.range){if(F.range===true){if(!F.values){F.values=[this._valueMin(),this._valueMin()];}if(F.values.length&&F.values.length!==2){F.values=[F.values[0],F.values[0]];}}this.range=A("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(F.range==="min"||F.range==="max"?" ui-slider-range-"+F.range:""));
}for(var B=E.length;B<C;B+=1){D.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");}this.handles=E.add(A(D.join("")).appendTo(G.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(H){H.preventDefault();}).hover(function(){F.disabled||A(this).addClass("ui-state-hover");
},function(){A(this).removeClass("ui-state-hover");}).focus(function(){if(F.disabled){A(this).blur();}else{A(".ui-slider .ui-state-focus").removeClass("ui-state-focus");A(this).addClass("ui-state-focus");}}).blur(function(){A(this).removeClass("ui-state-focus");});this.handles.each(function(H){A(this).data("index.ui-slider-handle",H);
});this.handles.keydown(function(H){var K=true,J=A(this).data("index.ui-slider-handle"),I,L,M;if(!G.options.disabled){switch(H.keyCode){case A.ui.keyCode.HOME:case A.ui.keyCode.END:case A.ui.keyCode.PAGE_UP:case A.ui.keyCode.PAGE_DOWN:case A.ui.keyCode.UP:case A.ui.keyCode.RIGHT:case A.ui.keyCode.DOWN:case A.ui.keyCode.LEFT:K=false;
if(!G._keySliding){G._keySliding=true;A(this).addClass("ui-state-active");I=G._start(H,J);if(I===false){return ;}}break;}M=G.options.step;I=G.options.values&&G.options.values.length?(L=G.values(J)):(L=G.value());switch(H.keyCode){case A.ui.keyCode.HOME:L=G._valueMin();break;case A.ui.keyCode.END:L=G._valueMax();
break;case A.ui.keyCode.PAGE_UP:L=G._trimAlignValue(I+(G._valueMax()-G._valueMin())/5);break;case A.ui.keyCode.PAGE_DOWN:L=G._trimAlignValue(I-(G._valueMax()-G._valueMin())/5);break;case A.ui.keyCode.UP:case A.ui.keyCode.RIGHT:if(I===G._valueMax()){return ;}L=G._trimAlignValue(I+M);break;case A.ui.keyCode.DOWN:case A.ui.keyCode.LEFT:if(I===G._valueMin()){return ;
}L=G._trimAlignValue(I-M);break;}G._slide(H,J,L);return K;}}).keyup(function(H){var I=A(this).data("index.ui-slider-handle");if(G._keySliding){G._keySliding=false;G._stop(H,I);G._change(H,I);A(this).removeClass("ui-state-active");}});this._refreshValue();this._animateOff=false;},destroy:function(){this.handles.remove();
this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this;},_mouseCapture:function(H){var G=this.options,F,D,E,C,B;if(G.disabled){return false;
}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();F=this._normValueFromMouse({x:H.pageX,y:H.pageY});D=this._valueMax()-this._valueMin()+1;C=this;this.handles.each(function(J){var I=Math.abs(F-C.values(J));if(D>I){D=I;E=A(this);
B=J;}});if(G.range===true&&this.values(1)===G.min){B+=1;E=A(this.handles[B]);}if(this._start(H,B)===false){return false;}this._mouseSliding=true;C._handleIndex=B;E.addClass("ui-state-active").focus();G=E.offset();this._clickOffset=!A(H.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:H.pageX-G.left-E.width()/2,top:H.pageY-G.top-E.height()/2-(parseInt(E.css("borderTopWidth"),10)||0)-(parseInt(E.css("borderBottomWidth"),10)||0)+(parseInt(E.css("marginTop"),10)||0)};
this.handles.hasClass("ui-state-hover")||this._slide(H,B,F);return this._animateOff=true;},_mouseStart:function(){return true;},_mouseDrag:function(C){var B=this._normValueFromMouse({x:C.pageX,y:C.pageY});this._slide(C,this._handleIndex,B);return false;},_mouseStop:function(B){this.handles.removeClass("ui-state-active");
this._mouseSliding=false;this._stop(B,this._handleIndex);this._change(B,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false;},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal";},_normValueFromMouse:function(C){var B;
if(this.orientation==="horizontal"){B=this.elementSize.width;C=C.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0);}else{B=this.elementSize.height;C=C.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);}B=C/B;if(B>1){B=1;}if(B<0){B=0;}if(this.orientation==="vertical"){B=1-B;
}C=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+B*C);},_start:function(D,C){var B={handle:this.handles[C],value:this.value()};if(this.options.values&&this.options.values.length){B.value=this.values(C);B.values=this.values();}return this._trigger("start",D,B);},_slide:function(E,D,C){var B;
if(this.options.values&&this.options.values.length){B=this.values(D?0:1);if(this.options.values.length===2&&this.options.range===true&&(D===0&&C>B||D===1&&C<B)){C=B;}if(C!==this.values(D)){B=this.values();B[D]=C;E=this._trigger("slide",E,{handle:this.handles[D],value:C,values:B});this.values(D?0:1);E!==false&&this.values(D,C,true);
}}else{if(C!==this.value()){E=this._trigger("slide",E,{handle:this.handles[D],value:C});E!==false&&this.value(C);}}},_stop:function(D,C){var B={handle:this.handles[C],value:this.value()};if(this.options.values&&this.options.values.length){B.value=this.values(C);B.values=this.values();}this._trigger("stop",D,B);
},_change:function(D,C){if(!this._keySliding&&!this._mouseSliding){var B={handle:this.handles[C],value:this.value()};if(this.options.values&&this.options.values.length){B.value=this.values(C);B.values=this.values();}this._trigger("change",D,B);}},value:function(B){if(arguments.length){this.options.value=this._trimAlignValue(B);
this._refreshValue();this._change(null,0);}else{return this._value();}},values:function(F,E){var D,B,C;if(arguments.length>1){this.options.values[F]=this._trimAlignValue(E);this._refreshValue();this._change(null,F);}else{if(arguments.length){if(A.isArray(arguments[0])){D=this.options.values;B=arguments[0];
for(C=0;C<D.length;C+=1){D[C]=this._trimAlignValue(B[C]);this._change(null,C);}this._refreshValue();}else{return this.options.values&&this.options.values.length?this._values(F):this.value();}}else{return this._values();}}},_setOption:function(E,D){var C,B=0;if(A.isArray(this.options.values)){B=this.options.values.length;
}A.Widget.prototype._setOption.apply(this,arguments);switch(E){case"disabled":if(D){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled");}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled");
}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;
this._refreshValue();for(C=0;C<B;C+=1){this._change(null,C);}this._animateOff=false;break;}},_value:function(){var B=this.options.value;return B=this._trimAlignValue(B);},_values:function(D){var C,B;if(arguments.length){C=this.options.values[D];return C=this._trimAlignValue(C);}else{C=this.options.values.slice();
for(B=0;B<C.length;B+=1){C[B]=this._trimAlignValue(C[B]);}return C;}},_trimAlignValue:function(D){if(D<=this._valueMin()){return this._valueMin();}if(D>=this._valueMax()){return this._valueMax();}var C=this.options.step>0?this.options.step:1,B=(D-this._valueMin())%C;D=D-B;if(Math.abs(B)*2>=C){D+=B>0?C:-C;
}return parseFloat(D.toFixed(5));},_valueMin:function(){return this.options.min;},_valueMax:function(){return this.options.max;},_refreshValue:function(){var J=this.options.range,I=this.options,H=this,E=!this._animateOff?I.animate:false,F,D={},K,G,C,B;if(this.options.values&&this.options.values.length){this.handles.each(function(L){F=(H.values(L)-H._valueMin())/(H._valueMax()-H._valueMin())*100;
D[H.orientation==="horizontal"?"left":"bottom"]=F+"%";A(this).stop(1,1)[E?"animate":"css"](D,I.animate);if(H.options.range===true){if(H.orientation==="horizontal"){if(L===0){H.range.stop(1,1)[E?"animate":"css"]({left:F+"%"},I.animate);}if(L===1){H.range[E?"animate":"css"]({width:F-K+"%"},{queue:false,duration:I.animate});
}}else{if(L===0){H.range.stop(1,1)[E?"animate":"css"]({bottom:F+"%"},I.animate);}if(L===1){H.range[E?"animate":"css"]({height:F-K+"%"},{queue:false,duration:I.animate});}}}K=F;});}else{G=this.value();C=this._valueMin();B=this._valueMax();F=B!==C?(G-C)/(B-C)*100:0;D[H.orientation==="horizontal"?"left":"bottom"]=F+"%";
this.handle.stop(1,1)[E?"animate":"css"](D,I.animate);if(J==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[E?"animate":"css"]({width:F+"%"},I.animate);}if(J==="max"&&this.orientation==="horizontal"){this.range[E?"animate":"css"]({width:100-F+"%"},{queue:false,duration:I.animate});}if(J==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[E?"animate":"css"]({height:F+"%"},I.animate);
}if(J==="max"&&this.orientation==="vertical"){this.range[E?"animate":"css"]({height:100-F+"%"},{queue:false,duration:I.animate});}}}});A.extend(A.ui.slider,{version:"1.8.15"});})(jQuery);(function(A,F){function E(){return ++B;}function D(){return ++C;}var B=0,C=0;A.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true);
},_setOption:function(H,G){if(H=="selected"){this.options.collapsible&&G==this.options.selected||this.select(G);}else{this.options[H]=G;this._tabify();}},_tabId:function(G){return G.title&&G.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+E();},_sanitizeSelector:function(G){return G.replace(/:/g,"\\:");
},_cookie:function(){var G=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+D());return A.cookie.apply(null,[G].concat(A.makeArray(arguments)));},_ui:function(H,G){return{tab:H,panel:G,index:this.anchors.index(H)};},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var G=A(this);
G.html(G.data("label.tabs")).removeData("label.tabs");});},_tabify:function(O){function Q(T,S){T.css("display","");!A.support.opacity&&S.opacity&&T[0].style.removeAttribute("filter");}var P=this,N=this.options,L=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=A(" > li:has(a[href])",this.list);
this.anchors=this.lis.map(function(){return A("a",this)[0];});this.panels=A([]);this.anchors.each(function(W,V){var U=A(V).attr("href"),T=U.split("#")[0],S;if(T&&(T===location.toString().split("#")[0]||(S=A("base")[0])&&T===S.href)){U=V.hash;V.href=U;}if(L.test(U)){P.panels=P.panels.add(P.element.find(P._sanitizeSelector(U)));
}else{if(U&&U!=="#"){A.data(V,"href.tabs",U);A.data(V,"load.tabs",U.replace(/#.*$/,""));U=P._tabId(V);V.href="#"+U;V=P.element.find("#"+U);if(!V.length){V=A(N.panelTemplate).attr("id",U).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(P.panels[W-1]||P.list);V.data("destroy.tabs",true);
}P.panels=P.panels.add(V);}else{N.disabled.push(W);}}});if(O){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");
if(N.selected===F){location.hash&&this.anchors.each(function(T,S){if(S.hash==location.hash){N.selected=T;return false;}});if(typeof N.selected!=="number"&&N.cookie){N.selected=parseInt(P._cookie(),10);}if(typeof N.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){N.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
}N.selected=N.selected||(this.lis.length?0:-1);}else{if(N.selected===null){N.selected=-1;}}N.selected=N.selected>=0&&this.anchors[N.selected]||N.selected<0?N.selected:0;N.disabled=A.unique(N.disabled.concat(A.map(this.lis.filter(".ui-state-disabled"),function(S){return P.lis.index(S);}))).sort();A.inArray(N.selected,N.disabled)!=-1&&N.disabled.splice(A.inArray(N.selected,N.disabled),1);
this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(N.selected>=0&&this.anchors.length){P.element.find(P._sanitizeSelector(P.anchors[N.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(N.selected).addClass("ui-tabs-selected ui-state-active");P.element.queue("tabs",function(){P._trigger("show",null,P._ui(P.anchors[N.selected],P.element.find(P._sanitizeSelector(P.anchors[N.selected].hash))[0]));
});this.load(N.selected);}A(window).bind("unload",function(){P.lis.add(P.anchors).unbind(".tabs");P.lis=P.anchors=P.panels=null;});}else{N.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}this.element[N.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");N.cookie&&this._cookie(N.selected,N.cookie);
O=0;for(var I;I=this.lis[O];O++){A(I)[A.inArray(O,N.disabled)!=-1&&!A(I).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");}N.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(N.event!=="mouseover"){var J=function(T,S){S.is(":not(.ui-state-disabled)")&&S.addClass("ui-state-"+T);
},M=function(T,S){S.removeClass("ui-state-"+T);};this.lis.bind("mouseover.tabs",function(){J("hover",A(this));});this.lis.bind("mouseout.tabs",function(){M("hover",A(this));});this.anchors.bind("focus.tabs",function(){J("focus",A(this).closest("li"));});this.anchors.bind("blur.tabs",function(){M("focus",A(this).closest("li"));
});}var K,H;if(N.fx){if(A.isArray(N.fx)){K=N.fx[0];H=N.fx[1];}else{K=H=N.fx;}}var G=H?function(T,S){A(T).closest("li").addClass("ui-tabs-selected ui-state-active");S.hide().removeClass("ui-tabs-hide").animate(H,H.duration||"normal",function(){Q(S,H);P._trigger("show",null,P._ui(T,S[0]));});}:function(T,S){A(T).closest("li").addClass("ui-tabs-selected ui-state-active");
S.removeClass("ui-tabs-hide");P._trigger("show",null,P._ui(T,S[0]));},R=K?function(T,S){S.animate(K,K.duration||"normal",function(){P.lis.removeClass("ui-tabs-selected ui-state-active");S.addClass("ui-tabs-hide");Q(S,K);P.element.dequeue("tabs");});}:function(T,S){P.lis.removeClass("ui-tabs-selected ui-state-active");
S.addClass("ui-tabs-hide");P.element.dequeue("tabs");};this.anchors.bind(N.event+".tabs",function(){var V=this,U=A(V).closest("li"),T=P.panels.filter(":not(.ui-tabs-hide)"),S=P.element.find(P._sanitizeSelector(V.hash));if(U.hasClass("ui-tabs-selected")&&!N.collapsible||U.hasClass("ui-state-disabled")||U.hasClass("ui-state-processing")||P.panels.filter(":animated").length||P._trigger("select",null,P._ui(this,S[0]))===false){this.blur();
return false;}N.selected=P.anchors.index(this);P.abort();if(N.collapsible){if(U.hasClass("ui-tabs-selected")){N.selected=-1;N.cookie&&P._cookie(N.selected,N.cookie);P.element.queue("tabs",function(){R(V,T);}).dequeue("tabs");this.blur();return false;}else{if(!T.length){N.cookie&&P._cookie(N.selected,N.cookie);
P.element.queue("tabs",function(){G(V,S);});P.load(P.anchors.index(this));this.blur();return false;}}}N.cookie&&P._cookie(N.selected,N.cookie);if(S.length){T.length&&P.element.queue("tabs",function(){R(V,T);});P.element.queue("tabs",function(){G(V,S);});P.load(P.anchors.index(this));}else{throw"jQuery UI Tabs: Mismatching fragment identifier.";
}A.browser.msie&&this.blur();});this.anchors.bind("click.tabs",function(){return false;});},_getIndex:function(G){if(typeof G=="string"){G=this.anchors.index(this.anchors.filter("[href$="+G+"]"));}return G;},destroy:function(){var G=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");
this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var H=A.data(this,"href.tabs");if(H){this.href=H;}var I=A(this).unbind(".tabs");A.each(["href","load","cache"],function(K,J){I.removeData(J+".tabs");});});this.lis.unbind(".tabs").add(this.panels).each(function(){A.data(this,"destroy.tabs")?A(this).remove():A(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");
});G.cookie&&this._cookie(null,G.cookie);return this;},add:function(J,G,K){if(K===F){K=this.anchors.length;}var I=this,H=this.options;G=A(H.tabTemplate.replace(/#\{href\}/g,J).replace(/#\{label\}/g,G));J=!J.indexOf("#")?J.replace("#",""):this._tabId(A("a",G)[0]);G.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);
var L=I.element.find("#"+J);L.length||(L=A(H.panelTemplate).attr("id",J).data("destroy.tabs",true));L.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(K>=this.lis.length){G.appendTo(this.list);L.appendTo(this.list[0].parentNode);}else{G.insertBefore(this.lis[K]);L.insertBefore(this.panels[K]);
}H.disabled=A.map(H.disabled,function(M){return M>=K?++M:M;});this._tabify();if(this.anchors.length==1){H.selected=0;G.addClass("ui-tabs-selected ui-state-active");L.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){I._trigger("show",null,I._ui(I.anchors[0],I.panels[0]));});this.load(0);
}this._trigger("add",null,this._ui(this.anchors[K],this.panels[K]));return this;},remove:function(I){I=this._getIndex(I);var G=this.options,J=this.lis.eq(I).remove(),H=this.panels.eq(I).remove();if(J.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(I+(I+1<this.anchors.length?1:-1));}G.disabled=A.map(A.grep(G.disabled,function(K){return K!=I;
}),function(K){return K>=I?--K:K;});this._tabify();this._trigger("remove",null,this._ui(J.find("a")[0],H[0]));return this;},enable:function(H){H=this._getIndex(H);var G=this.options;if(A.inArray(H,G.disabled)!=-1){this.lis.eq(H).removeClass("ui-state-disabled");G.disabled=A.grep(G.disabled,function(I){return I!=H;
});this._trigger("enable",null,this._ui(this.anchors[H],this.panels[H]));return this;}},disable:function(H){H=this._getIndex(H);var G=this.options;if(H!=G.selected){this.lis.eq(H).addClass("ui-state-disabled");G.disabled.push(H);G.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[H],this.panels[H]));
}return this;},select:function(G){G=this._getIndex(G);if(G==-1){if(this.options.collapsible&&this.options.selected!=-1){G=this.options.selected;}else{return this;}}this.anchors.eq(G).trigger(this.options.event+".tabs");return this;},load:function(J){J=this._getIndex(J);var G=this,K=this.options,I=this.anchors.eq(J)[0],H=A.data(I,"load.tabs");
this.abort();if(!H||this.element.queue("tabs").length!==0&&A.data(I,"cache.tabs")){this.element.dequeue("tabs");}else{this.lis.eq(J).addClass("ui-state-processing");if(K.spinner){var L=A("span",I);L.data("label.tabs",L.html()).html(K.spinner);}this.xhr=A.ajax(A.extend({},K.ajaxOptions,{url:H,success:function(O,N){G.element.find(G._sanitizeSelector(I.hash)).html(O);
G._cleanup();K.cache&&A.data(I,"cache.tabs",true);G._trigger("load",null,G._ui(G.anchors[J],G.panels[J]));try{K.ajaxOptions.success(O,N);}catch(M){}},error:function(O,N){G._cleanup();G._trigger("load",null,G._ui(G.anchors[J],G.panels[J]));try{K.ajaxOptions.error(O,N,J,I);}catch(M){}}}));G.element.dequeue("tabs");
return this;}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr;}this._cleanup();return this;},url:function(H,G){this.anchors.eq(H).removeData("cache.tabs").data("load.tabs",G);
return this;},length:function(){return this.anchors.length;}});A.extend(A.ui.tabs,{version:"1.8.15"});A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(J,G){var K=this,I=this.options,H=K._rotate||(K._rotate=function(L){clearTimeout(K.rotation);K.rotation=setTimeout(function(){var M=I.selected;
K.select(++M<K.anchors.length?M:0);},J);L&&L.stopPropagation();});G=K._unrotate||(K._unrotate=!G?function(L){L.clientX&&K.rotate(null);}:function(){t=I.selected;H();});if(J){this.element.bind("tabsshow",H);this.anchors.bind(I.event+".tabs",G);H();}else{clearTimeout(K.rotation);this.element.unbind("tabsshow",H);
this.anchors.unbind(I.event+".tabs",G);delete this._rotate;delete this._unrotate;}return this;}});})(jQuery);
