/*! jQuery UI - v1.11.0 - 2014-06-26
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(G){
/*!
 * jQuery UI Core 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
;G.ui=G.ui||{};G.extend(G.ui,{version:"1.11.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});G.fn.extend({scrollParent:function(){var ad=this.css("position"),ac=ad==="absolute",ae=this.parents().filter(function(){var af=G(this);if(ac&&af.css("position")==="static"){return false}return(/(auto|scroll)/).test(af.css("overflow")+af.css("overflow-y")+af.css("overflow-x"))}).eq(0);return ad==="fixed"||!ae.length?G(this[0].ownerDocument||document):ae},uniqueId:(function(){var ac=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++ac)}})}})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){G(this).removeAttr("id")}})}});function t(ae,ac){var ag,af,ad,ah=ae.nodeName.toLowerCase();if("area"===ah){ag=ae.parentNode;af=ag.name;if(!ae.href||!af||ag.nodeName.toLowerCase()!=="map"){return false}ad=G("img[usemap=#"+af+"]")[0];return !!ad&&u(ad)}return(/input|select|textarea|button|object/.test(ah)?!ae.disabled:"a"===ah?ae.href||ac:ac)&&u(ae)}function u(ac){return G.expr.filters.visible(ac)&&!G(ac).parents().addBack().filter(function(){return G.css(this,"visibility")==="hidden"}).length}G.extend(G.expr[":"],{data:G.expr.createPseudo?G.expr.createPseudo(function(ac){return function(ad){return !!G.data(ad,ac)}}):function(ae,ad,ac){return !!G.data(ae,ac[3])},focusable:function(ac){return t(ac,!isNaN(G.attr(ac,"tabindex")))},tabbable:function(ae){var ac=G.attr(ae,"tabindex"),ad=isNaN(ac);return(ad||ac>=0)&&t(ae,!ad)}});if(!G("<a>").outerWidth(1).jquery){G.each(["Width","Height"],function(ae,ac){var ad=ac==="Width"?["Left","Right"]:["Top","Bottom"],af=ac.toLowerCase(),ah={innerWidth:G.fn.innerWidth,innerHeight:G.fn.innerHeight,outerWidth:G.fn.outerWidth,outerHeight:G.fn.outerHeight};function ag(ak,aj,ai,al){G.each(ad,function(){aj-=parseFloat(G.css(ak,"padding"+this))||0;if(ai){aj-=parseFloat(G.css(ak,"border"+this+"Width"))||0}if(al){aj-=parseFloat(G.css(ak,"margin"+this))||0}});return aj}G.fn["inner"+ac]=function(ai){if(ai===undefined){return ah["inner"+ac].call(this)}return this.each(function(){G(this).css(af,ag(this,ai)+"px")})};G.fn["outer"+ac]=function(ai,aj){if(typeof ai!=="number"){return ah["outer"+ac].call(this,ai)}return this.each(function(){G(this).css(af,ag(this,ai,true,aj)+"px")})}})}if(!G.fn.addBack){G.fn.addBack=function(ac){return this.add(ac==null?this.prevObject:this.prevObject.filter(ac))}}if(G("<a>").data("a-b","a").removeData("a-b").data("a-b")){G.fn.removeData=(function(ac){return function(ad){if(arguments.length){return ac.call(this,G.camelCase(ad))}else{return ac.call(this)}}})(G.fn.removeData)}G.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());G.fn.extend({focus:(function(ac){return function(ad,ae){return typeof ad==="number"?this.each(function(){var af=this;setTimeout(function(){G(af).focus();if(ae){ae.call(af)}},ad)}):ac.apply(this,arguments)}})(G.fn.focus),disableSelection:(function(){var ac="onselectstart" in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(ac+".ui-disableSelection",function(ad){ad.preventDefault()})}})(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(af){if(af!==undefined){return this.css("zIndex",af)}if(this.length){var ad=G(this[0]),ac,ae;while(ad.length&&ad[0]!==document){ac=ad.css("position");if(ac==="absolute"||ac==="relative"||ac==="fixed"){ae=parseInt(ad.css("zIndex"),10);if(!isNaN(ae)&&ae!==0){return ae}}ad=ad.parent()}}return 0}});G.ui.plugin={add:function(ad,ae,ag){var ac,af=G.ui[ad].prototype;for(ac in ag){af.plugins[ac]=af.plugins[ac]||[];af.plugins[ac].push([ae,ag[ac]])}},call:function(ac,af,ae,ad){var ag,ah=ac.plugins[af];if(!ah){return}if(!ad&&(!ac.element[0].parentNode||ac.element[0].parentNode.nodeType===11)){return}for(ag=0;ag<ah.length;ag++){if(ac.options[ah[ag][0]]){ah[ag][1].apply(ac.element,ae)}}}};
/*!
 * jQuery UI Widget 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/jQuery.widget/
 */
