// ==UserScript== // @name GitHub Hovercard // @namespace https://justineo.github.io/ // @version 1.9.4 // @description Neat user/repo/issue hovercards for GitHub. // @author Justineo(justice360@gmail.com) // @match https://github.com/* // @grant none // @updateURL https://justineo.github.io/github-hovercard/userscript/dist/github-hovercard.user.js // @icon https://justineo.github.io/github-hovercard/icon.png // ==/UserScript== !function(){/*! jQuery v3.1.0 | (c) jQuery Foundation | jquery.org/license */ !function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e){e=e||$;var i=e.createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function s(t){var e=!!t&&"length"in t&&t.length,i=mt.type(t);return"function"!==i&&!mt.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e,i){if(mt.isFunction(e))return mt.grep(t,function(t,s){return!!e.call(t,s,t)!==i});if(e.nodeType)return mt.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(_t.test(e))return mt.filter(e,t,i);e=mt.filter(e,t)}return mt.grep(t,function(t){return ot.call(e,t)>-1!==i&&1===t.nodeType})}function n(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return mt.each(t.match(Et)||[],function(t,i){e[i]=!0}),e}function h(t){return t}function g(t){throw t}function c(t,e,i){var s;try{t&&mt.isFunction(s=t.promise)?s.call(t).done(e).fail(i):t&&mt.isFunction(s=t.then)?s.call(t,e,i):e.call(void 0,t)}catch(t){i.call(void 0,t)}}function u(){$.removeEventListener("DOMContentLoaded",u),t.removeEventListener("load",u),mt.ready()}function r(){this.expando=mt.expando+r.uid++}function m(t,e,i){var s;if(void 0===i&&1===t.nodeType)if(s="data-"+e.replace(Dt,"-$&").toLowerCase(),i=t.getAttribute(s),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Mt.test(i)?JSON.parse(i):i)}catch(o){}Nt.set(t,e,i)}else i=void 0;return i}function p(t,e,i,s){var o,n=1,a=20,h=s?function(){return s.cur()}:function(){return mt.css(t,e,"")},g=h(),c=i&&i[3]||(mt.cssNumber[e]?"":"px"),u=(mt.cssNumber[e]||"px"!==c&&+g)&&Bt.exec(mt.css(t,e));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+g||1;do n=n||".5",u/=n,mt.style(t,e,u+c);while(n!==(n=h()/g)&&1!==n&&--a)}return i&&(u=+u||+g||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],s&&(s.unit=c,s.start=u,s.end=o)),o}function l(t){var e,i=t.ownerDocument,s=t.nodeName,o=Pt[s];return o?o:(e=i.body.appendChild(i.createElement(s)),o=mt.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),Pt[s]=o,o)}function d(t,e){for(var i,s,o=[],n=0,a=t.length;n-1)o&&o.push(n);else if(c=mt.contains(n.ownerDocument,n),a=f(r.appendChild(n),"script"),c&&b(a),i)for(u=0;n=a[u++];)Yt.test(n.type||"")&&i.push(n);return r}function j(){return!0}function w(){return!1}function y(){try{return $.activeElement}catch(t){}}function _(t,e,i,s,o,n){var a,h;if("object"==typeof e){"string"!=typeof i&&(s=s||i,i=void 0);for(h in e)_(t,h,i,s,e[h],n);return t}if(null==s&&null==o?(o=i,s=i=void 0):null==o&&("string"==typeof i?(o=s,s=void 0):(o=s,s=i,i=void 0)),o===!1)o=w;else if(!o)return t;return 1===n&&(a=o,o=function(t){return mt().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=mt.guid++)),t.each(function(){mt.event.add(this,e,o,s,i)})}function x(t,e){return mt.nodeName(t,"table")&&mt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function k(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function A(t){var e=ee.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){var i,s,o,n,a,h,g,c;if(1===e.nodeType){if(It.hasData(t)&&(n=It.access(t),a=It.set(e,n),c=n.events)){delete a.handle,a.events={};for(o in c)for(i=0,s=c[o].length;i1&&"string"==typeof l&&!ut.checkClone&&te.test(l))return t.each(function(i){var n=t.eq(i);d&&(e[0]=l.call(this,i,n.html())),E(n,e,s,o)});if(m&&(n=v(e,t[0].ownerDocument,!1,t,o),a=n.firstChild,1===n.childNodes.length&&(n=a),a||o)){for(h=mt.map(f(n,"script"),k),g=h.length;r=0&&ix.cacheLength&&delete t[e.shift()],t[i+" "]=s}var e=[];return t}function s(t){return t[q]=!0,t}function o(t){var e=I.createElement("fieldset");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function n(t,e){for(var i=t.split("|"),s=i.length;s--;)x.attrHandle[i[s]]=e}function a(t,e){var i=e&&t,s=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(s)return s;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function h(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function g(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function c(t){return function(e){return"label"in e&&e.disabled===t||"form"in e&&e.disabled===t||"form"in e&&e.disabled===!1&&(e.isDisabled===t||e.isDisabled!==!t&&("label"in e||!kt(e))!==t)}}function u(t){return s(function(e){return e=+e,s(function(i,s){for(var o,n=t([],i.length,e),a=n.length;a--;)i[o=n[a]]&&(i[o]=!(s[o]=i[o]))})})}function r(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function m(){}function p(t){for(var e=0,i=t.length,s="";e1?function(e,i,s){for(var o=t.length;o--;)if(!t[o](e,i,s))return!1;return!0}:t[0]}function f(t,i,s){for(var o=0,n=i.length;o-1&&(s[c]=!(a[c]=r))}}else j=b(j===a?j.splice(l,j.length):j),n?n(null,a,j,g):Z.apply(a,j)})}function j(t){for(var e,i,s,o=t.length,n=x.relative[t[0].type],a=n||x.relative[" "],h=n?1:0,g=l(function(t){return t===e},a,!0),c=l(function(t){return tt(e,t)>-1},a,!0),u=[function(t,i,s){var o=!n&&(s||i!==S)||((e=i).nodeType?g(t,i,s):c(t,i,s));return e=null,o}];h1&&d(u),h>1&&p(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(ht,"$1"),i,h0,n=t.length>0,a=function(s,a,h,g,c){var u,r,m,p=0,l="0",d=s&&[],f=[],v=S,j=s||n&&x.find.TAG("*",c),w=P+=null==v?1:Math.random()||.1,y=j.length;for(c&&(S=a===I||a||c);l!==y&&null!=(u=j[l]);l++){if(n&&u){for(r=0,a||u.ownerDocument===I||(L(u),h=!M);m=t[r++];)if(m(u,a||I,h)){g.push(u);break}c&&(P=w)}o&&((u=!m&&u)&&p--,s&&d.push(u))}if(p+=l,o&&l!==p){for(r=0;m=i[r++];)m(d,f,a,h);if(s){if(p>0)for(;l--;)d[l]||f[l]||(f[l]=W.call(g));f=b(f)}Z.apply(g,f),c&&!s&&f.length>0&&p+i.length>1&&e.uniqueSort(g)}return c&&(P=w,S=v),d};return o?s(a):a}var y,_,x,k,A,T,C,E,S,O,z,L,I,N,M,D,R,B,U,q="sizzle"+1*new Date,H=t.document,P=0,G=0,F=i(),Y=i(),Q=i(),K=function(t,e){return t===e&&(z=!0),0},J={}.hasOwnProperty,X=[],W=X.pop,V=X.push,Z=X.push,$=X.slice,tt=function(t,e){for(var i=0,s=t.length;i+~]|"+it+")"+it+"*"),ut=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),rt=new RegExp(nt),mt=new RegExp("^"+st+"$"),pt={ID:new RegExp("^#("+st+")"),CLASS:new RegExp("^\\.("+st+")"),TAG:new RegExp("^("+st+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},lt=/^(?:input|select|textarea|button)$/i,dt=/^h\d$/i,ft=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,jt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),wt=function(t,e,i){var s="0x"+e-65536;return s!==s||i?e:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},yt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,_t=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},xt=function(){L()},kt=l(function(t){return t.disabled===!0},{dir:"parentNode",next:"legend"});try{Z.apply(X=$.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(At){Z={apply:X.length?function(t,e){V.apply(t,$.call(e))}:function(t,e){for(var i=t.length,s=0;t[i++]=e[s++];);t.length=i-1}}}_=e.support={},A=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},L=e.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:H;return s!==I&&9===s.nodeType&&s.documentElement?(I=s,N=I.documentElement,M=!A(I),H!==I&&(i=I.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xt,!1):i.attachEvent&&i.attachEvent("onunload",xt)),_.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=o(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=ft.test(I.getElementsByClassName),_.getById=o(function(t){return N.appendChild(t).id=q,!I.getElementsByName||!I.getElementsByName(q).length}),_.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&M){var i=e.getElementById(t);return i?[i]:[]}},x.filter.ID=function(t){var e=t.replace(jt,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(jt,wt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),x.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,s=[],o=0,n=e.getElementsByTagName(t);if("*"===t){for(;i=n[o++];)1===i.nodeType&&s.push(i);return s}return n},x.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&M)return e.getElementsByClassName(t)},R=[],D=[],(_.qsa=ft.test(I.querySelectorAll))&&(o(function(t){N.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+q+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||D.push(".#.+[+~]")}),o(function(t){t.innerHTML="";var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&D.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(_.matchesSelector=ft.test(B=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&o(function(t){_.disconnectedMatch=B.call(t,"*"),B.call(t,"[s!='']:x"),R.push("!=",nt)}),D=D.length&&new RegExp(D.join("|")),R=R.length&&new RegExp(R.join("|")),e=ft.test(N.compareDocumentPosition),U=e||ft.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,s=e&&e.parentNode;return t===s||!(!s||1!==s.nodeType||!(i.contains?i.contains(s):t.compareDocumentPosition&&16&t.compareDocumentPosition(s)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},K=e?function(t,e){if(t===e)return z=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!_.sortDetached&&e.compareDocumentPosition(t)===i?t===I||t.ownerDocument===H&&U(H,t)?-1:e===I||e.ownerDocument===H&&U(H,e)?1:O?tt(O,t)-tt(O,e):0:4&i?-1:1)}:function(t,e){if(t===e)return z=!0,0;var i,s=0,o=t.parentNode,n=e.parentNode,h=[t],g=[e];if(!o||!n)return t===I?-1:e===I?1:o?-1:n?1:O?tt(O,t)-tt(O,e):0;if(o===n)return a(t,e);for(i=t;i=i.parentNode;)h.unshift(i);for(i=e;i=i.parentNode;)g.unshift(i);for(;h[s]===g[s];)s++;return s?a(h[s],g[s]):h[s]===H?-1:g[s]===H?1:0},I):I},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==I&&L(t),i=i.replace(ut,"='$1']"),_.matchesSelector&&M&&!Q[i+" "]&&(!R||!R.test(i))&&(!D||!D.test(i)))try{var s=B.call(t,i);if(s||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return s}catch(o){}return e(i,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&&L(t),U(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&&L(t);var i=x.attrHandle[e.toLowerCase()],s=i&&J.call(x.attrHandle,e.toLowerCase())?i(t,e,!M):void 0;return void 0!==s?s:_.attributes||!M?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},e.escape=function(t){return(t+"").replace(yt,_t)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],s=0,o=0;if(z=!_.detectDuplicates,O=!_.sortStable&&t.slice(0),t.sort(K),z){for(;e=t[o++];)e===t[o]&&(s=i.push(o));for(;s--;)t.splice(i[s],1)}return O=null,t},k=e.getText=function(t){var e,i="",s=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)i+=k(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[s++];)i+=k(e);return i},x=e.selectors={cacheLength:50,createPseudo:s,match:pt,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(jt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(jt,wt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&rt.test(i)&&(e=T(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(jt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=F[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&F(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,s){return function(o){var n=e.attr(o,t);return null==n?"!="===i:!i||(n+="","="===i?n===s:"!="===i?n!==s:"^="===i?s&&0===n.indexOf(s):"*="===i?s&&n.indexOf(s)>-1:"$="===i?s&&n.slice(-s.length)===s:"~="===i?(" "+n.replace(at," ")+" ").indexOf(s)>-1:"|="===i&&(n===s||n.slice(0,s.length+1)===s+"-"))}},CHILD:function(t,e,i,s,o){var n="nth"!==t.slice(0,3),a="last"!==t.slice(-4),h="of-type"===e;return 1===s&&0===o?function(t){return!!t.parentNode}:function(e,i,g){var c,u,r,m,p,l,d=n!==a?"nextSibling":"previousSibling",f=e.parentNode,b=h&&e.nodeName.toLowerCase(),v=!g&&!h,j=!1;if(f){if(n){for(;d;){for(m=e;m=m[d];)if(h?m.nodeName.toLowerCase()===b:1===m.nodeType)return!1;l=d="only"===t&&!l&&"nextSibling"}return!0}if(l=[a?f.firstChild:f.lastChild],a&&v){for(m=f,r=m[q]||(m[q]={}),u=r[m.uniqueID]||(r[m.uniqueID]={}),c=u[t]||[],p=c[0]===P&&c[1],j=p&&c[2],m=p&&f.childNodes[p];m=++p&&m&&m[d]||(j=p=0)||l.pop();)if(1===m.nodeType&&++j&&m===e){u[t]=[P,p,j];break}}else if(v&&(m=e,r=m[q]||(m[q]={}),u=r[m.uniqueID]||(r[m.uniqueID]={}),c=u[t]||[],p=c[0]===P&&c[1],j=p),j===!1)for(;(m=++p&&m&&m[d]||(j=p=0)||l.pop())&&((h?m.nodeName.toLowerCase()!==b:1!==m.nodeType)||!++j||(v&&(r=m[q]||(m[q]={}),u=r[m.uniqueID]||(r[m.uniqueID]={}),u[t]=[P,j]),m!==e)););return j-=o,j===s||j%s===0&&j/s>=0}}},PSEUDO:function(t,i){var o,n=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return n[q]?n(i):n.length>1?(o=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?s(function(t,e){for(var s,o=n(t,i),a=o.length;a--;)s=tt(t,o[a]),t[s]=!(e[s]=o[a])}):function(t){return n(t,0,o)}):n}},pseudos:{not:s(function(t){var e=[],i=[],o=C(t.replace(ht,"$1"));return o[q]?s(function(t,e,i,s){for(var n,a=o(t,null,s,[]),h=t.length;h--;)(n=a[h])&&(t[h]=!(e[h]=n))}):function(t,s,n){return e[0]=t,o(e,null,n,i),e[0]=null,!i.pop()}}),has:s(function(t){return function(i){return e(t,i).length>0}}),contains:s(function(t){return t=t.replace(jt,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:s(function(t){return mt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(jt,wt).toLowerCase(),function(e){var i;do if(i=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1; return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return dt.test(t.nodeName)},input:function(t){return lt.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:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[i<0?i+e:i]}),even:u(function(t,e){for(var i=0;i=0;)t.push(s);return t}),gt:u(function(t,e,i){for(var s=i<0?i+e:i;++s2&&"ID"===(a=n[0]).type&&_.getById&&9===e.nodeType&&M&&x.relative[n[1].type]){if(e=(x.find.ID(a.matches[0].replace(jt,wt),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(n.shift().value.length)}for(o=pt.needsContext.test(t)?0:n.length;o--&&(a=n[o],!x.relative[h=a.type]);)if((g=x.find[h])&&(s=g(a.matches[0].replace(jt,wt),vt.test(n[0].type)&&r(e.parentNode)||e))){if(n.splice(o,1),t=s.length&&p(n),!t)return Z.apply(i,s),i;break}}return(c||C(t,u))(s,e,!M,i,!e||vt.test(t)&&r(e.parentNode)||e),i},_.sortStable=q.split("").sort(K).join("")===q,_.detectDuplicates=!!z,L(),_.sortDetached=o(function(t){return 1&t.compareDocumentPosition(I.createElement("fieldset"))}),o(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||n("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&o(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||n("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||n(et,function(t,e,i){var s;if(!i)return t[e]===!0?e.toLowerCase():(s=t.getAttributeNode(e))&&s.specified?s.value:null}),e}(t);mt.find=bt,mt.expr=bt.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=bt.uniqueSort,mt.text=bt.getText,mt.isXMLDoc=bt.isXML,mt.contains=bt.contains,mt.escapeSelector=bt.escape;var vt=function(t,e,i){for(var s=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&mt(t).is(i))break;s.push(t)}return s},jt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},wt=mt.expr.match.needsContext,yt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,_t=/^.[^:#\[\.,]*$/;mt.filter=function(t,e,i){var s=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===s.nodeType?mt.find.matchesSelector(s,t)?[s]:[]:mt.find.matches(t,mt.grep(e,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var e,i,s=this.length,o=this;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(e=0;e1?mt.uniqueSort(i):i},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&wt.test(t)?mt(t):t||[],!1).length}});var xt,kt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,At=mt.fn.init=function(t,e,i){var s,o;if(!t)return this;if(i=i||xt,"string"==typeof t){if(s="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:kt.exec(t),!s||!s[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(s[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(s[1],e&&e.nodeType?e.ownerDocument||e:$,!0)),yt.test(s[1])&&mt.isPlainObject(e))for(s in e)mt.isFunction(this[s])?this[s](e[s]):this.attr(s,e[s]);return this}return o=$.getElementById(s[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==i.ready?i.ready(t):t(mt):mt.makeArray(t,this)};At.prototype=mt.fn,xt=mt($);var Tt=/^(?:parents|prev(?:Until|All))/,Ct={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e=mt(t,this),i=e.length;return this.filter(function(){for(var t=0;t-1:1===i.nodeType&&mt.find.matchesSelector(i,t))){n.push(i);break}return this.pushStack(n.length>1?mt.uniqueSort(n):n)},index:function(t){return t?"string"==typeof t?ot.call(mt(t),this[0]):ot.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vt(t,"parentNode")},parentsUntil:function(t,e,i){return vt(t,"parentNode",i)},next:function(t){return n(t,"nextSibling")},prev:function(t){return n(t,"previousSibling")},nextAll:function(t){return vt(t,"nextSibling")},prevAll:function(t){return vt(t,"previousSibling")},nextUntil:function(t,e,i){return vt(t,"nextSibling",i)},prevUntil:function(t,e,i){return vt(t,"previousSibling",i)},siblings:function(t){return jt((t.parentNode||{}).firstChild,t)},children:function(t){return jt(t.firstChild)},contents:function(t){return t.contentDocument||mt.merge([],t.childNodes)}},function(t,e){mt.fn[t]=function(i,s){var o=mt.map(this,e,i);return"Until"!==t.slice(-5)&&(s=i),s&&"string"==typeof s&&(o=mt.filter(s,o)),this.length>1&&(Ct[t]||mt.uniqueSort(o),Tt.test(t)&&o.reverse()),this.pushStack(o)}});var Et=/\S+/g;mt.Callbacks=function(t){t="string"==typeof t?a(t):mt.extend({},t);var e,i,s,o,n=[],h=[],g=-1,c=function(){for(o=t.once,s=e=!0;h.length;g=-1)for(i=h.shift();++g-1;)n.splice(i,1),i<=g&&g--}),this},has:function(t){return t?mt.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return o=h=[],n=i="",this},disabled:function(){return!n},lock:function(){return o=h=[],i||e||(n=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=i||[],i=[t,i.slice?i.slice():i],h.push(i),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!s}};return u},mt.extend({Deferred:function(e){var i=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],s="pending",o={state:function(){return s},always:function(){return n.done(arguments).fail(arguments),this},"catch":function(t){return o.then(null,t)},pipe:function(){var t=arguments;return mt.Deferred(function(e){mt.each(i,function(i,s){var o=mt.isFunction(t[s[4]])&&t[s[4]];n[s[1]](function(){var t=o&&o.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[s[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(e,s,o){function n(e,i,s,o){return function(){var c=this,u=arguments,r=function(){var t,r;if(!(e=a&&(s!==g&&(c=void 0,u=[t]),i.rejectWith(c,u))}};e?m():(mt.Deferred.getStackHook&&(m.stackTrace=mt.Deferred.getStackHook()),t.setTimeout(m))}}var a=0;return mt.Deferred(function(t){i[0][3].add(n(0,t,mt.isFunction(o)?o:h,t.notifyWith)),i[1][3].add(n(0,t,mt.isFunction(e)?e:h)),i[2][3].add(n(0,t,mt.isFunction(s)?s:g))}).promise()},promise:function(t){return null!=t?mt.extend(t,o):o}},n={};return mt.each(i,function(t,e){var a=e[2],h=e[5];o[e[1]]=a.add,h&&a.add(function(){s=h},i[3-t][2].disable,i[0][2].lock),a.add(e[3].fire),n[e[0]]=function(){return n[e[0]+"With"](this===n?void 0:this,arguments),this},n[e[0]+"With"]=a.fireWith}),o.promise(n),e&&e.call(n,n),n},when:function(t){var e=arguments.length,i=e,s=Array(i),o=et.call(arguments),n=mt.Deferred(),a=function(t){return function(i){s[t]=this,o[t]=arguments.length>1?et.call(arguments):i,--e||n.resolveWith(s,o)}};if(e<=1&&(c(t,n.done(a(i)).resolve,n.reject),"pending"===n.state()||mt.isFunction(o[i]&&o[i].then)))return n.then();for(;i--;)c(o[i],a(i),n.reject);return n.promise()}});var St=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&St.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},mt.readyException=function(e){t.setTimeout(function(){throw e})};var Ot=mt.Deferred();mt.fn.ready=function(t){return Ot.then(t)["catch"](function(t){mt.readyException(t)}),this},mt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?mt.readyWait++:mt.ready(!0)},ready:function(t){(t===!0?--mt.readyWait:mt.isReady)||(mt.isReady=!0,t!==!0&&--mt.readyWait>0||Ot.resolveWith($,[mt]))}}),mt.ready.then=Ot.then,"complete"===$.readyState||"loading"!==$.readyState&&!$.documentElement.doScroll?t.setTimeout(mt.ready):($.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u));var zt=function(t,e,i,s,o,n,a){var h=0,g=t.length,c=null==i;if("object"===mt.type(i)){o=!0;for(h in i)zt(t,e,h,i[h],!0,n,a)}else if(void 0!==s&&(o=!0,mt.isFunction(s)||(a=!0),c&&(a?(e.call(t,s),e=null):(c=e,e=function(t,e,i){return c.call(mt(t),i)})),e))for(;h1,null,!0)},removeData:function(t){return this.each(function(){Nt.remove(this,t)})}}),mt.extend({queue:function(t,e,i){var s;if(t)return e=(e||"fx")+"queue",s=It.get(t,e),i&&(!s||mt.isArray(i)?s=It.access(t,e,mt.makeArray(i)):s.push(i)),s||[]},dequeue:function(t,e){e=e||"fx";var i=mt.queue(t,e),s=i.length,o=i.shift(),n=mt._queueHooks(t,e),a=function(){mt.dequeue(t,e)};"inprogress"===o&&(o=i.shift(),s--),o&&("fx"===e&&i.unshift("inprogress"),delete n.stop,o.call(t,a,n)),!s&&n&&n.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return It.get(t,i)||It.access(t,i,{empty:mt.Callbacks("once memory").add(function(){It.remove(t,[e+"queue",i])})})}}),mt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]+)/i,Yt=/^$|\/(?:java|ecma)script/i,Qt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;var Kt=/<|&#?\w+;/;!function(){var t=$.createDocumentFragment(),e=t.appendChild($.createElement("div")),i=$.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),ut.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",ut.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Jt=$.documentElement,Xt=/^key/,Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vt=/^([^.]*)(?:\.(.+)|)/;mt.event={global:{},add:function(t,e,i,s,o){var n,a,h,g,c,u,r,m,p,l,d,f=It.get(t);if(f)for(i.handler&&(n=i,i=n.handler,o=n.selector),o&&mt.find.matchesSelector(Jt,o),i.guid||(i.guid=mt.guid++),(g=f.events)||(g=f.events={}),(a=f.handle)||(a=f.handle=function(e){return"undefined"!=typeof mt&&mt.event.triggered!==e.type?mt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Et)||[""],c=e.length;c--;)h=Vt.exec(e[c])||[],p=d=h[1],l=(h[2]||"").split(".").sort(),p&&(r=mt.event.special[p]||{},p=(o?r.delegateType:r.bindType)||p,r=mt.event.special[p]||{},u=mt.extend({type:p,origType:d,data:s,handler:i,guid:i.guid,selector:o,needsContext:o&&mt.expr.match.needsContext.test(o),namespace:l.join(".")},n),(m=g[p])||(m=g[p]=[],m.delegateCount=0,r.setup&&r.setup.call(t,s,l,a)!==!1||t.addEventListener&&t.addEventListener(p,a)),r.add&&(r.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?m.splice(m.delegateCount++,0,u):m.push(u),mt.event.global[p]=!0)},remove:function(t,e,i,s,o){var n,a,h,g,c,u,r,m,p,l,d,f=It.hasData(t)&&It.get(t);if(f&&(g=f.events)){for(e=(e||"").match(Et)||[""],c=e.length;c--;)if(h=Vt.exec(e[c])||[],p=d=h[1],l=(h[2]||"").split(".").sort(),p){for(r=mt.event.special[p]||{},p=(s?r.delegateType:r.bindType)||p,m=g[p]||[],h=h[2]&&new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=n=m.length;n--;)u=m[n],!o&&d!==u.origType||i&&i.guid!==u.guid||h&&!h.test(u.namespace)||s&&s!==u.selector&&("**"!==s||!u.selector)||(m.splice(n,1),u.selector&&m.delegateCount--,r.remove&&r.remove.call(t,u));a&&!m.length&&(r.teardown&&r.teardown.call(t,l,f.handle)!==!1||mt.removeEvent(t,p,f.handle),delete g[p])}else for(p in g)mt.event.remove(t,p+e[c],i,s,!0);mt.isEmptyObject(g)&&It.remove(t,"handle events")}},dispatch:function(t){var e,i,s,o,n,a,h=mt.event.fix(t),g=new Array(arguments.length),c=(It.get(this,"events")||{})[h.type]||[],u=mt.event.special[h.type]||{};for(g[0]=h,e=1;e-1:mt.find(o,this,null,[g]).length),s[o]&&s.push(n);s.length&&a.push({elem:g,handlers:s})}return h\x20\t\r\n\f]*)[^>]*)\/>/gi,$t=/\s*$/g;mt.extend({htmlPrefilter:function(t){return t.replace(Zt,"<$1>")},clone:function(t,e,i){var s,o,n,a,h=t.cloneNode(!0),g=mt.contains(t.ownerDocument,t);if(!(ut.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||mt.isXMLDoc(t)))for(a=f(h),n=f(t),s=0,o=n.length;s0&&b(a,!g&&f(t,"script")),h},cleanData:function(t){for(var e,i,s,o=mt.event.special,n=0;void 0!==(i=t[n]);n++)if(Lt(i)){if(e=i[It.expando]){if(e.events)for(s in e.events)o[s]?mt.event.remove(i,s):mt.removeEvent(i,s,e.handle);i[It.expando]=void 0}i[Nt.expando]&&(i[Nt.expando]=void 0)}}}),mt.fn.extend({detach:function(t){return S(this,t,!0)},remove:function(t){return S(this,t)},text:function(t){return zt(this,function(t){return void 0===t?mt.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 E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.appendChild(t)}})},prepend:function(){return E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return E(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&&(mt.cleanData(f(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return mt.clone(this,t,e)})},html:function(t){return zt(this,function(t){var e=this[0]||{},i=0,s=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!$t.test(t)&&!Qt[(Ft.exec(t)||["",""])[1].toLowerCase()]){t=mt.htmlPrefilter(t);try{for(;i1)}}),mt.Tween=D,D.prototype={constructor:D,init:function(t,e,i,s,o,n){this.elem=t,this.prop=i,this.easing=o||mt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=s,this.unit=n||(mt.cssNumber[i]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,i=D.propHooks[this.prop];return this.options.duration?this.pos=e=mt.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),i&&i.set?i.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.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=mt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){mt.fx.step[t.prop]?mt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[mt.cssProps[t.prop]]&&!mt.cssHooks[t.prop]?t.elem[t.prop]=t.now:mt.style(t.elem,t.prop,t.now+t.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},mt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},mt.fx=D.prototype.init,mt.fx.step={};var re,me,pe=/^(?:toggle|show|hide)$/,le=/queueHooks$/;mt.Animation=mt.extend(G,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return p(i.elem,t,Bt.exec(e),i),i}]},tweener:function(t,e){mt.isFunction(t)?(e=t,t=["*"]):t=t.match(Et);for(var i,s=0,o=t.length;s1)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,e,i){var s,o,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return"undefined"==typeof t.getAttribute?mt.prop(t,e,i):(1===n&&mt.isXMLDoc(t)||(o=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?de:void 0)),void 0!==i?null===i?void mt.removeAttr(t,e):o&&"set"in o&&void 0!==(s=o.set(t,i,e))?s:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(s=o.get(t,e))?s:(s=mt.find.attr(t,e),null==s?void 0:s))},attrHooks:{type:{set:function(t,e){if(!ut.radioValue&&"radio"===e&&mt.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,s=0,o=e&&e.match(Et);if(o&&1===t.nodeType)for(;i=o[s++];)t.removeAttribute(i)}}),de={set:function(t,e,i){return e===!1?mt.removeAttr(t,i):t.setAttribute(i,i),i}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=fe[e]||mt.find.attr;fe[e]=function(t,e,s){var o,n,a=e.toLowerCase();return s||(n=fe[a],fe[a]=o,o=null!=i(t,e,s)?a:null,fe[a]=n),o}});var be=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return zt(this,mt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,e,i){var s,o,n=t.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&mt.isXMLDoc(t)||(e=mt.propFix[e]||e,o=mt.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(s=o.set(t,i,e))?s:t[e]=i:o&&"get"in o&&null!==(s=o.get(t,e))?s:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):be.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ut.optSelected||(mt.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)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this});var je=/[\t\r\n\f]/g;mt.fn.extend({addClass:function(t){var e,i,s,o,n,a,h,g=0;if(mt.isFunction(t))return this.each(function(e){mt(this).addClass(t.call(this,e,F(this)))});if("string"==typeof t&&t)for(e=t.match(Et)||[];i=this[g++];)if(o=F(i),s=1===i.nodeType&&(" "+o+" ").replace(je," ")){for(a=0;n=e[a++];)s.indexOf(" "+n+" ")<0&&(s+=n+" ");h=mt.trim(s),o!==h&&i.setAttribute("class",h)}return this},removeClass:function(t){var e,i,s,o,n,a,h,g=0;if(mt.isFunction(t))return this.each(function(e){mt(this).removeClass(t.call(this,e,F(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Et)||[];i=this[g++];)if(o=F(i),s=1===i.nodeType&&(" "+o+" ").replace(je," ")){for(a=0;n=e[a++];)for(;s.indexOf(" "+n+" ")>-1;)s=s.replace(" "+n+" "," ");h=mt.trim(s),o!==h&&i.setAttribute("class",h)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):mt.isFunction(t)?this.each(function(i){mt(this).toggleClass(t.call(this,i,F(this),e),e)}):this.each(function(){var e,s,o,n;if("string"===i)for(s=0,o=mt(this),n=t.match(Et)||[];e=n[s++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||(e=F(this),e&&It.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":It.get(this,"__className__")||""))})},hasClass:function(t){var e,i,s=0;for(e=" "+t+" ";i=this[s++];)if(1===i.nodeType&&(" "+F(i)+" ").replace(je," ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g,ye=/[\x20\t\r\n\f]+/g;mt.fn.extend({val:function(t){var e,i,s,o=this[0];return arguments.length?(s=mt.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(o=s?t.call(this,i,mt(this).val()):t,null==o?o="":"number"==typeof o?o+="":mt.isArray(o)&&(o=mt.map(o,function(t){return null==t?"":t+""})),e=mt.valHooks[this.type]||mt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=mt.valHooks[o.type]||mt.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(we,""):null==i?"":i)):void 0}}),mt.extend({valHooks:{option:{get:function(t){var e=mt.find.attr(t,"value");return null!=e?e:mt.trim(mt.text(t)).replace(ye," ")}},select:{get:function(t){for(var e,i,s=t.options,o=t.selectedIndex,n="select-one"===t.type,a=n?null:[],h=n?o+1:s.length,g=o<0?h:n?o:0;g-1)&&(i=!0);return i||(t.selectedIndex=-1),n}}}}),mt.each(["radio","checkbox"],function(){mt.valHooks[this]={set:function(t,e){if(mt.isArray(e))return t.checked=mt.inArray(mt(t).val(),e)>-1}},ut.checkOn||(mt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var _e=/^(?:focusinfocus|focusoutblur)$/;mt.extend(mt.event,{trigger:function(e,i,s,o){var n,a,h,g,c,u,r,m=[s||$],p=ht.call(e,"type")?e.type:e,l=ht.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=s||$,3!==s.nodeType&&8!==s.nodeType&&!_e.test(p+mt.event.triggered)&&(p.indexOf(".")>-1&&(l=p.split("."),p=l.shift(),l.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[mt.expando]?e:new mt.Event(p,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=l.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=s),i=null==i?[e]:mt.makeArray(i,[e]),r=mt.event.special[p]||{},o||!r.trigger||r.trigger.apply(s,i)!==!1)){if(!o&&!r.noBubble&&!mt.isWindow(s)){for(g=r.delegateType||p,_e.test(g+p)||(a=a.parentNode);a;a=a.parentNode)m.push(a),h=a;h===(s.ownerDocument||$)&&m.push(h.defaultView||h.parentWindow||t)}for(n=0;(a=m[n++])&&!e.isPropagationStopped();)e.type=n>1?g:r.bindType||p,u=(It.get(a,"events")||{})[e.type]&&It.get(a,"handle"),u&&u.apply(a,i),u=c&&a[c],u&&u.apply&&Lt(a)&&(e.result=u.apply(a,i),e.result===!1&&e.preventDefault());return e.type=p,o||e.isDefaultPrevented()||r._default&&r._default.apply(m.pop(),i)!==!1||!Lt(s)||c&&mt.isFunction(s[p])&&!mt.isWindow(s)&&(h=s[c],h&&(s[c]=null),mt.event.triggered=p,s[p](),mt.event.triggered=void 0,h&&(s[c]=h)),e.result}},simulate:function(t,e,i){var s=mt.extend(new mt.Event,i,{type:t,isSimulated:!0});mt.event.trigger(s,null,e)}}),mt.fn.extend({trigger:function(t,e){return this.each(function(){mt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return mt.event.trigger(t,e,i,!0)}}),mt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){mt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),mt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),ut.focusin="onfocusin"in t,ut.focusin||mt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){mt.event.simulate(e,t.target,mt.event.fix(t))};mt.event.special[e]={setup:function(){var s=this.ownerDocument||this,o=It.access(s,e);o||s.addEventListener(t,i,!0),It.access(s,e,(o||0)+1)},teardown:function(){var s=this.ownerDocument||this,o=It.access(s,e)-1;o?It.access(s,e,o):(s.removeEventListener(t,i,!0),It.remove(s,e))}}});var xe=t.location,ke=mt.now(),Ae=/\?/;mt.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(s){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||mt.error("Invalid XML: "+e),i};var Te=/\[\]$/,Ce=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;mt.param=function(t,e){var i,s=[],o=function(t,e){var i=mt.isFunction(e)?e():e;s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(mt.isArray(t)||t.jquery&&!mt.isPlainObject(t))mt.each(t,function(){o(this.name,this.value)});else for(i in t)Y(i,t[i],e,o);return s.join("&")},mt.fn.extend({serialize:function(){return mt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=mt.prop(this,"elements");return t?mt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!mt(this).is(":disabled")&&Se.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!Gt.test(t))}).map(function(t,e){var i=mt(this).val();return null==i?null:mt.isArray(i)?mt.map(i,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:i.replace(Ce,"\r\n")}}).get()}});var Oe=/%20/g,ze=/#.*$/,Le=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ne=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Me=/^(?:GET|HEAD)$/,De=/^\/\//,Re={},Be={},Ue="*/".concat("*"),qe=$.createElement("a");qe.href=xe.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:Ne.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,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":mt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?J(J(t,mt.ajaxSettings),e):J(mt.ajaxSettings,t)},ajaxPrefilter:Q(Re),ajaxTransport:Q(Be),ajax:function(e,i){function s(e,i,s,h){var c,m,p,w,y,_=i;u||(u=!0,g&&t.clearTimeout(g),o=void 0,a=h||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(w=X(l,x,s)),w=W(l,w,x,c),c?(l.ifModified&&(y=x.getResponseHeader("Last-Modified"),y&&(mt.lastModified[n]=y),y=x.getResponseHeader("etag"),y&&(mt.etag[n]=y)),204===e||"HEAD"===l.type?_="nocontent":304===e?_="notmodified":(_=w.state,m=w.data,p=w.error,c=!p)):(p=_,!e&&_||(_="error",e<0&&(e=0))),x.status=e,x.statusText=(i||_)+"",c?b.resolveWith(d,[m,_,x]):b.rejectWith(d,[x,_,p]),x.statusCode(j),j=void 0,r&&f.trigger(c?"ajaxSuccess":"ajaxError",[x,l,c?m:p]),v.fireWith(d,[x,_]),r&&(f.trigger("ajaxComplete",[x,l]),--mt.active||mt.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var o,n,a,h,g,c,u,r,m,p,l=mt.ajaxSetup({},i),d=l.context||l,f=l.context&&(d.nodeType||d.jquery)?mt(d):mt.event,b=mt.Deferred(),v=mt.Callbacks("once memory"),j=l.statusCode||{},w={},y={},_="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(u){if(!h)for(h={};e=Ie.exec(a);)h[e[1].toLowerCase()]=e[2];e=h[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(t,e){return null==u&&(t=y[t.toLowerCase()]=y[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(l.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)x.always(t[x.status]);else for(e in t)j[e]=[j[e],t[e]];return this},abort:function(t){var e=t||_;return o&&o.abort(e),s(0,e),this}};if(b.promise(x),l.url=((e||l.url||xe.href)+"").replace(De,xe.protocol+"//"),l.type=i.method||i.type||l.method||l.type,l.dataTypes=(l.dataType||"*").toLowerCase().match(Et)||[""],null==l.crossDomain){c=$.createElement("a");try{c.href=l.url,c.href=c.href,l.crossDomain=qe.protocol+"//"+qe.host!=c.protocol+"//"+c.host}catch(k){l.crossDomain=!0}}if(l.data&&l.processData&&"string"!=typeof l.data&&(l.data=mt.param(l.data,l.traditional)),K(Re,l,i,x),u)return x;r=mt.event&&l.global,r&&0===mt.active++&&mt.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Me.test(l.type),n=l.url.replace(ze,""),l.hasContent?l.data&&l.processData&&0===(l.contentType||"").indexOf("application/x-www-form-urlencoded")&&(l.data=l.data.replace(Oe,"+")):(p=l.url.slice(n.length),l.data&&(n+=(Ae.test(n)?"&":"?")+l.data,delete l.data),l.cache===!1&&(n=n.replace(Le,""),p=(Ae.test(n)?"&":"?")+"_="+ke++ +p),l.url=n+p),l.ifModified&&(mt.lastModified[n]&&x.setRequestHeader("If-Modified-Since",mt.lastModified[n]),mt.etag[n]&&x.setRequestHeader("If-None-Match",mt.etag[n])),(l.data&&l.hasContent&&l.contentType!==!1||i.contentType)&&x.setRequestHeader("Content-Type",l.contentType),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Ue+"; q=0.01":""):l.accepts["*"]);for(m in l.headers)x.setRequestHeader(m,l.headers[m]);if(l.beforeSend&&(l.beforeSend.call(d,x,l)===!1||u))return x.abort();if(_="abort",v.add(l.complete),x.done(l.success),x.fail(l.error),o=K(Be,l,i,x)){if(x.readyState=1,r&&f.trigger("ajaxSend",[x,l]),u)return x;l.async&&l.timeout>0&&(g=t.setTimeout(function(){x.abort("timeout")},l.timeout));try{u=!1,o.send(w,s)}catch(k){if(u)throw k;s(-1,k)}}else s(-1,"No Transport");return x},getJSON:function(t,e,i){return mt.get(t,e,i,"json")},getScript:function(t,e){return mt.get(t,void 0,e,"script")}}),mt.each(["get","post"],function(t,e){mt[e]=function(t,i,s,o){return mt.isFunction(i)&&(o=o||s,s=i,i=void 0),mt.ajax(mt.extend({url:t,type:e,dataType:o,data:i,success:s},mt.isPlainObject(t)&&t))}}),mt._evalUrl=function(t){return mt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},mt.fn.extend({wrapAll:function(t){var e;return this[0]&&(mt.isFunction(t)&&(t=t.call(this[0])),e=mt(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 mt.isFunction(t)?this.each(function(e){mt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=mt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=mt.isFunction(t);return this.each(function(i){mt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){mt(this).replaceWith(this.childNodes)}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var He={0:200,1223:204},Pe=mt.ajaxSettings.xhr();ut.cors=!!Pe&&"withCredentials"in Pe,ut.ajax=Pe=!!Pe,mt.ajaxTransport(function(e){var i,s;if(ut.cors||Pe&&!e.crossDomain)return{send:function(o,n){var a,h=e.xhr();if(h.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)h[a]=e.xhrFields[a];e.mimeType&&h.overrideMimeType&&h.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)h.setRequestHeader(a,o[a]);i=function(t){return function(){i&&(i=s=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===t?h.abort():"error"===t?"number"!=typeof h.status?n(0,"error"):n(h.status,h.statusText):n(He[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=i(),s=h.onerror=i("error"),void 0!==h.onabort?h.onabort=s:h.onreadystatechange=function(){4===h.readyState&&t.setTimeout(function(){i&&s()})},i=i("abort");try{h.send(e.hasContent&&e.data||null)}catch(g){if(i)throw g}},abort:function(){i&&i()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.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 mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(s,o){e=mt("