(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ea71736e"],{1157:function(e,t,n){var o,r;
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */(function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)})("undefined"!==typeof window?window:this,(function(n,i){"use strict";var a=[],s=Object.getPrototypeOf,l=a.slice,d=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,f={},p=f.toString,h=f.hasOwnProperty,g=h.toString,v=g.call(Object),m={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},b=function(e){return null!=e&&e===e.window},C=n.document,N={type:!0,src:!0,nonce:!0,noModule:!0};function k(e,t,n){n=n||C;var o,r,i=n.createElement("script");if(i.text=e,t)for(o in N)r=t[o]||t.getAttribute&&t.getAttribute(o),r&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function w(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?f[p.call(e)]||"object":typeof e}var T="3.6.0",x=function(e,t){return new x.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:T,constructor:x,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},x.extend=x.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,l=arguments.length,d=!1;for("boolean"===typeof a&&(d=a,a=arguments[s]||{},s++),"object"===typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)o=e[t],"__proto__"!==t&&a!==o&&(d&&o&&(x.isPlainObject(o)||(r=Array.isArray(o)))?(n=a[t],i=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,a[t]=x.extend(d,i,o)):void 0!==o&&(a[t]=o));return a},x.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(t=s(e),!t||(n=h.call(t,"constructor")&&t.constructor,"function"===typeof n&&g.call(n)===v))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){k(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,o=0;if(E(e)){for(n=e.length;o<n;o++)if(!1===t.call(e[o],o,e[o]))break}else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?x.merge(n,"string"===typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o,r=[],i=0,a=e.length,s=!n;i<a;i++)o=!t(e[i],i),o!==s&&r.push(e[i]);return r},map:function(e,t,n){var o,r,i=0,a=[];if(E(e))for(o=e.length;i<o;i++)r=t(e[i],i,n),null!=r&&a.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&a.push(r);return d(a)},guid:1,support:m}),"function"===typeof Symbol&&(x.fn[Symbol.iterator]=a[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var A=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(e){var t,n,o,r,i,a,s,l,d,c,u,f,p,h,g,v,m,y,b,C="sizzle"+1*new Date,N=e.document,k=0,w=0,T=le(),x=le(),E=le(),A=le(),I=function(e,t){return e===t&&(u=!0),0},S={}.hasOwnProperty,_=[],D=_.pop,P=_.push,L=_.push,O=_.slice,R=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+M+"*("+z+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+M+"*\\]",$=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",q=new RegExp(M+"+","g"),F=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),B=new RegExp("^"+M+"*,"+M+"*"),U=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),Y=new RegExp(M+"|>"),W=new RegExp($),K=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ae=Ce((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(_=O.call(N.childNodes),N.childNodes),_[N.childNodes.length].nodeType}catch(Ae){L={apply:_.length?function(e,t){P.apply(e,O.call(t))}:function(e,t){var n=e.length,o=0;while(e[n++]=t[o++]);e.length=n-1}}}function se(e,t,o,r){var i,s,d,c,u,h,m,y=t&&t.ownerDocument,N=t?t.nodeType:9;if(o=o||[],"string"!==typeof e||!e||1!==N&&9!==N&&11!==N)return o;if(!r&&(f(t),t=t||p,g)){if(11!==N&&(u=J.exec(e)))if(i=u[1]){if(9===N){if(!(d=t.getElementById(i)))return o;if(d.id===i)return o.push(d),o}else if(y&&(d=y.getElementById(i))&&b(t,d)&&d.id===i)return o.push(d),o}else{if(u[2])return L.apply(o,t.getElementsByTagName(e)),o;if((i=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==N||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===N&&(Y.test(e)||U.test(e))){y=ee.test(e)&&me(t.parentNode)||t,y===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(oe,re):t.setAttribute("id",c=C)),h=a(e),s=h.length;while(s--)h[s]=(c?"#"+c:":scope")+" "+be(h[s]);m=h.join(",")}try{return L.apply(o,y.querySelectorAll(m)),o}catch(k){A(e,!0)}finally{c===C&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,o,r)}function le(){var e=[];function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function de(e){return e[C]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(Ae){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){var n=e.split("|"),r=n.length;while(r--)o.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(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&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return de((function(t){return t=+t,de((function(n,o){var r,i=e([],n.length,t),a=i.length;while(a--)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))}))}))}function me(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:N;return a!=p&&9===a.nodeType&&a.documentElement?(p=a,h=p.documentElement,g=!i(p),N!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.scope=ce((function(e){return h.appendChild(e).appendChild(p.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=C,!p.getElementsByName||!p.getElementsByName(C).length})),n.getById?(o.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},o.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&g){var n,o,r,i=t.getElementById(e);if(i){if(n=i.getAttributeNode("id"),n&&n.value===e)return[i];r=t.getElementsByName(e),o=0;while(i=r[o++])if(n=i.getAttributeNode("id"),n&&n.value===e)return[i]}return[]}}),o.find["TAG"]=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[r++])1===n.nodeType&&o.push(n);return o}return i},o.find["CLASS"]=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],v=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+C+"-]").length||v.push("~="),t=p.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",$)})),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return u=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&o||!n.sortDetached&&t.compareDocumentPosition(e)===o?e==p||e.ownerDocument==N&&b(N,e)?-1:t==p||t.ownerDocument==N&&b(N,t)?1:c?R(c,e)-R(c,t):0:4&o?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e==p?-1:t==p?1:r?-1:i?1:c?R(c,e)-R(c,t):0;if(r===i)return fe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[o]===s[o])o++;return o?fe(a[o],s[o]):a[o]==N?-1:s[o]==N?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&g&&!A[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var o=y.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(Ae){A(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var r=o.attrHandle[t.toLowerCase()],i=r&&S.call(o.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(oe,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,o=[],r=0,i=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(I),u){while(t=e[i++])t===e[i]&&(r=o.push(i));while(r--)e.splice(o[r],1)}return c=null,e},r=se.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[o++])n+=r(t);return n},o=se.selectors={cacheLength:50,createPseudo:de,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V["CHILD"].test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&T(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(o){var r=se.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var d,c,u,f,p,h,g=i!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(i){while(g){f=t;while(f=f[g])if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&y){f=v,u=f[C]||(f[C]={}),c=u[f.uniqueID]||(u[f.uniqueID]={}),d=c[e]||[],p=d[0]===k&&d[1],b=p&&d[2],f=p&&v.childNodes[p];while(f=++p&&f&&f[g]||(b=p=0)||h.pop())if(1===f.nodeType&&++b&&f===t){c[e]=[k,p,b];break}}else if(y&&(f=t,u=f[C]||(f[C]={}),c=u[f.uniqueID]||(u[f.uniqueID]={}),d=c[e]||[],p=d[0]===k&&d[1],b=p),!1===b)while(f=++p&&f&&f[g]||(b=p=0)||h.pop())if((s?f.nodeName.toLowerCase()===m:1===f.nodeType)&&++b&&(y&&(u=f[C]||(f[C]={}),c=u[f.uniqueID]||(u[f.uniqueID]={}),c[e]=[k,b]),f===t))break;return b-=r,b===o||b%o===0&&b/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[C]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=R(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:de((function(e){var t=[],n=[],o=s(e.replace(F,"$1"));return o[C]?de((function(e,t,n,r){var i,a=o(e,null,r,[]),s=e.length;while(s--)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}})),has:de((function(e){return function(t){return se(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:de((function(e){return K.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos["empty"](e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var o=n<0?n+t:n>t?t:n;--o>=0;)e.push(o);return e})),gt:ve((function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e}))}},o.pseudos["nth"]=o.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function Ce(e,t,n){var o=t.dir,r=t.next,i=r||o,a=n&&"parentNode"===i,s=w++;return t.first?function(t,n,r){while(t=t[o])if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var d,c,u,f=[k,s];if(l){while(t=t[o])if((1===t.nodeType||a)&&e(t,n,l))return!0}else while(t=t[o])if(1===t.nodeType||a)if(u=t[C]||(t[C]={}),c=u[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((d=c[i])&&d[0]===k&&d[1]===s)return f[2]=d[2];if(c[i]=f,f[2]=e(t,n,l))return!0}return!1}}function Ne(e){return e.length>1?function(t,n,o){var r=e.length;while(r--)if(!e[r](t,n,o))return!1;return!0}:e[0]}function ke(e,t,n){for(var o=0,r=t.length;o<r;o++)se(e,t[o],n);return n}function we(e,t,n,o,r){for(var i,a=[],s=0,l=e.length,d=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,o,r)||(a.push(i),d&&t.push(s)));return a}function Te(e,t,n,o,r,i){return o&&!o[C]&&(o=Te(o)),r&&!r[C]&&(r=Te(r,i)),de((function(i,a,s,l){var d,c,u,f=[],p=[],h=a.length,g=i||ke(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:we(g,f,e,s,l),m=n?r||(i?e:h||o)?[]:a:v;if(n&&n(v,m,s,l),o){d=we(m,p),o(d,[],s,l),c=d.length;while(c--)(u=d[c])&&(m[p[c]]=!(v[p[c]]=u))}if(i){if(r||e){if(r){d=[],c=m.length;while(c--)(u=m[c])&&d.push(v[c]=u);r(null,m=[],d,l)}c=m.length;while(c--)(u=m[c])&&(d=r?R(i,u):f[c])>-1&&(i[d]=!(a[d]=u))}}else m=we(m===a?m.splice(h,m.length):m),r?r(null,a,m,l):L.apply(a,m)}))}function xe(e){for(var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=Ce((function(e){return e===t}),s,!0),u=Ce((function(e){return R(t,e)>-1}),s,!0),f=[function(e,n,o){var r=!a&&(o||n!==d)||((t=n).nodeType?c(e,n,o):u(e,n,o));return t=null,r}];l<i;l++)if(n=o.relative[e[l].type])f=[Ce(Ne(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[C]){for(r=++l;r<i;r++)if(o.relative[e[r].type])break;return Te(l>1&&Ne(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),n,l<r&&xe(e.slice(l,r)),r<i&&xe(e=e.slice(r)),r<i&&be(e))}f.push(n)}return Ne(f)}function Ee(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,l,c){var u,h,v,m=0,y="0",b=i&&[],C=[],N=d,w=i||r&&o.find["TAG"]("*",c),T=k+=null==N?1:Math.random()||.1,x=w.length;for(c&&(d=a==p||a||c);y!==x&&null!=(u=w[y]);y++){if(r&&u){h=0,a||u.ownerDocument==p||(f(u),s=!g);while(v=e[h++])if(v(u,a||p,s)){l.push(u);break}c&&(k=T)}n&&((u=!v&&u)&&m--,i&&b.push(u))}if(m+=y,n&&y!==m){h=0;while(v=t[h++])v(b,C,a,s);if(i){if(m>0)while(y--)b[y]||C[y]||(C[y]=D.call(l));C=we(C)}L.apply(l,C),c&&!i&&C.length>0&&m+t.length>1&&se.uniqueSort(l)}return c&&(k=T,d=N),b};return n?de(i):i}return ye.prototype=o.filters=o.pseudos,o.setFilters=new ye,a=se.tokenize=function(e,t){var n,r,i,a,s,l,d,c=x[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],d=o.preFilter;while(s){for(a in n&&!(r=B.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(F," ")}),s=s.slice(n.length)),o.filter)!(r=V[a].exec(s))||d[a]&&!(r=d[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):x(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],r=[],i=E[e+" "];if(!i){t||(t=a(e)),n=t.length;while(n--)i=xe(t[n]),i[C]?o.push(i):r.push(i);i=E(e,Ee(r,o)),i.selector=e}return i},l=se.select=function(e,t,n,r){var i,l,d,c,u,f="function"===typeof e&&e,p=!r&&a(e=f.selector||e);if(n=n||[],1===p.length){if(l=p[0]=p[0].slice(0),l.length>2&&"ID"===(d=l[0]).type&&9===t.nodeType&&g&&o.relative[l[1].type]){if(t=(o.find["ID"](d.matches[0].replace(te,ne),t)||[])[0],!t)return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}i=V["needsContext"].test(e)?0:l.length;while(i--){if(d=l[i],o.relative[c=d.type])break;if((u=o.find[c])&&(r=u(d.matches[0].replace(te,ne),ee.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(i,1),e=r.length&&be(l),!e)return L.apply(n,r),n;break}}}return(f||s(e,p))(r,t,!g,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=C.split("").sort(I).join("")===C,n.detectDuplicates=!!u,f(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||ue(j,(function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null})),se}(n);x.find=A,x.expr=A.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=A.uniqueSort,x.text=A.getText,x.isXMLDoc=A.isXML,x.contains=A.contains,x.escapeSelector=A.escape;var I=function(e,t,n){var o=[],r=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(r&&x(e).is(n))break;o.push(e)}return o},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_=x.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return y(t)?x.grep(e,(function(e,o){return!!t.call(e,o,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?x.find.matchesSelector(o,e)?[o]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!==typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<o;t++)if(x.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<o;t++)x.find(e,r[t],n);return o>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"===typeof e&&_.test(e)?x(e):e||[],!1).length}});var O,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,j=x.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||O,"string"===typeof e){if(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e),!o||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),P.test(o[1])&&x.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return r=C.getElementById(o[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)};j.prototype=x.fn,O=x(C);var M=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!==typeof e&&x(e);if(!_.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"===typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,o){var r=x.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"===typeof o&&(r=x.filter(o,r)),this.length>1&&(z[e]||x.uniqueSort(r),M.test(e)&&r.reverse()),this.pushStack(r)}}));var $=/[^\x20\t\r\n\f]+/g;function q(e){var t={};return x.each(e.match($)||[],(function(e,n){t[n]=!0})),t}function F(e){return e}function B(e){throw e}function U(e,t,n,o){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"===typeof e?q(e):x.extend({},e);var t,n,o,r,i=[],a=[],s=-1,l=function(){for(r=r||e.once,o=t=!0;a.length;s=-1){n=a.shift();while(++s<i.length)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1)}e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},d={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,(function(n,o){y(o)?e.unique&&d.has(o)||i.push(o):o&&o.length&&"string"!==w(o)&&t(o)}))}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,(function(e,t){var n;while((n=x.inArray(t,i,n))>-1)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,o){var r=y(e[o[4]])&&e[o[4]];i[o[1]]((function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,o,r){var i=0;function a(e,t,o,r){return function(){var s=this,l=arguments,d=function(){var n,d;if(!(e<i)){if(n=o.apply(s,l),n===t.promise())throw new TypeError("Thenable self-resolution");d=n&&("object"===typeof n||"function"===typeof n)&&n.then,y(d)?r?d.call(n,a(i,t,F,r),a(i,t,B,r)):(i++,d.call(n,a(i,t,F,r),a(i,t,B,r),a(i,t,F,t.notifyWith))):(o!==F&&(s=void 0,l=[n]),(r||t.resolveWith)(s,l))}},c=r?d:function(){try{d()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,c.stackTrace),e+1>=i&&(o!==B&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),n.setTimeout(c))}}return x.Deferred((function(n){t[0][3].add(a(0,n,y(r)?r:F,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:F)),t[2][3].add(a(0,n,y(o)?o:B))})).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return x.each(t,(function(e,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add((function(){o=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=l.call(arguments),i=x.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(U(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(r[n]&&r[n].then)))return i.then();while(n--)U(r[n],a(n),i.reject);return i.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Y.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout((function(){throw e}))};var W=x.Deferred();function K(){C.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),x.ready()}x.fn.ready=function(e){return W.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||W.resolveWith(C,[x]))}}),x.ready.then=W.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?n.setTimeout(x.ready):(C.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var V=function(e,t,n,o,r,i,a){var s=0,l=e.length,d=null==n;if("object"===w(n))for(s in r=!0,n)V(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,y(o)||(a=!0),d&&(a?(t.call(e,o),t=null):(d=t,t=function(e,t,n){return d.call(x(e),n)})),t))for(;s<l;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:d?t.call(e):l?t(e[0],n):i},G=/^-ms-/,X=/-([a-z])/g;function Q(e,t){return t.toUpperCase()}function Z(e){return e.replace(G,"ms-").replace(X,Q)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ee(){this.expando=x.expando+ee.uid++}ee.uid=1,ee.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"===typeof t)r[Z(t)]=n;else for(o in t)r[Z(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Z(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){Array.isArray(t)?t=t.map(Z):(t=Z(t),t=t in o?[t]:t.match($)||[]),n=t.length;while(n--)delete o[t[n]]}(void 0===t||x.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var te=new ee,ne=new ee,oe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,re=/[A-Z]/g;function ie(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:oe.test(e)?JSON.parse(e):e)}function ae(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(re,"-$&").toLowerCase(),n=e.getAttribute(o),"string"===typeof n){try{n=ie(n)}catch(r){}ne.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return ne.hasData(e)||te.hasData(e)},data:function(e,t,n){return ne.access(e,t,n)},removeData:function(e,t){ne.remove(e,t)},_data:function(e,t,n){return te.access(e,t,n)},_removeData:function(e,t){te.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=ne.get(i),1===i.nodeType&&!te.get(i,"hasDataAttrs"))){n=a.length;while(n--)a[n]&&(o=a[n].name,0===o.indexOf("data-")&&(o=Z(o.slice(5)),ae(i,o,r[o])));te.set(i,"hasDataAttrs",!0)}return r}return"object"===typeof e?this.each((function(){ne.set(this,e)})):V(this,(function(t){var n;if(i&&void 0===t)return n=ne.get(i,e),void 0!==n?n:(n=ae(i,e),void 0!==n?n:void 0);this.each((function(){ne.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ne.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=te.get(e,t),n&&(!o||Array.isArray(n)?o=te.access(e,t,x.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),o=n.length,r=n.shift(),i=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,a,i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return te.get(e,n)||te.access(e,n,{empty:x.Callbacks("once memory").add((function(){te.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=x.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)n=te.get(i[a],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=new RegExp("^(?:([+-])=|)("+se+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],ce=C.documentElement,ue=function(e){return x.contains(e.ownerDocument,e)},fe={composed:!0};ce.getRootNode&&(ue=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var pe=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ue(e)&&"none"===x.css(e,"display")};function he(e,t,n,o){var r,i,a=20,s=o?function(){return o.cur()}:function(){return x.css(e,t,"")},l=s(),d=n&&n[3]||(x.cssNumber[t]?"":"px"),c=e.nodeType&&(x.cssNumber[t]||"px"!==d&&+l)&&le.exec(x.css(e,t));if(c&&c[3]!==d){l/=2,d=d||c[3],c=+l||1;while(a--)x.style(e,t,c+d),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),c/=i;c*=2,x.style(e,t,c+d),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=d,o.start=c,o.end=r)),r}var ge={};function ve(e){var t,n=e.ownerDocument,o=e.nodeName,r=ge[o];return r||(t=n.body.appendChild(n.createElement(o)),r=x.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ge[o]=r,r)}function me(e,t){for(var n,o,r=[],i=0,a=e.length;i<a;i++)o=e[i],o.style&&(n=o.style.display,t?("none"===n&&(r[i]=te.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&pe(o)&&(r[i]=ve(o))):"none"!==n&&(r[i]="none",te.set(o,"display",n)));for(i=0;i<a;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}x.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){pe(this)?x(this).show():x(this).hide()}))}});var ye=/^(?:checkbox|radio)$/i,be=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=C.createDocumentFragment(),t=e.appendChild(C.createElement("div")),n=C.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),m.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",m.option=!!t.lastChild})();var Ne={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ke(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?x.merge([e],n):n}function we(e,t){for(var n=0,o=e.length;n<o;n++)te.set(e[n],"globalEval",!t||te.get(t[n],"globalEval"))}Ne.tbody=Ne.tfoot=Ne.colgroup=Ne.caption=Ne.thead,Ne.th=Ne.td,m.option||(Ne.optgroup=Ne.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function xe(e,t,n,o,r){for(var i,a,s,l,d,c,u=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if(i=e[p],i||0===i)if("object"===w(i))x.merge(f,i.nodeType?[i]:i);else if(Te.test(i)){a=a||u.appendChild(t.createElement("div")),s=(be.exec(i)||["",""])[1].toLowerCase(),l=Ne[s]||Ne._default,a.innerHTML=l[1]+x.htmlPrefilter(i)+l[2],c=l[0];while(c--)a=a.lastChild;x.merge(f,a.childNodes),a=u.firstChild,a.textContent=""}else f.push(t.createTextNode(i));u.textContent="",p=0;while(i=f[p++])if(o&&x.inArray(i,o)>-1)r&&r.push(i);else if(d=ue(i),a=ke(u.appendChild(i),"script"),d&&we(a),n){c=0;while(i=a[c++])Ce.test(i.type||"")&&n.push(i)}return u}var Ee=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ie(){return!1}function Se(e,t){return e===_e()===("focus"===t)}function _e(){try{return C.activeElement}catch(e){}}function De(e,t,n,o,r,i){var a,s;if("object"===typeof t){for(s in"string"!==typeof n&&(o=o||n,n=void 0),t)De(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"===typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Ie;else if(!r)return e;return 1===i&&(a=r,r=function(e){return x().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=x.guid++)),e.each((function(){x.event.add(this,t,r,o,n)}))}function Pe(e,t,n){n?(te.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var o,r,i=te.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),te.set(this,t,i),o=n(this,t),this[t](),r=te.get(this,t),i!==r||o?te.set(this,t,!1):r={},i!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else i.length&&(te.set(this,t,{value:x.event.trigger(x.extend(i[0],x.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===te.get(e,t)&&x.event.add(e,t,Ae)}x.event={global:{},add:function(e,t,n,o,r){var i,a,s,l,d,c,u,f,p,h,g,v=te.get(e);if(J(e)){n.handler&&(i=n,n=i.handler,r=i.selector),r&&x.find.matchesSelector(ce,r),n.guid||(n.guid=x.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return"undefined"!==typeof x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match($)||[""],d=t.length;while(d--)s=Ee.exec(t[d])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p&&(u=x.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=x.event.special[p]||{},c=x.extend({type:p,origType:g,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:h.join(".")},i),(f=l[p])||(f=l[p]=[],f.delegateCount=0,u.setup&&!1!==u.setup.call(e,o,h,a)||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),x.event.global[p]=!0)}},remove:function(e,t,n,o,r){var i,a,s,l,d,c,u,f,p,h,g,v=te.hasData(e)&&te.get(e);if(v&&(l=v.events)){t=(t||"").match($)||[""],d=t.length;while(d--)if(s=Ee.exec(t[d])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){u=x.event.special[p]||{},p=(o?u.delegateType:u.bindType)||p,f=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;while(i--)c=f[i],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(f.splice(i,1),c.selector&&f.delegateCount--,u.remove&&u.remove.call(e,c));a&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,h,v.handle)||x.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[d],n,o,!0);x.isEmptyObject(l)&&te.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=new Array(arguments.length),l=x.event.fix(e),d=(te.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){a=x.event.handlers.call(this,l,d),t=0;while((r=a[t++])&&!l.isPropagationStopped()){l.currentTarget=r.elem,n=0;while((i=r.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,o=((x.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s),void 0!==o&&!1===(l.result=o)&&(l.preventDefault(),l.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,o,r,i,a,s=[],l=t.delegateCount,d=e.target;if(l&&d.nodeType&&!("click"===e.type&&e.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(i=[],a={},n=0;n<l;n++)o=t[n],r=o.selector+" ",void 0===a[r]&&(a[r]=o.needsContext?x(r,this).index(d)>-1:x.find(r,this,null,[d]).length),a[r]&&i.push(o);i.length&&s.push({elem:d,handlers:i})}return d=this,l<t.length&&s.push({elem:d,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ye.test(t.type)&&t.click&&D(t,"input")&&Pe(t,"click",Ae),!1},trigger:function(e){var t=this||e;return ye.test(t.type)&&t.click&&D(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return ye.test(t.type)&&t.click&&D(t,"input")&&te.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Pe(this,e,Se),!1},trigger:function(){return Pe(this,e),!0},_default:function(){return!0},delegateType:t}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===o||x.contains(o,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,o){return De(this,e,t,n,o)},one:function(e,t,n,o){return De(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,x(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Ie),this.each((function(){x.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,o,r,i,a,s,l;if(1===t.nodeType){if(te.hasData(e)&&(i=te.get(e),l=i.events,l))for(r in te.remove(t,"handle events"),l)for(n=0,o=l[r].length;n<o;n++)x.event.add(t,r,l[r][n]);ne.hasData(e)&&(a=ne.access(e),s=x.extend({},a),ne.set(t,s))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ye.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function qe(e,t,n,o){t=d(t);var r,i,a,s,l,c,u=0,f=e.length,p=f-1,h=t[0],g=y(h);if(g||f>1&&"string"===typeof h&&!m.checkClone&&Oe.test(h))return e.each((function(r){var i=e.eq(r);g&&(t[0]=h.call(this,r,i.html())),qe(i,t,n,o)}));if(f&&(r=xe(t,e[0].ownerDocument,!1,e,o),i=r.firstChild,1===r.childNodes.length&&(r=i),i||o)){for(a=x.map(ke(r,"script"),Me),s=a.length;u<f;u++)l=r,u!==p&&(l=x.clone(l,!0,!0),s&&x.merge(a,ke(l,"script"))),n.call(e[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,x.map(a,ze),u=0;u<s;u++)l=a[u],Ce.test(l.type||"")&&!te.access(l,"globalEval")&&x.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):k(l.textContent.replace(Re,""),l,c))}return e}function Fe(e,t,n){for(var o,r=t?x.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||x.cleanData(ke(o)),o.parentNode&&(n&&ue(o)&&we(ke(o,"script")),o.parentNode.removeChild(o));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),l=ue(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!x.isXMLDoc(e))for(a=ke(s),i=ke(e),o=0,r=i.length;o<r;o++)$e(i[o],a[o]);if(t)if(n)for(i=i||ke(e),a=a||ke(s),o=0,r=i.length;o<r;o++)He(i[o],a[o]);else He(e,s);return a=ke(s,"script"),a.length>0&&we(a,!l&&ke(e,"script")),s},cleanData:function(e){for(var t,n,o,r=x.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[te.expando]){if(t.events)for(o in t.events)r[o]?x.event.remove(n,o):x.removeEvent(n,o,t.handle);n[te.expando]=void 0}n[ne.expando]&&(n[ne.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return V(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.appendChild(e)}}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(ke(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Le.test(e)&&!Ne[(be.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<o;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(ke(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(ke(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,o=[],r=x(e),i=r.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(r[a])[t](n),c.apply(o,n.get());return this.pushStack(o)}}));var Be=new RegExp("^("+se+")(?!px)[a-z%]+$","i"),Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ye=function(e,t,n){var o,r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in o=n.call(e),t)e.style[r]=i[r];return o},We=new RegExp(de.join("|"),"i");function Ke(e,t,n){var o,r,i,a,s=e.style;return n=n||Ue(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||ue(e)||(a=x.style(e,t)),!m.pixelBoxStyles()&&Be.test(a)&&We.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){function e(){if(c){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ce.appendChild(d).appendChild(c);var e=n.getComputedStyle(c);o="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),r=36===t(e.width),c.style.position="absolute",i=12===t(c.offsetWidth/3),ce.removeChild(d),c=null}}function t(e){return Math.round(parseFloat(e))}var o,r,i,a,s,l,d=C.createElement("div"),c=C.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),o},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,o,r;return null==s&&(e=C.createElement("table"),t=C.createElement("tr"),o=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",o.style.height="9px",o.style.display="block",ce.appendChild(e).appendChild(t).appendChild(o),r=n.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ce.removeChild(e)),s}}))})();var Ge=["Webkit","Moz","ms"],Xe=C.createElement("div").style,Qe={};function Ze(e){var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;while(n--)if(e=Ge[n]+t,e in Xe)return e}function Je(e){var t=x.cssProps[e]||Qe[e];return t||(e in Xe?e:Qe[e]=Ze(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt=/^--/,nt={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var o=le.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function it(e,t,n,o,r,i){var a="width"===t?1:0,s=0,l=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(e,n+de[a],!0,r)),o?("content"===n&&(l-=x.css(e,"padding"+de[a],!0,r)),"margin"!==n&&(l-=x.css(e,"border"+de[a]+"Width",!0,r))):(l+=x.css(e,"padding"+de[a],!0,r),"padding"!==n?l+=x.css(e,"border"+de[a]+"Width",!0,r):s+=x.css(e,"border"+de[a]+"Width",!0,r));return!o&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function at(e,t,n){var o=Ue(e),r=!m.boxSizingReliable()||n,i=r&&"border-box"===x.css(e,"boxSizing",!1,o),a=i,s=Ke(e,t,o),l="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&D(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",!1,o))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,o),a=l in e,a&&(s=e[l])),s=parseFloat(s)||0,s+it(e,t,n||(i?"border":"content"),a,o,s)+"px"}function st(e,t,n,o,r){return new st.prototype.init(e,t,n,o,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=Z(t),l=tt.test(t),d=e.style;if(l||(t=Je(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:d[t];i=typeof n,"string"===i&&(r=le.exec(n))&&r[1]&&(n=he(e,t,r),i="number"),null!=n&&n===n&&("number"!==i||l||(n+=r&&r[3]||(x.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,o){var r,i,a,s=Z(t),l=tt.test(t);return l||(t=Je(s)),a=x.cssHooks[t]||x.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ke(e,t,o)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,o){if(n)return!et.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,o):Ye(e,nt,(function(){return at(e,t,o)}))},set:function(e,n,o){var r,i=Ue(e),a=!m.scrollboxSize()&&"absolute"===i.position,s=a||o,l=s&&"border-box"===x.css(e,"boxSizing",!1,i),d=o?it(e,t,o,l,i):0;return l&&a&&(d-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-it(e,t,"border",!1,i)-.5)),d&&(r=le.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),rt(e,n,d)}}})),x.cssHooks.marginLeft=Ve(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"===typeof n?n.split(" "):[n];o<4;o++)r[e+de[o]+t]=i[o]||i[o-2]||i[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=rt)})),x.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=Ue(e),r=t.length;a<r;a++)i[t[a]]=x.css(e,t[a],!1,o);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=st,st.prototype={constructor:st,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=st.prototype.init,x.fx.step={};var lt,dt,ct=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ft(){dt&&(!1===C.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ft):n.setTimeout(ft,x.fx.interval),x.fx.tick())}function pt(){return n.setTimeout((function(){lt=void 0})),lt=Date.now()}function ht(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)n=de[o],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function gt(e,t,n){for(var o,r=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function vt(e,t,n){var o,r,i,a,s,l,d,c,u="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&pe(e),v=te.get(e,"fxshow");for(o in n.queue||(a=x._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[o],ct.test(r)){if(delete t[o],i=i||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!v||void 0===v[o])continue;g=!0}p[o]=v&&v[o]||x.style(e,o)}if(l=!x.isEmptyObject(t),l||!x.isEmptyObject(p))for(o in u&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],d=v&&v.display,null==d&&(d=te.get(e,"display")),c=x.css(e,"display"),"none"===c&&(d?c=d:(me([e],!0),d=e.style.display||d,c=x.css(e,"display"),me([e]))),("inline"===c||"inline-block"===c&&null!=d)&&"none"===x.css(e,"float")&&(l||(f.done((function(){h.display=d})),null==d&&(c=h.display,d="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(v?"hidden"in v&&(g=v.hidden):v=te.access(e,"fxshow",{display:d}),i&&(v.hidden=!g),g&&me([e],!0),f.done((function(){for(o in g||me([e]),te.remove(e,"fxshow"),p)x.style(e,o,p[o])}))),l=gt(g?v[o]:0,o,f),o in v||(v[o]=l.start,g&&(l.end=l.start,l.start=0))}function mt(e,t){var n,o,r,i,a;for(n in e)if(o=Z(n),r=t[o],i=e[n],Array.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),a=x.cssHooks[o],a&&"expand"in a)for(n in i=a.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}function yt(e,t,n){var o,r,i=0,a=yt.prefilters.length,s=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=lt||pt(),n=Math.max(0,d.startTime+d.duration-t),o=n/d.duration||0,i=1-o,a=0,l=d.tweens.length;a<l;a++)d.tweens[a].run(i);return s.notifyWith(e,[d,i,n]),i<1&&l?n:(l||s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d]),!1)},d=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:lt||pt(),duration:n.duration,tweens:[],createTween:function(t,n){var o=x.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(o),o},stop:function(t){var n=0,o=t?d.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)d.tweens[n].run(1);return t?(s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d,t])):s.rejectWith(e,[d,t]),this}}),c=d.props;for(mt(c,d.opts.specialEasing);i<a;i++)if(o=yt.prefilters[i].call(d,e,c,d.opts),o)return y(o.stop)&&(x._queueHooks(d.elem,d.opts.queue).stop=o.stop.bind(o)),o;return x.map(c,gt,d),y(d.opts.start)&&d.opts.start.call(e,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:d,queue:d.opts.queue})),d}x.Animation=x.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return he(n.elem,e,le.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match($);for(var n,o=0,r=e.length;o<r;o++)n=e[o],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[vt],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),x.speed=function(e,t,n){var o=e&&"object"===typeof e?x.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return x.fx.off?o.duration=0:"number"!==typeof o.duration&&(o.duration in x.fx.speeds?o.duration=x.fx.speeds[o.duration]:o.duration=x.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&x.dequeue(this,o.queue)},o},x.fn.extend({fadeTo:function(e,t,n,o){return this.filter(pe).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=x.isEmptyObject(e),i=x.speed(t,n,o),a=function(){var t=yt(this,x.extend({},e),i);(r||te.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",i=x.timers,a=te.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&ut.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=te.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=x.timers,a=o?o.length:0;for(n.finish=!0,x.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,o,r){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,o,r)}})),x.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(lt=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),lt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){dt||(dt=!0,ft())},x.fx.stop=function(){dt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,o){var r=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(r)}}))},function(){var e=C.createElement("input"),t=C.createElement("select"),n=t.appendChild(C.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=n.selected,e=C.createElement("input"),e.value="t",e.type="radio",m.radioValue="t"===e.value}();var bt,Ct=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return V(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?bt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:(o=x.find.attr(e,t),null==o?void 0:o))},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match($);if(r&&1===e.nodeType)while(n=r[o++])e.removeAttribute(n)}}),bt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Ct[t]||x.find.attr;Ct[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=Ct[a],Ct[a]=r,r=null!=n(e,t,o)?a:null,Ct[a]=i),r}}));var Nt=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function wt(e){var t=e.match($)||[];return t.join(" ")}function Tt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match($)||[]}x.fn.extend({prop:function(e,t){return V(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Nt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,o,r,i,a,s,l=0;if(y(e))return this.each((function(t){x(this).addClass(e.call(this,t,Tt(this)))}));if(t=xt(e),t.length)while(n=this[l++])if(r=Tt(n),o=1===n.nodeType&&" "+wt(r)+" ",o){a=0;while(i=t[a++])o.indexOf(" "+i+" ")<0&&(o+=i+" ");s=wt(o),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,o,r,i,a,s,l=0;if(y(e))return this.each((function(t){x(this).removeClass(e.call(this,t,Tt(this)))}));if(!arguments.length)return this.attr("class","");if(t=xt(e),t.length)while(n=this[l++])if(r=Tt(n),o=1===n.nodeType&&" "+wt(r)+" ",o){a=0;while(i=t[a++])while(o.indexOf(" "+i+" ")>-1)o=o.replace(" "+i+" "," ");s=wt(o),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,o="string"===n||Array.isArray(e);return"boolean"===typeof t&&o?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,Tt(this),t),t)})):this.each((function(){var t,r,i,a;if(o){r=0,i=x(this),a=xt(e);while(t=a[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else void 0!==e&&"boolean"!==n||(t=Tt(this),t&&te.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":te.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,o=0;t=" "+e+" ";while(n=this[o++])if(1===n.nodeType&&(" "+wt(Tt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;x.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=y(e),this.each((function(n){var r;1===this.nodeType&&(r=o?e.call(this,n,x(this).val()):e,null==r?r="":"number"===typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(e){return null==e?"":e+""}))),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"===typeof n?n.replace(Et,""):null==n?"":n)):void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:wt(x.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:r.length;for(o=i<0?l:a?i:0;o<l;o++)if(n=r[o],(n.selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,o,r=e.options,i=x.makeArray(t),a=r.length;while(a--)o=r[a],(o.selected=x.inArray(x.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},m.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var At=/^(?:focusinfocus|focusoutblur)$/,It=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,o,r){var i,a,s,l,d,c,u,f,p=[o||C],g=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=o=o||C,3!==o.nodeType&&8!==o.nodeType&&!At.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),d=g.indexOf(":")<0&&"on"+g,e=e[x.expando]?e:new x.Event(g,"object"===typeof e&&e),e.isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:x.makeArray(t,[e]),u=x.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(o,t))){if(!r&&!u.noBubble&&!b(o)){for(l=u.delegateType||g,At.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(o.ownerDocument||C)&&p.push(s.defaultView||s.parentWindow||n)}i=0;while((a=p[i++])&&!e.isPropagationStopped())f=a,e.type=i>1?l:u.bindType||g,c=(te.get(a,"events")||Object.create(null))[e.type]&&te.get(a,"handle"),c&&c.apply(a,t),c=d&&a[d],c&&c.apply&&J(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),t)||!J(o)||d&&y(o[g])&&!b(o)&&(s=o[d],s&&(o[d]=null),x.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,It),o[g](),e.isPropagationStopped()&&f.removeEventListener(g,It),x.event.triggered=void 0,s&&(o[d]=s)),e.result}},simulate:function(e,t,n){var o=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(o,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),m.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var o=this.ownerDocument||this.document||this,r=te.access(o,t);r||o.addEventListener(e,n,!0),te.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,r=te.access(o,t)-1;r?te.access(o,t,r):(o.removeEventListener(e,n,!0),te.remove(o,t))}}}));var St=n.location,_t={guid:Date.now()},Dt=/\?/;x.parseXML=function(e){var t,o;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){}return o=t&&t.getElementsByTagName("parsererror")[0],t&&!o||x.error("Invalid XML: "+(o?x.map(o.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Pt=/\[\]$/,Lt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,o){var r;if(Array.isArray(t))x.each(t,(function(t,r){n||Pt.test(e)?o(e,r):jt(e+"["+("object"===typeof r&&null!=r?t:"")+"]",r,n,o)}));else if(n||"object"!==w(t))o(e,t);else for(r in t)jt(e+"["+r+"]",t[r],n,o)}x.param=function(e,t){var n,o=[],r=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){r(this.name,this.value)}));else for(n in e)jt(n,e[n],t,r);return o.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ye.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Mt=/%20/g,zt=/#.*$/,Ht=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ft=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ut={},Yt={},Wt="*/".concat("*"),Kt=C.createElement("a");function Vt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match($)||[];if(y(n))while(o=i[r++])"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Gt(e,t,n,o){var r={},i=e===Yt;function a(s){var l;return r[s]=!0,x.each(e[s]||[],(function(e,s){var d=s(t,n,o);return"string"!==typeof d||i||r[d]?i?!(l=d):void 0:(t.dataTypes.unshift(d),a(d),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Xt(e,t){var n,o,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&x.extend(!0,e,o),e}function Qt(e,t,n){var o,r,i,a,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}function Zt(e,t,n,o){var r,i,a,s,l,d={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];i=c.shift();while(i)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift(),i)if("*"===i)i=l;else if("*"!==l&&l!==i){if(a=d[l+" "+i]||d["* "+i],!a)for(r in d)if(s=r.split(" "),s[1]===i&&(a=d[l+" "+s[0]]||d["* "+s[0]],a)){!0===a?a=d[r]:!0!==d[r]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(u){return{state:"parsererror",error:a?u:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}Kt.href=St.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:qt.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,x.ajaxSettings),t):Xt(x.ajaxSettings,e)},ajaxPrefilter:Vt(Ut),ajaxTransport:Vt(Yt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var o,r,i,a,s,l,d,c,u,f,p=x.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?x(h):x.event,v=x.Deferred(),m=x.Callbacks("once memory"),y=p.statusCode||{},b={},N={},k="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(d){if(!a){a={};while(t=$t.exec(i))a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?i:null},setRequestHeader:function(e,t){return null==d&&(e=N[e.toLowerCase()]=N[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==d&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return o&&o.abort(t),T(0,t),this}};if(v.promise(w),p.url=((e||p.url||St.href)+"").replace(Bt,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match($)||[""],null==p.crossDomain){l=C.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Kt.protocol+"//"+Kt.host!==l.protocol+"//"+l.host}catch(E){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=x.param(p.data,p.traditional)),Gt(Ut,p,t,w),d)return w;for(u in c=x.event&&p.global,c&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ft.test(p.type),r=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Mt,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"===typeof p.data)&&(r+=(Dt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ht,"$1"),f=(Dt.test(r)?"&":"?")+"_="+_t.guid+++f),p.url=r+f),p.ifModified&&(x.lastModified[r]&&w.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&w.setRequestHeader("If-None-Match",x.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Wt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(h,w,p)||d))return w.abort();if(k="abort",m.add(p.complete),w.done(p.success),w.fail(p.error),o=Gt(Yt,p,t,w),o){if(w.readyState=1,c&&g.trigger("ajaxSend",[w,p]),d)return w;p.async&&p.timeout>0&&(s=n.setTimeout((function(){w.abort("timeout")}),p.timeout));try{d=!1,o.send(b,T)}catch(E){if(d)throw E;T(-1,E)}}else T(-1,"No Transport");function T(e,t,a,l){var u,f,b,C,N,k=t;d||(d=!0,s&&n.clearTimeout(s),o=void 0,i=l||"",w.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(C=Qt(p,w,a)),!u&&x.inArray("script",p.dataTypes)>-1&&x.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),C=Zt(p,C,w,u),u?(p.ifModified&&(N=w.getResponseHeader("Last-Modified"),N&&(x.lastModified[r]=N),N=w.getResponseHeader("etag"),N&&(x.etag[r]=N)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=C.state,f=C.data,b=C.error,u=!b)):(b=k,!e&&k||(k="error",e<0&&(e=0))),w.status=e,w.statusText=(t||k)+"",u?v.resolveWith(h,[f,k,w]):v.rejectWith(h,[w,k,b]),w.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[w,p,u?f:b]),m.fireWith(h,[w,k]),c&&(g.trigger("ajaxComplete",[w,p]),--x.active||x.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,o,r){return y(n)&&(r=r||o,o=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:n,success:o},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},en=x.ajaxSettings.xhr();m.cors=!!en&&"withCredentials"in en,m.ajax=en=!!en,x.ajaxTransport((function(e){var t,o;if(m.cors||en&&!e.crossDomain)return{send:function(r,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=o=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),o=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&o()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,r){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),C.head.appendChild(t[0])},abort:function(){n&&n()}}}));var tn=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||x.expando+"_"+_t.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,o){var r,i,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=n[r],n[r]=function(){a=arguments},o.always((function(){void 0===i?x(n).removeProp(r):n[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),a&&y(i)&&i(a[0]),a=i=void 0})),"script"})),m.createHTMLDocument=function(){var e=C.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),x.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?(t=C.implementation.createHTMLDocument(""),o=t.createElement("base"),o.href=C.location.href,t.head.appendChild(o)):t=C),r=P.exec(e),i=!n&&[],r?[t.createElement(r[1])]:(r=xe([e],t,i),i&&i.length&&x(i).remove(),x.merge([],r.childNodes)));var o,r,i},x.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=wt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(r="POST"),a.length>0&&x.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(o?x("<div>").append(x.parseHTML(e)).find(o):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var o,r,i,a,s,l,d,c=x.css(e,"position"),u=x(e),f={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=x.css(e,"top"),l=x.css(e,"left"),d=("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1,d?(o=u.position(),a=o.top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):u.css(f)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===x.css(o,"position"))t=o.getBoundingClientRect();else{t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position"))e=e.parentNode;e&&e!==o&&1===e.nodeType&&(r=x(e).offset(),r.top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(o,"marginTop",!0),left:t.left-r.left-x.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===x.css(e,"position"))e=e.offsetParent;return e||ce}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(o){return V(this,(function(e,o,r){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[t]:e[o];i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r}),e,o,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Ve(m.pixelPosition,(function(e,n){if(n)return n=Ke(e,t),Be.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,o){x.fn[o]=function(r,i){var a=arguments.length&&(n||"boolean"!==typeof r),s=n||(!0===r||!0===i?"margin":"border");return V(this,(function(t,n,r){var i;return b(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?x.css(t,n,s):x.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var on=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,o,r;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return o=l.call(arguments,2),r=function(){return e.apply(t||this,o.concat(l.call(arguments)))},r.guid=e.guid=e.guid||x.guid++,r},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=D,x.isFunction=y,x.isWindow=b,x.camelCase=Z,x.type=w,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(on,"")},o=[],r=function(){return x}.apply(t,o),void 0===r||(e.exports=r);var rn=n.jQuery,an=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=an),e&&n.jQuery===x&&(n.jQuery=rn),x},"undefined"===typeof i&&(n.jQuery=n.$=x),x}))},"4e50":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,'.ztree[data-v-ce489474]{text-align:left;font-size:14px}.ztree[data-v-ce489474] li{list-style-type:none;white-space:nowrap;outline:none}.ztree[data-v-ce489474] li ul{position:relative;padding:0 0 0 20px;margin:0}.ztree[data-v-ce489474] .line:before{position:absolute;top:0;left:10px;height:100%;content:"";border-right:1px dotted #dbdbdb}.ztree[data-v-ce489474] .bottom_docu:after,.ztree[data-v-ce489474] .bottom_docu:before,.ztree[data-v-ce489474] .center_docu:after,.ztree[data-v-ce489474] .center_docu:before,.ztree[data-v-ce489474] .roots_docu:after,.ztree[data-v-ce489474] .roots_docu:before{position:absolute;content:"";border:0 dotted #dbdbdb}.ztree[data-v-ce489474] .roots_docu:before{left:10px;height:50%;top:50%;border-left-width:1px}.ztree[data-v-ce489474] .roots_docu:after{top:50%;left:11px;width:50%;border-top-width:1px}.ztree[data-v-ce489474] .center_docu:before{left:10px;height:100%;border-left-width:1px}.ztree[data-v-ce489474] .center_docu:after{top:50%;left:11px;width:50%;border-top-width:1px}.ztree[data-v-ce489474] .bottom_docu:before{left:10px;height:50%;border-left-width:1px}.ztree[data-v-ce489474] .bottom_docu:after{top:50%;left:11px;width:50%;border-top-width:1px}.ztree[data-v-ce489474] li a{display:inline-block;line-height:22px;height:22px;margin:0;cursor:pointer;-webkit-transition:none;transition:none;vertical-align:middle;color:#555}.ztree[data-v-ce489474] .node_name{display:inline-block;padding:0 3px;border-radius:4px}.ztree[data-v-ce489474] .curSelectedNode .node_name{color:#000;background-color:#c9e9f7}.ztree[data-v-ce489474] .curSelectedNode_Edit{height:20px;opacity:.8;color:#000;border:1px solid #6cc2e8;background-color:#9dd6f0}.ztree[data-v-ce489474] .tmpTargetNode_inner{opacity:.8;color:#fff;background-color:#4fcbf0;filter:alpha(opacity=80)}.ztree[data-v-ce489474] .rename{font-size:12px;line-height:22px;width:80px;height:22px;margin:0;padding:0;vertical-align:top;border:0;background:none}.ztree[data-v-ce489474] .button{position:relative;display:inline-block;line-height:22px;height:22px;width:22px;cursor:pointer;text-align:center;vertical-align:middle}.ztree[data-v-ce489474] .button.edit{color:#25ae88}.ztree[data-v-ce489474] .button.remove{color:#cb4042}.ztree[data-v-ce489474] .button.chk{position:relative;width:14px;height:14px;margin:0 4px 0 0;border:1px solid #d7dde4;border-radius:2px;background:#fff}.ztree[data-v-ce489474] .chk.radio_false_disable,.ztree[data-v-ce489474] .chk.radio_false_full,.ztree[data-v-ce489474] .chk.radio_false_full_focus,.ztree[data-v-ce489474] .chk.radio_false_part,.ztree[data-v-ce489474] .chk.radio_false_part_focus,.ztree[data-v-ce489474] .chk.radio_true_disable,.ztree[data-v-ce489474] .chk.radio_true_full,.ztree[data-v-ce489474] .chk.radio_true_full_focus,.ztree[data-v-ce489474] .chk.radio_true_part,.ztree[data-v-ce489474] .chk.radio_true_part_focus{border-radius:8px}.ztree[data-v-ce489474] .button.chk:after{position:absolute;top:1px;left:4px;width:4px;height:8px;content:"";transition:-webkit-transform .2s ease-in-out;-webkit-transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;-webkit-transform:rotate(0deg) scale(0);transform:rotate(0deg) scale(0);border-right:2px solid #fff;border-bottom:2px solid #fff}.ztree[data-v-ce489474] .button.checkbox_false_full_focus{border-color:#ccc}.ztree[data-v-ce489474] .button.checkbox_true_disable,.ztree[data-v-ce489474] .button.checkbox_true_full,.ztree[data-v-ce489474] .button.checkbox_true_full_focus,.ztree[data-v-ce489474] .button.checkbox_true_part,.ztree[data-v-ce489474] .button.checkbox_true_part_focus{border-color:#39f;background-color:#39f}.ztree[data-v-ce489474] .button.checkbox_true_disable:after,.ztree[data-v-ce489474] .button.checkbox_true_full:after,.ztree[data-v-ce489474] .button.checkbox_true_full_focus:after{-webkit-transform:rotate(45deg) scale(1);transform:rotate(45deg) scale(1)}.ztree[data-v-ce489474] .button.checkbox_true_part:after,.ztree[data-v-ce489474] .button.checkbox_true_part_focus:after{top:5px;left:2px;width:10px;height:1px;-webkit-transform:rotate(0deg) scale(1);transform:rotate(0deg) scale(1);border-right:0}.ztree[data-v-ce489474] .button.radio_true_full,.ztree[data-v-ce489474] .chk.radio_true_full_focus,.ztree[data-v-ce489474] .chk.radio_true_part,.ztree[data-v-ce489474] .chk.radio_true_part_focus{border-color:#39f}.ztree[data-v-ce489474] .button.radio_true_full:after,.ztree[data-v-ce489474] .chk.radio_true_full_focus:after,.ztree[data-v-ce489474] .chk.radio_true_part:after,.ztree[data-v-ce489474] .chk.radio_true_part_focus:after{top:3px;left:3px;width:8px;-webkit-transform:rotate(0deg) scale(1);transform:rotate(0deg) scale(1);border:0;border-radius:4px;background:#39f}.ztree[data-v-ce489474] .button.checkbox_false_disable,.ztree[data-v-ce489474] .button.checkbox_true_disable,.ztree[data-v-ce489474] .chk.radio_false_disable,.ztree[data-v-ce489474] .chk.radio_true_disable{cursor:not-allowed}.ztree[data-v-ce489474] .button.checkbox_false_disable{background-color:#f3f3f3}.ztree[data-v-ce489474] .button.bottom_close:before,.ztree[data-v-ce489474] .button.bottom_open:before,.ztree[data-v-ce489474] .button.center_close:before,.ztree[data-v-ce489474] .button.center_open:before,.ztree[data-v-ce489474] .button.noline_close:before,.ztree[data-v-ce489474] .button.noline_open:before,.ztree[data-v-ce489474] .button.root_close:before,.ztree[data-v-ce489474] .button.root_open:before,.ztree[data-v-ce489474] .button.roots_close:before,.ztree[data-v-ce489474] .button.roots_open:before{position:absolute;top:5px;left:5px;content:"";transition:-webkit-transform .3s ease;-webkit-transition:-webkit-transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:25% 50%;transform-origin:25% 50%;border:6px solid;border-color:transparent transparent transparent #666}.ztree[data-v-ce489474] .button.bottom_open:before,.ztree[data-v-ce489474] .button.center_open:before,.ztree[data-v-ce489474] .button.noline_open:before,.ztree[data-v-ce489474] .button.root_open:before,.ztree[data-v-ce489474] .button.roots_open:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ztree[data-v-ce489474] .button.ico_loading{margin-right:2px;background:url("data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7") 0 no-repeat}.ztree[data-v-ce489474] .tmpTargetzTree{opacity:.8;background-color:#2ea9df;filter:alpha(opacity=80)}.ztree[data-v-ce489474] .tmpzTreeMove_arrow{position:absolute;width:18px;height:18px;color:#4fcbf0}',""]),e.exports=t},7773:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ztree",attrs:{id:e.ztreeId}})},r=[],i=(n("99af"),n("cca6"),n("1157")),a=i;window.jQuery?a=window.jQuery:window.jQuery=a,n("91e5");var s={props:{setting:{type:Object,require:!1,default:function(){return{}}},nodes:{type:Array,require:!0,default:function(){return[]}}},data:function(){var e=this;return{ztreeId:"ztree_"+parseInt(1e10*Math.random()),ztreeObj:null,list:[],ztreeSetting:{view:{showIcon:!1},callback:{onAsyncError:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onAsyncError"].concat(n))},onAsyncSuccess:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onAsyncSuccess"].concat(n))},onCheck:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onCheck"].concat(n))},onClick:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onClick"].concat(n))},onCollapse:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onCollapse"].concat(n))},onDblClick:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onDblClick"].concat(n))},onDrag:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onDrag"].concat(n))},onDragMove:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onDragMove"].concat(n))},onDrop:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onDrop"].concat(n))},onExpand:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onExpand"].concat(n))},onMouseDown:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onMouseDown"].concat(n))},onMouseUp:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onMouseUp"].concat(n))},onRemove:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onRemove"].concat(n))},onRename:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onRename"].concat(n))},onRightClick:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["onRightClick"].concat(n))}}}}},watch:{nodes:{handler:function(e){var t=this;this.list=e,this.ztreeObj&&this.ztreeObj.destroy(),this.$nextTick((function(){t.ztreeObj=window.jQuery.fn.zTree.init(a("#"+t.ztreeId),Object.assign({},t.ztreeSetting,t.setting),t.list),t.$emit("onCreated",t.ztreeObj)}))},deep:!0,immediate:!0}}},l=s,d=(n("fd27"),n("8f68"),n("2877")),c=Object(d["a"])(l,o,r,!1,null,"ce489474",null);t["default"]=c.exports},"8f68":function(e,t,n){"use strict";n("ab17")},"91e5":function(module,exports){(function($){var settings={},roots={},caches={},_consts={className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_setting={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nodeClasses:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{isParent:"isParent",children:"children",name:"name",title:"",url:"url",icon:"icon"},render:{name:null,title:null},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",headers:{},xhrFields:{},url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},_initRoot=function(e){var t=data.getRoot(e);t||(t={},data.setRoot(e,t)),data.nodeChildren(e,t,[]),t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()},_initCache=function(e){var t=data.getCache(e);t||(t={},data.setCache(e,t)),t.nodes=[],t.doms=[]},_bindEvent=function(e){var t=e.treeObj,n=consts.event;t.bind(n.NODECREATED,(function(t,n,o){tools.apply(e.callback.onNodeCreated,[t,n,o])})),t.bind(n.CLICK,(function(t,n,o,r,i){tools.apply(e.callback.onClick,[n,o,r,i])})),t.bind(n.EXPAND,(function(t,n,o){tools.apply(e.callback.onExpand,[t,n,o])})),t.bind(n.COLLAPSE,(function(t,n,o){tools.apply(e.callback.onCollapse,[t,n,o])})),t.bind(n.ASYNC_SUCCESS,(function(t,n,o,r){tools.apply(e.callback.onAsyncSuccess,[t,n,o,r])})),t.bind(n.ASYNC_ERROR,(function(t,n,o,r,i,a){tools.apply(e.callback.onAsyncError,[t,n,o,r,i,a])})),t.bind(n.REMOVE,(function(t,n,o){tools.apply(e.callback.onRemove,[t,n,o])})),t.bind(n.SELECTED,(function(t,n,o){tools.apply(e.callback.onSelected,[n,o])})),t.bind(n.UNSELECTED,(function(t,n,o){tools.apply(e.callback.onUnSelected,[n,o])}))},_unbindEvent=function(e){var t=e.treeObj,n=consts.event;t.unbind(n.NODECREATED).unbind(n.CLICK).unbind(n.EXPAND).unbind(n.COLLAPSE).unbind(n.ASYNC_SUCCESS).unbind(n.ASYNC_ERROR).unbind(n.REMOVE).unbind(n.SELECTED).unbind(n.UNSELECTED)},_eventProxy=function(e){var t=e.target,n=data.getSetting(e.data.treeId),o="",r=null,i="",a="",s=null,l=null,d=null;if(tools.eqs(e.type,"mousedown")?a="mousedown":tools.eqs(e.type,"mouseup")?a="mouseup":tools.eqs(e.type,"contextmenu")?a="contextmenu":tools.eqs(e.type,"click")?tools.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+consts.id.SWITCH)?(o=tools.getNodeMainDom(t).id,i="switchNode"):(d=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),d&&(o=tools.getNodeMainDom(d).id,i="clickNode")):tools.eqs(e.type,"dblclick")&&(a="dblclick",d=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),d&&(o=tools.getNodeMainDom(d).id,i="switchNode")),a.length>0&&0==o.length&&(d=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),d&&(o=tools.getNodeMainDom(d).id)),o.length>0)switch(r=data.getNodeCache(n,o),i){case"switchNode":var c=data.nodeIsParent(n,r);c&&(tools.eqs(e.type,"click")||tools.eqs(e.type,"dblclick")&&tools.apply(n.view.dblClickExpand,[n.treeId,r],n.view.dblClickExpand))?s=handler.onSwitchNode:i="";break;case"clickNode":s=handler.onClickNode;break}switch(a){case"mousedown":l=handler.onZTreeMousedown;break;case"mouseup":l=handler.onZTreeMouseup;break;case"dblclick":l=handler.onZTreeDblclick;break;case"contextmenu":l=handler.onZTreeContextmenu;break}var u={stop:!1,node:r,nodeEventType:i,nodeEventCallback:s,treeEventType:a,treeEventCallback:l};return u},_initNode=function(e,t,n,o,r,i,a){if(n){var s=data.getRoot(e),l=data.nodeChildren(e,n);n.level=t,n.tId=e.treeId+"_"+ ++s.zId,n.parentTId=o?o.tId:null,n.open="string"==typeof n.open?tools.eqs(n.open,"true"):!!n.open;var d=data.nodeIsParent(e,n);tools.isArray(l)?(data.nodeIsParent(e,n,!0),n.zAsync=!0):(d=data.nodeIsParent(e,n,d),n.open=!(!d||e.async.enable)&&n.open,n.zAsync=!d),n.isFirstNode=r,n.isLastNode=i,n.getParentNode=function(){return data.getNodeCache(e,n.parentTId)},n.getPreNode=function(){return data.getPreNode(e,n)},n.getNextNode=function(){return data.getNextNode(e,n)},n.getIndex=function(){return data.getNodeIndex(e,n)},n.getPath=function(){return data.getNodePath(e,n)},n.isAjaxing=!1,data.fixPIdKeyValue(e,n)}},_init={bind:[_bindEvent],unbind:[_unbindEvent],caches:[_initCache],nodes:[_initNode],proxys:[_eventProxy],roots:[_initRoot],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},data={addNodeCache:function(e,t){data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=t},getNodeCacheId:function(e){return e.substring(e.lastIndexOf("_")+1)},addAfterA:function(e){_init.afterA.push(e)},addBeforeA:function(e){_init.beforeA.push(e)},addInnerAfterA:function(e){_init.innerAfterA.push(e)},addInnerBeforeA:function(e){_init.innerBeforeA.push(e)},addInitBind:function(e){_init.bind.push(e)},addInitUnBind:function(e){_init.unbind.push(e)},addInitCache:function(e){_init.caches.push(e)},addInitNode:function(e){_init.nodes.push(e)},addInitProxy:function(e,t){t?_init.proxys.splice(0,0,e):_init.proxys.push(e)},addInitRoot:function(e){_init.roots.push(e)},addNodesData:function(e,t,n,o){var r,i=data.nodeChildren(e,t);i?n>=i.length&&(n=-1):(i=data.nodeChildren(e,t,[]),n=-1),i.length>0&&0===n?(i[0].isFirstNode=!1,view.setNodeLineIcos(e,i[0])):i.length>0&&n<0&&(i[i.length-1].isLastNode=!1,view.setNodeLineIcos(e,i[i.length-1])),data.nodeIsParent(e,t,!0),n<0?data.nodeChildren(e,t,i.concat(o)):(r=[n,0].concat(o),i.splice.apply(i,r))},addSelectedNode:function(e,t){var n=data.getRoot(e);data.isSelectedNode(e,t)||n.curSelectedList.push(t)},addCreatedNode:function(e,t){if(e.callback.onNodeCreated||e.view.addDiyDom){var n=data.getRoot(e);n.createdNodes.push(t)}},addZTreeTools:function(e){_init.zTreeTools.push(e)},exSetting:function(e){$.extend(!0,_setting,e)},fixPIdKeyValue:function(e,t){e.data.simpleData.enable&&(t[e.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[e.data.simpleData.idKey]:e.data.simpleData.rootPId)},getAfterA:function(e,t,n){for(var o=0,r=_init.afterA.length;o<r;o++)_init.afterA[o].apply(this,arguments)},getBeforeA:function(e,t,n){for(var o=0,r=_init.beforeA.length;o<r;o++)_init.beforeA[o].apply(this,arguments)},getInnerAfterA:function(e,t,n){for(var o=0,r=_init.innerAfterA.length;o<r;o++)_init.innerAfterA[o].apply(this,arguments)},getInnerBeforeA:function(e,t,n){for(var o=0,r=_init.innerBeforeA.length;o<r;o++)_init.innerBeforeA[o].apply(this,arguments)},getCache:function(e){return caches[e.treeId]},getNodeIndex:function(e,t){if(!t)return null;for(var n=t.parentTId?t.getParentNode():data.getRoot(e),o=data.nodeChildren(e,n),r=0,i=o.length-1;r<=i;r++)if(o[r]===t)return r;return-1},getNextNode:function(e,t){if(!t)return null;for(var n=t.parentTId?t.getParentNode():data.getRoot(e),o=data.nodeChildren(e,n),r=0,i=o.length-1;r<=i;r++)if(o[r]===t)return r==i?null:o[r+1];return null},getNodeByParam:function(e,t,n,o){if(!t||!n)return null;for(var r=0,i=t.length;r<i;r++){var a=t[r];if(a[n]==o)return t[r];var s=data.nodeChildren(e,a),l=data.getNodeByParam(e,s,n,o);if(l)return l}return null},getNodeCache:function(e,t){if(!t)return null;var n=caches[e.treeId].nodes[data.getNodeCacheId(t)];return n||null},getNodePath:function(e,t){return t?(n=t.parentTId?t.getParentNode().getPath():[],n&&n.push(t),n):null;var n},getNodes:function(e){return data.nodeChildren(e,data.getRoot(e))},getNodesByParam:function(e,t,n,o){if(!t||!n)return[];for(var r=[],i=0,a=t.length;i<a;i++){var s=t[i];s[n]==o&&r.push(s);var l=data.nodeChildren(e,s);r=r.concat(data.getNodesByParam(e,l,n,o))}return r},getNodesByParamFuzzy:function(e,t,n,o){if(!t||!n)return[];var r=[];o=o.toLowerCase();for(var i=0,a=t.length;i<a;i++){var s=t[i];"string"==typeof s[n]&&t[i][n].toLowerCase().indexOf(o)>-1&&r.push(s);var l=data.nodeChildren(e,s);r=r.concat(data.getNodesByParamFuzzy(e,l,n,o))}return r},getNodesByFilter:function(e,t,n,o,r){if(!t)return o?null:[];for(var i=o?null:[],a=0,s=t.length;a<s;a++){var l=t[a];if(tools.apply(n,[l,r],!1)){if(o)return l;i.push(l)}var d=data.nodeChildren(e,l),c=data.getNodesByFilter(e,d,n,o,r);if(o&&c)return c;i=o?c:i.concat(c)}return i},getPreNode:function(e,t){if(!t)return null;for(var n=t.parentTId?t.getParentNode():data.getRoot(e),o=data.nodeChildren(e,n),r=0,i=o.length;r<i;r++)if(o[r]===t)return 0==r?null:o[r-1];return null},getRoot:function(e){return e?roots[e.treeId]:null},getRoots:function(){return roots},getSetting:function(e){return settings[e]},getSettings:function(){return settings},getZTreeTools:function(e){var t=this.getRoot(this.getSetting(e));return t?t.treeTools:null},initCache:function(e){for(var t=0,n=_init.caches.length;t<n;t++)_init.caches[t].apply(this,arguments)},initNode:function(e,t,n,o,r,i){for(var a=0,s=_init.nodes.length;a<s;a++)_init.nodes[a].apply(this,arguments)},initRoot:function(e){for(var t=0,n=_init.roots.length;t<n;t++)_init.roots[t].apply(this,arguments)},isSelectedNode:function(e,t){for(var n=data.getRoot(e),o=0,r=n.curSelectedList.length;o<r;o++)if(t===n.curSelectedList[o])return!0;return!1},nodeChildren:function(e,t,n){if(!t)return null;var o=e.data.key.children;return"undefined"!==typeof n&&(t[o]=n),t[o]},nodeIsParent:function(e,t,n){if(!t)return!1;var o=e.data.key.isParent;return"undefined"!==typeof n?("string"===typeof n&&(n=tools.eqs(n,"true")),n=!!n,t[o]=n):"string"==typeof t[o]?t[o]=tools.eqs(t[o],"true"):t[o]=!!t[o],t[o]},nodeName:function(e,t,n){var o=e.data.key.name;"undefined"!==typeof n&&(t[o]=n);var r=""+t[o];return"function"===typeof e.data.render.name?e.data.render.name.call(this,r,t):r},nodeTitle:function(e,t){var n=""===e.data.key.title?e.data.key.name:e.data.key.title,o=""+t[n];return"function"===typeof e.data.render.title?e.data.render.title.call(this,o,t):o},removeNodeCache:function(e,t){var n=data.nodeChildren(e,t);if(n)for(var o=0,r=n.length;o<r;o++)data.removeNodeCache(e,n[o]);data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=null},removeSelectedNode:function(e,t){for(var n=data.getRoot(e),o=0,r=n.curSelectedList.length;o<r;o++)t!==n.curSelectedList[o]&&data.getNodeCache(e,n.curSelectedList[o].tId)||(n.curSelectedList.splice(o,1),e.treeObj.trigger(consts.event.UNSELECTED,[e.treeId,t]),o--,r--)},setCache:function(e,t){caches[e.treeId]=t},setRoot:function(e,t){roots[e.treeId]=t},setZTreeTools:function(e,t){for(var n=0,o=_init.zTreeTools.length;n<o;n++)_init.zTreeTools[n].apply(this,arguments)},transformToArrayFormat:function(e,t){if(!t)return[];var n=[];if(tools.isArray(t))for(var o=0,r=t.length;o<r;o++){var i=t[o];a(i)}else a(t);return n;function a(t){n.push(t);var o=data.nodeChildren(e,t);o&&(n=n.concat(data.transformToArrayFormat(e,o)))}},transformTozTreeFormat:function(e,t){var n,o,r=e.data.simpleData.idKey,i=e.data.simpleData.pIdKey;if(!r||""==r||!t)return[];if(tools.isArray(t)){var a=[],s={};for(n=0,o=t.length;n<o;n++)s[t[n][r]]=t[n];for(n=0,o=t.length;n<o;n++){var l=s[t[n][i]];if(l&&t[n][r]!=t[n][i]){var d=data.nodeChildren(e,l);d||(d=data.nodeChildren(e,l,[])),d.push(t[n])}else a.push(t[n])}return a}return[t]}},event={bindEvent:function(e){for(var t=0,n=_init.bind.length;t<n;t++)_init.bind[t].apply(this,arguments)},unbindEvent:function(e){for(var t=0,n=_init.unbind.length;t<n;t++)_init.unbind[t].apply(this,arguments)},bindTree:function(e){var t={treeId:e.treeId},n=e.treeObj;e.view.txtSelectedEnable||n.bind("selectstart",handler.onSelectStart).css({"-moz-user-select":"-moz-none"}),n.bind("click",t,event.proxy),n.bind("dblclick",t,event.proxy),n.bind("mouseover",t,event.proxy),n.bind("mouseout",t,event.proxy),n.bind("mousedown",t,event.proxy),n.bind("mouseup",t,event.proxy),n.bind("contextmenu",t,event.proxy)},unbindTree:function(e){var t=e.treeObj;t.unbind("selectstart",handler.onSelectStart).unbind("click",event.proxy).unbind("dblclick",event.proxy).unbind("mouseover",event.proxy).unbind("mouseout",event.proxy).unbind("mousedown",event.proxy).unbind("mouseup",event.proxy).unbind("contextmenu",event.proxy)},doProxy:function(e){for(var t=[],n=0,o=_init.proxys.length;n<o;n++){var r=_init.proxys[n].apply(this,arguments);if(t.push(r),r.stop)break}return t},proxy:function(e){var t=data.getSetting(e.data.treeId);if(!tools.uCanDo(t,e))return!0;for(var n=event.doProxy(e),o=!0,r=0,i=n.length;r<i;r++){var a=n[r];a.nodeEventCallback&&(!0,o=a.nodeEventCallback.apply(a,[e,a.node])&&o),a.treeEventCallback&&(!0,o=a.treeEventCallback.apply(a,[e,a.node])&&o)}return o}},handler={onSwitchNode:function(e,t){var n=data.getSetting(e.data.treeId);if(t.open){if(0==tools.apply(n.callback.beforeCollapse,[n.treeId,t],!0))return!0;data.getRoot(n).expandTriggerFlag=!0,view.switchNode(n,t)}else{if(0==tools.apply(n.callback.beforeExpand,[n.treeId,t],!0))return!0;data.getRoot(n).expandTriggerFlag=!0,view.switchNode(n,t)}return!0},onClickNode:function(e,t){var n=data.getSetting(e.data.treeId),o=n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&data.isSelectedNode(n,t)?0:n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&n.view.selectedMulti?2:1;return 0==tools.apply(n.callback.beforeClick,[n.treeId,t,o],!0)||(0===o?view.cancelPreSelectedNode(n,t):view.selectNode(n,t,2===o),n.treeObj.trigger(consts.event.CLICK,[e,n.treeId,t,o])),!0},onZTreeMousedown:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseDown,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseDown,[e,n.treeId,t]),!0},onZTreeMouseup:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseUp,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseUp,[e,n.treeId,t]),!0},onZTreeDblclick:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeDblClick,[n.treeId,t],!0)&&tools.apply(n.callback.onDblClick,[e,n.treeId,t]),!0},onZTreeContextmenu:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeRightClick,[n.treeId,t],!0)&&tools.apply(n.callback.onRightClick,[e,n.treeId,t]),"function"!=typeof n.callback.onRightClick},onSelectStart:function(e){var t=e.originalEvent.srcElement.nodeName.toLowerCase();return"input"===t||"textarea"===t}},tools={apply:function(e,t,n){return"function"==typeof e?e.apply(zt,t||[]):n},canAsync:function(e,t){var n=data.nodeChildren(e,t),o=data.nodeIsParent(e,t);return e.async.enable&&t&&o&&!(t.zAsync||n&&n.length>0)},clone:function(e){if(null===e)return null;var t=tools.isArray(e)?[]:{};for(var n in e)t[n]=e[n]instanceof Date?new Date(e[n].getTime()):"object"===typeof e[n]?tools.clone(e[n]):e[n];return t},eqs:function(e,t){return e.toLowerCase()===t.toLowerCase()},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isElement:function(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&null!==e&&1===e.nodeType&&"string"===typeof e.nodeName},$:function(e,t,n){return t&&"string"!=typeof t&&(n=t,t=""),"string"==typeof e?$(e,n?n.treeObj.get(0).ownerDocument:null):$("#"+e.tId+t,n?n.treeObj:null)},getMDom:function(e,t,n){if(!t)return null;while(t&&t.id!==e.treeId){for(var o=0,r=n.length;t.tagName&&o<r;o++)if(tools.eqs(t.tagName,n[o].tagName)&&null!==t.getAttribute(n[o].attrName))return t;t=t.parentNode}return null},getNodeMainDom:function(e){return $(e).parent("li").get(0)||$(e).parentsUntil("li").parent().get(0)},isChildOrSelf:function(e,t){return $(e).closest("#"+t).length>0},uCanDo:function(e,t){return!0}},view={addNodes:function(e,t,n,o,r){var i=data.nodeIsParent(e,t);if(!e.data.keep.leaf||!t||i)if(tools.isArray(o)||(o=[o]),e.data.simpleData.enable&&(o=data.transformTozTreeFormat(e,o)),t){var a=$$(t,consts.id.SWITCH,e),s=$$(t,consts.id.ICON,e),l=$$(t,consts.id.UL,e);t.open||(view.replaceSwitchClass(t,a,consts.folder.CLOSE),view.replaceIcoClass(t,s,consts.folder.CLOSE),t.open=!1,l.css({display:"none"})),data.addNodesData(e,t,n,o),view.createNodes(e,t.level+1,o,t,n),r||view.expandCollapseParentNode(e,t,!0)}else data.addNodesData(e,data.getRoot(e),n,o),view.createNodes(e,0,o,null,n)},appendNodes:function(e,t,n,o,r,i,a){if(!n)return[];var s,l,d=[],c=o||data.getRoot(e),u=data.nodeChildren(e,c);(!u||r>=u.length-n.length)&&(r=-1);for(var f=0,p=n.length;f<p;f++){var h=n[f];i&&(s=(0===r||u.length==n.length)&&0==f,l=r<0&&f==n.length-1,data.initNode(e,t,h,o,s,l,a),data.addNodeCache(e,h));var g=data.nodeIsParent(e,h),v=[],m=data.nodeChildren(e,h);m&&m.length>0&&(v=view.appendNodes(e,t+1,m,h,-1,i,a&&h.open)),a&&(view.makeDOMNodeMainBefore(d,e,h),view.makeDOMNodeLine(d,e,h),data.getBeforeA(e,h,d),view.makeDOMNodeNameBefore(d,e,h),data.getInnerBeforeA(e,h,d),view.makeDOMNodeIcon(d,e,h),data.getInnerAfterA(e,h,d),view.makeDOMNodeNameAfter(d,e,h),data.getAfterA(e,h,d),g&&h.open&&view.makeUlHtml(e,h,d,v.join("")),view.makeDOMNodeMainAfter(d,e,h),data.addCreatedNode(e,h))}return d},appendParentULDom:function(e,t){var n=[],o=$$(t,e);!o.get(0)&&t.parentTId&&(view.appendParentULDom(e,t.getParentNode()),o=$$(t,e));var r=$$(t,consts.id.UL,e);r.get(0)&&r.remove();var i=data.nodeChildren(e,t),a=view.appendNodes(e,t.level+1,i,t,-1,!1,!0);view.makeUlHtml(e,t,n,a.join("")),o.append(n.join(""))},asyncNode:function(setting,node,isSilent,callback){var i,l,isParent=data.nodeIsParent(setting,node);if(node&&!isParent)return tools.apply(callback),!1;if(node&&node.isAjaxing)return!1;if(0==tools.apply(setting.callback.beforeAsync,[setting.treeId,node],!0))return tools.apply(callback),!1;if(node){node.isAjaxing=!0;var icoObj=$$(node,consts.id.ICON,setting);icoObj.attr({style:"",class:consts.className.BUTTON+" "+consts.className.ICO_LOADING})}var tmpParam={},autoParam=tools.apply(setting.async.autoParam,[setting.treeId,node],setting.async.autoParam);for(i=0,l=autoParam.length;node&&i<l;i++){var pKey=autoParam[i].split("="),spKey=pKey;pKey.length>1&&(spKey=pKey[1],pKey=pKey[0]),tmpParam[spKey]=node[pKey]}var otherParam=tools.apply(setting.async.otherParam,[setting.treeId,node],setting.async.otherParam);if(tools.isArray(otherParam))for(i=0,l=otherParam.length;i<l;i+=2)tmpParam[otherParam[i]]=otherParam[i+1];else for(var p in otherParam)tmpParam[p]=otherParam[p];var _tmpV=data.getRoot(setting)._ver;return $.ajax({contentType:setting.async.contentType,cache:!1,type:setting.async.type,url:tools.apply(setting.async.url,[setting.treeId,node],setting.async.url),data:setting.async.contentType.indexOf("application/json")>-1?JSON.stringify(tmpParam):tmpParam,dataType:setting.async.dataType,headers:setting.async.headers,xhrFields:setting.async.xhrFields,success:function(msg){if(_tmpV==data.getRoot(setting)._ver){var newNodes=[];try{newNodes=msg&&0!=msg.length?"string"==typeof msg?eval("("+msg+")"):msg:[]}catch(err){newNodes=msg}node&&(node.isAjaxing=null,node.zAsync=!0),view.setNodeLineIcos(setting,node),newNodes&&""!==newNodes?(newNodes=tools.apply(setting.async.dataFilter,[setting.treeId,node,newNodes],newNodes),view.addNodes(setting,node,-1,newNodes?tools.clone(newNodes):[],!!isSilent)):view.addNodes(setting,node,-1,[],!!isSilent),setting.treeObj.trigger(consts.event.ASYNC_SUCCESS,[setting.treeId,node,msg]),tools.apply(callback)}},error:function(e,t,n){_tmpV==data.getRoot(setting)._ver&&(node&&(node.isAjaxing=null),view.setNodeLineIcos(setting,node),setting.treeObj.trigger(consts.event.ASYNC_ERROR,[setting.treeId,node,e,t,n]))}}),!0},cancelPreSelectedNode:function(e,t,n){var o,r,i=data.getRoot(e).curSelectedList;for(o=i.length-1;o>=0;o--)if(r=i[o],t===r||!t&&(!n||n!==r)){if($$(r,consts.id.A,e).removeClass(consts.node.CURSELECTED),t){data.removeSelectedNode(e,t);break}i.splice(o,1),e.treeObj.trigger(consts.event.UNSELECTED,[e.treeId,r])}},createNodeCallback:function(e){if(e.callback.onNodeCreated||e.view.addDiyDom){var t=data.getRoot(e);while(t.createdNodes.length>0){var n=t.createdNodes.shift();tools.apply(e.view.addDiyDom,[e.treeId,n]),e.callback.onNodeCreated&&e.treeObj.trigger(consts.event.NODECREATED,[e.treeId,n])}}},createNodes:function(e,t,n,o,r){if(n&&0!=n.length){var i=data.getRoot(e),a=!o||o.open||!!$$(data.nodeChildren(e,o)[0],e).get(0);i.createdNodes=[];var s,l,d=view.appendNodes(e,t,n,o,r,!0,a);if(o){var c=$$(o,consts.id.UL,e);c.get(0)&&(s=c)}else s=e.treeObj;s&&(r>=0&&(l=s.children()[r]),r>=0&&l?$(l).before(d.join("")):s.append(d.join(""))),view.createNodeCallback(e)}},destroy:function(e){e&&(data.initCache(e),data.initRoot(e),event.unbindTree(e),event.unbindEvent(e),e.treeObj.empty(),delete settings[e.treeId])},expandCollapseNode:function(e,t,n,o,r){var i,a,s=data.getRoot(e);if(t){var l=data.nodeChildren(e,t),d=data.nodeIsParent(e,t);if(s.expandTriggerFlag&&(a=r,i=function(){a&&a(),t.open?e.treeObj.trigger(consts.event.EXPAND,[e.treeId,t]):e.treeObj.trigger(consts.event.COLLAPSE,[e.treeId,t])},r=i,s.expandTriggerFlag=!1),!t.open&&d&&(!$$(t,consts.id.UL,e).get(0)||l&&l.length>0&&!$$(l[0],e).get(0))&&(view.appendParentULDom(e,t),view.createNodeCallback(e)),t.open!=n){var c=$$(t,consts.id.UL,e),u=$$(t,consts.id.SWITCH,e),f=$$(t,consts.id.ICON,e);d?(t.open=!t.open,t.iconOpen&&t.iconClose&&f.attr("style",view.makeNodeIcoStyle(e,t)),t.open?(view.replaceSwitchClass(t,u,consts.folder.OPEN),view.replaceIcoClass(t,f,consts.folder.OPEN),0==o||""==e.view.expandSpeed?(c.show(),tools.apply(r,[])):l&&l.length>0?c.slideDown(e.view.expandSpeed,r):(c.show(),tools.apply(r,[]))):(view.replaceSwitchClass(t,u,consts.folder.CLOSE),view.replaceIcoClass(t,f,consts.folder.CLOSE),0!=o&&""!=e.view.expandSpeed&&l&&l.length>0?c.slideUp(e.view.expandSpeed,r):(c.hide(),tools.apply(r,[])))):tools.apply(r,[])}else tools.apply(r,[])}else tools.apply(r,[])},expandCollapseParentNode:function(e,t,n,o,r){t&&(t.parentTId?(view.expandCollapseNode(e,t,n,o),t.parentTId&&view.expandCollapseParentNode(e,t.getParentNode(),n,o,r)):view.expandCollapseNode(e,t,n,o,r))},expandCollapseSonNode:function(e,t,n,o,r){var i=data.getRoot(e),a=t?data.nodeChildren(e,t):data.nodeChildren(e,i),s=!t&&o,l=data.getRoot(e).expandTriggerFlag;if(data.getRoot(e).expandTriggerFlag=!1,a)for(var d=0,c=a.length;d<c;d++)a[d]&&view.expandCollapseSonNode(e,a[d],n,s);data.getRoot(e).expandTriggerFlag=l,view.expandCollapseNode(e,t,n,o,r)},isSelectedNode:function(e,t){if(!t)return!1;var n,o=data.getRoot(e).curSelectedList;for(n=o.length-1;n>=0;n--)if(t===o[n])return!0;return!1},makeDOMNodeIcon:function(e,t,n){var o=data.nodeName(t,n),r=t.view.nameIsHTML?o:o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.push("<span id='",n.tId,consts.id.ICON,"' title='' treeNode",consts.id.ICON," class='",view.makeNodeIcoClass(t,n),"' style='",view.makeNodeIcoStyle(t,n),"'></span><span id='",n.tId,consts.id.SPAN,"' class='",consts.className.NAME,"'>",r,"</span>")},makeDOMNodeLine:function(e,t,n){e.push("<span id='",n.tId,consts.id.SWITCH,"' title='' class='",view.makeNodeLineClass(t,n),"' treeNode",consts.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(e,t,n){e.push("</li>")},makeDOMNodeMainBefore:function(e,t,n){e.push("<li id='",n.tId,"' class='",consts.className.LEVEL,n.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(e,t,n){e.push("</a>")},makeDOMNodeNameBefore:function(e,t,n){var o=data.nodeTitle(t,n),r=view.makeNodeUrl(t,n),i=view.makeNodeFontCss(t,n),a=view.makeNodeClasses(t,n),s=[];for(var l in i)s.push(l,":",i[l],";");e.push("<a id='",n.tId,consts.id.A,"' class='",consts.className.LEVEL,n.level,a.add?" "+a.add.join(" "):"","' treeNode",consts.id.A,n.click?' onclick="'+n.click+'"':"",null!=r&&r.length>0?" href='"+r+"'":""," target='",view.makeNodeTarget(n),"' style='",s.join(""),"'"),tools.apply(t.view.showTitle,[t.treeId,n],t.view.showTitle)&&o&&e.push("title='",o.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'"),e.push(">")},makeNodeFontCss:function(e,t){var n=tools.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return n&&"function"!=typeof n?n:{}},makeNodeClasses:function(e,t){var n=tools.apply(e.view.nodeClasses,[e.treeId,t],e.view.nodeClasses);return n&&"function"!==typeof n?n:{add:[],remove:[]}},makeNodeIcoClass:function(e,t){var n=["ico"];if(!t.isAjaxing){var o=data.nodeIsParent(e,t);n[0]=(t.iconSkin?t.iconSkin+"_":"")+n[0],o?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU)}return consts.className.BUTTON+" "+n.join("_")},makeNodeIcoStyle:function(e,t){var n=[];if(!t.isAjaxing){var o=data.nodeIsParent(e,t),r=o&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.iconClose:t[e.data.key.icon];r&&n.push("background:url(",r,") 0 0 no-repeat;"),0!=e.view.showIcon&&tools.apply(e.view.showIcon,[e.treeId,t],!0)||n.push("display:none;")}return n.join("")},makeNodeLineClass:function(e,t){var n=[];return e.view.showLine?0==t.level&&t.isFirstNode&&t.isLastNode?n.push(consts.line.ROOT):0==t.level&&t.isFirstNode?n.push(consts.line.ROOTS):t.isLastNode?n.push(consts.line.BOTTOM):n.push(consts.line.CENTER):n.push(consts.line.NOLINE),data.nodeIsParent(e,t)?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU),view.makeNodeLineClassEx(t)+n.join("_")},makeNodeLineClassEx:function(e){return consts.className.BUTTON+" "+consts.className.LEVEL+e.level+" "+consts.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){var n=e.data.key.url;return t[n]?t[n]:null},makeUlHtml:function(e,t,n,o){n.push("<ul id='",t.tId,consts.id.UL,"' class='",consts.className.LEVEL,t.level," ",view.makeUlLineClass(e,t),"' style='display:",t.open?"block":"none","'>"),n.push(o),n.push("</ul>")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?consts.line.LINE:""},removeChildNodes:function(e,t){if(t){var n=data.nodeChildren(e,t);if(n){for(var o=0,r=n.length;o<r;o++)data.removeNodeCache(e,n[o]);if(data.removeSelectedNode(e),delete t[e.data.key.children],e.data.keep.parent)$$(t,consts.id.UL,e).empty();else{data.nodeIsParent(e,t,!1),t.open=!1;var i=$$(t,consts.id.SWITCH,e),a=$$(t,consts.id.ICON,e);view.replaceSwitchClass(t,i,consts.folder.DOCU),view.replaceIcoClass(t,a,consts.folder.DOCU),$$(t,consts.id.UL,e).remove()}}}},scrollIntoView:function(e,t){if(t)if("undefined"!==typeof Element&&"undefined"!==typeof HTMLElement)Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){"use strict";function t(e,t){return{start:e,length:t,end:e+t}}function n(t,n){return!1===e||n.start<t.end&&t.start<n.end?Math.max(t.end-n.length,Math.min(n.start,t.start)):(t.start+t.end-n.length)/2}function o(e,t){return{x:e,y:t,translate:function(n,r){return o(e+n,t+r)}}}function r(e,t){while(e)t=t.translate(e.offsetLeft,e.offsetTop),e=e.offsetParent;return t}var i,a=r(this,o(0,0)),s=o(this.offsetWidth,this.offsetHeight),l=this.parentNode;while(l instanceof HTMLElement)i=r(l,o(l.clientLeft,l.clientTop)),l.scrollLeft=n(t(a.x-i.x,s.x),t(l.scrollLeft,l.clientWidth)),l.scrollTop=n(t(a.y-i.y,s.y),t(l.scrollTop,l.clientHeight)),a=a.translate(-l.scrollLeft,-l.scrollTop),l=l.parentNode}),t.scrollIntoViewIfNeeded();else{var n=e.treeObj.get(0).getBoundingClientRect(),o=t.getBoundingClientRect();(o.top<n.top||o.bottom>n.bottom||o.right>n.right||o.left<n.left)&&t.scrollIntoView()}},setFirstNode:function(e,t){var n=data.nodeChildren(e,t);n.length>0&&(n[0].isFirstNode=!0)},setLastNode:function(e,t){var n=data.nodeChildren(e,t);n.length>0&&(n[n.length-1].isLastNode=!0)},removeNode:function(e,t){var n=data.getRoot(e),o=t.parentTId?t.getParentNode():n;if(t.isFirstNode=!1,t.isLastNode=!1,t.getPreNode=function(){return null},t.getNextNode=function(){return null},data.getNodeCache(e,t.tId)){$$(t,e).remove(),data.removeNodeCache(e,t),data.removeSelectedNode(e,t);for(var r=data.nodeChildren(e,o),i=0,a=r.length;i<a;i++)if(r[i].tId==t.tId){r.splice(i,1);break}view.setFirstNode(e,o),view.setLastNode(e,o);var s,l,d,c=r.length;if(e.data.keep.parent||0!=c){if(e.view.showLine&&c>0){var u=r[c-1];if(s=$$(u,consts.id.UL,e),l=$$(u,consts.id.SWITCH,e),d=$$(u,consts.id.ICON,e),o==n)if(1==r.length)view.replaceSwitchClass(u,l,consts.line.ROOT);else{var f=$$(r[0],consts.id.SWITCH,e);view.replaceSwitchClass(r[0],f,consts.line.ROOTS),view.replaceSwitchClass(u,l,consts.line.BOTTOM)}else view.replaceSwitchClass(u,l,consts.line.BOTTOM);s.removeClass(consts.line.LINE)}}else data.nodeIsParent(e,o,!1),o.open=!1,delete o[e.data.key.children],s=$$(o,consts.id.UL,e),l=$$(o,consts.id.SWITCH,e),d=$$(o,consts.id.ICON,e),view.replaceSwitchClass(o,l,consts.folder.DOCU),view.replaceIcoClass(o,d,consts.folder.DOCU),s.css("display","none")}},replaceIcoClass:function(e,t,n){if(t&&!e.isAjaxing){var o=t.attr("class");if(void 0!=o){var r=o.split("_");switch(n){case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:r[r.length-1]=n;break}t.attr("class",r.join("_"))}}},replaceSwitchClass:function(e,t,n){if(t){var o=t.attr("class");if(void 0!=o){var r=o.split("_");switch(n){case consts.line.ROOT:case consts.line.ROOTS:case consts.line.CENTER:case consts.line.BOTTOM:case consts.line.NOLINE:r[0]=view.makeNodeLineClassEx(e)+n;break;case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:r[1]=n;break}t.attr("class",r.join("_")),n!==consts.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")}}},selectNode:function(e,t,n){n||view.cancelPreSelectedNode(e,null,t),$$(t,consts.id.A,e).addClass(consts.node.CURSELECTED),data.addSelectedNode(e,t),e.treeObj.trigger(consts.event.SELECTED,[e.treeId,t])},setNodeFontCss:function(e,t){var n=$$(t,consts.id.A,e),o=view.makeNodeFontCss(e,t);o&&n.css(o)},setNodeClasses:function(e,t){var n=$$(t,consts.id.A,e),o=view.makeNodeClasses(e,t);"add"in o&&o.add.length&&n.addClass(o.add.join(" ")),"remove"in o&&o.remove.length&&n.removeClass(o.remove.join(" "))},setNodeLineIcos:function(e,t){if(t){var n=$$(t,consts.id.SWITCH,e),o=$$(t,consts.id.UL,e),r=$$(t,consts.id.ICON,e),i=view.makeUlLineClass(e,t);0==i.length?o.removeClass(consts.line.LINE):o.addClass(i),n.attr("class",view.makeNodeLineClass(e,t)),data.nodeIsParent(e,t)?n.removeAttr("disabled"):n.attr("disabled","disabled"),r.removeAttr("style"),r.attr("style",view.makeNodeIcoStyle(e,t)),r.attr("class",view.makeNodeIcoClass(e,t))}},setNodeName:function(e,t){var n=data.nodeTitle(e,t),o=$$(t,consts.id.SPAN,e);if(o.empty(),e.view.nameIsHTML?o.html(data.nodeName(e,t)):o.text(data.nodeName(e,t)),tools.apply(e.view.showTitle,[e.treeId,t],e.view.showTitle)){var r=$$(t,consts.id.A,e);r.attr("title",n||"")}},setNodeTarget:function(e,t){var n=$$(t,consts.id.A,e);n.attr("target",view.makeNodeTarget(t))},setNodeUrl:function(e,t){var n=$$(t,consts.id.A,e),o=view.makeNodeUrl(e,t);null==o||0==o.length?n.removeAttr("href"):n.attr("href",o)},switchNode:function(e,t){if(t.open||!tools.canAsync(e,t))view.expandCollapseNode(e,t,!t.open);else if(e.async.enable){if(!view.asyncNode(e,t))return void view.expandCollapseNode(e,t,!t.open)}else t&&view.expandCollapseNode(e,t,!t.open)}};$.fn.zTree={consts:_consts,_z:{tools:tools,view:view,event:event,data:data},getZTreeObj:function(e){var t=data.getZTreeTools(e);return t||null},destroy:function(e){if(e&&e.length>0)view.destroy(data.getSetting(e));else for(var t in settings)view.destroy(settings[t])},init:function(e,t,n){var o=tools.clone(_setting);$.extend(!0,o,t),o.treeId=e.attr("id"),o.treeObj=e,o.treeObj.empty(),settings[o.treeId]=o,"undefined"===typeof document.body.style.maxHeight&&(o.view.expandSpeed=""),data.initRoot(o);var r=data.getRoot(o);n=n?tools.clone(tools.isArray(n)?n:[n]):[],o.data.simpleData.enable?data.nodeChildren(o,r,data.transformTozTreeFormat(o,n)):data.nodeChildren(o,r,n),data.initCache(o),event.unbindTree(o),event.bindTree(o),event.unbindEvent(o),event.bindEvent(o);var i={setting:o,addNodes:function(e,t,n,r){e||(e=null);var i=data.nodeIsParent(o,e);if(e&&!i&&o.data.keep.leaf)return null;var a=parseInt(t,10);if(isNaN(a)?(r=!!n,n=t,t=-1):t=a,!n)return null;var s=tools.clone(tools.isArray(n)?n:[n]);function l(){view.addNodes(o,e,t,s,1==r)}return tools.canAsync(o,e)?view.asyncNode(o,e,r,l):l(),s},cancelSelectedNode:function(e){view.cancelPreSelectedNode(o,e)},destroy:function(){view.destroy(o)},expandAll:function(e){return e=!!e,view.expandCollapseSonNode(o,null,e,!0),e},expandNode:function(e,t,n,r,i){return e&&data.nodeIsParent(o,e)?(!0!==t&&!1!==t&&(t=!e.open),i=!!i,i&&t&&0==tools.apply(o.callback.beforeExpand,[o.treeId,e],!0)||i&&!t&&0==tools.apply(o.callback.beforeCollapse,[o.treeId,e],!0)?null:(t&&e.parentTId&&view.expandCollapseParentNode(o,e.getParentNode(),t,!1),t!==e.open||n?(data.getRoot(o).expandTriggerFlag=i,!tools.canAsync(o,e)&&n?view.expandCollapseSonNode(o,e,t,!0,a):(e.open=!t,view.switchNode(this.setting,e),a()),t):null)):null;function a(){var t=$$(e,consts.id.A,o).get(0);t&&!1!==r&&view.scrollIntoView(o,t)}},getNodes:function(){return data.getNodes(o)},getNodeByParam:function(e,t,n){return e?data.getNodeByParam(o,n?data.nodeChildren(o,n):data.getNodes(o),e,t):null},getNodeByTId:function(e){return data.getNodeCache(o,e)},getNodesByParam:function(e,t,n){return e?data.getNodesByParam(o,n?data.nodeChildren(o,n):data.getNodes(o),e,t):null},getNodesByParamFuzzy:function(e,t,n){return e?data.getNodesByParamFuzzy(o,n?data.nodeChildren(o,n):data.getNodes(o),e,t):null},getNodesByFilter:function(e,t,n,r){return t=!!t,e&&"function"==typeof e?data.getNodesByFilter(o,n?data.nodeChildren(o,n):data.getNodes(o),e,t,r):t?null:[]},getNodeIndex:function(e){if(!e)return null;for(var t=e.parentTId?e.getParentNode():data.getRoot(o),n=data.nodeChildren(o,t),r=0,i=n.length;r<i;r++)if(n[r]==e)return r;return-1},getSelectedNodes:function(){for(var e=[],t=data.getRoot(o).curSelectedList,n=0,r=t.length;n<r;n++)e.push(t[n]);return e},isSelectedNode:function(e){return data.isSelectedNode(o,e)},reAsyncChildNodesPromise:function(e,t,n){var o=new Promise((function(o,r){try{i.reAsyncChildNodes(e,t,n,(function(){o(e)}))}catch(a){r(a)}}));return o},reAsyncChildNodes:function(e,t,n,r){if(this.setting.async.enable){var i=!e;if(i&&(e=data.getRoot(o)),"refresh"==t){for(var a=data.nodeChildren(o,e),s=0,l=a?a.length:0;s<l;s++)data.removeNodeCache(o,a[s]);if(data.removeSelectedNode(o),data.nodeChildren(o,e,[]),i)this.setting.treeObj.empty();else{var d=$$(e,consts.id.UL,o);d.empty()}}view.asyncNode(this.setting,i?null:e,!!n,r)}},refresh:function(){this.setting.treeObj.empty();var e=data.getRoot(o),t=data.nodeChildren(o,e);data.initRoot(o),data.nodeChildren(o,e,t),data.initCache(o),view.createNodes(o,0,data.nodeChildren(o,e),null,-1)},removeChildNodes:function(e){if(!e)return null;var t=data.nodeChildren(o,e);return view.removeChildNodes(o,e),t||null},removeNode:function(e,t){e&&(t=!!t,t&&0==tools.apply(o.callback.beforeRemove,[o.treeId,e],!0)||(view.removeNode(o,e),t&&this.setting.treeObj.trigger(consts.event.REMOVE,[o.treeId,e])))},selectNode:function(e,t,n){if(e&&tools.uCanDo(o)){if(t=o.view.selectedMulti&&t,e.parentTId)view.expandCollapseParentNode(o,e.getParentNode(),!0,!1,r);else if(!n)try{$$(e,o).focus().blur()}catch(i){}view.selectNode(o,e,t)}function r(){if(!n){var t=$$(e,o).get(0);view.scrollIntoView(o,t)}}},transformTozTreeNodes:function(e){return data.transformTozTreeFormat(o,e)},transformToArray:function(e){return data.transformToArrayFormat(o,e)},updateNode:function(e,t){if(e){var n=$$(e,o);n.get(0)&&tools.uCanDo(o)&&(view.setNodeName(o,e),view.setNodeTarget(o,e),view.setNodeUrl(o,e),view.setNodeLineIcos(o,e),view.setNodeFontCss(o,e),view.setNodeClasses(o,e))}}};r.treeTools=i,data.setZTreeTools(o,i);var a=data.nodeChildren(o,r);return a&&a.length>0?view.createNodes(o,0,a,null,-1):o.async.enable&&o.async.url&&""!==o.async.url&&view.asyncNode(o),i}};var zt=$.fn.zTree,$$=tools.$,consts=zt.consts})(jQuery),function(e){var t={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},n={check:{enable:!1,autoCheckTrigger:!1,chkStyle:t.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:t.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}},o=function(e){var t=N.getRoot(e);t.radioCheckedList=[]},r=function(e){},i=function(e){var t=e.treeObj,n=b.event;t.bind(n.CHECK,(function(t,n,o,r){t.srcEvent=n,y.apply(e.callback.onCheck,[t,o,r])}))},a=function(e){var t=e.treeObj,n=b.event;t.unbind(n.CHECK)},s=function(e){var t=e.target,n=N.getSetting(e.data.treeId),o="",r=null,i="",a="",s=null,l=null;if(y.eqs(e.type,"mouseover")?n.check.enable&&y.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+b.id.CHECK)&&(o=y.getNodeMainDom(t).id,i="mouseoverCheck"):y.eqs(e.type,"mouseout")?n.check.enable&&y.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+b.id.CHECK)&&(o=y.getNodeMainDom(t).id,i="mouseoutCheck"):y.eqs(e.type,"click")&&n.check.enable&&y.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+b.id.CHECK)&&(o=y.getNodeMainDom(t).id,i="checkNode"),o.length>0)switch(r=N.getNodeCache(n,o),i){case"checkNode":s=p.onCheckNode;break;case"mouseoverCheck":s=p.onMouseoverCheck;break;case"mouseoutCheck":s=p.onMouseoutCheck;break}var d={stop:"checkNode"===i,node:r,nodeEventType:i,nodeEventCallback:s,treeEventType:a,treeEventCallback:l};return d},l=function(e,t,n,o,r,i,a){if(n){var s=N.nodeChecked(e,n);if(n.checkedOld=s,"string"==typeof n.nocheck&&(n.nocheck=y.eqs(n.nocheck,"true")),n.nocheck=!!n.nocheck||e.check.nocheckInherit&&o&&!!o.nocheck,"string"==typeof n.chkDisabled&&(n.chkDisabled=y.eqs(n.chkDisabled,"true")),n.chkDisabled=!!n.chkDisabled||e.check.chkDisabledInherit&&o&&!!o.chkDisabled,"string"==typeof n.halfCheck&&(n.halfCheck=y.eqs(n.halfCheck,"true")),n.halfCheck=!!n.halfCheck,n.check_Child_State=-1,n.check_Focus=!1,n.getCheckStatus=function(){return N.getCheckStatus(e,n)},e.check.chkStyle==b.radio.STYLE&&e.check.radioType==b.radio.TYPE_ALL&&s){var l=N.getRoot(e);l.radioCheckedList.push(n)}}},d=function(e,t,n){e.check.enable&&(N.makeChkFlag(e,t),n.push("<span ID='",t.tId,b.id.CHECK,"' class='",C.makeChkClass(e,t),"' treeNode",b.id.CHECK,!0===t.nocheck?" style='display:none;'":"","></span>"))},c=function(e,t){t.checkNode=function(t,n,o,r){var i=N.nodeChecked(e,t);if(!0!==t.chkDisabled&&(!0!==n&&!1!==n&&(n=!i),r=!!r,(i!==n||o)&&(!r||0!=y.apply(this.setting.callback.beforeCheck,[this.setting.treeId,t],!0))&&y.uCanDo(this.setting)&&this.setting.check.enable&&!0!==t.nocheck)){N.nodeChecked(e,t,n);var a=k(t,b.id.CHECK,this.setting);(o||this.setting.check.chkStyle===b.radio.STYLE)&&C.checkNodeRelation(this.setting,t),C.setChkClass(this.setting,a,t),C.repairParentChkClassWithSelf(this.setting,t),r&&this.setting.treeObj.trigger(b.event.CHECK,[null,this.setting.treeId,t])}},t.checkAllNodes=function(e){C.repairAllChk(this.setting,!!e)},t.getCheckedNodes=function(t){t=!1!==t;var n=N.nodeChildren(e,N.getRoot(this.setting));return N.getTreeCheckedNodes(this.setting,n,t)},t.getChangeCheckedNodes=function(){var t=N.nodeChildren(e,N.getRoot(this.setting));return N.getTreeChangeCheckedNodes(this.setting,t)},t.setChkDisabled=function(e,t,n,o){t=!!t,n=!!n,o=!!o,C.repairSonChkDisabled(this.setting,e,t,o),C.repairParentChkDisabled(this.setting,e.getParentNode(),t,n)};var n=t.updateNode;t.updateNode=function(e,o){if(n&&n.apply(t,arguments),e&&this.setting.check.enable){var r=k(e,this.setting);if(r.get(0)&&y.uCanDo(this.setting)){var i=k(e,b.id.CHECK,this.setting);1!=o&&this.setting.check.chkStyle!==b.radio.STYLE||C.checkNodeRelation(this.setting,e),C.setChkClass(this.setting,i,e),C.repairParentChkClassWithSelf(this.setting,e)}}}},u={getRadioCheckedList:function(e){for(var t=N.getRoot(e).radioCheckedList,n=0,o=t.length;n<o;n++)N.getNodeCache(e,t[n].tId)||(t.splice(n,1),n--,o--);return t},getCheckStatus:function(e,t){if(!e.check.enable||t.nocheck||t.chkDisabled)return null;var n=N.nodeChecked(e,t),o={checked:n,half:t.halfCheck?t.halfCheck:e.check.chkStyle==b.radio.STYLE?2===t.check_Child_State:n?t.check_Child_State>-1&&t.check_Child_State<2:t.check_Child_State>0};return o},getTreeCheckedNodes:function(e,t,n,o){if(!t)return[];var r=n&&e.check.chkStyle==b.radio.STYLE&&e.check.radioType==b.radio.TYPE_ALL;o=o||[];for(var i=0,a=t.length;i<a;i++){var s=t[i],l=N.nodeChildren(e,s),d=N.nodeChecked(e,s);if(!0!==s.nocheck&&!0!==s.chkDisabled&&d==n&&(o.push(s),r))break;if(N.getTreeCheckedNodes(e,l,n,o),r&&o.length>0)break}return o},getTreeChangeCheckedNodes:function(e,t,n){if(!t)return[];n=n||[];for(var o=0,r=t.length;o<r;o++){var i=t[o],a=N.nodeChildren(e,i),s=N.nodeChecked(e,i);!0!==i.nocheck&&!0!==i.chkDisabled&&s!=i.checkedOld&&n.push(i),N.getTreeChangeCheckedNodes(e,a,n)}return n},makeChkFlag:function(e,t){if(t){var n=-1,o=N.nodeChildren(e,t);if(o)for(var r=0,i=o.length;r<i;r++){var a=o[r],s=N.nodeChecked(e,a),l=-1;if(e.check.chkStyle==b.radio.STYLE){if(l=!0===a.nocheck||!0===a.chkDisabled?a.check_Child_State:!0===a.halfCheck||s||a.check_Child_State>0?2:0,2==l){n=2;break}0==l&&(n=0)}else if(e.check.chkStyle==b.checkbox.STYLE){if(l=!0===a.nocheck||!0===a.chkDisabled?a.check_Child_State:!0===a.halfCheck?1:s?-1===a.check_Child_State||2===a.check_Child_State?2:1:a.check_Child_State>0?1:0,1===l){n=1;break}if(2===l&&n>-1&&r>0&&l!==n){n=1;break}if(2===n&&l>-1&&l<2){n=1;break}l>-1&&(n=l)}}t.check_Child_State=n}}},f={},p={onCheckNode:function(e,t){if(!0===t.chkDisabled)return!1;var n=N.getSetting(e.data.treeId);if(0==y.apply(n.callback.beforeCheck,[n.treeId,t],!0))return!0;var o=N.nodeChecked(n,t);N.nodeChecked(n,t,!o),C.checkNodeRelation(n,t);var r=k(t,b.id.CHECK,n);return C.setChkClass(n,r,t),C.repairParentChkClassWithSelf(n,t),n.treeObj.trigger(b.event.CHECK,[e,n.treeId,t]),!0},onMouseoverCheck:function(e,t){if(!0===t.chkDisabled)return!1;var n=N.getSetting(e.data.treeId),o=k(t,b.id.CHECK,n);return t.check_Focus=!0,C.setChkClass(n,o,t),!0},onMouseoutCheck:function(e,t){if(!0===t.chkDisabled)return!1;var n=N.getSetting(e.data.treeId),o=k(t,b.id.CHECK,n);return t.check_Focus=!1,C.setChkClass(n,o,t),!0}},h={},g={checkNodeRelation:function(e,t){var n,o,r,i=b.radio,a=N.nodeChecked(e,t);if(e.check.chkStyle==i.STYLE){var s=N.getRadioCheckedList(e);if(a)if(e.check.radioType==i.TYPE_ALL){for(o=s.length-1;o>=0;o--){n=s[o];var l=N.nodeChecked(e,n);l&&n!=t&&(N.nodeChecked(e,n,!1),s.splice(o,1),C.setChkClass(e,k(n,b.id.CHECK,e),n),n.parentTId!=t.parentTId&&C.repairParentChkClassWithSelf(e,n))}s.push(t)}else{var d=t.parentTId?t.getParentNode():N.getRoot(e),c=N.nodeChildren(e,d);for(o=0,r=c.length;o<r;o++){n=c[o];l=N.nodeChecked(e,n);l&&n!=t&&(N.nodeChecked(e,n,!1),C.setChkClass(e,k(n,b.id.CHECK,e),n))}}else if(e.check.radioType==i.TYPE_ALL)for(o=0,r=s.length;o<r;o++)if(t==s[o]){s.splice(o,1);break}}else{c=N.nodeChildren(e,t);a&&(!c||0==c.length||e.check.chkboxType.Y.indexOf("s")>-1)&&C.setSonNodeCheckBox(e,t,!0),a||c&&0!=c.length&&!(e.check.chkboxType.N.indexOf("s")>-1)||C.setSonNodeCheckBox(e,t,!1),a&&e.check.chkboxType.Y.indexOf("p")>-1&&C.setParentNodeCheckBox(e,t,!0),!a&&e.check.chkboxType.N.indexOf("p")>-1&&C.setParentNodeCheckBox(e,t,!1)}},makeChkClass:function(e,t){var n=b.checkbox,o=b.radio,r="",i=N.nodeChecked(e,t);r=!0===t.chkDisabled?n.DISABLED:t.halfCheck?n.PART:e.check.chkStyle==o.STYLE?t.check_Child_State<1?n.FULL:n.PART:i?2===t.check_Child_State||-1===t.check_Child_State?n.FULL:n.PART:t.check_Child_State<1?n.FULL:n.PART;var a=e.check.chkStyle+"_"+(i?n.TRUE:n.FALSE)+"_"+r;return a=t.check_Focus&&!0!==t.chkDisabled?a+"_"+n.FOCUS:a,b.className.BUTTON+" "+n.DEFAULT+" "+a},repairAllChk:function(e,t){if(e.check.enable&&e.check.chkStyle===b.checkbox.STYLE)for(var n=N.getRoot(e),o=N.nodeChildren(e,n),r=0,i=o.length;r<i;r++){var a=o[r];!0!==a.nocheck&&!0!==a.chkDisabled&&N.nodeChecked(e,a,t),C.setSonNodeCheckBox(e,a,t)}},repairChkClass:function(e,t){if(t&&(N.makeChkFlag(e,t),!0!==t.nocheck)){var n=k(t,b.id.CHECK,e);C.setChkClass(e,n,t)}},repairParentChkClass:function(e,t){if(t&&t.parentTId){var n=t.getParentNode();C.repairChkClass(e,n),C.repairParentChkClass(e,n)}},repairParentChkClassWithSelf:function(e,t){if(t){var n=N.nodeChildren(e,t);n&&n.length>0?C.repairParentChkClass(e,n[0]):C.repairParentChkClass(e,t)}},repairSonChkDisabled:function(e,t,n,o){if(t){t.chkDisabled!=n&&(t.chkDisabled=n),C.repairChkClass(e,t);var r=N.nodeChildren(e,t);if(r&&o)for(var i=0,a=r.length;i<a;i++){var s=r[i];C.repairSonChkDisabled(e,s,n,o)}}},repairParentChkDisabled:function(e,t,n,o){t&&(t.chkDisabled!=n&&o&&(t.chkDisabled=n),C.repairChkClass(e,t),C.repairParentChkDisabled(e,t.getParentNode(),n,o))},setChkClass:function(e,t,n){t&&(!0===n.nocheck?t.hide():t.show(),t.attr("class",C.makeChkClass(e,n)))},setParentNodeCheckBox:function(e,t,n,o){var r=k(t,b.id.CHECK,e);if(o||(o=t),N.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled&&(N.nodeChecked(e,t,n),C.setChkClass(e,r,t),e.check.autoCheckTrigger&&t!=o&&e.treeObj.trigger(b.event.CHECK,[null,e.treeId,t])),t.parentTId){var i=!0;if(!n)for(var a=N.nodeChildren(e,t.getParentNode()),s=0,l=a.length;s<l;s++){var d=a[s],c=N.nodeChecked(e,d);if(!0!==d.nocheck&&!0!==d.chkDisabled&&c||(!0===d.nocheck||!0===d.chkDisabled)&&d.check_Child_State>0){i=!1;break}}i&&C.setParentNodeCheckBox(e,t.getParentNode(),n,o)}},setSonNodeCheckBox:function(e,t,n,o){if(t){var r=k(t,b.id.CHECK,e);o||(o=t);var i=!1,a=N.nodeChildren(e,t);if(a)for(var s=0,l=a.length;s<l;s++){var d=a[s];C.setSonNodeCheckBox(e,d,n,o),!0===d.chkDisabled&&(i=!0)}t!=N.getRoot(e)&&!0!==t.chkDisabled&&(i&&!0!==t.nocheck&&N.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled?(N.nodeChecked(e,t,n),i||(t.check_Child_State=a&&a.length>0?n?2:0:-1)):t.check_Child_State=-1,C.setChkClass(e,r,t),e.check.autoCheckTrigger&&t!=o&&!0!==t.nocheck&&!0!==t.chkDisabled&&e.treeObj.trigger(b.event.CHECK,[null,e.treeId,t]))}}},v={tools:h,view:g,event:f,data:u};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,v);var m=e.fn.zTree,y=m._z.tools,b=m.consts,C=m._z.view,N=m._z.data,k=(m._z.event,y.$);N.nodeChecked=function(e,t,n){if(!t)return!1;var o=e.data.key.checked;return"undefined"!==typeof n?("string"===typeof n&&(n=y.eqs(n,"true")),n=!!n,t[o]=n):"string"==typeof t[o]?t[o]=y.eqs(t[o],"true"):t[o]=!!t[o],t[o]},N.exSetting(n),N.addInitBind(i),N.addInitUnBind(a),N.addInitCache(r),N.addInitNode(l),N.addInitProxy(s,!0),N.addInitRoot(o),N.addBeforeA(d),N.addZTreeTools(c);var w=C.createNodes;C.createNodes=function(e,t,n,o,r){w&&w.apply(C,arguments),n&&C.repairParentChkClassWithSelf(e,o)};var T=C.removeNode;C.removeNode=function(e,t){var n=t.getParentNode();T&&T.apply(C,arguments),t&&n&&(C.repairChkClass(e,n),C.repairParentChkClass(e,n))};var x=C.appendNodes;C.appendNodes=function(e,t,n,o,r,i,a){var s="";return x&&(s=x.apply(C,arguments)),o&&N.makeChkFlag(e,o),s}}(jQuery),function(e){var t={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},n={edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}},o=function(e){var t=C.getRoot(e),n=C.getRoots();t.curEditNode=null,t.curEditInput=null,t.curHoverNode=null,t.dragFlag=0,t.dragNodeShowBefore=[],t.dragMaskList=new Array,n.showHoverDom=!0},r=function(e){},i=function(e){var t=e.treeObj,n=y.event;t.bind(n.RENAME,(function(t,n,o,r){m.apply(e.callback.onRename,[t,n,o,r])})),t.bind(n.DRAG,(function(t,n,o,r){m.apply(e.callback.onDrag,[n,o,r])})),t.bind(n.DRAGMOVE,(function(t,n,o,r){m.apply(e.callback.onDragMove,[n,o,r])})),t.bind(n.DROP,(function(t,n,o,r,i,a,s){m.apply(e.callback.onDrop,[n,o,r,i,a,s])}))},a=function(e){var t=e.treeObj,n=y.event;t.unbind(n.RENAME),t.unbind(n.DRAG),t.unbind(n.DRAGMOVE),t.unbind(n.DROP)},s=function(e){var t=e.target,n=C.getSetting(e.data.treeId),o=e.relatedTarget,r="",i=null,a="",s="",l=null,d=null,c=null;if(m.eqs(e.type,"mouseover")?(c=m.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+y.id.A}]),c&&(r=m.getNodeMainDom(c).id,a="hoverOverNode")):m.eqs(e.type,"mouseout")?(c=m.getMDom(n,o,[{tagName:"a",attrName:"treeNode"+y.id.A}]),c||(r="remove",a="hoverOutNode")):m.eqs(e.type,"mousedown")&&(c=m.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+y.id.A}]),c&&(r=m.getNodeMainDom(c).id,a="mousedownNode")),r.length>0)switch(i=C.getNodeCache(n,r),a){case"mousedownNode":l=f.onMousedownNode;break;case"hoverOverNode":l=f.onHoverOverNode;break;case"hoverOutNode":l=f.onHoverOutNode;break}var u={stop:!1,node:i,nodeEventType:a,nodeEventCallback:l,treeEventType:s,treeEventCallback:d};return u},l=function(e,t,n,o,r,i,a){n&&(n.isHover=!1,n.editNameFlag=!1)},d=function(e,t){t.cancelEditName=function(e){var t=C.getRoot(this.setting);t.curEditNode&&b.cancelCurEditNode(this.setting,e||null,!0)},t.copyNode=function(t,n,o,r){if(!n)return null;var i=C.nodeIsParent(e,t);if(t&&!i&&this.setting.data.keep.leaf&&o===y.move.TYPE_INNER)return null;var a=this,s=m.clone(n);if(t||(t=null,o=y.move.TYPE_INNER),o==y.move.TYPE_INNER){function l(){b.addNodes(a.setting,t,-1,[s],r)}m.canAsync(this.setting,t)?b.asyncNode(this.setting,t,r,l):l()}else b.addNodes(this.setting,t.parentNode,-1,[s],r),b.moveNode(this.setting,t,s,o,!1,r);return s},t.editName=function(e){e&&e.tId&&e===C.getNodeCache(this.setting,e.tId)&&(e.parentTId&&b.expandCollapseParentNode(this.setting,e.getParentNode(),!0),b.editNode(this.setting,e))},t.moveNode=function(t,n,o,r){if(!n)return n;var i=C.nodeIsParent(e,t);if(t&&!i&&this.setting.data.keep.leaf&&o===y.move.TYPE_INNER)return null;if(t&&(n.parentTId==t.tId&&o==y.move.TYPE_INNER||N(n,this.setting).find("#"+t.tId).length>0))return null;t||(t=null);var a=this;function s(){b.moveNode(a.setting,t,n,o,!1,r)}return m.canAsync(this.setting,t)&&o===y.move.TYPE_INNER?b.asyncNode(this.setting,t,r,s):s(),n},t.setEditable=function(e){return this.setting.edit.enable=e,this.refresh()}},c={setSonNodeLevel:function(e,t,n){if(n){var o=C.nodeChildren(e,n),r=n.level;if(n.level=t?t.level+1:0,b.repairNodeLevelClass(e,n,r),o)for(var i=0,a=o.length;i<a;i++)o[i]&&C.setSonNodeLevel(e,n,o[i])}}},u={},f={onHoverOverNode:function(e,t){var n=C.getSetting(e.data.treeId),o=C.getRoot(n);o.curHoverNode!=t&&f.onHoverOutNode(e),o.curHoverNode=t,b.addHoverDom(n,t)},onHoverOutNode:function(e,t){var n=C.getSetting(e.data.treeId),o=C.getRoot(n);o.curHoverNode&&!C.isSelectedNode(n,o.curHoverNode)&&(b.removeTreeDom(n,o.curHoverNode),o.curHoverNode=null)},onMousedownNode:function(n,o){var r,i,a=C.getSetting(n.data.treeId),s=C.getRoot(a),l=C.getRoots();if(2==n.button||!a.edit.enable||!a.edit.drag.isCopy&&!a.edit.drag.isMove)return!0;var d=n.target,c=C.getRoot(a).curSelectedList,u=[];if(C.isSelectedNode(a,o))for(r=0,i=c.length;r<i;r++){if(c[r].editNameFlag&&m.eqs(d.tagName,"input")&&null!==d.getAttribute("treeNode"+y.id.INPUT))return!0;if(u.push(c[r]),u[0].parentTId!==c[r].parentTId){u=[o];break}}else u=[o];b.editNodeBlur=!0,b.cancelCurEditNode(a);var f,p,h,g,v,k=e(a.treeObj.get(0).ownerDocument),w=e(a.treeObj.get(0).ownerDocument.body),T=!1,x=a,E=a,A=null,I=null,S=null,_=y.move.TYPE_INNER,D=n.clientX,P=n.clientY,L=(new Date).getTime();function O(n){if(0==s.dragFlag&&Math.abs(D-n.clientX)<a.edit.drag.minMoveSize&&Math.abs(P-n.clientY)<a.edit.drag.minMoveSize)return!0;var o,r,i,d,c;if(w.css("cursor","pointer"),0==s.dragFlag){if(0==m.apply(a.callback.beforeDrag,[a.treeId,u],!0))return R(n),!0;for(o=0,r=u.length;o<r;o++)0==o&&(s.dragNodeShowBefore=[]),i=u[o],C.nodeIsParent(a,i)&&i.open?(b.expandCollapseNode(a,i,!i.open),s.dragNodeShowBefore[i.tId]=!0):s.dragNodeShowBefore[i.tId]=!1;s.dragFlag=1,l.showHoverDom=!1,m.showIfameMask(a,!0);var E=!0,O=-1;if(u.length>1){var j=u[0].parentTId?C.nodeChildren(a,u[0].getParentNode()):C.getNodes(a);for(c=[],o=0,r=j.length;o<r;o++)if(void 0!==s.dragNodeShowBefore[j[o].tId]&&(E&&O>-1&&O+1!==o&&(E=!1),c.push(j[o]),O=o),u.length===c.length){u=c;break}}for(E&&(g=u[0].getPreNode(),v=u[u.length-1].getNextNode()),f=N("<ul class='zTreeDragUL'></ul>",a),o=0,r=u.length;o<r;o++)i=u[o],i.editNameFlag=!1,b.selectNode(a,i,o>0),b.removeTreeDom(a,i),o>a.edit.drag.maxShowNodeNum-1||(d=N("<li id='"+i.tId+"_tmp'></li>",a),d.append(N(i,y.id.A,a).clone()),d.css("padding","0"),d.children("#"+i.tId+y.id.A).removeClass(y.node.CURSELECTED),f.append(d),o==a.edit.drag.maxShowNodeNum-1&&(d=N("<li id='"+i.tId+"_moretmp'><a>  ...  </a></li>",a),f.append(d)));f.attr("id",u[0].tId+y.id.UL+"_tmp"),f.addClass(a.treeObj.attr("class")),f.appendTo(w),p=N("<span class='tmpzTreeMove_arrow'></span>",a),p.attr("id","zTreeMove_arrow_tmp"),p.appendTo(w),a.treeObj.trigger(y.event.DRAG,[n,a.treeId,u])}if(1==s.dragFlag){if(h&&p.attr("id")==n.target.id&&S&&n.clientX+k.scrollLeft()+2>e("#"+S+y.id.A,h).offset().left){var M=e("#"+S+y.id.A,h);n.target=M.length>0?M.get(0):n.target}else h&&(h.removeClass(y.node.TMPTARGET_TREE),S&&e("#"+S+y.id.A,h).removeClass(y.node.TMPTARGET_NODE+"_"+y.move.TYPE_PREV).removeClass(y.node.TMPTARGET_NODE+"_"+t.move.TYPE_NEXT).removeClass(y.node.TMPTARGET_NODE+"_"+t.move.TYPE_INNER));h=null,S=null,T=!1,x=a;var z=C.getSettings();for(var H in z)z[H].treeId&&z[H].edit.enable&&z[H].treeId!=a.treeId&&(n.target.id==z[H].treeId||e(n.target).parents("#"+z[H].treeId).length>0)&&(T=!0,x=z[H]);var $=k.scrollTop(),q=k.scrollLeft(),F=x.treeObj.offset(),B=x.treeObj.get(0).scrollHeight,U=x.treeObj.get(0).scrollWidth,Y=n.clientY+$-F.top,W=x.treeObj.height()+F.top-n.clientY-$,K=n.clientX+q-F.left,V=x.treeObj.width()+F.left-n.clientX-q,G=Y<a.edit.drag.borderMax&&Y>a.edit.drag.borderMin,X=W<a.edit.drag.borderMax&&W>a.edit.drag.borderMin,Q=K<a.edit.drag.borderMax&&K>a.edit.drag.borderMin,Z=V<a.edit.drag.borderMax&&V>a.edit.drag.borderMin,J=Y>a.edit.drag.borderMin&&W>a.edit.drag.borderMin&&K>a.edit.drag.borderMin&&V>a.edit.drag.borderMin,ee=G&&x.treeObj.scrollTop()<=0,te=X&&x.treeObj.scrollTop()+x.treeObj.height()+10>=B,ne=Q&&x.treeObj.scrollLeft()<=0,oe=Z&&x.treeObj.scrollLeft()+x.treeObj.width()+10>=U;if(n.target&&m.isChildOrSelf(n.target,x.treeId)){var re=n.target;while(re&&re.tagName&&!m.eqs(re.tagName,"li")&&re.id!=x.treeId)re=re.parentNode;var ie=!0;for(o=0,r=u.length;o<r;o++){if(i=u[o],re.id===i.tId){ie=!1;break}if(N(i,a).find("#"+re.id).length>0){ie=!1;break}}ie&&n.target&&m.isChildOrSelf(n.target,re.id+y.id.A)&&(h=e(re),S=re.id)}i=u[0],J&&m.isChildOrSelf(n.target,x.treeId)&&(!h&&(n.target.id==x.treeId||ee||te||ne||oe)&&(T||!T&&i.parentTId)&&(h=x.treeObj),G?x.treeObj.scrollTop(x.treeObj.scrollTop()-10):X&&x.treeObj.scrollTop(x.treeObj.scrollTop()+10),Q?x.treeObj.scrollLeft(x.treeObj.scrollLeft()-10):Z&&x.treeObj.scrollLeft(x.treeObj.scrollLeft()+10),h&&h!=x.treeObj&&h.offset().left<x.treeObj.offset().left&&x.treeObj.scrollLeft(x.treeObj.scrollLeft()+h.offset().left-x.treeObj.offset().left)),f.css({top:n.clientY+$+3+"px",left:n.clientX+q+3+"px"});var ae=0,se=0;if(h&&h.attr("id")!=x.treeId){var le=null==S?null:C.getNodeCache(x,S),de=(n.ctrlKey||n.metaKey)&&a.edit.drag.isMove&&a.edit.drag.isCopy||!a.edit.drag.isMove&&a.edit.drag.isCopy,ce=!(!g||S!==g.tId),ue=!(!v||S!==v.tId),fe=i.parentTId&&i.parentTId==S,pe=(de||!ue)&&m.apply(x.edit.drag.prev,[x.treeId,u,le],!!x.edit.drag.prev),he=(de||!ce)&&m.apply(x.edit.drag.next,[x.treeId,u,le],!!x.edit.drag.next),ge=(de||!fe)&&!(x.data.keep.leaf&&!C.nodeIsParent(a,le))&&m.apply(x.edit.drag.inner,[x.treeId,u,le],!!x.edit.drag.inner);function ve(){h=null,S="",_=y.move.TYPE_INNER,p.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null)}if(pe||he||ge){var me=e("#"+S+y.id.A,h),ye=le.isLastNode?null:e("#"+le.getNextNode().tId+y.id.A,h.next()),be=me.offset().top,Ce=me.offset().left,Ne=pe?ge?.25:he?.5:1:-1,ke=he?ge?.75:pe?.5:0:-1,we=(n.clientY+$-be)/me.height();if((1==Ne||we<=Ne&&we>=-.2)&&pe?(ae=1-p.width(),se=be-p.height()/2,_=y.move.TYPE_PREV):(0==ke||we>=ke&&we<=1.2)&&he?(ae=1-p.width(),se=null==ye||C.nodeIsParent(a,le)&&le.open?be+me.height()-p.height()/2:ye.offset().top-p.height()/2,_=y.move.TYPE_NEXT):ge?(ae=5-p.width(),se=be,_=y.move.TYPE_INNER):ve(),h&&(p.css({display:"block",top:se+"px",left:Ce+ae+"px"}),me.addClass(y.node.TMPTARGET_NODE+"_"+_),A==S&&I==_||(L=(new Date).getTime()),le&&C.nodeIsParent(a,le)&&_==y.move.TYPE_INNER)){var Te=!0;window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==le.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===le.tId&&(Te=!1),Te&&(window.zTreeMoveTimer=setTimeout((function(){_==y.move.TYPE_INNER&&le&&C.nodeIsParent(a,le)&&!le.open&&(new Date).getTime()-L>x.edit.drag.autoOpenTime&&m.apply(x.callback.beforeDragOpen,[x.treeId,le],!0)&&(b.switchNode(x,le),x.edit.drag.autoExpandTrigger&&x.treeObj.trigger(y.event.EXPAND,[x.treeId,le]))}),x.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=le.tId)}}else ve()}else _=y.move.TYPE_INNER,h&&m.apply(x.edit.drag.inner,[x.treeId,u,null],!!x.edit.drag.inner)?h.addClass(y.node.TMPTARGET_TREE):h=null,p.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null);A=S,I=_,a.treeObj.trigger(y.event.DRAGMOVE,[n,a.treeId,u])}return!1}function R(n){if(window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null),A=null,I=null,k.unbind("mousemove",O),k.unbind("mouseup",R),k.unbind("selectstart",j),w.css("cursor",""),h&&(h.removeClass(y.node.TMPTARGET_TREE),S&&e("#"+S+y.id.A,h).removeClass(y.node.TMPTARGET_NODE+"_"+y.move.TYPE_PREV).removeClass(y.node.TMPTARGET_NODE+"_"+t.move.TYPE_NEXT).removeClass(y.node.TMPTARGET_NODE+"_"+t.move.TYPE_INNER)),m.showIfameMask(a,!1),l.showHoverDom=!0,0!=s.dragFlag){var o,r,i;for(s.dragFlag=0,o=0,r=u.length;o<r;o++)i=u[o],C.nodeIsParent(a,i)&&s.dragNodeShowBefore[i.tId]&&!i.open&&(b.expandCollapseNode(a,i,!i.open),delete s.dragNodeShowBefore[i.tId]);f&&f.remove(),p&&p.remove();var d=(n.ctrlKey||n.metaKey)&&a.edit.drag.isMove&&a.edit.drag.isCopy||!a.edit.drag.isMove&&a.edit.drag.isCopy;if(!d&&h&&S&&u[0].parentTId&&S==u[0].parentTId&&_==y.move.TYPE_INNER&&(h=null),h){var c=null==S?null:C.getNodeCache(x,S);if(0==m.apply(a.callback.beforeDrop,[x.treeId,u,c,_,d],!0))return void b.selectNodes(E,u);var g=d?m.clone(u):u;function v(){if(T){if(!d)for(var e=0,t=u.length;e<t;e++)b.removeNode(a,u[e]);_==y.move.TYPE_INNER?b.addNodes(x,c,-1,g):b.addNodes(x,c.getParentNode(),_==y.move.TYPE_PREV?c.getIndex():c.getIndex()+1,g)}else if(d&&_==y.move.TYPE_INNER)b.addNodes(x,c,-1,g);else if(d)b.addNodes(x,c.getParentNode(),_==y.move.TYPE_PREV?c.getIndex():c.getIndex()+1,g);else if(_!=y.move.TYPE_NEXT)for(e=0,t=g.length;e<t;e++)b.moveNode(x,c,g[e],_,!1);else for(e=-1,t=g.length-1;e<t;t--)b.moveNode(x,c,g[t],_,!1);b.selectNodes(x,g);var o=N(g[0],a).get(0);b.scrollIntoView(a,o),a.treeObj.trigger(y.event.DROP,[n,x.treeId,g,c,_,d])}_==y.move.TYPE_INNER&&m.canAsync(x,c)?b.asyncNode(x,c,!1,v):v()}else b.selectNodes(E,u),a.treeObj.trigger(y.event.DROP,[n,a.treeId,u,null,null,null])}}function j(){return!1}return m.uCanDo(a)&&k.bind("mousemove",O),k.bind("mouseup",R),k.bind("selectstart",j),!0}},p={getAbs:function(e){var t=e.getBoundingClientRect(),n=document.body.scrollTop+document.documentElement.scrollTop,o=document.body.scrollLeft+document.documentElement.scrollLeft;return[t.left+o,t.top+n]},inputFocus:function(e){e.get(0)&&(e.focus(),m.setCursorPosition(e.get(0),e.val().length))},inputSelect:function(e){e.get(0)&&(e.focus(),e.select())},setCursorPosition:function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},showIfameMask:function(e,t){var n=C.getRoot(e);while(n.dragMaskList.length>0)n.dragMaskList[0].remove(),n.dragMaskList.shift();if(t)for(var o=N("iframe",e),r=0,i=o.length;r<i;r++){var a=o.get(r),s=m.getAbs(a),l=N("<div id='zTreeMask_"+r+"' class='zTreeMask' style='top:"+s[1]+"px; left:"+s[0]+"px; width:"+a.offsetWidth+"px; height:"+a.offsetHeight+"px;'></div>",e);l.appendTo(N("body",e)),n.dragMaskList.push(l)}}},h={addEditBtn:function(e,t){if(!(t.editNameFlag||N(t,y.id.EDIT,e).length>0)&&m.apply(e.edit.showRenameBtn,[e.treeId,t],e.edit.showRenameBtn)){var n=N(t,y.id.A,e),o="<span class='"+y.className.BUTTON+" edit' id='"+t.tId+y.id.EDIT+"' title='"+m.apply(e.edit.renameTitle,[e.treeId,t],e.edit.renameTitle)+"' treeNode"+y.id.EDIT+" style='display:none;'></span>";n.append(o),N(t,y.id.EDIT,e).bind("click",(function(){return!(!m.uCanDo(e)||0==m.apply(e.callback.beforeEditName,[e.treeId,t],!0))&&(b.editNode(e,t),!1)})).show()}},addRemoveBtn:function(e,t){if(!(t.editNameFlag||N(t,y.id.REMOVE,e).length>0)&&m.apply(e.edit.showRemoveBtn,[e.treeId,t],e.edit.showRemoveBtn)){var n=N(t,y.id.A,e),o="<span class='"+y.className.BUTTON+" remove' id='"+t.tId+y.id.REMOVE+"' title='"+m.apply(e.edit.removeTitle,[e.treeId,t],e.edit.removeTitle)+"' treeNode"+y.id.REMOVE+" style='display:none;'></span>";n.append(o),N(t,y.id.REMOVE,e).bind("click",(function(){return!(!m.uCanDo(e)||0==m.apply(e.callback.beforeRemove,[e.treeId,t],!0))&&(b.removeNode(e,t),e.treeObj.trigger(y.event.REMOVE,[e.treeId,t]),!1)})).bind("mousedown",(function(e){return!0})).show()}},addHoverDom:function(e,t){C.getRoots().showHoverDom&&(t.isHover=!0,e.edit.enable&&(b.addEditBtn(e,t),b.addRemoveBtn(e,t)),m.apply(e.view.addHoverDom,[e.treeId,t]))},cancelCurEditNode:function(e,t,n){var o=C.getRoot(e),r=o.curEditNode;if(r){var i=o.curEditInput,a=t||(n?C.nodeName(e,r):i.val());if(!1===m.apply(e.callback.beforeRename,[e.treeId,r,a,n],!0))return!1;C.nodeName(e,r,a);var s=N(r,y.id.A,e);s.removeClass(y.node.CURSELECTED_EDIT),i.unbind(),b.setNodeName(e,r),r.editNameFlag=!1,o.curEditNode=null,o.curEditInput=null,b.selectNode(e,r,!1),e.treeObj.trigger(y.event.RENAME,[e.treeId,r,n])}return o.noSelection=!0,!0},editNode:function(e,t){var n=C.getRoot(e);if(b.editNodeBlur=!1,C.isSelectedNode(e,t)&&n.curEditNode==t&&t.editNameFlag)setTimeout((function(){m.inputFocus(n.curEditInput)}),0);else{t.editNameFlag=!0,b.removeTreeDom(e,t),b.cancelCurEditNode(e),b.selectNode(e,t,!1),N(t,y.id.SPAN,e).html("<input type=text class='rename' id='"+t.tId+y.id.INPUT+"' treeNode"+y.id.INPUT+" >");var o=N(t,y.id.INPUT,e);o.attr("value",C.nodeName(e,t)),e.edit.editNameSelectAll?m.inputSelect(o):m.inputFocus(o),o.bind("blur",(function(t){b.editNodeBlur||b.cancelCurEditNode(e)})).bind("keydown",(function(t){"13"==t.keyCode?(b.editNodeBlur=!0,b.cancelCurEditNode(e)):"27"==t.keyCode&&b.cancelCurEditNode(e,null,!0)})).bind("click",(function(e){return!1})).bind("dblclick",(function(e){return!1})),N(t,y.id.A,e).addClass(y.node.CURSELECTED_EDIT),n.curEditInput=o,n.noSelection=!1,n.curEditNode=t}},moveNode:function(e,t,n,o,r,i){var a=C.getRoot(e);if(t!=n&&(!e.data.keep.leaf||!t||C.nodeIsParent(e,t)||o!=y.move.TYPE_INNER)){var s=n.parentTId?n.getParentNode():a,l=null===t||t==a;l&&null===t&&(t=a),l&&(o=y.move.TYPE_INNER);var d,c,u=t.parentTId?t.getParentNode():a;if(o!=y.move.TYPE_PREV&&o!=y.move.TYPE_NEXT&&(o=y.move.TYPE_INNER),o==y.move.TYPE_INNER&&(l?n.parentTId=null:(C.nodeIsParent(e,t)||(C.nodeIsParent(e,t,!0),t.open=!!t.open,b.setNodeLineIcos(e,t)),n.parentTId=t.tId)),l)d=e.treeObj,c=d;else{if(i||o!=y.move.TYPE_INNER?i||b.expandCollapseNode(e,t.getParentNode(),!0,!1):b.expandCollapseNode(e,t,!0,!1),d=N(t,e),c=N(t,y.id.UL,e),d.get(0)&&!c.get(0)){var f=[];b.makeUlHtml(e,t,f,""),d.append(f.join(""))}c=N(t,y.id.UL,e)}var p=N(n,e);p.get(0)?d.get(0)||p.remove():p=b.appendNodes(e,n.level,[n],null,-1,!1,!0).join(""),c.get(0)&&o==y.move.TYPE_INNER?c.append(p):d.get(0)&&o==y.move.TYPE_PREV?d.before(p):d.get(0)&&o==y.move.TYPE_NEXT&&d.after(p);var h,g,v=-1,m=0,k=null,w=null,T=n.level,x=C.nodeChildren(e,s),E=C.nodeChildren(e,u),A=C.nodeChildren(e,t);if(n.isFirstNode)v=0,x.length>1&&(k=x[1],k.isFirstNode=!0);else if(n.isLastNode)v=x.length-1,k=x[v-1],k.isLastNode=!0;else for(h=0,g=x.length;h<g;h++)if(x[h].tId==n.tId){v=h;break}if(v>=0&&x.splice(v,1),o!=y.move.TYPE_INNER)for(h=0,g=E.length;h<g;h++)E[h].tId==t.tId&&(m=h);if(o==y.move.TYPE_INNER?(A||(A=C.nodeChildren(e,t,[])),A.length>0&&(w=A[A.length-1],w.isLastNode=!1),A.splice(A.length,0,n),n.isLastNode=!0,n.isFirstNode=1==A.length):t.isFirstNode&&o==y.move.TYPE_PREV?(E.splice(m,0,n),w=t,w.isFirstNode=!1,n.parentTId=t.parentTId,n.isFirstNode=!0,n.isLastNode=!1):t.isLastNode&&o==y.move.TYPE_NEXT?(E.splice(m+1,0,n),w=t,w.isLastNode=!1,n.parentTId=t.parentTId,n.isFirstNode=!1,n.isLastNode=!0):(o==y.move.TYPE_PREV?E.splice(m,0,n):E.splice(m+1,0,n),n.parentTId=t.parentTId,n.isFirstNode=!1,n.isLastNode=!1),C.fixPIdKeyValue(e,n),C.setSonNodeLevel(e,n.getParentNode(),n),b.setNodeLineIcos(e,n),b.repairNodeLevelClass(e,n,T),!e.data.keep.parent&&x.length<1){C.nodeIsParent(e,s,!1),s.open=!1;var I=N(s,y.id.UL,e),S=N(s,y.id.SWITCH,e),_=N(s,y.id.ICON,e);b.replaceSwitchClass(s,S,y.folder.DOCU),b.replaceIcoClass(s,_,y.folder.DOCU),I.css("display","none")}else k&&b.setNodeLineIcos(e,k);w&&b.setNodeLineIcos(e,w),e.check&&e.check.enable&&b.repairChkClass&&(b.repairChkClass(e,s),b.repairParentChkClassWithSelf(e,s),s!=n.parent&&b.repairParentChkClassWithSelf(e,n)),i||b.expandCollapseParentNode(e,n.getParentNode(),!0,r)}},removeEditBtn:function(e,t){N(t,y.id.EDIT,e).unbind().remove()},removeRemoveBtn:function(e,t){N(t,y.id.REMOVE,e).unbind().remove()},removeTreeDom:function(e,t){t.isHover=!1,b.removeEditBtn(e,t),b.removeRemoveBtn(e,t),m.apply(e.view.removeHoverDom,[e.treeId,t])},repairNodeLevelClass:function(e,t,n){if(n!==t.level){var o=N(t,e),r=N(t,y.id.A,e),i=N(t,y.id.UL,e),a=y.className.LEVEL+n,s=y.className.LEVEL+t.level;o.removeClass(a),o.addClass(s),r.removeClass(a),r.addClass(s),i.removeClass(a),i.addClass(s)}},selectNodes:function(e,t){for(var n=0,o=t.length;n<o;n++)b.selectNode(e,t[n],n>0)}},g={tools:p,view:h,event:u,data:c};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,g);var v=e.fn.zTree,m=v._z.tools,y=v.consts,b=v._z.view,C=v._z.data,N=(v._z.event,m.$);C.exSetting(n),C.addInitBind(i),C.addInitUnBind(a),C.addInitCache(r),C.addInitNode(l),C.addInitProxy(s),C.addInitRoot(o),C.addZTreeTools(d);var k=b.cancelPreSelectedNode;b.cancelPreSelectedNode=function(e,t){for(var n=C.getRoot(e).curSelectedList,o=0,r=n.length;o<r;o++)if((!t||t===n[o])&&(b.removeTreeDom(e,n[o]),t))break;k&&k.apply(b,arguments)};var w=b.createNodes;b.createNodes=function(e,t,n,o,r){w&&w.apply(b,arguments),n&&b.repairParentChkClassWithSelf&&b.repairParentChkClassWithSelf(e,o)};var T=b.makeNodeUrl;b.makeNodeUrl=function(e,t){return e.edit.enable?null:T.apply(b,arguments)};var x=b.removeNode;b.removeNode=function(e,t){var n=C.getRoot(e);n.curEditNode===t&&(n.curEditNode=null),x&&x.apply(b,arguments)};var E=b.selectNode;b.selectNode=function(e,t,n){var o=C.getRoot(e);return(!C.isSelectedNode(e,t)||o.curEditNode!=t||!t.editNameFlag)&&(E&&E.apply(b,arguments),b.addHoverDom(e,t),!0)};var A=m.uCanDo;m.uCanDo=function(e,t){var n=C.getRoot(e);return!(!t||!(m.eqs(t.type,"mouseover")||m.eqs(t.type,"mouseout")||m.eqs(t.type,"mousedown")||m.eqs(t.type,"mouseup")))||(n.curEditNode&&(b.editNodeBlur=!1,n.curEditInput.focus()),!n.curEditNode&&(!A||A.apply(b,arguments)))}}(jQuery)},"95eb":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,"ul.ztree.zTreeDragUL{margin:0;padding:0;position:absolute;overflow:hidden;background-color:#dedede;border:1px dotted #4fcbf0;border-radius:4px;opacity:.7}.zTreeMask{position:absolute;z-index:10000;opacity:0;background-color:#cfcfcf}",""]),e.exports=t},ab17:function(e,t,n){var o=n("95eb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var r=n("499e").default;r("6c9c26d5",o,!0,{sourceMap:!1,shadowMode:!1})},bc18:function(e,t,n){var o=n("4e50");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var r=n("499e").default;r("eb0500f2",o,!0,{sourceMap:!1,shadowMode:!1})},fd27:function(e,t,n){"use strict";n("bc18")}}]);
//# sourceMappingURL=chunk-ea71736e.7d678222.js.map