// ==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=/