File size: 276,071 Bytes
b1e5491
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<head>
<style>
.d3-tip,text.node-label{font-weight:700;pointer-events:none}.d3-tip,.drag_line,.drag_line_hidden,text,text.node-label{pointer-events:none}svg{display:block;min-width:100%;width:100%;min-height:100%}circle.node{stroke:#ccc;stroke-width:1px;opacity:1;fill:white}circle.node.label{stroke:transparent;stroke-width:0;fill:white}circle.outline_node{stroke-width:1px;fill:red;visibility:hidden}circle.protein{fill:gray;fill-opacity:0.5;stroke-width:4}.transparent,circle.hidden_outline{stroke-width:0}line.link{stroke:#999;stroke-opacity:0.8;stroke-width:2}line.basepair{stroke:red}line.intermolecule{stroke:blue}line.chain_chain{stroke-dasharray:3,3}line.fake{stroke:green}.transparent{fill:transparent;stroke-opacity:0;opacity:0;visibility:hidden}.drag_line{stroke:#999;stroke-width:2}.drag_line_hidden{stroke:#999;stroke-width:0}.d3-tip{line-height:1;padding:6px;background:rgba(0,0,0,.6);color:#fff;border-radius:4px}text.node-label{font-family:Tahoma,Geneva,sans-serif;color:#646464}circle.outline_node.selected{visibility:visible}.brush .extent{fill-opacity:.1;stroke:#fff;shape-rendering:crispEdges}.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
</style>

</head>

<div id='rna_ss' align="center" height="95%" width="100%" frameBorder="0" AllowFullScreen> </div>

<!-- JQUERY -->
<script type='text/javascript'>
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(h,e){function t(e,t){return t.toUpperCase()}var d=[],c=d.slice,m=d.concat,s=d.push,i=d.indexOf,n={},r=n.toString,g=n.hasOwnProperty,y={},o="1.11.1",w=function(e,t){return new w.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,u=/-([\da-z])/gi;function f(e){var t=e.length,n=w.type(e);return"function"!==n&&!w.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e))}w.fn=w.prototype={jquery:o,constructor:w,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){e=w.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return w.each(this,e,t)},map:function(n){return this.pushStack(w.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:d.sort,splice:d.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||w.isFunction(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(r=arguments[a]))for(n in r)i=o[n],t=r[n],o!==t&&(l&&t&&(w.isPlainObject(t)||(e=w.isArray(t)))?(i=e?(e=!1,i&&w.isArray(i)?i:[]):i&&w.isPlainObject(i)?i:{},o[n]=w.extend(l,i,t)):void 0!==t&&(o[n]=t));return o},w.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===w.type(e)},isArray:Array.isArray||function(e){return"array"===w.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!w.isArray(e)&&0<=e-parseFloat(e)},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){if(!e||"object"!==w.type(e)||e.nodeType||w.isWindow(e))return!1;try{if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(y.ownLast)for(var t in e)return g.call(e,t);for(t in e);return void 0===t||g.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[r.call(e)]||"object":typeof e},globalEval:function(e){e&&w.trim(e)&&(h.execScript||function(e){h.eval.call(h,e)})(e)},camelCase:function(e){return e.replace(l,"ms-").replace(u,t)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=f(e);if(n){if(a)for(;i<o&&!1!==(r=t.apply(e[i],n));i++);else for(i in e)if(r=t.apply(e[i],n),!1===r)break}else if(a)for(;i<o&&!1!==(r=t.call(e[i],i,e[i]));i++);else for(i in e)if(r=t.call(e[i],i,e[i]),!1===r)break;return e},trim:function(e){return null==e?"":(e+"").replace(a,"")},makeArray:function(e,t){t=t||[];return null!=e&&(f(Object(e))?w.merge(t,"string"==typeof e?[e]:e):s.call(t,e)),t},inArray:function(e,t,n){var r;if(t){if(i)return i.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,a=[];if(f(e))for(;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&a.push(r);return m.apply([],a)},guid:1,proxy:function(e,t){var n,r;return"string"==typeof t&&(r=e[t],t=e,e=r),w.isFunction(e)?(n=c.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(c.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r):void 0},now:function(){return+new Date},support:y}),w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function d(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}var e,p,x,o,t,h,f,m,w,u,c,g,T,r,y,v,i,a,b,C="sizzle"+-new Date,N=n.document,E=0,k=0,s=ie(),S=ie(),l=ie(),A=function(e,t){return e===t&&(c=!0),0},D="undefined",j={}.hasOwnProperty,L=[],H=L.pop,_=L.push,q=L.push,M=L.slice,O=L.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=P.replace("w","w#"),W="\\["+B+"*("+P+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+B+"*\\]",$=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",z=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),I=new RegExp("^"+B+"*,"+B+"*"),X=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),U=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),V=new RegExp($),J=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig");try{q.apply(L=M.call(N.childNodes),N.childNodes),L[N.childNodes.length].nodeType}catch(e){q={apply:L.length?function(e,t){_.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function re(e,t,n,r){var i,o,a,s,l,u,c,d,f;if((t?t.ownerDocument||t:N)!==T&&g(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=(t=t||T).nodeType)&&9!==a)return[];if(y&&!r){if(i=Z.exec(e))if(u=i[1]){if(9===a){if(!(o=t.getElementById(u))||!o.parentNode)return n;if(o.id===u)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&b(t,o)&&o.id===u)return n.push(o),n}else{if(i[2])return q.apply(n,t.getElementsByTagName(e)),n;if((u=i[3])&&p.getElementsByClassName&&t.getElementsByClassName)return q.apply(n,t.getElementsByClassName(u)),n}if(p.qsa&&(!v||!v.test(e))){if(c=u=C,d=t,f=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(l=h(e),(u=t.getAttribute("id"))?c=u.replace(te,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",s=l.length;s--;)l[s]=c+fe(l[s]);d=ee.test(e)&&ce(t.parentNode)||t,f=l.join(",")}if(f)try{return q.apply(n,d.querySelectorAll(f)),n}catch(e){}finally{u||t.removeAttribute("id")}}}return m(e.replace(z,"$1"),t,n,r)}function ie(){var n=[];function r(e,t){return n.push(e+" ")>x.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function oe(e){return e[C]=!0,e}function ae(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(a){return oe(function(o){return o=+o,oe(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ce(e){return e&&typeof e.getElementsByTagName!==D&&e}for(e in p=re.support={},t=re.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},g=re.setDocument=function(e){var l=e?e.ownerDocument||e:N,e=l.defaultView;return l!==T&&9===l.nodeType&&l.documentElement?(r=(T=l).documentElement,y=!t(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){g()},!1):e.attachEvent&&e.attachEvent("onunload",function(){g()})),p.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ae(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=K.test(l.getElementsByClassName)&&ae(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),p.getById=ae(function(e){return r.appendChild(e).id=C,!l.getElementsByName||!l.getElementsByName(C).length}),p.getById?(x.find.ID=function(e,t){if(typeof t.getElementById!==D&&y){e=t.getElementById(e);return e&&e.parentNode?[e]:[]}},x.filter.ID=function(e){var t=e.replace(ne,d);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(ne,d);return function(e){e=typeof e.getAttributeNode!==D&&e.getAttributeNode("id");return e&&e.value===t}}),x.find.TAG=p.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==D?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},x.find.CLASS=p.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==D&&y?t.getElementsByClassName(e):void 0},i=[],v=[],(p.qsa=K.test(l.querySelectorAll))&&(ae(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&v.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+B+"*(?:value|"+F+")"),e.querySelectorAll(":checked").length||v.push(":checked")}),ae(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+B+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(p.matchesSelector=K.test(a=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&ae(function(e){p.disconnectedMatch=a.call(e,"div"),a.call(e,"[s!='']:x"),i.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),i=i.length&&new RegExp(i.join("|")),e=K.test(r.compareDocumentPosition),b=e||K.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=e?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===N&&b(N,e)?-1:t===l||t.ownerDocument===N&&b(N,t)?1:u?O.call(u,e)-O.call(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===l?-1:t===l?1:i?-1:o?1:u?O.call(u,e)-O.call(u,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===N?-1:s[r]===N?1:0},l):T},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&g(e),t=t.replace(U,"='$1']"),!(!p.matchesSelector||!y||i&&i.test(t)||v&&v.test(t)))try{var n=a.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<re(t,T,null,[e]).length},re.contains=function(e,t){return(e.ownerDocument||e)!==T&&g(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==T&&g(e);var n=x.attrHandle[t.toLowerCase()],n=n&&j.call(x.attrHandle,t.toLowerCase())?n(e,t,!y):void 0;return void 0!==n?n:p.attributes||!y?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],r=0,i=0;if(c=!p.detectDuplicates,u=!p.sortStable&&e.slice(0),e.sort(A),c){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=re.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(x=re.selectors={cacheLength:50,createPseudo:oe,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==D&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=re.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,h,m){var g="nth"!==p.slice(0,3),y="last"!==p.slice(-4),v="of-type"===e;return 1===h&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,l,u=g!=y?"nextSibling":"previousSibling",c=e.parentNode,d=v&&e.nodeName.toLowerCase(),f=!n&&!v;if(c){if(g){for(;u;){for(o=e;o=o[u];)if(v?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&f){for(s=(r=(i=c[C]||(c[C]={}))[p]||[])[0]===E&&r[1],a=r[0]===E&&r[2],o=s&&c.childNodes[s];o=++s&&o&&o[u]||(a=s=0)||l.pop();)if(1===o.nodeType&&++a&&o===e){i[p]=[E,s,a];break}}else if(f&&(r=(e[C]||(e[C]={}))[p])&&r[0]===E)a=r[1];else for(;(o=++s&&o&&o[u]||(a=s=0)||l.pop())&&((v?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++a||(f&&((o[C]||(o[C]={}))[p]=[E,a]),o!==e)););return(a-=m)===h||a%h==0&&0<=a/h}}},PSEUDO:function(e,o){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return a[C]?a(o):1<a.length?(t=[e,e,"",o],x.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=O.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:oe(function(e){var r=[],i=[],s=f(e.replace(z,"$1"));return s[C]?oe(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),!i.pop()}}),has:oe(function(t){return function(e){return 0<re(t,e).length}}),contains:oe(function(t){return function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:oe(function(n){return J.test(n||"")||re.error("unsupported lang: "+n),n=n.replace(ne,d).toLowerCase(),function(e){var t;do{if(t=y?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:ue(function(){return[0]}),last:ue(function(e,t){return[t-1]}),eq:ue(function(e,t,n){return[n<0?n+t:n]}),even:ue(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ue(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ue(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:ue(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function de(){}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(a,e,t){var s=e.dir,l=t&&"parentNode"===s,u=k++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n)}:function(e,t,n){var r,i,o=[E,u];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((r=(i=e[C]||(e[C]={}))[s])&&r[0]===E&&r[1]===u)return o[2]=r[2];if((i[s]=o)[2]=a(e,t,n))return!0}}}function he(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function me(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)!(o=e[s])||n&&!n(o,r,i)||(a.push(o),u&&t.push(s));return a}function ge(p,h,m,g,y,e){return g&&!g[C]&&(g=ge(g)),y&&!y[C]&&(y=ge(y,e)),oe(function(e,t,n,r){var i,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)re(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!p||!e&&h?c:me(c,s,p,n,r),f=m?y||(e?p:u||g)?[]:t:d;if(m&&m(d,f,n,r),g)for(i=me(f,l),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(f[l[o]]=!(d[l[o]]=a));if(e){if(y||p){if(y){for(i=[],o=f.length;o--;)(a=f[o])&&i.push(d[o]=a);y(null,f=[],i,r)}for(o=f.length;o--;)(a=f[o])&&-1<(i=y?O.call(e,a):s[o])&&(e[i]=!(t[i]=a))}}else f=me(f===t?f.splice(u,f.length):f),y?y(null,t,f,r):q.apply(t,f)})}function ye(g,y){function e(e,t,n,r,i){var o,a,s,l=0,u="0",c=e&&[],d=[],f=w,p=e||b&&x.find.TAG("*",i),h=E+=null==f?1:Math.random()||.1,m=p.length;for(i&&(w=t!==T&&t);u!==m&&null!=(o=p[u]);u++){if(b&&o){for(a=0;s=g[a++];)if(s(o,t,n)){r.push(o);break}i&&(E=h)}v&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,v&&u!==l){for(a=0;s=y[a++];)s(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=H.call(r));d=me(d)}q.apply(r,d),i&&!e&&0<d.length&&1<l+y.length&&re.uniqueSort(r)}return i&&(E=h,w=f),c}var v=0<y.length,b=0<g.length;return v?oe(e):e}return de.prototype=x.filters=x.pseudos,x.setFilters=new de,h=re.tokenize=function(e,t){var n,r,i,o,a,s,l,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(o in n&&!(r=I.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length)),x.filter)!(r=Y[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):S(e,s).slice(0)},f=re.compile=function(e,t){var n,r=[],i=[],o=l[e+" "];if(!o){for(n=(t=t||h(e)).length;n--;)((o=function e(t){for(var r,n,i,o=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],l=a?1:0,u=pe(function(e){return e===r},s,!0),c=pe(function(e){return-1<O.call(r,e)},s,!0),d=[function(e,t,n){return!a&&(n||t!==w)||((r=t).nodeType?u:c)(e,t,n)}];l<o;l++)if(n=x.relative[t[l].type])d=[pe(he(d),n)];else{if((n=x.filter[t[l].type].apply(null,t[l].matches))[C]){for(i=++l;i<o&&!x.relative[t[i].type];i++);return ge(1<l&&he(d),1<l&&fe(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&fe(t))}d.push(n)}return he(d)}(t[n]))[C]?r:i).push(o);(o=l(e,ye(i,r))).selector=e}return o},m=re.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&h(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&p.getById&&9===t.nodeType&&y&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(ne,d),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Y.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((l=x.find[s])&&(r=l(a.matches[0].replace(ne,d),ee.test(o[0].type)&&ce(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&fe(o)))return q.apply(n,r),n;break}}return(u||f(e,c))(r,t,!y,n,ee.test(e)&&ce(t.parentNode)||t),n},p.sortStable=C.split("").sort(A).join("")===C,p.detectDuplicates=!!c,g(),p.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(T.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||se(F,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),re}(h);w.find=p,w.expr=p.selectors,w.expr[":"]=w.expr.pseudos,w.unique=p.uniqueSort,w.text=p.getText,w.isXMLDoc=p.isXML,w.contains=p.contains;var v=w.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function T(e,n,r){if(w.isFunction(n))return w.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return w.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(x.test(n))return w.filter(n,e,r);n=w.filter(n,e)}return w.grep(e,function(e){return 0<=w.inArray(e,n)!==r})}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0}));for(t=0;t<i;t++)w.find(e,r[t],n);return(n=this.pushStack(1<i?w.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&v.test(e)?w(e):e||[],!1).length}});var C,N=h.document,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(w.fn.init=function(e,t){var n,r;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?void 0!==C.ready?C.ready(e):e(w):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this));if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:E.exec(e))||!n[1]&&t)return(!t||t.jquery?t||C:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:N,!0)),b.test(n[1])&&w.isPlainObject(t))for(n in t)w.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=N.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return C.find(e);this.length=1,this[0]=r}return this.context=N,this.selector=e,this}).prototype=w.fn,C=w(N);var k=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;e=e[t],e&&1!==e.nodeType;);return e}w.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!w(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),w.fn.extend({has:function(e){var t,n=w(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(w.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=v.test(e)||"string"!=typeof e?w(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.unique(o):o)},index:function(e){return e?"string"==typeof e?w.inArray(this[0],w(e)):w.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.unique(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return w.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:w.merge([],e.childNodes)}},function(r,i){w.fn[r]=function(e,t){var n=w.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=w.filter(t,n)),1<this.length&&(S[r]||(n=w.unique(n)),k.test(r)&&(n=n.reverse())),this.pushStack(n)}});var D,j=/\S+/g,L={};function H(){N.addEventListener?(N.removeEventListener("DOMContentLoaded",_,!1),h.removeEventListener("load",_,!1)):(N.detachEvent("onreadystatechange",_),h.detachEvent("onload",_))}function _(){!N.addEventListener&&"load"!==event.type&&"complete"!==N.readyState||(H(),w.ready())}w.Callbacks=function(i){var e,n;i="string"==typeof i?L[i]||(n=L[e=i]={},w.each(e.match(j)||[],function(e,t){n[t]=!0}),n):w.extend({},i);var r,t,o,a,s,l,u=[],c=!i.once&&[],d=function(e){for(t=i.memory&&e,o=!0,s=l||0,l=0,a=u.length,r=!0;u&&s<a;s++)if(!1===u[s].apply(e[0],e[1])&&i.stopOnFalse){t=!1;break}r=!1,u&&(c?c.length&&d(c.shift()):t?u=[]:f.disable())},f={add:function(){var e;return u&&(e=u.length,function r(e){w.each(e,function(e,t){var n=w.type(t);"function"===n?i.unique&&f.has(t)||u.push(t):t&&t.length&&"string"!==n&&r(t)})}(arguments),r?a=u.length:t&&(l=e,d(t))),this},remove:function(){return u&&w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,u,n));)u.splice(n,1),r&&(n<=a&&a--,n<=s&&s--)}),this},has:function(e){return e?-1<w.inArray(e,u):!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=c=t=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,t||f.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!u||o&&!c||(t=[e,(t=t||[]).slice?t.slice():t],r?c.push(t):d(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},w.extend({Deferred:function(e){var o=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return w.Deferred(function(r){w.each(o,function(e,t){var n=w.isFunction(i[e])&&i[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[t[0]+"With"](this===a?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},s={};return a.pipe=a.then,w.each(o,function(e,t){var n=t[2],r=t[3];a[t[1]]=n.add,r&&n.add(function(){i=r},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?c.call(arguments):e,r===i?u.notifyWith(n,r):--l||u.resolveWith(n,r)}}var i,n,r,o=0,a=c.call(arguments),s=a.length,l=1!==s||e&&w.isFunction(e.promise)?s:0,u=1===l?e:w.Deferred();if(1<s)for(i=new Array(s),n=new Array(s),r=new Array(s);o<s;o++)a[o]&&w.isFunction(a[o].promise)?a[o].promise().done(t(o,r,a)).fail(u.reject).progress(t(o,n,i)):--l;return l||u.resolveWith(r,a),u.promise()}}),w.fn.ready=function(e){return w.ready.promise().done(e),this},w.extend({isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){if(!0===e?!--w.readyWait:!w.isReady){if(!N.body)return setTimeout(w.ready);(w.isReady=!0)!==e&&0<--w.readyWait||(D.resolveWith(N,[w]),w.fn.triggerHandler&&(w(N).triggerHandler("ready"),w(N).off("ready")))}}}),w.ready.promise=function(e){if(!D)if(D=w.Deferred(),"complete"===N.readyState)setTimeout(w.ready);else if(N.addEventListener)N.addEventListener("DOMContentLoaded",_,!1),h.addEventListener("load",_,!1);else{N.attachEvent("onreadystatechange",_),h.attachEvent("onload",_);var n=!1;try{n=null==h.frameElement&&N.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!w.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}H(),w.ready()}}()}return D.promise(e)};var q,M="undefined";for(q in w(y))break;y.ownLast="0"!==q,y.inlineBlockNeedsLayout=!1,w(function(){var e,t,n=N.getElementsByTagName("body")[0];n&&n.style&&(e=N.createElement("div"),(t=N.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(t).appendChild(e),typeof e.style.zoom!==M&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",y.inlineBlockNeedsLayout=e=3===e.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(t))}),function(){var e=N.createElement("div");if(null==y.deleteExpando){y.deleteExpando=!0;try{delete e.test}catch(e){y.deleteExpando=!1}}e=null}(),w.acceptData=function(e){var t=w.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var O=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,F=/([A-Z])/g;function B(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(F,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:O.test(n)?w.parseJSON(n):n)}catch(e){}w.data(e,t,n)}else n=void 0}return n}function P(e){for(var t in e)if(("data"!==t||!w.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function R(e,t,n,r){if(w.acceptData(e)){var i,o=w.expando,a=e.nodeType,s=a?w.cache:e,l=a?e[o]:e[o]&&o;if(l&&s[l]&&(r||s[l].data)||void 0!==n||"string"!=typeof t)return s[l=l||(a?e[o]=d.pop()||w.guid++:o)]||(s[l]=a?{}:{toJSON:w.noop}),"object"!=typeof t&&"function"!=typeof t||(r?s[l]=w.extend(s[l],t):s[l].data=w.extend(s[l].data,t)),l=s[l],r||(l.data||(l.data={}),l=l.data),void 0!==n&&(l[w.camelCase(t)]=n),"string"==typeof t?null==(i=l[t])&&(i=l[w.camelCase(t)]):i=l,i}}function W(e,t,n){if(w.acceptData(e)){var r,i,o=e.nodeType,a=o?w.cache:e,s=o?e[w.expando]:w.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=w.isArray(t)?t.concat(w.map(t,w.camelCase)):t in r?[t]:(t=w.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!P(r):!w.isEmptyObject(r))return}(n||(delete a[s].data,P(a[s])))&&(o?w.cleanData([e],!0):y.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}w.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?w.cache[e[w.expando]]:e[w.expando])&&!P(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){w.data(this,e)}):1<arguments.length?this.each(function(){w.data(this,e,t)}):o?B(o,e,w.data(o,e)):void 0;if(this.length&&(i=w.data(o),1===o.nodeType&&!w._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(0===(r=a[n].name).indexOf("data-")&&B(o,r=w.camelCase(r.slice(5)),i[r]));w._data(o,"parsedAttrs",!0)}return i},removeData:function(e){return this.each(function(){w.removeData(this,e)})}}),w.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=w._data(e,t),n&&(!r||w.isArray(n)?r=w._data(e,t,w.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){w.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w._data(e,n)||w._data(e,n,{empty:w.Callbacks("once memory").add(function(){w._removeData(e,t+"queue"),w._removeData(e,n)})})}}),w.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):void 0===n?this:this.each(function(){var e=w.queue(this,t,n);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=w.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(r=w._data(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});function $(e,t){return e=t||e,"none"===w.css(e,"display")||!w.contains(e.ownerDocument,e)}var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,I=["Top","Right","Bottom","Left"],X=w.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===w.type(n))for(s in i=!0,n)w.access(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,w.isFunction(r)||(a=!0),u&&(t=a?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(w(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},U=/^(?:checkbox|radio)$/i;!function(){var e=N.createElement("input"),t=N.createElement("div"),n=N.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",y.leadingWhitespace=3===t.firstChild.nodeType,y.tbody=!t.getElementsByTagName("tbody").length,y.htmlSerialize=!!t.getElementsByTagName("link").length,y.html5Clone="<:nav></:nav>"!==N.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),y.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){y.noCloneEvent=!1}),t.cloneNode(!0).click()),null==y.deleteExpando){y.deleteExpando=!0;try{delete t.test}catch(e){y.deleteExpando=!1}}}(),function(){var e,t,n=N.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(y[e+"Bubbles"]=t in h)||(n.setAttribute(t,"t"),y[e+"Bubbles"]=!1===n.attributes[t].expando);n=null}();var V=/^(?:input|select|textarea)$/i,J=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,G=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function ee(){try{return N.activeElement}catch(e){}}function te(e){var t=ne.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h=w._data(e);if(h){for(n.handler&&(n=(s=n).handler,i=s.selector),n.guid||(n.guid=w.guid++),(o=h.events)||(o=h.events={}),(u=h.handle)||((u=h.handle=function(e){return typeof w===M||e&&w.event.triggered===e.type?void 0:w.event.dispatch.apply(u.elem,arguments)}).elem=e),a=(t=(t||"").match(j)||[""]).length;a--;)d=p=(c=Q.exec(t[a])||[])[1],f=(c[2]||"").split(".").sort(),d&&(l=w.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=w.event.special[d]||{},c=w.extend({type:d,origType:p,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:f.join(".")},s),(p=o[d])||((p=o[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,f,u)||(e.addEventListener?e.addEventListener(d,u,!1):e.attachEvent&&e.attachEvent("on"+d,u))),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=w.hasData(e)&&w._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=m=(s=Q.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},f=c[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));l&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)w.event.remove(e,p+t[u],n,r,!0);w.isEmptyObject(c)&&(delete g.handle,w._removeData(e,"events"))}},trigger:function(e,t,n,r){var i,o,a,s,l,u,c=[n||N],d=g.call(e,"type")?e.type:e,f=g.call(e,"namespace")?e.namespace.split("."):[],p=l=n=n||N;if(3!==n.nodeType&&8!==n.nodeType&&!G.test(d+w.event.triggered)&&(0<=d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),o=d.indexOf(":")<0&&"on"+d,(e=e[w.expando]?e:new w.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:w.makeArray(t,[e]),s=w.event.special[d]||{},r||!s.trigger||!1!==s.trigger.apply(n,t))){if(!r&&!s.noBubble&&!w.isWindow(n)){for(a=s.delegateType||d,G.test(a+d)||(p=p.parentNode);p;p=p.parentNode)c.push(p),l=p;l===(n.ownerDocument||N)&&c.push(l.defaultView||l.parentWindow||h)}for(u=0;(p=c[u++])&&!e.isPropagationStopped();)e.type=1<u?a:s.bindType||d,(i=(w._data(p,"events")||{})[e.type]&&w._data(p,"handle"))&&i.apply(p,t),(i=o&&p[o])&&i.apply&&w.acceptData(p)&&(e.result=i.apply(p,t),!1===e.result&&e.preventDefault());if(e.type=d,!r&&!e.isDefaultPrevented()&&(!s._default||!1===s._default.apply(c.pop(),t))&&w.acceptData(n)&&o&&n[d]&&!w.isWindow(n)){(l=n[o])&&(n[o]=null),w.event.triggered=d;try{n[d]()}catch(e){}w.event.triggered=void 0,l&&(n[o]=l)}return e.result}},dispatch:function(e){e=w.event.fix(e);var t,n,r,i,o,a=c.call(arguments),s=(w._data(this,"events")||{})[e.type]||[],l=w.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=w.event.handlers.call(this,e,s),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,i=0;(n=r.handlers[i++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(n.namespace)||(e.handleObj=n,e.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,a))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?0<=w(n,this).index(l):w.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[w.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Y.test(i)?this.mouseHooks:J.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new w.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||N),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||N).documentElement,n=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ee()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===ee()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return w.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return w.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){e=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?w.event.trigger(e,null,t):w.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},w.removeEvent=N.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){t="on"+t;e.detachEvent&&(typeof e[t]===M&&(e[t]=null),e.detachEvent(t,n))},w.Event=function(e,t){return this instanceof w.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?K:Z):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||w.now(),void(this[w.expando]=!0)):new w.Event(e,t)},w.Event.prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=K,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=K,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=K,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){w.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||w.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),y.submitBubbles||(w.event.special.submit={setup:function(){return!w.nodeName(this,"form")&&void w.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=w.nodeName(e,"input")||w.nodeName(e,"button")?e.form:void 0;e&&!w._data(e,"submitBubbles")&&(w.event.add(e,"submit._submit",function(e){e._submit_bubble=!0}),w._data(e,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&w.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!w.nodeName(this,"form")&&void w.event.remove(this,"._submit")}}),y.changeBubbles||(w.event.special.change={setup:function(){return V.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(w.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),w.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),w.event.simulate("change",this,e,!0)})),!1):void w.event.add(this,"beforeactivate._change",function(e){e=e.target;V.test(e.nodeName)&&!w._data(e,"changeBubbles")&&(w.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||w.event.simulate("change",this.parentNode,e,!0)}),w._data(e,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return w.event.remove(this,"._change"),!V.test(this.nodeName)}}),y.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){w.event.simulate(r,e.target,w.event.fix(e),!0)}w.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=w._data(e,r);t||e.addEventListener(n,i,!0),w._data(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=w._data(e,r)-1;t?w._data(e,r,t):(e.removeEventListener(n,i,!0),w._removeData(e,r))}}}),w.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=Z;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),this.each(function(){w.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Z),this.each(function(){w.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?w.event.trigger(e,t,n,!0):void 0}});var ne="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",re=/ jQuery\d+="(?:null|\d+)"/g,ie=new RegExp("<(?:"+ne+")[\\s/>]","i"),oe=/^\s+/,ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,se=/<([\w:]+)/,le=/<tbody/i,ue=/<|&#?\w+;/,ce=/<(?:script|style|link)/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,fe=/^$|\/(?:java|ecma)script/i,pe=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,me={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ge=te(N).appendChild(N.createElement("div"));function ye(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==M?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==M?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||w.nodeName(r,t)?o.push(r):w.merge(o,ye(r,t));return void 0===t||t&&w.nodeName(e,t)?w.merge([e],o):o}function ve(e){U.test(e.type)&&(e.defaultChecked=e.checked)}function be(e,t){return w.nodeName(e,"table")&&w.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function xe(e){return e.type=(null!==w.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Te(e,t){for(var n,r=0;null!=(n=e[r]);r++)w._data(n,"globalEval",!t||w._data(t[r],"globalEval"))}function Ce(e,t){if(1===t.nodeType&&w.hasData(e)){var n,r,i,o=w._data(e),e=w._data(t,o),a=o.events;if(a)for(n in delete e.handle,e.events={},a)for(r=0,i=a[n].length;r<i;r++)w.event.add(t,n,a[n][r]);e.data&&(e.data=w.extend({},e.data))}}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,w.extend({clone:function(e,t,n){var r,i,o,a,s,l=w.contains(e.ownerDocument,e);if(y.html5Clone||w.isXMLDoc(e)||!ie.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ge.innerHTML=e.outerHTML,ge.removeChild(o=ge.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(r=ye(o),s=ye(e),a=0;null!=(i=s[a]);++a)r[a]&&function(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!y.noCloneEvent&&t[w.expando]){for(r in(i=w._data(t)).events)w.removeEvent(t,r,i.handle);t.removeAttribute(w.expando)}"script"===n&&t.text!==e.text?(xe(t).text=e.text,we(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),y.html5Clone&&e.innerHTML&&!w.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&U.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(i,r[a]);if(t)if(n)for(s=s||ye(e),r=r||ye(o),a=0;null!=(i=s[a]);a++)Ce(i,r[a]);else Ce(e,o);return 0<(r=ye(o,"script")).length&&Te(r,!l&&ye(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,d=e.length,f=te(t),p=[],h=0;h<d;h++)if((o=e[h])||0===o)if("object"===w.type(o))w.merge(p,o.nodeType?[o]:o);else if(ue.test(o)){for(s=s||f.appendChild(t.createElement("div")),l=(se.exec(o)||["",""])[1].toLowerCase(),c=me[l]||me._default,s.innerHTML=c[1]+o.replace(ae,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!y.leadingWhitespace&&oe.test(o)&&p.push(t.createTextNode(oe.exec(o)[0])),!y.tbody)for(i=(o="table"!==l||le.test(o)?"<table>"!==c[1]||le.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)w.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(w.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),y.appendChecked||w.grep(ye(p,"input"),ve),h=0;o=p[h++];)if((!r||-1===w.inArray(o,r))&&(a=w.contains(o.ownerDocument,o),s=ye(f.appendChild(o),"script"),a&&Te(s),n))for(i=0;o=s[i++];)fe.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=w.expando,l=w.cache,u=y.deleteExpando,c=w.event.special;null!=(n=e[a]);a++)if((t||w.acceptData(n))&&(o=(i=n[s])&&l[i])){if(o.events)for(r in o.events)c[r]?w.event.remove(n,r):w.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==M?n.removeAttribute(s):n[s]=null,d.push(i))}}}),w.fn.extend({text:function(e){return X(this,function(e){return void 0===e?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||N).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=be(this,e)).insertBefore(e,t.firstChild)})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?w.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||w.cleanData(ye(n)),n.parentNode&&(t&&w.contains(n.ownerDocument,n)&&Te(ye(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&w.cleanData(ye(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&w.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(re,""):void 0;if(!("string"!=typeof e||ce.test(e)||!y.htmlSerialize&&ie.test(e)||!y.leadingWhitespace&&oe.test(e)||me[(se.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(ae,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,w.cleanData(ye(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,r){n=m.apply([],n);var e,t,i,o,a,s,l=0,u=this.length,c=this,d=u-1,f=n[0],p=w.isFunction(f);if(p||1<u&&"string"==typeof f&&!y.checkClone&&de.test(f))return this.each(function(e){var t=c.eq(e);p&&(n[0]=f.call(this,e,t.html())),t.domManip(n,r)});if(u&&(e=(s=w.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===s.childNodes.length&&(s=e),e)){for(i=(o=w.map(ye(s,"script"),xe)).length;l<u;l++)t=s,l!==d&&(t=w.clone(t,!0,!0),i&&w.merge(o,ye(t,"script"))),r.call(this[l],t,l);if(i)for(a=o[o.length-1].ownerDocument,w.map(o,we),l=0;l<i;l++)t=o[l],fe.test(t.type||"")&&!w._data(t,"globalEval")&&w.contains(a,t)&&(t.src?w._evalUrl&&w._evalUrl(t.src):w.globalEval((t.text||t.textContent||t.innerHTML||"").replace(he,"")));s=e=null}return this}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){w.fn[e]=function(e){for(var t,n=0,r=[],i=w(e),o=i.length-1;n<=o;n++)t=n===o?this:this.clone(!0),w(i[n])[a](t),s.apply(r,t.get());return this.pushStack(r)}});var Ne,Ee,ke={};function Se(e,t){var t=w(t.createElement(e)).appendTo(t.body),n=h.getDefaultComputedStyle&&(n=h.getDefaultComputedStyle(t[0]))?n.display:w.css(t[0],"display");return t.detach(),n}function Ae(e){var t=N,n=ke[e];return n||("none"!==(n=Se(e,t))&&n||((t=((Ne=(Ne||w("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ne[0].contentDocument).document).write(),t.close(),n=Se(e,t),Ne.detach()),ke[e]=n),n}y.shrinkWrapBlocks=function(){return null!=Ee?Ee:(Ee=!1,(t=N.getElementsByTagName("body")[0])&&t.style?(e=N.createElement("div"),(n=N.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),typeof e.style.zoom!==M&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(N.createElement("div")).style.width="5px",Ee=3!==e.offsetWidth),t.removeChild(n),Ee):void 0);var e,t,n};var De,je,Le,He,_e,qe,Me=/^margin/,Oe=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Fe=/^(top|right|bottom|left)$/;function Be(t,n){return{get:function(){var e=t();if(null!=e)return e?void delete this.get:(this.get=n).apply(this,arguments)}}}function Pe(){var e,t,n,r=N.getElementsByTagName("body")[0];r&&r.style&&(e=N.createElement("div"),(t=N.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(t).appendChild(e),e.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",Le=He=!1,qe=!0,h.getComputedStyle&&(Le="1%"!==(h.getComputedStyle(e,null)||{}).top,He="4px"===(h.getComputedStyle(e,null)||{width:"4px"}).width,(n=e.appendChild(N.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",e.style.width="1px",qe=!parseFloat((h.getComputedStyle(n,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(n=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(_e=0===n[0].offsetHeight)&&(n[0].style.display="",n[1].style.display="none",_e=0===n[0].offsetHeight),r.removeChild(t))}h.getComputedStyle?(De=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},je=function(e,t,n){var r,i=e.style,o=(n=n||De(e))?n.getPropertyValue(t)||n[t]:void 0;return n&&(""!==o||w.contains(e.ownerDocument,e)||(o=w.style(e,t)),Oe.test(o)&&Me.test(t)&&(r=i.width,e=i.minWidth,t=i.maxWidth,i.minWidth=i.maxWidth=i.width=o,o=n.width,i.width=r,i.minWidth=e,i.maxWidth=t)),void 0===o?o:o+""}):N.documentElement.currentStyle&&(De=function(e){return e.currentStyle},je=function(e,t,n){var r,i,o,a=e.style;return null==(o=(n=n||De(e))?n[t]:void 0)&&a&&a[t]&&(o=a[t]),Oe.test(o)&&!Fe.test(t)&&(r=a.left,(n=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=r,n&&(i.left=n)),void 0===o?o:o+""||"auto"}),(nt=N.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(rt=(rt=nt.getElementsByTagName("a")[0])&&rt.style)&&(rt.cssText="float:left;opacity:.5",y.opacity="0.5"===rt.opacity,y.cssFloat=!!rt.cssFloat,nt.style.backgroundClip="content-box",nt.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===nt.style.backgroundClip,y.boxSizing=""===rt.boxSizing||""===rt.MozBoxSizing||""===rt.WebkitBoxSizing,w.extend(y,{reliableHiddenOffsets:function(){return null==_e&&Pe(),_e},boxSizingReliable:function(){return null==He&&Pe(),He},pixelPosition:function(){return null==Le&&Pe(),Le},reliableMarginRight:function(){return null==qe&&Pe(),qe}})),w.swap=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r};var Re=/alpha\([^)]*\)/i,We=/opacity\s*=\s*([^)]*)/,$e=/^(none|table(?!-c[ea]).+)/,ze=new RegExp("^("+z+")(.*)$","i"),Ie=new RegExp("^([+-])=("+z+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","O","Moz","ms"];function Je(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Ve.length;i--;)if((t=Ve[i]+n)in e)return t;return r}function Ye(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=w._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&$(r)&&(o[a]=w._data(r,"olddisplay",Ae(r.nodeName)))):(i=$(r),(n&&"none"!==n||!i)&&w._data(r,"olddisplay",i?n:w.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Ge(e,t,n){var r=ze.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Qe(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=w.css(e,n+I[o],!0,i)),r?("content"===n&&(a-=w.css(e,"padding"+I[o],!0,i)),"margin"!==n&&(a-=w.css(e,"border"+I[o]+"Width",!0,i))):(a+=w.css(e,"padding"+I[o],!0,i),"padding"!==n&&(a+=w.css(e,"border"+I[o]+"Width",!0,i)));return a}function Ke(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=De(e),a=y.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=je(e,t,o))<0||null==i)&&(i=e.style[t]),Oe.test(i))return i;r=a&&(y.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Qe(e,t,n||(a?"border":"content"),r,o)+"px"}function Ze(e,t,n,r,i){return new Ze.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=je(e,"opacity");return""===e?"1":e}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:y.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=w.camelCase(t),l=e.style;if(t=w.cssProps[s]||(w.cssProps[s]=Je(l,s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"===(o=typeof n)&&(i=Ie.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(w.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||w.cssNumber[s]||(n+="px"),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o=w.camelCase(t);return t=w.cssProps[o]||(w.cssProps[o]=Je(e.style,o)),(o=w.cssHooks[t]||w.cssHooks[o])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=je(e,t,r)),"normal"===i&&t in Ue&&(i=Ue[t]),""===n||n?(t=parseFloat(i),!0===n||w.isNumeric(t)?t||0:i):i}}),w.each(["height","width"],function(e,i){w.cssHooks[i]={get:function(e,t,n){return t?$e.test(w.css(e,"display"))&&0===e.offsetWidth?w.swap(e,Xe,function(){return Ke(e,i,n)}):Ke(e,i,n):void 0},set:function(e,t,n){var r=n&&De(e);return Ge(0,t,n?Qe(e,i,n,y.boxSizing&&"border-box"===w.css(e,"boxSizing",!1,r),r):0)}}}),y.opacity||(w.cssHooks.opacity={get:function(e,t){return We.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=w.isNumeric(t)?"alpha(opacity="+100*t+")":"",e=r&&r.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===w.trim(e.replace(Re,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Re.test(e)?e.replace(Re,i):e+" "+i)}}),w.cssHooks.marginRight=Be(y.reliableMarginRight,function(e,t){return t?w.swap(e,{display:"inline-block"},je,[e,"marginRight"]):void 0}),w.each({margin:"",padding:"",border:"Width"},function(i,o){w.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+I[t]+o]=r[t]||r[t-2]||r[0];return n}},Me.test(i)||(w.cssHooks[i+o].set=Ge)}),w.fn.extend({css:function(e,t){return X(this,function(e,t,n){var r,i,o={},a=0;if(w.isArray(t)){for(r=De(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)},show:function(){return Ye(this,!0)},hide:function(){return Ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){$(this)?w(this).show():w(this).hide()})}}),(w.Tween=Ze).prototype={constructor:Ze,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return(e&&e.get?e:Ze.propHooks._default).get(this)},run:function(e){var t=Ze.propHooks[this.prop];return this.pos=e=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(t&&t.set?t:Ze.propHooks._default).set(this),this}},Ze.prototype.init.prototype=Ze.prototype,Ze.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[w.cssProps[e.prop]]||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ze.propHooks.scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},w.fx=Ze.prototype.init,w.fx.step={};var et,tt,nt,rt,it=/^(?:toggle|show|hide)$/,ot=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),at=/queueHooks$/,st=[function(t,e,n){var r,i,o,a,s,l,u,c=this,d={},f=t.style,p=t.nodeType&&$(t),h=w._data(t,"fxshow");for(r in n.queue||(null==(s=w._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,w.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=w.css(t,"display"),"inline"===("none"===u?w._data(t,"olddisplay")||Ae(t.nodeName):u)&&"none"===w.css(t,"float")&&(y.inlineBlockNeedsLayout&&"inline"!==Ae(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",y.shrinkWrapBlocks()||c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),e)if(i=e[r],it.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}d[r]=h&&h[r]||w.style(t,r)}else u=void 0;if(w.isEmptyObject(d))"inline"===("none"===u?Ae(t.nodeName):u)&&(f.display=u);else for(r in h?"hidden"in h&&(p=h.hidden):h=w._data(t,"fxshow",{}),o&&(h.hidden=!p),p?w(t).show():c.done(function(){w(t).hide()}),c.done(function(){for(var e in w._removeData(t,"fxshow"),d)w.style(t,e,d[e])}),d)a=dt(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],lt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),t=ot.exec(t),i=t&&t[3]||(w.cssNumber[e]?"":"px"),o=(w.cssNumber[e]||"px"!==i&&+r)&&ot.exec(w.css(n.elem,e)),a=1,s=20;if(o&&o[3]!==i)for(i=i||o[3],t=t||[],o=+r||1;a=a||".5",o/=a,w.style(n.elem,e,o+i),a!==(a=n.cur()/r)&&1!==a&&--s;);return t&&(o=n.start=+o||+r||0,n.unit=i,n.end=t[1]?o+(t[1]+1)*t[2]:+t[2]),n}]};function ut(){return setTimeout(function(){et=void 0}),et=w.now()}function ct(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=I[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function dt(e,t,n){for(var r,i=(lt[t]||[]).concat(lt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(i,e,t){var n,o,r=0,a=st.length,s=w.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=et||ut(),e=Math.max(0,u.startTime+u.duration-e),t=1-(e/u.duration||0),n=0,r=u.tweens.length;n<r;n++)u.tweens[n].run(t);return s.notifyWith(i,[u,t,e]),t<1&&r?e:(s.resolveWith(i,[u]),!1)},u=s.promise({elem:i,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:et||ut(),duration:t.duration,tweens:[],createTween:function(e,t){e=w.Tween(i,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(e),e},stop:function(e){var t=0,n=e?u.tweens.length:0;if(o)return this;for(o=!0;t<n;t++)u.tweens[t].run(1);return e?s.resolveWith(i,[u,e]):s.rejectWith(i,[u,e]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(r=w.camelCase(n),i=t[r],o=e[n],w.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=w.cssHooks[r],a&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);r<a;r++)if(n=st[r].call(u,i,c,u.opts))return n;return w.map(c,dt,u),w.isFunction(u.opts.start)&&u.opts.start.call(i,u),w.fx.timer(w.extend(l,{elem:i,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}w.Animation=w.extend(ft,{tweener:function(e,t){for(var n,r=0,i=(e=w.isFunction(e)?(t=e,["*"]):e.split(" ")).length;r<i;r++)n=e[r],lt[n]=lt[n]||[],lt[n].unshift(t)},prefilter:function(e,t){t?st.unshift(e):st.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};return r.duration=w.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in w.fx.speeds?w.fx.speeds[r.duration]:w.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){w.isFunction(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter($).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=w.isEmptyObject(t),o=w.speed(e,n,r),r=function(){var e=ft(this,w.extend({},t),o);(i||w._data(this,"finish"))&&e.stop(!0)};return r.finish=r,i||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(i,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=w.timers,r=w._data(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||w.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=w._data(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=w.timers,o=n?n.length:0;for(t.finish=!0,w.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),w.each(["toggle","show","hide"],function(e,r){var i=w.fn[r];w.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ct(r,!0),e,t,n)}}),w.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){w.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),w.timers=[],w.fx.tick=function(){var e,t=w.timers,n=0;for(et=w.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||w.fx.stop(),et=void 0},w.fx.timer=function(e){w.timers.push(e),e()?w.fx.start():w.timers.pop()},w.fx.interval=13,w.fx.start=function(){tt=tt||setInterval(w.fx.tick,w.fx.interval)},w.fx.stop=function(){clearInterval(tt),tt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(r,e){return r=w.fx&&w.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=setTimeout(e,r);t.stop=function(){clearTimeout(n)}})},(o=N.createElement("div")).setAttribute("className","t"),o.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",p=o.getElementsByTagName("a")[0],rt=(nt=N.createElement("select")).appendChild(N.createElement("option")),z=o.getElementsByTagName("input")[0],p.style.cssText="top:1px",y.getSetAttribute="t"!==o.className,y.style=/top/.test(p.getAttribute("style")),y.hrefNormalized="/a"===p.getAttribute("href"),y.checkOn=!!z.value,y.optSelected=rt.selected,y.enctype=!!N.createElement("form").enctype,nt.disabled=!0,y.optDisabled=!rt.disabled,(z=N.createElement("input")).setAttribute("value",""),y.input=""===z.getAttribute("value"),z.value="t",z.setAttribute("type","radio"),y.radioValue="t"===z.value;var pt=/\r/g;w.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=w.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":w.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):i?(n=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(pt,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:w.trim(w.text(e))}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s<a;s++)if(!(!(t=n[s]).selected&&s!==r||(y.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&w.nodeName(t.parentNode,"optgroup"))){if(t=w(t).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)if(r=i[a],0<=w.inArray(w.valHooks.option.get(r),o))try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){return w.isArray(t)?e.checked=0<=w.inArray(w(e).val(),t):void 0}},y.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ht,mt,gt=w.expr.attrHandle,yt=/^(?:checked|selected)$/i,vt=y.getSetAttribute,bt=y.input;w.fn.extend({attr:function(e,t){return X(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===M?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(t=t.toLowerCase(),r=w.attrHooks[t]||(w.expr.match.bool.test(t)?mt:ht)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void w.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[i++];)r=w.propFix[n]||n,w.expr.match.bool.test(n)?bt&&vt||!yt.test(n)?e[r]=!1:e[w.camelCase("default-"+n)]=e[r]=!1:w.attr(e,n,""),e.removeAttribute(vt?n:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&w.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),mt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):bt&&vt||!yt.test(n)?e.setAttribute(!vt&&w.propFix[n]||n,n):e[w.camelCase("default-"+n)]=e[n]=!0,n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var o=gt[t]||w.find.attr;gt[t]=bt&&vt||!yt.test(t)?function(e,t,n){var r,i;return n||(i=gt[t],gt[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,gt[t]=i),r}:function(e,t,n){return n?void 0:e[w.camelCase("default-"+t)]?t.toLowerCase():null}}),bt&&vt||(w.attrHooks.value={set:function(e,t,n){return w.nodeName(e,"input")?void(e.defaultValue=t):ht&&ht.set(e,t,n)}}),vt||(ht={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},gt.id=gt.name=gt.coords=function(e,t,n){return n?void 0:(t=e.getAttributeNode(t))&&""!==t.value?t.value:null},w.valHooks.button={get:function(e,t){t=e.getAttributeNode(t);return t&&t.specified?t.value:void 0},set:ht.set},w.attrHooks.contenteditable={set:function(e,t,n){ht.set(e,""!==t&&t,n)}},w.each(["width","height"],function(e,n){w.attrHooks[n]={set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):void 0}}})),y.style||(w.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var xt=/^(?:input|select|textarea|button|object)$/i,wt=/^(?:a|area)$/i;w.fn.extend({prop:function(e,t){return X(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return e=w.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),w.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!w.isXMLDoc(e))&&(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}}}),y.hrefNormalized||w.each(["href","src"],function(e,t){w.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),y.optSelected||(w.propHooks.selected={get:function(e){e=e.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),y.enctype||(w.propFix.enctype="encoding");var Tt=/[\t\r\n\f]/g;w.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,l=this.length,u="string"==typeof t&&t;if(w.isFunction(t))return this.each(function(e){w(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(j)||[];s<l;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Tt," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=w.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof t&&t;if(w.isFunction(t))return this.each(function(e){w(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(j)||[];s<l;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Tt," "):"")){for(o=0;i=e[o++];)for(;0<=r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");a=t?w.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(i,t){var o=typeof i;return"boolean"==typeof t&&"string"==o?t?this.addClass(i):this.removeClass(i):this.each(w.isFunction(i)?function(e){w(this).toggleClass(i.call(this,e,this.className,t),t)}:function(){if("string"==o)for(var e,t=0,n=w(this),r=i.match(j)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else o!==M&&"boolean"!=o||(this.className&&w._data(this,"__className__",this.className),this.className=!this.className&&!1!==i&&w._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(Tt," ").indexOf(t))return!0;return!1}}),w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){w.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Ct=w.now(),Nt=/\?/,Et=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;w.parseJSON=function(e){if(h.JSON&&h.JSON.parse)return h.JSON.parse(e+"");var i,o=null,t=w.trim(e+"");return t&&!w.trim(t.replace(Et,function(e,t,n,r){return i&&t&&(o=0),0===o?e:(i=n||t,o+=!r-!n,"")}))?Function("return "+t)():w.error("Invalid JSON: "+e)},w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{h.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var kt,St,At=/#.*$/,Dt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,_t=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qt={},Mt={},Ot="*/".concat("*");try{St=location.href}catch(e){(St=N.createElement("a")).href="",St=St.href}function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(j)||[];if(w.isFunction(t))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,r,i,o){var a={},s=t===Mt;function l(e){var n;return a[e]=!0,w.each(t[e]||[],function(e,t){t=t(r,i,o);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(r.dataTypes.unshift(t),l(t),!1)}),n}return l(r.dataTypes[0])||!a["*"]&&l("*")}function Pt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n=n||{})[r]=t[r]);return n&&w.extend(!0,e,n),e}kt=_t.exec(St.toLowerCase())||[],w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pt(Pt(e,w.ajaxSettings),t):Pt(w.ajaxSettings,e)},ajaxPrefilter:Ft(qt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,l,u,c,d,f,r,p=w.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?w(h):w.event,g=w.Deferred(),y=w.Callbacks("once memory"),v=p.statusCode||{},i={},o={},b=0,a="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!r)for(r={};t=jt.exec(u);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=o[n]=o[n]||e,i[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){e=e||a;return f&&f.abort(e),s(0,e),this}};if(g.promise(x).complete=y.add,x.success=x.done,x.error=x.fail,p.url=((e||p.url||St)+"").replace(At,"").replace(Ht,kt[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=w.trim(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain&&(e=_t.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===kt[1]&&e[2]===kt[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(kt[3]||("http:"===kt[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),Bt(qt,p,t,x),2===b)return x;for(n in(d=p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),l=p.url,p.hasContent||(p.data&&(l=p.url+=(Nt.test(l)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Dt.test(l)?l.replace(Dt,"$1_="+Ct++):l+(Nt.test(l)?"&":"?")+"_="+Ct++)),p.ifModified&&(w.lastModified[l]&&x.setRequestHeader("If-Modified-Since",w.lastModified[l]),w.etag[l]&&x.setRequestHeader("If-None-Match",w.etag[l])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ot+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(h,x,p)||2===b))return x.abort();for(n in a="abort",{success:1,error:1,complete:1})x[n](p[n]);if(f=Bt(Mt,p,t,x)){x.readyState=1,d&&m.trigger("ajaxSend",[x,p]),p.async&&0<p.timeout&&(c=setTimeout(function(){x.abort("timeout")},p.timeout));try{b=1,f.send(i,s)}catch(e){if(!(b<2))throw e;s(-1,e)}}else s(-1,"No Transport");function s(e,t,n,r){var i,o,a,s=t;2!==b&&(b=2,c&&clearTimeout(c),f=void 0,u=r||"",x.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r=r||a}o=o||r}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}(p,x,n)),a=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,a,x,r),r?(p.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(w.lastModified[l]=n),(n=x.getResponseHeader("etag"))&&(w.etag[l]=n)),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=a.state,i=a.data,r=!(o=a.error))):(o=s,!e&&s||(s="error",e<0&&(e=0))),x.status=e,x.statusText=(t||s)+"",r?g.resolveWith(h,[i,s,x]):g.rejectWith(h,[x,s,o]),x.statusCode(v),v=void 0,d&&m.trigger(r?"ajaxSuccess":"ajaxError",[x,p,r?i:o]),y.fireWith(h,[x,s]),d&&(m.trigger("ajaxComplete",[x,p]),--w.active||w.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,i){w[i]=function(e,t,n,r){return w.isFunction(t)&&(r=r||n,n=t,t=void 0),w.ajax({url:e,type:i,dataType:r,data:t,success:n})}}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(t){return w.isFunction(t)?this.each(function(e){w(this).wrapAll(t.call(this,e))}):(this[0]&&(e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this);var e},wrapInner:function(n){return this.each(w.isFunction(n)?function(e){w(this).wrapInner(n.call(this,e))}:function(){var e=w(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=w.isFunction(t);return this.each(function(e){w(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}}),w.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!y.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||w.css(e,"display"))},w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)};var Rt=/%20/g,Wt=/\[\]$/,$t=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;w.param=function(e,t){function n(e,t){t=w.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var r,i=[];if(void 0===t&&(t=w.ajaxSettings&&w.ajaxSettings.traditional),w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,i,o){if(w.isArray(e))w.each(e,function(e,t){i||Wt.test(r)?o(r,t):n(r+"["+("object"==typeof t?e:"")+"]",t,i,o)});else if(i||"object"!==w.type(e))o(r,e);else for(var t in e)n(r+"["+t+"]",e[t],i,o)}(r,e[r],t,n);return i.join("&").replace(Rt,"+")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&It.test(this.nodeName)&&!zt.test(e)&&(this.checked||!U.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace($t,"\r\n")}}):{name:t.name,value:n.replace($t,"\r\n")}}).get()}}),w.ajaxSettings.xhr=void 0!==h.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Vt()||function(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Vt;var Xt=0,Ut={},z=w.ajaxSettings.xhr();function Vt(){try{return new h.XMLHttpRequest}catch(e){}}h.ActiveXObject&&w(h).on("unload",function(){for(var e in Ut)Ut[e](void 0,!0)}),y.cors=!!z&&"withCredentials"in z,(z=y.ajax=!!z)&&w.ajaxTransport(function(l){var u;if(!l.crossDomain||y.cors)return{send:function(e,o){var t,a=l.xhr(),s=++Xt;if(a.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(t in l.xhrFields)a[t]=l.xhrFields[t];for(t in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(l.hasContent&&l.data||null),u=function(e,t){var n,r,i;if(u&&(t||4===a.readyState))if(delete Ut[s],u=void 0,a.onreadystatechange=w.noop,t)4!==a.readyState&&a.abort();else{i={},n=a.status,"string"==typeof a.responseText&&(i.text=a.responseText);try{r=a.statusText}catch(e){r=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=i.text?200:404}i&&o(n,r,i,a.getAllResponseHeaders())},l.async?4===a.readyState?setTimeout(u):a.onreadystatechange=Ut[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),w.ajaxTransport("script",function(t){if(t.crossDomain){var r,i=N.head||w("head")[0]||N.documentElement;return{send:function(e,n){(r=N.createElement("script")).async=!0,t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(e,t){!t&&r.readyState&&!/loaded|complete/.test(r.readyState)||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,t||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(void 0,!0)}}}});var Jt=[],Yt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||w.expando+"_"+Ct++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=w.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||w.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=h[r],h[r]=function(){o=arguments},n.always(function(){h[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(r)),o&&w.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),w.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||N;var r=b.exec(e),n=!n&&[];return r?[t.createElement(r[1])]:(r=w.buildFragment([e],t,n),n&&n.length&&w(n).remove(),w.merge([],r.childNodes))};var Gt=w.fn.load;w.fn.load=function(e,t,n){if("string"!=typeof e&&Gt)return Gt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return 0<=s&&(r=w.trim(e.slice(s,e.length)),e=e.slice(0,s)),w.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&w.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},w.expr.filters.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length};var Qt=h.document.documentElement;function Kt(e){return w.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}w.offset={setOffset:function(e,t,n){var r,i,o,a,s=w.css(e,"position"),l=w(e),u={};"static"===s&&(e.style.position="relative"),o=l.offset(),r=w.css(e,"top"),a=w.css(e,"left"),a=("absolute"===s||"fixed"===s)&&-1<w.inArray("auto",[r,a])?(i=(s=l.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),w.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+i),null!=t.left&&(u.left=t.left-o.left+a),"using"in t?t.using.call(e,u):l.css(u)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,n={top:0,left:0},r=this[0],i=r&&r.ownerDocument;return i?(e=i.documentElement,w.contains(e,r)?(typeof r.getBoundingClientRect!==M&&(n=r.getBoundingClientRect()),i=Kt(i),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===w.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),w.nodeName(e[0],"html")||(n=e.offset()),n.top+=w.css(e[0],"borderTopWidth",!0),n.left+=w.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-w.css(r,"marginTop",!0),left:t.left-n.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Qt;e&&!w.nodeName(e,"html")&&"static"===w.css(e,"position");)e=e.offsetParent;return e||Qt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o=/Y/.test(i);w.fn[t]=function(e){return X(this,function(e,t,n){var r=Kt(e);return void 0===n?r?i in r?r[i]:r.document.documentElement[t]:e[t]:void(r?r.scrollTo(o?w(r).scrollLeft():n,o?n:w(r).scrollTop()):e[t]=n)},t,e,arguments.length,null)}}),w.each(["top","left"],function(e,n){w.cssHooks[n]=Be(y.pixelPosition,function(e,t){return t?(t=je(e,n),Oe.test(t)?w(e).position()[n]+"px":t):void 0})}),w.each({Height:"height",Width:"width"},function(o,a){w.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,e){w.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return X(this,function(e,t,n){var r;return w.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?w.css(e,t,i):w.style(e,t,n,i)},a,n?e:void 0,n,null)}})}),w.fn.size=function(){return this.length},w.fn.andSelf=w.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Zt=h.jQuery,en=h.$;return w.noConflict=function(e){return h.$===w&&(h.$=en),e&&h.jQuery===w&&(h.jQuery=Zt),w},typeof e===M&&(h.jQuery=h.$=w),w});
</script> <!-- JQUERY -->


<!-- d3 -->
<script type='text/javascript'>
!function(){var L={version:"3.4.13"};Date.now||(Date.now=function(){return+new Date});var i=[].slice,h=function(n){return i.call(n)},r=document,t=r.documentElement,T=window;try{h(t.childNodes)[0].nodeType}catch(n){h=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}try{r.createElement("div").style.setProperty("opacity",0,"")}catch(n){var e=T.Element.prototype,o=e.setAttribute,u=e.setAttributeNS,a=T.CSSStyleDeclaration.prototype,c=a.setProperty;e.setAttribute=function(n,t){o.call(this,n,t+"")},e.setAttributeNS=function(n,t,e){u.call(this,n,t,e+"")},a.setProperty=function(n,t,e){c.call(this,n,t+"",e)}}function l(n,t){return n<t?-1:t<n?1:t<=n?0:NaN}function f(n){return null===n?NaN:+n}function s(n){return!isNaN(n)}function n(o){return{left:function(n,t,e,r){for(arguments.length<3&&(e=0),arguments.length<4&&(r=n.length);e<r;){var i=e+r>>>1;o(n[i],t)<0?e=1+i:r=i}return e},right:function(n,t,e,r){for(arguments.length<3&&(e=0),arguments.length<4&&(r=n.length);e<r;){var i=e+r>>>1;0<o(n[i],t)?r=i:e=1+i}return e}}}L.ascending=l,L.descending=function(n,t){return t<n?-1:n<t?1:n<=t?0:NaN},L.min=function(n,t){var e,r,i=-1,o=n.length;if(1===arguments.length){for(;++i<o&&!(null!=(e=n[i])&&e<=e);)e=void 0;for(;++i<o;)null!=(r=n[i])&&r<e&&(e=r)}else{for(;++i<o&&!(null!=(e=t.call(n,n[i],i))&&e<=e);)e=void 0;for(;++i<o;)null!=(r=t.call(n,n[i],i))&&r<e&&(e=r)}return e},L.max=function(n,t){var e,r,i=-1,o=n.length;if(1===arguments.length){for(;++i<o&&!(null!=(e=n[i])&&e<=e);)e=void 0;for(;++i<o;)null!=(r=n[i])&&e<r&&(e=r)}else{for(;++i<o&&!(null!=(e=t.call(n,n[i],i))&&e<=e);)e=void 0;for(;++i<o;)null!=(r=t.call(n,n[i],i))&&e<r&&(e=r)}return e},L.extent=function(n,t){var e,r,i,o=-1,u=n.length;if(1===arguments.length){for(;++o<u&&!(null!=(e=i=n[o])&&e<=e);)e=i=void 0;for(;++o<u;)null!=(r=n[o])&&(r<e&&(e=r),i<r&&(i=r))}else{for(;++o<u&&!(null!=(e=i=t.call(n,n[o],o))&&e<=e);)e=void 0;for(;++o<u;)null!=(r=t.call(n,n[o],o))&&(r<e&&(e=r),i<r&&(i=r))}return[e,i]},L.sum=function(n,t){var e,r=0,i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)s(e=+n[o])&&(r+=e);else for(;++o<i;)s(e=+t.call(n,n[o],o))&&(r+=e);return r},L.mean=function(n,t){var e,r=0,i=n.length,o=-1,u=i;if(1===arguments.length)for(;++o<i;)s(e=f(n[o]))?r+=e:--u;else for(;++o<i;)s(e=f(t.call(n,n[o],o)))?r+=e:--u;return u?r/u:void 0},L.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),t=+n[r-1],e=e-r;return e?t+e*(n[r]-t):t},L.median=function(n,t){var e,r=[],i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)s(e=f(n[o]))&&r.push(e);else for(;++o<i;)s(e=f(t.call(n,n[o],o)))&&r.push(e);return r.length?L.quantile(r.sort(l),.5):void 0};var p=n(l);function g(n){return n.length}L.bisectLeft=p.left,L.bisect=L.bisectRight=p.right,L.bisector=function(e){return n(1===e.length?function(n,t){return l(e(n),t)}:e)},L.shuffle=function(n){for(var t,e,r=n.length;r;)e=Math.random()*r--|0,t=n[r],n[r]=n[e],n[e]=t;return n},L.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},L.pairs=function(n){for(var t=0,e=n.length-1,r=n[0],i=new Array(e<0?0:e);t<e;)i[t]=[r,r=n[++t]];return i},L.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=L.min(arguments,g),e=new Array(t);++n<t;)for(var r,i=-1,o=e[n]=new Array(r);++i<r;)o[i]=arguments[i][n];return e},L.transpose=function(n){return L.zip.apply(L,n)},L.keys=function(n){var t,e=[];for(t in n)e.push(t);return e},L.values=function(n){var t,e=[];for(t in n)e.push(n[t]);return e},L.entries=function(n){var t,e=[];for(t in n)e.push({key:t,value:n[t]});return e},L.merge=function(n){for(var t,e,r,i=n.length,o=-1,u=0;++o<i;)u+=n[o].length;for(e=new Array(u);0<=--i;)for(t=(r=n[i]).length;0<=--t;)e[--u]=r[t];return e};var q=Math.abs;function d(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function m(){this._=Object.create(null)}L.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e==1/0)throw new Error("infinite range");var r,i=[],o=function(n){var t=1;for(;n*t%1;)t*=10;return t}(q(e)),u=-1;if(n*=o,t*=o,(e*=o)<0)for(;(r=n+e*++u)>t;)i.push(r/o);else for(;(r=n+e*++u)<t;)i.push(r/o);return i},L.map=function(n){var e=new m;if(n instanceof m)n.forEach(function(n,t){e.set(n,t)});else for(var t in n)e.set(t,n[t]);return e};var v="__proto__",y="\0";function x(n){return(n+="")===v||n[0]===y?y+n:n}function M(n){return(n+="")[0]===y?n.slice(1):n}function _(n){return x(n)in this._}function b(n){return(n=x(n))in this._&&delete this._[n]}function w(){var n,t=[];for(n in this._)t.push(M(n));return t}function S(){var n,t=0;for(n in this._)++t;return t}function k(){for(var n in this._)return!1;return!0}function N(){this._=Object.create(null)}function E(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=A.length;e<r;++e){var i=A[e]+t;if(i in n)return i}}d(m,{has:_,get:function(n){return this._[x(n)]},set:function(n,t){return this._[x(n)]=t},remove:b,keys:w,values:function(){var n,t=[];for(n in this._)t.push(this._[n]);return t},entries:function(){var n,t=[];for(n in this._)t.push({key:M(n),value:this._[n]});return t},size:S,empty:k,forEach:function(n){for(var t in this._)n.call(this,M(t),this._[t])}}),L.nest=function(){var s,h,p={},g=[],t=[];function d(e,n,r){if(r>=g.length)return h?h.call(p,n):s?n.sort(s):n;for(var t,i,o,u,a=-1,c=n.length,l=g[r++],f=new m;++a<c;)(u=f.get(t=l(i=n[a])))?u.push(i):f.set(t,[i]);return o=e?(i=e(),function(n,t){i.set(n,d(e,t,r))}):(i={},function(n,t){i[n]=d(e,t,r)}),f.forEach(o),i}return p.map=function(n,t){return d(t,n,0)},p.entries=function(n){return function e(n,r){if(r>=g.length)return n;var i=[],o=t[r++];return n.forEach(function(n,t){i.push({key:n,values:e(t,r)})}),o?i.sort(function(n,t){return o(n.key,t.key)}):i}(d(L.map,n,0),0)},p.key=function(n){return g.push(n),p},p.sortKeys=function(n){return t[g.length-1]=n,p},p.sortValues=function(n){return s=n,p},p.rollup=function(n){return h=n,p},p},L.set=function(n){var t=new N;if(n)for(var e=0,r=n.length;e<r;++e)t.add(n[e]);return t},d(N,{has:_,add:function(n){return this._[x(n+="")]=!0,n},remove:b,values:w,size:S,empty:k,forEach:function(n){for(var t in this._)n.call(this,M(t))}}),L.behavior={},L.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r<i;)n[e=arguments[r]]=function(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}(n,t,t[e]);return n};var A=["webkit","ms","moz","Moz","o","O"];function C(){}function z(){}function R(i){var o=[],r=new m;function n(){for(var n,t=o,e=-1,r=t.length;++e<r;)(n=t[e].on)&&n.apply(this,arguments);return i}return n.on=function(n,t){var e=r.get(n);return arguments.length<2?e&&e.on:(e&&(e.on=null,o=o.slice(0,e=o.indexOf(e)).concat(o.slice(e+1)),r.remove(n)),t&&o.push(r.set(n,{on:t})),i)},n}function D(){L.event.preventDefault()}function P(){for(var n,t=L.event;n=t.sourceEvent;)t=n;return t}function U(i){for(var o=new z,n=0,t=arguments.length;++n<t;)o[arguments[n]]=R(o);return o.of=function(e,r){return function(n){try{var t=n.sourceEvent=L.event;n.target=i,L.event=n,o[n.type].apply(e,r)}finally{L.event=t}}},o}L.dispatch=function(){for(var n=new z,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=R(n);return n},z.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(0<=e&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},L.event=null,L.requote=function(n){return n.replace(j,"\\$&")};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,F={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]};function H(n){return F(n,V),n}var O=function(n,t){return t.querySelector(n)},Y=function(n,t){return t.querySelectorAll(n)},I=t.matches||t[E(t,"matchesSelector")],Z=function(n,t){return I.call(n,t)};"function"==typeof Sizzle&&(O=function(n,t){return Sizzle(n,t)[0]||null},Z=(Y=Sizzle).matchesSelector),L.selection=function(){return sn};var V=L.selection.prototype=[];function X(n){return"function"==typeof n?n:function(){return O(n,this)}}function $(n){return"function"==typeof n?n:function(){return Y(n,this)}}V.select=function(n){var t,e,r,i,o=[];n=X(n);for(var u=-1,a=this.length;++u<a;){o.push(t=[]),t.parentNode=(r=this[u]).parentNode;for(var c=-1,l=r.length;++c<l;)(i=r[c])?(t.push(e=n.call(i,i.__data__,c,u)),e&&"__data__"in i&&(e.__data__=i.__data__)):t.push(null)}return H(o)},V.selectAll=function(n){var t,e,r=[];n=$(n);for(var i=-1,o=this.length;++i<o;)for(var u=this[i],a=-1,c=u.length;++a<c;)(e=u[a])&&(r.push(t=h(n.call(e,e.__data__,a,i))),t.parentNode=e);return H(r)};var B={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t,e){return t=L.ns.qualify(t),null==e?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof e?t.local?function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}:function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}:t.local?function(){this.setAttributeNS(t.space,t.local,e)}:function(){this.setAttribute(t,e)}}function J(n){return n.trim().replace(/\s+/g," ")}function G(n){return new RegExp("(?:^|\\s+)"+L.requote(n)+"(?:\\s+|$)","g")}function K(n){return(n+"").trim().split(/^|\s+/)}function Q(e,r){var i=(e=K(e).map(nn)).length;return"function"==typeof r?function(){for(var n=-1,t=r.apply(this,arguments);++n<i;)e[n](this,t)}:function(){for(var n=-1;++n<i;)e[n](this,r)}}function nn(r){var i=G(r);return function(n,t){if(e=n.classList)return t?e.add(r):e.remove(r);var e=n.getAttribute("class")||"";t?(i.lastIndex=0,i.test(e)||n.setAttribute("class",J(e+" "+r))):n.setAttribute("class",J(e.replace(i," ")))}}function tn(t,e,r){return null==e?function(){this.style.removeProperty(t)}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function en(t,e){return null==e?function(){delete this[t]}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}:function(){this[t]=e}}function rn(n){return"function"==typeof n?n:(n=L.ns.qualify(n)).local?function(){return this.ownerDocument.createElementNS(n.space,n.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,n)}}function on(n){return{__data__:n}}function un(n){return function(){return Z(this,n)}}function an(n,t){for(var e=0,r=n.length;e<r;e++)for(var i,o=n[e],u=0,a=o.length;u<a;u++)(i=o[u])&&t(i,u,e);return n}function cn(n){return F(n,ln),n}L.ns={prefix:B,qualify:function(n){var t=n.indexOf(":"),e=n;return 0<=t&&(e=n.slice(0,t),n=n.slice(t+1)),B.hasOwnProperty(e)?{space:B[e],local:n}:n}},V.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return(n=L.ns.qualify(n)).local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(W(t,n[t]));return this}return this.each(W(n,t))},V.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=K(n)).length,i=-1;if(t=e.classList){for(;++i<r;)if(!t.contains(n[i]))return!1}else for(t=e.getAttribute("class");++i<r;)if(!G(n[i]).test(t))return!1;return!0}for(t in n)this.each(Q(t,n[t]));return this}return this.each(Q(n,t))},V.style=function(n,t,e){var r=arguments.length;if(r<3){if("string"!=typeof n){for(e in r<2&&(t=""),n)this.each(tn(e,n[e],t));return this}if(r<2)return T.getComputedStyle(this.node(),null).getPropertyValue(n);e=""}return this.each(tn(n,t,e))},V.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(en(t,n[t]));return this}return this.each(en(n,t))},V.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},V.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},V.append=function(n){return n=rn(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},V.insert=function(n,t){return n=rn(n),t=X(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},V.remove=function(){return this.each(function(){var n=this.parentNode;n&&n.removeChild(this)})},V.data=function(n,g){var t,e,r=-1,i=this.length;if(!arguments.length){for(n=new Array(i=(t=this[0]).length);++r<i;)(e=t[r])&&(n[r]=e.__data__);return n}function o(n,t){var e,r,i=n.length,o=t.length,u=Math.min(i,o),a=new Array(o),c=new Array(o),l=new Array(i);if(g){for(var f,s=new m,h=new Array(i),p=-1;++p<i;)s.has(f=g.call(e=n[p],e.__data__,p))?l[p]=e:s.set(f,e),h[p]=f;for(p=-1;++p<o;)(e=s.get(f=g.call(t,r=t[p],p)))?!0!==e&&((a[p]=e).__data__=r):c[p]=on(r),s.set(f,!0);for(p=-1;++p<i;)!0!==s.get(h[p])&&(l[p]=n[p])}else{for(p=-1;++p<u;)e=n[p],r=t[p],e?(e.__data__=r,a[p]=e):c[p]=on(r);for(;p<o;++p)c[p]=on(t[p]);for(;p<i;++p)l[p]=n[p]}c.update=a,c.parentNode=a.parentNode=l.parentNode=n.parentNode,d.push(c),v.push(a),y.push(l)}var d=cn([]),v=H([]),y=H([]);if("function"==typeof n)for(;++r<i;)o(t=this[r],n.call(t,t.parentNode.__data__,r));else for(;++r<i;)o(t=this[r],n);return v.enter=function(){return d},v.exit=function(){return y},v},V.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},V.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=un(n));for(var o=0,u=this.length;o<u;o++){i.push(t=[]),t.parentNode=(e=this[o]).parentNode;for(var a=0,c=e.length;a<c;a++)(r=e[a])&&n.call(r,r.__data__,a,o)&&t.push(r)}return H(i)},V.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],i=r.length-1,o=r[i];0<=--i;)(e=r[i])&&(o&&o!==e.nextSibling&&o.parentNode.insertBefore(e,o),o=e);return this},V.sort=function(n){n=function(e){arguments.length||(e=l);return function(n,t){return n&&t?e(n.__data__,t.__data__):!n-!t}}.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},V.each=function(r){return an(this,function(n,t,e){r.call(n,n.__data__,t,e)})},V.call=function(n){var t=h(arguments);return n.apply(t[0]=this,t),this},V.empty=function(){return!this.node()},V.node=function(){for(var n=0,t=this.length;n<t;n++)for(var e=this[n],r=0,i=e.length;r<i;r++){var o=e[r];if(o)return o}return null},V.size=function(){var n=0;return an(this,function(){++n}),n};var ln=[];function fn(){var n=this.__transition__;n&&++n.active}L.selection.enter=cn,(L.selection.enter.prototype=ln).append=V.append,ln.empty=V.empty,ln.node=V.node,ln.call=V.call,ln.size=V.size,ln.select=function(n){for(var t,e,r,i,o,u=[],a=-1,c=this.length;++a<c;){r=(i=this[a]).update,u.push(t=[]),t.parentNode=i.parentNode;for(var l=-1,f=i.length;++l<f;)(o=i[l])?(t.push(r[l]=e=n.call(i.parentNode,o.__data__,l,a)),e.__data__=o.__data__):t.push(null)}return H(u)},ln.insert=function(n,t){var u,a,c;return arguments.length<2&&(u=this,t=function(n,t,e){var r,i=u[e].update,o=i.length;for(e!=c&&(c=e,a=0),a<=t&&(a=t+1);!(r=i[a])&&++a<o;);return r}),V.insert.call(this,n,t)},V.transition=function(){for(var n,t,e=ba||++ka,r=[],i=wa||{time:Date.now(),ease:So,delay:0,duration:250},o=-1,u=this.length;++o<u;){r.push(n=[]);for(var a=this[o],c=-1,l=a.length;++c<l;)(t=a[c])&&Aa(t,c,e,i),n.push(t)}return _a(r,e)},V.interrupt=function(){return this.each(fn)},L.select=function(n){n=["string"==typeof n?O(n,r):n];return n.parentNode=t,H([n])},L.selectAll=function(n){n=h("string"==typeof n?Y(n,r):n);return n.parentNode=t,H([n])};var sn=L.select(t);function hn(i,t,e){var r="__on"+i,n=i.indexOf("."),o=gn;0<n&&(i=i.slice(0,n));var u=pn.get(i);function a(){var n=this[r];n&&(this.removeEventListener(i,n,n.$),delete this[r])}return u&&(i=u,o=dn),n?t?function(){var n=o(t,h(arguments));a.call(this),this.addEventListener(i,this[r]=n,n.$=e),n._=t}:a:t?C:function(){var n,t,e,r=new RegExp("^__on([^.]+)"+L.requote(i)+"$");for(t in this)(n=t.match(r))&&(e=this[t],this.removeEventListener(n[1],e,e.$),delete this[t])}}V.on=function(n,t,e){var r=arguments.length;if(r<3){if("string"!=typeof n){for(e in r<2&&(t=!1),n)this.each(hn(e,n[e],t));return this}if(r<2)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(hn(n,t,e))};var pn=L.map({mouseenter:"mouseover",mouseleave:"mouseout"});function gn(e,r){return function(n){var t=L.event;L.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{L.event=t}}}function dn(n,t){var e=gn(n,t);return function(n){var t=n.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||e.call(this,n)}}pn.forEach(function(n){"on"+n in r&&pn.remove(n)});var vn="onselectstart"in r?null:E(t.style,"userSelect"),yn=0;function mn(){var e,r,i=".dragsuppress-"+ ++yn,o="click"+i,u=L.select(T).on("touchmove"+i,D).on("dragstart"+i,D).on("selectstart"+i,D);return vn&&(e=t.style,r=e[vn],e[vn]="none"),function(n){function t(){u.on(o,null)}u.on(i,null),vn&&(e[vn]=r),n&&(u.on(o,function(){D(),t()},!0),setTimeout(t,0))}}L.mouse=function(n){return Mn(n,P())};var xn=/WebKit/.test(T.navigator.userAgent)?-1:0;function Mn(n,t){t.changedTouches&&(t=t.changedTouches[0]);var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r,i=e.createSVGPoint();return xn<0&&(T.scrollX||T.scrollY)&&(r=(e=L.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM(),xn=!(r.f||r.e),e.remove()),xn?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}function _n(){return L.event.changedTouches[0].identifier}function bn(){return L.event.target}function wn(){return T}L.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=P().changedTouches),t)for(var r,i=0,o=t.length;i<o;++i)if((r=t[i]).identifier===e)return Mn(n,r)},L.behavior.drag=function(){var d=U(e,"drag","dragstart","dragend"),v=null,n=r(C,L.mouse,wn,"mousemove","mouseup"),t=r(_n,L.touch,bn,"touchmove","touchend");function e(){this.on("mousedown.drag",n).on("touchstart.drag",t)}function r(f,s,h,p,g){return function(){var r,n=L.event.target,i=this.parentNode,o=d.of(this,arguments),u=0,a=f(),t=".drag"+(null==a?"":"-"+a),e=L.select(h()).on(p+t,function(){var n,t,e=s(i,a);if(!e)return;n=e[0]-l[0],t=e[1]-l[1],u|=n|t,o({type:"drag",x:(l=e)[0]+r[0],y:e[1]+r[1],dx:n,dy:t})}).on(g+t,function(){if(!s(i,a))return;e.on(p+t,null).on(g+t,null),c(u&&L.event.target===n),o({type:"dragend"})}),c=mn(),l=s(i,a);r=v?[(r=v.apply(this,arguments)).x-l[0],r.y-l[1]]:[0,0],o({type:"dragstart"})}}return e.origin=function(n){return arguments.length?(v=n,e):v},L.rebind(e,d,"on")},L.touches=function(e,n){return arguments.length<2&&(n=P().touches),n?h(n).map(function(n){var t=Mn(e,n);return t.identifier=n.identifier,t}):[]};var Sn=Math.PI,kn=2*Sn,Nn=Sn/2,En=1e-6,An=En*En,Cn=Sn/180,zn=180/Sn;function Ln(n){return 0<n?1:n<0?-1:0}function Tn(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function qn(n){return 1<n?0:n<-1?Sn:Math.acos(n)}function Rn(n){return 1<n?Nn:n<-1?-Nn:Math.asin(n)}function Dn(n){return((n=Math.exp(n))+1/n)/2}function Pn(n){return(n=Math.sin(n/2))*n}var Un=Math.SQRT2;L.interpolateZoom=function(n,t){var i=n[0],o=n[1],u=n[2],e=t[0],n=t[1],t=t[2],a=e-i,c=n-o,e=a*a+c*c,l=Math.sqrt(e),n=(t*t-u*u+4*e)/(2*u*2*l),e=(t*t-u*u-4*e)/(2*t*2*l),f=Math.log(Math.sqrt(n*n+1)-n),s=Math.log(Math.sqrt(e*e+1)-e)-f,h=(s||Math.log(t/u))/Un;function r(n){var t=n*h;if(s){var e=Dn(f),r=u/(2*l)*(e*(r=Un*t+f,((r=Math.exp(2*r))-1)/(r+1))-(r=f,((r=Math.exp(r))-1/r)/2));return[i+r*a,o+r*c,u*e/Dn(Un*t+f)]}return[i+n*a,o+n*c,u*Math.exp(Un*t)]}return r.duration=1e3*h,r},L.behavior.zoom=function(){var t,e,r,i,m,o,u,a,c,x={x:0,y:0,k:1},l=[960,500],f=Fn,M="mousedown.zoom",s="mousemove.zoom",h="mouseup.zoom",_="touchstart.zoom",b=U(p,"zoomstart","zoom","zoomend");function p(n){n.on(M,C).on(Hn+".zoom",d).on("dblclick.zoom",v).on(_,z)}function w(n){return[(n[0]-x.x)/x.k,(n[1]-x.y)/x.k]}function S(n){x.k=Math.max(f[0],Math.min(f[1],n))}function k(n,t){var e;t=[(e=t)[0]*x.k+x.x,e[1]*x.k+x.y],x.x+=n[0]-t[0],x.y+=n[1]-t[1]}function g(){u&&u.domain(o.range().map(function(n){return(n-x.x)/x.k}).map(o.invert)),c&&c.domain(a.range().map(function(n){return(n-x.y)/x.k}).map(a.invert))}function N(n){n({type:"zoomstart"})}function E(n){g(),n({type:"zoom",scale:x.k,translate:[x.x,x.y]})}function A(n){n({type:"zoomend"})}function C(){var n=this,t=L.event.target,e=b.of(n,arguments),r=0,i=L.select(T).on(s,function(){r=1,k(L.mouse(n),o),E(e)}).on(h,function(){i.on(s,null).on(h,null),u(r&&L.event.target===t),A(e)}),o=w(L.mouse(n)),u=mn();fn.call(n),N(e)}function z(){var c,l=this,f=b.of(l,arguments),s={},h=0,i=".zoom-"+L.event.changedTouches[0].identifier,a="touchmove"+i,p="touchend"+i,g=[],o=L.select(l),u=mn();function d(){var n=L.touches(l);return c=x.k,n.forEach(function(n){n.identifier in s&&(s[n.identifier]=w(n))}),n}function n(){var n=L.event.target;L.select(n).on(a,v).on(p,y),g.push(n);for(var t=L.event.changedTouches,e=0,r=t.length;e<r;++e)s[t[e].identifier]=null;var i,o=d(),u=Date.now();1===o.length?(u-m<500&&(i=o[0],n=s[i.identifier],S(2*x.k),k(i,n),D(),E(f)),m=u):1<o.length&&(i=o[0],u=o[1],o=i[0]-u[0],u=i[1]-u[1],h=o*o+u*u)}function v(){for(var n,t,e,r,i,o=L.touches(l),u=0,a=o.length;u<a;++u,t=null)if(n=o[u],t=s[n.identifier]){if(i)break;r=n,i=t}t&&(e=(e=n[0]-r[0])*e+(e=n[1]-r[1])*e,e=h&&Math.sqrt(e/h),r=[(r[0]+n[0])/2,(r[1]+n[1])/2],i=[(i[0]+t[0])/2,(i[1]+t[1])/2],S(e*c)),m=null,k(r,i),E(f)}function y(){if(L.event.touches.length){for(var n,t=L.event.changedTouches,e=0,r=t.length;e<r;++e)delete s[t[e].identifier];for(n in s)return void d()}L.selectAll(g).on(i,null),o.on(M,C).on(_,z),u(),A(f)}fn.call(l),n(),N(f),o.on(M,null).on(_,n)}function d(){var n=b.of(this,arguments);i?clearTimeout(i):(t=w(e=r||L.mouse(this)),fn.call(this),N(n)),i=setTimeout(function(){i=null,A(n)},50),D(),S(Math.pow(2,.002*jn())*x.k),k(e,t),E(n)}function v(){var n=b.of(this,arguments),t=L.mouse(this),e=w(t),r=Math.log(x.k)/Math.LN2;N(n),S(Math.pow(2,L.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)),k(t,e),E(n),A(n)}return p.event=function(n){n.each(function(){var u=b.of(this,arguments),t=x;ba?L.select(this).transition().each("start.zoom",function(){x=this.__chart__||{x:0,y:0,k:1},N(u)}).tween("zoom:zoom",function(){var e=l[0],n=l[1],r=e/2,i=n/2,o=L.interpolateZoom([(r-x.x)/x.k,(i-x.y)/x.k,e/x.k],[(r-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(n){var t=o(n),n=e/t[2];this.__chart__=x={x:r-t[0]*n,y:i-t[1]*n,k:n},E(u)}}).each("end.zoom",function(){A(u)}):(this.__chart__=x,N(u),E(u),A(u))})},p.translate=function(n){return arguments.length?(x={x:+n[0],y:+n[1],k:x.k},g(),p):[x.x,x.y]},p.scale=function(n){return arguments.length?(x={x:x.x,y:x.y,k:+n},g(),p):x.k},p.scaleExtent=function(n){return arguments.length?(f=null==n?Fn:[+n[0],+n[1]],p):f},p.center=function(n){return arguments.length?(r=n&&[+n[0],+n[1]],p):r},p.size=function(n){return arguments.length?(l=n&&[+n[0],+n[1]],p):l},p.x=function(n){return arguments.length?(o=(u=n).copy(),x={x:0,y:0,k:1},p):u},p.y=function(n){return arguments.length?(a=(c=n).copy(),x={x:0,y:0,k:1},p):c},L.rebind(p,b,"on")};var jn,Fn=[0,1/0],Hn="onwheel"in r?(jn=function(){return-L.event.deltaY*(L.event.deltaMode?120:1)},"wheel"):"onmousewheel"in r?(jn=function(){return L.event.wheelDelta},"mousewheel"):(jn=function(){return-L.event.detail},"MozMousePixelScroll");function On(){}function Yn(n,t,e){return this instanceof Yn?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof Yn?new Yn(n.h,n.s,n.l):ut(""+n,at,Yn):new Yn(n,t,e)}function In(n,t,e){var r,i;function o(n){return Math.round(255*(360<(n=n)?n-=360:n<0&&(n+=360),n<60?r+(i-r)*n/60:n<180?i:n<240?r+(i-r)*(240-n)/60:r))}return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)||t<0?0:1<t?1:t,r=2*(e=e<0?0:1<e?1:e)-(i=e<=.5?e*(1+t):e+t-e*t),new et(o(n+120),o(n),o(n-120))}function Zn(n,t,e){return this instanceof Zn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof Zn?new Zn(n.h,n.c,n.l):Kn((n instanceof Xn?n:n=ct((n=L.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new Zn(n,t,e)}function Vn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new Xn(e,Math.cos(n*=Cn)*t,Math.sin(n)*t)}function Xn(n,t,e){return this instanceof Xn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof Xn?new Xn(n.l,n.a,n.b):n instanceof Zn?Vn(n.h,n.c,n.l):ct((n=et(n)).r,n.g,n.b):new Xn(n,t,e)}(L.color=On).prototype.toString=function(){return this.rgb()+""},(e=(L.hsl=Yn).prototype=new On).brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new Yn(this.h,this.s,this.l/n)},e.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new Yn(this.h,this.s,n*this.l)},e.rgb=function(){return In(this.h,this.s,this.l)},(a=(L.hcl=Zn).prototype=new On).brighter=function(n){return new Zn(this.h,this.c,Math.min(100,this.l+$n*(arguments.length?n:1)))},a.darker=function(n){return new Zn(this.h,this.c,Math.max(0,this.l-$n*(arguments.length?n:1)))},a.rgb=function(){return Vn(this.h,this.c,this.l).rgb()},L.lab=Xn;var $n=18,Bn=.95047,Wn=1,Jn=1.08883;function Gn(n,t,e){n=(n+16)/116,t=n+t/500,e=n-e/200;return new et(tt(3.2404542*(t=Qn(t)*Bn)-1.5371385*(n=Qn(n)*Wn)-.4985314*(e=Qn(e)*Jn)),tt(-.969266*t+1.8760108*n+.041556*e),tt(.0556434*t-.2040259*n+1.0572252*e))}function Kn(n,t,e){return 0<n?new Zn(Math.atan2(e,t)*zn,Math.sqrt(t*t+e*e),n):new Zn(NaN,NaN,n)}function Qn(n){return.206893034<n?n*n*n:(n-4/29)/7.787037}function nt(n){return.008856<n?Math.pow(n,1/3):7.787037*n+4/29}function tt(n){return Math.round(255*(n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function et(n,t,e){return this instanceof et?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof et?new et(n.r,n.g,n.b):ut(""+n,et,In):new et(n,t,e)}function rt(n){return new et(n>>16,n>>8&255,255&n)}function it(n){return rt(n)+""}function ot(n){return n<16?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function ut(n,t,e){var r,i=0,o=0,u=0,a=/([a-z]+)\((.*)\)/i.exec(n);if(a)switch(r=a[2].split(","),a[1]){case"hsl":return e(parseFloat(r[0]),parseFloat(r[1])/100,parseFloat(r[2])/100);case"rgb":return t(ft(r[0]),ft(r[1]),ft(r[2]))}return(a=st.get(n))?t(a.r,a.g,a.b):(null==n||"#"!==n.charAt(0)||isNaN(a=parseInt(n.slice(1),16))||(4===n.length?(i=(3840&a)>>4,i|=i>>4,o=240&a,o|=o>>4,u=15&a,u|=u<<4):7===n.length&&(i=(16711680&a)>>16,o=(65280&a)>>8,u=255&a)),t(i,o,u))}function at(n,t,e){var r,i,o=Math.min(n/=255,t/=255,e/=255),u=Math.max(n,t,e),a=u-o,c=(u+o)/2;return a?(i=c<.5?a/(u+o):a/(2-u-o),r=n==u?(t-e)/a+(t<e?6:0):t==u?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=0<c&&c<1?0:r),new Yn(r,i,c)}function ct(n,t,e){var r=nt((.4124564*(n=lt(n))+.3575761*(t=lt(t))+.1804375*(e=lt(e)))/Bn),i=nt((.2126729*n+.7151522*t+.072175*e)/Wn);return Xn(116*i-16,500*(r-i),200*(i-nt((.0193339*n+.119192*t+.9503041*e)/Jn)))}function lt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ft(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}(p=Xn.prototype=new On).brighter=function(n){return new Xn(Math.min(100,this.l+$n*(arguments.length?n:1)),this.a,this.b)},p.darker=function(n){return new Xn(Math.max(0,this.l-$n*(arguments.length?n:1)),this.a,this.b)},p.rgb=function(){return Gn(this.l,this.a,this.b)},(e=(L.rgb=et).prototype=new On).brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b;return t||e||r?(t&&t<30&&(t=30),e&&e<30&&(e=30),r&&r<30&&(r=30),new et(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new et(30,30,30)},e.darker=function(n){return new et((n=Math.pow(.7,arguments.length?n:1))*this.r,n*this.g,n*this.b)},e.hsl=function(){return at(this.r,this.g,this.b)},e.toString=function(){return"#"+ot(this.r)+ot(this.g)+ot(this.b)};var st=L.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function ht(n){return"function"==typeof n?n:function(){return n}}function pt(n){return n}function gt(r){return function(n,t,e){return 2===arguments.length&&"function"==typeof t&&(e=t,t=null),dt(n,t,r,e)}}function dt(i,o,u,n){var e,a={},c=L.dispatch("beforesend","progress","load","error"),l={},f=new XMLHttpRequest,s=null;function t(){var n,t,e,r=f.status;if(!r&&((e=(t=f).responseType)&&"text"!==e?t.response:t.responseText)||200<=r&&r<300||304===r){try{n=u.call(a,f)}catch(n){return void c.error.call(a,n)}c.load.call(a,n)}else c.error.call(a,f)}return!T.XDomainRequest||"withCredentials"in f||!/^(http(s)?:)?\/\//.test(i)||(f=new XDomainRequest),"onload"in f?f.onload=f.onerror=t:f.onreadystatechange=function(){3<f.readyState&&t()},f.onprogress=function(n){var t=L.event;L.event=n;try{c.progress.call(a,f)}finally{L.event=t}},a.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?l[n]:(null==t?delete l[n]:l[n]=t+"",a)},a.mimeType=function(n){return arguments.length?(o=null==n?null:n+"",a):o},a.responseType=function(n){return arguments.length?(s=n,a):s},a.response=function(n){return u=n,a},["get","post"].forEach(function(n){a[n]=function(){return a.send.apply(a,[n].concat(h(arguments)))}}),a.send=function(n,t,e){if(2===arguments.length&&"function"==typeof t&&(e=t,t=null),f.open(n,i,!0),null==o||"accept"in l||(l.accept=o+",*/*"),f.setRequestHeader)for(var r in l)f.setRequestHeader(r,l[r]);return null!=o&&f.overrideMimeType&&f.overrideMimeType(o),null!=s&&(f.responseType=s),null!=e&&a.on("error",e).on("load",function(n){e(null,n)}),c.beforesend.call(a,f),f.send(null==t?null:t),a},a.abort=function(){return f.abort(),a},L.rebind(a,c,"on"),null==n?a:a.get(1===(e=n).length?function(n,t){e(null==n?t:null)}:e)}st.forEach(function(n,t){st.set(n,rt(t))}),L.functor=ht,L.xhr=gt(pt),L.dsv=function(i,o){var t=new RegExp('["'+i+"\n]"),h=i.charCodeAt(0);function u(n,t,e){arguments.length<3&&(e=t,t=null);var r=dt(n,o,null==t?a:c(t),e);return r.row=function(n){return arguments.length?r.response(null==(t=n)?a:c(n)):t},r}function a(n){return u.parse(n.responseText)}function c(t){return function(n){return u.parse(n.responseText,t)}}function e(n){return n.map(l).join(i)}function l(n){return t.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}return u.parse=function(n,r){var i;return u.parseRows(n,function(n,t){if(i)return i(n,t-1);var e=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");i=r?function(n,t){return r(e(n),t)}:e})},u.parseRows=function(i,n){var t,o,u={},a={},e=[],c=i.length,l=0,r=0;function f(){if(c<=l)return a;if(o)return o=!1,u;var n=l;if(34===i.charCodeAt(n)){for(var t=n;t++<c;)if(34===i.charCodeAt(t)){if(34!==i.charCodeAt(t+1))break;++t}return l=t+2,13===(e=i.charCodeAt(t+1))?(o=!0,10===i.charCodeAt(t+2)&&++l):10===e&&(o=!0),i.slice(n+1,t).replace(/""/g,'"')}for(;l<c;){var e,r=1;if(10===(e=i.charCodeAt(l++)))o=!0;else if(13===e)o=!0,10===i.charCodeAt(l)&&(++l,++r);else if(e!==h)continue;return i.slice(n,l-r)}return i.slice(n)}for(;(t=f())!==a;){for(var s=[];t!==u&&t!==a;)s.push(t),t=f();n&&null==(s=n(s,r++))||e.push(s)}return e},u.format=function(n){if(Array.isArray(n[0]))return u.formatRows(n);var e=new N,r=[];return n.forEach(function(n){for(var t in n)e.has(t)||r.push(e.add(t))}),[r.map(l).join(i)].concat(n.map(function(t){return r.map(function(n){return l(t[n])}).join(i)})).join("\n")},u.formatRows=function(n){return n.map(e).join("\n")},u},L.csv=L.dsv(",","text/csv"),L.tsv=L.dsv("\t","text/tab-separated-values");var vt,yt,mt,xt,Mt,_t=T[E(T,"requestAnimationFrame")]||function(n){setTimeout(n,17)};function bt(){var n=wt(),n=St()-n;24<n?(isFinite(n)&&(clearTimeout(xt),xt=setTimeout(bt,n)),mt=0):(mt=1,_t(bt))}function wt(){var n=Date.now();for(Mt=vt;Mt;)n>=Mt.t&&(Mt.f=Mt.c(n-Mt.t)),Mt=Mt.n;return n}function St(){for(var n,t=vt,e=1/0;t;)t=t.f?n?n.n=t.n:vt=t.n:(t.t<e&&(e=t.t),(n=t).n);return yt=n,e}function kt(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}L.timer=function(n,t,e){var r=arguments.length;r<2&&(t=0),r<3&&(e=Date.now());r={c:n,t:e+t,f:!1,n:null};yt?yt.n=r:vt=r,yt=r,mt||(xt=clearTimeout(xt),mt=1,_t(bt))},L.timer.flush=function(){wt(),St()},L.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var Nt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(n,t){var e=Math.pow(10,3*q(8-t));return{scale:8<t?function(n){return n/e}:function(n){return n*e},symbol:n}});L.formatPrefix=function(n,t){var e=0;return n&&(n<0&&(n*=-1),t&&(n=L.round(n,kt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),Nt[8+e/3]};var Et=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,At=L.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=L.round(n,kt(n,t))).toFixed(Math.max(0,Math.min(20,kt(n*(1+1e-15),t))))}});function Ct(n){return n+""}var zt=L.time={},Lt=Date;function Tt(){this._=new Date(1<arguments.length?Date.UTC.apply(this,arguments):arguments[0])}Tt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){qt.setUTCDate.apply(this._,arguments)},setDay:function(){qt.setUTCDay.apply(this._,arguments)},setFullYear:function(){qt.setUTCFullYear.apply(this._,arguments)},setHours:function(){qt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){qt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){qt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){qt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){qt.setUTCSeconds.apply(this._,arguments)},setTime:function(){qt.setTime.apply(this._,arguments)}};var qt=Date.prototype;function Rt(r,o,u){function n(n){var t=r(n),e=i(t,1);return n-t<e-n?t:e}function a(n){return o(n=r(new Lt(n-1)),1),n}function i(n,t){return o(n=new Lt(+n),t),n}function c(n,t,e){var r=a(n),i=[];if(1<e)for(;r<t;)u(r)%e||i.push(new Date(+r)),o(r,1);else for(;r<t;)i.push(new Date(+r)),o(r,1);return i}(r.floor=r).round=n,r.ceil=a,r.offset=i,r.range=c;var t=r.utc=Dt(r);return(t.floor=t).round=Dt(n),t.ceil=Dt(a),t.offset=Dt(i),t.range=function(n,t,e){try{var r=new(Lt=Tt);return r._=n,c(r,t,e)}finally{Lt=Date}},r}function Dt(r){return function(n,t){try{var e=new(Lt=Tt);return e._=n,r(e,t)._}finally{Lt=Date}}}function Pt(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,u=n.shortDays,a=n.months,c=n.shortMonths;function l(a){var c=a.length;function n(n){for(var t,e,r,i=[],o=-1,u=0;++o<c;)37===a.charCodeAt(o)&&(i.push(a.slice(u,o)),null!=(e=Ut[t=a.charAt(++o)])&&(t=a.charAt(++o)),(r=M[t])&&(t=r(n,null==e?"e"===t?" ":"0":e)),i.push(t),u=o+1);return i.push(a.slice(u,o)),i.join("")}return n.parse=function(n){var t={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(t,a,n,0)!=n.length)return null;"p"in t&&(t.H=t.H%12+12*t.p);var e=null!=t.Z&&Lt!==Tt,n=new(e?Tt:Lt);return"j"in t?n.setFullYear(t.y,0,t.j):"w"in t&&("W"in t||"U"in t)?(n.setFullYear(t.y,0,1),n.setFullYear(t.y,0,"W"in t?(t.w+6)%7+7*t.W-(n.getDay()+5)%7:t.w+7*t.U-(n.getDay()+6)%7)):n.setFullYear(t.y,t.m,t.d),n.setHours(t.H+(t.Z/100|0),t.M+t.Z%100,t.S,t.L),e?n._:n},n.toString=function(){return a},n}function f(n,t,e,r){for(var i,o,u=0,a=t.length,c=e.length;u<a;){if(c<=r)return-1;if(37===(i=t.charCodeAt(u++))){if(o=t.charAt(u++),!(o=_[o in Ut?t.charAt(u++):o])||(r=o(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}l.multi=(l.utc=function(n){var e=l(n);function t(n){try{var t=new(Lt=Tt);return t._=n,e(t)}finally{Lt=Date}}return t.parse=function(n){try{Lt=Tt;var t=e.parse(n);return t&&t._}finally{Lt=Date}},t.toString=e.toString,t}).multi=ie;var s=L.map(),h=Ot(o),p=Yt(o),g=Ot(u),d=Yt(u),v=Ot(a),y=Yt(a),m=Ot(c),x=Yt(c);i.forEach(function(n,t){s.set(n.toLowerCase(),t)});var M={a:function(n){return u[n.getDay()]},A:function(n){return o[n.getDay()]},b:function(n){return c[n.getMonth()]},B:function(n){return a[n.getMonth()]},c:l(t),d:function(n,t){return Ht(n.getDate(),t,2)},e:function(n,t){return Ht(n.getDate(),t,2)},H:function(n,t){return Ht(n.getHours(),t,2)},I:function(n,t){return Ht(n.getHours()%12||12,t,2)},j:function(n,t){return Ht(1+zt.dayOfYear(n),t,3)},L:function(n,t){return Ht(n.getMilliseconds(),t,3)},m:function(n,t){return Ht(n.getMonth()+1,t,2)},M:function(n,t){return Ht(n.getMinutes(),t,2)},p:function(n){return i[+(12<=n.getHours())]},S:function(n,t){return Ht(n.getSeconds(),t,2)},U:function(n,t){return Ht(zt.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Ht(zt.mondayOfYear(n),t,2)},x:l(e),X:l(r),y:function(n,t){return Ht(n.getFullYear()%100,t,2)},Y:function(n,t){return Ht(n.getFullYear()%1e4,t,4)},Z:ee,"%":function(){return"%"}},_={a:function(n,t,e){g.lastIndex=0;t=g.exec(t.slice(e));return t?(n.w=d.get(t[0].toLowerCase()),e+t[0].length):-1},A:function(n,t,e){h.lastIndex=0;t=h.exec(t.slice(e));return t?(n.w=p.get(t[0].toLowerCase()),e+t[0].length):-1},b:function(n,t,e){m.lastIndex=0;t=m.exec(t.slice(e));return t?(n.m=x.get(t[0].toLowerCase()),e+t[0].length):-1},B:function(n,t,e){v.lastIndex=0;t=v.exec(t.slice(e));return t?(n.m=y.get(t[0].toLowerCase()),e+t[0].length):-1},c:function(n,t,e){return f(n,M.c.toString(),t,e)},d:Jt,e:Jt,H:Kt,I:Kt,j:Gt,L:te,m:Wt,M:Qt,p:function(n,t,e){t=s.get(t.slice(e,e+=2).toLowerCase());return null==t?-1:(n.p=t,e)},S:ne,U:Zt,w:It,W:Vt,x:function(n,t,e){return f(n,M.x.toString(),t,e)},X:function(n,t,e){return f(n,M.X.toString(),t,e)},y:$t,Y:Xt,Z:Bt,"%":re};return l}zt.year=Rt(function(n){return(n=zt.day(n)).setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),zt.years=zt.year.range,zt.years.utc=zt.year.utc.range,zt.day=Rt(function(n){var t=new Lt(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),zt.days=zt.day.range,zt.days.utc=zt.day.utc.range,zt.dayOfYear=function(n){var t=zt.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,e){e=7-e;var t=zt[n]=Rt(function(n){return(n=zt.day(n)).setDate(n.getDate()-(n.getDay()+e)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var t=zt.year(n).getDay();return Math.floor((zt.dayOfYear(n)+(t+e)%7)/7)-(t!==e)});zt[n+"s"]=t.range,zt[n+"s"].utc=t.utc.range,zt[n+"OfYear"]=function(n){var t=zt.year(n).getDay();return Math.floor((zt.dayOfYear(n)+(t+e)%7)/7)}}),zt.week=zt.sunday,zt.weeks=zt.sunday.range,zt.weeks.utc=zt.sunday.utc.range,zt.weekOfYear=zt.sundayOfYear;var Ut={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,Ft=/^%/;function Ht(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",n=i.length;return r+(n<e?new Array(e-n+1).join(t)+i:i)}function Ot(n){return new RegExp("^(?:"+n.map(L.requote).join("|")+")","i")}function Yt(n){for(var t=new m,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function It(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+1));return t?(n.w=+t[0],e+t[0].length):-1}function Zt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e));return t?(n.U=+t[0],e+t[0].length):-1}function Vt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e));return t?(n.W=+t[0],e+t[0].length):-1}function Xt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+4));return t?(n.y=+t[0],e+t[0].length):-1}function $t(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.y=(n=+t[0])+(68<n?1900:2e3),e+t[0].length):-1}function Bt(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Wt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.m=t[0]-1,e+t[0].length):-1}function Jt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.d=+t[0],e+t[0].length):-1}function Gt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+3));return t?(n.j=+t[0],e+t[0].length):-1}function Kt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.H=+t[0],e+t[0].length):-1}function Qt(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.M=+t[0],e+t[0].length):-1}function ne(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+2));return t?(n.S=+t[0],e+t[0].length):-1}function te(n,t,e){jt.lastIndex=0;t=jt.exec(t.slice(e,e+3));return t?(n.L=+t[0],e+t[0].length):-1}function ee(n){var t=n.getTimezoneOffset(),e=0<t?"-":"+",n=q(t)/60|0,t=q(t)%60;return e+Ht(n,"0",2)+Ht(t,"0",2)}function re(n,t,e){Ft.lastIndex=0;t=Ft.exec(t.slice(e,e+1));return t?e+t[0].length:-1}function ie(r){for(var n=r.length,t=-1;++t<n;)r[t][0]=this(r[t][0]);return function(n){for(var t=0,e=r[t];!e[1](n);)e=r[++t];return e[0](n)}}function oe(){}L.locale=function(n){return{numberFormat:(_=(t=n).decimal,a=t.thousands,c=t.grouping,e=t.currency,b=c&&a?function(n,t){for(var e=n.length,r=[],i=0,o=c[0],u=0;0<e&&0<o&&(t<u+o+1&&(o=Math.max(1,t-u)),r.push(n.substring(e-=o,e+o)),!((u+=o+1)>t));)o=c[i=(i+1)%c.length];return r.reverse().join(a)}:pt,function(n){var n=Et.exec(n),a=n[1]||" ",c=n[2]||">",l=n[3]||"-",t=n[4]||"",f=n[5],s=+n[6],h=n[7],p=n[8],g=n[9],d=1,v="",y="",m=!1,x=!0,p=p&&+p.substring(1);switch((f||"0"===a&&"="===c)&&(f=a="0",c="="),g){case"n":h=!0,g="g";break;case"%":d=100,y="%",g="f";break;case"p":d=100,y="%",g="r";break;case"b":case"o":case"x":case"X":"#"===t&&(v="0"+g.toLowerCase());case"c":x=!1;case"d":m=!0,p=0;break;case"s":d=-1,g="r"}"$"===t&&(v=e[0],y=e[1]),"r"!=g||p||(g="g"),null!=p&&("g"==g?p=Math.max(1,Math.min(21,p)):"e"!=g&&"f"!=g||(p=Math.max(0,Math.min(20,p)))),g=At.get(g)||Ct;var M=f&&h;return function(n){var t=y;if(m&&n%1)return"";var e=n<0||0===n&&1/n<0?(n=-n,"-"):"-"===l?"":l;d<0?(n=(i=L.formatPrefix(n,p)).scale(n),t=i.symbol+y):n*=d;var r,i,o=(n=g(n,p)).lastIndexOf(".");i=o<0?(u=x?n.lastIndexOf("e"):-1)<0?(r=n,""):(r=n.substring(0,u),n.substring(u)):(r=n.substring(0,o),_+n.substring(o+1)),!f&&h&&(r=b(r,1/0));var u=v.length+r.length+i.length+(M?0:e.length),o=u<s?new Array(u=s-u+1).join(a):"";return M&&(r=b(o+r,o.length?s-i.length:1/0)),e+=v,n=r+i,("<"===c?e+n+o:">"===c?o+e+n:"^"===c?o.substring(0,u>>=1)+e+n+o.substring(u):e+(M?n:o+n))+t}}),timeFormat:Pt(n)};var t,_,a,c,e,b},a=L.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),L.format=a.numberFormat,L.geo={},oe.prototype={s:0,t:0,add:function(n){ae(n,this.t,ue),ae(ue.s,this.s,this),this.s?this.t+=ue.t:this.s=ue.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ue=new oe;function ae(n,t,e){var r=e.s=n+t,i=r-n,r=r-i;e.t=n-r+(t-i)}function ce(n,t){n&&fe.hasOwnProperty(n.type)&&fe[n.type](n,t)}L.geo.stream=function(n,t){n&&le.hasOwnProperty(n.type)?le[n.type](n,t):ce(n,t)};var le={Feature:function(n,t){ce(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++r<i;)ce(e[r].geometry,t)}},fe={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){se(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)se(e[r],t,0)},Polygon:function(n,t){he(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)he(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;++r<i;)ce(e[r],t)}};function se(n,t,e){var r,i=-1,o=n.length-e;for(t.lineStart();++i<o;)r=n[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function he(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)se(n[e],t,1);t.polygonEnd()}L.geo.area=function(n){return pe=0,L.geo.stream(n,je),pe};var pe,ge,de,ve,ye,me,xe,Me,_e,be,we,Se,ke,Ne,Ee,Ae,Ce,ze,Le,Te,qe,Re,De,Pe,Ue=new oe,je={sphere:function(){pe+=4*Sn},point:C,lineStart:C,lineEnd:C,polygonStart:function(){Ue.reset(),je.lineStart=Fe},polygonEnd:function(){var n=2*Ue;pe+=n<0?4*Sn+n:n,je.lineStart=je.lineEnd=je.point=C}};function Fe(){var e,r,a,c,l;function i(n,t){t=t*Cn/2+Sn/4;var e=(n*=Cn)-a,r=0<=e?1:-1,i=r*e,o=Math.cos(t),u=Math.sin(t),e=l*u,t=c*o+e*Math.cos(i),i=e*r*Math.sin(i);Ue.add(Math.atan2(i,t)),a=n,c=o,l=u}je.point=function(n,t){je.point=i,a=(e=n)*Cn,c=Math.cos(t=(r=t)*Cn/2+Sn/4),l=Math.sin(t)},je.lineEnd=function(){i(e,r)}}function He(n){var t=n[0],e=n[1],n=Math.cos(e);return[n*Math.cos(t),n*Math.sin(t),Math.sin(e)]}function Oe(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function Ye(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Ie(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function Ze(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Ve(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function Xe(n){return[Math.atan2(n[1],n[0]),Rn(n[2])]}function $e(n,t){return q(n[0]-t[0])<En&&q(n[1]-t[1])<En}function Be(n,t){we.push(Se=[ge=n,ve=n]),t<de&&(de=t),ye<t&&(ye=t)}function We(n,t){var e,r,i,o,u,a=He([n*Cn,t*Cn]);_e?(i=Ye(_e,a),Ve(e=Ye([i[1],-i[0],0],i)),e=Xe(e),r=0<(o=n-me)?1:-1,i=e[0]*zn*r,(o=180<q(o))^(r*me<i&&i<r*n)?(u=e[1]*zn,ye<u&&(ye=u)):o^(r*me<(i=(i+360)%360-180)&&i<r*n)?(u=-e[1]*zn)<de&&(de=u):(t<de&&(de=t),ye<t&&(ye=t)),o?n<me?tr(ge,n)>tr(ge,ve)&&(ve=n):tr(n,ve)>tr(ge,ve)&&(ge=n):ge<=ve?(n<ge&&(ge=n),ve<n&&(ve=n)):me<n?tr(ge,n)>tr(ge,ve)&&(ve=n):tr(n,ve)>tr(ge,ve)&&(ge=n)):Be(n,t),_e=a,me=n}function Je(){ke.point=We}function Ge(){Se[0]=ge,Se[1]=ve,ke.point=Be,_e=null}function Ke(n,t){var e;_e?be+=180<q(e=n-me)?e+(0<e?360:-360):e:(xe=n,Me=t),je.point(n,t),We(n,t)}function Qe(){je.lineStart()}function nr(){Ke(xe,Me),je.lineEnd(),q(be)>En&&(ge=-(ve=180)),Se[0]=ge,Se[1]=ve,_e=null}function tr(n,t){return(t-=n)<0?t+360:t}function er(n,t){return n[0]-t[0]}function rr(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}L.geo.bounds=(ke={point:Be,lineStart:Je,lineEnd:Ge,polygonStart:function(){ke.point=Ke,ke.lineStart=Qe,ke.lineEnd=nr,be=0,je.polygonStart()},polygonEnd:function(){je.polygonEnd(),ke.point=Be,ke.lineStart=Je,ke.lineEnd=Ge,Ue<0?(ge=-(ve=180),de=-(ye=90)):En<be?ye=90:be<-En&&(de=-90),Se[0]=ge,Se[1]=ve}},function(n){if(ye=ve=-(ge=de=1/0),we=[],L.geo.stream(n,ke),i=we.length){we.sort(er);for(var t=1,e=[a=we[0]];t<i;++t)rr((o=we[t])[0],a)||rr(o[1],a)?(tr(a[0],o[1])>tr(a[0],a[1])&&(a[1]=o[1]),tr(o[0],a[1])>tr(a[0],a[1])&&(a[0]=o[0])):e.push(a=o);for(var r,i,o,u=-1/0,t=0,a=e[i=e.length-1];t<=i;a=o,++t)o=e[t],(r=tr(a[1],o[0]))>u&&(u=r,ge=o[0],ve=a[1])}return we=Se=null,ge===1/0||de===1/0?[[NaN,NaN],[NaN,NaN]]:[[ge,de],[ve,ye]]}),L.geo.centroid=function(n){Ne=Ee=Ae=Ce=ze=Le=Te=qe=Re=De=Pe=0,L.geo.stream(n,ir);var t=Re,e=De,r=Pe,n=t*t+e*e+r*r;return n<An&&(t=Le,e=Te,r=qe,Ee<En&&(t=Ae,e=Ce,r=ze),(n=t*t+e*e+r*r)<An)?[NaN,NaN]:[Math.atan2(e,t)*zn,Rn(r/Math.sqrt(n))*zn]};var ir={sphere:C,point:or,lineStart:ar,lineEnd:cr,polygonStart:function(){ir.lineStart=lr},polygonEnd:function(){ir.lineStart=ar}};function or(n,t){n*=Cn;var e=Math.cos(t*=Cn);ur(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function ur(n,t,e){Ae+=(n-Ae)/++Ne,Ce+=(t-Ce)/Ne,ze+=(e-ze)/Ne}function ar(){var i,o,u;function r(n,t){n*=Cn;var e=Math.cos(t*=Cn),r=e*Math.cos(n),e=e*Math.sin(n),n=Math.sin(t),t=Math.atan2(Math.sqrt((t=o*n-u*e)*t+(t=u*r-i*n)*t+(t=i*e-o*r)*t),i*r+o*e+u*n);Ee+=t,Le+=t*(i+(i=r)),Te+=t*(o+(o=e)),qe+=t*(u+(u=n)),ur(i,o,u)}ir.point=function(n,t){n*=Cn;var e=Math.cos(t*=Cn);i=e*Math.cos(n),o=e*Math.sin(n),u=Math.sin(t),ir.point=r,ur(i,o,u)}}function cr(){ir.point=or}function lr(){var r,i,l,f,s;function o(n,t){n*=Cn;var e=Math.cos(t*=Cn),r=e*Math.cos(n),i=e*Math.sin(n),o=Math.sin(t),u=f*o-s*i,a=s*r-l*o,c=l*i-f*r,e=Math.sqrt(u*u+a*a+c*c),n=l*r+f*i+s*o,t=e&&-qn(n)/e,n=Math.atan2(e,n);Re+=t*u,De+=t*a,Pe+=t*c,Ee+=n,Le+=n*(l+(l=r)),Te+=n*(f+(f=i)),qe+=n*(s+(s=o)),ur(l,f,s)}ir.point=function(n,t){r=n,i=t,ir.point=o,n*=Cn;var e=Math.cos(t*=Cn);l=e*Math.cos(n),f=e*Math.sin(n),s=Math.sin(t),ur(l,f,s)},ir.lineEnd=function(){o(r,i),ir.lineEnd=cr,ir.point=or}}function fr(){return!0}function sr(n,t,e,r,a){var c=[],l=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if($e(e,r)){a.lineStart();for(var i=0;i<t;++i)a.point((e=n[i])[0],e[1]);a.lineEnd()}else{var o=new pr(e,n,null,!0),u=new pr(e,null,o,!1);o.o=u,c.push(o),l.push(u),o=new pr(r,n,null,!1),u=new pr(r,null,o,!0),o.o=u,c.push(o),l.push(u)}}}),l.sort(t),hr(c),hr(l),c.length){for(var i=0,o=e,u=l.length;i<u;++i)l[i].e=o=!o;for(var f,s,h=c[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;f=p.z,a.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(i=0,u=f.length;i<u;++i)a.point((s=f[i])[0],s[1]);else r(p.x,p.n.x,1,a);p=p.n}else{if(g)for(i=(f=p.p.z).length-1;0<=i;--i)a.point((s=f[i])[0],s[1]);else r(p.x,p.p.x,-1,a);p=p.p}}while(f=(p=p.o).z,g=!g,!p.v);a.lineEnd()}}}function hr(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r<t;)i.n=e=n[r],e.p=i,i=e;i.n=e=n[0],e.p=i}}function pr(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function gr(m,x,M,_){return function(r,u){var a,e=x(u),t=r.invert(_[0],_[1]),i={point:o,lineStart:c,lineEnd:l,polygonStart:function(){i.point=d,i.lineStart=v,i.lineEnd=y,a=[],f=[]},polygonEnd:function(){i.point=o,i.lineStart=c,i.lineEnd=l,a=L.merge(a);var n=function(n,t){var e=n[0],r=n[1],i=[Math.sin(e),-Math.cos(e),0],o=0,u=0;Ue.reset();for(var a=0,c=t.length;a<c;++a){var l=t[a],f=l.length;if(f)for(var s=l[0],h=s[0],p=s[1]/2+Sn/4,g=Math.sin(p),d=Math.cos(p),v=1;;){v===f&&(v=0);var y=(n=l[v])[0],m=n[1]/2+Sn/4,x=Math.sin(m),M=Math.cos(m),_=y-h,b=0<=_?1:-1,w=b*_,S=Sn<w,m=g*x;if(Ue.add(Math.atan2(m*b*Math.sin(w),d*M+m*Math.cos(w))),o+=S?_+b*kn:_,S^e<=h^e<=y&&(Ve(w=Ye(He(s),He(n))),Ve(b=Ye(i,w)),((b=(S^0<=_?-1:1)*Rn(b[2]))<r||r===b&&(w[0]||w[1]))&&(u+=S^0<=_?1:-1)),!v++)break;h=y,g=x,d=M,s=n}}return(o<-En||o<En&&Ue<0)^1&u}(t,f);a.length?(g||(u.polygonStart(),g=!0),sr(a,yr,n,M,u)):n&&(g||(u.polygonStart(),g=!0),u.lineStart(),M(null,null,1,u),u.lineEnd()),g&&(u.polygonEnd(),g=!1),a=f=null},sphere:function(){u.polygonStart(),u.lineStart(),M(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function o(n,t){var e=r(n,t);m(n=e[0],t=e[1])&&u.point(n,t)}function n(n,t){t=r(n,t);e.point(t[0],t[1])}function c(){i.point=n,e.lineStart()}function l(){i.point=o,e.lineEnd()}var f,s,h=vr(),p=x(h),g=!1;function d(n,t){s.push([n,t]);t=r(n,t);p.point(t[0],t[1])}function v(){p.lineStart(),s=[]}function y(){d(s[0][0],s[0][1]),p.lineEnd();var n,t=p.clean(),e=h.buffer(),r=e.length;if(s.pop(),f.push(s),s=null,r)if(1&t){var i,o=-1;if(0<(r=(n=e[0]).length-1)){for(g||(u.polygonStart(),g=!0),u.lineStart();++o<r;)u.point((i=n[o])[0],i[1]);u.lineEnd()}}else 1<r&&2&t&&e.push(e.pop().concat(e.shift())),a.push(e.filter(dr))}return i}}function dr(n){return 1<n.length}function vr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(n,t){e.push([n,t])},lineEnd:C,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){1<t.length&&t.push(t.pop().concat(t.shift()))}}}function yr(n,t){return((n=n.x)[0]<0?n[1]-Nn-En:Nn-n[1])-((t=t.x)[0]<0?t[1]-Nn-En:Nn-t[1])}var mr=gr(fr,function(l){var f,s=NaN,h=NaN,p=NaN;return{lineStart:function(){l.lineStart(),f=1},point:function(n,t){var e,r,i,o,u,a=0<n?Sn:-Sn,c=q(n-s);q(c-Sn)<En?(l.point(s,h=0<(h+t)/2?Nn:-Nn),l.point(p,h),l.lineEnd(),l.lineStart(),l.point(a,h),l.point(n,h),f=0):p!==a&&Sn<=c&&(q(s-p)<En&&(s-=p*En),q(n-a)<En&&(n-=a*En),e=s,r=h,i=n,o=t,u=Math.sin(e-i),h=q(u)>En?Math.atan((Math.sin(r)*(c=Math.cos(o))*Math.sin(i)-Math.sin(o)*(i=Math.cos(r))*Math.sin(e))/(i*c*u)):(r+o)/2,l.point(p,h),l.lineEnd(),l.lineStart(),l.point(a,h),f=0),l.point(s=n,h=t),p=a},lineEnd:function(){l.lineEnd(),s=h=NaN},clean:function(){return 2-f}}},function(n,t,e,r){var i;null==n?(i=e*Nn,r.point(-Sn,i),r.point(0,i),r.point(Sn,i),r.point(Sn,0),r.point(Sn,-i),r.point(0,-i),r.point(-Sn,-i),r.point(-Sn,0),r.point(-Sn,i)):q(n[0]-t[0])>En?(n=n[0]<t[0]?Sn:-Sn,i=e*n/2,r.point(-n,i),r.point(0,i),r.point(n,i)):r.point(t[0],t[1])},[-Sn,-Sn/2]);function xr(i){var p=Math.cos(i),h=0<p,g=q(p)>En;return gr(d,function(u){var a,c,l,f,s;return{lineStart:function(){f=l=!1,s=1},point:function(n,t){var e,r,i=[n,t],o=d(n,t),t=h?o?0:y(n,t):o?y(n+(n<0?Sn:-Sn),t):0;!a&&(f=l=o)&&u.lineStart(),o!==l&&(e=v(a,i),($e(a,e)||$e(i,e))&&(i[0]+=En,i[1]+=En,o=d(i[0],i[1]))),o!==l?(s=0,o?(u.lineStart(),e=v(i,a),u.point(e[0],e[1])):(e=v(a,i),u.point(e[0],e[1]),u.lineEnd()),a=e):g&&a&&h^o&&(t&c||!(r=v(i,a,!0))||(s=0,h?(u.lineStart(),u.point(r[0][0],r[0][1]),u.point(r[1][0],r[1][1]),u.lineEnd()):(u.point(r[1][0],r[1][1]),u.lineEnd(),u.lineStart(),u.point(r[0][0],r[0][1])))),!o||a&&$e(a,i)||u.point(i[0],i[1]),a=i,l=o,c=t},lineEnd:function(){l&&u.lineEnd(),a=null},clean:function(){return s|(f&&l)<<1}}},ei(i,6*Cn),h?[0,-i]:[-Sn,i-Sn]);function d(n,t){return Math.cos(n)*Math.cos(t)>p}function v(n,t,e){var r=[1,0,0],i=Ye(He(n),He(t)),o=Oe(i,i),u=i[0],a=o-u*u;if(!a)return!e&&n;var c=p*o/a,l=-p*u/a,f=Ye(r,i),s=Ze(r,c);Ie(s,Ze(i,l));o=f,u=Oe(s,o),a=Oe(o,o),r=u*u-a*(Oe(s,s)-1);if(!(r<0)){c=Math.sqrt(r),i=Ze(o,(-u-c)/a);if(Ie(i,s),i=Xe(i),!e)return i;var h,l=n[0],f=t[0],r=n[1],e=t[1];f<l&&(h=l,l=f,f=h);n=f-l,t=q(n-Sn)<En;if(!t&&e<r&&(h=r,r=e,e=h),t||n<En?t?0<r+e^i[1]<(q(i[0]-l)<En?r:e):r<=i[1]&&i[1]<=e:Sn<n^(l<=i[0]&&i[0]<=f)){a=Ze(o,(-u+c)/a);return Ie(a,s),[i,Xe(a)]}}}function y(n,t){var e=h?i:Sn-i,r=0;return n<-e?r|=1:e<n&&(r|=2),t<-e?r|=4:e<t&&(r|=8),r}}function Mr(c,l,f,s){return function(n){var t=n.a,e=n.b,r=t.x,i=t.y,o=0,u=1,a=e.x-r,t=e.y-i,e=c-r;if(a||!(0<e)){if(e/=a,a<0){if(e<o)return;e<u&&(u=e)}else if(0<a){if(u<e)return;o<e&&(o=e)}if(e=f-r,a||!(e<0)){if(e/=a,a<0){if(u<e)return;o<e&&(o=e)}else if(0<a){if(e<o)return;e<u&&(u=e)}if(e=l-i,t||!(0<e)){if(e/=t,t<0){if(e<o)return;e<u&&(u=e)}else if(0<t){if(u<e)return;o<e&&(o=e)}if(e=s-i,t||!(e<0)){if(e/=t,t<0){if(u<e)return;o<e&&(o=e)}else if(0<t){if(e<o)return;e<u&&(u=e)}return 0<o&&(n.a={x:r+o*a,y:i+o*t}),u<1&&(n.b={x:r+u*a,y:i+u*t}),n}}}}}}var _r=1e9;function br(M,_,b,w){return function(i){var r,f,o,u,a,c,l,s,h,p,g,d=i,n=vr(),v=Mr(M,_,b,w),t={point:e,lineStart:function(){t.point=x,f&&f.push(o=[]);p=!0,h=!1,l=s=NaN},lineEnd:function(){r&&(x(u,a),c&&h&&n.rejoin(),r.push(n.buffer()));t.point=e,h&&i.lineEnd()},polygonStart:function(){i=n,r=[],f=[],g=!0},polygonEnd:function(){i=d,r=L.merge(r);var n=function(n){for(var t=0,e=f.length,r=n[1],i=0;i<e;++i)for(var o,u=1,a=f[i],c=a.length,l=a[0];u<c;++u)o=a[u],l[1]<=r?o[1]>r&&0<Tn(l,o,n)&&++t:o[1]<=r&&Tn(l,o,n)<0&&--t,l=o;return 0!==t}([M,w]),t=g&&n,e=r.length;(t||e)&&(i.polygonStart(),t&&(i.lineStart(),y(null,null,1,i),i.lineEnd()),e&&sr(r,k,n,y,i),i.polygonEnd()),r=f=o=null}};function y(n,t,e,r){var i=0,o=0;if(null==n||(i=S(n,e))!==(o=S(t,e))||N(n,t)<0^0<e)for(;r.point(0===i||3===i?M:b,1<i?w:_),(i=(i+e+4)%4)!==o;);else r.point(t[0],t[1])}function m(n,t){return M<=n&&n<=b&&_<=t&&t<=w}function e(n,t){m(n,t)&&i.point(n,t)}function x(n,t){var e,r=m(n=Math.max(-_r,Math.min(_r,n)),t=Math.max(-_r,Math.min(_r,t)));f&&o.push([n,t]),p?(u=n,a=t,p=!1,(c=r)&&(i.lineStart(),i.point(n,t))):r&&h?i.point(n,t):v(e={a:{x:l,y:s},b:{x:n,y:t}})?(h||(i.lineStart(),i.point(e.a.x,e.a.y)),i.point(e.b.x,e.b.y),r||i.lineEnd(),g=!1):r&&(i.lineStart(),i.point(n,t),g=!1),l=n,s=t,h=r}return t};function S(n,t){return q(n[0]-M)<En?0<t?0:3:q(n[0]-b)<En?0<t?2:1:q(n[1]-_)<En?0<t?1:0:0<t?3:2}function k(n,t){return N(n.x,t.x)}function N(n,t){var e=S(n,1),r=S(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}}function wr(e,r){function n(n,t){return n=e(n,t),r(n[0],n[1])}return e.invert&&r.invert&&(n.invert=function(n,t){return(n=r.invert(n,t))&&e.invert(n[0],n[1])}),n}function Sr(n){var t=0,e=Sn/3,r=Br(n),n=r(t,e);return n.parallels=function(n){return arguments.length?r(t=n[0]*Sn/180,e=n[1]*Sn/180):[t/Sn*180,e/Sn*180]},n}function kr(n,t){var n=Math.sin(n),e=(n+Math.sin(t))/2,r=1+n*(2*e-n),i=Math.sqrt(r)/e;function o(n,t){t=Math.sqrt(r-2*e*Math.sin(t))/e;return[t*Math.sin(n*=e),i-t*Math.cos(n)]}return o.invert=function(n,t){t=i-t;return[Math.atan2(n,t)/e,Rn((r-(n*n+t*t)*e*e)/(2*e))]},o}L.geo.clipExtent=function(){var t,e,r,i,o,u,a={stream:function(n){return o&&(o.valid=!1),(o=u(n)).valid=!0,o},extent:function(n){return arguments.length?(u=br(t=+n[0][0],e=+n[0][1],r=+n[1][0],i=+n[1][1]),o&&(o.valid=!1,o=null),a):[[t,e],[r,i]]}};return a.extent([[0,0],[960,500]])},(L.geo.conicEqualArea=function(){return Sr(kr)}).raw=kr,L.geo.albers=function(){return L.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},L.geo.albersUsa=function(){var e,i,o,u,a=L.geo.albers(),c=L.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=L.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(n,t){e=[n,t]}};function s(n){var t=n[0],n=n[1];return e=null,i(t,n),e||(o(t,n),e)||u(t,n),e}return s.invert=function(n){var t=a.scale(),e=a.translate(),r=(n[0]-e[0])/t,t=(n[1]-e[1])/t;return(.12<=t&&t<.234&&-.425<=r&&r<-.214?c:.166<=t&&t<.234&&-.214<=r&&r<-.115?l:a).invert(n)},s.stream=function(n){var e=a.stream(n),r=c.stream(n),i=l.stream(n);return{point:function(n,t){e.point(n,t),r.point(n,t),i.point(n,t)},sphere:function(){e.sphere(),r.sphere(),i.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),i.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),i.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),i.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),i.polygonEnd()}}},s.precision=function(n){return arguments.length?(a.precision(n),c.precision(n),l.precision(n),s):a.precision()},s.scale=function(n){return arguments.length?(a.scale(n),c.scale(.35*n),l.scale(n),s.translate(a.translate())):a.scale()},s.translate=function(n){if(!arguments.length)return a.translate();var t=a.scale(),e=+n[0],r=+n[1];return i=a.translate(n).clipExtent([[e-.455*t,r-.238*t],[e+.455*t,r+.238*t]]).stream(f).point,o=c.translate([e-.307*t,r+.201*t]).clipExtent([[e-.425*t+En,r+.12*t+En],[e-.214*t-En,r+.234*t-En]]).stream(f).point,u=l.translate([e-.205*t,r+.212*t]).clipExtent([[e-.214*t+En,r+.166*t+En],[e-.115*t-En,r+.234*t-En]]).stream(f).point,s},s.scale(1070)};var Nr,Er,Ar,Cr,zr,Lr,Tr={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Er=0,Tr.lineStart=qr},polygonEnd:function(){Tr.lineStart=Tr.lineEnd=Tr.point=C,Nr+=q(Er/2)}};function qr(){var e,r,i,o;function u(n,t){Er+=o*n-i*t,i=n,o=t}Tr.point=function(n,t){Tr.point=u,e=i=n,r=o=t},Tr.lineEnd=function(){u(e,r)}}var Rr={point:function(n,t){n<Ar&&(Ar=n);zr<n&&(zr=n);t<Cr&&(Cr=t);Lr<t&&(Lr=t)},lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C};function Dr(){var e=Pr(4.5),r=[],i={point:n,lineStart:function(){i.point=t},lineEnd:u,polygonStart:function(){i.lineEnd=a},polygonEnd:function(){i.lineEnd=u,i.point=n},pointRadius:function(n){return e=Pr(n),i},result:function(){if(r.length){var n=r.join("");return r=[],n}}};function n(n,t){r.push("M",n,",",t,e)}function t(n,t){r.push("M",n,",",t),i.point=o}function o(n,t){r.push("L",n,",",t)}function u(){i.point=n}function a(){r.push("Z")}return i}function Pr(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}var Ur,jr={point:Fr,lineStart:Hr,lineEnd:Or,polygonStart:function(){jr.lineStart=Yr},polygonEnd:function(){jr.point=Fr,jr.lineStart=Hr,jr.lineEnd=Or}};function Fr(n,t){Ae+=n,Ce+=t,++ze}function Hr(){var i,o;function e(n,t){var e=n-i,r=t-o,r=Math.sqrt(e*e+r*r);Le+=r*(i+n)/2,Te+=r*(o+t)/2,qe+=r,Fr(i=n,o=t)}jr.point=function(n,t){jr.point=e,Fr(i=n,o=t)}}function Or(){jr.point=Fr}function Yr(){var e,r,i,o;function u(n,t){var e=n-i,r=t-o,r=Math.sqrt(e*e+r*r);Le+=r*(i+n)/2,Te+=r*(o+t)/2,qe+=r,Re+=(r=o*n-i*t)*(i+n),De+=r*(o+t),Pe+=3*r,Fr(i=n,o=t)}jr.point=function(n,t){jr.point=u,Fr(e=i=n,r=o=t)},jr.lineEnd=function(){u(e,r)}}function Ir(e){var r=4.5,i={point:n,lineStart:function(){i.point=t},lineEnd:u,polygonStart:function(){i.lineEnd=a},polygonEnd:function(){i.lineEnd=u,i.point=n},pointRadius:function(n){return r=n,i},result:C};function n(n,t){e.moveTo(n,t),e.arc(n,t,r,0,kn)}function t(n,t){e.moveTo(n,t),i.point=o}function o(n,t){e.lineTo(n,t)}function u(){i.point=n}function a(){e.closePath()}return i}function Zr(E){var A=.5,C=Math.cos(30*Cn),_=16;function t(n){return(_?function(r){var e,i,o,u,a,c,l,f,s,h,p,g,d={point:n,lineStart:t,lineEnd:y,polygonStart:function(){r.polygonStart(),d.lineStart=m},polygonEnd:function(){r.polygonEnd(),d.lineStart=t}};function n(n,t){n=E(n,t),r.point(n[0],n[1])}function t(){f=NaN,d.point=v,r.lineStart()}function v(n,t){var e=He([n,t]),t=E(n,t);z(f,s,l,h,p,g,f=t[0],s=t[1],l=n,h=e[0],p=e[1],g=e[2],_,r),r.point(f,s)}function y(){d.point=n,r.lineEnd()}function m(){t(),d.point=x,d.lineEnd=M}function x(n,t){v(e=n,t),i=f,o=s,u=h,a=p,c=g,d.point=v}function M(){z(f,s,l,h,p,g,i,o,e,u,a,c,_,r),d.lineEnd=y,y()}return d}:function(e){return Xr(e,function(n,t){n=E(n,t),e.point(n[0],n[1])})})(n)}function z(n,t,e,r,i,o,u,a,c,l,f,s,h,p){var g,d,v,y,m,x,M,_,b,w,S=u-n,k=a-t,N=S*S+k*k;4*A<N&&h--&&(g=r+l,d=i+f,v=o+s,y=Math.sqrt(g*g+d*d+v*v),b=Math.asin(v/=y),m=q(q(v)-1)<En||q(e-c)<En?(e+c)/2:Math.atan2(d,g),x=(w=E(m,b))[0],M=w[1],(A<(w=k*(_=x-n)-S*(b=M-t))*w/N||.3<q((S*_+k*b)/N-.5)||r*l+i*f+o*s<C)&&(z(n,t,e,r,i,o,x,M,m,g/=y,d/=y,v,h,p),p.point(x,M),z(x,M,m,g,d,v,u,a,c,l,f,s,h,p)))}return t.precision=function(n){return arguments.length?(_=0<(A=n*n)&&16,t):Math.sqrt(A)},t}function Vr(n){this.stream=n}function Xr(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function $r(n){return Br(function(){return n})()}function Br(n){var e,t,r,i,o,u,a=Zr(function(n,t){return[(n=e(n,t))[0]*c+i,o-n[1]*c]}),c=150,l=480,f=250,s=0,h=0,p=0,g=0,d=0,v=mr,y=pt,m=null,x=null;function M(n){return[(n=r(n[0]*Cn,n[1]*Cn))[0]*c+i,o-n[1]*c]}function _(n){return(n=r.invert((n[0]-i)/c,(o-n[1])/c))&&[n[0]*zn,n[1]*zn]}function b(){r=wr(t=Kr(p,g,d),e);var n=e(s,h);return i=l-n[0]*c,o=f+n[1]*c,w()}function w(){return u&&(u.valid=!1,u=null),M}return M.stream=function(n){return u&&(u.valid=!1),(u=Wr(v(t,a(y(n))))).valid=!0,u},M.clipAngle=function(n){return arguments.length?(v=null==n?(m=n,mr):xr((m=+n)*Cn),w()):m},M.clipExtent=function(n){return arguments.length?(y=(x=n)?br(n[0][0],n[0][1],n[1][0],n[1][1]):pt,w()):x},M.scale=function(n){return arguments.length?(c=+n,b()):c},M.translate=function(n){return arguments.length?(l=+n[0],f=+n[1],b()):[l,f]},M.center=function(n){return arguments.length?(s=n[0]%360*Cn,h=n[1]%360*Cn,b()):[s*zn,h*zn]},M.rotate=function(n){return arguments.length?(p=n[0]%360*Cn,g=n[1]%360*Cn,d=2<n.length?n[2]%360*Cn:0,b()):[p*zn,g*zn,d*zn]},L.rebind(M,a,"precision"),function(){return e=n.apply(this,arguments),M.invert=e.invert&&_,b()}}function Wr(e){return Xr(e,function(n,t){e.point(n*Cn,t*Cn)})}function Jr(n,t){return[n,t]}function Gr(n,t){return[Sn<n?n-kn:n<-Sn?n+kn:n,t]}function Kr(n,t,e){return n?t||e?wr(ni(n),ti(t,e)):ni(n):t||e?ti(t,e):Gr}function Qr(e){return function(n,t){return[Sn<(n+=e)?n-kn:n<-Sn?n+kn:n,t]}}function ni(n){var t=Qr(n);return t.invert=Qr(-n),t}function ti(n,t){var i=Math.cos(n),o=Math.sin(n),u=Math.cos(t),a=Math.sin(t);function e(n,t){var e=Math.cos(t),r=Math.cos(n)*e,n=Math.sin(n)*e,e=Math.sin(t),t=e*i+r*o;return[Math.atan2(n*u-t*a,r*i-e*o),Rn(t*u+n*a)]}return e.invert=function(n,t){var e=Math.cos(t),r=Math.cos(n)*e,n=Math.sin(n)*e,e=Math.sin(t),t=e*u-n*a;return[Math.atan2(n*u+e*a,r*i+t*o),Rn(t*i-r*o)]},e}function ei(a,c){var l=Math.cos(a),f=Math.sin(a);return function(n,t,e,r){var i=e*c;null!=n?(n=ri(l,n),t=ri(l,t),(0<e?n<t:t<n)&&(n+=e*kn)):(n=a+e*kn,t=a-.5*i);for(var o,u=n;0<e?t<u:u<t;u-=i)r.point((o=Xe([l,-f*Math.cos(u),-f*Math.sin(u)]))[0],o[1])}}function ri(n,t){t=He(t);t[0]-=n,Ve(t);n=qn(-t[1]);return((-t[2]<0?-n:n)+2*Math.PI-En)%(2*Math.PI)}function ii(n,t,e){var r=L.range(n,t-En,e).concat(t);return function(t){return r.map(function(n){return[t,n]})}}function oi(n,t,e){var r=L.range(n,t-En,e).concat(t);return function(t){return r.map(function(n){return[n,t]})}}function ui(n){return n.source}function ai(n){return n.target}L.geo.path=function(){var r,t,i,e,o,u=4.5;function a(n){return n&&("function"==typeof u&&e.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(e)),L.geo.stream(n,o)),e.result()}function c(){return o=null,a}return a.area=function(n){return Nr=0,L.geo.stream(n,i(Tr)),Nr},a.centroid=function(n){return Ae=Ce=ze=Le=Te=qe=Re=De=Pe=0,L.geo.stream(n,i(jr)),Pe?[Re/Pe,De/Pe]:qe?[Le/qe,Te/qe]:ze?[Ae/ze,Ce/ze]:[NaN,NaN]},a.bounds=function(n){return zr=Lr=-(Ar=Cr=1/0),L.geo.stream(n,i(Rr)),[[Ar,Cr],[zr,Lr]]},a.projection=function(n){return arguments.length?(i=(r=n)?n.stream||(e=n,t=Zr(function(n,t){return e([n*zn,t*zn])}),function(n){return Wr(t(n))}):pt,c()):r;var e,t},a.context=function(n){return arguments.length?(e=null==(t=n)?new Dr:new Ir(n),"function"!=typeof u&&e.pointRadius(u),c()):t},a.pointRadius=function(n){return arguments.length?(u="function"==typeof n?n:(e.pointRadius(+n),+n),a):u},a.projection(L.geo.albersUsa()).context(null)},L.geo.transform=function(r){return{stream:function(n){var t,e=new Vr(n);for(t in r)e[t]=r[t];return e}}},Vr.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},L.geo.projection=$r,L.geo.projectionMutator=Br,(L.geo.equirectangular=function(){return $r(Jr)}).raw=Jr.invert=Jr,L.geo.rotation=function(t){function n(n){return(n=t(n[0]*Cn,n[1]*Cn))[0]*=zn,n[1]*=zn,n}return t=Kr(t[0]%360*Cn,t[1]*Cn,2<t.length?t[2]*Cn:0),n.invert=function(n){return(n=t.invert(n[0]*Cn,n[1]*Cn))[0]*=zn,n[1]*=zn,n},n},Gr.invert=Jr,L.geo.circle=function(){var t,i,o=[0,0],e=6;function r(){var n="function"==typeof o?o.apply(this,arguments):o,e=Kr(-n[0]*Cn,-n[1]*Cn,0).invert,r=[];return i(null,null,1,{point:function(n,t){r.push(n=e(n,t)),n[0]*=zn,n[1]*=zn}}),{type:"Polygon",coordinates:[r]}}return r.origin=function(n){return arguments.length?(o=n,r):o},r.angle=function(n){return arguments.length?(i=ei((t=+n)*Cn,e*Cn),r):t},r.precision=function(n){return arguments.length?(i=ei(t*Cn,(e=+n)*Cn),r):e},r.angle(90)},L.geo.distance=function(n,t){var e=(t[0]-n[0])*Cn,r=n[1]*Cn,i=t[1]*Cn,o=Math.sin(e),n=Math.cos(e),t=Math.sin(r),e=Math.cos(r),r=Math.sin(i),i=Math.cos(i);return Math.atan2(Math.sqrt((o=i*o)*o+(o=e*r-t*i*n)*o),t*r+e*i*n)},L.geo.graticule=function(){var t,e,r,i,o,u,a,c,l,f,s,h,p=10,g=p,d=90,v=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:n()}}function n(){return L.range(Math.ceil(i/d)*d,r,d).map(s).concat(L.range(Math.ceil(c/v)*v,a,v).map(h)).concat(L.range(Math.ceil(e/p)*p,t,p).filter(function(n){return q(n%d)>En}).map(l)).concat(L.range(Math.ceil(u/g)*g,o,g).filter(function(n){return q(n%v)>En}).map(f))}return m.lines=function(){return n().map(function(n){return{type:"LineString",coordinates:n}})},m.outline=function(){return{type:"Polygon",coordinates:[s(i).concat(h(a).slice(1),s(r).reverse().slice(1),h(c).reverse().slice(1))]}},m.extent=function(n){return arguments.length?m.majorExtent(n).minorExtent(n):m.minorExtent()},m.majorExtent=function(n){return arguments.length?(i=+n[0][0],r=+n[1][0],c=+n[0][1],a=+n[1][1],r<i&&(n=i,i=r,r=n),a<c&&(n=c,c=a,a=n),m.precision(y)):[[i,c],[r,a]]},m.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],u=+n[0][1],o=+n[1][1],t<e&&(n=e,e=t,t=n),o<u&&(n=u,u=o,o=n),m.precision(y)):[[e,u],[t,o]]},m.step=function(n){return arguments.length?m.majorStep(n).minorStep(n):m.minorStep()},m.majorStep=function(n){return arguments.length?(d=+n[0],v=+n[1],m):[d,v]},m.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],m):[p,g]},m.precision=function(n){return arguments.length?(y=+n,l=ii(u,o,90),f=oi(e,t,y),s=ii(c,a,90),h=oi(i,r,y),m):y},m.majorExtent([[-180,-90+En],[180,90-En]]).minorExtent([[-180,-80-En],[180,80+En]])},L.geo.greatArc=function(){var t,e,r=ui,i=ai;function o(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}return o.distance=function(){return L.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},o.source=function(n){return arguments.length?(t="function"==typeof(r=n)?null:n,o):r},o.target=function(n){return arguments.length?(e="function"==typeof(i=n)?null:n,o):i},o.precision=function(){return arguments.length?o:0},o},L.geo.interpolate=function(n,t){return e=n[0]*Cn,r=n[1]*Cn,i=t[0]*Cn,o=t[1]*Cn,n=Math.cos(r),u=Math.sin(r),t=Math.cos(o),a=Math.sin(o),c=n*Math.cos(e),l=n*Math.sin(e),f=t*Math.cos(i),s=t*Math.sin(i),h=2*Math.asin(Math.sqrt(Pn(o-r)+n*t*Pn(i-e))),p=1/Math.sin(h),(i=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*c+t*f,n=e*l+t*s,t=e*u+t*a;return[Math.atan2(n,r)*zn,Math.atan2(t,Math.sqrt(r*r+n*n))*zn]}:function(){return[e*zn,r*zn]}).distance=h,i;var e,r,i,o,u,a,c,l,f,s,h,p},L.geo.length=function(n){return Ur=0,L.geo.stream(n,ci),Ur};var ci={sphere:C,point:C,lineStart:function(){var o,u,a;function e(n,t){var e=Math.sin(t*=Cn),r=Math.cos(t),i=q((n*=Cn)-o),t=Math.cos(i);Ur+=Math.atan2(Math.sqrt((i=r*Math.sin(i))*i+(i=a*e-u*r*t)*i),u*e+a*r*t),o=n,u=e,a=r}ci.point=function(n,t){o=n*Cn,u=Math.sin(t*=Cn),a=Math.cos(t),ci.point=e},ci.lineEnd=function(){ci.point=ci.lineEnd=C}},lineEnd:C,polygonStart:C,polygonEnd:C};function li(i,o){function n(n,t){var e=Math.cos(n),r=Math.cos(t),e=i(e*r);return[e*r*Math.sin(n),e*Math.sin(t)]}return n.invert=function(n,t){var e=Math.sqrt(n*n+t*t),r=o(e),i=Math.sin(r),r=Math.cos(r);return[Math.atan2(n*i,e*r),Math.asin(e&&t*i/e)]},n}var fi=li(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(L.geo.azimuthalEqualArea=function(){return $r(fi)}).raw=fi;var si=li(function(n){n=Math.acos(n);return n&&n/Math.sin(n)},pt);function hi(n,t){function e(n){return Math.tan(Sn/4+n/2)}var r=Math.cos(n),i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(e(t)/e(n)),o=r*Math.pow(e(n),i)/i;return i?(u.invert=function(n,t){var e=o-t,t=Ln(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/t,1/i))-Nn]},u):di;function u(n,t){0<o?t<-Nn+En&&(t=-Nn+En):Nn-En<t&&(t=Nn-En);t=o/Math.pow(e(t),i);return[t*Math.sin(i*n),o-t*Math.cos(i*n)]}}function pi(n,t){var e=Math.cos(n),r=n===t?Math.sin(n):(e-Math.cos(t))/(t-n),i=e/r+n;return q(r)<En?Jr:(o.invert=function(n,t){t=i-t;return[Math.atan2(n,t)/r,i-Ln(r)*Math.sqrt(n*n+t*t)]},o);function o(n,t){t=i-t;return[t*Math.sin(r*n),i-t*Math.cos(r*n)]}}(L.geo.azimuthalEquidistant=function(){return $r(si)}).raw=si,(L.geo.conicConformal=function(){return Sr(hi)}).raw=hi,(L.geo.conicEquidistant=function(){return Sr(pi)}).raw=pi;var gi=li(function(n){return 1/n},Math.atan);function di(n,t){return[n,Math.log(Math.tan(Sn/4+t/2))]}function vi(n){var i,o=$r(n),u=o.scale,a=o.translate,c=o.clipExtent;return o.scale=function(){var n=u.apply(o,arguments);return n===o?i?o.clipExtent(null):o:n},o.translate=function(){var n=a.apply(o,arguments);return n===o?i?o.clipExtent(null):o:n},o.clipExtent=function(n){var t,e,r=c.apply(o,arguments);return r===o?(i=null==n)&&(t=Sn*u(),e=a(),c([[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]])):i&&(r=null),r},o.clipExtent(null)}(L.geo.gnomonic=function(){return $r(gi)}).raw=gi,di.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Nn]},(L.geo.mercator=function(){return vi(di)}).raw=di;var yi=li(function(){return 1},Math.asin);(L.geo.orthographic=function(){return $r(yi)}).raw=yi;var mi=li(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});function xi(n,t){return[Math.log(Math.tan(Sn/4+t/2)),-n]}function Mi(n){return n[0]}function _i(n){return n[1]}function bi(n){for(var t=n.length,e=[0,1],r=2,i=2;i<t;i++){for(;1<r&&Tn(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function wi(n,t){return n[0]-t[0]||n[1]-t[1]}(L.geo.stereographic=function(){return $r(mi)}).raw=mi,xi.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Nn]},(L.geo.transverseMercator=function(){var n=vi(xi),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):[(n=t())[1],-n[0]]},n.rotate=function(n){return n?e([n[0],n[1],2<n.length?n[2]+90:90]):[(n=e())[0],n[1],n[2]-90]},e([0,0,90])}).raw=xi,L.geom={},L.geom.hull=function(n){var h=Mi,p=_i;return arguments.length?t(n):(t.x=function(n){return arguments.length?(h=n,t):h},t.y=function(n){return arguments.length?(p=n,t):p},t);function t(n){if(n.length<3)return[];for(var t=ht(h),e=ht(p),r=n.length,i=[],o=[],u=0;u<r;u++)i.push([+t.call(this,n[u],u),+e.call(this,n[u],u),u]);for(i.sort(wi),u=0;u<r;u++)o.push([i[u][0],-i[u][1]]);var a=bi(i),c=bi(o),l=c[0]===a[0],f=c[c.length-1]===a[a.length-1],s=[];for(u=a.length-1;0<=u;--u)s.push(n[i[a[u]][2]]);for(u=+l;u<c.length-f;++u)s.push(n[i[c[u]][2]]);return s}},L.geom.polygon=function(n){return F(n,Si),n};var Si=L.geom.polygon.prototype=[];function ki(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Ni(n,t,e,r){var i=n[0],o=e[0],u=t[0]-i,a=r[0]-o,n=n[1],e=e[1],t=t[1]-n,r=r[1]-e,a=(a*(n-e)-r*(i-o))/(r*u-a*t);return[i+a*u,n+a*t]}function Ei(n){var t=n[0],n=n[n.length-1];return!(t[0]-n[0]||t[1]-n[1])}Si.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],i=0;++t<e;)n=r,r=this[t],i+=n[1]*r[0]-n[0]*r[1];return.5*i},Si.centroid=function(n){var t,e,r=-1,i=this.length,o=0,u=0,a=this[i-1];for(arguments.length||(n=-1/(6*this.area()));++r<i;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*e,u+=(t[1]+a[1])*e;return[o*n,u*n]},Si.clip=function(n){for(var t,e,r,i,o,u,a=Ei(n),c=-1,l=this.length-Ei(this),f=this[l-1];++c<l;){for(t=n.slice(),n.length=0,i=this[c],o=t[(r=t.length-a)-1],e=-1;++e<r;)ki(u=t[e],f,i)?(ki(o,f,i)||n.push(Ni(o,u,f,i)),n.push(u)):ki(o,f,i)&&n.push(Ni(o,u,f,i)),o=u;a&&n.push(n[0]),f=i}return n};var Ai,Ci,zi,Li,Ti,qi=[],Ri=[];function Di(){Ki(this),this.edge=this.site=this.circle=null}function Pi(n){var t=qi.pop()||new Di;return t.site=n,t}function Ui(n){Vi(n),zi.remove(n),qi.push(n),Ki(n)}function ji(n){for(var t,e,r,i,o=n.x,u=n.y,a=zi._;a;)if(r=Fi(a,u)-o,En<r)a=a.L;else{if(i=o-function(n,t){var e=n.N;if(e)return Fi(e,t);n=n.site;return n.y===t?n.x:1/0}(a,u),!(En<i)){-En<r?(t=a.P,e=a):-En<i?e=(t=a).N:t=e=a;break}if(!a.R){t=a;break}a=a.R}var c,l,f,s,h,p,g,d,v,y,m=Pi(n);if(zi.insert(t,m),t||e){if(t===e)return Vi(t),e=Pi(t.site),zi.insert(m,e),m.edge=e.edge=Bi(t.site,m.site),Zi(t),void Zi(e);e?(Vi(t),Vi(e),l=(c=t.site).x,y=c.y,f=n.x-l,g=n.y-y,h=(s=e.site).x-l,y={x:((p=s.y-y)*(d=f*f+g*g)-g*(v=h*h+p*p))/(g=2*(f*p-g*h))+l,y:(f*v-h*d)/g+y},Wi(e.edge,c,s,y),m.edge=Bi(c,n,null,y),e.edge=Bi(n,s,null,y),Zi(t),Zi(e)):m.edge=Bi(t.site,m.site)}}function Fi(n,t){var e=n.site,r=e.x,i=e.y,o=i-t;if(!o)return r;var u=n.P;if(!u)return-1/0;var a=(e=u.site).x,c=e.y,n=c-t;if(!n)return a;u=a-r,e=1/o-1/n,t=u/n;return e?(-t+Math.sqrt(t*t-2*e*(u*u/(-2*n)-c+n/2+i-o/2)))/e+r:(r+a)/2}function Hi(n){this.site=n,this.edges=[]}function Oi(n){for(var t,e,r,i,o,u,a,c,l,f=n[0][0],s=n[1][0],h=n[0][1],p=n[1][1],g=Ci,d=g.length;d--;)if((i=g[d])&&i.prepare())for(a=(u=i.edges).length,o=0;o<a;)e=(l=u[o].end()).x,r=l.y,t=(c=u[++o%a].start()).x,c=c.y,(q(e-t)>En||q(r-c)>En)&&(u.splice(o,0,new Ji(function(n,t,e){n=new $i(n,null);return n.a=t,n.b=e,Ai.push(n),n}(i.site,l,q(e-f)<En&&En<p-r?{x:f,y:q(t-f)<En?c:p}:q(r-p)<En&&En<s-e?{x:q(c-p)<En?t:s,y:p}:q(e-s)<En&&En<r-h?{x:s,y:q(t-s)<En?c:h}:q(r-h)<En&&En<e-f?{x:q(c-h)<En?t:f,y:h}:null),i.site,null)),++a)}function Yi(n,t){return t.angle-n.angle}function Ii(){Ki(this),this.x=this.y=this.arc=this.site=this.cy=null}function Zi(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,i=n.site,o=e.site;if(r!==o){var u=i.x,a=i.y,c=r.x-u,l=r.y-a,f=o.x-u,e=2*(c*(t=o.y-a)-l*f);if(!(-An<=e)){var r=c*c+l*l,o=f*f+t*t,l=(t*r-l*o)/e,e=(c*o-f*r)/e,t=e+a,s=Ri.pop()||new Ii;s.arc=n,s.site=i,s.x=l+u,s.y=t+Math.sqrt(l*l+e*e),s.cy=t,n.circle=s;for(var h=null,p=Ti._;p;)if(s.y<p.y||s.y===p.y&&s.x<=p.x){if(!p.L){h=p.P;break}p=p.L}else{if(!p.R){h=p;break}p=p.R}Ti.insert(h,s),h||(Li=s)}}}}function Vi(n){var t=n.circle;t&&(t.P||(Li=t.N),Ti.remove(t),Ri.push(t),Ki(t),n.circle=null)}function Xi(n){for(var t,e=Ai,r=Mr(n[0][0],n[0][1],n[1][0],n[1][1]),i=e.length;i--;)(function(n,t){var e=n.b;if(e)return!0;var r=n.a,i=t[0][0],o=t[1][0],u=t[0][1],a=t[1][1],c=n.l,l=n.r,f=c.x,s=c.y,h=l.x,t=l.y,c=(f+h)/2,l=(s+t)/2;if(t===s){if(c<i||o<=c)return;if(h<f){if(r){if(r.y>=a)return}else r={x:c,y:u};e={x:c,y:a}}else{if(r){if(r.y<u)return}else r={x:c,y:a};e={x:c,y:u}}}else if(c=l-(l=(f-h)/(t-s))*c,l<-1||1<l)if(h<f){if(r){if(r.y>=a)return}else r={x:(u-c)/l,y:u};e={x:(a-c)/l,y:a}}else{if(r){if(r.y<u)return}else r={x:(a-c)/l,y:a};e={x:(u-c)/l,y:u}}else if(s<t){if(r){if(r.x>=o)return}else r={x:i,y:l*i+c};e={x:o,y:l*o+c}}else{if(r){if(r.x<i)return}else r={x:o,y:l*o+c};e={x:i,y:l*i+c}}return n.a=r,n.b=e,!0})(t=e[i],n)&&r(t)&&!(q(t.a.x-t.b.x)<En&&q(t.a.y-t.b.y)<En)||(t.a=t.b=null,e.splice(i,1))}function $i(n,t){this.l=n,this.r=t,this.a=this.b=null}function Bi(n,t,e,r){var i=new $i(n,t);return Ai.push(i),e&&Wi(i,n,t,e),r&&Wi(i,t,n,r),Ci[n.i].edges.push(new Ji(i,n,t)),Ci[t.i].edges.push(new Ji(i,t,n)),i}function Wi(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Ji(n,t,e){var r=n.a,i=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Gi(){this._=null}function Ki(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Qi(n,t){var e=t,r=t.R,t=e.U;t?t.L===e?t.L=r:t.R=r:n._=r,r.U=t,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function no(n,t){var e=t,r=t.L,t=e.U;t?t.L===e?t.L=r:t.R=r:n._=r,r.U=t,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function to(n){for(;n.L;)n=n.L;return n}function eo(n,t){var e,r,i,o=n.sort(ro).pop();for(Ai=[],Ci=new Array(n.length),zi=new Gi,Ti=new Gi;;)if(i=Li,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===e&&o.y===r||(Ci[o.i]=new Hi(o),ji(o),e=o.x,r=o.y),o=n.pop();else{if(!i)break;!function(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},o=n.P,u=n.N,a=[n];Ui(n);for(var c=o;c.circle&&q(e-c.circle.x)<En&&q(r-c.circle.cy)<En;)o=c.P,a.unshift(c),Ui(c),c=o;a.unshift(c),Vi(c);for(var l=u;l.circle&&q(e-l.circle.x)<En&&q(r-l.circle.cy)<En;)u=l.N,a.push(l),Ui(l),l=u;a.push(l),Vi(l);for(var f=a.length,s=1;s<f;++s)l=a[s],c=a[s-1],Wi(l.edge,c.site,l.site,i);c=a[0],(l=a[f-1]).edge=Bi(c.site,l.site,null,i),Zi(c),Zi(l)}(i.arc)}t&&(Xi(t),Oi(t));t={cells:Ci,edges:Ai};return zi=Ti=Ai=Ci=null,t}function ro(n,t){return t.y-n.y||t.x-n.x}Hi.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)(n=t[e].edge).b&&n.a||t.splice(e,1);return t.sort(Yi),t.length},Ji.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Gi.prototype={insert:function(n,t){var e,r,i;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else e=this._?(n=to(this._),t.P=null,(t.N=n).P=n.L=t,n):(t.P=t.N=null,this._=t,null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.R&&(Qi(this,e),e=(n=e).U),e.C=!1,r.C=!0,no(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,n=r):(n===e.L&&(no(this,e),e=(n=e).U),e.C=!1,r.C=!0,Qi(this,r)),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r=n.U,i=n.L,o=n.R,u=i?o?to(o):i:o;if(r?r.L===n?r.L=u:r.R=u:this._=u,i&&o?(e=u.C,u.C=n.C,((u.L=i).U=u)!==o?(r=u.U,u.U=n.U,n=u.R,r.L=n,(u.R=o).U=u):(u.U=r,n=(r=u).R)):(e=n.C,n=u),n&&(n.U=r),!e)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===r.L){if((t=r.R).C&&(t.C=!1,r.C=!0,Qi(this,r),t=r.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,no(this,t),t=r.R),t.C=r.C,r.C=t.R.C=!1,Qi(this,r),n=this._;break}}else if((t=r.L).C&&(t.C=!1,r.C=!0,no(this,r),t=r.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Qi(this,t),t=r.L),t.C=r.C,r.C=t.L.C=!1,no(this,r),n=this._;break}}while(t.C=!0,r=(n=r).U,!n.C);n&&(n.C=!1)}}},L.geom.voronoi=function(n){var t=Mi,e=_i,r=t,i=e,l=io;return n?o(n):(o.links=function(t){return eo(f(t)).edges.filter(function(n){return n.l&&n.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},o.triangles=function(h){var p=[];return eo(f(h)).cells.forEach(function(n,t){for(var e,r,i,o,u=n.site,a=n.edges.sort(Yi),c=-1,l=a.length,f=a[l-1].edge,s=f.l===u?f.r:f.l;++c<l;)e=s,s=(f=a[c].edge).l===u?f.r:f.l,t<e.i&&t<s.i&&(i=e,o=s,((r=u).x-o.x)*(i.y-r.y)-(r.x-i.x)*(o.y-r.y)<0)&&p.push([h[t],h[e.i],h[s.i]])}),p},o.x=function(n){return arguments.length?(r=ht(t=n),o):t},o.y=function(n){return arguments.length?(i=ht(e=n),o):e},o.clipExtent=function(n){return arguments.length?(l=null==n?io:n,o):l===io?null:l},o.size=function(n){return arguments.length?o.clipExtent(n&&[[0,0],n]):l===io?null:l&&l[1]},o);function o(r){var i=new Array(r.length),o=l[0][0],u=l[0][1],a=l[1][0],c=l[1][1];return eo(f(r),l).cells.forEach(function(n,t){var e=n.edges,n=n.site;(i[t]=e.length?e.map(function(n){n=n.start();return[n.x,n.y]}):n.x>=o&&n.x<=a&&n.y>=u&&n.y<=c?[[o,c],[a,c],[a,u],[o,u]]:[]).point=r[t]}),i}function f(n){return n.map(function(n,t){return{x:Math.round(r(n,t)/En)*En,y:Math.round(i(n,t)/En)*En,i:t}})}};var io=[[-1e6,-1e6],[1e6,1e6]];function oo(n){return n.x}function uo(n){return n.y}function ao(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function co(n,t){n=L.rgb(n),t=L.rgb(t);var e=n.r,r=n.g,i=n.b,o=t.r-e,u=t.g-r,a=t.b-i;return function(n){return"#"+ot(Math.round(e+o*n))+ot(Math.round(r+u*n))+ot(Math.round(i+a*n))}}function lo(n,t){var e,r={},i={};for(e in n)e in t?r[e]=go(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function fo(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function so(n,r){var t,e,i,o=ho.lastIndex=po.lastIndex=0,u=-1,a=[],c=[];for(n+="",r+="";(t=ho.exec(n))&&(e=po.exec(r));)(i=e.index)>o&&(i=r.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(t=t[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,c.push({i:u,x:fo(t,e)})),o=po.lastIndex;return o<r.length&&(i=r.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?(r=c[0].x,function(n){return r(n)+""}):function(){return r}:(r=c.length,function(n){for(var t,e=0;e<r;++e)a[(t=c[e]).i]=t.x(n);return a.join("")})}L.geom.delaunay=function(n){return L.geom.voronoi().triangles(n)},L.geom.quadtree=function(n,x,M,_,b){var w,S=Mi,k=_i;return(w=arguments.length)?(S=oo,k=uo,3===w&&(b=M,_=x,M=x=0),t(n)):(t.x=function(n){return arguments.length?(S=n,t):S},t.y=function(n){return arguments.length?(k=n,t):k},t.extent=function(n){return arguments.length?(null==n?x=M=_=b=null:(x=+n[0][0],M=+n[0][1],_=+n[1][0],b=+n[1][1]),t):null==x?null:[[x,M],[_,b]]},t.size=function(n){return arguments.length?(null==n?x=M=_=b=null:(x=M=0,_=+n[0],b=+n[1]),t):null==x?null:[_-x,b-M]},t);function t(n){var t,e,r,i,o,u,a,c,l,f=ht(S),s=ht(k);if(null!=x)u=x,a=M,c=_,l=b;else if(c=l=-(u=a=1/0),e=[],r=[],o=n.length,w)for(i=0;i<o;++i)(t=n[i]).x<u&&(u=t.x),t.y<a&&(a=t.y),t.x>c&&(c=t.x),t.y>l&&(l=t.y),e.push(t.x),r.push(t.y);else for(i=0;i<o;++i){var h=+f(t=n[i],i),p=+s(t,i);h<u&&(u=h),p<a&&(a=p),c<h&&(c=h),l<p&&(l=p),e.push(h),r.push(p)}var g=c-u,d=l-a;function v(n,t,e,r,i,o,u,a){var c,l,f;isNaN(e)||isNaN(r)||(n.leaf?(c=n.x,l=n.y,null!=c?(q(c-e)+q(l-r)<.01||(f=n.point,n.x=n.y=n.point=null,y(n,f,c,l,i,o,u,a)),y(n,t,e,r,i,o,u,a)):(n.x=e,n.y=r,n.point=t)):y(n,t,e,r,i,o,u,a))}function y(n,t,e,r,i,o,u,a){var c=.5*(i+u),l=.5*(o+a),f=c<=e,s=l<=r,h=(s<<1)+f;n.leaf=!1,f?i=c:u=c,s?o=l:a=l,v(n=n.nodes[h]||(n.nodes[h]=ao()),t,e,r,i,o,u,a)}d<g?l=a+g:c=u+d;var m=ao();if(m.add=function(n){v(m,n,+f(n,++i),+s(n,i),u,a,c,l)},m.visit=function(n){!function n(t,e,r,i,o,u){{var a,c;t(e,r,i,o,u)||(a=.5*(r+o),c=.5*(i+u),(e=e.nodes)[0]&&n(t,e[0],r,i,a,c),e[1]&&n(t,e[1],a,i,o,c),e[2]&&n(t,e[2],r,c,a,u),e[3]&&n(t,e[3],a,c,o,u))}}(n,m,u,a,c,l)},i=-1,null==x){for(;++i<o;)v(m,n[i],e[i],r[i],u,a,c,l);--i}else n.forEach(m.add);return e=r=n=t=null,m}},L.interpolateRgb=co,L.interpolateObject=lo,L.interpolateNumber=fo,L.interpolateString=so;var ho=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,po=new RegExp(ho.source,"g");function go(n,t){for(var e,r=L.interpolators.length;0<=--r&&!(e=L.interpolators[r](n,t)););return e}function vo(n,t){for(var e=[],r=[],i=n.length,o=t.length,u=Math.min(n.length,t.length),a=0;a<u;++a)e.push(go(n[a],t[a]));for(;a<i;++a)r[a]=n[a];for(;a<o;++a)r[a]=t[a];return function(n){for(a=0;a<u;++a)r[a]=e[a](n);return r}}function yo(){return pt}L.interpolate=go,L.interpolators=[function(n,t){var e=typeof t;return("string"==e?st.has(t)||/^(#|rgb\(|hsl\()/.test(t)?co:so:t instanceof On?co:Array.isArray(t)?vo:"object"==e&&isNaN(t)?lo:fo)(n,t)}],L.interpolateArray=vo;var mo=L.map({linear:yo,poly:function(t){return function(n){return Math.pow(n,t)}},quad:function(){return bo},cubic:function(){return wo},sin:function(){return ko},exp:function(){return No},circle:function(){return Eo},elastic:function(t,e){var r;arguments.length<2&&(e=.45);r=arguments.length?e/kn*Math.asin(1/t):(t=1,e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*kn/e)}},back:function(t){t=t||1.70158;return function(n){return n*n*((t+1)*n-t)}},bounce:function(){return Ao}}),xo=L.map({in:pt,out:Mo,"in-out":_o,"out-in":function(n){return _o(Mo(n))}});function Mo(t){return function(n){return 1-t(1-n)}}function _o(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}}function bo(n){return n*n}function wo(n){return n*n*n}function So(n){if(n<=0)return 0;if(1<=n)return 1;var t=n*n,e=t*n;return 4*(n<.5?e:3*(n-t)+e-.75)}function ko(n){return 1-Math.cos(n*Nn)}function No(n){return Math.pow(2,10*(n-1))}function Eo(n){return 1-Math.sqrt(1-n*n)}function Ao(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Co(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function zo(n){var t,e,r,i=[n.a,n.b],o=[n.c,n.d],u=To(i),a=Lo(i,o),t=To(((t=o)[0]+=(r=-a)*(e=i)[0],t[1]+=r*e[1],t))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,u*=-1,a*=-1),this.rotate=(u?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*zn,this.translate=[n.e,n.f],this.scale=[u,t],this.skew=t?Math.atan2(a,t)*zn:0}function Lo(n,t){return n[0]*t[0]+n[1]*t[1]}function To(n){var t=Math.sqrt(Lo(n,n));return t&&(n[0]/=t,n[1]/=t),t}L.ease=function(n){var t,e=n.indexOf("-"),r=0<=e?n.slice(0,e):n,e=0<=e?n.slice(e+1):"in",r=mo.get(r)||yo,e=xo.get(e)||pt;return t=e(r.apply(null,i.call(arguments,1))),function(n){return n<=0?0:1<=n?1:t(n)}},L.interpolateHcl=function(n,t){n=L.hcl(n),t=L.hcl(t);var e=n.h,r=n.c,i=n.l,o=t.h-e,u=t.c-r,a=t.l-i;isNaN(u)&&(u=0,r=isNaN(r)?t.c:r);isNaN(o)?(o=0,e=isNaN(e)?t.h:e):180<o?o-=360:o<-180&&(o+=360);return function(n){return Vn(e+o*n,r+u*n,i+a*n)+""}},L.interpolateHsl=function(n,t){n=L.hsl(n),t=L.hsl(t);var e=n.h,r=n.s,i=n.l,o=t.h-e,u=t.s-r,a=t.l-i;isNaN(u)&&(u=0,r=isNaN(r)?t.s:r);isNaN(o)?(o=0,e=isNaN(e)?t.h:e):180<o?o-=360:o<-180&&(o+=360);return function(n){return In(e+o*n,r+u*n,i+a*n)+""}},L.interpolateLab=function(n,t){n=L.lab(n),t=L.lab(t);var e=n.l,r=n.a,i=n.b,o=t.l-e,u=t.a-r,a=t.b-i;return function(n){return Gn(e+o*n,r+u*n,i+a*n)+""}},L.interpolateRound=Co,L.transform=function(n){var e=r.createElementNS(L.ns.prefix.svg,"g");return(L.transform=function(n){var t;return null!=n&&(e.setAttribute("transform",n),t=e.transform.baseVal.consolidate()),new zo(t?t.matrix:qo)})(n)},zo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var qo={a:1,b:0,c:0,d:1,e:0,f:0};function Ro(n,t){var r,i=[],o=[],e=L.transform(n),u=L.transform(t),a=e.translate,c=u.translate,l=e.rotate,f=u.rotate,n=e.skew,t=u.skew,e=e.scale,u=u.scale;return a[0]!=c[0]||a[1]!=c[1]?(i.push("translate(",null,",",null,")"),o.push({i:1,x:fo(a[0],c[0])},{i:3,x:fo(a[1],c[1])})):c[0]||c[1]?i.push("translate("+c+")"):i.push(""),l!=f?(180<l-f?f+=360:180<f-l&&(l+=360),o.push({i:i.push(i.pop()+"rotate(",null,")")-2,x:fo(l,f)})):f&&i.push(i.pop()+"rotate("+f+")"),n!=t?o.push({i:i.push(i.pop()+"skewX(",null,")")-2,x:fo(n,t)}):t&&i.push(i.pop()+"skewX("+t+")"),e[0]!=u[0]||e[1]!=u[1]?(r=i.push(i.pop()+"scale(",null,",",null,")"),o.push({i:r-4,x:fo(e[0],u[0])},{i:r-2,x:fo(e[1],u[1])})):1==u[0]&&1==u[1]||i.push(i.pop()+"scale("+u+")"),r=o.length,function(n){for(var t,e=-1;++e<r;)i[(t=o[e]).i]=t.x(n);return i.join("")}}function Do(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function Po(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Uo(n){for(var t=[],e=n.parent;null!=e;)t.push(n),e=(n=e).parent;return t.push(n),t}function jo(n){n.fixed|=2}function Fo(n){n.fixed&=-7}function Ho(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Oo(n){n.fixed&=-5}L.interpolateTransform=Ro,L.layout={},L.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(function(n){var t=n.source,e=n.target,r=function(n,t){if(n===t)return n;var e=Uo(n),r=Uo(t),i=e.pop(),o=r.pop(),u=null;for(;i===o;)u=i,i=e.pop(),o=r.pop();return u}(t,e),i=[t];for(;t!==r;)t=t.parent,i.push(t);var o=i.length;for(;e!==r;)i.splice(o,0,e),e=e.parent;return i}(n[e]));return t}},L.layout.chord=function(){var v,y,m,x,M,_,b,t={},w=0;function n(){var n,t,e,r,i,o={},u=[],a=L.range(x),c=[];for(v=[],y=[],n=0,r=-1;++r<x;){for(t=0,i=-1;++i<x;)t+=m[r][i];u.push(t),c.push(L.range(x)),n+=t}for(M&&a.sort(function(n,t){return M(u[n],u[t])}),_&&c.forEach(function(n,e){n.sort(function(n,t){return _(m[e][n],m[e][t])})}),n=(kn-w*x)/n,t=0,r=-1;++r<x;){for(e=t,i=-1;++i<x;){var l=a[r],f=c[l][i],s=m[l][f],h=t,p=t+=s*n;o[l+"-"+f]={index:l,subindex:f,startAngle:h,endAngle:p,value:s}}y[l]={index:l,startAngle:e,endAngle:t,value:(t-e)/n},t+=w}for(r=-1;++r<x;)for(i=r-1;++i<x;){var g=o[r+"-"+i],d=o[i+"-"+r];(g.value||d.value)&&v.push(g.value<d.value?{source:d,target:g}:{source:g,target:d})}b&&S()}function S(){v.sort(function(n,t){return b((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}return t.matrix=function(n){return arguments.length?(x=(m=n)&&m.length,v=y=null,t):m},t.padding=function(n){return arguments.length?(w=n,v=y=null,t):w},t.sortGroups=function(n){return arguments.length?(M=n,v=y=null,t):M},t.sortSubgroups=function(n){return arguments.length?(_=n,v=null,t):_},t.sortChords=function(n){return arguments.length?(b=n,v&&S(),t):b},t.chords=function(){return v||n(),v},t.groups=function(){return y||n(),y},t},L.layout.force=function(){var n,s,h,p,g,o={},d=L.dispatch("start","tick","end"),v=[1,1],y=.9,u=Yo,f=Io,m=-30,x=Zo,M=.1,_=.64,b=[],w=[];function t(n){n.px=L.event.x,n.py=L.event.y,o.resume()}return o.tick=function(){if((s*=.99)<.005)return d.end({type:"end",alpha:s=0}),!0;for(var n,t,e,r,i,o,u,a,c=b.length,l=w.length,f=0;f<l;++f)e=(t=w[f]).source,(i=(u=(r=t.target).x-e.x)*u+(a=r.y-e.y)*a)&&(u*=i=s*p[f]*((i=Math.sqrt(i))-h[f])/i,a*=i,r.x-=u*(o=e.weight/(r.weight+e.weight)),r.y-=a*o,e.x+=u*(o=1-o),e.y+=a*o);if((o=s*M)&&(u=v[0]/2,a=v[1]/2,f=-1,o))for(;++f<c;)(t=b[f]).x+=(u-t.x)*o,t.y+=(a-t.y)*o;if(m)for(!function n(t,e,r){var i=0,o=0;t.charge=0;if(!t.leaf)for(var u,a=t.nodes,c=a.length,l=-1;++l<c;)null!=(u=a[l])&&(n(u,e,r),t.charge+=u.charge,i+=u.charge*u.cx,o+=u.charge*u.cy);{var f;t.point&&(t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5),f=e*r[t.point.index],t.charge+=t.pointCharge=f,i+=f*t.point.x,o+=f*t.point.y)}t.cx=i/t.charge;t.cy=o/t.charge}(n=L.geom.quadtree(b),s,g),f=-1;++f<c;)(t=b[f]).fixed||n.visit(function(a){return function(n,t,e,r){if(n.point!==a){var i,o=n.cx-a.x,u=n.cy-a.y,r=r-t,t=o*o+u*u;if(r*r/_<t)return t<x&&(i=n.charge/t,a.px-=o*i,a.py-=u*i),!0;n.point&&t&&t<x&&(i=n.pointCharge/t,a.px-=o*i,a.py-=u*i)}return!n.charge}}(t));for(f=-1;++f<c;)(t=b[f]).fixed?(t.x=t.px,t.y=t.py):(t.x-=(t.px-(t.px=t.x))*y,t.y-=(t.py-(t.py=t.y))*y);d.tick({type:"tick",alpha:s})},o.nodes=function(n){return arguments.length?(b=n,o):b},o.links=function(n){return arguments.length?(w=n,o):w},o.size=function(n){return arguments.length?(v=n,o):v},o.linkDistance=function(n){return arguments.length?(u="function"==typeof n?n:+n,o):u},o.distance=o.linkDistance,o.linkStrength=function(n){return arguments.length?(f="function"==typeof n?n:+n,o):f},o.friction=function(n){return arguments.length?(y=+n,o):y},o.charge=function(n){return arguments.length?(m="function"==typeof n?n:+n,o):m},o.chargeDistance=function(n){return arguments.length?(x=n*n,o):Math.sqrt(x)},o.gravity=function(n){return arguments.length?(M=+n,o):M},o.theta=function(n){return arguments.length?(_=n*n,o):Math.sqrt(_)},o.alpha=function(n){return arguments.length?(n=+n,s?s=0<n?n:0:0<n&&(d.start({type:"start",alpha:s=n}),L.timer(o.tick)),o):s},o.start=function(){for(var a,n,c=b.length,t=w.length,e=v[0],r=v[1],l=0;l<c;++l)(n=b[l]).index=l,n.weight=0;for(l=0;l<t;++l)"number"==typeof(n=w[l]).source&&(n.source=b[n.source]),"number"==typeof n.target&&(n.target=b[n.target]),++n.source.weight,++n.target.weight;for(l=0;l<c;++l)n=b[l],isNaN(n.x)&&(n.x=i("x",e)),isNaN(n.y)&&(n.y=i("y",r)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(h=[],"function"==typeof u)for(l=0;l<t;++l)h[l]=+u.call(this,w[l],l);else for(l=0;l<t;++l)h[l]=u;if(p=[],"function"==typeof f)for(l=0;l<t;++l)p[l]=+f.call(this,w[l],l);else for(l=0;l<t;++l)p[l]=f;if(g=[],"function"==typeof m)for(l=0;l<c;++l)g[l]=+m.call(this,b[l],l);else for(l=0;l<c;++l)g[l]=m;function i(n,t){if(!a){for(a=new Array(c),o=0;o<c;++o)a[o]=[];for(o=0;o<u;++o){var e=w[o];a[e.source.index].push(e.target),a[e.target.index].push(e.source)}}for(var r,i=a[l],o=-1,u=i.length;++o<u;)if(!isNaN(r=i[o][n]))return r;return Math.random()*t}return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){if(n=n||L.behavior.drag().origin(pt).on("dragstart.force",jo).on("drag.force",t).on("dragend.force",Fo),!arguments.length)return n;this.on("mouseover.force",Ho).on("mouseout.force",Oo).call(n)},L.rebind(o,d,"on")};var Yo=20,Io=1,Zo=1/0;function Vo(n,t){return L.rebind(n,t,"sort","children","value"),(n.nodes=n).links=Go,n}function Xo(n,t){for(var e,r,i=[n];null!=(n=i.pop());)if(t(n),(r=n.children)&&(e=r.length))for(;0<=--e;)i.push(r[e])}function $o(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(o=n.children)&&(i=o.length))for(var i,o,u=-1;++u<i;)e.push(o[u]);for(;null!=(n=r.pop());)t(n)}function Bo(n){return n.children}function Wo(n){return n.value}function Jo(n,t){return t.value-n.value}function Go(n){return L.merge(n.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}L.layout.hierarchy=function(){var a=Jo,c=Bo,l=Wo;function f(n){var t,e,r,i,o=[n],u=[];for(n.depth=0;null!=(t=o.pop());)if(u.push(t),(r=c.call(f,t,t.depth))&&(e=r.length)){for(;0<=--e;)o.push(i=r[e]),i.parent=t,i.depth=t.depth+1;l&&(t.value=0),t.children=r}else l&&(t.value=+l.call(f,t,t.depth)||0),delete t.children;return $o(n,function(n){var t,e;a&&(t=n.children)&&t.sort(a),l&&(e=n.parent)&&(e.value+=n.value)}),u}return f.sort=function(n){return arguments.length?(a=n,f):a},f.children=function(n){return arguments.length?(c=n,f):c},f.value=function(n){return arguments.length?(l=n,f):l},f.revalue=function(n){return l&&(Xo(n,function(n){n.children&&(n.value=0)}),$o(n,function(n){var t;n.children||(n.value=+l.call(f,n,n.depth)||0),(t=n.parent)&&(t.value+=n.value)})),n},f},L.layout.partition=function(){var e=L.layout.hierarchy(),r=[1,1];function t(n,t){t=e.call(this,n,t);return function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(u=o.length)){var u,a,c=-1;for(r=t.value?r/t.value:0;++c<u;)n(a=o[c],e,a=a.value*r,i),e+=a}}(t[0],0,r[0],r[1]/function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,o=-1;++o<i;)r=Math.max(r,n(e[o]));return 1+r}(t[0])),t}return t.size=function(n){return arguments.length?(r=n,t):r},Vo(t,e)},L.layout.pie=function(){var u=Number,a=Ko,c=0,l=kn;function f(e){var r=e.map(function(n,t){return+u.call(f,n,t)}),t=+("function"==typeof c?c.apply(this,arguments):c),i=(("function"==typeof l?l.apply(this,arguments):l)-t)/L.sum(r),n=L.range(e.length);null!=a&&n.sort(a===Ko?function(n,t){return r[t]-r[n]}:function(n,t){return a(e[n],e[t])});var o=[];return n.forEach(function(n){o[n]={data:e[n],value:n=r[n],startAngle:t,endAngle:t+=n*i}}),o}return f.value=function(n){return arguments.length?(u=n,f):u},f.sort=function(n){return arguments.length?(a=n,f):a},f.startAngle=function(n){return arguments.length?(c=n,f):c},f.endAngle=function(n){return arguments.length?(l=n,f):l},f};var Ko={};function Qo(n){return n.x}function nu(n){return n.y}function tu(n,t,e){n.y0=t,n.y=e}L.layout.stack=function(){var s=pt,h=iu,p=ou,g=tu,d=Qo,v=nu;function y(n,t){if(!(e=n.length))return n;for(var e,r,i,o=(a=n.map(function(n,t){return s.call(y,n,t)})).map(function(n){return n.map(function(n,t){return[d.call(y,n,t),v.call(y,n,t)]})}),u=h.call(y,o,t),a=L.permute(a,u),o=L.permute(o,u),c=p.call(y,o,t),l=a[0].length,f=0;f<l;++f)for(g.call(y,a[0][f],i=c[f],o[0][f][1]),r=1;r<e;++r)g.call(y,a[r][f],i+=o[r-1][f][1],o[r][f][1]);return n}return y.values=function(n){return arguments.length?(s=n,y):s},y.order=function(n){return arguments.length?(h="function"==typeof n?n:eu.get(n)||iu,y):h},y.offset=function(n){return arguments.length?(p="function"==typeof n?n:ru.get(n)||ou,y):p},y.x=function(n){return arguments.length?(d=n,y):d},y.y=function(n){return arguments.length?(v=n,y):v},y.out=function(n){return arguments.length?(g=n,y):g},y};var eu=L.map({"inside-out":function(n){for(var t,e=n.length,r=n.map(uu),i=n.map(au),o=L.range(e).sort(function(n,t){return r[n]-r[t]}),u=0,a=0,c=[],l=[],f=0;f<e;++f)t=o[f],u<a?(u+=i[t],c.push(t)):(a+=i[t],l.push(t));return l.reverse().concat(c)},reverse:function(n){return L.range(n.length).reverse()},default:iu}),ru=L.map({silhouette:function(n){for(var t,e,r=n.length,i=n[0].length,o=[],u=0,a=[],c=0;c<i;++c){for(e=t=0;t<r;t++)e+=n[t][c][1];u<e&&(u=e),o.push(e)}for(c=0;c<i;++c)a[c]=(u-o[c])/2;return a},wiggle:function(n){var t,e,r,i,o,u,a,c,l,f=n.length,s=n[0],h=s.length,p=[];for(p[0]=c=l=0,e=1;e<h;++e){for(i=t=0;t<f;++t)i+=n[t][e][1];for(o=t=0,a=s[e][0]-s[e-1][0];t<f;++t){for(r=0,u=(n[t][e][1]-n[t][e-1][1])/(2*a);r<t;++r)u+=(n[r][e][1]-n[r][e-1][1])/a;o+=u*n[t][e][1]}p[e]=c-=i?o/i*a:0,c<l&&(l=c)}for(e=0;e<h;++e)p[e]-=l;return p},expand:function(n){for(var t,e,r=n.length,i=n[0].length,o=1/r,u=[],a=0;a<i;++a){for(e=t=0;t<r;t++)e+=n[t][a][1];if(e)for(t=0;t<r;t++)n[t][a][1]/=e;else for(t=0;t<r;t++)n[t][a][1]=o}for(a=0;a<i;++a)u[a]=0;return u},zero:ou});function iu(n){return L.range(n.length)}function ou(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function uu(n){for(var t,e=1,r=0,i=n[0][1],o=n.length;e<o;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function au(n){return n.reduce(cu,0)}function cu(n,t){return n+t[1]}function lu(n,t){return fu(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function fu(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,o=[];++e<=t;)o[e]=i*e+r;return o}function su(n){return[L.min(n),L.max(n)]}function hu(n,t){return n.value-t.value}function pu(n,t){var e=n._pack_next;(n._pack_next=t)._pack_prev=n,(t._pack_next=e)._pack_prev=t}function gu(n,t){(n._pack_next=t)._pack_prev=n}function du(n,t){var e=t.x-n.x,r=t.y-n.y,t=n.r+t.r;return e*e+r*r<.999*t*t}function vu(n){if((t=n.children)&&(u=t.length)){var t,e,r,i,o,u,a=1/0,c=-1/0,l=1/0,f=-1/0;if(t.forEach(yu),e=t[0],e.x=-e.r,e.y=0,x(e),1<u&&((r=t[1]).x=r.r,r.y=0,x(r),2<u))for(xu(e,r,i=t[2]),x(i),pu(e,i),pu(e._pack_prev=i,r),r=e._pack_next,m=3;m<u;m++){xu(e,r,i=t[m]);for(var s=0,h=1,p=1,g=r._pack_next;g!==r;g=g._pack_next,h++)if(du(g,i)){s=1;break}if(1==s)for(o=e._pack_prev;o!==g._pack_prev&&!du(o,i);o=o._pack_prev,p++);s?(h<p||h==p&&r.r<e.r?gu(e,r=g):gu(e=o,r),m--):(pu(e,i),x(r=i))}for(var d=(a+c)/2,v=(l+f)/2,y=0,m=0;m<u;m++)(i=t[m]).x-=d,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=y,t.forEach(mu)}function x(n){a=Math.min(n.x-n.r,a),c=Math.max(n.x+n.r,c),l=Math.min(n.y-n.r,l),f=Math.max(n.y+n.r,f)}}function yu(n){n._pack_next=n._pack_prev=n}function mu(n){delete n._pack_next,delete n._pack_prev}function xu(n,t,e){var r,i,o=n.r+e.r,u=t.x-n.x,a=t.y-n.y;o&&(u||a)?(r=t.r+e.r,t=.5+((o*=o)-(r*=r))/(2*(i=u*u+a*a)),i=Math.sqrt(Math.max(0,2*r*(o+i)-(o-=i)*o-r*r))/(2*i),e.x=n.x+t*u+i*a,e.y=n.y+t*a-i*u):(e.x=n.x+o,e.y=n.y)}function Mu(n,t){return n.parent==t.parent?1:2}function _u(n){var t=n.children;return t.length?t[0]:n.t}function bu(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function wu(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Su(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],t=n.dy-t[0]-t[2];return i<0&&(e+=i/2,i=0),t<0&&(r+=t/2,t=0),{x:e,y:r,dx:i,dy:t}}function ku(n){var t=n[0],n=n[n.length-1];return t<n?[t,n]:[n,t]}function Nu(n){return n.rangeExtent?n.rangeExtent():ku(n.range())}function Eu(n,t,e,r){var i=e(n[0],n[1]),o=r(t[0],t[1]);return function(n){return o(i(n))}}function Au(n,t){var e,r=0,i=n.length-1,o=n[r],u=n[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),n[r]=t.floor(o),n[i]=t.ceil(u),n}L.layout.histogram=function(){var s=!0,h=Number,p=su,g=lu;function e(n,t){for(var e,r,i=[],o=n.map(h,this),u=p.call(this,o,t),a=g.call(this,u,o,t),t=-1,c=o.length,l=a.length-1,f=s?1:1/c;++t<l;)(e=i[t]=[]).dx=a[t+1]-(e.x=a[t]),e.y=0;if(0<l)for(t=-1;++t<c;)(r=o[t])>=u[0]&&r<=u[1]&&((e=i[L.bisect(a,r,1,l)-1]).y+=f,e.push(n[t]));return i}return e.value=function(n){return arguments.length?(h=n,e):h},e.range=function(n){return arguments.length?(p=ht(n),e):p},e.bins=function(t){return arguments.length?(g="number"==typeof t?function(n){return fu(n,t)}:ht(t),e):g},e.frequency=function(n){return arguments.length?(s=!!n,e):s},e},L.layout.pack=function(){var u,a=L.layout.hierarchy().sort(hu),c=0,l=[1,1];function t(n,t){var e,r=a.call(this,n,t),i=r[0],n=l[0],t=l[1],o=null==u?Math.sqrt:"function"==typeof u?u:function(){return u};return i.x=i.y=0,$o(i,function(n){n.r=+o(n.value)}),$o(i,vu),c&&(e=c*(u?1:Math.max(2*i.r/n,2*i.r/t))/2,$o(i,function(n){n.r+=e}),$o(i,vu),$o(i,function(n){n.r-=e})),function n(t,e,r,i){var o=t.children;t.x=e+=i*t.x;t.y=r+=i*t.y;t.r*=i;if(o)for(var u=-1,a=o.length;++u<a;)n(o[u],e,r,i)}(i,n/2,t/2,u?1:1/Math.max(2*i.r/n,2*i.r/t)),r}return t.size=function(n){return arguments.length?(l=n,t):l},t.radius=function(n){return arguments.length?(u=null==n||"function"==typeof n?n:+n,t):u},t.padding=function(n){return arguments.length?(c=+n,t):c},Vo(t,a)},L.layout.tree=function(){var l=L.layout.hierarchy().sort(null).value(null),h=Mu,f=[1,1],s=null;function t(n,t){var e,r,i,o,u,a,c=l.call(this,n,t),n=c[0],t=function(n){var t,n={A:null,children:[n]},e=[n];for(;null!=(t=e.pop());)for(var r,i=t.children,o=0,u=i.length;o<u;++o)e.push((i[o]=r={_:i[o],parent:t,children:(r=i[o].children)&&r.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=r);return n.children[0]}(n);return $o(t,p),t.parent.m=-t.z,Xo(t,g),s?Xo(n,d):(Xo(i=r=e=n,function(n){n.x<e.x&&(e=n),n.x>r.x&&(r=n),n.depth>i.depth&&(i=n)}),o=h(e,r)/2-e.x,u=f[0]/(r.x+h(r,e)/2+o),a=f[1]/(i.depth||1),Xo(n,function(n){n.x=(n.x+o)*u,n.y=n.depth*a})),c}function p(o){var n=o.children,t=o.parent.children,e=o.i?t[o.i-1]:null;n.length?(function(){for(var n,t=0,e=0,r=o.children,i=r.length;0<=--i;)(n=r[i]).z+=t,n.m+=t,t+=n.s+(e+=n.c)}(),n=(n[0].z+n[n.length-1].z)/2,e?(o.z=e.z+h(o._,e._),o.m=o.z-n):o.z=n):e&&(o.z=e.z+h(o._,e._)),o.parent.A=function(n,t,e){if(t){for(var r,i=n,o=n,u=t,a=i.parent.children[0],c=i.m,l=o.m,f=u.m,s=a.m;u=bu(u),i=_u(i),u&&i;)a=_u(a),(o=bu(o)).a=n,0<(r=u.z+f-i.z-c+h(u._,i._))&&(function(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}(function(n,t,e){return n.a.parent===t.parent?n.a:e}(u,n,e),n,r),c+=r,l+=r),f+=u.m,c+=i.m,s+=a.m,l+=o.m;u&&!bu(o)&&(o.t=u,o.m+=f-l),i&&!_u(a)&&(a.t=i,a.m+=c-s,e=n)}return e}(o,e,o.parent.A||t[0])}function g(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function d(n){n.x*=f[0],n.y=n.depth*f[1]}return t.separation=function(n){return arguments.length?(h=n,t):h},t.size=function(n){return arguments.length?(s=null==(f=n)?d:null,t):s?null:f},t.nodeSize=function(n){return arguments.length?(s=null==(f=n)?null:d,t):s?f:null},Vo(t,l)},L.layout.cluster=function(){var c=L.layout.hierarchy().sort(null).value(null),l=Mu,f=[1,1],s=!1;function t(n,t){var r,e=c.call(this,n,t),i=e[0],o=0;$o(i,function(n){var t,e=n.children;e&&e.length?(n.x=(t=e).reduce(function(n,t){return n+t.x},0)/t.length,n.y=(e=e,1+L.max(e,function(n){return n.y}))):(n.x=r?o+=l(n,r):0,n.y=0,r=n)});var n=function n(t){var e=t.children;return e&&e.length?n(e[0]):t}(i),t=function n(t){var e,r=t.children;return r&&(e=r.length)?n(r[e-1]):t}(i),u=n.x-l(n,t)/2,a=t.x+l(t,n)/2;return $o(i,s?function(n){n.x=(n.x-i.x)*f[0],n.y=(i.y-n.y)*f[1]}:function(n){n.x=(n.x-u)/(a-u)*f[0],n.y=(1-(i.y?n.y/i.y:1))*f[1]}),e}return t.separation=function(n){return arguments.length?(l=n,t):l},t.size=function(n){return arguments.length?(s=null==(f=n),t):s?null:f},t.nodeSize=function(n){return arguments.length?(s=null!=(f=n),t):s?f:null},Vo(t,c)},L.layout.treemap=function(){var e,r=L.layout.hierarchy(),f=Math.round,i=[1,1],o=null,l=wu,u=!1,s="squarify",h=.5*(1+Math.sqrt(5));function p(n,t){for(var e,r,i=-1,o=n.length;++i<o;)r=(e=n[i]).value*(t<0?0:t),e.area=isNaN(r)||r<=0?0:r}function g(n){var t=n.children;if(t&&t.length){var e,r,i=l(n),o=[],u=t.slice(),a=1/0,c="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&n.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(p(u,i.dx*i.dy/n.value),o.area=0;0<(r=u.length);)o.push(r=u[r-1]),o.area+=r.area,a="squarify"!==s||(e=function(n,t){var e,r=n.area,i=0,o=1/0,u=-1,a=n.length;for(;++u<a;)(e=n[u].area)&&(e<o&&(o=e),i<e&&(i=e));return t*=t,(r*=r)?Math.max(t*i*h/r,r/(t*o*h)):1/0}(o,c))<=a?(u.pop(),e):(o.area-=o.pop().area,d(o,c,i,!1),c=Math.min(i.dx,i.dy),1/(o.length=o.area=0));o.length&&(d(o,c,i,!0),o.length=o.area=0),t.forEach(g)}}function a(n){var t=n.children;if(t&&t.length){var e,r=l(n),i=t.slice(),o=[];for(p(i,r.dx*r.dy/n.value),o.area=0;e=i.pop();)o.push(e),o.area+=e.area,null!=e.z&&(d(o,e.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);t.forEach(a)}}function d(n,t,e,r){var i,o=-1,u=n.length,a=e.x,c=e.y,l=t?f(n.area/t):0;if(t==e.dx){for((r||l>e.dy)&&(l=e.dy);++o<u;)(i=n[o]).x=a,i.y=c,i.dy=l,a+=i.dx=Math.min(e.x+e.dx-a,l?f(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-a,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++o<u;)(i=n[o]).x=a,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?f(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function c(n){var t=e||r(n),n=t[0];return n.x=0,n.y=0,n.dx=i[0],n.dy=i[1],e&&r.revalue(n),p([n],n.dx*n.dy/n.value),(e?a:g)(n),u&&(e=t),t}return c.size=function(n){return arguments.length?(i=n,c):i},c.padding=function(e){return arguments.length?(l=null==(o=e)?wu:"function"==(t=typeof e)?function(n){var t=e.call(c,n,n.depth);return null==t?wu(n):Su(n,"number"==typeof t?[t,t,t,t]:t)}:("number"==t&&(e=[e,e,e,e]),n),c):o;function n(n){return Su(n,e)}var t},c.round=function(n){return arguments.length?(f=n?Math.round:Number,c):f!=Number},c.sticky=function(n){return arguments.length?(u=n,e=null,c):u},c.ratio=function(n){return arguments.length?(h=n,c):h},c.mode=function(n){return arguments.length?(s=n+"",c):s},Vo(c,r)},L.random={normal:function(r,i){var n=arguments.length;return n<2&&(i=1),n<1&&(r=0),function(){for(var n,t,e;e=(n=2*Math.random()-1)*n+(t=2*Math.random()-1)*t,!e||1<e;);return r+i*n*Math.sqrt(-2*Math.log(e)/e)}},logNormal:function(){var n=L.random.normal.apply(L,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=L.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(e){return function(){for(var n=0,t=0;t<e;t++)n+=Math.random();return n}}},L.scale={};var Cu={floor:pt,ceil:pt};function zu(e,n,t,r){var i=[],o=[],u=0,a=Math.min(e.length,n.length)-1;for(e[a]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++u<=a;)i.push(t(e[u-1],e[u])),o.push(r(n[u-1],n[u]));return function(n){var t=L.bisect(e,n,1,a)-1;return o[t](i[t](n))}}function Lu(n,t){return L.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Tu(n,t){return Au(n,(e=qu(n,t)[2])?{floor:function(n){return Math.floor(n/e)*e},ceil:function(n){return Math.ceil(n/e)*e}}:Cu);var e}function qu(n,t){null==t&&(t=10);var e=ku(n),r=e[1]-e[0],n=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),r=t/r*n;return r<=.15?n*=10:r<=.35?n*=5:r<=.75&&(n*=2),e[0]=Math.ceil(e[0]/n)*n,e[1]=Math.floor(e[1]/n)*n+.5*n,e[2]=n,e}function Ru(n,t){return L.range.apply(L,qu(n,t))}function Du(n,t,e){var r,i=qu(n,t);if(e){var o=Et.exec(e);if(o.shift(),"s"===o[8]){var u=L.formatPrefix(Math.max(q(i[0]),q(i[1])));return o[7]||(o[7]="."+Uu(u.scale(i[2]))),o[8]="f",e=L.format(o.join("")),function(n){return e(u.scale(n))+u.symbol}}o[7]||(o[7]="."+(r=o[8],t=Uu((n=i)[2]),r in Pu?Math.abs(t-Uu(Math.max(q(n[0]),q(n[1]))))+ +("e"!==r):t-2*("%"===r))),e=o.join("")}else e=",."+Uu(i[2])+"f";return L.format(e)}L.scale.linear=function(){return function n(e,r,i,o){var u,a;function t(){var n=2<Math.min(e.length,r.length)?zu:Eu,t=o?Po:Do;return u=n(e,r,t,i),a=n(r,e,t,go),c}function c(n){return u(n)}c.invert=function(n){return a(n)};c.domain=function(n){return arguments.length?(e=n.map(Number),t()):e};c.range=function(n){return arguments.length?(r=n,t()):r};c.rangeRound=function(n){return c.range(n).interpolate(Co)};c.clamp=function(n){return arguments.length?(o=n,t()):o};c.interpolate=function(n){return arguments.length?(i=n,t()):i};c.ticks=function(n){return Ru(e,n)};c.tickFormat=function(n,t){return Du(e,n,t)};c.nice=function(n){return Tu(e,n),t()};c.copy=function(){return n(e,r,i,o)};return t()}([0,1],[0,1],go,!1)};var Pu={s:1,g:1,p:1,r:1,e:1};function Uu(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}L.scale.log=function(){return function n(t,c,l,f){function s(n){return(l?Math.log(n<0?0:n):-Math.log(0<n?0:-n))/Math.log(c)}function h(n){return l?Math.pow(c,n):-Math.pow(c,-n)}function o(n){return t(s(n))}o.invert=function(n){return h(t.invert(n))};o.domain=function(n){return arguments.length?(l=0<=n[0],t.domain((f=n.map(Number)).map(s)),o):f};o.base=function(n){return arguments.length?(c=+n,t.domain(f.map(s)),o):c};o.nice=function(){var n=Au(f.map(s),l?Math:Fu);return t.domain(n),f=n.map(h),o};o.ticks=function(){var n=ku(f),t=[],e=n[0],r=n[1],i=Math.floor(s(e)),o=Math.ceil(s(r)),u=c%1?2:c;if(isFinite(o-i)){if(l){for(;i<o;i++)for(var a=1;a<u;a++)t.push(h(i)*a);t.push(h(i))}else for(t.push(h(i));i++<o;)for(var a=u-1;0<a;a--)t.push(h(i)*a);for(i=0;t[i]<e;i++);for(o=t.length;t[o-1]>r;o--);t=t.slice(i,o)}return t};o.tickFormat=function(n,t){if(!arguments.length)return ju;arguments.length<2?t=ju:"function"!=typeof t&&(t=L.format(t));var e,r=Math.max(.1,n/o.ticks().length),i=l?(e=1e-12,Math.ceil):(e=-1e-12,Math.floor);return function(n){return n/h(i(s(n)+e))<=r?t(n):""}};o.copy=function(){return n(t.copy(),c,l,f)};return Lu(o,t)}(L.scale.linear().domain([0,1]),10,!0,[1,10])};var ju=L.format(".0e"),Fu={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};function Hu(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}L.scale.pow=function(){return function n(t,e,r){var i=Hu(e),o=Hu(1/e);function u(n){return t(i(n))}u.invert=function(n){return o(t.invert(n))};u.domain=function(n){return arguments.length?(t.domain((r=n.map(Number)).map(i)),u):r};u.ticks=function(n){return Ru(r,n)};u.tickFormat=function(n,t){return Du(r,n,t)};u.nice=function(n){return u.domain(Tu(r,n))};u.exponent=function(n){return arguments.length?(i=Hu(e=n),o=Hu(1/e),t.domain(r.map(i)),u):e};u.copy=function(){return n(t.copy(),e,r)};return Lu(u,t)}(L.scale.linear(),1,[0,1])},L.scale.sqrt=function(){return L.scale.pow().exponent(.5)},L.scale.ordinal=function(){return function n(a,c){var i,l,f;function s(n){return l[((i.get(n)||("range"===c.t?i.set(n,a.push(n)):NaN))-1)%l.length]}function h(t,e){return L.range(a.length).map(function(n){return t+e*n})}s.domain=function(n){if(!arguments.length)return a;a=[],i=new m;for(var t,e=-1,r=n.length;++e<r;)i.has(t=n[e])||i.set(t,a.push(t));return s[c.t].apply(s,c.a)};s.range=function(n){return arguments.length?(l=n,f=0,c={t:"range",a:arguments},s):l};s.rangePoints=function(n,t){arguments.length<2&&(t=0);var e=n[0],r=n[1],i=(r-e)/(Math.max(1,a.length-1)+t);return l=h(a.length<2?(e+r)/2:e+i*t/2,i),f=0,c={t:"rangePoints",a:arguments},s};s.rangeBands=function(n,t,e){arguments.length<2&&(t=0),arguments.length<3&&(e=t);var r=n[1]<n[0],i=n[+r],o=n[1-r],o=(o-i)/(a.length-t+2*e);return l=h(i+o*e,o),r&&l.reverse(),f=o*(1-t),c={t:"rangeBands",a:arguments},s};s.rangeRoundBands=function(n,t,e){arguments.length<2&&(t=0),arguments.length<3&&(e=t);var r=n[1]<n[0],i=n[+r],o=n[1-r],u=Math.floor((o-i)/(a.length-t+2*e)),o=o-i-(a.length-t)*u;return l=h(i+Math.round(o/2),u),r&&l.reverse(),f=Math.round(u*(1-t)),c={t:"rangeRoundBands",a:arguments},s};s.rangeBand=function(){return f};s.rangeExtent=function(){return ku(c.a[0])};s.copy=function(){return n(a,c)};return s.domain(a)}([],{t:"range",a:[[]]})},L.scale.category10=function(){return L.scale.ordinal().range(Ou)},L.scale.category20=function(){return L.scale.ordinal().range(Yu)},L.scale.category20b=function(){return L.scale.ordinal().range(Iu)},L.scale.category20c=function(){return L.scale.ordinal().range(Zu)};var Ou=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(it),Yu=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(it),Iu=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(it),Zu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(it);L.scale.quantile=function(){return function n(e,r){var i;function t(){var n=0,t=r.length;for(i=[];++n<t;)i[n-1]=L.quantile(e,n/t);return o}function o(n){if(!isNaN(n=+n))return r[L.bisect(i,n)]}o.domain=function(n){return arguments.length?(e=n.map(f).filter(s).sort(l),t()):e};o.range=function(n){return arguments.length?(r=n,t()):r};o.quantiles=function(){return i};o.invertExtent=function(n){return(n=r.indexOf(n))<0?[NaN,NaN]:[0<n?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]};o.copy=function(){return n(e,r)};return t()}([],[])},L.scale.quantize=function(){return function n(t,e,r){var i,o;function u(n){return r[Math.max(0,Math.min(o,Math.floor(i*(n-t))))]}function a(){return i=r.length/(e-t),o=r.length-1,u}u.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],a()):[t,e]};u.range=function(n){return arguments.length?(r=n,a()):r};u.invertExtent=function(n){return[n=(n=r.indexOf(n))<0?NaN:n/i+t,n+1/i]};u.copy=function(){return n(t,e,r)};return a()}(0,1,[0,1])},L.scale.threshold=function(){return function n(t,e){function r(n){if(n<=n)return e[L.bisect(t,n)]}r.domain=function(n){return arguments.length?(t=n,r):t};r.range=function(n){return arguments.length?(e=n,r):e};r.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]};r.copy=function(){return n(t,e)};return r}([.5],[0,1])},L.scale.identity=function(){return function n(e){function t(n){return+n}t.invert=t;t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e};t.ticks=function(n){return Ru(e,n)};t.tickFormat=function(n,t){return Du(e,n,t)};t.copy=function(){return n(e)};return t}([0,1])},L.svg={},L.svg.arc=function(){var c=$u,l=Bu,f=Wu,s=Ju;function t(){var n=c.apply(this,arguments),t=l.apply(this,arguments),e=f.apply(this,arguments)+Vu,r=s.apply(this,arguments)+Vu,i=(r<e&&(i=e,e=r,r=i),r-e),o=i<Sn?"0":"1",u=Math.cos(e),a=Math.sin(e),e=Math.cos(r),r=Math.sin(r);return Xu<=i?n?"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"M0,"+n+"A"+n+","+n+" 0 1,0 0,"+-n+"A"+n+","+n+" 0 1,0 0,"+n+"Z":"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z":n?"M"+t*u+","+t*a+"A"+t+","+t+" 0 "+o+",1 "+t*e+","+t*r+"L"+n*e+","+n*r+"A"+n+","+n+" 0 "+o+",0 "+n*u+","+n*a+"Z":"M"+t*u+","+t*a+"A"+t+","+t+" 0 "+o+",1 "+t*e+","+t*r+"L0,0Z"}return t.innerRadius=function(n){return arguments.length?(c=ht(n),t):c},t.outerRadius=function(n){return arguments.length?(l=ht(n),t):l},t.startAngle=function(n){return arguments.length?(f=ht(n),t):f},t.endAngle=function(n){return arguments.length?(s=ht(n),t):s},t.centroid=function(){var n=(c.apply(this,arguments)+l.apply(this,arguments))/2,t=(f.apply(this,arguments)+s.apply(this,arguments))/2+Vu;return[Math.cos(t)*n,Math.sin(t)*n]},t};var Vu=-Nn,Xu=kn-En;function $u(n){return n.innerRadius}function Bu(n){return n.outerRadius}function Wu(n){return n.startAngle}function Ju(n){return n.endAngle}function Gu(l){var f=Mi,s=_i,h=fr,p=Qu,t=p.key,g=.7;function e(n){var t,e=[],r=[],i=-1,o=n.length,u=ht(f),a=ht(s);function c(){e.push("M",p(l(r),g))}for(;++i<o;)h.call(this,t=n[i],i)?r.push([+u.call(this,t,i),+a.call(this,t,i)]):r.length&&(c(),r=[]);return r.length&&c(),e.length?e.join(""):null}return e.x=function(n){return arguments.length?(f=n,e):f},e.y=function(n){return arguments.length?(s=n,e):s},e.defined=function(n){return arguments.length?(h=n,e):h},e.interpolate=function(n){return arguments.length?(t="function"==typeof n?p=n:(p=Ku.get(n)||Qu).key,e):t},e.tension=function(n){return arguments.length?(g=n,e):g},e}L.svg.line=function(){return Gu(pt)};var Ku=L.map({linear:Qu,"linear-closed":function(n){return Qu(n)+"Z"},step:function(n){var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];for(;++t<e;)i.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);1<e&&i.push("H",r[0]);return i.join("")},"step-before":na,"step-after":ta,basis:ia,"basis-open":function(n){if(n.length<4)return Qu(n);var t,e=[],r=-1,i=n.length,o=[0],u=[0];for(;++r<3;)t=n[r],o.push(t[0]),u.push(t[1]);e.push(oa(ca,o)+","+oa(ca,u)),--r;for(;++r<i;)t=n[r],o.shift(),o.push(t[0]),u.shift(),u.push(t[1]),la(e,o,u);return e.join("")},"basis-closed":function(n){var t,e,r=-1,i=n.length,o=i+4,u=[],a=[];for(;++r<4;)e=n[r%i],u.push(e[0]),a.push(e[1]);t=[oa(ca,u),",",oa(ca,a)],--r;for(;++r<o;)e=n[r%i],u.shift(),u.push(e[0]),a.shift(),a.push(e[1]),la(t,u,a);return t.join("")},bundle:function(n,t){var e=n.length-1;if(e)for(var r,i,o=n[0][0],u=n[0][1],a=n[e][0]-o,c=n[e][1]-u,l=-1;++l<=e;)r=n[l],i=l/e,r[0]=t*r[0]+(1-t)*(o+i*a),r[1]=t*r[1]+(1-t)*(u+i*c);return ia(n)},cardinal:function(n,t){return n.length<3?Qu(n):n[0]+ea(n,ra(n,t))},"cardinal-open":function(n,t){return n.length<4?Qu(n):n[1]+ea(n.slice(1,n.length-1),ra(n,t))},"cardinal-closed":function(n,t){return n.length<3?Qu(n):n[0]+ea((n.push(n[0]),n),ra([n[n.length-2]].concat(n,[n[1]]),t))},monotone:function(n){return n.length<3?Qu(n):n[0]+ea(n,function(n){var t,e,r,i,o=[],u=function(n){var t=0,e=n.length-1,r=[],i=n[0],o=n[1],u=r[0]=fa(i,o);for(;++t<e;)r[t]=(u+(u=fa(i=o,o=n[t+1])))/2;return r[t]=u,r}(n),a=-1,c=n.length-1;for(;++a<c;)t=fa(n[a],n[a+1]),q(t)<En?u[a]=u[a+1]=0:(e=u[a]/t,r=u[a+1]/t,9<(i=e*e+r*r)&&(i=3*t/Math.sqrt(i),u[a]=i*e,u[a+1]=i*r));a=-1;for(;++a<=c;)i=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+u[a]*u[a])),o.push([i||0,u[a]*i||0]);return o}(n))}});function Qu(n){return n.join("L")}function na(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("V",(r=n[t])[1],"H",r[0]);return i.join("")}function ta(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t<e;)i.push("H",(r=n[t])[0],"V",r[1]);return i.join("")}function ea(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return Qu(n);var e=n.length!=t.length,r="",i=n[0],o=n[1],u=t[0],a=u,c=1;if(e&&(r+="Q"+(o[0]-2*u[0]/3)+","+(o[1]-2*u[1]/3)+","+o[0]+","+o[1],i=n[1],c=2),1<t.length){a=t[1],o=n[c],c++,r+="C"+(i[0]+u[0])+","+(i[1]+u[1])+","+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1];for(var l=2;l<t.length;l++,c++)o=n[c],a=t[l],r+="S"+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1]}return e&&(e=n[c],r+="Q"+(o[0]+2*a[0]/3)+","+(o[1]+2*a[1]/3)+","+e[0]+","+e[1]),r}function ra(n,t){for(var e,r=[],i=(1-t)/2,o=n[0],u=n[1],a=1,c=n.length;++a<c;)e=o,o=u,u=n[a],r.push([i*(u[0]-e[0]),i*(u[1]-e[1])]);return r}function ia(n){if(n.length<3)return Qu(n);var t=1,e=n.length,r=n[0],i=r[0],o=r[1],u=[i,i,i,(r=n[1])[0]],a=[o,o,o,r[1]],c=[i,",",o,"L",oa(ca,u),",",oa(ca,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],u.shift(),u.push(r[0]),a.shift(),a.push(r[1]),la(c,u,a);return n.pop(),c.push("L",r),c.join("")}function oa(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}Ku.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var ua=[0,2/3,1/3,0],aa=[0,1/3,2/3,0],ca=[0,1/6,2/3,1/6];function la(n,t,e){n.push("C",oa(ua,t),",",oa(ua,e),",",oa(aa,t),",",oa(aa,e),",",oa(ca,t),",",oa(ca,e))}function fa(n,t){return(t[1]-n[1])/(t[0]-n[0])}function sa(n){for(var t,e,r,i=-1,o=n.length;++i<o;)e=(t=n[i])[0],r=t[1]+Vu,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function ha(g){var d=Mi,v=Mi,y=0,m=_i,x=fr,M=Qu,t=M.key,_=M,b="L",w=.7;function e(n){var t,e,r,i=[],o=[],u=[],a=-1,c=n.length,l=ht(d),f=ht(y),s=d===v?function(){return e}:ht(v),h=y===m?function(){return r}:ht(m);function p(){i.push("M",M(g(u),w),b,_(g(o.reverse()),w),"Z")}for(;++a<c;)x.call(this,t=n[a],a)?(o.push([e=+l.call(this,t,a),r=+f.call(this,t,a)]),u.push([+s.call(this,t,a),+h.call(this,t,a)])):o.length&&(p(),o=[],u=[]);return o.length&&p(),i.length?i.join(""):null}return e.x=function(n){return arguments.length?(d=v=n,e):v},e.x0=function(n){return arguments.length?(d=n,e):d},e.x1=function(n){return arguments.length?(v=n,e):v},e.y=function(n){return arguments.length?(y=m=n,e):m},e.y0=function(n){return arguments.length?(y=n,e):y},e.y1=function(n){return arguments.length?(m=n,e):m},e.defined=function(n){return arguments.length?(x=n,e):x},e.interpolate=function(n){return arguments.length?(t="function"==typeof n?M=n:(M=Ku.get(n)||Qu).key,_=M.reverse||M,b=M.closed?"M":"L",e):t},e.tension=function(n){return arguments.length?(w=n,e):w},e}function pa(n){return n.radius}function ga(n){return[n.x,n.y]}function da(){return 64}function va(){return"circle"}function ya(n){n=Math.sqrt(n/Sn);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}L.svg.line.radial=function(){var n=Gu(sa);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},(na.reverse=ta).reverse=na,L.svg.area=function(){return ha(pt)},L.svg.area.radial=function(){var n=ha(sa);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},L.svg.chord=function(){var i=ui,o=ai,u=pa,a=Wu,c=Ju;function t(n,t){var e=l(this,i,n,t),r=l(this,o,n,t);return"M"+e.p0+f(e.r,e.p1,e.a1-e.a0)+(n=r,(t=e).a0==n.a0&&t.a1==n.a1?s(e.r,e.p1,e.r,e.p0):s(e.r,e.p1,r.r,r.p0)+f(r.r,r.p1,r.a1-r.a0)+s(r.r,r.p1,e.r,e.p0))+"Z"}function l(n,t,e,r){var i=t.call(n,e,r),t=u.call(n,i,r),e=a.call(n,i,r)+Vu,r=c.call(n,i,r)+Vu;return{r:t,a0:e,a1:r,p0:[t*Math.cos(e),t*Math.sin(e)],p1:[t*Math.cos(r),t*Math.sin(r)]}}function f(n,t,e){return"A"+n+","+n+" 0 "+ +(Sn<e)+",1 "+t}function s(n,t,e,r){return"Q 0,0 "+r}return t.radius=function(n){return arguments.length?(u=ht(n),t):u},t.source=function(n){return arguments.length?(i=ht(n),t):i},t.target=function(n){return arguments.length?(o=ht(n),t):o},t.startAngle=function(n){return arguments.length?(a=ht(n),t):a},t.endAngle=function(n){return arguments.length?(c=ht(n),t):c},t},L.svg.diagonal=function(){var r=ui,i=ai,o=ga;function t(n,t){var e=r.call(this,n,t),n=i.call(this,n,t),t=(e.y+n.y)/2,n=[e,{x:e.x,y:t},{x:n.x,y:t},n];return"M"+(n=n.map(o))[0]+"C"+n[1]+" "+n[2]+" "+n[3]}return t.source=function(n){return arguments.length?(r=ht(n),t):r},t.target=function(n){return arguments.length?(i=ht(n),t):i},t.projection=function(n){return arguments.length?(o=n,t):o},t},L.svg.diagonal.radial=function(){var n=L.svg.diagonal(),t=ga,r=n.projection;return n.projection=function(n){return arguments.length?r((e=t=n,function(){var n=e.apply(this,arguments),t=n[0],n=n[1]+Vu;return[t*Math.cos(n),t*Math.sin(n)]})):t;var e},n},L.svg.symbol=function(){var e=va,r=da;function t(n,t){return(ma.get(e.call(this,n,t))||ya)(r.call(this,n,t))}return t.type=function(n){return arguments.length?(e=ht(n),t):e},t.size=function(n){return arguments.length?(r=ht(n),t):r},t};var ma=L.map({circle:ya,cross:function(n){n=Math.sqrt(n/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ma)),n=t*Ma;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(n){n=Math.sqrt(n)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/xa),n=t*xa/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/xa),n=t*xa/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});L.svg.symbolTypes=ma.keys();var xa=Math.sqrt(3),Ma=Math.tan(30*Cn);function _a(n,t){return F(n,Sa),n.id=t,n}var ba,wa,Sa=[],ka=0;function Na(n,r,i,o){var u=n.id;return an(n,"function"==typeof i?function(n,t,e){n.__transition__[u].tween.set(r,o(i.call(n,n.__data__,t,e)))}:(i=o(i),function(n){n.__transition__[u].tween.set(r,i)}))}function Ea(n){return null==n&&(n=""),function(){this.textContent=n}}function Aa(f,s,h,n){var p,g=f.__transition__||(f.__transition__={active:0,count:0}),d=g[h];d||(p=n.time,d=g[h]={tween:new m,time:p,ease:n.ease,delay:n.delay,duration:n.duration},++g.count,L.timer(function(n){var r=f.__data__,i=d.ease,t=d.delay,o=d.duration,e=Mt,u=[];if(e.t=t+p,t<=n)return a(n-t);function a(n){if(g.active>h)return l();g.active=h,d.event&&d.event.start.call(f,r,s),d.tween.forEach(function(n,t){(t=t.call(f,r,s))&&u.push(t)}),L.timer(function(){return e.c=c(n||1)?fr:c,1},0,p)}function c(n){if(g.active!==h)return l();for(var n=n/o,t=i(n),e=u.length;0<e;)u[--e].call(f,t);return 1<=n?(d.event&&d.event.end.call(f,r,s),l()):void 0}function l(){return--g.count?delete g[h]:delete f.__transition__,1}e.c=a},0,p))}Sa.call=V.call,Sa.empty=V.empty,Sa.node=V.node,Sa.size=V.size,L.transition=function(n){return arguments.length?ba?n.transition():n:sn.transition()},(L.transition.prototype=Sa).select=function(n){var t,e,r,i=this.id,o=[];n=X(n);for(var u=-1,a=this.length;++u<a;){o.push(t=[]);for(var c=this[u],l=-1,f=c.length;++l<f;)(r=c[l])&&(e=n.call(r,r.__data__,l,u))?("__data__"in r&&(e.__data__=r.__data__),Aa(e,l,i,r.__transition__[i]),t.push(e)):t.push(null)}return _a(o,i)},Sa.selectAll=function(n){var t,e,r,i,o,u=this.id,a=[];n=$(n);for(var c=-1,l=this.length;++c<l;)for(var f=this[c],s=-1,h=f.length;++s<h;)if(r=f[s]){o=r.__transition__[u],e=n.call(r,r.__data__,s,c),a.push(t=[]);for(var p=-1,g=e.length;++p<g;)(i=e[p])&&Aa(i,p,u,o),t.push(i)}return _a(a,u)},Sa.filter=function(n){var t,e,r=[];"function"!=typeof n&&(n=un(n));for(var i=0,o=this.length;i<o;i++){r.push(t=[]);for(var u,a=0,c=(u=this[i]).length;a<c;a++)(e=u[a])&&n.call(e,e.__data__,a,i)&&t.push(e)}return _a(r,this.id)},Sa.tween=function(t,e){var r=this.id;return arguments.length<2?this.node().__transition__[r].tween.get(t):an(this,null==e?function(n){n.__transition__[r].tween.remove(t)}:function(n){n.__transition__[r].tween.set(t,e)})},Sa.attr=function(n,t){if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var r="transform"==n?Ro:go,i=L.ns.qualify(n);function o(){this.removeAttribute(i)}function u(){this.removeAttributeNS(i.space,i.local)}return Na(this,"attr."+n,t,i.local?function(e){return null==e?u:(e+="",function(){var t,n=this.getAttributeNS(i.space,i.local);return n!==e&&(t=r(n,e),function(n){this.setAttributeNS(i.space,i.local,t(n))})})}:function(e){return null==e?o:(e+="",function(){var t,n=this.getAttribute(i);return n!==e&&(t=r(n,e),function(n){this.setAttribute(i,t(n))})})})},Sa.attrTween=function(n,r){var i=L.ns.qualify(n);return this.tween("attr."+n,i.local?function(n,t){var e=r.call(this,n,t,this.getAttributeNS(i.space,i.local));return e&&function(n){this.setAttributeNS(i.space,i.local,e(n))}}:function(n,t){var e=r.call(this,n,t,this.getAttribute(i));return e&&function(n){this.setAttribute(i,e(n))}})},Sa.style=function(r,n,i){var t=arguments.length;if(t<3){if("string"!=typeof r){for(i in t<2&&(n=""),r)this.style(i,r[i],n);return this}i=""}function o(){this.style.removeProperty(r)}return Na(this,"style."+r,n,function(e){return null==e?o:(e+="",function(){var t,n=T.getComputedStyle(this,null).getPropertyValue(r);return n!==e&&(t=go(n,e),function(n){this.style.setProperty(r,t(n),i)})})})},Sa.styleTween=function(r,i,o){return arguments.length<3&&(o=""),this.tween("style."+r,function(n,t){var e=i.call(this,n,t,T.getComputedStyle(this,null).getPropertyValue(r));return e&&function(n){this.style.setProperty(r,e(n),o)}})},Sa.text=function(n){return Na(this,"text",n,Ea)},Sa.remove=function(){return this.each("end.transition",function(){var n;this.__transition__.count<2&&(n=this.parentNode)&&n.removeChild(this)})},Sa.ease=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].ease:("function"!=typeof t&&(t=L.ease.apply(L,arguments)),an(this,function(n){n.__transition__[e].ease=t}))},Sa.delay=function(r){var i=this.id;return arguments.length<1?this.node().__transition__[i].delay:an(this,"function"==typeof r?function(n,t,e){n.__transition__[i].delay=+r.call(n,n.__data__,t,e)}:(r=+r,function(n){n.__transition__[i].delay=r}))},Sa.duration=function(r){var i=this.id;return arguments.length<1?this.node().__transition__[i].duration:an(this,"function"==typeof r?function(n,t,e){n.__transition__[i].duration=Math.max(1,r.call(n,n.__data__,t,e))}:(r=Math.max(1,r),function(n){n.__transition__[i].duration=r}))},Sa.each=function(r,t){var n,e,i=this.id;return arguments.length<2?(n=wa,e=ba,ba=i,an(this,function(n,t,e){wa=n.__transition__[i],r.call(n,n.__data__,t,e)}),wa=n,ba=e):an(this,function(n){n=n.__transition__[i];(n.event||(n.event=L.dispatch("start","end"))).on(r,t)}),this},Sa.transition=function(){for(var n,t,e,r=this.id,i=++ka,o=[],u=0,a=this.length;u<a;u++){o.push(n=[]);for(var c,l=0,f=(c=this[u]).length;l<f;l++)(t=c[l])&&((e=Object.create(t.__transition__[r])).delay+=e.duration,Aa(t,l,i,e)),n.push(t)}return _a(o,i)},L.svg.axis=function(){var _,b=L.scale.linear(),w=Ca,S=6,k=6,N=3,E=[10],A=null;function e(n){n.each(function(){var n,t=L.select(this),e=this.__chart__||b,r=this.__chart__=b.copy(),i=null==A?r.ticks?r.ticks.apply(r,E):r.domain():A,o=null==_?r.tickFormat?r.tickFormat.apply(r,E):pt:_,u=t.selectAll(".tick").data(i,r),a=u.enter().insert("g",".domain").attr("class","tick").style("opacity",En),c=L.transition(u.exit()).style("opacity",En).remove(),l=L.transition(u.order()).style("opacity",1),f=Math.max(S,0)+N,s=Nu(r),h=t.selectAll(".domain").data([0]),p=(h.enter().append("path").attr("class","domain"),L.transition(h));a.append("line"),a.append("text");var g,d,v,y,m,x,M=a.select("line"),i=l.select("line"),t=u.select("text").text(o),h=a.select("text"),u=l.select("text"),o="top"===w||"left"===w?-1:1;"bottom"===w||"top"===w?(n=La,g="x",v="y",d="x2",y="y2",t.attr("dy",o<0?"0em":".71em").style("text-anchor","middle"),p.attr("d","M"+s[0]+","+o*k+"V0H"+s[1]+"V"+o*k)):(n=Ta,g="y",v="x",d="y2",y="x2",t.attr("dy",".32em").style("text-anchor",o<0?"end":"start"),p.attr("d","M"+o*k+","+s[0]+"H0V"+s[1]+"H"+o*k)),M.attr(y,o*S),h.attr(v,o*f),i.attr(d,0).attr(y,o*S),u.attr(g,0).attr(v,o*f),r.rangeBand?(x=(m=r).rangeBand()/2,e=r=function(n){return m(n)+x}):e.rangeBand?e=r:c.call(n,r,e),a.call(n,e,r),l.call(n,r,r)})}return e.scale=function(n){return arguments.length?(b=n,e):b},e.orient=function(n){return arguments.length?(w=n in za?n+"":Ca,e):w},e.ticks=function(){return arguments.length?(E=arguments,e):E},e.tickValues=function(n){return arguments.length?(A=n,e):A},e.tickFormat=function(n){return arguments.length?(_=n,e):_},e.tickSize=function(n){var t=arguments.length;return t?(S=+n,k=+arguments[t-1],e):S},e.innerTickSize=function(n){return arguments.length?(S=+n,e):S},e.outerTickSize=function(n){return arguments.length?(k=+n,e):k},e.tickPadding=function(n){return arguments.length?(N=+n,e):N},e.tickSubdivide=function(){return arguments.length&&e},e};var Ca="bottom",za={top:1,right:1,bottom:1,left:1};function La(n,e,r){n.attr("transform",function(n){var t=e(n);return"translate("+(isFinite(t)?t:r(n))+",0)"})}function Ta(n,e,r){n.attr("transform",function(n){var t=e(n);return"translate(0,"+(isFinite(t)?t:r(n))+")"})}L.svg.brush=function(){var y,m,x=U(N,"brushstart","brush","brushend"),M=null,_=null,b=[0,0],w=[0,0],S=!0,k=!0,i=Ra[0];function N(n){n.each(function(){var n=L.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),t=n.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var e=n.selectAll(".resize").data(i,pt);e.exit().remove(),e.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return qa[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),e.style("display",N.empty()?"none":null);var r,n=L.transition(n),t=L.transition(t);M&&(r=Nu(M),t.attr("x",r[0]).attr("width",r[1]-r[0]),A(n)),_&&(r=Nu(_),t.attr("y",r[0]).attr("height",r[1]-r[0]),C(n)),E(n)})}function E(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+b[+/e$/.test(n)]+","+w[+/^s/.test(n)]+")"})}function A(n){n.select(".extent").attr("x",b[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",b[1]-b[0])}function C(n){n.select(".extent").attr("y",w[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",w[1]-w[0])}function o(){var c,n,e,r=this,t=L.select(L.event.target),i=x.of(r,arguments),o=L.select(r),u=t.datum(),a=!/^(n|s)$/.test(u)&&M,l=!/^(e|w)$/.test(u)&&_,f=t.classed("extent"),s=mn(),h=L.mouse(r),p=L.select(T).on("keydown.brush",function(){32==L.event.keyCode&&(f||(c=null,h[0]-=b[1],h[1]-=w[1],f=2),D())}).on("keyup.brush",function(){32==L.event.keyCode&&2==f&&(h[0]+=b[1],h[1]+=w[1],f=0,D())});function g(){var n=L.mouse(r),t=!1;e&&(n[0]+=e[0],n[1]+=e[1]),f||(L.event.altKey?(c=c||[(b[0]+b[1])/2,(w[0]+w[1])/2],h[0]=b[+(n[0]<c[0])],h[1]=w[+(n[1]<c[1])]):c=null),a&&d(n,M,0)&&(A(o),t=!0),l&&d(n,_,1)&&(C(o),t=!0),t&&(E(o),i({type:"brush",mode:f?"move":"resize"}))}function d(n,t,e){var r,i=Nu(t),o=i[0],u=i[1],a=h[e],t=e?w:b,i=t[1]-t[0];return f&&(o-=a,u-=i+a),n=(e?k:S)?Math.max(o,Math.min(u,n[e])):n[e],f?r=(n+=a)+i:(c&&(a=Math.max(o,Math.min(u,2*c[e]-n))),a<n?(r=n,n=a):r=a),t[0]!=n||t[1]!=r?(e?m=null:y=null,t[0]=n,t[1]=r,1):void 0}function v(){g(),o.style("pointer-events","all").selectAll(".resize").style("display",N.empty()?"none":null),L.select("body").style("cursor",null),p.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),s(),i({type:"brushend"})}L.event.changedTouches?p.on("touchmove.brush",g).on("touchend.brush",v):p.on("mousemove.brush",g).on("mouseup.brush",v),o.interrupt().selectAll("*").interrupt(),f?(h[0]=b[0]-h[0],h[1]=w[0]-h[1]):u?(n=+/w$/.test(u),u=+/^n/.test(u),e=[b[1-n]-h[0],w[1-u]-h[1]],h[0]=b[n],h[1]=w[u]):L.event.altKey&&(c=h.slice()),o.style("pointer-events","none").selectAll(".resize").style("display",null),L.select("body").style("cursor",t.style("cursor")),i({type:"brushstart"}),g()}return N.event=function(n){n.each(function(){var r=x.of(this,arguments),i={x:b,y:w,i:y,j:m},n=this.__chart__||i;this.__chart__=i,ba?L.select(this).transition().each("start.brush",function(){y=n.i,m=n.j,b=n.x,w=n.y,r({type:"brushstart"})}).tween("brush:brush",function(){var t=vo(b,i.x),e=vo(w,i.y);return y=m=null,function(n){b=i.x=t(n),w=i.y=e(n),r({type:"brush",mode:"resize"})}}).each("end.brush",function(){y=i.i,m=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})}):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))})},N.x=function(n){return arguments.length?(i=Ra[!(M=n)<<1|!_],N):M},N.y=function(n){return arguments.length?(i=Ra[!M<<1|!(_=n)],N):_},N.clamp=function(n){return arguments.length?(M&&_?(S=!!n[0],k=!!n[1]):M?S=!!n:_&&(k=!!n),N):M&&_?[S,k]:M?S:_?k:null},N.extent=function(n){var t,e,r,i,o;return arguments.length?(M&&(t=n[0],e=n[1],_&&(t=t[0],e=e[0]),y=[t,e],M.invert&&(t=M(t),e=M(e)),e<t&&(o=t,t=e,e=o),t==b[0]&&e==b[1]||(b=[t,e])),_&&(r=n[0],i=n[1],M&&(r=r[1],i=i[1]),m=[r,i],_.invert&&(r=_(r),i=_(i)),i<r&&(o=r,r=i,i=o),r==w[0]&&i==w[1]||(w=[r,i])),N):(M&&(y?(t=y[0],e=y[1]):(t=b[0],e=b[1],M.invert&&(t=M.invert(t),e=M.invert(e)),e<t&&(o=t,t=e,e=o))),_&&(m?(r=m[0],i=m[1]):(r=w[0],i=w[1],_.invert&&(r=_.invert(r),i=_.invert(i)),i<r&&(o=r,r=i,i=o))),M&&_?[[t,r],[e,i]]:M?[t,e]:_&&[r,i])},N.clear=function(){return N.empty()||(b=[0,0],w=[0,0],y=m=null),N},N.empty=function(){return!!M&&b[0]==b[1]||!!_&&w[0]==w[1]},L.rebind(N,x,"on")};var qa={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ra=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],p=zt.format=a.timeFormat,a=(e=p.utc)("%Y-%m-%dT%H:%M:%S.%LZ");function Da(n){return n.toISOString()}function Pa(t,i,n){function o(n){return t(n)}function u(n,t){var e=(n[1]-n[0])/t,r=L.bisect(ja,e);return r==ja.length?[i.year,qu(n.map(function(n){return n/31536e6}),t)[2]]:r?i[e/ja[r-1]<ja[r]/e?r-1:r]:[Oa,qu(n,t)[2]]}return o.invert=function(n){return Ua(t.invert(n))},o.domain=function(n){return arguments.length?(t.domain(n),o):t.domain().map(Ua)},o.nice=function(t,e){var n=o.domain(),r=ku(n),r=null==t?u(r,10):"number"==typeof t&&u(r,t);function i(n){return!isNaN(n)&&!t.range(n,Ua(+n+1),e).length}return r&&(t=r[0],e=r[1]),o.domain(Au(n,1<e?{floor:function(n){for(;i(n=t.floor(n));)n=Ua(n-1);return n},ceil:function(n){for(;i(n=t.ceil(n));)n=Ua(+n+1);return n}}:t))},o.ticks=function(n,t){var e=ku(o.domain()),r=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return r&&(n=r[0],t=r[1]),n.range(e[0],Ua(+e[1]+1),t<1?1:t)},o.tickFormat=function(){return n},o.copy=function(){return Pa(t.copy(),i,n)},Lu(o,t)}function Ua(n){return new Date(n)}p.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Da:a,Da.parse=function(n){n=new Date(n);return isNaN(n)?null:n},Da.toString=a.toString,zt.second=Rt(function(n){return new Lt(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),zt.seconds=zt.second.range,zt.seconds.utc=zt.second.utc.range,zt.minute=Rt(function(n){return new Lt(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),zt.minutes=zt.minute.range,zt.minutes.utc=zt.minute.utc.range,zt.hour=Rt(function(n){var t=n.getTimezoneOffset()/60;return new Lt(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),zt.hours=zt.hour.range,zt.hours.utc=zt.hour.utc.range,zt.month=Rt(function(n){return(n=zt.day(n)).setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),zt.months=zt.month.range,zt.months.utc=zt.month.utc.range;var ja=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Fa=[[zt.second,1],[zt.second,5],[zt.second,15],[zt.second,30],[zt.minute,1],[zt.minute,5],[zt.minute,15],[zt.minute,30],[zt.hour,1],[zt.hour,3],[zt.hour,6],[zt.hour,12],[zt.day,1],[zt.day,2],[zt.week,1],[zt.month,1],[zt.month,3],[zt.year,1]],Ha=p.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",fr]]),Oa={range:function(n,t,e){return L.range(Math.ceil(n/e)*e,+t,e).map(Ua)},floor:pt,ceil:pt};Fa.year=zt.year,zt.scale=function(){return Pa(L.scale.linear(),Fa,Ha)};var Ya=Fa.map(function(n){return[n[0].utc,n[1]]}),Ia=e.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",fr]]);function Za(n){return JSON.parse(n.responseText)}function Va(n){var t=r.createRange();return t.selectNode(r.body),t.createContextualFragment(n.responseText)}Ya.year=zt.year.utc,zt.scale.utc=function(){return Pa(L.scale.linear(),Ya,Ia)},L.text=gt(function(n){return n.responseText}),L.json=function(n,t){return dt(n,"application/json",Za,t)},L.html=function(n,t){return dt(n,"text/html",Va,t)},L.xml=gt(function(n){return n.responseXML}),"function"==typeof define&&define.amd?define(L):"object"==typeof module&&module.exports&&(module.exports=L),this.d3=L}();
</script> <!-- D3 -->



<!-- FORNA -->
<script type='text/javascript'>
function FornaContainer(t,e){function n(){var e=$(t).width(),n="95%";u.options.svgW=e,u.options.svgH=n,h.range([0,e]).domain([0,e]),g.range([0,n]).domain([0,n]),zoomer.x(h).y(g),u.brusher.x(h).y(g),k.attr("width",e).attr("height",n),f.attr("width",e).attr("height",n),u.center_view()}function o(e,n,t){return e.hasOwnProperty(n.num)?(val=parseFloat(e[n.num]),isNaN(val)?e[n.num]:t(val)):"white"}function a(){return w.selectAll("g.gnode").filter(function(e){return e.selected})}function s(){if(!u.deaf&&!L){switch(key_is_down=!0,d3.event.keyCode){case 16:L=!0;break;case 17:A=!0;break;case 67:u.center_view()}(L||A)&&(y.call(zoomer).on("mousedown.zoom",null).on("touchstart.zoom",null).on("touchmove.zoom",null).on("touchend.zoom",null),x.selectAll("g.gnode").on("mousedown.drag",null)),A&&(v.select(".background").style("cursor","crosshair"),v.call(u.brusher))}}function l(){A=L=!1,v.call(u.brusher).on("mousedown.brush",null).on("touchstart.brush",null).on("touchmove.brush",null).on("touchend.brush",null),v.select(".background").style("cursor","auto"),y.call(zoomer),x.selectAll("g.gnode").call(P)}var u=this;if(u.options={displayAllLinks:!1,labelInterval:10,applyForce:!0,initialSize:[200,200],allowPanningAndZooming:!0},1<arguments.length)for(var c in e)u.options.hasOwnProperty(c)&&(u.options[c]=e[c]);u.options.svgW=u.options.initialSize[0],u.options.svgH=u.options.initialSize[1],d3.scale.category20();var d=null,p=null,h=d3.scale.linear().domain([0,u.options.svgW]).range([0,u.options.svgW]),g=d3.scale.linear().domain([0,u.options.svgH]).range([0,u.options.svgH]),m=u.graph={nodes:[],links:[]};u.linkStrengths={pseudoknot:0,protein_chain:0,chain_chain:0,intermolecule:10,other:10},u.displayParameters={displayBackground:"true",displayNumbering:"true",displayNodeOutline:"true",displayNodeLabel:"true",displayLinks:"true",displayPseudoknotLinks:"true",displayProteinLinks:"true"},u.colorScheme="structure",u.customColors={},u.animation=u.options.applyForce,u.deaf=!1,u.rnas={},u.extraLinks=[],u.createInitialLayout=function(e,n){var t={sequence:"",name:"empty",positions:[],labelInterval:10,avoidOthers:!0};if(2==arguments.length)for(var r in n)t.hasOwnProperty(r)&&(t[r]=n[r]);return rg=new RNAGraph(t.sequence,e,t.name),rnaJson=rg.recalculateElements(),0===t.positions.length&&(t.positions=simple_xy_coordinates(rnaJson.pairtable)),rnaJson=rnaJson.elementsToJson().addPositions("nucleotide",t.positions).addLabels(1,t.labelInterval).reinforceStems().reinforceLoops().connectFakeNodes()},u.addRNA=function(e,n){var t=u.createInitialLayout(e,n);return 1===arguments.length&&(n={}),"avoidOthers"in n?u.addRNAJSON(t,n.avoidOthers):u.addRNAJSON(t,!0),t},u.addRNAJSON=function(n,e){var t,r;e&&(t=0<u.graph.nodes.length?d3.max(u.graph.nodes.map(function(e){return e.x})):0,r=d3.min(n.nodes.map(function(e){return e.x})),n.nodes.forEach(function(e){e.x+=t-r,e.px+=t-r})),n.nodes.forEach(function(e){e.rna=n}),u.rnas[n.uid]=n,u.recalculateGraph(),u.update(),u.center_view()},u.transitionRNA=function(e,n,t){e=u.createInitialLayout(n,t),console.log("newRNAJson:",e),w.selectAll("g.gnode").each(function(e){console.log("d before",e)}),(e=w.selectAll("g.gnode").data(e)).each(function(e){console.log("d after",e)}),e.transition().attr("transform",function(e){return console.log("d after",e),"translate("+[e.x,e.y]+")"}).duration(1e3)},u.recalculateGraph=function(e){for(var n in u.graph.nodes=[],u.graph.links=[],u.rnas)u.graph.nodes=u.graph.nodes.concat(u.rnas[n].nodes),u.graph.links=u.graph.links.concat(u.rnas[n].links);for(var t={},r=0;r<u.graph.nodes.length;r++)t[u.graph.nodes[r].uid]=u.graph.nodes[r];for(u.graph.links.forEach(function(e){e.source=t[e.source.uid],e.target=t[e.target.uid]}),r=0;r<u.extraLinks.length;r++){if(u.extraLinks[r].target.uid in t||console.log("not there:",u.extraLinks[r]),u.extraLinks[r].source=t[u.extraLinks[r].source.uid],u.extraLinks[r].target=t[u.extraLinks[r].target.uid],"intermolecule"==u.extraLinks[r].link_type)for(fake_links=u.graph.links.filter(function(e){return(e.source==u.extraLinks[r].source||e.source==u.extraLinks[r].target||e.target==u.extraLinks[r].source||e.target==u.extraLinks[r].source)&&"fake"==e.link_type}),e=0;e<fake_links.length;e++)n=u.graph.links.indexOf(fake_links[e]),u.graph.links.splice(n,1);m.links.push(u.extraLinks[r])}},u.addNodes=function(n){n.links.forEach(function(e){"number"==typeof e.source&&(e.source=n.nodes[e.source]),"number"==typeof e.target&&(e.target=n.nodes[e.target])}),max_y=0<u.graph.nodes.length?(max_x=d3.max(u.graph.nodes.map(function(e){return e.x})),d3.max(u.graph.nodes.map(function(e){return e.y}))):max_x=0,n.nodes.forEach(function(e){e.rna.uid in u.rnas||(u.rnas[e.rna.uid]=e.rna),e.x+=max_x,e.px+=max_x}),r=new RNAGraph("",""),r.nodes=n.nodes,r.links=n.links,u.recalculateGraph(),u.update(),u.center_view()},u.addCustomColors=function(e){u.customColors=e},u.clearNodes=function(){u.graph.nodes=[],u.graph.links=[],u.rnas={},u.extraLinks=[],u.update()},u.toJSON=function(){return JSON.stringify({rnas:u.rnas,extraLinks:u.extraLinks},function(e,n){if("rna"!=e)return n},"\t")},u.fromJSON=function(e){try{var n=JSON.parse(e),t=n.rnas,o=n.extraLinks}catch(e){throw e}for(uid in t)"rna"==t[uid].type?(r=new RNAGraph,r.seq=t[uid].seq,r.dotbracket=t[uid].dotbracket,r.circular=t[uid].circular,r.pairtable=t[uid].pairtable,r.uid=t[uid].uid,r.struct_name=t[uid].struct_name,r.nodes=t[uid].nodes,r.links=t[uid].links,r.rnaLength=t[uid].rnaLength,r.elements=t[uid].elements,r.nucs_to_nodes=t[uid].nucs_to_nodes,r.pseudoknot_pairs=t[uid].pseudoknot_pairs):(r=new ProteinGraph,r.size=t[uid].size,r.nodes=t[uid].nodes,r.uid=t[uid].uid),u.addRNAJSON(r,!1);o.forEach(function(e){u.extraLinks.push(e)}),u.recalculateGraph(),u.update()},u.changeColorScheme=function(e){w.selectAll("[node_type=protein]").classed("protein",!0).attr("r",function(e){return e.radius}),w.selectAll("g.gnode"),w.selectAll("g.gnode").selectAll("circle");var n=w.selectAll("g.gnode").select("[node_type=nucleotide]");"sequence"==(u.colorScheme=e)?(scale=d3.scale.ordinal().range(["#dbdb8d","#98df8a","#ff9896","#aec7e8","#aec7e8"]).domain(["A","C","G","U","T"]),n.style("fill",function(e){return scale(e.name)})):"structure"==e?(scale=d3.scale.category10().domain("smiethx".split("")).range("lightgreen #ff9896 #dbdb8d lightsalmon lightcyan lightblue transparent".split(" ")),n.style("fill",function(e){return scale(e.elem_type)})):"positions"==e?n.style("fill",function(e){return scale=d3.scale.linear().range(["#98df8a","#dbdb8d","#ff9896"]).interpolate(d3.interpolateLab).domain([1,1+(e.rna.rnaLength-1)/2,e.rna.rnaLength]),scale(e.num)}):"custom"==e&&(scale=d3.scale.linear().interpolate(d3.interpolateLab).domain(u.customColors.domain).range(u.customColors.range),n.style("fill",function(e){return void 0===u.customColors?"white":u.customColors.color_values.hasOwnProperty(e.struct_name)&&u.customColors.color_values[e.struct_name].hasOwnProperty(e.num)?(molecule_colors=u.customColors.color_values[e.struct_name],o(molecule_colors,e,scale)):u.customColors.color_values.hasOwnProperty("")?(molecule_colors=u.customColors.color_values[""],o(molecule_colors,e,scale)):"white"}))},window.addEventListener("resize",n,!1),zoomer=d3.behavior.zoom().scaleExtent([.1,10]).x(h).y(g).on("zoomstart",function(){var e=w.selectAll("g.gnode").selectAll(".outline_node");e.each(function(e){e.selected=!1,e.previouslySelected=!1}),e.classed("selected",!1)}).on("zoom",function(){x.attr("transform","translate("+d3.event.translate+") scale("+d3.event.scale+")")}),d3.select(t).select("svg").remove();var f=d3.select(t).attr("tabindex",1).on("keydown.brush",s).on("keyup.brush",l).each(function(){this.focus()}).append("svg:svg").attr("width",u.options.svgW).attr("height",u.options.svgH).attr("id","plotting-area"),_=f.append("svg:style");$.get(location.origin+window.location.pathname.replace(/[^\/]+$/g,"")+"css/fornac.css",function(e){_.text(e.replace(/[\s\n]/g,""))});var y=(u.options.svg=f).append("svg:g").on("mousemove",function(){d&&(mpos=d3.mouse(x.node()),N.attr("x1",d.x).attr("y1",d.y).attr("x2",mpos[0]).attr("y2",mpos[1]))}).on("mousedown",function(){}).on("mouseup",function(){d&&N.attr("class","drag_line_hidden"),p=d=null});u.options.allowPanningAndZooming&&y.call(zoomer);var k=y.append("svg:rect").attr("width",u.options.svgW).attr("height",u.options.svgH).attr("fill","white").attr("stroke","transparent").attr("stroke-width",1).attr("id","zrect"),v=y.append("g").datum(function(){return{selected:!1,previouslySelected:!1}}).attr("class","brush"),x=y.append("svg:g"),b=x.append("svg:g"),w=x.append("svg:g");u.brusher=d3.svg.brush().x(h).y(g).on("brushstart",function(e){w.selectAll("g.gnode").selectAll(".outline_node").each(function(e){e.previouslySelected=A&&e.selected})}).on("brush",function(){var e=w.selectAll("g.gnode").selectAll(".outline_node"),n=d3.event.target.extent();e.classed("selected",function(e){return e.selected=u.options.applyForce&&e.previouslySelected^(n[0][0]<=e.x&&e.x<n[1][0]&&n[0][1]<=e.y&&e.y<n[1][1])})}).on("brushend",function(){d3.event.target.clear(),d3.select(this).call(d3.event.target)}),v.call(u.brusher).on("mousedown.brush",null).on("touchstart.brush",null).on("touchmove.brush",null).on("touchend.brush",null),v.select(".background").style("cursor","auto"),u.center_view=function(){0!==u.graph.nodes.length&&(min_x=d3.min(u.graph.nodes.map(function(e){return e.x})),min_y=d3.min(u.graph.nodes.map(function(e){return e.y})),max_x=d3.max(u.graph.nodes.map(function(e){return e.x})),max_y=d3.max(u.graph.nodes.map(function(e){return e.y})),mol_width=max_x-min_x,mol_height=max_y-min_y,width_ratio=u.options.svgW/(mol_width+1),height_ratio=u.options.svgH/(mol_height+1),min_ratio=.8*Math.min(width_ratio,height_ratio),new_mol_width=mol_width*min_ratio,new_mol_height=mol_height*min_ratio,x_trans=-min_x*min_ratio+(u.options.svgW-new_mol_width)/2,y_trans=-min_y*min_ratio+(u.options.svgH-new_mol_height)/2,x.attr("transform","translate("+[200,200]+") scale(3)"),zoomer.translate([x_trans,y_trans]),zoomer.scale(min_ratio))},u.force=d3.layout.force().charge(function(e){return-30}).chargeDistance(300).friction(.35).linkDistance(function(e){return 15*e.value}).linkStrength(function(e){return e.link_type in u.linkStrengths?u.linkStrengths[e.link_type]:u.linkStrengths.other}).gravity(0).nodes(u.graph.nodes).links(u.graph.links).chargeDistance(110).size([u.options.svgW,u.options.svgH]);var N=x.append("line").attr("class","drag_line").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0),L=!1,A=!1;u.resumeForce=function(){u.animation&&u.force.resume()};var P=d3.behavior.drag().on("dragstart",function(n){d3.event.sourceEvent.stopPropagation(),n.selected||A||w.selectAll("g.gnode").selectAll(".outline_node").classed("selected",function(e){return e.selected=u.options.applyForce&&(e.previouslySelected=!1)}),d3.select(this).select(".outline_node").classed("selected",function(e){return n.previouslySelected=n.selected,n.selected=u.options.applyForce&&!0}),a().each(function(e){e.fixed|=2})}).on("drag",function(e){a().each(function(e){e.x+=d3.event.dx,e.y+=d3.event.dy,e.px+=d3.event.dx,e.py+=d3.event.dy}),u.resumeForce(),d3.event.sourceEvent.preventDefault()}).on("dragend",function(e){a().each(function(e){e.fixed&=-7})});d3.select(t).on("keydown",s).on("keyup",l).on("contextmenu",function(){d3.event.preventDefault()}),link_key=function(e){return e.uid},node_key=function(e){return key=e.uid},update_rna_graph=function(e){var n=e.get_positions("nucleotide"),t=e.get_positions("label"),r=e.get_uids();e.recalculateElements().elementsToJson().addPseudoknots().addPositions("nucleotide",n).addUids(r).addLabels(1,u.options.labelInterval).addPositions("label",t).reinforceStems().reinforceLoops().updateLinkUids()},remove_link=function(e){var n;index=u.graph.links.indexOf(e),-1<index&&(e.source.rna==e.target.rna?((n=e.source.rna).addPseudoknots(),n.pairtable[e.source.num]=0,n.pairtable[e.target.num]=0,update_rna_graph(n)):(extraLinkIndex=u.extraLinks.indexOf(e),u.extraLinks.splice(extraLinkIndex,1)),u.recalculateGraph()),u.update()},link_click=function(e){L&&(e.link_type in{backbone:!0,fake:!0,fake_fake:!0,label_link:!0}||remove_link(e))},u.add_link=function(e){e.source.rna==e.target.rna?(r=e.source.rna,r.pairtable[e.source.num]=e.target.num,r.pairtable[e.target.num]=e.source.num,update_rna_graph(r)):(e.link_type="intermolecule",u.extraLinks.push(e)),u.recalculateGraph(),u.update()},node_mouseclick=function(e){d3.event.defaultPrevented||(A||w.selectAll("g.gnode").selectAll(".outline_node").classed("selected",function(e){return e.selected=u.options.applyForce&&(e.previouslySelected=!1)}),d3.select(this).select("circle").classed("selected",e.selected=u.options.applyForce&&!e.previouslySelected))},node_mouseup=function(e){if(d)if((p=e)==d)p=d=null;else{for(e={source:d,target:p,link_type:"basepair",value:1,uid:generateUUID()},i=0;i<u.graph.links.length;i++){if(!(u.graph.links[i].source!=d&&u.graph.links[i].target!=d&&u.graph.links[i].source!=p&&u.graph.links[i].target!=p||"basepair"!=u.graph.links[i].link_type&&"pseudoknot"!=u.graph.links[i].link_type))return;if((u.graph.links[i].source==p&&u.graph.links[i].target==d||u.graph.links[i].source==d&&u.graph.links[i].target==p)&&"backbone"==u.graph.links[i].link_type)return}"middle"!=p.node_type&&"middle"!=d.node_type&&"label"!=p.node_type&&"label"!=d.node_type&&u.add_link(e)}},node_mousedown=function(n){n.selected||A||w.selectAll("g.gnode").selectAll(".outline_node").classed("selected",function(e){return e.selected=e.previouslySelected=!1}),d3.select(this).classed("selected",function(e){return n.previouslySelected=n.selected,n.selected=u.options.applyForce&&!0}),L&&(d=n,N.attr("class","drag_line").attr("x1",d.x).attr("y1",d.y).attr("x2",d.x).attr("y2",d.y))},u.startAnimation=function(){u.animation=!0,x.selectAll("g.gnode").call(P),u.force.start()},u.stopAnimation=function(){u.animation=!1,x.selectAll("g.gnode").on("mousedown.drag",null),u.force.stop()},u.setFriction=function(e){u.force.friction(e),u.resumeForce()},u.setCharge=function(e){u.force.charge(e),u.resumeForce()},u.setGravity=function(e){u.force.gravity(e),u.resumeForce()},u.setPseudoknotStrength=function(e){u.linkStrengths.pseudoknot=e,u.update()},u.displayBackground=function(e){u.displayParameters.displayBackground=e,u.updateStyle()},u.displayNumbering=function(e){u.displayParameters.displayNumbering=e,u.updateStyle()},u.displayNodeOutline=function(e){u.displayParameters.displayNodeOutline=e,u.updateStyle()},u.displayNodeLabel=function(e){u.displayParameters.displayNodeLabel=e,u.updateStyle()},u.displayLinks=function(e){u.displayParameters.displayLinks=e,u.updateStyle()},u.displayPseudoknotLinks=function(e){u.displayParameters.displayPseudoknotLinks=e,u.updateStyle()},u.displayProteinLinks=function(e){u.displayParameters.displayProteinLinks=e,u.updateStyle()},u.updateStyle=function(){k.classed("transparent",!u.displayParameters.displayBackground),w.selectAll("[node_type=label]").classed("transparent",!u.displayParameters.displayNumbering),w.selectAll("[label_type=label]").classed("transparent",!u.displayParameters.displayNumbering),b.selectAll("[link_type=label_link]").classed("transparent",!u.displayParameters.displayNumbering),f.selectAll("circle").classed("hidden_outline",!u.displayParameters.displayNodeOutline),w.selectAll("[label_type=nucleotide]").classed("transparent",!u.displayParameters.displayNodeLabel),f.selectAll("[link_type=real],[link_type=basepair],[link_type=backbone],[link_type=pseudoknot],[link_type=protein_chain],[link_type=chain_chain]").classed("transparent",!u.displayParameters.displayLinks),f.selectAll("[link_type=pseudoknot]").classed("transparent",!u.displayParameters.displayPseudoknotLinks),f.selectAll("[link_type=protein_chain]").classed("transparent",!u.displayParameters.displayProteinLinks),b.selectAll("[link_type=fake]").classed("transparent",!u.options.displayAllLinks)},u.update=function(){u.force.nodes(u.graph.nodes).links(u.graph.links),u.animation&&u.force.start();var e=b.selectAll("line.link").data(u.graph.links,link_key);link_lines=e.enter().append("svg:line"),link_lines.append("svg:title").text(link_key),link_lines.classed("link",!0).attr("x1",function(e){return e.source.x}).attr("y1",function(e){return e.source.y}).attr("x2",function(e){return e.target.x}).attr("y2",function(e){return e.target.y}).attr("link_type",function(e){return e.link_type}).attr("class",function(e){return d3.select(this).attr("class")+" "+e.link_type}).attr("pointer-events",function(e){return"fake"==e.link_type?"none":"all"}),e.attr("class","").classed("link",!0).attr("link_type",function(e){return e.link_type}).attr("class",function(e){return d3.select(this).attr("class")+" "+e.link_type}),e.exit().remove(),xlink=u.displayFakeLinks?e:b.selectAll("[link_type=real],[link_type=pseudoknot],[link_type=protein_chain],[link_type=chain_chain],[link_type=label_link],[link_type=backbone],[link_type=basepair],[link_type=fake],[link_type=intermolecule]"),domain=[0,1,2,3,4,5,6,7,8,9],d3.scale.category10().domain(domain);var r=w.selectAll("g.gnode").data(u.graph.nodes,node_key);gnodes_enter=r.enter().append("g").classed("noselect",!0).classed("gnode",!0).attr("struct_name",function(e){return e.struct_name}).attr("transform",function(e){return void 0!==e.x&&void 0!==e.y?"translate("+[e.x,e.y]+")":""}).each(function(e){e.selected=e.previouslySelected=!1}),gnodes_enter.call(P).on("mousedown",node_mousedown).on("mousedrag",function(e){}).on("mouseup",node_mouseup).on("click",node_mouseclick).transition().duration(750).ease("elastic").attr("r",6.5),node_tooltip=function(e){return node_tooltips={},node_tooltips.nucleotide=e.num,node_tooltips.label="",node_tooltips.pseudo="",node_tooltips.middle="",node_tooltips.protein=e.struct_name,node_tooltips[e.node_type]},xlink.on("click",link_click),r.select("circle"),gnodes_enter.filter(function(e){return"nucleotide"==e.node_type||"label"==e.node_type||"protein"==e.node_type}).append("svg:circle").attr("class","outline_node").attr("r",function(e){return e.radius+1}),e=gnodes_enter.append("svg:circle").attr("class","node").classed("label",function(e){return"label"==e.node_type}).attr("r",function(e){return"middle"==e.node_type?0:e.radius}).attr("node_type",function(e){return e.node_type}),gnodes_enter.append("text").text(function(e){return e.name}).attr("text-anchor","middle").attr("font-size",8).attr("font-weight","bold").attr("y",2.5).attr("class","node-label").attr("label_type",function(e){return e.node_type}).append("svg:title").text(function(e){return"nucleotide"==e.node_type?e.struct_name+":"+e.num:""}),e.append("svg:title").text(function(e){return"nucleotide"==e.node_type?e.struct_name+":"+e.num:""}),r.exit().remove(),real_nodes=u.graph.nodes.filter(function(e){return"nucleotide"==e.node_type||"label"==e.node_type}),u.force.on("tick",function(){for(var e=d3.geom.quadtree(real_nodes),n=0,t=real_nodes.length;++n<t;)e.visit(function(u){var e=u.radius+16,c=u.x-e,d=u.x+e,p=u.y-e,h=u.y+e;return function(e,n,t,r,o){var a,s,i,l;return e.point&&e.point!==u&&(a=u.x-e.point.x,s=u.y-e.point.y,(i=Math.sqrt(a*a+s*s))<(l=u.radius+e.point.radius)&&(i=(i-l)/i*.1,u.x-=a*=i,u.y-=s*=i,e.point.x+=a,e.point.y+=s)),d<n||r<c||h<t||o<p}}(real_nodes[n]));xlink.attr("x1",function(e){return e.source.x}).attr("y1",function(e){return e.source.y}).attr("x2",function(e){return e.target.x}).attr("y2",function(e){return e.target.y}),r.attr("transform",function(e){return"translate("+[e.x,e.y]+")"})}),u.changeColorScheme(u.colorScheme),u.animation&&u.force.start(),u.updateStyle()},n()}var number_sort=function(e,n){return e-n};function generateUUID(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}function isNormalInteger(e){return/^\+?(0|[1-9]\d*)$/.test(e)}function ColorScheme(e){var l=this;l.colorsText=e,l.parseRange=function(e){for(var n=e.split(","),t=[],r=0;r<n.length;r++)if(1==(a=n[r].split("-")).length)t.push(parseInt(a[0]));else if(2==a.length)for(var o=parseInt(a[0]),a=parseInt(a[1]);o<=a;o++)t.push(o);else console.log("Malformed range (too many dashes):",e);return t},l.parseColorText=function(e){e=e.split("\n");for(var n="",t=1,r={color_values:{"":{}},range:["white","steelblue"]},o=[],a=0;a<e.length;a++)if(">"==e[a][0])n=e[a].trim().slice(1),t=1,r.color_values[n]={};else{words=e[a].trim().split(/[\s]+/);for(var s=0;s<words.length;s++)if(isNaN(words[s]))if(0===words[s].search("range"))parts=words[s].split("="),parts_right=parts[1].split(":"),r.range=[parts_right[0],parts_right[1]];else if(0==words[s].search("domain"))parts=words[s].split("="),parts_right=parts[1].split(":"),r.domain=[parts_right[0],parts_right[1]];else{parts=words[s].split(":"),nums=l.parseRange(parts[0]),color=parts[1];for(var i=0;i<nums.length;i++)isNaN(color)?r.color_values[n][nums[i]]=color:(r.color_values[n][nums[i]]=+color,o.push(Number(color)))}else r.color_values[n][t]=Number(words[s]),t+=1,o.push(Number(words[s]))}return"domain"in r||(r.domain=[Math.min.apply(null,o),Math.max.apply(null,o)]),l.colors_json=r,l},l.normalizeColors=function(){var e,n;for(n in l.colors_json){var t,r=Number.MAX_VALUE,o=Number.MIN_VALUE;for(t in l.colors_json.color_values[n])e=l.colors_json.color_values[n][t],"number"==typeof e&&(e<r&&(r=e),o<e&&(o=e));for(t in l.colors_json.color_values[n])e=l.colors_json.color_values[n][t],"number"==typeof e&&(l.colors_json.color_values[n][t]=(e-r)/(o-r))}return l},l.parseColorText(l.colorsText)}function ProteinGraph(e,n,t){var r=this;r.type="protein",r.size=n,r.nodes=[{name:"P",num:1,radius:3*Math.sqrt(n),rna:r,node_type:"protein",struct_name:e,elem_type:"p",size:n,uid:generateUUID()}],r.links=[],r.uid=generateUUID(),r.addUids=function(e){for(var n=0;n<e.length;n++)r.nodes[n].uid=e[n];return r},r.get_uids=function(){uids=[];for(var e=0;e<r.dotbracket.length;e++)uids.push(r.nodes[e].uid);return uids}}function RNAGraph(e,n,t){var l=this;l.type="rna",l.circularizeExternal=!1,0==arguments.length?(l.seq="",l.dotbracket="",l.struct_name=""):(l.seq=e,l.dotbracket=n,l.struct_name=t),l.circular=!1,0<l.dotbracket.length&&"*"==l.dotbracket[l.dotbracket.length-1]&&(l.dotbracket=l.dotbracket.slice(0,l.dotbracket.length-1),l.circular=!0),l.uid=generateUUID(),l.rnaLength=l.dotbracket.length,l.elements=[],l.pseudoknotPairs=[],l.nucs_to_nodes={},l.addUids=function(e){for(var n=0;n<e.length;n++)l.nodes[n].uid=e[n];return l},l.computePairtable=function(){l.pairtable=rnaUtilities.dotbracketToPairtable(l.dotbracket)},l.computePairtable(),l.addPositions=function(n,e){label_nodes=l.nodes.filter(function(e){return e.node_type==n});for(var t=0;t<label_nodes.length;t++)label_nodes[t].x=e[t][0],label_nodes[t].px=e[t][0],label_nodes[t].y=e[t][1],label_nodes[t].py=e[t][1];return l},l.get_positions=function(n){positions=[],nucleotide_nodes=l.nodes.filter(function(e){return e.node_type==n});for(var e=0;e<nucleotide_nodes.length;e++)positions.push([nucleotide_nodes[e].x,nucleotide_nodes[e].y]);return positions},l.get_uids=function(){uids=[];for(var e=0;e<l.dotbracket.length;e++)uids.push(l.nodes[e].uid);return uids},l.reinforceStems=function(){pt=l.pairtable,relevant_elements=elements.filter(function(e){return"s"==e[0]&&4<=e[2].length});for(var e=0;e<relevant_elements.length;e++){all_nucs=relevant_elements[e][2],nucs=all_nucs.slice(0,all_nucs.length/2);for(var n=0;n<nucs.length-1;n++)l.addFakeNode([nucs[n],nucs[n+1],pt[nucs[n+1]],pt[nucs[n]]])}return l},l.reinforceLoops=function(){function e(e){return 0!==e&&e<=l.dotbracket.length}var n,t,r;for(i=0;i<l.elements.length;i++)"s"==l.elements[i][0]||!l.circularizeExternal&&"e"==l.elements[i][0]||(n=l.elements[i][2].filter(e),"e"==l.elements[i][0]&&(t={name:"",num:-1,radius:0,rna:l,node_type:"middle",elem_type:"f",nucs:[],x:l.nodes[l.rnaLength-1].x,y:l.nodes[l.rnaLength-1].y,px:l.nodes[l.rnaLength-1].px,py:l.nodes[l.rnaLength-1].py,uid:generateUUID()},r={name:"",num:-1,radius:0,rna:l,node_type:"middle",elem_type:"f",nucs:[],x:l.nodes[0].x,y:l.nodes[0].y,px:l.nodes[0].px,py:l.nodes[0].py,uid:generateUUID()},n.push(l.nodes.length+1),n.push(l.nodes.length+2),l.nodes.push(t),l.nodes.push(r)),l.addFakeNode(n));return l},l.updateLinkUids=function(){for(var e=0;e<l.links.length;e++)l.links[e].uid=l.links[e].source.uid+l.links[e].target.uid;return l},l.addFakeNode=function(e){for(var n=6.283/(2*e.length),n=18/(2*Math.tan(n)),t="",r=0;r<e.length;r++)t+=l.nodes[e[r]-1].uid;for(new_node={name:"",num:-1,radius:n,rna:l,node_type:"middle",elem_type:"f",nucs:e,uid:t},l.nodes.push(new_node),coords_counted=new_y=new_x=0,n=3.14159*(e.length-2)/(2*e.length),n=.5/Math.cos(n),j=0;j<e.length;j++)0===e[j]||e[j]>l.dotbracket.length||(l.links.push({source:l.nodes[e[j]-1],target:l.nodes[l.nodes.length-1],link_type:"fake",value:n,uid:generateUUID()}),4<e.length&&l.links.push({source:l.nodes[e[j]-1],target:l.nodes[e[(j+Math.floor(e.length/2))%e.length]-1],link_type:"fake",value:2*n,uid:generateUUID()}),ia=3.14159*(e.length-2)/e.length,c=2*Math.cos(1.570795-ia/2),l.links.push({source:l.nodes[e[j]-1],target:l.nodes[e[(j+2)%e.length]-1],link_type:"fake",value:c}),from_node=l.nodes[e[j]-1],"x"in from_node&&(new_x+=from_node.x,new_y+=from_node.y,coords_counted+=1));return 0<coords_counted&&(new_node.x=new_x/coords_counted,new_node.y=new_y/coords_counted,new_node.px=new_node.x,new_node.py=new_node.y),l},l.connectFakeNodes=function(){for(var e={},n=l.nodes.filter(function(e){return"middle"==e.node_type}),t=new Set,r=1;r<=l.nodes.length;r++)e[r]=[];for(r=0;r<n.length;r++)for(var o=n[r],a=0;a<o.nucs.length;a++){for(var s=o.nucs[a],i=0;i<e[s].length;i++)t.has(JSON.stringify([e[s][i].uid,o.uid].sort()))||(l.links.push({source:e[s][i],target:o,value:(e[s][i].radius+o.radius)/18,link_type:"fake_fake"}),t.add(JSON.stringify([e[s][i].uid,o.uid].sort())));e[s].push(o)}return l},l.elementsToJson=function(){pt=l.pairtable,elements=l.elements,l.nodes=[],l.links=[],elem_types={},l.elements.sort();for(var e=0;e<l.elements.length;e++)for(nucs=l.elements[e][2],j=0;j<nucs.length;j++)elem_types[nucs[j]]=l.elements[e][0];for(e=1;e<=pt[0];e++)l.nodes.push({name:l.seq[e-1],num:e,radius:6,rna:l,node_type:"nucleotide",struct_name:l.struct_name,elem_type:elem_types[e],uid:generateUUID()});for(e=1;e<=pt[0];e++)0!==pt[e]&&l.links.push({source:l.nodes[e-1],target:l.nodes[pt[e]-1],link_type:"basepair",value:1,uid:generateUUID()}),1<e&&l.links.push({source:l.nodes[e-2],target:l.nodes[e-1],link_type:"backbone",value:1,uid:generateUUID()});for(e=0;e<l.pseudoknotPairs.length;e++)l.links.push({source:l.nodes[l.pseudoknotPairs[e][0]-1],target:l.nodes[l.pseudoknotPairs[e][1]-1],link_type:"pseudoknot",value:1,uid:generateUUID()});return l.circular&&l.links.push({source:l.nodes[0],target:l.nodes[l.rnaLength-1],link_type:"backbone",value:1,uid:generateUUID()}),l},l.pt_to_elements=function(e,n,t,r){var o=[],a=[t-1],s=[r+1];if(r<t)return[];for(;0===e[t];t++)a.push(t);for(;0===e[r];r--)s.push(r);if(r<t)return a.push(t),0===n?[["e",n,a.sort(number_sort)]]:[["h",n,a.sort(number_sort)]];if(e[t]!=r){for(a.push(t);t<=r;){for(o=o.concat(l.pt_to_elements(e,n,t,e[t])),a.push(e[t]),t=e[t]+1;0===e[t]&&t<=r;t++)a.push(t);a.push(t)}return a.pop(),0<(a=a.concat(s)).length&&(0===n?o.push(["e",n,a.sort(number_sort)]):o.push(["m",n,a.sort(number_sort)])),o}for(e[t]===r&&(a.push(t),s.push(r),combined=a.concat(s),4<combined.length&&(0===n?o.push(["e",n,a.concat(s).sort(number_sort)]):o.push(["i",n,a.concat(s).sort(number_sort)]))),s=[];e[t]===r&&t<r;)s.push(t),s.push(r),t+=1,--r,n+=1;return o.push(["s",n,s.sort(number_sort)]),o.concat(l.pt_to_elements(e,n,t,r))},l.addLabels=function(e,n){if(0===arguments.length&&(e=1,n=10),1===arguments.length&&(n=10),0===n)return l;for(n<=0&&console.log("The label interval entered in invalid:",n),i=1;i<=pt[0];i++){var t,r;0==i%n&&(thisNode=l.nodes[i-1],prevVec=1==l.rnaLength?(nextVec=[thisNode.x-15,thisNode.y],[thisNode.x-15,thisNode.y]):(prevNode=1==i?l.nodes[l.rnaLength-1]:l.nodes[i-2],nextNode=i==l.rnaLength?l.nodes[0]:l.nodes[i],0!==l.pairtable[nextNode.num]&&0!==l.pairtable[prevNode.num]&&0!==l.pairtable[thisNode.num]&&(prevNode=nextNode=l.nodes[l.pairtable[thisNode.num]-1]),0===l.pairtable[thisNode.num]||0!==l.pairtable[nextNode.num]&&0!==l.pairtable[prevNode.num]?(nextVec=[nextNode.x-thisNode.x,nextNode.y-thisNode.y],[prevNode.x-thisNode.x,prevNode.y-thisNode.y]):(nextVec=[thisNode.x-nextNode.x,thisNode.y-nextNode.y],[thisNode.x-prevNode.x,thisNode.y-prevNode.y])),combinedVec=[nextVec[0]+prevVec[0],nextVec[1]+prevVec[1]],vecLength=Math.sqrt(combinedVec[0]*combinedVec[0]+combinedVec[1]*combinedVec[1]),normedVec=[combinedVec[0]/vecLength,combinedVec[1]/vecLength],offsetVec=[-15*normedVec[0],-15*normedVec[1]],t=l.nodes[i-1].x+offsetVec[0],r=l.nodes[i-1].y+offsetVec[1],new_node={name:i+e-1,num:-1,radius:6,rna:l,node_type:"label",struct_name:l.struct_name,elem_type:"l",x:t,y:r,px:t,py:r,uid:generateUUID()},new_link={source:l.nodes[i-1],target:new_node,value:1,link_type:"label_link",uid:generateUUID()},l.nodes.push(new_node),l.links.push(new_link))}return l},l.recalculateElements=function(){if(l.removePseudoknots(),l.elements=l.pt_to_elements(l.pairtable,0,1,l.dotbracket.length),l.circular&&(external_loop=l.elements.filter(function(e){if("e"==e[0])return!0}),0<external_loop.length)){eloop=external_loop[0],nucs=eloop[2].sort(number_sort),prev=nucs[0],hloop=!0,num_greater=0;for(var e=1;e<nucs.length;e++)1<nucs[e]-prev&&(num_greater+=1),prev=nucs[e];eloop[0]=1==num_greater?"h":2==num_greater?"i":"m"}return l},l.removePseudoknots=function(){return l.pseudoknotPairs=1<l.pairtable.length?rnaUtilities.removePseudoknotsFromPairtable(l.pairtable):[],l},l.addPseudoknots=function(){var e=l.pairtable,n=l.pseudoknotPairs;for(i=0;i<n.length;i++)e[n[i][0]]=n[i][1],e[n[i][1]]=n[i][0];return l.pseudoknotPairs=[],l},0<l.rnaLength&&l.recalculateElements()}function RNAUtilities(){var l=this;l.bracket_left="([{<ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),l.bracket_right=")]}>abcdefghijklmnopqrstuvwxyz".split(""),l.inverse_brackets=function(e){for(res={},i=0;i<e.length;i++)res[e[i]]=i;return res},l.maximumMatching=function(e){var n=e[0];mm=Array(n+1);for(var t=0;t<=n;t++){mm[t]=Array(n+1);for(var r=t;r<=n;r++)mm[t][r]=0}for(var o=0,t=+n-1;0<t;t--)for(r=t+0+1;r<=n;r++){for(var o=mm[t][r-1],a=+r-1;t<=a;a--)e[a]===r&&(o=Math.max(o,(t<a?mm[t][a-1]:0)+1+(0<r-a-1?mm[a+1][r-1]:0)));mm[t][r]=o}return mm},l.backtrackMaximumMatching=function(e,n){var t=Array.apply(null,Array(e.length)).map(function(){return 0});return l.mm_bt(e,t,n,1,e.length-1),t},l.mm_bt=function(e,n,t,r,o){var a=e[r][o];if(!(o-r-1<0))if(e[r][o-1]==a)l.mm_bt(e,n,t,r,o-1);else{for(var s=+o-1;r<=s;s--)if(t[o]===s&&(r<s?e[r][s-1]:0)+(0<o-s-1?e[s+1][o-1]:0)+1==a)return n[s]=o,r<(n[o]=s)&&l.mm_bt(e,n,t,r,s-1),void l.mm_bt(e,n,t,s+1,o-1);console.log("FAILED!!!"+r+","+o+": backtracking failed!")}},l.dotbracketToPairtable=function(e){for(pt=Array.apply(null,Array(e.length+1)).map(Number.prototype.valueOf,0),pt[0]=e.length,stack={},i=0;i<l.bracket_left.length;i++)stack[i]=[];for(inverse_bracket_left=l.inverse_brackets(l.bracket_left),inverse_bracket_right=l.inverse_brackets(l.bracket_right),i=0;i<e.length;i++)if(a=e[i],ni=i+1,"."==a)pt[ni]=0;else if(a in inverse_bracket_left)stack[inverse_bracket_left[a]].push(ni);else{if(!(a in inverse_bracket_right))throw"Unknown symbol in dotbracket string";j=stack[inverse_bracket_right[a]].pop(),pt[ni]=j,pt[j]=ni}for(key in stack)if(0<stack[key].length)throw"Unmatched base at position "+stack[key][0];return pt},l.insert_into_stack=function(e,n,t){for(n=0;0<e[n].length&&e[n][e[n].length-1]<t;)n+=1;return e[n].push(t),n},l.delete_from_stack=function(e,n){for(var t=0;0===e[t].length||e[t][e[t].length-1]!=n;)t+=1;return e[t].pop(),t},l.pairtableToDotbracket=function(e){for(stack={},i=0;i<e[0];i++)stack[i]=[];for(seen={},res="",i=1;i<e[0]+1;i++){if(0!==e[i]&&e[i]in seen)throw"Invalid pairtable contains duplicate entries";seen[e[i]]=!0,res=0===e[i]?res+".":e[i]>i?res+l.bracket_left[l.insert_into_stack(stack,i,e[i])]:res+l.bracket_right[l.delete_from_stack(stack,i)]}return res},l.find_unmatched=function(e,n,t){for(var r=[],o=[],a=t,s=n;s<=t;s++)0!==e[s]&&(e[s]<n||e[s]>t)&&o.push([s,e[s]]);for(s=n;s<=a;s++){for(;0===e[s]&&s<=a;)s++;for(t=e[s];e[s]===t;)s++,t--;r=r.concat(l.find_unmatched(e,s,t))}return 0<o.length&&r.push(o),r},l.removePseudoknotsFromPairtable=function(e){for(var n=l.maximumMatching(e),n=l.backtrackMaximumMatching(n,e),t=[],r=1;r<e.length;r++)e[r]<r||n[r]==e[r]||(t.push([r,e[r]]),e[e[r]]=0,e[r]=0);return t}}void 0===String.prototype.trim&&(String.prototype.trim=function(){return String(this).replace(/^\s+|\s+$/g,"")}),molecules_to_json=function(e){for(var n={},t=[],r=[],o=0;o<e.molecules.length;o++){var a=e.molecules[o];for("rna"==a.type?(rg=new RNAGraph(a.seq,a.ss,a.header),rg.circularizeExternal=!0,rg.elementsToJson().addPositions("nucleotide",a.positions).addLabels().reinforceStems().reinforceLoops()):"protein"==a.type&&(rg=new ProteinGraph(a.header,a.size)),rg.addUids(a.uids),a=0;a<rg.nodes.length;a++)n[rg.nodes[a].uid]=rg.nodes[a];t.push(rg)}for(o=0;o<e.extra_links.length;o++)link=e.extra_links[o],link.source=n[link.source],link.target=n[link.target],link.uid=generateUUID(),r.push(link);return{graphs:t,extraLinks:r}},number_sort=function(e,n){return e-n},rnaUtilities=new RNAUtilities,simple_xy_coordinates=function(e){var n,t,r=[],o=[];console.log("pair_table",e),n=e[0];var g=Array.apply(null,Array(n+5)).map(Number.prototype.valueOf,0),m=Array.apply(null,Array(16+Math.floor(n/5))).map(Number.prototype.valueOf,0),f=Array.apply(null,Array(16+Math.floor(n/5))).map(Number.prototype.valueOf,0);lp=stk=0;var _=Math.PI/2;for(loop=function(e,n,t){var r,o,a,s,i,l,u=2,c=0,d=0;console.log("i:",e,"j:",n);var p=Array.apply(null,Array(1+2*Math.floor((n-e)/5))).map(Number.prototype.valueOf,0),h=e-1;for(n++;e!=n;)if((r=t[e])&&0!=e){for(u+=2,o=e,a=r,p[++c]=o,p[++c]=a,e=r+1,s=o,i=a,l=0;o++,a--,l++,t[o]==a;);if(r=l-2,2<=l&&(g[s+1+r]+=_,g[i-1-r]+=_,g[s]+=_,g[i]+=_,2<l))for(;1<=r;r--)g[s+r]=Math.PI,g[i-r]=Math.PI;f[++stk]=l,loop(o,a,t)}else e++,u++,d++;for(e=Math.PI*(u-2)/u,p[++c]=n,n=h<0?0:h,h=1;h<=c;h++){for(t=p[h]-n,r=0;r<=t;r++)g[n+r]+=e;if(c<h)break;n=p[++h]}m[++lp]=d},loop(0,n+1,e),m[lp]-=2,r[t=0]=100,o[0]=100,poss=[],poss.push([r[0],o[0]]),e=1;e<n;e++)r[e]=r[e-1]+15*Math.cos(t),o[e]=o[e-1]+15*Math.sin(t),poss.push([r[e],o[e]]),t+=Math.PI-g[e+1];return poss};
</script> <!-- FORNA -->


<script type='text/javascript'>
    var container = new FornaContainer("#rna_ss", {'applyForce': true});

    var options = {'structure': '<FOLDING>',
                    'sequence': '<SEQUENCE>'};

    container.addRNA(options.structure, options);
</script>

</html>