Commit aef194d8875a4963a23eb2aeacbf89eb5b10c418

Authored by Schwirg László
1 parent 456bb8fa

Vrh.Web.Reporting v1.4

- Vrh.iScheduler v3.4
- Vrh.Web.iScheduler.Lib v3.3
Vrh.Web.Reporting/Areas/WebForm/Scripts/jquery-ui-1.12.1.min.js deleted
@@ -1,451 +0,0 @@ @@ -1,451 +0,0 @@
1 -/*! jQuery UI - v1.12.1 - 2016-09-14  
2 -* http://jqueryui.com  
3 -* Includes: widget.js, position.js, data.js, disable-selection.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, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js  
4 -* Copyright jQuery Foundation and other contributors; Licensed MIT */  
5 -(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function wt(n){for(var t=n.css("visibility");t==="inherit";)n=n.parent(),t=n.css("visibility");return t!=="hidden"}function ai(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&i!==0))return i;n=n.parent()}return 0}function y(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=p(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function p(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,w)}function w(){n.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function f(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}function i(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var b,l,o,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,c,pt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,v,hi,ci,li,t,vi,yi,r,pi,wi,bi,e,ki,di,gi,nr,tr,ir,rr,ur,fr;n.ui=n.ui||{};b=n.ui.version="1.12.1";  
6 -/*!  
7 - * jQuery UI Widget 1.12.1  
8 - * http://jqueryui.com  
9 - *  
10 - * Copyright jQuery Foundation and other contributors  
11 - * Released under the MIT license.  
12 - * http://jquery.org/license  
13 - */  
14 -l=0;o=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;(u=i[f])!=null;f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s;return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function u(n){return i.prototype[t].apply(this,n)}return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var f=o.call(arguments,1),u=0,e=f.length,i,r;u<e;u++)for(i in f[u])r=f[u][i],f[u].hasOwnProperty(i)&&r!==undefined&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var s=typeof u=="string",e=o.call(arguments,1),f=this;return s?this.length||u!=="instance"?this.each(function(){var i,o=n.data(this,r);return u==="instance"?(f=o,!1):o?!n.isFunction(o[u])||u.charAt(0)==="_"?n.error("no such method '"+u+"' for "+t+" widget instance"):(i=o[u].apply(o,e),i!==o&&i!==undefined?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=undefined:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=l++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return n==="classes"&&this._setOptionClasses(t),this.options[n]=t,n==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)(r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length)&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function u(u,f){for(var o,e=0;e<u.length;e++)o=r.classesElementLookup[u[e]]||n(),o=t.add?n(n.unique(o.get().concat(t.element.get()))):n(o.not(t.element).get()),r.classesElementLookup[u[e]]=o,i.push(u[e]),f&&t.classes[u[e]]&&i.push(t.classes[u[e]])}var i=[],r=this;return t=n.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&u(t.keys.match(/\S+/g)||[],!0),t.extra&&u(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){n.inArray(t.target,u)!==-1&&(i.classesElementLookup[r]=n(u.not(t.target).get()))})},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){r=typeof r=="boolean"?r:i;var u=typeof n=="string"||n===null,f={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r};return f.element.toggleClass(this._classes(f),r),this},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];if(c)f.on(h,c,o);else i.on(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i).off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});k=n.widget;  
15 -/*!  
16 - * jQuery UI Position 1.12.1  
17 - * http://jqueryui.com  
18 - *  
19 - * Copyright jQuery Foundation and other contributors  
20 - * Released under the MIT license.  
21 - * http://jquery.org/license  
22 - *  
23 - * http://api.jqueryui.com/position/  
24 - */  
25 -(function(){function c(n,t,i){return[parseFloat(n[0])*(h.test(n[0])?t/100:1),parseFloat(n[1])*(h.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function a(t){var i=t[0];return i.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var u,i=Math.max,t=Math.abs,f=/left|center|right/,e=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,l=n.fn.position;n.position={scrollbarWidth:function(){if(u!==undefined)return u;var r,i,t=n("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]),u=!!i[0]&&i[0].nodeType===9,f=!r&&!u;return{element:i,isWindow:r,isDocument:u,offset:f?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return l.apply(this,arguments);u=n.extend({},u);var w,h,v,p,y,k,d=n(u.of),nt=n.position.getWithinInfo(u.within),tt=n.position.getScrollInfo(nt),b=(u.collision||"flip").split(" "),g={};return k=a(d),d[0].preventDefault&&(u.at="left top"),h=k.width,v=k.height,p=k.offset,y=n.extend({},p),n.each(["my","at"],function(){var n=(u[this]||"").split(" "),t,i;n.length===1&&(n=f.test(n[0])?n.concat(["center"]):e.test(n[0])?["center"].concat(n):["center","center"]);n[0]=f.test(n[0])?n[0]:"center";n[1]=e.test(n[1])?n[1]:"center";t=o.exec(n[0]);i=o.exec(n[1]);g[this]=[t?t[0]:0,i?i[0]:0];u[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),b.length===1&&(b[1]=b[0]),u.at[0]==="right"?y.left+=h:u.at[0]==="center"&&(y.left+=h/2),u.at[1]==="bottom"?y.top+=v:u.at[1]==="center"&&(y.top+=v/2),w=c(g.at,h,v),y.left+=w[0],y.top+=w[1],this.each(function(){var a,k,e=n(this),o=e.outerWidth(),s=e.outerHeight(),it=r(this,"marginLeft"),rt=r(this,"marginTop"),ut=o+it+r(this,"marginRight")+tt.width,ft=s+rt+r(this,"marginBottom")+tt.height,f=n.extend({},y),l=c(g.my,e.outerWidth(),e.outerHeight());u.my[0]==="right"?f.left-=o:u.my[0]==="center"&&(f.left-=o/2);u.my[1]==="bottom"?f.top-=s:u.my[1]==="center"&&(f.top-=s/2);f.left+=l[0];f.top+=l[1];a={marginLeft:it,marginTop:rt};n.each(["left","top"],function(t,i){n.ui.position[b[t]]&&n.ui.position[b[t]][i](f,{targetWidth:h,targetHeight:v,elemWidth:o,elemHeight:s,collisionPosition:a,collisionWidth:ut,collisionHeight:ft,offset:[w[0]+l[0],w[1]+l[1]],my:u.my,at:u.at,within:nt,elem:e})});u.using&&(k=function(n){var r=p.left-f.left,a=r+h-o,c=p.top-f.top,y=c+v-s,l={target:{element:d,left:p.left,top:p.top,width:h,height:v},element:{element:e,left:f.left,top:f.top,width:o,height:s},horizontal:a<0?"left":r>0?"right":"center",vertical:y<0?"top":c>0?"bottom":"middle"};h<o&&t(r+a)<h&&(l.horizontal="center");v<s&&t(c+y)<v&&(l.vertical="middle");l.important=i(t(r),t(a))>i(t(c),t(y))?"horizontal":"vertical";u.using.call(this,n,l)});e.offset(n.extend(f,{using:k}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,r=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?r>0&&f<=0?(h=n.left+r+t.collisionWidth-o-u,n.left+=r-h):n.left=f>0&&r<=0?u:r>f?u+o-t.collisionWidth:u:r>0?n.left+=r:f>0?n.left-=f:n.left=i(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,r=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?r>0&&f<=0?(h=n.top+r+t.collisionHeight-e-u,n.top+=r-h):n.top=f>0&&r<=0?u:r>f?u+e-t.collisionHeight:u:r>0?n.top+=r:f>0?n.top-=f:n.top=i(n.top-s,n.top)}},flip:{left:function(n,i){var r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-o,v=l+i.collisionWidth-c-o,u=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,f=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,e=-2*i.offset[0],s,h;a<0?(s=n.left+u+f+e+i.collisionWidth-c-y,(s<0||s<t(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-i.collisionPosition.marginLeft+u+f+e-o,(h>0||t(h)<v)&&(n.left+=u+f+e))},top:function(n,i){var r=i.within,y=r.offset.top+r.scrollTop,c=r.height,o=r.isWindow?r.scrollTop:r.offset.top,l=n.top-i.collisionPosition.marginTop,a=l-o,v=l+i.collisionHeight-c-o,p=i.my[1]==="top",u=p?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,f=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,e=-2*i.offset[1],s,h;a<0?(h=n.top+u+f+e+i.collisionHeight-c-y,(h<0||h<t(a))&&(n.top+=u+f+e)):v>0&&(s=n.top-i.collisionPosition.marginTop+u+f+e-o,(s>0||t(s)<v)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}}})();d=n.ui.position;  
26 -/*!  
27 - * jQuery UI :data 1.12.1  
28 - * http://jqueryui.com  
29 - *  
30 - * Copyright jQuery Foundation and other contributors  
31 - * Released under the MIT license.  
32 - * http://jquery.org/license  
33 - */  
34 -g=n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});  
35 -/*!  
36 - * jQuery UI Disable Selection 1.12.1  
37 - * http://jqueryui.com  
38 - *  
39 - * Copyright jQuery Foundation and other contributors  
40 - * Released under the MIT license.  
41 - * http://jquery.org/license  
42 - */  
43 -nt=n.fn.extend({disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});  
44 -/*!  
45 - * jQuery UI Effects 1.12.1  
46 - * http://jqueryui.com  
47 - *  
48 - * Copyright jQuery Foundation and other contributors  
49 - * Released under the MIT license.  
50 - * http://jquery.org/license  
51 - */  
52 -var u="ui-effects-",s="ui-effects-style",h="ui-effects-animated",a=n;n.effects={effect:{}};  
53 -/*!  
54 - * jQuery Color Animations v2.1.2  
55 - * https://github.com/jquery/jquery-color  
56 - *  
57 - * Copyright 2014 jQuery Foundation and other contributors  
58 - * Released under the MIT license.  
59 - * http://jquery.org/license  
60 - *  
61 - * Date: Wed Jan 16 08:47:09 2013 -0600  
62 - */  
63 -(function(n,t){function e(n,t,i){var r=s[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:r.max<n?r.max:n}function l(t){var e=i(),o=e._rgba=[];return(t=t.toLowerCase(),r(v,function(n,i){var r,s=i.re.exec(t),h=s&&i.parse(s),f=i.space||"rgba";if(h)return r=e[f](h),e[u[f].cache]=r[u[f].cache],o=e._rgba=r._rgba,!1}),o.length)?(o.join()==="0,0,0,0"&&n.extend(o,f.transparent),e):f[t]}function o(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}var a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},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"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=i.support={},c=n("<p>")[0],f,r=n.each;c.style.cssText="background-color:rgba(1,1,1,.5)";h.rgba=c.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,s,h,c){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(s),s=t);var a=this,v=n.type(o),y=this._rgba=[];return(s!==t&&(o=[o,s,h,c],v="array"),v==="string")?this.parse(l(o)||f._default):v==="array"?(r(u.rgba.props,function(n,t){y[t.idx]=e(o[t.idx],t)}),this):v==="object"?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if(n==="alpha"||o[n]==null)return;a[u]=i.to(a._rgba)}a[u][t.idx]=e(o[n],t,!0)});a[u]&&n.inArray(null,a[u].slice(0,3))<0&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):void 0},is:function(n){var e=i(n),t=!0,f=this;return r(u,function(n,i){var o,u=e[i.cache];return u&&(o=f[i.cache]||i.to&&i.to(f._rgba)||[],r(i.props,function(n,i){if(u[i.idx]!=null)return t=u[i.idx]===o[i.idx]})),t}),t},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var f=i(n),c=f._space(),o=u[c],l=this.alpha()===0?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),h=a.slice();return f=f[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=f[c],o=s[i.type]||{};u!==null&&(r===null?h[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),h[c]=e((u-r)*t+r,i)))}),this[c](h)},blend:function(t){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return n==null?t>2?1:0:n});return t[3]===1&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return t[3]===1&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(r*255)),"#"+n.map(i,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(o(f,i,r+1/3)*255),Math.round(o(f,i,r)*255),Math.round(o(f,i,r-1/3)*255),e]};r(u,function(u,f){var s=f.props,o=f.cache,h=f.to,c=f.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v=a==="array"||a==="object"?u:arguments,f=this[o].slice();return r(s,function(n,t){var i=v[a==="object"?n:t.idx];i==null&&(i=f[t.idx]);f[t.idx]=e(i,t)}),c?(l=i(c(f)),l[o]=f,l):i(f)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f=n.type(i),h=t==="alpha"?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx],e;return f==="undefined"?s:(f==="function"&&(i=i.call(this,s),f=n.type(i)),i==null&&r.empty)?this:(f==="string"&&(e=a.exec(i),e&&(i=s+parseFloat(e[2])*(e[1]==="+"?1:-1))),o[r.idx]=i,this[h](o))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if(u!=="transparent"&&(n.type(u)!=="string"||(o=l(u)))){if(u=i(o||u),!h.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?t.parentNode:t;(e===""||e==="transparent")&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(s){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(s){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};f=n.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"}})(a),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],typeof i[r]=="string"&&(f[n.camelCase(r)]=i[r]);else for(r in i)typeof i[r]=="string"&&(f[r]=i[r]);return f}function u(t,i){var e={},u,f;for(u in i)f=i[u],t[u]!==f&&(r[u]||(n.fx.step[u]||!isNaN(parseFloat(f)))&&(e[u]=f));return e}var i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(a.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(r,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var e=n(this),h=e.attr("class")||"",o,f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(i,function(n,t){r[t]&&e[t+"Class"](r[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=u(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return typeof r=="boolean"||r===undefined?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},i==null&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:n.isFunction(t)?!0:typeof t=="object"&&!t.effect?!0:!1}function r(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:i[2]==="auto"?r:parseFloat(i[2]),bottom:i[3]==="auto"?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.filters&&n.expr.filters.animated&&(n.expr.filters.animated=function(t){return function(i){return!!n(i).data(h)||t(i)}}(n.expr.filters.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;i<r;i++)t[i]!==null&&n.data(u+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,f=t.length;i<f;i++)t[i]!==null&&(r=n.data(u+t[i]),n.css(t[i],r))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),t.css("position")==="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.12.1",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(t===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=i!=="horizontal"?(t||100)/100:1,u=i!=="vertical"?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(s,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(s)||"";n.removeData(s)},mode:function(n,t){var i=n.is(":hidden");return t==="toggle"&&(t=i?"show":"hide"),(i?t==="hide":t==="show")&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),f=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(u+"placeholder",i)),t.css({position:r,left:f.left,top:f.top}),i},removePlaceholder:function(n){var t=u+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function a(t){function l(){o.removeData(h);n.effects.cleanUp(o);i.mode==="hide"&&o.hide();s()}function s(){n.isFunction(f)&&f.call(o[0]);n.isFunction(t)&&t()}var o=n(this);i.mode=c.shift();n.uiBackCompat===!1||u?i.mode==="none"?(o[r](),s()):e.call(o[0],i,l):(o.is(":hidden")?r==="hide":r==="show")?(o[r](),s()):e.call(o[0],i,s)}var i=t.apply(this,arguments),e=n.effects.effect[i.effect],u=e.mode,o=i.queue,s=o||"fx",f=i.complete,r=i.mode,c=[],l=function(t){var f=n(this),i=n.effects.mode(f,r)||u;f.data(h,!0);c.push(i);u&&(i==="show"||i===u&&i==="hide")&&f.show();u&&i==="none"||n.effects.saveStyle(f);n.isFunction(t)&&t()};return n.fx.off||!e?r?this[r](i.duration,f):this.each(function(){f&&f.call(this)}):o===!1?this.each(l).each(a):this.queue(s,l).queue(s,a)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||typeof r=="boolean")return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();n.isFunction(i)&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),typeof t.end=="string"&&(t.end=r(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}();c=n.effects;  
64 -/*!  
65 - * jQuery UI Effects Blind 1.12.1  
66 - * http://jqueryui.com  
67 - *  
68 - * Copyright jQuery Foundation and other contributors  
69 - * Released under the MIT license.  
70 - * http://jquery.org/license  
71 - */  
72 -tt=n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];t.mode==="show"&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
73 -/*!  
74 - * jQuery UI Effects Bounce 1.12.1  
75 - * http://jqueryui.com  
76 - *  
77 - * Copyright jQuery Foundation and other contributors  
78 - * Released under the MIT license.  
79 - * http://jquery.org/license  
80 - */  
81 -it=n.effects.define("bounce",function(t,i){var e,o,a,u=n(this),p=t.mode,s=p==="hide",w=p==="show",h=t.direction||"up",r=t.distance,v=t.times||5,b=v*2+(w||s?1:0),c=t.duration/b,l=t.easing,f=h==="up"||h==="down"?"top":"left",y=h==="up"||h==="left",k=0,d=u.queue().length;for(n.effects.createPlaceholder(u),a=u.css(f),r||(r=u[f==="top"?"outerHeight":"outerWidth"]()/3),w&&(o={opacity:1},o[f]=a,u.css("opacity",0).css(f,y?-r*2:r*2).animate(o,c,l)),s&&(r=r/Math.pow(2,v-1)),o={},o[f]=a;k<v;k++)e={},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l).animate(o,c,l),r=s?r*2:r/2;s&&(e={opacity:0},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l));u.queue(i);n.effects.unshift(u,d,b+1)});  
82 -/*!  
83 - * jQuery UI Effects Clip 1.12.1  
84 - * http://jqueryui.com  
85 - *  
86 - * Copyright jQuery Foundation and other contributors  
87 - * Released under the MIT license.  
88 - * http://jquery.org/license  
89 - */  
90 -rt=n.effects.define("clip","hide",function(t,i){var r,u={},f=n(this),e=t.direction||"vertical",o=e==="both",s=o||e==="horizontal",h=o||e==="vertical";r=f.cssClip();u.clip={top:h?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:h?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(f);t.mode==="show"&&(f.cssClip(u.clip),u.clip=r);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
91 -/*!  
92 - * jQuery UI Effects Drop 1.12.1  
93 - * http://jqueryui.com  
94 - *  
95 - * Copyright jQuery Foundation and other contributors  
96 - * Released under the MIT license.  
97 - * http://jquery.org/license  
98 - */  
99 -ut=n.effects.define("drop","hide",function(t,i){var e,u=n(this),h=t.mode,c=h==="show",f=t.direction||"left",o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left"?"-=":"+=",l=s==="+="?"-=":"+=",r={opacity:0};n.effects.createPlaceholder(u);e=t.distance||u[o==="top"?"outerHeight":"outerWidth"](!0)/2;r[o]=s+e;c&&(u.css(r),r[o]=l+e,r.opacity=1);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
100 -/*!  
101 - * jQuery UI Effects Explode 1.12.1  
102 - * http://jqueryui.com  
103 - *  
104 - * Copyright jQuery Foundation and other contributors  
105 - * Released under the MIT license.  
106 - * http://jquery.org/license  
107 - */  
108 -ft=n.effects.define("explode","hide",function(t,i){function k(){p.push(this);p.length===e*c&&d()}function d(){o.css({visibility:"visible"});n(p).remove();i()}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),b=t.mode,f=b==="show",w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;r<e;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;u<c;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,k)});  
109 -/*!  
110 - * jQuery UI Effects Fade 1.12.1  
111 - * http://jqueryui.com  
112 - *  
113 - * Copyright jQuery Foundation and other contributors  
114 - * Released under the MIT license.  
115 - * http://jquery.org/license  
116 - */  
117 -et=n.effects.define("fade","toggle",function(t,i){var r=t.mode==="show";n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
118 -/*!  
119 - * jQuery UI Effects Fold 1.12.1  
120 - * http://jqueryui.com  
121 - *  
122 - * Copyright jQuery Foundation and other contributors  
123 - * Released under the MIT license.  
124 - * http://jquery.org/license  
125 - */  
126 -ot=n.effects.define("fold","hide",function(t,i){var u=n(this),l=t.mode,v=l==="show",y=l==="hide",o=t.size||15,a=/([0-9]+)%/.exec(o),p=!!t.horizFirst,f=p?["right","bottom"]:["bottom","right"],s=t.duration/2,h=n.effects.createPlaceholder(u),e=u.cssClip(),c={clip:n.extend({},e)},r={clip:n.extend({},e)},w=[e[f[0]],e[f[1]]],b=u.queue().length;a&&(o=parseInt(a[1],10)/100*w[y?0:1]);c.clip[f[0]]=o;r.clip[f[0]]=o;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),h&&h.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){h&&h.animate(n.effects.clipToBox(c),s,t.easing).animate(n.effects.clipToBox(r),s,t.easing);i()}).animate(c,s,t.easing).animate(r,s,t.easing).queue(i);n.effects.unshift(u,b,4)});  
127 -/*!  
128 - * jQuery UI Effects Highlight 1.12.1  
129 - * http://jqueryui.com  
130 - *  
131 - * Copyright jQuery Foundation and other contributors  
132 - * Released under the MIT license.  
133 - * http://jquery.org/license  
134 - */  
135 -st=n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};t.mode==="hide"&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
136 -/*!  
137 - * jQuery UI Effects Size 1.12.1  
138 - * http://jqueryui.com  
139 - *  
140 - * Copyright jQuery Foundation and other contributors  
141 - * Released under the MIT license.  
142 - * http://jquery.org/license  
143 - */  
144 -ht=n.effects.define("size",function(t,i){var l,r,p,u=n(this),v=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=t.mode,y=w!=="effect",c=t.scale||"both",b=t.origin||["middle","center"],k=u.css("position"),a=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);w==="show"&&(p=f,f=e,e=p);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};(c==="box"||c==="both")&&(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,s,r.from.y,f),e=n.effects.setTransition(u,s,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,h,r.from.x,f),e=n.effects.setTransition(u,h,r.to.x,e)));(c==="content"||c==="both")&&r.from.y!==r.to.y&&(f=n.effects.setTransition(u,v,r.from.y,f),e=n.effects.setTransition(u,v,r.to.y,e));b&&(l=n.effects.getBaseline(b,o),f.top=(o.outerHeight-f.outerHeight)*l.y+a.top,f.left=(o.outerWidth-f.outerWidth)*l.x+a.left,e.top=(o.outerHeight-e.outerHeight)*l.y+a.top,e.left=(o.outerWidth-e.outerWidth)*l.x+a.left);u.css(f);(c==="content"||c==="both")&&(s=s.concat(["marginTop","marginBottom"]).concat(v),h=h.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var i=n(this),u=n.effects.scaledDimensions(i),f={height:u.height*r.from.y,width:u.width*r.from.x,outerHeight:u.outerHeight*r.from.y,outerWidth:u.outerWidth*r.from.x},e={height:u.height*r.to.y,width:u.width*r.to.x,outerHeight:u.height*r.to.y,outerWidth:u.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(i,s,r.from.y,f),e=n.effects.setTransition(i,s,r.to.y,e));r.from.x!==r.to.x&&(f=n.effects.setTransition(i,h,r.from.x,f),e=n.effects.setTransition(i,h,r.to.x,e));y&&n.effects.saveStyle(i);i.css(f);i.animate(e,t.duration,t.easing,function(){y&&n.effects.restoreStyle(i)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();e.opacity===0&&u.css("opacity",f.opacity);y||(u.css("position",k==="static"?"relative":k).offset(t),n.effects.saveStyle(u));i()}})});  
145 -/*!  
146 - * jQuery UI Effects Scale 1.12.1  
147 - * http://jqueryui.com  
148 - *  
149 - * Copyright jQuery Foundation and other contributors  
150 - * Released under the MIT license.  
151 - * http://jquery.org/license  
152 - */  
153 -ct=n.effects.define("scale",function(t,i){var u=n(this),f=t.mode,e=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:f!=="effect"?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,e,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});  
154 -/*!  
155 - * jQuery UI Effects Puff 1.12.1  
156 - * http://jqueryui.com  
157 - *  
158 - * Copyright jQuery Foundation and other contributors  
159 - * Released under the MIT license.  
160 - * http://jquery.org/license  
161 - */  
162 -lt=n.effects.define("puff","hide",function(t,i){var r=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,r,i)});  
163 -/*!  
164 - * jQuery UI Effects Pulsate 1.12.1  
165 - * http://jqueryui.com  
166 - *  
167 - * Copyright jQuery Foundation and other contributors  
168 - * Released under the MIT license.  
169 - * http://jquery.org/license  
170 - */  
171 -at=n.effects.define("pulsate","show",function(t,i){var r=n(this),e=t.mode,o=e==="show",c=e==="hide",l=o||c,f=(t.times||5)*2+(l?1:0),s=t.duration/f,u=0,h=1,a=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1);h<f;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,a,f+1)});  
172 -/*!  
173 - * jQuery UI Effects Shake 1.12.1  
174 - * http://jqueryui.com  
175 - *  
176 - * Copyright jQuery Foundation and other contributors  
177 - * Released under the MIT license.  
178 - * http://jquery.org/license  
179 - */  
180 -vt=n.effects.define("shake",function(t,i){var l=1,r=n(this),f=t.direction||"left",e=t.distance||20,a=t.times||3,v=a*2+1,u=Math.round(t.duration/v),o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left",h={},c={},y={},p=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+e*2,y[o]=(s?"-=":"+=")+e*2,r.animate(h,u,t.easing);l<a;l++)r.animate(c,u,t.easing).animate(y,u,t.easing);r.animate(c,u,t.easing).animate(h,u/2,t.easing).queue(i);n.effects.unshift(r,p,v+1)});  
181 -/*!  
182 - * jQuery UI Effects Slide 1.12.1  
183 - * http://jqueryui.com  
184 - *  
185 - * Copyright jQuery Foundation and other contributors  
186 - * Released under the MIT license.  
187 - * http://jquery.org/license  
188 - */  
189 -yt=n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",l=f==="up"||f==="left",a=t.distance||u[e==="top"?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];c==="show"&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});  
190 -/*!  
191 - * jQuery UI Effects Transfer 1.12.1  
192 - * http://jqueryui.com  
193 - *  
194 - * Copyright jQuery Foundation and other contributors  
195 - * Released under the MIT license.  
196 - * http://jquery.org/license  
197 - */  
198 -n.uiBackCompat!==!1&&(c=n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}));pt=c;  
199 -/*!  
200 - * jQuery UI Focusable 1.12.1  
201 - * http://jqueryui.com  
202 - *  
203 - * Copyright jQuery Foundation and other contributors  
204 - * Released under the MIT license.  
205 - * http://jquery.org/license  
206 - */  
207 -n.ui.focusable=function(t,i){var u,f,e,r,o,s=t.nodeName.toLowerCase();return"area"===s?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap='#"+f+"']"),e.length>0&&e.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(r=!t.disabled,r&&(o=n(t).closest("fieldset")[0],o&&(r=!o.disabled))):r="a"===s?t.href||i:i,r&&n(t).is(":visible")&&wt(n(t)))};n.extend(n.expr[":"],{focusable:function(t){return n.ui.focusable(t,n.attr(t,"tabindex")!=null)}});bt=n.ui.focusable;kt=n.fn.form=function(){return typeof this[0].form=="string"?this.closest("form"):n(this[0].form)};  
208 -/*!  
209 - * jQuery UI Form Reset Mixin 1.12.1  
210 - * http://jqueryui.com  
211 - *  
212 - * Copyright jQuery Foundation and other contributors  
213 - * Released under the MIT license.  
214 - * http://jquery.org/license  
215 - */  
216 -dt=n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var n=this.form.data("ui-form-reset-instances")||[];if(!n.length)this.form.on("reset.ui-form-reset",this._formResetHandler);n.push(this);this.form.data("ui-form-reset-instances",n)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(n.inArray(this,t),1);t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};  
217 -/*!  
218 - * jQuery UI Support for jQuery core 1.7.x 1.12.1  
219 - * http://jqueryui.com  
220 - *  
221 - * Copyright jQuery Foundation and other contributors  
222 - * Released under the MIT license.  
223 - * http://jquery.org/license  
224 - *  
225 - */  
226 -n.fn.jquery.substring(0,3)==="1.7"&&(n.each(["Width","Height"],function(t,i){function f(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e=i==="Width"?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),u={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return t===undefined?u["inner"+i].call(this):this.each(function(){n(this).css(r,f(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return typeof t!="number"?u["outer"+i].call(this,t):this.each(function(){n(this).css(r,f(this,t,!0,e)+"px")})}}),n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});  
227 -/*!  
228 - * jQuery UI Keycode 1.12.1  
229 - * http://jqueryui.com  
230 - *  
231 - * Copyright jQuery Foundation and other contributors  
232 - * Released under the MIT license.  
233 - * http://jquery.org/license  
234 - */  
235 -gt=n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};ni=n.ui.escapeSelector=function(){var n=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(n,"\\$1")}}();  
236 -/*!  
237 - * jQuery UI Labels 1.12.1  
238 - * http://jqueryui.com  
239 - *  
240 - * Copyright jQuery Foundation and other contributors  
241 - * Released under the MIT license.  
242 - * http://jquery.org/license  
243 - */  
244 -ti=n.fn.labels=function(){var t,r,u,i,f;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),u=this.attr("id"),u&&(t=this.eq(0).parents().last(),f=t.add(t.length?t.siblings():this.siblings()),r="label[for='"+n.ui.escapeSelector(u)+"']",i=i.add(f.find(r).addBack(r))),this.pushStack(i))};  
245 -/*!  
246 - * jQuery UI Scroll Parent 1.12.1  
247 - * http://jqueryui.com  
248 - *  
249 - * Copyright jQuery Foundation and other contributors  
250 - * Released under the MIT license.  
251 - * http://jquery.org/license  
252 - */  
253 -ii=n.fn.scrollParent=function(t){var i=this.css("position"),u=i==="absolute",f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&t.css("position")==="static"?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return i==="fixed"||!r.length?n(this[0].ownerDocument||document):r};  
254 -/*!  
255 - * jQuery UI Tabbable 1.12.1  
256 - * http://jqueryui.com  
257 - *  
258 - * Copyright jQuery Foundation and other contributors  
259 - * Released under the MIT license.  
260 - * http://jquery.org/license  
261 - */  
262 -ri=n.extend(n.expr[":"],{tabbable:function(t){var i=n.attr(t,"tabindex"),r=i!=null;return(!r||i>=0)&&n.ui.focusable(t,r)}});  
263 -/*!  
264 - * jQuery UI Unique ID 1.12.1  
265 - * http://jqueryui.com  
266 - *  
267 - * Copyright jQuery Foundation and other contributors  
268 - * Released under the MIT license.  
269 - * http://jquery.org/license  
270 - */  
271 -ui=n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});  
272 -/*!  
273 - * jQuery UI Accordion 1.12.1  
274 - * http://jqueryui.com  
275 - *  
276 - * Copyright jQuery Foundation and other contributors  
277 - * Released under the MIT license.  
278 - * http://jquery.org/license  
279 - */  
280 -fi=n.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||t.active!==!1&&t.active!=null||(t.active=0);this._processPanels();t.active<0&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var i,r,t=this.options.icons;t&&(i=n("<span>"),this._addClass(i,"ui-accordion-header-icon","ui-icon "+t.header),i.prependTo(this.headers),r=this.active.children(".ui-accordion-header-icon"),this._removeClass(r,t.header)._addClass(r,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t));this._super(n,t);n!=="collapsible"||t||this.options.active!==!1||this._activate(0);n==="icons"&&(this._destroyIcons(),t&&this._createIcons())},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();(t.active!==!1||t.collapsible!==!0)&&this.headers.length?t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active):(t.active=!1,this.active=n());this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers=this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);r==="fill"?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var e,o,i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],s=f&&i.collapsible,c=s?n():r.next(),l=u.next(),h={oldHeader:u,oldPanel:l,newHeader:s?n():r,newPanel:c};(t.preventDefault(),(!f||i.collapsible)&&this._trigger("beforeActivate",t,h)!==!1)&&(i.active=s?!1:this.headers.index(r),this.active=f?n():r,this._toggle(h),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(e=u.children(".ui-accordion-header-icon"),this._removeClass(e,null,i.icons.activeHeader)._addClass(e,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return parseInt(n(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.css("box-sizing"),a=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=a&&e.down||e,s=function(){c._toggleComplete(i)};if(typeof f=="number"&&(u=f),typeof f=="string"&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,!t.length)return n.animate(this.showProps,u,r,s);if(!n.length)return t.animate(this.hideProps,u,r,s);h=n.show().outerHeight();t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}});n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);i.prop!=="height"?l==="content-box"&&(o+=i.now):c.options.heightStyle!=="content"&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}})},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});ei=n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t||(t=n.body),t.nodeName||(t=n.body),t};  
281 -/*!  
282 - * jQuery UI Menu 1.12.1  
283 - * http://jqueryui.com  
284 - *  
285 - * Copyright jQuery Foundation and other contributors  
286 - * Released under the MIT license.  
287 - * http://jquery.org/license  
288 - */  
289 -oi=n.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",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.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(n){n.preventDefault()},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget);r[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){var i=!n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n);this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=t.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();i.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,u,r,f,e=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=!1;u=this.previousFilter||"";f=!1;r=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===u?f=!0:r=u+r;i=this._filterMenuItems(r);i=f&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}e&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var u,t,f,i,e,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);f=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),u=n("<span>").data("ui-menu-submenu-caret",!0);r._addClass(u,"ui-menu-icon","ui-icon "+s);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});this._addClass(f,"ui-menu","ui-widget ui-widget-content ui-front");u=o.add(this.element);t=u.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);r._isDivider(t)&&r._addClass(t,"ui-menu-divider","ui-widget-content")});i=t.not(".ui-menu-item, .ui-menu-divider");e=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper");t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){if(n==="icons"){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",String(n));this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i,r,u;this.blur(n,n&&n.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children(".ui-menu-item-wrapper");this._addClass(r,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));u=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(u,null,"ui-state-active");n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0));r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[t]());this.focus(i,r)},nextPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r-u<0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(n.trim(n(this).children(".ui-menu-item-wrapper").text()))})}});  
290 -/*!  
291 - * jQuery UI Autocomplete 1.12.1  
292 - * http://jqueryui.com  
293 - *  
294 - * Copyright jQuery Foundation and other contributors  
295 - * Released under the MIT license.  
296 - * http://jquery.org/license  
297 - */  
298 -n.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f||!e&&this._isContentEditable(this.element);this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0;r=!0;i=!0;return}t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,i){var r,u;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}u=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value);r=i.item.attr("aria-label")||u.value;r&&n.trim(r).length&&(this.liveRegion.children().hide(),n("<div>").text(r).appendTo(this.liveRegion))},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var t=++this.requestIndex;return n.proxy(function(n){t===this.requestIndex&&this.__response(n);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this.isMultiLine||this._value(this.term);this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return t==="inherit"?this._isContentEditable(n.parent()):t==="true"}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),n("<div>").text(i).appendTo(this.liveRegion))}});si=n.ui.autocomplete;  
299 -/*!  
300 - * jQuery UI Controlgroup 1.12.1  
301 - * http://jqueryui.com  
302 - *  
303 - * Copyright jQuery Foundation and other contributors  
304 - * Released under the MIT license.  
305 - * http://jquery.org/license  
306 - */  
307 -v=/ui-corner-([a-z]){2,6}/g;hi=n.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u){if(r==="controlgroupLabel"){f=t.element.find(u);f.each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")});t._addClass(f,null,"ui-widget ui-widget-content ui-state-default");i=i.concat(f.get());return}n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),f=u[r]("instance"),o=n.widget.extend({},e),s;r==="button"&&u.parent(".ui-spinner").length||(f||(f=u[r]()[r]("instance")),f&&(o.classes=t._resolveClassesValues(o.classes,f)),u[r](o),s=u[r]("widget"),n.data(s[0],"ui-controlgroup-data",f?f:u[r]("instance")),i.push(s[0]))}))}});this.childWidgets=n(n.unique(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var r=n(this),i=r.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,i)},_buildSimpleOptions:function(n,t){var i=this.options.direction==="vertical",r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){var t=this._buildSimpleOptions(n,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t=this.options.direction==="vertical";return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(u){var f=i.options.classes[u]||"";f=n.trim(f.replace(v,""));r[u]=(f+" "+t[u]).replace(/\s+/g," ")}),r},_setOption:function(n,t){if(n==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(n,t),n==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;this.options.onlyVisible&&(t=t.filter(":visible"));t.length&&(n.each(["first","last"],function(n,r){var u=t[r]().data("ui-controlgroup-data"),f;u&&i["_"+u.widgetName+"Options"]?(f=i["_"+u.widgetName+"Options"](t.length===1?"only":r),f.classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});  
308 -/*!  
309 - * jQuery UI Checkboxradio 1.12.1  
310 - * http://jqueryui.com  
311 - *  
312 - * Copyright jQuery Foundation and other contributors  
313 - * Released under the MIT license.  
314 - * http://jquery.org/license  
315 - */  
316 -n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,u=this,r=this._super()||{};return this._readType(),i=this.element.labels(),this.label=n(i[i.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){u.originalLabel+=this.nodeType===3?n(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),t=this.element[0].disabled,t!=null&&(r.disabled=t),r},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();this.options.disabled==null&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover"));this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;t==="input"&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,i=this.element[0].name,r="input[name='"+n.ui.escapeSelector(i)+"']";return i?(t=this.form.length?n(this.form[0].elements).filter(r):n(r).filter(function(){return n(this).form().length===0}),t.not(this.element)):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);this.type==="radio"&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if(n!=="label"||t){if(this._super(n,t),n==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t);this.element[0].disabled=t;return}this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));this.iconSpace&&(n=n.not(this.iconSpace[0]));n.remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);this.options.label!==null&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);ci=n.ui.checkboxradio;  
317 -/*!  
318 - * jQuery UI Button 1.12.1  
319 - * http://jqueryui.com  
320 - *  
321 - * Copyright jQuery Foundation and other contributors  
322 - * Released under the MIT license.  
323 - * http://jquery.org/license  
324 - */  
325 -n.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var n,t=this._super()||{};return this.isInput=this.element.is("input"),n=this.element[0].disabled,n!=null&&(t.disabled=n),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u=t!=="iconPosition",r=u?this.options.iconPosition:i,f=r==="top"||r==="bottom";this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=n.showLabel===undefined?this.options.showLabel:n.showLabel,i=n.icon===undefined?this.options.icon:n.icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){n==="icon"&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));n==="iconPosition"&&this._updateIcon(n,t);n==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());n==="label"&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);n==="disabled"&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon);this._super()},_setOption:function(n,t){if(n==="text"){this._super("showLabel",t);return}n==="showLabel"&&(this.options.text=t);n==="icon"&&(this.options.icons.primary=t);n==="icons"&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end")));this._superApply(arguments)}}),n.fn.button=function(t){return function(){return!this.length||this.length&&this[0].tagName!=="INPUT"||this.length&&this[0].tagName==="INPUT"&&this.attr("type")!=="checkbox"&&this.attr("type")!=="radio"?t.apply(this,arguments):(n.ui.checkboxradio||n.error("Checkboxradio widget missing"),arguments.length===0)?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments)}}(n.fn.button),n.fn.buttonset=function(){return(n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2])?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});li=n.ui.button;  
326 -/*!  
327 - * jQuery UI Datepicker 1.12.1  
328 - * http://jqueryui.com  
329 - *  
330 - * Copyright jQuery Foundation and other contributors  
331 - * Released under the MIT license.  
332 - * http://jquery.org/license  
333 - */  
334 -n.extend(n.ui,{datepicker:{version:"1.12.1"}});n.extend(y.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return f(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?p(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);if(i.append=n([]),i.trigger=n([]),!r.hasClass(this.markerClassName)){this._attachments(r,i);r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(i);n.data(t,"datepicker",i);i.settings.disabled&&this._disableDatepicker(t)}},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");if(i.append&&i.append.remove(),e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),u==="focus"||u==="both")t.on("focus",this._showDatepicker);if(u==="button"||u==="both"){r=this._get(i,"buttonText");f=this._get(i,"buttonImage");i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r));t[o?"before":"after"](i.trigger);i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,u,e){var s,h,c,l,a,o=this._dialogInst;if(!o){this.uuid+=1;s="dp"+this.uuid;this._dialogInput=n("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.on("keydown",this._doKeyDown);n("body").append(this._dialogInput);o=this._dialogInst=this._newInst(this._dialogInput,!1);o.settings={};n.data(this._dialogInput[0],"datepicker",o)}return f(o.settings,u||{}),i=i&&i.constructor===Date?this._formatDate(o,i):i,this._dialogInput.val(i),this._pos=e?e.length?e:[e.pageX,e.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+l,c/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(i){var r,u=n(i),f=n.data(i,"datepicker");u.hasClass(this.markerClassName)&&(r=i.nodeName.toLowerCase(),n.removeData(i,"datepicker"),r==="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(r==="div"||r==="span")&&u.removeClass(this.markerClassName).empty(),t===f&&(t=null))},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var e,h,o,s,u=this._getInst(t);if(arguments.length===2&&typeof i=="string")return i==="defaults"?n.extend({},n.datepicker._defaults):u?i==="all"?n.extend({},u.settings):this._get(u,i):null;e=i||{};typeof i=="string"&&(e={},e[i]=r);u&&(this._curInst===u&&this._hideDatepicker(),h=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(u,"min"),s=this._getMinMaxDate(u,"max"),f(u.settings,e),o!==null&&e.dateFormat!==undefined&&e.minDate===undefined&&(u.settings.minDate=this._formatDate(u,o)),s!==null&&e.dateFormat!==undefined&&e.maxDate===undefined&&(u.settings.maxDate=this._formatDate(u,s)),"disabled"in e&&(e.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),u),this._autoSize(u),this._setDate(u,h),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,r,u,e,h;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(f(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")==="fixed",!r}),u={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),u=n.datepicker._checkOffset(i,u,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",ai(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i))}},_updateDatepicker:function(i){this.maxRows=4;t=i;i.dpDiv.empty().append(this._generateHTML(i));this._attachHandlers(i);var r,u=this._getNumberOfMonths(i),f=u[1],e=i.dpDiv.find("."+this._dayOverClass+" a");e.length>0&&w.apply(e.get(0));i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");f>1&&i.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");i.dpDiv[(u[0]!==1||u[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");i===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus");i.yearshtml&&(r=i.yearshtml,setTimeout(function(){r===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year:first").replaceWith(i.yearshtml);r=i.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;i&&(!t||i===n.data(t,"datepicker"))&&this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r==="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).val(u))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r=n==="@"?14:n==="!"?20:n==="y"&&u?4:n==="o"?3:2,e=n==="y"?r:1,o=new RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;o<t.length;o++)if(w)t.charAt(o)!=="'"||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return n.settings[t]!==undefined?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,o,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),f=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),e=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=e[0]!==1||e[1]!==1,ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-e[0]*e[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(f?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(f?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",y=0;y<e[0];y++){for(ct="",this.maxRows=4,p=0;p<e[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",e[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(f?"right":"left");break;case e[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(f?"left":"right");break;default:u+=" ui-datepicker-group-middle";l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&y===0?f?ut:rt:"")+(/all|right/.test(l)&&y===0?f?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",o=0;o<7;o++)vt=(o+c)%7,at+="<th scope='col'"+((o+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",o=0;o<7;o++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((o+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+((!a||g)&&d[2]?" title='"+d[2].replace(/'/g,"&#39;")+"'":"")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++;t>11&&(t=0,r++);u+="<\/tbody><\/table>"+(ti?"<\/div>"+(e[0]>0&&p===e[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.selectedYear+(i==="Y"?t:0),f=n.selectedMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;if(!n.datepicker.initialized){n(document).on("mousedown",n.datepicker._checkExternalClick);n.datepicker.initialized=!0}n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new y;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.12.1";vi=n.datepicker;yi=n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());  
335 -/*!  
336 - * jQuery UI Mouse 1.12.1  
337 - * http://jqueryui.com  
338 - *  
339 - * Copyright jQuery Foundation and other contributors  
340 - * Released under the MIT license.  
341 - * http://jquery.org/license  
342 - */  
343 -r=!1;n(document).on("mouseup",function(){r=!1});var er=n.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!r){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,u=t.which===1,f=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;if(!u||f||!this._mouseCapture(t))return!0;if(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))return t.preventDefault(),!0;!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(n){return i._mouseMove(n)};this._mouseUpDelegate=function(n){return i._mouseUp(n)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);return t.preventDefault(),r=!0,!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return((t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;r=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),or=n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}},sr=n.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&n(t).trigger("blur")};  
344 -/*!  
345 - * jQuery UI Draggable 1.12.1  
346 - * http://jqueryui.com  
347 - *  
348 - * Copyright jQuery Foundation and other contributors  
349 - * Released under the MIT license.  
350 - * http://jquery.org/license  
351 - */  
352 -n.widget("ui.draggable",n.ui.mouse,{version:"1.12.1",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(){this.options.helper==="original"&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);n==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(this._blurActiveElement(t),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]),r=n(t.target);r.closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.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 n(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){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:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_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(t){var r=this.options,u=n.isFunction(r.helper),i=u?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),u&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?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 f,t,i,r=this.options,u=this.document[0];if(this.relativeContainer=null,!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)},_convertPositionTo:function(n,t){t||(t=this.position);var i=n==="absolute"?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),r.axis==="y"&&(e=this.originalPageX),r.axis==="x"&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:h?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(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])&&(f=!1),f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!=="HTML"&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&e.tagName!=="HTML"?(u.axis&&u.axis==="x"||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&u.axis==="y"||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&u.axis==="x"||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&u.axis==="y"||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left-r.margins.left,a=c+r.snapElements[u].width,l=r.snapElements[u].top-r.margins.top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left));w=e||o||s||h;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left));!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=e||o||s||h||w}}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});pi=n.ui.draggable;  
353 -/*!  
354 - * jQuery UI Resizable 1.12.1  
355 - * http://jqueryui.com  
356 - *  
357 - * Copyright jQuery Foundation and other contributors  
358 - * Released under the MIT license.  
359 - * http://jquery.org/license  
360 - */  
361 -n.widget("ui.resizable",n.ui.mouse,{version:"1.12.1",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(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},_create:function(){var r,t=this.options,i=this;if(this._addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper' style='overflow: hidden;'><\/div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),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(r),this._proportionallyResize()),this._setupHandles(),t.autoHide)n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){this._super(n,t);switch(n){case"handles":this._removeHandles();this._setupHandles()}},_setupHandles:function(){var u=this.options,i,r,f,o,t,e=this;if(this.handles=u.handles||(n(".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=n(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},r=0;r<f.length;r++)i=n.trim(f[r]),o="ui-resizable-"+i,t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:u.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.append(t);this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in 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]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),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(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});u.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",e==="auto"?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return(this._updatePrevProperties(),!f)?!1:(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),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 n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:Infinity,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:Infinity};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),u<t.maxWidth&&(t.maxWidth=u),e<t.maxHeight&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),r==="sw"&&(n.left=t.left+(i.width-n.width),n.top=null),r==="nw"&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];t<4;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div style='overflow:hidden;'><\/div>"),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(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);t!=="resize"&&this._trigger(t,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}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance"),i=t.options;n(i.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&i>=0&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");n.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,o=t.originalSize,s=t.originalPosition,c=t.axis,l=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,f=l[0]||1,e=l[1]||1,a=Math.round((y.width-o.width)/f)*f,v=Math.round((y.height-o.height)/e)*e,r=o.width+a,u=o.height+v,p=i.maxWidth&&i.maxWidth<r,w=i.maxHeight&&i.maxHeight<u,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=f);k&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=s.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=s.left-a):((u-e<=0||r-f<=0)&&(h=t._getPaddingPlusBorderDimensions(this)),u-e>0?(t.size.height=u,t.position.top=s.top-v):(u=e-h.height,t.size.height=u,t.position.top=s.top+o.height-u),r-f>0?(t.size.width=r,t.position.left=s.left-a):(r=f-h.width,t.size.width=r,t.position.left=s.left+o.width-r))}});wi=n.ui.resizable;  
362 -/*!  
363 - * jQuery UI Dialog 1.12.1  
364 - * http://jqueryui.com  
365 - *  
366 - * Copyright jQuery Foundation and other contributors  
367 - * Released under the MIT license.  
368 - * http://jquery.org/license  
369 - */  
370 -n.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0;this.opener=n(n.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,!0);this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).trigger("focus")},_keepFocus:function(t){function i(){var t=n.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault();i.call(this);this._delay(i)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE){t.preventDefault();this.close(t);return}if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),u=i.filter(":last");t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}n.each(t,function(t,r){var u,f;r=n.isFunction(r)?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;f={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;typeof r.text=="boolean"&&delete r.text;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,of:t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e=typeof u=="string"?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);i!==-1&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var f,u,r=this.uiDialog;t!=="disabled"&&(this._super(t,i),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&(f=r.is(":data(ui-draggable)"),f&&!i&&r.draggable("destroy"),!f&&i&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&(u=r.is(":data(ui-resizable)"),u&&!i&&r.resizable("destroy"),u&&typeof i=="string"&&r.resizable("option","handles",i),u||i===!1||this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none";n.height==="auto"?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1});this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){t||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}});this.overlay=n("<div>").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 n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays"));this.overlay.remove();this.overlay=null}}});n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){n==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});bi=n.ui.dialog;  
371 -/*!  
372 - * jQuery UI Droppable 1.12.1  
373 - * http://jqueryui.com  
374 - *  
375 - * Copyright jQuery Foundation and other contributors  
376 - * Released under the MIT license.  
377 - * http://jquery.org/license  
378 - */  
379 -n.widget("ui.droppable",{version:"1.12.1",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 t,i=this.options,r=i.accept;this.isover=!1;this.isout=!0;this.accept=n.isFunction(r)?r:function(n){return n.is(r)};this.proportions=function(){if(arguments.length)t=arguments[0];else return t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(i.scope);i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;t<n.length;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if(t==="accept")this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if(t==="scope"){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!r||(r.currentItem||r.element)[0]===this.element[0]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&e(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return u=!0,!1}),u)?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});e=n.ui.intersect=function(){function n(n,t,i){return n>=t&&n<t+i}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return f<=o&&h<=l&&e<=s&&c<=a;case"intersect":return f<o+t.helperProportions.width/2&&h-t.helperProportions.width/2<l&&e<s+t.helperProportions.height/2&&c-t.helperProportions.height/2<a;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&s<=a||c>=e&&c<=a||s<e&&c>a)&&(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,o,f,s=e(t,this,this.options.tolerance,i),u=!s&&this.isover?"isout":s&&!this.isover?"isover":null;u&&(this.options.greedy&&(o=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===o}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.uiBackCompat!==!1&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});ki=n.ui.droppable;  
380 -/*!  
381 - * jQuery UI Progressbar 1.12.1  
382 - * http://jqueryui.com  
383 - *  
384 - * Copyright jQuery Foundation and other contributors  
385 - * Released under the MIT license.  
386 - * http://jquery.org/license  
387 - */  
388 -di=n.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){if(n===undefined)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return n===undefined&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){n==="max"&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});  
389 -/*!  
390 - * jQuery UI Selectable 1.12.1  
391 - * http://jqueryui.com  
392 - *  
393 - * Copyright jQuery Foundation and other contributors  
394 - * Released under the MIT license.  
395 - * http://jquery.org/license  
396 - */  
397 -gi=n.widget("ui.selectable",n.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),u=i.offset(),r={left:u.left-t.elementPos.left,top:u.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;(this.opos=[t.pageX,t.pageY],this.elementPos=n(this.element[0]).offset(),this.options.disabled)||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return r>f&&(o=f,f=r,r=o),u>e&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,s.tolerance==="touch"?c=!(h.left>f||h.right<r||h.top>e||h.bottom<u):s.tolerance==="fit"&&(c=h.left>r&&h.right<f&&h.top>u&&h.bottom<e),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});  
398 -/*!  
399 - * jQuery UI Selectmenu 1.12.1  
400 - * http://jqueryui.com  
401 - *  
402 - * Copyright jQuery Foundation and other contributors  
403 - * Released under the MIT license.  
404 - * http://jquery.org/license  
405 - */  
406 -nr=n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.focus();n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);this.options.width!==!1&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");t.focusIndex!=null&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var n,t=this.element.find("option");(this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length)&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length)&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),u+=":not(.ui-state-disabled)");r=n==="first"||n==="last"?i[n==="first"?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){if(n==="icons"){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(n,t);n==="appendTo"&&this.menuWrap.appendTo(this._appendTo());n==="width"&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;if(n===!1){this.button.css("width","");return}n===null&&(n=this.element.show().outerWidth(),this.element.hide());this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);  
407 -/*!  
408 - * jQuery UI Slider 1.12.1  
409 - * http://jqueryui.com  
410 - *  
411 - * Copyright jQuery Foundation and other contributors  
412 - * Released under the MIT license.  
413 - * http://jquery.org/license  
414 - */  
415 -tr=n.widget("ui.slider",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),(t.range==="min"||t.range==="max")&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:t!==undefined?t:this.value()};return this._hasMultipleValues()&&(r.value=t!==undefined?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var u,r,f=this.value(),e=this.values();(this._hasMultipleValues()&&(r=this.values(t?0:1),f=this.values(t),this.options.values.length===2&&this.options.range===!0&&(i=t===0?Math.min(r,i):Math.max(r,i)),e[t]=i),i!==f)&&(u=this._trigger("slide",n,this._uiHash(t,i,e)),u!==!1)&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i);this._refreshValue();this._change(null,t);return}if(arguments.length)if(n.isArray(arguments[0])){for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()}else return this._hasMultipleValues()?this._values(t):this.value();else return this._values()},_setOption:function(t,i){var r,u=0;t==="range"&&this.options.range===!0&&(i==="min"?(this.options.value=this._values(0),this.options.values=null):i==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));n.isArray(this.options.values)&&(u=this.options.values.length);this._super(t,i);switch(t){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(i);this.handles.css(i==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=u-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],this._trimAlignValue(r);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step,r=Math.round((n-i)/t)*t;n=r+i;n>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){n==="vertical"&&this.range.css({width:"",left:""});n==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o[r.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),e=this._start(t,f),e===!1))return}u=this.options.step;r=this._hasMultipleValues()?i=this.values(f):i=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});  
416 -/*!  
417 - * jQuery UI Sortable 1.12.1  
418 - * http://jqueryui.com  
419 - *  
420 - * Copyright jQuery Foundation and other contributors  
421 - * Released under the MIT license.  
422 - * http://jquery.org/license  
423 - */  
424 -ir=n.widget("ui.sortable",n.ui.mouse,{version:"1.12.1",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(n,t,i){return n>=t&&n<t+i},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);n==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&u.cursor!=="auto"&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-this.document.scrollTop()<i.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-i.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<i.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+i.scrollSpeed)),t.pageX-this.document.scrollLeft()<i.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-i.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<i.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;e>=0;e--)if((u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o)&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[o===1?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],f):!0)){if(this.direction=o===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(u))this._rearrange(t,u);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft));r&&r!=="y"||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var t,i,r=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u;return f?(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?i==="right"||t==="down"?2:1:t&&(t==="down"?2:1)):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?i==="right"&&u||i==="left"&&!u:t&&(t==="down"&&r||t==="up"&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;u<l;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1;this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)(r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0])||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",r||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),u==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):u==="tr"?t._createTrPlaceholder(t.currentItem,i):u==="img"&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(this.containers.length===1)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"pageX":"pageY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),Math.abs(t[h]-o)<c&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i]){this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||n(r.appendTo!=="parent"?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!=="hidden",this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];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)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("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",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});  
425 -/*!  
426 - * jQuery UI Spinner 1.12.1  
427 - * http://jqueryui.com  
428 - *  
429 - * Copyright jQuery Foundation and other contributors  
430 - * Released under the MIT license.  
431 - * http://jquery.org/license  
432 - */  
433 -n.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this.value()!==""&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);u!=null&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",n)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100);n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var t=this.element[0]===n.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;(i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur;r.call(this)}),this._start(t)!==!1)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return!this.spinning&&this._trigger("start",n)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var u,i,r;if(n==="culture"||n==="numberFormat"){u=this._parse(this.element.val());this.options[n]=t;this.element.val(this._format(u));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t));n==="icons"&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:i(function(n){this._super(n)}),_parse:function(n){return typeof n=="string"&&n!==""&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),n===""||isNaN(n)?null:n},_format:function(n){return n===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return n===null?!1:n===this._adjustValue(n)},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:i(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:i(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:i(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:i(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());i(this._value).call(this,n)},widget:function(){return this.uiSpinner}});n.uiBackCompat!==!1&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});rr=n.ui.spinner;  
434 -/*!  
435 - * jQuery UI Tabs 1.12.1  
436 - * http://jqueryui.com  
437 - *  
438 - * Copyright jQuery Foundation and other contributors  
439 - * Released under the MIT license.  
440 - * http://jquery.org/license  
441 - */  
442 -n.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:t.preventDefault();clearTimeout(this.activating);this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(i===this.options.active?!1:i);return;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){if(n==="active"){this._activate(t);return}this._super(n,t);n==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0));n==="event"&&this._setupEvents(t);n==="heightStyle"&&this._setupHeightStyle(t)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({role:"presentation",tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,u,r;for(n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;u=this.tabs[r];r++)i=n(u),t===!0||n.inArray(r,t)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):t==="auto"&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};(t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1)||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+n.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(t===undefined?i=!1:(t=this._getIndex(t),i=n.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(t===undefined)i=!0;else{if(t=this._getIndex(t),n.inArray(t,i)!==-1)return;i=n.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var r=this,u=this.tabs.eq(t),e=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f},s=function(n,t){t==="abort"&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);s(u,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.uiBackCompat!==!1&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});ur=n.ui.tabs;  
443 -/*!  
444 - * jQuery UI Tooltip 1.12.1  
445 - * http://jqueryui.com  
446 - *  
447 - * Copyright jQuery Foundation and other contributors  
448 - * Released under the MIT license.  
449 - * http://jquery.org/license  
450 - */  
451 -n.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title")||"";return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i);t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);r!==-1&&i.splice(r,1);t.removeData("ui-tooltip-id");i=n.trim(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var r,i=this.options.content,u=this,f=t?t.type:null;if(typeof i=="string"||i.nodeType||i.jquery)return this._open(t,n,i);r=i.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})});r&&this._open(t,n,r)},_open:function(t,i,r){function s(n){(o.of=n,u.is(":hidden"))||u.position(o)}var f,u,h,e,o=n.extend({},this.options.position);if(r){if(f=this._find(i),f){f.tooltip.find(".ui-tooltip-content").html(r);return}i.is("[title]")&&(t&&t.type==="mouseover"?i.attr("title",""):i.removeAttr("title"));f=this._tooltip(i);u=f.tooltip;this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();e=n("<div>").html(u.find(".ui-tooltip-content").html());e.removeAttr("name").find("[name]").removeAttr("name");e.removeAttr("id").find("[id]").removeAttr("id");e.appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):u.position(n.extend({of:i},this.options.position));u.hide();this._show(u,this.options.show);this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(s(o.of),clearInterval(h))},n.fx.interval));this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)});t&&t.type!=="mouseover"||(r.mouseleave="close");t&&t.type!=="focusin"||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);if(!r){i.removeData("ui-tooltip-open");return}(u=r.tooltip,r.closing)||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1))},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){var t=n.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0];t.close(f,!0);n("#"+i).remove();u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});n.uiBackCompat!==!1&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});fr=n.ui.tooltip});  
452 \ No newline at end of file 0 \ No newline at end of file
Vrh.Web.Reporting/Areas/WebForm/Scripts/jquery-ui-1.12.1.js renamed to Vrh.Web.Reporting/Areas/WebForm/Scripts/jquery-ui-1.13.2.js
1 -/*! jQuery UI - v1.12.1 - 2016-09-14 1 +/*! jQuery UI - v1.13.2 - 2022-07-14
2 * http://jqueryui.com 2 * http://jqueryui.com
3 -* Includes: widget.js, position.js, data.js, disable-selection.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, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js 3 +* Includes: widget.js, position.js, data.js, disable-selection.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, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
4 * Copyright jQuery Foundation and other contributors; Licensed MIT */ 4 * Copyright jQuery Foundation and other contributors; Licensed MIT */
5 5
6 -(function( factory ) { 6 +( function( factory ) {
  7 + "use strict";
  8 +
7 if ( typeof define === "function" && define.amd ) { 9 if ( typeof define === "function" && define.amd ) {
8 10
9 // AMD. Register as an anonymous module. 11 // AMD. Register as an anonymous module.
10 - define([ "jquery" ], factory ); 12 + define( [ "jquery" ], factory );
11 } else { 13 } else {
12 14
13 // Browser globals 15 // Browser globals
14 factory( jQuery ); 16 factory( jQuery );
15 } 17 }
16 -}(function( $ ) { 18 +} )( function( $ ) {
  19 +"use strict";
17 20
18 $.ui = $.ui || {}; 21 $.ui = $.ui || {};
19 22
20 -var version = $.ui.version = "1.12.1"; 23 +var version = $.ui.version = "1.13.2";
21 24
22 25
23 /*! 26 /*!
24 - * jQuery UI Widget 1.12.1 27 + * jQuery UI Widget 1.13.2
25 * http://jqueryui.com 28 * http://jqueryui.com
26 * 29 *
27 * Copyright jQuery Foundation and other contributors 30 * Copyright jQuery Foundation and other contributors
@@ -36,24 +39,20 @@ var version = $.ui.version = &quot;1.12.1&quot;; @@ -36,24 +39,20 @@ var version = $.ui.version = &quot;1.12.1&quot;;
36 //>>demos: http://jqueryui.com/widget/ 39 //>>demos: http://jqueryui.com/widget/
37 40
38 41
39 -  
40 var widgetUuid = 0; 42 var widgetUuid = 0;
  43 +var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
41 var widgetSlice = Array.prototype.slice; 44 var widgetSlice = Array.prototype.slice;
42 45
43 $.cleanData = ( function( orig ) { 46 $.cleanData = ( function( orig ) {
44 return function( elems ) { 47 return function( elems ) {
45 var events, elem, i; 48 var events, elem, i;
46 for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) { 49 for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
47 - try {  
48 -  
49 - // Only trigger remove when necessary to save time  
50 - events = $._data( elem, "events" );  
51 - if ( events && events.remove ) {  
52 - $( elem ).triggerHandler( "remove" );  
53 - }  
54 50
55 - // Http://bugs.jquery.com/ticket/8235  
56 - } catch ( e ) {} 51 + // Only trigger remove when necessary to save time
  52 + events = $._data( elem, "events" );
  53 + if ( events && events.remove ) {
  54 + $( elem ).triggerHandler( "remove" );
  55 + }
57 } 56 }
58 orig( elems ); 57 orig( elems );
59 }; 58 };
@@ -75,12 +74,12 @@ $.widget = function( name, base, prototype ) { @@ -75,12 +74,12 @@ $.widget = function( name, base, prototype ) {
75 base = $.Widget; 74 base = $.Widget;
76 } 75 }
77 76
78 - if ( $.isArray( prototype ) ) { 77 + if ( Array.isArray( prototype ) ) {
79 prototype = $.extend.apply( null, [ {} ].concat( prototype ) ); 78 prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
80 } 79 }
81 80
82 // Create selector for plugin 81 // Create selector for plugin
83 - $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { 82 + $.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
84 return !!$.data( elem, fullName ); 83 return !!$.data( elem, fullName );
85 }; 84 };
86 85
@@ -89,7 +88,7 @@ $.widget = function( name, base, prototype ) { @@ -89,7 +88,7 @@ $.widget = function( name, base, prototype ) {
89 constructor = $[ namespace ][ name ] = function( options, element ) { 88 constructor = $[ namespace ][ name ] = function( options, element ) {
90 89
91 // Allow instantiation without "new" keyword 90 // Allow instantiation without "new" keyword
92 - if ( !this._createWidget ) { 91 + if ( !this || !this._createWidget ) {
93 return new constructor( options, element ); 92 return new constructor( options, element );
94 } 93 }
95 94
@@ -120,7 +119,7 @@ $.widget = function( name, base, prototype ) { @@ -120,7 +119,7 @@ $.widget = function( name, base, prototype ) {
120 // inheriting from 119 // inheriting from
121 basePrototype.options = $.widget.extend( {}, basePrototype.options ); 120 basePrototype.options = $.widget.extend( {}, basePrototype.options );
122 $.each( prototype, function( prop, value ) { 121 $.each( prototype, function( prop, value ) {
123 - if ( !$.isFunction( value ) ) { 122 + if ( typeof value !== "function" ) {
124 proxiedPrototype[ prop ] = value; 123 proxiedPrototype[ prop ] = value;
125 return; 124 return;
126 } 125 }
@@ -199,7 +198,7 @@ $.widget.extend = function( target ) { @@ -199,7 +198,7 @@ $.widget.extend = function( target ) {
199 for ( ; inputIndex < inputLength; inputIndex++ ) { 198 for ( ; inputIndex < inputLength; inputIndex++ ) {
200 for ( key in input[ inputIndex ] ) { 199 for ( key in input[ inputIndex ] ) {
201 value = input[ inputIndex ][ key ]; 200 value = input[ inputIndex ][ key ];
202 - if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) { 201 + if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
203 202
204 // Clone objects 203 // Clone objects
205 if ( $.isPlainObject( value ) ) { 204 if ( $.isPlainObject( value ) ) {
@@ -248,7 +247,8 @@ $.widget.bridge = function( name, object ) { @@ -248,7 +247,8 @@ $.widget.bridge = function( name, object ) {
248 "attempted to call method '" + options + "'" ); 247 "attempted to call method '" + options + "'" );
249 } 248 }
250 249
251 - if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) { 250 + if ( typeof instance[ options ] !== "function" ||
  251 + options.charAt( 0 ) === "_" ) {
252 return $.error( "no such method '" + options + "' for " + name + 252 return $.error( "no such method '" + options + "' for " + name +
253 " widget instance" ); 253 " widget instance" );
254 } 254 }
@@ -509,12 +509,34 @@ $.Widget.prototype = { @@ -509,12 +509,34 @@ $.Widget.prototype = {
509 classes: this.options.classes || {} 509 classes: this.options.classes || {}
510 }, options ); 510 }, options );
511 511
  512 + function bindRemoveEvent() {
  513 + var nodesToBind = [];
  514 +
  515 + options.element.each( function( _, element ) {
  516 + var isTracked = $.map( that.classesElementLookup, function( elements ) {
  517 + return elements;
  518 + } )
  519 + .some( function( elements ) {
  520 + return elements.is( element );
  521 + } );
  522 +
  523 + if ( !isTracked ) {
  524 + nodesToBind.push( element );
  525 + }
  526 + } );
  527 +
  528 + that._on( $( nodesToBind ), {
  529 + remove: "_untrackClassesElement"
  530 + } );
  531 + }
  532 +
512 function processClassString( classes, checkOption ) { 533 function processClassString( classes, checkOption ) {
513 var current, i; 534 var current, i;
514 for ( i = 0; i < classes.length; i++ ) { 535 for ( i = 0; i < classes.length; i++ ) {
515 current = that.classesElementLookup[ classes[ i ] ] || $(); 536 current = that.classesElementLookup[ classes[ i ] ] || $();
516 if ( options.add ) { 537 if ( options.add ) {
517 - current = $( $.unique( current.get().concat( options.element.get() ) ) ); 538 + bindRemoveEvent();
  539 + current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
518 } else { 540 } else {
519 current = $( current.not( options.element ).get() ); 541 current = $( current.not( options.element ).get() );
520 } 542 }
@@ -526,10 +548,6 @@ $.Widget.prototype = { @@ -526,10 +548,6 @@ $.Widget.prototype = {
526 } 548 }
527 } 549 }
528 550
529 - this._on( options.element, {  
530 - "remove": "_untrackClassesElement"  
531 - } );  
532 -  
533 if ( options.keys ) { 551 if ( options.keys ) {
534 processClassString( options.keys.match( /\S+/g ) || [], true ); 552 processClassString( options.keys.match( /\S+/g ) || [], true );
535 } 553 }
@@ -547,6 +565,8 @@ $.Widget.prototype = { @@ -547,6 +565,8 @@ $.Widget.prototype = {
547 that.classesElementLookup[ key ] = $( value.not( event.target ).get() ); 565 that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
548 } 566 }
549 } ); 567 } );
  568 +
  569 + this._off( $( event.target ) );
550 }, 570 },
551 571
552 _removeClass: function( element, keys, extra ) { 572 _removeClass: function( element, keys, extra ) {
@@ -627,7 +647,7 @@ $.Widget.prototype = { @@ -627,7 +647,7 @@ $.Widget.prototype = {
627 _off: function( element, eventName ) { 647 _off: function( element, eventName ) {
628 eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) + 648 eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
629 this.eventNamespace; 649 this.eventNamespace;
630 - element.off( eventName ).off( eventName ); 650 + element.off( eventName );
631 651
632 // Clear the stack to avoid memory leaks (#10056) 652 // Clear the stack to avoid memory leaks (#10056)
633 this.bindings = $( this.bindings.not( element ).get() ); 653 this.bindings = $( this.bindings.not( element ).get() );
@@ -693,7 +713,7 @@ $.Widget.prototype = { @@ -693,7 +713,7 @@ $.Widget.prototype = {
693 } 713 }
694 714
695 this.element.trigger( event, data ); 715 this.element.trigger( event, data );
696 - return !( $.isFunction( callback ) && 716 + return !( typeof callback === "function" &&
697 callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false || 717 callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
698 event.isDefaultPrevented() ); 718 event.isDefaultPrevented() );
699 } 719 }
@@ -715,6 +735,8 @@ $.each( { show: &quot;fadeIn&quot;, hide: &quot;fadeOut&quot; }, function( method, defaultEffect ) { @@ -715,6 +735,8 @@ $.each( { show: &quot;fadeIn&quot;, hide: &quot;fadeOut&quot; }, function( method, defaultEffect ) {
715 options = options || {}; 735 options = options || {};
716 if ( typeof options === "number" ) { 736 if ( typeof options === "number" ) {
717 options = { duration: options }; 737 options = { duration: options };
  738 + } else if ( options === true ) {
  739 + options = {};
718 } 740 }
719 741
720 hasOptions = !$.isEmptyObject( options ); 742 hasOptions = !$.isEmptyObject( options );
@@ -744,7 +766,7 @@ var widget = $.widget; @@ -744,7 +766,7 @@ var widget = $.widget;
744 766
745 767
746 /*! 768 /*!
747 - * jQuery UI Position 1.12.1 769 + * jQuery UI Position 1.13.2
748 * http://jqueryui.com 770 * http://jqueryui.com
749 * 771 *
750 * Copyright jQuery Foundation and other contributors 772 * Copyright jQuery Foundation and other contributors
@@ -783,6 +805,10 @@ function parseCss( element, property ) { @@ -783,6 +805,10 @@ function parseCss( element, property ) {
783 return parseInt( $.css( element, property ), 10 ) || 0; 805 return parseInt( $.css( element, property ), 10 ) || 0;
784 } 806 }
785 807
  808 +function isWindow( obj ) {
  809 + return obj != null && obj === obj.window;
  810 +}
  811 +
786 function getDimensions( elem ) { 812 function getDimensions( elem ) {
787 var raw = elem[ 0 ]; 813 var raw = elem[ 0 ];
788 if ( raw.nodeType === 9 ) { 814 if ( raw.nodeType === 9 ) {
@@ -792,7 +818,7 @@ function getDimensions( elem ) { @@ -792,7 +818,7 @@ function getDimensions( elem ) {
792 offset: { top: 0, left: 0 } 818 offset: { top: 0, left: 0 }
793 }; 819 };
794 } 820 }
795 - if ( $.isWindow( raw ) ) { 821 + if ( isWindow( raw ) ) {
796 return { 822 return {
797 width: elem.width(), 823 width: elem.width(),
798 height: elem.height(), 824 height: elem.height(),
@@ -819,9 +845,9 @@ $.position = { @@ -819,9 +845,9 @@ $.position = {
819 return cachedScrollbarWidth; 845 return cachedScrollbarWidth;
820 } 846 }
821 var w1, w2, 847 var w1, w2,
822 - div = $( "<div " +  
823 - "style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +  
824 - "<div style='height:100px;width:auto;'></div></div>" ), 848 + div = $( "<div style=" +
  849 + "'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" +
  850 + "<div style='height:300px;width:auto;'></div></div>" ),
825 innerDiv = div.children()[ 0 ]; 851 innerDiv = div.children()[ 0 ];
826 852
827 $( "body" ).append( div ); 853 $( "body" ).append( div );
@@ -854,12 +880,12 @@ $.position = { @@ -854,12 +880,12 @@ $.position = {
854 }, 880 },
855 getWithinInfo: function( element ) { 881 getWithinInfo: function( element ) {
856 var withinElement = $( element || window ), 882 var withinElement = $( element || window ),
857 - isWindow = $.isWindow( withinElement[ 0 ] ), 883 + isElemWindow = isWindow( withinElement[ 0 ] ),
858 isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9, 884 isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
859 - hasOffset = !isWindow && !isDocument; 885 + hasOffset = !isElemWindow && !isDocument;
860 return { 886 return {
861 element: withinElement, 887 element: withinElement,
862 - isWindow: isWindow, 888 + isWindow: isElemWindow,
863 isDocument: isDocument, 889 isDocument: isDocument,
864 offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 }, 890 offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
865 scrollLeft: withinElement.scrollLeft(), 891 scrollLeft: withinElement.scrollLeft(),
@@ -879,7 +905,12 @@ $.fn.position = function( options ) { @@ -879,7 +905,12 @@ $.fn.position = function( options ) {
879 options = $.extend( {}, options ); 905 options = $.extend( {}, options );
880 906
881 var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, 907 var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
882 - target = $( options.of ), 908 +
  909 + // Make sure string options are treated as CSS selectors
  910 + target = typeof options.of === "string" ?
  911 + $( document ).find( options.of ) :
  912 + $( options.of ),
  913 +
883 within = $.position.getWithinInfo( options.within ), 914 within = $.position.getWithinInfo( options.within ),
884 scrollInfo = $.position.getScrollInfo( within ), 915 scrollInfo = $.position.getScrollInfo( within ),
885 collision = ( options.collision || "flip" ).split( " " ), 916 collision = ( options.collision || "flip" ).split( " " ),
@@ -1232,7 +1263,7 @@ var position = $.ui.position; @@ -1232,7 +1263,7 @@ var position = $.ui.position;
1232 1263
1233 1264
1234 /*! 1265 /*!
1235 - * jQuery UI :data 1.12.1 1266 + * jQuery UI :data 1.13.2
1236 * http://jqueryui.com 1267 * http://jqueryui.com
1237 * 1268 *
1238 * Copyright jQuery Foundation and other contributors 1269 * Copyright jQuery Foundation and other contributors
@@ -1246,7 +1277,7 @@ var position = $.ui.position; @@ -1246,7 +1277,7 @@ var position = $.ui.position;
1246 //>>docs: http://api.jqueryui.com/data-selector/ 1277 //>>docs: http://api.jqueryui.com/data-selector/
1247 1278
1248 1279
1249 -var data = $.extend( $.expr[ ":" ], { 1280 +var data = $.extend( $.expr.pseudos, {
1250 data: $.expr.createPseudo ? 1281 data: $.expr.createPseudo ?
1251 $.expr.createPseudo( function( dataName ) { 1282 $.expr.createPseudo( function( dataName ) {
1252 return function( elem ) { 1283 return function( elem ) {
@@ -1261,7 +1292,7 @@ var data = $.extend( $.expr[ &quot;:&quot; ], { @@ -1261,7 +1292,7 @@ var data = $.extend( $.expr[ &quot;:&quot; ], {
1261 } ); 1292 } );
1262 1293
1263 /*! 1294 /*!
1264 - * jQuery UI Disable Selection 1.12.1 1295 + * jQuery UI Disable Selection 1.13.2
1265 * http://jqueryui.com 1296 * http://jqueryui.com
1266 * 1297 *
1267 * Copyright jQuery Foundation and other contributors 1298 * Copyright jQuery Foundation and other contributors
@@ -1276,7 +1307,6 @@ var data = $.extend( $.expr[ &quot;:&quot; ], { @@ -1276,7 +1307,6 @@ var data = $.extend( $.expr[ &quot;:&quot; ], {
1276 1307
1277 // This file is deprecated 1308 // This file is deprecated
1278 1309
1279 -  
1280 var disableSelection = $.fn.extend( { 1310 var disableSelection = $.fn.extend( {
1281 disableSelection: ( function() { 1311 disableSelection: ( function() {
1282 var eventType = "onselectstart" in document.createElement( "div" ) ? 1312 var eventType = "onselectstart" in document.createElement( "div" ) ?
@@ -1296,56 +1326,37 @@ var disableSelection = $.fn.extend( { @@ -1296,56 +1326,37 @@ var disableSelection = $.fn.extend( {
1296 } ); 1326 } );
1297 1327
1298 1328
1299 -/*!  
1300 - * jQuery UI Effects 1.12.1  
1301 - * http://jqueryui.com  
1302 - *  
1303 - * Copyright jQuery Foundation and other contributors  
1304 - * Released under the MIT license.  
1305 - * http://jquery.org/license  
1306 - */  
1307 -  
1308 -//>>label: Effects Core  
1309 -//>>group: Effects  
1310 -// jscs:disable maximumLineLength  
1311 -//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.  
1312 -// jscs:enable maximumLineLength  
1313 -//>>docs: http://api.jqueryui.com/category/effects-core/  
1314 -//>>demos: http://jqueryui.com/effect/  
1315 -  
1316 -  
1317 1329
1318 -var dataSpace = "ui-effects-",  
1319 - dataSpaceStyle = "ui-effects-style",  
1320 - dataSpaceAnimated = "ui-effects-animated", 1330 +// Create a local jQuery because jQuery Color relies on it and the
  1331 +// global may not exist with AMD and a custom build (#10199).
  1332 +// This module is a noop if used as a regular AMD module.
  1333 +// eslint-disable-next-line no-unused-vars
  1334 +var jQuery = $;
1321 1335
1322 - // Create a local jQuery because jQuery Color relies on it and the  
1323 - // global may not exist with AMD and a custom build (#10199)  
1324 - jQuery = $;  
1325 -  
1326 -$.effects = {  
1327 - effect: {}  
1328 -};  
1329 1336
1330 /*! 1337 /*!
1331 - * jQuery Color Animations v2.1.2 1338 + * jQuery Color Animations v2.2.0
1332 * https://github.com/jquery/jquery-color 1339 * https://github.com/jquery/jquery-color
1333 * 1340 *
1334 - * Copyright 2014 jQuery Foundation and other contributors 1341 + * Copyright OpenJS Foundation and other contributors
1335 * Released under the MIT license. 1342 * Released under the MIT license.
1336 * http://jquery.org/license 1343 * http://jquery.org/license
1337 * 1344 *
1338 - * Date: Wed Jan 16 08:47:09 2013 -0600 1345 + * Date: Sun May 10 09:02:36 2020 +0200
1339 */ 1346 */
1340 -( function( jQuery, undefined ) { 1347 +
  1348 +
1341 1349
1342 var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " + 1350 var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
1343 "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", 1351 "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
1344 1352
1345 - // Plusequals test for += 100 -= 100 1353 + class2type = {},
  1354 + toString = class2type.toString,
  1355 +
  1356 + // plusequals test for += 100 -= 100
1346 rplusequals = /^([\-+])=\s*(\d+\.?\d*)/, 1357 rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
1347 1358
1348 - // A set of RE's that can match strings and generate color tuples. 1359 + // a set of RE's that can match strings and generate color tuples.
1349 stringParsers = [ { 1360 stringParsers = [ {
1350 re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, 1361 re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
1351 parse: function( execResult ) { 1362 parse: function( execResult ) {
@@ -1368,24 +1379,31 @@ $.effects = { @@ -1368,24 +1379,31 @@ $.effects = {
1368 } 1379 }
1369 }, { 1380 }, {
1370 1381
1371 - // This regex ignores A-F because it's compared against an already lowercased string  
1372 - re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, 1382 + // this regex ignores A-F because it's compared against an already lowercased string
  1383 + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,
1373 parse: function( execResult ) { 1384 parse: function( execResult ) {
1374 return [ 1385 return [
1375 parseInt( execResult[ 1 ], 16 ), 1386 parseInt( execResult[ 1 ], 16 ),
1376 parseInt( execResult[ 2 ], 16 ), 1387 parseInt( execResult[ 2 ], 16 ),
1377 - parseInt( execResult[ 3 ], 16 ) 1388 + parseInt( execResult[ 3 ], 16 ),
  1389 + execResult[ 4 ] ?
  1390 + ( parseInt( execResult[ 4 ], 16 ) / 255 ).toFixed( 2 ) :
  1391 + 1
1378 ]; 1392 ];
1379 } 1393 }
1380 }, { 1394 }, {
1381 1395
1382 - // This regex ignores A-F because it's compared against an already lowercased string  
1383 - re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, 1396 + // this regex ignores A-F because it's compared against an already lowercased string
  1397 + re: /#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,
1384 parse: function( execResult ) { 1398 parse: function( execResult ) {
1385 return [ 1399 return [
1386 parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ), 1400 parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
1387 parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ), 1401 parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
1388 - parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ) 1402 + parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ),
  1403 + execResult[ 4 ] ?
  1404 + ( parseInt( execResult[ 4 ] + execResult[ 4 ], 16 ) / 255 )
  1405 + .toFixed( 2 ) :
  1406 + 1
1389 ]; 1407 ];
1390 } 1408 }
1391 }, { 1409 }, {
@@ -1401,7 +1419,7 @@ $.effects = { @@ -1401,7 +1419,7 @@ $.effects = {
1401 } 1419 }
1402 } ], 1420 } ],
1403 1421
1404 - // JQuery.Color( ) 1422 + // jQuery.Color( )
1405 color = jQuery.Color = function( color, green, blue, alpha ) { 1423 color = jQuery.Color = function( color, green, blue, alpha ) {
1406 return new jQuery.Color.fn.parse( color, green, blue, alpha ); 1424 return new jQuery.Color.fn.parse( color, green, blue, alpha );
1407 }, 1425 },
@@ -1455,20 +1473,20 @@ $.effects = { @@ -1455,20 +1473,20 @@ $.effects = {
1455 }, 1473 },
1456 support = color.support = {}, 1474 support = color.support = {},
1457 1475
1458 - // Element for support tests 1476 + // element for support tests
1459 supportElem = jQuery( "<p>" )[ 0 ], 1477 supportElem = jQuery( "<p>" )[ 0 ],
1460 1478
1461 - // Colors = jQuery.Color.names 1479 + // colors = jQuery.Color.names
1462 colors, 1480 colors,
1463 1481
1464 - // Local aliases of functions called often 1482 + // local aliases of functions called often
1465 each = jQuery.each; 1483 each = jQuery.each;
1466 1484
1467 -// Determine rgba support immediately 1485 +// determine rgba support immediately
1468 supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; 1486 supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
1469 support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; 1487 support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
1470 1488
1471 -// Define cache name and alpha properties 1489 +// define cache name and alpha properties
1472 // for rgba and hsla spaces 1490 // for rgba and hsla spaces
1473 each( spaces, function( spaceName, space ) { 1491 each( spaces, function( spaceName, space ) {
1474 space.cache = "_" + spaceName; 1492 space.cache = "_" + spaceName;
@@ -1479,6 +1497,22 @@ each( spaces, function( spaceName, space ) { @@ -1479,6 +1497,22 @@ each( spaces, function( spaceName, space ) {
1479 }; 1497 };
1480 } ); 1498 } );
1481 1499
  1500 +// Populate the class2type map
  1501 +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
  1502 + function( _i, name ) {
  1503 + class2type[ "[object " + name + "]" ] = name.toLowerCase();
  1504 + } );
  1505 +
  1506 +function getType( obj ) {
  1507 + if ( obj == null ) {
  1508 + return obj + "";
  1509 + }
  1510 +
  1511 + return typeof obj === "object" ?
  1512 + class2type[ toString.call( obj ) ] || "object" :
  1513 + typeof obj;
  1514 +}
  1515 +
1482 function clamp( value, prop, allowEmpty ) { 1516 function clamp( value, prop, allowEmpty ) {
1483 var type = propTypes[ prop.type ] || {}; 1517 var type = propTypes[ prop.type ] || {};
1484 1518
@@ -1497,13 +1531,13 @@ function clamp( value, prop, allowEmpty ) { @@ -1497,13 +1531,13 @@ function clamp( value, prop, allowEmpty ) {
1497 1531
1498 if ( type.mod ) { 1532 if ( type.mod ) {
1499 1533
1500 - // We add mod before modding to make sure that negatives values 1534 + // we add mod before modding to make sure that negatives values
1501 // get converted properly: -10 -> 350 1535 // get converted properly: -10 -> 350
1502 return ( value + type.mod ) % type.mod; 1536 return ( value + type.mod ) % type.mod;
1503 } 1537 }
1504 1538
1505 - // For now all property types without mod have min and max  
1506 - return 0 > value ? 0 : type.max < value ? type.max : value; 1539 + // for now all property types without mod have min and max
  1540 + return Math.min( type.max, Math.max( 0, value ) );
1507 } 1541 }
1508 1542
1509 function stringParse( string ) { 1543 function stringParse( string ) {
@@ -1512,7 +1546,7 @@ function stringParse( string ) { @@ -1512,7 +1546,7 @@ function stringParse( string ) {
1512 1546
1513 string = string.toLowerCase(); 1547 string = string.toLowerCase();
1514 1548
1515 - each( stringParsers, function( i, parser ) { 1549 + each( stringParsers, function( _i, parser ) {
1516 var parsed, 1550 var parsed,
1517 match = parser.re.exec( string ), 1551 match = parser.re.exec( string ),
1518 values = match && parser.parse( match ), 1552 values = match && parser.parse( match ),
@@ -1521,12 +1555,12 @@ function stringParse( string ) { @@ -1521,12 +1555,12 @@ function stringParse( string ) {
1521 if ( values ) { 1555 if ( values ) {
1522 parsed = inst[ spaceName ]( values ); 1556 parsed = inst[ spaceName ]( values );
1523 1557
1524 - // If this was an rgba parse the assignment might happen twice 1558 + // if this was an rgba parse the assignment might happen twice
1525 // oh well.... 1559 // oh well....
1526 inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ]; 1560 inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
1527 rgba = inst._rgba = parsed._rgba; 1561 rgba = inst._rgba = parsed._rgba;
1528 1562
1529 - // Exit each( stringParsers ) here because we matched 1563 + // exit each( stringParsers ) here because we matched
1530 return false; 1564 return false;
1531 } 1565 }
1532 } ); 1566 } );
@@ -1534,7 +1568,7 @@ function stringParse( string ) { @@ -1534,7 +1568,7 @@ function stringParse( string ) {
1534 // Found a stringParser that handled it 1568 // Found a stringParser that handled it
1535 if ( rgba.length ) { 1569 if ( rgba.length ) {
1536 1570
1537 - // If this came from a parsed string, force "transparent" when alpha is 0 1571 + // if this came from a parsed string, force "transparent" when alpha is 0
1538 // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0) 1572 // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
1539 if ( rgba.join() === "0,0,0,0" ) { 1573 if ( rgba.join() === "0,0,0,0" ) {
1540 jQuery.extend( rgba, colors.transparent ); 1574 jQuery.extend( rgba, colors.transparent );
@@ -1542,7 +1576,7 @@ function stringParse( string ) { @@ -1542,7 +1576,7 @@ function stringParse( string ) {
1542 return inst; 1576 return inst;
1543 } 1577 }
1544 1578
1545 - // Named colors 1579 + // named colors
1546 return colors[ string ]; 1580 return colors[ string ];
1547 } 1581 }
1548 1582
@@ -1558,10 +1592,10 @@ color.fn = jQuery.extend( color.prototype, { @@ -1558,10 +1592,10 @@ color.fn = jQuery.extend( color.prototype, {
1558 } 1592 }
1559 1593
1560 var inst = this, 1594 var inst = this,
1561 - type = jQuery.type( red ), 1595 + type = getType( red ),
1562 rgba = this._rgba = []; 1596 rgba = this._rgba = [];
1563 1597
1564 - // More than 1 argument specified - assume ( red, green, blue, alpha ) 1598 + // more than 1 argument specified - assume ( red, green, blue, alpha )
1565 if ( green !== undefined ) { 1599 if ( green !== undefined ) {
1566 red = [ red, green, blue, alpha ]; 1600 red = [ red, green, blue, alpha ];
1567 type = "array"; 1601 type = "array";
@@ -1572,7 +1606,7 @@ color.fn = jQuery.extend( color.prototype, { @@ -1572,7 +1606,7 @@ color.fn = jQuery.extend( color.prototype, {
1572 } 1606 }
1573 1607
1574 if ( type === "array" ) { 1608 if ( type === "array" ) {
1575 - each( spaces.rgba.props, function( key, prop ) { 1609 + each( spaces.rgba.props, function( _key, prop ) {
1576 rgba[ prop.idx ] = clamp( red[ prop.idx ], prop ); 1610 rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
1577 } ); 1611 } );
1578 return this; 1612 return this;
@@ -1580,20 +1614,20 @@ color.fn = jQuery.extend( color.prototype, { @@ -1580,20 +1614,20 @@ color.fn = jQuery.extend( color.prototype, {
1580 1614
1581 if ( type === "object" ) { 1615 if ( type === "object" ) {
1582 if ( red instanceof color ) { 1616 if ( red instanceof color ) {
1583 - each( spaces, function( spaceName, space ) { 1617 + each( spaces, function( _spaceName, space ) {
1584 if ( red[ space.cache ] ) { 1618 if ( red[ space.cache ] ) {
1585 inst[ space.cache ] = red[ space.cache ].slice(); 1619 inst[ space.cache ] = red[ space.cache ].slice();
1586 } 1620 }
1587 } ); 1621 } );
1588 } else { 1622 } else {
1589 - each( spaces, function( spaceName, space ) { 1623 + each( spaces, function( _spaceName, space ) {
1590 var cache = space.cache; 1624 var cache = space.cache;
1591 each( space.props, function( key, prop ) { 1625 each( space.props, function( key, prop ) {
1592 1626
1593 - // If the cache doesn't exist, and we know how to convert 1627 + // if the cache doesn't exist, and we know how to convert
1594 if ( !inst[ cache ] && space.to ) { 1628 if ( !inst[ cache ] && space.to ) {
1595 1629
1596 - // If the value was null, we don't need to copy it 1630 + // if the value was null, we don't need to copy it
1597 // if the key was alpha, we don't need to copy it either 1631 // if the key was alpha, we don't need to copy it either
1598 if ( key === "alpha" || red[ key ] == null ) { 1632 if ( key === "alpha" || red[ key ] == null ) {
1599 return; 1633 return;
@@ -1601,17 +1635,19 @@ color.fn = jQuery.extend( color.prototype, { @@ -1601,17 +1635,19 @@ color.fn = jQuery.extend( color.prototype, {
1601 inst[ cache ] = space.to( inst._rgba ); 1635 inst[ cache ] = space.to( inst._rgba );
1602 } 1636 }
1603 1637
1604 - // This is the only case where we allow nulls for ALL properties. 1638 + // this is the only case where we allow nulls for ALL properties.
1605 // call clamp with alwaysAllowEmpty 1639 // call clamp with alwaysAllowEmpty
1606 inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true ); 1640 inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
1607 } ); 1641 } );
1608 1642
1609 - // Everything defined but alpha?  
1610 - if ( inst[ cache ] &&  
1611 - jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { 1643 + // everything defined but alpha?
  1644 + if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
  1645 +
  1646 + // use the default of 1
  1647 + if ( inst[ cache ][ 3 ] == null ) {
  1648 + inst[ cache ][ 3 ] = 1;
  1649 + }
1612 1650
1613 - // Use the default of 1  
1614 - inst[ cache ][ 3 ] = 1;  
1615 if ( space.from ) { 1651 if ( space.from ) {
1616 inst._rgba = space.from( inst[ cache ] ); 1652 inst._rgba = space.from( inst[ cache ] );
1617 } 1653 }
@@ -1661,18 +1697,18 @@ color.fn = jQuery.extend( color.prototype, { @@ -1661,18 +1697,18 @@ color.fn = jQuery.extend( color.prototype, {
1661 result = start.slice(); 1697 result = start.slice();
1662 1698
1663 end = end[ space.cache ]; 1699 end = end[ space.cache ];
1664 - each( space.props, function( key, prop ) { 1700 + each( space.props, function( _key, prop ) {
1665 var index = prop.idx, 1701 var index = prop.idx,
1666 startValue = start[ index ], 1702 startValue = start[ index ],
1667 endValue = end[ index ], 1703 endValue = end[ index ],
1668 type = propTypes[ prop.type ] || {}; 1704 type = propTypes[ prop.type ] || {};
1669 1705
1670 - // If null, don't override start value 1706 + // if null, don't override start value
1671 if ( endValue === null ) { 1707 if ( endValue === null ) {
1672 return; 1708 return;
1673 } 1709 }
1674 1710
1675 - // If null - use end 1711 + // if null - use end
1676 if ( startValue === null ) { 1712 if ( startValue === null ) {
1677 result[ index ] = endValue; 1713 result[ index ] = endValue;
1678 } else { 1714 } else {
@@ -1690,7 +1726,7 @@ color.fn = jQuery.extend( color.prototype, { @@ -1690,7 +1726,7 @@ color.fn = jQuery.extend( color.prototype, {
1690 }, 1726 },
1691 blend: function( opaque ) { 1727 blend: function( opaque ) {
1692 1728
1693 - // If we are already opaque - return ourself 1729 + // if we are already opaque - return ourself
1694 if ( this._rgba[ 3 ] === 1 ) { 1730 if ( this._rgba[ 3 ] === 1 ) {
1695 return this; 1731 return this;
1696 } 1732 }
@@ -1706,7 +1742,10 @@ color.fn = jQuery.extend( color.prototype, { @@ -1706,7 +1742,10 @@ color.fn = jQuery.extend( color.prototype, {
1706 toRgbaString: function() { 1742 toRgbaString: function() {
1707 var prefix = "rgba(", 1743 var prefix = "rgba(",
1708 rgba = jQuery.map( this._rgba, function( v, i ) { 1744 rgba = jQuery.map( this._rgba, function( v, i ) {
1709 - return v == null ? ( i > 2 ? 1 : 0 ) : v; 1745 + if ( v != null ) {
  1746 + return v;
  1747 + }
  1748 + return i > 2 ? 1 : 0;
1710 } ); 1749 } );
1711 1750
1712 if ( rgba[ 3 ] === 1 ) { 1751 if ( rgba[ 3 ] === 1 ) {
@@ -1723,7 +1762,7 @@ color.fn = jQuery.extend( color.prototype, { @@ -1723,7 +1762,7 @@ color.fn = jQuery.extend( color.prototype, {
1723 v = i > 2 ? 1 : 0; 1762 v = i > 2 ? 1 : 0;
1724 } 1763 }
1725 1764
1726 - // Catch 1 and 2 1765 + // catch 1 and 2
1727 if ( i && i < 3 ) { 1766 if ( i && i < 3 ) {
1728 v = Math.round( v * 100 ) + "%"; 1767 v = Math.round( v * 100 ) + "%";
1729 } 1768 }
@@ -1746,7 +1785,7 @@ color.fn = jQuery.extend( color.prototype, { @@ -1746,7 +1785,7 @@ color.fn = jQuery.extend( color.prototype, {
1746 1785
1747 return "#" + jQuery.map( rgba, function( v ) { 1786 return "#" + jQuery.map( rgba, function( v ) {
1748 1787
1749 - // Default to 0 when nulls exist 1788 + // default to 0 when nulls exist
1750 v = ( v || 0 ).toString( 16 ); 1789 v = ( v || 0 ).toString( 16 );
1751 return v.length === 1 ? "0" + v : v; 1790 return v.length === 1 ? "0" + v : v;
1752 } ).join( "" ); 1791 } ).join( "" );
@@ -1757,7 +1796,7 @@ color.fn = jQuery.extend( color.prototype, { @@ -1757,7 +1796,7 @@ color.fn = jQuery.extend( color.prototype, {
1757 } ); 1796 } );
1758 color.fn.parse.prototype = color.fn; 1797 color.fn.parse.prototype = color.fn;
1759 1798
1760 -// Hsla conversions adapted from: 1799 +// hsla conversions adapted from:
1761 // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 1800 // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
1762 1801
1763 function hue2rgb( p, q, h ) { 1802 function hue2rgb( p, q, h ) {
@@ -1799,7 +1838,7 @@ spaces.hsla.to = function( rgba ) { @@ -1799,7 +1838,7 @@ spaces.hsla.to = function( rgba ) {
1799 h = ( 60 * ( r - g ) / diff ) + 240; 1838 h = ( 60 * ( r - g ) / diff ) + 240;
1800 } 1839 }
1801 1840
1802 - // Chroma (diff) == 0 means greyscale which, by definition, saturation = 0% 1841 + // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
1803 // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add) 1842 // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
1804 if ( diff === 0 ) { 1843 if ( diff === 0 ) {
1805 s = 0; 1844 s = 0;
@@ -1830,16 +1869,17 @@ spaces.hsla.from = function( hsla ) { @@ -1830,16 +1869,17 @@ spaces.hsla.from = function( hsla ) {
1830 ]; 1869 ];
1831 }; 1870 };
1832 1871
  1872 +
1833 each( spaces, function( spaceName, space ) { 1873 each( spaces, function( spaceName, space ) {
1834 var props = space.props, 1874 var props = space.props,
1835 cache = space.cache, 1875 cache = space.cache,
1836 to = space.to, 1876 to = space.to,
1837 from = space.from; 1877 from = space.from;
1838 1878
1839 - // Makes rgba() and hsla() 1879 + // makes rgba() and hsla()
1840 color.fn[ spaceName ] = function( value ) { 1880 color.fn[ spaceName ] = function( value ) {
1841 1881
1842 - // Generate a cache for this space if it doesn't exist 1882 + // generate a cache for this space if it doesn't exist
1843 if ( to && !this[ cache ] ) { 1883 if ( to && !this[ cache ] ) {
1844 this[ cache ] = to( this._rgba ); 1884 this[ cache ] = to( this._rgba );
1845 } 1885 }
@@ -1848,7 +1888,7 @@ each( spaces, function( spaceName, space ) { @@ -1848,7 +1888,7 @@ each( spaces, function( spaceName, space ) {
1848 } 1888 }
1849 1889
1850 var ret, 1890 var ret,
1851 - type = jQuery.type( value ), 1891 + type = getType( value ),
1852 arr = ( type === "array" || type === "object" ) ? value : arguments, 1892 arr = ( type === "array" || type === "object" ) ? value : arguments,
1853 local = this[ cache ].slice(); 1893 local = this[ cache ].slice();
1854 1894
@@ -1869,19 +1909,24 @@ each( spaces, function( spaceName, space ) { @@ -1869,19 +1909,24 @@ each( spaces, function( spaceName, space ) {
1869 } 1909 }
1870 }; 1910 };
1871 1911
1872 - // Makes red() green() blue() alpha() hue() saturation() lightness() 1912 + // makes red() green() blue() alpha() hue() saturation() lightness()
1873 each( props, function( key, prop ) { 1913 each( props, function( key, prop ) {
1874 1914
1875 - // Alpha is included in more than one space 1915 + // alpha is included in more than one space
1876 if ( color.fn[ key ] ) { 1916 if ( color.fn[ key ] ) {
1877 return; 1917 return;
1878 } 1918 }
1879 color.fn[ key ] = function( value ) { 1919 color.fn[ key ] = function( value ) {
1880 - var vtype = jQuery.type( value ),  
1881 - fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),  
1882 - local = this[ fn ](),  
1883 - cur = local[ prop.idx ],  
1884 - match; 1920 + var local, cur, match, fn,
  1921 + vtype = getType( value );
  1922 +
  1923 + if ( key === "alpha" ) {
  1924 + fn = this._hsla ? "hsla" : "rgba";
  1925 + } else {
  1926 + fn = spaceName;
  1927 + }
  1928 + local = this[ fn ]();
  1929 + cur = local[ prop.idx ];
1885 1930
1886 if ( vtype === "undefined" ) { 1931 if ( vtype === "undefined" ) {
1887 return cur; 1932 return cur;
@@ -1889,7 +1934,7 @@ each( spaces, function( spaceName, space ) { @@ -1889,7 +1934,7 @@ each( spaces, function( spaceName, space ) {
1889 1934
1890 if ( vtype === "function" ) { 1935 if ( vtype === "function" ) {
1891 value = value.call( this, cur ); 1936 value = value.call( this, cur );
1892 - vtype = jQuery.type( value ); 1937 + vtype = getType( value );
1893 } 1938 }
1894 if ( value == null && prop.empty ) { 1939 if ( value == null && prop.empty ) {
1895 return this; 1940 return this;
@@ -1906,18 +1951,17 @@ each( spaces, function( spaceName, space ) { @@ -1906,18 +1951,17 @@ each( spaces, function( spaceName, space ) {
1906 } ); 1951 } );
1907 } ); 1952 } );
1908 1953
1909 -// Add cssHook and .fx.step function for each named hook. 1954 +// add cssHook and .fx.step function for each named hook.
1910 // accept a space separated string of properties 1955 // accept a space separated string of properties
1911 color.hook = function( hook ) { 1956 color.hook = function( hook ) {
1912 var hooks = hook.split( " " ); 1957 var hooks = hook.split( " " );
1913 - each( hooks, function( i, hook ) { 1958 + each( hooks, function( _i, hook ) {
1914 jQuery.cssHooks[ hook ] = { 1959 jQuery.cssHooks[ hook ] = {
1915 set: function( elem, value ) { 1960 set: function( elem, value ) {
1916 var parsed, curElem, 1961 var parsed, curElem,
1917 backgroundColor = ""; 1962 backgroundColor = "";
1918 1963
1919 - if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||  
1920 - ( parsed = stringParse( value ) ) ) ) { 1964 + if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
1921 value = color( parsed || value ); 1965 value = color( parsed || value );
1922 if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { 1966 if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
1923 curElem = hook === "backgroundColor" ? elem.parentNode : elem; 1967 curElem = hook === "backgroundColor" ? elem.parentNode : elem;
@@ -1943,8 +1987,7 @@ color.hook = function( hook ) { @@ -1943,8 +1987,7 @@ color.hook = function( hook ) {
1943 elem.style[ hook ] = value; 1987 elem.style[ hook ] = value;
1944 } catch ( e ) { 1988 } catch ( e ) {
1945 1989
1946 - // Wrapped to prevent IE from throwing errors on "invalid" values like  
1947 - // 'auto' or 'inherit' 1990 + // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
1948 } 1991 }
1949 } 1992 }
1950 }; 1993 };
@@ -1966,7 +2009,7 @@ jQuery.cssHooks.borderColor = { @@ -1966,7 +2009,7 @@ jQuery.cssHooks.borderColor = {
1966 expand: function( value ) { 2009 expand: function( value ) {
1967 var expanded = {}; 2010 var expanded = {};
1968 2011
1969 - each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) { 2012 + each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) {
1970 expanded[ "border" + part + "Color" ] = value; 2013 expanded[ "border" + part + "Color" ] = value;
1971 } ); 2014 } );
1972 return expanded; 2015 return expanded;
@@ -2002,7 +2045,32 @@ colors = jQuery.Color.names = { @@ -2002,7 +2045,32 @@ colors = jQuery.Color.names = {
2002 _default: "#ffffff" 2045 _default: "#ffffff"
2003 }; 2046 };
2004 2047
2005 -} )( jQuery ); 2048 +
  2049 +/*!
  2050 + * jQuery UI Effects 1.13.2
  2051 + * http://jqueryui.com
  2052 + *
  2053 + * Copyright jQuery Foundation and other contributors
  2054 + * Released under the MIT license.
  2055 + * http://jquery.org/license
  2056 + */
  2057 +
  2058 +//>>label: Effects Core
  2059 +//>>group: Effects
  2060 +/* eslint-disable max-len */
  2061 +//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
  2062 +/* eslint-enable max-len */
  2063 +//>>docs: http://api.jqueryui.com/category/effects-core/
  2064 +//>>demos: http://jqueryui.com/effect/
  2065 +
  2066 +
  2067 +var dataSpace = "ui-effects-",
  2068 + dataSpaceStyle = "ui-effects-style",
  2069 + dataSpaceAnimated = "ui-effects-animated";
  2070 +
  2071 +$.effects = {
  2072 + effect: {}
  2073 +};
2006 2074
2007 /******************************************************************************/ 2075 /******************************************************************************/
2008 /****************************** CLASS ANIMATIONS ******************************/ 2076 /****************************** CLASS ANIMATIONS ******************************/
@@ -2034,6 +2102,12 @@ $.each( @@ -2034,6 +2102,12 @@ $.each(
2034 } 2102 }
2035 ); 2103 );
2036 2104
  2105 +function camelCase( string ) {
  2106 + return string.replace( /-([\da-z])/gi, function( all, letter ) {
  2107 + return letter.toUpperCase();
  2108 + } );
  2109 +}
  2110 +
2037 function getElementStyles( elem ) { 2111 function getElementStyles( elem ) {
2038 var key, len, 2112 var key, len,
2039 style = elem.ownerDocument.defaultView ? 2113 style = elem.ownerDocument.defaultView ?
@@ -2046,7 +2120,7 @@ function getElementStyles( elem ) { @@ -2046,7 +2120,7 @@ function getElementStyles( elem ) {
2046 while ( len-- ) { 2120 while ( len-- ) {
2047 key = style[ len ]; 2121 key = style[ len ];
2048 if ( typeof style[ key ] === "string" ) { 2122 if ( typeof style[ key ] === "string" ) {
2049 - styles[ $.camelCase( key ) ] = style[ key ]; 2123 + styles[ camelCase( key ) ] = style[ key ];
2050 } 2124 }
2051 } 2125 }
2052 2126
@@ -2220,12 +2294,12 @@ $.fn.extend( { @@ -2220,12 +2294,12 @@ $.fn.extend( {
2220 2294
2221 ( function() { 2295 ( function() {
2222 2296
2223 -if ( $.expr && $.expr.filters && $.expr.filters.animated ) {  
2224 - $.expr.filters.animated = ( function( orig ) { 2297 +if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
  2298 + $.expr.pseudos.animated = ( function( orig ) {
2225 return function( elem ) { 2299 return function( elem ) {
2226 return !!$( elem ).data( dataSpaceAnimated ) || orig( elem ); 2300 return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
2227 }; 2301 };
2228 - } )( $.expr.filters.animated ); 2302 + } )( $.expr.pseudos.animated );
2229 } 2303 }
2230 2304
2231 if ( $.uiBackCompat !== false ) { 2305 if ( $.uiBackCompat !== false ) {
@@ -2294,6 +2368,7 @@ if ( $.uiBackCompat !== false ) { @@ -2294,6 +2368,7 @@ if ( $.uiBackCompat !== false ) {
2294 // Firefox incorrectly exposes anonymous content 2368 // Firefox incorrectly exposes anonymous content
2295 // https://bugzilla.mozilla.org/show_bug.cgi?id=561664 2369 // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
2296 try { 2370 try {
  2371 + // eslint-disable-next-line no-unused-expressions
2297 active.id; 2372 active.id;
2298 } catch ( e ) { 2373 } catch ( e ) {
2299 active = document.body; 2374 active = document.body;
@@ -2356,7 +2431,7 @@ if ( $.uiBackCompat !== false ) { @@ -2356,7 +2431,7 @@ if ( $.uiBackCompat !== false ) {
2356 } 2431 }
2357 2432
2358 $.extend( $.effects, { 2433 $.extend( $.effects, {
2359 - version: "1.12.1", 2434 + version: "1.13.2",
2360 2435
2361 define: function( name, mode, effect ) { 2436 define: function( name, mode, effect ) {
2362 if ( !effect ) { 2437 if ( !effect ) {
@@ -2572,7 +2647,7 @@ function _normalizeArguments( effect, options, speed, callback ) { @@ -2572,7 +2647,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
2572 } 2647 }
2573 2648
2574 // Catch (effect, callback) 2649 // Catch (effect, callback)
2575 - if ( $.isFunction( options ) ) { 2650 + if ( typeof options === "function" ) {
2576 callback = options; 2651 callback = options;
2577 speed = null; 2652 speed = null;
2578 options = {}; 2653 options = {};
@@ -2586,7 +2661,7 @@ function _normalizeArguments( effect, options, speed, callback ) { @@ -2586,7 +2661,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
2586 } 2661 }
2587 2662
2588 // Catch (effect, options, callback) 2663 // Catch (effect, options, callback)
2589 - if ( $.isFunction( speed ) ) { 2664 + if ( typeof speed === "function" ) {
2590 callback = speed; 2665 callback = speed;
2591 speed = null; 2666 speed = null;
2592 } 2667 }
@@ -2620,7 +2695,7 @@ function standardAnimationOption( option ) { @@ -2620,7 +2695,7 @@ function standardAnimationOption( option ) {
2620 } 2695 }
2621 2696
2622 // Complete callback 2697 // Complete callback
2623 - if ( $.isFunction( option ) ) { 2698 + if ( typeof option === "function" ) {
2624 return true; 2699 return true;
2625 } 2700 }
2626 2701
@@ -2647,7 +2722,7 @@ $.fn.extend( { @@ -2647,7 +2722,7 @@ $.fn.extend( {
2647 var el = $( this ), 2722 var el = $( this ),
2648 normalizedMode = $.effects.mode( el, mode ) || defaultMode; 2723 normalizedMode = $.effects.mode( el, mode ) || defaultMode;
2649 2724
2650 - // Sentinel for duck-punching the :animated psuedo-selector 2725 + // Sentinel for duck-punching the :animated pseudo-selector
2651 el.data( dataSpaceAnimated, true ); 2726 el.data( dataSpaceAnimated, true );
2652 2727
2653 // Save effect mode for later use, 2728 // Save effect mode for later use,
@@ -2655,7 +2730,7 @@ $.fn.extend( { @@ -2655,7 +2730,7 @@ $.fn.extend( {
2655 // as the .show() below destroys the initial state 2730 // as the .show() below destroys the initial state
2656 modes.push( normalizedMode ); 2731 modes.push( normalizedMode );
2657 2732
2658 - // See $.uiBackCompat inside of run() for removal of defaultMode in 1.13 2733 + // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
2659 if ( defaultMode && ( normalizedMode === "show" || 2734 if ( defaultMode && ( normalizedMode === "show" ||
2660 ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { 2735 ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
2661 el.show(); 2736 el.show();
@@ -2665,7 +2740,7 @@ $.fn.extend( { @@ -2665,7 +2740,7 @@ $.fn.extend( {
2665 $.effects.saveStyle( el ); 2740 $.effects.saveStyle( el );
2666 } 2741 }
2667 2742
2668 - if ( $.isFunction( next ) ) { 2743 + if ( typeof next === "function" ) {
2669 next(); 2744 next();
2670 } 2745 }
2671 }; 2746 };
@@ -2700,11 +2775,11 @@ $.fn.extend( { @@ -2700,11 +2775,11 @@ $.fn.extend( {
2700 } 2775 }
2701 2776
2702 function done() { 2777 function done() {
2703 - if ( $.isFunction( complete ) ) { 2778 + if ( typeof complete === "function" ) {
2704 complete.call( elem[ 0 ] ); 2779 complete.call( elem[ 0 ] );
2705 } 2780 }
2706 2781
2707 - if ( $.isFunction( next ) ) { 2782 + if ( typeof next === "function" ) {
2708 next(); 2783 next();
2709 } 2784 }
2710 } 2785 }
@@ -2813,22 +2888,24 @@ $.fn.extend( { @@ -2813,22 +2888,24 @@ $.fn.extend( {
2813 width: target.innerWidth() 2888 width: target.innerWidth()
2814 }, 2889 },
2815 startPosition = element.offset(), 2890 startPosition = element.offset(),
2816 - transfer = $( "<div class='ui-effects-transfer'></div>" )  
2817 - .appendTo( "body" )  
2818 - .addClass( options.className )  
2819 - .css( {  
2820 - top: startPosition.top - fixTop,  
2821 - left: startPosition.left - fixLeft,  
2822 - height: element.innerHeight(),  
2823 - width: element.innerWidth(),  
2824 - position: targetFixed ? "fixed" : "absolute"  
2825 - } )  
2826 - .animate( animation, options.duration, options.easing, function() {  
2827 - transfer.remove();  
2828 - if ( $.isFunction( done ) ) {  
2829 - done();  
2830 - }  
2831 - } ); 2891 + transfer = $( "<div class='ui-effects-transfer'></div>" );
  2892 +
  2893 + transfer
  2894 + .appendTo( "body" )
  2895 + .addClass( options.className )
  2896 + .css( {
  2897 + top: startPosition.top - fixTop,
  2898 + left: startPosition.left - fixLeft,
  2899 + height: element.innerHeight(),
  2900 + width: element.innerWidth(),
  2901 + position: targetFixed ? "fixed" : "absolute"
  2902 + } )
  2903 + .animate( animation, options.duration, options.easing, function() {
  2904 + transfer.remove();
  2905 + if ( typeof done === "function" ) {
  2906 + done();
  2907 + }
  2908 + } );
2832 } 2909 }
2833 } ); 2910 } );
2834 2911
@@ -2922,7 +2999,7 @@ var effect = $.effects; @@ -2922,7 +2999,7 @@ var effect = $.effects;
2922 2999
2923 3000
2924 /*! 3001 /*!
2925 - * jQuery UI Effects Blind 1.12.1 3002 + * jQuery UI Effects Blind 1.13.2
2926 * http://jqueryui.com 3003 * http://jqueryui.com
2927 * 3004 *
2928 * Copyright jQuery Foundation and other contributors 3005 * Copyright jQuery Foundation and other contributors
@@ -2937,7 +3014,6 @@ var effect = $.effects; @@ -2937,7 +3014,6 @@ var effect = $.effects;
2937 //>>demos: http://jqueryui.com/effect/ 3014 //>>demos: http://jqueryui.com/effect/
2938 3015
2939 3016
2940 -  
2941 var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) { 3017 var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) {
2942 var map = { 3018 var map = {
2943 up: [ "bottom", "top" ], 3019 up: [ "bottom", "top" ],
@@ -2978,7 +3054,7 @@ var effectsEffectBlind = $.effects.define( &quot;blind&quot;, &quot;hide&quot;, function( options, d @@ -2978,7 +3054,7 @@ var effectsEffectBlind = $.effects.define( &quot;blind&quot;, &quot;hide&quot;, function( options, d
2978 3054
2979 3055
2980 /*! 3056 /*!
2981 - * jQuery UI Effects Bounce 1.12.1 3057 + * jQuery UI Effects Bounce 1.13.2
2982 * http://jqueryui.com 3058 * http://jqueryui.com
2983 * 3059 *
2984 * Copyright jQuery Foundation and other contributors 3060 * Copyright jQuery Foundation and other contributors
@@ -2993,7 +3069,6 @@ var effectsEffectBlind = $.effects.define( &quot;blind&quot;, &quot;hide&quot;, function( options, d @@ -2993,7 +3069,6 @@ var effectsEffectBlind = $.effects.define( &quot;blind&quot;, &quot;hide&quot;, function( options, d
2993 //>>demos: http://jqueryui.com/effect/ 3069 //>>demos: http://jqueryui.com/effect/
2994 3070
2995 3071
2996 -  
2997 var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) { 3072 var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) {
2998 var upAnim, downAnim, refValue, 3073 var upAnim, downAnim, refValue,
2999 element = $( this ), 3074 element = $( this ),
@@ -3074,7 +3149,7 @@ var effectsEffectBounce = $.effects.define( &quot;bounce&quot;, function( options, done ) @@ -3074,7 +3149,7 @@ var effectsEffectBounce = $.effects.define( &quot;bounce&quot;, function( options, done )
3074 3149
3075 3150
3076 /*! 3151 /*!
3077 - * jQuery UI Effects Clip 1.12.1 3152 + * jQuery UI Effects Clip 1.13.2
3078 * http://jqueryui.com 3153 * http://jqueryui.com
3079 * 3154 *
3080 * Copyright jQuery Foundation and other contributors 3155 * Copyright jQuery Foundation and other contributors
@@ -3089,7 +3164,6 @@ var effectsEffectBounce = $.effects.define( &quot;bounce&quot;, function( options, done ) @@ -3089,7 +3164,6 @@ var effectsEffectBounce = $.effects.define( &quot;bounce&quot;, function( options, done )
3089 //>>demos: http://jqueryui.com/effect/ 3164 //>>demos: http://jqueryui.com/effect/
3090 3165
3091 3166
3092 -  
3093 var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) { 3167 var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) {
3094 var start, 3168 var start,
3095 animate = {}, 3169 animate = {},
@@ -3125,7 +3199,7 @@ var effectsEffectClip = $.effects.define( &quot;clip&quot;, &quot;hide&quot;, function( options, don @@ -3125,7 +3199,7 @@ var effectsEffectClip = $.effects.define( &quot;clip&quot;, &quot;hide&quot;, function( options, don
3125 3199
3126 3200
3127 /*! 3201 /*!
3128 - * jQuery UI Effects Drop 1.12.1 3202 + * jQuery UI Effects Drop 1.13.2
3129 * http://jqueryui.com 3203 * http://jqueryui.com
3130 * 3204 *
3131 * Copyright jQuery Foundation and other contributors 3205 * Copyright jQuery Foundation and other contributors
@@ -3140,7 +3214,6 @@ var effectsEffectClip = $.effects.define( &quot;clip&quot;, &quot;hide&quot;, function( options, don @@ -3140,7 +3214,6 @@ var effectsEffectClip = $.effects.define( &quot;clip&quot;, &quot;hide&quot;, function( options, don
3140 //>>demos: http://jqueryui.com/effect/ 3214 //>>demos: http://jqueryui.com/effect/
3141 3215
3142 3216
3143 -  
3144 var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) { 3217 var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) {
3145 3218
3146 var distance, 3219 var distance,
@@ -3180,7 +3253,7 @@ var effectsEffectDrop = $.effects.define( &quot;drop&quot;, &quot;hide&quot;, function( options, don @@ -3180,7 +3253,7 @@ var effectsEffectDrop = $.effects.define( &quot;drop&quot;, &quot;hide&quot;, function( options, don
3180 3253
3181 3254
3182 /*! 3255 /*!
3183 - * jQuery UI Effects Explode 1.12.1 3256 + * jQuery UI Effects Explode 1.13.2
3184 * http://jqueryui.com 3257 * http://jqueryui.com
3185 * 3258 *
3186 * Copyright jQuery Foundation and other contributors 3259 * Copyright jQuery Foundation and other contributors
@@ -3190,14 +3263,13 @@ var effectsEffectDrop = $.effects.define( &quot;drop&quot;, &quot;hide&quot;, function( options, don @@ -3190,14 +3263,13 @@ var effectsEffectDrop = $.effects.define( &quot;drop&quot;, &quot;hide&quot;, function( options, don
3190 3263
3191 //>>label: Explode Effect 3264 //>>label: Explode Effect
3192 //>>group: Effects 3265 //>>group: Effects
3193 -// jscs:disable maximumLineLength 3266 +/* eslint-disable max-len */
3194 //>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness. 3267 //>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
3195 -// jscs:enable maximumLineLength 3268 +/* eslint-enable max-len */
3196 //>>docs: http://api.jqueryui.com/explode-effect/ 3269 //>>docs: http://api.jqueryui.com/explode-effect/
3197 //>>demos: http://jqueryui.com/effect/ 3270 //>>demos: http://jqueryui.com/effect/
3198 3271
3199 3272
3200 -  
3201 var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) { 3273 var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) {
3202 3274
3203 var i, j, left, top, mx, my, 3275 var i, j, left, top, mx, my,
@@ -3277,7 +3349,7 @@ var effectsEffectExplode = $.effects.define( &quot;explode&quot;, &quot;hide&quot;, function( option @@ -3277,7 +3349,7 @@ var effectsEffectExplode = $.effects.define( &quot;explode&quot;, &quot;hide&quot;, function( option
3277 3349
3278 3350
3279 /*! 3351 /*!
3280 - * jQuery UI Effects Fade 1.12.1 3352 + * jQuery UI Effects Fade 1.13.2
3281 * http://jqueryui.com 3353 * http://jqueryui.com
3282 * 3354 *
3283 * Copyright jQuery Foundation and other contributors 3355 * Copyright jQuery Foundation and other contributors
@@ -3292,7 +3364,6 @@ var effectsEffectExplode = $.effects.define( &quot;explode&quot;, &quot;hide&quot;, function( option @@ -3292,7 +3364,6 @@ var effectsEffectExplode = $.effects.define( &quot;explode&quot;, &quot;hide&quot;, function( option
3292 //>>demos: http://jqueryui.com/effect/ 3364 //>>demos: http://jqueryui.com/effect/
3293 3365
3294 3366
3295 -  
3296 var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) { 3367 var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) {
3297 var show = options.mode === "show"; 3368 var show = options.mode === "show";
3298 3369
@@ -3310,7 +3381,7 @@ var effectsEffectFade = $.effects.define( &quot;fade&quot;, &quot;toggle&quot;, function( options, d @@ -3310,7 +3381,7 @@ var effectsEffectFade = $.effects.define( &quot;fade&quot;, &quot;toggle&quot;, function( options, d
3310 3381
3311 3382
3312 /*! 3383 /*!
3313 - * jQuery UI Effects Fold 1.12.1 3384 + * jQuery UI Effects Fold 1.13.2
3314 * http://jqueryui.com 3385 * http://jqueryui.com
3315 * 3386 *
3316 * Copyright jQuery Foundation and other contributors 3387 * Copyright jQuery Foundation and other contributors
@@ -3325,7 +3396,6 @@ var effectsEffectFade = $.effects.define( &quot;fade&quot;, &quot;toggle&quot;, function( options, d @@ -3325,7 +3396,6 @@ var effectsEffectFade = $.effects.define( &quot;fade&quot;, &quot;toggle&quot;, function( options, d
3325 //>>demos: http://jqueryui.com/effect/ 3396 //>>demos: http://jqueryui.com/effect/
3326 3397
3327 3398
3328 -  
3329 var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) { 3399 var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) {
3330 3400
3331 // Create element 3401 // Create element
@@ -3385,7 +3455,7 @@ var effectsEffectFold = $.effects.define( &quot;fold&quot;, &quot;hide&quot;, function( options, don @@ -3385,7 +3455,7 @@ var effectsEffectFold = $.effects.define( &quot;fold&quot;, &quot;hide&quot;, function( options, don
3385 3455
3386 3456
3387 /*! 3457 /*!
3388 - * jQuery UI Effects Highlight 1.12.1 3458 + * jQuery UI Effects Highlight 1.13.2
3389 * http://jqueryui.com 3459 * http://jqueryui.com
3390 * 3460 *
3391 * Copyright jQuery Foundation and other contributors 3461 * Copyright jQuery Foundation and other contributors
@@ -3400,7 +3470,6 @@ var effectsEffectFold = $.effects.define( &quot;fold&quot;, &quot;hide&quot;, function( options, don @@ -3400,7 +3470,6 @@ var effectsEffectFold = $.effects.define( &quot;fold&quot;, &quot;hide&quot;, function( options, don
3400 //>>demos: http://jqueryui.com/effect/ 3470 //>>demos: http://jqueryui.com/effect/
3401 3471
3402 3472
3403 -  
3404 var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) { 3473 var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) {
3405 var element = $( this ), 3474 var element = $( this ),
3406 animation = { 3475 animation = {
@@ -3428,7 +3497,7 @@ var effectsEffectHighlight = $.effects.define( &quot;highlight&quot;, &quot;show&quot;, function( op @@ -3428,7 +3497,7 @@ var effectsEffectHighlight = $.effects.define( &quot;highlight&quot;, &quot;show&quot;, function( op
3428 3497
3429 3498
3430 /*! 3499 /*!
3431 - * jQuery UI Effects Size 1.12.1 3500 + * jQuery UI Effects Size 1.13.2
3432 * http://jqueryui.com 3501 * http://jqueryui.com
3433 * 3502 *
3434 * Copyright jQuery Foundation and other contributors 3503 * Copyright jQuery Foundation and other contributors
@@ -3443,7 +3512,6 @@ var effectsEffectHighlight = $.effects.define( &quot;highlight&quot;, &quot;show&quot;, function( op @@ -3443,7 +3512,6 @@ var effectsEffectHighlight = $.effects.define( &quot;highlight&quot;, &quot;show&quot;, function( op
3443 //>>demos: http://jqueryui.com/effect/ 3512 //>>demos: http://jqueryui.com/effect/
3444 3513
3445 3514
3446 -  
3447 var effectsEffectSize = $.effects.define( "size", function( options, done ) { 3515 var effectsEffectSize = $.effects.define( "size", function( options, done ) {
3448 3516
3449 // Create element 3517 // Create element
@@ -3520,6 +3588,8 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) { @@ -3520,6 +3588,8 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) {
3520 to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top; 3588 to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
3521 to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left; 3589 to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
3522 } 3590 }
  3591 + delete from.outerHeight;
  3592 + delete from.outerWidth;
3523 element.css( from ); 3593 element.css( from );
3524 3594
3525 // Animate the children if desired 3595 // Animate the children if desired
@@ -3605,7 +3675,7 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) { @@ -3605,7 +3675,7 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) {
3605 3675
3606 3676
3607 /*! 3677 /*!
3608 - * jQuery UI Effects Scale 1.12.1 3678 + * jQuery UI Effects Scale 1.13.2
3609 * http://jqueryui.com 3679 * http://jqueryui.com
3610 * 3680 *
3611 * Copyright jQuery Foundation and other contributors 3681 * Copyright jQuery Foundation and other contributors
@@ -3620,7 +3690,6 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) { @@ -3620,7 +3690,6 @@ var effectsEffectSize = $.effects.define( &quot;size&quot;, function( options, done ) {
3620 //>>demos: http://jqueryui.com/effect/ 3690 //>>demos: http://jqueryui.com/effect/
3621 3691
3622 3692
3623 -  
3624 var effectsEffectScale = $.effects.define( "scale", function( options, done ) { 3693 var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
3625 3694
3626 // Create element 3695 // Create element
@@ -3646,7 +3715,7 @@ var effectsEffectScale = $.effects.define( &quot;scale&quot;, function( options, done ) { @@ -3646,7 +3715,7 @@ var effectsEffectScale = $.effects.define( &quot;scale&quot;, function( options, done ) {
3646 3715
3647 3716
3648 /*! 3717 /*!
3649 - * jQuery UI Effects Puff 1.12.1 3718 + * jQuery UI Effects Puff 1.13.2
3650 * http://jqueryui.com 3719 * http://jqueryui.com
3651 * 3720 *
3652 * Copyright jQuery Foundation and other contributors 3721 * Copyright jQuery Foundation and other contributors
@@ -3661,7 +3730,6 @@ var effectsEffectScale = $.effects.define( &quot;scale&quot;, function( options, done ) { @@ -3661,7 +3730,6 @@ var effectsEffectScale = $.effects.define( &quot;scale&quot;, function( options, done ) {
3661 //>>demos: http://jqueryui.com/effect/ 3730 //>>demos: http://jqueryui.com/effect/
3662 3731
3663 3732
3664 -  
3665 var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) { 3733 var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) {
3666 var newOptions = $.extend( true, {}, options, { 3734 var newOptions = $.extend( true, {}, options, {
3667 fade: true, 3735 fade: true,
@@ -3673,7 +3741,7 @@ var effectsEffectPuff = $.effects.define( &quot;puff&quot;, &quot;hide&quot;, function( options, don @@ -3673,7 +3741,7 @@ var effectsEffectPuff = $.effects.define( &quot;puff&quot;, &quot;hide&quot;, function( options, don
3673 3741
3674 3742
3675 /*! 3743 /*!
3676 - * jQuery UI Effects Pulsate 1.12.1 3744 + * jQuery UI Effects Pulsate 1.13.2
3677 * http://jqueryui.com 3745 * http://jqueryui.com
3678 * 3746 *
3679 * Copyright jQuery Foundation and other contributors 3747 * Copyright jQuery Foundation and other contributors
@@ -3688,7 +3756,6 @@ var effectsEffectPuff = $.effects.define( &quot;puff&quot;, &quot;hide&quot;, function( options, don @@ -3688,7 +3756,6 @@ var effectsEffectPuff = $.effects.define( &quot;puff&quot;, &quot;hide&quot;, function( options, don
3688 //>>demos: http://jqueryui.com/effect/ 3756 //>>demos: http://jqueryui.com/effect/
3689 3757
3690 3758
3691 -  
3692 var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) { 3759 var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) {
3693 var element = $( this ), 3760 var element = $( this ),
3694 mode = options.mode, 3761 mode = options.mode,
@@ -3723,7 +3790,7 @@ var effectsEffectPulsate = $.effects.define( &quot;pulsate&quot;, &quot;show&quot;, function( option @@ -3723,7 +3790,7 @@ var effectsEffectPulsate = $.effects.define( &quot;pulsate&quot;, &quot;show&quot;, function( option
3723 3790
3724 3791
3725 /*! 3792 /*!
3726 - * jQuery UI Effects Shake 1.12.1 3793 + * jQuery UI Effects Shake 1.13.2
3727 * http://jqueryui.com 3794 * http://jqueryui.com
3728 * 3795 *
3729 * Copyright jQuery Foundation and other contributors 3796 * Copyright jQuery Foundation and other contributors
@@ -3738,7 +3805,6 @@ var effectsEffectPulsate = $.effects.define( &quot;pulsate&quot;, &quot;show&quot;, function( option @@ -3738,7 +3805,6 @@ var effectsEffectPulsate = $.effects.define( &quot;pulsate&quot;, &quot;show&quot;, function( option
3738 //>>demos: http://jqueryui.com/effect/ 3805 //>>demos: http://jqueryui.com/effect/
3739 3806
3740 3807
3741 -  
3742 var effectsEffectShake = $.effects.define( "shake", function( options, done ) { 3808 var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
3743 3809
3744 var i = 1, 3810 var i = 1,
@@ -3783,7 +3849,7 @@ var effectsEffectShake = $.effects.define( &quot;shake&quot;, function( options, done ) { @@ -3783,7 +3849,7 @@ var effectsEffectShake = $.effects.define( &quot;shake&quot;, function( options, done ) {
3783 3849
3784 3850
3785 /*! 3851 /*!
3786 - * jQuery UI Effects Slide 1.12.1 3852 + * jQuery UI Effects Slide 1.13.2
3787 * http://jqueryui.com 3853 * http://jqueryui.com
3788 * 3854 *
3789 * Copyright jQuery Foundation and other contributors 3855 * Copyright jQuery Foundation and other contributors
@@ -3798,7 +3864,6 @@ var effectsEffectShake = $.effects.define( &quot;shake&quot;, function( options, done ) { @@ -3798,7 +3864,6 @@ var effectsEffectShake = $.effects.define( &quot;shake&quot;, function( options, done ) {
3798 //>>demos: http://jqueryui.com/effect/ 3864 //>>demos: http://jqueryui.com/effect/
3799 3865
3800 3866
3801 -  
3802 var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) { 3867 var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) {
3803 var startClip, startRef, 3868 var startClip, startRef,
3804 element = $( this ), 3869 element = $( this ),
@@ -3845,7 +3910,7 @@ var effectsEffectSlide = $.effects.define( &quot;slide&quot;, &quot;show&quot;, function( options, d @@ -3845,7 +3910,7 @@ var effectsEffectSlide = $.effects.define( &quot;slide&quot;, &quot;show&quot;, function( options, d
3845 3910
3846 3911
3847 /*! 3912 /*!
3848 - * jQuery UI Effects Transfer 1.12.1 3913 + * jQuery UI Effects Transfer 1.13.2
3849 * http://jqueryui.com 3914 * http://jqueryui.com
3850 * 3915 *
3851 * Copyright jQuery Foundation and other contributors 3916 * Copyright jQuery Foundation and other contributors
@@ -3860,7 +3925,6 @@ var effectsEffectSlide = $.effects.define( &quot;slide&quot;, &quot;show&quot;, function( options, d @@ -3860,7 +3925,6 @@ var effectsEffectSlide = $.effects.define( &quot;slide&quot;, &quot;show&quot;, function( options, d
3860 //>>demos: http://jqueryui.com/effect/ 3925 //>>demos: http://jqueryui.com/effect/
3861 3926
3862 3927
3863 -  
3864 var effect; 3928 var effect;
3865 if ( $.uiBackCompat !== false ) { 3929 if ( $.uiBackCompat !== false ) {
3866 effect = $.effects.define( "transfer", function( options, done ) { 3930 effect = $.effects.define( "transfer", function( options, done ) {
@@ -3871,7 +3935,7 @@ var effectsEffectTransfer = effect; @@ -3871,7 +3935,7 @@ var effectsEffectTransfer = effect;
3871 3935
3872 3936
3873 /*! 3937 /*!
3874 - * jQuery UI Focusable 1.12.1 3938 + * jQuery UI Focusable 1.13.2
3875 * http://jqueryui.com 3939 * http://jqueryui.com
3876 * 3940 *
3877 * Copyright jQuery Foundation and other contributors 3941 * Copyright jQuery Foundation and other contributors
@@ -3885,7 +3949,6 @@ var effectsEffectTransfer = effect; @@ -3885,7 +3949,6 @@ var effectsEffectTransfer = effect;
3885 //>>docs: http://api.jqueryui.com/focusable-selector/ 3949 //>>docs: http://api.jqueryui.com/focusable-selector/
3886 3950
3887 3951
3888 -  
3889 // Selectors 3952 // Selectors
3890 $.ui.focusable = function( element, hasTabindex ) { 3953 $.ui.focusable = function( element, hasTabindex ) {
3891 var map, mapName, img, focusableIfVisible, fieldset, 3954 var map, mapName, img, focusableIfVisible, fieldset,
@@ -3932,10 +3995,10 @@ function visible( element ) { @@ -3932,10 +3995,10 @@ function visible( element ) {
3932 element = element.parent(); 3995 element = element.parent();
3933 visibility = element.css( "visibility" ); 3996 visibility = element.css( "visibility" );
3934 } 3997 }
3935 - return visibility !== "hidden"; 3998 + return visibility === "visible";
3936 } 3999 }
3937 4000
3938 -$.extend( $.expr[ ":" ], { 4001 +$.extend( $.expr.pseudos, {
3939 focusable: function( element ) { 4002 focusable: function( element ) {
3940 return $.ui.focusable( element, $.attr( element, "tabindex" ) != null ); 4003 return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
3941 } 4004 }
@@ -3945,17 +4008,16 @@ var focusable = $.ui.focusable; @@ -3945,17 +4008,16 @@ var focusable = $.ui.focusable;
3945 4008
3946 4009
3947 4010
3948 -  
3949 // Support: IE8 Only 4011 // Support: IE8 Only
3950 // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop 4012 // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
3951 // with a string, so we need to find the proper form. 4013 // with a string, so we need to find the proper form.
3952 -var form = $.fn.form = function() { 4014 +var form = $.fn._form = function() {
3953 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); 4015 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
3954 }; 4016 };
3955 4017
3956 4018
3957 /*! 4019 /*!
3958 - * jQuery UI Form Reset Mixin 1.12.1 4020 + * jQuery UI Form Reset Mixin 1.13.2
3959 * http://jqueryui.com 4021 * http://jqueryui.com
3960 * 4022 *
3961 * Copyright jQuery Foundation and other contributors 4023 * Copyright jQuery Foundation and other contributors
@@ -3969,7 +4031,6 @@ var form = $.fn.form = function() { @@ -3969,7 +4031,6 @@ var form = $.fn.form = function() {
3969 //>>docs: http://api.jqueryui.com/form-reset-mixin/ 4031 //>>docs: http://api.jqueryui.com/form-reset-mixin/
3970 4032
3971 4033
3972 -  
3973 var formResetMixin = $.ui.formResetMixin = { 4034 var formResetMixin = $.ui.formResetMixin = {
3974 _formResetHandler: function() { 4035 _formResetHandler: function() {
3975 var form = $( this ); 4036 var form = $( this );
@@ -3984,7 +4045,7 @@ var formResetMixin = $.ui.formResetMixin = { @@ -3984,7 +4045,7 @@ var formResetMixin = $.ui.formResetMixin = {
3984 }, 4045 },
3985 4046
3986 _bindFormResetHandler: function() { 4047 _bindFormResetHandler: function() {
3987 - this.form = this.element.form(); 4048 + this.form = this.element._form();
3988 if ( !this.form.length ) { 4049 if ( !this.form.length ) {
3989 return; 4050 return;
3990 } 4051 }
@@ -4018,7 +4079,7 @@ var formResetMixin = $.ui.formResetMixin = { @@ -4018,7 +4079,7 @@ var formResetMixin = $.ui.formResetMixin = {
4018 4079
4019 4080
4020 /*! 4081 /*!
4021 - * jQuery UI Support for jQuery core 1.7.x 1.12.1 4082 + * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2
4022 * http://jqueryui.com 4083 * http://jqueryui.com
4023 * 4084 *
4024 * Copyright jQuery Foundation and other contributors 4085 * Copyright jQuery Foundation and other contributors
@@ -4027,77 +4088,73 @@ var formResetMixin = $.ui.formResetMixin = { @@ -4027,77 +4088,73 @@ var formResetMixin = $.ui.formResetMixin = {
4027 * 4088 *
4028 */ 4089 */
4029 4090
4030 -//>>label: jQuery 1.7 Support 4091 +//>>label: jQuery 1.8+ Support
4031 //>>group: Core 4092 //>>group: Core
4032 -//>>description: Support version 1.7.x of jQuery core  
4033 -  
4034 -  
4035 -  
4036 -// Support: jQuery 1.7 only  
4037 -// Not a great way to check versions, but since we only support 1.7+ and only  
4038 -// need to detect <1.8, this is a simple check that should suffice. Checking  
4039 -// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0  
4040 -// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting  
4041 -// 1.7 anymore). See #11197 for why we're not using feature detection.  
4042 -if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {  
4043 -  
4044 - // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()  
4045 - // Unlike jQuery Core 1.8+, these only support numeric values to set the  
4046 - // dimensions in pixels  
4047 - $.each( [ "Width", "Height" ], function( i, name ) {  
4048 - var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],  
4049 - type = name.toLowerCase(),  
4050 - orig = {  
4051 - innerWidth: $.fn.innerWidth,  
4052 - innerHeight: $.fn.innerHeight,  
4053 - outerWidth: $.fn.outerWidth,  
4054 - outerHeight: $.fn.outerHeight  
4055 - }; 4093 +//>>description: Support version 1.8.x and newer of jQuery core
4056 4094
4057 - function reduce( elem, size, border, margin ) {  
4058 - $.each( side, function() {  
4059 - size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;  
4060 - if ( border ) {  
4061 - size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;  
4062 - }  
4063 - if ( margin ) {  
4064 - size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;  
4065 - }  
4066 - } );  
4067 - return size;  
4068 - }  
4069 4095
4070 - $.fn[ "inner" + name ] = function( size ) {  
4071 - if ( size === undefined ) {  
4072 - return orig[ "inner" + name ].call( this );  
4073 - } 4096 +// Support: jQuery 1.9.x or older
  4097 +// $.expr[ ":" ] is deprecated.
  4098 +if ( !$.expr.pseudos ) {
  4099 + $.expr.pseudos = $.expr[ ":" ];
  4100 +}
4074 4101
4075 - return this.each( function() {  
4076 - $( this ).css( type, reduce( this, size ) + "px" );  
4077 - } );  
4078 - }; 4102 +// Support: jQuery 1.11.x or older
  4103 +// $.unique has been renamed to $.uniqueSort
  4104 +if ( !$.uniqueSort ) {
  4105 + $.uniqueSort = $.unique;
  4106 +}
  4107 +
  4108 +// Support: jQuery 2.2.x or older.
  4109 +// This method has been defined in jQuery 3.0.0.
  4110 +// Code from https://github.com/jquery/jquery/blob/e539bac79e666bba95bba86d690b4e609dca2286/src/selector/escapeSelector.js
  4111 +if ( !$.escapeSelector ) {
  4112 +
  4113 + // CSS string/identifier serialization
  4114 + // https://drafts.csswg.org/cssom/#common-serializing-idioms
  4115 + var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
4079 4116
4080 - $.fn[ "outer" + name ] = function( size, margin ) {  
4081 - if ( typeof size !== "number" ) {  
4082 - return orig[ "outer" + name ].call( this, size ); 4117 + var fcssescape = function( ch, asCodePoint ) {
  4118 + if ( asCodePoint ) {
  4119 +
  4120 + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
  4121 + if ( ch === "\0" ) {
  4122 + return "\uFFFD";
4083 } 4123 }
4084 4124
4085 - return this.each( function() {  
4086 - $( this ).css( type, reduce( this, size, true, margin ) + "px" );  
4087 - } );  
4088 - };  
4089 - } ); 4125 + // Control characters and (dependent upon position) numbers get escaped as code points
  4126 + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
  4127 + }
4090 4128
4091 - $.fn.addBack = function( selector ) {  
4092 - return this.add( selector == null ?  
4093 - this.prevObject : this.prevObject.filter( selector )  
4094 - ); 4129 + // Other potentially-special ASCII characters get backslash-escaped
  4130 + return "\\" + ch;
  4131 + };
  4132 +
  4133 + $.escapeSelector = function( sel ) {
  4134 + return ( sel + "" ).replace( rcssescape, fcssescape );
4095 }; 4135 };
4096 } 4136 }
4097 4137
  4138 +// Support: jQuery 3.4.x or older
  4139 +// These methods have been defined in jQuery 3.5.0.
  4140 +if ( !$.fn.even || !$.fn.odd ) {
  4141 + $.fn.extend( {
  4142 + even: function() {
  4143 + return this.filter( function( i ) {
  4144 + return i % 2 === 0;
  4145 + } );
  4146 + },
  4147 + odd: function() {
  4148 + return this.filter( function( i ) {
  4149 + return i % 2 === 1;
  4150 + } );
  4151 + }
  4152 + } );
  4153 +}
  4154 +
4098 ; 4155 ;
4099 /*! 4156 /*!
4100 - * jQuery UI Keycode 1.12.1 4157 + * jQuery UI Keycode 1.13.2
4101 * http://jqueryui.com 4158 * http://jqueryui.com
4102 * 4159 *
4103 * Copyright jQuery Foundation and other contributors 4160 * Copyright jQuery Foundation and other contributors
@@ -4131,19 +4188,8 @@ var keycode = $.ui.keyCode = { @@ -4131,19 +4188,8 @@ var keycode = $.ui.keyCode = {
4131 }; 4188 };
4132 4189
4133 4190
4134 -  
4135 -  
4136 -// Internal use only  
4137 -var escapeSelector = $.ui.escapeSelector = ( function() {  
4138 - var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;  
4139 - return function( selector ) {  
4140 - return selector.replace( selectorEscape, "\\$1" );  
4141 - };  
4142 -} )();  
4143 -  
4144 -  
4145 /*! 4191 /*!
4146 - * jQuery UI Labels 1.12.1 4192 + * jQuery UI Labels 1.13.2
4147 * http://jqueryui.com 4193 * http://jqueryui.com
4148 * 4194 *
4149 * Copyright jQuery Foundation and other contributors 4195 * Copyright jQuery Foundation and other contributors
@@ -4157,10 +4203,13 @@ var escapeSelector = $.ui.escapeSelector = ( function() { @@ -4157,10 +4203,13 @@ var escapeSelector = $.ui.escapeSelector = ( function() {
4157 //>>docs: http://api.jqueryui.com/labels/ 4203 //>>docs: http://api.jqueryui.com/labels/
4158 4204
4159 4205
4160 -  
4161 var labels = $.fn.labels = function() { 4206 var labels = $.fn.labels = function() {
4162 var ancestor, selector, id, labels, ancestors; 4207 var ancestor, selector, id, labels, ancestors;
4163 4208
  4209 + if ( !this.length ) {
  4210 + return this.pushStack( [] );
  4211 + }
  4212 +
4164 // Check control.labels first 4213 // Check control.labels first
4165 if ( this[ 0 ].labels && this[ 0 ].labels.length ) { 4214 if ( this[ 0 ].labels && this[ 0 ].labels.length ) {
4166 return this.pushStack( this[ 0 ].labels ); 4215 return this.pushStack( this[ 0 ].labels );
@@ -4183,7 +4232,7 @@ var labels = $.fn.labels = function() { @@ -4183,7 +4232,7 @@ var labels = $.fn.labels = function() {
4183 ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() ); 4232 ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
4184 4233
4185 // Create a selector for the label based on the id 4234 // Create a selector for the label based on the id
4186 - selector = "label[for='" + $.ui.escapeSelector( id ) + "']"; 4235 + selector = "label[for='" + $.escapeSelector( id ) + "']";
4187 4236
4188 labels = labels.add( ancestors.find( selector ).addBack( selector ) ); 4237 labels = labels.add( ancestors.find( selector ).addBack( selector ) );
4189 4238
@@ -4195,7 +4244,7 @@ var labels = $.fn.labels = function() { @@ -4195,7 +4244,7 @@ var labels = $.fn.labels = function() {
4195 4244
4196 4245
4197 /*! 4246 /*!
4198 - * jQuery UI Scroll Parent 1.12.1 4247 + * jQuery UI Scroll Parent 1.13.2
4199 * http://jqueryui.com 4248 * http://jqueryui.com
4200 * 4249 *
4201 * Copyright jQuery Foundation and other contributors 4250 * Copyright jQuery Foundation and other contributors
@@ -4209,7 +4258,6 @@ var labels = $.fn.labels = function() { @@ -4209,7 +4258,6 @@ var labels = $.fn.labels = function() {
4209 //>>docs: http://api.jqueryui.com/scrollParent/ 4258 //>>docs: http://api.jqueryui.com/scrollParent/
4210 4259
4211 4260
4212 -  
4213 var scrollParent = $.fn.scrollParent = function( includeHidden ) { 4261 var scrollParent = $.fn.scrollParent = function( includeHidden ) {
4214 var position = this.css( "position" ), 4262 var position = this.css( "position" ),
4215 excludeStaticParent = position === "absolute", 4263 excludeStaticParent = position === "absolute",
@@ -4230,7 +4278,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) { @@ -4230,7 +4278,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) {
4230 4278
4231 4279
4232 /*! 4280 /*!
4233 - * jQuery UI Tabbable 1.12.1 4281 + * jQuery UI Tabbable 1.13.2
4234 * http://jqueryui.com 4282 * http://jqueryui.com
4235 * 4283 *
4236 * Copyright jQuery Foundation and other contributors 4284 * Copyright jQuery Foundation and other contributors
@@ -4244,8 +4292,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) { @@ -4244,8 +4292,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) {
4244 //>>docs: http://api.jqueryui.com/tabbable-selector/ 4292 //>>docs: http://api.jqueryui.com/tabbable-selector/
4245 4293
4246 4294
4247 -  
4248 -var tabbable = $.extend( $.expr[ ":" ], { 4295 +var tabbable = $.extend( $.expr.pseudos, {
4249 tabbable: function( element ) { 4296 tabbable: function( element ) {
4250 var tabIndex = $.attr( element, "tabindex" ), 4297 var tabIndex = $.attr( element, "tabindex" ),
4251 hasTabindex = tabIndex != null; 4298 hasTabindex = tabIndex != null;
@@ -4255,7 +4302,7 @@ var tabbable = $.extend( $.expr[ &quot;:&quot; ], { @@ -4255,7 +4302,7 @@ var tabbable = $.extend( $.expr[ &quot;:&quot; ], {
4255 4302
4256 4303
4257 /*! 4304 /*!
4258 - * jQuery UI Unique ID 1.12.1 4305 + * jQuery UI Unique ID 1.13.2
4259 * http://jqueryui.com 4306 * http://jqueryui.com
4260 * 4307 *
4261 * Copyright jQuery Foundation and other contributors 4308 * Copyright jQuery Foundation and other contributors
@@ -4269,7 +4316,6 @@ var tabbable = $.extend( $.expr[ &quot;:&quot; ], { @@ -4269,7 +4316,6 @@ var tabbable = $.extend( $.expr[ &quot;:&quot; ], {
4269 //>>docs: http://api.jqueryui.com/uniqueId/ 4316 //>>docs: http://api.jqueryui.com/uniqueId/
4270 4317
4271 4318
4272 -  
4273 var uniqueId = $.fn.extend( { 4319 var uniqueId = $.fn.extend( {
4274 uniqueId: ( function() { 4320 uniqueId: ( function() {
4275 var uuid = 0; 4321 var uuid = 0;
@@ -4294,7 +4340,7 @@ var uniqueId = $.fn.extend( { @@ -4294,7 +4340,7 @@ var uniqueId = $.fn.extend( {
4294 4340
4295 4341
4296 /*! 4342 /*!
4297 - * jQuery UI Accordion 1.12.1 4343 + * jQuery UI Accordion 1.13.2
4298 * http://jqueryui.com 4344 * http://jqueryui.com
4299 * 4345 *
4300 * Copyright jQuery Foundation and other contributors 4346 * Copyright jQuery Foundation and other contributors
@@ -4304,9 +4350,9 @@ var uniqueId = $.fn.extend( { @@ -4304,9 +4350,9 @@ var uniqueId = $.fn.extend( {
4304 4350
4305 //>>label: Accordion 4351 //>>label: Accordion
4306 //>>group: Widgets 4352 //>>group: Widgets
4307 -// jscs:disable maximumLineLength 4353 +/* eslint-disable max-len */
4308 //>>description: Displays collapsible content panels for presenting information in a limited amount of space. 4354 //>>description: Displays collapsible content panels for presenting information in a limited amount of space.
4309 -// jscs:enable maximumLineLength 4355 +/* eslint-enable max-len */
4310 //>>docs: http://api.jqueryui.com/accordion/ 4356 //>>docs: http://api.jqueryui.com/accordion/
4311 //>>demos: http://jqueryui.com/accordion/ 4357 //>>demos: http://jqueryui.com/accordion/
4312 //>>css.structure: ../../themes/base/core.css 4358 //>>css.structure: ../../themes/base/core.css
@@ -4314,9 +4360,8 @@ var uniqueId = $.fn.extend( { @@ -4314,9 +4360,8 @@ var uniqueId = $.fn.extend( {
4314 //>>css.theme: ../../themes/base/theme.css 4360 //>>css.theme: ../../themes/base/theme.css
4315 4361
4316 4362
4317 -  
4318 var widgetsAccordion = $.widget( "ui.accordion", { 4363 var widgetsAccordion = $.widget( "ui.accordion", {
4319 - version: "1.12.1", 4364 + version: "1.13.2",
4320 options: { 4365 options: {
4321 active: 0, 4366 active: 0,
4322 animate: {}, 4367 animate: {},
@@ -4327,7 +4372,9 @@ var widgetsAccordion = $.widget( &quot;ui.accordion&quot;, { @@ -4327,7 +4372,9 @@ var widgetsAccordion = $.widget( &quot;ui.accordion&quot;, {
4327 }, 4372 },
4328 collapsible: false, 4373 collapsible: false,
4329 event: "click", 4374 event: "click",
4330 - header: "> li > :first-child, > :not(li):even", 4375 + header: function( elem ) {
  4376 + return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
  4377 + },
4331 heightStyle: "auto", 4378 heightStyle: "auto",
4332 icons: { 4379 icons: {
4333 activeHeader: "ui-icon-triangle-1-s", 4380 activeHeader: "ui-icon-triangle-1-s",
@@ -4558,7 +4605,11 @@ var widgetsAccordion = $.widget( &quot;ui.accordion&quot;, { @@ -4558,7 +4605,11 @@ var widgetsAccordion = $.widget( &quot;ui.accordion&quot;, {
4558 var prevHeaders = this.headers, 4605 var prevHeaders = this.headers,
4559 prevPanels = this.panels; 4606 prevPanels = this.panels;
4560 4607
4561 - this.headers = this.element.find( this.options.header ); 4608 + if ( typeof this.options.header === "function" ) {
  4609 + this.headers = this.options.header( this.element );
  4610 + } else {
  4611 + this.headers = this.element.find( this.options.header );
  4612 + }
4562 this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed", 4613 this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
4563 "ui-state-default" ); 4614 "ui-state-default" );
4564 4615
@@ -4921,7 +4972,7 @@ var safeActiveElement = $.ui.safeActiveElement = function( document ) { @@ -4921,7 +4972,7 @@ var safeActiveElement = $.ui.safeActiveElement = function( document ) {
4921 4972
4922 4973
4923 /*! 4974 /*!
4924 - * jQuery UI Menu 1.12.1 4975 + * jQuery UI Menu 1.13.2
4925 * http://jqueryui.com 4976 * http://jqueryui.com
4926 * 4977 *
4927 * Copyright jQuery Foundation and other contributors 4978 * Copyright jQuery Foundation and other contributors
@@ -4939,9 +4990,8 @@ var safeActiveElement = $.ui.safeActiveElement = function( document ) { @@ -4939,9 +4990,8 @@ var safeActiveElement = $.ui.safeActiveElement = function( document ) {
4939 //>>css.theme: ../../themes/base/theme.css 4990 //>>css.theme: ../../themes/base/theme.css
4940 4991
4941 4992
4942 -  
4943 var widgetsMenu = $.widget( "ui.menu", { 4993 var widgetsMenu = $.widget( "ui.menu", {
4944 - version: "1.12.1", 4994 + version: "1.13.2",
4945 defaultElement: "<ul>", 4995 defaultElement: "<ul>",
4946 delay: 300, 4996 delay: 300,
4947 options: { 4997 options: {
@@ -4968,6 +5018,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -4968,6 +5018,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
4968 // Flag used to prevent firing of the click handler 5018 // Flag used to prevent firing of the click handler
4969 // as the event bubbles up through nested menus 5019 // as the event bubbles up through nested menus
4970 this.mouseHandled = false; 5020 this.mouseHandled = false;
  5021 + this.lastMousePosition = { x: null, y: null };
4971 this.element 5022 this.element
4972 .uniqueId() 5023 .uniqueId()
4973 .attr( { 5024 .attr( {
@@ -4982,6 +5033,8 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -4982,6 +5033,8 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
4982 // them (focus should always stay on UL during navigation). 5033 // them (focus should always stay on UL during navigation).
4983 "mousedown .ui-menu-item": function( event ) { 5034 "mousedown .ui-menu-item": function( event ) {
4984 event.preventDefault(); 5035 event.preventDefault();
  5036 +
  5037 + this._activateItem( event );
4985 }, 5038 },
4986 "click .ui-menu-item": function( event ) { 5039 "click .ui-menu-item": function( event ) {
4987 var target = $( event.target ); 5040 var target = $( event.target );
@@ -5011,36 +5064,15 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5011,36 +5064,15 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5011 } 5064 }
5012 } 5065 }
5013 }, 5066 },
5014 - "mouseenter .ui-menu-item": function( event ) {  
5015 -  
5016 - // Ignore mouse events while typeahead is active, see #10458.  
5017 - // Prevents focusing the wrong item when typeahead causes a scroll while the mouse  
5018 - // is over an item in the menu  
5019 - if ( this.previousFilter ) {  
5020 - return;  
5021 - }  
5022 -  
5023 - var actualTarget = $( event.target ).closest( ".ui-menu-item" ),  
5024 - target = $( event.currentTarget );  
5025 -  
5026 - // Ignore bubbled events on parent items, see #11641  
5027 - if ( actualTarget[ 0 ] !== target[ 0 ] ) {  
5028 - return;  
5029 - }  
5030 -  
5031 - // Remove ui-state-active class from siblings of the newly focused menu item  
5032 - // to avoid a jump caused by adjacent elements both having a class with a border  
5033 - this._removeClass( target.siblings().children( ".ui-state-active" ),  
5034 - null, "ui-state-active" );  
5035 - this.focus( event, target );  
5036 - }, 5067 + "mouseenter .ui-menu-item": "_activateItem",
  5068 + "mousemove .ui-menu-item": "_activateItem",
5037 mouseleave: "collapseAll", 5069 mouseleave: "collapseAll",
5038 "mouseleave .ui-menu": "collapseAll", 5070 "mouseleave .ui-menu": "collapseAll",
5039 focus: function( event, keepActiveItem ) { 5071 focus: function( event, keepActiveItem ) {
5040 5072
5041 // If there's already an active item, keep it active 5073 // If there's already an active item, keep it active
5042 // If not, activate the first item 5074 // If not, activate the first item
5043 - var item = this.active || this.element.find( this.options.items ).eq( 0 ); 5075 + var item = this.active || this._menuItems().first();
5044 5076
5045 if ( !keepActiveItem ) { 5077 if ( !keepActiveItem ) {
5046 this.focus( event, item ); 5078 this.focus( event, item );
@@ -5066,7 +5098,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5066,7 +5098,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5066 this._on( this.document, { 5098 this._on( this.document, {
5067 click: function( event ) { 5099 click: function( event ) {
5068 if ( this._closeOnDocumentClick( event ) ) { 5100 if ( this._closeOnDocumentClick( event ) ) {
5069 - this.collapseAll( event ); 5101 + this.collapseAll( event, true );
5070 } 5102 }
5071 5103
5072 // Reset the mouseHandled flag 5104 // Reset the mouseHandled flag
@@ -5075,6 +5107,46 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5075,6 +5107,46 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5075 } ); 5107 } );
5076 }, 5108 },
5077 5109
  5110 + _activateItem: function( event ) {
  5111 +
  5112 + // Ignore mouse events while typeahead is active, see #10458.
  5113 + // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
  5114 + // is over an item in the menu
  5115 + if ( this.previousFilter ) {
  5116 + return;
  5117 + }
  5118 +
  5119 + // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
  5120 + if ( event.clientX === this.lastMousePosition.x &&
  5121 + event.clientY === this.lastMousePosition.y ) {
  5122 + return;
  5123 + }
  5124 +
  5125 + this.lastMousePosition = {
  5126 + x: event.clientX,
  5127 + y: event.clientY
  5128 + };
  5129 +
  5130 + var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
  5131 + target = $( event.currentTarget );
  5132 +
  5133 + // Ignore bubbled events on parent items, see #11641
  5134 + if ( actualTarget[ 0 ] !== target[ 0 ] ) {
  5135 + return;
  5136 + }
  5137 +
  5138 + // If the item is already active, there's nothing to do
  5139 + if ( target.is( ".ui-state-active" ) ) {
  5140 + return;
  5141 + }
  5142 +
  5143 + // Remove ui-state-active class from siblings of the newly focused menu item
  5144 + // to avoid a jump caused by adjacent elements both having a class with a border
  5145 + this._removeClass( target.siblings().children( ".ui-state-active" ),
  5146 + null, "ui-state-active" );
  5147 + this.focus( event, target );
  5148 + },
  5149 +
5078 _destroy: function() { 5150 _destroy: function() {
5079 var items = this.element.find( ".ui-menu-item" ) 5151 var items = this.element.find( ".ui-menu-item" )
5080 .removeAttr( "role aria-disabled" ), 5152 .removeAttr( "role aria-disabled" ),
@@ -5406,7 +5478,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5406,7 +5478,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5406 this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" ); 5478 this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" );
5407 5479
5408 this.activeMenu = currentMenu; 5480 this.activeMenu = currentMenu;
5409 - }, this.delay ); 5481 + }, all ? 0 : this.delay );
5410 }, 5482 },
5411 5483
5412 // With no arguments, closes the currently active menu - if nothing is active 5484 // With no arguments, closes the currently active menu - if nothing is active
@@ -5442,11 +5514,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5442,11 +5514,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5442 }, 5514 },
5443 5515
5444 expand: function( event ) { 5516 expand: function( event ) {
5445 - var newItem = this.active &&  
5446 - this.active  
5447 - .children( ".ui-menu " )  
5448 - .find( this.options.items )  
5449 - .first(); 5517 + var newItem = this.active && this._menuItems( this.active.children( ".ui-menu" ) ).first();
5450 5518
5451 if ( newItem && newItem.length ) { 5519 if ( newItem && newItem.length ) {
5452 this._open( newItem.parent() ); 5520 this._open( newItem.parent() );
@@ -5474,21 +5542,27 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5474,21 +5542,27 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5474 return this.active && !this.active.nextAll( ".ui-menu-item" ).length; 5542 return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
5475 }, 5543 },
5476 5544
  5545 + _menuItems: function( menu ) {
  5546 + return ( menu || this.element )
  5547 + .find( this.options.items )
  5548 + .filter( ".ui-menu-item" );
  5549 + },
  5550 +
5477 _move: function( direction, filter, event ) { 5551 _move: function( direction, filter, event ) {
5478 var next; 5552 var next;
5479 if ( this.active ) { 5553 if ( this.active ) {
5480 if ( direction === "first" || direction === "last" ) { 5554 if ( direction === "first" || direction === "last" ) {
5481 next = this.active 5555 next = this.active
5482 [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" ) 5556 [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
5483 - .eq( -1 ); 5557 + .last();
5484 } else { 5558 } else {
5485 next = this.active 5559 next = this.active
5486 [ direction + "All" ]( ".ui-menu-item" ) 5560 [ direction + "All" ]( ".ui-menu-item" )
5487 - .eq( 0 ); 5561 + .first();
5488 } 5562 }
5489 } 5563 }
5490 if ( !next || !next.length || !this.active ) { 5564 if ( !next || !next.length || !this.active ) {
5491 - next = this.activeMenu.find( this.options.items )[ filter ](); 5565 + next = this._menuItems( this.activeMenu )[ filter ]();
5492 } 5566 }
5493 5567
5494 this.focus( event, next ); 5568 this.focus( event, next );
@@ -5506,7 +5580,13 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5506,7 +5580,13 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5506 } 5580 }
5507 if ( this._hasScroll() ) { 5581 if ( this._hasScroll() ) {
5508 base = this.active.offset().top; 5582 base = this.active.offset().top;
5509 - height = this.element.height(); 5583 + height = this.element.innerHeight();
  5584 +
  5585 + // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
  5586 + if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
  5587 + height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
  5588 + }
  5589 +
5510 this.active.nextAll( ".ui-menu-item" ).each( function() { 5590 this.active.nextAll( ".ui-menu-item" ).each( function() {
5511 item = $( this ); 5591 item = $( this );
5512 return item.offset().top - base - height < 0; 5592 return item.offset().top - base - height < 0;
@@ -5514,7 +5594,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5514,7 +5594,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5514 5594
5515 this.focus( event, item ); 5595 this.focus( event, item );
5516 } else { 5596 } else {
5517 - this.focus( event, this.activeMenu.find( this.options.items ) 5597 + this.focus( event, this._menuItems( this.activeMenu )
5518 [ !this.active ? "first" : "last" ]() ); 5598 [ !this.active ? "first" : "last" ]() );
5519 } 5599 }
5520 }, 5600 },
@@ -5530,7 +5610,13 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5530,7 +5610,13 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5530 } 5610 }
5531 if ( this._hasScroll() ) { 5611 if ( this._hasScroll() ) {
5532 base = this.active.offset().top; 5612 base = this.active.offset().top;
5533 - height = this.element.height(); 5613 + height = this.element.innerHeight();
  5614 +
  5615 + // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
  5616 + if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
  5617 + height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
  5618 + }
  5619 +
5534 this.active.prevAll( ".ui-menu-item" ).each( function() { 5620 this.active.prevAll( ".ui-menu-item" ).each( function() {
5535 item = $( this ); 5621 item = $( this );
5536 return item.offset().top - base + height > 0; 5622 return item.offset().top - base + height > 0;
@@ -5538,7 +5624,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5538,7 +5624,7 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5538 5624
5539 this.focus( event, item ); 5625 this.focus( event, item );
5540 } else { 5626 } else {
5541 - this.focus( event, this.activeMenu.find( this.options.items ).first() ); 5627 + this.focus( event, this._menuItems( this.activeMenu ).first() );
5542 } 5628 }
5543 }, 5629 },
5544 5630
@@ -5569,14 +5655,15 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5569,14 +5655,15 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5569 .filter( ".ui-menu-item" ) 5655 .filter( ".ui-menu-item" )
5570 .filter( function() { 5656 .filter( function() {
5571 return regex.test( 5657 return regex.test(
5572 - $.trim( $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); 5658 + String.prototype.trim.call(
  5659 + $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
5573 } ); 5660 } );
5574 } 5661 }
5575 } ); 5662 } );
5576 5663
5577 5664
5578 /*! 5665 /*!
5579 - * jQuery UI Autocomplete 1.12.1 5666 + * jQuery UI Autocomplete 1.13.2
5580 * http://jqueryui.com 5667 * http://jqueryui.com
5581 * 5668 *
5582 * Copyright jQuery Foundation and other contributors 5669 * Copyright jQuery Foundation and other contributors
@@ -5594,9 +5681,8 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, { @@ -5594,9 +5681,8 @@ var widgetsMenu = $.widget( &quot;ui.menu&quot;, {
5594 //>>css.theme: ../../themes/base/theme.css 5681 //>>css.theme: ../../themes/base/theme.css
5595 5682
5596 5683
5597 -  
5598 $.widget( "ui.autocomplete", { 5684 $.widget( "ui.autocomplete", {
5599 - version: "1.12.1", 5685 + version: "1.13.2",
5600 defaultElement: "<input>", 5686 defaultElement: "<input>",
5601 options: { 5687 options: {
5602 appendTo: null, 5688 appendTo: null,
@@ -5622,6 +5708,7 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -5622,6 +5708,7 @@ $.widget( &quot;ui.autocomplete&quot;, {
5622 5708
5623 requestIndex: 0, 5709 requestIndex: 0,
5624 pending: 0, 5710 pending: 0,
  5711 + liveRegionTimer: null,
5625 5712
5626 _create: function() { 5713 _create: function() {
5627 5714
@@ -5759,11 +5846,6 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -5759,11 +5846,6 @@ $.widget( &quot;ui.autocomplete&quot;, {
5759 this.previous = this._value(); 5846 this.previous = this._value();
5760 }, 5847 },
5761 blur: function( event ) { 5848 blur: function( event ) {
5762 - if ( this.cancelBlur ) {  
5763 - delete this.cancelBlur;  
5764 - return;  
5765 - }  
5766 -  
5767 clearTimeout( this.searching ); 5849 clearTimeout( this.searching );
5768 this.close( event ); 5850 this.close( event );
5769 this._change( event ); 5851 this._change( event );
@@ -5779,31 +5861,24 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -5779,31 +5861,24 @@ $.widget( &quot;ui.autocomplete&quot;, {
5779 role: null 5861 role: null
5780 } ) 5862 } )
5781 .hide() 5863 .hide()
  5864 +
  5865 + // Support: IE 11 only, Edge <= 14
  5866 + // For other browsers, we preventDefault() on the mousedown event
  5867 + // to keep the dropdown from taking focus from the input. This doesn't
  5868 + // work for IE/Edge, causing problems with selection and scrolling (#9638)
  5869 + // Happily, IE and Edge support an "unselectable" attribute that
  5870 + // prevents an element from receiving focus, exactly what we want here.
  5871 + .attr( {
  5872 + "unselectable": "on"
  5873 + } )
5782 .menu( "instance" ); 5874 .menu( "instance" );
5783 5875
5784 this._addClass( this.menu.element, "ui-autocomplete", "ui-front" ); 5876 this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
5785 this._on( this.menu.element, { 5877 this._on( this.menu.element, {
5786 mousedown: function( event ) { 5878 mousedown: function( event ) {
5787 5879
5788 - // prevent moving focus out of the text field 5880 + // Prevent moving focus out of the text field
5789 event.preventDefault(); 5881 event.preventDefault();
5790 -  
5791 - // IE doesn't prevent moving focus even with event.preventDefault()  
5792 - // so we set a flag to know when we should ignore the blur event  
5793 - this.cancelBlur = true;  
5794 - this._delay( function() {  
5795 - delete this.cancelBlur;  
5796 -  
5797 - // Support: IE 8 only  
5798 - // Right clicking a menu item or selecting text from the menu items will  
5799 - // result in focus moving out of the input. However, we've already received  
5800 - // and ignored the blur event because of the cancelBlur flag set above. So  
5801 - // we restore focus to ensure that the menu closes properly based on the user's  
5802 - // next actions.  
5803 - if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {  
5804 - this.element.trigger( "focus" );  
5805 - }  
5806 - } );  
5807 }, 5882 },
5808 menufocus: function( event, ui ) { 5883 menufocus: function( event, ui ) {
5809 var label, item; 5884 var label, item;
@@ -5834,9 +5909,11 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -5834,9 +5909,11 @@ $.widget( &quot;ui.autocomplete&quot;, {
5834 5909
5835 // Announce the value in the liveRegion 5910 // Announce the value in the liveRegion
5836 label = ui.item.attr( "aria-label" ) || item.value; 5911 label = ui.item.attr( "aria-label" ) || item.value;
5837 - if ( label && $.trim( label ).length ) {  
5838 - this.liveRegion.children().hide();  
5839 - $( "<div>" ).text( label ).appendTo( this.liveRegion ); 5912 + if ( label && String.prototype.trim.call( label ).length ) {
  5913 + clearTimeout( this.liveRegionTimer );
  5914 + this.liveRegionTimer = this._delay( function() {
  5915 + this.liveRegion.html( $( "<div>" ).text( label ) );
  5916 + }, 100 );
5840 } 5917 }
5841 }, 5918 },
5842 menuselect: function( event, ui ) { 5919 menuselect: function( event, ui ) {
@@ -5946,7 +6023,7 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -5946,7 +6023,7 @@ $.widget( &quot;ui.autocomplete&quot;, {
5946 _initSource: function() { 6023 _initSource: function() {
5947 var array, url, 6024 var array, url,
5948 that = this; 6025 that = this;
5949 - if ( $.isArray( this.options.source ) ) { 6026 + if ( Array.isArray( this.options.source ) ) {
5950 array = this.options.source; 6027 array = this.options.source;
5951 this.source = function( request, response ) { 6028 this.source = function( request, response ) {
5952 response( $.ui.autocomplete.filter( array, request.term ) ); 6029 response( $.ui.autocomplete.filter( array, request.term ) );
@@ -6018,7 +6095,7 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -6018,7 +6095,7 @@ $.widget( &quot;ui.autocomplete&quot;, {
6018 _response: function() { 6095 _response: function() {
6019 var index = ++this.requestIndex; 6096 var index = ++this.requestIndex;
6020 6097
6021 - return $.proxy( function( content ) { 6098 + return function( content ) {
6022 if ( index === this.requestIndex ) { 6099 if ( index === this.requestIndex ) {
6023 this.__response( content ); 6100 this.__response( content );
6024 } 6101 }
@@ -6027,7 +6104,7 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -6027,7 +6104,7 @@ $.widget( &quot;ui.autocomplete&quot;, {
6027 if ( !this.pending ) { 6104 if ( !this.pending ) {
6028 this._removeClass( "ui-autocomplete-loading" ); 6105 this._removeClass( "ui-autocomplete-loading" );
6029 } 6106 }
6030 - }, this ); 6107 + }.bind( this );
6031 }, 6108 },
6032 6109
6033 __response: function( content ) { 6110 __response: function( content ) {
@@ -6187,7 +6264,7 @@ $.widget( &quot;ui.autocomplete&quot;, { @@ -6187,7 +6264,7 @@ $.widget( &quot;ui.autocomplete&quot;, {
6187 var editable = element.prop( "contentEditable" ); 6264 var editable = element.prop( "contentEditable" );
6188 6265
6189 if ( editable === "inherit" ) { 6266 if ( editable === "inherit" ) {
6190 - return this._isContentEditable( element.parent() ); 6267 + return this._isContentEditable( element.parent() );
6191 } 6268 }
6192 6269
6193 return editable === "true"; 6270 return editable === "true";
@@ -6231,8 +6308,10 @@ $.widget( &quot;ui.autocomplete&quot;, $.ui.autocomplete, { @@ -6231,8 +6308,10 @@ $.widget( &quot;ui.autocomplete&quot;, $.ui.autocomplete, {
6231 } else { 6308 } else {
6232 message = this.options.messages.noResults; 6309 message = this.options.messages.noResults;
6233 } 6310 }
6234 - this.liveRegion.children().hide();  
6235 - $( "<div>" ).text( message ).appendTo( this.liveRegion ); 6311 + clearTimeout( this.liveRegionTimer );
  6312 + this.liveRegionTimer = this._delay( function() {
  6313 + this.liveRegion.html( $( "<div>" ).text( message ) );
  6314 + }, 100 );
6236 } 6315 }
6237 } ); 6316 } );
6238 6317
@@ -6240,7 +6319,7 @@ var widgetsAutocomplete = $.ui.autocomplete; @@ -6240,7 +6319,7 @@ var widgetsAutocomplete = $.ui.autocomplete;
6240 6319
6241 6320
6242 /*! 6321 /*!
6243 - * jQuery UI Controlgroup 1.12.1 6322 + * jQuery UI Controlgroup 1.13.2
6244 * http://jqueryui.com 6323 * http://jqueryui.com
6245 * 6324 *
6246 * Copyright jQuery Foundation and other contributors 6325 * Copyright jQuery Foundation and other contributors
@@ -6261,7 +6340,7 @@ var widgetsAutocomplete = $.ui.autocomplete; @@ -6261,7 +6340,7 @@ var widgetsAutocomplete = $.ui.autocomplete;
6261 var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g; 6340 var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
6262 6341
6263 var widgetsControlgroup = $.widget( "ui.controlgroup", { 6342 var widgetsControlgroup = $.widget( "ui.controlgroup", {
6264 - version: "1.12.1", 6343 + version: "1.13.2",
6265 defaultElement: "<div>", 6344 defaultElement: "<div>",
6266 options: { 6345 options: {
6267 direction: "horizontal", 6346 direction: "horizontal",
@@ -6378,7 +6457,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, { @@ -6378,7 +6457,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, {
6378 } ); 6457 } );
6379 } ); 6458 } );
6380 6459
6381 - this.childWidgets = $( $.unique( childWidgets ) ); 6460 + this.childWidgets = $( $.uniqueSort( childWidgets ) );
6382 this._addClass( this.childWidgets, "ui-controlgroup-item" ); 6461 this._addClass( this.childWidgets, "ui-controlgroup-item" );
6383 }, 6462 },
6384 6463
@@ -6462,7 +6541,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, { @@ -6462,7 +6541,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, {
6462 var result = {}; 6541 var result = {};
6463 $.each( classes, function( key ) { 6542 $.each( classes, function( key ) {
6464 var current = instance.options.classes[ key ] || ""; 6543 var current = instance.options.classes[ key ] || "";
6465 - current = $.trim( current.replace( controlgroupCornerRegex, "" ) ); 6544 + current = String.prototype.trim.call( current.replace( controlgroupCornerRegex, "" ) );
6466 result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " ); 6545 result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
6467 } ); 6546 } );
6468 return result; 6547 return result;
@@ -6525,7 +6604,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, { @@ -6525,7 +6604,7 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, {
6525 } ); 6604 } );
6526 6605
6527 /*! 6606 /*!
6528 - * jQuery UI Checkboxradio 1.12.1 6607 + * jQuery UI Checkboxradio 1.13.2
6529 * http://jqueryui.com 6608 * http://jqueryui.com
6530 * 6609 *
6531 * Copyright jQuery Foundation and other contributors 6610 * Copyright jQuery Foundation and other contributors
@@ -6544,9 +6623,8 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, { @@ -6544,9 +6623,8 @@ var widgetsControlgroup = $.widget( &quot;ui.controlgroup&quot;, {
6544 //>>css.theme: ../../themes/base/theme.css 6623 //>>css.theme: ../../themes/base/theme.css
6545 6624
6546 6625
6547 -  
6548 $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { 6626 $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
6549 - version: "1.12.1", 6627 + version: "1.13.2",
6550 options: { 6628 options: {
6551 disabled: null, 6629 disabled: null,
6552 label: null, 6630 label: null,
@@ -6558,8 +6636,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, { @@ -6558,8 +6636,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, {
6558 }, 6636 },
6559 6637
6560 _getCreateOptions: function() { 6638 _getCreateOptions: function() {
6561 - var disabled, labels;  
6562 - var that = this; 6639 + var disabled, labels, labelContents;
6563 var options = this._super() || {}; 6640 var options = this._super() || {};
6564 6641
6565 // We read the type here, because it makes more sense to throw a element type error first, 6642 // We read the type here, because it makes more sense to throw a element type error first,
@@ -6579,12 +6656,18 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, { @@ -6579,12 +6656,18 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, {
6579 6656
6580 // We need to get the label text but this may also need to make sure it does not contain the 6657 // We need to get the label text but this may also need to make sure it does not contain the
6581 // input itself. 6658 // input itself.
6582 - this.label.contents().not( this.element[ 0 ] ).each( function() { 6659 + // The label contents could be text, html, or a mix. We wrap all elements
  6660 + // and read the wrapper's `innerHTML` to get a string representation of
  6661 + // the label, without the input as part of it.
  6662 + labelContents = this.label.contents().not( this.element[ 0 ] );
6583 6663
6584 - // The label contents could be text, html, or a mix. We concat each element to get a  
6585 - // string representation of the label, without the input as part of it.  
6586 - that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML;  
6587 - } ); 6664 + if ( labelContents.length ) {
  6665 + this.originalLabel += labelContents
  6666 + .clone()
  6667 + .wrapAll( "<div></div>" )
  6668 + .parent()
  6669 + .html();
  6670 + }
6588 6671
6589 // Set the label option if we found label text 6672 // Set the label option if we found label text
6590 if ( this.originalLabel ) { 6673 if ( this.originalLabel ) {
@@ -6625,9 +6708,6 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, { @@ -6625,9 +6708,6 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, {
6625 6708
6626 if ( checked ) { 6709 if ( checked ) {
6627 this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" ); 6710 this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
6628 - if ( this.icon ) {  
6629 - this._addClass( this.icon, null, "ui-state-hover" );  
6630 - }  
6631 } 6711 }
6632 6712
6633 this._on( { 6713 this._on( {
@@ -6662,7 +6742,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, { @@ -6662,7 +6742,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, {
6662 _getRadioGroup: function() { 6742 _getRadioGroup: function() {
6663 var group; 6743 var group;
6664 var name = this.element[ 0 ].name; 6744 var name = this.element[ 0 ].name;
6665 - var nameSelector = "input[name='" + $.ui.escapeSelector( name ) + "']"; 6745 + var nameSelector = "input[name='" + $.escapeSelector( name ) + "']";
6666 6746
6667 if ( !name ) { 6747 if ( !name ) {
6668 return $( [] ); 6748 return $( [] );
@@ -6674,7 +6754,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, { @@ -6674,7 +6754,7 @@ $.widget( &quot;ui.checkboxradio&quot;, [ $.ui.formResetMixin, {
6674 6754
6675 // Not inside a form, check all inputs that also are not inside a form 6755 // Not inside a form, check all inputs that also are not inside a form
6676 group = $( nameSelector ).filter( function() { 6756 group = $( nameSelector ).filter( function() {
6677 - return $( this ).form().length === 0; 6757 + return $( this )._form().length === 0;
6678 } ); 6758 } );
6679 } 6759 }
6680 6760
@@ -6795,7 +6875,7 @@ var widgetsCheckboxradio = $.ui.checkboxradio; @@ -6795,7 +6875,7 @@ var widgetsCheckboxradio = $.ui.checkboxradio;
6795 6875
6796 6876
6797 /*! 6877 /*!
6798 - * jQuery UI Button 1.12.1 6878 + * jQuery UI Button 1.13.2
6799 * http://jqueryui.com 6879 * http://jqueryui.com
6800 * 6880 *
6801 * Copyright jQuery Foundation and other contributors 6881 * Copyright jQuery Foundation and other contributors
@@ -6813,9 +6893,8 @@ var widgetsCheckboxradio = $.ui.checkboxradio; @@ -6813,9 +6893,8 @@ var widgetsCheckboxradio = $.ui.checkboxradio;
6813 //>>css.theme: ../../themes/base/theme.css 6893 //>>css.theme: ../../themes/base/theme.css
6814 6894
6815 6895
6816 -  
6817 $.widget( "ui.button", { 6896 $.widget( "ui.button", {
6818 - version: "1.12.1", 6897 + version: "1.13.2",
6819 defaultElement: "<button>", 6898 defaultElement: "<button>",
6820 options: { 6899 options: {
6821 classes: { 6900 classes: {
@@ -7039,7 +7118,7 @@ $.widget( &quot;ui.button&quot;, { @@ -7039,7 +7118,7 @@ $.widget( &quot;ui.button&quot;, {
7039 this._toggleClass( null, "ui-state-disabled", value ); 7118 this._toggleClass( null, "ui-state-disabled", value );
7040 this.element[ 0 ].disabled = value; 7119 this.element[ 0 ].disabled = value;
7041 if ( value ) { 7120 if ( value ) {
7042 - this.element.blur(); 7121 + this.element.trigger( "blur" );
7043 } 7122 }
7044 } 7123 }
7045 }, 7124 },
@@ -7118,22 +7197,82 @@ if ( $.uiBackCompat !== false ) { @@ -7118,22 +7197,82 @@ if ( $.uiBackCompat !== false ) {
7118 } ); 7197 } );
7119 7198
7120 $.fn.button = ( function( orig ) { 7199 $.fn.button = ( function( orig ) {
7121 - return function() {  
7122 - if ( !this.length || ( this.length && this[ 0 ].tagName !== "INPUT" ) ||  
7123 - ( this.length && this[ 0 ].tagName === "INPUT" && (  
7124 - this.attr( "type" ) !== "checkbox" && this.attr( "type" ) !== "radio"  
7125 - ) ) ) {  
7126 - return orig.apply( this, arguments );  
7127 - }  
7128 - if ( !$.ui.checkboxradio ) {  
7129 - $.error( "Checkboxradio widget missing" );  
7130 - }  
7131 - if ( arguments.length === 0 ) {  
7132 - return this.checkboxradio( {  
7133 - "icon": false 7200 + return function( options ) {
  7201 + var isMethodCall = typeof options === "string";
  7202 + var args = Array.prototype.slice.call( arguments, 1 );
  7203 + var returnValue = this;
  7204 +
  7205 + if ( isMethodCall ) {
  7206 +
  7207 + // If this is an empty collection, we need to have the instance method
  7208 + // return undefined instead of the jQuery instance
  7209 + if ( !this.length && options === "instance" ) {
  7210 + returnValue = undefined;
  7211 + } else {
  7212 + this.each( function() {
  7213 + var methodValue;
  7214 + var type = $( this ).attr( "type" );
  7215 + var name = type !== "checkbox" && type !== "radio" ?
  7216 + "button" :
  7217 + "checkboxradio";
  7218 + var instance = $.data( this, "ui-" + name );
  7219 +
  7220 + if ( options === "instance" ) {
  7221 + returnValue = instance;
  7222 + return false;
  7223 + }
  7224 +
  7225 + if ( !instance ) {
  7226 + return $.error( "cannot call methods on button" +
  7227 + " prior to initialization; " +
  7228 + "attempted to call method '" + options + "'" );
  7229 + }
  7230 +
  7231 + if ( typeof instance[ options ] !== "function" ||
  7232 + options.charAt( 0 ) === "_" ) {
  7233 + return $.error( "no such method '" + options + "' for button" +
  7234 + " widget instance" );
  7235 + }
  7236 +
  7237 + methodValue = instance[ options ].apply( instance, args );
  7238 +
  7239 + if ( methodValue !== instance && methodValue !== undefined ) {
  7240 + returnValue = methodValue && methodValue.jquery ?
  7241 + returnValue.pushStack( methodValue.get() ) :
  7242 + methodValue;
  7243 + return false;
  7244 + }
  7245 + } );
  7246 + }
  7247 + } else {
  7248 +
  7249 + // Allow multiple hashes to be passed on init
  7250 + if ( args.length ) {
  7251 + options = $.widget.extend.apply( null, [ options ].concat( args ) );
  7252 + }
  7253 +
  7254 + this.each( function() {
  7255 + var type = $( this ).attr( "type" );
  7256 + var name = type !== "checkbox" && type !== "radio" ? "button" : "checkboxradio";
  7257 + var instance = $.data( this, "ui-" + name );
  7258 +
  7259 + if ( instance ) {
  7260 + instance.option( options || {} );
  7261 + if ( instance._init ) {
  7262 + instance._init();
  7263 + }
  7264 + } else {
  7265 + if ( name === "button" ) {
  7266 + orig.call( $( this ), options );
  7267 + return;
  7268 + }
  7269 +
  7270 + $( this ).checkboxradio( $.extend( { icon: false }, options ) );
  7271 + }
7134 } ); 7272 } );
7135 } 7273 }
7136 - return this.checkboxradio.apply( this, arguments ); 7274 +
  7275 + return returnValue;
7137 }; 7276 };
7138 } )( $.fn.button ); 7277 } )( $.fn.button );
7139 7278
@@ -7160,10 +7299,9 @@ if ( $.uiBackCompat !== false ) { @@ -7160,10 +7299,9 @@ if ( $.uiBackCompat !== false ) {
7160 var widgetsButton = $.ui.button; 7299 var widgetsButton = $.ui.button;
7161 7300
7162 7301
7163 -// jscs:disable maximumLineLength  
7164 -/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */ 7302 +/* eslint-disable max-len, camelcase */
7165 /*! 7303 /*!
7166 - * jQuery UI Datepicker 1.12.1 7304 + * jQuery UI Datepicker 1.13.2
7167 * http://jqueryui.com 7305 * http://jqueryui.com
7168 * 7306 *
7169 * Copyright jQuery Foundation and other contributors 7307 * Copyright jQuery Foundation and other contributors
@@ -7181,8 +7319,7 @@ var widgetsButton = $.ui.button; @@ -7181,8 +7319,7 @@ var widgetsButton = $.ui.button;
7181 //>>css.theme: ../../themes/base/theme.css 7319 //>>css.theme: ../../themes/base/theme.css
7182 7320
7183 7321
7184 -  
7185 -$.extend( $.ui, { datepicker: { version: "1.12.1" } } ); 7322 +$.extend( $.ui, { datepicker: { version: "1.13.2" } } );
7186 7323
7187 var datepicker_instActive; 7324 var datepicker_instActive;
7188 7325
@@ -7210,6 +7347,7 @@ function datepicker_getZindex( elem ) { @@ -7210,6 +7347,7 @@ function datepicker_getZindex( elem ) {
7210 7347
7211 return 0; 7348 return 0;
7212 } 7349 }
  7350 +
7213 /* Date picker manager. 7351 /* Date picker manager.
7214 Use the singleton instance of this class, $.datepicker, to interact with the date picker. 7352 Use the singleton instance of this class, $.datepicker, to interact with the date picker.
7215 Settings for (groups of) date pickers are maintained in an instance object, 7353 Settings for (groups of) date pickers are maintained in an instance object,
@@ -7236,18 +7374,20 @@ function Datepicker() { @@ -7236,18 +7374,20 @@ function Datepicker() {
7236 prevText: "Prev", // Display text for previous month link 7374 prevText: "Prev", // Display text for previous month link
7237 nextText: "Next", // Display text for next month link 7375 nextText: "Next", // Display text for next month link
7238 currentText: "Today", // Display text for current month link 7376 currentText: "Today", // Display text for current month link
7239 - monthNames: [ "January","February","March","April","May","June",  
7240 - "July","August","September","October","November","December" ], // Names of months for drop-down and formatting 7377 + monthNames: [ "January", "February", "March", "April", "May", "June",
  7378 + "July", "August", "September", "October", "November", "December" ], // Names of months for drop-down and formatting
7241 monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting 7379 monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting
7242 dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting 7380 dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting
7243 dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting 7381 dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting
7244 - dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday 7382 + dayNamesMin: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], // Column headings for days starting at Sunday
7245 weekHeader: "Wk", // Column header for week of the year 7383 weekHeader: "Wk", // Column header for week of the year
7246 dateFormat: "mm/dd/yy", // See format options on parseDate 7384 dateFormat: "mm/dd/yy", // See format options on parseDate
7247 firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... 7385 firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
7248 isRTL: false, // True if right-to-left language, false if left-to-right 7386 isRTL: false, // True if right-to-left language, false if left-to-right
7249 showMonthAfterYear: false, // True if the year select precedes month, false for month then year 7387 showMonthAfterYear: false, // True if the year select precedes month, false for month then year
7250 - yearSuffix: "" // Additional text to append to the year in the month headers 7388 + yearSuffix: "", // Additional text to append to the year in the month headers,
  7389 + selectMonthLabel: "Select month", // Invisible label for month selector
  7390 + selectYearLabel: "Select year" // Invisible label for year selector
7251 }; 7391 };
7252 this._defaults = { // Global defaults for all the date picker instances 7392 this._defaults = { // Global defaults for all the date picker instances
7253 showOn: "focus", // "focus" for popup on focus, 7393 showOn: "focus", // "focus" for popup on focus,
@@ -7288,6 +7428,7 @@ function Datepicker() { @@ -7288,6 +7428,7 @@ function Datepicker() {
7288 onSelect: null, // Define a callback function when a date is selected 7428 onSelect: null, // Define a callback function when a date is selected
7289 onChangeMonthYear: null, // Define a callback function when the month or year is changed 7429 onChangeMonthYear: null, // Define a callback function when the month or year is changed
7290 onClose: null, // Define a callback function when the datepicker is closed 7430 onClose: null, // Define a callback function when the datepicker is closed
  7431 + onUpdateDatepicker: null, // Define a callback function when the datepicker is updated
7291 numberOfMonths: 1, // Number of months to show at a time 7432 numberOfMonths: 1, // Number of months to show at a time
7292 showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) 7433 showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
7293 stepMonths: 1, // Number of months to step back/forward 7434 stepMonths: 1, // Number of months to step back/forward
@@ -7306,6 +7447,7 @@ function Datepicker() { @@ -7306,6 +7447,7 @@ function Datepicker() {
7306 } 7447 }
7307 7448
7308 $.extend( Datepicker.prototype, { 7449 $.extend( Datepicker.prototype, {
  7450 +
7309 /* Class name added to elements to indicate already configured with a date picker. */ 7451 /* Class name added to elements to indicate already configured with a date picker. */
7310 markerClassName: "hasDatepicker", 7452 markerClassName: "hasDatepicker",
7311 7453
@@ -7388,7 +7530,9 @@ $.extend( Datepicker.prototype, { @@ -7388,7 +7530,9 @@ $.extend( Datepicker.prototype, {
7388 inst.append.remove(); 7530 inst.append.remove();
7389 } 7531 }
7390 if ( appendText ) { 7532 if ( appendText ) {
7391 - inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" ); 7533 + inst.append = $( "<span>" )
  7534 + .addClass( this._appendClass )
  7535 + .text( appendText );
7392 input[ isRTL ? "before" : "after" ]( inst.append ); 7536 input[ isRTL ? "before" : "after" ]( inst.append );
7393 } 7537 }
7394 7538
@@ -7405,12 +7549,32 @@ $.extend( Datepicker.prototype, { @@ -7405,12 +7549,32 @@ $.extend( Datepicker.prototype, {
7405 if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked 7549 if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked
7406 buttonText = this._get( inst, "buttonText" ); 7550 buttonText = this._get( inst, "buttonText" );
7407 buttonImage = this._get( inst, "buttonImage" ); 7551 buttonImage = this._get( inst, "buttonImage" );
7408 - inst.trigger = $( this._get( inst, "buttonImageOnly" ) ?  
7409 - $( "<img/>" ).addClass( this._triggerClass ).  
7410 - attr( { src: buttonImage, alt: buttonText, title: buttonText } ) :  
7411 - $( "<button type='button'></button>" ).addClass( this._triggerClass ).  
7412 - html( !buttonImage ? buttonText : $( "<img/>" ).attr(  
7413 - { src:buttonImage, alt:buttonText, title:buttonText } ) ) ); 7552 +
  7553 + if ( this._get( inst, "buttonImageOnly" ) ) {
  7554 + inst.trigger = $( "<img>" )
  7555 + .addClass( this._triggerClass )
  7556 + .attr( {
  7557 + src: buttonImage,
  7558 + alt: buttonText,
  7559 + title: buttonText
  7560 + } );
  7561 + } else {
  7562 + inst.trigger = $( "<button type='button'>" )
  7563 + .addClass( this._triggerClass );
  7564 + if ( buttonImage ) {
  7565 + inst.trigger.html(
  7566 + $( "<img>" )
  7567 + .attr( {
  7568 + src: buttonImage,
  7569 + alt: buttonText,
  7570 + title: buttonText
  7571 + } )
  7572 + );
  7573 + } else {
  7574 + inst.trigger.text( buttonText );
  7575 + }
  7576 + }
  7577 +
7414 input[ isRTL ? "before" : "after" ]( inst.trigger ); 7578 input[ isRTL ? "before" : "after" ]( inst.trigger );
7415 inst.trigger.on( "click", function() { 7579 inst.trigger.on( "click", function() {
7416 if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) { 7580 if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) {
@@ -7556,6 +7720,7 @@ $.extend( Datepicker.prototype, { @@ -7556,6 +7720,7 @@ $.extend( Datepicker.prototype, {
7556 7720
7557 if ( datepicker_instActive === inst ) { 7721 if ( datepicker_instActive === inst ) {
7558 datepicker_instActive = null; 7722 datepicker_instActive = null;
  7723 + this._curInst = null;
7559 } 7724 }
7560 }, 7725 },
7561 7726
@@ -7575,7 +7740,9 @@ $.extend( Datepicker.prototype, { @@ -7575,7 +7740,9 @@ $.extend( Datepicker.prototype, {
7575 if ( nodeName === "input" ) { 7740 if ( nodeName === "input" ) {
7576 target.disabled = false; 7741 target.disabled = false;
7577 inst.trigger.filter( "button" ). 7742 inst.trigger.filter( "button" ).
7578 - each( function() { this.disabled = false; } ).end(). 7743 + each( function() {
  7744 + this.disabled = false;
  7745 + } ).end().
7579 filter( "img" ).css( { opacity: "1.0", cursor: "" } ); 7746 filter( "img" ).css( { opacity: "1.0", cursor: "" } );
7580 } else if ( nodeName === "div" || nodeName === "span" ) { 7747 } else if ( nodeName === "div" || nodeName === "span" ) {
7581 inline = $target.children( "." + this._inlineClass ); 7748 inline = $target.children( "." + this._inlineClass );
@@ -7584,7 +7751,11 @@ $.extend( Datepicker.prototype, { @@ -7584,7 +7751,11 @@ $.extend( Datepicker.prototype, {
7584 prop( "disabled", false ); 7751 prop( "disabled", false );
7585 } 7752 }
7586 this._disabledInputs = $.map( this._disabledInputs, 7753 this._disabledInputs = $.map( this._disabledInputs,
7587 - function( value ) { return ( value === target ? null : value ); } ); // delete entry 7754 +
  7755 + // Delete entry
  7756 + function( value ) {
  7757 + return ( value === target ? null : value );
  7758 + } );
7588 }, 7759 },
7589 7760
7590 /* Disable the date picker to a jQuery selection. 7761 /* Disable the date picker to a jQuery selection.
@@ -7603,7 +7774,9 @@ $.extend( Datepicker.prototype, { @@ -7603,7 +7774,9 @@ $.extend( Datepicker.prototype, {
7603 if ( nodeName === "input" ) { 7774 if ( nodeName === "input" ) {
7604 target.disabled = true; 7775 target.disabled = true;
7605 inst.trigger.filter( "button" ). 7776 inst.trigger.filter( "button" ).
7606 - each( function() { this.disabled = true; } ).end(). 7777 + each( function() {
  7778 + this.disabled = true;
  7779 + } ).end().
7607 filter( "img" ).css( { opacity: "0.5", cursor: "default" } ); 7780 filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
7608 } else if ( nodeName === "div" || nodeName === "span" ) { 7781 } else if ( nodeName === "div" || nodeName === "span" ) {
7609 inline = $target.children( "." + this._inlineClass ); 7782 inline = $target.children( "." + this._inlineClass );
@@ -7612,7 +7785,11 @@ $.extend( Datepicker.prototype, { @@ -7612,7 +7785,11 @@ $.extend( Datepicker.prototype, {
7612 prop( "disabled", true ); 7785 prop( "disabled", true );
7613 } 7786 }
7614 this._disabledInputs = $.map( this._disabledInputs, 7787 this._disabledInputs = $.map( this._disabledInputs,
7615 - function( value ) { return ( value === target ? null : value ); } ); // delete entry 7788 +
  7789 + // Delete entry
  7790 + function( value ) {
  7791 + return ( value === target ? null : value );
  7792 + } );
7616 this._disabledInputs[ this._disabledInputs.length ] = target; 7793 this._disabledInputs[ this._disabledInputs.length ] = target;
7617 }, 7794 },
7618 7795
@@ -7640,8 +7817,7 @@ $.extend( Datepicker.prototype, { @@ -7640,8 +7817,7 @@ $.extend( Datepicker.prototype, {
7640 _getInst: function( target ) { 7817 _getInst: function( target ) {
7641 try { 7818 try {
7642 return $.data( target, "datepicker" ); 7819 return $.data( target, "datepicker" );
7643 - }  
7644 - catch ( err ) { 7820 + } catch ( err ) {
7645 throw "Missing instance data for this datepicker"; 7821 throw "Missing instance data for this datepicker";
7646 } 7822 }
7647 }, 7823 },
@@ -7874,8 +8050,7 @@ $.extend( Datepicker.prototype, { @@ -7874,8 +8050,7 @@ $.extend( Datepicker.prototype, {
7874 $.datepicker._updateAlternate( inst ); 8050 $.datepicker._updateAlternate( inst );
7875 $.datepicker._updateDatepicker( inst ); 8051 $.datepicker._updateDatepicker( inst );
7876 } 8052 }
7877 - }  
7878 - catch ( err ) { 8053 + } catch ( err ) {
7879 } 8054 }
7880 } 8055 }
7881 return true; 8056 return true;
@@ -7980,7 +8155,8 @@ $.extend( Datepicker.prototype, { @@ -7980,7 +8155,8 @@ $.extend( Datepicker.prototype, {
7980 numMonths = this._getNumberOfMonths( inst ), 8155 numMonths = this._getNumberOfMonths( inst ),
7981 cols = numMonths[ 1 ], 8156 cols = numMonths[ 1 ],
7982 width = 17, 8157 width = 17,
7983 - activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ); 8158 + activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ),
  8159 + onUpdateDatepicker = $.datepicker._get( inst, "onUpdateDatepicker" );
7984 8160
7985 if ( activeCell.length > 0 ) { 8161 if ( activeCell.length > 0 ) {
7986 datepicker_handleMouseover.apply( activeCell.get( 0 ) ); 8162 datepicker_handleMouseover.apply( activeCell.get( 0 ) );
@@ -8006,11 +8182,15 @@ $.extend( Datepicker.prototype, { @@ -8006,11 +8182,15 @@ $.extend( Datepicker.prototype, {
8006 8182
8007 //assure that inst.yearshtml didn't change. 8183 //assure that inst.yearshtml didn't change.
8008 if ( origyearshtml === inst.yearshtml && inst.yearshtml ) { 8184 if ( origyearshtml === inst.yearshtml && inst.yearshtml ) {
8009 - inst.dpDiv.find( "select.ui-datepicker-year:first" ).replaceWith( inst.yearshtml ); 8185 + inst.dpDiv.find( "select.ui-datepicker-year" ).first().replaceWith( inst.yearshtml );
8010 } 8186 }
8011 origyearshtml = inst.yearshtml = null; 8187 origyearshtml = inst.yearshtml = null;
8012 }, 0 ); 8188 }, 0 );
8013 } 8189 }
  8190 +
  8191 + if ( onUpdateDatepicker ) {
  8192 + onUpdateDatepicker.apply( ( inst.input ? inst.input[ 0 ] : null ), [ inst ] );
  8193 + }
8014 }, 8194 },
8015 8195
8016 // #6694 - don't focus the input if it's already focused 8196 // #6694 - don't focus the input if it's already focused
@@ -8048,7 +8228,7 @@ $.extend( Datepicker.prototype, { @@ -8048,7 +8228,7 @@ $.extend( Datepicker.prototype, {
8048 inst = this._getInst( obj ), 8228 inst = this._getInst( obj ),
8049 isRTL = this._get( inst, "isRTL" ); 8229 isRTL = this._get( inst, "isRTL" );
8050 8230
8051 - while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) { 8231 + while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos.hidden( obj ) ) ) {
8052 obj = obj[ isRTL ? "previousSibling" : "nextSibling" ]; 8232 obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
8053 } 8233 }
8054 8234
@@ -8136,9 +8316,7 @@ $.extend( Datepicker.prototype, { @@ -8136,9 +8316,7 @@ $.extend( Datepicker.prototype, {
8136 if ( this._isDisabledDatepicker( target[ 0 ] ) ) { 8316 if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
8137 return; 8317 return;
8138 } 8318 }
8139 - this._adjustInstDate( inst, offset +  
8140 - ( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning  
8141 - period ); 8319 + this._adjustInstDate( inst, offset, period );
8142 this._updateDatepicker( inst ); 8320 this._updateDatepicker( inst );
8143 }, 8321 },
8144 8322
@@ -8185,7 +8363,7 @@ $.extend( Datepicker.prototype, { @@ -8185,7 +8363,7 @@ $.extend( Datepicker.prototype, {
8185 } 8363 }
8186 8364
8187 inst = this._getInst( target[ 0 ] ); 8365 inst = this._getInst( target[ 0 ] );
8188 - inst.selectedDay = inst.currentDay = $( "a", td ).html(); 8366 + inst.selectedDay = inst.currentDay = parseInt( $( "a", td ).attr( "data-date" ) );
8189 inst.selectedMonth = inst.currentMonth = month; 8367 inst.selectedMonth = inst.currentMonth = month;
8190 inst.selectedYear = inst.currentYear = year; 8368 inst.selectedYear = inst.currentYear = year;
8191 this._selectDate( id, this._formatDate( inst, 8369 this._selectDate( id, this._formatDate( inst,
@@ -8238,7 +8416,7 @@ $.extend( Datepicker.prototype, { @@ -8238,7 +8416,7 @@ $.extend( Datepicker.prototype, {
8238 altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" ); 8416 altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" );
8239 date = this._getDate( inst ); 8417 date = this._getDate( inst );
8240 dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) ); 8418 dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) );
8241 - $( altField ).val( dateStr ); 8419 + $( document ).find( altField ).val( dateStr );
8242 } 8420 }
8243 }, 8421 },
8244 8422
@@ -8677,8 +8855,7 @@ $.extend( Datepicker.prototype, { @@ -8677,8 +8855,7 @@ $.extend( Datepicker.prototype, {
8677 try { 8855 try {
8678 return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ), 8856 return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
8679 offset, $.datepicker._getFormatConfig( inst ) ); 8857 offset, $.datepicker._getFormatConfig( inst ) );
8680 - }  
8681 - catch ( e ) { 8858 + } catch ( e ) {
8682 8859
8683 // Ignore 8860 // Ignore
8684 } 8861 }
@@ -8852,32 +9029,104 @@ $.extend( Datepicker.prototype, { @@ -8852,32 +9029,104 @@ $.extend( Datepicker.prototype, {
8852 this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ), 9029 this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
8853 this._getFormatConfig( inst ) ) ); 9030 this._getFormatConfig( inst ) ) );
8854 9031
8855 - prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ?  
8856 - "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +  
8857 - " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" :  
8858 - ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) ); 9032 + if ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) {
  9033 + prev = $( "<a>" )
  9034 + .attr( {
  9035 + "class": "ui-datepicker-prev ui-corner-all",
  9036 + "data-handler": "prev",
  9037 + "data-event": "click",
  9038 + title: prevText
  9039 + } )
  9040 + .append(
  9041 + $( "<span>" )
  9042 + .addClass( "ui-icon ui-icon-circle-triangle-" +
  9043 + ( isRTL ? "e" : "w" ) )
  9044 + .text( prevText )
  9045 + )[ 0 ].outerHTML;
  9046 + } else if ( hideIfNoPrevNext ) {
  9047 + prev = "";
  9048 + } else {
  9049 + prev = $( "<a>" )
  9050 + .attr( {
  9051 + "class": "ui-datepicker-prev ui-corner-all ui-state-disabled",
  9052 + title: prevText
  9053 + } )
  9054 + .append(
  9055 + $( "<span>" )
  9056 + .addClass( "ui-icon ui-icon-circle-triangle-" +
  9057 + ( isRTL ? "e" : "w" ) )
  9058 + .text( prevText )
  9059 + )[ 0 ].outerHTML;
  9060 + }
8859 9061
8860 nextText = this._get( inst, "nextText" ); 9062 nextText = this._get( inst, "nextText" );
8861 nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText, 9063 nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
8862 this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ), 9064 this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
8863 this._getFormatConfig( inst ) ) ); 9065 this._getFormatConfig( inst ) ) );
8864 9066
8865 - next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ?  
8866 - "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +  
8867 - " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" :  
8868 - ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) ); 9067 + if ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) {
  9068 + next = $( "<a>" )
  9069 + .attr( {
  9070 + "class": "ui-datepicker-next ui-corner-all",
  9071 + "data-handler": "next",
  9072 + "data-event": "click",
  9073 + title: nextText
  9074 + } )
  9075 + .append(
  9076 + $( "<span>" )
  9077 + .addClass( "ui-icon ui-icon-circle-triangle-" +
  9078 + ( isRTL ? "w" : "e" ) )
  9079 + .text( nextText )
  9080 + )[ 0 ].outerHTML;
  9081 + } else if ( hideIfNoPrevNext ) {
  9082 + next = "";
  9083 + } else {
  9084 + next = $( "<a>" )
  9085 + .attr( {
  9086 + "class": "ui-datepicker-next ui-corner-all ui-state-disabled",
  9087 + title: nextText
  9088 + } )
  9089 + .append(
  9090 + $( "<span>" )
  9091 + .attr( "class", "ui-icon ui-icon-circle-triangle-" +
  9092 + ( isRTL ? "w" : "e" ) )
  9093 + .text( nextText )
  9094 + )[ 0 ].outerHTML;
  9095 + }
8869 9096
8870 currentText = this._get( inst, "currentText" ); 9097 currentText = this._get( inst, "currentText" );
8871 gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today ); 9098 gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
8872 currentText = ( !navigationAsDateFormat ? currentText : 9099 currentText = ( !navigationAsDateFormat ? currentText :
8873 this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) ); 9100 this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
8874 9101
8875 - controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +  
8876 - this._get( inst, "closeText" ) + "</button>" : "" );  
8877 -  
8878 - buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) +  
8879 - ( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +  
8880 - ">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : ""; 9102 + controls = "";
  9103 + if ( !inst.inline ) {
  9104 + controls = $( "<button>" )
  9105 + .attr( {
  9106 + type: "button",
  9107 + "class": "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
  9108 + "data-handler": "hide",
  9109 + "data-event": "click"
  9110 + } )
  9111 + .text( this._get( inst, "closeText" ) )[ 0 ].outerHTML;
  9112 + }
  9113 +
  9114 + buttonPanel = "";
  9115 + if ( showButtonPanel ) {
  9116 + buttonPanel = $( "<div class='ui-datepicker-buttonpane ui-widget-content'>" )
  9117 + .append( isRTL ? controls : "" )
  9118 + .append( this._isInRange( inst, gotoDate ) ?
  9119 + $( "<button>" )
  9120 + .attr( {
  9121 + type: "button",
  9122 + "class": "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all",
  9123 + "data-handler": "today",
  9124 + "data-event": "click"
  9125 + } )
  9126 + .text( currentText ) :
  9127 + "" )
  9128 + .append( isRTL ? "" : controls )[ 0 ].outerHTML;
  9129 + }
8881 9130
8882 firstDay = parseInt( this._get( inst, "firstDay" ), 10 ); 9131 firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
8883 firstDay = ( isNaN( firstDay ) ? 0 : firstDay ); 9132 firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
@@ -8965,7 +9214,9 @@ $.extend( Datepicker.prototype, { @@ -8965,7 +9214,9 @@ $.extend( Datepicker.prototype, {
8965 ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) + 9214 ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
8966 ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day 9215 ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
8967 ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months 9216 ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
8968 - "' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date 9217 + "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
  9218 + "' data-date='" + printDate.getDate() + // store date as data
  9219 + "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
8969 printDate.setDate( printDate.getDate() + 1 ); 9220 printDate.setDate( printDate.getDate() + 1 );
8970 printDate = this._daylightSavingAdjust( printDate ); 9221 printDate = this._daylightSavingAdjust( printDate );
8971 } 9222 }
@@ -8995,6 +9246,8 @@ $.extend( Datepicker.prototype, { @@ -8995,6 +9246,8 @@ $.extend( Datepicker.prototype, {
8995 changeMonth = this._get( inst, "changeMonth" ), 9246 changeMonth = this._get( inst, "changeMonth" ),
8996 changeYear = this._get( inst, "changeYear" ), 9247 changeYear = this._get( inst, "changeYear" ),
8997 showMonthAfterYear = this._get( inst, "showMonthAfterYear" ), 9248 showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
  9249 + selectMonthLabel = this._get( inst, "selectMonthLabel" ),
  9250 + selectYearLabel = this._get( inst, "selectYearLabel" ),
8998 html = "<div class='ui-datepicker-title'>", 9251 html = "<div class='ui-datepicker-title'>",
8999 monthHtml = ""; 9252 monthHtml = "";
9000 9253
@@ -9004,7 +9257,7 @@ $.extend( Datepicker.prototype, { @@ -9004,7 +9257,7 @@ $.extend( Datepicker.prototype, {
9004 } else { 9257 } else {
9005 inMinYear = ( minDate && minDate.getFullYear() === drawYear ); 9258 inMinYear = ( minDate && minDate.getFullYear() === drawYear );
9006 inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear ); 9259 inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
9007 - monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>"; 9260 + monthHtml += "<select class='ui-datepicker-month' aria-label='" + selectMonthLabel + "' data-handler='selectMonth' data-event='change'>";
9008 for ( month = 0; month < 12; month++ ) { 9261 for ( month = 0; month < 12; month++ ) {
9009 if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) { 9262 if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
9010 monthHtml += "<option value='" + month + "'" + 9263 monthHtml += "<option value='" + month + "'" +
@@ -9039,7 +9292,7 @@ $.extend( Datepicker.prototype, { @@ -9039,7 +9292,7 @@ $.extend( Datepicker.prototype, {
9039 endYear = Math.max( year, determineYear( years[ 1 ] || "" ) ); 9292 endYear = Math.max( year, determineYear( years[ 1 ] || "" ) );
9040 year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year ); 9293 year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year );
9041 endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear ); 9294 endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear );
9042 - inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>"; 9295 + inst.yearshtml += "<select class='ui-datepicker-year' aria-label='" + selectYearLabel + "' data-handler='selectYear' data-event='change'>";
9043 for ( ; year <= endYear; year++ ) { 9296 for ( ; year <= endYear; year++ ) {
9044 inst.yearshtml += "<option value='" + year + "'" + 9297 inst.yearshtml += "<option value='" + year + "'" +
9045 ( year === drawYear ? " selected='selected'" : "" ) + 9298 ( year === drawYear ? " selected='selected'" : "" ) +
@@ -9251,28 +9504,29 @@ $.fn.datepicker = function( options ) { @@ -9251,28 +9504,29 @@ $.fn.datepicker = function( options ) {
9251 apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); 9504 apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
9252 } 9505 }
9253 return this.each( function() { 9506 return this.each( function() {
9254 - typeof options === "string" ?  
9255 - $.datepicker[ "_" + options + "Datepicker" ].  
9256 - apply( $.datepicker, [ this ].concat( otherArgs ) ) : 9507 + if ( typeof options === "string" ) {
  9508 + $.datepicker[ "_" + options + "Datepicker" ]
  9509 + .apply( $.datepicker, [ this ].concat( otherArgs ) );
  9510 + } else {
9257 $.datepicker._attachDatepicker( this, options ); 9511 $.datepicker._attachDatepicker( this, options );
  9512 + }
9258 } ); 9513 } );
9259 }; 9514 };
9260 9515
9261 $.datepicker = new Datepicker(); // singleton instance 9516 $.datepicker = new Datepicker(); // singleton instance
9262 $.datepicker.initialized = false; 9517 $.datepicker.initialized = false;
9263 $.datepicker.uuid = new Date().getTime(); 9518 $.datepicker.uuid = new Date().getTime();
9264 -$.datepicker.version = "1.12.1"; 9519 +$.datepicker.version = "1.13.2";
9265 9520
9266 var widgetsDatepicker = $.datepicker; 9521 var widgetsDatepicker = $.datepicker;
9267 9522
9268 9523
9269 9524
9270 -  
9271 // This file is deprecated 9525 // This file is deprecated
9272 var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); 9526 var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
9273 9527
9274 /*! 9528 /*!
9275 - * jQuery UI Mouse 1.12.1 9529 + * jQuery UI Mouse 1.13.2
9276 * http://jqueryui.com 9530 * http://jqueryui.com
9277 * 9531 *
9278 * Copyright jQuery Foundation and other contributors 9532 * Copyright jQuery Foundation and other contributors
@@ -9286,14 +9540,13 @@ var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); @@ -9286,14 +9540,13 @@ var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
9286 //>>docs: http://api.jqueryui.com/mouse/ 9540 //>>docs: http://api.jqueryui.com/mouse/
9287 9541
9288 9542
9289 -  
9290 var mouseHandled = false; 9543 var mouseHandled = false;
9291 $( document ).on( "mouseup", function() { 9544 $( document ).on( "mouseup", function() {
9292 mouseHandled = false; 9545 mouseHandled = false;
9293 } ); 9546 } );
9294 9547
9295 var widgetsMouse = $.widget( "ui.mouse", { 9548 var widgetsMouse = $.widget( "ui.mouse", {
9296 - version: "1.12.1", 9549 + version: "1.13.2",
9297 options: { 9550 options: {
9298 cancel: "input, textarea, button, select, option", 9551 cancel: "input, textarea, button, select, option",
9299 distance: 1, 9552 distance: 1,
@@ -9338,7 +9591,9 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, { @@ -9338,7 +9591,9 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, {
9338 this._mouseMoved = false; 9591 this._mouseMoved = false;
9339 9592
9340 // We may have missed mouseup (out of window) 9593 // We may have missed mouseup (out of window)
9341 - ( this._mouseStarted && this._mouseUp( event ) ); 9594 + if ( this._mouseStarted ) {
  9595 + this._mouseUp( event );
  9596 + }
9342 9597
9343 this._mouseDownEvent = event; 9598 this._mouseDownEvent = event;
9344 9599
@@ -9431,7 +9686,11 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, { @@ -9431,7 +9686,11 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, {
9431 if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) { 9686 if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
9432 this._mouseStarted = 9687 this._mouseStarted =
9433 ( this._mouseStart( this._mouseDownEvent, event ) !== false ); 9688 ( this._mouseStart( this._mouseDownEvent, event ) !== false );
9434 - ( this._mouseStarted ? this._mouseDrag( event ) : this._mouseUp( event ) ); 9689 + if ( this._mouseStarted ) {
  9690 + this._mouseDrag( event );
  9691 + } else {
  9692 + this._mouseUp( event );
  9693 + }
9435 } 9694 }
9436 9695
9437 return !this._mouseStarted; 9696 return !this._mouseStarted;
@@ -9478,12 +9737,13 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, { @@ -9478,12 +9737,13 @@ var widgetsMouse = $.widget( &quot;ui.mouse&quot;, {
9478 _mouseStart: function( /* event */ ) {}, 9737 _mouseStart: function( /* event */ ) {},
9479 _mouseDrag: function( /* event */ ) {}, 9738 _mouseDrag: function( /* event */ ) {},
9480 _mouseStop: function( /* event */ ) {}, 9739 _mouseStop: function( /* event */ ) {},
9481 - _mouseCapture: function( /* event */ ) { return true; } 9740 + _mouseCapture: function( /* event */ ) {
  9741 + return true;
  9742 + }
9482 } ); 9743 } );
9483 9744
9484 9745
9485 9746
9486 -  
9487 // $.ui.plugin is deprecated. Use $.widget() extensions instead. 9747 // $.ui.plugin is deprecated. Use $.widget() extensions instead.
9488 var plugin = $.ui.plugin = { 9748 var plugin = $.ui.plugin = {
9489 add: function( module, option, set ) { 9749 add: function( module, option, set ) {
@@ -9528,7 +9788,7 @@ var safeBlur = $.ui.safeBlur = function( element ) { @@ -9528,7 +9788,7 @@ var safeBlur = $.ui.safeBlur = function( element ) {
9528 9788
9529 9789
9530 /*! 9790 /*!
9531 - * jQuery UI Draggable 1.12.1 9791 + * jQuery UI Draggable 1.13.2
9532 * http://jqueryui.com 9792 * http://jqueryui.com
9533 * 9793 *
9534 * Copyright jQuery Foundation and other contributors 9794 * Copyright jQuery Foundation and other contributors
@@ -9544,9 +9804,8 @@ var safeBlur = $.ui.safeBlur = function( element ) { @@ -9544,9 +9804,8 @@ var safeBlur = $.ui.safeBlur = function( element ) {
9544 //>>css.structure: ../../themes/base/draggable.css 9804 //>>css.structure: ../../themes/base/draggable.css
9545 9805
9546 9806
9547 -  
9548 $.widget( "ui.draggable", $.ui.mouse, { 9807 $.widget( "ui.draggable", $.ui.mouse, {
9549 - version: "1.12.1", 9808 + version: "1.13.2",
9550 widgetEventPrefix: "drag", 9809 widgetEventPrefix: "drag",
9551 options: { 9810 options: {
9552 addClasses: true, 9811 addClasses: true,
@@ -9710,7 +9969,9 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, { @@ -9710,7 +9969,9 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, {
9710 this.originalPageY = event.pageY; 9969 this.originalPageY = event.pageY;
9711 9970
9712 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied 9971 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
9713 - ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) ); 9972 + if ( o.cursorAt ) {
  9973 + this._adjustOffsetFromHelper( o.cursorAt );
  9974 + }
9714 9975
9715 //Set a containment if given in the options 9976 //Set a containment if given in the options
9716 this._setContainment(); 9977 this._setContainment();
@@ -9805,7 +10066,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, { @@ -9805,7 +10066,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, {
9805 10066
9806 if ( ( this.options.revert === "invalid" && !dropped ) || 10067 if ( ( this.options.revert === "invalid" && !dropped ) ||
9807 ( this.options.revert === "valid" && dropped ) || 10068 ( this.options.revert === "valid" && dropped ) ||
9808 - this.options.revert === true || ( $.isFunction( this.options.revert ) && 10069 + this.options.revert === true || ( typeof this.options.revert === "function" &&
9809 this.options.revert.call( this.element, dropped ) ) 10070 this.options.revert.call( this.element, dropped ) )
9810 ) { 10071 ) {
9811 $( this.helper ).animate( 10072 $( this.helper ).animate(
@@ -9877,7 +10138,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, { @@ -9877,7 +10138,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, {
9877 _createHelper: function( event ) { 10138 _createHelper: function( event ) {
9878 10139
9879 var o = this.options, 10140 var o = this.options,
9880 - helperIsFunction = $.isFunction( o.helper ), 10141 + helperIsFunction = typeof o.helper === "function",
9881 helper = helperIsFunction ? 10142 helper = helperIsFunction ?
9882 $( o.helper.apply( this.element[ 0 ], [ event ] ) ) : 10143 $( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
9883 ( o.helper === "clone" ? 10144 ( o.helper === "clone" ?
@@ -9916,7 +10177,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, { @@ -9916,7 +10177,7 @@ $.widget( &quot;ui.draggable&quot;, $.ui.mouse, {
9916 if ( typeof obj === "string" ) { 10177 if ( typeof obj === "string" ) {
9917 obj = obj.split( " " ); 10178 obj = obj.split( " " );
9918 } 10179 }
9919 - if ( $.isArray( obj ) ) { 10180 + if ( Array.isArray( obj ) ) {
9920 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; 10181 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
9921 } 10182 }
9922 if ( "left" in obj ) { 10183 if ( "left" in obj ) {
@@ -10625,12 +10886,13 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;snap&quot;, { @@ -10625,12 +10886,13 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;snap&quot;, {
10625 !$.contains( inst.snapElements[ i ].item.ownerDocument, 10886 !$.contains( inst.snapElements[ i ].item.ownerDocument,
10626 inst.snapElements[ i ].item ) ) { 10887 inst.snapElements[ i ].item ) ) {
10627 if ( inst.snapElements[ i ].snapping ) { 10888 if ( inst.snapElements[ i ].snapping ) {
10628 - ( inst.options.snap.release && 10889 + if ( inst.options.snap.release ) {
10629 inst.options.snap.release.call( 10890 inst.options.snap.release.call(
10630 inst.element, 10891 inst.element,
10631 event, 10892 event,
10632 $.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } ) 10893 $.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
10633 - ) ); 10894 + );
  10895 + }
10634 } 10896 }
10635 inst.snapElements[ i ].snapping = false; 10897 inst.snapElements[ i ].snapping = false;
10636 continue; 10898 continue;
@@ -10701,13 +10963,14 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;snap&quot;, { @@ -10701,13 +10963,14 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;snap&quot;, {
10701 } 10963 }
10702 10964
10703 if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) { 10965 if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
10704 - ( inst.options.snap.snap && 10966 + if ( inst.options.snap.snap ) {
10705 inst.options.snap.snap.call( 10967 inst.options.snap.snap.call(
10706 inst.element, 10968 inst.element,
10707 event, 10969 event,
10708 $.extend( inst._uiHash(), { 10970 $.extend( inst._uiHash(), {
10709 snapItem: inst.snapElements[ i ].item 10971 snapItem: inst.snapElements[ i ].item
10710 - } ) ) ); 10972 + } ) );
  10973 + }
10711 } 10974 }
10712 inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first ); 10975 inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
10713 10976
@@ -10725,7 +10988,9 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;stack&quot;, { @@ -10725,7 +10988,9 @@ $.ui.plugin.add( &quot;draggable&quot;, &quot;stack&quot;, {
10725 ( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 ); 10988 ( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
10726 } ); 10989 } );
10727 10990
10728 - if ( !group.length ) { return; } 10991 + if ( !group.length ) {
  10992 + return;
  10993 + }
10729 10994
10730 min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0; 10995 min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
10731 $( group ).each( function( i ) { 10996 $( group ).each( function( i ) {
@@ -10758,7 +11023,7 @@ var widgetsDraggable = $.ui.draggable; @@ -10758,7 +11023,7 @@ var widgetsDraggable = $.ui.draggable;
10758 11023
10759 11024
10760 /*! 11025 /*!
10761 - * jQuery UI Resizable 1.12.1 11026 + * jQuery UI Resizable 1.13.2
10762 * http://jqueryui.com 11027 * http://jqueryui.com
10763 * 11028 *
10764 * Copyright jQuery Foundation and other contributors 11029 * Copyright jQuery Foundation and other contributors
@@ -10776,9 +11041,8 @@ var widgetsDraggable = $.ui.draggable; @@ -10776,9 +11041,8 @@ var widgetsDraggable = $.ui.draggable;
10776 //>>css.theme: ../../themes/base/theme.css 11041 //>>css.theme: ../../themes/base/theme.css
10777 11042
10778 11043
10779 -  
10780 $.widget( "ui.resizable", $.ui.mouse, { 11044 $.widget( "ui.resizable", $.ui.mouse, {
10781 - version: "1.12.1", 11045 + version: "1.13.2",
10782 widgetEventPrefix: "resize", 11046 widgetEventPrefix: "resize",
10783 options: { 11047 options: {
10784 alsoResize: false, 11048 alsoResize: false,
@@ -10833,9 +11097,15 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -10833,9 +11097,15 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
10833 // TODO: determine which cases actually cause this to happen 11097 // TODO: determine which cases actually cause this to happen
10834 // if the element doesn't have the scroll set, see if it's possible to 11098 // if the element doesn't have the scroll set, see if it's possible to
10835 // set the scroll 11099 // set the scroll
10836 - el[ scroll ] = 1;  
10837 - has = ( el[ scroll ] > 0 );  
10838 - el[ scroll ] = 0; 11100 + try {
  11101 + el[ scroll ] = 1;
  11102 + has = ( el[ scroll ] > 0 );
  11103 + el[ scroll ] = 0;
  11104 + } catch ( e ) {
  11105 +
  11106 + // `el` might be a string, then setting `scroll` will throw
  11107 + // an error in strict mode; ignore it.
  11108 + }
10839 return has; 11109 return has;
10840 }, 11110 },
10841 11111
@@ -10858,7 +11128,8 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -10858,7 +11128,8 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
10858 if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) { 11128 if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) {
10859 11129
10860 this.element.wrap( 11130 this.element.wrap(
10861 - $( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( { 11131 + $( "<div class='ui-wrapper'></div>" ).css( {
  11132 + overflow: "hidden",
10862 position: this.element.css( "position" ), 11133 position: this.element.css( "position" ),
10863 width: this.element.outerWidth(), 11134 width: this.element.outerWidth(),
10864 height: this.element.outerHeight(), 11135 height: this.element.outerHeight(),
@@ -10929,15 +11200,14 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -10929,15 +11200,14 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
10929 _destroy: function() { 11200 _destroy: function() {
10930 11201
10931 this._mouseDestroy(); 11202 this._mouseDestroy();
  11203 + this._addedHandles.remove();
10932 11204
10933 var wrapper, 11205 var wrapper,
10934 _destroy = function( exp ) { 11206 _destroy = function( exp ) {
10935 $( exp ) 11207 $( exp )
10936 .removeData( "resizable" ) 11208 .removeData( "resizable" )
10937 .removeData( "ui-resizable" ) 11209 .removeData( "ui-resizable" )
10938 - .off( ".resizable" )  
10939 - .find( ".ui-resizable-handle" )  
10940 - .remove(); 11210 + .off( ".resizable" );
10941 }; 11211 };
10942 11212
10943 // TODO: Unwrap at same DOM position 11213 // TODO: Unwrap at same DOM position
@@ -10968,6 +11238,9 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -10968,6 +11238,9 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
10968 this._removeHandles(); 11238 this._removeHandles();
10969 this._setupHandles(); 11239 this._setupHandles();
10970 break; 11240 break;
  11241 + case "aspectRatio":
  11242 + this._aspectRatio = !!value;
  11243 + break;
10971 default: 11244 default:
10972 break; 11245 break;
10973 } 11246 }
@@ -10989,6 +11262,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -10989,6 +11262,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
10989 } ); 11262 } );
10990 11263
10991 this._handles = $(); 11264 this._handles = $();
  11265 + this._addedHandles = $();
10992 if ( this.handles.constructor === String ) { 11266 if ( this.handles.constructor === String ) {
10993 11267
10994 if ( this.handles === "all" ) { 11268 if ( this.handles === "all" ) {
@@ -11000,7 +11274,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -11000,7 +11274,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
11000 11274
11001 for ( i = 0; i < n.length; i++ ) { 11275 for ( i = 0; i < n.length; i++ ) {
11002 11276
11003 - handle = $.trim( n[ i ] ); 11277 + handle = String.prototype.trim.call( n[ i ] );
11004 hname = "ui-resizable-" + handle; 11278 hname = "ui-resizable-" + handle;
11005 axis = $( "<div>" ); 11279 axis = $( "<div>" );
11006 this._addClass( axis, "ui-resizable-handle " + hname ); 11280 this._addClass( axis, "ui-resizable-handle " + hname );
@@ -11008,7 +11282,10 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -11008,7 +11282,10 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
11008 axis.css( { zIndex: o.zIndex } ); 11282 axis.css( { zIndex: o.zIndex } );
11009 11283
11010 this.handles[ handle ] = ".ui-resizable-" + handle; 11284 this.handles[ handle ] = ".ui-resizable-" + handle;
11011 - this.element.append( axis ); 11285 + if ( !this.element.children( this.handles[ handle ] ).length ) {
  11286 + this.element.append( axis );
  11287 + this._addedHandles = this._addedHandles.add( axis );
  11288 + }
11012 } 11289 }
11013 11290
11014 } 11291 }
@@ -11074,7 +11351,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -11074,7 +11351,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
11074 }, 11351 },
11075 11352
11076 _removeHandles: function() { 11353 _removeHandles: function() {
11077 - this._handles.remove(); 11354 + this._addedHandles.remove();
11078 }, 11355 },
11079 11356
11080 _mouseCapture: function( event ) { 11357 _mouseCapture: function( event ) {
@@ -11454,7 +11731,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -11454,7 +11731,7 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
11454 11731
11455 if ( this._helper ) { 11732 if ( this._helper ) {
11456 11733
11457 - this.helper = this.helper || $( "<div style='overflow:hidden;'></div>" ); 11734 + this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } );
11458 11735
11459 this._addClass( this.helper, this._helper ); 11736 this._addClass( this.helper, this._helper );
11460 this.helper.css( { 11737 this.helper.css( {
@@ -11511,7 +11788,9 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, { @@ -11511,7 +11788,9 @@ $.widget( &quot;ui.resizable&quot;, $.ui.mouse, {
11511 11788
11512 _propagate: function( n, event ) { 11789 _propagate: function( n, event ) {
11513 $.ui.plugin.call( this, n, [ event, this.ui() ] ); 11790 $.ui.plugin.call( this, n, [ event, this.ui() ] );
11514 - ( n !== "resize" && this._trigger( n, event, this.ui() ) ); 11791 + if ( n !== "resize" ) {
  11792 + this._trigger( n, event, this.ui() );
  11793 + }
11515 }, 11794 },
11516 11795
11517 plugins: {}, 11796 plugins: {},
@@ -11632,8 +11911,8 @@ $.ui.plugin.add( &quot;resizable&quot;, &quot;containment&quot;, { @@ -11632,8 +11911,8 @@ $.ui.plugin.add( &quot;resizable&quot;, &quot;containment&quot;, {
11632 co = that.containerOffset; 11911 co = that.containerOffset;
11633 ch = that.containerSize.height; 11912 ch = that.containerSize.height;
11634 cw = that.containerSize.width; 11913 cw = that.containerSize.width;
11635 - width = ( that._hasScroll ( ce, "left" ) ? ce.scrollWidth : cw );  
11636 - height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch ) ; 11914 + width = ( that._hasScroll( ce, "left" ) ? ce.scrollWidth : cw );
  11915 + height = ( that._hasScroll( ce ) ? ce.scrollHeight : ch );
11637 11916
11638 that.parentData = { 11917 that.parentData = {
11639 element: ce, 11918 element: ce,
@@ -11942,7 +12221,7 @@ var widgetsResizable = $.ui.resizable; @@ -11942,7 +12221,7 @@ var widgetsResizable = $.ui.resizable;
11942 12221
11943 12222
11944 /*! 12223 /*!
11945 - * jQuery UI Dialog 1.12.1 12224 + * jQuery UI Dialog 1.13.2
11946 * http://jqueryui.com 12225 * http://jqueryui.com
11947 * 12226 *
11948 * Copyright jQuery Foundation and other contributors 12227 * Copyright jQuery Foundation and other contributors
@@ -11960,9 +12239,8 @@ var widgetsResizable = $.ui.resizable; @@ -11960,9 +12239,8 @@ var widgetsResizable = $.ui.resizable;
11960 //>>css.theme: ../../themes/base/theme.css 12239 //>>css.theme: ../../themes/base/theme.css
11961 12240
11962 12241
11963 -  
11964 $.widget( "ui.dialog", { 12242 $.widget( "ui.dialog", {
11965 - version: "1.12.1", 12243 + version: "1.13.2",
11966 options: { 12244 options: {
11967 appendTo: "body", 12245 appendTo: "body",
11968 autoOpen: true, 12246 autoOpen: true,
@@ -12207,7 +12485,7 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12207,7 +12485,7 @@ $.widget( &quot;ui.dialog&quot;, {
12207 that._trigger( "focus" ); 12485 that._trigger( "focus" );
12208 } ); 12486 } );
12209 12487
12210 - // Track the dialog immediately upon openening in case a focus event 12488 + // Track the dialog immediately upon opening in case a focus event
12211 // somehow occurs outside of the dialog before an element inside the 12489 // somehow occurs outside of the dialog before an element inside the
12212 // dialog is focused (#10152) 12490 // dialog is focused (#10152)
12213 this._makeFocusTarget(); 12491 this._makeFocusTarget();
@@ -12243,22 +12521,23 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12243,22 +12521,23 @@ $.widget( &quot;ui.dialog&quot;, {
12243 hasFocus.eq( 0 ).trigger( "focus" ); 12521 hasFocus.eq( 0 ).trigger( "focus" );
12244 }, 12522 },
12245 12523
12246 - _keepFocus: function( event ) {  
12247 - function checkFocus() {  
12248 - var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),  
12249 - isActive = this.uiDialog[ 0 ] === activeElement ||  
12250 - $.contains( this.uiDialog[ 0 ], activeElement );  
12251 - if ( !isActive ) {  
12252 - this._focusTabbable();  
12253 - } 12524 + _restoreTabbableFocus: function() {
  12525 + var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
  12526 + isActive = this.uiDialog[ 0 ] === activeElement ||
  12527 + $.contains( this.uiDialog[ 0 ], activeElement );
  12528 + if ( !isActive ) {
  12529 + this._focusTabbable();
12254 } 12530 }
  12531 + },
  12532 +
  12533 + _keepFocus: function( event ) {
12255 event.preventDefault(); 12534 event.preventDefault();
12256 - checkFocus.call( this ); 12535 + this._restoreTabbableFocus();
12257 12536
12258 // support: IE 12537 // support: IE
12259 // IE <= 8 doesn't prevent moving focus even with event.preventDefault() 12538 // IE <= 8 doesn't prevent moving focus even with event.preventDefault()
12260 // so we check again later 12539 // so we check again later
12261 - this._delay( checkFocus ); 12540 + this._delay( this._restoreTabbableFocus );
12262 }, 12541 },
12263 12542
12264 _createWrapper: function() { 12543 _createWrapper: function() {
@@ -12287,8 +12566,8 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12287,8 +12566,8 @@ $.widget( &quot;ui.dialog&quot;, {
12287 return; 12566 return;
12288 } 12567 }
12289 var tabbables = this.uiDialog.find( ":tabbable" ), 12568 var tabbables = this.uiDialog.find( ":tabbable" ),
12290 - first = tabbables.filter( ":first" ),  
12291 - last = tabbables.filter( ":last" ); 12569 + first = tabbables.first(),
  12570 + last = tabbables.last();
12292 12571
12293 if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && 12572 if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
12294 !event.shiftKey ) { 12573 !event.shiftKey ) {
@@ -12399,14 +12678,14 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12399,14 +12678,14 @@ $.widget( &quot;ui.dialog&quot;, {
12399 this.uiDialogButtonPane.remove(); 12678 this.uiDialogButtonPane.remove();
12400 this.uiButtonSet.empty(); 12679 this.uiButtonSet.empty();
12401 12680
12402 - if ( $.isEmptyObject( buttons ) || ( $.isArray( buttons ) && !buttons.length ) ) { 12681 + if ( $.isEmptyObject( buttons ) || ( Array.isArray( buttons ) && !buttons.length ) ) {
12403 this._removeClass( this.uiDialog, "ui-dialog-buttons" ); 12682 this._removeClass( this.uiDialog, "ui-dialog-buttons" );
12404 return; 12683 return;
12405 } 12684 }
12406 12685
12407 $.each( buttons, function( name, props ) { 12686 $.each( buttons, function( name, props ) {
12408 var click, buttonOptions; 12687 var click, buttonOptions;
12409 - props = $.isFunction( props ) ? 12688 + props = typeof props === "function" ?
12410 { click: props, text: name } : 12689 { click: props, text: name } :
12411 props; 12690 props;
12412 12691
@@ -12771,6 +13050,8 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12771,6 +13050,8 @@ $.widget( &quot;ui.dialog&quot;, {
12771 return; 13050 return;
12772 } 13051 }
12773 13052
  13053 + var jqMinor = $.fn.jquery.substring( 0, 4 );
  13054 +
12774 // We use a delay in case the overlay is created from an 13055 // We use a delay in case the overlay is created from an
12775 // event that we're going to be cancelling (#2804) 13056 // event that we're going to be cancelling (#2804)
12776 var isOpening = true; 13057 var isOpening = true;
@@ -12781,20 +13062,28 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12781,20 +13062,28 @@ $.widget( &quot;ui.dialog&quot;, {
12781 if ( !this.document.data( "ui-dialog-overlays" ) ) { 13062 if ( !this.document.data( "ui-dialog-overlays" ) ) {
12782 13063
12783 // Prevent use of anchors and inputs 13064 // Prevent use of anchors and inputs
12784 - // Using _on() for an event handler shared across many instances is  
12785 - // safe because the dialogs stack and must be closed in reverse order  
12786 - this._on( this.document, {  
12787 - focusin: function( event ) {  
12788 - if ( isOpening ) {  
12789 - return;  
12790 - } 13065 + // This doesn't use `_on()` because it is a shared event handler
  13066 + // across all open modal dialogs.
  13067 + this.document.on( "focusin.ui-dialog", function( event ) {
  13068 + if ( isOpening ) {
  13069 + return;
  13070 + }
12791 13071
12792 - if ( !this._allowInteraction( event ) ) {  
12793 - event.preventDefault();  
12794 - this._trackingInstances()[ 0 ]._focusTabbable(); 13072 + var instance = this._trackingInstances()[ 0 ];
  13073 + if ( !instance._allowInteraction( event ) ) {
  13074 + event.preventDefault();
  13075 + instance._focusTabbable();
  13076 +
  13077 + // Support: jQuery >=3.4 <3.6 only
  13078 + // Focus re-triggering in jQuery 3.4/3.5 makes the original element
  13079 + // have its focus event propagated last, breaking the re-targeting.
  13080 + // Trigger focus in a delay in addition if needed to avoid the issue
  13081 + // See https://github.com/jquery/jquery/issues/4382
  13082 + if ( jqMinor === "3.4." || jqMinor === "3.5." ) {
  13083 + instance._delay( instance._restoreTabbableFocus );
12795 } 13084 }
12796 } 13085 }
12797 - } ); 13086 + }.bind( this ) );
12798 } 13087 }
12799 13088
12800 this.overlay = $( "<div>" ) 13089 this.overlay = $( "<div>" )
@@ -12817,7 +13106,7 @@ $.widget( &quot;ui.dialog&quot;, { @@ -12817,7 +13106,7 @@ $.widget( &quot;ui.dialog&quot;, {
12817 var overlays = this.document.data( "ui-dialog-overlays" ) - 1; 13106 var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
12818 13107
12819 if ( !overlays ) { 13108 if ( !overlays ) {
12820 - this._off( this.document, "focusin" ); 13109 + this.document.off( "focusin.ui-dialog" );
12821 this.document.removeData( "ui-dialog-overlays" ); 13110 this.document.removeData( "ui-dialog-overlays" );
12822 } else { 13111 } else {
12823 this.document.data( "ui-dialog-overlays", overlays ); 13112 this.document.data( "ui-dialog-overlays", overlays );
@@ -12857,7 +13146,7 @@ var widgetsDialog = $.ui.dialog; @@ -12857,7 +13146,7 @@ var widgetsDialog = $.ui.dialog;
12857 13146
12858 13147
12859 /*! 13148 /*!
12860 - * jQuery UI Droppable 1.12.1 13149 + * jQuery UI Droppable 1.13.2
12861 * http://jqueryui.com 13150 * http://jqueryui.com
12862 * 13151 *
12863 * Copyright jQuery Foundation and other contributors 13152 * Copyright jQuery Foundation and other contributors
@@ -12872,9 +13161,8 @@ var widgetsDialog = $.ui.dialog; @@ -12872,9 +13161,8 @@ var widgetsDialog = $.ui.dialog;
12872 //>>demos: http://jqueryui.com/droppable/ 13161 //>>demos: http://jqueryui.com/droppable/
12873 13162
12874 13163
12875 -  
12876 $.widget( "ui.droppable", { 13164 $.widget( "ui.droppable", {
12877 - version: "1.12.1", 13165 + version: "1.13.2",
12878 widgetEventPrefix: "drop", 13166 widgetEventPrefix: "drop",
12879 options: { 13167 options: {
12880 accept: "*", 13168 accept: "*",
@@ -12899,7 +13187,7 @@ $.widget( &quot;ui.droppable&quot;, { @@ -12899,7 +13187,7 @@ $.widget( &quot;ui.droppable&quot;, {
12899 this.isover = false; 13187 this.isover = false;
12900 this.isout = true; 13188 this.isout = true;
12901 13189
12902 - this.accept = $.isFunction( accept ) ? accept : function( d ) { 13190 + this.accept = typeof accept === "function" ? accept : function( d ) {
12903 return d.is( accept ); 13191 return d.is( accept );
12904 }; 13192 };
12905 13193
@@ -12922,7 +13210,9 @@ $.widget( &quot;ui.droppable&quot;, { @@ -12922,7 +13210,9 @@ $.widget( &quot;ui.droppable&quot;, {
12922 13210
12923 this._addToManager( o.scope ); 13211 this._addToManager( o.scope );
12924 13212
12925 - o.addClasses && this._addClass( "ui-droppable" ); 13213 + if ( o.addClasses ) {
  13214 + this._addClass( "ui-droppable" );
  13215 + }
12926 13216
12927 }, 13217 },
12928 13218
@@ -12951,7 +13241,7 @@ $.widget( &quot;ui.droppable&quot;, { @@ -12951,7 +13241,7 @@ $.widget( &quot;ui.droppable&quot;, {
12951 _setOption: function( key, value ) { 13241 _setOption: function( key, value ) {
12952 13242
12953 if ( key === "accept" ) { 13243 if ( key === "accept" ) {
12954 - this.accept = $.isFunction( value ) ? value : function( d ) { 13244 + this.accept = typeof value === "function" ? value : function( d ) {
12955 return d.is( value ); 13245 return d.is( value );
12956 }; 13246 };
12957 } else if ( key === "scope" ) { 13247 } else if ( key === "scope" ) {
@@ -13041,14 +13331,15 @@ $.widget( &quot;ui.droppable&quot;, { @@ -13041,14 +13331,15 @@ $.widget( &quot;ui.droppable&quot;, {
13041 inst.accept.call( 13331 inst.accept.call(
13042 inst.element[ 0 ], ( draggable.currentItem || draggable.element ) 13332 inst.element[ 0 ], ( draggable.currentItem || draggable.element )
13043 ) && 13333 ) &&
13044 - intersect( 13334 + $.ui.intersect(
13045 draggable, 13335 draggable,
13046 $.extend( inst, { offset: inst.element.offset() } ), 13336 $.extend( inst, { offset: inst.element.offset() } ),
13047 inst.options.tolerance, event 13337 inst.options.tolerance, event
13048 ) 13338 )
13049 ) { 13339 ) {
13050 childrenIntersection = true; 13340 childrenIntersection = true;
13051 - return false; } 13341 + return false;
  13342 + }
13052 } ); 13343 } );
13053 if ( childrenIntersection ) { 13344 if ( childrenIntersection ) {
13054 return false; 13345 return false;
@@ -13077,7 +13368,7 @@ $.widget( &quot;ui.droppable&quot;, { @@ -13077,7 +13368,7 @@ $.widget( &quot;ui.droppable&quot;, {
13077 }, 13368 },
13078 13369
13079 // Extension points just to make backcompat sane and avoid duplicating logic 13370 // Extension points just to make backcompat sane and avoid duplicating logic
13080 - // TODO: Remove in 1.13 along with call to it below 13371 + // TODO: Remove in 1.14 along with call to it below
13081 _addHoverClass: function() { 13372 _addHoverClass: function() {
13082 this._addClass( "ui-droppable-hover" ); 13373 this._addClass( "ui-droppable-hover" );
13083 }, 13374 },
@@ -13095,7 +13386,7 @@ $.widget( &quot;ui.droppable&quot;, { @@ -13095,7 +13386,7 @@ $.widget( &quot;ui.droppable&quot;, {
13095 } 13386 }
13096 } ); 13387 } );
13097 13388
13098 -var intersect = $.ui.intersect = ( function() { 13389 +$.ui.intersect = ( function() {
13099 function isOverAxis( x, reference, size ) { 13390 function isOverAxis( x, reference, size ) {
13100 return ( x >= reference ) && ( x < ( reference + size ) ); 13391 return ( x >= reference ) && ( x < ( reference + size ) );
13101 } 13392 }
@@ -13203,7 +13494,7 @@ $.ui.ddmanager = { @@ -13203,7 +13494,7 @@ $.ui.ddmanager = {
13203 return; 13494 return;
13204 } 13495 }
13205 if ( !this.options.disabled && this.visible && 13496 if ( !this.options.disabled && this.visible &&
13206 - intersect( draggable, this, this.options.tolerance, event ) ) { 13497 + $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
13207 dropped = this._drop.call( this, event ) || dropped; 13498 dropped = this._drop.call( this, event ) || dropped;
13208 } 13499 }
13209 13500
@@ -13244,7 +13535,7 @@ $.ui.ddmanager = { @@ -13244,7 +13535,7 @@ $.ui.ddmanager = {
13244 } 13535 }
13245 13536
13246 var parentInstance, scope, parent, 13537 var parentInstance, scope, parent,
13247 - intersects = intersect( draggable, this, this.options.tolerance, event ), 13538 + intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
13248 c = !intersects && this.isover ? 13539 c = !intersects && this.isover ?
13249 "isout" : 13540 "isout" :
13250 ( intersects && !this.isover ? "isover" : null ); 13541 ( intersects && !this.isover ? "isover" : null );
@@ -13338,7 +13629,7 @@ var widgetsDroppable = $.ui.droppable; @@ -13338,7 +13629,7 @@ var widgetsDroppable = $.ui.droppable;
13338 13629
13339 13630
13340 /*! 13631 /*!
13341 - * jQuery UI Progressbar 1.12.1 13632 + * jQuery UI Progressbar 1.13.2
13342 * http://jqueryui.com 13633 * http://jqueryui.com
13343 * 13634 *
13344 * Copyright jQuery Foundation and other contributors 13635 * Copyright jQuery Foundation and other contributors
@@ -13348,9 +13639,9 @@ var widgetsDroppable = $.ui.droppable; @@ -13348,9 +13639,9 @@ var widgetsDroppable = $.ui.droppable;
13348 13639
13349 //>>label: Progressbar 13640 //>>label: Progressbar
13350 //>>group: Widgets 13641 //>>group: Widgets
13351 -// jscs:disable maximumLineLength 13642 +/* eslint-disable max-len */
13352 //>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators. 13643 //>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
13353 -// jscs:enable maximumLineLength 13644 +/* eslint-enable max-len */
13354 //>>docs: http://api.jqueryui.com/progressbar/ 13645 //>>docs: http://api.jqueryui.com/progressbar/
13355 //>>demos: http://jqueryui.com/progressbar/ 13646 //>>demos: http://jqueryui.com/progressbar/
13356 //>>css.structure: ../../themes/base/core.css 13647 //>>css.structure: ../../themes/base/core.css
@@ -13358,9 +13649,8 @@ var widgetsDroppable = $.ui.droppable; @@ -13358,9 +13649,8 @@ var widgetsDroppable = $.ui.droppable;
13358 //>>css.theme: ../../themes/base/theme.css 13649 //>>css.theme: ../../themes/base/theme.css
13359 13650
13360 13651
13361 -  
13362 var widgetsProgressbar = $.widget( "ui.progressbar", { 13652 var widgetsProgressbar = $.widget( "ui.progressbar", {
13363 - version: "1.12.1", 13653 + version: "1.13.2",
13364 options: { 13654 options: {
13365 classes: { 13655 classes: {
13366 "ui-progressbar": "ui-corner-all", 13656 "ui-progressbar": "ui-corner-all",
@@ -13502,7 +13792,7 @@ var widgetsProgressbar = $.widget( &quot;ui.progressbar&quot;, { @@ -13502,7 +13792,7 @@ var widgetsProgressbar = $.widget( &quot;ui.progressbar&quot;, {
13502 13792
13503 13793
13504 /*! 13794 /*!
13505 - * jQuery UI Selectable 1.12.1 13795 + * jQuery UI Selectable 1.13.2
13506 * http://jqueryui.com 13796 * http://jqueryui.com
13507 * 13797 *
13508 * Copyright jQuery Foundation and other contributors 13798 * Copyright jQuery Foundation and other contributors
@@ -13518,9 +13808,8 @@ var widgetsProgressbar = $.widget( &quot;ui.progressbar&quot;, { @@ -13518,9 +13808,8 @@ var widgetsProgressbar = $.widget( &quot;ui.progressbar&quot;, {
13518 //>>css.structure: ../../themes/base/selectable.css 13808 //>>css.structure: ../../themes/base/selectable.css
13519 13809
13520 13810
13521 -  
13522 var widgetsSelectable = $.widget( "ui.selectable", $.ui.mouse, { 13811 var widgetsSelectable = $.widget( "ui.selectable", $.ui.mouse, {
13523 - version: "1.12.1", 13812 + version: "1.13.2",
13524 options: { 13813 options: {
13525 appendTo: "body", 13814 appendTo: "body",
13526 autoRefresh: true, 13815 autoRefresh: true,
@@ -13671,8 +13960,12 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, { @@ -13671,8 +13960,12 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, {
13671 x2 = event.pageX, 13960 x2 = event.pageX,
13672 y2 = event.pageY; 13961 y2 = event.pageY;
13673 13962
13674 - if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; }  
13675 - if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; } 13963 + if ( x1 > x2 ) {
  13964 + tmp = x2; x2 = x1; x1 = tmp;
  13965 + }
  13966 + if ( y1 > y2 ) {
  13967 + tmp = y2; y2 = y1; y1 = tmp;
  13968 + }
13676 this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } ); 13969 this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
13677 13970
13678 this.selectees.each( function() { 13971 this.selectees.each( function() {
@@ -13797,7 +14090,7 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, { @@ -13797,7 +14090,7 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, {
13797 14090
13798 14091
13799 /*! 14092 /*!
13800 - * jQuery UI Selectmenu 1.12.1 14093 + * jQuery UI Selectmenu 1.13.2
13801 * http://jqueryui.com 14094 * http://jqueryui.com
13802 * 14095 *
13803 * Copyright jQuery Foundation and other contributors 14096 * Copyright jQuery Foundation and other contributors
@@ -13807,9 +14100,9 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, { @@ -13807,9 +14100,9 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, {
13807 14100
13808 //>>label: Selectmenu 14101 //>>label: Selectmenu
13809 //>>group: Widgets 14102 //>>group: Widgets
13810 -// jscs:disable maximumLineLength 14103 +/* eslint-disable max-len */
13811 //>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select. 14104 //>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select.
13812 -// jscs:enable maximumLineLength 14105 +/* eslint-enable max-len */
13813 //>>docs: http://api.jqueryui.com/selectmenu/ 14106 //>>docs: http://api.jqueryui.com/selectmenu/
13814 //>>demos: http://jqueryui.com/selectmenu/ 14107 //>>demos: http://jqueryui.com/selectmenu/
13815 //>>css.structure: ../../themes/base/core.css 14108 //>>css.structure: ../../themes/base/core.css
@@ -13817,9 +14110,8 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, { @@ -13817,9 +14110,8 @@ var widgetsSelectable = $.widget( &quot;ui.selectable&quot;, $.ui.mouse, {
13817 //>>css.theme: ../../themes/base/theme.css 14110 //>>css.theme: ../../themes/base/theme.css
13818 14111
13819 14112
13820 -  
13821 var widgetsSelectmenu = $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { 14113 var widgetsSelectmenu = $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
13822 - version: "1.12.1", 14114 + version: "1.13.2",
13823 defaultElement: "<select>", 14115 defaultElement: "<select>",
13824 options: { 14116 options: {
13825 appendTo: null, 14117 appendTo: null,
@@ -13874,7 +14166,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -13874,7 +14166,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
13874 this.labels = this.element.labels().attr( "for", this.ids.button ); 14166 this.labels = this.element.labels().attr( "for", this.ids.button );
13875 this._on( this.labels, { 14167 this._on( this.labels, {
13876 click: function( event ) { 14168 click: function( event ) {
13877 - this.button.focus(); 14169 + this.button.trigger( "focus" );
13878 event.preventDefault(); 14170 event.preventDefault();
13879 } 14171 }
13880 } ); 14172 } );
@@ -14192,7 +14484,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -14192,7 +14484,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
14192 // Support: IE 14484 // Support: IE
14193 // Setting the text selection kills the button focus in IE, but 14485 // Setting the text selection kills the button focus in IE, but
14194 // restoring the focus doesn't kill the selection. 14486 // restoring the focus doesn't kill the selection.
14195 - this.button.focus(); 14487 + this.button.trigger( "focus" );
14196 }, 14488 },
14197 14489
14198 _documentClick: { 14490 _documentClick: {
@@ -14202,7 +14494,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -14202,7 +14494,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
14202 } 14494 }
14203 14495
14204 if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + 14496 if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" +
14205 - $.ui.escapeSelector( this.ids.button ) ).length ) { 14497 + $.escapeSelector( this.ids.button ) ).length ) {
14206 this.close( event ); 14498 this.close( event );
14207 } 14499 }
14208 } 14500 }
@@ -14433,6 +14725,10 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -14433,6 +14725,10 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
14433 var that = this, 14725 var that = this,
14434 data = []; 14726 data = [];
14435 options.each( function( index, item ) { 14727 options.each( function( index, item ) {
  14728 + if ( item.hidden ) {
  14729 + return;
  14730 + }
  14731 +
14436 data.push( that._parseOption( $( item ), index ) ); 14732 data.push( that._parseOption( $( item ), index ) );
14437 } ); 14733 } );
14438 this.items = data; 14734 this.items = data;
@@ -14463,7 +14759,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -14463,7 +14759,7 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
14463 14759
14464 14760
14465 /*! 14761 /*!
14466 - * jQuery UI Slider 1.12.1 14762 + * jQuery UI Slider 1.13.2
14467 * http://jqueryui.com 14763 * http://jqueryui.com
14468 * 14764 *
14469 * Copyright jQuery Foundation and other contributors 14765 * Copyright jQuery Foundation and other contributors
@@ -14481,9 +14777,8 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, { @@ -14481,9 +14777,8 @@ var widgetsSelectmenu = $.widget( &quot;ui.selectmenu&quot;, [ $.ui.formResetMixin, {
14481 //>>css.theme: ../../themes/base/theme.css 14777 //>>css.theme: ../../themes/base/theme.css
14482 14778
14483 14779
14484 -  
14485 var widgetsSlider = $.widget( "ui.slider", $.ui.mouse, { 14780 var widgetsSlider = $.widget( "ui.slider", $.ui.mouse, {
14486 - version: "1.12.1", 14781 + version: "1.13.2",
14487 widgetEventPrefix: "slide", 14782 widgetEventPrefix: "slide",
14488 14783
14489 options: { 14784 options: {
@@ -14580,7 +14875,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, { @@ -14580,7 +14875,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, {
14580 options.values = [ this._valueMin(), this._valueMin() ]; 14875 options.values = [ this._valueMin(), this._valueMin() ];
14581 } else if ( options.values.length && options.values.length !== 2 ) { 14876 } else if ( options.values.length && options.values.length !== 2 ) {
14582 options.values = [ options.values[ 0 ], options.values[ 0 ] ]; 14877 options.values = [ options.values[ 0 ], options.values[ 0 ] ];
14583 - } else if ( $.isArray( options.values ) ) { 14878 + } else if ( Array.isArray( options.values ) ) {
14584 options.values = options.values.slice( 0 ); 14879 options.values = options.values.slice( 0 );
14585 } 14880 }
14586 } 14881 }
@@ -14843,7 +15138,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, { @@ -14843,7 +15138,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, {
14843 } 15138 }
14844 15139
14845 if ( arguments.length ) { 15140 if ( arguments.length ) {
14846 - if ( $.isArray( arguments[ 0 ] ) ) { 15141 + if ( Array.isArray( arguments[ 0 ] ) ) {
14847 vals = this.options.values; 15142 vals = this.options.values;
14848 newValues = arguments[ 0 ]; 15143 newValues = arguments[ 0 ];
14849 for ( i = 0; i < vals.length; i += 1 ) { 15144 for ( i = 0; i < vals.length; i += 1 ) {
@@ -14877,7 +15172,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, { @@ -14877,7 +15172,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, {
14877 } 15172 }
14878 } 15173 }
14879 15174
14880 - if ( $.isArray( this.options.values ) ) { 15175 + if ( Array.isArray( this.options.values ) ) {
14881 valsLength = this.options.values.length; 15176 valsLength = this.options.values.length;
14882 } 15177 }
14883 15178
@@ -15199,7 +15494,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, { @@ -15199,7 +15494,7 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, {
15199 15494
15200 15495
15201 /*! 15496 /*!
15202 - * jQuery UI Sortable 1.12.1 15497 + * jQuery UI Sortable 1.13.2
15203 * http://jqueryui.com 15498 * http://jqueryui.com
15204 * 15499 *
15205 * Copyright jQuery Foundation and other contributors 15500 * Copyright jQuery Foundation and other contributors
@@ -15215,9 +15510,8 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, { @@ -15215,9 +15510,8 @@ var widgetsSlider = $.widget( &quot;ui.slider&quot;, $.ui.mouse, {
15215 //>>css.structure: ../../themes/base/sortable.css 15510 //>>css.structure: ../../themes/base/sortable.css
15216 15511
15217 15512
15218 -  
15219 var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, { 15513 var widgetsSortable = $.widget( "ui.sortable", $.ui.mouse, {
15220 - version: "1.12.1", 15514 + version: "1.13.2",
15221 widgetEventPrefix: "sort", 15515 widgetEventPrefix: "sort",
15222 ready: false, 15516 ready: false,
15223 options: { 15517 options: {
@@ -15377,6 +15671,11 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15377,6 +15671,11 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15377 // mouseCapture 15671 // mouseCapture
15378 this.refreshPositions(); 15672 this.refreshPositions();
15379 15673
  15674 + //Prepare the dragged items parent
  15675 + this.appendTo = $( o.appendTo !== "parent" ?
  15676 + o.appendTo :
  15677 + this.currentItem.parent() );
  15678 +
15380 //Create and append the visible helper 15679 //Create and append the visible helper
15381 this.helper = this._createHelper( event ); 15680 this.helper = this._createHelper( event );
15382 15681
@@ -15391,9 +15690,6 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15391,9 +15690,6 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15391 //Cache the margins of the original element 15690 //Cache the margins of the original element
15392 this._cacheMargins(); 15691 this._cacheMargins();
15393 15692
15394 - //Get the next scrolling parent  
15395 - this.scrollParent = this.helper.scrollParent();  
15396 -  
15397 //The element's absolute position on the page minus margins 15693 //The element's absolute position on the page minus margins
15398 this.offset = this.currentItem.offset(); 15694 this.offset = this.currentItem.offset();
15399 this.offset = { 15695 this.offset = {
@@ -15406,25 +15702,22 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15406,25 +15702,22 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15406 left: event.pageX - this.offset.left, 15702 left: event.pageX - this.offset.left,
15407 top: event.pageY - this.offset.top 15703 top: event.pageY - this.offset.top
15408 }, 15704 },
15409 - parent: this._getParentOffset(),  
15410 15705
15411 // This is a relative to absolute position minus the actual position calculation - 15706 // This is a relative to absolute position minus the actual position calculation -
15412 // only used for relative positioned helper 15707 // only used for relative positioned helper
15413 relative: this._getRelativeOffset() 15708 relative: this._getRelativeOffset()
15414 } ); 15709 } );
15415 15710
15416 - // Only after we got the offset, we can change the helper's position to absolute 15711 + // After we get the helper offset, but before we get the parent offset we can
  15712 + // change the helper's position to absolute
15417 // TODO: Still need to figure out a way to make relative sorting possible 15713 // TODO: Still need to figure out a way to make relative sorting possible
15418 this.helper.css( "position", "absolute" ); 15714 this.helper.css( "position", "absolute" );
15419 this.cssPosition = this.helper.css( "position" ); 15715 this.cssPosition = this.helper.css( "position" );
15420 15716
15421 - //Generate the original position  
15422 - this.originalPosition = this._generatePosition( event );  
15423 - this.originalPageX = event.pageX;  
15424 - this.originalPageY = event.pageY;  
15425 -  
15426 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied 15717 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
15427 - ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) ); 15718 + if ( o.cursorAt ) {
  15719 + this._adjustOffsetFromHelper( o.cursorAt );
  15720 + }
15428 15721
15429 //Cache the former DOM position 15722 //Cache the former DOM position
15430 this.domPosition = { 15723 this.domPosition = {
@@ -15441,6 +15734,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15441,6 +15734,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15441 //Create the placeholder 15734 //Create the placeholder
15442 this._createPlaceholder(); 15735 this._createPlaceholder();
15443 15736
  15737 + //Get the next scrolling parent
  15738 + this.scrollParent = this.placeholder.scrollParent();
  15739 +
  15740 + $.extend( this.offset, {
  15741 + parent: this._getParentOffset()
  15742 + } );
  15743 +
15444 //Set a containment if given in the options 15744 //Set a containment if given in the options
15445 if ( o.containment ) { 15745 if ( o.containment ) {
15446 this._setContainment(); 15746 this._setContainment();
@@ -15457,13 +15757,9 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15457,13 +15757,9 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15457 $( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body ); 15757 $( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
15458 } 15758 }
15459 15759
15460 - if ( o.opacity ) { // opacity option  
15461 - if ( this.helper.css( "opacity" ) ) {  
15462 - this._storedOpacity = this.helper.css( "opacity" );  
15463 - }  
15464 - this.helper.css( "opacity", o.opacity );  
15465 - }  
15466 - 15760 + // We need to make sure to grab the zIndex before setting the
  15761 + // opacity, because setting the opacity to anything lower than 1
  15762 + // causes the zIndex to change from "auto" to 0.
15467 if ( o.zIndex ) { // zIndex option 15763 if ( o.zIndex ) { // zIndex option
15468 if ( this.helper.css( "zIndex" ) ) { 15764 if ( this.helper.css( "zIndex" ) ) {
15469 this._storedZIndex = this.helper.css( "zIndex" ); 15765 this._storedZIndex = this.helper.css( "zIndex" );
@@ -15471,6 +15767,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15471,6 +15767,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15471 this.helper.css( "zIndex", o.zIndex ); 15767 this.helper.css( "zIndex", o.zIndex );
15472 } 15768 }
15473 15769
  15770 + if ( o.opacity ) { // opacity option
  15771 + if ( this.helper.css( "opacity" ) ) {
  15772 + this._storedOpacity = this.helper.css( "opacity" );
  15773 + }
  15774 + this.helper.css( "opacity", o.opacity );
  15775 + }
  15776 +
15474 //Prepare scrolling 15777 //Prepare scrolling
15475 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 15778 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
15476 this.scrollParent[ 0 ].tagName !== "HTML" ) { 15779 this.scrollParent[ 0 ].tagName !== "HTML" ) {
@@ -15505,77 +15808,82 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15505,77 +15808,82 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15505 15808
15506 this._addClass( this.helper, "ui-sortable-helper" ); 15809 this._addClass( this.helper, "ui-sortable-helper" );
15507 15810
15508 - // Execute the drag once - this causes the helper not to be visiblebefore getting its  
15509 - // correct position  
15510 - this._mouseDrag( event );  
15511 - return true; 15811 + //Move the helper, if needed
  15812 + if ( !this.helper.parent().is( this.appendTo ) ) {
  15813 + this.helper.detach().appendTo( this.appendTo );
15512 15814
15513 - }, 15815 + //Update position
  15816 + this.offset.parent = this._getParentOffset();
  15817 + }
15514 15818
15515 - _mouseDrag: function( event ) {  
15516 - var i, item, itemElement, intersection,  
15517 - o = this.options,  
15518 - scrolled = false; 15819 + //Generate the original position
  15820 + this.position = this.originalPosition = this._generatePosition( event );
  15821 + this.originalPageX = event.pageX;
  15822 + this.originalPageY = event.pageY;
  15823 + this.lastPositionAbs = this.positionAbs = this._convertPositionTo( "absolute" );
15519 15824
15520 - //Compute the helpers position  
15521 - this.position = this._generatePosition( event );  
15522 - this.positionAbs = this._convertPositionTo( "absolute" ); 15825 + this._mouseDrag( event );
15523 15826
15524 - if ( !this.lastPositionAbs ) {  
15525 - this.lastPositionAbs = this.positionAbs;  
15526 - } 15827 + return true;
15527 15828
15528 - //Do scrolling  
15529 - if ( this.options.scroll ) {  
15530 - if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&  
15531 - this.scrollParent[ 0 ].tagName !== "HTML" ) { 15829 + },
15532 15830
15533 - if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -  
15534 - event.pageY < o.scrollSensitivity ) {  
15535 - this.scrollParent[ 0 ].scrollTop =  
15536 - scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;  
15537 - } else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {  
15538 - this.scrollParent[ 0 ].scrollTop =  
15539 - scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed;  
15540 - } 15831 + _scroll: function( event ) {
  15832 + var o = this.options,
  15833 + scrolled = false;
15541 15834
15542 - if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -  
15543 - event.pageX < o.scrollSensitivity ) {  
15544 - this.scrollParent[ 0 ].scrollLeft = scrolled =  
15545 - this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;  
15546 - } else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {  
15547 - this.scrollParent[ 0 ].scrollLeft = scrolled =  
15548 - this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed;  
15549 - } 15835 + if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
  15836 + this.scrollParent[ 0 ].tagName !== "HTML" ) {
15550 15837
15551 - } else { 15838 + if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -
  15839 + event.pageY < o.scrollSensitivity ) {
  15840 + this.scrollParent[ 0 ].scrollTop =
  15841 + scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;
  15842 + } else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {
  15843 + this.scrollParent[ 0 ].scrollTop =
  15844 + scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed;
  15845 + }
15552 15846
15553 - if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {  
15554 - scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );  
15555 - } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <  
15556 - o.scrollSensitivity ) {  
15557 - scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );  
15558 - } 15847 + if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -
  15848 + event.pageX < o.scrollSensitivity ) {
  15849 + this.scrollParent[ 0 ].scrollLeft = scrolled =
  15850 + this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;
  15851 + } else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {
  15852 + this.scrollParent[ 0 ].scrollLeft = scrolled =
  15853 + this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed;
  15854 + }
15559 15855
15560 - if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) {  
15561 - scrolled = this.document.scrollLeft(  
15562 - this.document.scrollLeft() - o.scrollSpeed  
15563 - );  
15564 - } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <  
15565 - o.scrollSensitivity ) {  
15566 - scrolled = this.document.scrollLeft(  
15567 - this.document.scrollLeft() + o.scrollSpeed  
15568 - );  
15569 - } 15856 + } else {
15570 15857
  15858 + if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {
  15859 + scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );
  15860 + } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <
  15861 + o.scrollSensitivity ) {
  15862 + scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );
15571 } 15863 }
15572 15864
15573 - if ( scrolled !== false && $.ui.ddmanager && !o.dropBehaviour ) {  
15574 - $.ui.ddmanager.prepareOffsets( this, event ); 15865 + if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) {
  15866 + scrolled = this.document.scrollLeft(
  15867 + this.document.scrollLeft() - o.scrollSpeed
  15868 + );
  15869 + } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <
  15870 + o.scrollSensitivity ) {
  15871 + scrolled = this.document.scrollLeft(
  15872 + this.document.scrollLeft() + o.scrollSpeed
  15873 + );
15575 } 15874 }
  15875 +
15576 } 15876 }
15577 15877
15578 - //Regenerate the absolute position used for position checks 15878 + return scrolled;
  15879 + },
  15880 +
  15881 + _mouseDrag: function( event ) {
  15882 + var i, item, itemElement, intersection,
  15883 + o = this.options;
  15884 +
  15885 + //Compute the helpers position
  15886 + this.position = this._generatePosition( event );
15579 this.positionAbs = this._convertPositionTo( "absolute" ); 15887 this.positionAbs = this._convertPositionTo( "absolute" );
15580 15888
15581 //Set the helper position 15889 //Set the helper position
@@ -15586,6 +15894,24 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15586,6 +15894,24 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15586 this.helper[ 0 ].style.top = this.position.top + "px"; 15894 this.helper[ 0 ].style.top = this.position.top + "px";
15587 } 15895 }
15588 15896
  15897 + //Do scrolling
  15898 + if ( o.scroll ) {
  15899 + if ( this._scroll( event ) !== false ) {
  15900 +
  15901 + //Update item positions used in position checks
  15902 + this._refreshItemPositions( true );
  15903 +
  15904 + if ( $.ui.ddmanager && !o.dropBehaviour ) {
  15905 + $.ui.ddmanager.prepareOffsets( this, event );
  15906 + }
  15907 + }
  15908 + }
  15909 +
  15910 + this.dragDirection = {
  15911 + vertical: this._getDragVerticalDirection(),
  15912 + horizontal: this._getDragHorizontalDirection()
  15913 + };
  15914 +
15589 //Rearrange 15915 //Rearrange
15590 for ( i = this.items.length - 1; i >= 0; i-- ) { 15916 for ( i = this.items.length - 1; i >= 0; i-- ) {
15591 15917
@@ -15612,7 +15938,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15612,7 +15938,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15612 // no useless actions that have been done before 15938 // no useless actions that have been done before
15613 // no action if the item moved is the parent of the item checked 15939 // no action if the item moved is the parent of the item checked
15614 if ( itemElement !== this.currentItem[ 0 ] && 15940 if ( itemElement !== this.currentItem[ 0 ] &&
15615 - this.placeholder[ intersection === 1 ? "next" : "prev" ]()[ 0 ] !== itemElement && 15941 + this.placeholder[ intersection === 1 ?
  15942 + "next" : "prev" ]()[ 0 ] !== itemElement &&
15616 !$.contains( this.placeholder[ 0 ], itemElement ) && 15943 !$.contains( this.placeholder[ 0 ], itemElement ) &&
15617 ( this.options.type === "semi-dynamic" ? 15944 ( this.options.type === "semi-dynamic" ?
15618 !$.contains( this.element[ 0 ], itemElement ) : 15945 !$.contains( this.element[ 0 ], itemElement ) :
@@ -15622,7 +15949,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15622,7 +15949,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15622 15949
15623 this.direction = intersection === 1 ? "down" : "up"; 15950 this.direction = intersection === 1 ? "down" : "up";
15624 15951
15625 - if ( this.options.tolerance === "pointer" || this._intersectsWithSides( item ) ) { 15952 + if ( this.options.tolerance === "pointer" ||
  15953 + this._intersectsWithSides( item ) ) {
15626 this._rearrange( event, item ); 15954 this._rearrange( event, item );
15627 } else { 15955 } else {
15628 break; 15956 break;
@@ -15838,12 +16166,12 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15838,12 +16166,12 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15838 return false; 16166 return false;
15839 } 16167 }
15840 16168
15841 - verticalDirection = this._getDragVerticalDirection();  
15842 - horizontalDirection = this._getDragHorizontalDirection(); 16169 + verticalDirection = this.dragDirection.vertical;
  16170 + horizontalDirection = this.dragDirection.horizontal;
15843 16171
15844 return this.floating ? 16172 return this.floating ?
15845 - ( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 )  
15846 - : ( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) ); 16173 + ( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 ) :
  16174 + ( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );
15847 16175
15848 }, 16176 },
15849 16177
@@ -15853,8 +16181,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15853,8 +16181,8 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15853 this.offset.click.top, item.top + ( item.height / 2 ), item.height ), 16181 this.offset.click.top, item.top + ( item.height / 2 ), item.height ),
15854 isOverRightHalf = this._isOverAxis( this.positionAbs.left + 16182 isOverRightHalf = this._isOverAxis( this.positionAbs.left +
15855 this.offset.click.left, item.left + ( item.width / 2 ), item.width ), 16183 this.offset.click.left, item.left + ( item.width / 2 ), item.width ),
15856 - verticalDirection = this._getDragVerticalDirection(),  
15857 - horizontalDirection = this._getDragHorizontalDirection(); 16184 + verticalDirection = this.dragDirection.vertical,
  16185 + horizontalDirection = this.dragDirection.horizontal;
15858 16186
15859 if ( this.floating && horizontalDirection ) { 16187 if ( this.floating && horizontalDirection ) {
15860 return ( ( horizontalDirection === "right" && isOverRightHalf ) || 16188 return ( ( horizontalDirection === "right" && isOverRightHalf ) ||
@@ -15903,7 +16231,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15903,7 +16231,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15903 for ( j = cur.length - 1; j >= 0; j-- ) { 16231 for ( j = cur.length - 1; j >= 0; j-- ) {
15904 inst = $.data( cur[ j ], this.widgetFullName ); 16232 inst = $.data( cur[ j ], this.widgetFullName );
15905 if ( inst && inst !== this && !inst.options.disabled ) { 16233 if ( inst && inst !== this && !inst.options.disabled ) {
15906 - queries.push( [ $.isFunction( inst.options.items ) ? 16234 + queries.push( [ typeof inst.options.items === "function" ?
15907 inst.options.items.call( inst.element ) : 16235 inst.options.items.call( inst.element ) :
15908 $( inst.options.items, inst.element ) 16236 $( inst.options.items, inst.element )
15909 .not( ".ui-sortable-helper" ) 16237 .not( ".ui-sortable-helper" )
@@ -15913,7 +16241,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15913,7 +16241,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15913 } 16241 }
15914 } 16242 }
15915 16243
15916 - queries.push( [ $.isFunction( this.options.items ) ? 16244 + queries.push( [ typeof this.options.items === "function" ?
15917 this.options.items 16245 this.options.items
15918 .call( this.element, null, { options: this.options, item: this.currentItem } ) : 16246 .call( this.element, null, { options: this.options, item: this.currentItem } ) :
15919 $( this.options.items, this.element ) 16247 $( this.options.items, this.element )
@@ -15953,7 +16281,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15953,7 +16281,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15953 16281
15954 var i, j, cur, inst, targetData, _queries, item, queriesLength, 16282 var i, j, cur, inst, targetData, _queries, item, queriesLength,
15955 items = this.items, 16283 items = this.items,
15956 - queries = [ [ $.isFunction( this.options.items ) ? 16284 + queries = [ [ typeof this.options.items === "function" ?
15957 this.options.items.call( this.element[ 0 ], event, { item: this.currentItem } ) : 16285 this.options.items.call( this.element[ 0 ], event, { item: this.currentItem } ) :
15958 $( this.options.items, this.element ), this ] ], 16286 $( this.options.items, this.element ), this ] ],
15959 connectWith = this._connectWith(); 16287 connectWith = this._connectWith();
@@ -15965,7 +16293,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15965,7 +16293,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15965 for ( j = cur.length - 1; j >= 0; j-- ) { 16293 for ( j = cur.length - 1; j >= 0; j-- ) {
15966 inst = $.data( cur[ j ], this.widgetFullName ); 16294 inst = $.data( cur[ j ], this.widgetFullName );
15967 if ( inst && inst !== this && !inst.options.disabled ) { 16295 if ( inst && inst !== this && !inst.options.disabled ) {
15968 - queries.push( [ $.isFunction( inst.options.items ) ? 16296 + queries.push( [ typeof inst.options.items === "function" ?
15969 inst.options.items 16297 inst.options.items
15970 .call( inst.element[ 0 ], event, { item: this.currentItem } ) : 16298 .call( inst.element[ 0 ], event, { item: this.currentItem } ) :
15971 $( inst.options.items, inst.element ), inst ] ); 16299 $( inst.options.items, inst.element ), inst ] );
@@ -15996,26 +16324,14 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -15996,26 +16324,14 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
15996 16324
15997 }, 16325 },
15998 16326
15999 - refreshPositions: function( fast ) {  
16000 -  
16001 - // Determine whether items are being displayed horizontally  
16002 - this.floating = this.items.length ?  
16003 - this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :  
16004 - false;  
16005 -  
16006 - //This has to be redone because due to the item being moved out/into the offsetParent,  
16007 - // the offsetParent's position will change  
16008 - if ( this.offsetParent && this.helper ) {  
16009 - this.offset.parent = this._getParentOffset();  
16010 - }  
16011 - 16327 + _refreshItemPositions: function( fast ) {
16012 var i, item, t, p; 16328 var i, item, t, p;
16013 16329
16014 for ( i = this.items.length - 1; i >= 0; i-- ) { 16330 for ( i = this.items.length - 1; i >= 0; i-- ) {
16015 item = this.items[ i ]; 16331 item = this.items[ i ];
16016 16332
16017 //We ignore calculating positions of all connected containers when we're not over them 16333 //We ignore calculating positions of all connected containers when we're not over them
16018 - if ( item.instance !== this.currentContainer && this.currentContainer && 16334 + if ( this.currentContainer && item.instance !== this.currentContainer &&
16019 item.item[ 0 ] !== this.currentItem[ 0 ] ) { 16335 item.item[ 0 ] !== this.currentItem[ 0 ] ) {
16020 continue; 16336 continue;
16021 } 16337 }
@@ -16033,6 +16349,24 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16033,6 +16349,24 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16033 item.left = p.left; 16349 item.left = p.left;
16034 item.top = p.top; 16350 item.top = p.top;
16035 } 16351 }
  16352 + },
  16353 +
  16354 + refreshPositions: function( fast ) {
  16355 +
  16356 + // Determine whether items are being displayed horizontally
  16357 + this.floating = this.items.length ?
  16358 + this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
  16359 + false;
  16360 +
  16361 + // This has to be redone because due to the item being moved out/into the offsetParent,
  16362 + // the offsetParent's position will change
  16363 + if ( this.offsetParent && this.helper ) {
  16364 + this.offset.parent = this._getParentOffset();
  16365 + }
  16366 +
  16367 + this._refreshItemPositions( fast );
  16368 +
  16369 + var i, p;
16036 16370
16037 if ( this.options.custom && this.options.custom.refreshContainers ) { 16371 if ( this.options.custom && this.options.custom.refreshContainers ) {
16038 this.options.custom.refreshContainers.call( this ); 16372 this.options.custom.refreshContainers.call( this );
@@ -16053,20 +16387,20 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16053,20 +16387,20 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16053 16387
16054 _createPlaceholder: function( that ) { 16388 _createPlaceholder: function( that ) {
16055 that = that || this; 16389 that = that || this;
16056 - var className, 16390 + var className, nodeName,
16057 o = that.options; 16391 o = that.options;
16058 16392
16059 if ( !o.placeholder || o.placeholder.constructor === String ) { 16393 if ( !o.placeholder || o.placeholder.constructor === String ) {
16060 className = o.placeholder; 16394 className = o.placeholder;
  16395 + nodeName = that.currentItem[ 0 ].nodeName.toLowerCase();
16061 o.placeholder = { 16396 o.placeholder = {
16062 element: function() { 16397 element: function() {
16063 16398
16064 - var nodeName = that.currentItem[ 0 ].nodeName.toLowerCase(),  
16065 - element = $( "<" + nodeName + ">", that.document[ 0 ] ); 16399 + var element = $( "<" + nodeName + ">", that.document[ 0 ] );
16066 16400
16067 - that._addClass( element, "ui-sortable-placeholder",  
16068 - className || that.currentItem[ 0 ].className )  
16069 - ._removeClass( element, "ui-sortable-helper" ); 16401 + that._addClass( element, "ui-sortable-placeholder",
  16402 + className || that.currentItem[ 0 ].className )
  16403 + ._removeClass( element, "ui-sortable-helper" );
16070 16404
16071 if ( nodeName === "tbody" ) { 16405 if ( nodeName === "tbody" ) {
16072 that._createTrPlaceholder( 16406 that._createTrPlaceholder(
@@ -16095,9 +16429,15 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16095,9 +16429,15 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16095 return; 16429 return;
16096 } 16430 }
16097 16431
16098 - //If the element doesn't have a actual height by itself (without styles coming  
16099 - // from a stylesheet), it receives the inline height from the dragged item  
16100 - if ( !p.height() ) { 16432 + // If the element doesn't have a actual height or width by itself (without
  16433 + // styles coming from a stylesheet), it receives the inline height and width
  16434 + // from the dragged item. Or, if it's a tbody or tr, it's going to have a height
  16435 + // anyway since we're populating them with <td>s above, but they're unlikely to
  16436 + // be the correct height on their own if the row heights are dynamic, so we'll
  16437 + // always assign the height of the dragged item given forcePlaceholderSize
  16438 + // is true.
  16439 + if ( !p.height() || ( o.forcePlaceholderSize &&
  16440 + ( nodeName === "tbody" || nodeName === "tr" ) ) ) {
16101 p.height( 16441 p.height(
16102 that.currentItem.innerHeight() - 16442 that.currentItem.innerHeight() -
16103 parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) - 16443 parseInt( that.currentItem.css( "paddingTop" ) || 0, 10 ) -
@@ -16230,9 +16570,11 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16230,9 +16570,11 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16230 return; 16570 return;
16231 } 16571 }
16232 16572
16233 - itemWithLeastDistance ?  
16234 - this._rearrange( event, itemWithLeastDistance, null, true ) : 16573 + if ( itemWithLeastDistance ) {
  16574 + this._rearrange( event, itemWithLeastDistance, null, true );
  16575 + } else {
16235 this._rearrange( event, null, this.containers[ innermostIndex ].element, true ); 16576 this._rearrange( event, null, this.containers[ innermostIndex ].element, true );
  16577 + }
16236 this._trigger( "change", event, this._uiHash() ); 16578 this._trigger( "change", event, this._uiHash() );
16237 this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) ); 16579 this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) );
16238 this.currentContainer = this.containers[ innermostIndex ]; 16580 this.currentContainer = this.containers[ innermostIndex ];
@@ -16240,6 +16582,15 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16240,6 +16582,15 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16240 //Update the placeholder 16582 //Update the placeholder
16241 this.options.placeholder.update( this.currentContainer, this.placeholder ); 16583 this.options.placeholder.update( this.currentContainer, this.placeholder );
16242 16584
  16585 + //Update scrollParent
  16586 + this.scrollParent = this.placeholder.scrollParent();
  16587 +
  16588 + //Update overflowOffset
  16589 + if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&
  16590 + this.scrollParent[ 0 ].tagName !== "HTML" ) {
  16591 + this.overflowOffset = this.scrollParent.offset();
  16592 + }
  16593 +
16243 this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash( this ) ); 16594 this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash( this ) );
16244 this.containers[ innermostIndex ].containerCache.over = 1; 16595 this.containers[ innermostIndex ].containerCache.over = 1;
16245 } 16596 }
@@ -16249,15 +16600,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16249,15 +16600,13 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16249 _createHelper: function( event ) { 16600 _createHelper: function( event ) {
16250 16601
16251 var o = this.options, 16602 var o = this.options,
16252 - helper = $.isFunction( o.helper ) ? 16603 + helper = typeof o.helper === "function" ?
16253 $( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) : 16604 $( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) :
16254 ( o.helper === "clone" ? this.currentItem.clone() : this.currentItem ); 16605 ( o.helper === "clone" ? this.currentItem.clone() : this.currentItem );
16255 16606
16256 //Add the helper to the DOM if that didn't happen already 16607 //Add the helper to the DOM if that didn't happen already
16257 if ( !helper.parents( "body" ).length ) { 16608 if ( !helper.parents( "body" ).length ) {
16258 - $( o.appendTo !== "parent" ?  
16259 - o.appendTo :  
16260 - this.currentItem[ 0 ].parentNode )[ 0 ].appendChild( helper[ 0 ] ); 16609 + this.appendTo[ 0 ].appendChild( helper[ 0 ] );
16261 } 16610 }
16262 16611
16263 if ( helper[ 0 ] === this.currentItem[ 0 ] ) { 16612 if ( helper[ 0 ] === this.currentItem[ 0 ] ) {
@@ -16285,7 +16634,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16285,7 +16634,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16285 if ( typeof obj === "string" ) { 16634 if ( typeof obj === "string" ) {
16286 obj = obj.split( " " ); 16635 obj = obj.split( " " );
16287 } 16636 }
16288 - if ( $.isArray( obj ) ) { 16637 + if ( Array.isArray( obj ) ) {
16289 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; 16638 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
16290 } 16639 }
16291 if ( "left" in obj ) { 16640 if ( "left" in obj ) {
@@ -16565,9 +16914,12 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16565,9 +16914,12 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16565 16914
16566 _rearrange: function( event, i, a, hardRefresh ) { 16915 _rearrange: function( event, i, a, hardRefresh ) {
16567 16916
16568 - a ? a[ 0 ].appendChild( this.placeholder[ 0 ] ) : 16917 + if ( a ) {
  16918 + a[ 0 ].appendChild( this.placeholder[ 0 ] );
  16919 + } else {
16569 i.item[ 0 ].parentNode.insertBefore( this.placeholder[ 0 ], 16920 i.item[ 0 ].parentNode.insertBefore( this.placeholder[ 0 ],
16570 ( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) ); 16921 ( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) );
  16922 + }
16571 16923
16572 //Various things done here to improve the performance: 16924 //Various things done here to improve the performance:
16573 // 1. we create a setTimeout, that calls refreshPositions 16925 // 1. we create a setTimeout, that calls refreshPositions
@@ -16735,7 +17087,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16735,7 +17087,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16735 17087
16736 17088
16737 /*! 17089 /*!
16738 - * jQuery UI Spinner 1.12.1 17090 + * jQuery UI Spinner 1.13.2
16739 * http://jqueryui.com 17091 * http://jqueryui.com
16740 * 17092 *
16741 * Copyright jQuery Foundation and other contributors 17093 * Copyright jQuery Foundation and other contributors
@@ -16753,8 +17105,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, { @@ -16753,8 +17105,7 @@ var widgetsSortable = $.widget( &quot;ui.sortable&quot;, $.ui.mouse, {
16753 //>>css.theme: ../../themes/base/theme.css 17105 //>>css.theme: ../../themes/base/theme.css
16754 17106
16755 17107
16756 -  
16757 -function spinnerModifer( fn ) { 17108 +function spinnerModifier( fn ) {
16758 return function() { 17109 return function() {
16759 var previous = this.element.val(); 17110 var previous = this.element.val();
16760 fn.apply( this, arguments ); 17111 fn.apply( this, arguments );
@@ -16766,7 +17117,7 @@ function spinnerModifer( fn ) { @@ -16766,7 +17117,7 @@ function spinnerModifer( fn ) {
16766 } 17117 }
16767 17118
16768 $.widget( "ui.spinner", { 17119 $.widget( "ui.spinner", {
16769 - version: "1.12.1", 17120 + version: "1.13.2",
16770 defaultElement: "<input>", 17121 defaultElement: "<input>",
16771 widgetEventPrefix: "spin", 17122 widgetEventPrefix: "spin",
16772 options: { 17123 options: {
@@ -16859,9 +17210,13 @@ $.widget( &quot;ui.spinner&quot;, { @@ -16859,9 +17210,13 @@ $.widget( &quot;ui.spinner&quot;, {
16859 } 17210 }
16860 }, 17211 },
16861 mousewheel: function( event, delta ) { 17212 mousewheel: function( event, delta ) {
16862 - if ( !delta ) { 17213 + var activeElement = $.ui.safeActiveElement( this.document[ 0 ] );
  17214 + var isActive = this.element[ 0 ] === activeElement;
  17215 +
  17216 + if ( !isActive || !delta ) {
16863 return; 17217 return;
16864 } 17218 }
  17219 +
16865 if ( !this.spinning && !this._start( event ) ) { 17220 if ( !this.spinning && !this._start( event ) ) {
16866 return false; 17221 return false;
16867 } 17222 }
@@ -17059,7 +17414,7 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17059,7 +17414,7 @@ $.widget( &quot;ui.spinner&quot;, {
17059 var incremental = this.options.incremental; 17414 var incremental = this.options.incremental;
17060 17415
17061 if ( incremental ) { 17416 if ( incremental ) {
17062 - return $.isFunction( incremental ) ? 17417 + return typeof incremental === "function" ?
17063 incremental( i ) : 17418 incremental( i ) :
17064 Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 ); 17419 Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
17065 } 17420 }
@@ -17157,7 +17512,7 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17157,7 +17512,7 @@ $.widget( &quot;ui.spinner&quot;, {
17157 this.buttons.button( value ? "disable" : "enable" ); 17512 this.buttons.button( value ? "disable" : "enable" );
17158 }, 17513 },
17159 17514
17160 - _setOptions: spinnerModifer( function( options ) { 17515 + _setOptions: spinnerModifier( function( options ) {
17161 this._super( options ); 17516 this._super( options );
17162 } ), 17517 } ),
17163 17518
@@ -17224,7 +17579,7 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17224,7 +17579,7 @@ $.widget( &quot;ui.spinner&quot;, {
17224 this.uiSpinner.replaceWith( this.element ); 17579 this.uiSpinner.replaceWith( this.element );
17225 }, 17580 },
17226 17581
17227 - stepUp: spinnerModifer( function( steps ) { 17582 + stepUp: spinnerModifier( function( steps ) {
17228 this._stepUp( steps ); 17583 this._stepUp( steps );
17229 } ), 17584 } ),
17230 _stepUp: function( steps ) { 17585 _stepUp: function( steps ) {
@@ -17234,7 +17589,7 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17234,7 +17589,7 @@ $.widget( &quot;ui.spinner&quot;, {
17234 } 17589 }
17235 }, 17590 },
17236 17591
17237 - stepDown: spinnerModifer( function( steps ) { 17592 + stepDown: spinnerModifier( function( steps ) {
17238 this._stepDown( steps ); 17593 this._stepDown( steps );
17239 } ), 17594 } ),
17240 _stepDown: function( steps ) { 17595 _stepDown: function( steps ) {
@@ -17244,11 +17599,11 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17244,11 +17599,11 @@ $.widget( &quot;ui.spinner&quot;, {
17244 } 17599 }
17245 }, 17600 },
17246 17601
17247 - pageUp: spinnerModifer( function( pages ) { 17602 + pageUp: spinnerModifier( function( pages ) {
17248 this._stepUp( ( pages || 1 ) * this.options.page ); 17603 this._stepUp( ( pages || 1 ) * this.options.page );
17249 } ), 17604 } ),
17250 17605
17251 - pageDown: spinnerModifer( function( pages ) { 17606 + pageDown: spinnerModifier( function( pages ) {
17252 this._stepDown( ( pages || 1 ) * this.options.page ); 17607 this._stepDown( ( pages || 1 ) * this.options.page );
17253 } ), 17608 } ),
17254 17609
@@ -17256,7 +17611,7 @@ $.widget( &quot;ui.spinner&quot;, { @@ -17256,7 +17611,7 @@ $.widget( &quot;ui.spinner&quot;, {
17256 if ( !arguments.length ) { 17611 if ( !arguments.length ) {
17257 return this._parse( this.element.val() ); 17612 return this._parse( this.element.val() );
17258 } 17613 }
17259 - spinnerModifer( this._value ).call( this, newVal ); 17614 + spinnerModifier( this._value ).call( this, newVal );
17260 }, 17615 },
17261 17616
17262 widget: function() { 17617 widget: function() {
@@ -17293,7 +17648,7 @@ var widgetsSpinner = $.ui.spinner; @@ -17293,7 +17648,7 @@ var widgetsSpinner = $.ui.spinner;
17293 17648
17294 17649
17295 /*! 17650 /*!
17296 - * jQuery UI Tabs 1.12.1 17651 + * jQuery UI Tabs 1.13.2
17297 * http://jqueryui.com 17652 * http://jqueryui.com
17298 * 17653 *
17299 * Copyright jQuery Foundation and other contributors 17654 * Copyright jQuery Foundation and other contributors
@@ -17311,9 +17666,8 @@ var widgetsSpinner = $.ui.spinner; @@ -17311,9 +17666,8 @@ var widgetsSpinner = $.ui.spinner;
17311 //>>css.theme: ../../themes/base/theme.css 17666 //>>css.theme: ../../themes/base/theme.css
17312 17667
17313 17668
17314 -  
17315 $.widget( "ui.tabs", { 17669 $.widget( "ui.tabs", {
17316 - version: "1.12.1", 17670 + version: "1.13.2",
17317 delay: 300, 17671 delay: 300,
17318 options: { 17672 options: {
17319 active: null, 17673 active: null,
@@ -17371,8 +17725,8 @@ $.widget( &quot;ui.tabs&quot;, { @@ -17371,8 +17725,8 @@ $.widget( &quot;ui.tabs&quot;, {
17371 17725
17372 // Take disabling tabs via class attribute from HTML 17726 // Take disabling tabs via class attribute from HTML
17373 // into account and update option properly. 17727 // into account and update option properly.
17374 - if ( $.isArray( options.disabled ) ) {  
17375 - options.disabled = $.unique( options.disabled.concat( 17728 + if ( Array.isArray( options.disabled ) ) {
  17729 + options.disabled = $.uniqueSort( options.disabled.concat(
17376 $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) { 17730 $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
17377 return that.tabs.index( li ); 17731 return that.tabs.index( li );
17378 } ) 17732 } )
@@ -17707,7 +18061,6 @@ $.widget( &quot;ui.tabs&quot;, { @@ -17707,7 +18061,6 @@ $.widget( &quot;ui.tabs&quot;, {
17707 return $( "a", this )[ 0 ]; 18061 return $( "a", this )[ 0 ];
17708 } ) 18062 } )
17709 .attr( { 18063 .attr( {
17710 - role: "presentation",  
17711 tabIndex: -1 18064 tabIndex: -1
17712 } ); 18065 } );
17713 this._addClass( this.anchors, "ui-tabs-anchor" ); 18066 this._addClass( this.anchors, "ui-tabs-anchor" );
@@ -17779,7 +18132,7 @@ $.widget( &quot;ui.tabs&quot;, { @@ -17779,7 +18132,7 @@ $.widget( &quot;ui.tabs&quot;, {
17779 _setOptionDisabled: function( disabled ) { 18132 _setOptionDisabled: function( disabled ) {
17780 var currentItem, li, i; 18133 var currentItem, li, i;
17781 18134
17782 - if ( $.isArray( disabled ) ) { 18135 + if ( Array.isArray( disabled ) ) {
17783 if ( !disabled.length ) { 18136 if ( !disabled.length ) {
17784 disabled = false; 18137 disabled = false;
17785 } else if ( disabled.length === this.anchors.length ) { 18138 } else if ( disabled.length === this.anchors.length ) {
@@ -18010,7 +18363,7 @@ $.widget( &quot;ui.tabs&quot;, { @@ -18010,7 +18363,7 @@ $.widget( &quot;ui.tabs&quot;, {
18010 // meta-function to give users option to provide a href string instead of a numerical index. 18363 // meta-function to give users option to provide a href string instead of a numerical index.
18011 if ( typeof index === "string" ) { 18364 if ( typeof index === "string" ) {
18012 index = this.anchors.index( this.anchors.filter( "[href$='" + 18365 index = this.anchors.index( this.anchors.filter( "[href$='" +
18013 - $.ui.escapeSelector( index ) + "']" ) ); 18366 + $.escapeSelector( index ) + "']" ) );
18014 } 18367 }
18015 18368
18016 return index; 18369 return index;
@@ -18067,7 +18420,7 @@ $.widget( &quot;ui.tabs&quot;, { @@ -18067,7 +18420,7 @@ $.widget( &quot;ui.tabs&quot;, {
18067 disabled = false; 18420 disabled = false;
18068 } else { 18421 } else {
18069 index = this._getIndex( index ); 18422 index = this._getIndex( index );
18070 - if ( $.isArray( disabled ) ) { 18423 + if ( Array.isArray( disabled ) ) {
18071 disabled = $.map( disabled, function( num ) { 18424 disabled = $.map( disabled, function( num ) {
18072 return num !== index ? num : null; 18425 return num !== index ? num : null;
18073 } ); 18426 } );
@@ -18093,7 +18446,7 @@ $.widget( &quot;ui.tabs&quot;, { @@ -18093,7 +18446,7 @@ $.widget( &quot;ui.tabs&quot;, {
18093 if ( $.inArray( index, disabled ) !== -1 ) { 18446 if ( $.inArray( index, disabled ) !== -1 ) {
18094 return; 18447 return;
18095 } 18448 }
18096 - if ( $.isArray( disabled ) ) { 18449 + if ( Array.isArray( disabled ) ) {
18097 disabled = $.merge( [ index ], disabled ).sort(); 18450 disabled = $.merge( [ index ], disabled ).sort();
18098 } else { 18451 } else {
18099 disabled = [ index ]; 18452 disabled = [ index ];
@@ -18199,7 +18552,7 @@ var widgetsTabs = $.ui.tabs; @@ -18199,7 +18552,7 @@ var widgetsTabs = $.ui.tabs;
18199 18552
18200 18553
18201 /*! 18554 /*!
18202 - * jQuery UI Tooltip 1.12.1 18555 + * jQuery UI Tooltip 1.13.2
18203 * http://jqueryui.com 18556 * http://jqueryui.com
18204 * 18557 *
18205 * Copyright jQuery Foundation and other contributors 18558 * Copyright jQuery Foundation and other contributors
@@ -18217,18 +18570,14 @@ var widgetsTabs = $.ui.tabs; @@ -18217,18 +18570,14 @@ var widgetsTabs = $.ui.tabs;
18217 //>>css.theme: ../../themes/base/theme.css 18570 //>>css.theme: ../../themes/base/theme.css
18218 18571
18219 18572
18220 -  
18221 $.widget( "ui.tooltip", { 18573 $.widget( "ui.tooltip", {
18222 - version: "1.12.1", 18574 + version: "1.13.2",
18223 options: { 18575 options: {
18224 classes: { 18576 classes: {
18225 "ui-tooltip": "ui-corner-all ui-widget-shadow" 18577 "ui-tooltip": "ui-corner-all ui-widget-shadow"
18226 }, 18578 },
18227 content: function() { 18579 content: function() {
18228 -  
18229 - // support: IE<9, Opera in jQuery <1.7  
18230 - // .text() can't accept undefined, so coerce to a string  
18231 - var title = $( this ).attr( "title" ) || ""; 18580 + var title = $( this ).attr( "title" );
18232 18581
18233 // Escape title, since we're going from an attribute to raw HTML 18582 // Escape title, since we're going from an attribute to raw HTML
18234 return $( "<a>" ).text( title ).html(); 18583 return $( "<a>" ).text( title ).html();
@@ -18255,7 +18604,7 @@ $.widget( &quot;ui.tooltip&quot;, { @@ -18255,7 +18604,7 @@ $.widget( &quot;ui.tooltip&quot;, {
18255 describedby.push( id ); 18604 describedby.push( id );
18256 elem 18605 elem
18257 .data( "ui-tooltip-id", id ) 18606 .data( "ui-tooltip-id", id )
18258 - .attr( "aria-describedby", $.trim( describedby.join( " " ) ) ); 18607 + .attr( "aria-describedby", String.prototype.trim.call( describedby.join( " " ) ) );
18259 }, 18608 },
18260 18609
18261 _removeDescribedBy: function( elem ) { 18610 _removeDescribedBy: function( elem ) {
@@ -18268,7 +18617,7 @@ $.widget( &quot;ui.tooltip&quot;, { @@ -18268,7 +18617,7 @@ $.widget( &quot;ui.tooltip&quot;, {
18268 } 18617 }
18269 18618
18270 elem.removeData( "ui-tooltip-id" ); 18619 elem.removeData( "ui-tooltip-id" );
18271 - describedby = $.trim( describedby.join( " " ) ); 18620 + describedby = String.prototype.trim.call( describedby.join( " " ) );
18272 if ( describedby ) { 18621 if ( describedby ) {
18273 elem.attr( "aria-describedby", describedby ); 18622 elem.attr( "aria-describedby", describedby );
18274 } else { 18623 } else {
@@ -18514,7 +18863,7 @@ $.widget( &quot;ui.tooltip&quot;, { @@ -18514,7 +18863,7 @@ $.widget( &quot;ui.tooltip&quot;, {
18514 position( positionOption.of ); 18863 position( positionOption.of );
18515 clearInterval( delayedShow ); 18864 clearInterval( delayedShow );
18516 } 18865 }
18517 - }, $.fx.interval ); 18866 + }, 13 );
18518 } 18867 }
18519 18868
18520 this._trigger( "open", event, { tooltip: tooltip } ); 18869 this._trigger( "open", event, { tooltip: tooltip } );
@@ -18535,7 +18884,10 @@ $.widget( &quot;ui.tooltip&quot;, { @@ -18535,7 +18884,10 @@ $.widget( &quot;ui.tooltip&quot;, {
18535 // tooltips will handle this in destroy. 18884 // tooltips will handle this in destroy.
18536 if ( target[ 0 ] !== this.element[ 0 ] ) { 18885 if ( target[ 0 ] !== this.element[ 0 ] ) {
18537 events.remove = function() { 18886 events.remove = function() {
18538 - this._removeTooltip( this._find( target ).tooltip ); 18887 + var targetElement = this._find( target );
  18888 + if ( targetElement ) {
  18889 + this._removeTooltip( targetElement.tooltip );
  18890 + }
18539 }; 18891 };
18540 } 18892 }
18541 18893
@@ -18635,6 +18987,10 @@ $.widget( &quot;ui.tooltip&quot;, { @@ -18635,6 +18987,10 @@ $.widget( &quot;ui.tooltip&quot;, {
18635 }, 18987 },
18636 18988
18637 _removeTooltip: function( tooltip ) { 18989 _removeTooltip: function( tooltip ) {
  18990 +
  18991 + // Clear the interval for delayed tracking tooltips
  18992 + clearInterval( this.delayedShow );
  18993 +
18638 tooltip.remove(); 18994 tooltip.remove();
18639 delete this.tooltips[ tooltip.attr( "id" ) ]; 18995 delete this.tooltips[ tooltip.attr( "id" ) ];
18640 }, 18996 },
@@ -18703,4 +19059,4 @@ var widgetsTooltip = $.ui.tooltip; @@ -18703,4 +19059,4 @@ var widgetsTooltip = $.ui.tooltip;
18703 19059
18704 19060
18705 19061
18706 -}));  
18707 \ No newline at end of file 19062 \ No newline at end of file
  19063 +} );
18708 \ No newline at end of file 19064 \ No newline at end of file
Vrh.Web.Reporting/Areas/WebForm/Scripts/jquery-ui-1.13.2.min.js 0 → 100644
@@ -0,0 +1,451 @@ @@ -0,0 +1,451 @@
  1 +/*! jQuery UI - v1.13.2 - 2022-07-14
  2 +* http://jqueryui.com
  3 +* Includes: widget.js, position.js, data.js, disable-selection.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, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
  4 +* Copyright jQuery Foundation and other contributors; Licensed MIT */
  5 +(function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){"use strict";function o(n){return n==null?n+"":typeof n=="object"?v[pt.call(n)]||"object":typeof n}function c(n,t,i){var r=d[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:Math.min(r.max,Math.max(0,n))}function tt(n){var f=t(),e=f._rgba=[];return(n=n.toLowerCase(),r(bt,function(t,i){var r,s=i.re.exec(n),h=s&&i.parse(s),o=i.space||"rgba";if(h)return r=f[o](h),f[u[o].cache]=r[u[o].cache],e=f._rgba=r._rgba,!1}),e.length)?(e.join()==="0,0,0,0"&&i.extend(e,h.transparent),f):h[n]}function y(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}function ai(n){for(var t=n.css("visibility");t==="inherit";)n=n.parent(),t=n.css("visibility");return t==="visible"}function or(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&i!==0))return i;n=n.parent()}return 0}function ft(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=et(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function et(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,ot)}function ot(){n.datepicker._isDisabledDatepicker(f.inline?f.dpDiv.parent()[0]:f.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function a(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}function e(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var st,lt,at,vt,yt,i,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,b,li,vi,yi,pi,it,rt,wi,bi,ki,di,gi,nr,tr,ir,rr,ut,ur,fr,er,f,sr,hr,s,cr,lr,ar,vr,yr,pr,wr,br,kr,dr,gr,nu;n.ui=n.ui||{};st=n.ui.version="1.13.2";
  6 +/*!
  7 + * jQuery UI Widget 1.13.2
  8 + * http://jqueryui.com
  9 + *
  10 + * Copyright jQuery Foundation and other contributors
  11 + * Released under the MIT license.
  12 + * http://jquery.org/license
  13 + */
  14 +var ht=0,ct=Array.prototype.hasOwnProperty,k=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;(u=i[f])!=null;f++)r=n._data(u,"events"),r&&r.remove&&n(u).triggerHandler("remove");t(i)}}(n.cleanData);n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s;return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),Array.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr.pseudos[s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this||!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(n,t){if(typeof t!="function"){h[n]=t;return}h[n]=function(){function r(){return i.prototype[n].apply(this,arguments)}function u(t){return i.prototype[n].apply(this,t)}return function(){var i=this._super,f=this._superApply,n;return this._super=r,this._superApply=u,n=t.apply(this,arguments),this._super=i,this._superApply=f,n}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var f=k.call(arguments,1),u=0,e=f.length,i,r;u<e;u++)for(i in f[u])r=f[u][i],ct.call(f[u],i)&&r!==undefined&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var o=typeof u=="string",e=k.call(arguments,1),f=this;return o?this.length||u!=="instance"?this.each(function(){var i,o=n.data(this,r);return u==="instance"?(f=o,!1):o?typeof o[u]!="function"||u.charAt(0)==="_"?n.error("no such method '"+u+"' for "+t+" widget instance"):(i=o[u].apply(o,e),i!==o&&i!==undefined?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=undefined:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=ht++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return n==="classes"&&this._setOptionClasses(t),this.options[n]=t,n==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)(r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length)&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function f(){var r=[];t.element.each(function(t,u){var f=n.map(i.classesElementLookup,function(n){return n}).some(function(n){return n.is(u)});f||r.push(u)});i._on(n(r),{remove:"_untrackClassesElement"})}function u(u,e){for(var s,o=0;o<u.length;o++)s=i.classesElementLookup[u[o]]||n(),t.add?(f(),s=n(n.uniqueSort(s.get().concat(t.element.get())))):s=n(s.not(t.element).get()),i.classesElementLookup[u[o]]=s,r.push(u[o]),e&&t.classes[u[o]]&&r.push(t.classes[u[o]])}var r=[],i=this;return t=n.extend({element:this.element,classes:this.options.classes||{}},t),t.keys&&u(t.keys.match(/\S+/g)||[],!0),t.extra&&u(t.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){n.inArray(t.target,u)!==-1&&(i.classesElementLookup[r]=n(u.not(t.target).get()))});this._off(n(t.target))},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){r=typeof r=="boolean"?r:i;var u=typeof n=="string"||n===null,f={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r};return f.element.toggleClass(this._classes(f),r),this},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];if(c)f.on(h,c,o);else i.on(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(typeof e=="function"&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"?u={duration:u}:u===!0&&(u={});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});lt=n.widget;
  15 +/*!
  16 + * jQuery UI Position 1.13.2
  17 + * http://jqueryui.com
  18 + *
  19 + * Copyright jQuery Foundation and other contributors
  20 + * Released under the MIT license.
  21 + * http://jquery.org/license
  22 + *
  23 + * http://api.jqueryui.com/position/
  24 + */
  25 +(function(){function c(n,t,i){return[parseFloat(n[0])*(h.test(n[0])?t/100:1),parseFloat(n[1])*(h.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function l(n){return n!=null&&n===n.window}function v(n){var t=n[0];return t.nodeType===9?{width:n.width(),height:n.height(),offset:{top:0,left:0}}:l(t)?{width:n.width(),height:n.height(),offset:{top:n.scrollTop(),left:n.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:n.outerWidth(),height:n.outerHeight(),offset:n.offset()}}var u,i=Math.max,t=Math.abs,f=/left|center|right/,e=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,a=n.fn.position;n.position={scrollbarWidth:function(){if(u!==undefined)return u;var r,i,t=n("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=l(i[0]),u=!!i[0]&&i[0].nodeType===9,f=!r&&!u;return{element:i,isWindow:r,isDocument:u,offset:f?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return a.apply(this,arguments);u=n.extend({},u);var w,h,l,p,y,k,d=typeof u.of=="string"?n(document).find(u.of):n(u.of),nt=n.position.getWithinInfo(u.within),tt=n.position.getScrollInfo(nt),b=(u.collision||"flip").split(" "),g={};return k=v(d),d[0].preventDefault&&(u.at="left top"),h=k.width,l=k.height,p=k.offset,y=n.extend({},p),n.each(["my","at"],function(){var n=(u[this]||"").split(" "),t,i;n.length===1&&(n=f.test(n[0])?n.concat(["center"]):e.test(n[0])?["center"].concat(n):["center","center"]);n[0]=f.test(n[0])?n[0]:"center";n[1]=e.test(n[1])?n[1]:"center";t=o.exec(n[0]);i=o.exec(n[1]);g[this]=[t?t[0]:0,i?i[0]:0];u[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),b.length===1&&(b[1]=b[0]),u.at[0]==="right"?y.left+=h:u.at[0]==="center"&&(y.left+=h/2),u.at[1]==="bottom"?y.top+=l:u.at[1]==="center"&&(y.top+=l/2),w=c(g.at,h,l),y.left+=w[0],y.top+=w[1],this.each(function(){var v,k,e=n(this),o=e.outerWidth(),s=e.outerHeight(),it=r(this,"marginLeft"),rt=r(this,"marginTop"),ut=o+it+r(this,"marginRight")+tt.width,ft=s+rt+r(this,"marginBottom")+tt.height,f=n.extend({},y),a=c(g.my,e.outerWidth(),e.outerHeight());u.my[0]==="right"?f.left-=o:u.my[0]==="center"&&(f.left-=o/2);u.my[1]==="bottom"?f.top-=s:u.my[1]==="center"&&(f.top-=s/2);f.left+=a[0];f.top+=a[1];v={marginLeft:it,marginTop:rt};n.each(["left","top"],function(t,i){n.ui.position[b[t]]&&n.ui.position[b[t]][i](f,{targetWidth:h,targetHeight:l,elemWidth:o,elemHeight:s,collisionPosition:v,collisionWidth:ut,collisionHeight:ft,offset:[w[0]+a[0],w[1]+a[1]],my:u.my,at:u.at,within:nt,elem:e})});u.using&&(k=function(n){var r=p.left-f.left,v=r+h-o,c=p.top-f.top,y=c+l-s,a={target:{element:d,left:p.left,top:p.top,width:h,height:l},element:{element:e,left:f.left,top:f.top,width:o,height:s},horizontal:v<0?"left":r>0?"right":"center",vertical:y<0?"top":c>0?"bottom":"middle"};h<o&&t(r+v)<h&&(a.horizontal="center");l<s&&t(c+y)<l&&(a.vertical="middle");a.important=i(t(r),t(v))>i(t(c),t(y))?"horizontal":"vertical";u.using.call(this,n,a)});e.offset(n.extend(f,{using:k}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,r=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?r>0&&f<=0?(h=n.left+r+t.collisionWidth-o-u,n.left+=r-h):n.left=f>0&&r<=0?u:r>f?u+o-t.collisionWidth:u:r>0?n.left+=r:f>0?n.left-=f:n.left=i(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,r=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?r>0&&f<=0?(h=n.top+r+t.collisionHeight-e-u,n.top+=r-h):n.top=f>0&&r<=0?u:r>f?u+e-t.collisionHeight:u:r>0?n.top+=r:f>0?n.top-=f:n.top=i(n.top-s,n.top)}},flip:{left:function(n,i){var r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-o,v=l+i.collisionWidth-c-o,u=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,f=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,e=-2*i.offset[0],s,h;a<0?(s=n.left+u+f+e+i.collisionWidth-c-y,(s<0||s<t(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-i.collisionPosition.marginLeft+u+f+e-o,(h>0||t(h)<v)&&(n.left+=u+f+e))},top:function(n,i){var r=i.within,y=r.offset.top+r.scrollTop,c=r.height,o=r.isWindow?r.scrollTop:r.offset.top,l=n.top-i.collisionPosition.marginTop,a=l-o,v=l+i.collisionHeight-c-o,p=i.my[1]==="top",u=p?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,f=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,e=-2*i.offset[1],s,h;a<0?(h=n.top+u+f+e+i.collisionHeight-c-y,(h<0||h<t(a))&&(n.top+=u+f+e)):v>0&&(s=n.top-i.collisionPosition.marginTop+u+f+e-o,(s>0||t(s)<v)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}}})();at=n.ui.position;
  26 +/*!
  27 + * jQuery UI :data 1.13.2
  28 + * http://jqueryui.com
  29 + *
  30 + * Copyright jQuery Foundation and other contributors
  31 + * Released under the MIT license.
  32 + * http://jquery.org/license
  33 + */
  34 +vt=n.extend(n.expr.pseudos,{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});
  35 +/*!
  36 + * jQuery UI Disable Selection 1.13.2
  37 + * http://jqueryui.com
  38 + *
  39 + * Copyright jQuery Foundation and other contributors
  40 + * Released under the MIT license.
  41 + * http://jquery.org/license
  42 + */
  43 +yt=n.fn.extend({disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});i=n;
  44 +/*!
  45 + * jQuery Color Animations v2.2.0
  46 + * https://github.com/jquery/jquery-color
  47 + *
  48 + * Copyright OpenJS Foundation and other contributors
  49 + * Released under the MIT license.
  50 + * http://jquery.org/license
  51 + *
  52 + * Date: Sun May 10 09:02:36 2020 +0200
  53 + */
  54 +var v={},pt=v.toString,wt=/^([\-+])=\s*(\d+\.?\d*)/,bt=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),n[4]?(parseInt(n[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),n[4]?(parseInt(n[4]+n[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(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],t=i.Color=function(n,t,r,u){return new i.Color.fn.parse(n,t,r,u)},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"}}}},d={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},g=t.support={},nt=i("<p>")[0],h,r=i.each;nt.style.cssText="background-color:rgba(1,1,1,.5)";g.rgba=nt.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){v["[object "+t+"]"]=t.toLowerCase()});t.fn=i.extend(t.prototype,{parse:function(n,f,e,s){if(n===undefined)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=i(n).css(f),f=undefined);var l=this,a=o(n),v=this._rgba=[];return(f!==undefined&&(n=[n,f,e,s],a="array"),a==="string")?this.parse(tt(n)||h._default):a==="array"?(r(u.rgba.props,function(t,i){v[i.idx]=c(n[i.idx],i)}),this):a==="object"?(n instanceof t?r(u,function(t,i){n[i.cache]&&(l[i.cache]=n[i.cache].slice())}):r(u,function(t,u){var f=u.cache;r(u.props,function(t,i){if(!l[f]&&u.to){if(t==="alpha"||n[t]==null)return;l[f]=u.to(l._rgba)}l[f][i.idx]=c(n[t],i,!0)});l[f]&&i.inArray(null,l[f].slice(0,3))<0&&(l[f][3]==null&&(l[f][3]=1),u.from&&(l._rgba=u.from(l[f])))}),this):void 0},is:function(n){var e=t(n),i=!0,f=this;return r(u,function(n,t){var o,u=e[t.cache];return u&&(o=f[t.cache]||t.to&&t.to(f._rgba)||[],r(t.props,function(n,t){if(u[t.idx]!=null)return i=u[t.idx]===o[t.idx]})),i}),i},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,i){var f=t(n),s=f._space(),e=u[s],h=this.alpha()===0?t("transparent"):this,l=h[e.cache]||e.to(h._rgba),o=l.slice();return f=f[e.cache],r(e.props,function(n,t){var s=t.idx,r=l[s],u=f[s],e=d[t.type]||{};u!==null&&(r===null?o[s]=u:(e.mod&&(u-r>e.mod/2?r+=e.mod:r-u>e.mod/2&&(r-=e.mod)),o[s]=c((u-r)*i+r,t)))}),this[s](o)},blend:function(n){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=t(n)._rgba;return t(i.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var t="rgba(",n=i.map(this._rgba,function(n,t){return n!=null?n:t>2?1:0});return n[3]===1&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=i.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return n[3]===1&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(n){var t=this._rgba.slice(),r=t.pop();return n&&t.push(~~(r*255)),"#"+i.map(t,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});t.fn.parse.prototype=t.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(y(f,i,r+1/3)*255),Math.round(y(f,i,r)*255),Math.round(y(f,i,r-1/3)*255),e]};r(u,function(n,i){var f=i.props,u=i.cache,e=i.to,s=i.from;t.fn[n]=function(n){if(e&&!this[u]&&(this[u]=e(this._rgba)),n===undefined)return this[u].slice();var h,l=o(n),a=l==="array"||l==="object"?n:arguments,i=this[u].slice();return r(f,function(n,t){var r=a[l==="object"?n:t.idx];r==null&&(r=i[t.idx]);i[t.idx]=c(r,t)}),s?(h=t(s(i)),h[u]=i,h):t(i)};r(f,function(i,r){t.fn[i]||(t.fn[i]=function(t){var u,f,e,h,s=o(t);return(h=i==="alpha"?this._hsla?"hsla":"rgba":n,u=this[h](),f=u[r.idx],s==="undefined")?f:(s==="function"&&(t=t.call(this,f),s=o(t)),t==null&&r.empty)?this:(s==="string"&&(e=wt.exec(t),e&&(t=f+parseFloat(e[2])*(e[1]==="+"?1:-1))),u[r.idx]=t,this[h](u))})})});t.hook=function(n){var u=n.split(" ");r(u,function(n,r){i.cssHooks[r]={set:function(n,u){var s,f,e="";if(u!=="transparent"&&(o(u)!=="string"||(s=tt(u)))){if(u=t(s||u),!g.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?n.parentNode:n;(e===""||e==="transparent")&&f&&f.style;)try{e=i.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{n.style[r]=u}catch(h){}}};i.fx.step[r]=function(n){n.colorInit||(n.start=t(n.elem,r),n.end=t(n.end),n.colorInit=!0);i.cssHooks[r].set(n.elem,n.start.transition(n.end,n.pos))}})};t.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");i.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};h=i.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"};
  55 +/*!
  56 + * jQuery UI Effects 1.13.2
  57 + * http://jqueryui.com
  58 + *
  59 + * Copyright jQuery Foundation and other contributors
  60 + * Released under the MIT license.
  61 + * http://jquery.org/license
  62 + */
  63 +var l="ui-effects-",p="ui-effects-style",w="ui-effects-animated";n.effects={effect:{}},function(){function f(n){return n.replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()})}function t(n){var i,r,t=n.ownerDocument.defaultView?n.ownerDocument.defaultView.getComputedStyle(n,null):n.currentStyle,u={};if(t&&t.length&&t[0]&&t[t[0]])for(r=t.length;r--;)i=t[r],typeof t[i]=="string"&&(u[f(i)]=t[i]);else for(i in t)typeof t[i]=="string"&&(u[i]=t[i]);return u}function e(t,i){var e={},r,f;for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,r){n.fx.step[r]=function(n){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(i.style(n.elem,r,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(i,u,f,o){var s=n.speed(u,f,o);return this.queue(function(){var f=n(this),h=f.attr("class")||"",o,u=s.children?f.find("*").addBack():f;u=u.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(r,function(n,t){i[t]&&f[t+"Class"](i[t])})};o();u=u.map(function(){return this.end=t(this.el[0]),this.diff=e(this.start,this.end),this});f.attr("class",h);u=u.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,u.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(f[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return typeof r=="boolean"||r===undefined?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},i==null&&(i={}),typeof i=="function"&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),typeof r=="function"&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:typeof t=="function"?!0:typeof t=="object"&&!t.effect?!0:!1}function r(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:i[2]==="auto"?r:parseFloat(i[2]),bottom:i[3]==="auto"?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.pseudos&&n.expr.pseudos.animated&&(n.expr.pseudos.animated=function(t){return function(i){return!!n(i).data(w)||t(i)}}(n.expr.pseudos.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;i<r;i++)t[i]!==null&&n.data(l+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,u=t.length;i<u;i++)t[i]!==null&&(r=n.data(l+t[i]),n.css(t[i],r))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),t.css("position")==="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.13.2",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(t===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=i!=="horizontal"?(t||100)/100:1,u=i!=="vertical"?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(p,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(p)||"";n.removeData(p)},mode:function(n,t){var i=n.is(":hidden");return t==="toggle"&&(t=i?"show":"hide"),(i?t==="hide":t==="show")&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),u=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(l+"placeholder",i)),t.css({position:r,left:u.left,top:u.top}),i},removePlaceholder:function(n){var t=l+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function l(t){function c(){o.removeData(w);n.effects.cleanUp(o);i.mode==="hide"&&o.hide();s()}function s(){typeof f=="function"&&f.call(o[0]);typeof t=="function"&&t()}var o=n(this);i.mode=h.shift();n.uiBackCompat===!1||u?i.mode==="none"?(o[r](),s()):e.call(o[0],i,c):(o.is(":hidden")?r==="hide":r==="show")?(o[r](),s()):e.call(o[0],i,s)}var i=t.apply(this,arguments),e=n.effects.effect[i.effect],u=e.mode,o=i.queue,s=o||"fx",f=i.complete,r=i.mode,h=[],c=function(t){var f=n(this),i=n.effects.mode(f,r)||u;f.data(w,!0);h.push(i);u&&(i==="show"||i===u&&i==="hide")&&f.show();u&&i==="none"||n.effects.saveStyle(f);typeof t=="function"&&t()};return n.fx.off||!e?r?this[r](i.duration,f):this.each(function(){f&&f.call(this)}):o===!1?this.each(c).each(l):this.queue(s,c).queue(s,l)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||typeof r=="boolean")return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),a={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),l=n("<div class='ui-effects-transfer'><\/div>");l.appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove();typeof i=="function"&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),typeof t.end=="string"&&(t.end=r(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}();b=n.effects;
  64 +/*!
  65 + * jQuery UI Effects Blind 1.13.2
  66 + * http://jqueryui.com
  67 + *
  68 + * Copyright jQuery Foundation and other contributors
  69 + * Released under the MIT license.
  70 + * http://jquery.org/license
  71 + */
  72 +kt=n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];t.mode==="show"&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  73 +/*!
  74 + * jQuery UI Effects Bounce 1.13.2
  75 + * http://jqueryui.com
  76 + *
  77 + * Copyright jQuery Foundation and other contributors
  78 + * Released under the MIT license.
  79 + * http://jquery.org/license
  80 + */
  81 +dt=n.effects.define("bounce",function(t,i){var e,o,a,u=n(this),p=t.mode,s=p==="hide",w=p==="show",h=t.direction||"up",r=t.distance,v=t.times||5,b=v*2+(w||s?1:0),c=t.duration/b,l=t.easing,f=h==="up"||h==="down"?"top":"left",y=h==="up"||h==="left",k=0,d=u.queue().length;for(n.effects.createPlaceholder(u),a=u.css(f),r||(r=u[f==="top"?"outerHeight":"outerWidth"]()/3),w&&(o={opacity:1},o[f]=a,u.css("opacity",0).css(f,y?-r*2:r*2).animate(o,c,l)),s&&(r=r/Math.pow(2,v-1)),o={},o[f]=a;k<v;k++)e={},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l).animate(o,c,l),r=s?r*2:r/2;s&&(e={opacity:0},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l));u.queue(i);n.effects.unshift(u,d,b+1)});
  82 +/*!
  83 + * jQuery UI Effects Clip 1.13.2
  84 + * http://jqueryui.com
  85 + *
  86 + * Copyright jQuery Foundation and other contributors
  87 + * Released under the MIT license.
  88 + * http://jquery.org/license
  89 + */
  90 +gt=n.effects.define("clip","hide",function(t,i){var r,u={},f=n(this),e=t.direction||"vertical",o=e==="both",s=o||e==="horizontal",h=o||e==="vertical";r=f.cssClip();u.clip={top:h?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:h?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(f);t.mode==="show"&&(f.cssClip(u.clip),u.clip=r);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  91 +/*!
  92 + * jQuery UI Effects Drop 1.13.2
  93 + * http://jqueryui.com
  94 + *
  95 + * Copyright jQuery Foundation and other contributors
  96 + * Released under the MIT license.
  97 + * http://jquery.org/license
  98 + */
  99 +ni=n.effects.define("drop","hide",function(t,i){var e,u=n(this),h=t.mode,c=h==="show",f=t.direction||"left",o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left"?"-=":"+=",l=s==="+="?"-=":"+=",r={opacity:0};n.effects.createPlaceholder(u);e=t.distance||u[o==="top"?"outerHeight":"outerWidth"](!0)/2;r[o]=s+e;c&&(u.css(r),r[o]=l+e,r.opacity=1);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  100 +/*!
  101 + * jQuery UI Effects Explode 1.13.2
  102 + * http://jqueryui.com
  103 + *
  104 + * Copyright jQuery Foundation and other contributors
  105 + * Released under the MIT license.
  106 + * http://jquery.org/license
  107 + */
  108 +ti=n.effects.define("explode","hide",function(t,i){function k(){p.push(this);p.length===e*c&&d()}function d(){o.css({visibility:"visible"});n(p).remove();i()}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),b=t.mode,f=b==="show",w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;r<e;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;u<c;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,k)});
  109 +/*!
  110 + * jQuery UI Effects Fade 1.13.2
  111 + * http://jqueryui.com
  112 + *
  113 + * Copyright jQuery Foundation and other contributors
  114 + * Released under the MIT license.
  115 + * http://jquery.org/license
  116 + */
  117 +ii=n.effects.define("fade","toggle",function(t,i){var r=t.mode==="show";n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  118 +/*!
  119 + * jQuery UI Effects Fold 1.13.2
  120 + * http://jqueryui.com
  121 + *
  122 + * Copyright jQuery Foundation and other contributors
  123 + * Released under the MIT license.
  124 + * http://jquery.org/license
  125 + */
  126 +ri=n.effects.define("fold","hide",function(t,i){var u=n(this),l=t.mode,v=l==="show",y=l==="hide",o=t.size||15,a=/([0-9]+)%/.exec(o),p=!!t.horizFirst,f=p?["right","bottom"]:["bottom","right"],s=t.duration/2,h=n.effects.createPlaceholder(u),e=u.cssClip(),c={clip:n.extend({},e)},r={clip:n.extend({},e)},w=[e[f[0]],e[f[1]]],b=u.queue().length;a&&(o=parseInt(a[1],10)/100*w[y?0:1]);c.clip[f[0]]=o;r.clip[f[0]]=o;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),h&&h.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){h&&h.animate(n.effects.clipToBox(c),s,t.easing).animate(n.effects.clipToBox(r),s,t.easing);i()}).animate(c,s,t.easing).animate(r,s,t.easing).queue(i);n.effects.unshift(u,b,4)});
  127 +/*!
  128 + * jQuery UI Effects Highlight 1.13.2
  129 + * http://jqueryui.com
  130 + *
  131 + * Copyright jQuery Foundation and other contributors
  132 + * Released under the MIT license.
  133 + * http://jquery.org/license
  134 + */
  135 +ui=n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};t.mode==="hide"&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  136 +/*!
  137 + * jQuery UI Effects Size 1.13.2
  138 + * http://jqueryui.com
  139 + *
  140 + * Copyright jQuery Foundation and other contributors
  141 + * Released under the MIT license.
  142 + * http://jquery.org/license
  143 + */
  144 +fi=n.effects.define("size",function(t,i){var l,r,p,u=n(this),v=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=t.mode,y=w!=="effect",c=t.scale||"both",b=t.origin||["middle","center"],k=u.css("position"),a=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);w==="show"&&(p=f,f=e,e=p);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};(c==="box"||c==="both")&&(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,s,r.from.y,f),e=n.effects.setTransition(u,s,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,h,r.from.x,f),e=n.effects.setTransition(u,h,r.to.x,e)));(c==="content"||c==="both")&&r.from.y!==r.to.y&&(f=n.effects.setTransition(u,v,r.from.y,f),e=n.effects.setTransition(u,v,r.to.y,e));b&&(l=n.effects.getBaseline(b,o),f.top=(o.outerHeight-f.outerHeight)*l.y+a.top,f.left=(o.outerWidth-f.outerWidth)*l.x+a.left,e.top=(o.outerHeight-e.outerHeight)*l.y+a.top,e.left=(o.outerWidth-e.outerWidth)*l.x+a.left);delete f.outerHeight;delete f.outerWidth;u.css(f);(c==="content"||c==="both")&&(s=s.concat(["marginTop","marginBottom"]).concat(v),h=h.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var i=n(this),u=n.effects.scaledDimensions(i),f={height:u.height*r.from.y,width:u.width*r.from.x,outerHeight:u.outerHeight*r.from.y,outerWidth:u.outerWidth*r.from.x},e={height:u.height*r.to.y,width:u.width*r.to.x,outerHeight:u.height*r.to.y,outerWidth:u.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(i,s,r.from.y,f),e=n.effects.setTransition(i,s,r.to.y,e));r.from.x!==r.to.x&&(f=n.effects.setTransition(i,h,r.from.x,f),e=n.effects.setTransition(i,h,r.to.x,e));y&&n.effects.saveStyle(i);i.css(f);i.animate(e,t.duration,t.easing,function(){y&&n.effects.restoreStyle(i)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();e.opacity===0&&u.css("opacity",f.opacity);y||(u.css("position",k==="static"?"relative":k).offset(t),n.effects.saveStyle(u));i()}})});
  145 +/*!
  146 + * jQuery UI Effects Scale 1.13.2
  147 + * http://jqueryui.com
  148 + *
  149 + * Copyright jQuery Foundation and other contributors
  150 + * Released under the MIT license.
  151 + * http://jquery.org/license
  152 + */
  153 +ei=n.effects.define("scale",function(t,i){var u=n(this),f=t.mode,e=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:f!=="effect"?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,e,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});
  154 +/*!
  155 + * jQuery UI Effects Puff 1.13.2
  156 + * http://jqueryui.com
  157 + *
  158 + * Copyright jQuery Foundation and other contributors
  159 + * Released under the MIT license.
  160 + * http://jquery.org/license
  161 + */
  162 +oi=n.effects.define("puff","hide",function(t,i){var r=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,r,i)});
  163 +/*!
  164 + * jQuery UI Effects Pulsate 1.13.2
  165 + * http://jqueryui.com
  166 + *
  167 + * Copyright jQuery Foundation and other contributors
  168 + * Released under the MIT license.
  169 + * http://jquery.org/license
  170 + */
  171 +si=n.effects.define("pulsate","show",function(t,i){var r=n(this),e=t.mode,o=e==="show",c=e==="hide",l=o||c,f=(t.times||5)*2+(l?1:0),s=t.duration/f,u=0,h=1,a=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1);h<f;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,a,f+1)});
  172 +/*!
  173 + * jQuery UI Effects Shake 1.13.2
  174 + * http://jqueryui.com
  175 + *
  176 + * Copyright jQuery Foundation and other contributors
  177 + * Released under the MIT license.
  178 + * http://jquery.org/license
  179 + */
  180 +hi=n.effects.define("shake",function(t,i){var l=1,r=n(this),f=t.direction||"left",e=t.distance||20,a=t.times||3,v=a*2+1,u=Math.round(t.duration/v),o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left",h={},c={},y={},p=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+e*2,y[o]=(s?"-=":"+=")+e*2,r.animate(h,u,t.easing);l<a;l++)r.animate(c,u,t.easing).animate(y,u,t.easing);r.animate(c,u,t.easing).animate(h,u/2,t.easing).queue(i);n.effects.unshift(r,p,v+1)});
  181 +/*!
  182 + * jQuery UI Effects Slide 1.13.2
  183 + * http://jqueryui.com
  184 + *
  185 + * Copyright jQuery Foundation and other contributors
  186 + * Released under the MIT license.
  187 + * http://jquery.org/license
  188 + */
  189 +ci=n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",l=f==="up"||f==="left",a=t.distance||u[e==="top"?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];c==="show"&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
  190 +/*!
  191 + * jQuery UI Effects Transfer 1.13.2
  192 + * http://jqueryui.com
  193 + *
  194 + * Copyright jQuery Foundation and other contributors
  195 + * Released under the MIT license.
  196 + * http://jquery.org/license
  197 + */
  198 +n.uiBackCompat!==!1&&(b=n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}));li=b;
  199 +/*!
  200 + * jQuery UI Focusable 1.13.2
  201 + * http://jqueryui.com
  202 + *
  203 + * Copyright jQuery Foundation and other contributors
  204 + * Released under the MIT license.
  205 + * http://jquery.org/license
  206 + */
  207 +n.ui.focusable=function(t,i){var u,f,e,r,o,s=t.nodeName.toLowerCase();return"area"===s?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap='#"+f+"']"),e.length>0&&e.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(r=!t.disabled,r&&(o=n(t).closest("fieldset")[0],o&&(r=!o.disabled))):r="a"===s?t.href||i:i,r&&n(t).is(":visible")&&ai(n(t)))};n.extend(n.expr.pseudos,{focusable:function(t){return n.ui.focusable(t,n.attr(t,"tabindex")!=null)}});vi=n.ui.focusable;yi=n.fn._form=function(){return typeof this[0].form=="string"?this.closest("form"):n(this[0].form)};
  208 +/*!
  209 + * jQuery UI Form Reset Mixin 1.13.2
  210 + * http://jqueryui.com
  211 + *
  212 + * Copyright jQuery Foundation and other contributors
  213 + * Released under the MIT license.
  214 + * http://jquery.org/license
  215 + */
  216 +pi=n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var n=this.form.data("ui-form-reset-instances")||[];if(!n.length)this.form.on("reset.ui-form-reset",this._formResetHandler);n.push(this);this.form.data("ui-form-reset-instances",n)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(n.inArray(this,t),1);t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};
  217 +/*!
  218 + * jQuery UI Support for jQuery core 1.8.x and newer 1.13.2
  219 + * http://jqueryui.com
  220 + *
  221 + * Copyright jQuery Foundation and other contributors
  222 + * Released under the MIT license.
  223 + * http://jquery.org/license
  224 + *
  225 + */
  226 +n.expr.pseudos||(n.expr.pseudos=n.expr[":"]);n.uniqueSort||(n.uniqueSort=n.unique);n.escapeSelector||(it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,rt=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},n.escapeSelector=function(n){return(n+"").replace(it,rt)});n.fn.even&&n.fn.odd||n.fn.extend({even:function(){return this.filter(function(n){return n%2==0})},odd:function(){return this.filter(function(n){return n%2==1})}});
  227 +/*!
  228 + * jQuery UI Keycode 1.13.2
  229 + * http://jqueryui.com
  230 + *
  231 + * Copyright jQuery Foundation and other contributors
  232 + * Released under the MIT license.
  233 + * http://jquery.org/license
  234 + */
  235 +wi=n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};
  236 +/*!
  237 + * jQuery UI Labels 1.13.2
  238 + * http://jqueryui.com
  239 + *
  240 + * Copyright jQuery Foundation and other contributors
  241 + * Released under the MIT license.
  242 + * http://jquery.org/license
  243 + */
  244 +bi=n.fn.labels=function(){var t,r,u,i,f;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),u=this.attr("id"),u&&(t=this.eq(0).parents().last(),f=t.add(t.length?t.siblings():this.siblings()),r="label[for='"+n.escapeSelector(u)+"']",i=i.add(f.find(r).addBack(r))),this.pushStack(i)):this.pushStack([])};
  245 +/*!
  246 + * jQuery UI Scroll Parent 1.13.2
  247 + * http://jqueryui.com
  248 + *
  249 + * Copyright jQuery Foundation and other contributors
  250 + * Released under the MIT license.
  251 + * http://jquery.org/license
  252 + */
  253 +ki=n.fn.scrollParent=function(t){var i=this.css("position"),u=i==="absolute",f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&t.css("position")==="static"?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return i==="fixed"||!r.length?n(this[0].ownerDocument||document):r};
  254 +/*!
  255 + * jQuery UI Tabbable 1.13.2
  256 + * http://jqueryui.com
  257 + *
  258 + * Copyright jQuery Foundation and other contributors
  259 + * Released under the MIT license.
  260 + * http://jquery.org/license
  261 + */
  262 +di=n.extend(n.expr.pseudos,{tabbable:function(t){var i=n.attr(t,"tabindex"),r=i!=null;return(!r||i>=0)&&n.ui.focusable(t,r)}});
  263 +/*!
  264 + * jQuery UI Unique ID 1.13.2
  265 + * http://jqueryui.com
  266 + *
  267 + * Copyright jQuery Foundation and other contributors
  268 + * Released under the MIT license.
  269 + * http://jquery.org/license
  270 + */
  271 +gi=n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});
  272 +/*!
  273 + * jQuery UI Accordion 1.13.2
  274 + * http://jqueryui.com
  275 + *
  276 + * Copyright jQuery Foundation and other contributors
  277 + * Released under the MIT license.
  278 + * http://jquery.org/license
  279 + */
  280 +nr=n.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(n){return n.find("> li > :first-child").add(n.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||t.active!==!1&&t.active!=null||(t.active=0);this._processPanels();t.active<0&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var i,r,t=this.options.icons;t&&(i=n("<span>"),this._addClass(i,"ui-accordion-header-icon","ui-icon "+t.header),i.prependTo(this.headers),r=this.active.children(".ui-accordion-header-icon"),this._removeClass(r,t.header)._addClass(r,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t));this._super(n,t);n!=="collapsible"||t||this.options.active!==!1||this._activate(0);n==="icons"&&(this._destroyIcons(),t&&this._createIcons())},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();(t.active!==!1||t.collapsible!==!0)&&this.headers.length?t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active):(t.active=!1,this.active=n());this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers=typeof this.options.header=="function"?this.options.header(this.element):this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);r==="fill"?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var e,o,i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],s=f&&i.collapsible,c=s?n():r.next(),l=u.next(),h={oldHeader:u,oldPanel:l,newHeader:s?n():r,newPanel:c};(t.preventDefault(),(!f||i.collapsible)&&this._trigger("beforeActivate",t,h)!==!1)&&(i.active=s?!1:this.headers.index(r),this.active=f?n():r,this._toggle(h),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(e=u.children(".ui-accordion-header-icon"),this._removeClass(e,null,i.icons.activeHeader)._addClass(e,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return parseInt(n(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.css("box-sizing"),a=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=a&&e.down||e,s=function(){c._toggleComplete(i)};if(typeof f=="number"&&(u=f),typeof f=="string"&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,!t.length)return n.animate(this.showProps,u,r,s);if(!n.length)return t.animate(this.hideProps,u,r,s);h=n.show().outerHeight();t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}});n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);i.prop!=="height"?l==="content-box"&&(o+=i.now):c.options.heightStyle!=="content"&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}})},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});tr=n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t||(t=n.body),t.nodeName||(t=n.body),t};
  281 +/*!
  282 + * jQuery UI Menu 1.13.2
  283 + * http://jqueryui.com
  284 + *
  285 + * Copyright jQuery Foundation and other contributors
  286 + * Released under the MIT license.
  287 + * http://jquery.org/license
  288 + */
  289 +ir=n.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",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(n){n.preventDefault();this._activateItem(n)},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this._menuItems().first();t||this.focus(n,i)},blur:function(t){this._delay(function(){var i=!n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n,!0);this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget);r[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=t.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();i.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,u,r,f,e=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=!1;u=this.previousFilter||"";f=!1;r=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===u?f=!0:r=u+r;i=this._filterMenuItems(r);i=f&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}e&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var u,t,f,i,e,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);f=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),u=n("<span>").data("ui-menu-submenu-caret",!0);r._addClass(u,"ui-menu-icon","ui-icon "+s);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});this._addClass(f,"ui-menu","ui-widget ui-widget-content ui-front");u=o.add(this.element);t=u.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);r._isDivider(t)&&r._addClass(t,"ui-menu-divider","ui-widget-content")});i=t.not(".ui-menu-item, .ui-menu-divider");e=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper");t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){if(n==="icons"){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",String(n));this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i,r,u;this.blur(n,n&&n.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children(".ui-menu-item-wrapper");this._addClass(r,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));u=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(u,null,"ui-state-active");n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},i?0:this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},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(n){return(n||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").last():this.active[n+"All"](".ui-menu-item").first());r&&r.length&&this.active||(r=this._menuItems(this.activeMenu)[t]());this.focus(i,r)},nextPage:function(t){var i,u,r;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(u=this.active.offset().top,r=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-u-r<0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(t){var i,u,r;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(u=this.active.offset().top,r=this.element.innerHeight(),n.fn.jquery.indexOf("3.2.")===0&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-u+r>0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(String.prototype.trim.call(n(this).children(".ui-menu-item-wrapper").text()))})}});
  290 +/*!
  291 + * jQuery UI Autocomplete 1.13.2
  292 + * http://jqueryui.com
  293 + *
  294 + * Copyright jQuery Foundation and other contributors
  295 + * Released under the MIT license.
  296 + * http://jquery.org/license
  297 + */
  298 +n.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f||!e&&this._isContentEditable(this.element);this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0;r=!0;i=!0;return}t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(n){n.preventDefault()},menufocus:function(t,i){var r,u;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}u=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value);r=i.item.attr("aria-label")||u.value;r&&String.prototype.trim.call(r).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(r))},100))},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var n=++this.requestIndex;return function(t){n===this.requestIndex&&this.__response(t);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this.isMultiLine||this._value(this.term);this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return t==="inherit"?this._isContentEditable(n.parent()):t==="true"}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(i))},100))}});rr=n.ui.autocomplete;
  299 +/*!
  300 + * jQuery UI Controlgroup 1.13.2
  301 + * http://jqueryui.com
  302 + *
  303 + * Copyright jQuery Foundation and other contributors
  304 + * Released under the MIT license.
  305 + * http://jquery.org/license
  306 + */
  307 +ut=/ui-corner-([a-z]){2,6}/g;ur=n.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u){if(r==="controlgroupLabel"){f=t.element.find(u);f.each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")});t._addClass(f,null,"ui-widget ui-widget-content ui-state-default");i=i.concat(f.get());return}n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),f=u[r]("instance"),o=n.widget.extend({},e),s;r==="button"&&u.parent(".ui-spinner").length||(f||(f=u[r]()[r]("instance")),f&&(o.classes=t._resolveClassesValues(o.classes,f)),u[r](o),s=u[r]("widget"),n.data(s[0],"ui-controlgroup-data",f?f:u[r]("instance")),i.push(s[0]))}))}});this.childWidgets=n(n.uniqueSort(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var r=n(this),i=r.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,i)},_buildSimpleOptions:function(n,t){var i=this.options.direction==="vertical",r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){var t=this._buildSimpleOptions(n,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t=this.options.direction==="vertical";return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(n){var u=i.options.classes[n]||"";u=String.prototype.trim.call(u.replace(ut,""));r[n]=(u+" "+t[n]).replace(/\s+/g," ")}),r},_setOption:function(n,t){if(n==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(n,t),n==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;this.options.onlyVisible&&(t=t.filter(":visible"));t.length&&(n.each(["first","last"],function(n,r){var u=t[r]().data("ui-controlgroup-data"),f;u&&i["_"+u.widgetName+"Options"]?(f=i["_"+u.widgetName+"Options"](t.length===1?"only":r),f.classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});
  308 +/*!
  309 + * jQuery UI Checkboxradio 1.13.2
  310 + * http://jqueryui.com
  311 + *
  312 + * Copyright jQuery Foundation and other contributors
  313 + * Released under the MIT license.
  314 + * http://jquery.org/license
  315 + */
  316 +n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,r,u=this._super()||{};return this._readType(),i=this.element.labels(),this.label=n(i[i.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",r=this.label.contents().not(this.element[0]),r.length&&(this.originalLabel+=r.clone().wrapAll("<div><\/div>").parent().html()),this.originalLabel&&(u.label=this.originalLabel),t=this.element[0].disabled,t!=null&&(u.disabled=t),u},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();this.options.disabled==null&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active");this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;t==="input"&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,i=this.element[0].name,r="input[name='"+n.escapeSelector(i)+"']";return i?(t=this.form.length?n(this.form[0].elements).filter(r):n(r).filter(function(){return n(this)._form().length===0}),t.not(this.element)):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);this.type==="radio"&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if(n!=="label"||t){if(this._super(n,t),n==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t);this.element[0].disabled=t;return}this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));this.iconSpace&&(n=n.not(this.iconSpace[0]));n.remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);this.options.label!==null&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);fr=n.ui.checkboxradio;
  317 +/*!
  318 + * jQuery UI Button 1.13.2
  319 + * http://jqueryui.com
  320 + *
  321 + * Copyright jQuery Foundation and other contributors
  322 + * Released under the MIT license.
  323 + * http://jquery.org/license
  324 + */
  325 +n.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var n,t=this._super()||{};return this.isInput=this.element.is("input"),n=this.element[0].disabled,n!=null&&(t.disabled=n),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u=t!=="iconPosition",r=u?this.options.iconPosition:i,f=r==="top"||r==="bottom";this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=n.showLabel===undefined?this.options.showLabel:n.showLabel,i=n.icon===undefined?this.options.icon:n.icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){n==="icon"&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));n==="iconPosition"&&this._updateIcon(n,t);n==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());n==="label"&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);n==="disabled"&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon);this._super()},_setOption:function(n,t){if(n==="text"){this._super("showLabel",t);return}n==="showLabel"&&(this.options.text=t);n==="icon"&&(this.options.icons.primary=t);n==="icons"&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end")));this._superApply(arguments)}}),n.fn.button=function(t){return function(i){var f=typeof i=="string",u=Array.prototype.slice.call(arguments,1),r=this;return f?this.length||i!=="instance"?this.each(function(){var t,e=n(this).attr("type"),o=e!=="checkbox"&&e!=="radio"?"button":"checkboxradio",f=n.data(this,"ui-"+o);return i==="instance"?(r=f,!1):f?typeof f[i]!="function"||i.charAt(0)==="_"?n.error("no such method '"+i+"' for button widget instance"):(t=f[i].apply(f,u),t!==f&&t!==undefined?(r=t&&t.jquery?r.pushStack(t.get()):t,!1):void 0):n.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):r=undefined:(u.length&&(i=n.widget.extend.apply(null,[i].concat(u))),this.each(function(){var u=n(this).attr("type"),f=u!=="checkbox"&&u!=="radio"?"button":"checkboxradio",r=n.data(this,"ui-"+f);if(r)r.option(i||{}),r._init&&r._init();else{if(f==="button"){t.call(n(this),i);return}n(this).checkboxradio(n.extend({icon:!1},i))}})),r}}(n.fn.button),n.fn.buttonset=function(){return(n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2])?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});er=n.ui.button;
  326 +/*!
  327 + * jQuery UI Datepicker 1.13.2
  328 + * http://jqueryui.com
  329 + *
  330 + * Copyright jQuery Foundation and other contributors
  331 + * Released under the MIT license.
  332 + * http://jquery.org/license
  333 + */
  334 +n.extend(n.ui,{datepicker:{version:"1.13.2"}});n.extend(ft.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return a(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?et(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);if(i.append=n([]),i.trigger=n([]),!r.hasClass(this.markerClassName)){this._attachments(r,i);r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(i);n.data(t,"datepicker",i);i.settings.disabled&&this._disableDatepicker(t)}},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");if(i.append&&i.append.remove(),e&&(i.append=n("<span>").addClass(this._appendClass).text(e),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),u==="focus"||u==="both")t.on("focus",this._showDatepicker);if(u==="button"||u==="both"){r=this._get(i,"buttonText");f=this._get(i,"buttonImage");this._get(i,"buttonImageOnly")?i.trigger=n("<img>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):(i.trigger=n("<button type='button'>").addClass(this._triggerClass),f?i.trigger.html(n("<img>").attr({src:f,alt:r,title:r})):i.trigger.text(r));t[o?"before":"after"](i.trigger);i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,u,f){var o,s,h,c,l,e=this._dialogInst;if(!e){this.uuid+=1;o="dp"+this.uuid;this._dialogInput=n("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.on("keydown",this._doKeyDown);n("body").append(this._dialogInput);e=this._dialogInst=this._newInst(this._dialogInput,!1);e.settings={};n.data(this._dialogInput[0],"datepicker",e)}return a(e.settings,u||{}),i=i&&i.constructor===Date?this._formatDate(e,i):i,this._dialogInput.val(i),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(s=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+c,h/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),e.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",e),this},_destroyDatepicker:function(t){var i,r=n(t),u=n.data(t,"datepicker");r.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),i==="input"?(u.append.remove(),u.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(i==="div"||i==="span")&&r.removeClass(this.markerClassName).empty(),f===u&&(f=null,this._curInst=null))},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var f,s,e,o,u=this._getInst(t);if(arguments.length===2&&typeof i=="string")return i==="defaults"?n.extend({},n.datepicker._defaults):u?i==="all"?n.extend({},u.settings):this._get(u,i):null;f=i||{};typeof i=="string"&&(f={},f[i]=r);u&&(this._curInst===u&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(u,"min"),o=this._getMinMaxDate(u,"max"),a(u.settings,f),e!==null&&f.dateFormat!==undefined&&f.minDate===undefined&&(u.settings.minDate=this._formatDate(u,e)),o!==null&&f.dateFormat!==undefined&&f.maxDate===undefined&&(u.settings.maxDate=this._formatDate(u,o)),"disabled"in f&&(f.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),u),this._autoSize(u),this._setDate(u,s),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,e,o,r,u,f,s;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),e=n.datepicker._get(i,"beforeShow"),o=e?e.apply(t,[t,i]):{},o!==!1)&&(a(i.settings,o),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")==="fixed",!r}),u={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),u=n.datepicker._checkOffset(i,u,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),i.inline||(f=n.datepicker._get(i,"showAnim"),s=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",or(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[f]?i.dpDiv.show(f,n.datepicker._get(i,"showOptions"),s):i.dpDiv[f||"show"](f?s:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4;f=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);var i,r=this._getNumberOfMonths(t),u=r[1],e=t.dpDiv.find("."+this._dayOverClass+" a"),o=n.datepicker._get(t,"onUpdateDatepicker");e.length>0&&ot.apply(e.get(0));t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");u>1&&t.dpDiv.addClass("ui-datepicker-multi-"+u).css("width",17*u+"em");t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.trigger("focus");t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml);i=t.yearshtml=null},0));o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.pseudos.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;i&&(!t||i===n.data(t,"datepicker"))&&this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var u=n(t),f=this._getInst(u[0]);this._isDisabledDatepicker(u[0])||(this._adjustInstDate(f,i,r),this._updateDatepicker(f))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=parseInt(n("a",u).attr("data-date")),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(document).find(f).val(u))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r=n==="@"?14:n==="!"?20:n==="y"&&u?4:n==="o"?3:2,e=n==="y"?r:1,o=new RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;o<t.length;o++)if(w)t.charAt(o)!=="'"||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return n.settings[t]!==undefined?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var k,h,et,c,ot,d,st,nt,ht,l,ct,fi,ei,oi,si,lt,tt,hi,at,it,s,p,vt,w,yt,a,f,pt,wt,bt,kt,rt,dt,i,gt,ni,g,v,ut,ti=new Date,ii=this._daylightSavingAdjust(new Date(ti.getFullYear(),ti.getMonth(),ti.getDate())),e=this._get(t,"isRTL"),ai=this._get(t,"showButtonPanel"),ci=this._get(t,"hideIfNoPrevNext"),ri=this._get(t,"navigationAsDateFormat"),o=this._getNumberOfMonths(t),vi=this._get(t,"showCurrentAtPos"),li=this._get(t,"stepMonths"),ui=o[0]!==1||o[1]!==1,ft=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),b=this._getMinMaxDate(t,"min"),y=this._getMinMaxDate(t,"max"),r=t.drawMonth-vi,u=t.drawYear;if(r<0&&(r+=12,u--),y)for(k=this._daylightSavingAdjust(new Date(y.getFullYear(),y.getMonth()-o[0]*o[1]+1,y.getDate())),k=b&&k<b?b:k;this._daylightSavingAdjust(new Date(u,r,1))>k;)r--,r<0&&(r=11,u--);for(t.drawMonth=r,t.drawYear=u,h=this._get(t,"prevText"),h=ri?this.formatDate(h,this._daylightSavingAdjust(new Date(u,r-li,1)),this._getFormatConfig(t)):h,et=this._canAdjustMonth(t,-1,u,r)?n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:h}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"e":"w")).text(h))[0].outerHTML:ci?"":n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:h}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"e":"w")).text(h))[0].outerHTML,c=this._get(t,"nextText"),c=ri?this.formatDate(c,this._daylightSavingAdjust(new Date(u,r+li,1)),this._getFormatConfig(t)):c,ot=this._canAdjustMonth(t,1,u,r)?n("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:c}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(e?"w":"e")).text(c))[0].outerHTML:ci?"":n("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:c}).append(n("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(e?"w":"e")).text(c))[0].outerHTML,d=this._get(t,"currentText"),st=this._get(t,"gotoCurrent")&&t.currentDay?ft:ii,d=ri?this.formatDate(d,st,this._getFormatConfig(t)):d,nt="",t.inline||(nt=n("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),ht="",ai&&(ht=n("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(e?nt:"").append(this._isInRange(t,st)?n("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(d):"").append(e?"":nt)[0].outerHTML),l=parseInt(this._get(t,"firstDay"),10),l=isNaN(l)?0:l,ct=this._get(t,"showWeek"),fi=this._get(t,"dayNames"),ei=this._get(t,"dayNamesMin"),oi=this._get(t,"monthNames"),si=this._get(t,"monthNamesShort"),lt=this._get(t,"beforeShowDay"),tt=this._get(t,"showOtherMonths"),hi=this._get(t,"selectOtherMonths"),at=this._getDefaultDate(t),it="",p=0;p<o[0];p++){for(vt="",this.maxRows=4,w=0;w<o[1];w++){if(yt=this._daylightSavingAdjust(new Date(u,r,t.selectedDay)),a=" ui-corner-all",f="",ui){if(f+="<div class='ui-datepicker-group",o[1]>1)switch(w){case 0:f+=" ui-datepicker-group-first";a=" ui-corner-"+(e?"right":"left");break;case o[1]-1:f+=" ui-datepicker-group-last";a=" ui-corner-"+(e?"left":"right");break;default:f+=" ui-datepicker-group-middle";a=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+a+"'>"+(/all|left/.test(a)&&p===0?e?ot:et:"")+(/all|right/.test(a)&&p===0?e?et:ot:"")+this._generateMonthYearHeader(t,r,u,b,y,p>0||w>0,oi,si)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",pt=ct?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"<\/th>":"",s=0;s<7;s++)wt=(s+l)%7,pt+="<th scope='col'"+((s+l+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+fi[wt]+"'>"+ei[wt]+"<\/span><\/th>";for(f+=pt+"<\/tr><\/thead><tbody>",bt=this._getDaysInMonth(u,r),u===t.selectedYear&&r===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,bt)),kt=(this._getFirstDayOfMonth(u,r)-l+7)%7,rt=Math.ceil((kt+bt)/7),dt=ui?this.maxRows>rt?this.maxRows:rt:rt,this.maxRows=dt,i=this._daylightSavingAdjust(new Date(u,r,1-kt)),gt=0;gt<dt;gt++){for(f+="<tr>",ni=ct?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(i)+"<\/td>":"",s=0;s<7;s++)g=lt?lt.apply(t.input?t.input[0]:null,[i]):[!0,""],v=i.getMonth()!==r,ut=v&&!hi||!g[0]||b&&i<b||y&&i>y,ni+="<td class='"+((s+l+6)%7>=5?" ui-datepicker-week-end":"")+(v?" ui-datepicker-other-month":"")+(i.getTime()===yt.getTime()&&r===t.selectedMonth&&t._keyEvent||at.getTime()===i.getTime()&&at.getTime()===yt.getTime()?" "+this._dayOverClass:"")+(ut?" "+this._unselectableClass+" ui-state-disabled":"")+(v&&!tt?"":" "+g[1]+(i.getTime()===ft.getTime()?" "+this._currentClass:"")+(i.getTime()===ii.getTime()?" ui-datepicker-today":""))+"'"+((!v||tt)&&g[2]?" title='"+g[2].replace(/'/g,"&#39;")+"'":"")+(ut?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(v&&!tt?"&#xa0;":ut?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===ii.getTime()?" ui-state-highlight":"")+(i.getTime()===ft.getTime()?" ui-state-active":"")+(v?" ui-priority-secondary":"")+"' href='#' aria-current='"+(i.getTime()===ft.getTime()?"true":"false")+"' data-date='"+i.getDate()+"'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);f+=ni+"<\/tr>"}r++;r>11&&(r=0,u++);f+="<\/tbody><\/table>"+(ui?"<\/div>"+(o[0]>0&&w===o[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");vt+=f}it+=vt}return it+=ht,t._keyEvent=!1,it},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),nt=this._get(n,"selectMonthLabel"),tt=this._get(n,"selectYearLabel"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' aria-label='"+nt+"' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' aria-label='"+tt+"' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.selectedYear+(i==="Y"?t:0),f=n.selectedMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;if(!n.datepicker.initialized){n(document).on("mousedown",n.datepicker._checkExternalClick);n.datepicker.initialized=!0}n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new ft;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.13.2";sr=n.datepicker;hr=n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
  335 +/*!
  336 + * jQuery UI Mouse 1.13.2
  337 + * http://jqueryui.com
  338 + *
  339 + * Copyright jQuery Foundation and other contributors
  340 + * Released under the MIT license.
  341 + * http://jquery.org/license
  342 + */
  343 +s=!1;n(document).on("mouseup",function(){s=!1});var tu=n.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!s){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,r=t.which===1,u=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;if(!r||u||!this._mouseCapture(t))return!0;if(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))return t.preventDefault(),!0;!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(n){return i._mouseMove(n)};this._mouseUpDelegate=function(n){return i._mouseUp(n)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);return t.preventDefault(),s=!0,!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return((t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;s=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),iu=n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}},ru=n.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&n(t).trigger("blur")};
  344 +/*!
  345 + * jQuery UI Draggable 1.13.2
  346 + * http://jqueryui.com
  347 + *
  348 + * Copyright jQuery Foundation and other contributors
  349 + * Released under the MIT license.
  350 + * http://jquery.org/license
  351 + */
  352 +n.widget("ui.draggable",n.ui.mouse,{version:"1.13.2",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(){this.options.helper==="original"&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);n==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(this._blurActiveElement(t),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]),r=n(t.target);r.closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.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 n(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){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:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||typeof this.options.revert=="function"&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_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(t){var r=this.options,u=typeof r.helper=="function",i=u?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),u&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(n){typeof n=="string"&&(n=n.split(" "));Array.isArray(n)&&(n={left:+n[0],top:+n[1]||0});"left"in n&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?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 f,t,i,r=this.options,u=this.document[0];if(this.relativeContainer=null,!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)},_convertPositionTo:function(n,t){t||(t=this.position);var i=n==="absolute"?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),r.axis==="y"&&(e=this.originalPageX),r.axis==="x"&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:h?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(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])&&(f=!1),f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!=="HTML"&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&e.tagName!=="HTML"?(u.axis&&u.axis==="x"||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&u.axis==="y"||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&u.axis==="x"||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&u.axis==="y"||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left-r.margins.left,a=c+r.snapElements[u].width,l=r.snapElements[u].top-r.margins.top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left));w=e||o||s||h;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left));!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=e||o||s||h||w}}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});cr=n.ui.draggable;
  353 +/*!
  354 + * jQuery UI Resizable 1.13.2
  355 + * http://jqueryui.com
  356 + *
  357 + * Copyright jQuery Foundation and other contributors
  358 + * Released under the MIT license.
  359 + * http://jquery.org/license
  360 + */
  361 +n.widget("ui.resizable",n.ui.mouse,{version:"1.13.2",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(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;if(t[r]>0)return!0;try{t[r]=1;u=t[r]>0;t[r]=0}catch(f){}return u},_create:function(){var r,t=this.options,i=this;if(this._addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper'><\/div>").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,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),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(r),this._proportionallyResize()),this._setupHandles(),t.autoHide)n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){this._mouseDestroy();this._addedHandles.remove();var t,i=function(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){this._super(n,t);switch(n){case"handles":this._removeHandles();this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var u=this.options,i,r,f,o,t,e=this;if(this.handles=u.handles||(n(".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=n(),this._addedHandles=n(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},r=0;r<f.length;r++)i=String.prototype.trim.call(f[r]),o="ui-resizable-"+i,t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:u.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.children(this.handles[i]).length||(this.element.append(t),this._addedHandles=this._addedHandles.add(t));this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in 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]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),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(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});u.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",e==="auto"?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return(this._updatePrevProperties(),!f)?!1:(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),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 n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:Infinity,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:Infinity};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),u<t.maxWidth&&(t.maxWidth=u),e<t.maxHeight&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),r==="sw"&&(n.left=t.left+(i.width-n.width),n.top=null),r==="nw"&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];t<4;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div><\/div>").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(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);t!=="resize"&&this._trigger(t,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}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance"),i=t.options;n(i.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&i>=0&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");n.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,o=t.originalSize,s=t.originalPosition,c=t.axis,l=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,f=l[0]||1,e=l[1]||1,a=Math.round((y.width-o.width)/f)*f,v=Math.round((y.height-o.height)/e)*e,r=o.width+a,u=o.height+v,p=i.maxWidth&&i.maxWidth<r,w=i.maxHeight&&i.maxHeight<u,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=f);k&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=s.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=s.left-a):((u-e<=0||r-f<=0)&&(h=t._getPaddingPlusBorderDimensions(this)),u-e>0?(t.size.height=u,t.position.top=s.top-v):(u=e-h.height,t.size.height=u,t.position.top=s.top+o.height-u),r-f>0?(t.size.width=r,t.position.left=s.left-a):(r=f-h.width,t.size.width=r,t.position.left=s.left+o.width-r))}});lr=n.ui.resizable;
  362 +/*!
  363 + * jQuery UI Dialog 1.13.2
  364 + * http://jqueryui.com
  365 + *
  366 + * Copyright jQuery Foundation and other contributors
  367 + * Released under the MIT license.
  368 + * http://jquery.org/license
  369 + */
  370 +n.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0;this.opener=n(n.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,!0);this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=n.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()},_keepFocus:function(n){n.preventDefault();this._restoreTabbableFocus();this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE){t.preventDefault();this.close(t);return}if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.first(),u=i.last();t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||Array.isArray(t)&&!t.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}n.each(t,function(t,r){var u,f;r=typeof r=="function"?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;f={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;typeof r.text=="boolean"&&delete r.text;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,of:t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e=typeof u=="string"?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);i!==-1&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var f,u,r=this.uiDialog;t!=="disabled"&&(this._super(t,i),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&(f=r.is(":data(ui-draggable)"),f&&!i&&r.draggable("destroy"),!f&&i&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&(u=r.is(":data(ui-resizable)"),u&&!i&&r.resizable("destroy"),u&&typeof i=="string"&&r.resizable("option","handles",i),u||i===!1||this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none";n.height==="auto"?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=n.fn.jquery.substring(0,4),i=!0;if(this._delay(function(){i=!1}),!this.document.data("ui-dialog-overlays"))this.document.on("focusin.ui-dialog",function(n){if(!i){var r=this._trackingInstances()[0];r._allowInteraction(n)||(n.preventDefault(),r._focusTabbable(),(t==="3.4."||t==="3.5.")&&r._delay(r._restoreTabbableFocus))}}.bind(this));this.overlay=n("<div>").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 n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays"));this.overlay.remove();this.overlay=null}}});n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){n==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});ar=n.ui.dialog;
  371 +/*!
  372 + * jQuery UI Droppable 1.13.2
  373 + * http://jqueryui.com
  374 + *
  375 + * Copyright jQuery Foundation and other contributors
  376 + * Released under the MIT license.
  377 + * http://jquery.org/license
  378 + */
  379 +n.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 n,t=this.options,i=t.accept;this.isover=!1;this.isout=!0;this.accept=typeof i=="function"?i:function(n){return n.is(i)};this.proportions=function(){if(arguments.length)n=arguments[0];else return n?n:n={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(t.scope);t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;t<n.length;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if(t==="accept")this.accept=typeof i=="function"?i:function(n){return n.is(i)};else if(t==="scope"){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!r||(r.currentItem||r.element)[0]===this.element[0]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return u=!0,!1}),u)?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});n.ui.intersect=function(){function n(n,t,i){return n>=t&&n<t+i}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return f<=o&&h<=l&&e<=s&&c<=a;case"intersect":return f<o+t.helperProportions.width/2&&h-t.helperProportions.width/2<l&&e<s+t.helperProportions.height/2&&c-t.helperProportions.height/2<a;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&s<=a||c>=e&&c<=a||s<e&&c>a)&&(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,e,f,o=n.ui.intersect(t,this,this.options.tolerance,i),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;u&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===e}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.uiBackCompat!==!1&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});vr=n.ui.droppable;
  380 +/*!
  381 + * jQuery UI Progressbar 1.13.2
  382 + * http://jqueryui.com
  383 + *
  384 + * Copyright jQuery Foundation and other contributors
  385 + * Released under the MIT license.
  386 + * http://jquery.org/license
  387 + */
  388 +yr=n.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){if(n===undefined)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return n===undefined&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){n==="max"&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});
  389 +/*!
  390 + * jQuery UI Selectable 1.13.2
  391 + * http://jqueryui.com
  392 + *
  393 + * Copyright jQuery Foundation and other contributors
  394 + * Released under the MIT license.
  395 + * http://jquery.org/license
  396 + */
  397 +pr=n.widget("ui.selectable",n.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),u=i.offset(),r={left:u.left-t.elementPos.left,top:u.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;(this.opos=[t.pageX,t.pageY],this.elementPos=n(this.element[0]).offset(),this.options.disabled)||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return r>f&&(o=f,f=r,r=o),u>e&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,s.tolerance==="touch"?c=!(h.left>f||h.right<r||h.top>e||h.bottom<u):s.tolerance==="fit"&&(c=h.left>r&&h.right<f&&h.top>u&&h.bottom<e),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});
  398 +/*!
  399 + * jQuery UI Selectmenu 1.13.2
  400 + * http://jqueryui.com
  401 + *
  402 + * Copyright jQuery Foundation and other contributors
  403 + * Released under the MIT license.
  404 + * http://jquery.org/license
  405 + */
  406 +wr=n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.trigger("focus");n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);this.options.width!==!1&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");t.focusIndex!=null&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var n,t=this.element.find("option");(this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length)&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length)&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),u+=":not(.ui-state-disabled)");r=n==="first"||n==="last"?i[n==="first"?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){if(n==="icons"){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(n,t);n==="appendTo"&&this.menuWrap.appendTo(this._appendTo());n==="width"&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;if(n===!1){this.button.css("width","");return}n===null&&(n=this.element.show().outerWidth(),this.element.hide());this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){u.hidden||i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);
  407 +/*!
  408 + * jQuery UI Slider 1.13.2
  409 + * http://jqueryui.com
  410 + *
  411 + * Copyright jQuery Foundation and other contributors
  412 + * Released under the MIT license.
  413 + * http://jquery.org/license
  414 + */
  415 +br=n.widget("ui.slider",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),(t.range==="min"||t.range==="max")&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:t!==undefined?t:this.value()};return this._hasMultipleValues()&&(r.value=t!==undefined?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var u,r,f=this.value(),e=this.values();(this._hasMultipleValues()&&(r=this.values(t?0:1),f=this.values(t),this.options.values.length===2&&this.options.range===!0&&(i=t===0?Math.min(r,i):Math.max(r,i)),e[t]=i),i!==f)&&(u=this._trigger("slide",n,this._uiHash(t,i,e)),u!==!1)&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(n,t){var r,u,i;if(arguments.length>1){this.options.values[n]=this._trimAlignValue(t);this._refreshValue();this._change(null,n);return}if(arguments.length)if(Array.isArray(arguments[0])){for(r=this.options.values,u=arguments[0],i=0;i<r.length;i+=1)r[i]=this._trimAlignValue(u[i]),this._change(null,i);this._refreshValue()}else return this._hasMultipleValues()?this._values(n):this.value();else return this._values()},_setOption:function(n,t){var i,r=0;n==="range"&&this.options.range===!0&&(t==="min"?(this.options.value=this._values(0),this.options.values=null):t==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));Array.isArray(this.options.values)&&(r=this.options.values.length);this._super(n,t);switch(n){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(t);this.handles.css(t==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],this._trimAlignValue(r);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step,r=Math.round((n-i)/t)*t;n=r+i;n>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){n==="vertical"&&this.range.css({width:"",left:""});n==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o[r.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),e=this._start(t,f),e===!1))return}u=this.options.step;r=this._hasMultipleValues()?i=this.values(f):i=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});
  416 +/*!
  417 + * jQuery UI Sortable 1.13.2
  418 + * http://jqueryui.com
  419 + *
  420 + * Copyright jQuery Foundation and other contributors
  421 + * Released under the MIT license.
  422 + * http://jquery.org/license
  423 + */
  424 +kr=n.widget("ui.sortable",n.ui.mouse,{version:"1.13.2",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(n,t,i){return n>=t&&n<t+i},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);n==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=n(u.appendTo!=="parent"?u.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),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},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),u.cursorAt&&this._adjustOffsetFromHelper(u.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(),n.extend(this.offset,{parent:this._getParentOffset()}),u.containment&&this._setContainment(),u.cursor&&u.cursor!=="auto"&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),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(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(n){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-n.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:n.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-n.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:n.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(n.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(n.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),n.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(n.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var u,i,r,f,e=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),e.scroll&&this._scroll(t)!==!1&&(this._refreshItemPositions(!0),n.ui.ddmanager&&!e.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},u=this.items.length-1;u>=0;u--)if((i=this.items[u],r=i.item[0],f=this._intersectsWithPointer(i),f)&&i.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[f===1?"next":"prev"]()[0]!==r&&!n.contains(this.placeholder[0],r)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],r):!0)){if(this.direction=f===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(i))this._rearrange(t,i);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft));r&&r!=="y"||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var t,i,r=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u;return f?(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?i==="right"||t==="down"?2:1:t&&(t==="down"?2:1)):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this.dragDirection.vertical,i=this.dragDirection.horizontal;return this.floating&&i?i==="right"&&u||i==="left"&&!u:t&&(t==="down"&&r||t==="up"&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([typeof i.options.items=="function"?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([typeof i.options.items=="function"?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;u<l;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var i,u,f,r=this.items.length-1;r>=0;r--)(i=this.items[r],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0])||(u=this.options.toleranceElement?n(this.options.toleranceElement,i.item):i.item,t||(i.width=u.outerWidth(),i.height=u.outerHeight()),f=u.offset(),i.left=f.left,i.top=f.top)},refreshPositions:function(n){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1;this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());this._refreshItemPositions(n);var t,i;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var u,r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(u=i.placeholder,r=t.currentItem[0].nodeName.toLowerCase(),i.placeholder={element:function(){var i=n("<"+r+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",u||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),r==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):r==="tr"?t._createTrPlaceholder(t.currentItem,i):r==="img"&&i.attr("src",t.currentItem.attr("src")),u||i.css("visibility","hidden"),i},update:function(n,f){(!u||i.forcePlaceholderSize)&&((!f.height()||i.forcePlaceholderSize&&(r==="tbody"||r==="tr"))&&f.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),f.width()||f.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(this.containers.length===1)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"pageX":"pageY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),Math.abs(t[h]-o)<c&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i]){this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.scrollParent=this.placeholder.scrollParent();this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset());this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=typeof r.helper=="function"?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(n){typeof n=="string"&&(n=n.split(" "));Array.isArray(n)&&(n={left:+n[0],top:+n[1]||0});"left"in n&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!=="hidden",this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];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)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("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",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});
  425 +/*!
  426 + * jQuery UI Spinner 1.13.2
  427 + * http://jqueryui.com
  428 + *
  429 + * Copyright jQuery Foundation and other contributors
  430 + * Released under the MIT license.
  431 + * http://jquery.org/license
  432 + */
  433 +n.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this.value()!==""&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);u!=null&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",n)},mousewheel:function(t,i){var r=n.ui.safeActiveElement(this.document[0]),u=this.element[0]===r;if(u&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((i>0?1:-1)*this.options.step,t);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100);t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var t=this.element[0]===n.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;(i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur;r.call(this)}),this._start(t)!==!1)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return!this.spinning&&this._trigger("start",n)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(n){var t=this.options.incremental;return t?typeof t=="function"?t(n):Math.floor(n*n*n/5e4-n*n/500+17*n/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var u,i,r;if(n==="culture"||n==="numberFormat"){u=this._parse(this.element.val());this.options[n]=t;this.element.val(this._format(u));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t));n==="icons"&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:e(function(n){this._super(n)}),_parse:function(n){return typeof n=="string"&&n!==""&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),n===""||isNaN(n)?null:n},_format:function(n){return n===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return n===null?!1:n===this._adjustValue(n)},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:e(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:e(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:e(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:e(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());e(this._value).call(this,n)},widget:function(){return this.uiSpinner}});n.uiBackCompat!==!1&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});dr=n.ui.spinner;
  434 +/*!
  435 + * jQuery UI Tabs 1.13.2
  436 + * http://jqueryui.com
  437 + *
  438 + * Copyright jQuery Foundation and other contributors
  439 + * Released under the MIT license.
  440 + * http://jquery.org/license
  441 + */
  442 +n.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();Array.isArray(t.disabled)&&(t.disabled=n.uniqueSort(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:t.preventDefault();clearTimeout(this.activating);this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(i===this.options.active?!1:i);return;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){if(n==="active"){this._activate(t);return}this._super(n,t);n==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0));n==="event"&&this._setupEvents(t);n==="heightStyle"&&this._setupHeightStyle(t)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,u,r;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;u=this.tabs[r];r++)i=n(u),t===!0||n.inArray(r,t)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):t==="auto"&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};(t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1)||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+n.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(t===undefined?i=!1:(t=this._getIndex(t),i=Array.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(t===undefined)i=!0;else{if(t=this._getIndex(t),n.inArray(t,i)!==-1)return;i=Array.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var r=this,u=this.tabs.eq(t),e=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f},s=function(n,t){t==="abort"&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);s(u,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.uiBackCompat!==!1&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});gr=n.ui.tabs;
  443 +/*!
  444 + * jQuery UI Tooltip 1.13.2
  445 + * http://jqueryui.com
  446 + *
  447 + * Copyright jQuery Foundation and other contributors
  448 + * Released under the MIT license.
  449 + * http://jquery.org/license
  450 + */
  451 +n.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title");return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(n,t){var i=(n.attr("aria-describedby")||"").split(/\s+/);i.push(t);n.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);r!==-1&&i.splice(r,1);t.removeData("ui-tooltip-id");i=String.prototype.trim.call(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var r,i=this.options.content,u=this,f=t?t.type:null;if(typeof i=="string"||i.nodeType||i.jquery)return this._open(t,n,i);r=i.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})});r&&this._open(t,n,r)},_open:function(t,i,r){function s(n){(o.of=n,u.is(":hidden"))||u.position(o)}var f,u,h,e,o=n.extend({},this.options.position);if(r){if(f=this._find(i),f){f.tooltip.find(".ui-tooltip-content").html(r);return}i.is("[title]")&&(t&&t.type==="mouseover"?i.attr("title",""):i.removeAttr("title"));f=this._tooltip(i);u=f.tooltip;this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();e=n("<div>").html(u.find(".ui-tooltip-content").html());e.removeAttr("name").find("[name]").removeAttr("name");e.removeAttr("id").find("[id]").removeAttr("id");e.appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):u.position(n.extend({of:i},this.options.position));u.hide();this._show(u,this.options.show);this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(s(o.of),clearInterval(h))},13));this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){var n=this._find(i);n&&this._removeTooltip(n.tooltip)});t&&t.type!=="mouseover"||(r.mouseleave="close");t&&t.type!=="focusin"||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);if(!r){i.removeData("ui-tooltip-open");return}(u=r.tooltip,r.closing)||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1))},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){clearInterval(this.delayedShow);n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){var t=n.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0];t.close(f,!0);n("#"+i).remove();u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});n.uiBackCompat!==!1&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});nu=n.ui.tooltip});
0 \ No newline at end of file 452 \ No newline at end of file
Vrh.Web.Reporting/Properties/AssemblyInfo.cs
@@ -36,6 +36,6 @@ using System.Runtime.InteropServices; @@ -36,6 +36,6 @@ using System.Runtime.InteropServices;
36 // You can specify all the values or you can default the Build and Revision Numbers 36 // You can specify all the values or you can default the Build and Revision Numbers
37 // by using the '*' as shown below: 37 // by using the '*' as shown below:
38 // [assembly: AssemblyVersion("1.0.*")] 38 // [assembly: AssemblyVersion("1.0.*")]
39 -[assembly: AssemblyVersion("1.3.0.0")]  
40 -[assembly: AssemblyFileVersion("1.3.0.0")]  
41 -[assembly: AssemblyInformationalVersion("1.3.0")] 39 +[assembly: AssemblyVersion("1.4.0.0")]
  40 +[assembly: AssemblyFileVersion("1.4.0.0")]
  41 +[assembly: AssemblyInformationalVersion("1.4.0")]
Vrh.Web.Reporting/Vrh.Web.Reporting.csproj
@@ -311,8 +311,8 @@ @@ -311,8 +311,8 @@
311 <Reference Include="Vrh.Web.Providers, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL"> 311 <Reference Include="Vrh.Web.Providers, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
312 <HintPath>..\packages\VRH.Web.Providers.2.0.2\lib\net451\Vrh.Web.Providers.dll</HintPath> 312 <HintPath>..\packages\VRH.Web.Providers.2.0.2\lib\net451\Vrh.Web.Providers.dll</HintPath>
313 </Reference> 313 </Reference>
314 - <Reference Include="Vrh.WebForm.Lib, Version=2.8.2.0, Culture=neutral, processorArchitecture=MSIL">  
315 - <HintPath>..\packages\Vrh.WebForm.2.8.2\lib\net462\Vrh.WebForm.Lib.dll</HintPath> 314 + <Reference Include="Vrh.WebForm.Lib, Version=2.8.3.0, Culture=neutral, processorArchitecture=MSIL">
  315 + <HintPath>..\packages\Vrh.WebForm.2.8.3\lib\net462\Vrh.WebForm.Lib.dll</HintPath>
316 </Reference> 316 </Reference>
317 <Reference Include="Vrh.XmlProcessing, Version=2.0.7.0, Culture=neutral, processorArchitecture=MSIL"> 317 <Reference Include="Vrh.XmlProcessing, Version=2.0.7.0, Culture=neutral, processorArchitecture=MSIL">
318 <HintPath>..\packages\Vrh.XmlProcessing.2.0.7\lib\net45\Vrh.XmlProcessing.dll</HintPath> 318 <HintPath>..\packages\Vrh.XmlProcessing.2.0.7\lib\net45\Vrh.XmlProcessing.dll</HintPath>
@@ -411,8 +411,8 @@ @@ -411,8 +411,8 @@
411 <Content Include="Areas\WebForm\Content\VRHAutoComp.min.css" /> 411 <Content Include="Areas\WebForm\Content\VRHAutoComp.min.css" />
412 <Content Include="Areas\WebForm\Scripts\bootstrap-datetimepicker.js" /> 412 <Content Include="Areas\WebForm\Scripts\bootstrap-datetimepicker.js" />
413 <Content Include="Areas\WebForm\Scripts\bootstrap-datetimepicker.min.js" /> 413 <Content Include="Areas\WebForm\Scripts\bootstrap-datetimepicker.min.js" />
414 - <Content Include="Areas\WebForm\Scripts\jquery-ui-1.12.1.js" />  
415 - <Content Include="Areas\WebForm\Scripts\jquery-ui-1.12.1.min.js" /> 414 + <Content Include="Areas\WebForm\Scripts\jquery-ui-1.13.2.js" />
  415 + <Content Include="Areas\WebForm\Scripts\jquery-ui-1.13.2.min.js" />
416 <Content Include="Areas\WebForm\Scripts\VRHAutoComp.js" /> 416 <Content Include="Areas\WebForm\Scripts\VRHAutoComp.js" />
417 <Content Include="Areas\WebForm\Scripts\VRHAutoComp.min.js" /> 417 <Content Include="Areas\WebForm\Scripts\VRHAutoComp.min.js" />
418 <Content Include="Content\all.css" /> 418 <Content Include="Content\all.css" />
@@ -688,16 +688,16 @@ @@ -688,16 +688,16 @@
688 <Content Include="Areas\Menu\Views\Layout\_Layout.cshtml" /> 688 <Content Include="Areas\Menu\Views\Layout\_Layout.cshtml" />
689 <Content Include="Areas\Menu\Views\Layout\LanguageSelection.cshtml" /> 689 <Content Include="Areas\Menu\Views\Layout\LanguageSelection.cshtml" />
690 <Content Include="Areas\Menu\Views\Layout\About.cshtml" /> 690 <Content Include="Areas\Menu\Views\Layout\About.cshtml" />
  691 + <Content Include="Areas\FileManager\Views\_ViewStart.cshtml" />
  692 + <Content Include="Areas\FileManager\Views\web.config" />
  693 + <Content Include="Areas\FileManager\Views\FileManager\Index.cshtml" />
  694 + <Content Include="Areas\FileManager\Views\FileManager\Error.cshtml" />
691 <Content Include="Areas\WebForm\Views\WebForm\WebForm.cshtml" /> 695 <Content Include="Areas\WebForm\Views\WebForm\WebForm.cshtml" />
692 <Content Include="Areas\WebForm\Views\WebForm\Inputs.cshtml" /> 696 <Content Include="Areas\WebForm\Views\WebForm\Inputs.cshtml" />
693 <Content Include="Areas\WebForm\Views\WebForm\Index.cshtml" /> 697 <Content Include="Areas\WebForm\Views\WebForm\Index.cshtml" />
694 <Content Include="Areas\WebForm\Views\WebForm\CurrentInput.cshtml" /> 698 <Content Include="Areas\WebForm\Views\WebForm\CurrentInput.cshtml" />
695 <Content Include="Areas\WebForm\Views\web.config" /> 699 <Content Include="Areas\WebForm\Views\web.config" />
696 <Content Include="Areas\WebForm\Views\Shared\WebFormError.cshtml" /> 700 <Content Include="Areas\WebForm\Views\Shared\WebFormError.cshtml" />
697 - <Content Include="Areas\FileManager\Views\_ViewStart.cshtml" />  
698 - <Content Include="Areas\FileManager\Views\web.config" />  
699 - <Content Include="Areas\FileManager\Views\FileManager\Index.cshtml" />  
700 - <Content Include="Areas\FileManager\Views\FileManager\Error.cshtml" />  
701 <None Include="LogConfig.xml"> 701 <None Include="LogConfig.xml">
702 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 702 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
703 </None> 703 </None>
Vrh.Web.Reporting/packages.config
@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 <package id="Vrh.Web.FileManager" version="1.7.0" targetFramework="net462" /> 111 <package id="Vrh.Web.FileManager" version="1.7.0" targetFramework="net462" />
112 <package id="Vrh.Web.Menu" version="1.29.0" targetFramework="net462" /> 112 <package id="Vrh.Web.Menu" version="1.29.0" targetFramework="net462" />
113 <package id="VRH.Web.Providers" version="2.0.2" targetFramework="net451" requireReinstallation="true" /> 113 <package id="VRH.Web.Providers" version="2.0.2" targetFramework="net451" requireReinstallation="true" />
114 - <package id="Vrh.WebForm" version="2.8.2" targetFramework="net462" /> 114 + <package id="Vrh.WebForm" version="2.8.3" targetFramework="net462" />
115 <package id="Vrh.XmlProcessing" version="2.0.7" targetFramework="net462" /> 115 <package id="Vrh.XmlProcessing" version="2.0.7" targetFramework="net462" />
116 <package id="WebActivatorEx" version="2.2.0" targetFramework="net45" /> 116 <package id="WebActivatorEx" version="2.2.0" targetFramework="net45" />
117 <package id="WebGrease" version="1.6.0" targetFramework="net451" /> 117 <package id="WebGrease" version="1.6.0" targetFramework="net451" />
Vrh.Web.iScheduler.Lib/Areas/iScheduler/Controllers/iSchedulerController.cs
@@ -28,12 +28,7 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -28,12 +28,7 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
28 #region Private constants and classes 28 #region Private constants and classes
29 29
30 #region MandatoryUrlParams static class 30 #region MandatoryUrlParams static class
31 -  
32 - #region Mandatory parameters of the Manager action  
33 - /// <summary>  
34 - /// Manager akció elvárt paramétereinek osztálya.  
35 - /// </summary>  
36 - private static class MandatoryUrlParams_ManagerAction 31 + private class MandatoryUrlParams_Common
37 { 32 {
38 /// <summary> 33 /// <summary>
39 /// Ablakazonosító. 34 /// Ablakazonosító.
@@ -41,6 +36,14 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -41,6 +36,14 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
41 public const string BOOTBOXID = SchConst.Params.BOOTBOXID; 36 public const string BOOTBOXID = SchConst.Params.BOOTBOXID;
42 37
43 /// <summary> 38 /// <summary>
  39 + /// XmlParser kapcsolati sztringet tartalmazó paraméter neve.
  40 + /// </summary>
  41 + public const string XML = SchConst.Params.XML;
  42 + }
  43 +
  44 + private class MandatoryUrlParams_ManagerAction: MandatoryUrlParams_Common
  45 + {
  46 + /// <summary>
44 /// Megjelenítési mód, értékei "list", vagy "calendar". 47 /// Megjelenítési mód, értékei "list", vagy "calendar".
45 /// </summary> 48 /// </summary>
46 public const string DISPLAY = SchConst.Params.DISPLAY; 49 public const string DISPLAY = SchConst.Params.DISPLAY;
@@ -49,24 +52,10 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -49,24 +52,10 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
49 /// Ütemezés csoport azonosítója 52 /// Ütemezés csoport azonosítója
50 /// </summary> 53 /// </summary>
51 public const string GROUPID = SchConst.Params.GROUPID; 54 public const string GROUPID = SchConst.Params.GROUPID;
52 -  
53 - /// <summary>  
54 - /// XmlParser kapcsolati sztringet tartalmazó paraméter neve.  
55 - /// </summary>  
56 - public const string XML = SchConst.Params.XML;  
57 } 55 }
58 - #endregion Mandatory parameters of the Manager action  
59 56
60 - #region Mandatory parameters of the Editor action  
61 - /// <summary>  
62 - /// Editor akció elvárt paramétereinek osztálya.  
63 - /// </summary>  
64 - private static class MandatoryUrlParams_EditorAction 57 + private class MandatoryUrlParams_EditorAction: MandatoryUrlParams_Common
65 { 58 {
66 - /// <summary>  
67 - /// Ha ablakba kérik az akció eredményét, akkor annak azonosítója.  
68 - /// </summary>  
69 - public const string BOOTBOXID = SchConst.Params.BOOTBOXID;  
70 59
71 /// <summary> 60 /// <summary>
72 /// Megjelenítési mód, értékei "List", vagy "Calendar", vagy null 61 /// Megjelenítési mód, értékei "List", vagy "Calendar", vagy null
@@ -82,36 +71,15 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -82,36 +71,15 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
82 /// Az ütemezés rekord azonosítója 71 /// Az ütemezés rekord azonosítója
83 /// </summary> 72 /// </summary>
84 public const string ID = SchConst.Params.ID; 73 public const string ID = SchConst.Params.ID;
85 -  
86 - /// <summary>  
87 - /// XmlParser kapcsolati sztringet tartalmazó paraméter neve.  
88 - /// </summary>  
89 - public const string XML = SchConst.Params.XML;  
90 } 74 }
91 - #endregion Mandatory parameters of the Editor action  
92 75
93 - #region Mandatory parameters of the CheckSchedule action  
94 - /// <summary>  
95 - /// CheckSchedule akció elvárt paramétereinek osztálya.  
96 - /// </summary>  
97 - private static class MandatoryUrlParams_CheckSchedule 76 + private class MandatoryUrlParams_CheckSchedule: MandatoryUrlParams_Common
98 { 77 {
99 /// <summary> 78 /// <summary>
100 - /// Ablakazonosító.  
101 - /// </summary>  
102 - public const string BOOTBOXID = SchConst.Params.BOOTBOXID;  
103 -  
104 - /// <summary>  
105 /// Ütemezett objektum azonosító lista; opcionális paraméter 79 /// Ütemezett objektum azonosító lista; opcionális paraméter
106 /// </summary> 80 /// </summary>
107 public const string OBJECTIDLIST = SchConst.Params.OBJECTIDLIST; 81 public const string OBJECTIDLIST = SchConst.Params.OBJECTIDLIST;
108 -  
109 - /// <summary>  
110 - /// XmlParser kapcsolati sztringet tartalmazó paraméter neve.  
111 - /// </summary>  
112 - public const string XML = SchConst.Params.XML;  
113 } 82 }
114 - #endregion Mandatory parameters of the CheckSchedule action  
115 83
116 #endregion MandatoryUrlParams static class 84 #endregion MandatoryUrlParams static class
117 85
@@ -537,14 +505,18 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -537,14 +505,18 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
537 } 505 }
538 return Json(rijson, JsonRequestBehavior.AllowGet); 506 return Json(rijson, JsonRequestBehavior.AllowGet);
539 } 507 }
540 - private string LoadSQLConnectionString(string xmlcs) 508 + private string LoadSQLConnectionString(string xmlcs=null)
541 { 509 {
542 - if (string.IsNullOrWhiteSpace((string)xmlcs)) { xmlcs = $"config={SchConst.DEFAULT_XMLCONFIGNAME};"; } 510 + if (string.IsNullOrWhiteSpace(xmlcs))
  511 + {
  512 + base.ParameterSeparating(typeof(MandatoryUrlParams_Common));
  513 + xmlcs = base.RequestedParameters[MandatoryUrlParams_Common.XML];
  514 + if (string.IsNullOrWhiteSpace(xmlcs)) { xmlcs = $"config={SchConst.DEFAULT_XMLCONFIGNAME};"; }
  515 + }
543 var xmlc = new XmlConnection(xmlcs); 516 var xmlc = new XmlConnection(xmlcs);
544 using (var isxp = new SchedulerXmlParser( 517 using (var isxp = new SchedulerXmlParser(
545 xmlc, HttpContext.Server.MapPath(WebCommon.SIGN_RELATIVE), 518 xmlc, HttpContext.Server.MapPath(WebCommon.SIGN_RELATIVE),
546 - base.ForcedLanguageCode, base.OtherParameters,  
547 - base.RequestedParameters[MandatoryUrlParams_EditorAction.GROUPID])) 519 + base.ForcedLanguageCode, base.OtherParameters))
548 { 520 {
549 var ism = new SchedulerModel(isxp) 521 var ism = new SchedulerModel(isxp)
550 { //ObjectType és ObjectGroupId a példányosításkor értéket kap. És az Id=0. 522 { //ObjectType és ObjectGroupId a példányosításkor értéket kap. És az Id=0.
@@ -952,6 +924,32 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers @@ -952,6 +924,32 @@ namespace Vrh.Web.iScheduler.Areas.iScheduler.Controllers
952 //} 924 //}
953 #endregion UpdateData 925 #endregion UpdateData
954 926
  927 + #region CreateSystemViews
  928 + [HttpPost]
  929 + public JsonResult CreateSystemViews()
  930 + {
  931 + try
  932 + {
  933 + SchedulerDB.SelectLists.CreateSystemViews(LoadSQLConnectionString());
  934 + return Json(new VRH.Common.ReturnInfoJSON
  935 + {
  936 + ReturnValue = ModelState.IsValid ? 0 : 1,
  937 + ReturnMessage = "Scripts are created!",
  938 + }, JsonRequestBehavior.AllowGet);
  939 + }
  940 + catch (Exception ex)
  941 + {
  942 + return Json(new VRH.Common.ReturnInfoJSON
  943 + {
  944 + ReturnValue = 1,
  945 + ReturnMessage = string.Join("\n", Vrh.Web.Common.Lib.WebCommon.ErrorListBuilder(ex)),
  946 + }, JsonRequestBehavior.AllowGet);
  947 + }
  948 + }
  949 + [HttpGet]
  950 + public JsonResult CreateSystemViewsGet() { return CreateSystemViews(); }
  951 + #endregion CreateSystemViews
  952 +
955 #region CheckSchedule action 953 #region CheckSchedule action
956 /// <summary> 954 /// <summary>
957 /// Ütemezések létezésének ellenőrzése. 955 /// Ütemezések létezésének ellenőrzése.
Vrh.Web.iScheduler.Lib/Properties/AssemblyInfo.cs
@@ -37,6 +37,6 @@ using System.Runtime.InteropServices; @@ -37,6 +37,6 @@ using System.Runtime.InteropServices;
37 // You can specify all the values or you can default the Build and Revision Numbers 37 // You can specify all the values or you can default the Build and Revision Numbers
38 // by using the '*' as shown below: 38 // by using the '*' as shown below:
39 // [assembly: AssemblyVersion("1.0.*")] 39 // [assembly: AssemblyVersion("1.0.*")]
40 -[assembly: AssemblyVersion("3.2.2.0")]  
41 -[assembly: AssemblyFileVersion("3.2.2.0")]  
42 -[assembly: AssemblyInformationalVersion("3.2.2")] 40 +[assembly: AssemblyVersion("3.3.0.0")]
  41 +[assembly: AssemblyFileVersion("3.3.0.0")]
  42 +[assembly: AssemblyInformationalVersion("3.3.0")]
Vrh.iScheduler/Properties/AssemblyInfo.cs
@@ -32,7 +32,7 @@ using System.Runtime.InteropServices; @@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
32 // You can specify all the values or you can default the Build and Revision Numbers 32 // You can specify all the values or you can default the Build and Revision Numbers
33 // by using the '*' as shown below: 33 // by using the '*' as shown below:
34 // [assembly: AssemblyVersion("1.0.*")] 34 // [assembly: AssemblyVersion("1.0.*")]
35 -[assembly: AssemblyVersion("3.3.0.0")]  
36 -[assembly: AssemblyFileVersion("3.3.0.0")]  
37 -[assembly: AssemblyInformationalVersion("3.3.0")] 35 +[assembly: AssemblyVersion("3.4.0.0")]
  36 +[assembly: AssemblyFileVersion("3.4.0.0")]
  37 +[assembly: AssemblyInformationalVersion("3.4.0")]
38 38
Vrh.iScheduler/SchedulerDB.cs
@@ -94,8 +94,49 @@ namespace Vrh.iScheduler @@ -94,8 +94,49 @@ namespace Vrh.iScheduler
94 base.OnModelCreating(modelBuilder); 94 base.OnModelCreating(modelBuilder);
95 } 95 }
96 #endregion OnModelCreating 96 #endregion OnModelCreating
  97 +
  98 + public class SelectLists
  99 + {
  100 + public static void CreateSystemViews(string sqlconnectionstring)
  101 + {
  102 + const string createview = @"CREATE VIEW [iScheduler].[{0}] AS {1}";
  103 + const string dropview = @"IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[iScheduler].[{0}]')) DROP VIEW [iScheduler].[{0}];";
  104 + var sl = new Dictionary<string, string>();
  105 + sl.Add("SelectList_Schedules", selecttxt_SelectList_Schedules);
  106 + sl.Add("SelectList_SchedulesActive", selecttxt_SelectList_SchedulesActive);
  107 + int numofall = 0, numofcreated = 0;
  108 + using (var dbc = new SchedulerDB(sqlconnectionstring))
  109 + {
  110 + foreach (var s in sl)
  111 + {
  112 + numofall++;
  113 + var dropviewtext = string.Format(dropview, s.Key);
  114 + var createviewtext = string.Format(createview, s.Key, s.Value);
  115 + dbc.Database.ExecuteSqlCommand(dropviewtext);
  116 + dbc.Database.ExecuteSqlCommand(createviewtext);
  117 + }
  118 + dbc.SaveChanges();
  119 + }
  120 + }
  121 + #region systemviewtexts
  122 + const string selecttxt_SelectList_Schedules = @"
  123 +SELECT TOP 100
  124 +[iScheduler].[Schedules].[Id] AS IID,
  125 +convert(varchar(25), [iScheduler].[Schedules].[Id]) + ' (' + convert(varchar(25), [OperationTime], 120) + ','
  126 ++ [iScheduler].[ScheduleObjects].[ObjectType] + ','
  127 ++ [iScheduler].[ScheduleObjects].[ObjectName] + ','
  128 ++ [iScheduler].[ScheduleOperations].[OperationName] + ','
  129 ++ (CASE WHEN [iScheduler].[Schedules].[State] = 0 THEN 'Active' ELSE 'Passive' END) + ')'
  130 +AS DDISPLAY
  131 +FROM [iScheduler].[Schedules]
  132 +INNER JOIN [iScheduler].[ScheduleObjects] ON [iScheduler].[Schedules].[ScheduleObjectId] = [iScheduler].[ScheduleObjects].[Id]
  133 +INNER JOIN [iScheduler].[ScheduleOperations] ON [iScheduler].[Schedules].[ScheduleOperationId] = [iScheduler].[ScheduleOperations].[Id]";
  134 + const string selecttxt_SelectList_SchedulesActive = selecttxt_SelectList_Schedules + @" WHERE [iScheduler].[Schedules].[State] = 0";
  135 + #endregion systemviewtexts
  136 + }
97 } 137 }
98 138
  139 +
99 #region ScheduleObject class 140 #region ScheduleObject class
100 /// <summary> 141 /// <summary>
101 /// Ütemezhetõ objektumokat tartalmazó táblázat. 142 /// Ütemezhetõ objektumokat tartalmazó táblázat.