if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(C,t){"use strict";var e=[],k=C.document,s=Object.getPrototypeOf,r=e.slice,m=e.concat,l=e.push,n=e.indexOf,i={},o=i.toString,f=i.hasOwnProperty,a=f.toString,h=a.call(Object),g={};function v(t,e){var i=(e=e||k).createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}var c="3.1.1",T=function(t,e){return new T.fn.init(t,e)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=/^-ms-/,p=/-([a-z])/g,b=function(t,e){return e.toUpperCase()};function y(t){var e=!!t&&"length"in t&&t.length,i=T.type(t);return"function"!==i&&!T.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0+~]|"+z+")"+z+"*"),q=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),U=new RegExp(R),V=new RegExp("^"+H+"$"),Y={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),tt=function(t,e,i){var s="0x"+e-65536;return s!=s||i?e:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=function(){x()},nt=bt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(e=A.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){P.apply(t,A.call(e))}:function(t,e){for(var i=t.length,s=0;t[i++]=e[s++];);t.length=i-1}}}function ot(t,e,i,s){var n,o,a,r,l,h,c,u=e&&e.ownerDocument,d=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return i;if(!s&&((e?e.ownerDocument||e:b)!==C&&x(e),e=e||C,k)){if(11!==d&&(l=G.exec(t)))if(n=l[1]){if(9===d){if(!(a=e.getElementById(n)))return i;if(a.id===n)return i.push(a),i}else if(u&&(a=u.getElementById(n))&&v(e,a)&&a.id===n)return i.push(a),i}else{if(l[2])return O.apply(i,e.getElementsByTagName(t)),i;if((n=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(n)),i}if(p.qsa&&!S[t+" "]&&(!g||!g.test(t))){if(1!==d)u=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((r=e.getAttribute("id"))?r=r.replace(et,it):e.setAttribute("id",r=T),o=(h=f(t)).length;o--;)h[o]="#"+r+" "+vt(h[o]);c=h.join(","),u=J.test(t)&&mt(e.parentNode)||e}if(c)try{return O.apply(i,u.querySelectorAll(c)),i}catch(t){}finally{r===T&&e.removeAttribute("id")}}}return m(t.replace(j,"$1"),e,i,s)}function at(){var i=[];function s(t,e){return i.push(t+" ")>_.cacheLength&&delete s[i.shift()],s[t+" "]=e}return s}function rt(t){return t[T]=!0,t}function lt(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var i=t.split("|"),s=i.length;s--;)_.attrHandle[i[s]]=e}function ct(t,e){var i=e&&t,s=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(s)return s;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(i){return function(t){var e;return"input"===t.nodeName.toLowerCase()&&t.type===i}}function dt(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&nt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(a){return rt(function(o){return o=+o,rt(function(t,e){for(var i,s=a([],t.length,o),n=s.length;n--;)t[i=s[n]]&&(t[i]=!(e[i]=t[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=ot.support={},n=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},x=ot.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:b;return s!==C&&9===s.nodeType&&s.documentElement&&(a=(C=s).documentElement,k=!n(C),b!==C&&(i=C.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",st,!1):i.attachEvent&&i.attachEvent("onunload",st)),p.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=lt(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=X.test(C.getElementsByClassName),p.getById=lt(function(t){return a.appendChild(t).id=T,!C.getElementsByName||!C.getElementsByName(T).length}),p.getById?(_.filter.ID=function(t){var e=t.replace(Z,tt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i=e.getElementById(t);return i?[i]:[]}}):(_.filter.ID=function(t){var i=t.replace(Z,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i,s,n,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(n=e.getElementsByName(t),s=0;o=n[s++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),_.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,s=[],n=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[n++];)1===i.nodeType&&s.push(i);return s},_.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},r=[],g=[],(p.qsa=X.test(C.querySelectorAll))&&(lt(function(t){a.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+z+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+T+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+z+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=X.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&<(function(t){p.disconnectedMatch=c.call(t,"*"),c.call(t,"[s!='']:x"),r.push("!=",R)}),g=g.length&&new RegExp(g.join("|")),r=r.length&&new RegExp(r.join("|")),e=X.test(a.compareDocumentPosition),v=e||X.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,s=e&&e.parentNode;return t===s||!(!s||1!==s.nodeType||!(i.contains?i.contains(s):t.compareDocumentPosition&&16&t.compareDocumentPosition(s)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},I=e?function(t,e){if(t===e)return h=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===i?t===C||t.ownerDocument===b&&v(b,t)?-1:e===C||e.ownerDocument===b&&v(b,e)?1:l?N(l,t)-N(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,s=0,n=t.parentNode,o=e.parentNode,a=[t],r=[e];if(!n||!o)return t===C?-1:e===C?1:n?-1:o?1:l?N(l,t)-N(l,e):0;if(n===o)return ct(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)r.unshift(i);for(;a[s]===r[s];)s++;return s?ct(a[s],r[s]):a[s]===b?-1:r[s]===b?1:0}),C},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&x(t),e=e.replace(q,"='$1']"),p.matchesSelector&&k&&!S[e+" "]&&(!r||!r.test(e))&&(!g||!g.test(e)))try{var i=c.call(t,e);if(i||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Z,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Z,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&U.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Z,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=d[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,s,n){return function(t){var e=ot.attr(t,i);return null==e?"!="===s:!s||(e+="","="===s?e===n:"!="===s?e!==n:"^="===s?n&&0===e.indexOf(n):"*="===s?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,I=/^.[^:#\[\.,]*$/;function E(t,i,s){return T.isFunction(i)?T.grep(t,function(t,e){return!!i.call(t,e,t)!==s}):i.nodeType?T.grep(t,function(t){return t===i!==s}):"string"!=typeof i?T.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/,O;(T.fn.init=function(t,e,i){var s,n;if(!t)return this;if(i=i||$,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):T.isFunction(t)?void 0!==i.ready?i.ready(t):t(T):T.makeArray(t,this);if(!(s="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:P.exec(t))||!s[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(s[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(s[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),S.test(s[1])&&T.isPlainObject(e))for(s in e)T.isFunction(this[s])?this[s](e[s]):this.attr(s,e[s]);return this}return(n=k.getElementById(s[2]))&&(this[0]=n,this.length=1),this}).prototype=T.fn,$=T(k);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]+)/i,ct=/^$|\/(?:java|ecma)script/i,ut={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function dt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T.nodeName(t,e)?T.merge([t],i):i}function pt(t,e){for(var i=0,s=t.length;ix",g.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var yt=k.documentElement,_t=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function kt(){return!1}function Tt(){try{return k.activeElement}catch(t){}}function Dt(t,e,i,s,n,o){var a,r;if("object"==typeof e){for(r in"string"!=typeof i&&(s=s||i,i=void 0),e)Dt(t,r,i,s,e[r],o);return t}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=kt;else if(!n)return t;return 1===o&&(a=n,(n=function(t){return T().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),t.each(function(){T.event.add(this,e,n,s,i)})}T.event={global:{},add:function(e,t,i,s,n){var o,a,r,l,h,c,u,d,p,f,m,g=Y.get(e);if(g)for(i.handler&&(i=(o=i).handler,n=o.selector),n&&T.find.matchesSelector(yt,n),i.guid||(i.guid=T.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),h=(t=(t||"").match(z)||[""]).length;h--;)p=m=(r=xt.exec(t[h])||[])[1],f=(r[2]||"").split(".").sort(),p&&(u=T.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,u=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&T.expr.match.needsContext.test(n),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,s,f,a)||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),n?d.splice(d.delegateCount++,0,c):d.push(c),T.event.global[p]=!0)},remove:function(t,e,i,s,n){var o,a,r,l,h,c,u,d,p,f,m,g=Y.hasData(t)&&Y.get(t);if(g&&(l=g.events)){for(h=(e=(e||"").match(z)||[""]).length;h--;)if(p=m=(r=xt.exec(e[h])||[])[1],f=(r[2]||"").split(".").sort(),p){for(u=T.event.special[p]||{},d=l[p=(s?u.delegateType:u.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!n&&m!==c.origType||i&&i.guid!==c.guid||r&&!r.test(c.namespace)||s&&s!==c.selector&&("**"!==s||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||T.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[h],i,s,!0);T.isEmptyObject(l)&&Y.remove(t,"handle events")}},dispatch:function(t){var e=T.event.fix(t),i,s,n,o,a,r,l=new Array(arguments.length),h=(Y.get(this,"events")||{})[e.type]||[],c=T.event.special[e.type]||{};for(l[0]=e,i=1;i\x20\t\r\n\f]*)[^>]*)\/>/gi,It=/\s*$/g;function Ot(t,e){return T.nodeName(t,"table")&&T.nodeName(11!==e.nodeType?e:e.firstChild,"tr")&&t.getElementsByTagName("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){var e=$t.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Mt(t,e){var i,s,n,o,a,r,l,h;if(1===e.nodeType){if(Y.hasData(t)&&(o=Y.access(t),a=Y.set(e,o),h=o.events))for(n in delete a.handle,a.events={},h)for(i=0,s=h[n].length;i")},clone:function(t,e,i){var s,n,o,a,r=t.cloneNode(!0),l=T.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=dt(r),s=0,n=(o=dt(t)).length;s").prop({charset:i.scriptCharset,src:i.url}).on("load error",n=function(t){s.remove(),n=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(s[0])},abort:function(){n&&n()}}});var Ke=[],Qe=/(=)\?(?=&|$)|\?\?/,Xe;function Ge(t){return T.isWindow(t)?t:9===t.nodeType&&t.defaultView}T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ke.pop()||T.expando+"_"+Ce++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,i){var s,n,o,a=!1!==t.jsonp&&(Qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=T.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Qe,"$1"+s):!1!==t.jsonp&&(t.url+=(ke.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return o||T.error(s+" was not called"),o[0]},t.dataTypes[0]="json",n=C[s],C[s]=function(){o=arguments},i.always(function(){void 0===n?T(C).removeProp(s):C[s]=n,t[s]&&(t.jsonpCallback=e.jsonpCallback,Ke.push(s)),o&&T.isFunction(n)&&n(o[0]),o=n=void 0}),"script"}),g.createHTMLDocument=((Xe=k.implementation.createHTMLDocument("").body).innerHTML="
",2===Xe.childNodes.length),T.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((s=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(s)):e=k),o=!i&&[],(n=S.exec(t))?[e.createElement(n[1])]:(n=bt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],n.childNodes)));var s,n,o},T.fn.load=function(t,e,i){var s,n,o,a=this,r=t.indexOf(" ");return-1").append(T.parseHTML(t)).find(s):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,i){var s,n,o,a,r,l,h,c=T.css(t,"position"),u=T(t),d={};"static"===c&&(t.style.position="relative"),r=u.offset(),o=T.css(t,"top"),l=T.css(t,"left"),n=(h=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto"))?(a=(s=u.position()).top,s.left):(a=parseFloat(o)||0,parseFloat(l)||0),T.isFunction(e)&&(e=e.call(t,i,T.extend({},r))),null!=e.top&&(d.top=e.top-r.top+a),null!=e.left&&(d.left=e.left-r.left+n),"using"in e?e.using.call(t,d):u.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,i,s,n,o=this[0];return o?o.getClientRects().length?(s=o.getBoundingClientRect()).width||s.height?(i=Ge(n=o.ownerDocument),t=n.documentElement,{top:s.top+i.pageYOffset-t.clientTop,left:s.left+i.pageXOffset-t.clientLeft}):s:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],s={top:0,left:0};return"fixed"===T.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),T.nodeName(t[0],"html")||(s=t.offset()),s={top:s.top+T.css(t[0],"borderTopWidth",!0),left:s.left+T.css(t[0],"borderLeftWidth",!0)}),{top:e.top-s.top-T.css(i,"marginTop",!0),left:e.left-s.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||yt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var o="pageYOffset"===n;T.fn[e]=function(t){return q(this,function(t,e,i){var s=Ge(t);if(void 0===i)return s?s[n]:t[e];s?s.scrollTo(o?s.pageXOffset:i,o?i:s.pageYOffset):t[e]=i},e,t,arguments.length)}}),T.each(["top","left"],function(t,i){T.cssHooks[i]=Bt(g.pixelPosition,function(t,e){if(e)return e=Ft(t,i),Wt.test(e)?T(t).position()[i]+"px":e})}),T.each({Height:"height",Width:"width"},function(a,r){T.each({padding:"inner"+a,content:r,"":"outer"+a},function(s,o){T.fn[o]=function(t,e){var i=arguments.length&&(s||"boolean"!=typeof t),n=s||(!0===t||!0===e?"margin":"border");return q(this,function(t,e,i){var s;return T.isWindow(t)?0===o.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+a],s["scroll"+a],t.body["offset"+a],s["offset"+a],s["client"+a])):void 0===i?T.css(t,e,n):T.style(t,e,i,n)},r,i?t:void 0,i)}})}),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,s){return this.on(e,t,i,s)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),T.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Je=C.jQuery,Ze=C.$;return T.noConflict=function(t){return C.$===T&&(C.$=Ze),t&&C.jQuery===T&&(C.jQuery=Je),T},t||(C.jQuery=C.$=T),T}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(D){D.ui=D.ui||{};var t=D.ui.version="1.12.1",i=0,r=Array.prototype.slice,n;D.cleanData=(n=D.cleanData,function(t){var e,i,s;for(s=0;null!=(i=t[s]);s++)try{(e=D._data(i,"events"))&&e.remove&&D(i).triggerHandler("remove")}catch(t){}n(t)}),D.widget=function(t,i,e){var s,n,o,a={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=D.Widget),D.isArray(e)&&(e=D.extend.apply(null,[{}].concat(e))),D.expr[":"][l.toLowerCase()]=function(t){return!!D.data(t,l)},D[r]=D[r]||{},s=D[r][t],n=D[r][t]=function(t,e){if(!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},D.extend(n,s,{version:e.version,_proto:D.extend({},e),_childConstructors:[]}),(o=new i).options=D.widget.extend({},o.options),D.each(e,function(e,o){D.isFunction(o)?a[e]=function(){function s(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var t=this._super,e=this._superApply,i;return this._super=s,this._superApply=n,i=o.apply(this,arguments),this._super=t,this._superApply=e,i}}():a[e]=o}),n.prototype=D.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},a,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(D.each(s._childConstructors,function(t,e){var i=e.prototype;D.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),D.widget.bridge(t,n),n},D.widget.extend=function(t){for(var e=r.call(arguments,1),i=0,s=e.length,n,o;i",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=D(e||this.defaultElement||this)[0],this.element=D(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=D(),this.hoverable=D(),this.focusable=D(),this.classesElementLookup={},e!==this&&(D.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=D(e.style?e.ownerDocument:e.document||e),this.window=D(this.document[0].defaultView||this.document[0].parentWindow)),this.options=D.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:D.noop,_create:D.noop,_init:D.noop,destroy:function(){var i=this;this._destroy(),D.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:D.noop,widget:function(){return this.element},option:function(t,e){var i=t,s,n,o;if(0===arguments.length)return D.widget.extend({},this.options);if("string"==typeof t)if(i={},t=(s=t.split(".")).shift(),s.length){for(n=i[t]=D.widget.extend({},this.options[t]),o=0;o
"),s=i.children()[0];return D("body").append(i),t=s.offsetWidth,i.css("overflow","scroll"),t===(e=s.offsetWidth)&&(e=i[0].clientWidth),i.remove(),n=t-e},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),s="scroll"===e||"auto"===e&&t.widthx(C(s),C(n))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(D.extend(h,{using:t}))})},D.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,a=s-o,r=o+e.collisionWidth-n-s,l;e.collisionWidth>n?0n?0")[0],h,g=c.each;function v(t,e,i){var s=m[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:s.maxo.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),v((n-s)*a+s,e)))}),this[e](h)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=p(t)._rgba;return p(c.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=c.map(this._rgba,function(t,e){return null==t?2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),(i[0]===n||D.contains(i[0],n))&&D(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(D.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),D.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||D.contains(t[0],e))&&D(e).trigger("focus")),t}}),D.extend(D.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),D.effects.effect[t]=i,D.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(h+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=h+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){D.effects.restoreStyle(t),D.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},D.each(t,function(t,e){var i=s.cssUnit(e);0").appendTo("body").addClass(t.className).css({top:c.top-a,left:c.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(h,t.duration,t.easing,function(){u.remove(),D.isFunction(e)&&e()})}}),D.fx.step.clip=function(t){t.clipInit||(t.start=D(t.elem).cssClip(),"string"==typeof t.end&&(t.end=a(t.end,t.elem)),t.clipInit=!0),D(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),c={},D.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){c[t]=function(t){return Math.pow(t,e+2)}}),D.extend(c,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),D.each(c,function(t,e){D.easing["easeIn"+t]=e,D.easing["easeOut"+t]=function(t){return 1-e(1-t)},D.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var f=D.effects,m=D.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=D(this),n=t.direction||"up",o=s.cssClip(),a={clip:D.extend({},o)},r=D.effects.createPlaceholder(s);a.clip[i[n][0]]=a.clip[i[n][1]],"show"===t.mode&&(s.cssClip(a.clip),r&&r.css(D.effects.clipToBox(a)),a.clip=o),r&&r.animate(D.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),g=D.effects.define("bounce",function(t,e){var i,s,n,o=D(this),a=t.mode,r="hide"===a,l="show"===a,h=t.direction||"up",c=t.distance,u=t.times||5,d=2*u+(l||r?1:0),p=t.duration/d,f=t.easing,m="up"===h||"down"===h?"top":"left",g="up"===h||"left"===h,v=0,b=o.queue().length;for(D.effects.createPlaceholder(o),n=o.css(m),c||(c=o["top"===m?"outerHeight":"outerWidth"]()/3),l&&((s={opacity:1})[m]=n,o.css("opacity",0).css(m,g?2*-c:2*c).animate(s,p,f)),r&&(c/=Math.pow(2,u-1)),(s={})[m]=n;v").css({position:"absolute",visibility:"visible",left:-s*f,top:-i*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:n+(d?a*f:0),top:o+(d?r*m:0),opacity:d?0:1}).animate({left:n+(d?0:a*f),top:o+(d?0:r*m),opacity:d?1:0},t.duration||500,t.easing,v);function b(){c.css({visibility:"visible"}),D(g).remove(),e()}}),_=D.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;D(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),w=D.effects.define("fold","hide",function(e,t){var i=D(this),s=e.mode,n="show"===s,o="hide"===s,a=e.size||15,r=/([0-9]+)%/.exec(a),l,h=!!e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,u=D.effects.createPlaceholder(i),d=i.cssClip(),p={clip:D.extend({},d)},f={clip:D.extend({},d)},m=[d[h[0]],d[h[1]]],g=i.queue().length;r&&(a=parseInt(r[1],10)/100*m[o?0:1]),p.clip[h[0]]=a,f.clip[h[0]]=a,f.clip[h[1]]=0,n&&(i.cssClip(f.clip),u&&u.css(D.effects.clipToBox(f)),f.clip=d),i.queue(function(t){u&&u.animate(D.effects.clipToBox(p),c,e.easing).animate(D.effects.clipToBox(f),c,e.easing),t()}).animate(p,c,e.easing).animate(f,c,e.easing).queue(t),D.effects.unshift(i,g,4)}),x=D.effects.define("highlight","show",function(t,e){var i=D(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),D.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),C=D.effects.define("size",function(n,e){var t,o,i,s=D(this),a=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=n.mode,c="effect"!==h,u=n.scale||"both",d=n.origin||["middle","center"],p=s.css("position"),f=s.position(),m=D.effects.scaledDimensions(s),g=n.from||m,v=n.to||D.effects.scaledDimensions(s,0);D.effects.createPlaceholder(s),"show"===h&&(i=g,g=v,v=i),o={from:{y:g.height/m.height,x:g.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},"box"!==u&&"both"!==u||(o.from.y!==o.to.y&&(g=D.effects.setTransition(s,r,o.from.y,g),v=D.effects.setTransition(s,r,o.to.y,v)),o.from.x!==o.to.x&&(g=D.effects.setTransition(s,l,o.from.x,g),v=D.effects.setTransition(s,l,o.to.x,v))),"content"!==u&&"both"!==u||o.from.y!==o.to.y&&(g=D.effects.setTransition(s,a,o.from.y,g),v=D.effects.setTransition(s,a,o.to.y,v)),d&&(t=D.effects.getBaseline(d,m),g.top=(m.outerHeight-g.outerHeight)*t.y+f.top,g.left=(m.outerWidth-g.outerWidth)*t.x+f.left,v.top=(m.outerHeight-v.outerHeight)*t.y+f.top,v.left=(m.outerWidth-v.outerWidth)*t.x+f.left),s.css(g),"content"!==u&&"both"!==u||(r=r.concat(["marginTop","marginBottom"]).concat(a),l=l.concat(["marginLeft","marginRight"]),s.find("*[width]").each(function(){var t=D(this),e=D.effects.scaledDimensions(t),i={height:e.height*o.from.y,width:e.width*o.from.x,outerHeight:e.outerHeight*o.from.y,outerWidth:e.outerWidth*o.from.x},s={height:e.height*o.to.y,width:e.width*o.to.x,outerHeight:e.height*o.to.y,outerWidth:e.width*o.to.x};o.from.y!==o.to.y&&(i=D.effects.setTransition(t,r,o.from.y,i),s=D.effects.setTransition(t,r,o.to.y,s)),o.from.x!==o.to.x&&(i=D.effects.setTransition(t,l,o.from.x,i),s=D.effects.setTransition(t,l,o.to.x,s)),c&&D.effects.saveStyle(t),t.css(i),t.animate(s,n.duration,n.easing,function(){c&&D.effects.restoreStyle(t)})})),s.animate(v,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=s.offset();0===v.opacity&&s.css("opacity",g.opacity),c||(s.css("position","static"===p?"relative":p).offset(t),D.effects.saveStyle(s)),e()}})}),k=D.effects.define("scale",function(t,e){var i=D(this),s=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==s?0:100),o=D.extend(!0,{from:D.effects.scaledDimensions(i),to:D.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(o.from.opacity=1,o.to.opacity=0),D.effects.effect.size.call(this,o,e)}),T=D.effects.define("puff","hide",function(t,e){var i=D.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});D.effects.effect.scale.call(this,i,e)}),S=D.effects.define("pulsate","show",function(t,e){var i=D(this),s=t.mode,n="show"===s,o,a=n||"hide"===s,r=2*(t.times||5)+(a?1:0),l=t.duration/r,h=0,c=1,u=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),h=1);c?@[\]^`{|}~])/g,function(t){return t.replace(H,"\\$1")}),H,L=D.fn.labels=function(){var t,e,i,s,n;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(i=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),e="label[for='"+D.ui.escapeSelector(i)+"']",s=s.add(n.find(e).addBack(e))), this.pushStack(s))},R=D.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,n=this.parents().filter(function(){var t=D(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:D(this[0].ownerDocument||document)},W=D.extend(D.expr[":"],{tabbable:function(t){var e=D.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&D.ui.focusable(t,i)}}),j=D.fn.extend({uniqueId:(F=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++F)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&D(this).removeAttr("id")})}}),F,B=D.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=D(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():D()}},_createIcons:function(){var t,e,i=this.options.icons;i&&(t=D(""),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,i.header)._addClass(e,null,i.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(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_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=D.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(D(t.target).attr("tabIndex",-1),D(n).attr("tabIndex",0),D(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===D.ui.keyCode.UP&&t.ctrlKey&&D(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=D()):!1===t.active?this._activate(0):this.active.length&&!D.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=D()):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 i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=D(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).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(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=D(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=D(this).outerHeight(!0)}),this.headers.next().each(function(){D(this).height(Math.max(0,i-D(this).innerHeight()+D(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=D(this).is(":visible");t||D(this).show(),i=Math.max(i,D(this).css("height","").height()),t||D(this).hide()}).height(i))},_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:D.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):D()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&D.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e,i,s=this.options,n=this.active,o=D(t.currentTarget),a=o[0]===n[0],r=a&&s.collapsible,l=r?D():o.next(),h=n.next(),c={oldHeader:n,oldPanel:h,newHeader:r?D():o,newPanel:l};t.preventDefault(),a&&!s.collapsible||!1===this._trigger("beforeActivate",t,c)||(s.active=!r&&this.headers.index(o),this.active=a?D():o,this._toggle(c),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),s.icons&&(e=n.children(".ui-accordion-header-icon"),this._removeClass(e,null,s.icons.activeHeader)._addClass(e,null,s.icons.header)),a||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.header)._addClass(i,null,s.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(D(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!i.length||t.index()",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=D(t.target),i=D(D.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")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var e=D(t.target).closest(".ui-menu-item"),i=D(t.currentTarget);e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var t;!D.contains(this.element[0],D.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t,e=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(),e.children().each(function(){var t=D(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n,o=!0;switch(t.keyCode){case D.ui.keyCode.PAGE_UP:this.previousPage(t);break;case D.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case D.ui.keyCode.HOME:this._move("first","first",t);break;case D.ui.keyCode.END:this._move("last","last",t);break;case D.ui.keyCode.UP:this.previous(t);break;case D.ui.keyCode.DOWN:this.next(t);break;case D.ui.keyCode.LEFT:this.collapse(t);break;case D.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case D.ui.keyCode.ENTER:case D.ui.keyCode.SPACE:this._activate(t);break;case D.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,i=this.previousFilter||"",n=!1,s=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===i?n=!0:s=i+s,e=this._filterMenuItems(s),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(s=String.fromCharCode(t.keyCode),e=this._filterMenuItems(s)),e.length?(this.focus(t,e),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&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,i,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),i=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=D(this),e=t.prev(),i=D("").data("ui-menu-submenu-caret",!0);o._addClass(i,"ui-menu-icon","ui-icon "+a),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=(t=r.add(this.element)).find(this.options.items)).not(".ui-menu-item").each(function(){var t=D(this);o._isDivider(t)&&o._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(s=e.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"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!D.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s,n,o,a;this._hasScroll()&&(e=parseFloat(D.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(D.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-e-i,n=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=t.outerHeight(),s<0?this.activeMenu.scrollTop(n+s):o",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 i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,o="input"===t;this.isMultiLine=e||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[e||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=D.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=D.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=D("