/* jQuery UI - v1.13.2 - 2022-07-19 http://jqueryui.com Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/mouse.js, widgets/slider.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js Copyright jQuery Foundation and other contributors; Licensed MIT */ (function(e){"function"===typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function w(a){return null==a?a+"":"object"===typeof a?X[S.call(a)]||"object":typeof a}function B(a,b,c){var d=v[b.type]||{};if(null==a)return c||!b.def?null:b.def;a=d.floor?~~a:parseFloat(a);return isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:Math.min(d.max,Math.max(0,a))}function I(a){var b=H(),c=b._rgba=[];a=a.toLowerCase();P(R,function(d,f){d=(d=f.re.exec(a))&&f.parse(d);f=f.space||"rgba";if(d)return d=b[f](d), b[u[f].cache]=d[u[f].cache],c=b._rgba=d._rgba,!1});return c.length?("0,0,0,0"===c.join()&&A.extend(c,ba.transparent),b):ba[a]}function L(a,b,c){c=(c+1)%1;return 1>6*c?a+(b-a)*c*6:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}e.ui=e.ui||{};e.ui.version="1.13.2";var J=0,E=Array.prototype.hasOwnProperty,t=Array.prototype.slice;e.cleanData=function(a){return function(b){var c,d,f;for(f=0;null!=(d=b[f]);f++)(c=e._data(d,"events"))&&c.remove&&e(d).triggerHandler("remove");a(b)}}(e.cleanData);e.widget=function(a,b, c){var d={},f=a.split(".")[0];a=a.split(".")[1];var g=f+"-"+a;c||(c=b,b=e.Widget);Array.isArray(c)&&(c=e.extend.apply(null,[{}].concat(c)));e.expr.pseudos[g.toLowerCase()]=function(n){return!!e.data(n,g)};e[f]=e[f]||{};var h=e[f][a];var l=e[f][a]=function(n,r){if(!this||!this._createWidget)return new l(n,r);arguments.length&&this._createWidget(n,r)};e.extend(l,h,{version:c.version,_proto:e.extend({},c),_childConstructors:[]});var k=new b;k.options=e.widget.extend({},k.options);e.each(c,function(n, r){d[n]="function"!==typeof r?r:function(){function m(){return b.prototype[n].apply(this,arguments)}function p(q){return b.prototype[n].apply(this,q)}return function(){var q=this._super,x=this._superApply;this._super=m;this._superApply=p;var z=r.apply(this,arguments);this._super=q;this._superApply=x;return z}}()});l.prototype=e.widget.extend(k,{widgetEventPrefix:h?k.widgetEventPrefix||a:a},d,{constructor:l,namespace:f,widgetName:a,widgetFullName:g});h?(e.each(h._childConstructors,function(n,r){n= r.prototype;e.widget(n.namespace+"."+n.widgetName,l,r._proto)}),delete h._childConstructors):b._childConstructors.push(l);e.widget.bridge(a,l);return l};e.widget.extend=function(a){for(var b=t.call(arguments,1),c=0,d=b.length,f,g;cja?"left":0ka?"top":0d(f(ia),f(ka))?da.important="horizontal":da.important="vertical";m.using.call(this,ha,da)});Y.offset(e.extend(W,{using:V}))})};e.ui.position={fit:{left:function(m,p){var q=p.within,x=q.isWindow?q.scrollLeft:q.offset.left,z=q.width,C=m.left-p.collisionPosition.marginLeft;q=x-C;var D=C+p.collisionWidth-z-x;p.collisionWidth>z?0=D?(p=m.left+q+p.collisionWidth-z-x,m.left+=q-p):m.left=0=q?x:q>D?x+z-p.collisionWidth:x:m.left=0z?0=D?(p=m.top+q+p.collisionHeight-z-x,m.top+=q-p):m.top=0=q?x:q>D?x+z-p.collisionHeight:x:m.top=0q){if(p=m.left+D+M+N+p.collisionWidth-z-x,0>p||pq){if(p=m.top+D+M+N+p.collisionHeight-z-x,0>p||pdocument.documentMode)&&!a.button)return this._mouseUp(a);if(!a.which)if(a.originalEvent.altKey||a.originalEvent.ctrlKey||a.originalEvent.metaKey||a.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(a)}if(a.which|| a.button)this._mouseMoved=!0;if(this._mouseStarted)return this._mouseDrag(a),a.preventDefault();this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&((this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,a))?this._mouseDrag(a):this._mouseUp(a));return!this._mouseStarted},_mouseUp:function(a){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&& e.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);F=this.ignoreMissingWhich=!1;a.preventDefault()},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){}, _mouseCapture:function(){return!0}});e.ui.plugin={add:function(a,b,c){var d;a=e.ui[a].prototype;for(d in c)a.plugins[d]=a.plugins[d]||[],a.plugins[d].push([b,c[d]])},call:function(a,b,c,d){if((b=a.plugins[b])&&(d||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(d=0;d h[2]&&(f=h[2]+this.offset.click.left);a.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}c.grid&&(g=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,g=h?g-this.offset.click.top>=h[1]||g-this.offset.click.top>h[3]?g:g-this.offset.click.top>=h[1]?g-c.grid[1]:g+c.grid[1]:g,f=c.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,f=h?f-this.offset.click.left>=h[0]||f-this.offset.click.left> h[2]?f:f-this.offset.click.left>=h[0]?f-c.grid[0]:f+c.grid[0]:f);"y"===c.axis&&(f=this.originalPageX);"x"===c.axis&&(g=this.originalPageY)}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:d?0:this.offset.scroll.top),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:d?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper, "ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(a,b,c){c=c||this._uiHash();e.ui.plugin.call(this,a,[b,c,this],!0);/^(drag|start|stop)/.test(a)&&(this.positionAbs=this._convertPositionTo("absolute"),c.offset=this.positionAbs);return e.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position, originalPosition:this.originalPosition,offset:this.positionAbs}}});e.ui.plugin.add("draggable","connectToSortable",{start:function(a,b,c){var d=e.extend({},b,{item:c.element});c.sortables=[];e(c.options.connectToSortable).each(function(){var f=e(this).sortable("instance");f&&!f.options.disabled&&(c.sortables.push(f),f.refreshPositions(),f._trigger("activate",a,d))})},stop:function(a,b,c){var d=e.extend({},b,{item:c.element});c.cancelHelperRemoval=!1;e.each(c.sortables,function(){this.isOver?(this.isOver= 0,c.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(a),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",a,d))})},drag:function(a,b,c){e.each(c.sortables,function(){var d=!1,f=this;f.positionAbs=c.positionAbs;f.helperProportions=c.helperProportions;f.offset.click=c.offset.click;f._intersectsWith(f.containerCache)&& (d=!0,e.each(c.sortables,function(){this.positionAbs=c.positionAbs;this.helperProportions=c.helperProportions;this.offset.click=c.offset.click;this!==f&&this._intersectsWith(this.containerCache)&&e.contains(f.element[0],this.element[0])&&(d=!1);return d}));d?(f.isOver||(f.isOver=1,c._parent=b.helper.parent(),f.currentItem=b.helper.appendTo(f.element).data("ui-sortable-item",!0),f.options._helper=f.options.helper,f.options.helper=function(){return b.helper[0]},a.target=f.currentItem[0],f._mouseCapture(a, !0),f._mouseStart(a,!0,!0),f.offset.click.top=c.offset.click.top,f.offset.click.left=c.offset.click.left,f.offset.parent.left-=c.offset.parent.left-f.offset.parent.left,f.offset.parent.top-=c.offset.parent.top-f.offset.parent.top,c._trigger("toSortable",a),c.dropped=f.element,e.each(c.sortables,function(){this.refreshPositions()}),c.currentItem=c.element,f.fromOutside=c),f.currentItem&&(f._mouseDrag(a),b.position=f.position)):f.isOver&&(f.isOver=0,f.cancelHelperRemoval=!0,f.options._revert=f.options.revert, f.options.revert=!1,f._trigger("out",a,f._uiHash(f)),f._mouseStop(a,!0),f.options.revert=f.options._revert,f.options.helper=f.options._helper,f.placeholder&&f.placeholder.remove(),b.helper.appendTo(c._parent),c._refreshOffsets(a),b.position=c._generatePosition(a,!0),c._trigger("fromSortable",a),c.dropped=!1,e.each(c.sortables,function(){this.refreshPositions()}))})}});e.ui.plugin.add("draggable","cursor",{start:function(a,b,c){a=e("body");c=c.options;a.css("cursor")&&(c._cursor=a.css("cursor"));a.css("cursor", c.cursor)},stop:function(a,b,c){a=c.options;a._cursor&&e("body").css("cursor",a._cursor)}});e.ui.plugin.add("draggable","opacity",{start:function(a,b,c){a=e(b.helper);c=c.options;a.css("opacity")&&(c._opacity=a.css("opacity"));a.css("opacity",c.opacity)},stop:function(a,b,c){a=c.options;a._opacity&&e(b.helper).css("opacity",a._opacity)}});e.ui.plugin.add("draggable","scroll",{start:function(a,b,c){c.scrollParentNotHidden||(c.scrollParentNotHidden=c.helper.scrollParent(!1));c.scrollParentNotHidden[0]!== c.document[0]&&"HTML"!==c.scrollParentNotHidden[0].tagName&&(c.overflowOffset=c.scrollParentNotHidden.offset())},drag:function(a,b,c){b=c.options;var d=!1,f=c.scrollParentNotHidden[0],g=c.document[0];f!==g&&"HTML"!==f.tagName?(b.axis&&"x"===b.axis||(c.overflowOffset.top+f.offsetHeight-a.pageYm+g||nq+g||!e.contains(c.snapElements[d].item.ownerDocument,c.snapElements[d].item))c.snapElements[d].snapping&&c.options.snap.release&& c.options.snap.release.call(c.element,a,e.extend(c._uiHash(),{snapItem:c.snapElements[d].item})),c.snapElements[d].snapping=!1;else{if("inner"!==f.snapMode){var x=Math.abs(p-n)<=g;var z=Math.abs(q-k)<=g;var C=Math.abs(r-l)<=g;var D=Math.abs(m-h)<=g;x&&(b.position.top=c._convertPositionTo("relative",{top:p-c.helperProportions.height,left:0}).top);z&&(b.position.top=c._convertPositionTo("relative",{top:q,left:0}).top);C&&(b.position.left=c._convertPositionTo("relative",{top:0,left:r-c.helperProportions.width}).left); D&&(b.position.left=c._convertPositionTo("relative",{top:0,left:m}).left)}var T=x||z||C||D;"outer"!==f.snapMode&&(x=Math.abs(p-k)<=g,z=Math.abs(q-n)<=g,C=Math.abs(r-h)<=g,D=Math.abs(m-l)<=g,x&&(b.position.top=c._convertPositionTo("relative",{top:p,left:0}).top),z&&(b.position.top=c._convertPositionTo("relative",{top:q-c.helperProportions.height,left:0}).top),C&&(b.position.left=c._convertPositionTo("relative",{top:0,left:r}).left),D&&(b.position.left=c._convertPositionTo("relative",{top:0,left:m- c.helperProportions.width}).left));!c.snapElements[d].snapping&&(x||z||C||D||T)&&c.options.snap.snap&&c.options.snap.snap.call(c.element,a,e.extend(c._uiHash(),{snapItem:c.snapElements[d].item}));c.snapElements[d].snapping=x||z||C||D||T}}}});e.ui.plugin.add("draggable","stack",{start:function(a,b,c){a=e.makeArray(e(c.options.stack)).sort(function(f,g){return(parseInt(e(f).css("zIndex"),10)||0)-(parseInt(e(g).css("zIndex"),10)||0)});if(a.length){var d=parseInt(e(a[0]).css("zIndex"),10)||0;e(a).each(function(f){e(this).css("zIndex", d+f)});this.css("zIndex",d+a.length)}}});e.ui.plugin.add("draggable","zIndex",{start:function(a,b,c){a=e(b.helper);c=c.options;a.css("zIndex")&&(c._zIndex=a.css("zIndex"));a.css("zIndex",c.zIndex)},stop:function(a,b,c){a=c.options;a._zIndex&&e(b.helper).css("zIndex",a._zIndex)}});e.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var a, b=this.options,c=b.accept;this.isover=!1;this.isout=!0;this.accept="function"===typeof c?c:function(d){return d.is(c)};this.proportions=function(){if(arguments.length)a=arguments[0];else return a?a:a={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(b.scope);b.addClasses&&this._addClass("ui-droppable")},_addToManager:function(a){e.ui.ddmanager.droppables[a]=e.ui.ddmanager.droppables[a]||[];e.ui.ddmanager.droppables[a].push(this)},_splice:function(a){for(var b= 0;b=n&&a=k&&d=n&&g<=m||l>=n&&l<=m||gm)&&(f>=k&&f<=r||h>=k&&h<=r||fr);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c,d=e.ui.ddmanager.droppables[a.options.scope]||[],f=b?b.type:null,g=(a.currentItem||a.element).find(":data(ui-droppable)").addBack();var h=0; a:for(;hb.minWidth&&(b.minWidth=a);c>b.minHeight&&(b.minHeight=c);da.width,h=this._isNumber(a.height)&&b.minHeight&&b.minHeight>a.height,l=this.originalPosition.left+this.originalSize.width,k=this.originalPosition.top+this.originalSize.height,n=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);g&&(a.width=b.minWidth);h&&(a.height=b.minHeight);d&&(a.width=b.maxWidth);f&&(a.height=b.maxHeight);g&&n&&(a.left=l-b.minWidth);d&&n&&(a.left=l-b.maxWidth);h&&c&&(a.top=k-b.minHeight);f&&c&&(a.top=k-b.maxHeight);a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left|| (a.left=null):a.top=null;return a},_getPaddingPlusBorderDimensions:function(a){var b=0,c=[],d=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")];for(a=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];4>b;b++)c[b]=parseFloat(d[b])||0,c[b]+=parseFloat(a[b])||0;return{height:c[0]+c[2],width:c[1]+c[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a,b=0,c=this.helper||this.element;b< this._proportionallyResizeElements.length;b++)a=this._proportionallyResizeElements[b],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(a)),a.css({height:c.height()-this.outerDimensions.height||0,width:c.width()-this.outerDimensions.width||0})},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();this._helper?(this.helper=this.helper||e("\x3cdiv\x3e\x3c/div\x3e").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(), height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++a.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(a,b,c){return{height:this.originalSize.height+ c}},se:function(a,b,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},sw:function(a,b,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,b,c]))},ne:function(a,b,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,b,c]))},nw:function(a,b,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,b,c]))}},_propagate:function(a,b){e.ui.plugin.call(this,a,[b,this.ui()]); "resize"!==a&&this._trigger(a,b,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}}});e.ui.plugin.add("resizable","animate",{stop:function(a){var b=e(this).resizable("instance"),c=b.options,d=b._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&b._hasScroll(d[0],"left")?0:b.sizeDiff.height;f={width:b.size.width- (f?0:b.sizeDiff.width),height:b.size.height-g};g=parseFloat(b.element.css("left"))+(b.position.left-b.originalPosition.left)||null;var h=parseFloat(b.element.css("top"))+(b.position.top-b.originalPosition.top)||null;b.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var l={width:parseFloat(b.element.css("width")),height:parseFloat(b.element.css("height")),top:parseFloat(b.element.css("top")),left:parseFloat(b.element.css("left"))}; d&&d.length&&e(d[0]).css({width:l.width,height:l.height});b._updateCache(l);b._propagate("resize",a)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var a=e(this).resizable("instance"),b=a.element;var c=a.options.containment;if(b=c instanceof e?c.get(0):/parent/.test(c)?b.parent().get(0):c)if(a.containerElement=e(b),/document/.test(c)||c===document)a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:e(document),left:0,top:0,width:e(document).width(), height:e(document).height()||document.body.parentNode.scrollHeight};else{var d=e(b);var f=[];e(["Top","Right","Left","Bottom"]).each(function(l,k){f[l]=a._num(d.css("padding"+k))});a.containerOffset=d.offset();a.containerPosition=d.position();a.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=a.containerOffset;var g=a.containerSize.height;var h=a.containerSize.width;h=a._hasScroll(b,"left")?b.scrollWidth:h;g=a._hasScroll(b)?b.scrollHeight:g;a.parentData={element:b,left:c.left, top:c.top,width:h,height:g}}},resize:function(a){var b=e(this).resizable("instance");var c=b.options;var d=b.containerOffset;var f=b.position;a=b._aspectRatio||a.shiftKey;var g={top:0,left:0},h=b.containerElement,l=!0;h[0]!==document&&/static/.test(h.css("position"))&&(g=d);f.left<(b._helper?d.left:0)&&(b.size.width+=b._helper?b.position.left-d.left:b.position.left-g.left,a&&(b.size.height=b.size.width/b.aspectRatio,l=!1),b.position.left=c.helper?d.left:0);f.top<(b._helper?d.top:0)&&(b.size.height+= b._helper?b.position.top-d.top:b.position.top,a&&(b.size.width=b.size.height*b.aspectRatio,l=!1),b.position.top=b._helper?d.top:0);c=b.containerElement.get(0)===b.element.parent().get(0);f=/relative|absolute/.test(b.containerElement.css("position"));c&&f?(b.offset.left=b.parentData.left+b.position.left,b.offset.top=b.parentData.top+b.position.top):(b.offset.left=b.element.offset().left,b.offset.top=b.element.offset().top);c=Math.abs(b.sizeDiff.width+(b._helper?b.offset.left-g.left:b.offset.left-d.left)); d=Math.abs(b.sizeDiff.height+(b._helper?b.offset.top-g.top:b.offset.top-d.top));c+b.size.width>=b.parentData.width&&(b.size.width=b.parentData.width-c,a&&(b.size.height=b.size.width/b.aspectRatio,l=!1));d+b.size.height>=b.parentData.height&&(b.size.height=b.parentData.height-d,a&&(b.size.width=b.size.height*b.aspectRatio,l=!1));l||(b.position.left=b.prevPosition.left,b.position.top=b.prevPosition.top,b.size.width=b.prevSize.width,b.size.height=b.prevSize.height)},stop:function(){var a=e(this).resizable("instance"), b=a.options,c=a.containerOffset,d=a.containerPosition,f=a.containerElement,g=e(a.helper),h=g.offset(),l=g.outerWidth()-a.sizeDiff.width;g=g.outerHeight()-a.sizeDiff.height;a._helper&&!b.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:l,height:g});a._helper&&!b.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:l,height:g})}});e.ui.plugin.add("resizable","alsoResize",{start:function(){var a=e(this).resizable("instance").options; e(a.alsoResize).each(function(){var b=e(this);b.data("ui-resizable-alsoresize",{width:parseFloat(b.width()),height:parseFloat(b.height()),left:parseFloat(b.css("left")),top:parseFloat(b.css("top"))})})},resize:function(a,b){a=e(this).resizable("instance");var c=a.originalSize,d=a.originalPosition,f={height:a.size.height-c.height||0,width:a.size.width-c.width||0,top:a.position.top-d.top||0,left:a.position.left-d.left||0};e(a.options.alsoResize).each(function(){var g=e(this),h=e(this).data("ui-resizable-alsoresize"), l={},k=g.parents(b.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(k,function(n,r){(n=(h[r]||0)+(f[r]||0))&&0<=n&&(l[r]=n||null)});g.css(l)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}});e.ui.plugin.add("resizable","ghost",{start:function(){var a=e(this).resizable("instance"),b=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:.25,display:"block",position:"relative",height:b.height,width:b.width,margin:0,left:0,top:0});a._addClass(a.ghost, "ui-resizable-ghost");!1!==e.uiBackCompat&&"string"===typeof a.options.ghost&&a.ghost.addClass(this.options.ghost);a.ghost.appendTo(a.helper)},resize:function(){var a=e(this).resizable("instance");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=e(this).resizable("instance");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var a=e(this).resizable("instance"),b=a.options, c=a.size,d=a.originalSize,f=a.originalPosition,g=a.axis,h="number"===typeof b.grid?[b.grid,b.grid]:b.grid,l=h[0]||1,k=h[1]||1,n=Math.round((c.width-d.width)/l)*l;c=Math.round((c.height-d.height)/k)*k;var r=d.width+n,m=d.height+c,p=b.maxWidth&&b.maxWidthr,z=b.minHeight&&b.minHeight>m;b.grid=h;x&&(r+=l);z&&(m+=k);p&&(r-=l);q&&(m-=k);if(/^(se|s|e)$/.test(g))a.size.width=r,a.size.height=m;else if(/^(ne)$/.test(g))a.size.width=r,a.size.height=m, a.position.top=f.top-c;else if(/^(sw)$/.test(g))a.size.width=r,a.size.height=m,a.position.left=f.left-n;else{if(0>=m-k||0>=r-l)var C=a._getPaddingPlusBorderDimensions(this);0g){var l=g;g=d;d=l}f>h&&(l=h,h=f,f=l);this.helper.css({left:d,top:f,width:g-d,height:h-f});this.selectees.each(function(){var k=e.data(this,"selectable-item"),n=!1;if(k&&k.element!==b.element[0]){var r=k.left+b.elementPos.left;var m=k.right+b.elementPos.left;var p=k.top+b.elementPos.top;var q=k.bottom+b.elementPos.top;"touch"===c.tolerance?n=!(r>g||mh||qd&&mf&&q=b&&al&&d+ng&&b+ra[this.floating?"width":"height"]?n&&r:gthis.items[c][h]/2&&(n=!0);Math.abs(a[l]-k)this.containment[2]&&(c=this.containment[2]+this.offset.click.left), a.pageY-this.offset.click.top>this.containment[3]&&(d=this.containment[3]+this.offset.click.top)),b.grid&&(d=this.originalPageY+Math.round((d-this.originalPageY)/b.grid[1])*b.grid[1],d=this.containment?d-this.offset.click.top>=this.containment[1]&&d-this.offset.click.top<=this.containment[3]?d:d-this.offset.click.top>=this.containment[1]?d-b.grid[1]:d+b.grid[1]:d,c=this.originalPageX+Math.round((c-this.originalPageX)/b.grid[0])*b.grid[0],c=this.containment?c-this.offset.click.left>=this.containment[0]&& c-this.offset.click.left<=this.containment[2]?c:c-this.offset.click.left>=this.containment[0]?c-b.grid[0]:c+b.grid[0]:c));return{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]): b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling);var f=this.counter=this.counter?++this.counter:1;this._delay(function(){f===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){function c(g,h,l){return function(k){l._trigger(g,k,h._uiHash(h))}}this.reverting=!1;var d,f=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(d in this._storedCSS)if("auto"=== this._storedCSS[d]||"static"===this._storedCSS[d])this._storedCSS[d]="";this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&f.push(function(g){this._trigger("receive",g,this._uiHash(this.fromOutside))});!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||f.push(function(g){this._trigger("update",g,this._uiHash())}); this===this.currentContainer||b||(f.push(function(g){this._trigger("remove",g,this._uiHash())}),f.push(function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}.call(this,this.currentContainer)),f.push(function(g){return function(h){g._trigger("update",h,this._uiHash(this))}}.call(this,this.currentContainer)));for(d=this.containers.length-1;0<=d;d--)b||f.push(c("deactivate",this,this.containers[d])),this.containers[d].containerCache.over&&(f.push(c("out",this,this.containers[d])), this.containers[d].containerCache.over=0);this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove());this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex);this.dragging=!1;b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&& this.helper.remove(),this.helper=null);if(!b){for(d=0;dd&&(b.slice(d).remove(),b=b.slice(0,d));for(a=b.length;an||h===n&&(k===d._lastChangedValue||d.values(k)===f.min))h=n,b=e(this),c=k});if(!1===this._start(a,c))return!1;this._mouseSliding=!0;this._handleIndex= c;this._addClass(b,null,"ui-state-active");b.trigger("focus");var l=b.offset();this._clickOffset=e(a.target).parents().addBack().is(".ui-slider-handle")?{left:a.pageX-l.left-b.width()/2,top:a.pageY-l.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)}:{left:0,top:0};this.handles.hasClass("ui-state-hover")||this._slide(a,c,g);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(a){var b= this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return!1},_mouseStop:function(a){this._removeClass(this.handles,null,"ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){if("horizontal"===this.orientation){var b= this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else b=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0);b=a/b;1b&&(b=0);"vertical"===this.orientation&&(b=1-b);a=this._valueMax()-this._valueMin();b=this._valueMin()+b*a;return this._trimAlignValue(b)},_uiHash:function(a,b,c){var d={handle:this.handles[a],handleIndex:a,value:void 0!==b?b:this.value()};this._hasMultipleValues()&&(d.value=void 0!== b?b:this.values(a),d.values=c||this.values());return d},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(a,b){return this._trigger("start",a,this._uiHash(b))},_slide:function(a,b,c){var d=this.value(),f=this.values();if(this._hasMultipleValues()){var g=this.values(b?0:1);d=this.values(b);2===this.options.values.length&&!0===this.options.range&&(c=0===b?Math.min(g,c):Math.max(g,c));f[b]=c}c!==d&&!1!==this._trigger("slide",a,this._uiHash(b,c,f))&& (this._hasMultipleValues()?this.values(b,c):this.value(c))},_stop:function(a,b){this._trigger("stop",a,this._uiHash(b))},_change:function(a,b){this._keySliding||this._mouseSliding||(this._lastChangedValue=b,this._trigger("change",a,this._uiHash(b)))},value:function(a){if(arguments.length)this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0);else return this._value()},values:function(a,b){var c;if(1=this._valueMax())return this._valueMax();var b=0=b&&(a+=0this.options.max&&(a-=c);this.max=parseFloat(a.toFixed(this._precision()))},_precision:function(){var a=this._precisionOf(this.options.step);null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min)));return a},_precisionOf:function(a){a=a.toString();var b=a.indexOf(".");return-1===b?0:a.length-b-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(a){"vertical"=== a&&this.range.css({width:"",left:""});"horizontal"===a&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var a,b=this.options.range,c=this.options,d=this,f=this._animateOff?!1:c.animate,g={};if(this._hasMultipleValues())this.handles.each(function(r){n=(d.values(r)-d._valueMin())/(d._valueMax()-d._valueMin())*100;g["horizontal"===d.orientation?"left":"bottom"]=n+"%";e(this).stop(1,1)[f?"animate":"css"](g,c.animate);if(!0===d.options.range)if("horizontal"===d.orientation){if(0===r)d.range.stop(1, 1)[f?"animate":"css"]({left:n+"%"},c.animate);if(1===r)d.range[f?"animate":"css"]({width:n-a+"%"},{queue:!1,duration:c.animate})}else{if(0===r)d.range.stop(1,1)[f?"animate":"css"]({bottom:n+"%"},c.animate);if(1===r)d.range[f?"animate":"css"]({height:n-a+"%"},{queue:!1,duration:c.animate})}a=n});else{var h=this.value();var l=this._valueMin();var k=this._valueMax();var n=k!==l?(h-l)/(k-l)*100:0;g["horizontal"===this.orientation?"left":"bottom"]=n+"%";this.handle.stop(1,1)[f?"animate":"css"](g,c.animate); if("min"===b&&"horizontal"===this.orientation)this.range.stop(1,1)[f?"animate":"css"]({width:n+"%"},c.animate);if("max"===b&&"horizontal"===this.orientation)this.range.stop(1,1)[f?"animate":"css"]({width:100-n+"%"},c.animate);if("min"===b&&"vertical"===this.orientation)this.range.stop(1,1)[f?"animate":"css"]({height:n+"%"},c.animate);if("max"===b&&"vertical"===this.orientation)this.range.stop(1,1)[f?"animate":"css"]({height:100-n+"%"},c.animate)}},_handleEvents:{keydown:function(a){var b,c=e(a.target).data("ui-slider-handle-index"); switch(a.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(a.preventDefault(),!this._keySliding){this._keySliding=!0;this._addClass(e(a.target),null,"ui-state-active");var d=this._start(a,c);if(!1===d)return}}var f=this.options.step;d=this._hasMultipleValues()?b=this.values(c):b=this.value();switch(a.keyCode){case e.ui.keyCode.HOME:b=this._valueMin(); break;case e.ui.keyCode.END:b=this._valueMax();break;case e.ui.keyCode.PAGE_UP:b=this._trimAlignValue(d+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:b=this._trimAlignValue(d-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(d===this._valueMax())return;b=this._trimAlignValue(d+f);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(d===this._valueMin())return;b=this._trimAlignValue(d-f)}this._slide(a,c, b)},keyup:function(a){var b=e(a.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(a,b),this._change(a,b),this._removeClass(e(a.target),null,"ui-state-active"))}}});var A=e,X={},S=X.toString,G=/^([\-+])=\s*(\d+\.?\d*)/,R=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),a[4]?(parseInt(a[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16),a[4]?(parseInt(a[4]+a[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],H=A.Color=function(a,b,c,d){return new A.Color.fn.parse(a,b,c,d)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},v={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},y=H.support={},O=A("\x3cp\x3e")[0],P=A.each;O.style.cssText="background-color:rgba(1,1,1,.5)"; y.rgba=-1A.inArray(null,f[n].slice(0,3))&&(null==f[n][3]&&(f[n][3]=1),k.from&&(f._rgba=k.from(f[n])))}),this},is:function(a){var b= H(a),c=!0,d=this;P(u,function(f,g){var h=b[g.cache];if(h){var l=d[g.cache]||g.to&&g.to(d._rgba)||[];P(g.props,function(k,n){if(null!=h[n.idx])return c=h[n.idx]===l[n.idx]})}return c});return c},_space:function(){var a=[],b=this;P(u,function(c,d){b[d.cache]&&a.push(c)});return a.pop()},transition:function(a,b){var c=H(a);a=c._space();var d=u[a],f=0===this.alpha()?H("transparent"):this,g=f[d.cache]||d.to(f._rgba),h=g.slice();c=c[d.cache];P(d.props,function(l,k){l=k.idx;var n=g[l],r=c[l],m=v[k.type]|| {};null!==r&&(null===n?h[l]=r:(m.mod&&(r-n>m.mod/2?n+=m.mod:n-r>m.mod/2&&(n-=m.mod)),h[l]=B((r-n)*b+n,k)))});return this[a](h)},blend:function(a){if(1===this._rgba[3])return this;var b=this._rgba.slice(),c=b.pop(),d=H(a)._rgba;return H(A.map(b,function(f,g){return(1-c)*d[g]+c*f}))},toRgbaString:function(){var a="rgba(",b=A.map(this._rgba,function(c,d){return null!=c?c:2d&&(c=Math.round(100*c)+"%");return c});1===b[3]&&(b.pop(),a="hsl(");return a+b.join()+")"},toHexString:function(a){var b=this._rgba.slice(),c=b.pop();a&&b.push(~~(255*c));return"#"+A.map(b,function(d){d=(d||0).toString(16);return 1===d.length?"0"+d:d}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});H.fn.parse.prototype=H.fn;u.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/255, c=a[1]/255,d=a[2]/255;a=a[3];var f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,l=f+g,k=.5*l;return[Math.round(g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240)%360,0===h?0:.5>=k?h/l:h/(2-l),k,null==a?1:a]};u.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2];a=a[3];c=.5>=d?d*(1+c):d+c-d*c;d=2*d-c;return[Math.round(255*L(d,c,b+1/3)),Math.round(255*L(d,c,b)),Math.round(255*L(d,c,b-1/3)),a]};P(u,function(a,b){var c=b.props, d=b.cache,f=b.to,g=b.from;H.fn[a]=function(h){f&&!this[d]&&(this[d]=f(this._rgba));if(void 0===h)return this[d].slice();var l=w(h),k="array"===l||"object"===l?h:arguments,n=this[d].slice();P(c,function(m,p){m=k["object"===l?m:p.idx];null==m&&(m=n[p.idx]);n[p.idx]=B(m,p)});if(g){var r=H(g(n));r[d]=n;return r}return H(n)};P(c,function(h,l){H.fn[h]||(H.fn[h]=function(k){var n=w(k);var r="alpha"===h?this._hsla?"hsla":"rgba":a;var m=this[r]();var p=m[l.idx];if("undefined"===n)return p;"function"===n&& (k=k.call(this,p),n=w(k));if(null==k&&l.empty)return this;"string"===n&&(n=G.exec(k))&&(k=p+parseFloat(n[2])*("+"===n[1]?1:-1));m[l.idx]=k;return this[r](m)})})});H.hook=function(a){a=a.split(" ");P(a,function(b,c){A.cssHooks[c]={set:function(d,f){var g,h="";if("transparent"!==f&&("string"!==w(f)||(g=I(f)))){f=H(g||f);if(!y.rgba&&1!==f._rgba[3]){for(g="backgroundColor"===c?d.parentNode:d;(""===h||"transparent"===h)&&g&&g.style;)try{h=A.css(g,"backgroundColor"),g=g.parentNode}catch(l){}f=f.blend(h&& "transparent"!==h?h:"_default")}f=f.toRgbaString()}try{d.style[c]=f}catch(l){}}};A.fx.step[c]=function(d){d.colorInit||(d.start=H(d.elem,c),d.end=H(d.end),d.colorInit=!0);A.cssHooks[c].set(d.elem,d.start.transition(d.end,d.pos))}})};H.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");A.cssHooks.borderColor={expand:function(a){var b={};P(["Top","Right","Bottom","Left"],function(c,d){b["border"+ d+"Color"]=a});return b}};var ba=A.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"};e.effects={effect:{}};(function(){function a(f){return f.replace(/-([\da-z])/gi,function(g,h){return h.toUpperCase()})}function b(f){var g=f.ownerDocument.defaultView? f.ownerDocument.defaultView.getComputedStyle(f,null):f.currentStyle,h={};if(g&&g.length&&g[0]&&g[g[0]])for(f=g.length;f--;){var l=g[f];"string"===typeof g[l]&&(h[a(l)]=g[l])}else for(l in g)"string"===typeof g[l]&&(h[l]=g[l]);return h}var c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(f,g){e.fx.step[g]=function(h){if("none"!== h.end&&!h.setAttr||1===h.pos&&!h.setAttr)A.style(h.elem,g,h.end),h.setAttr=!0}});e.fn.addBack||(e.fn.addBack=function(f){return this.add(null==f?this.prevObject:this.prevObject.filter(f))});e.effects.animateClass=function(f,g,h,l){var k=e.speed(g,h,l);return this.queue(function(){var n=e(this),r=n.attr("class")||"",m=k.children?n.find("*").addBack():n;m=m.map(function(){return{el:e(this),start:b(this)}});var p=function(){e.each(c,function(q,x){if(f[x])n[x+"Class"](f[x])})};p();m=m.map(function(){this.end= b(this.el[0]);var q=this.start,x=this.end,z={},C;for(C in x){var D=x[C];q[C]===D||d[C]||!e.fx.step[C]&&isNaN(parseFloat(D))||(z[C]=D)}this.diff=z;return this});n.attr("class",r);m=m.map(function(){var q=this,x=e.Deferred(),z=e.extend({},k,{queue:!1,complete:function(){x.resolve(q)}});this.el.animate(this.diff,z);return x.promise()});e.when.apply(e,m.get()).done(function(){p();e.each(arguments,function(){var q=this.el;e.each(this.diff,function(x){q.css(x,"")})});k.complete.call(n[0])})})};e.fn.extend({addClass:function(f){return function(g, h,l,k){return h?e.effects.animateClass.call(this,{add:g},h,l,k):f.apply(this,arguments)}}(e.fn.addClass),removeClass:function(f){return function(g,h,l,k){return 1d?c(2*d)/2:1-c(-2*d+2)/2}})})();e.effects.define("blind","hide",function(a,b){var c={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},d=e(this),f=a.direction||"up",g=d.cssClip(),h={clip:e.extend({}, g)},l=e.effects.createPlaceholder(d);h.clip[c[f][0]]=h.clip[c[f][1]];"show"===a.mode&&(d.cssClip(h.clip),l&&l.css(e.effects.clipToBox(h)),h.clip=g);l&&l.animate(e.effects.clipToBox(h),a.duration,a.easing);d.animate(h,{queue:!1,duration:a.duration,easing:a.easing,complete:b})});e.effects.define("bounce",function(a,b){var c=e(this),d=a.mode,f="hide"===d;var g="show"===d;var h=a.direction||"up";d=a.distance;var l=a.times||5,k=2*l+(g||f?1:0),n=a.duration/k;a=a.easing;var r="up"===h||"down"===h?"top": "left";h="up"===h||"left"===h;var m=0,p=c.queue().length;e.effects.createPlaceholder(c);var q=c.css(r);d||(d=c["top"===r?"outerHeight":"outerWidth"]()/3);g&&(g={opacity:1},g[r]=q,c.css("opacity",0).css(r,h?2*-d:2*d).animate(g,n,a));f&&(d/=Math.pow(2,l-1));g={};for(g[r]=q;mL.compareEndPoints("StartToStart", I);B++)L.moveStart("character",1);for(I=0;I<=B;I++)"\n"==w.value.charAt(I)&&B++;w=w.value.split("\n").length-1;return B-w}}return B},getCaretPosition:e.getCaretPosition})}); (function(e,w){if("function"===typeof define&&define.amd)define(["module","exports"],w);else if("undefined"!==typeof exports)w(module,exports);else{var B={exports:{}};w(B,B.exports);e.autosize=B.exports}})(this,function(e,w){function B(t){function Q(u){var v=t.style.width;t.style.width="0px";t.offsetWidth;t.style.width=v;t.style.overflowY=u}function K(u){for(var v=[];u&&u.parentNode&&u.parentNode instanceof Element;)u.parentNode.scrollTop&&v.push({node:u.parentNode,scrollTop:u.parentNode.scrollTop}), u=u.parentNode;return v}function F(){if(0!==t.scrollHeight){var u=K(t),v=document.documentElement&&document.documentElement.scrollTop;t.style.height="";t.style.height=t.scrollHeight+X+"px";S=t.clientWidth;u.forEach(function(y){y.node.scrollTop=y.scrollTop});v&&(document.documentElement.scrollTop=v)}}function A(){F();var u=Math.round(parseFloat(t.style.height)),v=window.getComputedStyle(t,null),y="content-box"===v.boxSizing?Math.round(parseFloat(v.height)):t.offsetHeight;yR&&(R+=G.value.length);"undefined"==typeof H&&(H=R);0>H&&(H+=G.value.length);return{start:R,end:H}}function L(){return B(document,"body")?document.body:document.getElementsByTagName("body")[0]}var J,E,t,Q,K,F,A,X,S;e(document).ready(function(){function G(u,v){return function(){var y=this.jquery?this[0]:this,O=y.nodeName.toLowerCase(); if(1==y.nodeType&&("textarea"==O||"input"==O&&"text"==y.type)&&(y=[y].concat(Array.prototype.slice.call(arguments)),y=u.apply(this,y),!v))return y;if(v)return this}}var R=document.createElement("textarea");L().appendChild(R);if("undefined"!=typeof R.selectionStart&&"undefined"!=typeof R.selectionEnd)J=function(u){var v=u.selectionStart,y=u.selectionEnd;return{start:v,end:y,length:y-v,text:u.value.slice(v,y)}},E=function(u,v,y){v=I(u,v,y);u.selectionStart=v.start;u.selectionEnd=v.end},S=function(u, v){v?u.selectionEnd=u.selectionStart:u.selectionStart=u.selectionEnd};else if(w(R,"createTextRange")&&B(document,"selection")&&w(document.selection,"createRange")){J=function(u){var v=0,y=0,O;if((O=document.selection.createRange())&&O.parentElement()==u){var P=u.value.length;var ba=u.value.replace(/\r\n/g,"\n");y=u.createTextRange();y.moveToBookmark(O.getBookmark());O=u.createTextRange();O.collapse(!1);-1t?w(E,"click"):(t=E.originalEvent.changedTouches[0].pageY,10>Math.abs(E.originalEvent.changedTouches[0].pageX-this._startPos.x)&&10>Math.abs(t-this._startPos.y)&&(this._touchMoved&&"stylus"!==E.originalEvent.changedTouches[0].touchType||w(E,"click")));J=this._touchMoved= !1}};B._mouseInit=function(){e.support.mspointer&&(this.element[0].style.msTouchAction="none");this.element.on({touchstart:e.proxy(this,"_touchStart"),touchmove:e.proxy(this,"_touchMove"),touchend:e.proxy(this,"_touchEnd")});I.call(this)};B._mouseDestroy=function(){this.element.off({touchstart:e.proxy(this,"_touchStart"),touchmove:e.proxy(this,"_touchMove"),touchend:e.proxy(this,"_touchEnd")});L.call(this)}}}); (function(){$.fn.extend({focus:function(e){return function(w,B){return"number"===typeof w?this.each(function(){var I=this;setTimeout(function(){$(I).trigger("focus");B&&B.call(I)},w)}):e.apply(this,arguments)}}($.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(w){w.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")},zIndex:function(e){if(void 0!== e)return this.css("zIndex",String(e));if(this.length){e=$(this[0]);for(var w;e.length&&e[0]!==document;){w=e.css("position");if("absolute"===w||"relative"===w||"fixed"===w)if(w=parseInt(e.css("zIndex"),10),!isNaN(w)&&0!==w)return w;e=e.parent()}}return 0}})})(); $.widget("ui.sortable",$.ui.sortable,{_setHandleClassName:function(){this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");$.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})}}); (function(){$.ui.slider.prototype._trimAlignValue=function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var w=0=this._valueMax()?this._valueMax():parseFloat(e.toFixed(5))};$.ui.slider.prototype._calculateNewMax=function(){this.max=parseFloat(this.options.max.toFixed(this._precision()))}})();