From e79968d2fb8e8bc16f60f591b7f7d858e3e5cb43 Mon Sep 17 00:00:00 2001
From: Ismail Moghul
Date: Thu, 6 Sep 2018 02:02:17 +0100
Subject: [PATCH] attempt at #116
---
aux/html_files/js/gv.compiled.min.js | 2 +-
aux/source_assets/js/plots.js | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/aux/html_files/js/gv.compiled.min.js b/aux/html_files/js/gv.compiled.min.js
index aa49d43d..82a3d7d1 100644
--- a/aux/html_files/js/gv.compiled.min.js
+++ b/aux/html_files/js/gv.compiled.min.js
@@ -1 +1 @@
-if(function(t,e){"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(p,t){var e=[],c=e.slice,g=e.concat,s=e.push,i=e.indexOf,n={},r=n.toString,v=n.hasOwnProperty,m={},y=p.document,o="2.1.1",C=function(t,e){return new C.fn.init(t,e)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,l=/-([\da-z])/gi,f=function(t,e){return e.toUpperCase()};function h(t){var e=t.length,n=C.type(t);return"function"!==n&&!C.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),G=new RegExp(z),Y=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),rt=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)};try{j.apply(e=P.call(T.childNodes),T.childNodes),e[T.childNodes.length].nodeType}catch(t){j={apply:e.length?function(t,e){L.apply(t,P.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,n,r){var i,o,a,s,u,l,c,f,h,d;if((e?e.ownerDocument||e:T)!==M&&m(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||M).nodeType)&&9!==s)return[];if(y&&!r){if(i=K.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&C(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return j.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&p.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(a)),n}if(p.qsa&&(!x||!x.test(t))){if(f=c=k,h=e,d=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=g(t),(c=e.getAttribute("id"))?f=c.replace(et,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+gt(l[u]);h=tt.test(t)&&dt(e.parentNode)||e,d=l.join(",")}if(d)try{return j.apply(n,h.querySelectorAll(d)),n}catch(t){}finally{c||e.removeAttribute("id")}}}return v(t.replace(W,"$1"),e,n,r)}function ot(){var r=[];return function t(e,n){return r.push(e+" ")>b.cacheLength&&delete t[r.shift()],t[e+" "]=n}}function at(t){return t[k]=!0,t}function st(t){var e=M.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("|"),r=t.length;r--;)b.attrHandle[n[r]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||$)-(~t.sourceIndex||$);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ft(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function ht(a){return at(function(o){return o=+o,at(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function dt(t){return t&&typeof t.getElementsByTagName!==N&&t}for(t in p=it.support={},r=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},m=it.setDocument=function(t){var e,u=t?t.ownerDocument||t:T,n=u.defaultView;return u!==M&&9===u.nodeType&&u.documentElement?(i=(M=u).documentElement,y=!r(u),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){m()},!1):n.attachEvent&&n.attachEvent("onunload",function(){m()})),p.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=st(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(u.getElementsByClassName)&&st(function(t){return t.innerHTML="",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),p.getById=st(function(t){return i.appendChild(t).id=k,!u.getElementsByName||!u.getElementsByName(k).length}),p.getById?(b.find.ID=function(t,e){if(typeof e.getElementById!==N&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var n=t.replace(nt,rt);return function(t){var e=typeof t.getAttributeNode!==N&&t.getAttributeNode("id");return e&&e.value===n}}),b.find.TAG=p.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==N?e.getElementsByTagName(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},b.find.CLASS=p.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==N&&y?e.getElementsByClassName(t):void 0},a=[],x=[],(p.qsa=J.test(u.querySelectorAll))&&(st(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&x.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||x.push("\\["+O+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||x.push(":checked")}),st(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&x.push("name"+O+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||x.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),x.push(",.*:")})),(p.matchesSelector=J.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&st(function(t){p.disconnectedMatch=s.call(t,"div"),s.call(t,"[s!='']:x"),a.push("!=",z)}),x=x.length&&new RegExp(x.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(i.compareDocumentPosition),C=e||J.test(i.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},_=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument===T&&C(T,t)?-1:e===u||e.ownerDocument===T&&C(T,e)?1:l?q.call(l,t)-q.call(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===u?-1:e===u?1:i?-1:o?1:l?q.call(l,t)-q.call(l,e):0;if(i===o)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0},u):M},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==M&&m(t),e=e.replace(U,"='$1']"),!(!p.matchesSelector||!y||a&&a.test(e)||x&&x.test(e)))try{var n=s.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===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]||it.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]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=g(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(nt,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=u[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==N&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=it.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function M(t,n,r){if(C.isFunction(n))return C.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return C.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(w.test(n))return C.filter(n,t,r);n=C.filter(n,t)}return C.grep(t,function(t){return 0<=i.call(n,t)!==r})}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||k).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),b.test(n[1])&&C.isPlainObject(e))for(n in e)C.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=y.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=y,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==k.ready?k.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this))}).prototype=C.fn,k=C(y);var E=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function _(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;tx",m.noCloneChecked=!!F.cloneNode(!0).lastChild.defaultValue;var U="undefined";m.focusinBubbles="onfocusin"in p;var G=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function J(){return!1}function K(){try{return y.activeElement}catch(t){}}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=P.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=C.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof C!==U&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match($)||[""]).length;l--;)d=g=(s=Q.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=C.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=C.event.special[d]||{},c=C.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,v=P.hasData(t)&&P.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match($)||[""]).length;l--;)if(d=g=(s=Q.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=C.event.special[d]||{},h=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||C.removeEvent(t,d,v.handle),delete u[d])}else for(d in u)C.event.remove(t,d+e[l],n,r,!0);C.isEmptyObject(u)&&(delete v.handle,P.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,u,l,c,f=[n||y],h=v.call(t,"type")?t.type:t,d=v.call(t,"namespace")?t.namespace.split("."):[];if(o=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!X.test(h+C.event.triggered)&&(0<=h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),u=h.indexOf(":")<0&&"on"+h,(t=t[C.expando]?t:new C.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),c=C.event.special[h]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!C.isWindow(n)){for(s=c.delegateType||h,X.test(s+h)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||p)}for(i=0;(o=f[i++])&&!t.isPropagationStopped();)t.type=1]*)\/>/gi,et=/<([\w:]+)/,nt=/<|?\w+;/,rt=/<(?:script|style|link)/i,it=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^$|\/(?:java|ecma)script/i,at=/^true\/(.*)/,st=/^\s*\s*$/g,ut={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function lt(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function ft(t){var e=at.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function ht(t,e){for(var n=0,r=t.length;n$2>")+s[2],l=s[0];l--;)o=o.lastChild;C.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===C.inArray(i,r))&&(u=C.contains(i.ownerDocument,i),o=pt(c.appendChild(i),"script"),u&&ht(o),n))for(l=0;i=o[l++];)ot.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=C.event.special,a=0;void 0!==(n=t[a]);a++){if(C.acceptData(n)&&((i=n[P.expando])&&(e=P.cache[i]))){if(e.events)for(r in e.events)o[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);P.cache[i]&&delete P.cache[i]}delete q.cache[n[q.expando]]}}}),C.fn.extend({text:function(t){return L(this,function(t){return void 0===t?C.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 this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||lt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?C.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||C.cleanData(pt(n)),n.parentNode&&(e&&C.contains(n.ownerDocument,n)&&ht(pt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return L(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&&!rt.test(t)&&!ut[(et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(tt,"<$1>$2>");try{for(;n")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=mt(t,e),gt.detach()),vt[t]=n),n}var xt=/^margin/,bt=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),wt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function Mt(t,e,n){var r,i,o,a,s=t.style;return(n=n||wt(t))&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||C.contains(t.ownerDocument,t)||(a=C.style(t,e)),bt.test(a)&&xt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ct(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,n,r=y.documentElement,i=y.createElement("div"),o=y.createElement("div");if(o.style){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var t=p.getComputedStyle(o,null);e="1%"!==t.top,n="4px"===t.width,r.removeChild(i)}o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),p.getComputedStyle&&C.extend(m,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},reliableMarginRight:function(){var t,e=o.appendChild(y.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(p.getComputedStyle(e,null).marginRight),r.removeChild(i),t}})}}(),C.swap=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};var kt=/^(none|table(?!-c[ea]).+)/,Tt=new RegExp("^("+z+")(.*)$","i"),Et=new RegExp("^([+-])=("+z+")","i"),St={position:"absolute",visibility:"hidden",display:"block"},_t={letterSpacing:"0",fontWeight:"400"},Nt=["Webkit","O","Moz","ms"];function $t(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Nt.length;i--;)if((e=Nt[i]+n)in t)return e;return r}function At(t,e,n){var r=Tt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Dt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=C.css(t,n+W[o],!0,i)),r?("content"===n&&(a-=C.css(t,"padding"+W[o],!0,i)),"margin"!==n&&(a-=C.css(t,"border"+W[o]+"Width",!0,i))):(a+=C.css(t,"padding"+W[o],!0,i),"padding"!==n&&(a+=C.css(t,"border"+W[o]+"Width",!0,i)));return a}function Lt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=wt(t),a="border-box"===C.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Mt(t,e,o))<0||null==i)&&(i=t.style[e]),bt.test(i))return i;r=a&&(m.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Dt(t,e,n||(a?"border":"content"),r,o)+"px"}function jt(t,e){for(var n,r,i,o=[],a=0,s=t.length;a").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),y.head.appendChild(r[0])},abort:function(){i&&i()}}});var Se=[],_e=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Se.pop()||C.expando+"_"+ee++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(_e.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_e.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(_e,"$1"+r):!1!==t.jsonp&&(t.url+=(ne.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||C.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=p[r],p[r]=function(){o=arguments},n.always(function(){p[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Se.push(r)),o&&C.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),C.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||y;var r=b.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=C.buildFragment([t],e,i),i&&i.length&&C(i).remove(),C.merge([],r.childNodes))};var Ne=C.fn.load;C.fn.load=function(t,e,n){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return 0<=s&&(r=C.trim(t.slice(s)),t=t.slice(0,s)),C.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0").append(C.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length};var $e=p.document.documentElement;function Ae(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=C.css(t,"position"),c=C(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=C.css(t,"top"),u=C.css(t,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),C.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):c.css(f)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,C.contains(t,r)?(typeof r.getBoundingClientRect!==U&&(i=r.getBoundingClientRect()),n=Ae(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===C.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),C.nodeName(t[0],"html")||(r=t.offset()),r.top+=C.css(t[0],"borderTopWidth",!0),r.left+=C.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-C.css(n,"marginTop",!0),left:e.left-r.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||$e;t&&!C.nodeName(t,"html")&&"static"===C.css(t,"position");)t=t.offsetParent;return t||$e})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;C.fn[e]=function(t){return L(this,function(t,e,n){var r=Ae(t);return void 0===n?r?r[i]:t[e]:void(r?r.scrollTo(o?p.pageXOffset:n,o?n:p.pageYOffset):t[e]=n)},e,t,arguments.length,null)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Ct(m.pixelPosition,function(t,e){return e?(e=Mt(t,n),bt.test(e)?C(t).position()[n]+"px":e):void 0})}),C.each({Height:"height",Width:"width"},function(o,a){C.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){C.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return L(this,function(t,e,n){var r;return C.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?C.css(t,e,i):C.style(t,e,n,i)},a,n?t:void 0,n,null)}})}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var De=p.jQuery,Le=p.$;return C.noConflict=function(t){return p.$===C&&(p.$=Le),t&&p.jQuery===C&&(p.jQuery=De),C},typeof t===U&&(p.jQuery=p.$=C),C}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");var GV;function initTableSorter(){$.tablesorter.addParser({id:"star_scores",is:function(){return!1},format:function(t,e,n,r){var i=$(n);return 1===r&&i.attr("data-score")||t},parsed:!1,type:"numeric"}),$("table").tablesorter({headers:{1:{sorter:"star_scores"}},sortList:[[0,0]]})}!function(r){"use strict";r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;r(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||r(n).trigger(r.support.transition.end)},t),this},r(function(){r.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(t){return r(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(o){"use strict";var e='[data-dismiss="alert"]',r=function(t){o(t).on("click",e,this.close)};r.VERSION="3.2.0",r.prototype.close=function(t){function e(){i.detach().trigger("closed.bs.alert").remove()}var n=o(this),r=n.attr("data-target");r||(r=(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var i=o(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(150):e())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(o){"use strict";function n(r){return this.each(function(){var t=o(this),e=t.data("bs.button"),n="object"==typeof r&&r;e||t.data("bs.button",e=new i(this,n)),"toggle"==r?e.toggle():r&&e.setState(r)})}var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();t+="Text",null==i.resetText&&n.data("resetText",n[r]()),n[r](null==i[t]?this.options[t]:i[t]),setTimeout(o.proxy(function(){"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=i,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),n.call(e,"toggle"),t.preventDefault()})}(jQuery),function(h){"use strict";function a(i){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),n=h.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("bs.carousel",e=new o(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})}var o=function(t,e){this.$element=h(t).on("keydown.bs.carousel",h.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))};o.VERSION="3.2.0",o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},o.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},o.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n .panel > .in");if(e&&e.length){var n=e.data("bs.collapse");if(n&&n.transitioning)return;c.call(e,"hide"),n||e.data("bs.collapse",null)}var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!l.support.transition)return i.call(this);var o=l.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",l.proxy(i,this)).emulateTransitionEnd(350)[r](this.$element[0][o])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=l.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return l.support.transition?void this.$element[e](0).one("bsTransitionEnd",l.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=l.fn.collapse;l.fn.collapse=c,l.fn.collapse.Constructor=i,l.fn.collapse.noConflict=function(){return l.fn.collapse=t,this},l(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e,n=l(this),r=n.attr("data-target")||t.preventDefault()||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=l(r),o=i.data("bs.collapse"),a=o?"toggle":n.data(),s=n.attr("data-parent"),u=s&&l(s);o&&o.transitioning||(u&&u.find('[data-toggle="collapse"][data-parent="'+s+'"]').not(n).addClass("collapsed"),n[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),c.call(i,a)})}(jQuery),function(s){"use strict";function o(n){n&&3===n.which||(s(t).remove(),s(l).each(function(){var t=u(s(this)),e={relatedTarget:this};t.hasClass("open")&&(t.trigger(n=s.Event("hide.bs.dropdown",e)),n.isDefaultPrevented()||t.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function u(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&s(e);return n&&n.length?n:t.parent()}var t=".dropdown-backdrop",l='[data-toggle="dropdown"]',r=function(t){s(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s('').insertAfter(s(this)).on("click",o);var i={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",i)}return!1}},r.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(!r||r&&27==t.keyCode)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var i=" li:not(.divider):visible a",o=n.find('[role="menu"]'+i+', [role="listbox"]'+i);if(o.length){var a=o.index(o.filter(":focus"));38==t.keyCode&&0').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(150):i()}else t&&t()},s.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=a,o.fn.modal.Constructor=s,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),i=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),a.call(r,i,this)})}(jQuery),function(v){"use strict";var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(t,e,n){this.enabled=!0,this.type=t,this.$element=v(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&v(this.options.viewport.selector||this.options.viewport);for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o=r[i];if("click"==o)this.$element.on("click."+this.type,this.options.selector,v.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,v.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,v.proxy(this.leave,this))}}this.options.selector?this._options=v.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return(t=v.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&v.each(this._options,function(t,e){r[t]!=e&&(n[t]=e)}),n},i.prototype.enter=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show()},i.prototype.leave=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide()},i.prototype.show=function(){var t=v.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=v.contains(document.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,r=this.tip(),i=this.getUID(this.type);this.setContent(),r.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition(),l=r[0].offsetWidth,c=r[0].offsetHeight;if(s){var f=o,h=this.$element.parent(),d=this.getPosition(h);o="bottom"==o&&u.top+u.height+c-d.scroll>d.height?"top":"top"==o&&u.top-d.scroll-c<0?"bottom":"right"==o&&u.right+l>d.width?"left":"left"==o&&u.left-la.top+a.height&&(i.top=a.top+a.height-u)}else{var l=e.left-o,c=e.left+o+n;la.width&&(i.left=a.left+a.width-c)}return i},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},i.prototype.tip=function(){return this.$tip=this.$tip||v(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var e=this;t&&((e=v(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e))),e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var t=v.fn.tooltip;v.fn.tooltip=function(r){return this.each(function(){var t=v(this),e=t.data("bs.tooltip"),n="object"==typeof r&&r;(e||"destroy"!=r)&&(e||t.data("bs.tooltip",e=new i(this,n)),"string"==typeof r&&e[r]())})},v.fn.tooltip.Constructor=i,v.fn.tooltip.noConflict=function(){return v.fn.tooltip=t,this}}(jQuery),function(i){"use strict";var o=function(t,e){this.init("popover",t,e)};if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.2.0",o.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype),(o.prototype.constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},o.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var t=i.fn.popover;i.fn.popover=function(r){return this.each(function(){var t=i(this),e=t.data("bs.popover"),n="object"==typeof r&&r;(e||"destroy"!=r)&&(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof r&&e[r]())})},i.fn.popover.Constructor=o,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),function(o){"use strict";function i(t,e){var n=o.proxy(this.process,this);this.$body=o("body"),this.$scrollElement=o(o(t).is("body")?window:t),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n),this.refresh(),this.process()}function e(r){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof r&&r;e||t.data("bs.scrollspy",e=new i(this,n)),"string"==typeof r&&e[r]()})}i.VERSION="3.2.0",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var r="offset",i=0;o.isWindow(this.$scrollElement[0])||(r="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var t=this;this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[r]().top+i,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<=i[0])return a!=(t=o[0])&&this.activate(t);for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(o[t])},i.prototype.activate=function(t){this.activeTarget=t,o(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=o(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof n&&e[n]()})}var r=function(t){this.element=a(t)};r.VERSION="3.2.0",r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=e.find(".active:last a")[0],i=a.Event("show.bs.tab",{relatedTarget:r});if(t.trigger(i),!i.isDefaultPrevented()){var o=a(n);this.activate(t.closest("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})}}},r.prototype.activate=function(t,e,n){function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}var i=e.find("> .active"),o=n&&a.support.transition&&i.hasClass("fade");o?i.one("bsTransitionEnd",r).emulateTransitionEnd(150):r(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e.call(a(this),"show")})}(jQuery),function(l){"use strict";function n(r){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof r&&r;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof r&&e[r]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.2.0",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=l(document).height(),e=this.$target.scrollTop(),n=this.$element.offset(),r=this.options.offset,i=r.top,o=r.bottom;"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=!(null!=this.unpin&&e+this.unpin<=n.top)&&(null!=o&&n.top+this.$element.height()>=t-o?"bottom":null!=i&&e<=i&&"top");if(this.affixed!==a){null!=this.unpin&&this.$element.css("top","");var s="affix"+(a?"-"+a:""),u=l.Event(s+".bs.affix");this.$element.trigger(u),u.isDefaultPrevented()||(this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(s).trigger(l.Event(s.replace("affix","affixed"))),"bottom"==a&&this.$element.offset({top:t-this.$element.height()-o}))}}};var t=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(S){S.extend({tablesorter:new function(){function w(){var t=arguments[0],e=1':"",u.$headers=S(e).find(u.selectorHeaders).each(function(t){r=S(this),n=E.getColumnData(e,u.headers,t,!0),u.headerContent[t]=S(this).html(),a=u.headerTemplate.replace(/\{content\}/g,S(this).html()).replace(/\{icon\}/g,o),u.onRenderTemplate&&(i=u.onRenderTemplate.apply(r,[t,a]))&&"string"==typeof i&&(a=i),S(this).html('"),u.onRenderHeader&&u.onRenderHeader.apply(r,[t]),this.column=parseInt(S(this).attr("data-column"),10),this.order=l(E.getData(r,n,"sortInitialOrder")||u.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(s=E.getData(r,n,"lockedOrder")||!1)&&!1!==s&&(this.order=this.lockedOrder=l(s)?[1,1,1]:[0,0,0]),r.addClass(E.css.header+" "+u.cssHeader),u.headerList[t]=this,r.parent().addClass(E.css.headerRow+" "+u.cssHeaderRow).attr("role","row"),u.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),x(e),u.debug&&(M("Built headers:",t),w(u.$headers))}function m(t,e,n){var r=t.config;r.$table.find(r.selectorRemove).remove(),h(t),g(t),T(r.$table,e,n)}function x(n){var r,i,o,a=n.config;a.$headers.each(function(t,e){i=S(e),o=E.getColumnData(n,a.headers,t,!0),r="false"===E.getData(e,o,"sorter")||"false"===E.getData(e,o,"parser"),e.sortDisabled=r,i[r?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+r),n.id&&(r?i.removeAttr("aria-controls"):i.attr("aria-controls",n.id))})}function b(t){var e,n,r=t.config,i=r.sortList,o=i.length,a=E.css.sortNone+" "+r.cssNone,s=[E.css.sortAsc+" "+r.cssAsc,E.css.sortDesc+" "+r.cssDesc],u=["ascending","descending"],l=S(t).find("tfoot tr").children().add(r.$extraHeaders).removeClass(s.join(" "));for(r.$headers.removeClass(s.join(" ")).addClass(a).attr("aria-sort","none"),e=0;e thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},E.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},E.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},E.log=w,E.benchmark=M,E.construct=function(e){return this.each(function(){var t=S.extend(!0,{},E.defaults,e);t.originalSettings=e,!this.hasInitialized&&E.buildTable&&"TABLE"!==this.tagName?E.buildTable(this,t):E.setup(this,t)})},E.setup=function(e,n){if(!e||!e.tHead||0===e.tBodies.length||!0===e.hasInitialized)return n.debug?w("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var t,r="",i=S(e),o=S.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=n,S.data(e,"tablesorter",n),n.debug&&S.data(e,"startoveralltimer",new Date),n.supportsDataObject=((t=S.fn.jquery.split("."))[0]=parseInt(t[0],10),1"),n=S(t).width();S(t.tBodies[0]).find("tr:first").children(":visible").each(function(){e.append(S("").css("width",parseInt(S(this).width()/n*1e3,10)/10+"%"))}),S(t).prepend(e)}}(e),h(e),n.totalRows=0,n.delayInit||g(e),E.bindEvents(e,n.$headers,!0),s(e),n.supportsDataObject&&void 0!==i.data().sortlist?n.sortList=i.data().sortlist:o&&i.metadata()&&i.metadata().sortlist&&(n.sortList=i.metadata().sortlist),E.applyWidget(e,!0),0'),S.fn.detach?e.detach():e.remove();n=S(t).find("span.tablesorter-savemyplace"),e.insertAfter(n),n.remove(),t.isProcessing=!1},E.clearTableBody=function(t){S(t)[0].config.$tbodies.children().detach()},E.bindEvents=function(r,i,t){var o,a=(r=S(r)[0]).config;!0!==t&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" ")).bind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" "),function(t,e){var n;if(n=t.type,!(1!==(t.which||t.button)&&!/sort|keyup/.test(n)||"keyup"===n&&13!==t.which||"mouseup"===n&&!0!==e&&250<(new Date).getTime()-o)){if("mousedown"===n)return o=(new Date).getTime(),/(input|select|button|textarea)/i.test(t.target.tagName)?"":!a.cancelSelection;a.delayInit&&y(a.cache)&&g(r),n=S.fn.closest?S(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:S(this).parents("th, td")[0],(n=a.$headers[i.index(n)]).sortDisabled||function t(e,n,r){if(e.isUpdating)return setTimeout(function(){t(e,n,r)},50);var i,o,a,s,u=e.config,l=!r[u.sortMultiSortKey],c=u.$table;if(c.trigger("sortStart",e),n.count=r[u.sortResetKey]?2:(n.count+1)%(u.sortReset?3:2),u.sortRestart&&(o=n,u.$headers.each(function(){this===o||!l&&S(this).is("."+E.css.sortDesc+",."+E.css.sortAsc)||(this.count=-1)})),o=n.column,l){if(u.sortList=[],null!==u.sortForce)for(i=u.sortForce,a=0;a tr").children("th, td");!1===e&&0<=S.inArray("uitheme",i.widgets)&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(a).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(i.namespace+" ")),i.$headers.add(s).removeClass([E.css.header,i.cssHeader,i.cssAsc,i.cssDesc,E.css.sortAsc,E.css.sortDesc,E.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),a.find(i.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(i.namespace+" ")),E.restoreHeaders(t),r.toggleClass(E.css.table+" "+i.tableClass+" tablesorter-"+i.theme,!1===e),t.hasInitialized=!1,delete t.config.cache,"function"==typeof n&&n(t)}},E.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},E.sortNatural=function(t,e){if(t===e)return 0;var n,r,i,o,a,s;if((r=E.regex).hex.test(e)){if((n=parseInt(t.match(r.hex),16))<(i=parseInt(e.match(r.hex),16)))return-1;if(i>16,255&t>>8,255&t)}function tt(t){return K(t)+""}function et(t,e,n){return new nt(t,e,n)}function nt(t,e,n){this.r=t,this.g=e,this.b=n}function rt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function it(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ut(i[0]),ut(i[1]),ut(i[2]))}return(o=Oi.get(t))?e(o.r,o.g,o.b):(null!=t&&"#"===t.charAt(0)&&(4===t.length?(a=t.charAt(1),a+=a,s=t.charAt(2),s+=s,u=t.charAt(3),u+=u):7===t.length&&(a=t.substring(1,3),s=t.substring(3,5),u=t.substring(5,7)),a=parseInt(a,16),s=parseInt(s,16),u=parseInt(u,16)),e(a,s,u))}function ot(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e=Wi.time&&(Wi.flush=Wi.callback(t-Wi.time)),Wi=Wi.next;return t}function vt(){for(var t,e=Hi,n=1/0;e;)e.flush?e=t?t.next=e.next:Hi=e.next:(e.timebi,T=v*w;if(eo.add(Math.atan2(T*Math.sin(C),m*M+T*Math.cos(C))),Math.abs(b)wi&&(a=!0)}}return(!s&&!a&&eo<0||o<-wi)^1&u}function Ut(M,C,k,T){function l(t,e){return Math.abs(t[0]-M)r&&0n[1])return!1;r>n[0]&&(n[0]=r)}else{if(rE}function p(t,e,n){var r=[1,0,0],i=St(Tt(t),Tt(e)),o=Et(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=E*o/s,l=-E*a/s,c=St(r,i),f=Nt(r,u);_t(f,Nt(i,l));var h=c,d=Et(f,h),p=Et(h,h),g=d*d-p*(Et(f,f)-1);if(!(g<0)){var v=Math.sqrt(g),m=Nt(h,(-d-v)/p);if(_t(m,f),m=At(m),!n)return m;var y,x=t[0],b=e[0],w=t[1],M=e[1];bwi;return It(d,function(s){var u,l,c,f,h;return{lineStart:function(){f=c=!1,h=1},point:function(t,e){var n,r=[t,e],i=d(t,e),o=v?i?0:g(t,e):i?g(t+(t<0?bi:-bi),e):0;if(!u&&(f=c=i)&&s.lineStart(),i!==c&&(n=p(u,r),(Dt(u,n)||Dt(r,n))&&(r[0]+=wi,r[1]+=wi,i=d(r[0],r[1]))),i!==c)h=0,i?(s.lineStart(),n=p(r,u),s.point(n[0],n[1])):(n=p(u,r),s.point(n[0],n[1]),s.lineEnd()),u=n;else if(m&&u&&v^i){var a;o&l||!(a=p(r,u,!0))||(h=0,v?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!i||u&&Dt(u,r)||s.point(r[0],r[1]),u=r,c=i,l=o},lineEnd:function(){c&&s.lineEnd(),u=null},clean:function(){return h|(f&&c)<<1}}},he(i,6*Ci),function(t){return Bt(e,t)})}((M=+t)*Ci),i()):M},e.clipExtent=function(t){return arguments.length?(w=(C=t)?Ut(t[0][0],t[0][1],t[1][0],t[1][1]):ct,i()):C},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},e.center=function(t){return arguments.length?(g=t[0]%360*Ci,v=t[1]%360*Ci,r()):[g*ki,v*ki]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ci,y=t[1]%360*Ci,x=2e.y?1:t.xe.x?1:0}),bottomSite:null},n={list:[],leftEnd:null,rightEnd:null,init:function(){n.leftEnd=n.createHalfEdge(null,"l"),n.rightEnd=n.createHalfEdge(null,"l"),n.leftEnd.r=n.rightEnd,n.rightEnd.l=n.leftEnd,n.list.unshift(n.leftEnd,n.rightEnd)},createHalfEdge:function(t,e){return{edge:t,side:e,vertex:null,l:null,r:null}},insert:function(t,e){e.l=t,e.r=t.r,t.r.l=e,t.r=e},leftBound:function(t){for(var e=n.leftEnd;(e=e.r)!=n.rightEnd&&i.rightOf(e,t););return e.l},del:function(t){t.l.r=t.r,t.r.l=t.l,t.edge=null},right:function(t){return t.r},left:function(t){return t.l},leftRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[t.side]},rightRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[Fo[t.side]]}},i={bisect:function(t,e){var n={region:{l:t,r:e},ep:{l:null,r:null}},r=e.x-t.x,i=e.y-t.y,o=0=a.region.r.x;return f&&"l"===o.side||!f&&"r"===o.side?null:{x:s,y:u}},rightOf:function(t,e){var n=t.edge,r=n.region.r,i=e.x>r.x;if(i&&"l"===t.side)return 1;if(!i&&"r"===t.side)return 0;if(1===n.a){var o=e.y-r.y,a=e.x-r.x,s=0,u=0;if(!i&&n.b<0||i&&0<=n.b?u=s=o>=n.b*a:(u=e.x+e.y*n.b>n.c,n.b<0&&(u=!u),u||(s=1)),!s){var l=r.x-n.region.l.x;u=n.b*(a*a-o*o)a.ystar||t.ystar==a.ystar&&e.x>a.vertex.x))break}i.splice(r,0,t)},del:function(t){for(var e=0,n=s.list,r=n.length;ed.y&&(p=h,h=d,d=p,y="r"),m=i.bisect(h,d),f=n.createHalfEdge(m,y),n.insert(l,f),i.endPoint(m,Fo[y],v),(g=i.intersect(l,f))&&(s.del(l),s.insert(l,g,i.distance(g,h))),(g=i.intersect(f,c))&&s.insert(f,g,i.distance(g,h))}for(a=n.right(n.leftEnd);a!=n.rightEnd;a=n.right(a))r(a.edge)}function Ie(t){return t.x}function ze(t){return t.y}function We(t,e){t=Br.rgb(t),e=Br.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,s=e.b-i;return function(t){return"#"+rt(Math.round(n+o*t))+rt(Math.round(r+a*t))+rt(Math.round(i+s*t))}}function Ve(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Ge(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Be(e,n){return n-=e=+e,function(t){return e+n*t}}function Ue(t,e){var n,r,i,o,a,s=0,u=[],l=[];for(t+="",e+="",Io.lastIndex=0,r=0;n=Io.exec(e);++r)n.index&&u.push(e.substring(s,n.index)),l.push({i:u.length,x:n[0]}),u.push(null),s=Io.lastIndex;for(si&&(r=n,i=e);return r}function Nn(t){return t.reduce($n,0)}function $n(t,e){return t+e[1]}function An(t,e){return Dn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Dn(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function Ln(t){return[Br.min(t),Br.max(t)]}function jn(t,e){return t.parent==e.parent?1:2}function Pn(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function qn(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function Rn(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;++oh?i():(d.active=h,p.event&&p.event.start.call(c,o,f),p.tween.forEach(function(t,e){(e=e.call(c,o,f))&&l.push(e)}),n(t)?1:void pt(n,0,r))}function n(t){if(d.active!==h)return i();for(var e=(t-s)/u,n=a(e),r=l.length;0>>1;o.call(t,t[i],i)>>1;ee;)i.push(r/o);else for(;(r=t+n*++a)=g.length)return d?d.call(p,t):h?t.sort(h):t;for(var e,i,o,a,s=-1,u=t.length,l=g[r++],c=new x;++s=g.length)return t;var i=[],o=e[r++];return t.forEach(function(t,e){i.push({key:t,values:n(e,r)})}),o?i.sort(function(t,e){return o(t.key,e.key)}):i}(f(Br.map,t,0),0)},p.key=function(t){return g.push(t),p},p.sortKeys=function(t){return e[g.length-1]=t,p},p.sortValues=function(t){return h=t,p},p.rollup=function(t){return d=t,p},p},Br.set=function(t){var e=new l;if(t)for(var n=0,r=t.length;n",c=e[3]||"",f=e[4]||"",h=e[5],d=+e[6],p=e[7],g=e[8],v=e[9],m=1,y="",x=!1;switch(g&&(g=+g.substring(1)),(h||"0"===u&&"="===l)&&(h=u="0",l="=",p&&(d-=Math.floor((d-1)/4))),v){case"n":p=!0,v="g";break;case"%":m=100,y="%",v="f";break;case"p":m=100,y="%",v="r";break;case"b":case"o":case"x":case"X":"#"===f&&(f="0"+v.toLowerCase());case"c":case"d":x=!0,g=0;break;case"s":m=-1,v="r"}"#"===f?f="":"$"===f&&(f="$"),"r"!=v||g||(v="g"),null!=g&&("g"==v?g=Math.max(1,Math.min(21,g)):("e"==v||"f"==v)&&(g=Math.max(0,Math.min(20,g)))),v=Yi.get(v)||yt;var b=h&&p;return function(t){if(x&&t%1)return"";var e=t<0||0===t&&1/t<0?(t=-t,"-"):c;if(m<0){var n=Br.formatPrefix(t,g);t=n.scale(t),y=n.symbol}else t*=m;var r=(t=v(t,g)).lastIndexOf("."),i=r<0?t:t.substring(0,r),o=r<0?"":"."+t.substring(r+1);!h&&p&&(i=Xi(i));var a=f.length+i.length+o.length+(b?0:e.length),s=a"===l?s+e+t:"^"===l?s.substring(0,a>>=1)+e+t+s.substring(a):e+(b?t:s+t))+y}};var Gi=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Yi=Br.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Br.round(t,mt(t,e))).toFixed(Math.max(0,Math.min(20,mt(t*(1+1e-15),e))))}}),Xi=ct;if(Bi){var Qi=Bi.length;Xi=function(t){for(var e=t.length,n=[],r=0,i=Bi[0];0f(h,p)&&(p=t):f(t,p)>f(h,p)&&(h=t):h<=p?(tf(h,p)&&(p=t):f(t,p)>f(h,p)&&(h=t)}else c(t,e);m=n,v=t}function t(){w.point=r}function e(){b[0]=h,b[1]=p,w.point=c,m=null}function n(t,e){if(m){var n=t-v;y+=180wi&&(h=-(p=180)),b[0]=h,b[1]=p,m=null}function f(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tf(s[0],s[1])&&(s[1]=i[1]),f(i[0],s[1])>f(s[0],s[1])&&(s[0]=i[0])):n.push(s=i);for(var r,i,o,a=-1/0,s=(e=0,n[o=n.length-1]);e<=o;s=i,++e)i=n[e],(r=f(s[1],i[0]))>a&&(a=r,h=i[0],p=s[1])}return x=b=null,1/0===h||1/0===d?[[NaN,NaN],[NaN,NaN]]:[[h,d],[p,g]]}}(),Br.geo.centroid=function(t){ro=io=oo=ao=so=uo=lo=co=fo=ho=po=0,Br.geo.stream(t,go);var e=fo,n=ho,r=po,i=e*e+n*n+r*r;return iwi?Math.atan((Math.sin(r)*(s=Math.cos(o))*Math.sin(i)-Math.sin(o)*(a=Math.cos(r))*Math.sin(n))/(a*s*u)):(r+o)/2,f.point(g,p),f.lineEnd(),f.lineStart(),f.point(l,p),h=0),f.point(d=t,p=e),g=l},lineEnd:function(){f.lineEnd(),d=p=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*bi/2,r.point(-bi,i),r.point(0,i),r.point(bi,i),r.point(bi,0),r.point(bi,-i),r.point(0,-i),r.point(-bi,-i),r.point(-bi,0),r.point(-bi,i);else if(Math.abs(t[0]-e[0])>wi){var o=(t[0]wi}).map(c)).concat(Br.range(Math.ceil(s/g)*g,a,g).filter(function(t){return Math.abs(t%m)>wi}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,d,p=10,g=p,v=90,m=360,y=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(d(u).slice(1),h(i).reverse().slice(1),d(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],l=+t[0][1],u=+t[1][1],iwi}).map(function(t){return e[t]})})).forEach(function(t,e){var n=t.length;if(!n)return t.push([-1e6,-1e6],[-1e6,1e6],[1e6,1e6],[1e6,-1e6]);if(!(2u&&(u=e.x),e.y>l&&(l=e.y),n.push(e.x),r.push(e.y);else for(i=0;i=a[0]&&r<=a[1]&&((n=i[Br.bisect(s,r,1,l)-1]).y+=c,n.push(t[e]));return i}var f=!0,h=Number,d=Ln,p=An;return n.value=function(t){return arguments.length?(h=t,n):h},n.range=function(t){return arguments.length?(d=lt(t),n):d},n.bins=function(e){return arguments.length?(p="number"==typeof e?function(t){return Dn(t,e)}:lt(e),n):p},n.frequency=function(t){return arguments.length?(f=!!t,n):f},n},Br.layout.tree=function(){function e(t,e){function h(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=t.parent.children[0],u=i._tree.mod,l=o._tree.mod,c=a._tree.mod,f=s._tree.mod;a=qn(a),i=Pn(i),a&&i;)s=Pn(s),(o=qn(o))._tree.ancestor=t,0<(r=a._tree.prelim+c-i._tree.prelim-u+g(a,i))&&(zn((d=t,p=n,(h=a)._tree.ancestor.parent==d.parent?h._tree.ancestor:p),t,r),u+=r,l+=r),c+=a._tree.mod,u+=i._tree.mod,f+=s._tree.mod,l+=o._tree.mod;a&&!qn(o)&&(o._tree.thread=a,o._tree.mod+=c-l),i&&!Pn(s)&&(s._tree.thread=i,s._tree.mod+=u-f,n=t)}var h,d,p;return n}var n=c.call(this,t,e),r=n[0];In(r,function(t,e){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:e?e._tree.number+1:0}}),function t(e,n){var r=e.children,i=e._tree;if(r&&(o=r.length)){for(var o,a,s,u=r[0],l=u,c=-1;++cn.dy)&&(l=n.dy);++on.dx)&&(l=n.dx);++or;o--);e=e.slice(i,o)}return e},o.tickFormat=function(t,e){if(!arguments.length)return Jo;arguments.length<2?e=Jo:"function"!=typeof e&&(e=Br.format(e));var n,r=Math.max(.1,t/o.ticks().length),i=l?(n=1e-12,Math.ceil):(n=-1e-12,Math.floor);return function(t){return t/h(i(f(t)+n))<=r?e(t):""}},o.copy=function(){return t(e.copy(),u,l,c)},ir(o,e)}(Br.scale.linear().domain([0,1]),10,!0,[1,10])};var Jo=Br.format(".0e"),Ko={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Br.scale.pow=function(){return function t(e,n,r){function i(t){return e(o(t))}var o=lr(n),a=lr(1/n);return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(o)),i):r},i.ticks=function(t){return sr(r,t)},i.tickFormat=function(t,e){return ur(r,t,e)},i.nice=function(t){return i.domain(or(r,t))},i.exponent=function(t){return arguments.length?(o=lr(n=t),a=lr(1/n),e.domain(r.map(o)),i):n},i.copy=function(){return t(e.copy(),n,r)},ir(i,e)}(Br.scale.linear(),1,[0,1])},Br.scale.sqrt=function(){return Br.scale.pow().exponent(.5)},Br.scale.ordinal=function(){return function t(u,l){function c(t){return h[((i.get(t)||i.set(t,u.push(t)))-1)%h.length]}function f(e,n){return Br.range(u.length).map(function(t){return e+n*t})}var i,h,d;return c.domain=function(t){if(!arguments.length)return u;u=[],i=new x;for(var e,n=-1,r=t.length;++nrect,.s>rect").attr("width",_[1]-_[0])}function M(t){t.select(".extent").attr("y",N[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",N[1]-N[0])}function a(){function n(){var t=Br.event.changedTouches;return t?Br.touches(o,t)[0]:Br.mouse(o)}function t(){var t=n(),e=!1;i&&(t[0]+=i[0],t[1]+=i[1]),d||(Br.event.altKey?(f||(f=[(_[0]+_[1])/2,(N[0]+N[1])/2]),g[0]=_[+(t[0]"+t.less+"
"),n=$(""+t.evaluation+"
");$("#overview_btn").hasClass("active")?($("#overview_text").html(n),$("#overview_btn").text("Show Less"),GV.addPlot(t.data,"overview",t.type,t.title,t.footer,t.xtitle,t.ytitle)):($("#overview").find("svg").remove(),$("#overview_text").html(e),$("#overview_btn").text("Show More"))})}},GV.createChildRow=function(t,e,n){var r=' |
';t.addClass("tablesorter-hasChildRow"),t.after(r),n.status="pressed"},GV.removeChildRow=function(t,e,n){t.removeClass("tablesorter-hasChildRow"),e.remove(),n.status="released"},GV.emptyChildRow=function(t,e,n){var r="#"+e+"explanation";$("#"+e).empty(),$(r).remove(),GV.resetStatusOfOtherButtons(t),n.status="pressed"},GV.resetStatusOfOtherButtons=function(t){t.find("td").each(function(){"pressed"==this.status&&(this.status="released")}),t.find(".plot_btn").each(function(){"pressed"==this.status&&(this.status="released")})},GV.addDataToChildRow=function(t,n,r){var e=t.attr("data-jsonFile");$.getJSON(e,function(t){if("all"===r)for(var e in t.validations)void 0!==t.validations[e].graphs&&GV.generatePlotCommands(t.validations[e].graphs,n);else GV.addExplanation(n,t.validations[r]),void 0!==t.validations[r].graphs&&GV.generatePlotCommands(t.validations[r].graphs,n)})},GV.generatePlotCommands=function(t,e){for(var n=0;nApproach: "+e.approach+"
",i="Explanation: "+e.explanation+"
",o="Conclusion: "+e.conclusion+"
",a=$(''+r+i+o+"
");$(n).prepend(a)},GV.addPlot=function(t,e,n,r,i,o,a,s,u){var l;switch(l=""===i?[]:i.split(";"),n){case"scatter":GV.plot_scatter(t,e,r,i,o,a,s,u);break;case"bars":GV.plot_bars(t,e,r,l,o,a,s);break;case"simplebars":GV.plot_simple_bars(t,e,r,l,o,a);break;case"lines":null!==u&&(u=u.split(",")),GV.plot_lines(t,e,r,l,o,a,s,u);break;case"align":null!==u&&(u=u.split(",")),GV.plot_align(t,e,r,l,o,a,s,u)}},GV.color_beautification=function(t){switch(t){case"red":return d3.rgb(189,54,47);case"blue":return d3.rgb(58,135,173);case"green":return d3.rgb(70,136,71);case"yellow":return d3.rgb(255,255,51);case"orange":return d3.rgb(248,148,6);case"violet":return d3.rgb(153,0,153);case"gray":return d3.rgb(160,160,160);default:return t}},GV.plot_bars=function(t,e,n,r,i,o,a){var s=70,u=50,l=75,c=50,f=600-c-u,h=500-s-l,d=d3.select("#".concat(e)).append("svg").attr("width",f+c+u).attr("height",h+s+l).append("g").attr("transform","translate("+c+","+s+")");d.append("text").attr("x",f/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(n);var p=[].concat.apply([],t),g=d3.max(p,function(t){return t.value})+3,v=d3.scale.linear().domain([0,g+g/10]).range([h,0]),m=d3.min(p,function(t){return t.key});void 0!==a&&(m=Math.min(m,a));var y=d3.max(p,function(t){return t.key});void 0!==a&&(y=Math.max(y,a));var x=d3.scale.linear().domain([m-100,y+100]).range([13,f]),b=d3.svg.axis().scale(x).orient("bottom").ticks(8),w=d3.svg.axis().scale(v).orient("left").tickFormat(d3.format("d")).ticks(8);d.append("g").attr("class","x axis").attr("transform","translate(0,"+h+")").call(b).append("text").attr("class","label").attr("x",(f-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),d.append("g").attr("class","y axis").call(w).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(h+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){d.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return x(t.key)}).attr("width",6).attr("y",function(t){return v(t.value)}).attr("height",function(t){return h-v(t.value)}).attr("fill",function(t){return!0===t.main?GV.color_beautification("red"):GV.color_beautification("blue")})}),void 0!==a&&(d.append("rect").attr("x",x(a)).attr("width",4).attr("y",v(g+g/10)).style("opacity",.6).attr("height",h-v(g+g/8)).attr("fill",GV.color_beautification("black")),d.append("text").attr("transform","rotate(-90)").attr("x",-g/10-35).attr("y",x(a)-5).text("query"));for(var M=0,C=0,k=0;k+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),G=new RegExp(z),Y=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),rt=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)};try{j.apply(e=P.call(T.childNodes),T.childNodes),e[T.childNodes.length].nodeType}catch(t){j={apply:e.length?function(t,e){L.apply(t,P.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,n,r){var i,o,a,s,u,l,c,f,h,p;if((e?e.ownerDocument||e:T)!==M&&m(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=(e=e||M).nodeType)&&9!==s)return[];if(y&&!r){if(i=K.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&C(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return j.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&d.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(a)),n}if(d.qsa&&(!x||!x.test(t))){if(f=c=k,h=e,p=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=g(t),(c=e.getAttribute("id"))?f=c.replace(et,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+gt(l[u]);h=tt.test(t)&&pt(e.parentNode)||e,p=l.join(",")}if(p)try{return j.apply(n,h.querySelectorAll(p)),n}catch(t){}finally{c||e.removeAttribute("id")}}}return v(t.replace(W,"$1"),e,n,r)}function ot(){var r=[];return function t(e,n){return r.push(e+" ")>b.cacheLength&&delete t[r.shift()],t[e+" "]=n}}function at(t){return t[k]=!0,t}function st(t){var e=M.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("|"),r=t.length;r--;)b.attrHandle[n[r]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||$)-(~t.sourceIndex||$);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ft(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function ht(a){return at(function(o){return o=+o,at(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function pt(t){return t&&typeof t.getElementsByTagName!==N&&t}for(t in d=it.support={},r=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},m=it.setDocument=function(t){var e,u=t?t.ownerDocument||t:T,n=u.defaultView;return u!==M&&9===u.nodeType&&u.documentElement?(i=(M=u).documentElement,y=!r(u),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){m()},!1):n.attachEvent&&n.attachEvent("onunload",function(){m()})),d.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=st(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=J.test(u.getElementsByClassName)&&st(function(t){return t.innerHTML="",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),d.getById=st(function(t){return i.appendChild(t).id=k,!u.getElementsByName||!u.getElementsByName(k).length}),d.getById?(b.find.ID=function(t,e){if(typeof e.getElementById!==N&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(t){var e=t.replace(nt,rt);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var n=t.replace(nt,rt);return function(t){var e=typeof t.getAttributeNode!==N&&t.getAttributeNode("id");return e&&e.value===n}}),b.find.TAG=d.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==N?e.getElementsByTagName(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},b.find.CLASS=d.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==N&&y?e.getElementsByClassName(t):void 0},a=[],x=[],(d.qsa=J.test(u.querySelectorAll))&&(st(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&x.push("[*^$]="+O+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||x.push("\\["+O+"*(?:value|"+R+")"),t.querySelectorAll(":checked").length||x.push(":checked")}),st(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&x.push("name"+O+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||x.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),x.push(",.*:")})),(d.matchesSelector=J.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&st(function(t){d.disconnectedMatch=s.call(t,"div"),s.call(t,"[s!='']:x"),a.push("!=",z)}),x=x.length&&new RegExp(x.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(i.compareDocumentPosition),C=e||J.test(i.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},_=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument===T&&C(T,t)?-1:e===u||e.ownerDocument===T&&C(T,e)?1:l?q.call(l,t)-q.call(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===u?-1:e===u?1:i?-1:o?1:l?q.call(l,t)-q.call(l,e):0;if(i===o)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0},u):M},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==M&&m(t),e=e.replace(U,"='$1']"),!(!d.matchesSelector||!y||a&&a.test(e)||x&&x.test(e)))try{var n=s.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,rt),"~="===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]||it.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]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=g(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(nt,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=u[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==N&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=it.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function M(t,n,r){if(C.isFunction(n))return C.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return C.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(w.test(n))return C.filter(n,t,r);n=C.filter(n,t)}return C.grep(t,function(t){return 0<=i.call(n,t)!==r})}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||k).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),b.test(n[1])&&C.isPlainObject(e))for(n in e)C.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=y.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=y,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==k.ready?k.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this))}).prototype=C.fn,k=C(y);var E=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function _(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;tx",m.noCloneChecked=!!F.cloneNode(!0).lastChild.defaultValue;var U="undefined";m.focusinBubbles="onfocusin"in d;var G=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function J(){return!1}function K(){try{return y.activeElement}catch(t){}}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=P.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=C.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof C!==U&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match($)||[""]).length;l--;)p=g=(s=Q.exec(t[l])||[])[1],d=(s[2]||"").split(".").sort(),p&&(f=C.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=C.event.special[p]||{},c=C.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,d,a)||e.addEventListener&&e.addEventListener(p,a,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,v=P.hasData(t)&&P.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match($)||[""]).length;l--;)if(p=g=(s=Q.exec(e[l])||[])[1],d=(s[2]||"").split(".").sort(),p){for(f=C.event.special[p]||{},h=u[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||C.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)C.event.remove(t,p+e[l],n,r,!0);C.isEmptyObject(u)&&(delete v.handle,P.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,u,l,c,f=[n||y],h=v.call(t,"type")?t.type:t,p=v.call(t,"namespace")?t.namespace.split("."):[];if(o=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!X.test(h+C.event.triggered)&&(0<=h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),u=h.indexOf(":")<0&&"on"+h,(t=t[C.expando]?t:new C.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),c=C.event.special[h]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!C.isWindow(n)){for(s=c.delegateType||h,X.test(s+h)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||d)}for(i=0;(o=f[i++])&&!t.isPropagationStopped();)t.type=1]*)\/>/gi,et=/<([\w:]+)/,nt=/<|?\w+;/,rt=/<(?:script|style|link)/i,it=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^$|\/(?:java|ecma)script/i,at=/^true\/(.*)/,st=/^\s*\s*$/g,ut={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function lt(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function ft(t){var e=at.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function ht(t,e){for(var n=0,r=t.length;n$2>")+s[2],l=s[0];l--;)o=o.lastChild;C.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===C.inArray(i,r))&&(u=C.contains(i.ownerDocument,i),o=dt(c.appendChild(i),"script"),u&&ht(o),n))for(l=0;i=o[l++];)ot.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=C.event.special,a=0;void 0!==(n=t[a]);a++){if(C.acceptData(n)&&((i=n[P.expando])&&(e=P.cache[i]))){if(e.events)for(r in e.events)o[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);P.cache[i]&&delete P.cache[i]}delete q.cache[n[q.expando]]}}}),C.fn.extend({text:function(t){return L(this,function(t){return void 0===t?C.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 this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||lt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?C.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||C.cleanData(dt(n)),n.parentNode&&(e&&C.contains(n.ownerDocument,n)&&ht(dt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(dt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return L(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&&!rt.test(t)&&!ut[(et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(tt,"<$1>$2>");try{for(;n")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=mt(t,e),gt.detach()),vt[t]=n),n}var xt=/^margin/,bt=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),wt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};function Mt(t,e,n){var r,i,o,a,s=t.style;return(n=n||wt(t))&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||C.contains(t.ownerDocument,t)||(a=C.style(t,e)),bt.test(a)&&xt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ct(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,n,r=y.documentElement,i=y.createElement("div"),o=y.createElement("div");if(o.style){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var t=d.getComputedStyle(o,null);e="1%"!==t.top,n="4px"===t.width,r.removeChild(i)}o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),d.getComputedStyle&&C.extend(m,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},reliableMarginRight:function(){var t,e=o.appendChild(y.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(d.getComputedStyle(e,null).marginRight),r.removeChild(i),t}})}}(),C.swap=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};var kt=/^(none|table(?!-c[ea]).+)/,Tt=new RegExp("^("+z+")(.*)$","i"),Et=new RegExp("^([+-])=("+z+")","i"),St={position:"absolute",visibility:"hidden",display:"block"},_t={letterSpacing:"0",fontWeight:"400"},Nt=["Webkit","O","Moz","ms"];function $t(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Nt.length;i--;)if((e=Nt[i]+n)in t)return e;return r}function At(t,e,n){var r=Tt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function Dt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=C.css(t,n+W[o],!0,i)),r?("content"===n&&(a-=C.css(t,"padding"+W[o],!0,i)),"margin"!==n&&(a-=C.css(t,"border"+W[o]+"Width",!0,i))):(a+=C.css(t,"padding"+W[o],!0,i),"padding"!==n&&(a+=C.css(t,"border"+W[o]+"Width",!0,i)));return a}function Lt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=wt(t),a="border-box"===C.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Mt(t,e,o))<0||null==i)&&(i=t.style[e]),bt.test(i))return i;r=a&&(m.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Dt(t,e,n||(a?"border":"content"),r,o)+"px"}function jt(t,e){for(var n,r,i,o=[],a=0,s=t.length;a").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),y.head.appendChild(r[0])},abort:function(){i&&i()}}});var Se=[],_e=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Se.pop()||C.expando+"_"+ee++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(_e.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_e.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(_e,"$1"+r):!1!==t.jsonp&&(t.url+=(ne.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||C.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=d[r],d[r]=function(){o=arguments},n.always(function(){d[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Se.push(r)),o&&C.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),C.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||y;var r=b.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=C.buildFragment([t],e,i),i&&i.length&&C(i).remove(),C.merge([],r.childNodes))};var Ne=C.fn.load;C.fn.load=function(t,e,n){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return 0<=s&&(r=C.trim(t.slice(s)),t=t.slice(0,s)),C.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0").append(C.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length};var $e=d.document.documentElement;function Ae(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=C.css(t,"position"),c=C(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=C.css(t,"top"),u=C.css(t,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),C.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):c.css(f)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,C.contains(t,r)?(typeof r.getBoundingClientRect!==U&&(i=r.getBoundingClientRect()),n=Ae(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===C.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),C.nodeName(t[0],"html")||(r=t.offset()),r.top+=C.css(t[0],"borderTopWidth",!0),r.left+=C.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-C.css(n,"marginTop",!0),left:e.left-r.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||$e;t&&!C.nodeName(t,"html")&&"static"===C.css(t,"position");)t=t.offsetParent;return t||$e})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;C.fn[e]=function(t){return L(this,function(t,e,n){var r=Ae(t);return void 0===n?r?r[i]:t[e]:void(r?r.scrollTo(o?d.pageXOffset:n,o?n:d.pageYOffset):t[e]=n)},e,t,arguments.length,null)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Ct(m.pixelPosition,function(t,e){return e?(e=Mt(t,n),bt.test(e)?C(t).position()[n]+"px":e):void 0})}),C.each({Height:"height",Width:"width"},function(o,a){C.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){C.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return L(this,function(t,e,n){var r;return C.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?C.css(t,e,i):C.style(t,e,n,i)},a,n?t:void 0,n,null)}})}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var De=d.jQuery,Le=d.$;return C.noConflict=function(t){return d.$===C&&(d.$=Le),t&&d.jQuery===C&&(d.jQuery=De),C},typeof t===U&&(d.jQuery=d.$=C),C}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");var GV;function initTableSorter(){$.tablesorter.addParser({id:"star_scores",is:function(){return!1},format:function(t,e,n,r){var i=$(n);return 1===r&&i.attr("data-score")||t},parsed:!1,type:"numeric"}),$("table").tablesorter({headers:{1:{sorter:"star_scores"}},sortList:[[0,0]]})}!function(r){"use strict";r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;r(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||r(n).trigger(r.support.transition.end)},t),this},r(function(){r.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(t){return r(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(o){"use strict";var e='[data-dismiss="alert"]',r=function(t){o(t).on("click",e,this.close)};r.VERSION="3.2.0",r.prototype.close=function(t){function e(){i.detach().trigger("closed.bs.alert").remove()}var n=o(this),r=n.attr("data-target");r||(r=(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var i=o(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(150):e())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(o){"use strict";function n(r){return this.each(function(){var t=o(this),e=t.data("bs.button"),n="object"==typeof r&&r;e||t.data("bs.button",e=new i(this,n)),"toggle"==r?e.toggle():r&&e.setState(r)})}var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();t+="Text",null==i.resetText&&n.data("resetText",n[r]()),n[r](null==i[t]?this.options[t]:i[t]),setTimeout(o.proxy(function(){"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=i,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),n.call(e,"toggle"),t.preventDefault()})}(jQuery),function(h){"use strict";function a(i){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),n=h.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("bs.carousel",e=new o(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})}var o=function(t,e){this.$element=h(t).on("keydown.bs.carousel",h.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))};o.VERSION="3.2.0",o.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},o.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},o.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},o.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n .panel > .in");if(e&&e.length){var n=e.data("bs.collapse");if(n&&n.transitioning)return;c.call(e,"hide"),n||e.data("bs.collapse",null)}var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!l.support.transition)return i.call(this);var o=l.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",l.proxy(i,this)).emulateTransitionEnd(350)[r](this.$element[0][o])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=l.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return l.support.transition?void this.$element[e](0).one("bsTransitionEnd",l.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var t=l.fn.collapse;l.fn.collapse=c,l.fn.collapse.Constructor=i,l.fn.collapse.noConflict=function(){return l.fn.collapse=t,this},l(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e,n=l(this),r=n.attr("data-target")||t.preventDefault()||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=l(r),o=i.data("bs.collapse"),a=o?"toggle":n.data(),s=n.attr("data-parent"),u=s&&l(s);o&&o.transitioning||(u&&u.find('[data-toggle="collapse"][data-parent="'+s+'"]').not(n).addClass("collapsed"),n[i.hasClass("in")?"addClass":"removeClass"]("collapsed")),c.call(i,a)})}(jQuery),function(s){"use strict";function o(n){n&&3===n.which||(s(t).remove(),s(l).each(function(){var t=u(s(this)),e={relatedTarget:this};t.hasClass("open")&&(t.trigger(n=s.Event("hide.bs.dropdown",e)),n.isDefaultPrevented()||t.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function u(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&s(e);return n&&n.length?n:t.parent()}var t=".dropdown-backdrop",l='[data-toggle="dropdown"]',r=function(t){s(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s('').insertAfter(s(this)).on("click",o);var i={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",i)}return!1}},r.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=u(e),r=n.hasClass("open");if(!r||r&&27==t.keyCode)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var i=" li:not(.divider):visible a",o=n.find('[role="menu"]'+i+', [role="listbox"]'+i);if(o.length){var a=o.index(o.filter(":focus"));38==t.keyCode&&0').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(150):i()}else t&&t()},s.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=a,o.fn.modal.Constructor=s,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),i=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),a.call(r,i,this)})}(jQuery),function(v){"use strict";var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(t,e,n){this.enabled=!0,this.type=t,this.$element=v(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&v(this.options.viewport.selector||this.options.viewport);for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o=r[i];if("click"==o)this.$element.on("click."+this.type,this.options.selector,v.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,v.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,v.proxy(this.leave,this))}}this.options.selector?this._options=v.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(t){return(t=v.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},i.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&v.each(this._options,function(t,e){r[t]!=e&&(n[t]=e)}),n},i.prototype.enter=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show()},i.prototype.leave=function(t){var e=t instanceof this.constructor?t:v(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide()},i.prototype.show=function(){var t=v.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=v.contains(document.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,r=this.tip(),i=this.getUID(this.type);this.setContent(),r.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition(),l=r[0].offsetWidth,c=r[0].offsetHeight;if(s){var f=o,h=this.$element.parent(),p=this.getPosition(h);o="bottom"==o&&u.top+u.height+c-p.scroll>p.height?"top":"top"==o&&u.top-p.scroll-c<0?"bottom":"right"==o&&u.right+l>p.width?"left":"left"==o&&u.left-la.top+a.height&&(i.top=a.top+a.height-u)}else{var l=e.left-o,c=e.left+o+n;la.width&&(i.left=a.left+a.width-c)}return i},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},i.prototype.tip=function(){return this.$tip=this.$tip||v(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(t){var e=this;t&&((e=v(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),v(t.currentTarget).data("bs."+this.type,e))),e.tip().hasClass("in")?e.leave(e):e.enter(e)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var t=v.fn.tooltip;v.fn.tooltip=function(r){return this.each(function(){var t=v(this),e=t.data("bs.tooltip"),n="object"==typeof r&&r;(e||"destroy"!=r)&&(e||t.data("bs.tooltip",e=new i(this,n)),"string"==typeof r&&e[r]())})},v.fn.tooltip.Constructor=i,v.fn.tooltip.noConflict=function(){return v.fn.tooltip=t,this}}(jQuery),function(i){"use strict";var o=function(t,e){this.init("popover",t,e)};if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.2.0",o.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype),(o.prototype.constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},o.prototype.tip=function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip};var t=i.fn.popover;i.fn.popover=function(r){return this.each(function(){var t=i(this),e=t.data("bs.popover"),n="object"==typeof r&&r;(e||"destroy"!=r)&&(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof r&&e[r]())})},i.fn.popover.Constructor=o,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),function(o){"use strict";function i(t,e){var n=o.proxy(this.process,this);this.$body=o("body"),this.$scrollElement=o(o(t).is("body")?window:t),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n),this.refresh(),this.process()}function e(r){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof r&&r;e||t.data("bs.scrollspy",e=new i(this,n)),"string"==typeof r&&e[r]()})}i.VERSION="3.2.0",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var r="offset",i=0;o.isWindow(this.$scrollElement[0])||(r="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var t=this;this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[r]().top+i,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<=i[0])return a!=(t=o[0])&&this.activate(t);for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(o[t])},i.prototype.activate=function(t){this.activeTarget=t,o(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=o(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof n&&e[n]()})}var r=function(t){this.element=a(t)};r.VERSION="3.2.0",r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=e.find(".active:last a")[0],i=a.Event("show.bs.tab",{relatedTarget:r});if(t.trigger(i),!i.isDefaultPrevented()){var o=a(n);this.activate(t.closest("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})}}},r.prototype.activate=function(t,e,n){function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}var i=e.find("> .active"),o=n&&a.support.transition&&i.hasClass("fade");o?i.one("bsTransitionEnd",r).emulateTransitionEnd(150):r(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e.call(a(this),"show")})}(jQuery),function(l){"use strict";function n(r){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof r&&r;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof r&&e[r]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.2.0",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=l(document).height(),e=this.$target.scrollTop(),n=this.$element.offset(),r=this.options.offset,i=r.top,o=r.bottom;"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=!(null!=this.unpin&&e+this.unpin<=n.top)&&(null!=o&&n.top+this.$element.height()>=t-o?"bottom":null!=i&&e<=i&&"top");if(this.affixed!==a){null!=this.unpin&&this.$element.css("top","");var s="affix"+(a?"-"+a:""),u=l.Event(s+".bs.affix");this.$element.trigger(u),u.isDefaultPrevented()||(this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(s).trigger(l.Event(s.replace("affix","affixed"))),"bottom"==a&&this.$element.offset({top:t-this.$element.height()-o}))}}};var t=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(S){S.extend({tablesorter:new function(){function w(){var t=arguments[0],e=1':"",u.$headers=S(e).find(u.selectorHeaders).each(function(t){r=S(this),n=E.getColumnData(e,u.headers,t,!0),u.headerContent[t]=S(this).html(),a=u.headerTemplate.replace(/\{content\}/g,S(this).html()).replace(/\{icon\}/g,o),u.onRenderTemplate&&(i=u.onRenderTemplate.apply(r,[t,a]))&&"string"==typeof i&&(a=i),S(this).html('"),u.onRenderHeader&&u.onRenderHeader.apply(r,[t]),this.column=parseInt(S(this).attr("data-column"),10),this.order=l(E.getData(r,n,"sortInitialOrder")||u.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(s=E.getData(r,n,"lockedOrder")||!1)&&!1!==s&&(this.order=this.lockedOrder=l(s)?[1,1,1]:[0,0,0]),r.addClass(E.css.header+" "+u.cssHeader),u.headerList[t]=this,r.parent().addClass(E.css.headerRow+" "+u.cssHeaderRow).attr("role","row"),u.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),x(e),u.debug&&(M("Built headers:",t),w(u.$headers))}function m(t,e,n){var r=t.config;r.$table.find(r.selectorRemove).remove(),h(t),g(t),T(r.$table,e,n)}function x(n){var r,i,o,a=n.config;a.$headers.each(function(t,e){i=S(e),o=E.getColumnData(n,a.headers,t,!0),r="false"===E.getData(e,o,"sorter")||"false"===E.getData(e,o,"parser"),e.sortDisabled=r,i[r?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+r),n.id&&(r?i.removeAttr("aria-controls"):i.attr("aria-controls",n.id))})}function b(t){var e,n,r=t.config,i=r.sortList,o=i.length,a=E.css.sortNone+" "+r.cssNone,s=[E.css.sortAsc+" "+r.cssAsc,E.css.sortDesc+" "+r.cssDesc],u=["ascending","descending"],l=S(t).find("tfoot tr").children().add(r.$extraHeaders).removeClass(s.join(" "));for(r.$headers.removeClass(s.join(" ")).addClass(a).attr("aria-sort","none"),e=0;e thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},E.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},E.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},E.log=w,E.benchmark=M,E.construct=function(e){return this.each(function(){var t=S.extend(!0,{},E.defaults,e);t.originalSettings=e,!this.hasInitialized&&E.buildTable&&"TABLE"!==this.tagName?E.buildTable(this,t):E.setup(this,t)})},E.setup=function(e,n){if(!e||!e.tHead||0===e.tBodies.length||!0===e.hasInitialized)return n.debug?w("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var t,r="",i=S(e),o=S.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=n,S.data(e,"tablesorter",n),n.debug&&S.data(e,"startoveralltimer",new Date),n.supportsDataObject=((t=S.fn.jquery.split("."))[0]=parseInt(t[0],10),1"),n=S(t).width();S(t.tBodies[0]).find("tr:first").children(":visible").each(function(){e.append(S("").css("width",parseInt(S(this).width()/n*1e3,10)/10+"%"))}),S(t).prepend(e)}}(e),h(e),n.totalRows=0,n.delayInit||g(e),E.bindEvents(e,n.$headers,!0),s(e),n.supportsDataObject&&void 0!==i.data().sortlist?n.sortList=i.data().sortlist:o&&i.metadata()&&i.metadata().sortlist&&(n.sortList=i.metadata().sortlist),E.applyWidget(e,!0),0'),S.fn.detach?e.detach():e.remove();n=S(t).find("span.tablesorter-savemyplace"),e.insertAfter(n),n.remove(),t.isProcessing=!1},E.clearTableBody=function(t){S(t)[0].config.$tbodies.children().detach()},E.bindEvents=function(r,i,t){var o,a=(r=S(r)[0]).config;!0!==t&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" ")).bind(["mousedown","mouseup","sort","keyup",""].join(a.namespace+" "),function(t,e){var n;if(n=t.type,!(1!==(t.which||t.button)&&!/sort|keyup/.test(n)||"keyup"===n&&13!==t.which||"mouseup"===n&&!0!==e&&250<(new Date).getTime()-o)){if("mousedown"===n)return o=(new Date).getTime(),/(input|select|button|textarea)/i.test(t.target.tagName)?"":!a.cancelSelection;a.delayInit&&y(a.cache)&&g(r),n=S.fn.closest?S(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:S(this).parents("th, td")[0],(n=a.$headers[i.index(n)]).sortDisabled||function t(e,n,r){if(e.isUpdating)return setTimeout(function(){t(e,n,r)},50);var i,o,a,s,u=e.config,l=!r[u.sortMultiSortKey],c=u.$table;if(c.trigger("sortStart",e),n.count=r[u.sortResetKey]?2:(n.count+1)%(u.sortReset?3:2),u.sortRestart&&(o=n,u.$headers.each(function(){this===o||!l&&S(this).is("."+E.css.sortDesc+",."+E.css.sortAsc)||(this.count=-1)})),o=n.column,l){if(u.sortList=[],null!==u.sortForce)for(i=u.sortForce,a=0;a tr").children("th, td");!1===e&&0<=S.inArray("uitheme",i.widgets)&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(a).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(i.namespace+" ")),i.$headers.add(s).removeClass([E.css.header,i.cssHeader,i.cssAsc,i.cssDesc,E.css.sortAsc,E.css.sortDesc,E.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),a.find(i.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(i.namespace+" ")),E.restoreHeaders(t),r.toggleClass(E.css.table+" "+i.tableClass+" tablesorter-"+i.theme,!1===e),t.hasInitialized=!1,delete t.config.cache,"function"==typeof n&&n(t)}},E.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},E.sortNatural=function(t,e){if(t===e)return 0;var n,r,i,o,a,s;if((r=E.regex).hex.test(e)){if((n=parseInt(t.match(r.hex),16))<(i=parseInt(e.match(r.hex),16)))return-1;if(i>16,255&t>>8,255&t)}function tt(t){return K(t)+""}function et(t,e,n){return new nt(t,e,n)}function nt(t,e,n){this.r=t,this.g=e,this.b=n}function rt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function it(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ut(i[0]),ut(i[1]),ut(i[2]))}return(o=Oi.get(t))?e(o.r,o.g,o.b):(null!=t&&"#"===t.charAt(0)&&(4===t.length?(a=t.charAt(1),a+=a,s=t.charAt(2),s+=s,u=t.charAt(3),u+=u):7===t.length&&(a=t.substring(1,3),s=t.substring(3,5),u=t.substring(5,7)),a=parseInt(a,16),s=parseInt(s,16),u=parseInt(u,16)),e(a,s,u))}function ot(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e=Wi.time&&(Wi.flush=Wi.callback(t-Wi.time)),Wi=Wi.next;return t}function vt(){for(var t,e=Hi,n=1/0;e;)e.flush?e=t?t.next=e.next:Hi=e.next:(e.timebi,T=v*w;if(eo.add(Math.atan2(T*Math.sin(C),m*M+T*Math.cos(C))),Math.abs(b)wi&&(a=!0)}}return(!s&&!a&&eo<0||o<-wi)^1&u}function Ut(M,C,k,T){function l(t,e){return Math.abs(t[0]-M)r&&0n[1])return!1;r>n[0]&&(n[0]=r)}else{if(rE}function d(t,e,n){var r=[1,0,0],i=St(Tt(t),Tt(e)),o=Et(i,i),a=i[0],s=o-a*a;if(!s)return!n&&t;var u=E*o/s,l=-E*a/s,c=St(r,i),f=Nt(r,u);_t(f,Nt(i,l));var h=c,p=Et(f,h),d=Et(h,h),g=p*p-d*(Et(f,f)-1);if(!(g<0)){var v=Math.sqrt(g),m=Nt(h,(-p-v)/d);if(_t(m,f),m=At(m),!n)return m;var y,x=t[0],b=e[0],w=t[1],M=e[1];bwi;return It(p,function(s){var u,l,c,f,h;return{lineStart:function(){f=c=!1,h=1},point:function(t,e){var n,r=[t,e],i=p(t,e),o=v?i?0:g(t,e):i?g(t+(t<0?bi:-bi),e):0;if(!u&&(f=c=i)&&s.lineStart(),i!==c&&(n=d(u,r),(Dt(u,n)||Dt(r,n))&&(r[0]+=wi,r[1]+=wi,i=p(r[0],r[1]))),i!==c)h=0,i?(s.lineStart(),n=d(r,u),s.point(n[0],n[1])):(n=d(u,r),s.point(n[0],n[1]),s.lineEnd()),u=n;else if(m&&u&&v^i){var a;o&l||!(a=d(r,u,!0))||(h=0,v?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!i||u&&Dt(u,r)||s.point(r[0],r[1]),u=r,c=i,l=o},lineEnd:function(){c&&s.lineEnd(),u=null},clean:function(){return h|(f&&c)<<1}}},he(i,6*Ci),function(t){return Bt(e,t)})}((M=+t)*Ci),i()):M},e.clipExtent=function(t){return arguments.length?(w=(C=t)?Ut(t[0][0],t[0][1],t[1][0],t[1][1]):ct,i()):C},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],r()):[p,d]},e.center=function(t){return arguments.length?(g=t[0]%360*Ci,v=t[1]%360*Ci,r()):[g*ki,v*ki]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ci,y=t[1]%360*Ci,x=2e.y?1:t.xe.x?1:0}),bottomSite:null},n={list:[],leftEnd:null,rightEnd:null,init:function(){n.leftEnd=n.createHalfEdge(null,"l"),n.rightEnd=n.createHalfEdge(null,"l"),n.leftEnd.r=n.rightEnd,n.rightEnd.l=n.leftEnd,n.list.unshift(n.leftEnd,n.rightEnd)},createHalfEdge:function(t,e){return{edge:t,side:e,vertex:null,l:null,r:null}},insert:function(t,e){e.l=t,e.r=t.r,t.r.l=e,t.r=e},leftBound:function(t){for(var e=n.leftEnd;(e=e.r)!=n.rightEnd&&i.rightOf(e,t););return e.l},del:function(t){t.l.r=t.r,t.r.l=t.l,t.edge=null},right:function(t){return t.r},left:function(t){return t.l},leftRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[t.side]},rightRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[Fo[t.side]]}},i={bisect:function(t,e){var n={region:{l:t,r:e},ep:{l:null,r:null}},r=e.x-t.x,i=e.y-t.y,o=0=a.region.r.x;return f&&"l"===o.side||!f&&"r"===o.side?null:{x:s,y:u}},rightOf:function(t,e){var n=t.edge,r=n.region.r,i=e.x>r.x;if(i&&"l"===t.side)return 1;if(!i&&"r"===t.side)return 0;if(1===n.a){var o=e.y-r.y,a=e.x-r.x,s=0,u=0;if(!i&&n.b<0||i&&0<=n.b?u=s=o>=n.b*a:(u=e.x+e.y*n.b>n.c,n.b<0&&(u=!u),u||(s=1)),!s){var l=r.x-n.region.l.x;u=n.b*(a*a-o*o)a.ystar||t.ystar==a.ystar&&e.x>a.vertex.x))break}i.splice(r,0,t)},del:function(t){for(var e=0,n=s.list,r=n.length;ep.y&&(d=h,h=p,p=d,y="r"),m=i.bisect(h,p),f=n.createHalfEdge(m,y),n.insert(l,f),i.endPoint(m,Fo[y],v),(g=i.intersect(l,f))&&(s.del(l),s.insert(l,g,i.distance(g,h))),(g=i.intersect(f,c))&&s.insert(f,g,i.distance(g,h))}for(a=n.right(n.leftEnd);a!=n.rightEnd;a=n.right(a))r(a.edge)}function Ie(t){return t.x}function ze(t){return t.y}function We(t,e){t=Br.rgb(t),e=Br.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,s=e.b-i;return function(t){return"#"+rt(Math.round(n+o*t))+rt(Math.round(r+a*t))+rt(Math.round(i+s*t))}}function Ve(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Ge(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Be(e,n){return n-=e=+e,function(t){return e+n*t}}function Ue(t,e){var n,r,i,o,a,s=0,u=[],l=[];for(t+="",e+="",Io.lastIndex=0,r=0;n=Io.exec(e);++r)n.index&&u.push(e.substring(s,n.index)),l.push({i:u.length,x:n[0]}),u.push(null),s=Io.lastIndex;for(si&&(r=n,i=e);return r}function Nn(t){return t.reduce($n,0)}function $n(t,e){return t+e[1]}function An(t,e){return Dn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Dn(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function Ln(t){return[Br.min(t),Br.max(t)]}function jn(t,e){return t.parent==e.parent?1:2}function Pn(t){var e=t.children;return e&&e.length?e[0]:t._tree.thread}function qn(t){var e,n=t.children;return n&&(e=n.length)?n[e-1]:t._tree.thread}function Rn(t,e){var n=t.children;if(n&&(i=n.length))for(var r,i,o=-1;++oh?i():(p.active=h,d.event&&d.event.start.call(c,o,f),d.tween.forEach(function(t,e){(e=e.call(c,o,f))&&l.push(e)}),n(t)?1:void dt(n,0,r))}function n(t){if(p.active!==h)return i();for(var e=(t-s)/u,n=a(e),r=l.length;0>>1;o.call(t,t[i],i)>>1;ee;)i.push(r/o);else for(;(r=t+n*++a)=g.length)return p?p.call(d,t):h?t.sort(h):t;for(var e,i,o,a,s=-1,u=t.length,l=g[r++],c=new x;++s=g.length)return t;var i=[],o=e[r++];return t.forEach(function(t,e){i.push({key:t,values:n(e,r)})}),o?i.sort(function(t,e){return o(t.key,e.key)}):i}(f(Br.map,t,0),0)},d.key=function(t){return g.push(t),d},d.sortKeys=function(t){return e[g.length-1]=t,d},d.sortValues=function(t){return h=t,d},d.rollup=function(t){return p=t,d},d},Br.set=function(t){var e=new l;if(t)for(var n=0,r=t.length;n",c=e[3]||"",f=e[4]||"",h=e[5],p=+e[6],d=e[7],g=e[8],v=e[9],m=1,y="",x=!1;switch(g&&(g=+g.substring(1)),(h||"0"===u&&"="===l)&&(h=u="0",l="=",d&&(p-=Math.floor((p-1)/4))),v){case"n":d=!0,v="g";break;case"%":m=100,y="%",v="f";break;case"p":m=100,y="%",v="r";break;case"b":case"o":case"x":case"X":"#"===f&&(f="0"+v.toLowerCase());case"c":case"d":x=!0,g=0;break;case"s":m=-1,v="r"}"#"===f?f="":"$"===f&&(f="$"),"r"!=v||g||(v="g"),null!=g&&("g"==v?g=Math.max(1,Math.min(21,g)):("e"==v||"f"==v)&&(g=Math.max(0,Math.min(20,g)))),v=Yi.get(v)||yt;var b=h&&d;return function(t){if(x&&t%1)return"";var e=t<0||0===t&&1/t<0?(t=-t,"-"):c;if(m<0){var n=Br.formatPrefix(t,g);t=n.scale(t),y=n.symbol}else t*=m;var r=(t=v(t,g)).lastIndexOf("."),i=r<0?t:t.substring(0,r),o=r<0?"":"."+t.substring(r+1);!h&&d&&(i=Xi(i));var a=f.length+i.length+o.length+(b?0:e.length),s=a"===l?s+e+t:"^"===l?s.substring(0,a>>=1)+e+t+s.substring(a):e+(b?t:s+t))+y}};var Gi=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Yi=Br.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Br.round(t,mt(t,e))).toFixed(Math.max(0,Math.min(20,mt(t*(1+1e-15),e))))}}),Xi=ct;if(Bi){var Qi=Bi.length;Xi=function(t){for(var e=t.length,n=[],r=0,i=Bi[0];0f(h,d)&&(d=t):f(t,d)>f(h,d)&&(h=t):h<=d?(tf(h,d)&&(d=t):f(t,d)>f(h,d)&&(h=t)}else c(t,e);m=n,v=t}function t(){w.point=r}function e(){b[0]=h,b[1]=d,w.point=c,m=null}function n(t,e){if(m){var n=t-v;y+=180wi&&(h=-(d=180)),b[0]=h,b[1]=d,m=null}function f(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tf(s[0],s[1])&&(s[1]=i[1]),f(i[0],s[1])>f(s[0],s[1])&&(s[0]=i[0])):n.push(s=i);for(var r,i,o,a=-1/0,s=(e=0,n[o=n.length-1]);e<=o;s=i,++e)i=n[e],(r=f(s[1],i[0]))>a&&(a=r,h=i[0],d=s[1])}return x=b=null,1/0===h||1/0===p?[[NaN,NaN],[NaN,NaN]]:[[h,p],[d,g]]}}(),Br.geo.centroid=function(t){ro=io=oo=ao=so=uo=lo=co=fo=ho=po=0,Br.geo.stream(t,go);var e=fo,n=ho,r=po,i=e*e+n*n+r*r;return iwi?Math.atan((Math.sin(r)*(s=Math.cos(o))*Math.sin(i)-Math.sin(o)*(a=Math.cos(r))*Math.sin(n))/(a*s*u)):(r+o)/2,f.point(g,d),f.lineEnd(),f.lineStart(),f.point(l,d),h=0),f.point(p=t,d=e),g=l},lineEnd:function(){f.lineEnd(),p=d=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*bi/2,r.point(-bi,i),r.point(0,i),r.point(bi,i),r.point(bi,0),r.point(bi,-i),r.point(0,-i),r.point(-bi,-i),r.point(-bi,0),r.point(-bi,i);else if(Math.abs(t[0]-e[0])>wi){var o=(t[0]wi}).map(c)).concat(Br.range(Math.ceil(s/g)*g,a,g).filter(function(t){return Math.abs(t%m)>wi}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,p,d=10,g=d,v=90,m=360,y=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(u).slice(1),h(i).reverse().slice(1),p(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],l=+t[0][1],u=+t[1][1],iwi}).map(function(t){return e[t]})})).forEach(function(t,e){var n=t.length;if(!n)return t.push([-1e6,-1e6],[-1e6,1e6],[1e6,1e6],[1e6,-1e6]);if(!(2u&&(u=e.x),e.y>l&&(l=e.y),n.push(e.x),r.push(e.y);else for(i=0;i=a[0]&&r<=a[1]&&((n=i[Br.bisect(s,r,1,l)-1]).y+=c,n.push(t[e]));return i}var f=!0,h=Number,p=Ln,d=An;return n.value=function(t){return arguments.length?(h=t,n):h},n.range=function(t){return arguments.length?(p=lt(t),n):p},n.bins=function(e){return arguments.length?(d="number"==typeof e?function(t){return Dn(t,e)}:lt(e),n):d},n.frequency=function(t){return arguments.length?(f=!!t,n):f},n},Br.layout.tree=function(){function e(t,e){function h(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=t.parent.children[0],u=i._tree.mod,l=o._tree.mod,c=a._tree.mod,f=s._tree.mod;a=qn(a),i=Pn(i),a&&i;)s=Pn(s),(o=qn(o))._tree.ancestor=t,0<(r=a._tree.prelim+c-i._tree.prelim-u+g(a,i))&&(zn((p=t,d=n,(h=a)._tree.ancestor.parent==p.parent?h._tree.ancestor:d),t,r),u+=r,l+=r),c+=a._tree.mod,u+=i._tree.mod,f+=s._tree.mod,l+=o._tree.mod;a&&!qn(o)&&(o._tree.thread=a,o._tree.mod+=c-l),i&&!Pn(s)&&(s._tree.thread=i,s._tree.mod+=u-f,n=t)}var h,p,d;return n}var n=c.call(this,t,e),r=n[0];In(r,function(t,e){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:e?e._tree.number+1:0}}),function t(e,n){var r=e.children,i=e._tree;if(r&&(o=r.length)){for(var o,a,s,u=r[0],l=u,c=-1;++cn.dy)&&(l=n.dy);++on.dx)&&(l=n.dx);++or;o--);e=e.slice(i,o)}return e},o.tickFormat=function(t,e){if(!arguments.length)return Jo;arguments.length<2?e=Jo:"function"!=typeof e&&(e=Br.format(e));var n,r=Math.max(.1,t/o.ticks().length),i=l?(n=1e-12,Math.ceil):(n=-1e-12,Math.floor);return function(t){return t/h(i(f(t)+n))<=r?e(t):""}},o.copy=function(){return t(e.copy(),u,l,c)},ir(o,e)}(Br.scale.linear().domain([0,1]),10,!0,[1,10])};var Jo=Br.format(".0e"),Ko={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Br.scale.pow=function(){return function t(e,n,r){function i(t){return e(o(t))}var o=lr(n),a=lr(1/n);return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(o)),i):r},i.ticks=function(t){return sr(r,t)},i.tickFormat=function(t,e){return ur(r,t,e)},i.nice=function(t){return i.domain(or(r,t))},i.exponent=function(t){return arguments.length?(o=lr(n=t),a=lr(1/n),e.domain(r.map(o)),i):n},i.copy=function(){return t(e.copy(),n,r)},ir(i,e)}(Br.scale.linear(),1,[0,1])},Br.scale.sqrt=function(){return Br.scale.pow().exponent(.5)},Br.scale.ordinal=function(){return function t(u,l){function c(t){return h[((i.get(t)||i.set(t,u.push(t)))-1)%h.length]}function f(e,n){return Br.range(u.length).map(function(t){return e+n*t})}var i,h,p;return c.domain=function(t){if(!arguments.length)return u;u=[],i=new x;for(var e,n=-1,r=t.length;++nrect,.s>rect").attr("width",_[1]-_[0])}function M(t){t.select(".extent").attr("y",N[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",N[1]-N[0])}function a(){function n(){var t=Br.event.changedTouches;return t?Br.touches(o,t)[0]:Br.mouse(o)}function t(){var t=n(),e=!1;i&&(t[0]+=i[0],t[1]+=i[1]),p||(Br.event.altKey?(f||(f=[(_[0]+_[1])/2,(N[0]+N[1])/2]),g[0]=_[+(t[0]"+t.less+"
"),n=$(""+t.evaluation+"
");$("#overview_btn").hasClass("active")?($("#overview_text").html(n),$("#overview_btn").text("Show Less"),GV.addPlot(t.data,"overview",t.type,t.title,t.footer,t.xtitle,t.ytitle)):($("#overview").find("svg").remove(),$("#overview_text").html(e),$("#overview_btn").text("Show More"))})}},GV.createChildRow=function(t,e,n){var r=' |
';t.addClass("tablesorter-hasChildRow"),t.after(r),n.status="pressed"},GV.removeChildRow=function(t,e,n){t.removeClass("tablesorter-hasChildRow"),e.remove(),n.status="released"},GV.emptyChildRow=function(t,e,n){var r="#"+e+"explanation";$("#"+e).empty(),$(r).remove(),GV.resetStatusOfOtherButtons(t),n.status="pressed"},GV.resetStatusOfOtherButtons=function(t){t.find("td").each(function(){"pressed"==this.status&&(this.status="released")}),t.find(".plot_btn").each(function(){"pressed"==this.status&&(this.status="released")})},GV.addDataToChildRow=function(t,n,r){var e=t.attr("data-jsonFile");$.getJSON(e,function(t){if("all"===r)for(var e in GV.addAllExplanation(n,t.validations),t.validations)void 0!==t.validations[e].graphs&&GV.generatePlotCommands(t.validations[e].graphs,n);else GV.addExplanation(n,t.validations[r]),void 0!==t.validations[r].graphs&&GV.generatePlotCommands(t.validations[r].graphs,n)})},GV.generatePlotCommands=function(t,e){for(var n=0;nApproach: "+e.approach+"
",i="Explanation: "+e.explanation+"
",o="Conclusion: "+e.conclusion+"
",a=$(''+r+i+o+"
");$(n).prepend(a)},GV.addAllExplanation=function(t,e){var n="";for(var r in e)n+=''+e[r].header+"
",n+="Approach: "+e[r].approach+"
",n+="Explanation: "+e[r].explanation+"
",n+="Conclusion: "+e[r].conclusion+"
";var i=$(''+n+"
");$("#row"+t).prepend(i)},GV.addPlot=function(t,e,n,r,i,o,a,s,u){var l;switch(l=""===i?[]:i.split(";"),n){case"scatter":GV.plot_scatter(t,e,r,i,o,a,s,u);break;case"bars":GV.plot_bars(t,e,r,l,o,a,s);break;case"simplebars":GV.plot_simple_bars(t,e,r,l,o,a);break;case"lines":null!==u&&(u=u.split(",")),GV.plot_lines(t,e,r,l,o,a,s,u);break;case"align":null!==u&&(u=u.split(",")),GV.plot_align(t,e,r,l,o,a,s,u)}},GV.color_beautification=function(t){switch(t){case"red":return d3.rgb(189,54,47);case"blue":return d3.rgb(58,135,173);case"green":return d3.rgb(70,136,71);case"yellow":return d3.rgb(255,255,51);case"orange":return d3.rgb(248,148,6);case"violet":return d3.rgb(153,0,153);case"gray":return d3.rgb(160,160,160);default:return t}},GV.plot_bars=function(t,e,n,r,i,o,a){var s=70,u=50,l=75,c=50,f=600-c-u,h=500-s-l,p=d3.select("#".concat(e)).append("svg").attr("width",f+c+u).attr("height",h+s+l).append("g").attr("transform","translate("+c+","+s+")");p.append("text").attr("x",f/2).attr("y",-45).attr("text-anchor","middle").style("font-size","16px").text(n);var d=[].concat.apply([],t),g=d3.max(d,function(t){return t.value})+3,v=d3.scale.linear().domain([0,g+g/10]).range([h,0]),m=d3.min(d,function(t){return t.key});void 0!==a&&(m=Math.min(m,a));var y=d3.max(d,function(t){return t.key});void 0!==a&&(y=Math.max(y,a));var x=d3.scale.linear().domain([m-100,y+100]).range([13,f]),b=d3.svg.axis().scale(x).orient("bottom").ticks(8),w=d3.svg.axis().scale(v).orient("left").tickFormat(d3.format("d")).ticks(8);p.append("g").attr("class","x axis").attr("transform","translate(0,"+h+")").call(b).append("text").attr("class","label").attr("x",(f-i.length)/2-50).attr("y",35).style("text-anchor","start").text(i),p.append("g").attr("class","y axis").call(w).append("text").attr("class","label").attr("transform","rotate(-90)").attr("x",-(h+o.length)/2-50).attr("y",-40).style("text-anchor","start").text(o),t.map(function(t){p.selectAll(".bar").data(t).enter().append("rect").attr("x",function(t){return x(t.key)}).attr("width",6).attr("y",function(t){return v(t.value)}).attr("height",function(t){return h-v(t.value)}).attr("fill",function(t){return!0===t.main?GV.color_beautification("red"):GV.color_beautification("blue")})}),void 0!==a&&(p.append("rect").attr("x",x(a)).attr("width",4).attr("y",v(g+g/10)).style("opacity",.6).attr("height",h-v(g+g/8)).attr("fill",GV.color_beautification("black")),p.append("text").attr("transform","rotate(-90)").attr("x",-g/10-35).attr("y",x(a)-5).text("query"));for(var M=0,C=0,k=0;k' + jsonData[i].header + '';
+ explain += 'Approach: ' + jsonData[i].approach + '
';
+ explain += 'Explanation: ' + jsonData[i].explanation + '
';
+ explain += 'Conclusion: ' + jsonData[i].conclusion + '
';
+ }
+ var allExplain = $('' + explain + '
');
+ var row = '#row' + target;
+ $(row).prepend(allExplain);
+ };
// Functions that produce the plots in D3
GV.addPlot = function (jsonData, target, type, title, footer, xtitle, ytitle, aux1, aux2) {