(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(a){a.ui=a.ui||{};return a.ui.version="1.12.1"}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(d,c,b){return!!a.data(d,b[3])}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.fn.extend({disableSelection:(function(){var b="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(b+".ui-disableSelection",function(c){c.preventDefault()})}})(),enableSelection:function(){return this.off(".ui-disableSelection")}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){a.ui.focusable=function(f,d){var i,g,e,h,c,j=f.nodeName.toLowerCase();if("area"===j){i=f.parentNode;g=i.name;if(!f.href||!g||i.nodeName.toLowerCase()!=="map"){return false}e=a("img[usemap='#"+g+"']");return e.length>0&&e.is(":visible")}if(/^(input|select|textarea|button|object)$/.test(j)){h=!f.disabled;if(h){c=a(f).closest("fieldset")[0];if(c){h=!c.disabled}}}else{if("a"===j){h=f.href||d}else{h=d}}return h&&a(f).is(":visible")&&b(a(f))};function b(d){var c=d.css("visibility");while(c==="inherit"){d=d.parent();c=d.css("visibility")}return c!=="hidden"}a.extend(a.expr[":"],{focusable:function(c){return a.ui.focusable(c,a.attr(c,"tabindex")!=null)}});return a.ui.focusable}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.fn.form=function(){return typeof this[0].form==="string"?this.closest("form"):a(this[0].form)}}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.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}}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){if(a.fn.jquery.substring(0,3)==="1.7"){a.each(["Width","Height"],function(d,b){var c=b==="Width"?["Left","Right"]:["Top","Bottom"],e=b.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function f(j,i,h,k){a.each(c,function(){i-=parseFloat(a.css(j,"padding"+this))||0;if(h){i-=parseFloat(a.css(j,"border"+this+"Width"))||0}if(k){i-=parseFloat(a.css(j,"margin"+this))||0}});return i}a.fn["inner"+b]=function(h){if(h===undefined){return g["inner"+b].call(this)}return this.each(function(){a(this).css(e,f(this,h)+"px")})};a.fn["outer"+b]=function(h,i){if(typeof h!=="number"){return g["outer"+b].call(this,h)}return this.each(function(){a(this).css(e,f(this,h,true,i)+"px")})}});a.fn.addBack=function(b){return this.add(b==null?this.prevObject:this.prevObject.filter(b))}}}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.ui.plugin={add:function(c,d,f){var b,e=a.ui[c].prototype;for(b in f){e.plugins[b]=e.plugins[b]||[];e.plugins[b].push([d,f[b]])}},call:function(b,e,d,c){var f,g=b.plugins[e];if(!g){return}if(!c&&(!b.element[0].parentNode||b.element[0].parentNode.nodeType===11)){return}for(f=0;f=0)&&a.ui.focusable(d,b)}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){return a.fn.extend({uniqueId:(function(){var b=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+(++b)}})}})(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){a(this).removeAttr("id")}})}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(b){var c=0;var a=Array.prototype.slice;b.cleanData=(function(d){return function(f){var h,j,g;for(g=0;(j=f[g])!=null;g++){try{h=b._data(j,"events");if(h&&h.remove){b(j).triggerHandler("remove")}}catch(k){}}d(f)}})(b.cleanData);b.widget=function(d,e,l){var j,g,k;var f={};var i=d.split(".")[0];d=d.split(".")[1];var h=i+"-"+d;if(!l){l=e;e=b.Widget}if(b.isArray(l)){l=b.extend.apply(null,[{}].concat(l))}b.expr[":"][h.toLowerCase()]=function(m){return!!b.data(m,h)};b[i]=b[i]||{};j=b[i][d];g=b[i][d]=function(m,n){if(!this._createWidget){return new g(m,n)}if(arguments.length){this._createWidget(m,n)}};b.extend(g,j,{version:l.version,_proto:b.extend({},l),_childConstructors:[]});k=new e();k.options=b.widget.extend({},k.options);b.each(l,function(n,m){if(!b.isFunction(m)){f[n]=m;return}f[n]=(function(){function o(){return e.prototype[n].apply(this,arguments)}function p(q){return e.prototype[n].apply(this,q)}return function(){var s=this._super;var q=this._superApply;var r;this._super=o;this._superApply=p;r=m.apply(this,arguments);this._super=s;this._superApply=q;return r}})()});g.prototype=b.widget.extend(k,{widgetEventPrefix:j?(k.widgetEventPrefix||d):d},f,{constructor:g,namespace:i,widgetName:d,widgetFullName:h});if(j){b.each(j._childConstructors,function(n,o){var m=o.prototype;b.widget(m.namespace+"."+m.widgetName,g,o._proto)});delete j._childConstructors}else{e._childConstructors.push(g)}b.widget.bridge(d,g);return g};b.widget.extend=function(i){var e=a.call(arguments,1);var h=0;var d=e.length;var f;var g;for(;h",options:{classes:{},disabled:false,create:null},_createWidget:function(d,e){e=b(e||this.defaultElement||this)[0];this.element=b(e);this.uuid=c++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=b();this.hoverable=b();this.focusable=b();this.classesElementLookup={};if(e!==this){b.data(e,this.widgetFullName,this);this._on(true,this.element,{remove:function(f){if(f.target===e){this.destroy()}}});this.document=b(e.style?e.ownerDocument:e.document||e);this.window=b(this.document[0].defaultView||this.document[0].parentWindow)}this.options=b.widget.extend({},this.options,this._getCreateOptions(),d);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled)}this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:b.noop,_create:b.noop,_init:b.noop,destroy:function(){var d=this;this._destroy();b.each(this.classesElementLookup,function(e,f){d._removeClass(f,e)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:b.noop,widget:function(){return this.element},option:function(g,h){var d=g;var j;var f;var e;if(arguments.length===0){return b.widget.extend({},this.options)}if(typeof g==="string"){d={};j=g.split(".");g=j.shift();if(j.length){f=d[g]=b.widget.extend({},this.options[g]);for(e=0;e=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./version"],a)}else{a(jQuery)}}(function(a){(function(){var i,j=Math.max,m=Math.abs,d=/left|center|right/,g=/top|center|bottom/,b=/[\+\-]\d+(\.[\d]+)?%?/,k=/^\w+/,c=/%$/,f=a.fn.position;function l(p,o,n){return[parseFloat(p[0])*(c.test(p[0])?o/100:1),parseFloat(p[1])*(c.test(p[1])?n/100:1)]}function h(n,o){return parseInt(a.css(n,o),10)||0}function e(o){var n=o[0];if(n.nodeType===9){return{width:o.width(),height:o.height(),offset:{top:0,left:0}}}if(a.isWindow(n)){return{width:o.width(),height:o.height(),offset:{top:o.scrollTop(),left:o.scrollLeft()}}}if(n.preventDefault){return{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}}return{width:o.outerWidth(),height:o.outerHeight(),offset:o.offset()}}a.position={scrollbarWidth:function(){if(i!==undefined){return i}var o,n,q=a("
"),p=q.children()[0];a("body").append(q);o=p.offsetWidth;q.css("overflow","scroll");n=p.offsetWidth;if(o===n){n=q[0].clientWidth}q.remove();return(i=o-n)},getScrollInfo:function(r){var q=r.isWindow||r.isDocument?"":r.element.css("overflow-x"),p=r.isWindow||r.isDocument?"":r.element.css("overflow-y"),o=q==="scroll"||(q==="auto"&&r.width0?"right":"center",vertical:L<0?"top":O>0?"bottom":"middle"};if(uj(m(O),m(L))){K.important="horizontal"}else{K.important="vertical"}x.using.call(this,N,K)}}C.offset(a.extend(F,{using:J}))})};a.ui.position={fit:{left:function(r,q){var p=q.within,t=p.isWindow?p.scrollLeft:p.offset.left,v=p.width,s=r.left-q.collisionPosition.marginLeft,u=t-s,o=s+q.collisionWidth-v-t,n;if(q.collisionWidth>v){if(u>0&&o<=0){n=r.left+u+q.collisionWidth-v-t;r.left+=u-n}else{if(o>0&&u<=0){r.left=t}else{if(u>o){r.left=t+v-q.collisionWidth}else{r.left=t}}}}else{if(u>0){r.left+=u}else{if(o>0){r.left-=o}else{r.left=j(r.left-s,r.left)}}}},top:function(q,p){var o=p.within,u=o.isWindow?o.scrollTop:o.offset.top,v=p.within.height,s=q.top-p.collisionPosition.marginTop,t=u-s,r=s+p.collisionHeight-v-u,n;if(p.collisionHeight>v){if(t>0&&r<=0){n=q.top+t+p.collisionHeight-v-u;q.top+=t-n}else{if(r>0&&t<=0){q.top=u}else{if(t>r){q.top=u+v-p.collisionHeight}else{q.top=u}}}}else{if(t>0){q.top+=t}else{if(r>0){q.top-=r}else{q.top=j(q.top-s,q.top)}}}}},flip:{left:function(t,s){var r=s.within,x=r.offset.left+r.scrollLeft,A=r.width,p=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-s.collisionPosition.marginLeft,y=u-p,o=u+s.collisionWidth-A-p,w=s.my[0]==="left"?-s.elemWidth:s.my[0]==="right"?s.elemWidth:0,z=s.at[0]==="left"?s.targetWidth:s.at[0]==="right"?-s.targetWidth:0,q=-2*s.offset[0],n,v;if(y<0){n=t.left+w+z+q+s.collisionWidth-A-x;if(n<0||n0){v=t.left-s.collisionPosition.marginLeft+w+z+q-p;if(v>0||m(v)0){y=s.top-r.collisionPosition.marginTop+v+B+p-n;if(y>0||m(y) 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 b=this.options;this.prevShow=this.prevHide=a();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");if(!b.collapsible&&(b.active===false||b.active==null)){b.active=0}this._processPanels();if(b.active<0){b.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?a():this.active.next()}},_createIcons:function(){var d,c,b=this.options.icons;if(b){d=a("");this._addClass(d,"ui-accordion-header-icon","ui-icon "+b.header);d.prependTo(this.headers);c=this.active.children(".ui-accordion-header-icon");this._removeClass(c,b.header)._addClass(c,null,b.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 b;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();b=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();if(this.options.heightStyle!=="content"){b.css("height","")}},_setOption:function(b,c){if(b==="active"){this._activate(c);return}if(b==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(c)}this._super(b,c);if(b==="collapsible"&&!c&&this.options.active===false){this._activate(0)}if(b==="icons"){this._destroyIcons();if(c){this._createIcons()}}},_setOptionDisabled:function(b){this._super(b);this.element.attr("aria-disabled",b);this._toggleClass(null,"ui-state-disabled",!!b);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!b)},_keydown:function(e){if(e.altKey||e.ctrlKey){return}var f=a.ui.keyCode,d=this.headers.length,b=this.headers.index(e.target),c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:this._eventHandler(e);break;case f.HOME:c=this.headers[0];break;case f.END:c=this.headers[d-1];break}if(c){a(e.target).attr("tabIndex",-1);a(c).attr("tabIndex",0);a(c).trigger("focus");e.preventDefault()}},_panelKeyDown:function(b){if(b.keyCode===a.ui.keyCode.UP&&b.ctrlKey){a(b.currentTarget).prev().trigger("focus")}},refresh:function(){var b=this.options;this._processPanels();if((b.active===false&&b.collapsible===true)||!this.headers.length){b.active=false;this.active=a()}else{if(b.active===false){this._activate(0)}else{if(this.active.length&&!a.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".ui-state-disabled").length){b.active=false;this.active=a()}else{this._activate(Math.max(0,b.active-1))}}else{b.active=this.headers.index(this.active)}}}this._destroyIcons();this._refresh()},_processPanels:function(){var c=this.headers,b=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");if(b){this._off(c.not(this.headers));this._off(b.not(this.panels))}},_refresh:function(){var e,c=this.options,b=c.heightStyle,d=this.element.parent();this.active=this._findActive(c.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 i=a(this),h=i.uniqueId().attr("id"),f=i.next(),g=f.uniqueId().attr("id");i.attr("aria-controls",g);f.attr("aria-labelledby",h)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"})}this._createIcons();this._setupEvents(c.event);if(b==="fill"){e=d.height();this.element.siblings(":visible").each(function(){var g=a(this),f=g.css("position");if(f==="absolute"||f==="fixed"){return}e-=g.outerHeight(true)});this.headers.each(function(){e-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,e-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(b==="auto"){e=0;this.headers.next().each(function(){var f=a(this).is(":visible");if(!f){a(this).show()}e=Math.max(e,a(this).css("height","").height());if(!f){a(this).hide()}}).height(e)}}},_activate:function(b){var c=this._findActive(b)[0];if(c===this.active[0]){return}c=c||this.active[0];this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop})},_findActive:function(b){return typeof b==="number"?this.headers.eq(b):a()},_setupEvents:function(c){var b={keydown:"_keydown"};if(c){a.each(c.split(" "),function(e,d){b[d]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,b);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(c){var d,e,l=this.options,g=this.active,h=a(c.currentTarget),j=h[0]===g[0],f=j&&l.collapsible,b=f?a():h.next(),i=g.next(),k={oldHeader:g,oldPanel:i,newHeader:f?a():h,newPanel:b};c.preventDefault();if((j&&!l.collapsible)||(this._trigger("beforeActivate",c,k)===false)){return}l.active=f?false:this.headers.index(h);this.active=j?a():h;this._toggle(k);this._removeClass(g,"ui-accordion-header-active","ui-state-active");if(l.icons){d=g.children(".ui-accordion-header-icon");this._removeClass(d,null,l.icons.activeHeader)._addClass(d,null,l.icons.header)}if(!j){this._removeClass(h,"ui-accordion-header-collapsed")._addClass(h,"ui-accordion-header-active","ui-state-active");if(l.icons){e=h.children(".ui-accordion-header-icon");this._removeClass(e,null,l.icons.header)._addClass(e,null,l.icons.activeHeader)}this._addClass(h.next(),"ui-accordion-content-active")}},_toggle:function(d){var b=d.newPanel,c=this.prevShow.length?this.prevShow:d.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=b;this.prevHide=c;if(this.options.animate){this._animate(b,c,d)}else{c.hide();b.show();this._toggleComplete(d)}c.attr({"aria-hidden":"true"});c.prev().attr({"aria-selected":"false","aria-expanded":"false"});if(b.length&&c.length){c.prev().attr({tabIndex:-1,"aria-expanded":"false"})}else{if(b.length){this.headers.filter(function(){return parseInt(a(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1)}}b.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(b,k,g){var j,i,f,h=this,l=0,e=b.css("box-sizing"),m=b.length&&(!k.length||(b.index()",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var d,b,e,g=this.element[0].nodeName.toLowerCase(),f=g==="textarea",c=g==="input";this.isMultiLine=f||!c&&this._isContentEditable(this.element);this.valueMethod=this.element[f||c?"val":"text"];this.isNewMenu=true;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(h){if(this.element.prop("readOnly")){d=true;e=true;b=true;return}d=false;e=false;b=false;var i=a.ui.keyCode;switch(h.keyCode){case i.PAGE_UP:d=true;this._move("previousPage",h);break;case i.PAGE_DOWN:d=true;this._move("nextPage",h);break;case i.UP:d=true;this._keyEvent("previous",h);break;case i.DOWN:d=true;this._keyEvent("next",h);break;case i.ENTER:if(this.menu.active){d=true;h.preventDefault();this.menu.select(h)}break;case i.TAB:if(this.menu.active){this.menu.select(h)}break;case i.ESCAPE:if(this.menu.element.is(":visible")){if(!this.isMultiLine){this._value(this.term)}this.close(h);h.preventDefault()}break;default:b=true;this._searchTimeout(h);break}},keypress:function(h){if(d){d=false;if(!this.isMultiLine||this.menu.element.is(":visible")){h.preventDefault()}return}if(b){return}var i=a.ui.keyCode;switch(h.keyCode){case i.PAGE_UP:this._move("previousPage",h);break;case i.PAGE_DOWN:this._move("nextPage",h);break;case i.UP:this._keyEvent("previous",h);break;case i.DOWN:this._keyEvent("next",h);break}},input:function(h){if(e){e=false;h.preventDefault();return}this._searchTimeout(h)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(h){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(h);this._change(h)}});this._initSource();this.menu=a("