;var M=0,i=Array.prototype.slice;G.cleanData=(function(ac){return function(ad){for(var ae=0,af;(af=ad[ae])!=null;ae++){try{G(af).triggerHandler("remove")}catch(ag){}}ac(ad)}})(G.cleanData);G.widget=function(ac,ad,ak){var ah,ai,af,aj,ae={},ag=ac.split(".")[0];ac=ac.split(".")[1];ah=ag+"-"+ac;if(!ak){ak=ad;ad=G.Widget}G.expr[":"][ah.toLowerCase()]=function(al){return !!G.data(al,ah)};G[ag]=G[ag]||{};ai=G[ag][ac];af=G[ag][ac]=function(al,am){if(!this._createWidget){return new af(al,am)}if(arguments.length){this._createWidget(al,am)}};G.extend(af,ai,{version:ak.version,_proto:G.extend({},ak),_childConstructors:[]});aj=new ad();aj.options=G.widget.extend({},aj.options);G.each(ak,function(am,al){if(!G.isFunction(al)){ae[am]=al;return}ae[am]=(function(){var an=function(){return ad.prototype[am].apply(this,arguments)},ao=function(ap){return ad.prototype[am].apply(this,ap)};return function(){var ar=this._super,ap=this._superApply,aq;this._super=an;this._superApply=ao;aq=al.apply(this,arguments);this._super=ar;this._superApply=ap;return aq}})()});af.prototype=G.widget.extend(aj,{widgetEventPrefix:ai?(aj.widgetEventPrefix||ac):ac},ae,{constructor:af,namespace:ag,widgetName:ac,widgetFullName:ah});if(ai){G.each(ai._childConstructors,function(am,an){var al=an.prototype;G.widget(al.namespace+"."+al.widgetName,af,an._proto)});delete ai._childConstructors}else{ad._childConstructors.push(af)}G.widget.bridge(ac,af);return af};G.widget.extend=function(ah){var ad=i.call(arguments,1),ag=0,ac=ad.length,ae,af;for(;ag<ac;ag++){for(ae in ad[ag]){af=ad[ag][ae];if(ad[ag].hasOwnProperty(ae)&&af!==undefined){if(G.isPlainObject(af)){ah[ae]=G.isPlainObject(ah[ae])?G.widget.extend({},ah[ae],af):G.widget.extend({},af)}else{ah[ae]=af}}}}return ah};G.widget.bridge=function(ad,ac){var ae=ac.prototype.widgetFullName||ad;G.fn[ad]=function(ah){var af=typeof ah==="string",ag=i.call(arguments,1),ai=this;ah=!af&&ag.length?G.widget.extend.apply(null,[ah].concat(ag)):ah;if(af){this.each(function(){var ak,aj=G.data(this,ae);if(ah==="instance"){ai=aj;return false}if(!aj){return G.error("cannot call methods on "+ad+" prior to initialization; attempted to call method '"+ah+"'")}if(!G.isFunction(aj[ah])||ah.charAt(0)==="_"){return G.error("no such method '"+ah+"' for "+ad+" widget instance")}ak=aj[ah].apply(aj,ag);if(ak!==aj&&ak!==undefined){ai=ak&&ak.jquery?ai.pushStack(ak.get()):ak;return false}})}else{this.each(function(){var aj=G.data(this,ae);if(aj){aj.option(ah||{});if(aj._init){aj._init()}}else{G.data(this,ae,new ac(ah,this))}})}return ai}};G.Widget=function(){};G.Widget._childConstructors=[];G.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(ac,ad){ad=G(ad||this.defaultElement||this)[0];this.element=G(ad);this.uuid=M++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=G.widget.extend({},this.options,this._getCreateOptions(),ac);this.bindings=G();this.hoverable=G();this.focusable=G();if(ad!==this){G.data(ad,this.widgetFullName,this);this._on(true,this.element,{remove:function(ae){if(ae.target===ad){this.destroy()}}});this.document=G(ad.style?ad.ownerDocument:ad.document||ad);this.window=G(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:G.noop,_getCreateEventData:G.noop,_create:G.noop,_init:G.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(G.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:G.noop,widget:function(){return this.element},option:function(af,ag){var ac=af,ah,ae,ad;if(arguments.length===0){return G.widget.extend({},this.options)}if(typeof af==="string"){ac={};ah=af.split(".");af=ah.shift();if(ah.length){ae=ac[af]=G.widget.extend({},this.options[af]);for(ad=0;ad<ah.length-1;ad++){ae[ah[ad]]=ae[ah[ad]]||{};ae=ae[ah[ad]]}af=ah.pop();if(arguments.length===1){return ae[af]===undefined?null:ae[af]}ae[af]=ag}else{if(arguments.length===1){return this.options[af]===undefined?null:this.options[af]}ac[af]=ag}}this._setOptions(ac);return this},_setOptions:function(ac){var ad;for(ad in ac){this._setOption(ad,ac[ad])}return this},_setOption:function(ac,ad){this.options[ac]=ad;if(ac==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled",!!ad);if(ad){this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}}return this},enable:function(){return this._setOptions({disabled:false})},disable:function(){return this._setOptions({disabled:true})},_on:function(af,ae,ad){var ag,ac=this;if(typeof af!=="boolean"){ad=ae;ae=af;af=false}if(!ad){ad=ae;ae=this.element;ag=this.widget()}else{ae=ag=G(ae);this.bindings=this.bindings.add(ae)}G.each(ad,function(am,al){function aj(){if(!af&&(ac.options.disabled===true||G(this).hasClass("ui-state-disabled"))){return}return(typeof al==="string"?ac[al]:al).apply(ac,arguments)}if(typeof al!=="string"){aj.guid=al.guid=al.guid||aj.guid||G.guid++}var ak=am.match(/^([\w:-]*)\s*(.*)$/),ai=ak[1]+ac.eventNamespace,ah=ak[2];if(ah){ag.delegate(ah,ai,aj)}else{ae.bind(ai,aj)}})},_off:function(ad,ac){ac=(ac||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;ad.unbind(ac).undelegate(ac)},_delay:function(af,ae){function ad(){return(typeof af==="string"?ac[af]:af).apply(ac,arguments)}var ac=this;return setTimeout(ad,ae||0)},_hoverable:function(ac){this.hoverable=this.hoverable.add(ac);this._on(ac,{mouseenter:function(ad){G(ad.currentTarget).addClass("ui-state-hover")},mouseleave:function(ad){G(ad.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(ac){this.focusable=this.focusable.add(ac);this._on(ac,{focusin:function(ad){G(ad.currentTarget).addClass("ui-state-focus")},focusout:function(ad){G(ad.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(ac,ad,ae){var ah,ag,af=this.options[ac];ae=ae||{};ad=G.Event(ad);ad.type=(ac===this.widgetEventPrefix?ac:this.widgetEventPrefix+ac).toLowerCase();ad.target=this.element[0];ag=ad.originalEvent;if(ag){for(ah in ag){if(!(ah in ad)){ad[ah]=ag[ah]}}}this.element.trigger(ad,ae);return !(G.isFunction(af)&&af.apply(this.element[0],[ad].concat(ae))===false||ad.isDefaultPrevented())}};G.each({show:"fadeIn",hide:"fadeOut"},function(ad,ac){G.Widget.prototype["_"+ad]=function(ag,af,ai){if(typeof af==="string"){af={effect:af}}var ah,ae=!af?ad:af===true||typeof af==="number"?ac:af.effect||ac;af=af||{};if(typeof af==="number"){af={duration:af}}ah=!G.isEmptyObject(af);af.complete=ai;if(af.delay){ag.delay(af.delay)}if(ah&&G.effects&&G.effects.effect[ae]){ag[ad](af)}else{if(ae!==ad&&ag[ae]){ag[ae](af.duration,af.easing,ai)}else{ag.queue(function(aj){G(this)[ad]();if(ai){ai.call(ag[0])}aj()})}}}});var H=G.widget;
/*!
 * jQuery UI Mouse 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/mouse/
 */
;var b=false;G(document).mouseup(function(){b=false});var E=G.widget("ui.mouse",{version:"1.11.0",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var ac=this;this.element.bind("mousedown."+this.widgetName,function(ad){return ac._mouseDown(ad)}).bind("click."+this.widgetName,function(ad){if(true===G.data(ad.target,ac.widgetName+".preventClickEvent")){G.removeData(ad.target,ac.widgetName+".preventClickEvent");ad.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(ae){if(b){return}(this._mouseStarted&&this._mouseUp(ae));this._mouseDownEvent=ae;var ad=this,af=(ae.which===1),ac=(typeof this.options.cancel==="string"&&ae.target.nodeName?G(ae.target).closest(this.options.cancel).length:false);if(!af||ac||!this._mouseCapture(ae)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){ad.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(ae)&&this._mouseDelayMet(ae)){this._mouseStarted=(this._mouseStart(ae)!==false);if(!this._mouseStarted){ae.preventDefault();return true}}if(true===G.data(ae.target,this.widgetName+".preventClickEvent")){G.removeData(ae.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(ag){return ad._mouseMove(ag)};this._mouseUpDelegate=function(ag){return ad._mouseUp(ag)};this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);ae.preventDefault();b=true;return true},_mouseMove:function(ac){if(G.ui.ie&&(!document.documentMode||document.documentMode<9)&&!ac.button){return this._mouseUp(ac)}else{if(!ac.which){return this._mouseUp(ac)}}if(this._mouseStarted){this._mouseDrag(ac);return ac.preventDefault()}if(this._mouseDistanceMet(ac)&&this._mouseDelayMet(ac)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,ac)!==false);(this._mouseStarted?this._mouseDrag(ac):this._mouseUp(ac))}return !this._mouseStarted},_mouseUp:function(ac){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(ac.target===this._mouseDownEvent.target){G.data(ac.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(ac)}b=false;return false},_mouseDistanceMet:function(ac){return(Math.max(Math.abs(this._mouseDownEvent.pageX-ac.pageX),Math.abs(this._mouseDownEvent.pageY-ac.pageY))>=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});
/*!
 * jQuery UI Position 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
(function(){G.ui=G.ui||{};var aj,am,ak=Math.max,ap=Math.abs,an=Math.round,ae=/left|center|right/,ah=/top|center|bottom/,ac=/[\+\-]\d+(\.[\d]+)?%?/,al=/^\w+/,ad=/%$/,ag=G.fn.position;function ao(at,ar,aq){return[parseFloat(at[0])*(ad.test(at[0])?ar/100:1),parseFloat(at[1])*(ad.test(at[1])?aq/100:1)]}function ai(aq,ar){return parseInt(G.css(aq,ar),10)||0}function af(ar){var aq=ar[0];if(aq.nodeType===9){return{width:ar.width(),height:ar.height(),offset:{top:0,left:0}}}if(G.isWindow(aq)){return{width:ar.width(),height:ar.height(),offset:{top:ar.scrollTop(),left:ar.scrollLeft()}}}if(aq.preventDefault){return{width:0,height:0,offset:{top:aq.pageY,left:aq.pageX}}}return{width:ar.outerWidth(),height:ar.outerHeight(),offset:ar.offset()}}G.position={scrollbarWidth:function(){if(aj!==undefined){return aj}var ar,aq,au=G("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),at=au.children()[0];G("body").append(au);ar=at.offsetWidth;au.css("overflow","scroll");aq=at.offsetWidth;if(ar===aq){aq=au[0].clientWidth}au.remove();return(aj=ar-aq)},getScrollInfo:function(av){var au=av.isWindow||av.isDocument?"":av.element.css("overflow-x"),at=av.isWindow||av.isDocument?"":av.element.css("overflow-y"),ar=au==="scroll"||(au==="auto"&&av.width<av.element[0].scrollWidth),aq=at==="scroll"||(at==="auto"&&av.height<av.element[0].scrollHeight);return{width:aq?G.position.scrollbarWidth():0,height:ar?G.position.scrollbarWidth():0}},getWithinInfo:function(ar){var at=G(ar||window),aq=G.isWindow(at[0]),au=!!at[0]&&at[0].nodeType===9;return{element:at,isWindow:aq,isDocument:au,offset:at.offset()||{left:0,top:0},scrollLeft:at.scrollLeft(),scrollTop:at.scrollTop(),width:aq?at.width():at.outerWidth(),height:aq?at.height():at.outerHeight()}}};G.fn.position=function(aB){if(!aB||!aB.of){return ag.apply(this,arguments)}aB=G.extend({},aB);var aC,ay,aw,aA,av,aq,ax=G(aB.of),au=G.position.getWithinInfo(aB.within),ar=G.position.getScrollInfo(au),az=(aB.collision||"flip").split(" "),at={};aq=af(ax);if(ax[0].preventDefault){aB.at="left top"}ay=aq.width;aw=aq.height;aA=aq.offset;av=G.extend({},aA);G.each(["my","at"],function(){var aF=(aB[this]||"").split(" "),aE,aD;if(aF.length===1){aF=ae.test(aF[0])?aF.concat(["center"]):ah.test(aF[0])?["center"].concat(aF):["center","center"]}aF[0]=ae.test(aF[0])?aF[0]:"center";aF[1]=ah.test(aF[1])?aF[1]:"center";aE=ac.exec(aF[0]);aD=ac.exec(aF[1]);at[this]=[aE?aE[0]:0,aD?aD[0]:0];aB[this]=[al.exec(aF[0])[0],al.exec(aF[1])[0]]});if(az.length===1){az[1]=az[0]}if(aB.at[0]==="right"){av.left+=ay}else{if(aB.at[0]==="center"){av.left+=ay/2}}if(aB.at[1]==="bottom"){av.top+=aw}else{if(aB.at[1]==="center"){av.top+=aw/2}}aC=ao(at.at,ay,aw);av.left+=aC[0];av.top+=aC[1];return this.each(function(){var aE,aN,aG=G(this),aI=aG.outerWidth(),aF=aG.outerHeight(),aH=ai(this,"marginLeft"),aD=ai(this,"marginTop"),aM=aI+aH+ai(this,"marginRight")+ar.width,aL=aF+aD+ai(this,"marginBottom")+ar.height,aJ=G.extend({},av),aK=ao(at.my,aG.outerWidth(),aG.outerHeight());if(aB.my[0]==="right"){aJ.left-=aI}else{if(aB.my[0]==="center"){aJ.left-=aI/2}}if(aB.my[1]==="bottom"){aJ.top-=aF}else{if(aB.my[1]==="center"){aJ.top-=aF/2}}aJ.left+=aK[0];aJ.top+=aK[1];if(!am){aJ.left=an(aJ.left);aJ.top=an(aJ.top)}aE={marginLeft:aH,marginTop:aD};G.each(["left","top"],function(aP,aO){if(G.ui.position[az[aP]]){G.ui.position[az[aP]][aO](aJ,{targetWidth:ay,targetHeight:aw,elemWidth:aI,elemHeight:aF,collisionPosition:aE,collisionWidth:aM,collisionHeight:aL,offset:[aC[0]+aK[0],aC[1]+aK[1]],my:aB.my,at:aB.at,within:au,elem:aG})}});if(aB.using){aN=function(aR){var aT=aA.left-aJ.left,aQ=aT+ay-aI,aS=aA.top-aJ.top,aP=aS+aw-aF,aO={target:{element:ax,left:aA.left,top:aA.top,width:ay,height:aw},element:{element:aG,left:aJ.left,top:aJ.top,width:aI,height:aF},horizontal:aQ<0?"left":aT>0?"right":"center",vertical:aP<0?"top":aS>0?"bottom":"middle"};if(ay<aI&&ap(aT+aQ)<ay){aO.horizontal="center"}if(aw<aF&&ap(aS+aP)<aw){aO.vertical="middle"}if(ak(ap(aT),ap(aQ))>ak(ap(aS),ap(aP))){aO.important="horizontal"}else{aO.important="vertical"}aB.using.call(this,aR,aO)}}aG.offset(G.extend(aJ,{using:aN}))})};G.ui.position={fit:{left:function(av,au){var at=au.within,ax=at.isWindow?at.scrollLeft:at.offset.left,az=at.width,aw=av.left-au.collisionPosition.marginLeft,ay=ax-aw,ar=aw+au.collisionWidth-az-ax,aq;if(au.collisionWidth>az){if(ay>0&&ar<=0){aq=av.left+ay+au.collisionWidth-az-ax;av.left+=ay-aq}else{if(ar>0&&ay<=0){av.left=ax}else{if(ay>ar){av.left=ax+az-au.collisionWidth}else{av.left=ax}}}}else{if(ay>0){av.left+=ay}else{if(ar>0){av.left-=ar}else{av.left=ak(av.left-aw,av.left)}}}},top:function(au,at){var ar=at.within,ay=ar.isWindow?ar.scrollTop:ar.offset.top,az=at.within.height,aw=au.top-at.collisionPosition.marginTop,ax=ay-aw,av=aw+at.collisionHeight-az-ay,aq;if(at.collisionHeight>az){if(ax>0&&av<=0){aq=au.top+ax+at.collisionHeight-az-ay;au.top+=ax-aq}else{if(av>0&&ax<=0){au.top=ay}else{if(ax>av){au.top=ay+az-at.collisionHeight}else{au.top=ay}}}}else{if(ax>0){au.top+=ax}else{if(av>0){au.top-=av}else{au.top=ak(au.top-aw,au.top)}}}}},flip:{left:function(ax,aw){var av=aw.within,aB=av.offset.left+av.scrollLeft,aE=av.width,at=av.isWindow?av.scrollLeft:av.offset.left,ay=ax.left-aw.collisionPosition.marginLeft,aC=ay-at,ar=ay+aw.collisionWidth-aE-at,aA=aw.my[0]==="left"?-aw.elemWidth:aw.my[0]==="right"?aw.elemWidth:0,aD=aw.at[0]==="left"?aw.targetWidth:aw.at[0]==="right"?-aw.targetWidth:0,au=-2*aw.offset[0],aq,az;if(aC<0){aq=ax.left+aA+aD+au+aw.collisionWidth-aE-aB;if(aq<0||aq<ap(aC)){ax.left+=aA+aD+au}}else{if(ar>0){az=ax.left-aw.collisionPosition.marginLeft+aA+aD+au-at;if(az>0||ap(az)<ar){ax.left+=aA+aD+au}}}},top:function(aw,av){var au=av.within,aD=au.offset.top+au.scrollTop,aE=au.height,aq=au.isWindow?au.scrollTop:au.offset.top,ay=aw.top-av.collisionPosition.marginTop,aA=ay-aq,ax=ay+av.collisionHeight-aE-aq,aB=av.my[1]==="top",az=aB?-av.elemHeight:av.my[1]==="bottom"?av.elemHeight:0,aF=av.at[1]==="top"?av.targetHeight:av.at[1]==="bottom"?-av.targetHeight:0,at=-2*av.offset[1],aC,ar;if(aA<0){ar=aw.top+az+aF+at+av.collisionHeight-aE-aD;if((aw.top+az+aF+at)>aA&&(ar<0||ar<ap(aA))){aw.top+=az+aF+at}}else{if(ax>0){aC=aw.top-av.collisionPosition.marginTop+az+aF+at-aq;if((aw.top+az+aF+at)>ax&&(aC>0||ap(aC)<ax)){aw.top+=az+aF+at}}}}},flipfit:{left:function(){G.ui.position.flip.left.apply(this,arguments);G.ui.position.fit.left.apply(this,arguments)},top:function(){G.ui.position.flip.top.apply(this,arguments);G.ui.position.fit.top.apply(this,arguments)}}};(function(){var av,ax,ar,au,at,aq=document.getElementsByTagName("body")[0],aw=document.createElement("div");av=document.createElement(aq?"div":"body");ar={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(aq){G.extend(ar,{position:"absolute",left:"-1000px",top:"-1000px"})}for(at in ar){av.style[at]=ar[at]}av.appendChild(aw);ax=aq||document.documentElement;ax.insertBefore(av,ax.firstChild);aw.style.cssText="position: absolute; left: 10.7432222px;";au=G(aw).offset().left;am=au>10&&au<11;av.innerHTML="";ax.removeChild(av)})()})();var N=G.ui.position;
/*!
 * jQuery UI Accordion 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/accordion/
 */
;var ab=G.widget("ui.accordion",{version:"1.11.0",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var ac=this.options;this.prevShow=this.prevHide=G();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");if(!ac.collapsible&&(ac.active===false||ac.active==null)){ac.active=0}this._processPanels();if(ac.active<0){ac.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?G():this.active.next()}},_createIcons:function(){var ac=this.options.icons;if(ac){G("<span>").addClass("ui-accordion-header-icon ui-icon "+ac.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(ac.header).addClass(ac.activeHeader);this.headers.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var ac;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId();this._destroyIcons();ac=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId();if(this.options.heightStyle!=="content"){ac.css("height","")}},_setOption:function(ac,ad){if(ac==="active"){this._activate(ad);return}if(ac==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(ad)}this._super(ac,ad);if(ac==="collapsible"&&!ad&&this.options.active===false){this._activate(0)}if(ac==="icons"){this._destroyIcons();if(ad){this._createIcons()}}if(ac==="disabled"){this.element.toggleClass("ui-state-disabled",!!ad).attr("aria-disabled",ad);this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!ad)}},_keydown:function(af){if(af.altKey||af.ctrlKey){return}var ag=G.ui.keyCode,ae=this.headers.length,ac=this.headers.index(af.target),ad=false;switch(af.keyCode){case ag.RIGHT:case ag.DOWN:ad=this.headers[(ac+1)%ae];break;case ag.LEFT:case ag.UP:ad=this.headers[(ac-1+ae)%ae];break;case ag.SPACE:case ag.ENTER:this._eventHandler(af);break;case ag.HOME:ad=this.headers[0];break;case ag.END:ad=this.headers[ae-1];break}if(ad){G(af.target).attr("tabIndex",-1);G(ad).attr("tabIndex",0);ad.focus();af.preventDefault()}},_panelKeyDown:function(ac){if(ac.keyCode===G.ui.keyCode.UP&&ac.ctrlKey){G(ac.currentTarget).prev().focus()}},refresh:function(){var ac=this.options;this._processPanels();if((ac.active===false&&ac.collapsible===true)||!this.headers.length){ac.active=false;this.active=G()}else{if(ac.active===false){this._activate(0)}else{if(this.active.length&&!G.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".ui-state-disabled").length){ac.active=false;this.active=G()}else{this._activate(Math.max(0,ac.active-1))}}else{ac.active=this.headers.index(this.active)}}}this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all");this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var af,ad=this.options,ac=ad.heightStyle,ae=this.element.parent();this.active=this._findActive(ad.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(){var aj=G(this),ai=aj.uniqueId().attr("id"),ag=aj.next(),ah=ag.uniqueId().attr("id");aj.attr("aria-controls",ah);ag.attr("aria-labelledby",ai)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"})}this._createIcons();this._setupEvents(ad.event);if(ac==="fill"){af=ae.height();this.element.siblings(":visible").each(function(){var ah=G(this),ag=ah.css("position");if(ag==="absolute"||ag==="fixed"){return}af-=ah.outerHeight(true)});this.headers.each(function(){af-=G(this).outerHeight(true)});this.headers.next().each(function(){G(this).height(Math.max(0,af-G(this).innerHeight()+G(this).height()))}).css("overflow","auto")}else{if(ac==="auto"){af=0;this.headers.next().each(function(){af=Math.max(af,G(this).css("height","").height())}).height(af)}}},_activate:function(ac){var ad=this._findActive(ac)[0];if(ad===this.active[0]){return}ad=ad||this.active[0];this._eventHandler({target:ad,currentTarget:ad,preventDefault:G.noop})},_findActive:function(ac){return typeof ac==="number"?this.headers.eq(ac):G()},_setupEvents:function(ad){var ac={keydown:"_keydown"};if(ad){G.each(ad.split(" "),function(af,ae){ac[ae]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,ac);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(ac){var ak=this.options,af=this.active,ag=G(ac.currentTarget),ai=ag[0]===af[0],ad=ai&&ak.collapsible,ae=ad?G():ag.next(),ah=af.next(),aj={oldHeader:af,oldPanel:ah,newHeader:ad?G():ag,newPanel:ae};ac.preventDefault();if((ai&&!ak.collapsible)||(this._trigger("beforeActivate",ac,aj)===false)){return}ak.active=ad?false:this.headers.index(ag);this.active=ai?G():ag;this._toggle(aj);af.removeClass("ui-accordion-header-active ui-state-active");if(ak.icons){af.children(".ui-accordion-header-icon").removeClass(ak.icons.activeHeader).addClass(ak.icons.header)}if(!ai){ag.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");if(ak.icons){ag.children(".ui-accordion-header-icon").removeClass(ak.icons.header).addClass(ak.icons.activeHeader)}ag.next().addClass("ui-accordion-content-active")}},_toggle:function(ae){var ac=ae.newPanel,ad=this.prevShow.length?this.prevShow:ae.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=ac;this.prevHide=ad;if(this.options.animate){this._animate(ac,ad,ae)}else{ad.hide();ac.show();this._toggleComplete(ae)}ad.attr({"aria-hidden":"true"});ad.prev().attr("aria-selected","false");if(ac.length&&ad.length){ad.prev().attr({tabIndex:-1,"aria-expanded":"false"})}else{if(ac.length){this.headers.filter(function(){return G(this).attr("tabIndex")===0}).attr("tabIndex",-1)}}ac.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(ac,ak,ag){var aj,ai,af,ah=this,al=0,am=ac.length&&(!ak.length||(ac.index()<ak.index())),ae=this.options.animate||{},an=am&&ae.down||ae,ad=function(){ah._toggleComplete(ag)};if(typeof an==="number"){af=an}if(typeof an==="string"){ai=an}ai=ai||an.easing||ae.easing;af=af||an.duration||ae.duration;if(!ak.length){return ac.animate(this.showProps,af,ai,ad)}if(!ac.length){return ak.animate(this.hideProps,af,ai,ad)}aj=ac.show().outerHeight();ak.animate(this.hideProps,{duration:af,easing:ai,step:function(ao,ap){ap.now=Math.round(ao)}});ac.hide().animate(this.showProps,{duration:af,easing:ai,complete:ad,step:function(ao,ap){ap.now=Math.round(ao);if(ap.prop!=="height"){al+=ap.now}else{if(ah.options.heightStyle!=="content"){ap.now=Math.round(aj-ak.outerHeight()-al);al=0}}}})},_toggleComplete:function(ad){var ac=ad.oldPanel;ac.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");if(ac.length){ac.parent()[0].className=ac.parent()[0].className}this._trigger("activate",null,ad)}});
/*!
 * jQuery UI Menu 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/menu/
 */
;var Y=G.widget("ui.menu",{version:"1.11.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0});if(this.options.disabled){this.element.addClass("ui-state-disabled").attr("aria-disabled","true")}this._on({"mousedown .ui-menu-item":function(ac){ac.preventDefault()},"click .ui-menu-item":function(ac){var ad=G(ac.target);if(!this.mouseHandled&&ad.not(".ui-state-disabled").length){this.select(ac);if(!ac.isPropagationStopped()){this.mouseHandled=true}if(ad.has(".ui-menu").length){this.expand(ac)}else{if(!this.element.is(":focus")&&G(this.document[0].activeElement).closest(".ui-menu").length){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".ui-menu").length===1){clearTimeout(this.timer)}}}}},"mouseenter .ui-menu-item":function(ac){var ad=G(ac.currentTarget);ad.siblings(".ui-state-active").removeClass("ui-state-active");this.focus(ac,ad)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(ae,ac){var ad=this.active||this.element.find(this.options.items).eq(0);if(!ac){this.focus(ae,ad)}},blur:function(ac){this._delay(function(){if(!G.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(ac)}})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(ac){if(this._closeOnDocumentClick(ac)){this.collapseAll(ac)}this.mouseHandled=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var ac=G(this);if(ac.data("ui-menu-submenu-carat")){ac.remove()}});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(ai){var ad,ah,aj,ag,af,ac=true;function ae(ak){return ak.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(ai.keyCode){case G.ui.keyCode.PAGE_UP:this.previousPage(ai);break;case G.ui.keyCode.PAGE_DOWN:this.nextPage(ai);break;case G.ui.keyCode.HOME:this._move("first","first",ai);break;case G.ui.keyCode.END:this._move("last","last",ai);break;case G.ui.keyCode.UP:this.previous(ai);break;case G.ui.keyCode.DOWN:this.next(ai);break;case G.ui.keyCode.LEFT:this.collapse(ai);break;case G.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled")){this.expand(ai)}break;case G.ui.keyCode.ENTER:case G.ui.keyCode.SPACE:this._activate(ai);break;case G.ui.keyCode.ESCAPE:this.collapse(ai);break;default:ac=false;ah=this.previousFilter||"";aj=String.fromCharCode(ai.keyCode);ag=false;clearTimeout(this.filterTimer);if(aj===ah){ag=true}else{aj=ah+aj}af=new RegExp("^"+ae(aj),"i");ad=this.activeMenu.find(this.options.items).filter(function(){return af.test(G(this).text())});ad=ag&&ad.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):ad;if(!ad.length){aj=String.fromCharCode(ai.keyCode);af=new RegExp("^"+ae(aj),"i");ad=this.activeMenu.find(this.options.items).filter(function(){return af.test(G(this).text())})}if(ad.length){this.focus(ai,ad);if(ad.length>1){this.previousFilter=aj;this.filterTimer=this._delay(function(){delete this.previousFilter},1000)}else{delete this.previousFilter}}else{delete this.previousFilter}}if(ac){ai.preventDefault()}},_activate:function(ac){if(!this.active.is(".ui-state-disabled")){if(this.active.is("[aria-haspopup='true']")){this.expand(ac)}else{this.select(ac)}}},refresh:function(){var ag,ad,af=this,ae=this.options.icons.submenu,ac=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length);ac.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var aj=G(this),ai=aj.parent(),ah=G("<span>").addClass("ui-menu-icon ui-icon "+ae).data("ui-menu-submenu-carat",true);ai.attr("aria-haspopup","true").prepend(ah);aj.attr("aria-labelledby",ai.attr("id"))});ag=ac.add(this.element);ad=ag.find(this.options.items);ad.not(".ui-menu-item").each(function(){var ah=G(this);if(af._isDivider(ah)){ah.addClass("ui-widget-content ui-menu-divider")}});ad.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()});ad.filter(".ui-state-disabled").attr("aria-disabled","true");if(this.active&&!G.contains(this.element[0],this.active[0])){this.blur()}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(ac,ad){if(ac==="icons"){this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(ad.submenu)}if(ac==="disabled"){this.element.toggleClass("ui-state-disabled",!!ad).attr("aria-disabled",ad)}this._super(ac,ad)},focus:function(ad,ac){var af,ae;this.blur(ad,ad&&ad.type==="focus");this._scrollIntoView(ac);this.active=ac.first();ae=this.active.addClass("ui-state-focus").removeClass("ui-state-active");if(this.options.role){this.element.attr("aria-activedescendant",ae.attr("id"))}this.active.parent().closest(".ui-menu-item").addClass("ui-state-active");if(ad&&ad.type==="keydown"){this._close()}else{this.timer=this._delay(function(){this._close()},this.delay)}af=ac.children(".ui-menu");if(af.length&&ad&&(/^mouse/.test(ad.type))){this._startOpening(af)}this.activeMenu=ac.parent();this._trigger("focus",ad,{item:ac})},_scrollIntoView:function(af){var ai,ae,ag,ac,ad,ah;if(this._hasScroll()){ai=parseFloat(G.css(this.activeMenu[0],"borderTopWidth"))||0;ae=parseFloat(G.css(this.activeMenu[0],"paddingTop"))||0;ag=af.offset().top-this.activeMenu.offset().top-ai-ae;ac=this.activeMenu.scrollTop();ad=this.activeMenu.height();ah=af.outerHeight();if(ag<0){this.activeMenu.scrollTop(ac+ag)}else{if(ag+ah>ad){this.activeMenu.scrollTop(ac+ag-ad+ah)}}}},blur:function(ad,ac){if(!ac){clearTimeout(this.timer)}if(!this.active){return}this.active.removeClass("ui-state-focus");this.active=null;this._trigger("blur",ad,{item:this.active})},_startOpening:function(ac){clearTimeout(this.timer);if(ac.attr("aria-hidden")!=="true"){return}this.timer=this._delay(function(){this._close();this._open(ac)},this.delay)},_open:function(ad){var ac=G.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(ad.parents(".ui-menu")).hide().attr("aria-hidden","true");ad.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(ac)},collapseAll:function(ad,ac){clearTimeout(this.timer);this.timer=this._delay(function(){var ae=ac?this.element:G(ad&&ad.target).closest(this.element.find(".ui-menu"));if(!ae.length){ae=this.element}this._close(ae);this.blur(ad);this.activeMenu=ae},this.delay)},_close:function(ac){if(!ac){ac=this.active?this.active.parent():this.element}ac.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(ac){return !G(ac.target).closest(".ui-menu").length},_isDivider:function(ac){return !/[^\-\u2014\u2013\s]/.test(ac.text())},collapse:function(ad){var ac=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(ac&&ac.length){this._close();this.focus(ad,ac)}},expand:function(ad){var ac=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();if(ac&&ac.length){this._open(ac.parent());this._delay(function(){this.focus(ad,ac)})}},next:function(ac){this._move("next","first",ac)},previous:function(ac){this._move("prev","last",ac)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(af,ad,ae){var ac;if(this.active){if(af==="first"||af==="last"){ac=this.active[af==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1)}else{ac=this.active[af+"All"](".ui-menu-item").eq(0)}}if(!ac||!ac.length||!this.active){ac=this.activeMenu.find(this.options.items)[ad]()}this.focus(ae,ac)},nextPage:function(ae){var ad,af,ac;if(!this.active){this.next(ae);return}if(this.isLastItem()){return}if(this._hasScroll()){af=this.active.offset().top;ac=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){ad=G(this);return ad.offset().top-af-ac<0});this.focus(ae,ad)}else{this.focus(ae,this.activeMenu.find(this.options.items)[!this.active?"first":"last"]())}},previousPage:function(ae){var ad,af,ac;if(!this.active){this.next(ae);return}if(this.isFirstItem()){return}if(this._hasScroll()){af=this.active.offset().top;ac=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){ad=G(this);return ad.offset().top-af+ac>0});this.focus(ae,ad)}else{this.focus(ae,this.activeMenu.find(this.options.items).first())}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(ac){this.active=this.active||G(ac.target).closest(".ui-menu-item");var ad={item:this.active};if(!this.active.has(".ui-menu").length){this.collapseAll(ac,true)}this._trigger("select",ac,ad)}});
/*!
 * jQuery UI Autocomplete 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/autocomplete/
 */
;G.widget("ui.autocomplete",{version:"1.11.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var ae,ac,af,ah=this.element[0].nodeName.toLowerCase(),ag=ah==="textarea",ad=ah==="input";this.isMultiLine=ag?true:ad?false:this.element.prop("isContentEditable");this.valueMethod=this.element[ag||ad?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(ai){if(this.element.prop("readOnly")){ae=true;af=true;ac=true;return}ae=false;af=false;ac=false;var aj=G.ui.keyCode;switch(ai.keyCode){case aj.PAGE_UP:ae=true;this._move("previousPage",ai);break;case aj.PAGE_DOWN:ae=true;this._move("nextPage",ai);break;case aj.UP:ae=true;this._keyEvent("previous",ai);break;case aj.DOWN:ae=true;this._keyEvent("next",ai);break;case aj.ENTER:if(this.menu.active){ae=true;ai.preventDefault();this.menu.select(ai)}break;case aj.TAB:if(this.menu.active){this.menu.select(ai)}break;case aj.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(ai);ai.preventDefault()}break;default:ac=true;this._searchTimeout(ai);break}},keypress:function(ai){if(ae){ae=false;if(!this.isMultiLine||this.menu.element.is(":visible")){ai.preventDefault()}return}if(ac){return}var aj=G.ui.keyCode;switch(ai.keyCode){case aj.PAGE_UP:this._move("previousPage",ai);break;case aj.PAGE_DOWN:this._move("nextPage",ai);break;case aj.UP:this._keyEvent("previous",ai);break;case aj.DOWN:this._keyEvent("next",ai);break}},input:function(ai){if(af){af=false;ai.preventDefault();return}this._searchTimeout(ai)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(ai){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(ai);this._change(ai)}});this._initSource();this.menu=G("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._on(this.menu.element,{mousedown:function(ai){ai.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});var aj=this.menu.element[0];if(!G(ai.target).closest(".ui-menu-item").length){this._delay(function(){var ak=this;this.document.one("mousedown",function(al){if(al.target!==ak.element[0]&&al.target!==aj&&!G.contains(aj,al.target)){ak.close()}})})}},menufocus:function(ak,al){var ai,aj;if(this.isNewMenu){this.isNewMenu=false;if(ak.originalEvent&&/^mouse/.test(ak.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){G(ak.target).trigger(ak.originalEvent)});return}}aj=al.item.data("ui-autocomplete-item");if(false!==this._trigger("focus",ak,{item:aj})){if(ak.originalEvent&&/^key/.test(ak.originalEvent.type)){this._value(aj.value)}}ai=al.item.attr("aria-label")||aj.value;if(ai&&jQuery.trim(ai).length){this.liveRegion.children().hide();G("<div>").text(ai).appendTo(this.liveRegion)}},menuselect:function(ak,al){var aj=al.item.data("ui-autocomplete-item"),ai=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=ai;this._delay(function(){this.previous=ai;this.selectedItem=aj})}if(false!==this._trigger("select",ak,{item:aj})){this._value(aj.value)}this.term=this._value();this.close(ak);this.selectedItem=aj}});this.liveRegion=G("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(ac,ad){this._super(ac,ad);if(ac==="source"){this._initSource()}if(ac==="appendTo"){this.menu.element.appendTo(this._appendTo())}if(ac==="disabled"&&ad&&this.xhr){this.xhr.abort()}},_appendTo:function(){var ac=this.options.appendTo;if(ac){ac=ac.jquery||ac.nodeType?G(ac):this.document.find(ac).eq(0)}if(!ac||!ac[0]){ac=this.element.closest(".ui-front")}if(!ac.length){ac=this.document[0].body}return ac},_initSource:function(){var ae,ac,ad=this;if(G.isArray(this.options.source)){ae=this.options.source;this.source=function(ag,af){af(G.ui.autocomplete.filter(ae,ag.term))}}else{if(typeof this.options.source==="string"){ac=this.options.source;this.source=function(ag,af){if(ad.xhr){ad.xhr.abort()}ad.xhr=G.ajax({url:ac,data:ag,dataType:"json",success:function(ah){af(ah)},error:function(){af([])}})}}else{this.source=this.options.source}}},_searchTimeout:function(ac){clearTimeout(this.searching);this.searching=this._delay(function(){var ae=this.term===this._value(),ad=this.menu.element.is(":visible"),af=ac.altKey||ac.ctrlKey||ac.metaKey||ac.shiftKey;if(!ae||(ae&&!ad&&!af)){this.selectedItem=null;this.search(null,ac)}},this.options.delay)},search:function(ad,ac){ad=ad!=null?ad:this._value();this.term=this._value();if(ad.length<this.options.minLength){return this.close(ac)}if(this._trigger("search",ac)===false){return}return this._search(ad)},_search:function(ac){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:ac},this._response())},_response:function(){var ac=++this.requestIndex;return G.proxy(function(ad){if(ac===this.requestIndex){this.__response(ad)}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading")}},this)},__response:function(ac){if(ac){ac=this._normalize(ac)}this._trigger("response",null,{content:ac});if(!this.options.disabled&&ac&&ac.length&&!this.cancelSearch){this._suggest(ac);this._trigger("open")}else{this._close()}},close:function(ac){this.cancelSearch=true;this._close(ac)},_close:function(ac){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",ac)}},_change:function(ac){if(this.previous!==this._value()){this._trigger("change",ac,{item:this.selectedItem})}},_normalize:function(ac){if(ac.length&&ac[0].label&&ac[0].value){return ac}return G.map(ac,function(ad){if(typeof ad==="string"){return{label:ad,value:ad}}return G.extend({},ad,{label:ad.label||ad.value,value:ad.value||ad.label})})},_suggest:function(ac){var ad=this.menu.element.empty();this._renderMenu(ad,ac);this.isNewMenu=true;this.menu.refresh();ad.show();this._resizeMenu();ad.position(G.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next()}},_resizeMenu:function(){var ac=this.menu.element;ac.outerWidth(Math.max(ac.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(ad,ac){var ae=this;G.each(ac,function(af,ag){ae._renderItemData(ad,ag)})},_renderItemData:function(ac,ad){return this._renderItem(ac,ad).data("ui-autocomplete-item",ad)},_renderItem:function(ac,ad){return G("<li>").text(ad.label).appendTo(ac)},_move:function(ad,ac){if(!this.menu.element.is(":visible")){this.search(null,ac);return}if(this.menu.isFirstItem()&&/^previous/.test(ad)||this.menu.isLastItem()&&/^next/.test(ad)){if(!this.isMultiLine){this._value(this.term)}this.menu.blur();return}this.menu[ad](ac)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(ad,ac){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(ad,ac);ac.preventDefault()}}});G.extend(G.ui.autocomplete,{escapeRegex:function(ac){return ac.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(ae,ac){var ad=new RegExp(G.ui.autocomplete.escapeRegex(ac),"i");return G.grep(ae,function(af){return ad.test(af.label||af.value||af)})}});G.widget("ui.autocomplete",G.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(ac){return ac+(ac>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(ad){var ac;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return}if(ad&&ad.length){ac=this.options.messages.results(ad.length)}else{ac=this.options.messages.noResults}this.liveRegion.children().hide();G("<div>").text(ac).appendTo(this.liveRegion)}});var c=G.ui.autocomplete;
/*!
 * jQuery UI Button 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/button/
 */
;var q,W="ui-button ui-widget ui-state-default ui-corner-all",w="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",n=function(){var ac=G(this);setTimeout(function(){ac.find(":ui-button").button("refresh")},1)},x=function(ad){var ac=ad.name,ae=ad.form,af=G([]);if(ac){ac=ac.replace(/'/g,"\\'");if(ae){af=G(ae).find("[name='"+ac+"'][type=radio]")}else{af=G("[name='"+ac+"'][type=radio]",ad.ownerDocument).filter(function(){return !this.form})}}return af};G.widget("ui.button",{version:"1.11.0",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,n);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled")}else{this.element.prop("disabled",this.options.disabled)}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var ae=this,ac=this.options,af=this.type==="checkbox"||this.type==="radio",ad=!af?"ui-state-active":"";if(ac.label===null){ac.label=(this.type==="input"?this.buttonElement.val():this.buttonElement.html())}this._hoverable(this.buttonElement);this.buttonElement.addClass(W).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(ac.disabled){return}if(this===q){G(this).addClass("ui-state-active")}}).bind("mouseleave"+this.eventNamespace,function(){if(ac.disabled){return}G(this).removeClass(ad)}).bind("click"+this.eventNamespace,function(ag){if(ac.disabled){ag.preventDefault();ag.stopImmediatePropagation()}});this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});if(af){this.element.bind("change"+this.eventNamespace,function(){ae.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(ac.disabled){return false}})}else{if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(ac.disabled){return false}G(this).addClass("ui-state-active");ae.buttonElement.attr("aria-pressed","true");var ag=ae.element[0];x(ag).not(ag).map(function(){return G(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(ac.disabled){return false}G(this).addClass("ui-state-active");q=this;ae.document.one("mouseup",function(){q=null})}).bind("mouseup"+this.eventNamespace,function(){if(ac.disabled){return false}G(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(ag){if(ac.disabled){return false}if(ag.keyCode===G.ui.keyCode.SPACE||ag.keyCode===G.ui.keyCode.ENTER){G(this).addClass("ui-state-active")}}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){G(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(ag){if(ag.keyCode===G.ui.keyCode.SPACE){G(this).click()}})}}}this._setOption("disabled",ac.disabled);this._resetButton()},_determineButtonType:function(){var ac,ae,ad;if(this.element.is("[type=checkbox]")){this.type="checkbox"}else{if(this.element.is("[type=radio]")){this.type="radio"}else{if(this.element.is("input")){this.type="input"}else{this.type="button"}}}if(this.type==="checkbox"||this.type==="radio"){ac=this.element.parents().last();ae="label[for='"+this.element.attr("id")+"']";this.buttonElement=ac.find(ae);if(!this.buttonElement.length){ac=ac.length?ac.siblings():this.element.siblings();this.buttonElement=ac.filter(ae);if(!this.buttonElement.length){this.buttonElement=ac.find(ae)}}this.element.addClass("ui-helper-hidden-accessible");ad=this.element.is(":checked");if(ad){this.buttonElement.addClass("ui-state-active")}this.buttonElement.prop("aria-pressed",ad)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(W+" ui-state-active "+w).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}},_setOption:function(ac,ad){this._super(ac,ad);if(ac==="disabled"){this.widget().toggleClass("ui-state-disabled",!!ad);this.element.prop("disabled",!!ad);if(ad){if(this.type==="checkbox"||this.type==="radio"){this.buttonElement.removeClass("ui-state-focus")}else{this.buttonElement.removeClass("ui-state-focus ui-state-active")}}return}this._resetButton()},refresh:function(){var ac=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");if(ac!==this.options.disabled){this._setOption("disabled",ac)}if(this.type==="radio"){x(this.element[0]).each(function(){if(G(this).is(":checked")){G(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else{G(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}})}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var ag=this.buttonElement.removeClass(w),ae=G("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(ag.empty()).text(),ad=this.options.icons,ac=ad.primary&&ad.secondary,af=[];if(ad.primary||ad.secondary){if(this.options.text){af.push("ui-button-text-icon"+(ac?"s":(ad.primary?"-primary":"-secondary")))}if(ad.primary){ag.prepend("<span class='ui-button-icon-primary ui-icon "+ad.primary+"'></span>")}if(ad.secondary){ag.append("<span class='ui-button-icon-secondary ui-icon "+ad.secondary+"'></span>")}if(!this.options.text){af.push(ac?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){ag.attr("title",G.trim(ae))}}}else{af.push("ui-button-text-only")}ag.addClass(af.join(" "))}});G.widget("ui.buttonset",{version:"1.11.0",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(ac,ad){if(ac==="disabled"){this.buttons.button("option",ac,ad)}this._super(ac,ad)},refresh:function(){var ad=this.element.css("direction")==="rtl",ac=this.element.find(this.options.items),ae=ac.filter(":ui-button");ac.not(":ui-button").button();ae.button("refresh");this.buttons=ac.map(function(){return G(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(ad?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(ad?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return G(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});var p=G.ui.button;
/*!
 * jQuery UI Datepicker 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/datepicker/
 */
;G.extend(G.ui,{datepicker:{version:"1.11.0"}});var l;function r(ad){var ac,ae;while(ad.length&&ad[0]!==document){ac=ad.css("position");if(ac==="absolute"||ac==="relative"||ac==="fixed"){ae=parseInt(ad.css("zIndex"),10);if(!isNaN(ae)&&ae!==0){return ae}}ad=ad.parent()}return 0}function aa(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=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};G.extend(this._defaults,this.regional[""]);this.regional.en=G.extend(true,{},this.regional[""]);this.regional["en-US"]=G.extend(true,{},this.regional.en);this.dpDiv=h(G("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}G.extend(aa.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(ac){v(this._defaults,ac||{});return this},_attachDatepicker:function(af,ac){var ag,ae,ad;ag=af.nodeName.toLowerCase();ae=(ag==="div"||ag==="span");if(!af.id){this.uuid+=1;af.id="dp"+this.uuid}ad=this._newInst(G(af),ae);ad.settings=G.extend({},ac||{});if(ag==="input"){this._connectDatepicker(af,ad)}else{if(ae){this._inlineDatepicker(af,ad)}}},_newInst:function(ad,ac){var ae=ad[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:ae,input:ad,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:ac,dpDiv:(!ac?this.dpDiv:h(G("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))}},_connectDatepicker:function(ae,ad){var ac=G(ae);ad.append=G([]);ad.trigger=G([]);if(ac.hasClass(this.markerClassName)){return}this._attachments(ac,ad);ac.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(ad);G.data(ae,"datepicker",ad);if(ad.settings.disabled){this._disableDatepicker(ae)}},_attachments:function(ae,ah){var ad,ag,ac,ai=this._get(ah,"appendText"),af=this._get(ah,"isRTL");if(ah.append){ah.append.remove()}if(ai){ah.append=G("<span class='"+this._appendClass+"'>"+ai+"</span>");ae[af?"before":"after"](ah.append)}ae.unbind("focus",this._showDatepicker);if(ah.trigger){ah.trigger.remove()}ad=this._get(ah,"showOn");if(ad==="focus"||ad==="both"){ae.focus(this._showDatepicker)}if(ad==="button"||ad==="both"){ag=this._get(ah,"buttonText");ac=this._get(ah,"buttonImage");ah.trigger=G(this._get(ah,"buttonImageOnly")?G("<img/>").addClass(this._triggerClass).attr({src:ac,alt:ag,title:ag}):G("<button type='button'></button>").addClass(this._triggerClass).html(!ac?ag:G("<img/>").attr({src:ac,alt:ag,title:ag})));ae[af?"before":"after"](ah.trigger);ah.trigger.click(function(){if(G.datepicker._datepickerShowing&&G.datepicker._lastInput===ae[0]){G.datepicker._hideDatepicker()}else{if(G.datepicker._datepickerShowing&&G.datepicker._lastInput!==ae[0]){G.datepicker._hideDatepicker();G.datepicker._showDatepicker(ae[0])}else{G.datepicker._showDatepicker(ae[0])}}return false})}},_autoSize:function(ai){if(this._get(ai,"autoSize")&&!ai.inline){var af,ad,ae,ah,ag=new Date(2009,12-1,20),ac=this._get(ai,"dateFormat");if(ac.match(/[DM]/)){af=function(aj){ad=0;ae=0;for(ah=0;ah<aj.length;ah++){if(aj[ah].length>ad){ad=aj[ah].length;ae=ah}}return ae};ag.setMonth(af(this._get(ai,(ac.match(/MM/)?"monthNames":"monthNamesShort"))));ag.setDate(af(this._get(ai,(ac.match(/DD/)?"dayNames":"dayNamesShort")))+20-ag.getDay())}ai.input.attr("size",this._formatDate(ai,ag).length)}},_inlineDatepicker:function(ad,ac){var ae=G(ad);if(ae.hasClass(this.markerClassName)){return}ae.addClass(this.markerClassName).append(ac.dpDiv);G.data(ad,"datepicker",ac);this._setDate(ac,this._getDefaultDate(ac),true);this._updateDatepicker(ac);this._updateAlternate(ac);if(ac.settings.disabled){this._disableDatepicker(ad)}ac.dpDiv.css("display","block")},_dialogDatepicker:function(aj,ad,ah,ae,ai){var ac,am,ag,al,ak,af=this._dialogInst;if(!af){this.uuid+=1;ac="dp"+this.uuid;this._dialogInput=G("<input type='text' id='"+ac+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.keydown(this._doKeyDown);G("body").append(this._dialogInput);af=this._dialogInst=this._newInst(this._dialogInput,false);af.settings={};G.data(this._dialogInput[0],"datepicker",af)}v(af.settings,ae||{});ad=(ad&&ad.constructor===Date?this._formatDate(af,ad):ad);this._dialogInput.val(ad);this._pos=(ai?(ai.length?ai:[ai.pageX,ai.pageY]):null);if(!this._pos){am=document.documentElement.clientWidth;ag=document.documentElement.clientHeight;al=document.documentElement.scrollLeft||document.body.scrollLeft;ak=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(am/2)-100+al,(ag/2)-150+ak]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");af.settings.onSelect=ah;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if(G.blockUI){G.blockUI(this.dpDiv)}G.data(this._dialogInput[0],"datepicker",af);return this},_destroyDatepicker:function(ae){var af,ac=G(ae),ad=G.data(ae,"datepicker");if(!ac.hasClass(this.markerClassName)){return}af=ae.nodeName.toLowerCase();G.removeData(ae,"datepicker");if(af==="input"){ad.append.remove();ad.trigger.remove();ac.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(af==="div"||af==="span"){ac.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(af){var ag,ae,ac=G(af),ad=G.data(af,"datepicker");if(!ac.hasClass(this.markerClassName)){return}ag=af.nodeName.toLowerCase();if(ag==="input"){af.disabled=false;ad.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(ag==="div"||ag==="span"){ae=ac.children("."+this._inlineClass);ae.children().removeClass("ui-state-disabled");ae.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}}this._disabledInputs=G.map(this._disabledInputs,function(ah){return(ah===af?null:ah)})},_disableDatepicker:function(af){var ag,ae,ac=G(af),ad=G.data(af,"datepicker");if(!ac.hasClass(this.markerClassName)){return}ag=af.nodeName.toLowerCase();if(ag==="input"){af.disabled=true;ad.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(ag==="div"||ag==="span"){ae=ac.children("."+this._inlineClass);ae.children().addClass("ui-state-disabled");ae.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}}this._disabledInputs=G.map(this._disabledInputs,function(ah){return(ah===af?null:ah)});this._disabledInputs[this._disabledInputs.length]=af},_isDisabledDatepicker:function(ad){if(!ad){return false}for(var ac=0;ac<this._disabledInputs.length;ac++){if(this._disabledInputs[ac]===ad){return true}}return false},_getInst:function(ad){try{return G.data(ad,"datepicker")}catch(ac){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(ai,ad,ah){var ae,ac,ag,aj,af=this._getInst(ai);if(arguments.length===2&&typeof ad==="string"){return(ad==="defaults"?G.extend({},G.datepicker._defaults):(af?(ad==="all"?G.extend({},af.settings):this._get(af,ad)):null))}ae=ad||{};if(typeof ad==="string"){ae={};ae[ad]=ah}if(af){if(this._curInst===af){this._hideDatepicker()}ac=this._getDateDatepicker(ai,true);ag=this._getMinMaxDate(af,"min");aj=this._getMinMaxDate(af,"max");v(af.settings,ae);if(ag!==null&&ae.dateFormat!==undefined&&ae.minDate===undefined){af.settings.minDate=this._formatDate(af,ag)}if(aj!==null&&ae.dateFormat!==undefined&&ae.maxDate===undefined){af.settings.maxDate=this._formatDate(af,aj)}if("disabled" in ae){if(ae.disabled){this._disableDatepicker(ai)}else{this._enableDatepicker(ai)}}this._attachments(G(ai),af);this._autoSize(af);this._setDate(af,ac);this._updateAlternate(af);this._updateDatepicker(af)}},_changeDatepicker:function(ae,ac,ad){this._optionDatepicker(ae,ac,ad)},_refreshDatepicker:function(ad){var ac=this._getInst(ad);if(ac){this._updateDatepicker(ac)}},_setDateDatepicker:function(ae,ac){var ad=this._getInst(ae);if(ad){this._setDate(ad,ac);this._updateDatepicker(ad);this._updateAlternate(ad)}},_getDateDatepicker:function(ae,ac){var ad=this._getInst(ae);if(ad&&!ad.inline){this._setDateFromField(ad,ac)}return(ad?this._getDate(ad):null)},_doKeyDown:function(af){var ad,ac,ah,ag=G.datepicker._getInst(af.target),ai=true,ae=ag.dpDiv.is(".ui-datepicker-rtl");ag._keyEvent=true;if(G.datepicker._datepickerShowing){switch(af.keyCode){case 9:G.datepicker._hideDatepicker();ai=false;break;case 13:ah=G("td."+G.datepicker._dayOverClass+":not(."+G.datepicker._currentClass+")",ag.dpDiv);if(ah[0]){G.datepicker._selectDay(af.target,ag.selectedMonth,ag.selectedYear,ah[0])}ad=G.datepicker._get(ag,"onSelect");if(ad){ac=G.datepicker._formatDate(ag);ad.apply((ag.input?ag.input[0]:null),[ac,ag])}else{G.datepicker._hideDatepicker()}return false;case 27:G.datepicker._hideDatepicker();break;case 33:G.datepicker._adjustDate(af.target,(af.ctrlKey?-G.datepicker._get(ag,"stepBigMonths"):-G.datepicker._get(ag,"stepMonths")),"M");break;case 34:G.datepicker._adjustDate(af.target,(af.ctrlKey?+G.datepicker._get(ag,"stepBigMonths"):+G.datepicker._get(ag,"stepMonths")),"M");break;case 35:if(af.ctrlKey||af.metaKey){G.datepicker._clearDate(af.target)}ai=af.ctrlKey||af.metaKey;break;case 36:if(af.ctrlKey||af.metaKey){G.datepicker._gotoToday(af.target)}ai=af.ctrlKey||af.metaKey;break;case 37:if(af.ctrlKey||af.metaKey){G.datepicker._adjustDate(af.target,(ae?+1:-1),"D")}ai=af.ctrlKey||af.metaKey;if(af.originalEvent.altKey){G.datepicker._adjustDate(af.target,(af.ctrlKey?-G.datepicker._get(ag,"stepBigMonths"):-G.datepicker._get(ag,"stepMonths")),"M")}break;case 38:if(af.ctrlKey||af.metaKey){G.datepicker._adjustDate(af.target,-7,"D")}ai=af.ctrlKey||af.metaKey;break;case 39:if(af.ctrlKey||af.metaKey){G.datepicker._adjustDate(af.target,(ae?-1:+1),"D")}ai=af.ctrlKey||af.metaKey;if(af.originalEvent.altKey){G.datepicker._adjustDate(af.target,(af.ctrlKey?+G.datepicker._get(ag,"stepBigMonths"):+G.datepicker._get(ag,"stepMonths")),"M")}break;case 40:if(af.ctrlKey||af.metaKey){G.datepicker._adjustDate(af.target,+7,"D")}ai=af.ctrlKey||af.metaKey;break;default:ai=false}}else{if(af.keyCode===36&&af.ctrlKey){G.datepicker._showDatepicker(this)}else{ai=false}}if(ai){af.preventDefault();af.stopPropagation()}},_doKeyPress:function(ae){var ad,ac,af=G.datepicker._getInst(ae.target);if(G.datepicker._get(af,"constrainInput")){ad=G.datepicker._possibleChars(G.datepicker._get(af,"dateFormat"));ac=String.fromCharCode(ae.charCode==null?ae.keyCode:ae.charCode);return ae.ctrlKey||ae.metaKey||(ac<" "||!ad||ad.indexOf(ac)>-1)}},_doKeyUp:function(ae){var ac,af=G.datepicker._getInst(ae.target);if(af.input.val()!==af.lastVal){try{ac=G.datepicker.parseDate(G.datepicker._get(af,"dateFormat"),(af.input?af.input.val():null),G.datepicker._getFormatConfig(af));if(ac){G.datepicker._setDateFromField(af);G.datepicker._updateAlternate(af);G.datepicker._updateDatepicker(af)}}catch(ad){}}return true},_showDatepicker:function(ad){ad=ad.target||ad;if(ad.nodeName.toLowerCase()!=="input"){ad=G("input",ad.parentNode)[0]}if(G.datepicker._isDisabledDatepicker(ad)||G.datepicker._lastInput===ad){return}var af,aj,ae,ah,ai,ac,ag;af=G.datepicker._getInst(ad);if(G.datepicker._curInst&&G.datepicker._curInst!==af){G.datepicker._curInst.dpDiv.stop(true,true);if(af&&G.datepicker._datepickerShowing){G.datepicker._hideDatepicker(G.datepicker._curInst.input[0])}}aj=G.datepicker._get(af,"beforeShow");ae=aj?aj.apply(ad,[ad,af]):{};if(ae===false){return}v(af.settings,ae);af.lastVal=null;G.datepicker._lastInput=ad;G.datepicker._setDateFromField(af);if(G.datepicker._inDialog){ad.value=""}if(!G.datepicker._pos){G.datepicker._pos=G.datepicker._findPos(ad);G.datepicker._pos[1]+=ad.offsetHeight}ah=false;G(ad).parents().each(function(){ah|=G(this).css("position")==="fixed";return !ah});ai={left:G.datepicker._pos[0],top:G.datepicker._pos[1]};G.datepicker._pos=null;af.dpDiv.empty();af.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});G.datepicker._updateDatepicker(af);ai=G.datepicker._checkOffset(af,ai,ah);af.dpDiv.css({position:(G.datepicker._inDialog&&G.blockUI?"static":(ah?"fixed":"absolute")),display:"none",left:ai.left+"px",top:ai.top+"px"});if(!af.inline){ac=G.datepicker._get(af,"showAnim");ag=G.datepicker._get(af,"duration");af.dpDiv.css("z-index",r(G(ad))+1);G.datepicker._datepickerShowing=true;if(G.effects&&G.effects.effect[ac]){af.dpDiv.show(ac,G.datepicker._get(af,"showOptions"),ag)}else{af.dpDiv[ac||"show"](ac?ag:null)}if(G.datepicker._shouldFocusInput(af)){af.input.focus()}G.datepicker._curInst=af}},_updateDatepicker:function(ae){this.maxRows=4;l=ae;ae.dpDiv.empty().append(this._generateHTML(ae));this._attachHandlers(ae);ae.dpDiv.find("."+this._dayOverClass+" a");var ag,ac=this._getNumberOfMonths(ae),af=ac[1],ad=17;ae.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(af>1){ae.dpDiv.addClass("ui-datepicker-multi-"+af).css("width",(ad*af)+"em")}ae.dpDiv[(ac[0]!==1||ac[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");ae.dpDiv[(this._get(ae,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(ae===G.datepicker._curInst&&G.datepicker._datepickerShowing&&G.datepicker._shouldFocusInput(ae)){ae.input.focus()}if(ae.yearshtml){ag=ae.yearshtml;setTimeout(function(){if(ag===ae.yearshtml&&ae.yearshtml){ae.dpDiv.find("select.ui-datepicker-year:first").replaceWith(ae.yearshtml)}ag=ae.yearshtml=null},0)}},_shouldFocusInput:function(ac){return ac.input&&ac.input.is(":visible")&&!ac.input.is(":disabled")&&!ac.input.is(":focus")},_checkOffset:function(ah,af,ae){var ag=ah.dpDiv.outerWidth(),ak=ah.dpDiv.outerHeight(),aj=ah.input?ah.input.outerWidth():0,ac=ah.input?ah.input.outerHeight():0,ai=document.documentElement.clientWidth+(ae?0:G(document).scrollLeft()),ad=document.documentElement.clientHeight+(ae?0:G(document).scrollTop());af.left-=(this._get(ah,"isRTL")?(ag-aj):0);af.left-=(ae&&af.left===ah.input.offset().left)?G(document).scrollLeft():0;af.top-=(ae&&af.top===(ah.input.offset().top+ac))?G(document).scrollTop():0;af.left-=Math.min(af.left,(af.left+ag>ai&&ai>ag)?Math.abs(af.left+ag-ai):0);af.top-=Math.min(af.top,(af.top+ak>ad&&ad>ak)?Math.abs(ak+ac):0);return af},_findPos:function(af){var ac,ae=this._getInst(af),ad=this._get(ae,"isRTL");while(af&&(af.type==="hidden"||af.nodeType!==1||G.expr.filters.hidden(af))){af=af[ad?"previousSibling":"nextSibling"]}ac=G(af).offset();return[ac.left,ac.top]},_hideDatepicker:function(ae){var ad,ah,ag,ac,af=this._curInst;if(!af||(ae&&af!==G.data(ae,"datepicker"))){return}if(this._datepickerShowing){ad=this._get(af,"showAnim");ah=this._get(af,"duration");ag=function(){G.datepicker._tidyDialog(af)};if(G.effects&&(G.effects.effect[ad]||G.effects[ad])){af.dpDiv.hide(ad,G.datepicker._get(af,"showOptions"),ah,ag)}else{af.dpDiv[(ad==="slideDown"?"slideUp":(ad==="fadeIn"?"fadeOut":"hide"))]((ad?ah:null),ag)}if(!ad){ag()}this._datepickerShowing=false;ac=this._get(af,"onClose");if(ac){ac.apply((af.input?af.input[0]:null),[(af.input?af.input.val():""),af])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(G.blockUI){G.unblockUI();G("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(ac){ac.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(ad){if(!G.datepicker._curInst){return}var ac=G(ad.target),ae=G.datepicker._getInst(ac[0]);if(((ac[0].id!==G.datepicker._mainDivId&&ac.parents("#"+G.datepicker._mainDivId).length===0&&!ac.hasClass(G.datepicker.markerClassName)&&!ac.closest("."+G.datepicker._triggerClass).length&&G.datepicker._datepickerShowing&&!(G.datepicker._inDialog&&G.blockUI)))||(ac.hasClass(G.datepicker.markerClassName)&&G.datepicker._curInst!==ae)){G.datepicker._hideDatepicker()}},_adjustDate:function(ag,af,ae){var ad=G(ag),ac=this._getInst(ad[0]);if(this._isDisabledDatepicker(ad[0])){return}this._adjustInstDate(ac,af+(ae==="M"?this._get(ac,"showCurrentAtPos"):0),ae);this._updateDatepicker(ac)},_gotoToday:function(af){var ac,ae=G(af),ad=this._getInst(ae[0]);if(this._get(ad,"gotoCurrent")&&ad.currentDay){ad.selectedDay=ad.currentDay;ad.drawMonth=ad.selectedMonth=ad.currentMonth;ad.drawYear=ad.selectedYear=ad.currentYear}else{ac=new Date();ad.selectedDay=ac.getDate();ad.drawMonth=ad.selectedMonth=ac.getMonth();ad.drawYear=ad.selectedYear=ac.getFullYear()}this._notifyChange(ad);this._adjustDate(ae)},_selectMonthYear:function(ag,ac,af){var ae=G(ag),ad=this._getInst(ae[0]);ad["selected"+(af==="M"?"Month":"Year")]=ad["draw"+(af==="M"?"Month":"Year")]=parseInt(ac.options[ac.selectedIndex].value,10);this._notifyChange(ad);this._adjustDate(ae)},_selectDay:function(ah,af,ac,ag){var ad,ae=G(ah);if(G(ag).hasClass(this._unselectableClass)||this._isDisabledDatepicker(ae[0])){return}ad=this._getInst(ae[0]);ad.selectedDay=ad.currentDay=G("a",ag).html();ad.selectedMonth=ad.currentMonth=af;ad.selectedYear=ad.currentYear=ac;this._selectDate(ah,this._formatDate(ad,ad.currentDay,ad.currentMonth,ad.currentYear))},_clearDate:function(ad){var ac=G(ad);this._selectDate(ac,"")},_selectDate:function(ag,ac){var ad,af=G(ag),ae=this._getInst(af[0]);ac=(ac!=null?ac:this._formatDate(ae));if(ae.input){ae.input.val(ac)}this._updateAlternate(ae);ad=this._get(ae,"onSelect");if(ad){ad.apply((ae.input?ae.input[0]:null),[ac,ae])}else{if(ae.input){ae.input.trigger("change")}}if(ae.inline){this._updateDatepicker(ae)}else{this._hideDatepicker();this._lastInput=ae.input[0];if(typeof(ae.input[0])!=="object"){ae.input.focus()}this._lastInput=null}},_updateAlternate:function(ag){var af,ae,ac,ad=this._get(ag,"altField");if(ad){af=this._get(ag,"altFormat")||this._get(ag,"dateFormat");ae=this._getDate(ag);ac=this.formatDate(af,ae,this._getFormatConfig(ag));G(ad).each(function(){G(this).val(ac)})}},noWeekends:function(ad){var ac=ad.getDay();return[(ac>0&&ac<6),""]},iso8601Week:function(ac){var ad,ae=new Date(ac.getTime());ae.setDate(ae.getDate()+4-(ae.getDay()||7));ad=ae.getTime();ae.setMonth(0);ae.setDate(1);return Math.floor(Math.round((ad-ae)/86400000)/7)+1},parseDate:function(at,an,av){if(at==null||an==null){throw"Invalid arguments"}an=(typeof an==="object"?an.toString():an+"");if(an===""){return null}var af,ap,ad,au=0,ai=(av?av.shortYearCutoff:null)||this._defaults.shortYearCutoff,ae=(typeof ai!=="string"?ai:new Date().getFullYear()%100+parseInt(ai,10)),al=(av?av.dayNamesShort:null)||this._defaults.dayNamesShort,ax=(av?av.dayNames:null)||this._defaults.dayNames,ac=(av?av.monthNamesShort:null)||this._defaults.monthNamesShort,ag=(av?av.monthNames:null)||this._defaults.monthNames,ah=-1,ay=-1,ar=-1,ak=-1,aq=false,aw,am=function(aA){var aB=(af+1<at.length&&at.charAt(af+1)===aA);if(aB){af++}return aB},az=function(aC){var aA=am(aC),aD=(aC==="@"?14:(aC==="!"?20:(aC==="y"&&aA?4:(aC==="o"?3:2)))),aE=new RegExp("^\\d{1,"+aD+"}"),aB=an.substring(au).match(aE);if(!aB){throw"Missing number at position "+au}au+=aB[0].length;return parseInt(aB[0],10)},aj=function(aB,aC,aE){var aA=-1,aD=G.map(am(aB)?aE:aC,function(aG,aF){return[[aF,aG]]}).sort(function(aG,aF){return -(aG[1].length-aF[1].length)});G.each(aD,function(aG,aH){var aF=aH[1];if(an.substr(au,aF.length).toLowerCase()===aF.toLowerCase()){aA=aH[0];au+=aF.length;return false}});if(aA!==-1){return aA+1}else{throw"Unknown name at position "+au}},ao=function(){if(an.charAt(au)!==at.charAt(af)){throw"Unexpected literal at position "+au}au++};for(af=0;af<at.length;af++){if(aq){if(at.charAt(af)==="'"&&!am("'")){aq=false}else{ao()}}else{switch(at.charAt(af)){case"d":ar=az("d");break;case"D":aj("D",al,ax);break;case"o":ak=az("o");break;case"m":ay=az("m");break;case"M":ay=aj("M",ac,ag);break;case"y":ah=az("y");break;case"@":aw=new Date(az("@"));ah=aw.getFullYear();ay=aw.getMonth()+1;ar=aw.getDate();break;case"!":aw=new Date((az("!")-this._ticksTo1970)/10000);ah=aw.getFullYear();ay=aw.getMonth()+1;ar=aw.getDate();break;case"'":if(am("'")){ao()}else{aq=true}break;default:ao()}}}if(au<an.length){ad=an.substr(au);if(!/^\s+/.test(ad)){throw"Extra/unparsed characters found in date: "+ad}}if(ah===-1){ah=new Date().getFullYear()}else{if(ah<100){ah+=new Date().getFullYear()-new Date().getFullYear()%100+(ah<=ae?0:-100)}}if(ak>-1){ay=1;ar=ak;do{ap=this._getDaysInMonth(ah,ay-1);if(ar<=ap){break}ay++;ar-=ap}while(true)}aw=this._daylightSavingAdjust(new Date(ah,ay-1,ar));if(aw.getFullYear()!==ah||aw.getMonth()+1!==ay||aw.getDate()!==ar){throw"Invalid date"}return aw},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:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(al,af,ag){if(!af){return""}var an,ao=(ag?ag.dayNamesShort:null)||this._defaults.dayNamesShort,ad=(ag?ag.dayNames:null)||this._defaults.dayNames,aj=(ag?ag.monthNamesShort:null)||this._defaults.monthNamesShort,ah=(ag?ag.monthNames:null)||this._defaults.monthNames,am=function(ap){var aq=(an+1<al.length&&al.charAt(an+1)===ap);if(aq){an++}return aq},ac=function(ar,at,ap){var aq=""+at;if(am(ar)){while(aq.length<ap){aq="0"+aq}}return aq},ai=function(ap,ar,aq,at){return(am(ap)?at[ar]:aq[ar])},ae="",ak=false;if(af){for(an=0;an<al.length;an++){if(ak){if(al.charAt(an)==="'"&&!am("'")){ak=false}else{ae+=al.charAt(an)}}else{switch(al.charAt(an)){case"d":ae+=ac("d",af.getDate(),2);break;case"D":ae+=ai("D",af.getDay(),ao,ad);break;case"o":ae+=ac("o",Math.round((new Date(af.getFullYear(),af.getMonth(),af.getDate()).getTime()-new Date(af.getFullYear(),0,0).getTime())/86400000),3);break;case"m":ae+=ac("m",af.getMonth()+1,2);break;case"M":ae+=ai("M",af.getMonth(),aj,ah);break;case"y":ae+=(am("y")?af.getFullYear():(af.getYear()%100<10?"0":"")+af.getYear()%100);break;case"@":ae+=af.getTime();break;case"!":ae+=af.getTime()*10000+this._ticksTo1970;break;case"'":if(am("'")){ae+="'"}else{ak=true}break;default:ae+=al.charAt(an)}}}}return ae},_possibleChars:function(ag){var af,ae="",ad=false,ac=function(ah){var ai=(af+1<ag.length&&ag.charAt(af+1)===ah);if(ai){af++}return ai};for(af=0;af<ag.length;af++){if(ad){if(ag.charAt(af)==="'"&&!ac("'")){ad=false}else{ae+=ag.charAt(af)}}else{switch(ag.charAt(af)){case"d":case"m":case"y":case"@":ae+="0123456789";break;case"D":case"M":return null;case"'":if(ac("'")){ae+="'"}else{ad=true}break;default:ae+=ag.charAt(af)}}}return ae},_get:function(ad,ac){return ad.settings[ac]!==undefined?ad.settings[ac]:this._defaults[ac]},_setDateFromField:function(ah,ae){if(ah.input.val()===ah.lastVal){return}var ac=this._get(ah,"dateFormat"),aj=ah.lastVal=ah.input?ah.input.val():null,ai=this._getDefaultDate(ah),ad=ai,af=this._getFormatConfig(ah);try{ad=this.parseDate(ac,aj,af)||ai}catch(ag){aj=(ae?"":aj)}ah.selectedDay=ad.getDate();ah.drawMonth=ah.selectedMonth=ad.getMonth();ah.drawYear=ah.selectedYear=ad.getFullYear();ah.currentDay=(aj?ad.getDate():0);ah.currentMonth=(aj?ad.getMonth():0);ah.currentYear=(aj?ad.getFullYear():0);this._adjustInstDate(ah)},_getDefaultDate:function(ac){return this._restrictMinMax(ac,this._determineDate(ac,this._get(ac,"defaultDate"),new Date()))},_determineDate:function(ag,ad,ah){var af=function(aj){var ai=new Date();ai.setDate(ai.getDate()+aj);return ai},ae=function(ap){try{return G.datepicker.parseDate(G.datepicker._get(ag,"dateFormat"),ap,G.datepicker._getFormatConfig(ag))}catch(ao){}var aj=(ap.toLowerCase().match(/^c/)?G.datepicker._getDate(ag):null)||new Date(),ak=aj.getFullYear(),an=aj.getMonth(),ai=aj.getDate(),am=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,al=am.exec(ap);while(al){switch(al[2]||"d"){case"d":case"D":ai+=parseInt(al[1],10);break;case"w":case"W":ai+=parseInt(al[1],10)*7;break;case"m":case"M":an+=parseInt(al[1],10);ai=Math.min(ai,G.datepicker._getDaysInMonth(ak,an));break;case"y":case"Y":ak+=parseInt(al[1],10);ai=Math.min(ai,G.datepicker._getDaysInMonth(ak,an));break}al=am.exec(ap)}return new Date(ak,an,ai)},ac=(ad==null||ad===""?ah:(typeof ad==="string"?ae(ad):(typeof ad==="number"?(isNaN(ad)?ah:af(ad)):new Date(ad.getTime()))));ac=(ac&&ac.toString()==="Invalid Date"?ah:ac);if(ac){ac.setHours(0);ac.setMinutes(0);ac.setSeconds(0);ac.setMilliseconds(0)}return this._daylightSavingAdjust(ac)},_daylightSavingAdjust:function(ac){if(!ac){return null}ac.setHours(ac.getHours()>12?ac.getHours()+2:0);return ac},_setDate:function(ai,af,ah){var ac=!af,ae=ai.selectedMonth,ag=ai.selectedYear,ad=this._restrictMinMax(ai,this._determineDate(ai,af,new Date()));ai.selectedDay=ai.currentDay=ad.getDate();ai.drawMonth=ai.selectedMonth=ai.currentMonth=ad.getMonth();ai.drawYear=ai.selectedYear=ai.currentYear=ad.getFullYear();if((ae!==ai.selectedMonth||ag!==ai.selectedYear)&&!ah){this._notifyChange(ai)}this._adjustInstDate(ai);if(ai.input){ai.input.val(ac?"":this._formatDate(ai))}},_getDate:function(ad){var ac=(!ad.currentYear||(ad.input&&ad.input.val()==="")?null:this._daylightSavingAdjust(new Date(ad.currentYear,ad.currentMonth,ad.currentDay)));return ac},_attachHandlers:function(ad){var ac=this._get(ad,"stepMonths"),ae="#"+ad.id.replace(/\\\\/g,"\\");ad.dpDiv.find("[data-handler]").map(function(){var af={prev:function(){G.datepicker._adjustDate(ae,-ac,"M")},next:function(){G.datepicker._adjustDate(ae,+ac,"M")},hide:function(){G.datepicker._hideDatepicker()},today:function(){G.datepicker._gotoToday(ae)},selectDay:function(){G.datepicker._selectDay(ae,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){G.datepicker._selectMonthYear(ae,this,"M");return false},selectYear:function(){G.datepicker._selectMonthYear(ae,this,"Y");return false}};G(this).bind(this.getAttribute("data-event"),af[this.getAttribute("data-handler")])})},_generateHTML:function(aT){var aw,av,aO,aG,ag,aX,aR,aK,a0,aE,a4,an,ap,ao,ad,aW,al,az,aZ,aM,a5,ay,aD,am,ah,aP,aI,aL,aJ,ak,aB,aq,aS,aV,af,aY,a2,aH,ar,aU=new Date(),ax=this._daylightSavingAdjust(new Date(aU.getFullYear(),aU.getMonth(),aU.getDate())),a1=this._get(aT,"isRTL"),a3=this._get(aT,"showButtonPanel"),aN=this._get(aT,"hideIfNoPrevNext"),aC=this._get(aT,"navigationAsDateFormat"),at=this._getNumberOfMonths(aT),aj=this._get(aT,"showCurrentAtPos"),aF=this._get(aT,"stepMonths"),aA=(at[0]!==1||at[1]!==1),ae=this._daylightSavingAdjust((!aT.currentDay?new Date(9999,9,9):new Date(aT.currentYear,aT.currentMonth,aT.currentDay))),ai=this._getMinMaxDate(aT,"min"),au=this._getMinMaxDate(aT,"max"),ac=aT.drawMonth-aj,aQ=aT.drawYear;if(ac<0){ac+=12;aQ--}if(au){aw=this._daylightSavingAdjust(new Date(au.getFullYear(),au.getMonth()-(at[0]*at[1])+1,au.getDate()));aw=(ai&&aw<ai?ai:aw);while(this._daylightSavingAdjust(new Date(aQ,ac,1))>aw){ac--;if(ac<0){ac=11;aQ--}}}aT.drawMonth=ac;aT.drawYear=aQ;av=this._get(aT,"prevText");av=(!aC?av:this.formatDate(av,this._daylightSavingAdjust(new Date(aQ,ac-aF,1)),this._getFormatConfig(aT)));aO=(this._canAdjustMonth(aT,-1,aQ,ac)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+av+"'><span class='ui-icon ui-icon-circle-triangle-"+(a1?"e":"w")+"'>"+av+"</span></a>":(aN?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+av+"'><span class='ui-icon ui-icon-circle-triangle-"+(a1?"e":"w")+"'>"+av+"</span></a>"));aG=this._get(aT,"nextText");aG=(!aC?aG:this.formatDate(aG,this._daylightSavingAdjust(new Date(aQ,ac+aF,1)),this._getFormatConfig(aT)));ag=(this._canAdjustMonth(aT,+1,aQ,ac)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+aG+"'><span class='ui-icon ui-icon-circle-triangle-"+(a1?"w":"e")+"'>"+aG+"</span></a>":(aN?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+aG+"'><span class='ui-icon ui-icon-circle-triangle-"+(a1?"w":"e")+"'>"+aG+"</span></a>"));aX=this._get(aT,"currentText");aR=(this._get(aT,"gotoCurrent")&&aT.currentDay?ae:ax);aX=(!aC?aX:this.formatDate(aX,aR,this._getFormatConfig(aT)));aK=(!aT.inline?"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(aT,"closeText")+"</button>":"");a0=(a3)?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(a1?aK:"")+(this._isInRange(aT,aR)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+aX+"</button>":"")+(a1?"":aK)+"</div>":"";aE=parseInt(this._get(aT,"firstDay"),10);aE=(isNaN(aE)?0:aE);a4=this._get(aT,"showWeek");an=this._get(aT,"dayNames");ap=this._get(aT,"dayNamesMin");ao=this._get(aT,"monthNames");ad=this._get(aT,"monthNamesShort");aW=this._get(aT,"beforeShowDay");al=this._get(aT,"showOtherMonths");az=this._get(aT,"selectOtherMonths");aZ=this._getDefaultDate(aT);aM="";a5;for(ay=0;ay<at[0];ay++){aD="";this.maxRows=4;for(am=0;am<at[1];am++){ah=this._daylightSavingAdjust(new Date(aQ,ac,aT.selectedDay));aP=" ui-corner-all";aI="";if(aA){aI+="<div class='ui-datepicker-group";if(at[1]>1){switch(am){case 0:aI+=" ui-datepicker-group-first";aP=" ui-corner-"+(a1?"right":"left");break;case at[1]-1:aI+=" ui-datepicker-group-last";aP=" ui-corner-"+(a1?"left":"right");break;default:aI+=" ui-datepicker-group-middle";aP="";break}}aI+="'>"}aI+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+aP+"'>"+(/all|left/.test(aP)&&ay===0?(a1?ag:aO):"")+(/all|right/.test(aP)&&ay===0?(a1?aO:ag):"")+this._generateMonthYearHeader(aT,ac,aQ,ai,au,ay>0||am>0,ao,ad)+"</div><table class='ui-datepicker-calendar'><thead><tr>";aL=(a4?"<th class='ui-datepicker-week-col'>"+this._get(aT,"weekHeader")+"</th>":"");for(a5=0;a5<7;a5++){aJ=(a5+aE)%7;aL+="<th scope='col'"+((a5+aE+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+an[aJ]+"'>"+ap[aJ]+"</span></th>"}aI+=aL+"</tr></thead><tbody>";ak=this._getDaysInMonth(aQ,ac);if(aQ===aT.selectedYear&&ac===aT.selectedMonth){aT.selectedDay=Math.min(aT.selectedDay,ak)}aB=(this._getFirstDayOfMonth(aQ,ac)-aE+7)%7;aq=Math.ceil((aB+ak)/7);aS=(aA?this.maxRows>aq?this.maxRows:aq:aq);this.maxRows=aS;aV=this._daylightSavingAdjust(new Date(aQ,ac,1-aB));for(af=0;af<aS;af++){aI+="<tr>";aY=(!a4?"":"<td class='ui-datepicker-week-col'>"+this._get(aT,"calculateWeek")(aV)+"</td>");for(a5=0;a5<7;a5++){a2=(aW?aW.apply((aT.input?aT.input[0]:null),[aV]):[true,""]);aH=(aV.getMonth()!==ac);ar=(aH&&!az)||!a2[0]||(ai&&aV<ai)||(au&&aV>au);aY+="<td class='"+((a5+aE+6)%7>=5?" ui-datepicker-week-end":"")+(aH?" ui-datepicker-other-month":"")+((aV.getTime()===ah.getTime()&&ac===aT.selectedMonth&&aT._keyEvent)||(aZ.getTime()===aV.getTime()&&aZ.getTime()===ah.getTime())?" "+this._dayOverClass:"")+(ar?" "+this._unselectableClass+" ui-state-disabled":"")+(aH&&!al?"":" "+a2[1]+(aV.getTime()===ae.getTime()?" "+this._currentClass:"")+(aV.getTime()===ax.getTime()?" ui-datepicker-today":""))+"'"+((!aH||al)&&a2[2]?" title='"+a2[2].replace(/'/g,"&#39;")+"'":"")+(ar?"":" data-handler='selectDay' data-event='click' data-month='"+aV.getMonth()+"' data-year='"+aV.getFullYear()+"'")+">"+(aH&&!al?"&#xa0;":(ar?"<span class='ui-state-default'>"+aV.getDate()+"</span>":"<a class='ui-state-default"+(aV.getTime()===ax.getTime()?" ui-state-highlight":"")+(aV.getTime()===ae.getTime()?" ui-state-active":"")+(aH?" ui-priority-secondary":"")+"' href='#'>"+aV.getDate()+"</a>"))+"</td>";aV.setDate(aV.getDate()+1);aV=this._daylightSavingAdjust(aV)}aI+=aY+"</tr>"}ac++;if(ac>11){ac=0;aQ++}aI+="</tbody></table>"+(aA?"</div>"+((at[0]>0&&am===at[1]-1)?"<div class='ui-datepicker-row-break'></div>":""):"");aD+=aI}aM+=aD}aM+=a0;aT._keyEvent=false;return aM},_generateMonthYearHeader:function(ag,ae,ao,ai,am,ap,ak,ac){var au,ad,av,ar,ah,aq,an,aj,af=this._get(ag,"changeMonth"),aw=this._get(ag,"changeYear"),ax=this._get(ag,"showMonthAfterYear"),al="<div class='ui-datepicker-title'>",at="";if(ap||!af){at+="<span class='ui-datepicker-month'>"+ak[ae]+"</span>"}else{au=(ai&&ai.getFullYear()===ao);ad=(am&&am.getFullYear()===ao);at+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(av=0;av<12;av++){if((!au||av>=ai.getMonth())&&(!ad||av<=am.getMonth())){at+="<option value='"+av+"'"+(av===ae?" selected='selected'":"")+">"+ac[av]+"</option>"}}at+="</select>"}if(!ax){al+=at+(ap||!(af&&aw)?"&#xa0;":"")}if(!ag.yearshtml){ag.yearshtml="";if(ap||!aw){al+="<span class='ui-datepicker-year'>"+ao+"</span>"}else{ar=this._get(ag,"yearRange").split(":");ah=new Date().getFullYear();aq=function(az){var ay=(az.match(/c[+\-].*/)?ao+parseInt(az.substring(1),10):(az.match(/[+\-].*/)?ah+parseInt(az,10):parseInt(az,10)));return(isNaN(ay)?ah:ay)};an=aq(ar[0]);aj=Math.max(an,aq(ar[1]||""));an=(ai?Math.max(an,ai.getFullYear()):an);aj=(am?Math.min(aj,am.getFullYear()):aj);ag.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";for(;an<=aj;an++){ag.yearshtml+="<option value='"+an+"'"+(an===ao?" selected='selected'":"")+">"+an+"</option>"}ag.yearshtml+="</select>";al+=ag.yearshtml;ag.yearshtml=null}}al+=this._get(ag,"yearSuffix");if(ax){al+=(ap||!(af&&aw)?"&#xa0;":"")+at}al+="</div>";return al},_adjustInstDate:function(af,ai,ah){var ae=af.drawYear+(ah==="Y"?ai:0),ag=af.drawMonth+(ah==="M"?ai:0),ac=Math.min(af.selectedDay,this._getDaysInMonth(ae,ag))+(ah==="D"?ai:0),ad=this._restrictMinMax(af,this._daylightSavingAdjust(new Date(ae,ag,ac)));af.selectedDay=ad.getDate();af.drawMonth=af.selectedMonth=ad.getMonth();af.drawYear=af.selectedYear=ad.getFullYear();if(ah==="M"||ah==="Y"){this._notifyChange(af)}},_restrictMinMax:function(af,ad){var ae=this._getMinMaxDate(af,"min"),ag=this._getMinMaxDate(af,"max"),ac=(ae&&ad<ae?ae:ad);return(ag&&ac>ag?ag:ac)},_notifyChange:function(ad){var ac=this._get(ad,"onChangeMonthYear");if(ac){ac.apply((ad.input?ad.input[0]:null),[ad.selectedYear,ad.selectedMonth+1,ad])}},_getNumberOfMonths:function(ad){var ac=this._get(ad,"numberOfMonths");return(ac==null?[1,1]:(typeof ac==="number"?[1,ac]:ac))},_getMinMaxDate:function(ad,ac){return this._determineDate(ad,this._get(ad,ac+"Date"),null)},_getDaysInMonth:function(ac,ad){return 32-this._daylightSavingAdjust(new Date(ac,ad,32)).getDate()},_getFirstDayOfMonth:function(ac,ad){return new Date(ac,ad,1).getDay()},_canAdjustMonth:function(af,ah,ae,ag){var ac=this._getNumberOfMonths(af),ad=this._daylightSavingAdjust(new Date(ae,ag+(ah<0?ah:ac[0]*ac[1]),1));if(ah<0){ad.setDate(this._getDaysInMonth(ad.getFullYear(),ad.getMonth()))}return this._isInRange(af,ad)},_isInRange:function(ag,ae){var ad,aj,af=this._getMinMaxDate(ag,"min"),ac=this._getMinMaxDate(ag,"max"),ak=null,ah=null,ai=this._get(ag,"yearRange");if(ai){ad=ai.split(":");aj=new Date().getFullYear();ak=parseInt(ad[0],10);ah=parseInt(ad[1],10);if(ad[0].match(/[+\-].*/)){ak+=aj}if(ad[1].match(/[+\-].*/)){ah+=aj}}return((!af||ae.getTime()>=af.getTime())&&(!ac||ae.getTime()<=ac.getTime())&&(!ak||ae.getFullYear()>=ak)&&(!ah||ae.getFullYear()<=ah))},_getFormatConfig:function(ac){var ad=this._get(ac,"shortYearCutoff");ad=(typeof ad!=="string"?ad:new Date().getFullYear()%100+parseInt(ad,10));return{shortYearCutoff:ad,dayNamesShort:this._get(ac,"dayNamesShort"),dayNames:this._get(ac,"dayNames"),monthNamesShort:this._get(ac,"monthNamesShort"),monthNames:this._get(ac,"monthNames")}},_formatDate:function(af,ac,ag,ae){if(!ac){af.currentDay=af.selectedDay;af.currentMonth=af.selectedMonth;af.currentYear=af.selectedYear}var ad=(ac?(typeof ac==="object"?ac:this._daylightSavingAdjust(new Date(ae,ag,ac))):this._daylightSavingAdjust(new Date(af.currentYear,af.currentMonth,af.currentDay)));return this.formatDate(this._get(af,"dateFormat"),ad,this._getFormatConfig(af))}});function h(ad){var ac="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return ad.delegate(ac,"mouseout",function(){G(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){G(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){G(this).removeClass("ui-datepicker-next-hover")}}).delegate(ac,"mouseover",function(){if(!G.datepicker._isDisabledDatepicker(l.inline?ad.parent()[0]:l.input[0])){G(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");G(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){G(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){G(this).addClass("ui-datepicker-next-hover")}}})}function v(ae,ad){G.extend(ae,ad);for(var ac in ad){if(ad[ac]==null){ae[ac]=ad[ac]}}return ae}G.fn.datepicker=function(ad){if(!this.length){return this}if(!G.datepicker.initialized){G(document).mousedown(G.datepicker._checkExternalClick);G.datepicker.initialized=true}if(G("#"+G.datepicker._mainDivId).length===0){G("body").append(G.datepicker.dpDiv)}var ac=Array.prototype.slice.call(arguments,1);if(typeof ad==="string"&&(ad==="isDisabled"||ad==="getDate"||ad==="widget")){return G.datepicker["_"+ad+"Datepicker"].apply(G.datepicker,[this[0]].concat(ac))}if(ad==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return G.datepicker["_"+ad+"Datepicker"].apply(G.datepicker,[this[0]].concat(ac))}return this.each(function(){typeof ad==="string"?G.datepicker["_"+ad+"Datepicker"].apply(G.datepicker,[this].concat(ac)):G.datepicker._attachDatepicker(this,ad)})};G.datepicker=new aa();G.datepicker.initialized=false;G.datepicker.uuid=new Date().getTime();G.datepicker.version="1.11.0";var C=G.datepicker;
/*!
 * jQuery UI Draggable 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/draggable/
 */
;G.widget("ui.draggable",G.ui.mouse,{version:"1.11.0",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,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._setHandleClassName();this._mouseInit()},_setOption:function(ac,ad){this._super(ac,ad);if(ac==="handle"){this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=true;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(ae){var ac=this.document[0],af=this.options;try{if(ac.activeElement&&ac.activeElement.nodeName.toLowerCase()!=="body"){G(ac.activeElement).blur()}}catch(ad){}if(this.helper||af.disabled||G(ae.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(ae);if(!this.handle){return false}G(af.iframeFix===true?"iframe":af.iframeFix).each(function(){G("<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(G(this).offset()).appendTo("body")});return true},_mouseStart:function(ac){var ad=this.options;this.helper=this._createHelper(ac);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(G.ui.ddmanager){G.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css("position");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=false;G.extend(this.offset,{click:{left:ac.pageX-this.offset.left,top:ac.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(ac,false);this.originalPageX=ac.pageX;this.originalPageY=ac.pageY;(ad.cursorAt&&this._adjustOffsetFromHelper(ad.cursorAt));this._setContainment();if(this._trigger("start",ac)===false){this._clear();return false}this._cacheHelperProportions();if(G.ui.ddmanager&&!ad.dropBehaviour){G.ui.ddmanager.prepareOffsets(this,ac)}this._mouseDrag(ac,true);if(G.ui.ddmanager){G.ui.ddmanager.dragStart(this,ac)}return true},_mouseDrag:function(ac,ae){if(this.offsetParentCssPosition==="fixed"){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(ac,true);this.positionAbs=this._convertPositionTo("absolute");if(!ae){var ad=this._uiHash();if(this._trigger("drag",ac,ad)===false){this._mouseUp({});return false}this.position=ad.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(G.ui.ddmanager){G.ui.ddmanager.drag(this,ac)}return false},_mouseStop:function(ad){var ac=this,ae=false;if(G.ui.ddmanager&&!this.options.dropBehaviour){ae=G.ui.ddmanager.drop(this,ad)}if(this.dropped){ae=this.dropped;this.dropped=false}if((this.options.revert==="invalid"&&!ae)||(this.options.revert==="valid"&&ae)||this.options.revert===true||(G.isFunction(this.options.revert)&&this.options.revert.call(this.element,ae))){G(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(ac._trigger("stop",ad)!==false){ac._clear()}})}else{if(this._trigger("stop",ad)!==false){this._clear()}}return false},_mouseUp:function(ac){G("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if(G.ui.ddmanager){G.ui.ddmanager.dragStop(this,ac)}this.element.focus();return G.ui.mouse.prototype._mouseUp.call(this,ac)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(ac){return this.options.handle?!!G(ac.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this._removeHandleClassName();G(this.options.handle||this.element).addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.element.find(".ui-draggable-handle").addBack().removeClass("ui-draggable-handle")},_createHelper:function(ad){var ae=this.options,ac=G.isFunction(ae.helper)?G(ae.helper.apply(this.element[0],[ad])):(ae.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!ac.parents("body").length){ac.appendTo((ae.appendTo==="parent"?this.element[0].parentNode:ae.appendTo))}if(ac[0]!==this.element[0]&&!(/(fixed|absolute)/).test(ac.css("position"))){ac.css("position","absolute")}return ac},_adjustOffsetFromHelper:function(ac){if(typeof ac==="string"){ac=ac.split(" ")}if(G.isArray(ac)){ac={left:+ac[0],top:+ac[1]||0}}if("left" in ac){this.offset.click.left=ac.left+this.margins.left}if("right" in ac){this.offset.click.left=this.helperProportions.width-ac.right+this.margins.left}if("top" in ac){this.offset.click.top=ac.top+this.margins.top}if("bottom" in ac){this.offset.click.top=this.helperProportions.height-ac.bottom+this.margins.top}},_isRootNode:function(ac){return(/(html|body)/i).test(ac.tagName)||ac===this.document[0]},_getParentOffset:function(){var ad=this.offsetParent.offset(),ac=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==ac&&G.contains(this.scrollParent[0],this.offsetParent[0])){ad.left+=this.scrollParent.scrollLeft();ad.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){ad={top:0,left:0}}return{top:ad.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:ad.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var ac=this.element.position(),ad=this._isRootNode(this.scrollParent[0]);return{top:ac.top-(parseInt(this.helper.css("top"),10)||0)+(!ad?this.scrollParent.scrollTop():0),left:ac.left-(parseInt(this.helper.css("left"),10)||0)+(!ad?this.scrollParent.scrollLeft():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 ae,ag,ad,af=this.options,ac=this.document[0];this.relative_container=null;if(!af.containment){this.containment=null;return}if(af.containment==="window"){this.containment=[G(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,G(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,G(window).scrollLeft()+G(window).width()-this.helperProportions.width-this.margins.left,G(window).scrollTop()+(G(window).height()||ac.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(af.containment==="document"){this.containment=[0,0,G(ac).width()-this.helperProportions.width-this.margins.left,(G(ac).height()||ac.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(af.containment.constructor===Array){this.containment=af.containment;return}if(af.containment==="parent"){af.containment=this.helper[0].parentNode}ag=G(af.containment);ad=ag[0];if(!ad){return}ae=ag.css("overflow")!=="hidden";this.containment=[(parseInt(ag.css("borderLeftWidth"),10)||0)+(parseInt(ag.css("paddingLeft"),10)||0),(parseInt(ag.css("borderTopWidth"),10)||0)+(parseInt(ag.css("paddingTop"),10)||0),(ae?Math.max(ad.scrollWidth,ad.offsetWidth):ad.offsetWidth)-(parseInt(ag.css("borderRightWidth"),10)||0)-(parseInt(ag.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(ae?Math.max(ad.scrollHeight,ad.offsetHeight):ad.offsetHeight)-(parseInt(ag.css("borderBottomWidth"),10)||0)-(parseInt(ag.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=ag},_convertPositionTo:function(ad,af){if(!af){af=this.position}var ac=ad==="absolute"?1:-1,ae=this._isRootNode(this.scrollParent[0]);return{top:(af.top+this.offset.relative.top*ac+this.offset.parent.top*ac-((this.cssPosition==="fixed"?-this.offset.scroll.top:(ae?0:this.offset.scroll.top))*ac)),left:(af.left+this.offset.relative.left*ac+this.offset.parent.left*ac-((this.cssPosition==="fixed"?-this.offset.scroll.left:(ae?0:this.offset.scroll.left))*ac))}},_generatePosition:function(ad,aj){var ac,ak,al,af,ae=this.options,ai=this._isRootNode(this.scrollParent[0]),ah=ad.pageX,ag=ad.pageY;if(!ai||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(aj){if(this.containment){if(this.relative_container){ak=this.relative_container.offset();ac=[this.containment[0]+ak.left,this.containment[1]+ak.top,this.containment[2]+ak.left,this.containment[3]+ak.top]}else{ac=this.containment}if(ad.pageX-this.offset.click.left<ac[0]){ah=ac[0]+this.offset.click.left}if(ad.pageY-this.offset.click.top<ac[1]){ag=ac[1]+this.offset.click.top}if(ad.pageX-this.offset.click.left>ac[2]){ah=ac[2]+this.offset.click.left}if(ad.pageY-this.offset.click.top>ac[3]){ag=ac[3]+this.offset.click.top}}if(ae.grid){al=ae.grid[1]?this.originalPageY+Math.round((ag-this.originalPageY)/ae.grid[1])*ae.grid[1]:this.originalPageY;ag=ac?((al-this.offset.click.top>=ac[1]||al-this.offset.click.top>ac[3])?al:((al-this.offset.click.top>=ac[1])?al-ae.grid[1]:al+ae.grid[1])):al;af=ae.grid[0]?this.originalPageX+Math.round((ah-this.originalPageX)/ae.grid[0])*ae.grid[0]:this.originalPageX;ah=ac?((af-this.offset.click.left>=ac[0]||af-this.offset.click.left>ac[2])?af:((af-this.offset.click.left>=ac[0])?af-ae.grid[0]:af+ae.grid[0])):af}if(ae.axis==="y"){ah=this.originalPageX}if(ae.axis==="x"){ag=this.originalPageY}}return{top:(ag-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:(ai?0:this.offset.scroll.top))),left:(ah-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:(ai?0:this.offset.scroll.left)))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_trigger:function(ac,ad,ae){ae=ae||this._uiHash();G.ui.plugin.call(this,ac,[ad,ae,this],true);if(ac==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return G.Widget.prototype._trigger.call(this,ac,ad,ae)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});G.ui.plugin.add("draggable","connectToSortable",{start:function(ad,af,ae){var ag=ae.options,ac=G.extend({},af,{item:ae.element});ae.sortables=[];G(ag.connectToSortable).each(function(){var ah=G(this).sortable("instance");if(ah&&!ah.options.disabled){ae.sortables.push({instance:ah,shouldRevert:ah.options.revert});ah.refreshPositions();ah._trigger("activate",ad,ac)}})},stop:function(ad,af,ae){var ac=G.extend({},af,{item:ae.element});G.each(ae.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;ae.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(ad);this.instance.options.helper=this.instance.options._helper;if(ae.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",ad,ac)}})},drag:function(ad,af,ae){var ac=this;G.each(ae.sortables,function(){var ag=false,ah=this;this.instance.positionAbs=ae.positionAbs;this.instance.helperProportions=ae.helperProportions;this.instance.offset.click=ae.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){ag=true;G.each(ae.sortables,function(){this.instance.positionAbs=ae.positionAbs;this.instance.helperProportions=ae.helperProportions;this.instance.offset.click=ae.offset.click;if(this!==ah&&this.instance._intersectsWith(this.instance.containerCache)&&G.contains(ah.instance.element[0],this.instance.element[0])){ag=false}return ag})}if(ag){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=G(ac).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return af.helper[0]};ad.target=this.instance.currentItem[0];this.instance._mouseCapture(ad,true);this.instance._mouseStart(ad,true,true);this.instance.offset.click.top=ae.offset.click.top;this.instance.offset.click.left=ae.offset.click.left;this.instance.offset.parent.left-=ae.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=ae.offset.parent.top-this.instance.offset.parent.top;ae._trigger("toSortable",ad);ae.dropped=this.instance.element;ae.currentItem=ae.element;this.instance.fromOutside=ae}if(this.instance.currentItem){this.instance._mouseDrag(ad)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",ad,this.instance._uiHash(this.instance));this.instance._mouseStop(ad,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}ae._trigger("fromSortable",ad);ae.dropped=false}}})}});G.ui.plugin.add("draggable","cursor",{start:function(ae,af,ac){var ad=G("body"),ag=ac.options;if(ad.css("cursor")){ag._cursor=ad.css("cursor")}ad.css("cursor",ag.cursor)},stop:function(ad,ae,ac){var af=ac.options;if(af._cursor){G("body").css("cursor",af._cursor)}}});G.ui.plugin.add("draggable","opacity",{start:function(ae,af,ac){var ad=G(af.helper),ag=ac.options;if(ad.css("opacity")){ag._opacity=ad.css("opacity")}ad.css("opacity",ag.opacity)},stop:function(ad,ae,ac){var af=ac.options;if(af._opacity){G(ae.helper).css("opacity",af._opacity)}}});G.ui.plugin.add("draggable","scroll",{start:function(ad,ae,ac){if(ac.scrollParent[0]!==ac.document[0]&&ac.scrollParent[0].tagName!=="HTML"){ac.overflowOffset=ac.scrollParent.offset()}},drag:function(af,ag,ae){var ah=ae.options,ad=false,ac=ae.document[0];if(ae.scrollParent[0]!==ac&&ae.scrollParent[0].tagName!=="HTML"){if(!ah.axis||ah.axis!=="x"){if((ae.overflowOffset.top+ae.scrollParent[0].offsetHeight)-af.pageY<ah.scrollSensitivity){ae.scrollParent[0].scrollTop=ad=ae.scrollParent[0].scrollTop+ah.scrollSpeed}else{if(af.pageY-ae.overflowOffset.top<ah.scrollSensitivity){ae.scrollParent[0].scrollTop=ad=ae.scrollParent[0].scrollTop-ah.scrollSpeed}}}if(!ah.axis||ah.axis!=="y"){if((ae.overflowOffset.left+ae.scrollParent[0].offsetWidth)-af.pageX<ah.scrollSensitivity){ae.scrollParent[0].scrollLeft=ad=ae.scrollParent[0].scrollLeft+ah.scrollSpeed}else{if(af.pageX-ae.overflowOffset.left<ah.scrollSensitivity){ae.scrollParent[0].scrollLeft=ad=ae.scrollParent[0].scrollLeft-ah.scrollSpeed}}}}else{if(!ah.axis||ah.axis!=="x"){if(af.pageY-G(ac).scrollTop()<ah.scrollSensitivity){ad=G(ac).scrollTop(G(ac).scrollTop()-ah.scrollSpeed)}else{if(G(window).height()-(af.pageY-G(ac).scrollTop())<ah.scrollSensitivity){ad=G(ac).scrollTop(G(ac).scrollTop()+ah.scrollSpeed)}}}if(!ah.axis||ah.axis!=="y"){if(af.pageX-G(ac).scrollLeft()<ah.scrollSensitivity){ad=G(ac).scrollLeft(G(ac).scrollLeft()-ah.scrollSpeed)}else{if(G(window).width()-(af.pageX-G(ac).scrollLeft())<ah.scrollSensitivity){ad=G(ac).scrollLeft(G(ac).scrollLeft()+ah.scrollSpeed)}}}}if(ad!==false&&G.ui.ddmanager&&!ah.dropBehaviour){G.ui.ddmanager.prepareOffsets(ae,af)}}});G.ui.plugin.add("draggable","snap",{start:function(ad,ae,ac){var af=ac.options;ac.snapElements=[];G(af.snap.constructor!==String?(af.snap.items||":data(ui-draggable)"):af.snap).each(function(){var ah=G(this),ag=ah.offset();if(this!==ac.element[0]){ac.snapElements.push({item:this,width:ah.outerWidth(),height:ah.outerHeight(),top:ag.top,left:ag.left})}})},drag:function(ao,al,af){var ac,au,ah,ai,an,ak,aj,av,ap,ag,am=af.options,at=am.snapTolerance,ar=al.offset.left,aq=ar+af.helperProportions.width,ae=al.offset.top,ad=ae+af.helperProportions.height;for(ap=af.snapElements.length-1;ap>=0;ap--){an=af.snapElements[ap].left;ak=an+af.snapElements[ap].width;aj=af.snapElements[ap].top;av=aj+af.snapElements[ap].height;if(aq<an-at||ar>ak+at||ad<aj-at||ae>av+at||!G.contains(af.snapElements[ap].item.ownerDocument,af.snapElements[ap].item)){if(af.snapElements[ap].snapping){(af.options.snap.release&&af.options.snap.release.call(af.element,ao,G.extend(af._uiHash(),{snapItem:af.snapElements[ap].item})))}af.snapElements[ap].snapping=false;continue}if(am.snapMode!=="inner"){ac=Math.abs(aj-ad)<=at;au=Math.abs(av-ae)<=at;ah=Math.abs(an-aq)<=at;ai=Math.abs(ak-ar)<=at;if(ac){al.position.top=af._convertPositionTo("relative",{top:aj-af.helperProportions.height,left:0}).top-af.margins.top}if(au){al.position.top=af._convertPositionTo("relative",{top:av,left:0}).top-af.margins.top}if(ah){al.position.left=af._convertPositionTo("relative",{top:0,left:an-af.helperProportions.width}).left-af.margins.left}if(ai){al.position.left=af._convertPositionTo("relative",{top:0,left:ak}).left-af.margins.left}}ag=(ac||au||ah||ai);if(am.snapMode!=="outer"){ac=Math.abs(aj-ae)<=at;au=Math.abs(av-ad)<=at;ah=Math.abs(an-ar)<=at;ai=Math.abs(ak-aq)<=at;if(ac){al.position.top=af._convertPositionTo("relative",{top:aj,left:0}).top-af.margins.top}if(au){al.position.top=af._convertPositionTo("relative",{top:av-af.helperProportions.height,left:0}).top-af.margins.top}if(ah){al.position.left=af._convertPositionTo("relative",{top:0,left:an}).left-af.margins.left}if(ai){al.position.left=af._convertPositionTo("relative",{top:0,left:ak-af.helperProportions.width}).left-af.margins.left}}if(!af.snapElements[ap].snapping&&(ac||au||ah||ai||ag)){(af.options.snap.snap&&af.options.snap.snap.call(af.element,ao,G.extend(af._uiHash(),{snapItem:af.snapElements[ap].item})))}af.snapElements[ap].snapping=(ac||au||ah||ai||ag)}}});G.ui.plugin.add("draggable","stack",{start:function(ae,af,ac){var ad,ah=ac.options,ag=G.makeArray(G(ah.stack)).sort(function(aj,ai){return(parseInt(G(aj).css("zIndex"),10)||0)-(parseInt(G(ai).css("zIndex"),10)||0)});if(!ag.length){return}ad=parseInt(G(ag[0]).css("zIndex"),10)||0;G(ag).each(function(ai){G(this).css("zIndex",ad+ai)});this.css("zIndex",(ad+ag.length))}});G.ui.plugin.add("draggable","zIndex",{start:function(ae,af,ac){var ad=G(af.helper),ag=ac.options;if(ad.css("zIndex")){ag._zIndex=ad.css("zIndex")}ad.css("zIndex",ag.zIndex)},stop:function(ad,ae,ac){var af=ac.options;if(af._zIndex){G(ae.helper).css("zIndex",af._zIndex)}}});var V=G.ui.draggable;
/*!
 * jQuery UI Resizable 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/resizable/
 */
;G.widget("ui.resizable",G.ui.mouse,{version:"1.11.0",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:90,resize:null,start:null,stop:null},_num:function(ac){return parseInt(ac,10)||0},_isNumber:function(ac){return !isNaN(parseInt(ac,10))},_hasScroll:function(af,ad){if(G(af).css("overflow")==="hidden"){return false}var ac=(ad&&ad==="left")?"scrollLeft":"scrollTop",ae=false;if(af[ac]>0){return true}af[ac]=1;ae=(af[ac]>0);af[ac]=0;return ae},_create:function(){var ai,ad,ag,ae,ac,af=this,ah=this.options;this.element.addClass("ui-resizable");G.extend(this,{_aspectRatio:!!(ah.aspectRatio),aspectRatio:ah.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:ah.helper||ah.ghost||ah.animate?ah.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(G("<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("ui-resizable",this.element.resizable("instance"));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=ah.handles||(!G(".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"}ai=this.handles.split(",");this.handles={};for(ad=0;ad<ai.length;ad++){ag=G.trim(ai[ad]);ac="ui-resizable-"+ag;ae=G("<div class='ui-resizable-handle "+ac+"'></div>");ae.css({zIndex:ah.zIndex});if("se"===ag){ae.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[ag]=".ui-resizable-"+ag;this.element.append(ae)}}this._renderAxis=function(an){var ak,al,aj,am;an=an||this.element;for(ak in this.handles){if(this.handles[ak].constructor===String){this.handles[ak]=this.element.children(this.handles[ak]).first().show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){al=G(this.handles[ak],this.element);am=/sw|ne|nw|se|n|s/.test(ak)?al.outerHeight():al.outerWidth();aj=["padding",/ne|nw|n/.test(ak)?"Top":/se|sw|s/.test(ak)?"Bottom":/^e$/.test(ak)?"Right":"Left"].join("");an.css(aj,am);this._proportionallyResize()}if(!G(this.handles[ak]).length){continue}}};this._renderAxis(this.element);this._handles=G(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!af.resizing){if(this.className){ae=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}af.axis=ae&&ae[1]?ae[1]:"se"}});if(ah.autoHide){this._handles.hide();G(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(ah.disabled){return}G(this).removeClass("ui-resizable-autohide");af._handles.show()}).mouseleave(function(){if(ah.disabled){return}if(!af.resizing){G(this).addClass("ui-resizable-autohide");af._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var ad,ac=function(ae){G(ae).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){ac(this.element);ad=this.element;this.originalElement.css({position:ad.css("position"),width:ad.outerWidth(),height:ad.outerHeight(),top:ad.css("top"),left:ad.css("left")}).insertAfter(ad);ad.remove()}this.originalElement.css("resize",this.originalResizeStyle);ac(this.originalElement);return this},_mouseCapture:function(ae){var ad,af,ac=false;for(ad in this.handles){af=G(this.handles[ad])[0];if(af===ae.target||G.contains(af,ae.target)){ac=true}}return !this.options.disabled&&ac},_mouseStart:function(ad){var ah,ae,ag,af=this.options,ac=this.element;this.resizing=true;this._renderProxy();ah=this._num(this.helper.css("left"));ae=this._num(this.helper.css("top"));if(af.containment){ah+=G(af.containment).scrollLeft()||0;ae+=G(af.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:ah,top:ae};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:ac.width(),height:ac.height()};this.originalSize=this._helper?{width:ac.outerWidth(),height:ac.outerHeight()}:{width:ac.width(),height:ac.height()};this.originalPosition={left:ah,top:ae};this.sizeDiff={width:ac.outerWidth()-ac.width(),height:ac.outerHeight()-ac.height()};this.originalMousePosition={left:ad.pageX,top:ad.pageY};this.aspectRatio=(typeof af.aspectRatio==="number")?af.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);ag=G(".ui-resizable-"+this.axis).css("cursor");G("body").css("cursor",ag==="auto"?this.axis+"-resize":ag);ac.addClass("ui-resizable-resizing");this._propagate("start",ad);return true},_mouseDrag:function(ac){var ag,ad=this.helper,ah={},af=this.originalMousePosition,ai=this.axis,ak=(ac.pageX-af.left)||0,aj=(ac.pageY-af.top)||0,ae=this._change[ai];this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height};if(!ae){return false}ag=ae.apply(this,[ac,ak,aj]);this._updateVirtualBoundaries(ac.shiftKey);if(this._aspectRatio||ac.shiftKey){ag=this._updateRatio(ag,ac)}ag=this._respectSize(ag,ac);this._updateCache(ag);this._propagate("resize",ac);if(this.position.top!==this.prevPosition.top){ah.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){ah.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){ah.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){ah.height=this.size.height+"px"}ad.css(ah);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!G.isEmptyObject(ah)){this._trigger("resize",ac,this.ui())}return false},_mouseStop:function(af){this.resizing=false;var ae,ac,ad,ai,al,ah,ak,ag=this.options,aj=this;if(this._helper){ae=this._proportionallyResizeElements;ac=ae.length&&(/textarea/i).test(ae[0].nodeName);ad=ac&&this._hasScroll(ae[0],"left")?0:aj.sizeDiff.height;ai=ac?0:aj.sizeDiff.width;al={width:(aj.helper.width()-ai),height:(aj.helper.height()-ad)};ah=(parseInt(aj.element.css("left"),10)+(aj.position.left-aj.originalPosition.left))||null;ak=(parseInt(aj.element.css("top"),10)+(aj.position.top-aj.originalPosition.top))||null;if(!ag.animate){this.element.css(G.extend(al,{top:ak,left:ah}))}aj.helper.height(aj.size.height);aj.helper.width(aj.size.width);if(this._helper&&!ag.animate){this._proportionallyResize()}}G("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",af);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(ae){var ag,af,ad,ai,ac,ah=this.options;ac={minWidth:this._isNumber(ah.minWidth)?ah.minWidth:0,maxWidth:this._isNumber(ah.maxWidth)?ah.maxWidth:Infinity,minHeight:this._isNumber(ah.minHeight)?ah.minHeight:0,maxHeight:this._isNumber(ah.maxHeight)?ah.maxHeight:Infinity};if(this._aspectRatio||ae){ag=ac.minHeight*this.aspectRatio;ad=ac.minWidth/this.aspectRatio;af=ac.maxHeight*this.aspectRatio;ai=ac.maxWidth/this.aspectRatio;if(ag>ac.minWidth){ac.minWidth=ag}if(ad>ac.minHeight){ac.minHeight=ad}if(af<ac.maxWidth){ac.maxWidth=af}if(ai<ac.maxHeight){ac.maxHeight=ai}}this._vBoundaries=ac},_updateCache:function(ac){this.offset=this.helper.offset();if(this._isNumber(ac.left)){this.position.left=ac.left}if(this._isNumber(ac.top)){this.position.top=ac.top}if(this._isNumber(ac.height)){this.size.height=ac.height}if(this._isNumber(ac.width)){this.size.width=ac.width}},_updateRatio:function(ae){var af=this.position,ad=this.size,ac=this.axis;if(this._isNumber(ae.height)){ae.width=(ae.height*this.aspectRatio)}else{if(this._isNumber(ae.width)){ae.height=(ae.width/this.aspectRatio)}}if(ac==="sw"){ae.left=af.left+(ad.width-ae.width);ae.top=null}if(ac==="nw"){ae.top=af.top+(ad.height-ae.height);ae.left=af.left+(ad.width-ae.width)}return ae},_respectSize:function(ah){var ae=this._vBoundaries,ak=this.axis,am=this._isNumber(ah.width)&&ae.maxWidth&&(ae.maxWidth<ah.width),ai=this._isNumber(ah.height)&&ae.maxHeight&&(ae.maxHeight<ah.height),af=this._isNumber(ah.width)&&ae.minWidth&&(ae.minWidth>ah.width),al=this._isNumber(ah.height)&&ae.minHeight&&(ae.minHeight>ah.height),ad=this.originalPosition.left+this.originalSize.width,aj=this.position.top+this.size.height,ag=/sw|nw|w/.test(ak),ac=/nw|ne|n/.test(ak);if(af){ah.width=ae.minWidth}if(al){ah.height=ae.minHeight}if(am){ah.width=ae.maxWidth}if(ai){ah.height=ae.maxHeight}if(af&&ag){ah.left=ad-ae.minWidth}if(am&&ag){ah.left=ad-ae.maxWidth}if(al&&ac){ah.top=aj-ae.minHeight}if(ai&&ac){ah.top=aj-ae.maxHeight}if(!ah.width&&!ah.height&&!ah.left&&ah.top){ah.top=null}else{if(!ah.width&&!ah.height&&!ah.top&&ah.left){ah.left=null}}return ah},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var af,ad,ah,ac,ag,ae=this.helper||this.element;for(af=0;af<this._proportionallyResizeElements.length;af++){ag=this._proportionallyResizeElements[af];if(!this.borderDif){this.borderDif=[];ah=[ag.css("borderTopWidth"),ag.css("borderRightWidth"),ag.css("borderBottomWidth"),ag.css("borderLeftWidth")];ac=[ag.css("paddingTop"),ag.css("paddingRight"),ag.css("paddingBottom"),ag.css("paddingLeft")];for(ad=0;ad<ah.length;ad++){this.borderDif[ad]=(parseInt(ah[ad],10)||0)+(parseInt(ac[ad],10)||0)}}ag.css({height:(ae.height()-this.borderDif[0]-this.borderDif[2])||0,width:(ae.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var ac=this.element,ad=this.options;this.elementOffset=ac.offset();if(this._helper){this.helper=this.helper||G("<div style='overflow:hidden;'></div>");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++ad.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(ad,ac){return{width:this.originalSize.width+ac}},w:function(ae,ac){var ad=this.originalSize,af=this.originalPosition;return{left:af.left+ac,width:ad.width-ac}},n:function(af,ad,ac){var ae=this.originalSize,ag=this.originalPosition;return{top:ag.top+ac,height:ae.height-ac}},s:function(ae,ad,ac){return{height:this.originalSize.height+ac}},se:function(ae,ad,ac){return G.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[ae,ad,ac]))},sw:function(ae,ad,ac){return G.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[ae,ad,ac]))},ne:function(ae,ad,ac){return G.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[ae,ad,ac]))},nw:function(ae,ad,ac){return G.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[ae,ad,ac]))}},_propagate:function(ad,ac){G.ui.plugin.call(this,ad,[ac,this.ui()]);(ad!=="resize"&&this._trigger(ad,ac,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,prevSize:this.prevSize,prevPosition:this.prevPosition}}});G.ui.plugin.add("resizable","animate",{stop:function(af){var ak=G(this).resizable("instance"),ah=ak.options,ae=ak._proportionallyResizeElements,ac=ae.length&&(/textarea/i).test(ae[0].nodeName),ad=ac&&ak._hasScroll(ae[0],"left")?0:ak.sizeDiff.height,aj=ac?0:ak.sizeDiff.width,ag={width:(ak.size.width-aj),height:(ak.size.height-ad)},ai=(parseInt(ak.element.css("left"),10)+(ak.position.left-ak.originalPosition.left))||null,al=(parseInt(ak.element.css("top"),10)+(ak.position.top-ak.originalPosition.top))||null;ak.element.animate(G.extend(ag,al&&ai?{top:al,left:ai}:{}),{duration:ah.animateDuration,easing:ah.animateEasing,step:function(){var am={width:parseInt(ak.element.css("width"),10),height:parseInt(ak.element.css("height"),10),top:parseInt(ak.element.css("top"),10),left:parseInt(ak.element.css("left"),10)};if(ae&&ae.length){G(ae[0]).css({width:am.width,height:am.height})}ak._updateCache(am);ak._propagate("resize",af)}})}});G.ui.plugin.add("resizable","containment",{start:function(){var ak,ae,am,ac,aj,af,an,al=G(this).resizable("instance"),ai=al.options,ah=al.element,ad=ai.containment,ag=(ad instanceof G)?ad.get(0):(/parent/.test(ad))?ah.parent().get(0):ad;if(!ag){return}al.containerElement=G(ag);if(/document/.test(ad)||ad===document){al.containerOffset={left:0,top:0};al.containerPosition={left:0,top:0};al.parentData={element:G(document),left:0,top:0,width:G(document).width(),height:G(document).height()||document.body.parentNode.scrollHeight}}else{ak=G(ag);ae=[];G(["Top","Right","Left","Bottom"]).each(function(ap,ao){ae[ap]=al._num(ak.css("padding"+ao))});al.containerOffset=ak.offset();al.containerPosition=ak.position();al.containerSize={height:(ak.innerHeight()-ae[3]),width:(ak.innerWidth()-ae[1])};am=al.containerOffset;ac=al.containerSize.height;aj=al.containerSize.width;af=(al._hasScroll(ag,"left")?ag.scrollWidth:aj);an=(al._hasScroll(ag)?ag.scrollHeight:ac);al.parentData={element:ag,left:am.left,top:am.top,width:af,height:an}}},resize:function(ad,an){var aj,ap,ai,ag,ak=G(this).resizable("instance"),af=ak.options,am=ak.containerOffset,al=ak.position,ao=ak._aspectRatio||ad.shiftKey,ac={top:0,left:0},ae=ak.containerElement,ah=true;if(ae[0]!==document&&(/static/).test(ae.css("position"))){ac=am}if(al.left<(ak._helper?am.left:0)){ak.size.width=ak.size.width+(ak._helper?(ak.position.left-am.left):(ak.position.left-ac.left));if(ao){ak.size.height=ak.size.width/ak.aspectRatio;ah=false}ak.position.left=af.helper?am.left:0}if(al.top<(ak._helper?am.top:0)){ak.size.height=ak.size.height+(ak._helper?(ak.position.top-am.top):ak.position.top);if(ao){ak.size.width=ak.size.height*ak.aspectRatio;ah=false}ak.position.top=ak._helper?am.top:0}ak.offset.left=ak.parentData.left+ak.position.left;ak.offset.top=ak.parentData.top+ak.position.top;aj=Math.abs((ak._helper?ak.offset.left-ac.left:(ak.offset.left-am.left))+ak.sizeDiff.width);ap=Math.abs((ak._helper?ak.offset.top-ac.top:(ak.offset.top-am.top))+ak.sizeDiff.height);ai=ak.containerElement.get(0)===ak.element.parent().get(0);ag=/relative|absolute/.test(ak.containerElement.css("position"));if(ai&&ag){aj-=Math.abs(ak.parentData.left)}if(aj+ak.size.width>=ak.parentData.width){ak.size.width=ak.parentData.width-aj;if(ao){ak.size.height=ak.size.width/ak.aspectRatio;ah=false}}if(ap+ak.size.height>=ak.parentData.height){ak.size.height=ak.parentData.height-ap;if(ao){ak.size.width=ak.size.height*ak.aspectRatio;ah=false}}if(!ah){ak.position.left=an.prevPosition.left;ak.position.top=an.prevPosition.top;ak.size.width=an.prevSize.width;ak.size.height=an.prevSize.height}},stop:function(){var ah=G(this).resizable("instance"),ad=ah.options,ai=ah.containerOffset,ac=ah.containerPosition,ae=ah.containerElement,af=G(ah.helper),ak=af.offset(),aj=af.outerWidth()-ah.sizeDiff.width,ag=af.outerHeight()-ah.sizeDiff.height;if(ah._helper&&!ad.animate&&(/relative/).test(ae.css("position"))){G(this).css({left:ak.left-ac.left-ai.left,width:aj,height:ag})}if(ah._helper&&!ad.animate&&(/static/).test(ae.css("position"))){G(this).css({left:ak.left-ac.left-ai.left,width:aj,height:ag})}}});G.ui.plugin.add("resizable","alsoResize",{start:function(){var ac=G(this).resizable("instance"),ae=ac.options,ad=function(af){G(af).each(function(){var ag=G(this);ag.data("ui-resizable-alsoresize",{width:parseInt(ag.width(),10),height:parseInt(ag.height(),10),left:parseInt(ag.css("left"),10),top:parseInt(ag.css("top"),10)})})};if(typeof(ae.alsoResize)==="object"&&!ae.alsoResize.parentNode){if(ae.alsoResize.length){ae.alsoResize=ae.alsoResize[0];ad(ae.alsoResize)}else{G.each(ae.alsoResize,function(af){ad(af)})}}else{ad(ae.alsoResize)}},resize:function(ae,ag){var ad=G(this).resizable("instance"),ah=ad.options,af=ad.originalSize,aj=ad.originalPosition,ai={height:(ad.size.height-af.height)||0,width:(ad.size.width-af.width)||0,top:(ad.position.top-aj.top)||0,left:(ad.position.left-aj.left)||0},ac=function(ak,al){G(ak).each(function(){var ao=G(this),ap=G(this).data("ui-resizable-alsoresize"),an={},am=al&&al.length?al:ao.parents(ag.originalElement[0]).length?["width","height"]:["width","height","top","left"];G.each(am,function(aq,at){var ar=(ap[at]||0)+(ai[at]||0);if(ar&&ar>=0){an[at]=ar||null}});ao.css(an)})};if(typeof(ah.alsoResize)==="object"&&!ah.alsoResize.nodeType){G.each(ah.alsoResize,function(ak,al){ac(ak,al)})}else{ac(ah.alsoResize)}},stop:function(){G(this).removeData("resizable-alsoresize")}});G.ui.plugin.add("resizable","ghost",{start:function(){var ad=G(this).resizable("instance"),ae=ad.options,ac=ad.size;ad.ghost=ad.originalElement.clone();ad.ghost.css({opacity:0.25,display:"block",position:"relative",height:ac.height,width:ac.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof ae.ghost==="string"?ae.ghost:"");ad.ghost.appendTo(ad.helper)},resize:function(){var ac=G(this).resizable("instance");if(ac.ghost){ac.ghost.css({position:"relative",height:ac.size.height,width:ac.size.width})}},stop:function(){var ac=G(this).resizable("instance");if(ac.ghost&&ac.helper){ac.helper.get(0).removeChild(ac.ghost.get(0))}}});G.ui.plugin.add("resizable","grid",{resize:function(){var ao=G(this).resizable("instance"),ag=ao.options,ap=ao.size,ai=ao.originalSize,al=ao.originalPosition,aq=ao.axis,ad=typeof ag.grid==="number"?[ag.grid,ag.grid]:ag.grid,am=(ad[0]||1),ak=(ad[1]||1),af=Math.round((ap.width-ai.width)/am)*am,ae=Math.round((ap.height-ai.height)/ak)*ak,aj=ai.width+af,ac=ai.height+ae,ah=ag.maxWidth&&(ag.maxWidth<aj),ar=ag.maxHeight&&(ag.maxHeight<ac),an=ag.minWidth&&(ag.minWidth>aj),at=ag.minHeight&&(ag.minHeight>ac);ag.grid=ad;if(an){aj=aj+am}if(at){ac=ac+ak}if(ah){aj=aj-am}if(ar){ac=ac-ak}if(/^(se|s|e)$/.test(aq)){ao.size.width=aj;ao.size.height=ac}else{if(/^(ne)$/.test(aq)){ao.size.width=aj;ao.size.height=ac;ao.position.top=al.top-ae}else{if(/^(sw)$/.test(aq)){ao.size.width=aj;ao.size.height=ac;ao.position.left=al.left-af}else{if(ac-ak>0){ao.size.height=ac;ao.position.top=al.top-ae}else{ao.size.height=ak;ao.position.top=al.top+ai.height-ak}if(aj-am>0){ao.size.width=aj;ao.position.left=al.left-af}else{ao.size.width=am;ao.position.left=al.left+ai.width-am}}}}}});var L=G.ui.resizable;
/*!
 * jQuery UI Dialog 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/dialog/
 */
;var T=G.widget("ui.dialog",{version:"1.11.0",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"Close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(ad){var ac=G(this).css(ad).offset().top;if(ac<0){G(this).css("top",ad.top-ac)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions:{maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&G.fn.draggable){this._makeDraggable()}if(this.options.resizable&&G.fn.resizable){this._makeResizable()}this._isOpen=false;this._trackFocus()},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var ac=this.options.appendTo;if(ac&&(ac.jquery||ac.nodeType)){return G(ac)}return this.document.find(ac||"body").eq(0)},_destroy:function(){var ad,ac=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}ad=ac.parent.children().eq(ac.index);if(ad.length&&ad[0]!==this.element[0]){ad.before(this.element)}else{ac.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:G.noop,enable:G.noop,close:function(af){var ae,ad=this;if(!this._isOpen||this._trigger("beforeClose",af)===false){return}this._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();if(!this.opener.filter(":focusable").focus().length){try{ae=this.document[0].activeElement;if(ae&&ae.nodeName.toLowerCase()!=="body"){G(ae).blur()}}catch(ac){}}this._hide(this.uiDialog,this.options.hide,function(){ad._trigger("close",af)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(ag,ad){var af=false,ac=this.uiDialog.siblings(".ui-front:visible").map(function(){return +G(this).css("z-index")}).get(),ae=Math.max.apply(null,ac);if(ae>=+this.uiDialog.css("z-index")){this.uiDialog.css("z-index",ae+1);af=true}if(af&&!ad){this._trigger("focus",ag)}return af},open:function(){var ac=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=G(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);this._show(this.uiDialog,this.options.show,function(){ac._focusTabbable();ac._trigger("focus")});this._trigger("open")},_focusTabbable:function(){var ac=this._focusedElement;if(!ac){ac=this.element.find("[autofocus]")}if(!ac.length){ac=this.element.find(":tabbable")}if(!ac.length){ac=this.uiDialogButtonPane.find(":tabbable")}if(!ac.length){ac=this.uiDialogTitlebarClose.filter(":tabbable")}if(!ac.length){ac=this.uiDialog}ac.eq(0).focus()},_keepFocus:function(ac){function ad(){var af=this.document[0].activeElement,ae=this.uiDialog[0]===af||G.contains(this.uiDialog[0],af);if(!ae){this._focusTabbable()}}ac.preventDefault();ad.call(this);this._delay(ad)},_createWrapper:function(){this.uiDialog=G("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(ae){if(this.options.closeOnEscape&&!ae.isDefaultPrevented()&&ae.keyCode&&ae.keyCode===G.ui.keyCode.ESCAPE){ae.preventDefault();this.close(ae);return}if(ae.keyCode!==G.ui.keyCode.TAB||ae.isDefaultPrevented()){return}var ad=this.uiDialog.find(":tabbable"),af=ad.filter(":first"),ac=ad.filter(":last");if((ae.target===ac[0]||ae.target===this.uiDialog[0])&&!ae.shiftKey){this._delay(function(){af.focus()});ae.preventDefault()}else{if((ae.target===af[0]||ae.target===this.uiDialog[0])&&ae.shiftKey){this._delay(function(){ac.focus()});ae.preventDefault()}}},mousedown:function(ac){if(this._moveToTop(ac)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var ac;this.uiDialogTitlebar=G("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(ad){if(!G(ad.target).closest(".ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=G("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(ad){ad.preventDefault();this.close(ad)}});ac=G("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(ac);this.uiDialog.attr({"aria-labelledby":ac.attr("id")})},_title:function(ac){if(!this.options.title){ac.html("&#160;")}ac.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=G("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=G("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var ad=this,ac=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if(G.isEmptyObject(ac)||(G.isArray(ac)&&!ac.length)){this.uiDialog.removeClass("ui-dialog-buttons");return}G.each(ac,function(ae,af){var ag,ah;af=G.isFunction(af)?{click:af,text:ae}:af;af=G.extend({type:"button"},af);ag=af.click;af.click=function(){ag.apply(ad.element[0],arguments)};ah={icons:af.icons,text:af.showText};delete af.icons;delete af.showText;G("<button></button>",af).button(ah).appendTo(ad.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var ae=this,ad=this.options;function ac(af){return{position:af.position,offset:af.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(af,ag){G(this).addClass("ui-dialog-dragging");ae._blockFrames();ae._trigger("dragStart",af,ac(ag))},drag:function(af,ag){ae._trigger("drag",af,ac(ag))},stop:function(af,ag){var ai=ag.offset.left-ae.document.scrollLeft(),ah=ag.offset.top-ae.document.scrollTop();ad.position={my:"left top",at:"left"+(ai>=0?"+":"")+ai+" top"+(ah>=0?"+":"")+ah,of:ae.window};G(this).removeClass("ui-dialog-dragging");ae._unblockFrames();ae._trigger("dragStop",af,ac(ag))}})},_makeResizable:function(){var ah=this,af=this.options,ag=af.resizable,ac=this.uiDialog.css("position"),ae=typeof ag==="string"?ag:"n,e,s,w,se,sw,ne,nw";function ad(ai){return{originalPosition:ai.originalPosition,originalSize:ai.originalSize,position:ai.position,size:ai.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:af.maxWidth,maxHeight:af.maxHeight,minWidth:af.minWidth,minHeight:this._minHeight(),handles:ae,start:function(ai,aj){G(this).addClass("ui-dialog-resizing");ah._blockFrames();ah._trigger("resizeStart",ai,ad(aj))},resize:function(ai,aj){ah._trigger("resize",ai,ad(aj))},stop:function(ai,aj){var am=ah.uiDialog.offset(),al=am.left-ah.document.scrollLeft(),ak=am.top-ah.document.scrollTop();af.height=ah.uiDialog.height();af.width=ah.uiDialog.width();af.position={my:"left top",at:"left"+(al>=0?"+":"")+al+" top"+(ak>=0?"+":"")+ak,of:ah.window};G(this).removeClass("ui-dialog-resizing");ah._unblockFrames();ah._trigger("resizeStop",ai,ad(aj))}}).css("position",ac)},_trackFocus:function(){this._on(this.widget(),{focusin:function(ac){this._untrackInstance();this._trackingInstances().unshift(this);this._focusedElement=G(ac.target)}})},_untrackInstance:function(){var ad=this._trackingInstances(),ac=G.inArray(this,ad);if(ac!==-1){ad.splice(ac,1)}},_trackingInstances:function(){var ac=this.document.data("ui-dialog-instances");if(!ac){ac=[];this.document.data("ui-dialog-instances",ac)}return ac},_minHeight:function(){var ac=this.options;return ac.height==="auto"?ac.minHeight:Math.min(ac.minHeight,ac.height)},_position:function(){var ac=this.uiDialog.is(":visible");if(!ac){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!ac){this.uiDialog.hide()}},_setOptions:function(ae){var af=this,ad=false,ac={};G.each(ae,function(ag,ah){af._setOption(ag,ah);if(ag in af.sizeRelatedOptions){ad=true}if(ag in af.resizableRelatedOptions){ac[ag]=ah}});if(ad){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",ac)}},_setOption:function(ae,af){var ad,ag,ac=this.uiDialog;if(ae==="dialogClass"){ac.removeClass(this.options.dialogClass).addClass(af)}if(ae==="disabled"){return}this._super(ae,af);if(ae==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(ae==="buttons"){this._createButtons()}if(ae==="closeText"){this.uiDialogTitlebarClose.button({label:""+af})}if(ae==="draggable"){ad=ac.is(":data(ui-draggable)");if(ad&&!af){ac.draggable("destroy")}if(!ad&&af){this._makeDraggable()}}if(ae==="position"){this._position()}if(ae==="resizable"){ag=ac.is(":data(ui-resizable)");if(ag&&!af){ac.resizable("destroy")}if(ag&&typeof af==="string"){ac.resizable("option","handles",af)}if(!ag&&af!==false){this._makeResizable()}}if(ae==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var ac,ae,af,ad=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(ad.minWidth>ad.width){ad.width=ad.minWidth}ac=this.uiDialog.css({height:"auto",width:ad.width}).outerHeight();ae=Math.max(0,ad.minHeight-ac);af=typeof ad.maxHeight==="number"?Math.max(0,ad.maxHeight-ac):"none";if(ad.height==="auto"){this.element.css({minHeight:ae,maxHeight:af,height:"auto"})}else{this.element.height(Math.max(0,ad.height-ac))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var ac=G(this);return G("<div>").css({position:"absolute",width:ac.outerWidth(),height:ac.outerHeight()}).appendTo(ac.parent()).offset(ac.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(ac){if(G(ac.target).closest(".ui-dialog").length){return true}return !!G(ac.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var ac=true;this._delay(function(){ac=false});if(!this.document.data("ui-dialog-overlays")){this._on(this.document,{focusin:function(ad){if(ac){return}if(!this._allowInteraction(ad)){ad.preventDefault();this._trackingInstances()[0]._focusTabbable()}}})}this.overlay=G("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){var ac=this.document.data("ui-dialog-overlays")-1;if(!ac){this.document.unbind("focusin").removeData("ui-dialog-overlays")}else{this.document.data("ui-dialog-overlays",ac)}this.overlay.remove();this.overlay=null}}});
/*!
 * jQuery UI Droppable 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/droppable/
 */
;G.widget("ui.droppable",{version:"1.11.0",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var ad,ae=this.options,ac=ae.accept;this.isover=false;this.isout=true;this.accept=G.isFunction(ac)?ac:function(af){return af.is(ac)};this.proportions=function(){if(arguments.length){ad=arguments[0]}else{return ad?ad:ad={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}};this._addToManager(ae.scope);ae.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(ac){G.ui.ddmanager.droppables[ac]=G.ui.ddmanager.droppables[ac]||[];G.ui.ddmanager.droppables[ac].push(this)},_splice:function(ac){var ad=0;for(;ad<ac.length;ad++){if(ac[ad]===this){ac.splice(ad,1)}}},_destroy:function(){var ac=G.ui.ddmanager.droppables[this.options.scope];this._splice(ac);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(ad,ae){if(ad==="accept"){this.accept=G.isFunction(ae)?ae:function(af){return af.is(ae)}}else{if(ad==="scope"){var ac=G.ui.ddmanager.droppables[this.options.scope];this._splice(ac);this._addToManager(ae)}}this._super(ad,ae)},_activate:function(ad){var ac=G.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}if(ac){this._trigger("activate",ad,this.ui(ac))}},_deactivate:function(ad){var ac=G.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(ac){this._trigger("deactivate",ad,this.ui(ac))}},_over:function(ad){var ac=G.ui.ddmanager.current;if(!ac||(ac.currentItem||ac.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],(ac.currentItem||ac.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",ad,this.ui(ac))}},_out:function(ad){var ac=G.ui.ddmanager.current;if(!ac||(ac.currentItem||ac.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],(ac.currentItem||ac.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",ad,this.ui(ac))}},_drop:function(ad,ae){var ac=ae||G.ui.ddmanager.current,af=false;if(!ac||(ac.currentItem||ac.element)[0]===this.element[0]){return false}this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var ag=G(this).droppable("instance");if(ag.options.greedy&&!ag.options.disabled&&ag.options.scope===ac.options.scope&&ag.accept.call(ag.element[0],(ac.currentItem||ac.element))&&G.ui.intersect(ac,G.extend(ag,{offset:ag.element.offset()}),ag.options.tolerance)){af=true;return false}});if(af){return false}if(this.accept.call(this.element[0],(ac.currentItem||ac.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",ad,this.ui(ac));return this.element}return false},ui:function(ac){return{draggable:(ac.currentItem||ac.element),helper:ac.helper,position:ac.position,offset:ac.positionAbs}}});G.ui.intersect=(function(){function ac(ae,ad,af){return(ae>=ad)&&(ae<(ad+af))}return function(ap,aj,an){if(!aj.offset){return false}var ah,ai,af=(ap.positionAbs||ap.position.absolute).left,am=(ap.positionAbs||ap.position.absolute).top,ae=af+ap.helperProportions.width,al=am+ap.helperProportions.height,ag=aj.offset.left,ao=aj.offset.top,ad=ag+aj.proportions().width,ak=ao+aj.proportions().height;switch(an){case"fit":return(ag<=af&&ae<=ad&&ao<=am&&al<=ak);case"intersect":return(ag<af+(ap.helperProportions.width/2)&&ae-(ap.helperProportions.width/2)<ad&&ao<am+(ap.helperProportions.height/2)&&al-(ap.helperProportions.height/2)<ak);case"pointer":ah=((ap.positionAbs||ap.position.absolute).left+(ap.clickOffset||ap.offset.click).left);ai=((ap.positionAbs||ap.position.absolute).top+(ap.clickOffset||ap.offset.click).top);return ac(ai,ao,aj.proportions().height)&&ac(ah,ag,aj.proportions().width);case"touch":return((am>=ao&&am<=ak)||(al>=ao&&al<=ak)||(am<ao&&al>ak))&&((af>=ag&&af<=ad)||(ae>=ag&&ae<=ad)||(af<ag&&ae>ad));default:return false}}})();G.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(af,ah){var ae,ad,ac=G.ui.ddmanager.droppables[af.options.scope]||[],ag=ah?ah.type:null,ai=(af.currentItem||af.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(ae=0;ae<ac.length;ae++){if(ac[ae].options.disabled||(af&&!ac[ae].accept.call(ac[ae].element[0],(af.currentItem||af.element)))){continue}for(ad=0;ad<ai.length;ad++){if(ai[ad]===ac[ae].element[0]){ac[ae].proportions().height=0;continue droppablesLoop}}ac[ae].visible=ac[ae].element.css("display")!=="none";if(!ac[ae].visible){continue}if(ag==="mousedown"){ac[ae]._activate.call(ac[ae],ah)}ac[ae].offset=ac[ae].element.offset();ac[ae].proportions({width:ac[ae].element[0].offsetWidth,height:ac[ae].element[0].offsetHeight})}},drop:function(ac,ad){var ae=false;G.each((G.ui.ddmanager.droppables[ac.options.scope]||[]).slice(),function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&G.ui.intersect(ac,this,this.options.tolerance)){ae=this._drop.call(this,ad)||ae}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(ac.currentItem||ac.element))){this.isout=true;this.isover=false;this._deactivate.call(this,ad)}});return ae},dragStart:function(ac,ad){ac.element.parentsUntil("body").bind("scroll.droppable",function(){if(!ac.options.refreshPositions){G.ui.ddmanager.prepareOffsets(ac,ad)}})},drag:function(ac,ad){if(ac.options.refreshPositions){G.ui.ddmanager.prepareOffsets(ac,ad)}G.each(G.ui.ddmanager.droppables[ac.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var ah,af,ae,ag=G.ui.intersect(ac,this,this.options.tolerance),ai=!ag&&this.isover?"isout":(ag&&!this.isover?"isover":null);if(!ai){return}if(this.options.greedy){af=this.options.scope;ae=this.element.parents(":data(ui-droppable)").filter(function(){return G(this).droppable("instance").options.scope===af});if(ae.length){ah=G(ae[0]).droppable("instance");ah.greedyChild=(ai==="isover")}}if(ah&&ai==="isover"){ah.isover=false;ah.isout=true;ah._out.call(ah,ad)}this[ai]=true;this[ai==="isout"?"isover":"isout"]=false;this[ai==="isover"?"_over":"_out"].call(this,ad);if(ah&&ai==="isout"){ah.isout=false;ah.isover=true;ah._over.call(ah,ad)}})},dragStop:function(ac,ad){ac.element.parentsUntil("body").unbind("scroll.droppable");if(!ac.options.refreshPositions){G.ui.ddmanager.prepareOffsets(ac,ad)}}};var d=G.ui.droppable;
/*!
 * jQuery UI Effects 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/effects-core/
 */
;var k="ui-effects-";G.effects={effect:{}};
/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
(function(aq,af){var am="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",aj=/^([\-+])=\s*(\d+\.?\d*)/,ai=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(ar){return[ar[1],ar[2],ar[3],ar[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(ar){return[ar[1]*2.55,ar[2]*2.55,ar[3]*2.55,ar[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(ar){return[parseInt(ar[1],16),parseInt(ar[2],16),parseInt(ar[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(ar){return[parseInt(ar[1]+ar[1],16),parseInt(ar[2]+ar[2],16),parseInt(ar[3]+ar[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(ar){return[ar[1],ar[2]/100,ar[3]/100,ar[4]]}}],ag=aq.Color=function(at,au,ar,av){return new aq.Color.fn.parse(at,au,ar,av)},al={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},ap={"byte":{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},ao=ag.support={},ad=aq("<p>")[0],ac,an=aq.each;ad.style.cssText="background-color:rgba(1,1,1,.5)";ao.rgba=ad.style.backgroundColor.indexOf("rgba")>-1;an(al,function(ar,at){at.cache="_"+ar;at.props.alpha={idx:3,type:"percent",def:1}});function ak(at,av,au){var ar=ap[av.type]||{};if(at==null){return(au||!av.def)?null:av.def}at=ar.floor?~~at:parseFloat(at);if(isNaN(at)){return av.def}if(ar.mod){return(at+ar.mod)%ar.mod}return 0>at?0:ar.max<at?ar.max:at}function ah(ar){var au=ag(),at=au._rgba=[];ar=ar.toLowerCase();an(ai,function(az,aA){var ax,ay=aA.re.exec(ar),aw=ay&&aA.parse(ay),av=aA.space||"rgba";if(aw){ax=au[av](aw);au[al[av].cache]=ax[al[av].cache];at=au._rgba=ax._rgba;return false}});if(at.length){if(at.join()==="0,0,0,0"){aq.extend(at,ac.transparent)}return au}return ac[ar]}ag.fn=aq.extend(ag.prototype,{parse:function(ay,aw,ar,ax){if(ay===af){this._rgba=[null,null,null,null];return this}if(ay.jquery||ay.nodeType){ay=aq(ay).css(aw);aw=af}var av=this,au=aq.type(ay),at=this._rgba=[];if(aw!==af){ay=[ay,aw,ar,ax];au="array"}if(au==="string"){return this.parse(ah(ay)||ac._default)}if(au==="array"){an(al.rgba.props,function(az,aA){at[aA.idx]=ak(ay[aA.idx],aA)});return this}if(au==="object"){if(ay instanceof ag){an(al,function(az,aA){if(ay[aA.cache]){av[aA.cache]=ay[aA.cache].slice()}})}else{an(al,function(aA,aB){var az=aB.cache;an(aB.props,function(aC,aD){if(!av[az]&&aB.to){if(aC==="alpha"||ay[aC]==null){return}av[az]=aB.to(av._rgba)}av[az][aD.idx]=ak(ay[aC],aD,true)});if(av[az]&&aq.inArray(null,av[az].slice(0,3))<0){av[az][3]=1;if(aB.from){av._rgba=aB.from(av[az])}}})}return this}},is:function(au){var ar=ag(au),av=true,at=this;an(al,function(aw,ay){var az,ax=ar[ay.cache];if(ax){az=at[ay.cache]||ay.to&&ay.to(at._rgba)||[];an(ay.props,function(aA,aB){if(ax[aB.idx]!=null){av=(ax[aB.idx]===az[aB.idx]);return av}})}return av});return av},_space:function(){var ar=[],at=this;an(al,function(au,av){if(at[av.cache]){ar.push(au)}});return ar.pop()},transition:function(at,az){var au=ag(at),av=au._space(),aw=al[av],ax=this.alpha()===0?ag("transparent"):this,ay=ax[aw.cache]||aw.to(ax._rgba),ar=ay.slice();au=au[aw.cache];an(aw.props,function(aD,aF){var aC=aF.idx,aB=ay[aC],aA=au[aC],aE=ap[aF.type]||{};if(aA===null){return}if(aB===null){ar[aC]=aA}else{if(aE.mod){if(aA-aB>aE.mod/2){aB+=aE.mod}else{if(aB-aA>aE.mod/2){aB-=aE.mod}}}ar[aC]=ak((aA-aB)*az+aB,aF)}});return this[av](ar)},blend:function(av){if(this._rgba[3]===1){return this}var au=this._rgba.slice(),at=au.pop(),ar=ag(av)._rgba;return ag(aq.map(au,function(aw,ax){return(1-at)*ar[ax]+at*aw}))},toRgbaString:function(){var at="rgba(",ar=aq.map(this._rgba,function(au,av){return au==null?(av>2?1:0):au});if(ar[3]===1){ar.pop();at="rgb("}return at+ar.join()+")"},toHslaString:function(){var at="hsla(",ar=aq.map(this.hsla(),function(au,av){if(au==null){au=av>2?1:0}if(av&&av<3){au=Math.round(au*100)+"%"}return au});if(ar[3]===1){ar.pop();at="hsl("}return at+ar.join()+")"},toHexString:function(ar){var at=this._rgba.slice(),au=at.pop();if(ar){at.push(~~(au*255))}return"#"+aq.map(at,function(av){av=(av||0).toString(16);return av.length===1?"0"+av:av}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});ag.fn.parse.prototype=ag.fn;function ae(au,at,ar){ar=(ar+1)%1;if(ar*6<1){return au+(at-au)*ar*6}if(ar*2<1){return at}if(ar*3<2){return au+(at-au)*((2/3)-ar)*6}return au}al.hsla.to=function(au){if(au[0]==null||au[1]==null||au[2]==null){return[null,null,null,au[3]]}var ar=au[0]/255,ax=au[1]/255,ay=au[2]/255,aA=au[3],az=Math.max(ar,ax,ay),av=Math.min(ar,ax,ay),aB=az-av,aC=az+av,at=aC*0.5,aw,aD;if(av===az){aw=0}else{if(ar===az){aw=(60*(ax-ay)/aB)+360}else{if(ax===az){aw=(60*(ay-ar)/aB)+120}else{aw=(60*(ar-ax)/aB)+240}}}if(aB===0){aD=0}else{if(at<=0.5){aD=aB/aC}else{aD=aB/(2-aC)}}return[Math.round(aw)%360,aD,at,aA==null?1:aA]};al.hsla.from=function(aw){if(aw[0]==null||aw[1]==null||aw[2]==null){return[null,null,null,aw[3]]}var av=aw[0]/360,au=aw[1],at=aw[2],ar=aw[3],ax=at<=0.5?at*(1+au):at+au-at*au,ay=2*at-ax;return[Math.round(ae(ay,ax,av+(1/3))*255),Math.round(ae(ay,ax,av)*255),Math.round(ae(ay,ax,av-(1/3))*255),ar]};an(al,function(at,av){var au=av.props,ar=av.cache,ax=av.to,aw=av.from;ag.fn[at]=function(aC){if(ax&&!this[ar]){this[ar]=ax(this._rgba)}if(aC===af){return this[ar].slice()}var az,aB=aq.type(aC),ay=(aB==="array"||aB==="object")?aC:arguments,aA=this[ar].slice();an(au,function(aD,aF){var aE=ay[aB==="object"?aD:aF.idx];if(aE==null){aE=aA[aF.idx]}aA[aF.idx]=ak(aE,aF)});if(aw){az=ag(aw(aA));az[ar]=aA;return az}else{return ag(aA)}};an(au,function(ay,az){if(ag.fn[ay]){return}ag.fn[ay]=function(aD){var aF=aq.type(aD),aC=(ay==="alpha"?(this._hsla?"hsla":"rgba"):at),aB=this[aC](),aE=aB[az.idx],aA;if(aF==="undefined"){return aE}if(aF==="function"){aD=aD.call(this,aE);aF=aq.type(aD)}if(aD==null&&az.empty){return this}if(aF==="string"){aA=aj.exec(aD);if(aA){aD=aE+parseFloat(aA[2])*(aA[1]==="+"?1:-1)}}aB[az.idx]=aD;return this[aC](aB)}})});ag.hook=function(at){var ar=at.split(" ");an(ar,function(au,av){aq.cssHooks[av]={set:function(az,aA){var ax,ay,aw="";if(aA!=="transparent"&&(aq.type(aA)!=="string"||(ax=ah(aA)))){aA=ag(ax||aA);if(!ao.rgba&&aA._rgba[3]!==1){ay=av==="backgroundColor"?az.parentNode:az;while((aw===""||aw==="transparent")&&ay&&ay.style){try{aw=aq.css(ay,"backgroundColor");ay=ay.parentNode}catch(aB){}}aA=aA.blend(aw&&aw!=="transparent"?aw:"_default")}aA=aA.toRgbaString()}try{az.style[av]=aA}catch(aB){}}};aq.fx.step[av]=function(aw){if(!aw.colorInit){aw.start=ag(aw.elem,av);aw.end=ag(aw.end);aw.colorInit=true}aq.cssHooks[av].set(aw.elem,aw.start.transition(aw.end,aw.pos))}})};ag.hook(am);aq.cssHooks.borderColor={expand:function(at){var ar={};an(["Top","Right","Bottom","Left"],function(av,au){ar["border"+au+"Color"]=at});return ar}};ac=aq.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){var ad=["add","remove","toggle"],ae={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};G.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(ag,ah){G.fx.step[ah]=function(ai){if(ai.end!=="none"&&!ai.setAttr||ai.pos===1&&!ai.setAttr){jQuery.style(ai.elem,ah,ai.end);ai.setAttr=true}}});function af(ak){var ah,ag,ai=ak.ownerDocument.defaultView?ak.ownerDocument.defaultView.getComputedStyle(ak,null):ak.currentStyle,aj={};if(ai&&ai.length&&ai[0]&&ai[ai[0]]){ag=ai.length;while(ag--){ah=ai[ag];if(typeof ai[ah]==="string"){aj[G.camelCase(ah)]=ai[ah]}}}else{for(ah in ai){if(typeof ai[ah]==="string"){aj[ah]=ai[ah]}}}return aj}function ac(ag,ai){var ak={},ah,aj;for(ah in ai){aj=ai[ah];if(ag[ah]!==aj){if(!ae[ah]){if(G.fx.step[ah]||!isNaN(parseFloat(aj))){ak[ah]=aj}}}}return ak}if(!G.fn.addBack){G.fn.addBack=function(ag){return this.add(ag==null?this.prevObject:this.prevObject.filter(ag))}}G.effects.animateClass=function(ag,ah,ak,aj){var ai=G.speed(ah,ak,aj);return this.queue(function(){var an=G(this),al=an.attr("class")||"",am,ao=ai.children?an.find("*").addBack():an;ao=ao.map(function(){var ap=G(this);return{el:ap,start:af(this)}});am=function(){G.each(ad,function(ap,aq){if(ag[aq]){an[aq+"Class"](ag[aq])}})};am();ao=ao.map(function(){this.end=af(this.el[0]);this.diff=ac(this.start,this.end);return this});an.attr("class",al);ao=ao.map(function(){var ar=this,ap=G.Deferred(),aq=G.extend({},ai,{queue:false,complete:function(){ap.resolve(ar)}});this.el.animate(this.diff,aq);return ap.promise()});G.when.apply(G,ao.get()).done(function(){am();G.each(arguments,function(){var ap=this.el;G.each(this.diff,function(aq){ap.css(aq,"")})});ai.complete.call(an[0])})})};G.fn.extend({addClass:(function(ag){return function(ai,ah,ak,aj){return ah?G.effects.animateClass.call(this,{add:ai},ah,ak,aj):ag.apply(this,arguments)}})(G.fn.addClass),removeClass:(function(ag){return function(ai,ah,ak,aj){return arguments.length>1?G.effects.animateClass.call(this,{remove:ai},ah,ak,aj):ag.apply(this,arguments)}})(G.fn.removeClass),toggleClass:(function(ag){return function(aj,ai,ah,al,ak){if(typeof ai==="boolean"||ai===undefined){if(!ah){return ag.apply(this,arguments)}else{return G.effects.animateClass.call(this,(ai?{add:aj}:{remove:aj}),ah,al,ak)}}else{return G.effects.animateClass.call(this,{toggle:aj},ai,ah,al)}}})(G.fn.toggleClass),switchClass:function(ag,ai,ah,ak,aj){return G.effects.animateClass.call(this,{add:ai,remove:ag},ah,ak,aj)}})})();(function(){G.extend(G.effects,{version:"1.11.0",save:function(af,ag){for(var ae=0;ae<ag.length;ae++){if(ag[ae]!==null){af.data(k+ag[ae],af[0].style[ag[ae]])}}},restore:function(af,ah){var ag,ae;for(ae=0;ae<ah.length;ae++){if(ah[ae]!==null){ag=af.data(k+ah[ae]);if(ag===undefined){ag=""}af.css(ah[ae],ag)}}},setMode:function(ae,af){if(af==="toggle"){af=ae.is(":hidden")?"show":"hide"}return af},getBaseline:function(af,ag){var ah,ae;switch(af[0]){case"top":ah=0;break;case"middle":ah=0.5;break;case"bottom":ah=1;break;default:ah=af[0]/ag.height}switch(af[1]){case"left":ae=0;break;case"center":ae=0.5;break;case"right":ae=1;break;default:ae=af[1]/ag.width}return{x:ae,y:ah}},createWrapper:function(af){if(af.parent().is(".ui-effects-wrapper")){return af.parent()}var ag={width:af.outerWidth(true),height:af.outerHeight(true),"float":af.css("float")},aj=G("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),ae={width:af.width(),height:af.height()},ai=document.activeElement;try{ai.id}catch(ah){ai=document.body}af.wrap(aj);if(af[0]===ai||G.contains(af[0],ai)){G(ai).focus()}aj=af.parent();if(af.css("position")==="static"){aj.css({position:"relative"});af.css({position:"relative"})}else{G.extend(ag,{position:af.css("position"),zIndex:af.css("z-index")});G.each(["top","left","bottom","right"],function(ak,al){ag[al]=af.css(al);if(isNaN(parseInt(ag[al],10))){ag[al]="auto"}});af.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}af.css(ae);return aj.css(ag).show()},removeWrapper:function(ae){var af=document.activeElement;if(ae.parent().is(".ui-effects-wrapper")){ae.parent().replaceWith(ae);if(ae[0]===af||G.contains(ae[0],af)){G(af).focus()}}return ae},setTransition:function(af,ah,ae,ag){ag=ag||{};G.each(ah,function(aj,ai){var ak=af.cssUnit(ai);if(ak[0]>0){ag[ai]=ak[0]*ae+ak[1]}});return ag}});function ac(af,ae,ag,ah){if(G.isPlainObject(af)){ae=af;af=af.effect}af={effect:af};if(ae==null){ae={}}if(G.isFunction(ae)){ah=ae;ag=null;ae={}}if(typeof ae==="number"||G.fx.speeds[ae]){ah=ag;ag=ae;ae={}}if(G.isFunction(ag)){ah=ag;ag=null}if(ae){G.extend(af,ae)}ag=ag||ae.duration;af.duration=G.fx.off?0:typeof ag==="number"?ag:ag in G.fx.speeds?G.fx.speeds[ag]:G.fx.speeds._default;af.complete=ah||ae.complete;return af}function ad(ae){if(!ae||typeof ae==="number"||G.fx.speeds[ae]){return true}if(typeof ae==="string"&&!G.effects.effect[ae]){return true}if(G.isFunction(ae)){return true}if(typeof ae==="object"&&!ae.effect){return true}return false}G.fn.extend({effect:function(){var ag=ac.apply(this,arguments),ai=ag.mode,ae=ag.queue,af=G.effects.effect[ag.effect];if(G.fx.off||!af){if(ai){return this[ai](ag.duration,ag.complete)}else{return this.each(function(){if(ag.complete){ag.complete.call(this)}})}}function ah(al){var am=G(this),ak=ag.complete,an=ag.mode;function aj(){if(G.isFunction(ak)){ak.call(am[0])}if(G.isFunction(al)){al()}}if(am.is(":hidden")?an==="hide":an==="show"){am[an]();aj()}else{af.call(am[0],ag,aj)}}return ae===false?this.each(ah):this.queue(ae||"fx",ah)},show:(function(ae){return function(ag){if(ad(ag)){return ae.apply(this,arguments)}else{var af=ac.apply(this,arguments);af.mode="show";return this.effect.call(this,af)}}})(G.fn.show),hide:(function(ae){return function(ag){if(ad(ag)){return ae.apply(this,arguments)}else{var af=ac.apply(this,arguments);af.mode="hide";return this.effect.call(this,af)}}})(G.fn.hide),toggle:(function(ae){return function(ag){if(ad(ag)||typeof ag==="boolean"){return ae.apply(this,arguments)}else{var af=ac.apply(this,arguments);af.mode="toggle";return this.effect.call(this,af)}}})(G.fn.toggle),cssUnit:function(ae){var af=this.css(ae),ag=[];G.each(["em","px","%","pt"],function(ah,ai){if(af.indexOf(ai)>0){ag=[parseFloat(af),ai]}});return ag}})})();(function(){var ac={};G.each(["Quad","Cubic","Quart","Quint","Expo"],function(ae,ad){ac[ad]=function(af){return Math.pow(af,ae+2)}});G.extend(ac,{Sine:function(ad){return 1-Math.cos(ad*Math.PI/2)},Circ:function(ad){return 1-Math.sqrt(1-ad*ad)},Elastic:function(ad){return ad===0||ad===1?ad:-Math.pow(2,8*(ad-1))*Math.sin(((ad-1)*80-7.5)*Math.PI/15)},Back:function(ad){return ad*ad*(3*ad-2)},Bounce:function(af){var ad,ae=4;while(af<((ad=Math.pow(2,--ae))-1)/11){}return 1/Math.pow(4,3-ae)-7.5625*Math.pow((ad*3-2)/22-af,2)}});G.each(ac,function(ae,ad){G.easing["easeIn"+ae]=ad;G.easing["easeOut"+ae]=function(af){return 1-ad(1-af)};G.easing["easeInOut"+ae]=function(af){return af<0.5?ad(af*2)/2:1-ad(af*-2+2)/2}})})();var R=G.effects;
/*!
 * jQuery UI Effects Blind 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/blind-effect/
 */
;var X=G.effects.effect.blind=function(ae,ak){var af=G(this),ao=/up|down|vertical/,an=/up|left|vertical|horizontal/,ap=["position","top","bottom","left","right","height","width"],al=G.effects.setMode(af,ae.mode||"hide"),aq=ae.direction||"up",ah=ao.test(aq),ag=ah?"height":"width",am=ah?"top":"left",at=an.test(aq),aj={},ar=al==="show",ad,ac,ai;if(af.parent().is(".ui-effects-wrapper")){G.effects.save(af.parent(),ap)}else{G.effects.save(af,ap)}af.show();ad=G.effects.createWrapper(af).css({overflow:"hidden"});ac=ad[ag]();ai=parseFloat(ad.css(am))||0;aj[ag]=ar?ac:0;if(!at){af.css(ah?"bottom":"right",0).css(ah?"top":"left","auto").css({position:"absolute"});aj[am]=ar?ai:ac+ai}if(ar){ad.css(ag,0);if(!at){ad.css(am,ai+ac)}}ad.animate(aj,{duration:ae.duration,easing:ae.easing,queue:false,complete:function(){if(al==="hide"){af.hide()}G.effects.restore(af,ap);G.effects.removeWrapper(af);ak()}})};
/*!
 * jQuery UI Effects Bounce 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/bounce-effect/
 */
;var Q=G.effects.effect.bounce=function(al,ak){var ac=G(this),ad=["position","top","bottom","left","right","height","width"],aj=G.effects.setMode(ac,al.mode||"effect"),ai=aj==="hide",au=aj==="show",av=al.direction||"up",ae=al.distance,ah=al.times||5,aw=ah*2+(au||ai?1:0),at=al.duration/aw,an=al.easing,af=(av==="up"||av==="down")?"top":"left",am=(av==="up"||av==="left"),ar,ag,aq,ao=ac.queue(),ap=ao.length;if(au||ai){ad.push("opacity")}G.effects.save(ac,ad);ac.show();G.effects.createWrapper(ac);if(!ae){ae=ac[af==="top"?"outerHeight":"outerWidth"]()/3}if(au){aq={opacity:1};aq[af]=0;ac.css("opacity",0).css(af,am?-ae*2:ae*2).animate(aq,at,an)}if(ai){ae=ae/Math.pow(2,ah-1)}aq={};aq[af]=0;for(ar=0;ar<ah;ar++){ag={};ag[af]=(am?"-=":"+=")+ae;ac.animate(ag,at,an).animate(aq,at,an);ae=ai?ae*2:ae/2}if(ai){ag={opacity:0};ag[af]=(am?"-=":"+=")+ae;ac.animate(ag,at,an)}ac.queue(function(){if(ai){ac.hide()}G.effects.restore(ac,ad);G.effects.removeWrapper(ac);ak()});if(ap>1){ao.splice.apply(ao,[1,0].concat(ao.splice(ap,aw+1)))}ac.dequeue()};
/*!
 * jQuery UI Effects Clip 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/clip-effect/
 */
;var B=G.effects.effect.clip=function(af,ai){var ag=G(this),am=["position","top","bottom","left","right","height","width"],al=G.effects.setMode(ag,af.mode||"hide"),ao=al==="show",an=af.direction||"vertical",ak=an==="vertical",ap=ak?"height":"width",aj=ak?"top":"left",ah={},ad,ae,ac;G.effects.save(ag,am);ag.show();ad=G.effects.createWrapper(ag).css({overflow:"hidden"});ae=(ag[0].tagName==="IMG")?ad:ag;ac=ae[ap]();if(ao){ae.css(ap,0);ae.css(aj,ac/2)}ah[ap]=ao?ac:0;ah[aj]=ao?0:ac/2;ae.animate(ah,{queue:false,duration:af.duration,easing:af.easing,complete:function(){if(!ao){ag.hide()}G.effects.restore(ag,am);G.effects.removeWrapper(ag);ai()}})};
/*!
 * jQuery UI Effects Drop 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/drop-effect/
 */
;var o=G.effects.effect.drop=function(ad,ah){var ae=G(this),aj=["position","top","bottom","left","right","opacity","height","width"],ai=G.effects.setMode(ae,ad.mode||"hide"),al=ai==="show",ak=ad.direction||"left",af=(ak==="up"||ak==="down")?"top":"left",am=(ak==="up"||ak==="left")?"pos":"neg",ag={opacity:al?1:0},ac;G.effects.save(ae,aj);ae.show();G.effects.createWrapper(ae);ac=ad.distance||ae[af==="top"?"outerHeight":"outerWidth"](true)/2;if(al){ae.css("opacity",0).css(af,am==="pos"?-ac:ac)}ag[af]=(al?(am==="pos"?"+=":"-="):(am==="pos"?"-=":"+="))+ac;ae.animate(ag,{queue:false,duration:ad.duration,easing:ad.easing,complete:function(){if(ai==="hide"){ae.hide()}G.effects.restore(ae,aj);G.effects.removeWrapper(ae);ah()}})};
/*!
 * jQuery UI Effects Explode 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/explode-effect/
 */
;var O=G.effects.effect.explode=function(ap,ao){var ai=ap.pieces?Math.round(Math.sqrt(ap.pieces)):3,ad=ai,ac=G(this),ak=G.effects.setMode(ac,ap.mode||"hide"),au=ak==="show",ag=ac.show().css("visibility","hidden").offset(),aq=Math.ceil(ac.outerWidth()/ad),an=Math.ceil(ac.outerHeight()/ai),ah=[],at,ar,ae,am,al,aj;function av(){ah.push(this);if(ah.length===ai*ad){af()}}for(at=0;at<ai;at++){am=ag.top+at*an;aj=at-(ai-1)/2;for(ar=0;ar<ad;ar++){ae=ag.left+ar*aq;al=ar-(ad-1)/2;ac.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-ar*aq,top:-at*an}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:aq,height:an,left:ae+(au?al*aq:0),top:am+(au?aj*an:0),opacity:au?0:1}).animate({left:ae+(au?0:al*aq),top:am+(au?0:aj*an),opacity:au?1:0},ap.duration||500,ap.easing,av)}}function af(){ac.css({visibility:"visible"});G(ah).remove();if(!au){ac.hide()}ao()}};
/*!
 * jQuery UI Effects Fade 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/fade-effect/
 */
;var P=G.effects.effect.fade=function(af,ac){var ad=G(this),ae=G.effects.setMode(ad,af.mode||"toggle");ad.animate({opacity:ae},{queue:false,duration:af.duration,easing:af.easing,complete:ac})};
/*!
 * jQuery UI Effects Fold 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/fold-effect/
 */
;var D=G.effects.effect.fold=function(ae,ai){var af=G(this),an=["position","top","bottom","left","right","height","width"],ak=G.effects.setMode(af,ae.mode||"hide"),aq=ak==="show",al=ak==="hide",at=ae.size||15,am=/([0-9]+)%/.exec(at),ar=!!ae.horizFirst,aj=aq!==ar,ag=aj?["width","height"]:["height","width"],ah=ae.duration/2,ad,ac,ap={},ao={};G.effects.save(af,an);af.show();ad=G.effects.createWrapper(af).css({overflow:"hidden"});ac=aj?[ad.width(),ad.height()]:[ad.height(),ad.width()];if(am){at=parseInt(am[1],10)/100*ac[al?0:1]}if(aq){ad.css(ar?{height:0,width:at}:{height:at,width:0})}ap[ag[0]]=aq?ac[0]:at;ao[ag[1]]=aq?ac[1]:0;ad.animate(ap,ah,ae.easing).animate(ao,ah,ae.easing,function(){if(al){af.hide()}G.effects.restore(af,an);G.effects.removeWrapper(af);ai()})};
/*!
 * jQuery UI Effects Highlight 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/highlight-effect/
 */
;var K=G.effects.effect.highlight=function(ah,ac){var ae=G(this),ad=["backgroundImage","backgroundColor","opacity"],ag=G.effects.setMode(ae,ah.mode||"show"),af={backgroundColor:ae.css("backgroundColor")};if(ag==="hide"){af.opacity=0}G.effects.save(ae,ad);ae.show().css({backgroundImage:"none",backgroundColor:ah.color||"#ffff99"}).animate(af,{queue:false,duration:ah.duration,easing:ah.easing,complete:function(){if(ag==="hide"){ae.hide()}G.effects.restore(ae,ad);ac()}})};
/*!
 * jQuery UI Effects Size 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/size-effect/
 */
;var a=G.effects.effect.size=function(al,ak){var ap,ai,aj,ac=G(this),ao=["position","top","bottom","left","right","width","height","overflow","opacity"],an=["position","top","bottom","left","right","overflow","opacity"],am=["width","height","overflow"],ag=["fontSize"],ar=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],ad=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],ah=G.effects.setMode(ac,al.mode||"effect"),aq=al.restore||ah!=="effect",av=al.scale||"both",at=al.origin||["middle","center"],au=ac.css("position"),ae=aq?ao:an,af={height:0,width:0,outerHeight:0,outerWidth:0};if(ah==="show"){ac.show()}ap={height:ac.height(),width:ac.width(),outerHeight:ac.outerHeight(),outerWidth:ac.outerWidth()};if(al.mode==="toggle"&&ah==="show"){ac.from=al.to||af;ac.to=al.from||ap}else{ac.from=al.from||(ah==="show"?af:ap);ac.to=al.to||(ah==="hide"?af:ap)}aj={from:{y:ac.from.height/ap.height,x:ac.from.width/ap.width},to:{y:ac.to.height/ap.height,x:ac.to.width/ap.width}};if(av==="box"||av==="both"){if(aj.from.y!==aj.to.y){ae=ae.concat(ar);ac.from=G.effects.setTransition(ac,ar,aj.from.y,ac.from);ac.to=G.effects.setTransition(ac,ar,aj.to.y,ac.to)}if(aj.from.x!==aj.to.x){ae=ae.concat(ad);ac.from=G.effects.setTransition(ac,ad,aj.from.x,ac.from);ac.to=G.effects.setTransition(ac,ad,aj.to.x,ac.to)}}if(av==="content"||av==="both"){if(aj.from.y!==aj.to.y){ae=ae.concat(ag).concat(am);ac.from=G.effects.setTransition(ac,ag,aj.from.y,ac.from);ac.to=G.effects.setTransition(ac,ag,aj.to.y,ac.to)}}G.effects.save(ac,ae);ac.show();G.effects.createWrapper(ac);ac.css("overflow","hidden").css(ac.from);if(at){ai=G.effects.getBaseline(at,ap);ac.from.top=(ap.outerHeight-ac.outerHeight())*ai.y;ac.from.left=(ap.outerWidth-ac.outerWidth())*ai.x;ac.to.top=(ap.outerHeight-ac.to.outerHeight)*ai.y;ac.to.left=(ap.outerWidth-ac.to.outerWidth)*ai.x}ac.css(ac.from);if(av==="content"||av==="both"){ar=ar.concat(["marginTop","marginBottom"]).concat(ag);ad=ad.concat(["marginLeft","marginRight"]);am=ao.concat(ar).concat(ad);ac.find("*[width]").each(function(){var ax=G(this),aw={height:ax.height(),width:ax.width(),outerHeight:ax.outerHeight(),outerWidth:ax.outerWidth()};if(aq){G.effects.save(ax,am)}ax.from={height:aw.height*aj.from.y,width:aw.width*aj.from.x,outerHeight:aw.outerHeight*aj.from.y,outerWidth:aw.outerWidth*aj.from.x};ax.to={height:aw.height*aj.to.y,width:aw.width*aj.to.x,outerHeight:aw.height*aj.to.y,outerWidth:aw.width*aj.to.x};if(aj.from.y!==aj.to.y){ax.from=G.effects.setTransition(ax,ar,aj.from.y,ax.from);ax.to=G.effects.setTransition(ax,ar,aj.to.y,ax.to)}if(aj.from.x!==aj.to.x){ax.from=G.effects.setTransition(ax,ad,aj.from.x,ax.from);ax.to=G.effects.setTransition(ax,ad,aj.to.x,ax.to)}ax.css(ax.from);ax.animate(ax.to,al.duration,al.easing,function(){if(aq){G.effects.restore(ax,am)}})})}ac.animate(ac.to,{queue:false,duration:al.duration,easing:al.easing,complete:function(){if(ac.to.opacity===0){ac.css("opacity",ac.from.opacity)}if(ah==="hide"){ac.hide()}G.effects.restore(ac,ae);if(!aq){if(au==="static"){ac.css({position:"relative",top:ac.to.top,left:ac.to.left})}else{G.each(["top","left"],function(aw,ax){ac.css(ax,function(az,aB){var aA=parseInt(aB,10),ay=aw?ac.to.left:ac.to.top;if(aB==="auto"){return ay+"px"}return aA+ay+"px"})})}}G.effects.removeWrapper(ac);ak()}})};
/*!
 * jQuery UI Effects Scale 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/scale-effect/
 */
;var f=G.effects.effect.scale=function(ac,af){var ad=G(this),al=G.extend(true,{},ac),ag=G.effects.setMode(ad,ac.mode||"effect"),ah=parseInt(ac.percent,10)||(parseInt(ac.percent,10)===0?0:(ag==="hide"?0:100)),aj=ac.direction||"both",ak=ac.origin,ae={height:ad.height(),width:ad.width(),outerHeight:ad.outerHeight(),outerWidth:ad.outerWidth()},ai={y:aj!=="horizontal"?(ah/100):1,x:aj!=="vertical"?(ah/100):1};al.effect="size";al.queue=false;al.complete=af;if(ag!=="effect"){al.origin=ak||["middle","center"];al.restore=true}al.from=ac.from||(ag==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:ae);al.to={height:ae.height*ai.y,width:ae.width*ai.x,outerHeight:ae.outerHeight*ai.y,outerWidth:ae.outerWidth*ai.x};if(al.fade){if(ag==="show"){al.from.opacity=0;al.to.opacity=1}if(ag==="hide"){al.from.opacity=1;al.to.opacity=0}}ad.effect(al)};
/*!
 * jQuery UI Effects Puff 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/puff-effect/
 */
;var Z=G.effects.effect.puff=function(aj,ac){var ah=G(this),ai=G.effects.setMode(ah,aj.mode||"hide"),af=ai==="hide",ag=parseInt(aj.percent,10)||150,ae=ag/100,ad={height:ah.height(),width:ah.width(),outerHeight:ah.outerHeight(),outerWidth:ah.outerWidth()};G.extend(aj,{effect:"scale",queue:false,fade:true,mode:ai,complete:ac,percent:af?ag:100,from:af?ad:{height:ad.height*ae,width:ad.width*ae,outerHeight:ad.outerHeight*ae,outerWidth:ad.outerWidth*ae}});ah.effect(aj)};
/*!
 * jQuery UI Effects Pulsate 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/pulsate-effect/
 */
;var F=G.effects.effect.pulsate=function(ac,ag){var ae=G(this),aj=G.effects.setMode(ae,ac.mode||"show"),an=aj==="show",ak=aj==="hide",ao=(an||aj==="hide"),al=((ac.times||5)*2)+(ao?1:0),af=ac.duration/al,am=0,ai=ae.queue(),ad=ai.length,ah;if(an||!ae.is(":visible")){ae.css("opacity",0).show();am=1}for(ah=1;ah<al;ah++){ae.animate({opacity:am},af,ac.easing);am=1-am}ae.animate({opacity:am},af,ac.easing);ae.queue(function(){if(ak){ae.hide()}ag()});if(ad>1){ai.splice.apply(ai,[1,0].concat(ai.splice(ad,al+1)))}ae.dequeue()};
/*!
 * jQuery UI Effects Shake 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/shake-effect/
 */
;var A=G.effects.effect.shake=function(ak,aj){var ac=G(this),ad=["position","top","bottom","left","right","height","width"],ai=G.effects.setMode(ac,ak.mode||"effect"),at=ak.direction||"left",ae=ak.distance||20,ah=ak.times||3,au=ah*2+1,ao=Math.round(ak.duration/au),ag=(at==="up"||at==="down")?"top":"left",af=(at==="up"||at==="left"),ar={},aq={},ap={},an,al=ac.queue(),am=al.length;G.effects.save(ac,ad);ac.show();G.effects.createWrapper(ac);ar[ag]=(af?"-=":"+=")+ae;aq[ag]=(af?"+=":"-=")+ae*2;ap[ag]=(af?"-=":"+=")+ae*2;ac.animate(ar,ao,ak.easing);for(an=1;an<ah;an++){ac.animate(aq,ao,ak.easing).animate(ap,ao,ak.easing)}ac.animate(aq,ao,ak.easing).animate(ar,ao/2,ak.easing).queue(function(){if(ai==="hide"){ac.hide()}G.effects.restore(ac,ad);G.effects.removeWrapper(ac);aj()});if(am>1){al.splice.apply(al,[1,0].concat(al.splice(am,au+1)))}ac.dequeue()};
/*!
 * jQuery UI Effects Slide 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/slide-effect/
 */
;var z=G.effects.effect.slide=function(ae,ai){var af=G(this),ak=["position","top","bottom","left","right","width","height"],aj=G.effects.setMode(af,ae.mode||"show"),am=aj==="show",al=ae.direction||"left",ag=(al==="up"||al==="down")?"top":"left",ad=(al==="up"||al==="left"),ac,ah={};G.effects.save(af,ak);af.show();ac=ae.distance||af[ag==="top"?"outerHeight":"outerWidth"](true);G.effects.createWrapper(af).css({overflow:"hidden"});if(am){af.css(ag,ad?(isNaN(ac)?"-"+ac:-ac):ac)}ah[ag]=(am?(ad?"+=":"-="):(ad?"-=":"+="))+ac;af.animate(ah,{queue:false,duration:ae.duration,easing:ae.easing,complete:function(){if(aj==="hide"){af.hide()}G.effects.restore(af,ak);G.effects.removeWrapper(af);ai()}})};
/*!
 * jQuery UI Effects Transfer 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/transfer-effect/
 */
;var m=G.effects.effect.transfer=function(ad,ah){var af=G(this),ak=G(ad.to),an=ak.css("position")==="fixed",aj=G("body"),al=an?aj.scrollTop():0,am=an?aj.scrollLeft():0,ac=ak.offset(),ag={top:ac.top-al,left:ac.left-am,height:ak.innerHeight(),width:ak.innerWidth()},ai=af.offset(),ae=G("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(ad.className).css({top:ai.top-al,left:ai.left-am,height:af.innerHeight(),width:af.innerWidth(),position:an?"fixed":"absolute"}).animate(ag,ad.duration,ad.easing,function(){ae.remove();ah()})};
/*!
 * jQuery UI Progressbar 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/progressbar/
 */
;var S=G.widget("ui.progressbar",{version:"1.11.0",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=G("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);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()},value:function(ac){if(ac===undefined){return this.options.value}this.options.value=this._constrainedValue(ac);this._refreshValue()},_constrainedValue:function(ac){if(ac===undefined){ac=this.options.value}this.indeterminate=ac===false;if(typeof ac!=="number"){ac=0}return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,ac))},_setOptions:function(ac){var ad=ac.value;delete ac.value;this._super(ac);this.options.value=this._constrainedValue(ad);this._refreshValue()},_setOption:function(ac,ad){if(ac==="max"){ad=Math.max(this.min,ad)}if(ac==="disabled"){this.element.toggleClass("ui-state-disabled",!!ad).attr("aria-disabled",ad)}this._super(ac,ad)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var ad=this.options.value,ac=this._percentage();this.valueDiv.toggle(this.indeterminate||ad>this.min).toggleClass("ui-corner-right",ad===this.options.max).width(ac.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=G("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv)}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":ad});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==ad){this.oldValue=ad;this._trigger("change")}if(ad===this.options.max){this._trigger("complete")}}});
/*!
 * jQuery UI Selectable 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/selectable/
 */
;var e=G.widget("ui.selectable",G.ui.mouse,{version:"1.11.0",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var ad,ac=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){ad=G(ac.options.filter,ac.element[0]);ad.addClass("ui-selectee");ad.each(function(){var ae=G(this),af=ae.offset();G.data(this,"selectable-item",{element:this,$element:ae,left:af.left,top:af.top,right:af.left+ae.outerWidth(),bottom:af.top+ae.outerHeight(),startselected:false,selected:ae.hasClass("ui-selected"),selecting:ae.hasClass("ui-selecting"),unselecting:ae.hasClass("ui-unselecting")})})};this.refresh();this.selectees=ad.addClass("ui-selectee");this._mouseInit();this.helper=G("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(ae){var ad=this,ac=this.options;this.opos=[ae.pageX,ae.pageY];if(this.options.disabled){return}this.selectees=G(ac.filter,this.element[0]);this._trigger("start",ae);G(ac.appendTo).append(this.helper);this.helper.css({left:ae.pageX,top:ae.pageY,width:0,height:0});if(ac.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var af=G.data(this,"selectable-item");af.startselected=true;if(!ae.metaKey&&!ae.ctrlKey){af.$element.removeClass("ui-selected");af.selected=false;af.$element.addClass("ui-unselecting");af.unselecting=true;ad._trigger("unselecting",ae,{unselecting:af.element})}});G(ae.target).parents().addBack().each(function(){var af,ag=G.data(this,"selectable-item");if(ag){af=(!ae.metaKey&&!ae.ctrlKey)||!ag.$element.hasClass("ui-selected");ag.$element.removeClass(af?"ui-unselecting":"ui-selected").addClass(af?"ui-selecting":"ui-unselecting");ag.unselecting=!af;ag.selecting=af;ag.selected=af;if(af){ad._trigger("selecting",ae,{selecting:ag.element})}else{ad._trigger("unselecting",ae,{unselecting:ag.element})}return false}})},_mouseDrag:function(aj){this.dragged=true;if(this.options.disabled){return}var ag,ai=this,ae=this.options,ad=this.opos[0],ah=this.opos[1],ac=aj.pageX,af=aj.pageY;if(ad>ac){ag=ac;ac=ad;ad=ag}if(ah>af){ag=af;af=ah;ah=ag}this.helper.css({left:ad,top:ah,width:ac-ad,height:af-ah});this.selectees.each(function(){var ak=G.data(this,"selectable-item"),al=false;if(!ak||ak.element===ai.element[0]){return}if(ae.tolerance==="touch"){al=(!(ak.left>ac||ak.right<ad||ak.top>af||ak.bottom<ah))}else{if(ae.tolerance==="fit"){al=(ak.left>ad&&ak.right<ac&&ak.top>ah&&ak.bottom<af)}}if(al){if(ak.selected){ak.$element.removeClass("ui-selected");ak.selected=false}if(ak.unselecting){ak.$element.removeClass("ui-unselecting");ak.unselecting=false}if(!ak.selecting){ak.$element.addClass("ui-selecting");ak.selecting=true;ai._trigger("selecting",aj,{selecting:ak.element})}}else{if(ak.selecting){if((aj.metaKey||aj.ctrlKey)&&ak.startselected){ak.$element.removeClass("ui-selecting");ak.selecting=false;ak.$element.addClass("ui-selected");ak.selected=true}else{ak.$element.removeClass("ui-selecting");ak.selecting=false;if(ak.startselected){ak.$element.addClass("ui-unselecting");ak.unselecting=true}ai._trigger("unselecting",aj,{unselecting:ak.element})}}if(ak.selected){if(!aj.metaKey&&!aj.ctrlKey&&!ak.startselected){ak.$element.removeClass("ui-selected");ak.selected=false;ak.$element.addClass("ui-unselecting");ak.unselecting=true;ai._trigger("unselecting",aj,{unselecting:ak.element})}}}});return false},_mouseStop:function(ad){var ac=this;this.dragged=false;G(".ui-unselecting",this.element[0]).each(function(){var ae=G.data(this,"selectable-item");ae.$element.removeClass("ui-unselecting");ae.unselecting=false;ae.startselected=false;ac._trigger("unselected",ad,{unselected:ae.element})});G(".ui-selecting",this.element[0]).each(function(){var ae=G.data(this,"selectable-item");ae.$element.removeClass("ui-selecting").addClass("ui-selected");ae.selecting=false;ae.selected=true;ae.startselected=true;ac._trigger("selected",ad,{selected:ae.element})});this._trigger("stop",ad);this.helper.remove();return false}});
/*!
 * jQuery UI Selectmenu 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/selectmenu
 */
;var U=G.widget("ui.selectmenu",{version:"1.11.0",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var ac=this.element.uniqueId().attr("id");this.ids={element:ac,button:ac+"-button",menu:ac+"-menu"};this._drawButton();this._drawMenu();if(this.options.disabled){this.disable()}},_drawButton:function(){var ad=this,ac=this.element.attr("tabindex");this.label=G("label[for='"+this.ids.element+"']").attr("for",this.ids.button);this._on(this.label,{click:function(ae){this.button.focus();ae.preventDefault()}});this.element.hide();this.button=G("<span>",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:ac||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element);G("<span>",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button);this.buttonText=G("<span>",{"class":"ui-selectmenu-text"}).appendTo(this.button);this._setText(this.buttonText,this.element.find("option:selected").text());this._setOption("width",this.options.width);this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){if(!ad.menuItems){ad._refreshMenu()}});this._hoverable(this.button);this._focusable(this.button)},_drawMenu:function(){var ac=this;this.menu=G("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=G("<div>",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo());this.menuInstance=this.menu.menu({role:"listbox",select:function(ad,ae){ad.preventDefault();ac._select(ae.item.data("ui-selectmenu-item"),ad)},focus:function(ae,af){var ad=af.item.data("ui-selectmenu-item");if(ac.focusIndex!=null&&ad.index!==ac.focusIndex){ac._trigger("focus",ae,{item:ad});if(!ac.isOpen){ac._select(ad,ae)}}ac.focusIndex=ad.index;ac.button.attr("aria-activedescendant",ac.menuItems.eq(ad.index).attr("id"))}}).menu("instance");this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return false};this.menuInstance._isDivider=function(){return false}},refresh:function(){this._refreshMenu();this._setText(this.buttonText,this._getSelectedItem().text());this._setOption("width",this.options.width)},_refreshMenu:function(){this.menu.empty();var ad,ac=this.element.find("option");if(!ac.length){return}this._parseOptions(ac);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup");ad=this._getSelectedItem();this.menuInstance.focus(null,ad);this._setAria(ad.data("ui-selectmenu-item"));this._setOption("disabled",this.element.prop("disabled"))},open:function(ac){if(this.options.disabled){return}if(!this.menuItems){this._refreshMenu()}else{this.menu.find(".ui-state-focus").removeClass("ui-state-focus");this.menuInstance.focus(null,this._getSelectedItem())}this.isOpen=true;this._toggleAttr();this._resizeMenu();this._position();this._on(this.document,this._documentClick);this._trigger("open",ac)},_position:function(){this.menuWrap.position(G.extend({of:this.button},this.options.position))},close:function(ac){if(!this.isOpen){return}this.isOpen=false;this._toggleAttr();this._off(this.document);this._trigger("close",ac)},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(ae,ad){var af=this,ac="";G.each(ad,function(ag,ah){if(ah.optgroup!==ac){G("<li>",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(ah.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:ah.optgroup}).appendTo(ae);ac=ah.optgroup}af._renderItemData(ae,ah)})},_renderItemData:function(ac,ad){return this._renderItem(ac,ad).data("ui-selectmenu-item",ad)},_renderItem:function(ad,ae){var ac=G("<li>");if(ae.disabled){ac.addClass("ui-state-disabled")}this._setText(ac,ae.label);return ac.appendTo(ad)},_setText:function(ac,ad){if(ad){ac.text(ad)}else{ac.html("&#160;")}},_move:function(ag,af){var ae,ad,ac=".ui-menu-item";if(this.isOpen){ae=this.menuItems.eq(this.focusIndex)}else{ae=this.menuItems.eq(this.element[0].selectedIndex);ac+=":not(.ui-state-disabled)"}if(ag==="first"||ag==="last"){ad=ae[ag==="first"?"prevAll":"nextAll"](ac).eq(-1)}else{ad=ae[ag+"All"](ac).eq(0)}if(ad.length){this.menuInstance.focus(af,ad)}},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(ac){this[this.isOpen?"close":"open"](ac)},_documentClick:{mousedown:function(ac){if(!this.isOpen){return}if(!G(ac.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length){this.close(ac)}}},_buttonEvents:{click:"_toggle",keydown:function(ad){var ac=true;switch(ad.keyCode){case G.ui.keyCode.TAB:case G.ui.keyCode.ESCAPE:this.close(ad);ac=false;break;case G.ui.keyCode.ENTER:if(this.isOpen){this._selectFocusedItem(ad)}break;case G.ui.keyCode.UP:if(ad.altKey){this._toggle(ad)}else{this._move("prev",ad)}break;case G.ui.keyCode.DOWN:if(ad.altKey){this._toggle(ad)}else{this._move("next",ad)}break;case G.ui.keyCode.SPACE:if(this.isOpen){this._selectFocusedItem(ad)}else{this._toggle(ad)}break;case G.ui.keyCode.LEFT:this._move("prev",ad);break;case G.ui.keyCode.RIGHT:this._move("next",ad);break;case G.ui.keyCode.HOME:case G.ui.keyCode.PAGE_UP:this._move("first",ad);break;case G.ui.keyCode.END:case G.ui.keyCode.PAGE_DOWN:this._move("last",ad);break;default:this.menu.trigger(ad);ac=false}if(ac){ad.preventDefault()}}},_selectFocusedItem:function(ad){var ac=this.menuItems.eq(this.focusIndex);if(!ac.hasClass("ui-state-disabled")){this._select(ac.data("ui-selectmenu-item"),ad)}},_select:function(ad,ac){var ae=this.element[0].selectedIndex;this.element[0].selectedIndex=ad.index;this._setText(this.buttonText,ad.label);this._setAria(ad);this._trigger("select",ac,{item:ad});if(ad.index!==ae){this._trigger("change",ac,{item:ad})}this.close(ac)},_setAria:function(ac){var ad=this.menuItems.eq(ac.index).attr("id");this.button.attr({"aria-labelledby":ad,"aria-activedescendant":ad});this.menu.attr("aria-activedescendant",ad)},_setOption:function(ac,ad){if(ac==="icons"){this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(ad.button)}this._super(ac,ad);if(ac==="appendTo"){this.menuWrap.appendTo(this._appendTo())}if(ac==="disabled"){this.menuInstance.option("disabled",ad);this.button.toggleClass("ui-state-disabled",ad).attr("aria-disabled",ad);this.element.prop("disabled",ad);if(ad){this.button.attr("tabindex",-1);this.close()}else{this.button.attr("tabindex",0)}}if(ac==="width"){if(!ad){ad=this.element.outerWidth()}this.button.outerWidth(ad)}},_appendTo:function(){var ac=this.options.appendTo;if(ac){ac=ac.jquery||ac.nodeType?G(ac):this.document.find(ac).eq(0)}if(!ac||!ac[0]){ac=this.element.closest(".ui-front")}if(!ac.length){ac=this.document[0].body}return ac},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen);this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(ac){var ad=[];ac.each(function(af,ah){var ag=G(ah),ae=ag.parent("optgroup");ad.push({element:ag,index:af,value:ag.attr("value"),label:ag.text(),optgroup:ae.attr("label")||"",disabled:ae.prop("disabled")||ag.prop("disabled")})});this.items=ad},_destroy:function(){this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.label.attr("for",this.ids.element)}});
/*!
 * jQuery UI Slider 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/slider/
 */
;var g=G.widget("ui.slider",G.ui.mouse,{version:"1.11.0",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=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");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var af,ac,ad=this.options,ah=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),ag="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",ae=[];ac=(ad.values&&ad.values.length)||1;if(ah.length>ac){ah.slice(ac).remove();ah=ah.slice(0,ac)}for(af=ah.length;af<ac;af++){ae.push(ag)}this.handles=ah.add(G(ae.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(ai){G(this).data("ui-slider-handle-index",ai)})},_createRange:function(){var ac=this.options,ad="";if(ac.range){if(ac.range===true){if(!ac.values){ac.values=[this._valueMin(),this._valueMin()]}else{if(ac.values.length&&ac.values.length!==2){ac.values=[ac.values[0],ac.values[0]]}else{if(G.isArray(ac.values)){ac.values=ac.values.slice(0)}}}}if(!this.range||!this.range.length){this.range=G("<div></div>").appendTo(this.element);ad="ui-slider-range ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""})}this.range.addClass(ad+((ac.range==="min"||ac.range==="max")?" ui-slider-range-"+ac.range:""))}else{if(this.range){this.range.remove()}this.range=null}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();if(this.range){this.range.remove()}this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all");this._mouseDestroy()},_mouseCapture:function(ae){var ai,al,ad,ag,ak,am,ah,ac,aj=this,af=this.options;if(af.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();ai={x:ae.pageX,y:ae.pageY};al=this._normValueFromMouse(ai);ad=this._valueMax()-this._valueMin()+1;this.handles.each(function(an){var ao=Math.abs(al-aj.values(an));if((ad>ao)||(ad===ao&&(an===aj._lastChangedValue||aj.values(an)===af.min))){ad=ao;ag=G(this);ak=an}});am=this._start(ae,ak);if(am===false){return false}this._mouseSliding=true;this._handleIndex=ak;ag.addClass("ui-state-active").focus();ah=ag.offset();ac=!G(ae.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=ac?{left:0,top:0}:{left:ae.pageX-ah.left-(ag.width()/2),top:ae.pageY-ah.top-(ag.height()/2)-(parseInt(ag.css("borderTopWidth"),10)||0)-(parseInt(ag.css("borderBottomWidth"),10)||0)+(parseInt(ag.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(ae,ak,al)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(ae){var ac={x:ae.pageX,y:ae.pageY},ad=this._normValueFromMouse(ac);this._slide(ae,this._handleIndex,ad);return false},_mouseStop:function(ac){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(ac,this._handleIndex);this._change(ac,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(ad){var ac,ag,af,ae,ah;if(this.orientation==="horizontal"){ac=this.elementSize.width;ag=ad.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{ac=this.elementSize.height;ag=ad.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}af=(ag/ac);if(af>1){af=1}if(af<0){af=0}if(this.orientation==="vertical"){af=1-af}ae=this._valueMax()-this._valueMin();ah=this._valueMin()+af*ae;return this._trimAlignValue(ah)},_start:function(ae,ad){var ac={handle:this.handles[ad],value:this.value()};if(this.options.values&&this.options.values.length){ac.value=this.values(ad);ac.values=this.values()}return this._trigger("start",ae,ac)},_slide:function(ag,af,ae){var ac,ad,ah;if(this.options.values&&this.options.values.length){ac=this.values(af?0:1);if((this.options.values.length===2&&this.options.range===true)&&((af===0&&ae>ac)||(af===1&&ae<ac))){ae=ac}if(ae!==this.values(af)){ad=this.values();ad[af]=ae;ah=this._trigger("slide",ag,{handle:this.handles[af],value:ae,values:ad});ac=this.values(af?0:1);if(ah!==false){this.values(af,ae)}}}else{if(ae!==this.value()){ah=this._trigger("slide",ag,{handle:this.handles[af],value:ae});if(ah!==false){this.value(ae)}}}},_stop:function(ae,ad){var ac={handle:this.handles[ad],value:this.value()};if(this.options.values&&this.options.values.length){ac.value=this.values(ad);ac.values=this.values()}this._trigger("stop",ae,ac)},_change:function(ae,ad){if(!this._keySliding&&!this._mouseSliding){var ac={handle:this.handles[ad],value:this.value()};if(this.options.values&&this.options.values.length){ac.value=this.values(ad);ac.values=this.values()}this._lastChangedValue=ad;this._trigger("change",ae,ac)}},value:function(ac){if(arguments.length){this.options.value=this._trimAlignValue(ac);this._refreshValue();this._change(null,0);return}return this._value()},values:function(ad,ag){var af,ac,ae;if(arguments.length>1){this.options.values[ad]=this._trimAlignValue(ag);this._refreshValue();this._change(null,ad);return}if(arguments.length){if(G.isArray(arguments[0])){af=this.options.values;ac=arguments[0];for(ae=0;ae<af.length;ae+=1){af[ae]=this._trimAlignValue(ac[ae]);this._change(null,ae)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(ad)}else{return this.value()}}}else{return this._values()}},_setOption:function(ad,ae){var ac,af=0;if(ad==="range"&&this.options.range===true){if(ae==="min"){this.options.value=this._values(0);this.options.values=null}else{if(ae==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null}}}if(G.isArray(this.options.values)){af=this.options.values.length}if(ad==="disabled"){this.element.toggleClass("ui-state-disabled",!!ae)}this._super(ad,ae);switch(ad){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(ac=0;ac<af;ac+=1){this._change(null,ac)}this._animateOff=false;break;case"min":case"max":this._animateOff=true;this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_value:function(){var ac=this.options.value;ac=this._trimAlignValue(ac);return ac},_values:function(ac){var af,ae,ad;if(arguments.length){af=this.options.values[ac];af=this._trimAlignValue(af);return af}else{if(this.options.values&&this.options.values.length){ae=this.options.values.slice();for(ad=0;ad<ae.length;ad+=1){ae[ad]=this._trimAlignValue(ae[ad])}return ae}else{return[]}}},_trimAlignValue:function(af){if(af<=this._valueMin()){return this._valueMin()}if(af>=this._valueMax()){return this._valueMax()}var ac=(this.options.step>0)?this.options.step:1,ae=(af-this._valueMin())%ac,ad=af-ae;if(Math.abs(ae)*2>=ac){ad+=(ae>0)?ac:(-ac)}return parseFloat(ad.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var ah,ag,ak,ai,al,af=this.options.range,ae=this.options,aj=this,ad=(!this._animateOff)?ae.animate:false,ac={};if(this.options.values&&this.options.values.length){this.handles.each(function(am){ag=(aj.values(am)-aj._valueMin())/(aj._valueMax()-aj._valueMin())*100;ac[aj.orientation==="horizontal"?"left":"bottom"]=ag+"%";G(this).stop(1,1)[ad?"animate":"css"](ac,ae.animate);if(aj.options.range===true){if(aj.orientation==="horizontal"){if(am===0){aj.range.stop(1,1)[ad?"animate":"css"]({left:ag+"%"},ae.animate)}if(am===1){aj.range[ad?"animate":"css"]({width:(ag-ah)+"%"},{queue:false,duration:ae.animate})}}else{if(am===0){aj.range.stop(1,1)[ad?"animate":"css"]({bottom:(ag)+"%"},ae.animate)}if(am===1){aj.range[ad?"animate":"css"]({height:(ag-ah)+"%"},{queue:false,duration:ae.animate})}}}ah=ag})}else{ak=this.value();ai=this._valueMin();al=this._valueMax();ag=(al!==ai)?(ak-ai)/(al-ai)*100:0;ac[this.orientation==="horizontal"?"left":"bottom"]=ag+"%";this.handle.stop(1,1)[ad?"animate":"css"](ac,ae.animate);if(af==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[ad?"animate":"css"]({width:ag+"%"},ae.animate)}if(af==="max"&&this.orientation==="horizontal"){this.range[ad?"animate":"css"]({width:(100-ag)+"%"},{queue:false,duration:ae.animate})}if(af==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[ad?"animate":"css"]({height:ag+"%"},ae.animate)}if(af==="max"&&this.orientation==="vertical"){this.range[ad?"animate":"css"]({height:(100-ag)+"%"},{queue:false,duration:ae.animate})}}},_handleEvents:{keydown:function(ag){var ah,ae,ad,af,ac=G(ag.target).data("ui-slider-handle-index");switch(ag.keyCode){case G.ui.keyCode.HOME:case G.ui.keyCode.END:case G.ui.keyCode.PAGE_UP:case G.ui.keyCode.PAGE_DOWN:case G.ui.keyCode.UP:case G.ui.keyCode.RIGHT:case G.ui.keyCode.DOWN:case G.ui.keyCode.LEFT:ag.preventDefault();if(!this._keySliding){this._keySliding=true;G(ag.target).addClass("ui-state-active");ah=this._start(ag,ac);if(ah===false){return}}break}af=this.options.step;if(this.options.values&&this.options.values.length){ae=ad=this.values(ac)}else{ae=ad=this.value()}switch(ag.keyCode){case G.ui.keyCode.HOME:ad=this._valueMin();break;case G.ui.keyCode.END:ad=this._valueMax();break;case G.ui.keyCode.PAGE_UP:ad=this._trimAlignValue(ae+((this._valueMax()-this._valueMin())/this.numPages));break;case G.ui.keyCode.PAGE_DOWN:ad=this._trimAlignValue(ae-((this._valueMax()-this._valueMin())/this.numPages));break;case G.ui.keyCode.UP:case G.ui.keyCode.RIGHT:if(ae===this._valueMax()){return}ad=this._trimAlignValue(ae+af);break;case G.ui.keyCode.DOWN:case G.ui.keyCode.LEFT:if(ae===this._valueMin()){return}ad=this._trimAlignValue(ae-af);break}this._slide(ag,ac,ad)},keyup:function(ad){var ac=G(ad.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(ad,ac);this._change(ad,ac);G(ad.target).removeClass("ui-state-active")}}}});
/*!
 * jQuery UI Sortable 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/sortable/
 */
;var y=G.widget("ui.sortable",G.ui.mouse,{version:"1.11.0",widgetEventPrefix:"sort",ready:false,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,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(ad,ac,ae){return(ad>=ac)&&(ad<(ac+ae))},_isFloating:function(ac){return(/left|right/).test(ac.css("float"))||(/inline|table-cell/).test(ac.css("display"))},_create:function(){var ac=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?ac.axis==="x"||this._isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(ac,ad){this._super(ac,ad);if(ac==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle");G.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle");this._mouseDestroy();for(var ac=this.items.length-1;ac>=0;ac--){this.items[ac].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(ae,af){var ac=null,ag=false,ad=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(ae);G(ae.target).parents().each(function(){if(G.data(this,ad.widgetName+"-item")===ad){ac=G(this);return false}});if(G.data(ae.target,ad.widgetName+"-item")===ad){ac=G(ae.target)}if(!ac){return false}if(this.options.handle&&!af){G(this.options.handle,ac).find("*").addBack().each(function(){if(this===ae.target){ag=true}});if(!ag){return false}}this.currentItem=ac;this._removeCurrentsFromItems();return true},_mouseStart:function(af,ag,ad){var ae,ac,ah=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(af);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};G.extend(this.offset,{click:{left:af.pageX-this.offset.left,top:af.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(af);this.originalPageX=af.pageX;this.originalPageY=af.pageY;(ah.cursorAt&&this._adjustOffsetFromHelper(ah.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(ah.containment){this._setContainment()}if(ah.cursor&&ah.cursor!=="auto"){ac=this.document.find("body");this.storedCursor=ac.css("cursor");ac.css("cursor",ah.cursor);this.storedStylesheet=G("<style>*{ cursor: "+ah.cursor+" !important; }</style>").appendTo(ac)}if(ah.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",ah.opacity)}if(ah.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",ah.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",af,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!ad){for(ae=this.containers.length-1;ae>=0;ae--){this.containers[ae]._trigger("activate",af,this._uiHash(this))}}if(G.ui.ddmanager){G.ui.ddmanager.current=this}if(G.ui.ddmanager&&!ah.dropBehaviour){G.ui.ddmanager.prepareOffsets(this,af)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(af);return true},_mouseDrag:function(ag){var ae,af,ad,ai,ah=this.options,ac=false;this.position=this._generatePosition(ag);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-ag.pageY<ah.scrollSensitivity){this.scrollParent[0].scrollTop=ac=this.scrollParent[0].scrollTop+ah.scrollSpeed}else{if(ag.pageY-this.overflowOffset.top<ah.scrollSensitivity){this.scrollParent[0].scrollTop=ac=this.scrollParent[0].scrollTop-ah.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-ag.pageX<ah.scrollSensitivity){this.scrollParent[0].scrollLeft=ac=this.scrollParent[0].scrollLeft+ah.scrollSpeed}else{if(ag.pageX-this.overflowOffset.left<ah.scrollSensitivity){this.scrollParent[0].scrollLeft=ac=this.scrollParent[0].scrollLeft-ah.scrollSpeed}}}else{if(ag.pageY-G(document).scrollTop()<ah.scrollSensitivity){ac=G(document).scrollTop(G(document).scrollTop()-ah.scrollSpeed)}else{if(G(window).height()-(ag.pageY-G(document).scrollTop())<ah.scrollSensitivity){ac=G(document).scrollTop(G(document).scrollTop()+ah.scrollSpeed)}}if(ag.pageX-G(document).scrollLeft()<ah.scrollSensitivity){ac=G(document).scrollLeft(G(document).scrollLeft()-ah.scrollSpeed)}else{if(G(window).width()-(ag.pageX-G(document).scrollLeft())<ah.scrollSensitivity){ac=G(document).scrollLeft(G(document).scrollLeft()+ah.scrollSpeed)}}}if(ac!==false&&G.ui.ddmanager&&!ah.dropBehaviour){G.ui.ddmanager.prepareOffsets(this,ag)}}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(ae=this.items.length-1;ae>=0;ae--){af=this.items[ae];ad=af.item[0];ai=this._intersectsWithPointer(af);if(!ai){continue}if(af.instance!==this.currentContainer){continue}if(ad!==this.currentItem[0]&&this.placeholder[ai===1?"next":"prev"]()[0]!==ad&&!G.contains(this.placeholder[0],ad)&&(this.options.type==="semi-dynamic"?!G.contains(this.element[0],ad):true)){this.direction=ai===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(af)){this._rearrange(ag,af)}else{break}this._trigger("change",ag,this._uiHash());break}}this._contactContainers(ag);if(G.ui.ddmanager){G.ui.ddmanager.drag(this,ag)}this._trigger("sort",ag,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(ae,ag){if(!ae){return}if(G.ui.ddmanager&&!this.options.dropBehaviour){G.ui.ddmanager.drop(this,ae)}if(this.options.revert){var ad=this,ah=this.placeholder.offset(),ac=this.options.axis,af={};if(!ac||ac==="x"){af.left=ah.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!ac||ac==="y"){af.top=ah.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;G(this.helper).animate(af,parseInt(this.options.revert,10)||500,function(){ad._clear(ae)})}else{this._clear(ae,ag)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var ac=this.containers.length-1;ac>=0;ac--){this.containers[ac]._trigger("deactivate",null,this._uiHash(this));if(this.containers[ac].containerCache.over){this.containers[ac]._trigger("out",null,this._uiHash(this));this.containers[ac].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}G.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){G(this.domPosition.prev).after(this.currentItem)}else{G(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(ae){var ac=this._getItemsAsjQuery(ae&&ae.connected),ad=[];ae=ae||{};G(ac).each(function(){var af=(G(ae.item||this).attr(ae.attribute||"id")||"").match(ae.expression||(/(.+)[\-=_](.+)/));if(af){ad.push((ae.key||af[1]+"[]")+"="+(ae.key&&ae.expression?af[1]:af[2]))}});if(!ad.length&&ae.key){ad.push(ae.key+"=")}return ad.join("&")},toArray:function(ae){var ac=this._getItemsAsjQuery(ae&&ae.connected),ad=[];ae=ae||{};ac.each(function(){ad.push(G(ae.item||this).attr(ae.attribute||"id")||"")});return ad},_intersectsWith:function(an){var ae=this.positionAbs.left,ad=ae+this.helperProportions.width,al=this.positionAbs.top,ak=al+this.helperProportions.height,af=an.left,ac=af+an.width,ao=an.top,aj=ao+an.height,ap=this.offset.click.top,ai=this.offset.click.left,ah=(this.options.axis==="x")||((al+ap)>ao&&(al+ap)<aj),am=(this.options.axis==="y")||((ae+ai)>af&&(ae+ai)<ac),ag=ah&&am;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>an[this.floating?"width":"height"])){return ag}else{return(af<ae+(this.helperProportions.width/2)&&ad-(this.helperProportions.width/2)<ac&&ao<al+(this.helperProportions.height/2)&&ak-(this.helperProportions.height/2)<aj)}},_intersectsWithPointer:function(ae){var af=(this.options.axis==="x")||this._isOverAxis(this.positionAbs.top+this.offset.click.top,ae.top,ae.height),ad=(this.options.axis==="y")||this._isOverAxis(this.positionAbs.left+this.offset.click.left,ae.left,ae.width),ah=af&&ad,ac=this._getDragVerticalDirection(),ag=this._getDragHorizontalDirection();if(!ah){return false}return this.floating?(((ag&&ag==="right")||ac==="down")?2:1):(ac&&(ac==="down"?2:1))},_intersectsWithSides:function(af){var ad=this._isOverAxis(this.positionAbs.top+this.offset.click.top,af.top+(af.height/2),af.height),ae=this._isOverAxis(this.positionAbs.left+this.offset.click.left,af.left+(af.width/2),af.width),ac=this._getDragVerticalDirection(),ag=this._getDragHorizontalDirection();if(this.floating&&ag){return((ag==="right"&&ae)||(ag==="left"&&!ae))}else{return ac&&((ac==="down"&&ad)||(ac==="up"&&!ad))}},_getDragVerticalDirection:function(){var ac=this.positionAbs.top-this.lastPositionAbs.top;return ac!==0&&(ac>0?"down":"up")},_getDragHorizontalDirection:function(){var ac=this.positionAbs.left-this.lastPositionAbs.left;return ac!==0&&(ac>0?"right":"left")},refresh:function(ac){this._refreshItems(ac);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var ac=this.options;return ac.connectWith.constructor===String?[ac.connectWith]:ac.connectWith},_getItemsAsjQuery:function(ac){var ae,ad,aj,ag,ah=[],af=[],ai=this._connectWith();if(ai&&ac){for(ae=ai.length-1;ae>=0;ae--){aj=G(ai[ae]);for(ad=aj.length-1;ad>=0;ad--){ag=G.data(aj[ad],this.widgetFullName);if(ag&&ag!==this&&!ag.options.disabled){af.push([G.isFunction(ag.options.items)?ag.options.items.call(ag.element):G(ag.options.items,ag.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),ag])}}}}af.push([G.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):G(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function ak(){ah.push(this)}for(ae=af.length-1;ae>=0;ae--){af[ae][0].each(ak)}return G(ah)},_removeCurrentsFromItems:function(){var ac=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=G.grep(this.items,function(ae){for(var ad=0;ad<ac.length;ad++){if(ac[ad]===ae.item[0]){return false}}return true})},_refreshItems:function(ac){this.items=[];this.containers=[this];var ag,ae,al,ah,ak,ad,an,am,ai=this.items,af=[[G.isFunction(this.options.items)?this.options.items.call(this.element[0],ac,{item:this.currentItem}):G(this.options.items,this.element),this]],aj=this._connectWith();if(aj&&this.ready){for(ag=aj.length-1;ag>=0;ag--){al=G(aj[ag]);for(ae=al.length-1;ae>=0;ae--){ah=G.data(al[ae],this.widgetFullName);if(ah&&ah!==this&&!ah.options.disabled){af.push([G.isFunction(ah.options.items)?ah.options.items.call(ah.element[0],ac,{item:this.currentItem}):G(ah.options.items,ah.element),ah]);this.containers.push(ah)}}}}for(ag=af.length-1;ag>=0;ag--){ak=af[ag][1];ad=af[ag][0];for(ae=0,am=ad.length;ae<am;ae++){an=G(ad[ae]);an.data(this.widgetName+"-item",ak);ai.push({item:an,instance:ak,width:0,height:0,left:0,top:0})}}},refreshPositions:function(ac){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}var ae,af,ad,ag;for(ae=this.items.length-1;ae>=0;ae--){af=this.items[ae];if(af.instance!==this.currentContainer&&this.currentContainer&&af.item[0]!==this.currentItem[0]){continue}ad=this.options.toleranceElement?G(this.options.toleranceElement,af.item):af.item;if(!ac){af.width=ad.outerWidth();af.height=ad.outerHeight()}ag=ad.offset();af.left=ag.left;af.top=ag.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(ae=this.containers.length-1;ae>=0;ae--){ag=this.containers[ae].element.offset();this.containers[ae].containerCache.left=ag.left;this.containers[ae].containerCache.top=ag.top;this.containers[ae].containerCache.width=this.containers[ae].element.outerWidth();this.containers[ae].containerCache.height=this.containers[ae].element.outerHeight()}}return this},_createPlaceholder:function(ad){ad=ad||this;var ac,ae=ad.options;if(!ae.placeholder||ae.placeholder.constructor===String){ac=ae.placeholder;ae.placeholder={element:function(){var ag=ad.currentItem[0].nodeName.toLowerCase(),af=G("<"+ag+">",ad.document[0]).addClass(ac||ad.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(ag==="tr"){ad.currentItem.children().each(function(){G("<td>&#160;</td>",ad.document[0]).attr("colspan",G(this).attr("colspan")||1).appendTo(af)})}else{if(ag==="img"){af.attr("src",ad.currentItem.attr("src"))}}if(!ac){af.css("visibility","hidden")}return af},update:function(af,ag){if(ac&&!ae.forcePlaceholderSize){return}if(!ag.height()){ag.height(ad.currentItem.innerHeight()-parseInt(ad.currentItem.css("paddingTop")||0,10)-parseInt(ad.currentItem.css("paddingBottom")||0,10))}if(!ag.width()){ag.width(ad.currentItem.innerWidth()-parseInt(ad.currentItem.css("paddingLeft")||0,10)-parseInt(ad.currentItem.css("paddingRight")||0,10))}}}}ad.placeholder=G(ae.placeholder.element.call(ad.element,ad.currentItem));ad.currentItem.after(ad.placeholder);ae.placeholder.update(ad,ad.placeholder)},_contactContainers:function(ac){var ah,af,al,ai,aj,an,ao,ag,ak,ae,ad=null,am=null;for(ah=this.containers.length-1;ah>=0;ah--){if(G.contains(this.currentItem[0],this.containers[ah].element[0])){continue}if(this._intersectsWith(this.containers[ah].containerCache)){if(ad&&G.contains(this.containers[ah].element[0],ad.element[0])){continue}ad=this.containers[ah];am=ah}else{if(this.containers[ah].containerCache.over){this.containers[ah]._trigger("out",ac,this._uiHash(this));this.containers[ah].containerCache.over=0}}}if(!ad){return}if(this.containers.length===1){if(!this.containers[am].containerCache.over){this.containers[am]._trigger("over",ac,this._uiHash(this));this.containers[am].containerCache.over=1}}else{al=10000;ai=null;ak=ad.floating||this._isFloating(this.currentItem);aj=ak?"left":"top";an=ak?"width":"height";ae=ak?"clientX":"clientY";for(af=this.items.length-1;af>=0;af--){if(!G.contains(this.containers[am].element[0],this.items[af].item[0])){continue}if(this.items[af].item[0]===this.currentItem[0]){continue}ao=this.items[af].item.offset()[aj];ag=false;if(ac[ae]-ao>this.items[af][an]/2){ag=true}if(Math.abs(ac[ae]-ao)<al){al=Math.abs(ac[ae]-ao);ai=this.items[af];this.direction=ag?"up":"down"}}if(!ai&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[am]){return}ai?this._rearrange(ac,ai,null,true):this._rearrange(ac,null,this.containers[am].element,true);this._trigger("change",ac,this._uiHash());this.containers[am]._trigger("change",ac,this._uiHash(this));this.currentContainer=this.containers[am];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[am]._trigger("over",ac,this._uiHash(this));this.containers[am].containerCache.over=1}},_createHelper:function(ad){var ae=this.options,ac=G.isFunction(ae.helper)?G(ae.helper.apply(this.element[0],[ad,this.currentItem])):(ae.helper==="clone"?this.currentItem.clone():this.currentItem);if(!ac.parents("body").length){G(ae.appendTo!=="parent"?ae.appendTo:this.currentItem[0].parentNode)[0].appendChild(ac[0])}if(ac[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(!ac[0].style.width||ae.forceHelperSize){ac.width(this.currentItem.width())}if(!ac[0].style.height||ae.forceHelperSize){ac.height(this.currentItem.height())}return ac},_adjustOffsetFromHelper:function(ac){if(typeof ac==="string"){ac=ac.split(" ")}if(G.isArray(ac)){ac={left:+ac[0],top:+ac[1]||0}}if("left" in ac){this.offset.click.left=ac.left+this.margins.left}if("right" in ac){this.offset.click.left=this.helperProportions.width-ac.right+this.margins.left}if("top" in ac){this.offset.click.top=ac.top+this.margins.top}if("bottom" in ac){this.offset.click.top=this.helperProportions.height-ac.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var ac=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&G.contains(this.scrollParent[0],this.offsetParent[0])){ac.left+=this.scrollParent.scrollLeft();ac.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===document.body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&G.ui.ie)){ac={top:0,left:0}}return{top:ac.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:ac.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var ac=this.currentItem.position();return{top:ac.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:ac.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 ad,af,ac,ae=this.options;if(ae.containment==="parent"){ae.containment=this.helper[0].parentNode}if(ae.containment==="document"||ae.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,G(ae.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(G(ae.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(ae.containment)){ad=G(ae.containment)[0];af=G(ae.containment).offset();ac=(G(ad).css("overflow")!=="hidden");this.containment=[af.left+(parseInt(G(ad).css("borderLeftWidth"),10)||0)+(parseInt(G(ad).css("paddingLeft"),10)||0)-this.margins.left,af.top+(parseInt(G(ad).css("borderTopWidth"),10)||0)+(parseInt(G(ad).css("paddingTop"),10)||0)-this.margins.top,af.left+(ac?Math.max(ad.scrollWidth,ad.offsetWidth):ad.offsetWidth)-(parseInt(G(ad).css("borderLeftWidth"),10)||0)-(parseInt(G(ad).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,af.top+(ac?Math.max(ad.scrollHeight,ad.offsetHeight):ad.offsetHeight)-(parseInt(G(ad).css("borderTopWidth"),10)||0)-(parseInt(G(ad).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(ae,ag){if(!ag){ag=this.position}var ad=ae==="absolute"?1:-1,ac=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&G.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,af=(/(html|body)/i).test(ac[0].tagName);return{top:(ag.top+this.offset.relative.top*ad+this.offset.parent.top*ad-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(af?0:ac.scrollTop()))*ad)),left:(ag.left+this.offset.relative.left*ad+this.offset.parent.left*ad-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():af?0:ac.scrollLeft())*ad))}},_generatePosition:function(af){var ah,ag,ai=this.options,ae=af.pageX,ad=af.pageY,ac=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&G.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,aj=(/(html|body)/i).test(ac[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}if(this.originalPosition){if(this.containment){if(af.pageX-this.offset.click.left<this.containment[0]){ae=this.containment[0]+this.offset.click.left}if(af.pageY-this.offset.click.top<this.containment[1]){ad=this.containment[1]+this.offset.click.top}if(af.pageX-this.offset.click.left>this.containment[2]){ae=this.containment[2]+this.offset.click.left}if(af.pageY-this.offset.click.top>this.containment[3]){ad=this.containment[3]+this.offset.click.top}}if(ai.grid){ah=this.originalPageY+Math.round((ad-this.originalPageY)/ai.grid[1])*ai.grid[1];ad=this.containment?((ah-this.offset.click.top>=this.containment[1]&&ah-this.offset.click.top<=this.containment[3])?ah:((ah-this.offset.click.top>=this.containment[1])?ah-ai.grid[1]:ah+ai.grid[1])):ah;ag=this.originalPageX+Math.round((ae-this.originalPageX)/ai.grid[0])*ai.grid[0];ae=this.containment?((ag-this.offset.click.left>=this.containment[0]&&ag-this.offset.click.left<=this.containment[2])?ag:((ag-this.offset.click.left>=this.containment[0])?ag-ai.grid[0]:ag+ai.grid[0])):ag}}return{top:(ad-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(aj?0:ac.scrollTop())))),left:(ae-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():aj?0:ac.scrollLeft())))}},_rearrange:function(ag,af,ad,ae){ad?ad[0].appendChild(this.placeholder[0]):af.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?af.item[0]:af.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var ac=this.counter;this._delay(function(){if(ac===this.counter){this.refreshPositions(!ae)}})},_clear:function(ad,af){this.reverting=false;var ac,ag=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(ac in this._storedCSS){if(this._storedCSS[ac]==="auto"||this._storedCSS[ac]==="static"){this._storedCSS[ac]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!af){ag.push(function(ah){this._trigger("receive",ah,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])&&!af){ag.push(function(ah){this._trigger("update",ah,this._uiHash())})}if(this!==this.currentContainer){if(!af){ag.push(function(ah){this._trigger("remove",ah,this._uiHash())});ag.push((function(ah){return function(ai){ah._trigger("receive",ai,this._uiHash(this))}}).call(this,this.currentContainer));ag.push((function(ah){return function(ai){ah._trigger("update",ai,this._uiHash(this))}}).call(this,this.currentContainer))}}function ae(aj,ah,ai){return function(ak){ai._trigger(aj,ak,ah._uiHash(ah))}}for(ac=this.containers.length-1;ac>=0;ac--){if(!af){ag.push(ae("deactivate",this,this.containers[ac]))}if(this.containers[ac].containerCache.over){ag.push(ae("out",this,this.containers[ac]));this.containers[ac].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(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(!af){this._trigger("beforeStop",ad,this._uiHash());for(ac=0;ac<ag.length;ac++){ag[ac].call(this,ad)}this._trigger("stop",ad,this._uiHash())}this.fromOutside=false;return false}if(!af){this._trigger("beforeStop",ad,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null;if(!af){for(ac=0;ac<ag.length;ac++){ag[ac].call(this,ad)}this._trigger("stop",ad,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(G.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(ac){var ad=ac||this;return{helper:ad.helper,placeholder:ad.placeholder||G([]),position:ad.position,originalPosition:ad.originalPosition,offset:ad.positionAbs,item:ad.currentItem,sender:ac?ac.element:null}}});
/*!
 * jQuery UI Spinner 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/spinner/
 */
;function s(ac){return function(){var ad=this.element.val();ac.apply(this,arguments);this._refresh();if(ad!==this.element.val()){this._trigger("change")}}}var I=G.widget("ui.spinner",{version:"1.11.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);if(this.value()!==""){this._value(this.element.val(),true)}this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var ac={},ad=this.element;G.each(["min","max","step"],function(ae,af){var ag=ad.attr(af);if(ag!==undefined&&ag.length){ac[af]=ag}});return ac},_events:{keydown:function(ac){if(this._start(ac)&&this._keydown(ac)){ac.preventDefault()}},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(ac){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger("change",ac)}},mousewheel:function(ac,ad){if(!ad){return}if(!this.spinning&&!this._start(ac)){return false}this._spin((ad>0?1:-1)*this.options.step,ac);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(ac)}},100);ac.preventDefault()},"mousedown .ui-spinner-button":function(ad){var ac;ac=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function ae(){var af=this.element[0]===this.document[0].activeElement;if(!af){this.element.focus();this.previous=ac;this._delay(function(){this.previous=ac})}}ad.preventDefault();ae.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;ae.call(this)});if(this._start(ad)===false){return}this._repeat(null,G(ad.currentTarget).hasClass("ui-spinner-up")?1:-1,ad)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(ac){if(!G(ac.currentTarget).hasClass("ui-state-active")){return}if(this._start(ac)===false){return false}this._repeat(null,G(ac.currentTarget).hasClass("ui-spinner-up")?1:-1,ac)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var ac=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=ac.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");if(this.buttons.height()>Math.ceil(ac.height()*0.5)&&ac.height()>0){ac.height(ac.height())}if(this.options.disabled){this.disable()}},_keydown:function(ad){var ac=this.options,ae=G.ui.keyCode;switch(ad.keyCode){case ae.UP:this._repeat(null,1,ad);return true;case ae.DOWN:this._repeat(null,-1,ad);return true;case ae.PAGE_UP:this._repeat(null,ac.page,ad);return true;case ae.PAGE_DOWN:this._repeat(null,-ac.page,ad);return true}return false},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(ac){if(!this.spinning&&this._trigger("start",ac)===false){return false}if(!this.counter){this.counter=1}this.spinning=true;return true},_repeat:function(ad,ac,ae){ad=ad||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,ac,ae)},ad);this._spin(ac*this.options.step,ae)},_spin:function(ad,ac){var ae=this.value()||0;if(!this.counter){this.counter=1}ae=this._adjustValue(ae+ad*this._increment(this.counter));if(!this.spinning||this._trigger("spin",ac,{value:ae})!==false){this._value(ae);this.counter++}},_increment:function(ac){var ad=this.options.incremental;if(ad){return G.isFunction(ad)?ad(ac):Math.floor(ac*ac*ac/50000-ac*ac/500+17*ac/200+1)}return 1},_precision:function(){var ac=this._precisionOf(this.options.step);if(this.options.min!==null){ac=Math.max(ac,this._precisionOf(this.options.min))}return ac},_precisionOf:function(ad){var ae=ad.toString(),ac=ae.indexOf(".");return ac===-1?0:ae.length-ac-1},_adjustValue:function(ae){var ad,af,ac=this.options;ad=ac.min!==null?ac.min:0;af=ae-ad;af=Math.round(af/ac.step)*ac.step;ae=ad+af;ae=parseFloat(ae.toFixed(this._precision()));if(ac.max!==null&&ae>ac.max){return ac.max}if(ac.min!==null&&ae<ac.min){return ac.min}return ae},_stop:function(ac){if(!this.spinning){return}clearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger("stop",ac)},_setOption:function(ac,ad){if(ac==="culture"||ac==="numberFormat"){var ae=this._parse(this.element.val());this.options[ac]=ad;this.element.val(this._format(ae));return}if(ac==="max"||ac==="min"||ac==="step"){if(typeof ad==="string"){ad=this._parse(ad)}}if(ac==="icons"){this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(ad.up);this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(ad.down)}this._super(ac,ad);if(ac==="disabled"){this.widget().toggleClass("ui-state-disabled",!!ad);this.element.prop("disabled",!!ad);this.buttons.button(ad?"disable":"enable")}},_setOptions:s(function(ac){this._super(ac)}),_parse:function(ac){if(typeof ac==="string"&&ac!==""){ac=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(ac,10,this.options.culture):+ac}return ac===""||isNaN(ac)?null:ac},_format:function(ac){if(ac===""){return""}return window.Globalize&&this.options.numberFormat?Globalize.format(ac,this.options.numberFormat,this.options.culture):ac},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var ac=this.value();if(ac===null){return false}return ac===this._adjustValue(ac)},_value:function(ae,ac){var ad;if(ae!==""){ad=this._parse(ae);if(ad!==null){if(!ac){ad=this._adjustValue(ad)}ae=this._format(ad)}}this.element.val(ae);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",false).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:s(function(ac){this._stepUp(ac)}),_stepUp:function(ac){if(this._start()){this._spin((ac||1)*this.options.step);this._stop()}},stepDown:s(function(ac){this._stepDown(ac)}),_stepDown:function(ac){if(this._start()){this._spin((ac||1)*-this.options.step);this._stop()}},pageUp:s(function(ac){this._stepUp((ac||1)*this.options.page)}),pageDown:s(function(ac){this._stepDown((ac||1)*this.options.page)}),value:function(ac){if(!arguments.length){return this._parse(this.element.val())}s(this._value).call(this,ac)},widget:function(){return this.uiSpinner}});
/*!
 * jQuery UI Tabs 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/tabs/
 */
;var j=G.widget("ui.tabs",{version:"1.11.0",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(function(){var ac=/#.*$/;return function(ae){var ag,af;ae=ae.cloneNode(false);ag=ae.href.replace(ac,"");af=location.href.replace(ac,"");try{ag=decodeURIComponent(ag)}catch(ad){}try{af=decodeURIComponent(af)}catch(ad){}return ae.hash.length>1&&ag===af}})(),_create:function(){var ad=this,ac=this.options;this.running=false;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",ac.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(ae){if(G(this).is(".ui-state-disabled")){ae.preventDefault()}}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if(G(this).closest("li").is(".ui-state-disabled")){this.blur()}});this._processTabs();ac.active=this._initialActive();if(G.isArray(ac.disabled)){ac.disabled=G.unique(ac.disabled.concat(G.map(this.tabs.filter(".ui-state-disabled"),function(ae){return ad.tabs.index(ae)}))).sort()}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(ac.active)}else{this.active=G()}this._refresh();if(this.active.length){this.load(ac.active)}},_initialActive:function(){var ad=this.options.active,ac=this.options.collapsible,ae=location.hash.substring(1);if(ad===null){if(ae){this.tabs.each(function(af,ag){if(G(ag).attr("aria-controls")===ae){ad=af;return false}})}if(ad===null){ad=this.tabs.index(this.tabs.filter(".ui-tabs-active"))}if(ad===null||ad===-1){ad=this.tabs.length?0:false}}if(ad!==false){ad=this.tabs.index(this.tabs.eq(ad));if(ad===-1){ad=ac?false:0}}if(!ac&&ad===false&&this.anchors.length){ad=0}return ad},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?G():this._getPanelForTab(this.active)}},_tabKeydown:function(ae){var ad=G(this.document[0].activeElement).closest("li"),ac=this.tabs.index(ad),af=true;if(this._handlePageNav(ae)){return}switch(ae.keyCode){case G.ui.keyCode.RIGHT:case G.ui.keyCode.DOWN:ac++;break;case G.ui.keyCode.UP:case G.ui.keyCode.LEFT:af=false;ac--;break;case G.ui.keyCode.END:ac=this.anchors.length-1;break;case G.ui.keyCode.HOME:ac=0;break;case G.ui.keyCode.SPACE:ae.preventDefault();clearTimeout(this.activating);this._activate(ac);return;case G.ui.keyCode.ENTER:ae.preventDefault();clearTimeout(this.activating);this._activate(ac===this.options.active?false:ac);return;default:return}ae.preventDefault();clearTimeout(this.activating);ac=this._focusNextTab(ac,af);if(!ae.ctrlKey){ad.attr("aria-selected","false");this.tabs.eq(ac).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",ac)},this.delay)}},_panelKeydown:function(ac){if(this._handlePageNav(ac)){return}if(ac.ctrlKey&&ac.keyCode===G.ui.keyCode.UP){ac.preventDefault();this.active.focus()}},_handlePageNav:function(ac){if(ac.altKey&&ac.keyCode===G.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(ac.altKey&&ac.keyCode===G.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(ad,ae){var ac=this.tabs.length-1;function af(){if(ad>ac){ad=0}if(ad<0){ad=ac}return ad}while(G.inArray(af(),this.options.disabled)!==-1){ad=ae?ad+1:ad-1}return ad},_focusNextTab:function(ac,ad){ac=this._findNextTab(ac,ad);this.tabs.eq(ac).focus();return ac},_setOption:function(ac,ad){if(ac==="active"){this._activate(ad);return}if(ac==="disabled"){this._setupDisabled(ad);return}this._super(ac,ad);if(ac==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",ad);if(!ad&&this.options.active===false){this._activate(0)}}if(ac==="event"){this._setupEvents(ad)}if(ac==="heightStyle"){this._setupHeightStyle(ad)}},_sanitizeSelector:function(ac){return ac?ac.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var ad=this.options,ac=this.tablist.children(":has(a[href])");ad.disabled=G.map(ac.filter(".ui-state-disabled"),function(ae){return ac.index(ae)});this._processTabs();if(ad.active===false||!this.anchors.length){ad.active=false;this.active=G()}else{if(this.active.length&&!G.contains(this.tablist[0],this.active[0])){if(this.tabs.length===ad.disabled.length){ad.active=false;this.active=G()}else{this._activate(this._findNextTab(Math.max(0,ad.active-1),false))}}else{ad.active=this.tabs.index(this.active)}}this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0});this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})}},_processTabs:function(){var ac=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return G("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=G();this.anchors.each(function(ai,ag){var ad,ae,ah,af=G(ag).uniqueId().attr("id"),aj=G(ag).closest("li"),ak=aj.attr("aria-controls");if(ac._isLocal(ag)){ad=ag.hash;ah=ad.substring(1);ae=ac.element.find(ac._sanitizeSelector(ad))}else{ah=aj.attr("aria-controls")||G({}).uniqueId()[0].id;ad="#"+ah;ae=ac.element.find(ad);if(!ae.length){ae=ac._createPanel(ah);ae.insertAfter(ac.panels[ai-1]||ac.tablist)}ae.attr("aria-live","polite")}if(ae.length){ac.panels=ac.panels.add(ae)}if(ak){aj.data("ui-tabs-aria-controls",ak)}aj.attr({"aria-controls":ah,"aria-labelledby":af});ae.attr("aria-labelledby",af)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(ac){return G("<div>").attr("id",ac).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true)},_setupDisabled:function(ae){if(G.isArray(ae)){if(!ae.length){ae=false}else{if(ae.length===this.anchors.length){ae=true}}}for(var ad=0,ac;(ac=this.tabs[ad]);ad++){if(ae===true||G.inArray(ad,ae)!==-1){G(ac).addClass("ui-state-disabled").attr("aria-disabled","true")}else{G(ac).removeClass("ui-state-disabled").removeAttr("aria-disabled")}}this.options.disabled=ae},_setupEvents:function(ad){var ac={};if(ad){G.each(ad.split(" "),function(af,ae){ac[ae]="_eventHandler"})}this._off(this.anchors.add(this.tabs).add(this.panels));this._on(true,this.anchors,{click:function(ae){ae.preventDefault()}});this._on(this.anchors,ac);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(ac){var ae,ad=this.element.parent();if(ac==="fill"){ae=ad.height();ae-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var ag=G(this),af=ag.css("position");if(af==="absolute"||af==="fixed"){return}ae-=ag.outerHeight(true)});this.element.children().not(this.panels).each(function(){ae-=G(this).outerHeight(true)});this.panels.each(function(){G(this).height(Math.max(0,ae-G(this).innerHeight()+G(this).height()))}).css("overflow","auto")}else{if(ac==="auto"){ae=0;this.panels.each(function(){ae=Math.max(ae,G(this).height("").height())}).height(ae)}}},_eventHandler:function(ac){var al=this.options,ag=this.active,ah=G(ac.currentTarget),af=ah.closest("li"),aj=af[0]===ag[0],ad=aj&&al.collapsible,ae=ad?G():this._getPanelForTab(af),ai=!ag.length?G():this._getPanelForTab(ag),ak={oldTab:ag,oldPanel:ai,newTab:ad?G():af,newPanel:ae};ac.preventDefault();if(af.hasClass("ui-state-disabled")||af.hasClass("ui-tabs-loading")||this.running||(aj&&!al.collapsible)||(this._trigger("beforeActivate",ac,ak)===false)){return}al.active=ad?false:this.tabs.index(af);this.active=aj?G():af;if(this.xhr){this.xhr.abort()}if(!ai.length&&!ae.length){G.error("jQuery UI Tabs: Mismatching fragment identifier.")}if(ae.length){this.load(this.tabs.index(af),ac)}this._toggle(ac,ak)},_toggle:function(ai,ah){var ag=this,ac=ah.newPanel,af=ah.oldPanel;this.running=true;function ae(){ag.running=false;ag._trigger("activate",ai,ah)}function ad(){ah.newTab.closest("li").addClass("ui-tabs-active ui-state-active");if(ac.length&&ag.options.show){ag._show(ac,ag.options.show,ae)}else{ac.show();ae()}}if(af.length&&this.options.hide){this._hide(af,this.options.hide,function(){ah.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");ad()})}else{ah.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");af.hide();ad()}af.attr("aria-hidden","true");ah.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});if(ac.length&&af.length){ah.oldTab.attr("tabIndex",-1)}else{if(ac.length){this.tabs.filter(function(){return G(this).attr("tabIndex")===0}).attr("tabIndex",-1)}}ac.attr("aria-hidden","false");ah.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(ad){var ac,ae=this._findActive(ad);if(ae[0]===this.active[0]){return}if(!ae.length){ae=this.active}ac=ae.find(".ui-tabs-anchor")[0];this._eventHandler({target:ac,currentTarget:ac,preventDefault:G.noop})},_findActive:function(ac){return ac===false?G():this.tabs.eq(ac)},_getIndex:function(ac){if(typeof ac==="string"){ac=this.anchors.index(this.anchors.filter("[href$='"+ac+"']"))}return ac},_destroy:function(){if(this.xhr){this.xhr.abort()}this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){if(G.data(this,"ui-tabs-destroy")){G(this).remove()}else{G(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}});this.tabs.each(function(){var ac=G(this),ad=ac.data("ui-tabs-aria-controls");if(ad){ac.attr("aria-controls",ad).removeData("ui-tabs-aria-controls")}else{ac.removeAttr("aria-controls")}});this.panels.show();if(this.options.heightStyle!=="content"){this.panels.css("height","")}},enable:function(ac){var ad=this.options.disabled;if(ad===false){return}if(ac===undefined){ad=false}else{ac=this._getIndex(ac);if(G.isArray(ad)){ad=G.map(ad,function(ae){return ae!==ac?ae:null})}else{ad=G.map(this.tabs,function(ae,af){return af!==ac?af:null})}}this._setupDisabled(ad)},disable:function(ac){var ad=this.options.disabled;if(ad===true){return}if(ac===undefined){ad=true}else{ac=this._getIndex(ac);if(G.inArray(ac,ad)!==-1){return}if(G.isArray(ad)){ad=G.merge([ac],ad).sort()}else{ad=[ac]}}this._setupDisabled(ad)},load:function(ae,ai){ae=this._getIndex(ae);var ah=this,af=this.tabs.eq(ae),ad=af.find(".ui-tabs-anchor"),ac=this._getPanelForTab(af),ag={tab:af,panel:ac};if(this._isLocal(ad[0])){return}this.xhr=G.ajax(this._ajaxSettings(ad,ai,ag));if(this.xhr&&this.xhr.statusText!=="canceled"){af.addClass("ui-tabs-loading");ac.attr("aria-busy","true");this.xhr.success(function(aj){setTimeout(function(){ac.html(aj);ah._trigger("load",ai,ag)},1)}).complete(function(ak,aj){setTimeout(function(){if(aj==="abort"){ah.panels.stop(false,true)}af.removeClass("ui-tabs-loading");ac.removeAttr("aria-busy");if(ak===ah.xhr){delete ah.xhr}},1)})}},_ajaxSettings:function(ac,af,ae){var ad=this;return{url:ac.attr("href"),beforeSend:function(ah,ag){return ad._trigger("beforeLoad",af,G.extend({jqXHR:ah,ajaxSettings:ag},ae))}}},_getPanelForTab:function(ac){var ad=G(ac).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+ad))}});
/*!
 * jQuery UI Tooltip 1.11.0
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/tooltip/
 */
;var J=G.widget("ui.tooltip",{version:"1.11.0",options:{content:function(){var ac=G(this).attr("title")||"";return G("<a>").text(ac).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_addDescribedBy:function(ad,ae){var ac=(ad.attr("aria-describedby")||"").split(/\s+/);ac.push(ae);ad.data("ui-tooltip-id",ae).attr("aria-describedby",G.trim(ac.join(" ")))},_removeDescribedBy:function(ae){var af=ae.data("ui-tooltip-id"),ad=(ae.attr("aria-describedby")||"").split(/\s+/),ac=G.inArray(af,ad);if(ac!==-1){ad.splice(ac,1)}ae.removeData("ui-tooltip-id");ad=G.trim(ad.join(" "));if(ad){ae.attr("aria-describedby",ad)}else{ae.removeAttr("aria-describedby")}},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}this.liveRegion=G("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(ac,ae){var ad=this;if(ac==="disabled"){this[ae?"_disable":"_enable"]();this.options[ac]=ae;return}this._super(ac,ae);if(ac==="content"){G.each(this.tooltips,function(ag,af){ad._updateContent(af)})}},_disable:function(){var ac=this;G.each(this.tooltips,function(af,ad){var ae=G.Event("blur");ae.target=ae.currentTarget=ad[0];ac.close(ae,true)});this.element.find(this.options.items).addBack().each(function(){var ad=G(this);if(ad.is("[title]")){ad.data("ui-tooltip-title",ad.attr("title")).removeAttr("title")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var ac=G(this);if(ac.data("ui-tooltip-title")){ac.attr("title",ac.data("ui-tooltip-title"))}})},open:function(ad){var ac=this,ae=G(ad?ad.target:this.element).closest(this.options.items);if(!ae.length||ae.data("ui-tooltip-id")){return}if(ae.attr("title")){ae.data("ui-tooltip-title",ae.attr("title"))}ae.data("ui-tooltip-open",true);if(ad&&ad.type==="mouseover"){ae.parents().each(function(){var ag=G(this),af;if(ag.data("ui-tooltip-open")){af=G.Event("blur");af.target=af.currentTarget=this;ac.close(af,true)}if(ag.attr("title")){ag.uniqueId();ac.parents[this.id]={element:this,title:ag.attr("title")};ag.attr("title","")}})}this._updateContent(ae,ad)},_updateContent:function(ah,ag){var af,ac=this.options.content,ae=this,ad=ag?ag.type:null;if(typeof ac==="string"){return this._open(ag,ah,ac)}af=ac.call(ah[0],function(ai){if(!ah.data("ui-tooltip-open")){return}ae._delay(function(){if(ag){ag.type=ad}this._open(ag,ah,ai)})});if(af){this._open(ag,ah,af)}},_open:function(ac,af,ag){var ak,aj,ai,ad,ah=G.extend({},this.options.position);if(!ag){return}ak=this._find(af);if(ak.length){ak.find(".ui-tooltip-content").html(ag);return}if(af.is("[title]")){if(ac&&ac.type==="mouseover"){af.attr("title","")}else{af.removeAttr("title")}}ak=this._tooltip(af);this._addDescribedBy(af,ak.attr("id"));ak.find(".ui-tooltip-content").html(ag);this.liveRegion.children().hide();if(ag.clone){ad=ag.clone();ad.removeAttr("id").find("[id]").removeAttr("id")}else{ad=ag}G("<div>").html(ad).appendTo(this.liveRegion);function ae(al){ah.of=al;if(ak.is(":hidden")){return}ak.position(ah)}if(this.options.track&&ac&&/^mouse/.test(ac.type)){this._on(this.document,{mousemove:ae});ae(ac)}else{ak.position(G.extend({of:af},this.options.position))}ak.hide();this._show(ak,this.options.show);if(this.options.show&&this.options.show.delay){ai=this.delayedShow=setInterval(function(){if(ak.is(":visible")){ae(ah.of);clearInterval(ai)}},G.fx.interval)}this._trigger("open",ac,{tooltip:ak});aj={keyup:function(al){if(al.keyCode===G.ui.keyCode.ESCAPE){var am=G.Event(al);am.currentTarget=af[0];this.close(am,true)}}};if(af[0]!==this.element[0]){aj.remove=function(){this._removeTooltip(ak)}}if(!ac||ac.type==="mouseover"){aj.mouseleave="close"}if(!ac||ac.type==="focusin"){aj.focusout="close"}this._on(true,af,aj)},close:function(ad){var ac=this,af=G(ad?ad.currentTarget:this.element),ae=this._find(af);if(this.closing){return}clearInterval(this.delayedShow);if(af.data("ui-tooltip-title")&&!af.attr("title")){af.attr("title",af.data("ui-tooltip-title"))}this._removeDescribedBy(af);ae.stop(true);this._hide(ae,this.options.hide,function(){ac._removeTooltip(G(this))});af.removeData("ui-tooltip-open");this._off(af,"mouseleave focusout keyup");if(af[0]!==this.element[0]){this._off(af,"remove")}this._off(this.document,"mousemove");if(ad&&ad.type==="mouseleave"){G.each(this.parents,function(ah,ag){G(ag.element).attr("title",ag.title);delete ac.parents[ah]})}this.closing=true;this._trigger("close",ad,{tooltip:ae});this.closing=false},_tooltip:function(ac){var ad=G("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),ae=ad.uniqueId().attr("id");G("<div>").addClass("ui-tooltip-content").appendTo(ad);ad.appendTo(this.document[0].body);this.tooltips[ae]=ac;return ad},_find:function(ac){var ad=ac.data("ui-tooltip-id");return ad?G("#"+ad):G()},_removeTooltip:function(ac){ac.remove();delete this.tooltips[ac.attr("id")]},_destroy:function(){var ac=this;G.each(this.tooltips,function(af,ad){var ae=G.Event("blur");ae.target=ae.currentTarget=ad[0];ac.close(ae,true);G("#"+af).remove();if(ad.data("ui-tooltip-title")){if(!ad.attr("title")){ad.attr("title",ad.data("ui-tooltip-title"))}ad.removeData("ui-tooltip-title")}});this.liveRegion.remove()}})}));