diff --git a/config/plugins/visualizations/hyphyvision/package.json b/config/plugins/visualizations/hyphyvision/package.json index e6df7f06096..c0db1b5ff82 100644 --- a/config/plugins/visualizations/hyphyvision/package.json +++ b/config/plugins/visualizations/hyphyvision/package.json @@ -1,13 +1,11 @@ { "devDependencies": { - "css-loader": "^0.28.11", - "file-loader": "^1.1.11", - "mini-css-extract-plugin": "^0.4.0", - "style-loader": "^0.21.0", - "url-loader": "^1.0.1", - "webpack": "^4.12.0", - "webpack-cli": "^3.0.4", - "webpack-dev-server": "^3.1.4" + "css-loader": "^3.4.2", + "file-loader": "^5.0.2", + "mini-css-extract-plugin": "^0.9.0", + "style-loader": "^1.1.3", + "webpack": "^4.41.6", + "webpack-cli": "^3.3.11" }, "dependencies": { "hyphy-vision": "2.6.3" @@ -17,6 +15,6 @@ "main": "index.js", "license": "MIT", "scripts": { - "build": "webpack --mode=production" + "build": "webpack -p" } } diff --git a/config/plugins/visualizations/hyphyvision/src/index.js b/config/plugins/visualizations/hyphyvision/src/index.js index 5efdb41d163..0a4d072097e 100644 --- a/config/plugins/visualizations/hyphyvision/src/index.js +++ b/config/plugins/visualizations/hyphyvision/src/index.js @@ -1,9 +1,5 @@ -window.jQuery = window.$ = $; -window.d3 = d3; -import "bootstrap/dist/css/bootstrap.css"; -import "font-awesome/css/font-awesome.css"; -const hyphyVision = require("hyphy-vision"); -require("phylotree.css"); -require("hyphy-vision.css"); +import "hyphy-vision/dist/hyphyvision.css" +import "hyphy-vision/dist/hyphyvision.js" + window.renderHyPhyVision = hyphyVision.renderHyPhyVision; -window.render_branch_selection = hyphyVision.render_branch_selection; +window.render_branch_selection = hyphyVision.render_branch_selection; \ No newline at end of file diff --git a/config/plugins/visualizations/hyphyvision/static/bundle.js b/config/plugins/visualizations/hyphyvision/static/bundle.js new file mode 100644 index 00000000000..c91b4c0da2f --- /dev/null +++ b/config/plugins/visualizations/hyphyvision/static/bundle.js @@ -0,0 +1,257 @@ +!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e,n){t.exports=n(31)()},function(t,e,n){"use strict";t.exports=n(13)},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,u],l=0;(s=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(t,e,n){var r=n(52);t.exports=d,t.exports.parse=o,t.exports.compile=function(t,e){return u(o(t,e),e)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,u="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],d=n.index;if(u+=t.slice(a,d),a=d+f.length,h)u+=h[1];else{var p=t[a],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],_=n[7];u&&(r.push(u),u="");var w=null!=g&&null!=p&&p!==g,x="+"===b||"*"===b,E="?"===b||"*"===b,k=n[2]||l,M=v||y;r.push({name:m||o++,prefix:g||"",delimiter:k,optional:E,repeat:x,partial:w,asterisk:!!_,pattern:M?c(M):_?".*":"[^"+s(k)+"]+?"})}}return a0&&e-1 in t)}g.fn=g.prototype={jquery:"1.12.4",constructor:g,selector:"",length:0,toArray:function(){return u.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:u.call(this)},pushStack:function(t){var e=g.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return g.each(this,t)},map:function(t){return this.pushStack(g.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==g.type(t)||t.nodeType||g.isWindow(t))return!1;try{if(t.constructor&&!d.call(t,"constructor")&&!d.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!p.ownFirst)for(e in t)return d.call(t,e);for(e in t);return void 0===e||d.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t},globalEval:function(t){t&&g.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(v,"ms-").replace(y,b)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(_(t))for(n=t.length;r+~]|"+D+")"+D+"*"),G=new RegExp("="+D+"*([^\\]'\"]*?)"+D+"*\\]","g"),W=new RegExp(F),Y=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=/'|\\/g,tt=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),et=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},nt=function(){h()};try{N.apply(T=L.call(w.childNodes),w.childNodes),T[w.childNodes.length].nodeType}catch(t){N={apply:T.length?function(t,e){O.apply(t,L.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function rt(t,e,r,i){var o,u,c,l,f,p,v,y,x=e&&e.ownerDocument,E=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==E&&9!==E&&11!==E)return r;if(!i&&((e?e.ownerDocument||e:w)!==d&&h(e),e=e||d,g)){if(11!==E&&(p=K.exec(t)))if(o=p[1]){if(9===E){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(x&&(c=x.getElementById(o))&&b(e,c)&&c.id===o)return r.push(c),r}else{if(p[2])return N.apply(r,e.getElementsByTagName(t)),r;if((o=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!S[t+" "]&&(!m||!m.test(t))){if(1!==E)x=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((l=e.getAttribute("id"))?l=l.replace(J,"\\$&"):e.setAttribute("id",l=_),u=(v=a(t)).length,f=Y.test(l)?"#"+l:"[id='"+l+"']";u--;)v[u]=f+" "+pt(v[u]);y=v.join(","),x=Q.test(t)&&ht(e.parentNode)||e}if(y)try{return N.apply(r,x.querySelectorAll(y)),r}catch(t){}finally{l===_&&e.removeAttribute("id")}}}return s(t.replace(U,"$1"),e,r,i)}function it(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ot(t){return t[_]=!0,t}function at(t){var e=d.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function st(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function lt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return ot((function(e){return e=+e,ot((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=rt.support={},o=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},h=rt.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!==d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!o(d),(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",nt,!1):i.attachEvent&&i.attachEvent("onunload",nt)),n.attributes=at((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=at((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(d.getElementsByClassName),n.getById=at((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),n.getById?(r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}},r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){return t.getAttribute("id")===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=X.test(d.querySelectorAll))&&(at((function(t){p.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+D+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+D+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+_+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]")})),at((function(t){var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+D+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&at((function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",F)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=X.test(p.compareDocumentPosition),b=e||X.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===d||t.ownerDocument===w&&b(w,t)?-1:e===d||e.ownerDocument===w&&b(w,e)?1:l?P(l,t)-P(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t===d?-1:e===d?1:i?-1:o?1:l?P(l,t)-P(l,e):0;if(i===o)return st(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?st(a[r],u[r]):a[r]===w?-1:u[r]===w?1:0},d):d},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&h(t),e=e.replace(G,"='$1']"),n.matchesSelector&&g&&!S[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return rt(e,d,null,[t]).length>0},rt.contains=function(t,e){return(t.ownerDocument||t)!==d&&h(t),b(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==d&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&C.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(A),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return l=null,t},i=rt.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=rt.selectors={cacheLength:50,createPseudo:ot,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(tt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(tt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(tt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&k(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=rt.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,s){var c,l,f,h,d,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=u&&e.nodeName.toLowerCase(),y=!s&&!u,b=!1;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(u?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(d=(c=(l=(f=(h=m)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=d&&m.childNodes[d];h=++d&&h&&h[g]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){l[t]=[x,d,b];break}}else if(y&&(b=d=(c=(l=(f=(h=e)[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===b)for(;(h=++d&&h&&h[g]||(b=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((l=(f=h[_]||(h[_]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ot((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=P(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ot((function(t){var e=[],n=[],r=u(t.replace(U,"$1"));return r[_]?ot((function(t,e,n,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:ot((function(t){return function(e){return rt(t,e).length>0}})),contains:ot((function(t){return t=t.replace(tt,et),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:ot((function(t){return Y.test(t||"")||rt.error("unsupported lang: "+t),t=t.replace(tt,et).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,n){return[n<0?n+e:n]})),even:ft((function(t,e){for(var n=0;n=0;)t.push(r);return t})),gt:ft((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function vt(t,e,n,r,i){for(var o,a=[],u=0,s=t.length,c=null!=e;u-1&&(o[c]=!(a[c]=f))}}else v=vt(v===a?v.splice(p,v.length):v),i?i(null,a,v,s):N.apply(a,v)}))}function bt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],s=a?1:0,l=gt((function(t){return t===e}),u,!0),f=gt((function(t){return P(e,t)>-1}),u,!0),h=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?l(t,n,r):f(t,n,r));return e=null,i}];s1&&mt(h),s>1&&pt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(U,"$1"),n,s0,i=t.length>0,o=function(o,a,u,s,l){var f,p,m,v=0,y="0",b=o&&[],_=[],w=c,E=o||i&&r.find.TAG("*",l),k=x+=null==w?1:Math.random()||.1,M=E.length;for(l&&(c=a===d||a||l);y!==M&&null!=(f=E[y]);y++){if(i&&f){for(p=0,a||f.ownerDocument===d||(h(f),u=!g);m=t[p++];)if(m(f,a||d,u)){s.push(f);break}l&&(x=k)}n&&((f=!m&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(p=0;m=e[p++];)m(b,_,a,u);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=j.call(s));_=vt(_)}N.apply(s,_),l&&!o&&_.length>0&&v+e.length>1&&rt.uniqueSort(s)}return l&&(x=k,c=w),b};return n?ot(o):o}(o,i))).selector=t}return u},s=rt.select=function(t,e,i,o){var s,c,l,f,h,d="function"==typeof t&&t,p=!o&&a(t=d.selector||t);if(i=i||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&n.getById&&9===e.nodeType&&g&&r.relative[c[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(tt,et),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(s=V.needsContext.test(t)?0:c.length;s--&&(l=c[s],!r.relative[f=l.type]);)if((h=r.find[f])&&(o=h(l.matches[0].replace(tt,et),Q.test(c[0].type)&&ht(e.parentNode)||e))){if(c.splice(s,1),!(t=o.length&&pt(c)))return N.apply(i,o),i;break}}return(d||u(t,p))(o,e,!g,i,!e||Q.test(t)&&ht(e.parentNode)||e),i},n.sortStable=_.split("").sort(A).join("")===_,n.detectDuplicates=!!f,h(),n.sortDetached=at((function(t){return 1&t.compareDocumentPosition(d.createElement("div"))})),at((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&at((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),at((function(t){return null==t.getAttribute("disabled")}))||ut(R,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),rt}(n);g.find=w,g.expr=w.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=w.uniqueSort,g.text=w.getText,g.isXMLDoc=w.isXML,g.contains=w.contains;var x=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&g(t).is(n))break;r.push(t)}return r},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},k=g.expr.match.needsContext,M=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function A(t,e,n){if(g.isFunction(e))return g.grep(t,(function(t,r){return!!e.call(t,r,t)!==n}));if(e.nodeType)return g.grep(t,(function(t){return t===e!==n}));if("string"==typeof e){if(S.test(e))return g.filter(e,t,n);e=g.filter(e,t)}return g.grep(t,(function(t){return g.inArray(t,e)>-1!==n}))}g.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?g.find.matchesSelector(r,t)?[r]:[]:g.find.matches(t,g.grep(e,(function(t){return 1===t.nodeType})))},g.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(g(t).filter((function(){for(e=0;e1?g.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&k.test(t)?g(t):t||[],!1).length}});var C,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||C,"string"==typeof t){if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:T.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof g?e[0]:e,g.merge(this,g.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),M.test(r[1])&&g.isPlainObject(e))for(r in e)g.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}if((i=a.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return C.find(t);this.length=1,this[0]=i}return this.context=a,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):g.isFunction(t)?void 0!==n.ready?n.ready(t):t(g):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),g.makeArray(t,this))}).prototype=g.fn,C=g(a);var j=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}g.fn.extend({has:function(t){var e,n=g(t,this),r=n.length;return this.filter((function(){for(e=0;e-1:1===n.nodeType&&g.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?g.inArray(this[0],g(t)):g.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),g.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return x(t,"parentNode")},parentsUntil:function(t,e,n){return x(t,"parentNode",n)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return x(t,"nextSibling")},prevAll:function(t){return x(t,"previousSibling")},nextUntil:function(t,e,n){return x(t,"nextSibling",n)},prevUntil:function(t,e,n){return x(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return g.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:g.merge([],t.childNodes)}},(function(t,e){g.fn[t]=function(n,r){var i=g.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=g.filter(r,i)),this.length>1&&(O[t]||(i=g.uniqueSort(i)),j.test(t)&&(i=i.reverse())),this.pushStack(i)}}));var L,P,R=/\S+/g;function D(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z)):(a.detachEvent("onreadystatechange",z),n.detachEvent("onload",z))}function z(){(a.addEventListener||"load"===n.event.type||"complete"===a.readyState)&&(D(),g.ready())}for(P in g.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return g.each(t.match(R)||[],(function(t,n){e[n]=!0})),e}(t):g.extend({},t);var e,n,r,i,o=[],a=[],u=-1,s=function(){for(i=t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u-1;)o.splice(n,1),n<=u&&u--})),this},has:function(t){return t?g.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},g.extend({Deferred:function(t){var e=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return g.Deferred((function(n){g.each(e,(function(e,o){var a=g.isFunction(t[e])&&t[e];i[o[1]]((function(){var t=a&&a.apply(this,arguments);t&&g.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?g.extend(t,r):r}},i={};return r.pipe=r.then,g.each(e,(function(t,o){var a=o[2],u=o[3];r[o[1]]=a.add,u&&a.add((function(){n=u}),e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=u.call(arguments),a=o.length,s=1!==a||t&&g.isFunction(t.promise)?a:0,c=1===s?t:g.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?u.call(arguments):i,r===e?c.notifyWith(n,r):--s||c.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(L.resolveWith(a,[g]),g.fn.triggerHandler&&(g(a).triggerHandler("ready"),g(a).off("ready"))))}}),g.ready.promise=function(t){if(!L)if(L=g.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll)n.setTimeout(g.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z);else{a.attachEvent("onreadystatechange",z),n.attachEvent("onload",z);var e=!1;try{e=null==n.frameElement&&a.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!g.isReady){try{e.doScroll("left")}catch(e){return n.setTimeout(t,50)}D(),g.ready()}}()}return L.promise(t)},g.ready.promise(),g(p))break;p.ownFirst="0"===P,p.inlineBlockNeedsLayout=!1,g((function(){var t,e,n,r;(n=a.getElementsByTagName("body")[0])&&n.style&&(e=a.createElement("div"),(r=a.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",p.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))})),function(){var t=a.createElement("div");p.deleteExpando=!0;try{delete t.test}catch(t){p.deleteExpando=!1}t=null}();var I,F=function(t){var e=g.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/([A-Z])/g;function q(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(U,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?g.parseJSON(n):n)}catch(t){}g.data(t,e,n)}else n=void 0}return n}function H(t){var e;for(e in t)if(("data"!==e||!g.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function G(t,e,n,r){if(F(t)){var i,a,u=g.expando,s=t.nodeType,c=s?g.cache:t,l=s?t[u]:t[u]&&u;if(l&&c[l]&&(r||c[l].data)||void 0!==n||"string"!=typeof e)return l||(l=s?t[u]=o.pop()||g.guid++:u),c[l]||(c[l]=s?{}:{toJSON:g.noop}),"object"!=typeof e&&"function"!=typeof e||(r?c[l]=g.extend(c[l],e):c[l].data=g.extend(c[l].data,e)),a=c[l],r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[g.camelCase(e)]=n),"string"==typeof e?null==(i=a[e])&&(i=a[g.camelCase(e)]):i=a,i}}function W(t,e,n){if(F(t)){var r,i,o=t.nodeType,a=o?g.cache:t,u=o?t[g.expando]:g.expando;if(a[u]){if(e&&(r=n?a[u]:a[u].data)){i=(e=g.isArray(e)?e.concat(g.map(e,g.camelCase)):e in r?[e]:(e=g.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!H(r):!g.isEmptyObject(r))return}(n||(delete a[u].data,H(a[u])))&&(o?g.cleanData([t],!0):p.deleteExpando||a!=a.window?delete a[u]:a[u]=void 0)}}}g.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?g.cache[t[g.expando]]:t[g.expando])&&!H(t)},data:function(t,e,n){return G(t,e,n)},removeData:function(t,e){return W(t,e)},_data:function(t,e,n){return G(t,e,n,!0)},_removeData:function(t,e){return W(t,e,!0)}}),g.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=g.data(o),1===o.nodeType&&!g._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&q(o,r=g.camelCase(r.slice(5)),i[r]);g._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each((function(){g.data(this,t)})):arguments.length>1?this.each((function(){g.data(this,t,e)})):o?q(o,t,g.data(o,t)):void 0},removeData:function(t){return this.each((function(){g.removeData(this,t)}))}}),g.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=g._data(t,e),n&&(!r||g.isArray(n)?r=g._data(t,e,g.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=g.queue(t,e),r=n.length,i=n.shift(),o=g._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){g.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return g._data(t,n)||g._data(t,n,{empty:g.Callbacks("once memory").add((function(){g._removeData(t,e+"queue"),g._removeData(t,n)}))})}}),g.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length
a",p.leadingWhitespace=3===K.firstChild.nodeType,p.tbody=!K.getElementsByTagName("tbody").length,p.htmlSerialize=!!K.getElementsByTagName("link").length,p.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,J.type="checkbox",J.checked=!0,Q.appendChild(J),p.appendChecked=J.checked,K.innerHTML="",p.noCloneChecked=!!K.cloneNode(!0).lastChild.defaultValue,Q.appendChild(K),(J=a.createElement("input")).setAttribute("type","radio"),J.setAttribute("checked","checked"),J.setAttribute("name","t"),K.appendChild(J),p.checkClone=K.cloneNode(!0).cloneNode(!0).lastChild.checked,p.noCloneEvent=!!K.addEventListener,K[g.expando]=1,p.attributes=!K.getAttribute(g.expando);var ut={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:p.htmlSerialize?[0,"",""]:[1,"X
","
"]};function st(t,e){var n,r,i=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||g.nodeName(r,e)?o.push(r):g.merge(o,st(r,e));return void 0===e||e&&g.nodeName(t,e)?g.merge([t],o):o}function ct(t,e){for(var n,r=0;null!=(n=t[r]);r++)g._data(n,"globalEval",!e||g._data(e[r],"globalEval"))}ut.optgroup=ut.option,ut.tbody=ut.tfoot=ut.colgroup=ut.caption=ut.thead,ut.th=ut.td;var lt=/<|&#?\w+;/,ft=/"!==f[1]||ft.test(a)?0:s:s.firstChild)&&a.childNodes.length;o--;)g.nodeName(l=a.childNodes[o],"tbody")&&!l.childNodes.length&&a.removeChild(l);for(g.merge(m,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else m.push(e.createTextNode(a));for(s&&d.removeChild(s),p.appendChecked||g.grep(st(m,"input"),ht),v=0;a=m[v++];)if(r&&g.inArray(a,r)>-1)i&&i.push(a);else if(u=g.contains(a.ownerDocument,a),s=st(d.appendChild(a),"script"),u&&ct(s),n)for(o=0;a=s[o++];)rt.test(a.type||"")&&n.push(a);return s=null,d}!function(){var t,e,r=a.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(p[t]=e in n)||(r.setAttribute(e,"t"),p[t]=!1===r.attributes[e].expando);r=null}();var pt=/^(?:input|select|textarea)$/i,gt=/^key/,mt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vt=/^(?:focusinfocus|focusoutblur)$/,yt=/^([^.]*)(?:\.(.+)|)/;function bt(){return!0}function _t(){return!1}function wt(){try{return a.activeElement}catch(t){}}function xt(t,e,n,r,i,o){var a,u;if("object"==typeof e){for(u in"string"!=typeof n&&(r=r||n,n=void 0),e)xt(t,u,n,r,e[u],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=_t;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return g().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=g.guid++)),t.each((function(){g.event.add(this,e,i,r,n)}))}g.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,m,v=g._data(t);if(v){for(n.handler&&(n=(s=n).handler,i=s.selector),n.guid||(n.guid=g.guid++),(a=v.events)||(a=v.events={}),(l=v.handle)||((l=v.handle=function(t){return void 0===g||t&&g.event.triggered===t.type?void 0:g.event.dispatch.apply(l.elem,arguments)}).elem=t),u=(e=(e||"").match(R)||[""]).length;u--;)d=m=(o=yt.exec(e[u])||[])[1],p=(o[2]||"").split(".").sort(),d&&(c=g.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=g.event.special[d]||{},f=g.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&g.expr.match.needsContext.test(i),namespace:p.join(".")},s),(h=a[d])||((h=a[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,l)||(t.addEventListener?t.addEventListener(d,l,!1):t.attachEvent&&t.attachEvent("on"+d,l))),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),g.event.global[d]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,m,v=g.hasData(t)&&g._data(t);if(v&&(l=v.events)){for(c=(e=(e||"").match(R)||[""]).length;c--;)if(d=m=(u=yt.exec(e[c])||[])[1],p=(u[2]||"").split(".").sort(),d){for(f=g.event.special[d]||{},h=l[d=(r?f.delegateType:f.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)a=h[o],!i&&m!==a.origType||n&&n.guid!==a.guid||u&&!u.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(h.splice(o,1),a.selector&&h.delegateCount--,f.remove&&f.remove.call(t,a));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||g.removeEvent(t,d,v.handle),delete l[d])}else for(d in l)g.event.remove(t,d+e[c],n,r,!0);g.isEmptyObject(l)&&(delete v.handle,g._removeData(t,"events"))}},trigger:function(t,e,r,i){var o,u,s,c,l,f,h,p=[r||a],m=d.call(t,"type")?t.type:t,v=d.call(t,"namespace")?t.namespace.split("."):[];if(s=f=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!vt.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[g.expando]?t:new g.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:g.makeArray(e,[t]),l=g.event.special[m]||{},i||!l.trigger||!1!==l.trigger.apply(r,e))){if(!i&&!l.noBubble&&!g.isWindow(r)){for(c=l.delegateType||m,vt.test(c+m)||(s=s.parentNode);s;s=s.parentNode)p.push(s),f=s;f===(r.ownerDocument||a)&&p.push(f.defaultView||f.parentWindow||n)}for(h=0;(s=p[h++])&&!t.isPropagationStopped();)t.type=h>1?c:l.bindType||m,(o=(g._data(s,"events")||{})[t.type]&&g._data(s,"handle"))&&o.apply(s,e),(o=u&&s[u])&&o.apply&&F(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=m,!i&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),e))&&F(r)&&u&&r[m]&&!g.isWindow(r)){(f=r[u])&&(r[u]=null),g.event.triggered=m;try{r[m]()}catch(t){}g.event.triggered=void 0,f&&(r[u]=f)}return t.result}},dispatch:function(t){t=g.event.fix(t);var e,n,r,i,o,a=[],s=u.call(arguments),c=(g._data(this,"events")||{})[t.type]||[],l=g.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(a=g.event.handlers.call(this,t,c),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((g.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],u=e.delegateCount,s=t.target;if(u&&s.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;s!=this;s=s.parentNode||this)if(1===s.nodeType&&(!0!==s.disabled||"click"!==t.type)){for(r=[],n=0;n-1:g.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&a.push({elem:s,handlers:r})}return u]","i"),Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,St=/\s*$/g,jt=at(a).appendChild(a.createElement("div"));function Ot(t,e){return g.nodeName(t,"table")&&g.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Nt(t){return t.type=(null!==g.find.attr(t,"type"))+"/"+t.type,t}function Lt(t){var e=Ct.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Pt(t,e){if(1===e.nodeType&&g.hasData(t)){var n,r,i,o=g._data(t),a=g._data(e,o),u=o.events;if(u)for(n in delete a.handle,a.events={},u)for(r=0,i=u[n].length;r1&&"string"==typeof m&&!p.checkClone&&At.test(m))return t.each((function(i){var o=t.eq(i);v&&(e[0]=m.call(this,i,o.html())),Dt(o,e,n,r)}));if(h&&(i=(l=dt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===l.childNodes.length&&(l=i),i||r)){for(a=(u=g.map(st(l,"script"),Nt)).length;f")},clone:function(t,e,n){var r,i,o,a,u,s=g.contains(t.ownerDocument,t);if(p.html5Clone||g.isXMLDoc(t)||!kt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(jt.innerHTML=t.outerHTML,jt.removeChild(o=jt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||g.isXMLDoc(t)))for(r=st(o),u=st(t),a=0;null!=(i=u[a]);++a)r[a]&&Rt(i,r[a]);if(e)if(n)for(u=u||st(t),r=r||st(o),a=0;null!=(i=u[a]);a++)Pt(i,r[a]);else Pt(t,o);return(r=st(o,"script")).length>0&&ct(r,!s&&st(t,"script")),r=u=i=null,o},cleanData:function(t,e){for(var n,r,i,a,u=0,s=g.expando,c=g.cache,l=p.attributes,f=g.event.special;null!=(n=t[u]);u++)if((e||F(n))&&(a=(i=n[s])&&c[i])){if(a.events)for(r in a.events)f[r]?g.event.remove(n,r):g.removeEvent(n,r,a.handle);c[i]&&(delete c[i],l||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),o.push(i))}}}),g.fn.extend({domManip:Dt,detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(t))}),null,t,arguments.length)},append:function(){return Dt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ot(this,t).appendChild(t)}))},prepend:function(){return Dt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ot(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Dt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Dt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&g.cleanData(st(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&g.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return g.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Et,""):void 0;if("string"==typeof t&&!St.test(t)&&(p.htmlSerialize||!kt.test(t))&&(p.leadingWhitespace||!it.test(t))&&!ut[(nt.exec(t)||["",""])[1].toLowerCase()]){t=g.htmlPrefilter(t);try{for(;n")).appendTo(e.documentElement))[0].contentWindow||It[0].contentDocument).document).write(),e.close(),n=Bt(t,e),It.detach()),Ft[t]=n),n}var qt=/^margin/,Ht=new RegExp("^("+Y+")(?!px)[a-z%]+$","i"),Gt=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i},Wt=a.documentElement;!function(){var t,e,r,i,o,u,s=a.createElement("div"),c=a.createElement("div");function l(){var l,f,h=a.documentElement;h.appendChild(s),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",t=r=u=!1,e=o=!0,n.getComputedStyle&&(f=n.getComputedStyle(c),t="1%"!==(f||{}).top,u="2px"===(f||{}).marginLeft,r="4px"===(f||{width:"4px"}).width,c.style.marginRight="50%",e="4px"===(f||{marginRight:"4px"}).marginRight,(l=c.appendChild(a.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",c.style.width="1px",o=!parseFloat((n.getComputedStyle(l)||{}).marginRight),c.removeChild(l)),c.style.display="none",(i=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="
t
",c.childNodes[0].style.borderCollapse="separate",(l=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(i=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",i=0===l[0].offsetHeight)),h.removeChild(s)}c.style&&(c.style.cssText="float:left;opacity:.5",p.opacity="0.5"===c.style.opacity,p.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===c.style.backgroundClip,(s=a.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",s.appendChild(c),p.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,g.extend(p,{reliableHiddenOffsets:function(){return null==t&&l(),i},boxSizingReliable:function(){return null==t&&l(),r},pixelMarginRight:function(){return null==t&&l(),e},pixelPosition:function(){return null==t&&l(),t},reliableMarginRight:function(){return null==t&&l(),o},reliableMarginLeft:function(){return null==t&&l(),u}}))}();var Yt,Vt,$t=/^(top|right|bottom|left)$/;function Zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}n.getComputedStyle?(Yt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Vt=function(t,e,n){var r,i,o,a,u=t.style;return""!==(a=(n=n||Yt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==a||g.contains(t.ownerDocument,t)||(a=g.style(t,e)),n&&!p.pixelMarginRight()&&Ht.test(a)&&qt.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o),void 0===a?a:a+""}):Wt.currentStyle&&(Yt=function(t){return t.currentStyle},Vt=function(t,e,n){var r,i,o,a,u=t.style;return null==(a=(n=n||Yt(t))?n[e]:void 0)&&u&&u[e]&&(a=u[e]),Ht.test(a)&&!$t.test(e)&&(r=u.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),u.left="fontSize"===e?"1em":a,a=u.pixelLeft+"px",u.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var Xt=/alpha\([^)]*\)/i,Kt=/opacity\s*=\s*([^)]*)/i,Qt=/^(none|table(?!-c[ea]).+)/,Jt=new RegExp("^("+Y+")(.*)$","i"),te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],re=a.createElement("div").style;function ie(t){if(t in re)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=ne.length;n--;)if((t=ne[n]+e)in re)return t}function oe(t,e){for(var n,r,i,o=[],a=0,u=t.length;a=1||""===e)&&""===g.trim(o.replace(Xt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=Xt.test(o)?o.replace(Xt,i):o+" "+i)}}),g.cssHooks.marginRight=Zt(p.reliableMarginRight,(function(t,e){if(e)return Gt(t,{display:"inline-block"},Vt,[t,"marginRight"])})),g.cssHooks.marginLeft=Zt(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||(g.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-Gt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})):0))+"px"})),g.each({margin:"",padding:"",border:"Width"},(function(t,e){g.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+$[r]+e]=o[r]||o[r-2]||o[0];return i}},qt.test(t)||(g.cssHooks[t+e].set=ae)})),g.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,o={},a=0;if(g.isArray(e)){for(r=Yt(t),i=e.length;a1)},show:function(){return oe(this,!0)},hide:function(){return oe(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){Z(this)?g(this).show():g(this).hide()}))}}),g.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||g.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(g.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=g.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=g.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){g.fx.step[t.prop]?g.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[g.cssProps[t.prop]]&&!g.cssHooks[t.prop]?t.elem[t.prop]=t.now:g.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},g.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},g.fx=ce.prototype.init,g.fx.step={};var le,fe,he=/^(?:toggle|show|hide)$/,de=/queueHooks$/;function pe(){return n.setTimeout((function(){le=void 0})),le=g.now()}function ge(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=$[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function me(t,e,n){for(var r,i=(ve.tweeners[e]||[]).concat(ve.tweeners["*"]),o=0,a=i.length;o
a",t=n.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),n.appendChild(e),(t=n.getElementsByTagName("a")[0]).style.cssText="top:1px",p.getSetAttribute="t"!==n.className,p.style=/top/.test(t.getAttribute("style")),p.hrefNormalized="/a"===t.getAttribute("href"),p.checkOn=!!e.value,p.optSelected=i.selected,p.enctype=!!a.createElement("form").enctype,r.disabled=!0,p.optDisabled=!i.disabled,(e=a.createElement("input")).setAttribute("value",""),p.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),p.radioValue="t"===e.value}();var ye=/\r/g,be=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g.isFunction(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,g(this).val()):t)?i="":"number"==typeof i?i+="":g.isArray(i)&&(i=g.map(i,(function(t){return null==t?"":t+""}))),(e=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=g.valHooks[i.type]||g.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ye,""):null==n?"":n:void 0}}),g.extend({valHooks:{option:{get:function(t){var e=g.find.attr(t,"value");return null!=e?e:g.trim(g.text(t)).replace(be," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],u=o?i+1:r.length,s=i<0?u:o?i:0;s-1)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(t,e){if(g.isArray(e))return t.checked=g.inArray(g(t).val(),e)>-1}},p.checkOn||(g.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var _e,we,xe=g.expr.attrHandle,Ee=/^(?:checked|selected)$/i,ke=p.getSetAttribute,Me=p.input;g.fn.extend({attr:function(t,e){return tt(this,g.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){g.removeAttr(this,t)}))}}),g.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?g.prop(t,e,n):(1===o&&g.isXMLDoc(t)||(e=e.toLowerCase(),i=g.attrHooks[e]||(g.expr.match.bool.test(e)?we:_e)),void 0!==n?null===n?void g.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=g.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&g.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;n=o[i++];)r=g.propFix[n]||n,g.expr.match.bool.test(n)?Me&&ke||!Ee.test(n)?t[r]=!1:t[g.camelCase("default-"+n)]=t[r]=!1:g.attr(t,n,""),t.removeAttribute(ke?n:r)}}),we={set:function(t,e,n){return!1===e?g.removeAttr(t,n):Me&&ke||!Ee.test(n)?t.setAttribute(!ke&&g.propFix[n]||n,n):t[g.camelCase("default-"+n)]=t[n]=!0,n}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||g.find.attr;Me&&ke||!Ee.test(e)?xe[e]=function(t,e,r){var i,o;return r||(o=xe[e],xe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,xe[e]=o),i}:xe[e]=function(t,e,n){if(!n)return t[g.camelCase("default-"+e)]?e.toLowerCase():null}})),Me&&ke||(g.attrHooks.value={set:function(t,e,n){if(!g.nodeName(t,"input"))return _e&&_e.set(t,e,n);t.defaultValue=e}}),ke||(_e={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},xe.id=xe.name=xe.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},g.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:_e.set},g.attrHooks.contenteditable={set:function(t,e,n){_e.set(t,""!==e&&e,n)}},g.each(["width","height"],(function(t,e){g.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}}))),p.style||(g.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Se=/^(?:input|select|textarea|button|object)$/i,Ae=/^(?:a|area)$/i;g.fn.extend({prop:function(t,e){return tt(this,g.prop,t,e,arguments.length>1)},removeProp:function(t){return t=g.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))}}),g.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(t)||(e=g.propFix[e]||e,i=g.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=g.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.hrefNormalized||g.each(["href","src"],(function(t,e){g.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),p.optSelected||(g.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this})),p.enctype||(g.propFix.enctype="encoding");var Ce=/[\t\r\n\f]/g;function Te(t){return g.attr(t,"class")||""}g.fn.extend({addClass:function(t){var e,n,r,i,o,a,u,s=0;if(g.isFunction(t))return this.each((function(e){g(this).addClass(t.call(this,e,Te(this)))}));if("string"==typeof t&&t)for(e=t.match(R)||[];n=this[s++];)if(i=Te(n),r=1===n.nodeType&&(" "+i+" ").replace(Ce," ")){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=g.trim(r))&&g.attr(n,"class",u)}return this},removeClass:function(t){var e,n,r,i,o,a,u,s=0;if(g.isFunction(t))return this.each((function(e){g(this).removeClass(t.call(this,e,Te(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(R)||[];n=this[s++];)if(i=Te(n),r=1===n.nodeType&&(" "+i+" ").replace(Ce," ")){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=g.trim(r))&&g.attr(n,"class",u)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):g.isFunction(t)?this.each((function(n){g(this).toggleClass(t.call(this,n,Te(this),e),e)})):this.each((function(){var e,r,i,o;if("string"===n)for(r=0,i=g(this),o=t.match(R)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||((e=Te(this))&&g._data(this,"__className__",e),g.attr(this,"class",e||!1===t?"":g._data(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Te(n)+" ").replace(Ce," ").indexOf(e)>-1)return!0;return!1}}),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){g.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),g.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var je=n.location,Oe=g.now(),Ne=/\?/,Le=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;g.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var e,r=null,i=g.trim(t+"");return i&&!g.trim(i.replace(Le,(function(t,n,i,o){return e&&n&&(r=0),0===r?t:(e=i||n,r+=!o-!i,"")})))?Function("return "+i)():g.error("Invalid JSON: "+t)},g.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{n.DOMParser?e=(new n.DOMParser).parseFromString(t,"text/xml"):((e=new n.ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+t),e};var Pe=/#.*$/,Re=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ze=/^(?:GET|HEAD)$/,Ie=/^\/\//,Fe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Be={},Ue={},qe="*/".concat("*"),He=je.href,Ge=Fe.exec(He.toLowerCase())||[];function We(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(R)||[];if(g.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ye(t,e,n,r){var i={},o=t===Ue;function a(u){var s;return i[u]=!0,g.each(t[u]||[],(function(t,u){var c=u(e,n,r);return"string"!=typeof c||o||i[c]?o?!(s=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),s}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ve(t,e){var n,r,i=g.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&g.extend(!0,t,n),t}function $e(t){return t.style&&t.style.display||g.css(t,"display")}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:He,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ge[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,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":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ve(Ve(t,g.ajaxSettings),e):Ve(g.ajaxSettings,t)},ajaxPrefilter:We(Be),ajaxTransport:We(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,u,s,c,l,f=g.ajaxSetup({},e),h=f.context||f,d=f.context&&(h.nodeType||h.jquery)?g(h):g.event,p=g.Deferred(),m=g.Callbacks("once memory"),v=f.statusCode||{},y={},b={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!l)for(l={};e=De.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return _||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(_<2)for(e in t)v[e]=[v[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),E(0,e),this}};if(p.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,f.url=((t||f.url||He)+"").replace(Pe,"").replace(Ie,Ge[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=g.trim(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain&&(r=Fe.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===Ge[1]&&r[2]===Ge[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(Ge[3]||("http:"===Ge[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=g.param(f.data,f.traditional)),Ye(Be,f,e,x),2===_)return x;for(i in(s=g.event&&f.global)&&0==g.active++&&g.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ze.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(Ne.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Re.test(o)?o.replace(Re,"$1_="+Oe++):o+(Ne.test(o)?"&":"?")+"_="+Oe++)),f.ifModified&&(g.lastModified[o]&&x.setRequestHeader("If-Modified-Since",g.lastModified[o]),g.etag[o]&&x.setRequestHeader("If-None-Match",g.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qe+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(h,x,f)||2===_))return x.abort();for(i in w="abort",{success:1,error:1,complete:1})x[i](f[i]);if(c=Ye(Ue,f,e,x)){if(x.readyState=1,s&&d.trigger("ajaxSend",[x,f]),2===_)return x;f.async&&f.timeout>0&&(u=n.setTimeout((function(){x.abort("timeout")}),f.timeout));try{_=1,c.send(y,E)}catch(t){if(!(_<2))throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,r,i){var l,y,b,w,E,k=e;2!==_&&(_=2,u&&n.clearTimeout(u),c=void 0,a=i||"",x.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in u)if(u[a]&&u[a].test(i)){s.unshift(a);break}if(s[0]in n)o=s[0];else{for(a in n){if(!s[0]||t.converters[a+" "+s[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==s[0]&&s.unshift(o),n[o]}(f,x,r)),w=function(t,e,n,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=c[s+" "+o]||c["* "+o]))for(i in c)if((u=i.split(" "))[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=u[0],l.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}(f,w,x,l),l?(f.ifModified&&((E=x.getResponseHeader("Last-Modified"))&&(g.lastModified[o]=E),(E=x.getResponseHeader("etag"))&&(g.etag[o]=E)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=w.state,y=w.data,l=!(b=w.error))):(b=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(e||k)+"",l?p.resolveWith(h,[y,k,x]):p.rejectWith(h,[x,k,b]),x.statusCode(v),v=void 0,s&&d.trigger(l?"ajaxSuccess":"ajaxError",[x,f,l?y:b]),m.fireWith(h,[x,k]),s&&(d.trigger("ajaxComplete",[x,f]),--g.active||g.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return g.get(t,e,n,"json")},getScript:function(t,e){return g.get(t,void 0,e,"script")}}),g.each(["get","post"],(function(t,e){g[e]=function(t,n,r,i){return g.isFunction(n)&&(i=i||r,r=n,n=void 0),g.ajax(g.extend({url:t,type:e,dataType:i,data:n,success:r},g.isPlainObject(t)&&t))}})),g._evalUrl=function(t){return g.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(t){if(g.isFunction(t))return this.each((function(e){g(this).wrapAll(t.call(this,e))}));if(this[0]){var e=g(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return g.isFunction(t)?this.each((function(e){g(this).wrapInner(t.call(this,e))})):this.each((function(){var e=g(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g.isFunction(t);return this.each((function(n){g(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(t){return p.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:function(t){if(!g.contains(t.ownerDocument||a,t))return!0;for(;t&&1===t.nodeType;){if("none"===$e(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}(t)},g.expr.filters.visible=function(t){return!g.expr.filters.hidden(t)};var Ze=/%20/g,Xe=/\[\]$/,Ke=/\r?\n/g,Qe=/^(?:submit|button|image|reset|file)$/i,Je=/^(?:input|select|textarea|keygen)/i;function tn(t,e,n,r){var i;if(g.isArray(e))g.each(e,(function(e,i){n||Xe.test(t)?r(t,i):tn(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==g.type(e))r(t,e);else for(i in e)tn(t+"["+i+"]",e[i],n,r)}g.param=function(t,e){var n,r=[],i=function(t,e){e=g.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(t)||t.jquery&&!g.isPlainObject(t))g.each(t,(function(){i(this.name,this.value)}));else for(n in t)tn(n,t[n],e,i);return r.join("&").replace(Ze,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=g.prop(this,"elements");return t?g.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!g(this).is(":disabled")&&Je.test(this.nodeName)&&!Qe.test(t)&&(this.checked||!et.test(t))})).map((function(t,e){var n=g(this).val();return null==n?null:g.isArray(n)?g.map(n,(function(t){return{name:e.name,value:t.replace(Ke,"\r\n")}})):{name:e.name,value:n.replace(Ke,"\r\n")}})).get()}}),g.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?an():a.documentMode>8?on():/^(get|post|head|put|delete|options)$/i.test(this.type)&&on()||an()}:on;var en=0,nn={},rn=g.ajaxSettings.xhr();function on(){try{return new n.XMLHttpRequest}catch(t){}}function an(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}n.attachEvent&&n.attachEvent("onunload",(function(){for(var t in nn)nn[t](void 0,!0)})),p.cors=!!rn&&"withCredentials"in rn,(rn=p.ajax=!!rn)&&g.ajaxTransport((function(t){var e;if(!t.crossDomain||p.cors)return{send:function(r,i){var o,a=t.xhr(),u=++en;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(t.hasContent&&t.data||null),e=function(n,r){var o,s,c;if(e&&(r||4===a.readyState))if(delete nn[u],e=void 0,a.onreadystatechange=g.noop,r)4!==a.readyState&&a.abort();else{c={},o=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{s=a.statusText}catch(t){s=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=c.text?200:404}c&&i(o,s,c,a.getAllResponseHeaders())},t.async?4===a.readyState?n.setTimeout(e):a.onreadystatechange=nn[u]=e:e()},abort:function(){e&&e(void 0,!0)}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return g.globalEval(t),t}}}),g.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),g.ajaxTransport("script",(function(t){if(t.crossDomain){var e,n=a.head||g("head")[0]||a.documentElement;return{send:function(r,i){(e=a.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var un=[],sn=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=un.pop()||g.expando+"_"+Oe++;return this[t]=!0,t}}),g.ajaxPrefilter("json jsonp",(function(t,e,r){var i,o,a,u=!1!==t.jsonp&&(sn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&sn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(sn,"$1"+i):!1!==t.jsonp&&(t.url+=(Ne.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||g.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?g(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,un.push(i)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),g.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||a;var r=M.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=dt([t],e,i),i&&i.length&&g(i).remove(),g.merge([],r.childNodes))};var cn=g.fn.load;function ln(t){return g.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}g.fn.load=function(t,e,n){if("string"!=typeof t&&cn)return cn.apply(this,arguments);var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=g.trim(t.slice(u,t.length)),t=t.slice(0,u)),g.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&g.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?g("
").append(g.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){g.fn[e]=function(t){return this.on(e,t)}})),g.expr.filters.animated=function(t){return g.grep(g.timers,(function(e){return t===e.elem})).length},g.offset={setOffset:function(t,e,n){var r,i,o,a,u,s,c=g.css(t,"position"),l=g(t),f={};"static"===c&&(t.style.position="relative"),u=l.offset(),o=g.css(t,"top"),s=g.css(t,"left"),("absolute"===c||"fixed"===c)&&g.inArray("auto",[o,s])>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),g.isFunction(e)&&(e=e.call(t,n,g.extend({},u))),null!=e.top&&(f.top=e.top-u.top+a),null!=e.left&&(f.left=e.left-u.left+i),"using"in e?e.using.call(t,f):l.css(f)}},g.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){g.offset.setOffset(this,t,e)}));var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,g.contains(e,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=ln(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===g.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),g.nodeName(t[0],"html")||(n=t.offset()),n.top+=g.css(t[0],"borderTopWidth",!0),n.left+=g.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-g.css(r,"marginTop",!0),left:e.left-n.left-g.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&!g.nodeName(t,"html")&&"static"===g.css(t,"position");)t=t.offsetParent;return t||Wt}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n=/Y/.test(e);g.fn[t]=function(r){return tt(this,(function(t,r,i){var o=ln(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?g(o).scrollLeft():i,n?i:g(o).scrollTop()):t[r]=i}),t,r,arguments.length,null)}})),g.each(["top","left"],(function(t,e){g.cssHooks[e]=Zt(p.pixelPosition,(function(t,n){if(n)return n=Vt(t,e),Ht.test(n)?g(t).position()[e]+"px":n}))})),g.each({Height:"height",Width:"width"},(function(t,e){g.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){g.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return tt(this,(function(e,n,r){var i;return g.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?g.css(e,n,a):g.style(e,n,r,a)}),e,o?r:void 0,o,null)}}))})),g.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),g.fn.size=function(){return this.length},g.fn.andSelf=g.fn.addBack,void 0===(r=function(){return g}.apply(e,[]))||(t.exports=r);var fn=n.jQuery,hn=n.$;return g.noConflict=function(t){return n.$===g&&(n.$=hn),t&&n.jQuery===g&&(n.jQuery=fn),g},i||(n.jQuery=n.$=g),g},"object"==typeof t.exports?t.exports=i.document?o(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return o(t)}:o(i)},function(t,e){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],r=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function i(t){if(t<0)return Number("0/0");for(var e=r[0],n=r.length-1;n>0;--n)e+=r[n]/(t+n);var i=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(i)-i+Math.log(e)-Math.log(t)}t.exports=function t(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e>100)return Math.exp(i(e));e-=1;for(var r=n[0],o=1;o<9;o++)r+=n[o]/(e+o);var a=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(a,e+.5)*Math.exp(-a)*r},t.exports.log=i},function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);t.exports=function t(e,n,f){if("string"!=typeof n){if(l){var h=c(n);h&&h!==l&&t(e,h,f)}var d=a(n);u&&(d=d.concat(u(n)));for(var p=0;pe?2:1;if(c.isArray(t)&&c.isArray(e)){if(t.length!=e.length)return t.length>e.length?2:1;var u=0;return c.every(t,(function(t,n){var r=i.dm_compareTwoValues(t,e[n]);return 0==r||(u=r,!1)})),u}return-2}return-1},dm_compareTwoValues_level2:function(t,e){var n=this.dm_compareTwoValues(t,e);return-2==n&&c.has(t,"value")&&c.has(e,"value")?this.dm_compareTwoValues(t.value,e.value):n},dm_log100times:c.before(100,(function(t){return 0})),getInitialState:function(){return{header:[]}},shouldComponentUpdate:function(t){var e=this;return this.state.header!==t.header||!(!this.state.header||this.props.rowData===t.rowData)||this.props.sortOn!=t.sortOn||c.some(this.props.rowData,(function(n,r){if(!c.isMatch(n,t.rowData[r]))return!0;if(n===t.rowData[r])return!1;if(n===t.rowData[r])return!1;var i=e.dm_compareTwoValues_level2(n,t.rowData[r]);if(i>=0){if(0==i){var o=c.keys(n),a=c.keys(t.rowData[r]),u=c.intersection(o,a);return u.length)/;return u.createElement("tr",{onClick:this.props.onClick},this.props.rowData.map(c.bind((function(e,n){var r=c.has(e,"value")?e.value:e;if(c.isArray(r)){if(!c.has(e,"format"))return r}else if(c.isObject(r)&&!u.isValidElement(r))return null;c.has(e,"format")&&(r=e.format(r)),c.has(e,"abbr")&&(r=t.test(r)?u.createElement("span",{"data-toggle":"tooltip","data-placement":"top","data-html":"true",title:e.abbr,dangerouslySetInnerHTML:{__html:r}}):u.createElement("span",{"data-toggle":"tooltip","data-placement":"top","data-html":"true",title:e.abbr},r));var i={key:n};if(c.has(e,"span")&&(i.colSpan=e.span),c.has(e,"style")&&(i.style=e.style),c.has(e,"tooltip")&&(i.title=e.tooltip),c.has(e,"classes")&&(i.className=e.classes),this.state.header&&this.props.sorter&&c.has(e,"sortable")&&e.sortable){i.onClick=c.partial(this.props.sorter,n,this.dm_compareTwoValues_level2);var o="fa fa-sort";this.props.sortOn&&this.props.sortOn[0]==n&&(o=this.props.sortOn[1]?"fa fa-sort-amount-asc":"fa fa-sort-amount-desc"),r=u.createElement("div",null,r,u.createElement("i",{className:o,"aria-hidden":"true",style:{marginLeft:"0.5em"}}))}return u.createElement(this.props.header?"th":"td",i,r)}),this)))}}),d=s({displayName:"DatamonkeyTable",getDefaultProps:function(){return{classes:"dm-table table table-smm table-hover",rowHash:null}},getInitialState:function(){var t=0;return this.props.bodyData&&(t=this.props.bodyData.length),{rowOrder:c.range(0,t),headerData:this.props.headerData,sortOn:this.props.initialSort?[this.props.initialSort,!0]:null,current:0}},componentWillReceiveProps:function(t){this.setState({rowOrder:c.range(0,t.bodyData.length),headerData:t.headerData,current:t.bodyData.length=this.props.paginate?this.setState({current:this.state.current-this.props.paginate}):this.setState({current:0})},decrement:function(){if(this.state.current>0){var t=this.state.current-1;this.setState({current:t})}},increment:function(){if(this.state.current0?r?2*a-3:3-2*a:0}));c.some(i,(function(t,e){return t!=n.state.rowOrder[e]}))&&this.setState({rowOrder:i}),this.setState({sortOn:[t,r]})},componentDidMount:function(){},componentDidUpdate:function(){$('[data-toggle="tooltip"]').tooltip()},rowOnClick:function(t){this.props.onClick&&this.props.onClick(t)},render:function(){var t,e,n,r=[],o=this,a=Math.min(this.state.current+this.props.paginate,this.state.rowOrder.length);return this.props.paginate?(this.props.export_csv&&(e=u.createElement("button",{id:"export-csv",type:"button",className:"btn.btn-secondary btn-sm float-right",onClick:function(){function t(t){return c.isObject(t)?t.value:t}var e=c.map(o.props.headerData,t),n=c.map(o.props.bodyData,(function(e){return c.map(e,t)})).map((function(t){return c.object(e,t)}));i.default.create({filename:"datamonkey-table.csv"}).downloadCsv(n)}},u.createElement("span",{className:"far fa-save"})," Export Table to CSV")),t=u.createElement("div",{className:"container"},u.createElement("div",{className:"row"},u.createElement("div",{className:"col-4"},u.createElement("p",null,"Showing entries ",this.state.current+1," through ",a," ","out of ",this.state.rowOrder.length,"."),u.createElement("div",{className:"btn-group d-flex",role:"group","aria-label":"..."},u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:o.regress,"data-toggle":"tooltip",title:"Move backwards "+this.props.paginate+" rows."},u.createElement("span",{className:"fas fa-angle-double-left","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:o.decrement,"data-toggle":"tooltip",title:"Move backwards one row."},u.createElement("span",{className:"fas fa-angle-left","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:o.increment,"data-toggle":"tooltip",title:"Move forwards one row."},u.createElement("span",{className:"fas fa-angle-right","aria-hidden":"true"}))),u.createElement("div",{className:"btn-group",role:"group"},u.createElement("button",{type:"button",className:"btn.btn-secondary",onClick:o.advance,"data-toggle":"tooltip",title:"Move forwards "+this.props.paginate+" rows."},u.createElement("span",{className:"fas fa-angle-double-right","aria-hidden":"true"}))))),u.createElement("div",{className:"col-8 ml-auto align-bottom"},e)))):t="",this.state.headerData&&(c.isArray(this.props.headerData[0])?r.push(u.createElement("thead",{key:0},c.map(this.state.headerData,(function(t,e){return u.createElement(h,{rowData:t,header:!0,key:e,sorter:c.bind(o.dm_sortOnColumn,o),sortOn:o.state.sortOn})})))):r.push(u.createElement("thead",{key:0},u.createElement(h,{rowData:this.state.headerData,header:!0,sorter:c.bind(o.dm_sortOnColumn,o),sortOn:o.state.sortOn})))),n=this.props.paginate?this.state.rowOrder.slice(this.state.current,this.state.current+this.props.paginate):this.state.rowOrder,r.push(u.createElement("tbody",{key:1},c.map(n,c.bind((function(t){var e=this,n=this.props.bodyData[t];return u.createElement(h,{rowData:n,key:this.props.rowHash?this.props.rowHash(n):t,header:!1,onClick:function(){return e.rowOnClick(n)}})}),this)))),u.createElement("div",{className:"row"},t,u.createElement("div",{className:"col-md-12 hyphy-vision-datamonkey-table"},u.createElement("table",{className:this.props.classes},r)))}}),p=s({displayName:"DatamonkeyRateDistributionTable",dm_formatterRate:l.format(".3r"),dm_formatterProp:l.format(".3p"),dm_createDistributionTable:function(t){var e=[],n=this;return c.each(t,(function(t,r){e.push([{value:r,span:3,classes:"info"}]),c.each(t,(function(t,r){e.push([{value:t[1],format:n.dm_formatterProp},"@",{value:t[0],format:n.dm_formatterRate}])}))})),e},render:function(){return u.createElement(d,{bodyData:this.dm_createDistributionTable(this.props.distribution),classes:"table table-smm"})}}),g=s({displayName:"DatamonkeyPartitionTable",dm_formatterFloat:l.format(".3r"),dm_formatterProp:l.format(".3p"),propTypes:{trees:o.default.object.isRequired,partitions:o.default.object.isRequired,branchAttributes:o.default.object.isRequired,siteResults:o.default.object.isRequired,accessorNegative:o.default.func.isRequired,accessorPositive:o.default.func.isRequired,pValue:o.default.number.isRequired},dm_computePartitionInformation:function(t,e,n,r){var i=c.sortBy(c.keys(e),(function(t){return t})),o=null,a=this,u=this.props.extractOn||c.find(n.attributes,(function(t,e){return o=e,"branch length"==t["attribute type"]}));return o&&(u=o),c.map(i,(function(i,o){var s=t.tested[i],l={};c.each(s,(function(t,e){"test"==t&&(l[e]=1)}));var h=u?f.helpers.sum(n[i],(function(t,e){return l[e.toUpperCase()]?t[u]:0})):0,d=u?f.helpers.sum(n[i],(function(t){return t[u]||0})):0;return c.map([o+1,e[i].coverage[0].length,c.size(l),c.keys(s).length,h,h/d,d,c.filter(a.props.accessorPositive(a.props.siteResults,i),(function(t){return t<=r})).length,c.filter(a.props.accessorNegative(a.props.siteResults,i),(function(t){return t<=r})).length],(function(t,e){if(e>1){var n={value:t,style:{textAlign:"center"}};return 4!=e&&6!=e||c.extend(n,{format:a.dm_formatterFloat}),5==e&&c.extend(n,{format:a.dm_formatterProp}),n}return t}))}))},dm_makeHeaderRow:function(t){return[c.map(["Partition","Sites","Branches","Branch Length","Selected at p"+String.fromCharCode(parseInt("2264",16))+t],(function(t,e){return c.extend({value:t,style:{borderBottom:0,textAlign:e>1?"center":"left"}},e>1?{span:3==e?3:2}:{})})),c.map(["","","Tested","Total","Tested","% of total","Total","Positive","Negative"],(function(t,e){return{value:t,style:{borderTop:0,textAlign:e>1?"center":"left"}}}))]},getInitialState:function(){return{header:this.dm_makeHeaderRow(this.props.pValue),rows:this.dm_computePartitionInformation(this.props.trees,this.props.partitions,this.props.branchAttributes,this.props.pValue)}},componentWillReceiveProps:function(t){this.setState({header:this.dm_makeHeaderRow(t.pValue),rows:this.dm_computePartitionInformation(t.trees,t.partitions,t.branchAttributes,t.pValue)})},render:function(){return u.createElement("div",{className:"table-responsive"},u.createElement(d,{headerData:this.state.header,bodyData:this.state.rows}))}}),m=s({displayName:"DatamonkeyModelTable",dm_numberFormatter:l.format(".2f"),dm_supportedColumns:{"Log Likelihood":{order:2,value:{value:"log L",abbr:"Log likelihood of model fit"},display_format:l.format(".2f")},"estimated parameters":{order:3,value:{value:"Parameters",abbr:"Number of estimated parameters"}},"AIC-c":{order:1,value:{value:u.createElement("span",null,["AIC",u.createElement("sub",{key:"0"},"C")]),abbr:"Small-sample corrected Akaike Information Score"},display_format:l.format(".2f")},"Rate Distributions":{order:4,value:"Rate distributions",transform:function(t){return u.createElement(p,{distribution:t})}}},propTypes:{fits:o.default.object},getDefaultProps:function(){return{orderOn:"display order"}},componentWillReceiveProps:function(t){var e=this.dm_extractFitsTable(t.fits);this.setState({header:this.dm_makeHeaderRow(e.columns),rows:e.data})},dm_extractFitsTable:function(t){var e=null,n=[],r={},i={},o=[],a=this;return c.each(t,(function(t,u){e||(e={},c.each(t,(function(t,o){a.dm_supportedColumns[o]&&(e[o]=a.dm_supportedColumns[o],n[e[o].order]=o,r[o]=a.dm_supportedColumns[o].display_format,c.isFunction(a.dm_supportedColumns[o].transform)&&(i[o]=a.dm_supportedColumns[o].transform))})),n=c.filter(n,(function(t){return t})));var s=[{value:u}];c.each(n,(function(e){var n=i[e]?i[e](t[e]):t[e];r[e]?s.push({value:n,format:r[e]}):s.push(n)})),o.push([s,c.isNumber(t[a.props.orderOn])?t[a.props.orderOn]:o.length])})),{data:c.map(c.sortBy(o,(function(t){return t[1]})),(function(t){return t[0]})),columns:c.map(n,(function(t){return e[t].value}))}},dm_makeHeaderRow:function(t){var e=["Model"];return c.each(t,(function(t){e.push(t)})),e},getInitialState:function(){var t=this.dm_extractFitsTable(this.props.fits);return{header:this.dm_makeHeaderRow(t.columns),rows:t.data,caption:null}},render:function(){return u.createElement("div",null,u.createElement("h4",{className:"dm-table-header"},"Model fits",u.createElement("span",{className:"fas fa-info-circle",style:{verticalAlign:"middle",float:"right",minHeight:"30px",minWidth:"30px"},"aria-hidden":"true","data-toggle":"popover","data-trigger":"hover",title:"Actions","data-html":"true","data-content":"
  • Hover over a column header for a description of its content.
","data-placement":"bottom"})),u.createElement(d,{headerData:this.state.header,bodyData:this.state.rows}))}}),v=s({displayName:"DatamonkeyTimersTable",dm_percentageFormatter:l.format(".2%"),propTypes:{timers:o.default.object.isRequired},dm_formatSeconds:function(t){var e=[~~(t/3600),~~(t%3600/60),t%60];return c.map(e,(function(t){return t<10?"0"+t:""+t})).join(":")},dm_extractTimerTable:function(t){var e=0,n=c.map(t,c.bind((function(t,n){return this.props.totalTime?n==this.props.totalTime&&(e=t.timer):e+=t.timer,[n,t.timer,t.order]}),this));return n=c.sortBy(n,(function(t){return t[2]})),n=c.map(n,c.bind((function(t){return null===this.props.totalTime||this.props.totalTime!=t[0]?t[2]={value:t[1]/e,format:this.dm_percentageFormatter}:t[2]="",t[1]=this.dm_formatSeconds(t[1]),t}),this))},dm_makeHeaderRow:function(){return["Task","Time","%"]},getInitialState:function(){return{header:this.dm_makeHeaderRow(),rows:this.dm_extractTimerTable(this.props.timers),caption:null}},componentWillReceiveProps:function(t){this.setState({rows:this.dm_extractTimerTable(t.timers)})},render:function(){return u.createElement(d,{headerData:this.state.header,bodyData:this.state.rows})}});t.exports.DatamonkeyTable=d,t.exports.DatamonkeyTableRow=h,t.exports.DatamonkeyRateDistributionTable=p,t.exports.DatamonkeyPartitionTable=g,t.exports.DatamonkeyModelTable=m,t.exports.DatamonkeyTimersTable=v},function(t,e,n){"use strict";var r=n(10),i=n(0),o=n(8),a=n(64),u=n(9);n(17),n(34);var s=o({displayName:"Tree",getDefaultProps:function(){return{color_gradient:["#5e4fa2","#3288bd","#e6f598","#f46d43","#9e0142"],grayscale_gradient:["#DDDDDD","#AAAAAA","#888888","#444444","#000000"],fill_color:!0,scaling_exponent:.33,bar_width:70,bar_height:300,margins:{bottom:30,top:15,left:40,right:2}}},toggleLegend:function(t){var e=!t.target.checked;this.setState({show_legend:e})},changeColorScale:function(t){var e=!t.target.checked,n=d3.scale.pow().exponent(this.props.scaling_exponent).domain([0,.25,1,5,10]).range(e?this.props.color_gradient:this.props.grayscale_gradient).clamp(!0),r=d3.scale.pow().exponent(this.props.scaling_exponent).domain(d3.extent(n.domain())).range([0,1]);this.setState({omega_color:n,omega_scale:r,fill_color:e})},getInitialState:function(){var t=d3.scale.pow().exponent(this.props.scaling_exponent).domain([0,.25,1,5,10]).range(this.props.fill_color?this.props.color_gradient:this.props.grayscale_gradient).clamp(!0),e=d3.scale.pow().exponent(this.props.scaling_exponent).domain(d3.extent(t.domain())).range([0,1]),n=d3.scale.pow().exponent(this.props.scaling_exponent).domain(d3.extent(t.domain())).range([0,this.props.bar_height-this.props.margins.top-this.props.margins.bottom]);this.selected_models={absrel:"Full adaptive model",busted:"Unconstrained model",relax:"RELAX alternative",fel:"Global MG94xREV",meme:"Global MG94xREV",slac:"Global MG94xREV",fubar:"Nucleotide GTR"};var r=["meme","fubar","gard","bgm","fade"].indexOf(this.props.method)<0;return{json:this.props.json,settings:this.props.settings,fill_color:this.props.fill_color,omega_color:t,omega_scale:e,show_legend:r,axis_scale:n,selected_model:this.selected_models[this.props.method],partition:"None",current:0}},sortNodes:function(t){this.tree.traverse_and_compute((function(t){var e=1;t.children&&t.children.length&&(e+=d3.max(t.children,(function(t){return t.count_depth}))),t.count_depth=e})),this.tree.resort_children((function(e,n){return(e.count_depth-n.count_depth)*(t?1:-1)}))},getBranchLengths:function(){var t;return this.state.json?("absrel"==this.props.method||"relax"==this.props.method?t=this.props.json.trees.branchLengths[this.state.selected_model]:["busted","meme","fel","slac","fubar"].indexOf(this.props.method)>-1?t=this.props.json.trees[this.state.current].branchLengths[this.state.selected_model]:["bgm","fade"].indexOf(this.props.method)>-1&&(t=this.props.branch_lengths),t):[]},assignBranchAnnotations:function(){if(this.props.models[this.state.selected_model]&&this.props.models[this.state.selected_model]["branch-annotations"]){var t=this.props.multitree?this.props.models[this.state.selected_model]["branch-annotations"][this.state.current]:this.props.models[this.state.selected_model]["branch-annotations"];this.tree.assign_attributes(t)}},renderDiscreteLegendColorScheme:function(t){var e=this.svg;if(this.state.omega_color&&this.state.omega_scale){var n=this.state.omega_color(0),r=15,i=0;d3.selectAll("#color-legend").remove();var o=e.append("g").attr("id","color-legend").attr("class","dc-legend").attr("transform","translate("+i+","+r+")"),a=o.append("g").attr("class","dc-legend-item").attr("transform","translate(0,0)");a.append("rect").attr("width","13").attr("height","13").attr("fill",n),a.append("text").attr("x","15").attr("y","11").text("Test");var u=o.append("g").attr("class","dc-legend-item").attr("transform","translate(0,18)");u.append("rect").attr("width","13").attr("height","13").attr("fill","black"),u.append("text").attr("x","15").attr("y","11").text("Background")}},renderLegendColorScheme:function(t,e,n){var r=this,i=r.props.models[r.state.selected_model]["branch-annotations"],o=r.svg;if(r.state.omega_color&&r.state.omega_scale&&(d3.selectAll(".legend-definitions").selectAll("linearGradient").remove(),d3.selectAll("#color-legend").remove(),i&&!n)){var a=o.append("defs").attr("class","legend-definitions").append("linearGradient").attr("id","_omega_bar").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");r.state.omega_color.domain().forEach((function(t){a.append("stop").attr("offset",100*r.state.omega_scale(t)+"%").style("stop-color",r.state.omega_color(t))}));var u=o.append("g").attr("id","color-legend").attr("transform","translate("+r.props.margins.left+","+r.props.margins.top+")");u.append("rect").attr("x",0).attr("width",r.props.bar_width-r.props.margins.left-r.props.margins.right).attr("y",0).attr("height",r.props.bar_height-r.props.margins.top-r.props.margins.bottom).style("fill","url(#_omega_bar)");var s=d3.svg.axis().scale(r.state.axis_scale).orient("left").tickFormat(d3.format(".1r")).tickValues([0,.01,.1,.5,1,2,5,10]),c=u.append("g");c.style("font-size","14").attr("class","hyphy-omega-bar").call(s),c.selectAll("text").style("text-anchor","right");var l=c.append("g").attr("class","hyphy-omega-bar");(l=l.selectAll("text").data([e])).enter().append("text"),l.text((function(t){return $("",v.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue;var xt=a.documentElement,Et=/^key/,kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mt=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function At(){return!1}function Ct(){try{return a.activeElement}catch(t){}}function Tt(t,e,n,r,i,o){var a,u;if("object"==typeof e){for(u in"string"!=typeof n&&(r=r||n,n=void 0),e)Tt(t,u,n,r,e[u],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=At;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return E().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),t.each((function(){E.event.add(this,e,i,r,n)}))}E.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,g,m=Q.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(xt,i),n.guid||(n.guid=E.guid++),(s=m.events)||(s=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(I)||[""]).length;c--;)d=g=(u=Mt.exec(e[c])||[])[1],p=(u[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},l=E.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=s[d])||((h=s[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),E.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,c,l,f,h,d,p,g,m=Q.hasData(t)&&Q.get(t);if(m&&(s=m.events)){for(c=(e=(e||"").match(I)||[""]).length;c--;)if(d=g=(u=Mt.exec(e[c])||[])[1],p=(u[2]||"").split(".").sort(),d){for(f=E.event.special[d]||{},h=s[d=(r?f.delegateType:f.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&g!==l.origType||n&&n.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||E.removeEvent(t,d,m.handle),delete s[d])}else for(d in s)E.event.remove(t,d+e[c],n,r,!0);E.isEmptyObject(s)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,u=E.event.fix(t),s=new Array(arguments.length),c=(Q.get(this,"events")||{})[u.type]||[],l=E.event.special[u.type]||{};for(s[0]=u,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n-1:E.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&u.push({elem:c,handlers:o})}return c=this,s\x20\t\r\n\f]*)[^>]*)\/>/gi,Ot=/\s*$/g;function Pt(t,e){return j(t,"table")&&j(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Dt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,r,i,o,a,u,s,c;if(1===e.nodeType){if(Q.hasData(t)&&(o=Q.access(t),a=Q.set(e,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n1&&"string"==typeof p&&!v.checkClone&&Nt.test(p))return t.each((function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),It(o,e,n,r)}));if(h&&(o=(i=wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=E.map(mt(i,"script"),Rt)).length;f")},clone:function(t,e,n){var r,i,o,a,u,s,c,l=t.cloneNode(!0),f=E.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=mt(l),r=0,i=(o=mt(t)).length;r0&&vt(a,!f&&mt(t,"script")),l},cleanData:function(t){for(var e,n,r,i=E.event.special,o=0;void 0!==(n=t[o]);o++)if(X(n)){if(e=n[Q.expando]){if(e.events)for(r in e.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,e.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return W(this,(function(t){return void 0===t?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Pt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return E.clone(this,t,e)}))},html:function(t){return W(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ot.test(t)&&!gt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-s-u-.5))),s}function te(t,e,n){var r=Ut(t),i=Ht(t,e,r),o="border-box"===E.css(t,"boxSizing",!1,r),a=o;if(Bt.test(i)){if(!n)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===E.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Jt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ht(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=Z(e),s=Yt.test(e),c=t.style;if(s||(e=Kt(u)),a=E.cssHooks[e]||E.cssHooks[u],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];"string"==(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=st(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(E.cssNumber[u]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,u=Z(e);return Yt.test(e)||(e=Kt(u)),(a=E.cssHooks[e]||E.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Ht(t,e,r)),"normal"===i&&e in $t&&(i=$t[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],(function(t,e){E.cssHooks[e]={get:function(t,n,r){if(n)return!Wt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):ut(t,Vt,(function(){return te(t,e,r)}))},set:function(t,n,r){var i,o=Ut(t),a="border-box"===E.css(t,"boxSizing",!1,o),u=r&&Jt(t,e,r,a,o);return a&&v.scrollboxSize()===o.position&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Jt(t,e,"border",!1,o)-.5)),u&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),Qt(0,n,u)}}})),E.cssHooks.marginLeft=Gt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-ut(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,e){E.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(E.cssHooks[t+e].set=Qt)})),E.fn.extend({css:function(t,e){return W(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ut(t),i=e.length;a1)}}),E.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[E.cssProps[t.prop]]&&!E.cssHooks[t.prop]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=ee.prototype.init,E.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){re&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ae):n.setTimeout(ae,E.fx.interval),E.fx.tick())}function ue(){return n.setTimeout((function(){ne=void 0})),ne=Date.now()}function se(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ce(t,e,n){for(var r,i=(le.tweeners[e]||[]).concat(le.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(i=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=E.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&j(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(I);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=he[e]||E.find.attr;he[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=he[a],he[a]=i,i=null!=n(t,e,r)?a:null,he[a]=o),i}}));var de=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function ge(t){return(t.match(I)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}E.fn.extend({prop:function(t,e){return W(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,i=E.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(t){var e,n,r,i,o,a,u,s=0;if(y(t))return this.each((function(e){E(this).addClass(t.call(this,e,me(this)))}));if((e=ve(t)).length)for(;n=this[s++];)if(i=me(n),r=1===n.nodeType&&" "+ge(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=ge(r))&&n.setAttribute("class",u)}return this},removeClass:function(t){var e,n,r,i,o,a,u,s=0;if(y(t))return this.each((function(e){E(this).removeClass(t.call(this,e,me(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[s++];)if(i=me(n),r=1===n.nodeType&&" "+ge(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=ge(r))&&n.setAttribute("class",u)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each((function(n){E(this).toggleClass(t.call(this,n,me(this),e),e)})):this.each((function(){var e,i,o,a;if(r)for(i=0,o=E(this),a=ve(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ge(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g;E.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,E(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,(function(t){return null==t?"":t+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ye,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:ge(E.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},v.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var be=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,r,i){var o,u,s,c,l,f,h,d,g=[r||a],m=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(u=d=s=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!be.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[E.expando]?t:new E.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:E.makeArray(e,[t]),h=E.event.special[m]||{},i||!h.trigger||!1!==h.trigger.apply(r,e))){if(!i&&!h.noBubble&&!b(r)){for(c=h.delegateType||m,be.test(c+m)||(u=u.parentNode);u;u=u.parentNode)g.push(u),s=u;s===(r.ownerDocument||a)&&g.push(s.defaultView||s.parentWindow||n)}for(o=0;(u=g[o++])&&!t.isPropagationStopped();)d=u,t.type=o>1?c:h.bindType||m,(f=(Q.get(u,"events")||{})[t.type]&&Q.get(u,"handle"))&&f.apply(u,e),(f=l&&u[l])&&f.apply&&X(u)&&(t.result=f.apply(u,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(g.pop(),e)||!X(r)||l&&y(r[m])&&!b(r)&&((s=r[l])&&(r[l]=null),E.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,_e),r[m](),t.isPropagationStopped()&&d.removeEventListener(m,_e),E.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(t,e,n){var r=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(r,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each((function(){E.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){E.event.simulate(e,t.target,E.event.fix(t))};E.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Q.access(r,e);i||r.addEventListener(t,n,!0),Q.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Q.access(r,e)-1;i?Q.access(r,e,i):(r.removeEventListener(t,n,!0),Q.remove(r,e))}}}));var we=n.location,xe=Date.now(),Ee=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var ke=/\[\]$/,Me=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Ce(t,e,n,r){var i;if(Array.isArray(e))E.each(e,(function(e,i){n||ke.test(t)?r(t,i):Ce(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==x(e))r(t,e);else for(i in e)Ce(t+"["+i+"]",e[i],n,r)}E.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ce(n,t[n],e,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Ae.test(this.nodeName)&&!Se.test(t)&&(this.checked||!ht.test(t))})).map((function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(t){return{name:e.name,value:t.replace(Me,"\r\n")}})):{name:e.name,value:n.replace(Me,"\r\n")}})).get()}});var Te=/%20/g,je=/#.*$/,Oe=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Pe=/^\/\//,Re={},De={},ze="*/".concat("*"),Ie=a.createElement("a");function Fe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(I)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Be(t,e,n,r){var i={},o=t===De;function a(u){var s;return i[u]=!0,E.each(t[u]||[],(function(t,u){var c=u(e,n,r);return"string"!=typeof c||o||i[c]?o?!(s=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),s}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ue(t,e){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&E.extend(!0,t,r),t}Ie.href=we.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,E.ajaxSettings),e):Ue(E.ajaxSettings,t)},ajaxPrefilter:Fe(Re),ajaxTransport:Fe(De),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,u,s,c,l,f,h,d,p=E.ajaxSetup({},e),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?E(g):E.event,v=E.Deferred(),y=E.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(l){if(!u)for(u={};e=Ne.exec(o);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==l&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),M(0,e),this}};if(v.promise(k),p.url=((t||p.url||we.href)+"").replace(Pe,we.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(I)||[""],null==p.crossDomain){c=a.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Ie.protocol+"//"+Ie.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=E.param(p.data,p.traditional)),Be(Re,p,e,k),l)return k;for(h in(f=E.event&&p.global)&&0==E.active++&&E.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Le.test(p.type),i=p.url.replace(je,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Te,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Ee.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Oe,"$1"),d=(Ee.test(i)?"&":"?")+"_="+xe+++d),p.url=i+d),p.ifModified&&(E.lastModified[i]&&k.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&k.setRequestHeader("If-None-Match",E.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ze+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(g,k,p)||l))return k.abort();if(x="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),r=Be(De,p,e,k)){if(k.readyState=1,f&&m.trigger("ajaxSend",[k,p]),l)return k;p.async&&p.timeout>0&&(s=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{l=!1,r.send(_,M)}catch(t){if(l)throw t;M(-1,t)}}else M(-1,"No Transport");function M(t,e,a,u){var c,h,d,_,w,x=e;l||(l=!0,s&&n.clearTimeout(s),r=void 0,o=u||"",k.readyState=t>0?4:0,c=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(p,k,a)),_=function(t,e,n,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=c[s+" "+o]||c["* "+o]))for(i in c)if((u=i.split(" "))[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=u[0],l.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}(p,_,k,c),c?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(E.etag[i]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,c=!(d=_.error))):(d=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(e||x)+"",c?v.resolveWith(g,[h,x,k]):v.rejectWith(g,[k,x,d]),k.statusCode(b),b=void 0,f&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,p,c?h:d]),y.fireWith(g,[k,x]),f&&(m.trigger("ajaxComplete",[k,p]),--E.active||E.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],(function(t,e){E[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:i,data:n,success:r},E.isPlainObject(t)&&t))}})),E._evalUrl=function(t){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){E(this).wrapInner(t.call(this,e))})):this.each((function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){E(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},He=E.ajaxSettings.xhr();v.cors=!!He&&"withCredentials"in He,v.ajax=He=!!He,E.ajaxTransport((function(t){var e,r;if(v.cors||He&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(qe[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),r=u.onerror=u.ontimeout=e("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=E("