No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

2 líneas
240 KiB

  1. (function(i){typeof define=="function"&&define.amd?define(["jquery"],i):i(jQuery)})(function(i){function at(){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},i.extend(this._defaults,this.regional[""]),this.regional.en=i.extend(!0,{},this.regional[""]),this.regional["en-US"]=i.extend(!0,{},this.regional.en),this.dpDiv=rt(i("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function rt(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){i(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&i(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&i(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,ht)}function ht(){i.datepicker._isDisabledDatepicker(U.inline?U.dpDiv.parent()[0]:U.input[0])||(i(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),i(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&i(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&i(this).addClass("ui-datepicker-next-hover"))}function X(t,e){for(var s in i.extend(t,e),e)e[s]==null&&(t[s]=e[s]);return t}function K(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}i.ui=i.ui||{},i.ui.version="1.12.1";var pt=0,lt=Array.prototype.slice;i.cleanData=function(t){return function(e){var s,n,o;for(o=0;(n=e[o])!=null;o++)try{(s=i._data(n,"events"))&&s.remove&&i(n).triggerHandler("remove")}catch{}t(e)}}(i.cleanData),i.widget=function(t,e,s){var n,o,a,r={},h=t.split(".")[0],l=h+"-"+(t=t.split(".")[1]);return s||(s=e,e=i.Widget),i.isArray(s)&&(s=i.extend.apply(null,[{}].concat(s))),i.expr[":"][l.toLowerCase()]=function(u){return!!i.data(u,l)},i[h]=i[h]||{},n=i[h][t],o=i[h][t]=function(u,p){return this._createWidget?void(arguments.length&&this._createWidget(u,p)):new o(u,p)},i.extend(o,n,{version:s.version,_proto:i.extend({},s),_childConstructors:[]}),(a=new e).options=i.widget.extend({},a.options),i.each(s,function(u,p){return i.isFunction(p)?void(r[u]=function(){function d(){return e.prototype[u].apply(this,arguments)}function f(m){return e.prototype[u].apply(this,m)}return function(){var m,c=this._super,g=this._superApply;return this._super=d,this._superApply=f,m=p.apply(this,arguments),this._super=c,this._superApply=g,m}}()):void(r[u]=p)}),o.prototype=i.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||t},r,{constructor:o,namespace:h,widgetName:t,widgetFullName:l}),n?(i.each(n._childConstructors,function(u,p){var d=p.prototype;i.widget(d.namespace+"."+d.widgetName,o,p._proto)}),delete n._childConstructors):e._childConstructors.push(o),i.widget.bridge(t,o),o},i.widget.extend=function(t){for(var e,s,n=lt.call(arguments,1),o=0,a=n.length;a>o;o++)for(e in n[o])s=n[o][e],n[o].hasOwnProperty(e)&&s!==void 0&&(t[e]=i.isPlainObject(s)?i.isPlainObject(t[e])?i.widget.extend({},t[e],s):i.widget.extend({},s):s);return t},i.widget.bridge=function(t,e){var s=e.prototype.widgetFullName||t;i.fn[t]=function(n){var o=typeof n=="string",a=lt.call(arguments,1),r=this;return o?this.length||n!=="instance"?this.each(function(){var h,l=i.data(this,s);return n==="instance"?(r=l,!1):l?i.isFunction(l[n])&&n.charAt(0)!=="_"?(h=l[n].apply(l,a))!==l&&h!==void 0?(r=h&&h.jquery?r.pushStack(h.get()):h,!1):void 0:i.error("no such method '"+n+"' for "+t+" widget instance"):i.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=i.widget.extend.apply(null,[n].concat(a))),this.each(function(){var h=i.data(this,s);h?(h.option(n||{}),h._init&&h._init()):i.data(this,s,new e(n,this))})),r}},i.Widget=function(){},i.Widget._childConstructors=[],i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=i(e||this.defaultElement||this)[0],this.element=i(e),this.uuid=pt++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=i(),this.hoverable=i(),this.focusable=i(),this.classesElementLookup={},e!==this&&(i.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(s){s.target===e&&this.destroy()}}),this.document=i(e.style?e.ownerDocument:e.document||e),this.window=i(this.document[0].defaultView||this.document[0].parentWindow)),this.options=i.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:i.noop,_create:i.noop,_init:i.noop,destroy:function(){var t=this;this._destroy(),i.each(this.classesElementLookup,function(e,s){t._removeClass(s,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:i.noop,widget:function(){return this.element},option:function(t,e){var s,n,o,a=t;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof t=="string")if(a={},t=(s=t.split(".")).shift(),s.length){for(n=a[t]=i.widget.extend({},this.options[t]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(t=s.pop(),arguments.length===1)return n[t]===void 0?null:n[t];n[t]=e}else{if(arguments.length===1)return this.options[t]===void 0?null:this.options[t];a[t]=e}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return t==="classes"&&this._setOptionClasses(e),this.options[t]=e,t==="disabled"&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,s,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(s=i(n.get()),this._removeClass(n,e),s.addClass(this._classes({element:s,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(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 e(o,a){var r,h;for(h=0;o.length>h;h++)r=n.classesElementLookup[o[h]]||i(),r=t.add?i(i.unique(r.get().concat(t.element.get()))):i(r.not(t.element).get()),n.classesElementLookup[o[h]]=r,s.push(o[h]),a&&t.classes[o[h]]&&s.push(t.classes[o[h]])}var s=[],n=this;return t=i.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&e(t.keys.match(/\S+/g)||[],!0),t.extra&&e(t.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(t){var e=this;i.each(e.classesElementLookup,function(s,n){i.inArray(t.target,n)!==-1&&(e.classesElementLookup[s]=i(n.not(t.target).get()))})},_removeClass:function(t,e,s){return this._toggleClass(t,e,s,!1)},_addClass:function(t,e,s){return this._toggleClass(t,e,s,!0)},_toggleClass:function(t,e,s,n){n=typeof n=="boolean"?n:s;var o=typeof t=="string"||t===null,a={extra:o?e:s,keys:o?t:e,element:o?this.element:t,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(t,e,s){var n,o=this;typeof t!="boolean"&&(s=e,e=t,t=!1),s?(e=n=i(e),this.bindings=this.bindings.add(e)):(s=e,e=this.element,n=this.widget()),i.each(s,function(a,r){function h(){return t||o.options.disabled!==!0&&!i(this).hasClass("ui-state-disabled")?(typeof r=="string"?o[r]:r).apply(o,arguments):void 0}typeof r!="string"&&(h.guid=r.guid=r.guid||h.guid||i.guid++);var l=a.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,p=l[2];p?n.on(u,p,h):e.on(u,h)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=i(this.bindings.not(t).get()),this.focusable=i(this.focusable.not(t).get()),this.hoverable=i(this.hoverable.not(t).get())},_delay:function(t,e){var s=this;return setTimeout(function(){return(typeof t=="string"?s[t]:t).apply(s,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(e){this._addClass(i(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(i(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(e){this._addClass(i(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(i(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,s){var n,o,a=this.options[t];if(s=s||{},(e=i.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,s),!(i.isFunction(a)&&a.apply(this.element[0],[e].concat(s))===!1||e.isDefaultPrevented())}},i.each({show:"fadeIn",hide:"fadeOut"},function(t,e){i.Widget.prototype["_"+t]=function(s,n,o){typeof n=="string"&&(n={effect:n});var a,r=n?n===!0||typeof n=="number"?e:n.effect||e:t;typeof(n=n||{})=="number"&&(n={duration:n}),a=!i.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&i.effects&&i.effects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(h){i(this)[t](),o&&o.call(s[0]),h()})}}),i.widget,function(){function t(d,f,m){return[parseFloat(d[0])*(u.test(d[0])?f/100:1),parseFloat(d[1])*(u.test(d[1])?m/100:1)]}function e(d,f){return parseInt(i.css(d,f),10)||0}var s,n=Math.max,o=Math.abs,a=/left|center|right/,r=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,u=/%$/,p=i.fn.position;i.position={scrollbarWidth:function(){if(s!==void 0)return s;var d,f,m=i("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),c=m.children()[0];return i("body").append(m),d=c.offsetWidth,m.css("overflow","scroll"),d===(f=c.offsetWidth)&&(f=m[0].clientWidth),m.remove(),s=d-f},getScrollInfo:function(d){var f=d.isWindow||d.isDocument?"":d.element.css("overflow-x"),m=d.isWindow||d.isDocument?"":d.element.css("overflow-y"),c=f==="scroll"||f==="auto"&&d.width<d.element[0].scrollWidth;return{width:m==="scroll"||m==="auto"&&d.height<d.element[0].scrollHeight?i.position.scrollbarWidth():0,height:c?i.position.scrollbarWidth():0}},getWithinInfo:function(d){var f=i(d||window),m=i.isWindow(f[0]),c=!!f[0]&&f[0].nodeType===9;return{element:f,isWindow:m,isDocument:c,offset:!m&&!c?i(d).offset():{left:0,top:0},scrollLeft:f.scrollLeft(),scrollTop:f.scrollTop(),width:f.outerWidth(),height:f.outerHeight()}}},i.fn.position=function(d){if(!d||!d.of)return p.apply(this,arguments);d=i.extend({},d);var f,m,c,g,_,v,b=i(d.of),y=i.position.getWithinInfo(d.within),C=i.position.getScrollInfo(y),x=(d.collision||"flip").split(" "),k={};return v=function(w){var D=w[0];return D.nodeType===9?{width:w.width(),height:w.height(),offset:{top:0,left:0}}:i.isWindow(D)?{width:w.width(),height:w.height(),offset:{top:w.scrollTop(),left:w.scrollLeft()}}:D.preventDefault?{width:0,height:0,offset:{top:D.pageY,left:D.pageX}}:{width:w.outerWidth(),height:w.outerHeight(),offset:w.offset()}}(b),b[0].preventDefault&&(d.at="left top"),m=v.width,c=v.height,g=v.offset,_=i.extend({},g),i.each(["my","at"],function(){var w,D,I=(d[this]||"").split(" ");I.length===1&&(I=a.test(I[0])?I.concat(["center"]):r.test(I[0])?["center"].concat(I):["center","center"]),I[0]=a.test(I[0])?I[0]:"center",I[1]=r.test(I[1])?I[1]:"center",w=h.exec(I[0]),D=h.exec(I[1]),k[this]=[w?w[0]:0,D?D[0]:0],d[this]=[l.exec(I[0])[0],l.exec(I[1])[0]]}),x.length===1&&(x[1]=x[0]),d.at[0]==="right"?_.left+=m:d.at[0]==="center"&&(_.left+=m/2),d.at[1]==="bottom"?_.top+=c:d.at[1]==="center"&&(_.top+=c/2),f=t(k.at,m,c),_.left+=f[0],_.top+=f[1],this.each(function(){var w,D,I=i(this),T=I.outerWidth(),P=I.outerHeight(),A=e(this,"marginLeft"),O=e(this,"marginTop"),R=T+A+e(this,"marginRight")+C.width,$=P+O+e(this,"marginBottom")+C.height,H=i.extend({},_),Y=t(k.my,I.outerWidth(),I.outerHeight());d.my[0]==="right"?H.left-=T:d.my[0]==="center"&&(H.left-=T/2),d.my[1]==="bottom"?H.top-=P:d.my[1]==="center"&&(H.top-=P/2),H.left+=Y[0],H.top+=Y[1],w={marginLeft:A,marginTop:O},i.each(["left","top"],function(M,N){i.ui.position[x[M]]&&i.ui.position[x[M]][N](H,{targetWidth:m,targetHeight:c,elemWidth:T,elemHeight:P,collisionPosition:w,collisionWidth:R,collisionHeight:$,offset:[f[0]+Y[0],f[1]+Y[1]],my:d.my,at:d.at,within:y,elem:I})}),d.using&&(D=function(M){var N=g.left-H.left,j=N+m-T,W=g.top-H.top,E=W+c-P,B={target:{element:b,left:g.left,top:g.top,width:m,height:c},element:{element:I,left:H.left,top:H.top,width:T,height:P},horizontal:0>j?"left":N>0?"right":"center",vertical:0>E?"top":W>0?"bottom":"middle"};T>m&&m>o(N+j)&&(B.horizontal="center"),P>c&&c>o(W+E)&&(B.vertical="middle"),B.important=n(o(N),o(j))>n(o(W),o(E))?"horizontal":"vertical",d.using.call(this,M,B)}),I.offset(i.extend(H,{using:D}))})},i.ui.position={fit:{left:function(d,f){var m,c=f.within,g=c.isWindow?c.scrollLeft:c.offset.left,_=c.width,v=d.left-f.collisionPosition.marginLeft,b=g-v,y=v+f.collisionWidth-_-g;f.collisionWidth>_?b>0&&0>=y?(m=d.left+b+f.collisionWidth-_-g,d.left+=b-m):d.left=y>0&&0>=b?g:b>y?g+_-f.collisionWidth:g:b>0?d.left+=b:y>0?d.left-=y:d.left=n(d.left-v,d.left)},top:function(d,f){var m,c=f.within,g=c.isWindow?c.scrollTop:c.offset.top,_=f.within.height,v=d.top-f.collisionPosition.marginTop,b=g-v,y=v+f.collisionHeight-_-g;f.collisionHeight>_?b>0&&0>=y?(m=d.top+b+f.collisionHeight-_-g,d.top+=b-m):d.top=y>0&&0>=b?g:b>y?g+_-f.collisionHeight:g:b>0?d.top+=b:y>0?d.top-=y:d.top=n(d.top-v,d.top)}},flip:{left:function(d,f){var m,c,g=f.within,_=g.offset.left+g.scrollLeft,v=g.width,b=g.isWindow?g.scrollLeft:g.offset.left,y=d.left-f.collisionPosition.marginLeft,C=y-b,x=y+f.collisionWidth-v-b,k=f.my[0]==="left"?-f.elemWidth:f.my[0]==="right"?f.elemWidth:0,w=f.at[0]==="left"?f.targetWidth:f.at[0]==="right"?-f.targetWidth:0,D=-2*f.offset[0];0>C?(0>(m=d.left+k+w+D+f.collisionWidth-v-_)||o(C)>m)&&(d.left+=k+w+D):x>0&&((c=d.left-f.collisionPosition.marginLeft+k+w+D-b)>0||x>o(c))&&(d.left+=k+w+D)},top:function(d,f){var m,c,g=f.within,_=g.offset.top+g.scrollTop,v=g.height,b=g.isWindow?g.scrollTop:g.offset.top,y=d.top-f.collisionPosition.marginTop,C=y-b,x=y+f.collisionHeight-v-b,k=f.my[1]==="top"?-f.elemHeight:f.my[1]==="bottom"?f.elemHeight:0,w=f.at[1]==="top"?f.targetHeight:f.at[1]==="bottom"?-f.targetHeight:0,D=-2*f.offset[1];0>C?(0>(c=d.top+k+w+D+f.collisionHeight-v-_)||o(C)>c)&&(d.top+=k+w+D):x>0&&((m=d.top-f.collisionPosition.marginTop+k+w+D-b)>0||x>o(m))&&(d.top+=k+w+D)}},flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments),i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments),i.ui.position.fit.top.apply(this,arguments)}}}}(),i.ui.position,i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(t){return function(e){return!!i.data(e,t)}}):function(t,e,s){return!!i.data(t,s[3])}}),i.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),i.ui.focusable=function(t,e){var s,n,o,a,r,h=t.nodeName.toLowerCase();return h==="area"?(n=(s=t.parentNode).name,!(!t.href||!n||s.nodeName.toLowerCase()!=="map")&&(o=i("img[usemap='#"+n+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(h)?(a=!t.disabled)&&(r=i(t).closest("fieldset")[0])&&(a=!r.disabled):a=h==="a"&&t.href||e,a&&i(t).is(":visible")&&function(l){for(var u=l.css("visibility");u==="inherit";)u=(l=l.parent()).css("visibility");return u!=="hidden"}(i(t)))},i.extend(i.expr[":"],{focusable:function(t){return i.ui.focusable(t,i.attr(t,"tabindex")!=null)}}),i.ui.focusable,i.fn.form=function(){return typeof this[0].form=="string"?this.closest("form"):i(this[0].form)},i.ui.formResetMixin={_formResetHandler:function(){var t=i(this);setTimeout(function(){var e=t.data("ui-form-reset-instances");i.each(e,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(i.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")}}},i.fn.jquery.substring(0,3)==="1.7"&&(i.each(["Width","Height"],function(t,e){function s(r,h,l,u){return i.each(n,function(){h-=parseFloat(i.css(r,"padding"+this))||0,l&&(h-=parseFloat(i.css(r,"border"+this+"Width"))||0),u&&(h-=parseFloat(i.css(r,"margin"+this))||0)}),h}var n=e==="Width"?["Left","Right"]:["Top","Bottom"],o=e.toLowerCase(),a={innerWidth:i.fn.innerWidth,innerHeight:i.fn.innerHeight,outerWidth:i.fn.outerWidth,outerHeight:i.fn.outerHeight};i.fn["inner"+e]=function(r){return r===void 0?a["inner"+e].call(this):this.each(function(){i(this).css(o,s(this,r)+"px")})},i.fn["outer"+e]=function(r,h){return typeof r!="number"?a["outer"+e].call(this,r):this.each(function(){i(this).css(o,s(this,r,!0,h)+"px")})}}),i.fn.addBack=function(t){return this.add(t==null?this.prevObject:this.prevObject.filter(t))}),i.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},i.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),i.fn.labels=function(){var t,e,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(s=this.attr("id"))&&(o=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),e="label[for='"+i.ui.escapeSelector(s)+"']",n=n.add(o.find(e).addBack(e))),this.pushStack(n))},i.fn.scrollParent=function(t){var e=this.css("position"),s=e==="absolute",n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var a=i(this);return(!s||a.css("position")!=="static")&&n.test(a.css("overflow")+a.css("overflow-y")+a.css("overflow-x"))}).eq(0);return e!=="fixed"&&o.length?o:i(this[0].ownerDocument||document)},i.extend(i.expr[":"],{tabbable:function(t){var e=i.attr(t,"tabindex"),s=e!=null;return(!s||e>=0)&&i.ui.focusable(t,s)}}),i.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}}),i.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var G=!1;i(document).on("mouseup",function(){G=!1}),i.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(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){return i.data(e.target,t.widgetName+".preventClickEvent")===!0?(i.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),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(!G){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,s=t.which===1,n=!(typeof this.options.cancel!="string"||!t.target.nodeName)&&i(t.target).closest(this.options.cancel).length;return!(s&&!n&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(i.data(t.target,this.widgetName+".preventClickEvent")===!0&&i.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(o){return e._mouseMove(o)},this._mouseUpDelegate=function(o){return e._mouseUp(o)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),G=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(i.ui.ie&&(!document.documentMode||9>document.documentMode)&&!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&&i.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,G=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),i.ui.plugin={add:function(t,e,s){var n,o=i.ui[t].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,s[n]])},call:function(t,e,s,n){var o,a=t.plugins[e];if(a&&(n||t.element[0].parentNode&&t.element[0].parentNode.nodeType!==11))for(o=0;a.length>o;o++)t.options[a[o][0]]&&a[o][1].apply(t.element,s)}},i.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch{e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},i.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&i(t).trigger("blur")},i.widget("ui.draggable",i.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(t,e){this._super(t,e),t==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||i(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(e.iframeFix===!0?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var e=i(this);return i("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=i.ui.safeActiveElement(this.document[0]);i(t.target).closest(e).length||i.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),i.ui.ddmanager&&(i.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 i(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,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),i.ui.ddmanager&&!e.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),i.ui.ddmanager&&i.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){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:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp(new i.Event("mouseup",t)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",i.ui.ddmanager&&i.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return i.ui.ddmanager&&!this.options.dropBehaviour&&(s=i.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!s||this.options.revert==="valid"&&s||this.options.revert===!0||i.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?i(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",t)!==!1&&e._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),i.ui.ddmanager&&i.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),i.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new i.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!i(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s=i.isFunction(e.helper),n=s?i(e.helper.apply(this.element[0],[t])):e.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo(e.appendTo==="parent"?this.element[0].parentNode:e.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_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(" ")),i.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(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==e&&i.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 t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?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 t,e,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?n.containment==="window"?void(this.containment=[i(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,i(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,i(window).scrollLeft()+i(window).width()-this.helperProportions.width-this.margins.left,i(window).scrollTop()+(i(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment==="document"?void(this.containment=[0,0,i(o).width()-this.helperProportions.width-this.margins.left,(i(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):(n.containment==="parent"&&(n.containment=this.helper[0].parentNode),void((s=(e=i(n.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var s=t==="absolute"?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-(this.cssPosition==="fixed"?-this.offset.scroll.top:n?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-(this.cssPosition==="fixed"?-this.offset.scroll.left:n?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,n,o,a,r=this.options,h=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),s=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(l=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(u=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(l=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(u=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,u=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=s?a-this.offset.click.left>=s[0]||a-this.offset.click.left>s[2]?a:a-this.offset.click.left>=s[0]?a-r.grid[0]:a+r.grid[0]:a),r.axis==="y"&&(l=this.originalPageX),r.axis==="x"&&(u=this.originalPageY)),{top:u-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:l-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,e,s){return s=s||this._uiHash(),i.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),i.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),i.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,s){var n=i.extend({},e,{item:s.element});s.sortables=[],i(s.options.connectToSortable).each(function(){var o=i(this).sortable("instance");o&&!o.options.disabled&&(s.sortables.push(o),o.refreshPositions(),o._trigger("activate",t,n))})},stop:function(t,e,s){var n=i.extend({},e,{item:s.element});s.cancelHelperRemoval=!1,i.each(s.sortables,function(){var o=this;o.isOver?(o.isOver=0,s.cancelHelperRemoval=!0,o.cancelHelperRemoval=!1,o._storedCSS={position:o.placeholder.css("position"),top:o.placeholder.css("top"),left:o.placeholder.css("left")},o._mouseStop(t),o.options.helper=o.options._helper):(o.cancelHelperRemoval=!0,o._trigger("deactivate",t,n))})},drag:function(t,e,s){i.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,i.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&i.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=e.helper.parent(),o.currentItem=e.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return e.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",t),s.dropped=o.element,i.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(t),e.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),e.helper.appendTo(s._parent),s._refreshOffsets(t),e.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,i.each(s.sortables,function(){this.refreshPositions()}))})}}),i.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var n=i("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(t,e,s){var n=s.options;n._cursor&&i("body").css("cursor",n._cursor)}}),i.ui.plugin.add("draggable","opacity",{start:function(t,e,s){var n=i(e.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(t,e,s){var n=s.options;n._opacity&&i(e.helper).css("opacity",n._opacity)}}),i.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&s.scrollParentNotHidden[0].tagName!=="HTML"&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&a.tagName!=="HTML"?(n.axis&&n.axis==="x"||(s.overflowOffset.top+a.offsetHeight-t.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:t.pageY-s.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&n.axis==="y"||(s.overflowOffset.left+a.offsetWidth-t.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:t.pageX-s.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&n.axis==="x"||(t.pageY-i(r).scrollTop()<n.scrollSensitivity?o=i(r).scrollTop(i(r).scrollTop()-n.scrollSpeed):i(window).height()-(t.pageY-i(r).scrollTop())<n.scrollSensitivity&&(o=i(r).scrollTop(i(r).scrollTop()+n.scrollSpeed))),n.axis&&n.axis==="y"||(t.pageX-i(r).scrollLeft()<n.scrollSensitivity?o=i(r).scrollLeft(i(r).scrollLeft()-n.scrollSpeed):i(window).width()-(t.pageX-i(r).scrollLeft())<n.scrollSensitivity&&(o=i(r).scrollLeft(i(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&i.ui.ddmanager&&!n.dropBehaviour&&i.ui.ddmanager.prepareOffsets(s,t)}}),i.ui.plugin.add("draggable","snap",{start:function(t,e,s){var n=s.options;s.snapElements=[],i(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var o=i(this),a=o.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:o.outerWidth(),height:o.outerHeight(),top:a.top,left:a.left})})},drag:function(t,e,s){var n,o,a,r,h,l,u,p,d,f,m=s.options,c=m.snapTolerance,g=e.offset.left,_=g+s.helperProportions.width,v=e.offset.top,b=v+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)l=(h=s.snapElements[d].left-s.margins.left)+s.snapElements[d].width,p=(u=s.snapElements[d].top-s.margins.top)+s.snapElements[d].height,h-c>_||g>l+c||u-c>b||v>p+c||!i.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,i.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):(m.snapMode!=="inner"&&(n=c>=Math.abs(u-b),o=c>=Math.abs(p-v),a=c>=Math.abs(h-_),r=c>=Math.abs(l-g),n&&(e.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),a&&(e.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),r&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left)),f=n||o||a||r,m.snapMode!=="outer"&&(n=c>=Math.abs(u-v),o=c>=Math.abs(p-b),a=c>=Math.abs(h-g),r=c>=Math.abs(l-_),n&&(e.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),a&&(e.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||f)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,i.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||f)}}),i.ui.plugin.add("draggable","stack",{start:function(t,e,s){var n,o=s.options,a=i.makeArray(i(o.stack)).sort(function(r,h){return(parseInt(i(r).css("zIndex"),10)||0)-(parseInt(i(h).css("zIndex"),10)||0)});a.length&&(n=parseInt(i(a[0]).css("zIndex"),10)||0,i(a).each(function(r){i(this).css("zIndex",n+r)}),this.css("zIndex",n+a.length))}}),i.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){var n=i(e.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(t,e,s){var n=s.options;n._zIndex&&i(e.helper).css("zIndex",n._zIndex)}}),i.ui.draggable,i.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,e=this.options,s=e.accept;this.isover=!1,this.isout=!0,this.accept=i.isFunction(s)?s:function(n){return n.is(s)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){i.ui.ddmanager.droppables[t]=i.ui.ddmanager.droppables[t]||[],i.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=i.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){if(t==="accept")this.accept=i.isFunction(e)?e:function(n){return n.is(e)};else if(t==="scope"){var s=i.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(e)}this._super(t,e)},_activate:function(t){var e=i.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=i.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=i.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=i.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(t,e){var s=e||i.ui.ddmanager.current,n=!1;return!(!s||(s.currentItem||s.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var o=i(this).droppable("instance");return o.options.greedy&&!o.options.disabled&&o.options.scope===s.options.scope&&o.accept.call(o.element[0],s.currentItem||s.element)&&J(s,i.extend(o,{offset:o.element.offset()}),o.options.tolerance,t)?(n=!0,!1):void 0}),!n&&!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(s)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.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")}});var J=i.ui.intersect=function(){function t(e,s,n){return e>=s&&s+n>e}return function(e,s,n,o){if(!s.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,h=a+e.helperProportions.width,l=r+e.helperProportions.height,u=s.offset.left,p=s.offset.top,d=u+s.proportions().width,f=p+s.proportions().height;switch(n){case"fit":return a>=u&&d>=h&&r>=p&&f>=l;case"intersect":return a+e.helperProportions.width/2>u&&d>h-e.helperProportions.width/2&&r+e.helperProportions.height/2>p&&f>l-e.helperProportions.height/2;case"pointer":return t(o.pageY,p,s.proportions().height)&&t(o.pageX,u,s.proportions().width);case"touch":return(r>=p&&f>=r||l>=p&&f>=l||p>r&&l>f)&&(a>=u&&d>=a||h>=u&&d>=h||u>a&&h>d);default:return!1}}}();i.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var s,n,o=i.ui.ddmanager.droppables[t.options.scope]||[],a=e?e.type:null,r=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||t&&!o[s].accept.call(o[s].element[0],t.currentItem||t.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible=o[s].element.css("display")!=="none",o[s].visible&&(a==="mousedown"&&o[s]._activate.call(o[s],e),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(t,e){var s=!1;return i.each((i.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&J(t,this,this.options.tolerance,e)&&(s=this._drop.call(this,e)||s),!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,e)))}),s},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||i.ui.ddmanager.prepareOffsets(t,e)})},drag:function(t,e){t.options.refreshPositions&&i.ui.ddmanager.prepareOffsets(t,e),i.each(i.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=J(t,this,this.options.tolerance,e),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter(function(){return i(this).droppable("instance").options.scope===n})).length&&((s=i(o[0]).droppable("instance")).greedyChild=r==="isover")),s&&r==="isover"&&(s.isover=!1,s.isout=!0,s._out.call(s,e)),this[r]=!0,this[r==="isout"?"isover":"isout"]=!1,this[r==="isover"?"_over":"_out"].call(this,e),s&&r==="isout"&&(s.isout=!1,s.isover=!0,s._over.call(s,e)))}})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||i.ui.ddmanager.prepareOffsets(t,e)}},i.uiBackCompat!==!1&&i.widget("ui.droppable",i.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)}}),i.ui.droppable,i.widget("ui.resizable",i.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(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if(i(t).css("overflow")==="hidden")return!1;var s=e&&e==="left"?"scrollLeft":"scrollTop",n=!1;return t[s]>0||(t[s]=1,n=t[s]>0,t[s]=0,n)},_create:function(){var t,e=this.options,s=this;this._addClass("ui-resizable"),i.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(i("<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,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),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(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&i(this.element).on("mouseenter",function(){e.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){e.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,e=function(s){i(s).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(e(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),e(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,e,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(i(".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=i(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},e=0;s.length>e;e++)n="ui-resizable-"+(t=i.trim(s[e])),o=i("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(o);this._renderAxis=function(h){var l,u,p,d;for(l in h=h||this.element,this.handles)this.handles[l].constructor===String?this.handles[l]=this.element.children(this.handles[l]).first().show():(this.handles[l].jquery||this.handles[l].nodeType)&&(this.handles[l]=i(this.handles[l]),this._on(this.handles[l],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(u=i(this.handles[l],this.element),d=/sw|ne|nw|se|n|s/.test(l)?u.outerHeight():u.outerWidth(),p=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join(""),h.css(p,d),this._proportionallyResize()),this._handles=this._handles.add(this.handles[l])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,s,n=!1;for(e in this.handles)((s=i(this.handles[e])[0])===t.target||i.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(e+=i(o.containment).scrollLeft()||0,s+=i(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:e,top:s},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof o.aspectRatio=="number"?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=i(".ui-resizable-"+this.axis).css("cursor"),i("body").css("cursor",n==="auto"?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e,s,n=this.originalMousePosition,o=this.axis,a=t.pageX-n.left||0,r=t.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),!!h&&(e=h.apply(this,[t,a,r]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),i.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var e,s,n,o,a,r,h,l=this.options,u=this;return this._helper&&(n=(s=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:u.sizeDiff.height,o=s?0:u.sizeDiff.width,a={width:u.helper.width()-o,height:u.helper.height()-n},r=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,h=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(i.extend(a,{top:h,left:r})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),i("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 t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,s,n,o,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,s=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),a.maxWidth>s&&(a.maxWidth=s),a.maxHeight>o&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,s=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),n==="sw"&&(t.left=e.left+(s.width-t.width),t.top=null),n==="nw"&&(t.top=e.top+(s.height-t.height),t.left=e.left+(s.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,s=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,h=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(s),p=/nw|ne|n/.test(s);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),a&&u&&(t.left=h-e.minWidth),n&&u&&(t.left=h-e.maxWidth),r&&p&&(t.top=l-e.minHeight),o&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,s=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)s[e]=parseFloat(n[e])||0,s[e]+=parseFloat(o[e])||0;return{height:s[0]+s[2],width:s[1]+s[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,s=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:s.height()-this.outerDimensions.height||0,width:s.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||i("<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:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var s=this.originalSize;return{left:this.originalPosition.left+e,width:s.width-e}},n:function(t,e,s){var n=this.originalSize;return{top:this.originalPosition.top+s,height:n.height-s}},s:function(t,e,s){return{height:this.originalSize.height+s}},se:function(t,e,s){return i.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,s]))},sw:function(t,e,s){return i.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,s]))},ne:function(t,e,s){return i.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,s]))},nw:function(t,e,s){return i.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,s]))}},_propagate:function(t,e){i.ui.plugin.call(this,t,[e,this.ui()]),t!=="resize"&&this._trigger(t,e,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}}}),i.ui.plugin.add("resizable","animate",{stop:function(t){var e=i(this).resizable("instance"),s=e.options,n=e._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&e._hasScroll(n[0],"left")?0:e.sizeDiff.height,r=o?0:e.sizeDiff.width,h={width:e.size.width-r,height:e.size.height-a},l=parseFloat(e.element.css("left"))+(e.position.left-e.originalPosition.left)||null,u=parseFloat(e.element.css("top"))+(e.position.top-e.originalPosition.top)||null;e.element.animate(i.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var p={width:parseFloat(e.element.css("width")),height:parseFloat(e.element.css("height")),top:parseFloat(e.element.css("top")),left:parseFloat(e.element.css("left"))};n&&n.length&&i(n[0]).css({width:p.width,height:p.height}),e._updateCache(p),e._propagate("resize",t)}})}}),i.ui.plugin.add("resizable","containment",{start:function(){var t,e,s,n,o,a,r,h=i(this).resizable("instance"),l=h.options,u=h.element,p=l.containment,d=p instanceof i?p.get(0):/parent/.test(p)?u.parent().get(0):p;d&&(h.containerElement=i(d),/document/.test(p)||p===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:i(document),left:0,top:0,width:i(document).width(),height:i(document).height()||document.body.parentNode.scrollHeight}):(t=i(d),e=[],i(["Top","Right","Left","Bottom"]).each(function(f,m){e[f]=h._num(t.css("padding"+m))}),h.containerOffset=t.offset(),h.containerPosition=t.position(),h.containerSize={height:t.innerHeight()-e[3],width:t.innerWidth()-e[1]},s=h.containerOffset,n=h.containerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(t){var e,s,n,o,a=i(this).resizable("instance"),r=a.options,h=a.containerOffset,l=a.position,u=a._aspectRatio||t.shiftKey,p={top:0,left:0},d=a.containerElement,f=!0;d[0]!==document&&/static/.test(d.css("position"))&&(p=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-p.left),u&&(a.size.height=a.size.width/a.aspectRatio,f=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),u&&(a.size.width=a.size.height*a.aspectRatio,f=!1),a.position.top=a._helper?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),e=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-p.left:a.offset.left-h.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-p.top:a.offset.top-h.top)),e+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-e,u&&(a.size.height=a.size.width/a.aspectRatio,f=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,u&&(a.size.width=a.size.height*a.aspectRatio,f=!1)),f||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var t=i(this).resizable("instance"),e=t.options,s=t.containerOffset,n=t.containerPosition,o=t.containerElement,a=i(t.helper),r=a.offset(),h=a.outerWidth()-t.sizeDiff.width,l=a.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(o.css("position"))&&i(this).css({left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!e.animate&&/static/.test(o.css("position"))&&i(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),i.ui.plugin.add("resizable","alsoResize",{start:function(){var t=i(this).resizable("instance").options;i(t.alsoResize).each(function(){var e=i(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(t,e){var s=i(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};i(n.alsoResize).each(function(){var h=i(this),l=i(this).data("ui-resizable-alsoresize"),u={},p=h.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];i.each(p,function(d,f){var m=(l[f]||0)+(r[f]||0);m&&m>=0&&(u[f]=m||null)}),h.css(u)})},stop:function(){i(this).removeData("ui-resizable-alsoresize")}}),i.ui.plugin.add("resizable","ghost",{start:function(){var t=i(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),i.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=i(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=i(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),i.ui.plugin.add("resizable","grid",{resize:function(){var t,e=i(this).resizable("instance"),s=e.options,n=e.size,o=e.originalSize,a=e.originalPosition,r=e.axis,h=typeof s.grid=="number"?[s.grid,s.grid]:s.grid,l=h[0]||1,u=h[1]||1,p=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/u)*u,f=o.width+p,m=o.height+d,c=s.maxWidth&&f>s.maxWidth,g=s.maxHeight&&m>s.maxHeight,_=s.minWidth&&s.minWidth>f,v=s.minHeight&&s.minHeight>m;s.grid=h,_&&(f+=l),v&&(m+=u),c&&(f-=l),g&&(m-=u),/^(se|s|e)$/.test(r)?(e.size.width=f,e.size.height=m):/^(ne)$/.test(r)?(e.size.width=f,e.size.height=m,e.position.top=a.top-d):/^(sw)$/.test(r)?(e.size.width=f,e.size.height=m,e.position.left=a.left-p):((0>=m-u||0>=f-l)&&(t=e._getPaddingPlusBorderDimensions(this)),m-u>0?(e.size.height=m,e.position.top=a.top-d):(m=u-t.height,e.size.height=m,e.position.top=a.top+o.height-m),f-l>0?(e.size.width=f,e.position.left=a.left-p):(f=l-t.width,e.size.width=f,e.position.left=a.left+o.width-f))}}),i.ui.resizable,i.widget("ui.selectable",i.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=i(t.element[0]).offset(),t.selectees=i(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var e=i(this),s=e.offset(),n={left:s.left-t.elementPos.left,top:s.top-t.elementPos.top};i.data(this,"selectable-item",{element:this,$element:e,left:n.left,top:n.top,right:n.left+e.outerWidth(),bottom:n.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=i("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var e=this,s=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=i(this.element[0]).offset(),this.options.disabled||(this.selectees=i(s.filter,this.element[0]),this._trigger("start",t),i(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=i.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(e._removeClass(n.$element,"ui-selected"),n.selected=!1,e._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,e._trigger("unselecting",t,{unselecting:n.element}))}),i(t.target).parents().addBack().each(function(){var n,o=i.data(this,"selectable-item");return o?(n=!t.metaKey&&!t.ctrlKey||!o.$element.hasClass("ui-selected"),e._removeClass(o.$element,n?"ui-unselecting":"ui-selected")._addClass(o.$element,n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?e._trigger("selecting",t,{selecting:o.element}):e._trigger("unselecting",t,{unselecting:o.element}),!1):void 0}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var e,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=t.pageX,h=t.pageY;return o>r&&(e=r,r=o,o=e),a>h&&(e=h,h=a,a=e),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.selectees.each(function(){var l=i.data(this,"selectable-item"),u=!1,p={};l&&l.element!==s.element[0]&&(p.left=l.left+s.elementPos.left,p.right=l.right+s.elementPos.left,p.top=l.top+s.elementPos.top,p.bottom=l.bottom+s.elementPos.top,n.tolerance==="touch"?u=!(p.left>r||o>p.right||p.top>h||a>p.bottom):n.tolerance==="fit"&&(u=p.left>o&&r>p.right&&p.top>a&&h>p.bottom),u?(l.selected&&(s._removeClass(l.$element,"ui-selected"),l.selected=!1),l.unselecting&&(s._removeClass(l.$element,"ui-unselecting"),l.unselecting=!1),l.selecting||(s._addClass(l.$element,"ui-selecting"),l.selecting=!0,s._trigger("selecting",t,{selecting:l.element}))):(l.selecting&&((t.metaKey||t.ctrlKey)&&l.startselected?(s._removeClass(l.$element,"ui-selecting"),l.selecting=!1,s._addClass(l.$element,"ui-selected"),l.selected=!0):(s._removeClass(l.$element,"ui-selecting"),l.selecting=!1,l.startselected&&(s._addClass(l.$element,"ui-unselecting"),l.unselecting=!0),s._trigger("unselecting",t,{unselecting:l.element}))),l.selected&&(t.metaKey||t.ctrlKey||l.startselected||(s._removeClass(l.$element,"ui-selected"),l.selected=!1,s._addClass(l.$element,"ui-unselecting"),l.unselecting=!0,s._trigger("unselecting",t,{unselecting:l.element})))))}),!1}},_mouseStop:function(t){var e=this;return this.dragged=!1,i(".ui-unselecting",this.element[0]).each(function(){var s=i.data(this,"selectable-item");e._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,e._trigger("unselected",t,{unselected:s.element})}),i(".ui-selecting",this.element[0]).each(function(){var s=i.data(this,"selectable-item");e._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,e._trigger("selected",t,{selected:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),i.widget("ui.sortable",i.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(t,e,s){return t>=e&&e+s>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.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(t,e){this._super(t,e),t==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),i.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 t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var s=null,n=!1,o=this;return!this.reverting&&!this.options.disabled&&this.options.type!=="static"&&(this._refreshItems(t),i(t.target).parents().each(function(){return i.data(this,o.widgetName+"-item")===o?(s=i(this),!1):void 0}),i.data(t.target,o.widgetName+"-item")===o&&(s=i(t.target)),!!s&&!(this.options.handle&&!e&&(i(this.options.handle,s).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n))&&(this.currentItem=s,this._removeCurrentsFromItems(),!0))},_mouseStart:function(t,e,s){var n,o,a=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},i.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,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&a.cursor!=="auto"&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=i("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.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(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return i.ui.ddmanager&&(i.ui.ddmanager.current=this),i.ui.ddmanager&&!a.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,s,n,o,a=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<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:t.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:t.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(t.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),t.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&i.ui.ddmanager&&!a.dropBehaviour&&i.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(n=(s=this.items[e]).item[0],(o=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[o===1?"next":"prev"]()[0]!==n&&!i.contains(this.placeholder[0],n)&&(this.options.type!=="semi-dynamic"||!i.contains(this.element[0],n))){if(this.direction=o===1?"down":"up",this.options.tolerance!=="pointer"&&!this._intersectsWithSides(s))break;this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),i.ui.ddmanager&&i.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){if(t){if(i.ui.ddmanager&&!this.options.dropBehaviour&&i.ui.ddmanager.drop(this,t),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&o!=="x"||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&o!=="y"||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,i(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(t)})}else this._clear(t,e);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new i.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(),i.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?i(this.domPosition.prev).after(this.currentItem):i(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},i(e).each(function(){var n=(i(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&s.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},e.each(function(){s.push(i(t.item||this).attr(t.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,s=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,a=t.left,r=a+t.width,h=t.top,l=h+t.height,u=this.offset.click.top,p=this.offset.click.left,d=this.options.axis==="x"||n+u>h&&l>n+u,f=this.options.axis==="y"||e+p>a&&r>e+p,m=d&&f;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?m:e+this.helperProportions.width/2>a&&r>s-this.helperProportions.width/2&&n+this.helperProportions.height/2>h&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,s,n=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),o=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(n&&o)&&(e=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection(),this.floating?s==="right"||e==="down"?2:1:e&&(e==="down"?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),s=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?o==="right"&&s||o==="left"&&!s:n&&(n==="down"&&e||n==="up"&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return t!==0&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return t!==0&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){function e(){r.push(this)}var s,n,o,a,r=[],h=[],l=this._connectWith();if(l&&t)for(s=l.length-1;s>=0;s--)for(n=(o=i(l[s],this.document[0])).length-1;n>=0;n--)(a=i.data(o[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&h.push([i.isFunction(a.options.items)?a.options.items.call(a.element):i(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(h.push([i.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):i(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=h.length-1;s>=0;s--)h[s][0].each(e);return i(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=i.grep(this.items,function(e){for(var s=0;t.length>s;s++)if(t[s]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,s,n,o,a,r,h,l,u=this.items,p=[[i.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):i(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(e=d.length-1;e>=0;e--)for(s=(n=i(d[e],this.document[0])).length-1;s>=0;s--)(o=i.data(n[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&(p.push([i.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):i(o.options.items,o.element),o]),this.containers.push(o));for(e=p.length-1;e>=0;e--)for(a=p[e][1],s=0,l=(r=p[e][0]).length;l>s;s++)(h=i(r[s])).data(this.widgetName+"-item",a),u.push({item:h,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,s,n,o;for(this.floating=!!this.items.length&&(this.options.axis==="x"||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;e>=0;e--)(s=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?i(this.options.toleranceElement,s.item):s.item,t||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)o=this.containers[e].element.offset(),this.containers[e].containerCache.left=o.left,this.containers[e].containerCache.top=o.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(t){var e,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(e=s.placeholder,s.placeholder={element:function(){var n=t.currentItem[0].nodeName.toLowerCase(),o=i("<"+n+">",t.document[0]);return t._addClass(o,"ui-sortable-placeholder",e||t.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),n==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),i("<tr>",t.document[0]).appendTo(o)):n==="tr"?t._createTrPlaceholder(t.currentItem,o):n==="img"&&o.attr("src",t.currentItem.attr("src")),e||o.css("visibility","hidden"),o},update:function(n,o){(!e||s.forcePlaceholderSize)&&(o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=i(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,e){var s=this;t.children().each(function(){i("<td>&#160;</td>",s.document[0]).attr("colspan",i(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){var e,s,n,o,a,r,h,l,u,p,d=null,f=null;for(e=this.containers.length-1;e>=0;e--)if(!i.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(d&&i.contains(this.containers[e].element[0],d.element[0]))continue;d=this.containers[e],f=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(d)if(this.containers.length===1)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(n=1e4,o=null,a=(u=d.floating||this._isFloating(this.currentItem))?"left":"top",r=u?"width":"height",p=u?"pageX":"pageY",s=this.items.length-1;s>=0;s--)i.contains(this.containers[f].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[s].item.offset()[a],l=!1,t[p]-h>this.items[s][r]/2&&(l=!0),n>Math.abs(t[p]-h)&&(n=Math.abs(t[p]-h),o=this.items[s],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var e=this.options,s=i.isFunction(e.helper)?i(e.helper.apply(this.element[0],[t,this.currentItem])):e.helper==="clone"?this.currentItem.clone():this.currentItem;return s.parents("body").length||i(e.appendTo!=="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[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")}),(!s[0].style.width||e.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||e.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),i.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]&&i.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"&&i.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 t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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,e,s,n=this.options;n.containment==="parent"&&(n.containment=this.helper[0].parentNode),(n.containment==="document"||n.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(n.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(n.containment)||(t=i(n.containment)[0],e=i(n.containment).offset(),s=i(t).css("overflow")!=="hidden",this.containment=[e.left+(parseInt(i(t).css("borderLeftWidth"),10)||0)+(parseInt(i(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(i(t).css("borderTopWidth"),10)||0)+(parseInt(i(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(s?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(i(t).css("borderLeftWidth"),10)||0)-(parseInt(i(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(s?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(i(t).css("borderTopWidth"),10)||0)-(parseInt(i(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e||(e=this.position);var s=t==="absolute"?1:-1,n=this.cssPosition!=="absolute"||this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(t){var e,s,n=this.options,o=t.pageX,a=t.pageY,r=this.cssPosition!=="absolute"||this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[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]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(e=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-n.grid[1]:e+n.grid[1]:e,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_rearrange:function(t,e,s,n){s?s[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function s(a,r,h){return function(l){h._trigger(a,l,r._uiHash(r))}}this.reverting=!1;var n,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)(this._storedCSS[n]==="auto"||this._storedCSS[n]==="static")&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(e||(o.push(function(a){this._trigger("remove",a,this._uiHash())}),o.push((function(a){return function(r){a._trigger("receive",r,this._uiHash(this))}}).call(this,this.currentContainer)),o.push((function(a){return function(r){a._trigger("update",r,this._uiHash(this))}}).call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||o.push(s("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(o.push(s("out",this,this.containers[n])),this.containers[n].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,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;o.length>n;n++)o[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){i.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||i([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),i.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=i(),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(),0>t.active&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():i()}},_createIcons:function(){var t,e,s=this.options.icons;s&&(t=i("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+s.header),t.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,s.header)._addClass(e,null,s.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 t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&t.css("height","")},_setOption:function(t,e){return t==="active"?void this._activate(e):(t==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),t!=="collapsible"||e||this.options.active!==!1||this._activate(0),void(t==="icons"&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=i.ui.keyCode,s=this.headers.length,n=this.headers.index(t.target),o=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:o=this.headers[(n+1)%s];break;case e.LEFT:case e.UP:o=this.headers[(n-1+s)%s];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:o=this.headers[0];break;case e.END:o=this.headers[s-1]}o&&(i(t.target).attr("tabIndex",-1),i(o).attr("tabIndex",0),i(o).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===i.ui.keyCode.UP&&t.ctrlKey&&i(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.active=i()):t.active===!1?this._activate(0):this.active.length&&!i.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=i()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=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"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var t,e=this.options,s=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.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 o=i(this),a=o.uniqueId().attr("id"),r=o.next(),h=r.uniqueId().attr("id");o.attr("aria-controls",h),r.attr("aria-labelledby",a)}).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(e.event),s==="fill"?(t=n.height(),this.element.siblings(":visible").each(function(){var o=i(this),a=o.css("position");a!=="absolute"&&a!=="fixed"&&(t-=o.outerHeight(!0))}),this.headers.each(function(){t-=i(this).outerHeight(!0)}),this.headers.next().each(function(){i(this).height(Math.max(0,t-i(this).innerHeight()+i(this).height()))}).css("overflow","auto")):s==="auto"&&(t=0,this.headers.next().each(function(){var o=i(this).is(":visible");o||i(this).show(),t=Math.max(t,i(this).css("height","").height()),o||i(this).hide()}).height(t))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:i.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):i()},_setupEvents:function(t){var e={keydown:"_keydown"};t&&i.each(t.split(" "),function(s,n){e[n]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,e),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e,s,n=this.options,o=this.active,a=i(t.currentTarget),r=a[0]===o[0],h=r&&n.collapsible,l=h?i():a.next(),u={oldHeader:o,oldPanel:o.next(),newHeader:h?i():a,newPanel:l};t.preventDefault(),r&&!n.collapsible||this._trigger("beforeActivate",t,u)===!1||(n.active=!h&&this.headers.index(a),this.active=r?i():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(e=o.children(".ui-accordion-header-icon"),this._removeClass(e,null,n.icons.activeHeader)._addClass(e,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,s=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=s,this.options.animate?this._animate(e,s,t):(s.hide(),e.show(),this._toggleComplete(t)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return parseInt(i(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,s){var n,o,a,r=this,h=0,l=t.css("box-sizing"),u=t.length&&(!e.length||t.index()<e.index()),p=this.options.animate||{},d=u&&p.down||p,f=function(){r._toggleComplete(s)};return typeof d=="number"&&(a=d),typeof d=="string"&&(o=d),o=o||d.easing||p.easing,a=a||d.duration||p.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:o,step:function(m,c){c.now=Math.round(m)}}),void t.hide().animate(this.showProps,{duration:a,easing:o,complete:f,step:function(m,c){c.now=Math.round(m),c.prop!=="height"?l==="content-box"&&(h+=c.now):r.options.heightStyle!=="content"&&(c.now=Math.round(n-e.outerHeight()-h),h=0)}})):e.animate(this.hideProps,a,o,f):t.animate(this.showProps,a,o,f)},_toggleComplete:function(t){var e=t.oldPanel,s=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(s,"ui-accordion-header-active")._addClass(s,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),i.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(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=i(t.target),s=i(i.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.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 e=i(t.target).closest(".ui-menu-item"),s=i(t.currentTarget);e[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var s=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,s)},blur:function(t){this._delay(function(){!i.contains(this.element[0],i.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var e=i(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(t){var e,s,n,o,a=!0;switch(t.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(t);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case i.ui.keyCode.HOME:this._move("first","first",t);break;case i.ui.keyCode.END:this._move("last","last",t);break;case i.ui.keyCode.UP:this.previous(t);break;case i.ui.keyCode.DOWN:this.next(t);break;case i.ui.keyCode.LEFT:this.collapse(t);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(t);break;case i.ui.keyCode.ESCAPE:this.collapse(t);break;default:a=!1,s=this.previousFilter||"",o=!1,n=t.keyCode>=96&&105>=t.keyCode?""+(t.keyCode-96):String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,e=this._filterMenuItems(n),(e=o&&e.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s,n,o=this,a=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var h=i(this),l=h.prev(),u=i("<span>").data("ui-menu-submenu-caret",!0);o._addClass(u,"ui-menu-icon","ui-icon "+a),l.attr("aria-haspopup","true").prepend(u),h.attr("aria-labelledby",l.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var h=i(this);o._isDivider(h)&&o._addClass(h,"ui-menu-divider","ui-widget-content")}),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if(t==="icons"){var s=this.element.find(".ui-menu-icon");this._removeClass(s,null,this.options.icons.submenu)._addClass(s,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var s,n,o;this.blur(t,t&&t.type==="focus"),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&t.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),(s=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(s),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,s,n,o,a,r;this._hasScroll()&&(e=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-e-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=t.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),t.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=i.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(e)},collapseAll:function(t,e){clearTimeout(this.timer),this.timer=this._delay(function(){var s=e?this.element:i(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!i(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},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(t,e,s){var n;this.active&&(n=t==="first"||t==="last"?this.active[t==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(s,n)},nextPage:function(t){var e,s,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return 0>(e=i(this)).offset().top-s-n}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(t)},previousPage:function(t){var e,s,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(e=i(this)).offset().top-s+n>0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first()))):void this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||i(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var e=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(i.trim(i(this).children(".ui-menu-item-wrapper").text()))})}}),i.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,e,s,n=this.element[0].nodeName.toLowerCase(),o=n==="textarea",a=n==="input";this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return t=!0,s=!0,void(e=!0);t=!1,s=!1,e=!1;var h=i.ui.keyCode;switch(r.keyCode){case h.PAGE_UP:t=!0,this._move("previousPage",r);break;case h.PAGE_DOWN:t=!0,this._move("nextPage",r);break;case h.UP:t=!0,this._keyEvent("previous",r);break;case h.DOWN:t=!0,this._keyEvent("next",r);break;case h.ENTER:this.menu.active&&(t=!0,r.preventDefault(),this.menu.select(r));break;case h.TAB:this.menu.active&&this.menu.select(r);break;case h.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:e=!0,this._searchTimeout(r)}},keypress:function(r){if(t)return t=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault());if(!e){var h=i.ui.keyCode;switch(r.keyCode){case h.PAGE_UP:this._move("previousPage",r);break;case h.PAGE_DOWN:this._move("nextPage",r);break;case h.UP:this._keyEvent("previous",r);break;case h.DOWN:this._keyEvent("next",r)}}},input:function(r){return s?(s=!1,void r.preventDefault()):void this._searchTimeout(r)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(r){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(r),void this._change(r))}}),this._initSource(),this.menu=i("<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(r){r.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==i.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(r,h){var l,u;return this.isNewMenu&&(this.isNewMenu=!1,r.originalEvent&&/^mouse/.test(r.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){i(r.target).trigger(r.originalEvent)})):(u=h.item.data("ui-autocomplete-item"),this._trigger("focus",r,{item:u})!==!1&&r.originalEvent&&/^key/.test(r.originalEvent.type)&&this._value(u.value),void((l=h.item.attr("aria-label")||u.value)&&i.trim(l).length&&(this.liveRegion.children().hide(),i("<div>").text(l).appendTo(this.liveRegion))))},menuselect:function(r,h){var l=h.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==i.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u,this.selectedItem=l})),this._trigger("select",r,{item:l})!==!1&&this._value(l.value),this.term=this._value(),this.close(r),this.selectedItem=l}}),this.liveRegion=i("<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(t,e){this._super(t,e),t==="source"&&this._initSource(),t==="appendTo"&&this.menu.element.appendTo(this._appendTo()),t==="disabled"&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||i.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?i(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 t,e,s=this;i.isArray(this.options.source)?(t=this.options.source,this.source=function(n,o){o(i.ui.autocomplete.filter(t,n.term))}):typeof this.options.source=="string"?(e=this.options.source,this.source=function(n,o){s.xhr&&s.xhr.abort(),s.xhr=i.ajax({url:e,data:n,dataType:"json",success:function(a){o(a)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),s=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!s&&!n)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=t??this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=++this.requestIndex;return i.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:i.map(t,function(e){return typeof e=="string"?{label:e,value:e}:i.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(i.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,e){var s=this;i.each(e,function(n,o){s._renderItemData(t,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return i("<li>").append(i("<div>").text(e.label)).appendTo(t)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return e==="inherit"?this._isContentEditable(t.parent()):e==="true"}}),i.extend(i.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var s=RegExp(i.ui.autocomplete.escapeRegex(e),"i");return i.grep(t,function(n){return s.test(n.label||n.value||n)})}}),i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),i("<div>").text(e).appendTo(this.liveRegion))}}),i.ui.autocomplete;var U,ft=/ui-corner-([a-z]){2,6}/g;i.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,e=[];i.each(this.options.items,function(s,n){var o,a={};return n?s==="controlgroupLabel"?((o=t.element.find(n)).each(function(){var r=i(this);r.children(".ui-controlgroup-label-contents").length||r.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(e=e.concat(o.get()))):void(i.fn[s]&&(a=t["_"+s+"Options"]?t["_"+s+"Options"]("middle"):{classes:{}},t.element.find(n).each(function(){var r=i(this),h=r[s]("instance"),l=i.widget.extend({},a);if(s!=="button"||!r.parent(".ui-spinner").length){h||(h=r[s]()[s]("instance")),h&&(l.classes=t._resolveClassesValues(l.classes,h)),r[s](l);var u=r[s]("widget");i.data(u[0],"ui-controlgroup-data",h||r[s]("instance")),e.push(u[0])}}))):void 0}),this.childWidgets=i(i.unique(e)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var e=i(this).data("ui-controlgroup-data");e&&e[t]&&e[t]()})},_updateCornerClass:function(t,e){var s=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,s)},_buildSimpleOptions:function(t,e){var s=this.options.direction==="vertical",n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(s?"top":"left"),last:"ui-corner-"+(s?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e=this.options.direction==="vertical";return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(t,e){var s={};return i.each(t,function(n){var o=e.options.classes[n]||"";o=i.trim(o.replace(ft,"")),s[n]=(o+" "+t[n]).replace(/\s+/g," ")}),s},_setOption:function(t,e){return t==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),t==="disabled"?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var t,e=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&&(i.each(["first","last"],function(s,n){var o=t[n]().data("ui-controlgroup-data");if(o&&e["_"+o.widgetName+"Options"]){var a=e["_"+o.widgetName+"Options"](t.length===1?"only":n);a.classes=e._resolveClassesValues(a.classes,o),o.element[o.widgetName](a)}else e._updateCornerClass(t[n](),n)}),this._callChildMethod("refresh"))}}),i.widget("ui.checkboxradio",[i.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,e,s=this,n=this._super()||{};return this._readType(),e=this.element.labels(),this.label=i(e[e.length-1]),this.label.length||i.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){s.originalLabel+=this.nodeType===3?i(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),(t=this.element[0].disabled)!=null&&(n.disabled=t),n},_create:function(){var t=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(),t&&(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)||i.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=this.element[0].name,e="input[name='"+i.ui.escapeSelector(t)+"']";return t?(this.form.length?i(this.form[0].elements).filter(e):i(e).filter(function(){return i(this).form().length===0})).not(this.element):i([])},_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 e=i(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return t!=="label"||e?(this._super(t,e),t==="disabled"?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=i("<span>"),this.iconSpace=i("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==void 0&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.label!==null&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),i.ui.checkboxradio,i.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 t,e=this._super()||{};return this.isInput=this.element.is("input"),(t=this.element[0].disabled)!=null&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_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===i.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,e){var s=t!=="iconPosition",n=s?this.options.iconPosition:e,o=n==="top"||n==="bottom";this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=i("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,e),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=i("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=t.showLabel===void 0?this.options.showLabel:t.showLabel,s=t.icon===void 0?this.options.icon:t.icon;e||s||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){t==="icon"&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),t==="iconPosition"&&this._updateIcon(t,e),t==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),t==="label"&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),t==="disabled"&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),i.uiBackCompat!==!1&&(i.widget("ui.button",i.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.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return t==="text"?void this._super("showLabel",e):(t==="showLabel"&&(this.options.text=e),t==="icon"&&(this.options.icons.primary=e),t==="icons"&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),i.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):(i.ui.checkboxradio||i.error("Checkboxradio widget missing"),arguments.length===0?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(i.fn.button),i.fn.buttonset=function(){return i.ui.controlgroup||i.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))}),i.ui.button,i.extend(i.ui,{datepicker:{version:"1.12.1"}}),i.extend(at.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return X(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var s,n,o;n=(s=t.nodeName.toLowerCase())==="div"||s==="span",t.id||(this.uuid+=1,t.id="dp"+this.uuid),(o=this._newInst(i(t),n)).settings=i.extend({},e||{}),s==="input"?this._connectDatepicker(t,o):n&&this._inlineDatepicker(t,o)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?rt(i("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var s=i(t);e.append=i([]),e.trigger=i([]),s.hasClass(this.markerClassName)||(this._attachments(s,e),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),i.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var s,n,o,a=this._get(e,"appendText"),r=this._get(e,"isRTL");e.append&&e.append.remove(),a&&(e.append=i("<span class='"+this._appendClass+"'>"+a+"</span>"),t[r?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),((s=this._get(e,"showOn"))==="focus"||s==="both")&&t.on("focus",this._showDatepicker),(s==="button"||s==="both")&&(n=this._get(e,"buttonText"),o=this._get(e,"buttonImage"),e.trigger=i(this._get(e,"buttonImageOnly")?i("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):i("<button type='button'></button>").addClass(this._triggerClass).html(o?i("<img/>").attr({src:o,alt:n,title:n}):n)),t[r?"before":"after"](e.trigger),e.trigger.on("click",function(){return i.datepicker._datepickerShowing&&i.datepicker._lastInput===t[0]?i.datepicker._hideDatepicker():(i.datepicker._datepickerShowing&&i.datepicker._lastInput!==t[0]&&i.datepicker._hideDatepicker(),i.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,s,n,o,a=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(h){for(s=0,n=0,o=0;h.length>o;o++)h[o].length>s&&(s=h[o].length,n=o);return n},a.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(t,e){var s=i(t);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(e.dpDiv),i.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,s,n,o){var a,r,h,l,u,p=this._dialogInst;return p||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=i("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),i("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},i.data(this._dialogInput[0],"datepicker",p)),X(p.settings,n||{}),e=e&&e.constructor===Date?this._formatDate(p,e):e,this._dialogInput.val(e),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(r=document.documentElement.clientWidth,h=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+l,h/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),i.blockUI&&i.blockUI(this.dpDiv),i.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(t){var e,s=i(t),n=i.data(t,"datepicker");s.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),i.removeData(t,"datepicker"),e==="input"?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(e==="div"||e==="span")&&s.removeClass(this.markerClassName).empty(),U===n&&(U=null))},_enableDatepicker:function(t){var e,s,n=i(t),o=i.data(t,"datepicker");n.hasClass(this.markerClassName)&&((e=t.nodeName.toLowerCase())==="input"?(t.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(e==="div"||e==="span")&&((s=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=i.map(this._disabledInputs,function(a){return a===t?null:a}))},_disableDatepicker:function(t){var e,s,n=i(t),o=i.data(t,"datepicker");n.hasClass(this.markerClassName)&&((e=t.nodeName.toLowerCase())==="input"?(t.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(e==="div"||e==="span")&&((s=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=i.map(this._disabledInputs,function(a){return a===t?null:a}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return i.data(t,"datepicker")}catch{throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,s){var n,o,a,r,h=this._getInst(t);return arguments.length===2&&typeof e=="string"?e==="defaults"?i.extend({},i.datepicker._defaults):h?e==="all"?i.extend({},h.settings):this._get(h,e):null:(n=e||{},typeof e=="string"&&((n={})[e]=s),void(h&&(this._curInst===h&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),a=this._getMinMaxDate(h,"min"),r=this._getMinMaxDate(h,"max"),X(h.settings,n),a!==null&&n.dateFormat!==void 0&&n.minDate===void 0&&(h.settings.minDate=this._formatDate(h,a)),r!==null&&n.dateFormat!==void 0&&n.maxDate===void 0&&(h.settings.maxDate=this._formatDate(h,r)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(i(t),h),this._autoSize(h),this._setDate(h,o),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,s){this._optionDatepicker(t,e,s)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var s=this._getInst(t);s&&(this._setDate(s,e),this._updateDatepicker(s),this._updateAlternate(s))},_getDateDatepicker:function(t,e){var s=this._getInst(t);return s&&!s.inline&&this._setDateFromField(s,e),s?this._getDate(s):null},_doKeyDown:function(t){var e,s,n,o=i.datepicker._getInst(t.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,i.datepicker._datepickerShowing)switch(t.keyCode){case 9:i.datepicker._hideDatepicker(),a=!1;break;case 13:return(n=i("td."+i.datepicker._dayOverClass+":not(."+i.datepicker._currentClass+")",o.dpDiv))[0]&&i.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,n[0]),(e=i.datepicker._get(o,"onSelect"))?(s=i.datepicker._formatDate(o),e.apply(o.input?o.input[0]:null,[s,o])):i.datepicker._hideDatepicker(),!1;case 27:i.datepicker._hideDatepicker();break;case 33:i.datepicker._adjustDate(t.target,t.ctrlKey?-i.datepicker._get(o,"stepBigMonths"):-i.datepicker._get(o,"stepMonths"),"M");break;case 34:i.datepicker._adjustDate(t.target,t.ctrlKey?+i.datepicker._get(o,"stepBigMonths"):+i.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&i.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&i.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&i.datepicker._adjustDate(t.target,r?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&i.datepicker._adjustDate(t.target,t.ctrlKey?-i.datepicker._get(o,"stepBigMonths"):-i.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&i.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&i.datepicker._adjustDate(t.target,r?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&i.datepicker._adjustDate(t.target,t.ctrlKey?+i.datepicker._get(o,"stepBigMonths"):+i.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&i.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else t.keyCode===36&&t.ctrlKey?i.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,s,n=i.datepicker._getInst(t.target);return i.datepicker._get(n,"constrainInput")?(e=i.datepicker._possibleChars(i.datepicker._get(n,"dateFormat")),s=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">s||!e||e.indexOf(s)>-1):void 0},_doKeyUp:function(t){var e=i.datepicker._getInst(t.target);if(e.input.val()!==e.lastVal)try{i.datepicker.parseDate(i.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,i.datepicker._getFormatConfig(e))&&(i.datepicker._setDateFromField(e),i.datepicker._updateAlternate(e),i.datepicker._updateDatepicker(e))}catch{}return!0},_showDatepicker:function(t){var e,s,n,o,a,r,h;(t=t.target||t).nodeName.toLowerCase()!=="input"&&(t=i("input",t.parentNode)[0]),i.datepicker._isDisabledDatepicker(t)||i.datepicker._lastInput===t||(e=i.datepicker._getInst(t),i.datepicker._curInst&&i.datepicker._curInst!==e&&(i.datepicker._curInst.dpDiv.stop(!0,!0),e&&i.datepicker._datepickerShowing&&i.datepicker._hideDatepicker(i.datepicker._curInst.input[0])),(n=(s=i.datepicker._get(e,"beforeShow"))?s.apply(t,[t,e]):{})!==!1&&(X(e.settings,n),e.lastVal=null,i.datepicker._lastInput=t,i.datepicker._setDateFromField(e),i.datepicker._inDialog&&(t.value=""),i.datepicker._pos||(i.datepicker._pos=i.datepicker._findPos(t),i.datepicker._pos[1]+=t.offsetHeight),o=!1,i(t).parents().each(function(){return!(o|=i(this).css("position")==="fixed")}),a={left:i.datepicker._pos[0],top:i.datepicker._pos[1]},i.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),i.datepicker._updateDatepicker(e),a=i.datepicker._checkOffset(e,a,o),e.dpDiv.css({position:i.datepicker._inDialog&&i.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),e.inline||(r=i.datepicker._get(e,"showAnim"),h=i.datepicker._get(e,"duration"),e.dpDiv.css("z-index",function(l){for(var u,p;l.length&&l[0]!==document;){if(((u=l.css("position"))==="absolute"||u==="relative"||u==="fixed")&&(p=parseInt(l.css("zIndex"),10),!isNaN(p)&&p!==0))return p;l=l.parent()}return 0}(i(t))+1),i.datepicker._datepickerShowing=!0,i.effects&&i.effects.effect[r]?e.dpDiv.show(r,i.datepicker._get(e,"showOptions"),h):e.dpDiv[r||"show"](r?h:null),i.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),i.datepicker._curInst=e)))},_updateDatepicker:function(t){this.maxRows=4,U=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,s=this._getNumberOfMonths(t),n=s[1],o=t.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&ht.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),t.dpDiv[(s[0]!==1||s[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===i.datepicker._curInst&&i.datepicker._datepickerShowing&&i.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,s){var n=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:i(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:i(document).scrollTop());return e.left-=this._get(t,"isRTL")?n-a:0,e.left-=s&&e.left===t.input.offset().left?i(document).scrollLeft():0,e.top-=s&&e.top===t.input.offset().top+r?i(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>h&&h>n?Math.abs(e.left+n-h):0),e.top-=Math.min(e.top,e.top+o>l&&l>o?Math.abs(o+r):0),e},_findPos:function(t){for(var e,s=this._getInst(t),n=this._get(s,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||i.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(e=i(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,s,n,o,a=this._curInst;!a||t&&a!==i.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){i.datepicker._tidyDialog(a)},i.effects&&(i.effects.effect[e]||i.effects[e])?a.dpDiv.hide(e,i.datepicker._get(a,"showOptions"),s,n):a.dpDiv[e==="slideDown"?"slideUp":e==="fadeIn"?"fadeOut":"hide"](e?s:null,n),e||n(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),i.blockUI&&(i.unblockUI(),i("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(i.datepicker._curInst){var e=i(t.target),s=i.datepicker._getInst(e[0]);(e[0].id!==i.datepicker._mainDivId&&e.parents("#"+i.datepicker._mainDivId).length===0&&!e.hasClass(i.datepicker.markerClassName)&&!e.closest("."+i.datepicker._triggerClass).length&&i.datepicker._datepickerShowing&&(!i.datepicker._inDialog||!i.blockUI)||e.hasClass(i.datepicker.markerClassName)&&i.datepicker._curInst!==s)&&i.datepicker._hideDatepicker()}},_adjustDate:function(t,e,s){var n=i(t),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,e+(s==="M"?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(t){var e,s=i(t),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(t,e,s){var n=i(t),o=this._getInst(n[0]);o["selected"+(s==="M"?"Month":"Year")]=o["draw"+(s==="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(t,e,s,n){var o,a=i(t);i(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=i("a",n).html(),o.selectedMonth=o.currentMonth=e,o.selectedYear=o.currentYear=s,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var e=i(t);this._selectDate(e,"")},_selectDate:function(t,e){var s,n=i(t),o=this._getInst(n[0]);e=e??this._formatDate(o),o.input&&o.input.val(e),this._updateAlternate(o),(s=this._get(o,"onSelect"))?s.apply(o.input?o.input[0]:null,[e,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],typeof o.input[0]!="object"&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,s,n,o=this._get(t,"altField");o&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(e,s,this._getFormatConfig(t)),i(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,s=new Date(t.getTime());return s.setDate(s.getDate()+4-(s.getDay()||7)),e=s.getTime(),s.setMonth(0),s.setDate(1),Math.floor(Math.round((e-s)/864e5)/7)+1},parseDate:function(t,e,s){if(t==null||e==null)throw"Invalid arguments";if((e=typeof e=="object"?""+e:e+"")=="")return null;var n,o,a,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,u=typeof l!="string"?l:new Date().getFullYear()%100+parseInt(l,10),p=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,f=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,m=(s?s.monthNames:null)||this._defaults.monthNames,c=-1,g=-1,_=-1,v=-1,b=!1,y=function(w){var D=t.length>n+1&&t.charAt(n+1)===w;return D&&n++,D},C=function(w){var D=y(w),I=w==="@"?14:w==="!"?20:w==="y"&&D?4:w==="o"?3:2,T=RegExp("^\\d{"+(w==="y"?I:1)+","+I+"}"),P=e.substring(h).match(T);if(!P)throw"Missing number at position "+h;return h+=P[0].length,parseInt(P[0],10)},x=function(w,D,I){var T=-1,P=i.map(y(w)?I:D,function(A,O){return[[O,A]]}).sort(function(A,O){return-(A[1].length-O[1].length)});if(i.each(P,function(A,O){var R=O[1];return e.substr(h,R.length).toLowerCase()===R.toLowerCase()?(T=O[0],h+=R.length,!1):void 0}),T!==-1)return T+1;throw"Unknown name at position "+h},k=function(){if(e.charAt(h)!==t.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;t.length>n;n++)if(b)t.charAt(n)!=="'"||y("'")?k():b=!1;else switch(t.charAt(n)){case"d":_=C("d");break;case"D":x("D",p,d);break;case"o":v=C("o");break;case"m":g=C("m");break;case"M":g=x("M",f,m);break;case"y":c=C("y");break;case"@":c=(r=new Date(C("@"))).getFullYear(),g=r.getMonth()+1,_=r.getDate();break;case"!":c=(r=new Date((C("!")-this._ticksTo1970)/1e4)).getFullYear(),g=r.getMonth()+1,_=r.getDate();break;case"'":y("'")?k():b=!0;break;default:k()}if(e.length>h&&(a=e.substr(h),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(c===-1?c=new Date().getFullYear():100>c&&(c+=new Date().getFullYear()-new Date().getFullYear()%100+(u>=c?0:-100)),v>-1)for(g=1,_=v;!((o=this._getDaysInMonth(c,g-1))>=_);)g++,_-=o;if((r=this._daylightSavingAdjust(new Date(c,g-1,_))).getFullYear()!==c||r.getMonth()+1!==g||r.getDate()!==_)throw"Invalid date";return r},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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,s){if(!e)return"";var n,o=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,a=(s?s.dayNames:null)||this._defaults.dayNames,r=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,h=(s?s.monthNames:null)||this._defaults.monthNames,l=function(m){var c=t.length>n+1&&t.charAt(n+1)===m;return c&&n++,c},u=function(m,c,g){var _=""+c;if(l(m))for(;g>_.length;)_="0"+_;return _},p=function(m,c,g,_){return l(m)?_[c]:g[c]},d="",f=!1;if(e)for(n=0;t.length>n;n++)if(f)t.charAt(n)!=="'"||l("'")?d+=t.charAt(n):f=!1;else switch(t.charAt(n)){case"d":d+=u("d",e.getDate(),2);break;case"D":d+=p("D",e.getDay(),o,a);break;case"o":d+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=u("m",e.getMonth()+1,2);break;case"M":d+=p("M",e.getMonth(),r,h);break;case"y":d+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":f=!0;break;default:d+=t.charAt(n)}return d},_possibleChars:function(t){var e,s="",n=!1,o=function(a){var r=t.length>e+1&&t.charAt(e+1)===a;return r&&e++,r};for(e=0;t.length>e;e++)if(n)t.charAt(e)!=="'"||o("'")?s+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":s+="0123456789";break;case"D":case"M":return null;case"'":o("'")?s+="'":n=!0;break;default:s+=t.charAt(e)}return s},_get:function(t,e){return t.settings[e]!==void 0?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var s=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),a=o,r=this._getFormatConfig(t);try{a=this.parseDate(s,n,r)||o}catch{n=e?"":n}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=n?a.getDate():0,t.currentMonth=n?a.getMonth():0,t.currentYear=n?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,s){var n=e==null||e===""?s:typeof e=="string"?function(o){try{return i.datepicker.parseDate(i.datepicker._get(t,"dateFormat"),o,i.datepicker._getFormatConfig(t))}catch{}for(var a=(o.toLowerCase().match(/^c/)?i.datepicker._getDate(t):null)||new Date,r=a.getFullYear(),h=a.getMonth(),l=a.getDate(),u=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,p=u.exec(o);p;){switch(p[2]||"d"){case"d":case"D":l+=parseInt(p[1],10);break;case"w":case"W":l+=7*parseInt(p[1],10);break;case"m":case"M":h+=parseInt(p[1],10),l=Math.min(l,i.datepicker._getDaysInMonth(r,h));break;case"y":case"Y":r+=parseInt(p[1],10),l=Math.min(l,i.datepicker._getDaysInMonth(r,h))}p=u.exec(o)}return new Date(r,h,l)}(e):typeof e=="number"?isNaN(e)?s:function(o){var a=new Date;return a.setDate(a.getDate()+o),a}(e):new Date(e.getTime());return(n=n&&""+n=="Invalid Date"?s:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,s){var n=!e,o=t.selectedMonth,a=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),o===t.selectedMonth&&a===t.selectedYear||s||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&t.input.val()===""?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var n={prev:function(){i.datepicker._adjustDate(s,-e,"M")},next:function(){i.datepicker._adjustDate(s,+e,"M")},hide:function(){i.datepicker._hideDatepicker()},today:function(){i.datepicker._gotoToday(s)},selectDay:function(){return i.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return i.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return i.datepicker._selectMonthYear(s,this,"Y"),!1}};i(this).on(this.getAttribute("data-event"),n[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,s,n,o,a,r,h,l,u,p,d,f,m,c,g,_,v,b,y,C,x,k,w,D,I,T,P,A,O,R,$,H,Y,M,N,j,W,E,B,et=new Date,it=this._daylightSavingAdjust(new Date(et.getFullYear(),et.getMonth(),et.getDate())),F=this._get(t,"isRTL"),gt=this._get(t,"showButtonPanel"),ut=this._get(t,"hideIfNoPrevNext"),st=this._get(t,"navigationAsDateFormat"),L=this._getNumberOfMonths(t),mt=this._get(t,"showCurrentAtPos"),dt=this._get(t,"stepMonths"),nt=L[0]!==1||L[1]!==1,ot=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),V=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),S=t.drawMonth-mt,z=t.drawYear;if(0>S&&(S+=12,z--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-L[0]*L[1]+1,q.getDate())),e=V&&V>e?V:e;this._daylightSavingAdjust(new Date(z,S,1))>e;)0>--S&&(S=11,z--);for(t.drawMonth=S,t.drawYear=z,s=this._get(t,"prevText"),s=st?this.formatDate(s,this._daylightSavingAdjust(new Date(z,S-dt,1)),this._getFormatConfig(t)):s,n=this._canAdjustMonth(t,-1,z,S)?"<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>":ut?"":"<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>",o=this._get(t,"nextText"),o=st?this.formatDate(o,this._daylightSavingAdjust(new Date(z,S+dt,1)),this._getFormatConfig(t)):o,a=this._canAdjustMonth(t,1,z,S)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+o+"</span></a>":ut?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+o+"</span></a>",r=this._get(t,"currentText"),h=this._get(t,"gotoCurrent")&&t.currentDay?ot:it,r=st?this.formatDate(r,h,this._getFormatConfig(t)):r,l=t.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(t,"closeText")+"</button>",u=gt?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(F?l:"")+(this._isInRange(t,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(F?"":l)+"</div>":"",p=parseInt(this._get(t,"firstDay"),10),p=isNaN(p)?0:p,d=this._get(t,"showWeek"),f=this._get(t,"dayNames"),m=this._get(t,"dayNamesMin"),c=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),_=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),C="",k=0;L[0]>k;k++){for(w="",this.maxRows=4,D=0;L[1]>D;D++){if(I=this._daylightSavingAdjust(new Date(z,S,t.selectedDay)),T=" ui-corner-all",P="",nt){if(P+="<div class='ui-datepicker-group",L[1]>1)switch(D){case 0:P+=" ui-datepicker-group-first",T=" ui-corner-"+(F?"right":"left");break;case L[1]-1:P+=" ui-datepicker-group-last",T=" ui-corner-"+(F?"left":"right");break;default:P+=" ui-datepicker-group-middle",T=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&k===0?F?a:n:"")+(/all|right/.test(T)&&k===0?F?n:a:"")+this._generateMonthYearHeader(t,S,z,V,q,k>0||D>0,c,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;7>x;x++)O=(x+p)%7,A+="<th scope='col'"+((x+p+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+f[O]+"'>"+m[O]+"</span></th>";for(P+=A+"</tr></thead><tbody>",R=this._getDaysInMonth(z,S),z===t.selectedYear&&S===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,R)),$=(this._getFirstDayOfMonth(z,S)-p+7)%7,H=Math.ceil(($+R)/7),Y=nt&&this.maxRows>H?this.maxRows:H,this.maxRows=Y,M=this._daylightSavingAdjust(new Date(z,S,1-$)),N=0;Y>N;N++){for(P+="<tr>",j=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(M)+"</td>":"",x=0;7>x;x++)W=_?_.apply(t.input?t.input[0]:null,[M]):[!0,""],B=(E=M.getMonth()!==S)&&!b||!W[0]||V&&V>M||q&&M>q,j+="<td class='"+((x+p+6)%7>=5?" ui-datepicker-week-end":"")+(E?" ui-datepicker-other-month":"")+(M.getTime()===I.getTime()&&S===t.selectedMonth&&t._keyEvent||y.getTime()===M.getTime()&&y.getTime()===I.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(E&&!v?"":" "+W[1]+(M.getTime()===ot.getTime()?" "+this._currentClass:"")+(M.getTime()===it.getTime()?" ui-datepicker-today":""))+"'"+(E&&!v||!W[2]?"":" title='"+W[2].replace(/'/g,"&#39;")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(E&&!v?"&#xa0;":B?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===it.getTime()?" ui-state-highlight":"")+(M.getTime()===ot.getTime()?" ui-state-active":"")+(E?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);P+=j+"</tr>"}++S>11&&(S=0,z++),w+=P+="</tbody></table>"+(nt?"</div>"+(L[0]>0&&D===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}C+=w}return C+=u,t._keyEvent=!1,C},_generateMonthYearHeader:function(t,e,s,n,o,a,r,h){var l,u,p,d,f,m,c,g,_=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",C="";if(a||!_)C+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===s,u=o&&o.getFullYear()===s,C+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",p=0;12>p;p++)(!l||p>=n.getMonth())&&(!u||o.getMonth()>=p)&&(C+="<option value='"+p+"'"+(p===e?" selected='selected'":"")+">"+h[p]+"</option>");C+="</select>"}if(b||(y+=C+(!a&&_&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!v)y+="<span class='ui-datepicker-year'>"+s+"</span>";else{for(d=this._get(t,"yearRange").split(":"),f=new Date().getFullYear(),c=(m=function(x){var k=x.match(/c[+\-].*/)?s+parseInt(x.substring(1),10):x.match(/[+\-].*/)?f+parseInt(x,10):parseInt(x,10);return isNaN(k)?f:k})(d[0]),g=Math.max(c,m(d[1]||"")),c=n?Math.max(c,n.getFullYear()):c,g=o?Math.min(g,o.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=c;c++)t.yearshtml+="<option value='"+c+"'"+(c===s?" selected='selected'":"")+">"+c+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),b&&(y+=(!a&&_&&v?"":"&#xa0;")+C),y+"</div>"},_adjustInstDate:function(t,e,s){var n=t.selectedYear+(s==="Y"?e:0),o=t.selectedMonth+(s==="M"?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(n,o))+(s==="D"?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,o,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),(s==="M"||s==="Y")&&this._notifyChange(t)},_restrictMinMax:function(t,e){var s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=s&&s>e?s:e;return n&&o>n?n:o},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return e==null?[1,1]:typeof e=="number"?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,s,n){var o=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(s,n+(0>e?e:o[0]*o[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var s,n,o=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),r=null,h=null,l=this._get(t,"yearRange");return l&&(s=l.split(":"),n=new Date().getFullYear(),r=parseInt(s[0],10),h=parseInt(s[1],10),s[0].match(/[+\-].*/)&&(r+=n),s[1].match(/[+\-].*/)&&(h+=n)),(!o||e.getTime()>=o.getTime())&&(!a||e.getTime()<=a.getTime())&&(!r||e.getFullYear()>=r)&&(!h||h>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e=typeof e!="string"?e:new Date().getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,s,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(n,s,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),i.fn.datepicker=function(t){if(!this.length)return this;i.datepicker.initialized||(i(document).on("mousedown",i.datepicker._checkExternalClick),i.datepicker.initialized=!0),i("#"+i.datepicker._mainDivId).length===0&&i("body").append(i.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return typeof t!="string"||t!=="isDisabled"&&t!=="getDate"&&t!=="widget"?t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?i.datepicker["_"+t+"Datepicker"].apply(i.datepicker,[this[0]].concat(e)):this.each(function(){typeof t=="string"?i.datepicker["_"+t+"Datepicker"].apply(i.datepicker,[this].concat(e)):i.datepicker._attachDatepicker(this,t)}):i.datepicker["_"+t+"Datepicker"].apply(i.datepicker,[this[0]].concat(e))},i.datepicker=new at,i.datepicker.initialized=!1,i.datepicker.uuid=new Date().getTime(),i.datepicker.version="1.12.1",i.datepicker,i.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 e=i(this).css(t).offset().top;0>e&&i(this).css("top",t.top-e)}},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&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.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)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=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||i.ui.safeBlur(i.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!e&&this._trigger("focus",t),s},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=i(i.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(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(t){function e(){var s=i.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===s||i.contains(this.uiDialog[0],s)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=i("<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===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),s=e.filter(":first"),n=e.filter(":last");t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==s[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){n.trigger("focus")}),t.preventDefault()):(this._delay(function(){s.trigger("focus")}),t.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){i(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<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(e){e.preventDefault(),this.close(e)}}),t=i("<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(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||i.isArray(e)&&!e.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,function(s,n){var o,a;n=i.isFunction(n)?{click:n,text:s}:n,n=i.extend({type:"button"},n),o=n.click,a={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,typeof n.text=="boolean"&&delete n.text,i("<button></button>",n).button(a).appendTo(t.uiButtonSet).on("click",function(){o.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function t(n){return{position:n.position,offset:n.offset}}var e=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){e._addClass(i(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",n,t(o))},drag:function(n,o){e._trigger("drag",n,t(o))},stop:function(n,o){var a=o.offset.left-e.document.scrollLeft(),r=o.offset.top-e.document.scrollTop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(r>=0?"+":"")+r,of:e.window},e._removeClass(i(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",n,t(o))}})},_makeResizable:function(){function t(r){return{originalPosition:r.originalPosition,originalSize:r.originalSize,position:r.position,size:r.size}}var e=this,s=this.options,n=s.resizable,o=this.uiDialog.css("position"),a=typeof n=="string"?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(r,h){e._addClass(i(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",r,t(h))},resize:function(r,h){e._trigger("resize",r,t(h))},stop:function(r,h){var l=e.uiDialog.offset(),u=l.left-e.document.scrollLeft(),p=l.top-e.document.scrollTop();s.height=e.uiDialog.height(),s.width=e.uiDialog.width(),s.position={my:"left top",at:"left"+(u>=0?"+":"")+u+" top"+(p>=0?"+":"")+p,of:e.window},e._removeClass(i(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",r,t(h))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);e!==-1&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return t.height==="auto"?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var e=this,s=!1,n={};i.each(t,function(o,a){e._setOption(o,a),o in e.sizeRelatedOptions&&(s=!0),o in e.resizableRelatedOptions&&(n[o]=a)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var s,n,o=this.uiDialog;t!=="disabled"&&(this._super(t,e),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&((s=o.is(":data(ui-draggable)"))&&!e&&o.draggable("destroy"),!s&&e&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&((n=o.is(":data(ui-resizable)"))&&!e&&o.resizable("destroy"),n&&typeof e=="string"&&o.resizable("option","handles",e),n||e===!1||this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,s,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(),e=Math.max(0,n.minHeight-t),s=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none",n.height==="auto"?this.element.css({minHeight:e,maxHeight:s,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=i(this);return i("<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!!i(t.target).closest(".ui-dialog").length||!!i(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(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=i("<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 t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),i.uiBackCompat!==!1&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){t==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),i.ui.dialog,i.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=i("<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(t){return t===void 0?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return t===void 0&&(t=this.options.value),this.indeterminate=t===!1,typeof t!="number"&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){t==="max"&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.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=i("<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")}}),i.widget("ui.selectmenu",[i.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=i()},_drawButton:function(){var t,e=this,s=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=i("<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=i("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=i("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=i("<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(e,s){e.preventDefault(),t._setSelection(),t._select(s.item.data("ui-selectmenu-item"),e)},focus:function(e,s){var n=s.item.data("ui-selectmenu-item");t.focusIndex!=null&&n.index!==t.focusIndex&&(t._trigger("focus",e,{item:n}),t.isOpen||t._select(n,e)),t.focusIndex=n.index,t.button.attr("aria-activedescendant",t.menuItems.eq(n.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 t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),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,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){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",t)))},_position:function(){this.menuWrap.position(i.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=i("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(t,e){var s=this,n="";i.each(e,function(o,a){var r;a.optgroup!==n&&(r=i("<li>",{text:a.optgroup}),s._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),n=a.optgroup),s._renderItemData(t,a)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var s=i("<li>"),n=i("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setText(n,e.label),s.append(n).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var s,n,o=".ui-menu-item";this.isOpen?s=this.menuItems.eq(this.focusIndex).parent("li"):(s=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),o+=":not(.ui-state-disabled)"),(n=t==="first"||t==="last"?s[t==="first"?"prevAll":"nextAll"](o).eq(-1):s[t+"All"](o).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(i(t.target).closest(".ui-selectmenu-menu, #"+i.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case i.ui.keyCode.TAB:case i.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case i.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case i.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case i.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case i.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case i.ui.keyCode.LEFT:this._move("prev",t);break;case i.ui.keyCode.RIGHT:this._move("next",t);break;case i.ui.keyCode.HOME:case i.ui.keyCode.PAGE_UP:this._move("first",t);break;case i.ui.keyCode.END:case i.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var s=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==s&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if(t==="icons"){var s=this.button.find("span.ui-icon");this._removeClass(s,null,this.options.icons.button)._addClass(s,null,e.button)}this._super(t,e),t==="appendTo"&&this.menuWrap.appendTo(this._appendTo()),t==="width"&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(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?i(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 t=this.options.width;return t===!1?void this.button.css("width",""):(t===null&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var e=this,s=[];t.each(function(n,o){s.push(e._parseOption(i(o),n))}),this.items=s},_parseOption:function(t,e){var s=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:s.attr("label")||"",disabled:s.prop("disabled")||t.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)}}]),i.widget("ui.slider",i.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 t,e,s=this.options,n=this.element.find(".ui-slider-handle"),o=[];for(e=s.values&&s.values.length||1,n.length>e&&(n.slice(e).remove(),n=n.slice(0,e)),t=n.length;e>t;t++)o.push("<span tabindex='0'></span>");this.handles=n.add(i(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(a){i(this).data("ui-slider-handle-index",a).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]]:i.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=i("<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 e,s,n,o,a,r,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(e),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(p){var d=Math.abs(s-l.values(p));(n>d||n===d&&(p===l._lastChangedValue||l.values(p)===u.min))&&(n=d,o=i(this),a=p)}),this._start(t,a)!==!1&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),r=o.offset(),h=!i(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:t.pageX-r.left-o.width()/2,top:t.pageY-r.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,s),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,s,n,o,a;return this.orientation==="horizontal"?(e=this.elementSize.width,s=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,s=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=s/e)>1&&(n=1),0>n&&(n=0),this.orientation==="vertical"&&(n=1-n),o=this._valueMax()-this._valueMin(),a=this._valueMin()+n*o,this._trimAlignValue(a)},_uiHash:function(t,e,s){var n={handle:this.handles[t],handleIndex:t,value:e!==void 0?e:this.value()};return this._hasMultipleValues()&&(n.value=e!==void 0?e:this.values(t),n.values=s||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,s){var n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),this.options.values.length===2&&this.options.range===!0&&(s=e===0?Math.min(n,s):Math.max(n,s)),a[e]=s),s!==o&&this._trigger("slide",t,this._uiHash(e,s,a))!==!1&&(this._hasMultipleValues()?this.values(e,s):this.value(s))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var s,n,o;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!i.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(t,e){var s,n=0;switch(t==="range"&&this.options.range===!0&&(e==="min"?(this.options.value=this._values(0),this.options.values=null):e==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),i.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),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(e),this.handles.css(e==="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(),s=n-1;s>=0;s--)this._change(null,s);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(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,s,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(s=this.options.values.slice(),n=0;s.length>n;n+=1)s[n]=this._trimAlignValue(s[n]);return s}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,s=(t-this._valueMin())%e,n=t-s;return 2*Math.abs(s)>=e&&(n+=s>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),s=this.options.step;(t=Math.round((t-e)/s)*s+e)>this.options.max&&(t-=s),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return this.options.min!==null&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,s=e.indexOf(".");return s===-1?0:e.length-s-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){t==="vertical"&&this.range.css({width:"",left:""}),t==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,e,s,n,o,a=this.options.range,r=this.options,h=this,l=!this._animateOff&&r.animate,u={};this._hasMultipleValues()?this.handles.each(function(p){e=(h.values(p)-h._valueMin())/(h._valueMax()-h._valueMin())*100,u[h.orientation==="horizontal"?"left":"bottom"]=e+"%",i(this).stop(1,1)[l?"animate":"css"](u,r.animate),h.options.range===!0&&(h.orientation==="horizontal"?(p===0&&h.range.stop(1,1)[l?"animate":"css"]({left:e+"%"},r.animate),p===1&&h.range[l?"animate":"css"]({width:e-t+"%"},{queue:!1,duration:r.animate})):(p===0&&h.range.stop(1,1)[l?"animate":"css"]({bottom:e+"%"},r.animate),p===1&&h.range[l?"animate":"css"]({height:e-t+"%"},{queue:!1,duration:r.animate}))),t=e}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),e=o!==n?(s-n)/(o-n)*100:0,u[this.orientation==="horizontal"?"left":"bottom"]=e+"%",this.handle.stop(1,1)[l?"animate":"css"](u,r.animate),a==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[l?"animate":"css"]({width:e+"%"},r.animate),a==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[l?"animate":"css"]({width:100-e+"%"},r.animate),a==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[l?"animate":"css"]({height:e+"%"},r.animate),a==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[l?"animate":"css"]({height:100-e+"%"},r.animate))},_handleEvents:{keydown:function(t){var e,s,n,o=i(t.target).data("ui-slider-handle-index");switch(t.keyCode){case i.ui.keyCode.HOME:case i.ui.keyCode.END:case i.ui.keyCode.PAGE_UP:case i.ui.keyCode.PAGE_DOWN:case i.ui.keyCode.UP:case i.ui.keyCode.RIGHT:case i.ui.keyCode.DOWN:case i.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(i(t.target),null,"ui-state-active"),this._start(t,o)===!1))return}switch(n=this.options.step,e=s=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case i.ui.keyCode.HOME:s=this._valueMin();break;case i.ui.keyCode.END:s=this._valueMax();break;case i.ui.keyCode.PAGE_UP:s=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case i.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case i.ui.keyCode.UP:case i.ui.keyCode.RIGHT:if(e===this._valueMax())return;s=this._trimAlignValue(e+n);break;case i.ui.keyCode.DOWN:case i.ui.keyCode.LEFT:if(e===this._valueMin())return;s=this._trimAlignValue(e-n)}this._slide(t,o,s)},keyup:function(t){var e=i(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(i(t.target),null,"ui-state-active"))}}}),i.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(),e=this.element;return i.each(["min","max","step"],function(s,n){var o=e.attr(n);o!=null&&o.length&&(t[n]=o)}),t},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>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 e(){this.element[0]===i.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===i.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),e.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,e.call(this)}),this._start(t)!==!1&&this._repeat(null,i(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return i(t.currentTarget).hasClass("ui-state-active")?this._start(t)!==!1&&void this._repeat(null,i(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t):void 0},"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(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,s=i.ui.keyCode;switch(t.keyCode){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(null,-1,t),!0;case s.PAGE_UP:return this._repeat(null,e.page,t),!0;case s.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&this._trigger("start",t)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,s){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,s)},t),this._spin(e*this.options.step,s)},_spin:function(t,e){var s=this.value()||0;this.counter||(this.counter=1),s=this._adjustValue(s+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:s})===!1||(this._value(s),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?i.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return this.options.min!==null&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,s=e.indexOf(".");return s===-1?0:e.length-s-1},_adjustValue:function(t){var e,s,n=this.options;return s=t-(e=n.min!==null?n.min:0),t=e+(s=Math.round(s/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),n.max!==null&&t>n.max?n.max:n.min!==null&&n.min>t?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var s,n,o;return t==="culture"||t==="numberFormat"?(s=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(s))):((t==="max"||t==="min"||t==="step")&&typeof e=="string"&&(e=this._parse(e)),t==="icons"&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),o=this.buttons.last().find(".ui-icon"),this._removeClass(o,null,this.options.icons.down),this._addClass(o,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:K(function(t){this._super(t)}),_parse:function(t){return typeof t=="string"&&t!==""&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),t===""||isNaN(t)?null:t},_format:function(t){return t===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_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 t=this.value();return t!==null&&t===this._adjustValue(t)},_value:function(t,e){var s;t!==""&&(s=this._parse(t))!==null&&(e||(s=this._adjustValue(s)),t=this._format(s)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:K(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:K(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:K(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:K(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void K(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),i.uiBackCompat!==!1&&i.widget("ui.spinner",i.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>"}}),i.ui.spinner,i.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 t=/#.*$/;return function(e){var s,n;s=e.href.replace(t,""),n=location.href.replace(t,"");try{s=decodeURIComponent(s)}catch{}try{n=decodeURIComponent(n)}catch{}return e.hash.length>1&&s===n}}(),_create:function(){var t=this,e=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,e.collapsible),this._processTabs(),e.active=this._initialActive(),i.isArray(e.disabled)&&(e.disabled=i.unique(e.disabled.concat(i.map(this.tabs.filter(".ui-state-disabled"),function(s){return t.tabs.index(s)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(e.active):i(),this._refresh(),this.active.length&&this.load(e.active)},_initialActive:function(){var t=this.options.active,e=this.options.collapsible,s=location.hash.substring(1);return t===null&&(s&&this.tabs.each(function(n,o){return i(o).attr("aria-controls")===s?(t=n,!1):void 0}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=!!this.tabs.length&&0)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)))===-1&&(t=!e&&0),!e&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):i()}},_tabKeydown:function(t){var e=i(i.ui.safeActiveElement(this.document[0])).closest("li"),s=this.tabs.index(e),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case i.ui.keyCode.RIGHT:case i.ui.keyCode.DOWN:s++;break;case i.ui.keyCode.UP:case i.ui.keyCode.LEFT:n=!1,s--;break;case i.ui.keyCode.END:s=this.anchors.length-1;break;case i.ui.keyCode.HOME:s=0;break;case i.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s);case i.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s!==this.options.active&&s);default:return}t.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===i.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===i.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===i.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var s=this.tabs.length-1;i.inArray((t>s&&(t=0),0>t&&(t=s),t),this.options.disabled)!==-1;)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return t==="active"?void this._activate(e):(this._super(t,e),t==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),t==="event"&&this._setupEvents(e),void(t==="heightStyle"&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=i.map(e.filter(".ui-state-disabled"),function(s){return e.index(s)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!i.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=i()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=i()),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,e=this.tabs,s=this.anchors,n=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(o){i(this).is(".ui-state-disabled")&&o.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){i(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 i("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=i(),this.anchors.each(function(o,a){var r,h,l,u=i(a).uniqueId().attr("id"),p=i(a).closest("li"),d=p.attr("aria-controls");t._isLocal(a)?(l=(r=a.hash).substring(1),h=t.element.find(t._sanitizeSelector(r))):(r="#"+(l=p.attr("aria-controls")||i({}).uniqueId()[0].id),(h=t.element.find(r)).length||(h=t._createPanel(l)).insertAfter(t.panels[o-1]||t.tablist),h.attr("aria-live","polite")),h.length&&(t.panels=t.panels.add(h)),d&&p.data("ui-tabs-aria-controls",d),p.attr({"aria-controls":l,"aria-labelledby":u}),h.attr("aria-labelledby",u)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),e&&(this._off(e.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return i("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,s,n;for(i.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;s=this.tabs[n];n++)e=i(s),t===!0||i.inArray(n,t)!==-1?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var e={};t&&i.each(t.split(" "),function(s,n){e[n]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(s){s.preventDefault()}}),this._on(this.anchors,e),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var e,s=this.element.parent();t==="fill"?(e=s.height(),e-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var n=i(this),o=n.css("position");o!=="absolute"&&o!=="fixed"&&(e-=n.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){e-=i(this).outerHeight(!0)}),this.panels.each(function(){i(this).height(Math.max(0,e-i(this).innerHeight()+i(this).height()))}).css("overflow","auto")):t==="auto"&&(e=0,this.panels.each(function(){e=Math.max(e,i(this).height("").height())}).height(e))},_eventHandler:function(t){var e=this.options,s=this.active,n=i(t.currentTarget).closest("li"),o=n[0]===s[0],a=o&&e.collapsible,r=a?i():this._getPanelForTab(n),h=s.length?this._getPanelForTab(s):i(),l={oldTab:s,oldPanel:h,newTab:a?i():n,newPanel:r};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||o&&!e.collapsible||this._trigger("beforeActivate",t,l)===!1||(e.active=!a&&this.tabs.index(n),this.active=o?i():n,this.xhr&&this.xhr.abort(),h.length||r.length||i.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),t),this._toggle(t,l))},_toggle:function(t,e){function s(){o.running=!1,o._trigger("activate",t,e)}function n(){o._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=e.newPanel,r=e.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return i(this).attr("tabIndex")===0}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var e,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),e=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:i.noop}))},_findActive:function(t){return t===!1?i():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+i.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(){i.data(this,"ui-tabs-destroy")?i(this).remove():i(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=i(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var e=this.options.disabled;e!==!1&&(t===void 0?e=!1:(t=this._getIndex(t),e=i.isArray(e)?i.map(e,function(s){return s!==t?s:null}):i.map(this.tabs,function(s,n){return n!==t?n:null})),this._setOptionDisabled(e))},disable:function(t){var e=this.options.disabled;if(e!==!0){if(t===void 0)e=!0;else{if(t=this._getIndex(t),i.inArray(t,e)!==-1)return;e=i.isArray(e)?i.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,e){t=this._getIndex(t);var s=this,n=this.tabs.eq(t),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),r={tab:n,panel:a},h=function(l,u){u==="abort"&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),l===s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=i.ajax(this._ajaxSettings(o,e,r)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(l,u,p){setTimeout(function(){a.html(l),s._trigger("load",e,r),h(p,u)},1)}).fail(function(l,u){setTimeout(function(){h(l,u)},1)})))},_ajaxSettings:function(t,e,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(o,a){return n._trigger("beforeLoad",e,i.extend({jqXHR:o,ajaxSettings:a},s))}}},_getPanelForTab:function(t){var e=i(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),i.uiBackCompat!==!1&&i.widget("ui.tabs",i.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),i.ui.tabs;var Q="ui-effects-",Z="ui-effects-style",tt="ui-effects-animated",ct=i;i.effects={effect:{}},function(t,e){function s(c,g,_){var v=p[g.type]||{};return c==null?_||!g.def?null:g.def:(c=v.floor?~~c:parseFloat(c),isNaN(c)?g.def:v.mod?(c+v.mod)%v.mod:0>c?0:c>v.max?v.max:c)}function n(c){var g=l(),_=g._rgba=[];return c=c.toLowerCase(),m(h,function(v,b){var y,C=b.re.exec(c),x=C&&b.parse(C),k=b.space||"rgba";return x?(y=g[k](x),g[u[k].cache]=y[u[k].cache],_=g._rgba=y._rgba,!1):e}),_.length?(_.join()==="0,0,0,0"&&t.extend(_,a.transparent),g):a[c]}function o(c,g,_){return 1>6*(_=(_+1)%1)?c+6*(g-c)*_:1>2*_?g:2>3*_?c+6*(g-c)*(2/3-_):c}var a,r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[c[1],c[2],c[3],c[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[2.55*c[1],2.55*c[2],2.55*c[3],c[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(c){return[c[1],c[2]/100,c[3]/100,c[4]]}}],l=t.Color=function(c,g,_,v){return new t.Color.fn.parse(c,g,_,v)},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"}}}},p={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},f=t("<p>")[0],m=t.each;f.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=f.style.backgroundColor.indexOf("rgba")>-1,m(u,function(c,g){g.cache="_"+c,g.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(c,g,_,v){if(c===e)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=t(c).css(g),g=e);var b=this,y=t.type(c),C=this._rgba=[];return g!==e&&(c=[c,g,_,v],y="array"),y==="string"?this.parse(n(c)||a._default):y==="array"?(m(u.rgba.props,function(x,k){C[k.idx]=s(c[k.idx],k)}),this):y==="object"?(m(u,c instanceof l?function(x,k){c[k.cache]&&(b[k.cache]=c[k.cache].slice())}:function(x,k){var w=k.cache;m(k.props,function(D,I){if(!b[w]&&k.to){if(D==="alpha"||c[D]==null)return;b[w]=k.to(b._rgba)}b[w][I.idx]=s(c[D],I,!0)}),b[w]&&0>t.inArray(null,b[w].slice(0,3))&&(b[w][3]=1,k.from&&(b._rgba=k.from(b[w])))}),this):e},is:function(c){var g=l(c),_=!0,v=this;return m(u,function(b,y){var C,x=g[y.cache];return x&&(C=v[y.cache]||y.to&&y.to(v._rgba)||[],m(y.props,function(k,w){return x[w.idx]!=null?_=x[w.idx]===C[w.idx]:e})),_}),_},_space:function(){var c=[],g=this;return m(u,function(_,v){g[v.cache]&&c.push(_)}),c.pop()},transition:function(c,g){var _=l(c),v=_._space(),b=u[v],y=this.alpha()===0?l("transparent"):this,C=y[b.cache]||b.to(y._rgba),x=C.slice();return _=_[b.cache],m(b.props,function(k,w){var D=w.idx,I=C[D],T=_[D],P=p[w.type]||{};T!==null&&(I===null?x[D]=T:(P.mod&&(T-I>P.mod/2?I+=P.mod:I-T>P.mod/2&&(I-=P.mod)),x[D]=s((T-I)*g+I,w)))}),this[v](x)},blend:function(c){if(this._rgba[3]===1)return this;var g=this._rgba.slice(),_=g.pop(),v=l(c)._rgba;return l(t.map(g,function(b,y){return(1-_)*v[y]+_*b}))},toRgbaString:function(){var c="rgba(",g=t.map(this._rgba,function(_,v){return _??(v>2?1:0)});return g[3]===1&&(g.pop(),c="rgb("),c+g.join()+")"},toHslaString:function(){var c="hsla(",g=t.map(this.hsla(),function(_,v){return _==null&&(_=v>2?1:0),v&&3>v&&(_=Math.round(100*_)+"%"),_});return g[3]===1&&(g.pop(),c="hsl("),c+g.join()+")"},toHexString:function(c){var g=this._rgba.slice(),_=g.pop();return c&&g.push(~~(255*_)),"#"+t.map(g,function(v){return(v=(v||0).toString(16)).length===1?"0"+v:v}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var g,_,v=c[0]/255,b=c[1]/255,y=c[2]/255,C=c[3],x=Math.max(v,b,y),k=Math.min(v,b,y),w=x-k,D=x+k,I=.5*D;return g=k===x?0:v===x?60*(b-y)/w+360:b===x?60*(y-v)/w+120:60*(v-b)/w+240,_=w===0?0:.5>=I?w/D:w/(2-D),[Math.round(g)%360,_,I,C??1]},u.hsla.from=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var g=c[0]/360,_=c[1],v=c[2],b=c[3],y=.5>=v?v*(1+_):v+_-v*_,C=2*v-y;return[Math.round(255*o(C,y,g+1/3)),Math.round(255*o(C,y,g)),Math.round(255*o(C,y,g-1/3)),b]},m(u,function(c,g){var _=g.props,v=g.cache,b=g.to,y=g.from;l.fn[c]=function(C){if(b&&!this[v]&&(this[v]=b(this._rgba)),C===e)return this[v].slice();var x,k=t.type(C),w=k==="array"||k==="object"?C:arguments,D=this[v].slice();return m(_,function(I,T){var P=w[k==="object"?I:T.idx];P==null&&(P=D[T.idx]),D[T.idx]=s(P,T)}),y?((x=l(y(D)))[v]=D,x):l(D)},m(_,function(C,x){l.fn[C]||(l.fn[C]=function(k){var w,D=t.type(k),I=C==="alpha"?this._hsla?"hsla":"rgba":c,T=this[I](),P=T[x.idx];return D==="undefined"?P:(D==="function"&&(k=k.call(this,P),D=t.type(k)),k==null&&x.empty?this:(D==="string"&&(w=r.exec(k))&&(k=P+parseFloat(w[2])*(w[1]==="+"?1:-1)),T[x.idx]=k,this[I](T)))})})}),l.hook=function(c){var g=c.split(" ");m(g,function(_,v){t.cssHooks[v]={set:function(b,y){var C,x,k="";if(y!=="transparent"&&(t.type(y)!=="string"||(C=n(y)))){if(y=l(C||y),!d.rgba&&y._rgba[3]!==1){for(x=v==="backgroundColor"?b.parentNode:b;(k===""||k==="transparent")&&x&&x.style;)try{k=t.css(x,"backgroundColor"),x=x.parentNode}catch{}y=y.blend(k&&k!=="transparent"?k:"_default")}y=y.toRgbaString()}try{b.style[v]=y}catch{}}},t.fx.step[v]=function(b){b.colorInit||(b.start=l(b.elem,v),b.end=l(b.end),b.colorInit=!0),t.cssHooks[v].set(b.elem,b.start.transition(b.end,b.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(c){var g={};return m(["Top","Right","Bottom","Left"],function(_,v){g["border"+v+"Color"]=c}),g}},a=t.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"}}(ct),function(){function t(o){var a,r,h=o.ownerDocument.defaultView?o.ownerDocument.defaultView.getComputedStyle(o,null):o.currentStyle,l={};if(h&&h.length&&h[0]&&h[h[0]])for(r=h.length;r--;)typeof h[a=h[r]]=="string"&&(l[i.camelCase(a)]=h[a]);else for(a in h)typeof h[a]=="string"&&(l[a]=h[a]);return l}function e(o,a){var r,h,l={};for(r in a)h=a[r],o[r]!==h&&(n[r]||(i.fx.step[r]||!isNaN(parseFloat(h)))&&(l[r]=h));return l}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};i.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(o,a){i.fx.step[a]=function(r){(r.end!=="none"&&!r.setAttr||r.pos===1&&!r.setAttr)&&(ct.style(r.elem,a,r.end),r.setAttr=!0)}}),i.fn.addBack||(i.fn.addBack=function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}),i.effects.animateClass=function(o,a,r,h){var l=i.speed(a,r,h);return this.queue(function(){var u,p=i(this),d=p.attr("class")||"",f=l.children?p.find("*").addBack():p;f=f.map(function(){return{el:i(this),start:t(this)}}),(u=function(){i.each(s,function(m,c){o[c]&&p[c+"Class"](o[c])})})(),f=f.map(function(){return this.end=t(this.el[0]),this.diff=e(this.start,this.end),this}),p.attr("class",d),f=f.map(function(){var m=this,c=i.Deferred(),g=i.extend({},l,{queue:!1,complete:function(){c.resolve(m)}});return this.el.animate(this.diff,g),c.promise()}),i.when.apply(i,f.get()).done(function(){u(),i.each(arguments,function(){var m=this.el;i.each(this.diff,function(c){m.css(c,"")})}),l.complete.call(p[0])})})},i.fn.extend({addClass:function(o){return function(a,r,h,l){return r?i.effects.animateClass.call(this,{add:a},r,h,l):o.apply(this,arguments)}}(i.fn.addClass),removeClass:function(o){return function(a,r,h,l){return arguments.length>1?i.effects.animateClass.call(this,{remove:a},r,h,l):o.apply(this,arguments)}}(i.fn.removeClass),toggleClass:function(o){return function(a,r,h,l,u){return typeof r=="boolean"||r===void 0?h?i.effects.animateClass.call(this,r?{add:a}:{remove:a},h,l,u):o.apply(this,arguments):i.effects.animateClass.call(this,{toggle:a},r,h,l)}}(i.fn.toggleClass),switchClass:function(o,a,r,h,l){return i.effects.animateClass.call(this,{add:a,remove:o},r,h,l)}})}(),function(){function t(n,o,a,r){return i.isPlainObject(n)&&(o=n,n=n.effect),n={effect:n},o==null&&(o={}),i.isFunction(o)&&(r=o,a=null,o={}),(typeof o=="number"||i.fx.speeds[o])&&(r=a,a=o,o={}),i.isFunction(a)&&(r=a,a=null),o&&i.extend(n,o),a=a||o.duration,n.duration=i.fx.off?0:typeof a=="number"?a:a in i.fx.speeds?i.fx.speeds[a]:i.fx.speeds._default,n.complete=r||o.complete,n}function e(n){return!(n&&typeof n!="number"&&!i.fx.speeds[n])||typeof n=="string"&&!i.effects.effect[n]||!!i.isFunction(n)||typeof n=="object"&&!n.effect}function s(n,o){var a=o.outerWidth(),r=o.outerHeight(),h=/^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,a,r,0];return{top:parseFloat(h[1])||0,right:h[2]==="auto"?a:parseFloat(h[2]),bottom:h[3]==="auto"?r:parseFloat(h[3]),left:parseFloat(h[4])||0}}i.expr&&i.expr.filters&&i.expr.filters.animated&&(i.expr.filters.animated=function(n){return function(o){return!!i(o).data(tt)||n(o)}}(i.expr.filters.animated)),i.uiBackCompat!==!1&&i.extend(i.effects,{save:function(n,o){for(var a=0,r=o.length;r>a;a++)o[a]!==null&&n.data(Q+o[a],n[0].style[o[a]])},restore:function(n,o){for(var a,r=0,h=o.length;h>r;r++)o[r]!==null&&(a=n.data(Q+o[r]),n.css(o[r],a))},setMode:function(n,o){return o==="toggle"&&(o=n.is(":hidden")?"show":"hide"),o},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var o={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},a=i("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:n.width(),height:n.height()},h=document.activeElement;try{h.id}catch{h=document.body}return n.wrap(a),(n[0]===h||i.contains(n[0],h))&&i(h).trigger("focus"),a=n.parent(),n.css("position")==="static"?(a.css({position:"relative"}),n.css({position:"relative"})):(i.extend(o,{position:n.css("position"),zIndex:n.css("z-index")}),i.each(["top","left","bottom","right"],function(l,u){o[u]=n.css(u),isNaN(parseInt(o[u],10))&&(o[u]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(r),a.css(o).show()},removeWrapper:function(n){var o=document.activeElement;return n.parent().is(".ui-effects-wrapper")&&(n.parent().replaceWith(n),(n[0]===o||i.contains(n[0],o))&&i(o).trigger("focus")),n}}),i.extend(i.effects,{version:"1.12.1",define:function(n,o,a){return a||(a=o,o="effect"),i.effects.effect[n]=a,i.effects.effect[n].mode=o,a},scaledDimensions:function(n,o,a){if(o===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=a!=="horizontal"?(o||100)/100:1,h=a!=="vertical"?(o||100)/100:1;return{height:n.height()*h,width:n.width()*r,outerHeight:n.outerHeight()*h,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,o,a){var r=n.queue();o>1&&r.splice.apply(r,[1,0].concat(r.splice(o,a))),n.dequeue()},saveStyle:function(n){n.data(Z,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(Z)||"",n.removeData(Z)},mode:function(n,o){var a=n.is(":hidden");return o==="toggle"&&(o=a?"show":"hide"),(a?o==="hide":o==="show")&&(o="none"),o},getBaseline:function(n,o){var a,r;switch(n[0]){case"top":a=0;break;case"middle":a=.5;break;case"bottom":a=1;break;default:a=n[0]/o.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/o.width}return{x:r,y:a}},createPlaceholder:function(n){var o,a=n.css("position"),r=n.position();return n.css({marginTop:n.css("marginTop"),marginBottom:n.css("marginBottom"),marginLeft:n.css("marginLeft"),marginRight:n.css("marginRight")}).outerWidth(n.outerWidth()).outerHeight(n.outerHeight()),/^(static|relative)/.test(a)&&(a="absolute",o=i("<"+n[0].nodeName+">").insertAfter(n).css({display:/^(inline|ruby)/.test(n.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:n.css("marginTop"),marginBottom:n.css("marginBottom"),marginLeft:n.css("marginLeft"),marginRight:n.css("marginRight"),float:n.css("float")}).outerWidth(n.outerWidth()).outerHeight(n.outerHeight()).addClass("ui-effects-placeholder"),n.data(Q+"placeholder",o)),n.css({position:a,left:r.left,top:r.top}),o},removePlaceholder:function(n){var o=Q+"placeholder",a=n.data(o);a&&(a.remove(),n.removeData(o))},cleanUp:function(n){i.effects.restoreStyle(n),i.effects.removePlaceholder(n)},setTransition:function(n,o,a,r){return r=r||{},i.each(o,function(h,l){var u=n.cssUnit(l);u[0]>0&&(r[l]=u[0]*a+u[1])}),r}}),i.fn.extend({effect:function(){function n(m){function c(){i.isFunction(u)&&u.call(g[0]),i.isFunction(m)&&m()}var g=i(this);o.mode=d.shift(),i.uiBackCompat===!1||r?o.mode==="none"?(g[p](),c()):a.call(g[0],o,function(){g.removeData(tt),i.effects.cleanUp(g),o.mode==="hide"&&g.hide(),c()}):(g.is(":hidden")?p==="hide":p==="show")?(g[p](),c()):a.call(g[0],o,c)}var o=t.apply(this,arguments),a=i.effects.effect[o.effect],r=a.mode,h=o.queue,l=h||"fx",u=o.complete,p=o.mode,d=[],f=function(m){var c=i(this),g=i.effects.mode(c,p)||r;c.data(tt,!0),d.push(g),r&&(g==="show"||g===r&&g==="hide")&&c.show(),r&&g==="none"||i.effects.saveStyle(c),i.isFunction(m)&&m()};return i.fx.off||!a?p?this[p](o.duration,u):this.each(function(){u&&u.call(this)}):h===!1?this.each(f).each(n):this.queue(l,f).queue(l,n)},show:function(n){return function(o){if(e(o))return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="show",this.effect.call(this,a)}}(i.fn.show),hide:function(n){return function(o){if(e(o))return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="hide",this.effect.call(this,a)}}(i.fn.hide),toggle:function(n){return function(o){if(e(o)||typeof o=="boolean")return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="toggle",this.effect.call(this,a)}}(i.fn.toggle),cssUnit:function(n){var o=this.css(n),a=[];return i.each(["em","px","%","pt"],function(r,h){o.indexOf(h)>0&&(a=[parseFloat(o),h])}),a},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):s(this.css("clip"),this)},transfer:function(n,o){var a=i(this),r=i(n.to),h=r.css("position")==="fixed",l=i("body"),u=h?l.scrollTop():0,p=h?l.scrollLeft():0,d=r.offset(),f={top:d.top-u,left:d.left-p,height:r.innerHeight(),width:r.innerWidth()},m=a.offset(),c=i("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(n.className).css({top:m.top-u,left:m.left-p,height:a.innerHeight(),width:a.innerWidth(),position:h?"fixed":"absolute"}).animate(f,n.duration,n.easing,function(){c.remove(),i.isFunction(o)&&o()})}}),i.fx.step.clip=function(n){n.clipInit||(n.start=i(n.elem).cssClip(),typeof n.end=="string"&&(n.end=s(n.end,n.elem)),n.clipInit=!0),i(n.elem).cssClip({top:n.pos*(n.end.top-n.start.top)+n.start.top,right:n.pos*(n.end.right-n.start.right)+n.start.right,bottom:n.pos*(n.end.bottom-n.start.bottom)+n.start.bottom,left:n.pos*(n.end.left-n.start.left)+n.start.left})}}(),function(){var t={};i.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,s){t[s]=function(n){return Math.pow(n,e+2)}}),i.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var s,n=4;((s=Math.pow(2,--n))-1)/11>e;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*s-2)/22-e,2)}}),i.each(t,function(e,s){i.easing["easeIn"+e]=s,i.easing["easeOut"+e]=function(n){return 1-s(1-n)},i.easing["easeInOut"+e]=function(n){return .5>n?s(2*n)/2:1-s(-2*n+2)/2}})}(),i.effects,i.effects.define("blind","hide",function(t,e){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=i(this),o=t.direction||"up",a=n.cssClip(),r={clip:i.extend({},a)},h=i.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],t.mode==="show"&&(n.cssClip(r.clip),h&&h.css(i.effects.clipToBox(r)),r.clip=a),h&&h.animate(i.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("bounce",function(t,e){var s,n,o,a=i(this),r=t.mode,h=r==="hide",l=r==="show",u=t.direction||"up",p=t.distance,d=t.times||5,f=2*d+(l||h?1:0),m=t.duration/f,c=t.easing,g=u==="up"||u==="down"?"top":"left",_=u==="up"||u==="left",v=0,b=a.queue().length;for(i.effects.createPlaceholder(a),o=a.css(g),p||(p=a[g==="top"?"outerHeight":"outerWidth"]()/3),l&&((n={opacity:1})[g]=o,a.css("opacity",0).css(g,_?2*-p:2*p).animate(n,m,c)),h&&(p/=Math.pow(2,d-1)),(n={})[g]=o;d>v;v++)(s={})[g]=(_?"-=":"+=")+p,a.animate(s,m,c).animate(n,m,c),p=h?2*p:p/2;h&&((s={opacity:0})[g]=(_?"-=":"+=")+p,a.animate(s,m,c)),a.queue(e),i.effects.unshift(a,b,f+1)}),i.effects.define("clip","hide",function(t,e){var s,n={},o=i(this),a=t.direction||"vertical",r=a==="both",h=r||a==="horizontal",l=r||a==="vertical";s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},i.effects.createPlaceholder(o),t.mode==="show"&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("drop","hide",function(t,e){var s,n=i(this),o=t.mode==="show",a=t.direction||"left",r=a==="up"||a==="down"?"top":"left",h=a==="up"||a==="left"?"-=":"+=",l=h==="+="?"-=":"+=",u={opacity:0};i.effects.createPlaceholder(n),s=t.distance||n[r==="top"?"outerHeight":"outerWidth"](!0)/2,u[r]=h+s,o&&(n.css(u),u[r]=l+s,u.opacity=1),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("explode","hide",function(t,e){function s(){_.push(this),_.length===u*p&&(d.css({visibility:"visible"}),i(_).remove(),e())}var n,o,a,r,h,l,u=t.pieces?Math.round(Math.sqrt(t.pieces)):3,p=u,d=i(this),f=t.mode==="show",m=d.show().css("visibility","hidden").offset(),c=Math.ceil(d.outerWidth()/p),g=Math.ceil(d.outerHeight()/u),_=[];for(n=0;u>n;n++)for(r=m.top+n*g,l=n-(u-1)/2,o=0;p>o;o++)a=m.left+o*c,h=o-(p-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*c,top:-n*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:c,height:g,left:a+(f?h*c:0),top:r+(f?l*g:0),opacity:f?0:1}).animate({left:a+(f?0:h*c),top:r+(f?0:l*g),opacity:f?1:0},t.duration||500,t.easing,s)}),i.effects.define("fade","toggle",function(t,e){var s=t.mode==="show";i(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("fold","hide",function(t,e){var s=i(this),n=t.mode,o=n==="show",a=n==="hide",r=t.size||15,h=/([0-9]+)%/.exec(r),l=t.horizFirst?["right","bottom"]:["bottom","right"],u=t.duration/2,p=i.effects.createPlaceholder(s),d=s.cssClip(),f={clip:i.extend({},d)},m={clip:i.extend({},d)},c=[d[l[0]],d[l[1]]],g=s.queue().length;h&&(r=parseInt(h[1],10)/100*c[a?0:1]),f.clip[l[0]]=r,m.clip[l[0]]=r,m.clip[l[1]]=0,o&&(s.cssClip(m.clip),p&&p.css(i.effects.clipToBox(m)),m.clip=d),s.queue(function(_){p&&p.animate(i.effects.clipToBox(f),u,t.easing).animate(i.effects.clipToBox(m),u,t.easing),_()}).animate(f,u,t.easing).animate(m,u,t.easing).queue(e),i.effects.unshift(s,g,4)}),i.effects.define("highlight","show",function(t,e){var s=i(this),n={backgroundColor:s.css("backgroundColor")};t.mode==="hide"&&(n.opacity=0),i.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("size",function(t,e){var s,n,o,a=i(this),r=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,p=u!=="effect",d=t.scale||"both",f=t.origin||["middle","center"],m=a.css("position"),c=a.position(),g=i.effects.scaledDimensions(a),_=t.from||g,v=t.to||i.effects.scaledDimensions(a,0);i.effects.createPlaceholder(a),u==="show"&&(o=_,_=v,v=o),n={from:{y:_.height/g.height,x:_.width/g.width},to:{y:v.height/g.height,x:v.width/g.width}},(d==="box"||d==="both")&&(n.from.y!==n.to.y&&(_=i.effects.setTransition(a,h,n.from.y,_),v=i.effects.setTransition(a,h,n.to.y,v)),n.from.x!==n.to.x&&(_=i.effects.setTransition(a,l,n.from.x,_),v=i.effects.setTransition(a,l,n.to.x,v))),(d==="content"||d==="both")&&n.from.y!==n.to.y&&(_=i.effects.setTransition(a,r,n.from.y,_),v=i.effects.setTransition(a,r,n.to.y,v)),f&&(s=i.effects.getBaseline(f,g),_.top=(g.outerHeight-_.outerHeight)*s.y+c.top,_.left=(g.outerWidth-_.outerWidth)*s.x+c.left,v.top=(g.outerHeight-v.outerHeight)*s.y+c.top,v.left=(g.outerWidth-v.outerWidth)*s.x+c.left),a.css(_),(d==="content"||d==="both")&&(h=h.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var b=i(this),y=i.effects.scaledDimensions(b),C={height:y.height*n.from.y,width:y.width*n.from.x,outerHeight:y.outerHeight*n.from.y,outerWidth:y.outerWidth*n.from.x},x={height:y.height*n.to.y,width:y.width*n.to.x,outerHeight:y.height*n.to.y,outerWidth:y.width*n.to.x};n.from.y!==n.to.y&&(C=i.effects.setTransition(b,h,n.from.y,C),x=i.effects.setTransition(b,h,n.to.y,x)),n.from.x!==n.to.x&&(C=i.effects.setTransition(b,l,n.from.x,C),x=i.effects.setTransition(b,l,n.to.x,x)),p&&i.effects.saveStyle(b),b.css(C),b.animate(x,t.duration,t.easing,function(){p&&i.effects.restoreStyle(b)})})),a.animate(v,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var b=a.offset();v.opacity===0&&a.css("opacity",_.opacity),p||(a.css("position",m==="static"?"relative":m).offset(b),i.effects.saveStyle(a)),e()}})}),i.effects.define("scale",function(t,e){var s=i(this),n=t.mode,o=parseInt(t.percent,10)||(parseInt(t.percent,10)===0||n!=="effect"?0:100),a=i.extend(!0,{from:i.effects.scaledDimensions(s),to:i.effects.scaledDimensions(s,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(a.from.opacity=1,a.to.opacity=0),i.effects.effect.size.call(this,a,e)}),i.effects.define("puff","hide",function(t,e){var s=i.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});i.effects.effect.scale.call(this,s,e)}),i.effects.define("pulsate","show",function(t,e){var s=i(this),n=t.mode,o=n==="show",a=o||n==="hide",r=2*(t.times||5)+(a?1:0),h=t.duration/r,l=0,u=1,p=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),l=1);r>u;u++)s.animate({opacity:l},h,t.easing),l=1-l;s.animate({opacity:l},h,t.easing),s.queue(e),i.effects.unshift(s,p,r+1)}),i.effects.define("shake",function(t,e){var s=1,n=i(this),o=t.direction||"left",a=t.distance||20,r=t.times||3,h=2*r+1,l=Math.round(t.duration/h),u=o==="up"||o==="down"?"top":"left",p=o==="up"||o==="left",d={},f={},m={},c=n.queue().length;for(i.effects.createPlaceholder(n),d[u]=(p?"-=":"+=")+a,f[u]=(p?"+=":"-=")+2*a,m[u]=(p?"-=":"+=")+2*a,n.animate(d,l,t.easing);r>s;s++)n.animate(f,l,t.easing).animate(m,l,t.easing);n.animate(f,l,t.easing).animate(d,l/2,t.easing).queue(e),i.effects.unshift(n,c,h+1)}),i.effects.define("slide","show",function(t,e){var s,n,o=i(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,h=t.direction||"left",l=h==="up"||h==="down"?"top":"left",u=h==="up"||h==="left",p=t.distance||o[l==="top"?"outerHeight":"outerWidth"](!0),d={};i.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[l],d[l]=(u?-1:1)*p+n,d.clip=o.cssClip(),d.clip[a[h][1]]=d.clip[a[h][0]],r==="show"&&(o.cssClip(d.clip),o.css(l,d[l]),d.clip=s,d[l]=n),o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.uiBackCompat!==!1&&i.effects.define("transfer",function(t,e){i(this).transfer(t,e)})});