").css({position:"absolute",width:a.outerWidth(),height:a.outerHeight()}).appendTo(a.parent()).offset(a.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(a){return!!e(a.target).closest(".ui-dialog").length||!!e(a.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var a=e.fn.jquery.substring(0,4),i=!0;this._delay((function(){i=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){if(!i){var n=this._trackingInstances()[0];n._allowInteraction(e)||(e.preventDefault(),n._focusTabbable(),"3.4."!==a&&"3.5."!==a&&"3.6."!==a||n._delay(n._restoreTabbableFocus))}}.bind(this)),this.overlay=e("
").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),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&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,a){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(a),this._superApply(arguments)}});return e.ui.dialog},void 0===(r="function"===typeof n?n.apply(a,t):n)||(e.exports=r)}()},1758:function(e,a,i){var n,t,r;!function(s){"use strict";t=[i(2726),i(3662),i(9983),i(2336),i(3300),i(2634),i(2299),i(6883),i(9139)],void 0===(r="function"===typeof(n=function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,a){this._super(e,a),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(a){var i=this.options;return!(this.helper||i.disabled||e(a.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(a),!!this.handle&&(this._blurActiveElement(a),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(a){this.iframeBlocks=this.document.find(a).map((function(){var a=e(this);return e("
").css("position","absolute").appendTo(a.parent()).outerWidth(a.outerWidth()).outerHeight(a.outerHeight()).offset(a.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(a){var i=e.ui.safeActiveElement(this.document[0]);e(a.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(a){var i=this.options;return this.helper=this._createHelper(a),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(a),this.originalPosition=this.position=this._generatePosition(a,!1),this.originalPageX=a.pageX,this.originalPageY=a.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",a)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,a),this._mouseDrag(a,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,a),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(a,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(a,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",a,n))return this._mouseUp(new e.Event("mouseup",a)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,a),!1},_mouseStop:function(a){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,a)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"===typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",a)&&i._clear()})):!1!==this._trigger("stop",a)&&this._clear(),!1},_mouseUp:function(a){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,a),this.handleElement.is(a.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(a){return!this.options.handle||!!e(a.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(a){var i=this.options,n="function"===typeof i.helper,t=n?e(i.helper.apply(this.element[0],[a])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"===typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var a=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(a.left+=this.scrollParent.scrollLeft(),a.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(a={top:0,left:0}),{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),a=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(a?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(a?0:this.scrollParent.scrollLeft())}},_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 a,i,n,t=this.options,r=this.document[0];this.relativeContainer=null,t.containment?"window"!==t.containment?"document"!==t.containment?t.containment.constructor!==Array?("parent"===t.containment&&(t.containment=this.helper[0].parentNode),(n=(i=e(t.containment))[0])&&(a=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(a?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(a?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=t.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,a){a||(a=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:a.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:a.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,a){var i,n,t,r,s=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),a&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left
i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=i?t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1]:t,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?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,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,a,[i,n,this],!0),/^(drag|start|stop)/.test(a)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,a,i,n)},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,i,n){var t=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",a,t))}))},stop:function(a,i,n){var t=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,(function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(a),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",a,t))}))},drag:function(a,i,n){e.each(n.sortables,(function(){var t=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(t=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(t=!1),t}))),t?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},a.target=r.currentItem[0],r._mouseCapture(a,!0),r._mouseStart(a,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",a),n.dropped=r.element,e.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(a),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",a,r._uiHash(r)),r._mouseStop(a,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(a),i.position=n._generatePosition(a,!0),n._trigger("fromSortable",a),n.dropped=!1,e.each(n.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(a,i,n){var t=e("body"),r=n.options;t.css("cursor")&&(r._cursor=t.css("cursor")),t.css("cursor",r.cursor)},stop:function(a,i,n){var t=n.options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(a,i,n){var t=e(i.helper),r=n.options;t.css("opacity")&&(r._opacity=t.css("opacity")),t.css("opacity",r.opacity)},stop:function(a,i,n){var t=n.options;t._opacity&&e(i.helper).css("opacity",t._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,a,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(a,i,n){var t=n.options,r=!1,s=n.scrollParentNotHidden[0],o=n.document[0];s!==o&&"HTML"!==s.tagName?(t.axis&&"x"===t.axis||(n.overflowOffset.top+s.offsetHeight-a.pageY=0;h--)c=(l=n.snapElements[h].left-n.margins.left)+n.snapElements[h].width,u=(d=n.snapElements[h].top-n.margins.top)+n.snapElements[h].height,fc+g||ku+g||!e.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,a,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==p.snapMode&&(t=Math.abs(d-k)<=g,r=Math.abs(u-y)<=g,s=Math.abs(l-f)<=g,o=Math.abs(c-b)<=g,t&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),m=t||r||s||o,"outer"!==p.snapMode&&(t=Math.abs(d-y)<=g,r=Math.abs(u-k)<=g,s=Math.abs(l-b)<=g,o=Math.abs(c-f)<=g,t&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[h].snapping&&(t||r||s||o||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,a,e.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=t||r||s||o||m)}}),e.ui.plugin.add("draggable","stack",{start:function(a,i,n){var t,r=n.options,s=e.makeArray(e(r.stack)).sort((function(a,i){return(parseInt(e(a).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));s.length&&(t=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each((function(a){e(this).css("zIndex",t+a)})),this.css("zIndex",t+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(a,i,n){var t=e(i.helper),r=n.options;t.css("zIndex")&&(r._zIndex=t.css("zIndex")),t.css("zIndex",r.zIndex)},stop:function(a,i,n){var t=n.options;t._zIndex&&e(i.helper).css("zIndex",t._zIndex)}}),e.ui.draggable})?n.apply(a,t):n)||(e.exports=r)}()},8330:function(e,a,i){var n,t,r;!function(s){"use strict";t=[i(2726),i(1897),i(4224),i(3300),i(5304),i(6883),i(9139)],void 0===(r="function"===typeof(n=function(e){return e.widget("ui.menu",{version:"1.13.3",defaultElement:"",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(a){var i=e(a.target),n=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(a),a.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(a):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,a){var i=this.active||this._menuItems().first();a||this.focus(e,i)},blur:function(a){this._delay((function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(a)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(a){if(!this.previousFilter&&(a.clientX!==this.lastMousePosition.x||a.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:a.clientX,y:a.clientY};var i=e(a.target).closest(".ui-menu-item"),n=e(a.currentTarget);i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(a,n)))}},_destroy:function(){var a=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),a.children().each((function(){var a=e(this);a.data("ui-menu-submenu-caret")&&a.remove()}))},_keydown:function(a){var i,n,t,r,s=!0;switch(a.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(a);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case e.ui.keyCode.HOME:this._move("first","first",a);break;case e.ui.keyCode.END:this._move("last","last",a);break;case e.ui.keyCode.UP:this.previous(a);break;case e.ui.keyCode.DOWN:this.next(a);break;case e.ui.keyCode.LEFT:this.collapse(a);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(a);break;case e.ui.keyCode.ESCAPE:this.collapse(a);break;default:s=!1,n=this.previousFilter||"",r=!1,t=a.keyCode>=96&&a.keyCode<=105?(a.keyCode-96).toString():String.fromCharCode(a.keyCode),clearTimeout(this.filterTimer),t===n?r=!0:t=n+t,i=this._filterMenuItems(t),(i=r&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(t=String.fromCharCode(a.keyCode),i=this._filterMenuItems(t)),i.length?(this.focus(a,i),this.previousFilter=t,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}s&&a.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var a,i,n,t,r=this,s=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var a=e(this),i=a.prev(),n=e("").data("ui-menu-submenu-caret",!0);r._addClass(n,"ui-menu-icon","ui-icon "+s),i.attr("aria-haspopup","true").prepend(n),a.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(a=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var a=e(this);r._isDivider(a)&&r._addClass(a,"ui-menu-divider","ui-widget-content")})),t=(n=a.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),a.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,a){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,a.submenu)}this._super(e,a)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,a){var i,n,t;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(a),this.active=a.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),t=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(t,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=a.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=a.parent(),this._trigger("focus",e,{item:a})},_scrollIntoView:function(a){var i,n,t,r,s,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,t=a.offset().top-this.activeMenu.offset().top-i-n,r=this.activeMenu.scrollTop(),s=this.activeMenu.height(),o=a.outerHeight(),t<0?this.activeMenu.scrollTop(r+t):t+o>s&&this.activeMenu.scrollTop(r+t-s+o))},blur:function(e,a){a||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(a){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(a.parents(".ui-menu")).hide().attr("aria-hidden","true"),a.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(a,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:e(a&&a.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(a),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(a){return!e(a.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var a=this.active&&this.active.parent().closest(".ui-menu-item",this.element);a&&a.length&&(this._close(),this.focus(e,a))},expand:function(e){var a=this.active&&this._menuItems(this.active.children(".ui-menu")).first();a&&a.length&&(this._open(a.parent()),this._delay((function(){this.focus(e,a)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,a,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[a]()),this.focus(i,n)},nextPage:function(a){var i,n,t;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,t=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(t+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n-t<0})),this.focus(a,i)):this.focus(a,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(a)},previousPage:function(a){var i,n,t;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,t=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(t+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n+t>0})),this.focus(a,i)):this.focus(a,this._menuItems(this.activeMenu).first())):this.next(a)},_hasScroll:function(){return this.element.outerHeight()=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(a,t):n)||(e.exports=r)}()},8604:function(e,a,i){var n,t,r;!function(s){"use strict";t=[i(2726),i(3662),i(724),i(2336),i(6883),i(9139)],n=function(e){return e.widget("ui.resizable",e.ui.mouse,{version:"1.13.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(a,i){if("hidden"===e(a).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",t=!1;if(a[n]>0)return!0;try{a[n]=1,t=a[n]>0,a[n]=0}catch(r){}return t},_create:function(){var a,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("").css({overflow:"hidden",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=!0,a={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(a),this.originalElement.css("margin",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(a),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var a,i=function(a){e(a).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),a=this.element,this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")}).insertAfter(a),a.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,a){switch(this._super(e,a),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!a}},_setupHandles:function(){var a,i,n,t,r,s=this.options,o=this;if(this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{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"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i"),this._addClass(r,"ui-resizable-handle "+t),r.css({zIndex:s.zIndex}),this.handles[a]=".ui-resizable-"+a,this.element.children(this.handles[a]).length||(this.element.append(r),this._addedHandles=this._addedHandles.add(r));this._renderAxis=function(a){var i,n,t,r;for(i in a=a||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),t=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),a.css(t,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){o.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=r&&r[1]?r[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(a){var i,n,t=!1;for(i in this.handles)((n=e(this.handles[i])[0])===a.target||e.contains(n,a.target))&&(t=!0);return!this.options.disabled&&t},_mouseStart:function(a){var i,n,t,r=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),r.containment&&(i+=e(r.containment).scrollLeft()||0,n+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:a.pageX,top:a.pageY},this.aspectRatio="number"===typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,t=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===t?this.axis+"-resize":t),this._addClass("ui-resizable-resizing"),this._propagate("start",a),!0},_mouseDrag:function(a){var i,n,t=this.originalMousePosition,r=this.axis,s=a.pageX-t.left||0,o=a.pageY-t.top||0,l=this._change[r];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[a,s,o]),this._updateVirtualBoundaries(a.shiftKey),(this._aspectRatio||a.shiftKey)&&(i=this._updateRatio(i,a)),i=this._respectSize(i,a),this._updateCache(i),this._propagate("resize",a),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",a,this.ui()),this._applyChanges()),!1)},_mouseStop:function(a){this.resizing=!1;var i,n,t,r,s,o,l,c=this.options,d=this;return this._helper&&(t=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:d.sizeDiff.height,r=n?0:d.sizeDiff.width,s={width:d.helper.width()-r,height:d.helper.height()-t},o=parseFloat(d.element.css("left"))+(d.position.left-d.originalPosition.left)||null,l=parseFloat(d.element.css("top"))+(d.position.top-d.originalPosition.top)||null,c.animate||this.element.css(e.extend(s,{top:l,left:o})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",a),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.helper.css(e),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px",this.helper.width(e.width)),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px",this.helper.height(e.height)),e},_updateVirtualBoundaries:function(e){var a,i,n,t,r,s=this.options;r={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(a=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,t=r.maxWidth/this.aspectRatio,a>r.minWidth&&(r.minWidth=a),n>r.minHeight&&(r.minHeight=n),ie.width,s=this._isNumber(e.height)&&a.minHeight&&a.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);return r&&(e.width=a.minWidth),s&&(e.height=a.minHeight),n&&(e.width=a.maxWidth),t&&(e.height=a.maxHeight),r&&c&&(e.left=o-a.minWidth),n&&c&&(e.left=o-a.maxWidth),s&&d&&(e.top=l-a.minHeight),t&&d&&(e.top=l-a.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var a=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],t=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];a<4;a++)i[a]=parseFloat(n[a])||0,i[a]+=parseFloat(t[a])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,a=0,i=this.helper||this.element;a
").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:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,a){return{width:this.originalSize.width+a}},w:function(e,a){var i=this.originalSize;return{left:this.originalPosition.left+a,width:i.width-a}},n:function(e,a,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,a,i){return{height:this.originalSize.height+i}},se:function(a,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,i,n]))},sw:function(a,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,i,n]))},ne:function(a,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,i,n]))},nw:function(a,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,i,n]))}},_propagate:function(a,i){e.ui.plugin.call(this,a,[i,this.ui()]),"resize"!==a&&this._trigger(a,i,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 i=e(this).resizable("instance"),n=i.options,t=i._proportionallyResizeElements,r=t.length&&/textarea/i.test(t[0].nodeName),s=r&&i._hasScroll(t[0],"left")?0:i.sizeDiff.height,o=r?0:i.sizeDiff.width,l={width:i.size.width-o,height:i.size.height-s},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,d=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,d&&c?{top:d,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};t&&t.length&&e(t[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",a)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var a,i,n,t,r,s,o,l=e(this).resizable("instance"),c=l.options,d=l.element,u=c.containment,h=u instanceof e?u.get(0):/parent/.test(u)?d.parent().get(0):u;h&&(l.containerElement=e(h),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(a=e(h),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=l._num(a.css("padding"+n))})),l.containerOffset=a.offset(),l.containerPosition=a.position(),l.containerSize={height:a.innerHeight()-i[3],width:a.innerWidth()-i[1]},n=l.containerOffset,t=l.containerSize.height,r=l.containerSize.width,s=l._hasScroll(h,"left")?h.scrollWidth:r,o=l._hasScroll(h)?h.scrollHeight:t,l.parentData={element:h,left:n.left,top:n.top,width:s,height:o}))},resize:function(a){var i,n,t,r,s=e(this).resizable("instance"),o=s.options,l=s.containerOffset,c=s.position,d=s._aspectRatio||a.shiftKey,u={top:0,left:0},h=s.containerElement,m=!0;h[0]!==document&&/static/.test(h.css("position"))&&(u=l),c.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-u.left),d&&(s.size.height=s.size.width/s.aspectRatio,m=!1),s.position.left=o.helper?l.left:0),c.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),d&&(s.size.width=s.size.height*s.aspectRatio,m=!1),s.position.top=s._helper?l.top:0),t=s.containerElement.get(0)===s.element.parent().get(0),r=/relative|absolute/.test(s.containerElement.css("position")),t&&r?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),i=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-u.left:s.offset.left-l.left)),n=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-u.top:s.offset.top-l.top)),i+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-i,d&&(s.size.height=s.size.width/s.aspectRatio,m=!1)),n+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-n,d&&(s.size.width=s.size.height*s.aspectRatio,m=!1)),m||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var a=e(this).resizable("instance"),i=a.options,n=a.containerOffset,t=a.containerPosition,r=a.containerElement,s=e(a.helper),o=s.offset(),l=s.outerWidth()-a.sizeDiff.width,c=s.outerHeight()-a.sizeDiff.height;a._helper&&!i.animate&&/relative/.test(r.css("position"))&&e(this).css({left:o.left-t.left-n.left,width:l,height:c}),a._helper&&!i.animate&&/static/.test(r.css("position"))&&e(this).css({left:o.left-t.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var a=e(this).resizable("instance").options;e(a.alsoResize).each((function(){var a=e(this);a.data("ui-resizable-alsoresize",{width:parseFloat(a.css("width")),height:parseFloat(a.css("height")),left:parseFloat(a.css("left")),top:parseFloat(a.css("top"))})}))},resize:function(a,i){var n=e(this).resizable("instance"),t=n.options,r=n.originalSize,s=n.originalPosition,o={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-s.top||0,left:n.position.left-s.left||0};e(t.alsoResize).each((function(){var a=e(this),n=e(this).data("ui-resizable-alsoresize"),t={},r=a.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,(function(e,a){var i=(n[a]||0)+(o[a]||0);i&&i>=0&&(t[a]=i||null)})),a.css(t)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var a=e(this).resizable("instance"),i=a.size;a.ghost=a.originalElement.clone(),a.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.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,i=e(this).resizable("instance"),n=i.options,t=i.size,r=i.originalSize,s=i.originalPosition,o=i.axis,l="number"===typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,d=l[1]||1,u=Math.round((t.width-r.width)/c)*c,h=Math.round((t.height-r.height)/d)*d,m=r.width+u,p=r.height+h,g=n.maxWidth&&n.maxWidth
m,y=n.minHeight&&n.minHeight>p;n.grid=l,f&&(m+=c),y&&(p+=d),g&&(m-=c),b&&(p-=d),/^(se|s|e)$/.test(o)?(i.size.width=m,i.size.height=p):/^(ne)$/.test(o)?(i.size.width=m,i.size.height=p,i.position.top=s.top-h):/^(sw)$/.test(o)?(i.size.width=m,i.size.height=p,i.position.left=s.left-u):((p-d<=0||m-c<=0)&&(a=i._getPaddingPlusBorderDimensions(this)),p-d>0?(i.size.height=p,i.position.top=s.top-h):(p=d-a.height,i.size.height=p,i.position.top=s.top+r.height-p),m-c>0?(i.size.width=m,i.position.left=s.left-u):(m=c-a.width,i.size.width=m,i.position.left=s.left+r.width-m))}}),e.ui.resizable},void 0===(r="function"===typeof n?n.apply(a,t):n)||(e.exports=r)}()},5285:function(e,a,i){var n,t,r;!function(s){"use strict";t=[i(2726),i(3662),i(9983),i(8045),i(2299),i(6883),i(9139)],n=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,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(e,a,i){return e>=a&&e=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(a,i){var n=null,t=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(a),e(a.target).parents().each((function(){if(e.data(this,r.widgetName+"-item")===r)return n=e(this),!1})),e.data(a.target,r.widgetName+"-item")===r&&(n=e(a.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each((function(){this===a.target&&(t=!0)})),!t))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(a,i,n){var t,r,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(a),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",s.cursor),this.storedStylesheet=e("").appendTo(r)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",a,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("activate",a,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,a),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(a),this.originalPageX=a.pageX,this.originalPageY=a.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(a),!0},_scroll:function(e){var a=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(t=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&t!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==t&&!e.contains(this.placeholder[0],t)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],t))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(a,n),this._trigger("change",a,this._uiHash());break}return this._contactContainers(a),e.ui.ddmanager&&e.ui.ddmanager.drag(this,a),this._trigger("sort",a,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(a,i){if(a){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,a),this.options.revert){var n=this,t=this.placeholder.offset(),r=this.options.axis,s={};r&&"x"!==r||(s.left=t.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(s.top=t.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){n._clear(a)}))}else this._clear(a,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("deactivate",null,this._uiHash(this)),this.containers[a].containerCache.over&&(this.containers[a]._trigger("out",null,this._uiHash(this)),this.containers[a].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(a){var i=this._getItemsAsjQuery(a&&a.connected),n=[];return a=a||{},e(i).each((function(){var i=(e(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[\-=_](.+)/);i&&n.push((a.key||i[1]+"[]")+"="+(a.key&&a.expression?i[1]:i[2]))})),!n.length&&a.key&&n.push(a.key+"="),n.join("&")},toArray:function(a){var i=this._getItemsAsjQuery(a&&a.connected),n=[];return a=a||{},i.each((function(){n.push(e(a.item||this).attr(a.attribute||"id")||"")})),n},_intersectsWith:function(e){var a=this.positionAbs.left,i=a+this.helperProportions.width,n=this.positionAbs.top,t=n+this.helperProportions.height,r=e.left,s=r+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,d=this.offset.click.left,u="x"===this.options.axis||n+c>o&&n+cr&&a+de[this.floating?"width":"height"]?m:r0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(a){var i,n,t,r,s=[],o=[],l=this._connectWith();if(l&&a)for(i=l.length-1;i>=0;i--)for(n=(t=e(l[i],this.document[0])).length-1;n>=0;n--)(r=e.data(t[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push(["function"===typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){s.push(this)}for(o.push(["function"===typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return e(s)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i=0;i--)for(n=(t=e(h[i],this.document[0])).length-1;n>=0;n--)(r=e.data(t[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(u.push(["function"===typeof r.options.items?r.options.items.call(r.element[0],a,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(i=u.length-1;i>=0;i--)for(s=u[i][1],n=0,c=(o=u[i][0]).length;n=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(t=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,a||(n.width=t.outerWidth(),n.height=t.outerHeight()),r=t.offset(),n.left=r.left,n.top=r.top)},refreshPositions:function(e){var a,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(a=this.containers.length-1;a>=0;a--)i=this.containers[a].element.offset(),this.containers[a].containerCache.left=i.left,this.containers[a].containerCache.top=i.top,this.containers[a].containerCache.width=this.containers[a].element.outerWidth(),this.containers[a].containerCache.height=this.containers[a].element.outerHeight();return this},_createPlaceholder:function(a){var i,n,t=(a=a||this).options;t.placeholder&&t.placeholder.constructor!==String||(i=t.placeholder,n=a.currentItem[0].nodeName.toLowerCase(),t.placeholder={element:function(){var t=e("<"+n+">",a.document[0]);return a._addClass(t,"ui-sortable-placeholder",i||a.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===n?a._createTrPlaceholder(a.currentItem.find("tr").eq(0),e("",a.document[0]).appendTo(t)):"tr"===n?a._createTrPlaceholder(a.currentItem,t):"img"===n&&t.attr("src",a.currentItem.attr("src")),i||t.css("visibility","hidden"),t},update:function(e,r){i&&!t.forcePlaceholderSize||(r.height()&&(!t.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||r.height(a.currentItem.innerHeight()-parseInt(a.currentItem.css("paddingTop")||0,10)-parseInt(a.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(a.currentItem.innerWidth()-parseInt(a.currentItem.css("paddingLeft")||0,10)-parseInt(a.currentItem.css("paddingRight")||0,10)))}}),a.placeholder=e(t.placeholder.element.call(a.element,a.currentItem)),a.currentItem.after(a.placeholder),t.placeholder.update(a,a.placeholder)},_createTrPlaceholder:function(a,i){var n=this;a.children().each((function(){e(" | ",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(a){var i,n,t,r,s,o,l,c,d,u,h=null,m=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&e.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],m=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",a,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",a,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(t=1e4,r=null,s=(d=h.floating||this._isFloating(this.currentItem))?"left":"top",o=d?"width":"height",u=d?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[m].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[s],c=!1,a[u]-l>this.items[n][o]/2&&(c=!0),Math.abs(a[u]-l)this.containment[2]&&(r=this.containment[2]+this.offset.click.left),a.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),t.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/t.grid[1])*t.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-t.grid[1]:i+t.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/t.grid[0])*t.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-t.grid[0]:n+t.grid[0]:n)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,a,i,n){i?i[0].appendChild(this.placeholder[0]):a.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?a.item[0]:a.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var t=this.counter;this._delay((function(){t===this.counter&&this.refreshPositions(!n)}))},_clear:function(e,a){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function t(e,a,i){return function(n){i._trigger(e,n,a._uiHash(a))}}for(this.fromOutside&&!a&&n.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||a||n.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(a||(n.push((function(e){this._trigger("remove",e,this._uiHash())})),n.push(function(e){return function(a){e._trigger("receive",a,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(a){e._trigger("update",a,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)a||n.push(t("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(t("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(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,a||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!a){for(i=0;i0&&(z=window.setTimeout((function(){H.abort("timeout")}),E.timeout));try{q=!1,k.send(D,N)}catch(R){if(q)throw R;N(-1,R)}}else N(-1,"No Transport");function N(a,i,n,t){var r,s,o,l,c,d=i;q||(q=!0,z&&window.clearTimeout(z),k=void 0,w=t||"",H.readyState=a>0?4:0,r=a>=200&&a<300||304===a,n&&(l=function(e,a,i){for(var n,t,r,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||a.getResponseHeader("Content-Type"));if(n)for(t in o)if(o[t]&&o[t].test(n)){l.unshift(t);break}if(l[0]in i)r=l[0];else{for(t in i){if(!l[0]||e.converters[t+" "+l[0]]){r=t;break}s||(s=t)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),i[r]}(E,H,n)),!r&&e.inArray("script",E.dataTypes)>-1&&e.inArray("json",E.dataTypes)<0&&(E.converters["text script"]=function(){}),l=function(e,a,i,n){var t,r,s,o,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=d.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=a),!l&&n&&e.dataFilter&&(a=e.dataFilter(a,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(t in c)if((o=t.split(" "))[1]===r&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[t]:!0!==c[t]&&(r=o[0],d.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)a=s(a);else try{a=s(a)}catch(R){return{state:"parsererror",error:s?R:"No conversion from "+l+" to "+r}}}return{state:"success",data:a}}(E,l,H,r),r?(E.ifModified&&((c=H.getResponseHeader("Last-Modified"))&&(e.lastModified[v]=c),(c=H.getResponseHeader("etag"))&&(e.etag[v]=c)),204===a||"HEAD"===E.type?d="nocontent":304===a?d="notmodified":(d=l.state,s=l.data,r=!(o=l.error))):(o=d,!a&&d||(d="error",a<0&&(a=0))),H.status=a,H.statusText=(i||d)+"",r?A.resolveWith(S,[s,d,H]):A.rejectWith(S,[H,d,o]),H.statusCode(I),I=void 0,_&&P.trigger(r?"ajaxSuccess":"ajaxError",[H,E,r?s:o]),O.fireWith(S,[H,d]),_&&(P.trigger("ajaxComplete",[H,E]),--e.active||e.event.trigger("ajaxStop")))}return H},getJSON:function(a,i,n){return e.get(a,i,n,"json")},getScript:function(a,i){return e.get(a,void 0,i,"script")}}),e.each(["get","post"],(function(a,n){e[n]=function(a,t,r,s){return i(t)&&(s=s||r,r=t,t=void 0),e.ajax(e.extend({url:a,type:n,dataType:s,data:t,success:r},e.isPlainObject(a)&&a))}})),e.ajaxPrefilter((function(e){var a;for(a in e.headers)"content-type"===a.toLowerCase()&&(e.contentType=e.headers[a]||"")})),e}.apply(a,n))||(e.exports=t)},4139:function(e,a,i){var n,t;n=[i(8411),i(1382),i(1628),i(1205),i(9978)],t=function(e,a,i,n){"use strict";var t=[],r=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=t.pop()||e.expando+"_"+i.guid++;return this[a]=!0,a}}),e.ajaxPrefilter("json jsonp",(function(i,s,o){var l,c,d,u=!1!==i.jsonp&&(r.test(i.url)?"url":"string"===typeof i.data&&0===(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&r.test(i.data)&&"data");if(u||"jsonp"===i.dataTypes[0])return l=i.jsonpCallback=a(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,u?i[u]=i[u].replace(r,"$1"+l):!1!==i.jsonp&&(i.url+=(n.test(i.url)?"&":"?")+i.jsonp+"="+l),i.converters["script json"]=function(){return d||e.error(l+" was not called"),d[0]},i.dataTypes[0]="json",c=window[l],window[l]=function(){d=arguments},o.always((function(){void 0===c?e(window).removeProp(l):window[l]=c,i[l]&&(i.jsonpCallback=s.jsonpCallback,t.push(l)),d&&a(c)&&c(d[0]),d=c=void 0})),"script"}))}.apply(a,n),void 0===t||(e.exports=t)},9165:function(e,a,i){var n,t;n=[i(8411),i(9266),i(1382),i(3814),i(9978),i(2569),i(7957),i(4553)],t=function(e,a,i){"use strict";e.fn.load=function(n,t,r){var s,o,l,c=this,d=n.indexOf(" ");return d>-1&&(s=a(n.slice(d)),n=n.slice(0,d)),i(t)?(r=t,t=void 0):t&&"object"===typeof t&&(o="POST"),c.length>0&&e.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done((function(a){l=arguments,c.html(s?e("").append(e.parseHTML(a)).find(s):a)})).always(r&&function(e,a){c.each((function(){r.apply(this,l||[e.responseText,a,e])}))}),this}}.apply(a,n),void 0===t||(e.exports=t)},8498:function(e,a,i){var n,t;n=[i(8411),i(8543),i(9978)],void 0===(t=function(e,a){"use strict";e.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return e.globalEval(a),a}}}),e.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),e.ajaxTransport("script",(function(i){var n,t;if(i.crossDomain||i.scriptAttrs)return{send:function(r,s){n=e("