changeset 1:bfe0d989004d draft

planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
author cpt
date Mon, 05 Jun 2023 02:54:26 +0000
parents b4d7351df1ff
children 67bd43a712fb
files cpt-macros.xml cpt_xmfa/cpt-macros.xml cpt_xmfa/macros.xml cpt_xmfa/mauve.js cpt_xmfa/mauve.xml cpt_xmfa/xmfa_process.py macros.xml mauve.js mauve.xml xmfa_process.py
diffstat 10 files changed, 405 insertions(+), 396 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cpt-macros.xml	Mon Jun 05 02:54:26 2023 +0000
@@ -0,0 +1,115 @@
+<macros>
+    <xml name="gff_requirements">
+        <requirements>
+            <requirement type="package" version="2.7">python</requirement>
+            <requirement type="package" version="1.65">biopython</requirement>
+            <requirement type="package" version="2.12.1">requests</requirement>
+			<requirement type="package" version="1.2.2">cpt_gffparser</requirement>
+            <yield/>
+        </requirements>
+        <version_command>
+		<![CDATA[
+			cd '$__tool_directory__' && git rev-parse HEAD
+		]]>
+		</version_command>
+    </xml>
+    <xml name="citation/mijalisrasche">
+        <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+        <citation type="bibtex">@unpublished{galaxyTools,
+		author = {E. Mijalis, H. Rasche},
+		title = {CPT Galaxy Tools},
+		year = {2013-2017},
+		note = {https://github.com/tamu-cpt/galaxy-tools/}
+		}
+		</citation>
+    </xml>
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {E. Mijalis, H. Rasche},
+				title = {CPT Galaxy Tools},
+				year = {2013-2017},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+			</citation>
+            <yield/>
+        </citations>
+    </xml>
+    <xml name="citations-crr">
+        <citations>
+            <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {C. Ross},
+				title = {CPT Galaxy Tools},
+				year = {2020-},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+			</citation>
+            <yield/>
+        </citations>
+    </xml>
+    <xml name="citations-2020">
+        <citations>
+            <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {E. Mijalis, H. Rasche},
+				title = {CPT Galaxy Tools},
+				year = {2013-2017},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+			</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {A. Criscione},
+				title = {CPT Galaxy Tools},
+				year = {2019-2021},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+                        </citation>
+            <yield/>
+        </citations>
+    </xml>
+    <xml name="citations-2020-AJC-solo">
+        <citations>
+            <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {A. Criscione},
+				title = {CPT Galaxy Tools},
+				year = {2019-2021},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+                        </citation>
+            <yield/>
+        </citations>
+    </xml>
+    <xml name="citations-clm">
+        <citations>
+            <citation type="doi">10.1371/journal.pcbi.1008214</citation>
+            <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {C. Maughmer},
+				title = {CPT Galaxy Tools},
+				year = {2017-2020},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+			</citation>
+            <yield/>
+        </citations>
+    </xml>
+    <xml name="sl-citations-clm">
+        <citation type="bibtex">
+			@unpublished{galaxyTools,
+				author = {C. Maughmer},
+				title = {CPT Galaxy Tools},
+				year = {2017-2020},
+				note = {https://github.com/tamu-cpt/galaxy-tools/}
+			}
+			</citation>
+        <yield/>
+    </xml>
+</macros>
--- a/cpt_xmfa/cpt-macros.xml	Tue Jul 05 05:07:32 2022 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,115 +0,0 @@
-<?xml version="1.0"?>
-<macros>
-	<xml name="gff_requirements">
-		<requirements>
-			<requirement type="package" version="2.7">python</requirement>
-			<requirement type="package" version="1.65">biopython</requirement>
-			<requirement type="package" version="2.12.1">requests</requirement>
-			<yield/>
-		</requirements>
-		<version_command>
-		<![CDATA[
-			cd $__tool_directory__ && git rev-parse HEAD
-		]]>
-		</version_command>
-	</xml>
-	<xml name="citation/mijalisrasche">
-		<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-		<citation type="bibtex">@unpublished{galaxyTools,
-		author = {E. Mijalis, H. Rasche},
-		title = {CPT Galaxy Tools},
-		year = {2013-2017},
-		note = {https://github.com/tamu-cpt/galaxy-tools/}
-		}
-		</citation>
-	</xml>
-	<xml name="citations">
-		<citations>
-			<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-			<citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {E. Mijalis, H. Rasche},
-				title = {CPT Galaxy Tools},
-				year = {2013-2017},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-			</citation> 
-		<yield/>
-		</citations>
-	</xml>
-    	<xml name="citations-crr">
-		<citations>
-			<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-			<citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {C. Ross},
-				title = {CPT Galaxy Tools},
-				year = {2020-},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-			</citation>
-		<yield/>
-		</citations>
-	</xml>
-        <xml name="citations-2020">
-		<citations>
-			<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-			<citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {E. Mijalis, H. Rasche},
-				title = {CPT Galaxy Tools},
-				year = {2013-2017},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-			</citation>
-                        <citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {A. Criscione},
-				title = {CPT Galaxy Tools},
-				year = {2019-2021},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-                        </citation>
-                        <yield/>
-		</citations>
-	</xml>
-        <xml name="citations-2020-AJC-solo">
-		<citations>
-			<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-                        <citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {A. Criscione},
-				title = {CPT Galaxy Tools},
-				year = {2019-2021},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-                        </citation>
-                        <yield/>
-		</citations>
-	</xml>
-        <xml name="citations-clm">
-		<citations>
-			<citation type="doi">10.1371/journal.pcbi.1008214</citation>
-			<citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {C. Maughmer},
-				title = {CPT Galaxy Tools},
-				year = {2017-2020},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-			</citation>
-                        <yield/>
-		</citations>
-	</xml>
-        <xml name="sl-citations-clm">
-			<citation type="bibtex">
-			@unpublished{galaxyTools,
-				author = {C. Maughmer},
-				title = {CPT Galaxy Tools},
-				year = {2017-2020},
-				note = {https://github.com/tamu-cpt/galaxy-tools/}
-			}
-			</citation>
-                        <yield/>
-	</xml>
-</macros>
--- a/cpt_xmfa/macros.xml	Tue Jul 05 05:07:32 2022 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-<macros>
-	<xml name="requirements">
-		<requirements>
-			<requirement type="package">progressivemauve</requirement>
-			<requirement type="package" version="3.8.13">python</requirement>
-			<requirement type="package" version="1.79">biopython</requirement>
-			<requirement type="package" version="1.2.2">cpt_gffparser</requirement>  
-			<yield/>
-		</requirements>
-	</xml>
-	<token name="@WRAPPER_VERSION@">2.4.0</token>
-	<xml name="citation/progressive_mauve">
-		<citation type="doi">10.1371/journal.pone.0011147</citation>
-	</xml>
-	<xml name="citation/gepard">
-		<citation type="doi">10.1093/bioinformatics/btm039</citation>
-	</xml>
-
-	<token name="@XMFA_INPUT@">
-		"$xmfa"
-	</token>
-	<xml name="xmfa_input"
-		token_formats="xmfa">
-		<param type="data" format="@FORMATS@" name="xmfa" label="XMFA MSA" />
-	</xml>
-
-	<token name="@XMFA_FA_INPUT@">
-		"$sequences"
-	</token>
-	<xml name="xmfa_fa_input">
-		<param type="data" format="fasta" name="sequences" label="Sequences in alignment"
-			help="These sequences should be the SAME DATASET that was used in the progressiveMauve run. Failing that, they should be provided in the same order as in original progressiveMauve run"/>
-
-	</xml>
-	<xml name="genome_selector">
-		<param name="genome_fasta" type="data" format="fasta" label="Source FASTA Sequence"/>
-	</xml>
-	<xml name="gff3_input">
-		<param label="GFF3 Annotations" name="gff3_data" type="data" format="gff3"/>
-	</xml>
-	<xml name="input/gff3+fasta">
-		<expand macro="gff3_input" />
-		<expand macro="genome_selector" />
-	</xml>
-	<token name="@INPUT_GFF@">
-	"$gff3_data"
-	</token>
-	<token name="@INPUT_FASTA@">
-		genomeref.fa
-	</token>
-	<token name="@GENOME_SELECTOR_PRE@">
-		ln -s $genome_fasta genomeref.fa;
-	</token>
-	<token name="@GENOME_SELECTOR@">
-		genomeref.fa
-	</token>
-        <xml name="input/fasta">
-		<param label="Fasta file" name="sequences" type="data" format="fasta"/>
-	</xml>
-</macros>
--- a/cpt_xmfa/mauve.js	Tue Jul 05 05:07:32 2022 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-!function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="build/",n(0)}([function(t,n,e){t.exports=e(1)},function(t,n,e){function r(t){return t/P*E}function i(){if(tx=k.event.transform,txf="translate("+tx.x+") scale("+tx.k+",1)",container.attr("transform",txf),1e3==tx.k){var t=tx.x;console.log(t),g()}}function o(){M=container.selectAll("genomes").data(F).enter().append("rect").attr("width",function(t){return t.length}).attr("height",j).attr("x",N.left).attr("y",function(t,n){return N.top+n*q}).attr("id",function(t,n){return t.name}).style("fill","green");$.selectAll("text").data(F).enter().append("text").attr("y",function(t,n){return N.top+n*q+L}).text(function(t){return t.name}).attr("font-family","sans-serif").attr("font-size","20px")}function a(t){colors={"%23FFFF00":"DNA replication/recombination","%23FFA500":"regulation","%2387CEFA":"structural/morphogenesis","%23FF00FF":"lysis","%2371BC78":"packaging",black:"other"},metadata=[t.seqid+" "+t.attributes.num,t.attributes.product,colors[t.attributes.color]],console.log(metadata.join(" | ")),sizes=["20px","15px","15px","15px"],U.length?U.map(function(t){t.text(function(t,n){return metadata[n]})}):(text=X.selectAll("text").data(metadata).enter().append("text").attr("x","100").attr("y",function(t,n){return 20*n+(A-80)/2}).text(function(t){return t}).attr("font-family","sans-serif").attr("font-size",function(t,n){return sizes[n]}),U.push(text))}function u(t,n){for(var e in R[t])if(R[t][e].indexOf(n)>-1)return 10*e}function s(t){for(var n in F)if(t==F[n].name)return n}function c(t,n,e){var i=s(n[0].seqid),o=t+N.left+r(n[e].start),a=D+N.top+j+L/2+u(i,e)+i*q,c=r(n[e].end-n[e].start),l=10;return c<5?"-"==n[e].strand?(o+=c,[[o,a],[o-c,a+l/2],[o,a+l]].join(" ")):[[o,a],[o+c,a+l/2],[o,a+l]].join(" "):"-"==n[e].strand?(o+=c,[[o,a],[o,a+l],[o-c+5,a+l],[o-c,a+l/2],[o-c+5,a]].join(" ")):[[o,a],[o,a+l],[o+c-5,a+l],[o+c,a+l/2],[o+c-5,a]].join(" ")}function l(t){var n=s(t[0].seqid),e=container.selectAll("gene"+n).data(t).enter().append("polygon").attr("points",function(n,e){return c(0,t,e)}).style("fill",function(t,n){return t.attributes.color?t.attributes.color.replace("%23","#"):"black"}).on("click",a);H.push(e)}function f(t,n){w[n].map(function(n){F[n.id-1].x_offset=r(t.start-n.start)})}function h(){M.attr("x",function(t){return N.left+t.x_offset}),I.map(function(t){t.attr("x",function(t,n){return F[t.id-1].x_offset+N.left+r(t.start)})}),B.map(function(t,n){t.attr("points",function(t,e){return p(w[n],e)})}),H.map(function(t,n){t.attr("points",function(t,e){return c(F[z[t.seqid]].x_offset,O[n],e)})})}function p(t,n){var e=function(){var t=1;for(var n in R)Object.keys(R[n]).length-1>t&&(t=Object.keys(R[n]).length-1);return t},r=(F[t[n].id-1].x_offset+N.left+t[n].start/P*E).toString(),i=(N.top+j+L/2+(t[n].id-1)*q).toString(),o=(F[t[n].id-1].x_offset+N.left+t[n].end/P*E).toString(),a=(N.top+j+L/2+(t[n].id-1)*q).toString(),u=o,s=(N.top+j+L/2+(t[n].id-1)*q+2*D+10*e()).toString(),c=(F[t[n+1].id-1].x_offset+N.left+t[n+1].end/P*E).toString(),l=(N.top-L/2+(t[n+1].id-1)*q).toString(),f=(F[t[n+1].id-1].x_offset+N.left+t[n+1].start/P*E).toString(),h=(N.top-L/2+(t[n+1].id-1)*q).toString(),p=r,d=s;return t[n].strand!=t[n+1].strand?[[r,i],[o,a],[u,s],[f,h],[c,l],[p,d]].join(" "):[[r,i],[o,a],[u,s],[c,l],[f,h],[p,d]].join(" ")}function d(t,n,e,i){var o=container.selectAll("lcb"+n).data(t).enter().append("rect").attr("width",function(t,n){return r(t.end-t.start)}).attr("height",j+L).attr("x",function(t,n){return N.left+r(t.start)}).attr("y",function(t,n){return N.top-L/2+(t.id-1)*q}).attr("id",function(t,n){return t.rid}).style("fill","blue").style("opacity",.5).on("click",function(t){f(t,n),h()});I.push(o),sliced_lcb=t.slice(0,t.length-1);var a=container.selectAll("lcb_area"+n).data(sliced_lcb).enter().append("polygon").attr("points",function(n,e){return p(t,e)}).style("fill","#c5c4c4").style("opacity",.65);B.push(a)}function g(){}function v(t){return Math.max.apply(null,t.map(function(t){return t.length}))}function y(t){q=A/t}function m(t){T.each(t,function(t,n,e){F.push({name:n.name,length:r(n.length),x_offset:0,seq:""}),z[n.name]=t})}function _(t){var n={};return t.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(t,e,r,i){n[e]=i}),n}function x(t){last_placed=[null];var n={0:[]};return t.map(function(t,e){for(locs in last_placed)if(null==last_placed[locs]||r(t.start)>1+last_placed[locs])return null==last_placed[locs]&&(last_placed.push(null),n[parseInt(locs)+1]=[]),last_placed[locs]=r(t.end),void n[locs].push(e)}),n}function b(t,n){return t.sort(function(t,e){var r=t[n],i=e[n];return r<i?-1:r>i?1:0})}var w,M,k=e(2),T=e(3),S=e(4),C=e(5),N={top:30,right:30,bottom:30,left:30},E=960-N.left-N.right,A=660-N.top-N.bottom,q=0,D=5,j=10,L=10,P=0,O=[],F=[],z={},R={},H=[],I=[],U=[],B=[],W=k.zoom().scaleExtent([1,1e3]).on("zoom",i),Y=k.select("body").append("svg").attr("width",E+N.left+N.right).attr("height",A+N.top+N.bottom).call(W),$=(Y.append("rect").attr("width",E+N.left+N.right).attr("height",A+N.top+N.bottom).style("fill","white").style("opacity",.4).style("pointer-events","all"),k.select("body").append("svg").attr("width",100).attr("height",A+N.top+N.bottom)),X=k.select("body").append("svg").attr("width",500).attr("height",A+N.top+N.bottom);container=Y.append("g");var V=_(location.search).url;V||(V="data.json"),T.getJSON(V,function(t){P=v(t.fasta),y(t.fasta.length),m(t.fasta),o();var n=["#a6cee3","#b2df8a","#fb9a99","#fdbf6f","#cab2d6","#ffff99"];n=n.map(function(t){return C(t)}),T.getJSON(t.xmfa,function(e){promises=[];var r=t.gff3.map(function(t){var n=T.get(t,function(t){var n=S.process(t,["CDS"]);O.push(n),R[s(n[0].seqid)]=x(b(n,"start"))});promises.push(n)});promises.push(r),Promise.all(promises).then(function(t){w=e;var r=e.map(function(t,e){var r=n[e%n.length];d(t,e,r.rgb().string(),r.darken(.5).rgb().string())});promises.push(r),Promise.all(promises).then(function(t){for(var n in O)l(O[n])})})}),t.fasta.map(function(t){T.get(t.path,function(n){F[z[t.name]].seq=n})})})},function(t,n,e){!function(t,e){e(n)}(this,function(t){"use strict";function n(t){return function(n,e){return Mc(t(n),e)}}function e(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rc?i*=10:o>=Hc?i*=5:o>=Ic&&(i*=2),n<t?-i:i}function r(t){return t.length}function i(){}function o(t,n){var e=new i;if(t instanceof i)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==n)for(;++o<a;)e.set(o,t[o]);else for(;++o<a;)e.set(n(r=t[o],o,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function a(){return{}}function u(t,n,e){t[n]=e}function s(){return o()}function c(t,n,e){t.set(n,e)}function l(){}function f(t,n){var e=new l;if(t instanceof l)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}function h(t){return+t}function p(t){return t*t}function d(t){return t*(2-t)}function g(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function v(t){return t*t*t}function y(t){return--t*t*t+1}function m(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function _(t){return 1-Math.cos(t*Ml)}function x(t){return Math.sin(t*Ml)}function b(t){return(1-Math.cos(wl*t))/2}function w(t){return Math.pow(2,10*t-10)}function M(t){return 1-Math.pow(2,-10*t)}function k(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function T(t){return 1-Math.sqrt(1-t*t)}function S(t){return Math.sqrt(1- --t*t)}function C(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function N(t){return 1-E(1-t)}function E(t){return(t=+t)<kl?jl*t*t:t<Sl?jl*(t-=Tl)*t+Cl:t<El?jl*(t-=Nl)*t+Al:jl*(t-=ql)*t+Dl}function A(t){return((t*=2)<=1?1-E(1-t):E(t-1)+1)/2}function q(t,n){return t[0]-n[0]||t[1]-n[1]}function D(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&$l(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function j(){this._x0=this._y0=this._x1=this._y1=null,this._=[]}function L(){return new j}function P(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,s,c,l,f,h,p=t._root,d={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=p,!(p=p[f=l<<1|c]))return i[f]=d,t;if(u=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===u&&e===s)return d.next=p,i?i[f]=d:t._root=d,t;do i=i?i[f]=new Array(4):t._root=new Array(4),(c=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a;while((f=l<<1|c)===(h=(s>=a)<<1|u>=o));return i[h]=p,i[f]=d,t}function O(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),s=1/0,c=1/0,l=-(1/0),f=-(1/0);for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(a[e]=r,u[e]=i,r<s&&(s=r),r>l&&(l=r),i<c&&(c=i),i>f&&(f=i));for(l<s&&(s=this._x0,l=this._x1),f<c&&(c=this._y0,f=this._y1),this.cover(s,c).cover(l,f),e=0;e<o;++e)P(this,a[e],u[e],t[e]);return this}function F(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function z(t){return t[0]}function R(t){return t[1]}function H(t,n,e){var r=new I(null==n?z:n,null==e?R:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function I(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function U(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function B(t){if(!(t>=1))throw new Error;this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function W(t){if(!t._start)try{Y(t)}catch(n){if(t._tasks[t._ended+t._active-1])X(t,n);else if(!t._data)throw n}}function Y(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=$(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||vf)}}function $(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?X(t,e):(t._data[n]=r,t._waiting?W(t):V(t))))}}function X(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(t){}t._active=NaN,V(t)}function V(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function G(t){return new B(arguments.length?+t:1/0)}function J(t){return t.innerRadius}function Z(t){return t.outerRadius}function Q(t){return t.startAngle}function K(t){return t.endAngle}function tt(t){return t&&t.padAngle}function nt(t){return t>=1?xf:t<=-1?-xf:Math.asin(t)}function et(t,n,e,r,i,o,a,u){var s=e-t,c=r-n,l=a-i,f=u-o,h=(l*(n-o)-f*(t-i))/(f*s-l*c);return[t+h*s,n+h*c]}function rt(t,n,e,r,i,o,a){var u=t-e,s=n-r,c=(a?o:-o)/Math.sqrt(u*u+s*s),l=c*s,f=-c*u,h=t+l,p=n+f,d=e+l,g=r+f,v=(h+d)/2,y=(p+g)/2,m=d-h,_=g-p,x=m*m+_*_,b=i-o,w=h*g-d*p,M=(_<0?-1:1)*Math.sqrt(Math.max(0,b*b*x-w*w)),k=(w*_-m*M)/x,T=(-w*m-_*M)/x,S=(w*_+m*M)/x,C=(-w*m+_*M)/x,N=k-v,E=T-y,A=S-v,q=C-y;return N*N+E*E>A*A+q*q&&(k=S,T=C),{cx:k,cy:T,x01:-l,y01:-f,x11:k*(i/b-1),y11:T*(i/b-1)}}function it(t){this._context=t}function ot(t){return t[0]}function at(t){return t[1]}function ut(t){this._curve=t}function st(t){function n(n){return new ut(t(n))}return n._curve=t,n}function ct(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(st(t)):n()._curve},t}function lt(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t){this._context=t}function dt(t,n){this._basis=new ft(t),this._beta=n}function gt(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function vt(t,n){this._context=t,this._k=(1-n)/6}function yt(t,n){this._context=t,this._k=(1-n)/6}function mt(t,n){this._context=t,this._k=(1-n)/6}function _t(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>mf){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>mf){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function xt(t,n){this._context=t,this._alpha=n}function bt(t,n){this._context=t,this._alpha=n}function wt(t,n){this._context=t,this._alpha=n}function Mt(t){this._context=t}function kt(t){return t<0?-1:1}function Tt(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(kt(o)+kt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function St(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Ct(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function Nt(t){this._context=t}function Et(t){this._context=new At(t)}function At(t){this._context=t}function qt(t){return new Nt(t)}function Dt(t){return new Et(t)}function jt(t){this._context=t}function Lt(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Pt(t,n){this._context=t,this._t=n}function Ot(t){return new Pt(t,0)}function Ft(t){return new Pt(t,1)}function zt(t,n){return t[n]}function Rt(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Ht(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function It(){}function Ut(t){var n;return t=(t+"").trim().toLowerCase(),(n=Sh.exec(t))?(n=parseInt(n[1],16),new Xt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Ch.exec(t))?Bt(parseInt(n[1],16)):(n=Nh.exec(t))?new Xt(n[1],n[2],n[3],1):(n=Eh.exec(t))?new Xt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ah.exec(t))?Wt(n[1],n[2],n[3],n[4]):(n=qh.exec(t))?Wt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Dh.exec(t))?Vt(n[1],n[2]/100,n[3]/100,1):(n=jh.exec(t))?Vt(n[1],n[2]/100,n[3]/100,n[4]):Lh.hasOwnProperty(t)?Bt(Lh[t]):"transparent"===t?new Xt(NaN,NaN,NaN,0):null}function Bt(t){return new Xt(t>>16&255,t>>8&255,255&t,1)}function Wt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Xt(t,n,e,r)}function Yt(t){return t instanceof It||(t=Ut(t)),t?(t=t.rgb(),new Xt(t.r,t.g,t.b,t.opacity)):new Xt}function $t(t,n,e,r){return 1===arguments.length?Yt(t):new Xt(t,n,e,null==r?1:r)}function Xt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Vt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Zt(t,n,e,r)}function Gt(t){if(t instanceof Zt)return new Zt(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=Ut(t)),!t)return new Zt;if(t instanceof Zt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new Zt(a,u,s,t.opacity)}function Jt(t,n,e,r){return 1===arguments.length?Gt(t):new Zt(t,n,e,null==r?1:r)}function Zt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Qt(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Kt(t){if(t instanceof nn)return new nn(t.l,t.a,t.b,t.opacity);if(t instanceof cn){var n=t.h*Ph;return new nn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Xt||(t=Yt(t));var e=an(t.r),r=an(t.g),i=an(t.b),o=en((.4124564*e+.3575761*r+.1804375*i)/zh),a=en((.2126729*e+.7151522*r+.072175*i)/Rh),u=en((.0193339*e+.119192*r+.9503041*i)/Hh);return new nn(116*a-16,500*(o-a),200*(a-u),t.opacity)}function tn(t,n,e,r){return 1===arguments.length?Kt(t):new nn(t,n,e,null==r?1:r)}function nn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function en(t){return t>Wh?Math.pow(t,1/3):t/Bh+Ih}function rn(t){return t>Uh?t*t*t:Bh*(t-Ih)}function on(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function an(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function un(t){if(t instanceof cn)return new cn(t.h,t.c,t.l,t.opacity);t instanceof nn||(t=Kt(t));var n=Math.atan2(t.b,t.a)*Oh;return new cn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function sn(t,n,e,r){return 1===arguments.length?un(t):new cn(t,n,e,null==r?1:r)}function cn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function ln(t){if(t instanceof hn)return new hn(t.h,t.s,t.l,t.opacity);t instanceof Xt||(t=Yt(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Qh*r+Jh*n-Zh*e)/(Qh+Jh-Zh),o=r-i,a=(Gh*(e-i)-Xh*o)/Vh,u=Math.sqrt(a*a+o*o)/(Gh*i*(1-i)),s=u?Math.atan2(a,o)*Oh-120:NaN;return new hn(s<0?s+360:s,u,i,t.opacity)}function fn(t,n,e,r){return 1===arguments.length?ln(t):new hn(t,n,e,null==r?1:r)}function hn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function pn(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function dn(t,n){return function(e){return t+e*n}}function gn(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function vn(t,n){var e=n-t;return e?dn(t,e>180||e<-180?e-360*Math.round(e/360):e):op(isNaN(t)?n:t)}function yn(t){return 1===(t=+t)?mn:function(n,e){return e-n?gn(n,e,t):op(isNaN(n)?e:n)}}function mn(t,n){var e=n-t;return e?dn(t,e):op(isNaN(t)?n:t)}function _n(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=$t(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}function xn(t){return function(){return t}}function bn(t){return function(n){return t(n)+""}}function wn(t){return"none"===t?_p:(Kh||(Kh=document.createElement("DIV"),tp=document.documentElement,np=document.defaultView),Kh.style.transform=t,t=np.getComputedStyle(tp.appendChild(Kh),null).getPropertyValue("transform"),tp.removeChild(Kh),t=t.slice(7,-1).split(","),xp(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Mn(t){return null==t?_p:(ep||(ep=document.createElementNS("http://www.w3.org/2000/svg","g")),ep.setAttribute("transform",t),(t=ep.transform.baseVal.consolidate())?(t=t.matrix,xp(t.a,t.b,t.c,t.d,t.e,t.f)):_p)}function kn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:fp(t,i)},{i:s-2,x:fp(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:fp(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:fp(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:fp(t,e)},{i:u-2,x:fp(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Tn(t){return((t=Math.exp(t))+1/t)/2}function Sn(t){return((t=Math.exp(t))-1/t)/2}function Cn(t){return((t=Math.exp(2*t))-1)/(t+1)}function Nn(t){return function(n,e){var r=t((n=Jt(n)).h,(e=Jt(e)).h),i=mn(n.s,e.s),o=mn(n.l,e.l),a=mn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}function En(t,n){var e=mn((t=tn(t)).l,(n=tn(n)).l),r=mn(t.a,n.a),i=mn(t.b,n.b),o=mn(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function An(t){return function(n,e){var r=t((n=sn(n)).h,(e=sn(e)).h),i=mn(n.c,e.c),o=mn(n.l,e.l),a=mn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}function qn(t){return function n(e){function r(n,r){var i=t((n=fn(n)).h,(r=fn(r)).h),o=mn(n.s,r.s),a=mn(n.l,r.l),u=mn(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}function Dn(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new jn(r)}function jn(t){this._=t}function Ln(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Pn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function On(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Pp,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Fn(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function zn(t,n){var e=Fn(t);return function(r,i){return n(e(r),i,t)}}function Rn(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function Hn(t){return function(n,e){t(null==n?e:null)}}function In(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Un(t,n){return function(e){return t(e.responseText,n)}}function Bn(){return cd||(hd(Wn),cd=fd.now()+ld)}function Wn(){cd=0}function Yn(){this._call=this._time=this._next=null}function $n(t,n,e){var r=new Yn;return r.restart(t,n,e),r}function Xn(){Bn(),++id;for(var t,n=Op;n;)(t=cd-n._time)>=0&&n._call.call(null,t),n=n._next;--id}function Vn(){cd=(sd=fd.now())+ld,id=od=0;try{Xn()}finally{id=0,Jn(),cd=0}}function Gn(){var t=fd.now(),n=t-sd;n>ud&&(ld-=n,sd=t)}function Jn(){for(var t,n,e=Op,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Op=n);Fp=t,Zn(r)}function Zn(t){if(!id){od&&(od=clearTimeout(od));var n=t-cd;n>24?(t<1/0&&(od=setTimeout(Vn,n)),ad&&(ad=clearInterval(ad))):(ad||(ad=setInterval(Gn,ud)),id=1,hd(Vn))}}function Qn(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do a.push(new Date(+e));while(n(e,o),t(e),e<r);return a},i.filter=function(e){return Qn(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return gd.setTime(+n),vd.setTime(+r),t(gd),t(vd),Math.floor(e(gd,vd))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}function Kn(t){return Qn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xd)/Md})}function te(t){return Qn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/Md})}function ne(t){if(!(n=Ng.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",a=!!n[5],u=n[6]&&+n[6],s=!!n[7],c=n[8]&&+n[8].slice(1),l=n[9]||"";"n"===l?(s=!0,l="g"):Cg[l]||(l=""),(a||"0"===e&&"="===r)&&(a=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=s,this.precision=c,this.type=l}function ee(t){return t}function re(n){return Ag=Dg(n),t.format=Ag.format,t.formatPrefix=Ag.formatPrefix,Ag}function ie(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function oe(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ae(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function ue(t){function n(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=Fg[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function e(t,n){return function(e){var i=ae(1900),o=r(i,t,e+="",0);if(o!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var a="Z"in i?oe(ae(i.y)).getUTCDay():n(ae(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,oe(i)):n(i)}}function r(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(i=n.charCodeAt(a++),37===i){if(i=n.charAt(a++),o=U[i in Fg?n.charAt(a++):i],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=A.exec(n.slice(e));return r?(t.p=q[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=P[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=D.exec(n.slice(e));return r?(t.w=j[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=z.exec(n.slice(e));return r?(t.m=R[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=O.exec(n.slice(e));return r?(t.m=F[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){return r(t,w,n,e)}function l(t,n,e){return r(t,M,n,e)}function f(t,n,e){return r(t,k,n,e)}function h(t){return C[t.getDay()]}function p(t){return S[t.getDay()]}function d(t){return E[t.getMonth()]}function g(t){return N[t.getMonth()]}function v(t){return T[+(t.getHours()>=12)]}function y(t){return C[t.getUTCDay()]}function m(t){return S[t.getUTCDay()]}function _(t){return E[t.getUTCMonth()]}function x(t){return N[t.getUTCMonth()]}function b(t){return T[+(t.getUTCHours()>=12)]}var w=t.dateTime,M=t.date,k=t.time,T=t.periods,S=t.days,C=t.shortDays,N=t.months,E=t.shortMonths,A=le(T),q=fe(T),D=le(S),j=fe(S),L=le(C),P=fe(C),O=le(N),F=fe(N),z=le(E),R=fe(E),H={a:h,A:p,b:d,B:g,c:null,d:Se,e:Se,H:Ce,I:Ne,j:Ee,L:Ae,m:qe,M:De,p:v,S:je,U:Le,w:Pe,W:Oe,x:null,X:null,y:Fe,Y:ze,Z:Re,"%":tr},I={a:y,A:m,b:_,B:x,c:null,d:He,e:He,H:Ie,I:Ue,j:Be,L:We,m:Ye,M:$e,p:b,S:Xe,U:Ve,w:Ge,W:Je,x:null,X:null,y:Ze,Y:Qe,Z:Ke,"%":tr},U={a:o,A:a,b:u,B:s,c:c,d:_e,e:_e,H:be,I:be,j:xe,L:ke,m:me,M:we,p:i,S:Me,U:pe,w:he,W:de,x:l,X:f,y:ve,Y:ge,Z:ye,"%":Te};return H.x=n(M,H),H.X=n(k,H),H.c=n(w,H),I.x=n(M,I),I.X=n(k,I),I.c=n(w,I),{format:function(t){var e=n(t+="",H);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",ie);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",I);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,oe);return n.toString=function(){return t},n}}}function se(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function ce(t){return t.replace(Hg,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function fe(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function he(t,n,e){var r=zg.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function pe(t,n,e){var r=zg.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function de(t,n,e){var r=zg.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function ge(t,n,e){var r=zg.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ve(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ye(t,n,e){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function me(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function _e(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function xe(t,n,e){var r=zg.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function be(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function we(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Me(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ke(t,n,e){var r=zg.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Te(t,n,e){var r=Rg.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Se(t,n){return se(t.getDate(),n,2)}function Ce(t,n){return se(t.getHours(),n,2)}function Ne(t,n){return se(t.getHours()%12||12,n,2)}function Ee(t,n){return se(1+Ad.count(Vd(t),t),n,3)}function Ae(t,n){return se(t.getMilliseconds(),n,3)}function qe(t,n){return se(t.getMonth()+1,n,2)}function De(t,n){return se(t.getMinutes(),n,2)}function je(t,n){return se(t.getSeconds(),n,2)}function Le(t,n){return se(Dd.count(Vd(t),t),n,2)}function Pe(t){return t.getDay()}function Oe(t,n){return se(jd.count(Vd(t),t),n,2)}function Fe(t,n){return se(t.getFullYear()%100,n,2)}function ze(t,n){return se(t.getFullYear()%1e4,n,4)}function Re(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+se(n/60|0,"0",2)+se(n%60,"0",2)}function He(t,n){return se(t.getUTCDate(),n,2)}function Ie(t,n){return se(t.getUTCHours(),n,2)}function Ue(t,n){return se(t.getUTCHours()%12||12,n,2)}function Be(t,n){return se(1+tg.count(mg(t),t),n,3)}function We(t,n){return se(t.getUTCMilliseconds(),n,3)}function Ye(t,n){return se(t.getUTCMonth()+1,n,2)}function $e(t,n){return se(t.getUTCMinutes(),n,2)}function Xe(t,n){return se(t.getUTCSeconds(),n,2)}function Ve(t,n){return se(eg.count(mg(t),t),n,2)}function Ge(t){return t.getUTCDay()}function Je(t,n){return se(rg.count(mg(t),t),n,2)}function Ze(t,n){return se(t.getUTCFullYear()%100,n,2)}function Qe(t,n){return se(t.getUTCFullYear()%1e4,n,4)}function Ke(){return"+0000"}function tr(){return"%"}function nr(n){return jg=ue(n),t.timeFormat=jg.format,t.timeParse=jg.parse,t.utcFormat=jg.utcFormat,t.utcParse=jg.utcParse,jg}function er(t){return t.toISOString()}function rr(t){var n=new Date(t);return isNaN(n)?null:n}function ir(t){function n(n){var o=n+"",a=e.get(o);if(!a){if(i!==Xg)return i;e.set(o,a=r.push(n))}return t[(a-1)%t.length]}var e=o(),r=[],i=Xg;return t=null==t?[]:$g.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=o();for(var i,a,u=-1,s=t.length;++u<s;)e.has(a=(i=t[u])+"")||e.set(a,r.push(i));return n},n.range=function(e){return arguments.length?(t=$g.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return ir().domain(r).range(t).unknown(i)},n}function or(){function t(){var t=i().length,r=a[1]<a[0],f=a[r-0],h=a[1-r];n=(h-f)/Math.max(1,t-s+2*c),u&&(n=Math.floor(n)),f+=(h-f-n*(t-s))*l,e=n*(1-s),u&&(f=Math.round(f),e=Math.round(e));var p=zc(t).map(function(t){return f+n*t});return o(r?p.reverse():p)}var n,e,r=ir().unknown(void 0),i=r.domain,o=r.range,a=[0,1],u=!1,s=0,c=0,l=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(a=[+n[0],+n[1]],t()):a.slice()},r.rangeRound=function(n){return a=[+n[0],+n[1]],u=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(u=!!n,t()):u},r.padding=function(n){return arguments.length?(s=c=Math.max(0,Math.min(1,n)),t()):s},r.paddingInner=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.paddingOuter=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),
-t()):c},r.align=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),t()):l},r.copy=function(){return or().domain(i()).range(a).round(u).paddingInner(s).paddingOuter(c).align(l)},t()}function ar(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ar(n())},t}function ur(){return ar(or().paddingInner(1))}function sr(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Vg(n)}function cr(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function lr(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function fr(t,n,e,r){var i=t[0],o=t[1],a=n[0],u=n[1];return o<i?(i=e(o,i),a=r(u,a)):(i=e(i,o),a=r(a,u)),function(t){return a(i(t))}}function hr(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),a=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)o[u]=e(t[u],t[u+1]),a[u]=r(n[u],n[u+1]);return function(n){var e=Sc(t,n,1,i)-1;return a[e](o[e](n))}}function pr(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function dr(t,n){function e(){return i=Math.min(u.length,s.length)>2?hr:fr,o=a=null,r}function r(n){return(o||(o=i(u,s,l?cr(t):t,c)))(+n)}var i,o,a,u=Jg,s=Jg,c=vp,l=!1;return r.invert=function(t){return(a||(a=i(s,u,sr,l?lr(n):n)))(+t)},r.domain=function(t){return arguments.length?(u=Yg.call(t,Gg),e()):u.slice()},r.range=function(t){return arguments.length?(s=$g.call(t),e()):s.slice()},r.rangeRound=function(t){return s=$g.call(t),c=yp,e()},r.clamp=function(t){return arguments.length?(l=!!t,e()):l},r.interpolate=function(t){return arguments.length?(c=t,e()):c},e()}function gr(t){var n=t.domain;return t.ticks=function(t){var e=n();return Uc(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Zg(n(),t,e)},t.nice=function(r){var i=n(),o=i.length-1,a=null==r?10:r,u=i[0],s=i[o],c=e(u,s,a);return c&&(c=e(Math.floor(u/c)*c,Math.ceil(s/c)*c,a),i[0]=Math.floor(u/c)*c,i[o]=Math.ceil(s/c)*c,n(i)),t},t}function vr(){var t=dr(sr,fp);return t.copy=function(){return pr(t,vr())},gr(t)}function yr(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=Yg.call(e,Gg),t):n.slice()},t.copy=function(){return yr().domain(n)},gr(t)}function mr(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:Vg(n)}function _r(t,n){return t<0?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function xr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function br(t){return 10===t?xr:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function wr(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Mr(t){return function(n){return-t(-n)}}function kr(){function n(){return o=wr(i),a=br(i),r()[0]<0&&(o=Mr(o),a=Mr(a)),e}var e=dr(mr,_r).domain([1,10]),r=e.domain,i=10,o=wr(10),a=br(10);return e.base=function(t){return arguments.length?(i=+t,n()):i},e.domain=function(t){return arguments.length?(r(t),n()):r()},e.ticks=function(t){var n,e=r(),u=e[0],s=e[e.length-1];(n=s<u)&&(h=u,u=s,s=h);var c,l,f,h=o(u),p=o(s),d=null==t?10:+t,g=[];if(!(i%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,u>0){for(;h<p;++h)for(l=1,c=a(h);l<i;++l)if(f=c*l,!(f<u)){if(f>s)break;g.push(f)}}else for(;h<p;++h)for(l=i-1,c=a(h);l>=1;--l)if(f=c*l,!(f<u)){if(f>s)break;g.push(f)}}else g=Uc(h,p,Math.min(p-h,d)).map(a);return n?g.reverse():g},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var u=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/a(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=u?r(t):""}},e.nice=function(){return r(Qg(r(),{floor:function(t){return a(Math.floor(o(t)))},ceil:function(t){return a(Math.ceil(o(t)))}}))},e.copy=function(){return pr(e,kr().base(i))},e}function Tr(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function Sr(){function t(t,n){return(n=Tr(n,e)-(t=Tr(t,e)))?function(r){return(Tr(r,e)-t)/n}:Vg(n)}function n(t,n){return n=Tr(n,e)-(t=Tr(t,e)),function(r){return Tr(t+n*r,1/e)}}var e=1,r=dr(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return pr(r,Sr().exponent(e))},gr(r)}function Cr(){return Sr().exponent(.5)}function Nr(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=Yc(e,t/o);return n}function n(t){if(!isNaN(t=+t))return r[Sc(i,t)]}var e=[],r=[],i=[];return n.invertExtent=function(t){var n=r.indexOf(t);return n<0?[NaN,NaN]:[n>0?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]},n.domain=function(n){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=n.length;i<o;++i)r=n[i],null==r||isNaN(r=+r)||e.push(r);return e.sort(Mc),t()},n.range=function(n){return arguments.length?(r=$g.call(n),t()):r.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return Nr().domain(e).range(r)},n}function Er(){function t(t){if(t<=t)return a[Sc(o,t,0,i)]}function n(){var n=-1;for(o=new Array(i);++n<i;)o[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,o=[.5],a=[0,1];return t.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n()):[e,r]},t.range=function(t){return arguments.length?(i=(a=$g.call(t)).length-1,n()):a.slice()},t.invertExtent=function(t){var n=a.indexOf(t);return n<0?[NaN,NaN]:n<1?[e,o[0]]:n>=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return Er().domain([e,r]).range(a)},gr(t)}function Ar(){function t(t){if(t<=t)return e[Sc(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=$g.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=$g.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return Ar().domain(n).range(e)},t}function qr(t){return new Date(t)}function Dr(t){return t instanceof Date?+t:+new Date(+t)}function jr(t,n,r,i,o,a,u,s,c){function l(e){return(u(e)<e?g:a(e)<e?v:o(e)<e?y:i(e)<e?m:n(e)<e?r(e)<e?_:x:t(e)<e?b:w)(e)}function f(n,r,i,o){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(i-r)/n,u=kc(function(t){return t[2]}).right(M,a);u===M.length?(o=e(r/ov,i/ov,n),n=t):u?(u=M[a/M[u-1][2]<M[u][2]/a?u-1:u],o=u[1],n=u[0]):(o=e(r,i,n),n=s)}return null==o?n:n.every(o)}var h=dr(sr,fp),p=h.invert,d=h.domain,g=c(".%L"),v=c(":%S"),y=c("%I:%M"),m=c("%I %p"),_=c("%a %d"),x=c("%b %d"),b=c("%B"),w=c("%Y"),M=[[u,1,Kg],[u,5,5*Kg],[u,15,15*Kg],[u,30,30*Kg],[a,1,tv],[a,5,5*tv],[a,15,15*tv],[a,30,30*tv],[o,1,nv],[o,3,3*nv],[o,6,6*nv],[o,12,12*nv],[i,1,ev],[i,2,2*ev],[r,1,rv],[n,1,iv],[n,3,3*iv],[t,1,ov]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(Yg.call(t,Dr)):d().map(qr)},h.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(e=i,i=o,o=e),e=f(t,i,o,n),e=e?e.range(i,o+1):[],a?e.reverse():e},h.tickFormat=function(t,n){return null==n?l:c(n)},h.nice=function(t,n){var e=d();return(t=f(t,e[0],e[e.length-1],n))?d(Qg(e,t)):h},h.copy=function(){return pr(h,jr(t,n,r,i,o,a,u,s,c))},h}function Lr(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Pr(t){function n(n){var o=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,o)):o)}var e=0,r=1,i=!1;return n.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n):[e,r]},n.clamp=function(t){return arguments.length?(i=!!t,n):i},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Pr(t).domain([e,r]).clamp(i)},gr(n)}function Or(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===wv&&n.documentElement.namespaceURI===wv?n.createElement(t):n.createElementNS(e,t)}}function Fr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function zr(){return new Rr}function Rr(){this._="@"+(++Sv).toString(36)}function Hr(t,n,e){return t=Ir(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Ir(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function Ur(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function Br(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Wr(t,n,e){var r=qv.hasOwnProperty(t.type)?Hr:Ir;return function(i,o,a){var u,s=this.__on,c=r(n,o,a);if(s)for(var l=0,f=s.length;l<f;++l)if((u=s[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(u):this.__on=[u]}}function Yr(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}}function $r(){}function Xr(){return[]}function Vr(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Gr(t,n,e,r,i,o){for(var a,u=0,s=n.length,c=o.length;u<c;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new Vr(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function Jr(t,n,e,r,i,o,a){var u,s,c,l={},f=n.length,h=o.length,p=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(p[u]=c=Yv+a.call(s,s.__data__,u,n),c in l?i[u]=s:l[c]=s);for(u=0;u<h;++u)c=Yv+a.call(t,o[u],u,o),(s=l[c])?(r[u]=s,s.__data__=o[u],l[c]=null):e[u]=new Vr(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&l[p[u]]===s&&(i[u]=s)}function Zr(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Qr(t){return function(){this.removeAttribute(t)}}function Kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ti(t,n){return function(){this.setAttribute(t,n)}}function ni(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ei(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function ri(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function ii(t){return function(){this.style.removeProperty(t)}}function oi(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ai(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function ui(t){return function(){delete this[t]}}function si(t,n){return function(){this[t]=n}}function ci(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function li(t){return t.trim().split(/^|\s+/)}function fi(t){return t.classList||new hi(t)}function hi(t){this._node=t,this._names=li(t.getAttribute("class")||"")}function pi(t,n){for(var e=fi(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function di(t,n){for(var e=fi(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function gi(t){return function(){pi(this,t)}}function vi(t){return function(){di(this,t)}}function yi(t,n){return function(){(n.apply(this,arguments)?pi:di)(this,t)}}function mi(){this.textContent=""}function _i(t){return function(){this.textContent=t}}function xi(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function bi(){this.innerHTML=""}function wi(t){return function(){this.innerHTML=t}}function Mi(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ki(){this.nextSibling&&this.parentNode.appendChild(this)}function Ti(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Si(){return null}function Ci(){var t=this.parentNode;t&&t.removeChild(this)}function Ni(t,n,e){var r=iy(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ei(t,n){return function(){return Ni(this,t,n)}}function Ai(t,n){return function(){return Ni(this,t,n.apply(this,arguments))}}function qi(t,n){this._groups=t,this._parents=n}function Di(){return new qi([[document.documentElement]],yy)}function ji(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>ky)throw new Error("too late");return e}function Li(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Sy)throw new Error("too late");return e}function Pi(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Oi(t,n,e){function r(t){e.state=Ty,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var c,l,f,h;if(e.state!==Ty)return a();for(c in s)if(h=s[c],h.name===e.name){if(h.state===Cy)return pd(i);h.state===Ny?(h.state=Ay,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[c]):+c<n&&(h.state=Ay,h.timer.stop(),delete s[c])}if(pd(function(){e.state===Cy&&(e.state=Ny,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=Sy,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Sy){for(e.state=Cy,u=new Array(f=e.tween.length),c=0,l=-1;c<f;++c)(h=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(u[++l]=h);u.length=l+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=Ey,1),i=-1,o=u.length;++i<o;)u[i].call(null,r);e.state===Ey&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){e.state=Ay,e.timer.stop(),delete s[n];for(var r in s)return;delete t.__transition}var u,s=t.__transition;s[n]=e,e.timer=$n(r,0,e.time)}function Fi(t,n){var e,r;return function(){var i=Li(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function zi(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Li(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,c=i.length;s<c;++s)if(i[s].name===n){i[s]=u;break}s===c&&i.push(u)}o.tween=i}}function Ri(t,n,e){var r=t._id;return t.each(function(){var t=Li(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Pi(t,r).value[n]}}function Hi(t){return function(){this.removeAttribute(t)}}function Ii(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ui(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Bi(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Wi(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function Yi(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function $i(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function Xi(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function Vi(t,n){return function(){ji(this,t).delay=+n.apply(this,arguments)}}function Gi(t,n){return n=+n,function(){ji(this,t).delay=n}}function Ji(t,n){return function(){Li(this,t).duration=+n.apply(this,arguments)}}function Zi(t,n){return n=+n,function(){Li(this,t).duration=n}}function Qi(t,n){if("function"!=typeof n)throw new Error;return function(){Li(this,t).ease=n}}function Ki(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function to(t,n,e){var r,i,o=Ki(n)?ji:Li;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function no(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function eo(t,n){var e,r,i;return function(){var o=iy(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function ro(t){return function(){this.style.removeProperty(t)}}function io(t,n,e){var r,i;return function(){var o=iy(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function oo(t,n,e){var r,i,o;return function(){var a=iy(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function ao(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function uo(t){return function(){this.textContent=t}}function so(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function co(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function lo(t){return Di().transition(t)}function fo(){return++Ky}function ho(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return nm.time=Bn(),nm;return e}function po(t,n,e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}function go(t,n,e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}function vo(t){var n=t.bandwidth()/2;return t.round()&&(n=Math.round(n)),function(e){return t(e)+n}}function yo(){return!this.__axis}function mo(t,n){function e(e){var c,l=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,f=null==o?n.tickFormat?n.tickFormat.apply(n,r):am:o,h=Math.max(a,0)+s,p=t===um||t===cm?po:go,d=n.range(),g=d[0]+.5,v=d[d.length-1]+.5,y=(n.bandwidth?vo:am)(n.copy()),m=e.selection?e.selection():e,_=m.selectAll(".domain").data([null]),x=m.selectAll(".tick").data(l,n).order(),b=x.exit(),w=x.enter().append("g").attr("class","tick"),M=x.select("line"),k=x.select("text"),T=t===um||t===lm?-1:1,S=t===lm||t===sm?(c="x","y"):(c="y","x");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),x=x.merge(w),M=M.merge(w.append("line").attr("stroke","#000").attr(c+"2",T*a).attr(S+"1",.5).attr(S+"2",.5)),k=k.merge(w.append("text").attr("fill","#000").attr(c,T*h).attr(S,.5).attr("dy",t===um?"0em":t===cm?"0.71em":"0.32em")),e!==m&&(_=_.transition(e),x=x.transition(e),M=M.transition(e),k=k.transition(e),b=b.transition(e).attr("opacity",fm).attr("transform",function(t){return p(y,this.parentNode.__axis||y,t)}),w.attr("opacity",fm).attr("transform",function(t){return p(this.parentNode.__axis||y,y,t)})),b.remove(),_.attr("d",t===lm||t==sm?"M"+T*u+","+g+"H0.5V"+v+"H"+T*u:"M"+g+","+T*u+"V0.5H"+v+"V"+T*u),x.attr("opacity",1).attr("transform",function(t){return p(y,y,t)}),M.attr(c+"2",T*a),k.attr(c,T*h).text(f),m.filter(yo).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===sm?"start":t===lm?"end":"middle"),m.each(function(){this.__axis=y})}var r=[],i=null,o=null,a=6,u=6,s=3;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=om.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:om.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:om.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(o=t,e):o},e.tickSize=function(t){return arguments.length?(a=u=+t,e):a},e.tickSizeInner=function(t){return arguments.length?(a=+t,e):a},e.tickSizeOuter=function(t){return arguments.length?(u=+t,e):u},e.tickPadding=function(t){return arguments.length?(s=+t,e):s},e}function _o(t){return mo(um,t)}function xo(t){return mo(sm,t)}function bo(t){return mo(cm,t)}function wo(t){return mo(lm,t)}function Mo(t,n){return t.parent===n.parent?1:2}function ko(t){return t.reduce(To,0)/t.length}function To(t,n){return t+n.x}function So(t){return 1+t.reduce(Co,0)}function Co(t,n){return Math.max(t,n.y)}function No(t){for(var n;n=t.children;)t=n[0];return t}function Eo(t){for(var n;n=t.children;)t=n[n.length-1];return t}function Ao(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function qo(t,n){var e,r,i,o,a,u=new Oo(t),s=+t.value&&(u.value=t.value),c=[u];for(null==n&&(n=jo);e=c.pop();)if(s&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)c.push(r=e.children[o]=new Oo(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Po)}function Do(){return qo(this).eachBefore(Lo)}function jo(t){return t.children}function Lo(t){t.data=t.data.data}function Po(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function Oo(t){this.data=t,this.depth=this.height=0,this.parent=null}function Fo(t){this._=t,this.next=null}function zo(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r-n.r;return i*i+1e-6>e*e+r*r}function Ro(t,n){var e,r,i,o=null,a=t.head;switch(n.length){case 1:e=Ho(n[0]);break;case 2:e=Io(n[0],n[1]);break;case 3:e=Uo(n[0],n[1],n[2])}for(;a;)i=a._,r=a.next,e&&zo(e,i)?o=a:(o?(t.tail=o,o.next=null):t.head=t.tail=null,n.push(i),e=Ro(t,n),n.pop(),t.head?(a.next=t.head,t.head=a):(a.next=null,t.head=t.tail=a),o=t.tail,o.next=r),a=r;return t.tail=o,e}function Ho(t){return{x:t.x,y:t.y,r:t.r}}function Io(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,s=o-e,c=a-r,l=u-i,f=Math.sqrt(s*s+c*c);return{x:(e+o+s/f*l)/2,y:(r+a+c/f*l)/2,r:(f+i+u)/2}}function Uo(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,s=n.r,c=e.x,l=e.y,f=e.r,h=2*(r-a),p=2*(i-u),d=2*(s-o),g=r*r+i*i-o*o-a*a-u*u+s*s,v=2*(r-c),y=2*(i-l),m=2*(f-o),_=r*r+i*i-o*o-c*c-l*l+f*f,x=v*p-h*y,b=(p*_-y*g)/x-r,w=(y*d-p*m)/x,M=(v*g-h*_)/x-i,k=(h*m-v*d)/x,T=w*w+k*k-1,S=2*(b*w+M*k+o),C=b*b+M*M-o*o,N=(-S-Math.sqrt(S*S-4*T*C))/(2*T);return{x:b+w*N+r,y:M+k*N+i,r:N}}function Bo(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,a=t.r+e.r,u=n.x-r,s=n.y-i,c=u*u+s*s;if(c){var l=.5+((a*=a)-(o*=o))/(2*c),f=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);e.x=r+l*u+f*s,e.y=i+l*s-f*u}else e.x=r+a,e.y=i}function Wo(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i>e*e+r*r}function Yo(t,n,e){var r=t.x-n,i=t.y-e;return r*r+i*i}function $o(t){this._=t,this.next=null,this.previous=null}function Xo(t){if(!(i=t.length))return 0;var n,e,r,i;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Bo(e,n,r=t[2]);var o,a,u,s,c,l,f,h=n.r*n.r,p=e.r*e.r,d=r.r*r.r,g=h+p+d,v=h*n.x+p*e.x+d*r.x,y=h*n.y+p*e.y+d*r.y;n=new $o(n),e=new $o(e),r=new $o(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u<i;++u){if(Bo(n._,e._,r=t[u]),r=new $o(r),(c=n.previous)===(s=e.next)){if(Wo(s._,r._)){n=e,e=s,--u;continue t}}else{l=s._.r,f=c._.r;do if(l<=f){if(Wo(s._,r._)){e=s,n.next=e,e.previous=n,--u;continue t}s=s.next,l+=s._.r}else{if(Wo(c._,r._)){n=c,n.next=e,e.previous=n,--u;continue t}c=c.previous,f+=c._.r}while(s!==c.next)}for(r.previous=n,r.next=e,n.next=e.previous=e=r,g+=d=r._.r*r._.r,v+=d*r._.x,y+=d*r._.y,h=Yo(n._,o=v/g,a=y/g);(r=r.next)!==e;)(d=Yo(r._,o,a))<h&&(n=r,h=d);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=km(n),u=0;u<i;++u)n=t[u],n.x-=r.x,n.y-=r.y;return r.r}function Vo(t){return null==t?null:Go(t)}function Go(t){if("function"!=typeof t)throw new Error;return t}function Jo(){return 0}function Zo(t){return Math.sqrt(t.value)}function Qo(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Ko(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=Xo(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function ta(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function na(t){return t.id}function ea(t){return t.parentId}function ra(t,n){return t.parent===n.parent?1:2}function ia(t){var n=t.children;return n?n[0]:t.t}function oa(t){var n=t.children;return n?n[n.length-1]:t.t}function aa(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function ua(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function sa(t,n,e){return t.a.parent===n.parent?t.a:e}function ca(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function la(t){for(var n,e,r,i,o,a=new ca(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new ca(r[i],i)),e.parent=n;return(a.parent=new ca(null,0)).children=[a],a}function fa(t,n,e,r,i,o){for(var a,u,s,c,l,f,h,p,d,g,v,y,m=[],_=n.children,x=0,b=_.length,w=n.value;x<b;){for(c=i-e,l=o-r,h=p=f=_[x].value,v=Math.max(l/c,c/l)/(w*t),y=f*f*v,g=Math.max(p/y,y/h),s=x+1;s<b;++s){if(f+=u=_[s].value,u<h&&(h=u),u>p&&(p=u),y=f*f*v,d=Math.max(p/y,y/h),d>g){f-=u;break}g=d}m.push(a={value:f,dice:c<l,children:_.slice(x,s)}),a.dice?Em(a,e,r,i,w?r+=l*f/w:o):Om(a,e,r,w?e+=c*f/w:i,o),w-=f,x=s}return m}function ha(t){return t.x+t.vx}function pa(t){return t.y+t.vy}function da(t,n){return n}function ga(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function va(t){return t.x}function ya(t){return t.y}function ma(){t.event.stopImmediatePropagation()}function _a(t,n){var e=t.document.documentElement,r=my(t).on("dragstart.drag",null);n&&(r.on("click.drag",t_,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function xa(t,n,e,r,i,o,a,u,s,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=s,this._=c}function ba(){return!t.event.button}function wa(){return this.parentNode}function Ma(n){return null==n?{x:t.event.x,y:t.event.y}:n}function ka(t){return t[0]}function Ta(t){return t[1]}function Sa(){this._=null}function Ca(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Na(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Ea(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Aa(t){for(;t.L;)t=t.L;return t}function qa(t,n,e,r){var i=[null,null],o=c_.push(i)-1;return i.left=t,i.right=n,e&&ja(i,t,n,e),r&&ja(i,n,t,r),u_[t.index].halfedges.push(o),u_[n.index].halfedges.push(o),i}function Da(t,n,e){var r=[n,e];return r.left=t,r}function ja(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function La(t,n,e,r,i){var o,a=t[0],u=t[1],s=a[0],c=a[1],l=u[0],f=u[1],h=0,p=1,d=l-s,g=f-c;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<h)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=r-s,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>h&&(h=o)}else if(d>0){if(o<h)return;o<p&&(p=o)}if(o=e-c,g||!(o>0)){if(o/=g,g<0){if(o<h)return;o<p&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=i-c,g||!(o<0)){if(o/=g,g<0){if(o>p)return;o>h&&(h=o)}else if(g>0){if(o<h)return;o<p&&(p=o)}return!(h>0||p<1)||(h>0&&(t[0]=[s+h*d,c+h*g]),p<1&&(t[1]=[s+p*d,c+p*g]),!0)}}}}}function Pa(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,s=t[0],c=t.left,l=t.right,f=c[0],h=c[1],p=l[0],d=l[1],g=(f+p)/2,v=(h+d)/2;if(d===h){if(g<n||g>=r)return;if(f>p){if(s){if(s[1]>=i)return}else s=[g,e];o=[g,i]}else{if(s){if(s[1]<e)return}else s=[g,i];o=[g,e]}}else if(a=(f-p)/(d-h),u=v-a*g,a<-1||a>1)if(f>p){if(s){if(s[1]>=i)return}else s=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(s){if(s[1]<e)return}else s=[(i-u)/a,i];o=[(e-u)/a,e]}else if(h<d){if(s){if(s[0]>=r)return}else s=[n,a*n+u];o=[r,a*r+u]}else{if(s){if(s[0]<n)return}else s=[r,a*r+u];o=[n,a*n+u]}return t[0]=s,t[1]=o,!0}function Oa(t,n,e,r){for(var i,o=c_.length;o--;)Pa(i=c_[o],t,n,e,r)&&La(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>h_||Math.abs(i[0][1]-i[1][1])>h_)||delete c_[o]}function Fa(t){return u_[t.index]={site:t,halfedges:[]}}function za(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Ra(t,n){return n[+(n.left!==t.site)]}function Ha(t,n){return n[+(n.left===t.site)]}function Ia(){for(var t,n,e,r,i=0,o=u_.length;i<o;++i)if((t=u_[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(e=0;e<r;++e)a[e]=e,u[e]=za(t,c_[n[e]]);for(a.sort(function(t,n){return u[n]-u[t]}),e=0;e<r;++e)u[e]=n[a[e]];for(e=0;e<r;++e)n[e]=u[e]}}function Ua(t,n,e,r){var i,o,a,u,s,c,l,f,h,p,d,g,v=u_.length,y=!0;for(i=0;i<v;++i)if(o=u_[i]){for(a=o.site,s=o.halfedges,u=s.length;u--;)c_[s[u]]||s.splice(u,1);for(u=0,c=s.length;u<c;)p=Ha(o,c_[s[u]]),d=p[0],g=p[1],l=Ra(o,c_[s[++u%c]]),f=l[0],h=l[1],(Math.abs(d-f)>h_||Math.abs(g-h)>h_)&&(s.splice(u,0,c_.push(Da(a,p,Math.abs(d-t)<h_&&r-g>h_?[t,Math.abs(f-t)<h_?h:r]:Math.abs(g-r)<h_&&e-d>h_?[Math.abs(h-r)<h_?f:e,r]:Math.abs(d-e)<h_&&g-n>h_?[e,Math.abs(f-e)<h_?h:n]:Math.abs(g-n)<h_&&d-t>h_?[Math.abs(h-n)<h_?f:t,n]:null))-1),++c);c&&(y=!1)}if(y){var m,_,x,b=1/0;for(i=0,y=null;i<v;++i)(o=u_[i])&&(a=o.site,m=a[0]-t,_=a[1]-n,x=m*m+_*_,x<b&&(b=x,y=o));if(y){var w=[t,n],M=[t,r],k=[e,r],T=[e,n];y.halfedges.push(c_.push(Da(a=y.site,w,M))-1,c_.push(Da(a,M,k))-1,c_.push(Da(a,k,T))-1,c_.push(Da(a,T,w))-1)}}for(i=0;i<v;++i)(o=u_[i])&&(o.halfedges.length||delete u_[i])}function Ba(){Ca(this),this.x=this.y=this.arc=this.site=this.cy=null}function Wa(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],u=i[1],s=r[0]-a,c=r[1]-u,l=o[0]-a,f=o[1]-u,h=2*(s*f-c*l);if(!(h>=-p_)){var p=s*s+c*c,d=l*l+f*f,g=(f*p-c*d)/h,v=(s*d-l*p)/h,y=l_.pop()||new Ba;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=s_._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}s_.insert(m,y),m||(o_=y)}}}}function Ya(t){var n=t.circle;n&&(n.P||(o_=n.N),s_.remove(n),l_.push(n),Ca(n),t.circle=null)}function $a(){Ca(this),this.edge=this.site=this.circle=null}function Xa(t){var n=f_.pop()||new $a;return n.site=t,n}function Va(t){Ya(t),a_.remove(t),f_.push(t),Ca(t)}function Ga(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];Va(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<h_&&Math.abs(r-s.circle.cy)<h_;)o=s.P,u.unshift(s),Va(s),s=o;u.unshift(s),Ya(s);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<h_&&Math.abs(r-c.circle.cy)<h_;)a=c.N,u.push(c),Va(c),c=a;u.push(c),Ya(c);var l,f=u.length;for(l=1;l<f;++l)c=u[l],s=u[l-1],ja(c.edge,s.site,c.site,i);s=u[0],c=u[f-1],c.edge=qa(s.site,c.site,null,i),Wa(s),Wa(c)}function Ja(t){for(var n,e,r,i,o=t[0],a=t[1],u=a_._;u;)if(r=Za(u,a)-o,r>h_)u=u.L;else{if(i=o-Qa(u,a),!(i>h_)){r>-h_?(n=u.P,e=u):i>-h_?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}Fa(t);var s=Xa(t);if(a_.insert(n,s),n||e){if(n===e)return Ya(n),e=Xa(n.site),a_.insert(s,e),s.edge=e.edge=qa(n.site,s.site),Wa(n),void Wa(e);if(!e)return void(s.edge=qa(n.site,s.site));Ya(n),Ya(e);var c=n.site,l=c[0],f=c[1],h=t[0]-l,p=t[1]-f,d=e.site,g=d[0]-l,v=d[1]-f,y=2*(h*v-p*g),m=h*h+p*p,_=g*g+v*v,x=[(v*m-p*_)/y+l,(h*_-g*m)/y+f];ja(e.edge,c,d,x),s.edge=qa(c,t,null,x),e.edge=qa(t,d,null,x),Wa(n),Wa(e)}}function Za(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-(1/0);e=a.site;var u=e[0],s=e[1],c=s-n;if(!c)return u;var l=u-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-s+c/2+i-o/2)))/f+r:(r+u)/2}function Qa(t,n){var e=t.N;if(e)return Za(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function Ka(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function tu(t,n){return n[1]-t[1]||n[0]-t[0]}function nu(t,n){var e,r,i,o=t.sort(tu).pop();for(c_=[],u_=new Array(t.length),a_=new Sa,s_=new Sa;;)if(i=o_,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(Ja(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Ga(i.arc)}if(Ia(),n){var a=+n[0][0],u=+n[0][1],s=+n[1][0],c=+n[1][1];Oa(a,u,s,c),Ua(a,u,s,c)}this.edges=c_,this.cells=u_,a_=s_=c_=u_=null}function eu(t,n,e){this.target=t,this.type=n,this.transform=e}function ru(t,n,e){this.k=t,this.x=n,this.y=e}function iu(t){
-return t.__zoom||v_}function ou(){t.event.stopImmediatePropagation()}function au(){return!t.event.button}function uu(){var t,n,e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,t=e.width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function su(){return this.__zoom||v_}function cu(){t.event.stopImmediatePropagation()}function lu(t){return{type:t}}function fu(){return!t.event.button}function hu(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function pu(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function du(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function gu(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function vu(){return mu(S_)}function yu(){return mu(C_)}function mu(n){function e(t){var e=t.property("__brush",u).selectAll(".overlay").data([lu("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",E_.overlay).merge(e).each(function(){var t=pu(this).extent;my(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([lu("selection")]).enter().append("rect").attr("class","selection").attr("cursor",E_.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return E_[t.type]}),t.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",a)}function r(){var t=my(this),n=pu(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-h/2:n[0][0]-h/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-h/2:n[0][1]-h/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+h:h}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+h:h})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,n){return t.__brush.emitter||new o(t,n)}function o(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function a(){function e(){var t=Ov(k);!O||w||M||(Math.abs(t[0]-z[0])>Math.abs(t[1]-z[1])?M=!0:w=!0),z=t,b=!0,b_(),o()}function o(){var t;switch(_=z[0]-F[0],x=z[1]-F[1],S){case M_:case w_:C&&(_=Math.max(D-f,Math.min(L-g,_)),h=f+_,v=g+_),N&&(x=Math.max(j-p,Math.min(P-y,x)),d=p+x,m=y+x);break;case k_:C<0?(_=Math.max(D-f,Math.min(L-f,_)),h=f+_,v=g):C>0&&(_=Math.max(D-g,Math.min(L-g,_)),h=f,v=g+_),N<0?(x=Math.max(j-p,Math.min(P-p,x)),d=p+x,m=y):N>0&&(x=Math.max(j-y,Math.min(P-y,x)),d=p,m=y+x);break;case T_:C&&(h=Math.max(D,Math.min(L,f-_*C)),v=Math.max(D,Math.min(L,g+_*C))),N&&(d=Math.max(j,Math.min(P,p-x*N)),m=Math.max(j,Math.min(P,y+x*N)))}v<h&&(C*=-1,t=f,f=g,g=t,t=h,h=v,v=t,T in A_&&I.attr("cursor",E_[T=A_[T]])),m<d&&(N*=-1,t=p,p=y,y=t,t=d,d=m,m=t,T in q_&&I.attr("cursor",E_[T=q_[T]])),E.selection&&(q=E.selection),w&&(h=q[0][0],v=q[1][0]),M&&(d=q[0][1],m=q[1][1]),q[0][0]===h&&q[0][1]===d&&q[1][0]===v&&q[1][1]===m||(E.selection=[[h,d],[v,m]],r.call(k),R.brush())}function a(){if(cu(),t.event.touches){if(t.event.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500),H.on("touchmove.brush touchend.brush touchcancel.brush",null)}else _a(t.event.view,b),U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);H.attr("pointer-events","all"),I.attr("cursor",E_.overlay),E.selection&&(q=E.selection),du(q)&&(E.selection=null,r.call(k)),R.end()}function u(){switch(t.event.keyCode){case 16:O=C&&N;break;case 18:S===k_&&(C&&(g=v-_*C,f=h+_*C),N&&(y=m-x*N,p=d+x*N),S=T_,o());break;case 32:S!==k_&&S!==T_||(C<0?g=v-_:C>0&&(f=h-_),N<0?y=m-x:N>0&&(p=d-x),S=M_,I.attr("cursor",E_.selection),o());break;default:return}b_()}function c(){switch(t.event.keyCode){case 16:O&&(w=M=O=!1,o());break;case 18:S===T_&&(C<0?g=v:C>0&&(f=h),N<0?y=m:N>0&&(p=d),S=k_,o());break;case 32:S===M_&&(t.event.altKey?(C&&(g=v-_*C,f=h+_*C),N&&(y=m-x*N,p=d+x*N),S=T_):(C<0?g=v:C>0&&(f=h),N<0?y=m:N>0&&(p=d),S=k_),I.attr("cursor",E_[T]),o());break;default:return}b_()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return b_()}else if(s)return;if(l.apply(this,arguments)){var f,h,p,d,g,v,y,m,_,x,b,w,M,k=this,T=t.event.target.__data__.type,S="selection"===(t.event.metaKey?T="overlay":T)?w_:t.event.altKey?T_:k_,C=n===C_?null:D_[T],N=n===S_?null:j_[T],E=pu(k),A=E.extent,q=E.selection,D=A[0][0],j=A[0][1],L=A[1][0],P=A[1][1],O=C&&N&&t.event.shiftKey,F=Ov(k),z=F,R=i(k,arguments).beforestart();"overlay"===T?E.selection=q=[[f=n===C_?D:F[0],p=n===S_?j:F[1]],[g=n===C_?L:f,y=n===S_?P:p]]:(f=q[0][0],p=q[0][1],g=q[1][0],y=q[1][1]),h=f,d=p,v=g,m=y;var H=my(k).attr("pointer-events","none"),I=H.selectAll(".overlay").attr("cursor",E_[T]);if(t.event.touches)H.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",a,!0);else{var U=my(t.event.view).on("keydown.brush",u,!0).on("keyup.brush",c,!0).on("mousemove.brush",e,!0).on("mouseup.brush",a,!0);n_(t.event.view)}cu(),Dy(k),r.call(k),R.start()}}function u(){var t=this.__brush||{selection:null};return t.extent=c.apply(this,arguments),t.dim=n,t}var s,c=hu,l=fu,f=Dn(e,"start","brush","end"),h=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){a.selection=1===t&&du(c)?null:l(t),r.call(o),u.brush()}var o=this,a=o.__brush,u=i(o,arguments),s=a.selection,c=n.input("function"==typeof e?e.apply(this,arguments):e,a.extent),l=vp(s,c);return s&&c?t:t(1)}):t.each(function(){var t=this,o=arguments,a=t.__brush,u=n.input("function"==typeof e?e.apply(t,o):e,a.extent),s=i(t,o).beforestart();Dy(t),a.selection=null==u||du(u)?null:u,r.call(t),s.start().brush().end()})},o.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){Yr(new x_(e,t,n.output(this.state.selection)),f.apply,f,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(c="function"==typeof t?t:__([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):c},e.filter=function(t){return arguments.length?(l="function"==typeof t?t:__(!!t),e):l},e.handleSize=function(t){return arguments.length?(h=+t,e):h},e.on=function(){var t=f.on.apply(f,arguments);return t===f?e:t},e}function _u(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function xu(t){return t.source}function bu(t){return t.target}function wu(t){return t.radius}function Mu(t){return t.startAngle}function ku(t){return t.endAngle}function Tu(){this.reset()}function Su(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function Cu(t){return t>1?0:t<-1?Sx:Math.acos(t)}function Nu(t){return t>1?Cx:t<-1?-Cx:Math.asin(t)}function Eu(t){return(t=Hx(t/2))*t}function Au(){}function qu(t,n){t&&Yx.hasOwnProperty(t.type)&&Yx[t.type](t,n)}function Du(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function ju(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Du(t[e],n,1);n.polygonEnd()}function Lu(){Gx.point=Ou}function Pu(){Fu($_,X_)}function Ou(t,n){Gx.point=Fu,$_=t,X_=n,t*=qx,n*=qx,V_=t,G_=Px(n=n/2+Nx),J_=Hx(n)}function Fu(t,n){t*=qx,n*=qx,n=n/2+Nx;var e=t-V_,r=e>=0?1:-1,i=r*e,o=Px(n),a=Hx(n),u=J_*a,s=G_*o+u*Px(i),c=u*r*Hx(i);Xx.add(Lx(c,s)),V_=t,G_=o,J_=a}function zu(t){return[Lx(t[1],t[0]),Nu(t[2])]}function Ru(t){var n=t[0],e=t[1],r=Px(e);return[r*Px(n),r*Hx(n),Hx(e)]}function Hu(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Iu(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Uu(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Bu(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Wu(t){var n=Ux(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Yu(t,n){ox.push(ax=[Z_=t,K_=t]),n<Q_&&(Q_=n),n>tx&&(tx=n)}function $u(t,n){var e=Ru([t*qx,n*qx]);if(ix){var r=Iu(ix,e),i=[r[1],-r[0],0],o=Iu(i,r);Wu(o),o=zu(o);var a,u=t-nx,s=u>0?1:-1,c=o[0]*Ax*s,l=Dx(u)>180;l^(s*nx<c&&c<s*t)?(a=o[1]*Ax,a>tx&&(tx=a)):(c=(c+360)%360-180,l^(s*nx<c&&c<s*t)?(a=-o[1]*Ax,a<Q_&&(Q_=a)):(n<Q_&&(Q_=n),n>tx&&(tx=n))),l?t<nx?Qu(Z_,t)>Qu(Z_,K_)&&(K_=t):Qu(t,K_)>Qu(Z_,K_)&&(Z_=t):K_>=Z_?(t<Z_&&(Z_=t),t>K_&&(K_=t)):t>nx?Qu(Z_,t)>Qu(Z_,K_)&&(K_=t):Qu(t,K_)>Qu(Z_,K_)&&(Z_=t)}else Yu(t,n);ix=e,nx=t}function Xu(){Qx.point=$u}function Vu(){ax[0]=Z_,ax[1]=K_,Qx.point=Yu,ix=null}function Gu(t,n){if(ix){var e=t-nx;Zx.add(Dx(e)>180?e+(e>0?360:-360):e)}else ex=t,rx=n;Gx.point(t,n),$u(t,n)}function Ju(){Gx.lineStart()}function Zu(){Gu(ex,rx),Gx.lineEnd(),Dx(Zx)>kx&&(Z_=-(K_=180)),ax[0]=Z_,ax[1]=K_,ix=null}function Qu(t,n){return(n-=t)<0?n+360:n}function Ku(t,n){return t[0]-n[0]}function ts(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function ns(t,n){t*=qx,n*=qx;var e=Px(n);es(e*Px(t),e*Hx(t),Hx(n))}function es(t,n,e){++ux,cx+=(t-cx)/ux,lx+=(n-lx)/ux,fx+=(e-fx)/ux}function rs(){tb.point=is}function is(t,n){t*=qx,n*=qx;var e=Px(n);xx=e*Px(t),bx=e*Hx(t),wx=Hx(n),tb.point=os,es(xx,bx,wx)}function os(t,n){t*=qx,n*=qx;var e=Px(n),r=e*Px(t),i=e*Hx(t),o=Hx(n),a=Lx(Ux((a=bx*o-wx*i)*a+(a=wx*r-xx*o)*a+(a=xx*i-bx*r)*a),xx*r+bx*i+wx*o);sx+=a,hx+=a*(xx+(xx=r)),px+=a*(bx+(bx=i)),dx+=a*(wx+(wx=o)),es(xx,bx,wx)}function as(){tb.point=ns}function us(){tb.point=cs}function ss(){ls(mx,_x),tb.point=ns}function cs(t,n){mx=t,_x=n,t*=qx,n*=qx,tb.point=ls;var e=Px(n);xx=e*Px(t),bx=e*Hx(t),wx=Hx(n),es(xx,bx,wx)}function ls(t,n){t*=qx,n*=qx;var e=Px(n),r=e*Px(t),i=e*Hx(t),o=Hx(n),a=bx*o-wx*i,u=wx*r-xx*o,s=xx*i-bx*r,c=Ux(a*a+u*u+s*s),l=xx*r+bx*i+wx*o,f=c&&-Cu(l)/c,h=Lx(c,l);gx+=f*a,vx+=f*u,yx+=f*s,sx+=h,hx+=h*(xx+(xx=r)),px+=h*(bx+(bx=i)),dx+=h*(wx+(wx=o)),es(xx,bx,wx)}function fs(t,n){return[t>Sx?t-Ex:t<-Sx?t+Ex:t,n]}function hs(t,n,e){return(t%=Ex)?n||e?rb(ds(t),gs(n,e)):ds(t):n||e?gs(n,e):fs}function ps(t){return function(n,e){return n+=t,[n>Sx?n-Ex:n<-Sx?n+Ex:n,e]}}function ds(t){var n=ps(t);return n.invert=ps(-t),n}function gs(t,n){function e(t,n){var e=Px(n),u=Px(t)*e,s=Hx(t)*e,c=Hx(n),l=c*r+u*i;return[Lx(s*o-l*a,u*r-c*i),Nu(l*o+s*a)]}var r=Px(t),i=Hx(t),o=Px(n),a=Hx(n);return e.invert=function(t,n){var e=Px(n),u=Px(t)*e,s=Hx(t)*e,c=Hx(n),l=c*o-s*a;return[Lx(s*o+c*a,u*r+l*i),Nu(l*r-u*i)]},e}function vs(t,n,e,r,i,o){if(e){var a=Px(n),u=Hx(n),s=r*e;null==i?(i=n+r*Ex,o=n-s/2):(i=ys(a,i),o=ys(a,o),(r>0?i<o:i>o)&&(i+=r*Ex));for(var c,l=i;r>0?l>o:l<o;l-=s)c=zu([a,-u*Px(l),-u*Hx(l)]),t.point(c[0],c[1])}}function ys(t,n){n=Ru(n),n[0]-=t,Wu(n);var e=Cu(-n[1]);return((-n[2]<0?-e:e)+Ex-kx)%Ex}function ms(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function _s(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function xs(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,c){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||s(i,o)<0^u>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+u+4)%4)!==f)}else c.point(o[0],o[1])}function a(r,i){return Dx(r[0]-t)<kx?i>0?0:3:Dx(r[0]-e)<kx?i>0?2:1:Dx(r[1]-n)<kx?i>0?1:0:i>0?3:2}function u(t,n){return s(t.x,n.x)}function s(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){function s(t,n){i(t,n)&&S.point(t,n)}function c(){for(var n=0,e=0,i=v.length;e<i;++e)for(var o,a,u=v[e],s=1,c=u.length,l=u[0],f=l[0],h=l[1];s<c;++s)o=f,a=h,l=u[s],f=l[0],h=l[1],a<=r?h>r&&(f-o)*(r-a)>(h-a)*(t-o)&&++n:h<=r&&(f-o)*(r-a)<(h-a)*(t-o)&&--n;return n}function l(){S=C,g=[],v=[],T=!0}function f(){var t=c(),n=T&&t,e=(g=Zc(g)).length;(n||e)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),e&&xb(g,u,t,o,a),a.polygonEnd()),S=a,g=v=y=null}function h(){N.point=d,v&&v.push(y=[]),k=!0,M=!1,b=w=NaN}function p(){g&&(d(m,_),x&&M&&C.rejoin(),g.push(C.result())),N.point=s,M&&S.lineEnd()}function d(o,a){var u=i(o,a);if(v&&y.push([o,a]),k)m=o,_=a,x=u,k=!1,u&&(S.lineStart(),S.point(o,a));else if(u&&M)S.point(o,a);else{var s=[b=Math.max(wb,Math.min(bb,b)),w=Math.max(wb,Math.min(bb,w))],c=[o=Math.max(wb,Math.min(bb,o)),a=Math.max(wb,Math.min(bb,a))];mb(s,c,t,n,e,r)?(M||(S.lineStart(),S.point(s[0],s[1])),S.point(c[0],c[1]),u||S.lineEnd(),T=!1):u&&(S.lineStart(),S.point(o,a),T=!1)}b=o,w=a,M=u}var g,v,y,m,_,x,b,w,M,k,T,S=a,C=yb(),N={point:s,lineStart:h,lineEnd:p,polygonStart:l,polygonEnd:f};return N}}function bs(){Tb.point=Ms,Tb.lineEnd=ws}function ws(){Tb.point=Tb.lineEnd=Au}function Ms(t,n){t*=qx,n*=qx,ib=t,ob=Hx(n),ab=Px(n),Tb.point=ks}function ks(t,n){t*=qx,n*=qx;var e=Hx(n),r=Px(n),i=Dx(t-ib),o=Px(i),a=Hx(i),u=r*a,s=ab*e-ob*r*o,c=ob*e+ab*r*o;kb.add(Lx(Ux(u*u+s*s),c)),ib=t,ob=e,ab=r}function Ts(t,n,e){var r=zc(t,n-kx,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Ss(t,n,e){var r=zc(t,n-kx,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function Cs(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return zc(Ox(o/v)*v,i,v).map(h).concat(zc(Ox(c/y)*y,s,y).map(p)).concat(zc(Ox(r/d)*d,e,d).filter(function(t){return Dx(t%v)>kx}).map(l)).concat(zc(Ox(u/g)*g,a,g).filter(function(t){return Dx(t%y)>kx}).map(f))}var e,r,i,o,a,u,s,c,l,f,h,p,d=10,g=d,v=90,y=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(s).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],o>i&&(n=o,o=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(m)):[[o,c],[i,s]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],u=+n[0][1],a=+n[1][1],r>e&&(n=r,r=e,e=n),u>a&&(n=u,u=a,a=n),t.precision(m)):[[r,u],[e,a]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.stepMinor=function(n){return arguments.length?(d=+n[0],g=+n[1],t):[d,g]},t.precision=function(n){return arguments.length?(m=+n,l=Ts(u,a,90),f=Ss(r,e,m),h=Ts(c,s,90),p=Ss(o,i,m),t):m},t.extentMajor([[-180,-90+kx],[180,90-kx]]).extentMinor([[-180,-80-kx],[180,80+kx]])}function Ns(){return Cs()()}function Es(){Lb.point=As}function As(t,n){Lb.point=qs,ub=cb=t,sb=lb=n}function qs(t,n){jb.add(lb*t-cb*n),cb=t,lb=n}function Ds(){qs(ub,sb)}function js(t,n){t<Pb&&(Pb=t),t>Fb&&(Fb=t),n<Ob&&(Ob=n),n>zb&&(zb=n)}function Ls(t,n){Hb+=t,Ib+=n,++Ub}function Ps(){Gb.point=Os}function Os(t,n){Gb.point=Fs,Ls(pb=t,db=n)}function Fs(t,n){var e=t-pb,r=n-db,i=Ux(e*e+r*r);Bb+=i*(pb+t)/2,Wb+=i*(db+n)/2,Yb+=i,Ls(pb=t,db=n)}function zs(){Gb.point=Ls}function Rs(){Gb.point=Is}function Hs(){Us(fb,hb)}function Is(t,n){Gb.point=Us,Ls(fb=pb=t,hb=db=n)}function Us(t,n){var e=t-pb,r=n-db,i=Ux(e*e+r*r);Bb+=i*(pb+t)/2,Wb+=i*(db+n)/2,Yb+=i,i=db*t-pb*n,$b+=i*(pb+t),Xb+=i*(db+n),Vb+=3*i,Ls(pb=t,db=n)}function Bs(t){this._context=t}function Ws(){this._string=[]}function Ys(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function $s(t){return t.length>1}function Xs(t,n){return((t=t.x)[0]<0?t[1]-Cx-kx:Cx-t[1])-((n=n.x)[0]<0?n[1]-Cx-kx:Cx-n[1])}function Vs(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Sx:-Sx,s=Dx(o-e);Dx(s-Sx)<kx?(t.point(e,r=(r+a)/2>0?Cx:-Cx),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&s>=Sx&&(Dx(e-i)<kx&&(e-=i*kx),Dx(o-u)<kx&&(o-=u*kx),r=Gs(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function Gs(t,n,e,r){var i,o,a=Hx(t-e);return Dx(a)>kx?jx((Hx(n)*(o=Px(r))*Hx(e)-Hx(r)*(i=Px(n))*Hx(t))/(i*o*a)):(n+r)/2}function Js(t,n,e,r){var i;if(null==t)i=e*Cx,r.point(-Sx,i),r.point(0,i),r.point(Sx,i),r.point(Sx,0),r.point(Sx,-i),r.point(0,-i),r.point(-Sx,-i),r.point(-Sx,0),r.point(-Sx,i);else if(Dx(t[0]-n[0])>kx){var o=t[0]<n[0]?Sx:-Sx;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Zs(t){return function(n){var e=new Qs;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Qs(){}function Ks(t,n,e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),$x(e,t.stream(Rb));var a=Rb.result(),u=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),s=+n[0][0]+(r-u*(a[1][0]+a[0][0]))/2,c=+n[0][1]+(i-u*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([s,c])}function tc(t,n,e){return Ks(t,[[0,0],n],e)}function nc(t){return Zs({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function ec(t,n){function e(r,i,o,a,u,s,c,l,f,h,p,d,g,v){var y=c-r,m=l-i,_=y*y+m*m;if(_>4*n&&g--){var x=a+h,b=u+p,w=s+d,M=Ux(x*x+b*b+w*w),k=Nu(w/=M),T=Dx(Dx(w)-1)<kx||Dx(o-f)<kx?(o+f)/2:Lx(b,x),S=t(T,k),C=S[0],N=S[1],E=C-r,A=N-i,q=m*E-y*A;(q*q/_>n||Dx((y*E+m*A)/_-.5)>.3||a*h+u*p+s*d<iw)&&(e(r,i,o,a,u,s,C,N,T,x/=M,b/=M,w,g,v),v.point(C,N),e(C,N,T,x,b,w,c,l,f,h,p,d,g,v))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=NaN,w.point=o,n.lineStart()}function o(r,i){var o=Ru([r,i]),a=t(r,i);e(y,m,v,_,x,b,y=a[0],m=a[1],v=r,_=o[0],x=o[1],b=o[2],rw,n),n.point(y,m)}function a(){w.point=r,n.lineEnd()}function u(){i(),w.point=s,w.lineEnd=c}function s(t,n){o(l=t,n),f=y,h=m,p=_,d=x,g=b,w.point=o}function c(){e(y,m,v,_,x,b,f,h,l,p,d,g,rw,n),w.lineEnd=a,a()}var l,f,h,p,d,g,v,y,m,_,x,b,w={point:r,lineStart:i,lineEnd:a,polygonStart:function(){n.polygonStart(),w.lineStart=u},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function rc(t){return ic(function(){return t})()}function ic(t){function n(t){return t=l(t[0]*qx,t[1]*qx),[t[0]*v+u,s-t[1]*v]}function e(t){return t=l.invert((t[0]-u)/v,(s-t[1])/v),t&&[t[0]*Ax,t[1]*Ax]}function r(t,n){return t=a(t,n),[t[0]*v+u,s-t[1]*v]}function i(){l=rb(c=hs(b,w,M),a);var t=a(_,x);return u=y-t[0]*v,s=m+t[1]*v,o()}function o(){return d=g=null,n}var a,u,s,c,l,f,h,p,d,g,v=150,y=480,m=250,_=0,x=0,b=0,w=0,M=0,k=null,T=tw,S=null,C=qb,N=.5,E=ow(r,N);return n.stream=function(t){return d&&g===t?d:d=aw(T(c,E(C(g=t))))},n.clipAngle=function(t){return arguments.length?(T=+t?nw(k=t*qx,6*qx):(k=null,tw),o()):k*Ax},n.clipExtent=function(t){return arguments.length?(C=null==t?(S=f=h=p=null,qb):xs(S=+t[0][0],f=+t[0][1],h=+t[1][0],p=+t[1][1]),o()):null==S?null:[[S,f],[h,p]]},n.scale=function(t){return arguments.length?(v=+t,i()):v},n.translate=function(t){return arguments.length?(y=+t[0],m=+t[1],i()):[y,m]},n.center=function(t){return arguments.length?(_=t[0]%360*qx,x=t[1]%360*qx,i()):[_*Ax,x*Ax]},n.rotate=function(t){return arguments.length?(b=t[0]%360*qx,w=t[1]%360*qx,M=t.length>2?t[2]%360*qx:0,i()):[b*Ax,w*Ax,M*Ax]},n.precision=function(t){return arguments.length?(E=ow(r,N=t*t),o()):Ux(N)},n.fitExtent=function(t,e){return Ks(n,t,e)},n.fitSize=function(t,e){return tc(n,t,e)},function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,i()}}function oc(t){var n=0,e=Sx/3,r=ic(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*qx,e=t[1]*qx):[n*Ax,e*Ax]},i}function ac(t){function n(t,n){return[t*e,Hx(n)/e]}var e=Px(t);return n.invert=function(t,n){return[t/e,Nu(n*e)]},n}function uc(t,n){function e(t,n){var e=Ux(o-2*i*Hx(n))/i;return[e*Hx(t*=i),a-e*Px(t)]}var r=Hx(t),i=(r+Hx(n))/2;if(Dx(i)<kx)return ac(t);var o=1+r*(2*i-r),a=Ux(o)/i;return e.invert=function(t,n){var e=a-n;return[Lx(t,Dx(e))/i*Ix(e),Nu((o-(t*t+e*e)*i*i)/(2*i))]},e}function sc(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function cc(t){return function(n,e){var r=Px(n),i=Px(e),o=t(r*i);return[o*i*Hx(n),o*Hx(e)]}}function lc(t){return function(n,e){var r=Ux(n*n+e*e),i=t(r),o=Hx(i),a=Px(i);return[Lx(n*o,r*a),Nu(r&&e*o/r)]}}function fc(t,n){return[t,zx(Bx((Cx+n)/2))]}function hc(t){var n,e=rc(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(t){return arguments.length?(r(t),n&&e.clipExtent(null),e):r()},e.translate=function(t){return arguments.length?(i(t),n&&e.clipExtent(null),e):i()},e.clipExtent=function(t){if(!arguments.length)return n?null:o();if(n=null==t){var a=Sx*r(),u=i();t=[[u[0]-a,u[1]-a],[u[0]+a,u[1]+a]]}return o(t),e},e.clipExtent(null)}function pc(t){return Bx((Cx+t)/2)}function dc(t,n){function e(t,n){o>0?n<-Cx+kx&&(n=-Cx+kx):n>Cx-kx&&(n=Cx-kx);var e=o/Rx(pc(n),i);return[e*Hx(i*t),o-e*Px(i*t)]}var r=Px(t),i=t===n?Hx(t):zx(r/Px(n))/zx(pc(n)/pc(t)),o=r*Rx(pc(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=Ix(i)*Ux(t*t+e*e);return[Lx(t,Dx(e))/i*Ix(e),2*jx(Rx(o/r,1/i))-Cx]},e):fc}function gc(t,n){return[t,n]}function vc(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Hx(r),o-e*Px(r)]}var r=Px(t),i=t===n?Hx(t):(r-Px(n))/(n-t),o=r/i+t;return Dx(i)<kx?gc:(e.invert=function(t,n){var e=o-n;return[Lx(t,Dx(e))/i*Ix(e),o-Ix(i)*Ux(t*t+e*e)]},e)}function yc(t,n){var e=Px(n),r=Px(t)*e;return[e*Hx(t)/r,Hx(n)/r]}function mc(t,n,e){return 1===t&&0===n&&0===e?qb:Zs({point:function(r,i){this.stream.point(r*t+n,i*t+e)}})}function _c(t,n){return[Px(n)*Hx(t),Hx(n)]}function xc(t,n){var e=Px(n),r=1+Px(t)*e;return[e*Hx(t)/r,Hx(n)/r]}function bc(t,n){return[zx(Bx((Cx+n)/2)),-t]}var wc="4.3.0",Mc=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},kc=function(t){return 1===t.length&&(t=n(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},Tc=kc(Mc),Sc=Tc.right,Cc=Tc.left,Nc=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Ec=function(t){return null===t?NaN:+t},Ac=function(t,n){var e,r,i=t.length,o=0,a=0,u=-1,s=0;if(null==n)for(;++u<i;)isNaN(e=Ec(t[u]))||(r=e-o,o+=r/++s,a+=r*(e-o));else for(;++u<i;)isNaN(e=Ec(n(t[u],u,t)))||(r=e-o,o+=r/++s,a+=r*(e-o));if(s>1)return a/(s-1)},qc=function(t,n){var e=Ac(t,n);return e?Math.sqrt(e):e},Dc=function(t,n){var e,r,i,o=-1,a=t.length;if(null==n){for(;++o<a;)if(null!=(r=t[o])&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=t[o])&&(e>r&&(e=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=n(t[o],o,t))&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=n(t[o],o,t))&&(e>r&&(e=r),i<r&&(i=r))}return[e,i]},jc=Array.prototype,Lc=jc.slice,Pc=jc.map,Oc=function(t){return function(){return t}},Fc=function(t){return t},zc=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},Rc=Math.sqrt(50),Hc=Math.sqrt(10),Ic=Math.sqrt(2),Uc=function(t,n,r){var i=e(t,n,r);return zc(Math.ceil(t/i)*i,Math.floor(n/i)*i+i/2,i)},Bc=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},Wc=function(){function t(t){var i,o,a=t.length,u=new Array(a);for(i=0;i<a;++i)u[i]=n(t[i],i,t);var s=e(u),c=s[0],l=s[1],f=r(u,c,l);Array.isArray(f)||(f=Uc(c,l,f));for(var h=f.length;f[0]<=c;)f.shift(),--h;for(;f[h-1]>=l;)f.pop(),--h;var p,d=new Array(h+1);for(i=0;i<=h;++i)p=d[i]=[],p.x0=i>0?f[i-1]:c,p.x1=i<h?f[i]:l;for(i=0;i<a;++i)o=u[i],c<=o&&o<=l&&d[Sc(f,o,0,h)].push(t[i]);return d}var n=Fc,e=Dc,r=Bc;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:Oc(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:Oc([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Oc(Array.isArray(n)?Lc.call(n):n),t):r},t},Yc=function(t,n,e){if(null==e&&(e=Ec),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t),u=+e(t[o+1],o+1,t);return a+(u-a)*(i-o)}},$c=function(t,n,e){return t=Pc.call(t,Ec).sort(Mc),Math.ceil((e-n)/(2*(Yc(t,.75)-Yc(t,.25))*Math.pow(t.length,-1/3)))},Xc=function(t,n,e){return Math.ceil((e-n)/(3.5*qc(t)*Math.pow(t.length,-1/3)))},Vc=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&r>e&&(e=r)}return e},Gc=function(t,n){var e,r=0,i=t.length,o=-1,a=i;if(null==n)for(;++o<i;)isNaN(e=Ec(t[o]))?--a:r+=e;else for(;++o<i;)isNaN(e=Ec(n(t[o],o,t)))?--a:r+=e;if(a)return r/a},Jc=function(t,n){var e,r=[],i=t.length,o=-1;if(null==n)for(;++o<i;)isNaN(e=Ec(t[o]))||r.push(e);else for(;++o<i;)isNaN(e=Ec(n(t[o],o,t)))||r.push(e);return Yc(r.sort(Mc),.5)},Zc=function(t){for(var n,e,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(e=new Array(a);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--a]=r[n];return e},Qc=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&e>r&&(e=r)}return e},Kc=function(t){for(var n=0,e=t.length-1,r=t[0],i=new Array(e<0?0:e);n<e;)i[n]=[r,r=t[++n]];return i},tl=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},nl=function(t,n){if(e=t.length){var e,r,i=0,o=0,a=t[o];for(n||(n=Mc);++i<e;)(n(r=t[i],a)<0||0!==n(a,a))&&(a=r,o=i);return 0===n(a,a)?o:void 0}},el=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},rl=function(t,n){var e,r=0,i=t.length,o=-1;if(null==n)for(;++o<i;)(e=+t[o])&&(r+=e);else for(;++o<i;)(e=+n(t[o],o,t))&&(r+=e);return r},il=function(t){if(!(o=t.length))return[];for(var n=-1,e=Qc(t,r),i=new Array(e);++n<e;)for(var o,a=-1,u=i[n]=new Array(o);++a<o;)u[a]=t[a][n];return i},ol=function(){return il(arguments)},al="$";i.prototype=o.prototype={constructor:i,has:function(t){return al+t in this},get:function(t){return this[al+t]},set:function(t,n){return this[al+t]=n,this},remove:function(t){var n=al+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===al&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===al&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===al&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===al&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===al&&++t;return t},empty:function(){for(var t in this)if(t[0]===al)return!1;return!0},each:function(t){for(var n in this)n[0]===al&&t(this[n],n.slice(1),this)}};var ul=function(){function t(n,i,a,u){if(i>=l.length)return null!=r?r(n):null!=e?n.sort(e):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=o(),v=a();++h<p;)(f=g.get(s=d(c=n[h])+""))?f.push(c):g.set(s,[c]);return g.each(function(n,e){u(v,e,t(n,i,a,u))}),v}function n(t,e){if(++e>l.length)return t;var i,o=f[e-1];return null!=r&&e>=l.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=o?i.sort(function(t,n){return o(t.key,n.key)}):i}var e,r,i,l=[],f=[];return i={object:function(n){return t(n,0,a,u)},map:function(n){return t(n,0,s,c)},entries:function(e){return n(t(e,0,s,c),0)},key:function(t){return l.push(t),i},sortKeys:function(t){return f[l.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},sl=o.prototype;l.prototype=f.prototype={constructor:l,has:sl.has,add:function(t){return t+="",this[al+t]=t,this},remove:sl.remove,clear:sl.clear,values:sl.keys,size:sl.size,empty:sl.empty,each:sl.each};var cl=function(t){var n=[];for(var e in t)n.push(e);return n},ll=function(t){var n=[];for(var e in t)n.push(t[e]);return n},fl=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},hl=function(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return Math.random()*n+t}},pl=function(t,n){var e,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var i;if(null!=e)i=e,e=null;else do e=2*Math.random()-1,i=2*Math.random()-1,r=e*e+i*i;while(!r||r>1);return t+n*i*Math.sqrt(-2*Math.log(r)/r)}},dl=function(){var t=pl.apply(this,arguments);return function(){return Math.exp(t())}},gl=function(t){return function(){for(var n=0,e=0;e<t;++e)n+=Math.random();return n}},vl=function(t){var n=gl(t);return function(){return n()/t}},yl=function(t){return function(){return-Math.log(1-Math.random())/t}},ml=3,_l=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(ml),xl=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(ml),bl=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(ml),wl=Math.PI,Ml=wl/2,kl=4/11,Tl=6/11,Sl=8/11,Cl=.75,Nl=9/11,El=10/11,Al=.9375,ql=21/22,Dl=63/64,jl=1/kl/kl,Ll=1.70158,Pl=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(Ll),Ol=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(Ll),Fl=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Ll),zl=2*Math.PI,Rl=1,Hl=.3,Il=function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Ul=function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Bl=function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Wl=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},Yl=function(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],s=0;++r<i;)n=u,u=t[r],s+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return s*=3,[o/s,a/s]},$l=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},Xl=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(q),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=D(r),a=D(i),u=a[0]===o[0],s=a[a.length-1]===o[o.length-1],c=[];for(n=o.length-1;n>=0;--n)c.push(t[r[o[n]][2]]);for(n=+u;n<a.length-s;++n)c.push(t[r[a[n]][2]]);return c},Vl=function(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],s=o[0],c=o[1],l=!1,f=0;f<i;++f)o=t[f],e=o[0],r=o[1],r>u!=c>u&&a<(s-e)*(u-r)/(c-r)+e&&(l=!l),s=e,c=r;return l},Gl=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],s=0;++r<i;)n=a,e=u,o=t[r],a=o[0],u=o[1],n-=a,e-=u,s+=Math.sqrt(n*n+e*e);return s},Jl=Math.PI,Zl=2*Jl,Ql=1e-6,Kl=Zl-Ql;j.prototype=L.prototype={constructor:j,moveTo:function(t,n){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,
-this._y1=this._y0,this._.push("Z"))},lineTo:function(t,n){this._.push("L",this._x1=+t,",",this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._.push("Q",+t,",",+n,",",this._x1=+e,",",this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._.push("C",+t,",",+n,",",+e,",",+r,",",this._x1=+i,",",this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._.push("M",this._x1=t,",",this._y1=n);else if(f>Ql)if(Math.abs(l*u-s*c)>Ql&&i){var h=e-o,p=r-a,d=u*u+s*s,g=h*h+p*p,v=Math.sqrt(d),y=Math.sqrt(f),m=i*Math.tan((Jl-Math.acos((d+f-g)/(2*v*y)))/2),_=m/y,x=m/v;Math.abs(_-1)>Ql&&this._.push("L",t+_*c,",",n+_*l),this._.push("A",i,",",i,",0,0,",+(l*h>c*p),",",this._x1=t+x*u,",",this._y1=n+x*s)}else this._.push("L",this._x1=t,",",this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var a=e*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._.push("M",s,",",c):(Math.abs(this._x1-s)>Ql||Math.abs(this._y1-c)>Ql)&&this._.push("L",s,",",c),e&&(f>Kl?this._.push("A",e,",",e,",0,1,",l,",",t-a,",",n-u,"A",e,",",e,",0,1,",l,",",this._x1=s,",",this._y1=c):(f<0&&(f=f%Zl+Zl),this._.push("A",e,",",e,",0,",+(f>=Jl),",",l,",",this._x1=t+e*Math.cos(i),",",this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n,"h",+e,"v",+r,"h",-e,"Z")},toString:function(){return this._.join("")}};var tf=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return P(this.cover(n,e),n,e,t)},nf=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var a,u,s=i-e,c=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do a=new Array(4),a[u]=c,c=a;while(s*=2,i=e+s,o=r+s,t>i||n>o);break;case 1:do a=new Array(4),a[u]=c,c=a;while(s*=2,e=i-s,o=r+s,e>t||n>o);break;case 2:do a=new Array(4),a[u]=c,c=a;while(s*=2,i=e+s,r=o-s,t>i||r>n);break;case 3:do a=new Array(4),a[u]=c,c=a;while(s*=2,e=i-s,r=o-s,e>t||r>n)}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},ef=function(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t},rf=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},of=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},af=function(t,n,e){var r,i,o,a,u,s,c,l=this._x0,f=this._y0,h=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new of(g,l,f,h,p)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,p=n+e,e*=e);s=d.pop();)if(!(!(g=s.node)||(i=s.x0)>h||(o=s.y0)>p||(a=s.x1)<l||(u=s.y1)<f))if(g.length){var v=(i+a)/2,y=(o+u)/2;d.push(new of(g[3],v,y,a,u),new of(g[2],i,y,v,u),new of(g[1],v,o,a,y),new of(g[0],i,o,v,y)),(c=(n>=y)<<1|t>=v)&&(s=d[d.length-1],d[d.length-1]=d[d.length-1-c],d[d.length-1-c]=s)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),x=m*m+_*_;if(x<e){var b=Math.sqrt(e=x);l=t-b,f=n-b,h=t+b,p=n+b,r=g.data}}return r},uf=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,s,c,l,f,h,p=this._root,d=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(u=(d+v)/2))?d=u:v=u,(l=a>=(s=(g+y)/2))?g=s:y=s,n=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)},sf=function(){return this._root},cf=function(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t},lf=function(t){var n,e,r,i,o,a,u=[],s=this._root;for(s&&u.push(new of(s,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,a=n.y1)&&s.length){var c=(r+o)/2,l=(i+a)/2;(e=s[3])&&u.push(new of(e,c,l,o,a)),(e=s[2])&&u.push(new of(e,r,l,c,a)),(e=s[1])&&u.push(new of(e,c,i,o,l)),(e=s[0])&&u.push(new of(e,r,i,c,l))}return this},ff=function(t){var n,e=[],r=[];for(this._root&&e.push(new of(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,a=n.x0,u=n.y0,s=n.x1,c=n.y1,l=(a+s)/2,f=(u+c)/2;(o=i[0])&&e.push(new of(o,a,u,l,f)),(o=i[1])&&e.push(new of(o,l,u,s,f)),(o=i[2])&&e.push(new of(o,a,f,l,c)),(o=i[3])&&e.push(new of(o,l,f,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},hf=function(t){return arguments.length?(this._x=t,this):this._x},pf=function(t){return arguments.length?(this._y=t,this):this._y},df=H.prototype=I.prototype;df.copy=function(){var t,n,e=new I(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=U(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=U(n));return e},df.add=tf,df.addAll=O,df.cover=nf,df.data=ef,df.extent=rf,df.find=af,df.remove=uf,df.removeAll=F,df.root=sf,df.size=cf,df.visit=lf,df.visitAfter=ff,df.x=hf,df.y=pf;var gf=[].slice,vf={};B.prototype=G.prototype={constructor:B,defer:function(t){if("function"!=typeof t||this._call)throw new Error;if(null!=this._error)return this;var n=gf.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),W(this),this},abort:function(){return null==this._error&&X(this,new Error("abort")),this},await:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=function(n,e){t.apply(null,[n].concat(e))},V(this),this},awaitAll:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=t,V(this),this}};var yf=function(t){return function(){return t}},mf=1e-12,_f=Math.PI,xf=_f/2,bf=2*_f,wf=function(){function t(){var t,c,l=+n.apply(this,arguments),f=+e.apply(this,arguments),h=o.apply(this,arguments)-xf,p=a.apply(this,arguments)-xf,d=Math.abs(p-h),g=p>h;if(s||(s=t=L()),f<l&&(c=f,f=l,l=c),f>mf)if(d>bf-mf)s.moveTo(f*Math.cos(h),f*Math.sin(h)),s.arc(0,0,f,h,p,!g),l>mf&&(s.moveTo(l*Math.cos(p),l*Math.sin(p)),s.arc(0,0,l,p,h,g));else{var v,y,m=h,_=p,x=h,b=p,w=d,M=d,k=u.apply(this,arguments)/2,T=k>mf&&(i?+i.apply(this,arguments):Math.sqrt(l*l+f*f)),S=Math.min(Math.abs(f-l)/2,+r.apply(this,arguments)),C=S,N=S;if(T>mf){var E=nt(T/l*Math.sin(k)),A=nt(T/f*Math.sin(k));(w-=2*E)>mf?(E*=g?1:-1,x+=E,b-=E):(w=0,x=b=(h+p)/2),(M-=2*A)>mf?(A*=g?1:-1,m+=A,_-=A):(M=0,m=_=(h+p)/2)}var q=f*Math.cos(m),D=f*Math.sin(m),j=l*Math.cos(b),P=l*Math.sin(b);if(S>mf){var O=f*Math.cos(_),F=f*Math.sin(_),z=l*Math.cos(x),R=l*Math.sin(x);if(d<_f){var H=w>mf?et(q,D,z,R,O,F,j,P):[j,P],I=q-H[0],U=D-H[1],B=O-H[0],W=F-H[1],Y=1/Math.sin(Math.acos((I*B+U*W)/(Math.sqrt(I*I+U*U)*Math.sqrt(B*B+W*W)))/2),$=Math.sqrt(H[0]*H[0]+H[1]*H[1]);C=Math.min(S,(l-$)/(Y-1)),N=Math.min(S,(f-$)/(Y+1))}}M>mf?N>mf?(v=rt(z,R,q,D,f,N,g),y=rt(O,F,j,P,f,N,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),N<S?s.arc(v.cx,v.cy,N,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,N,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,f,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,N,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):(s.moveTo(q,D),s.arc(0,0,f,m,_,!g)):s.moveTo(q,D),l>mf&&w>mf?C>mf?(v=rt(j,P,O,F,l,-C,g),y=rt(q,D,z,R,l,-C,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),C<S?s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,l,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,C,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):s.arc(0,0,l,b,x,g):s.lineTo(j,P)}else s.moveTo(0,0);if(s.closePath(),t)return s=null,t+""||null}var n=J,e=Z,r=yf(0),i=null,o=Q,a=K,u=tt,s=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-_f/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:yf(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:yf(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:yf(+n),t):o},t.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:yf(+n),t):a},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:yf(+n),t):u},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t};it.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Mf=function(t){return new it(t)},kf=function(){function t(t){var u,s,c,l=t.length,f=!1;for(null==i&&(a=o(c=L())),u=0;u<=l;++u)!(u<l&&r(s=t[u],u,t))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+n(s,u,t),+e(s,u,t));if(c)return a=null,c+""||null}var n=ot,e=at,r=yf(!0),i=null,o=Mf,a=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:yf(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(a=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=a=null:a=o(i=n),t):i},t},Tf=function(){function t(t){var n,l,f,h,p,d=t.length,g=!1,v=new Array(d),y=new Array(d);for(null==u&&(c=s(p=L())),n=0;n<=d;++n){if(!(n<d&&a(h=t[n],n,t))===g)if(g=!g)l=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=n-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}g&&(v[n]=+e(h,n,t),y[n]=+i(h,n,t),c.point(r?+r(h,n,t):v[n],o?+o(h,n,t):y[n]))}if(p)return c=null,p+""||null}function n(){return kf().defined(a).curve(s).context(u)}var e=ot,r=null,i=yf(0),o=at,a=yf(!0),u=null,s=Mf,c=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:yf(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:yf(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(a="function"==typeof n?n:yf(!!n),t):a},t.curve=function(n){return arguments.length?(s=n,null!=u&&(c=s(u)),t):s},t.context=function(n){return arguments.length?(null==n?u=c=null:c=s(u=n),t):u},t},Sf=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Cf=function(t){return t},Nf=function(){function t(t){var u,s,c,l,f,h=t.length,p=0,d=new Array(h),g=new Array(h),v=+i.apply(this,arguments),y=Math.min(bf,Math.max(-bf,o.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u<h;++u)(f=g[d[u]=u]=+n(t[u],u,t))>0&&(p+=f);for(null!=e?d.sort(function(t,n){return e(g[t],g[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),u=0,c=p?(y-h*_)/p:0;u<h;++u,v=l)s=d[u],f=g[s],l=v+(f>0?f*c:0)+_,g[s]={data:t[s],index:u,value:f,startAngle:v,endAngle:l,padAngle:m};return g}var n=Cf,e=Sf,r=null,i=yf(0),o=yf(bf),a=yf(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:yf(+n),t):o},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:yf(+n),t):a},t},Ef=st(Mf);ut.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Af=function(){return ct(kf().curve(Ef))},qf=function(){var t=Tf().curve(Ef),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ct(e())},delete t.lineX0,t.lineEndAngle=function(){return ct(r())},delete t.lineX1,t.lineInnerRadius=function(){return ct(i())},delete t.lineY0,t.lineOuterRadius=function(){return ct(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(st(t)):n()._curve},t},Df={draw:function(t,n){var e=Math.sqrt(n/_f);t.moveTo(e,0),t.arc(0,0,e,0,bf)}},jf={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Lf=Math.sqrt(1/3),Pf=2*Lf,Of={draw:function(t,n){var e=Math.sqrt(n/Pf),r=e*Lf;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Ff=.8908130915292852,zf=Math.sin(_f/10)/Math.sin(7*_f/10),Rf=Math.sin(bf/10)*zf,Hf=-Math.cos(bf/10)*zf,If={draw:function(t,n){var e=Math.sqrt(n*Ff),r=Rf*e,i=Hf*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=bf*o/5,u=Math.cos(a),s=Math.sin(a);t.lineTo(s*e,-u*e),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},Uf={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Bf=Math.sqrt(3),Wf={draw:function(t,n){var e=-Math.sqrt(n/(3*Bf));t.moveTo(0,2*e),t.lineTo(-Bf*e,-e),t.lineTo(Bf*e,-e),t.closePath()}},Yf=-.5,$f=Math.sqrt(3)/2,Xf=1/Math.sqrt(12),Vf=3*(Xf/2+1),Gf={draw:function(t,n){var e=Math.sqrt(n/Vf),r=e/2,i=e*Xf,o=r,a=e*Xf+e,u=-o,s=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,s),t.lineTo(Yf*r-$f*i,$f*r+Yf*i),t.lineTo(Yf*o-$f*a,$f*o+Yf*a),t.lineTo(Yf*u-$f*s,$f*u+Yf*s),t.lineTo(Yf*r+$f*i,Yf*i-$f*r),t.lineTo(Yf*o+$f*a,Yf*a-$f*o),t.lineTo(Yf*u+$f*s,Yf*s-$f*u),t.closePath()}},Jf=[Df,jf,Of,Uf,If,Wf,Gf],Zf=function(){function t(){var t;if(r||(r=t=L()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=yf(Df),e=yf(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:yf(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},Qf=function(){};ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Kf=function(t){return new ft(t)};ht.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var th=function(t){return new ht(t)};pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var nh=function(t){return new pt(t)};dt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*a),this._beta*n[s]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var eh=function t(n){function e(t){return 1===n?new ft(t):new dt(t,n)}return e.beta=function(n){return t(+n)},e}(.85);vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var rh=function t(n){function e(t){return new vt(t,n)}return e.tension=function(n){return t(+n)},e}(0);yt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ih=function t(n){function e(t){return new yt(t,n)}return e.tension=function(n){return t(+n)},e}(0);mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var oh=function t(n){function e(t){return new mt(t,n)}return e.tension=function(n){return t(+n)},e}(0);xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ah=function t(n){function e(t){return n?new xt(t,n):new vt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);bt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var uh=function t(n){function e(t){return n?new bt(t,n):new yt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var sh=function t(n){function e(t){return n?new wt(t,n):new mt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Mt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var ch=function(t){return new Mt(t)};Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ct(this,this._t0,St(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Ct(this,St(this,e=Tt(this,t,n)),e);break;default:Ct(this,this._t0,e=Tt(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Et.prototype=Object.create(Nt.prototype)).point=function(t,n){Nt.prototype.point.call(this,n,t)},At.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Lt(t),i=Lt(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var lh=function(t){return new jt(t)};Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var fh=function(t){return new Pt(t,.5)},hh=Array.prototype.slice,ph=function(t,n){if((r=t.length)>1)for(var e,r,i=1,o=t[n[0]],a=o.length;i<r;++i){e=o,o=t[n[i]];for(var u=0;u<a;++u)o[u][1]+=o[u][0]=isNaN(e[u][1])?e[u][0]:e[u][1]}},dh=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},gh=function(){function t(t){var o,a,u=n.apply(this,arguments),s=t.length,c=u.length,l=new Array(c);for(o=0;o<c;++o){for(var f,h=u[o],p=l[o]=new Array(s),d=0;d<s;++d)p[d]=f=[0,+i(t[d],h,d,t)],f.data=t[d];p.key=h}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return r(l,a),l}var n=yf([]),e=dh,r=ph,i=zt;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:yf(hh.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?dh:"function"==typeof n?n:yf(hh.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?ph:n,t):r},t},vh=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}ph(t,n)}},yh=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}ph(t,n)}},mh=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,s=0,c=0;u<i;++u){for(var l=t[n[u]],f=l[a][1]||0,h=l[a-1][1]||0,p=(f-h)/2,d=0;d<u;++d){var g=t[n[d]],v=g[a][1]||0,y=g[a-1][1]||0;p+=v-y}s+=f,c+=p*f}e[a-1][1]+=e[a-1][0]=o,s&&(o-=c/s)}e[a-1][1]+=e[a-1][0]=o,ph(t,n)}},_h=function(t){var n=t.map(Rt);return dh(t).sort(function(t,e){return n[t]-n[e]})},xh=function(t){return _h(t).reverse()},bh=function(t){var n,e,r=t.length,i=t.map(Rt),o=dh(t).sort(function(t,n){return i[n]-i[t]}),a=0,u=0,s=[],c=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],s.push(e)):(u+=i[e],c.push(e));return c.reverse().concat(s)},wh=function(t){return dh(t).reverse()},Mh=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},kh=.7,Th=1/kh,Sh=/^#([0-9a-f]{3})$/,Ch=/^#([0-9a-f]{6})$/,Nh=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Eh=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Ah=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,qh=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Dh=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,jh=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Lh={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,rebeccapurple:6697881,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};Mh(It,Ut,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Mh(Xt,$t,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Mh(Zt,Jt,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new Zt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new Zt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Xt(Qt(t>=240?t-240:t+120,i,r),Qt(t,i,r),Qt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Ph=Math.PI/180,Oh=180/Math.PI,Fh=18,zh=.95047,Rh=1,Hh=1.08883,Ih=4/29,Uh=6/29,Bh=3*Uh*Uh,Wh=Uh*Uh*Uh;Mh(nn,tn,Ht(It,{brighter:function(t){return new nn(this.l+Fh*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new nn(this.l-Fh*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Rh*rn(t),n=zh*rn(n),e=Hh*rn(e),new Xt(on(3.2404542*n-1.5371385*t-.4985314*e),on(-.969266*n+1.8760108*t+.041556*e),on(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Mh(cn,sn,Ht(It,{brighter:function(t){return new cn(this.h,this.c,this.l+Fh*(null==t?1:t),this.opacity)},darker:function(t){return new cn(this.h,this.c,this.l-Fh*(null==t?1:t),this.opacity)},rgb:function(){return Kt(this).rgb()}}));var Yh=-.14861,$h=1.78277,Xh=-.29227,Vh=-.90649,Gh=1.97294,Jh=Gh*Vh,Zh=Gh*$h,Qh=$h*Xh-Vh*Yh;Mh(hn,fn,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new hn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Ph,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Xt(255*(n+e*(Yh*r+$h*i)),255*(n+e*(Xh*r+Vh*i)),255*(n+e*(Gh*r)),this.opacity)}}));var Kh,tp,np,ep,rp=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return pn((e-r/n)*n,a,i,o,u)}},ip=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return pn((e-r/n)*n,i,o,a,u)}},op=function(t){return function(){return t}},ap=function t(n){function e(t,n){var e=r((t=$t(t)).r,(n=$t(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),a=r(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var r=yn(n);return e.gamma=t,e}(1),up=_n(rp),sp=_n(ip),cp=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),a=new Array(r);for(e=0;e<i;++e)o[e]=vp(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}},lp=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},fp=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},hp=function(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=vp(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},pp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dp=new RegExp(pp.source,"g"),gp=function(t,n){var e,r,i,o=pp.lastIndex=dp.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=pp.exec(t))&&(r=dp.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:fp(e,r)})),o=dp.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?bn(s[0].x):xn(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})},vp=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?op(n):("number"===r?fp:"string"===r?(e=Ut(n))?(n=e,ap):gp:n instanceof Ut?ap:n instanceof Date?lp:Array.isArray(n)?cp:isNaN(n)?hp:fp)(t,n)},yp=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}},mp=180/Math.PI,_p={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},xp=function(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*mp,skewX:Math.atan(s)*mp,scaleX:a,scaleY:u}},bp=kn(wn,"px, ","px)","deg)"),wp=kn(Mn,", ",")",")"),Mp=Math.SQRT2,kp=2,Tp=4,Sp=1e-12,Cp=function(t,n){var e,r,i=t[0],o=t[1],a=t[2],u=n[0],s=n[1],c=n[2],l=u-i,f=s-o,h=l*l+f*f;if(h<Sp)r=Math.log(c/a)/Mp,e=function(t){return[i+t*l,o+t*f,a*Math.exp(Mp*t*r)]};else{var p=Math.sqrt(h),d=(c*c-a*a+Tp*h)/(2*a*kp*p),g=(c*c-a*a-Tp*h)/(2*c*kp*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/Mp,e=function(t){var n=t*r,e=Tn(v),u=a/(kp*p)*(e*Cn(Mp*n+v)-Sn(v));return[i+u*l,o+u*f,a*e/Tn(Mp*n+v)]}}return e.duration=1e3*r,e},Np=Nn(vn),Ep=Nn(mn),Ap=An(vn),qp=An(mn),Dp=qn(vn),jp=qn(mn),Lp=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},Pp={value:function(){}};jn.prototype=Dn.prototype={constructor:jn,on:function(t,n){var e,r=this._,i=Ln(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=On(r[e],t.name,n);else if(null==n)for(e in r)r[e]=On(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Pn(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new jn(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Op,Fp,zp=function(t){function n(t,n){var r,i,o=e(t,function(t,e){return r?r(t,e-1):(i=t,void(r=n?zn(t,n):Fn(t)))});return o.columns=i,o}function e(t,n){function e(){if(l>=c)return a;if(i)return i=!1,o;var n,e=l;if(34===t.charCodeAt(e)){for(var r=e;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return l=r+2,n=t.charCodeAt(r+1),13===n?(i=!0,10===t.charCodeAt(r+2)&&++l):10===n&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;l<c;){var u=1;if(n=t.charCodeAt(l++),10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(l)&&(++l,++u);else if(n!==s)continue;return t.slice(e,l-u)}return t.slice(e)}for(var r,i,o={},a={},u=[],c=t.length,l=0,f=0;(r=e())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=e();n&&null==(h=n(h,f++))||u.push(h)}return u}function r(n,e){return null==e&&(e=Rn(n)),[e.map(a).join(t)].concat(n.map(function(n){return e.map(function(t){return a(n[t])}).join(t)})).join("\n")}function i(t){return t.map(o).join("\n")}function o(n){return n.map(a).join(t)}function a(t){return null==t?"":u.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}},Rp=zp(","),Hp=Rp.parse,Ip=Rp.parseRows,Up=Rp.format,Bp=Rp.formatRows,Wp=zp("\t"),Yp=Wp.parse,$p=Wp.parseRows,Xp=Wp.format,Vp=Wp.formatRows,Gp=function(t,n){function e(t){var n,e=l.status;if(!e&&In(l)||e>=200&&e<300||304===e){if(a)try{n=a.call(r,l)}catch(t){return void s.call("error",r,t)}else n=l;s.call("load",r,n)}else s.call("error",r,t)}var r,i,a,u,s=Dn("beforesend","progress","load","error"),c=o(),l=new XMLHttpRequest,f=null,h=null,p=0;if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){l.readyState>3&&e(t)},l.onprogress=function(t){s.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c.get(t):(null==n?c.remove(t):c.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(p=+t,r):p},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",r)},response:function(t){return a=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,o){return l.open(n,t,!0,f,h),null==i||c.has("accept")||c.set("accept",i+",*/*"),l.setRequestHeader&&c.each(function(t,n){l.setRequestHeader(n,t)}),null!=i&&l.overrideMimeType&&l.overrideMimeType(i),null!=u&&(l.responseType=u),p>0&&(l.timeout=p),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=Hn(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),s.call("beforesend",r,l),l.send(null==e?null:e),r},abort:function(){return l.abort(),r},on:function(){var t=s.on.apply(s,arguments);return t===s?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r},Jp=function(t,n){return function(e,r){var i=Gp(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},Zp=Jp("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),Qp=Jp("application/json",function(t){return JSON.parse(t.responseText)}),Kp=Jp("text/plain",function(t){return t.responseText}),td=Jp("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),nd=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=Gp(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(Un(n,r=t)):r},o.row(r),i?o.get(i):o}},ed=nd("text/csv",Hp),rd=nd("text/tab-separated-values",Yp),id=0,od=0,ad=0,ud=1e3,sd=0,cd=0,ld=0,fd="object"==typeof performance&&performance.now?performance:Date,hd="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};Yn.prototype=$n.prototype={constructor:Yn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Bn():+e)+(null==n?0:+n),this._next||Fp===this||(Fp?Fp._next=this:Op=this,Fp=this),this._call=t,this._time=e,Zn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zn())}};var pd=function(t,n,e){var r=new Yn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},dd=function(t,n,e){var r=new Yn,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Bn():+e,r.restart(function o(a){a+=i,r.restart(o,i+=n,e),t(a)},n,e),r)},gd=new Date,vd=new Date,yd=Qn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});yd.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Qn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):yd:null};var md=yd.range,_d=1e3,xd=6e4,bd=36e5,wd=864e5,Md=6048e5,kd=Qn(function(t){t.setTime(Math.floor(t/_d)*_d)},function(t,n){t.setTime(+t+n*_d)},function(t,n){return(n-t)/_d},function(t){return t.getUTCSeconds()}),Td=kd.range,Sd=Qn(function(t){t.setTime(Math.floor(t/xd)*xd)},function(t,n){t.setTime(+t+n*xd)},function(t,n){return(n-t)/xd},function(t){return t.getMinutes()}),Cd=Sd.range,Nd=Qn(function(t){var n=t.getTimezoneOffset()*xd%bd;n<0&&(n+=bd),t.setTime(Math.floor((+t-n)/bd)*bd+n)},function(t,n){t.setTime(+t+n*bd)},function(t,n){return(n-t)/bd},function(t){return t.getHours()}),Ed=Nd.range,Ad=Qn(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xd)/wd},function(t){return t.getDate()-1}),qd=Ad.range,Dd=Kn(0),jd=Kn(1),Ld=Kn(2),Pd=Kn(3),Od=Kn(4),Fd=Kn(5),zd=Kn(6),Rd=Dd.range,Hd=jd.range,Id=Ld.range,Ud=Pd.range,Bd=Od.range,Wd=Fd.range,Yd=zd.range,$d=Qn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Xd=$d.range,Vd=Qn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Vd.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var Gd=Vd.range,Jd=Qn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*xd)},function(t,n){return(n-t)/xd},function(t){return t.getUTCMinutes()}),Zd=Jd.range,Qd=Qn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*bd)},function(t,n){return(n-t)/bd},function(t){return t.getUTCHours()}),Kd=Qd.range,tg=Qn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/wd},function(t){return t.getUTCDate()-1}),ng=tg.range,eg=te(0),rg=te(1),ig=te(2),og=te(3),ag=te(4),ug=te(5),sg=te(6),cg=eg.range,lg=rg.range,fg=ig.range,hg=og.range,pg=ag.range,dg=ug.range,gg=sg.range,vg=Qn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),yg=vg.range,mg=Qn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var _g,xg=mg.range,bg=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},wg=function(t){return t=bg(Math.abs(t)),t?t[1]:NaN},Mg=function(t,n){return function(e,r){for(var i=e.length,o=[],a=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(e.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}},kg=function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},Tg=function(t,n){var e=bg(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(_g=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bg(t,Math.max(0,n+o-1))[0]},Sg=function(t,n){var e=bg(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Cg={"":kg,"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Sg(100*t,n)},r:Sg,s:Tg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ng=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,Eg=function(t){return new ne(t)};ne.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Ag,qg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Dg=function(t){function n(t){function n(t){var n,i,s,m=d,_=g;if("c"===p)_=v(t)+_,t="";else{t=+t;var x=(t<0||1/t<0)&&(t*=-1,!0);if(t=v(t,h),x)for(n=-1,i=t.length,x=!1;++n<i;)if(s=t.charCodeAt(n),48<s&&s<58||"x"===p&&96<s&&s<103||"X"===p&&64<s&&s<71){x=!0;break}if(m=(x?"("===u?u:"-":"-"===u||"("===u?"":u)+m,_=_+("s"===p?qg[8+_g/3]:"")+(x&&"("===u?")":""),y)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){_=(46===s?o+t.slice(n+1):t.slice(n))+_,t=t.slice(0,n);break}}f&&!c&&(t=r(t,1/0));var b=m.length+t.length+_.length,w=b<l?new Array(l-b+1).join(e):"";switch(f&&c&&(t=r(w+t,w.length?l-_.length:1/0),w=""),a){case"<":return m+t+_+w;case"=":return m+w+t+_;case"^":return w.slice(0,b=w.length>>1)+m+t+_+w.slice(b)}return w+m+t+_}t=Eg(t);var e=t.fill,a=t.align,u=t.sign,s=t.symbol,c=t.zero,l=t.width,f=t.comma,h=t.precision,p=t.type,d="$"===s?i[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===s?i[1]:/[%p]/.test(p)?"%":"",v=Cg[p],y=!p||/[defgprs%]/.test(p);return h=null==h?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=Eg(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(wg(e)/3))),o=Math.pow(10,-i),a=qg[8+i/3];return function(t){return r(o*t)+a}}var r=t.grouping&&t.thousands?Mg(t.grouping,t.thousands):ee,i=t.currency,o=t.decimal;return{format:n,formatPrefix:e}};re({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var jg,Lg=function(t){return Math.max(0,-wg(Math.abs(t)))},Pg=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(wg(n)/3)))-wg(Math.abs(t)))},Og=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,wg(n)-wg(t))+1},Fg={"-":"",_:" ",0:"0"},zg=/^\s*\d+/,Rg=/^%/,Hg=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;nr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]});var Ig="%Y-%m-%dT%H:%M:%S.%LZ",Ug=Date.prototype.toISOString?er:t.utcFormat(Ig),Bg=+new Date("2000-01-01T00:00:00.000Z")?rr:t.utcParse(Ig),Wg=Array.prototype,Yg=Wg.map,$g=Wg.slice,Xg={name:"implicit"},Vg=function(t){return function(){return t}},Gg=function(t){return+t},Jg=[0,1],Zg=function(n,r,i){var o,a=n[0],u=n[n.length-1],s=e(a,u,null==r?10:r);switch(i=Eg(null==i?",f":i),i.type){case"s":var c=Math.max(Math.abs(a),Math.abs(u));return null!=i.precision||isNaN(o=Pg(s,c))||(i.precision=o),t.formatPrefix(i,c);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Og(s,Math.max(Math.abs(a),Math.abs(u))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Lg(s))||(i.precision=o-2*("%"===i.type))}return t.format(i)},Qg=function(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t},Kg=1e3,tv=60*Kg,nv=60*tv,ev=24*nv,rv=7*ev,iv=30*ev,ov=365*ev,av=function(){return jr(Vd,$d,Dd,Ad,Nd,Sd,kd,yd,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},uv=function(){return jr(mg,vg,eg,tg,Qd,Jd,kd,yd,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},sv=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},cv=sv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),lv=sv("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),fv=sv("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),hv=sv("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),pv=jp(fn(300,.5,0),fn(-240,.5,1)),dv=jp(fn(-100,.75,.35),fn(80,1.5,.8)),gv=jp(fn(260,.75,.35),fn(80,1.5,.8)),vv=fn(),yv=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return vv.h=360*t-100,vv.s=1.5-1.5*n,vv.l=.8-.9*n,vv+""},mv=Lr(sv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_v=Lr(sv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),xv=Lr(sv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bv=Lr(sv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),wv="http://www.w3.org/1999/xhtml",Mv={svg:"http://www.w3.org/2000/svg",xhtml:wv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},kv=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Mv.hasOwnProperty(n)?{space:Mv[n],local:t}:t},Tv=function(t){var n=kv(t);return(n.local?Fr:Or)(n)},Sv=0;Rr.prototype=zr.prototype={constructor:Rr,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Cv=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Nv=document.documentElement;if(!Nv.matches){var Ev=Nv.webkitMatchesSelector||Nv.msMatchesSelector||Nv.mozMatchesSelector||Nv.oMatchesSelector;Cv=function(t){return function(){return Ev.call(this,t)}}}}var Av=Cv,qv={};if(t.event=null,"undefined"!=typeof document){var Dv=document.documentElement;"onmouseenter"in Dv||(qv={mouseenter:"mouseover",mouseleave:"mouseout"})}var jv=function(t,n,e){var r,i,o=Ur(t+""),a=o.length;{if(!(arguments.length<2)){for(u=n?Wr:Br,null==e&&(e=!1),r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}},Lv=function(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e},Pv=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Ov=function(t){var n=Lv();return n.changedTouches&&(n=n.changedTouches[0]),Pv(t,n)},Fv=function(t){return null==t?$r:function(){return this.querySelector(t)}},zv=function(t){"function"!=typeof t&&(t=Fv(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,c=r[i]=new Array(s),l=0;l<s;++l)(o=u[l])&&(a=t.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new qi(r,this._parents)},Rv=function(t){return null==t?Xr:function(){return this.querySelectorAll(t)}},Hv=function(t){"function"!=typeof t&&(t=Rv(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,c=0;c<s;++c)(a=u[c])&&(r.push(t.call(a,a.__data__,c,u)),i.push(a));return new qi(r,i)},Iv=function(t){"function"!=typeof t&&(t=Av(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new qi(r,this._parents)},Uv=function(t){return new Array(t.length)},Bv=function(){return new qi(this._enter||this._groups.map(Uv),this._parents)};Vr.prototype={constructor:Vr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Wv=function(t){return function(){return t}},Yv="$",$v=function(t,n){if(!t)return p=new Array(this.size()),c=-1,this.each(function(t){p[++c]=t}),p;var e=n?Jr:Gr,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Wv(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),c=0;c<o;++c){var l=r[c],f=i[c],h=f.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,g=u[c]=new Array(d),v=a[c]=new Array(d),y=s[c]=new Array(h);e(l,f,g,v,y,p,n);for(var m,_,x=0,b=0;x<d;++x)if(m=g[x]){for(x>=b&&(b=x+1);!(_=v[b])&&++b<d;);m._next=_||null}}return a=new qi(a,r),a._enter=u,a._exit=s,a},Xv=function(){return new qi(this._exit||this._groups.map(Uv),this._parents)},Vv=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=n[u],l=e[u],f=c.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new qi(a,this._parents)},Gv=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Jv=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Zr);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,c=i[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(n)}return new qi(i,this._parents).order()},Zv=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Qv=function(){var t=new Array(this.size()),n=-1;return this.each(function(){
-t[++n]=this}),t},Kv=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},ty=function(){var t=0;return this.each(function(){++t}),t},ny=function(){return!this.node()},ey=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},ry=function(t,n){var e=kv(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Kr:Qr:"function"==typeof n?e.local?ri:ei:e.local?ni:ti)(e,n))},iy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},oy=function(t,n,e){var r;return arguments.length>1?this.each((null==n?ii:"function"==typeof n?ai:oi)(t,n,null==e?"":e)):iy(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},ay=function(t,n){return arguments.length>1?this.each((null==n?ui:"function"==typeof n?ci:si)(t,n)):this.node()[t]};hi.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var uy=function(t,n){var e=li(t+"");if(arguments.length<2){for(var r=fi(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?yi:n?gi:vi)(e,n))},sy=function(t){return arguments.length?this.each(null==t?mi:("function"==typeof t?xi:_i)(t)):this.node().textContent},cy=function(t){return arguments.length?this.each(null==t?bi:("function"==typeof t?Mi:wi)(t)):this.node().innerHTML},ly=function(){return this.each(ki)},fy=function(){return this.each(Ti)},hy=function(t){var n="function"==typeof t?t:Tv(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},py=function(t,n){var e="function"==typeof t?t:Tv(t),r=null==n?Si:"function"==typeof n?n:Fv(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},dy=function(){return this.each(Ci)},gy=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},vy=function(t,n){return this.each(("function"==typeof n?Ai:Ei)(t,n))},yy=[null];qi.prototype=Di.prototype={constructor:qi,select:zv,selectAll:Hv,filter:Iv,data:$v,enter:Bv,exit:Xv,merge:Vv,order:Gv,sort:Jv,call:Zv,nodes:Qv,node:Kv,size:ty,empty:ny,each:ey,attr:ry,style:oy,property:ay,classed:uy,text:sy,html:cy,raise:ly,lower:fy,append:hy,insert:py,remove:dy,datum:gy,on:jv,dispatch:vy};var my=function(t){return"string"==typeof t?new qi([[document.querySelector(t)]],[document.documentElement]):new qi([[t]],yy)},_y=function(t){return"string"==typeof t?new qi([document.querySelectorAll(t)],[document.documentElement]):new qi([null==t?[]:t],yy)},xy=function(t,n,e){arguments.length<3&&(e=n,n=Lv().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Pv(t,r);return null},by=function(t,n){null==n&&(n=Lv().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Pv(t,n[e]);return i},wy=Dn("start","end","interrupt"),My=[],ky=0,Ty=1,Sy=2,Cy=3,Ny=4,Ey=5,Ay=6,qy=function(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};Oi(t,e,{name:n,index:r,group:i,on:wy,tween:My,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ky})},Dy=function(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>Sy&&e.state<Ey,e.state=Ay,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}},jy=function(t){return this.each(function(){Dy(this,t)})},Ly=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Pi(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Fi:zi)(e,t,n))},Py=function(t,n){var e;return("number"==typeof n?fp:n instanceof Ut?ap:(e=Ut(n))?(n=e,ap):gp)(t,n)},Oy=function(t,n){var e=kv(t),r="transform"===e?wp:Py;return this.attrTween(t,"function"==typeof n?(e.local?Yi:Wi)(e,r,Ri(this,"attr."+t,n)):null==n?(e.local?Ii:Hi)(e):(e.local?Bi:Ui)(e,r,n))},Fy=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=kv(t);return this.tween(e,(r.local?$i:Xi)(r,n))},zy=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Vi:Gi)(n,t)):Pi(this.node(),n).delay},Ry=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ji:Zi)(n,t)):Pi(this.node(),n).duration},Hy=function(t){var n=this._id;return arguments.length?this.each(Qi(n,t)):Pi(this.node(),n).ease},Iy=function(t){"function"!=typeof t&&(t=Av(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new co(r,this._parents,this._name,this._id)},Uy=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=n[u],l=e[u],f=c.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new co(a,this._parents,this._name,this._id)},By=function(t,n){var e=this._id;return arguments.length<2?Pi(this.node(),e).on.on(t):this.each(to(e,t,n))},Wy=function(){return this.on("end.remove",no(this._id))},Yy=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Fv(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,c=r[a],l=c.length,f=o[a]=new Array(l),h=0;h<l;++h)(u=c[h])&&(s=t.call(u,u.__data__,h,c))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,qy(f[h],n,e,h,f,Pi(u,e)));return new co(o,this._parents,n,e)},$y=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Rv(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var h,p=t.call(s,s.__data__,f,c),d=Pi(s,e),g=0,v=p.length;g<v;++g)(h=p[g])&&qy(h,n,e,g,p,d);o.push(p),a.push(s)}return new co(o,a,n,e)},Xy=Di.prototype.constructor,Vy=function(){return new Xy(this._groups,this._parents)},Gy=function(t,n,e){var r="transform"==(t+="")?bp:Py;return null==n?this.styleTween(t,eo(t,r)).on("end.style."+t,ro(t)):this.styleTween(t,"function"==typeof n?oo(t,r,Ri(this,"style."+t,n)):io(t,r,n),e)},Jy=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,ao(t,n,null==e?"":e))},Zy=function(t){return this.tween("text","function"==typeof t?so(Ri(this,"text",t)):uo(null==t?"":t+""))},Qy=function(){for(var t=this._name,n=this._id,e=fo(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=Pi(a,n);qy(a,t,e,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new co(r,this._parents,t,e)},Ky=0,tm=Di.prototype;co.prototype=lo.prototype={constructor:co,select:Yy,selectAll:$y,filter:Iy,merge:Uy,selection:Vy,transition:Qy,call:tm.call,nodes:tm.nodes,node:tm.node,size:tm.size,empty:tm.empty,each:tm.each,on:By,attr:Oy,attrTween:Fy,style:Gy,styleTween:Jy,text:Zy,remove:Wy,tween:Ly,delay:zy,duration:Ry,ease:Hy};var nm={time:null,delay:0,duration:250,ease:m},em=function(t){var n,e;t instanceof co?(n=t._id,t=t._name):(n=fo(),(e=nm).time=Bn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)(a=u[c])&&qy(a,t,n,c,u,e||ho(a,n));return new co(r,this._parents,t,n)};Di.prototype.interrupt=jy,Di.prototype.transition=em;var rm=[null],im=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Ty&&e.name===n)return new co([[t]],rm,n,+r)}return null},om=Array.prototype.slice,am=function(t){return t},um=1,sm=2,cm=3,lm=4,fm=1e-6,hm=function(){function t(t){var o,a=0;t.eachAfter(function(t){var e=t.children;e?(t.x=ko(e),t.y=So(e)):(t.x=o?a+=n(t,o):0,t.y=0,o=t)});var u=No(t),s=Eo(t),c=u.x-n(u,s)/2,l=s.x+n(s,u)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-c)/(l-c)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=Mo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},pm=function(t){var n,e,r,i,o=this,a=[o];do for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);while(a.length);return this},dm=function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},gm=function(t){for(var n,e,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=a.pop();)t(i);return this},vm=function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},ym=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},mm=function(t){for(var n=this,e=Ao(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},_m=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},xm=function(){var t=[];return this.each(function(n){t.push(n)}),t},bm=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},wm=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n};Oo.prototype=qo.prototype={constructor:Oo,each:pm,eachAfter:gm,eachBefore:dm,sum:vm,sort:ym,path:mm,ancestors:_m,descendants:xm,leaves:bm,links:wm,copy:Do};var Mm=function(t){for(var n,e=(t=t.slice()).length,r=null,i=r;e;){var o=new Fo(t[e-1]);i=i?i.next=o:r=o,t[n]=t[--e]}return{head:r,tail:i}},km=function(t){return Ro(Mm(t),[])},Tm=function(t){return Xo(t),t},Sm=function(t){return function(){return t}},Cm=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(Qo(n)).eachAfter(Ko(i,.5)).eachBefore(ta(1)):t.eachBefore(Qo(Zo)).eachAfter(Ko(Jo,1)).eachAfter(Ko(i,t.r/Math.min(e,r))).eachBefore(ta(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=Jo;return t.radius=function(e){return arguments.length?(n=Vo(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:Sm(+n),t):i},t},Nm=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Em=function(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-n)/t.value;++u<s;)o=a[u],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*c},Am=function(){function t(t){var a=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/a,t.eachBefore(n(r,a)),o&&t.eachBefore(Nm),t}function n(t,n){return function(e){e.children&&Em(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,a=e.x1-i,u=e.y1-i;a<r&&(r=a=(r+a)/2),u<o&&(o=u=(o+u)/2),e.x0=r,e.y0=o,e.x1=a,e.y1=u}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t},qm="$",Dm={depth:-1},jm={},Lm=function(){function t(t){var r,i,o,a,u,s,c,l=t.length,f=new Array(l),h={};for(i=0;i<l;++i)r=t[i],u=f[i]=new Oo(r),null!=(s=n(r,i,t))&&(s+="")&&(c=qm+(u.id=s),h[c]=c in h?jm:u);for(i=0;i<l;++i)if(u=f[i],s=e(t[i],i,t),null!=s&&(s+="")){if(a=h[qm+s],!a)throw new Error("missing: "+s);if(a===jm)throw new Error("ambiguous: "+s);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Dm,o.eachBefore(function(t){t.depth=t.parent.depth+1,--l}).eachBefore(Po),o.parent=null,l>0)throw new Error("cycle");return o}var n=na,e=ea;return t.id=function(e){return arguments.length?(n=Go(e),t):n},t.parentId=function(n){return arguments.length?(e=Go(n),t):e},t};ca.prototype=Object.create(Oo.prototype);var Pm=function(){function t(t){var r=la(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),s)t.eachBefore(i);else{var c=t,l=t,f=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)});var h=c===l?1:o(c,l)/2,p=h-c.x,d=a/(l.x+h+p),g=u/(f.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*g})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){ua(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+o(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,a=t,u=n,s=i.parent.children[0],c=i.m,l=a.m,f=u.m,h=s.m;u=oa(u),i=ia(i),u&&i;)s=ia(s),a=oa(a),a.a=t,r=u.z+f-i.z-c+o(u._,i._),r>0&&(aa(sa(u,t,e),t,r),c+=r,l+=r),f+=u.m,c+=i.m,h+=s.m,l+=a.m;u&&!oa(a)&&(a.t=u,a.m+=f-l),i&&!ia(s)&&(s.t=i,s.m+=c-h,e=t)}return e}function i(t){t.x*=a,t.y=t.depth*u}var o=ra,a=1,u=1,s=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(s=!1,a=+n[0],u=+n[1],t):s?null:[a,u]},t.nodeSize=function(n){return arguments.length?(s=!0,a=+n[0],u=+n[1],t):s?[a,u]:null},t},Om=function(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(i-e)/t.value;++u<s;)o=a[u],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*c},Fm=(1+Math.sqrt(5))/2,zm=function t(n){function e(t,e,r,i,o){fa(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Fm),Rm=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),a=[0],r&&t.eachBefore(Nm),t}function n(t){var n=a[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(n=a[t.depth+1]=u(t)/2,r+=f(t)-n,i+=s(t)-n,o-=c(t)-n,h-=l(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=zm,r=!1,i=1,o=1,a=[0],u=Jo,s=Jo,c=Jo,l=Jo,f=Jo;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=Go(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(u="function"==typeof n?n:Sm(+n),t):u},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(s="function"==typeof n?n:Sm(+n),t):s},t.paddingRight=function(n){return arguments.length?(c="function"==typeof n?n:Sm(+n),t):c},t.paddingBottom=function(n){return arguments.length?(l="function"==typeof n?n:Sm(+n),t):l},t.paddingLeft=function(n){return arguments.length?(f="function"==typeof n?n:Sm(+n),t):f},t},Hm=function(t,n,e,r,i){function o(t,n,e,r,i,a,u){if(t>=n-1){var c=s[t];return c.x0=r,c.y0=i,c.x1=a,c.y1=u,void 0}for(var f=l[t],h=e/2+f,p=t+1,d=n-1;p<d;){var g=p+d>>>1;l[g]<h?p=g+1:d=g}var v=l[p]-f,y=e-v;if(u-i>a-r){var m=(i*y+u*v)/e;o(t,p,v,r,i,a,m),o(p,n,y,r,m,a,u)}else{var _=(r*y+a*v)/e;o(t,p,v,r,i,_,u),o(p,n,y,_,i,a,u)}}var a,u,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=u=a=0;a<c;++a)l[a+1]=u+=s[a].value;o(0,c,t.value,n,e,r,i)},Im=function(t,n,e,r,i){(1&t.depth?Om:Em)(t,n,e,r,i)},Um=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,s,c,l,f=-1,h=a.length,p=t.value;++f<h;){for(u=a[f],s=u.children,c=u.value=0,l=s.length;c<l;++c)u.value+=s[c].value;u.dice?Em(u,e,r,i,r+=(o-r)*u.value/p):Om(u,e,r,e+=(i-e)*u.value/p,o),p-=u.value}else t._squarify=a=fa(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Fm),Bm=function(t,n){function e(){var e,i,o=r.length,a=0,u=0;for(e=0;e<o;++e)i=r[e],a+=i.x,u+=i.y;for(a=a/o-t,u=u/o-n,e=0;e<o;++e)i=r[e],i.x-=a,i.y-=u}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e},Wm=function(t){return function(){return t}},Ym=function(){return 1e-6*(Math.random()-.5)},$m=function(t){function n(){function t(t,e,r,i,o){var u=t.data,p=t.r,d=f+p;{if(!u)return e>c+d||i<c-d||r>l+d||o<l-d;if(u.index>n){var g=c-u.x-u.vx,v=l-u.y-u.vy,y=g*g+v*v;y<d*d&&(0===g&&(g=Ym(),y+=g*g),0===v&&(v=Ym(),y+=v*v),y=(d-(y=Math.sqrt(y)))/y*a,s.vx+=(g*=y)*(d=(p*=p)/(h+p)),s.vy+=(v*=y)*d,u.vx-=g*(d=1-d),u.vy-=v*d)}}}for(var n,r,s,c,l,f,h,p=i.length,d=0;d<u;++d)for(r=H(i,ha,pa).visitAfter(e),n=0;n<p;++n)s=i[n],f=o[n],h=f*f,c=s.x+s.vx,l=s.y+s.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e=i.length;for(o=new Array(e),n=0;n<e;++n)o[n]=+t(i[n],n,i)}}var i,o,a=1,u=1;return"function"!=typeof t&&(t=Wm(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(u=+t,n):u},n.strength=function(t){return arguments.length?(a=+t,n):a},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:Wm(+e),r(),n):t},n},Xm=function(t){function n(t){return 1/Math.min(l[t.source.index],l[t.target.index])}function e(n){for(var e=0,r=t.length;e<g;++e)for(var i,o,a,c,l,h,p,d=0;d<r;++d)i=t[d],o=i.source,a=i.target,c=a.x+a.vx-o.x-o.vx||Ym(),l=a.y+a.vy-o.y-o.vy||Ym(),h=Math.sqrt(c*c+l*l),h=(h-s[d])/h*n*u[d],c*=h,l*=h,a.vx-=c*(p=f[d]),a.vy-=l*p,o.vx+=c*(p=1-p),o.vy+=l*p}function r(){if(c){var n,e,r=c.length,p=t.length,d=o(c,h);for(n=0,l=new Array(r);n<r;++n)l[n]=0;for(n=0;n<p;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=ga(d,e.source)),"object"!=typeof e.target&&(e.target=ga(d,e.target)),++l[e.source.index],++l[e.target.index];for(n=0,f=new Array(p);n<p;++n)e=t[n],f[n]=l[e.source.index]/(l[e.source.index]+l[e.target.index]);u=new Array(p),i(),s=new Array(p),a()}}function i(){if(c)for(var n=0,e=t.length;n<e;++n)u[n]=+p(t[n],n,t)}function a(){if(c)for(var n=0,e=t.length;n<e;++n)s[n]=+d(t[n],n,t)}var u,s,c,l,f,h=da,p=n,d=Wm(30),g=1;return null==t&&(t=[]),e.initialize=function(t){c=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(h=t,e):h},e.iterations=function(t){return arguments.length?(g=+t,e):g},e.strength=function(t){return arguments.length?(p="function"==typeof t?t:Wm(+t),i(),e):p},e.distance=function(t){return arguments.length?(d="function"==typeof t?t:Wm(+t),a(),e):d},e},Vm=10,Gm=Math.PI*(3-Math.sqrt(5)),Jm=function(t){function n(){e(),d.call("tick",a),u<s&&(p.stop(),d.call("end",a))}function e(){var n,e,r=t.length;for(u+=(l-u)*c,h.each(function(t){t(u)}),n=0;n<r;++n)e=t[n],null==e.fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(e.y=e.fy,e.vy=0)}function r(){for(var n,e=0,r=t.length;e<r;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=Vm*Math.sqrt(e),o=e*Gm;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var a,u=1,s=.001,c=1-Math.pow(s,1/300),l=0,f=.6,h=o(),p=$n(n),d=Dn("tick","end");return null==t&&(t=[]),r(),a={tick:e,restart:function(){return p.restart(n),a},stop:function(){return p.stop(),a},nodes:function(n){return arguments.length?(t=n,r(),h.each(i),a):t},alpha:function(t){return arguments.length?(u=+t,a):u},alphaMin:function(t){return arguments.length?(s=+t,a):s},alphaDecay:function(t){return arguments.length?(c=+t,a):+c},alphaTarget:function(t){return arguments.length?(l=+t,a):l},velocityDecay:function(t){return arguments.length?(f=1-t,a):1-f},force:function(t,n){return arguments.length>1?(null==n?h.remove(t):h.set(t,i(n)),a):h.get(t)},find:function(n,e,r){var i,o,a,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)u=t[c],i=n-u.x,o=e-u.y,a=i*i+o*o,a<r&&(s=u,r=a);return s},on:function(t,n){return arguments.length>1?(d.on(t,n),a):d.on(t)}}},Zm=function(){function t(t){var n,u=i.length,s=H(i,va,ya).visitAfter(e);for(a=t,n=0;n<u;++n)o=i[n],s.visit(r)}function n(){if(i){var t,n=i.length;for(u=new Array(n),t=0;t<n;++t)u[t]=+s(i[t],t,i)}}function e(t){var n,e,r,i,o,a=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=n.value)&&(a+=e,r+=e*n.x,i+=e*n.y);t.x=r/a,t.y=i/a}else{n=t,n.x=n.data.x,n.y=n.data.y;do a+=u[n.data.index];while(n=n.next)}t.value=a}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,s=t.y-o.y,h=r-n,p=i*i+s*s;if(h*h/f<p)return p<l&&(0===i&&(i=Ym(),p+=i*i),0===s&&(s=Ym(),p+=s*s),p<c&&(p=Math.sqrt(c*p)),o.vx+=i*t.value*a/p,o.vy+=s*t.value*a/p),!0;if(!(t.length||p>=l)){(t.data!==o||t.next)&&(0===i&&(i=Ym(),p+=i*i),0===s&&(s=Ym(),p+=s*s),p<c&&(p=Math.sqrt(c*p)));do t.data!==o&&(h=u[t.data.index]*a/p,o.vx+=i*h,o.vy+=s*h);while(t=t.next)}}var i,o,a,u,s=Wm(-30),c=1,l=1/0,f=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Wm(+e),n(),t):s},t.distanceMin=function(n){return arguments.length?(c=n*n,t):Math.sqrt(c)},t.distanceMax=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t.theta=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t},Qm=function(t){function n(t){for(var n,e=0,a=r.length;e<a;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+a(r[n],n,r)}}var r,i,o,a=Wm(.1);return"function"!=typeof t&&(t=Wm(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(a="function"==typeof t?t:Wm(+t),e(),n):a},n.x=function(r){return arguments.length?(t="function"==typeof r?r:Wm(+r),e(),n):t},n},Km=function(t){function n(t){for(var n,e=0,a=r.length;e<a;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+a(r[n],n,r)}}var r,i,o,a=Wm(.1);return"function"!=typeof t&&(t=Wm(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(a="function"==typeof t?t:Wm(+t),e(),n):a},n.y=function(r){return arguments.length?(t="function"==typeof r?r:Wm(+r),e(),n):t},n},t_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},n_=function(t){var n=t.document.documentElement,e=my(t).on("dragstart.drag",t_,!0);"onselectstart"in n?e.on("selectstart.drag",t_,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},e_=function(t){return function(){return t}};xa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var r_=function(){function n(t){t.on("mousedown.drag",e).on("touchstart.drag",o).on("touchmove.drag",a).on("touchend.drag touchcancel.drag",u).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!l&&f.apply(this,arguments)){var n=s("mouse",h.apply(this,arguments),Ov,this,arguments);n&&(my(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),n_(t.event.view),ma(),c=!1,n("start"))}}function r(){t_(),c=!0,d.mouse("drag")}function i(){my(t.event.view).on("mousemove.drag mouseup.drag",null),_a(t.event.view,c),t_(),d.mouse("end")}function o(){if(f.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=h.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(e=s(r[n].identifier,i,xy,this,arguments))&&(ma(),e("start"))}}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(n=0;n<i;++n)(e=d[r[n].identifier])&&(t_(),e("drag"))}function u(){var n,e,r=t.event.changedTouches,i=r.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),n=0;n<i;++n)(e=d[r[n].identifier])&&(ma(),e("end"))}function s(e,r,i,o,a){var u,s,c,l=i(r,e),f=g.copy();if(Yr(new xa(n,"beforestart",u,e,v,l[0],l[1],0,0,f),function(){return null!=(t.event.subject=u=p.apply(o,a))&&(s=u.x-l[0]||0,c=u.y-l[1]||0,!0)}))return function t(h){var p,g=l;switch(h){case"start":d[e]=t,p=v++;break;case"end":delete d[e],--v;case"drag":l=i(r,e),p=v}Yr(new xa(n,h,u,e,p,l[0]+s,l[1]+c,l[0]-g[0],l[1]-g[1],f),f.apply,f,[h,o,a])}}var c,l,f=ba,h=wa,p=Ma,d={},g=Dn("start","drag","end"),v=0;return n.filter=function(t){return arguments.length?(f="function"==typeof t?t:e_(!!t),n):f},n.container=function(t){return arguments.length?(h="function"==typeof t?t:e_(t),n):h},n.subject=function(t){return arguments.length?(p="function"==typeof t?t:e_(t),n):p},n.on=function(){var t=g.on.apply(g,arguments);return t===g?n:t},n},i_=function(t){return function(){return t}};Sa.prototype={constructor:Sa,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Aa(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Na(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Ea(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Ea(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Na(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Aa(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,Na(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Ea(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Na(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Ea(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Na(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Ea(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var o_,a_,u_,s_,c_,l_=[],f_=[],h_=1e-6,p_=1e-12;nu.prototype={constructor:nu,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return Ra(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){for(var i,o=e.site,a=e.halfedges,u=-1,s=a.length,c=n[a[s-1]],l=c.left===o?c.right:c.left;++u<s;)i=l,c=n[a[u]],l=c.left===o?c.right:c.left,i&&l&&r<i.index&&r<l.index&&Ka(o,i,l)<0&&t.push([o.data,i.data,l.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){var r,i=this,o=i._found||0,a=i.cells[o]||i.cells[o=0],u=t-a.site[0],s=n-a.site[1],c=u*u+s*s;do a=i.cells[r=o],o=null,a.halfedges.forEach(function(e){var r=i.edges[e],u=r.left;if(u!==a.site&&u||(u=r.right)){var s=t-u[0],l=n-u[1],f=s*s+l*l;f<c&&(c=f,o=u.index)}});while(null!==o);return i._found=r,null==e||c<=e*e?a.site:null}};var d_=function(){function t(t){return new nu(t.map(function(r,i){var o=[Math.round(n(r,i,t)/h_)*h_,Math.round(e(r,i,t)/h_)*h_];return o.index=i,o.data=r,o}),r)}var n=ka,e=Ta,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:i_(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:i_(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},g_=function(t){return function(){return t}};ru.prototype={constructor:ru,scale:function(t){return 1===t?this:new ru(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ru(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var v_=new ru(1,0,0);iu.prototype=ru.prototype;var y_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},m_=function(){function n(t){t.on("wheel.zoom",c).on("mousedown.zoom",l).on("dblclick.zoom",f).on("touchstart.zoom",h).on("touchmove.zoom",p).on("touchend.zoom touchcancel.zoom",d).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",su)}function e(t,n){return n=Math.max(_,Math.min(x,n)),n===t.k?t:new ru(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new ru(t.k,r,i)}function i(t,n){var e=Math.min(0,t.invertX(n[0][0])-b)||Math.max(0,t.invertX(n[1][0])-w),r=Math.min(0,t.invertY(n[0][1])-M)||Math.max(0,t.invertY(n[1][1])-k);return e||r?t.translate(e,r):t}function o(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function a(t,n,e){t.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=u(t,r),a=m.apply(t,r),s=e||o(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof n?n.apply(t,r):n,h=Cp(l.invert(s).concat(c/l.k),f.invert(s).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new ru(e,s[0]-n[0]*e,s[1]-n[1]*e)}i.zoom(null,t)}})}function u(t,n){for(var e,r=0,i=S.length;r<i;++r)if((e=S[r]).that===t)return e;return new s(t,n)}function s(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=m.apply(t,n)}function c(){function n(){o.wheel=null,o.end()}if(y.apply(this,arguments)){var o=u(this,arguments),a=this.__zoom,s=Math.max(_,Math.min(x,a.k*Math.pow(2,-t.event.deltaY*(t.event.deltaMode?120:1)/500))),c=Ov(this);if(o.wheel)o.mouse[0][0]===c[0]&&o.mouse[0][1]===c[1]||(o.mouse[1]=a.invert(o.mouse[0]=c)),clearTimeout(o.wheel);else{if(a.k===s)return;o.mouse=[c,a.invert(c)],Dy(this),o.start()}y_(),o.wheel=setTimeout(n,E),o.zoom("mouse",i(r(e(a,s),o.mouse[0],o.mouse[1]),o.extent))}}function l(){function n(){y_(),o.moved=!0,o.zoom("mouse",i(r(o.that.__zoom,o.mouse[0]=Ov(o.that),o.mouse[1]),o.extent))}function e(){a.on("mousemove.zoom mouseup.zoom",null),_a(t.event.view,o.moved),y_(),o.end()}if(!v&&y.apply(this,arguments)){var o=u(this,arguments),a=my(t.event.view).on("mousemove.zoom",n,!0).on("mouseup.zoom",e,!0),s=Ov(this);n_(t.event.view),ou(),o.mouse=[s,this.__zoom.invert(s)],Dy(this),o.start()}}function f(){if(y.apply(this,arguments)){var o=this.__zoom,u=Ov(this),s=o.invert(u),c=o.k*(t.event.shiftKey?.5:2),l=i(r(e(o,c),u,s),m.apply(this,arguments));y_(),T>0?my(this).transition().duration(T).call(a,l,u):my(this).call(n.transform,l)}}function h(){if(y.apply(this,arguments)){var n,e,r,i=u(this,arguments),o=t.event.changedTouches,a=o.length;for(ou(),n=0;n<a;++n)e=o[n],r=xy(this,o,e.identifier),r=[r,this.__zoom.invert(r),e.identifier],i.touch0?i.touch1||(i.touch1=r):i.touch0=r;return g&&(g=clearTimeout(g),!i.touch1)?(i.end(),f.apply(this,arguments)):void(t.event.touches.length===a&&(g=setTimeout(function(){g=null},N),Dy(this),i.start()))}}function p(){var n,o,a,s,c=u(this,arguments),l=t.event.changedTouches,f=l.length;for(y_(),g&&(g=clearTimeout(g)),n=0;n<f;++n)o=l[n],a=xy(this,l,o.identifier),c.touch0&&c.touch0[2]===o.identifier?c.touch0[0]=a:c.touch1&&c.touch1[2]===o.identifier&&(c.touch1[0]=a);if(o=c.that.__zoom,c.touch1){var h=c.touch0[0],p=c.touch0[1],d=c.touch1[0],v=c.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,m=(m=v[0]-p[0])*m+(m=v[1]-p[1])*m;o=e(o,Math.sqrt(y/m)),a=[(h[0]+d[0])/2,(h[1]+d[1])/2],s=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!c.touch0)return;a=c.touch0[0],s=c.touch0[1];
-}c.zoom("touch",i(r(o,a,s),c.extent))}function d(){var n,e,r=u(this,arguments),i=t.event.changedTouches,o=i.length;for(ou(),v&&clearTimeout(v),v=setTimeout(function(){v=null},N),n=0;n<o;++n)e=i[n],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0||r.end()}var g,v,y=au,m=uu,_=0,x=1/0,b=-x,w=x,M=b,k=w,T=250,S=[],C=Dn("start","zoom","end"),N=500,E=150;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",su),t!==e?a(t,n):e.interrupt().each(function(){u(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},n.scaleBy=function(t,e){n.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n})},n.scaleTo=function(t,a){n.transform(t,function(){var t=m.apply(this,arguments),n=this.__zoom,u=o(t),s=n.invert(u),c="function"==typeof a?a.apply(this,arguments):a;return i(r(e(n,c),u,s),t)})},n.translateBy=function(t,e,r){n.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),m.apply(this,arguments))})},s.prototype={start:function(){return 1===++this.active&&(this.index=S.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0===--this.active&&(S.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){Yr(new eu(n,t,this.that.__zoom),C.apply,C,[t,this.that,this.args])}},n.filter=function(t){return arguments.length?(y="function"==typeof t?t:g_(!!t),n):y},n.extent=function(t){return arguments.length?(m="function"==typeof t?t:g_([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):m},n.scaleExtent=function(t){return arguments.length?(_=+t[0],x=+t[1],n):[_,x]},n.translateExtent=function(t){return arguments.length?(b=+t[0][0],w=+t[1][0],M=+t[0][1],k=+t[1][1],n):[[b,M],[w,k]]},n.duration=function(t){return arguments.length?(T=+t,n):T},n.on=function(){var t=C.on.apply(C,arguments);return t===C?n:t},n},__=function(t){return function(){return t}},x_=function(t,n,e){this.target=t,this.type=n,this.selection=e},b_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},w_={name:"drag"},M_={name:"space"},k_={name:"handle"},T_={name:"center"},S_={name:"x",handles:["e","w"].map(lu),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},C_={name:"y",handles:["n","s"].map(lu),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},N_={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(lu),input:function(t){return t},output:function(t){return t}},E_={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},A_={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},q_={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},D_={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},j_={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},L_=function(){return mu(N_)},P_=Math.cos,O_=Math.sin,F_=Math.PI,z_=F_/2,R_=2*F_,H_=Math.max,I_=function(){function t(t){var o,a,u,s,c,l,f=t.length,h=[],p=zc(f),d=[],g=[],v=g.groups=new Array(f),y=new Array(f*f);for(o=0,c=-1;++c<f;){for(a=0,l=-1;++l<f;)a+=t[c][l];h.push(a),d.push(zc(f)),o+=a}for(e&&p.sort(function(t,n){return e(h[t],h[n])}),r&&d.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=H_(0,R_-n*f)/o,s=o?n:R_/f,a=0,c=-1;++c<f;){for(u=a,l=-1;++l<f;){var m=p[c],_=d[m][l],x=t[m][_],b=a,w=a+=x*o;y[_*f+m]={index:m,subindex:_,startAngle:b,endAngle:w,value:x}}v[m]={index:m,startAngle:u,endAngle:a,value:h[m]},a+=s}for(c=-1;++c<f;)for(l=c-1;++l<f;){var M=y[l*f+c],k=y[c*f+l];(M.value||k.value)&&g.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}return i?g.sort(i):g}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=H_(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=_u(n))._=n,t):i&&i._},t},U_=Array.prototype.slice,B_=function(t){return function(){return t}},W_=function(){function t(){var t,u=U_.call(arguments),s=n.apply(this,u),c=e.apply(this,u),l=+r.apply(this,(u[0]=s,u)),f=i.apply(this,u)-z_,h=o.apply(this,u)-z_,p=l*P_(f),d=l*O_(f),g=+r.apply(this,(u[0]=c,u)),v=i.apply(this,u)-z_,y=o.apply(this,u)-z_;if(a||(a=t=L()),a.moveTo(p,d),a.arc(0,0,l,f,h),f===v&&h===y||(a.quadraticCurveTo(0,0,g*P_(v),g*O_(v)),a.arc(0,0,g,v,y)),a.quadraticCurveTo(0,0,p,d),a.closePath(),t)return a=null,t+""||null}var n=xu,e=bu,r=wu,i=Mu,o=ku,a=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:B_(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:B_(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:B_(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(a=null==n?null:n,t):a},t},Y_=function(){return new Tu};Tu.prototype={constructor:Tu,reset:function(){this.s=this.t=0},add:function(t){Su(Mx,t,this.t),Su(this,Mx.s,this.s),this.s?this.t+=Mx.t:this.s=Mx.t},valueOf:function(){return this.s}};var $_,X_,V_,G_,J_,Z_,Q_,K_,tx,nx,ex,rx,ix,ox,ax,ux,sx,cx,lx,fx,hx,px,dx,gx,vx,yx,mx,_x,xx,bx,wx,Mx=new Tu,kx=1e-6,Tx=1e-12,Sx=Math.PI,Cx=Sx/2,Nx=Sx/4,Ex=2*Sx,Ax=180/Sx,qx=Sx/180,Dx=Math.abs,jx=Math.atan,Lx=Math.atan2,Px=Math.cos,Ox=Math.ceil,Fx=Math.exp,zx=Math.log,Rx=Math.pow,Hx=Math.sin,Ix=Math.sign||function(t){return t>0?1:t<0?-1:0},Ux=Math.sqrt,Bx=Math.tan,Wx={Feature:function(t,n){qu(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)qu(e[r].geometry,n)}},Yx={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Du(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Du(e[r],n,0)},Polygon:function(t,n){ju(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)ju(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)qu(e[r],n)}},$x=function(t,n){t&&Wx.hasOwnProperty(t.type)?Wx[t.type](t,n):qu(t,n)},Xx=Y_(),Vx=Y_(),Gx={point:Au,lineStart:Au,lineEnd:Au,polygonStart:function(){Xx.reset(),Gx.lineStart=Lu,Gx.lineEnd=Pu},polygonEnd:function(){var t=+Xx;Vx.add(t<0?Ex+t:t),this.lineStart=this.lineEnd=this.point=Au},sphere:function(){Vx.add(Ex)}},Jx=function(t){return Vx.reset(),$x(t,Gx),2*Vx},Zx=Y_(),Qx={point:Yu,lineStart:Xu,lineEnd:Vu,polygonStart:function(){Qx.point=Gu,Qx.lineStart=Ju,Qx.lineEnd=Zu,Zx.reset(),Gx.polygonStart()},polygonEnd:function(){Gx.polygonEnd(),Qx.point=Yu,Qx.lineStart=Xu,Qx.lineEnd=Vu,Xx<0?(Z_=-(K_=180),Q_=-(tx=90)):Zx>kx?tx=90:Zx<-kx&&(Q_=-90),ax[0]=Z_,ax[1]=K_}},Kx=function(t){var n,e,r,i,o,a,u;if(tx=K_=-(Z_=Q_=1/0),ox=[],$x(t,Qx),e=ox.length){for(ox.sort(Ku),n=1,r=ox[0],o=[r];n<e;++n)i=ox[n],ts(r,i[0])||ts(r,i[1])?(Qu(r[0],i[1])>Qu(r[0],r[1])&&(r[1]=i[1]),Qu(i[0],r[1])>Qu(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-(1/0),e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(u=Qu(r[1],i[0]))>a&&(a=u,Z_=i[0],K_=r[1])}return ox=ax=null,Z_===1/0||Q_===1/0?[[NaN,NaN],[NaN,NaN]]:[[Z_,Q_],[K_,tx]]},tb={sphere:Au,point:ns,lineStart:rs,lineEnd:as,polygonStart:function(){tb.lineStart=us,tb.lineEnd=ss},polygonEnd:function(){tb.lineStart=rs,tb.lineEnd=as}},nb=function(t){ux=sx=cx=lx=fx=hx=px=dx=gx=vx=yx=0,$x(t,tb);var n=gx,e=vx,r=yx,i=n*n+e*e+r*r;return i<Tx&&(n=hx,e=px,r=dx,sx<kx&&(n=cx,e=lx,r=fx),i=n*n+e*e+r*r,i<Tx)?[NaN,NaN]:[Lx(e,n)*Ax,Nu(r/Ux(i))*Ax]},eb=function(t){return function(){return t}},rb=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e};fs.invert=fs;var ib,ob,ab,ub,sb,cb,lb,fb,hb,pb,db,gb=function(t){function n(n){return n=t(n[0]*qx,n[1]*qx),n[0]*=Ax,n[1]*=Ax,n}return t=hs(t[0]*qx,t[1]*qx,t.length>2?t[2]*qx:0),n.invert=function(n){return n=t.invert(n[0]*qx,n[1]*qx),n[0]*=Ax,n[1]*=Ax,n},n},vb=function(){function t(t,n){e.push(t=r(t,n)),t[0]*=Ax,t[1]*=Ax}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*qx,s=a.apply(this,arguments)*qx;return e=[],r=hs(-t[0]*qx,-t[1]*qx,0).invert,vs(u,n,s,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=eb([0,0]),o=eb(90),a=eb(6),u={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:eb([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:eb(+t),n):o},n.precision=function(t){return arguments.length?(a="function"==typeof t?t:eb(+t),n):a},n},yb=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Au,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},mb=function(t,n,e,r,i,o){var a,u=t[0],s=t[1],c=n[0],l=n[1],f=0,h=1,p=c-u,d=l-s;if(a=e-u,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>f&&(f=a)}if(a=i-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<h&&(h=a)}if(a=r-s,d||!(a>0)){if(a/=d,d<0){if(a<f)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>f&&(f=a)}if(a=o-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a<f)return;a<h&&(h=a)}return f>0&&(t[0]=u+f*p,t[1]=s+f*d),h<1&&(n[0]=u+h*p,n[1]=s+h*d),!0}}}}},_b=function(t,n){return Dx(t[0]-n[0])<kx&&Dx(t[1]-n[1])<kx},xb=function(t,n,e,r,i){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(_b(r,a)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u.push(e=new ms(r,t,null,!0)),s.push(e.o=new ms(r,null,e,!1)),u.push(e=new ms(a,t,null,!1)),s.push(e.o=new ms(a,null,e,!0))}}),u.length){for(s.sort(n),_s(u),_s(s),o=0,a=s.length;o<a;++o)s[o].e=e=!e;for(var c,l,f=u[0];;){for(var h=f,p=!0;h.v;)if((h=h.n)===f)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,a=c.length;o<a;++o)i.point((l=c[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((l=c[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,p=!p}while(!h.v);i.lineEnd()}}},bb=1e9,wb=-bb,Mb=function(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=xs(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}},kb=Y_(),Tb={sphere:Au,point:Au,lineStart:bs,lineEnd:Au,polygonStart:Au,polygonEnd:Au},Sb=function(t){return kb.reset(),$x(t,Tb),+kb},Cb=[null,null],Nb={type:"LineString",coordinates:Cb},Eb=function(t,n){return Cb[0]=t,Cb[1]=n,Sb(Nb)},Ab=function(t,n){var e=t[0]*qx,r=t[1]*qx,i=n[0]*qx,o=n[1]*qx,a=Px(r),u=Hx(r),s=Px(o),c=Hx(o),l=a*Px(e),f=a*Hx(e),h=s*Px(i),p=s*Hx(i),d=2*Nu(Ux(Eu(o-r)+a*s*Eu(i-e))),g=Hx(d),v=d?function(t){var n=Hx(t*=d)/g,e=Hx(d-t)/g,r=e*l+n*h,i=e*f+n*p,o=e*u+n*c;return[Lx(i,r)*Ax,Lx(o,Ux(r*r+i*i))*Ax]}:function(){return[e*Ax,r*Ax]};return v.distance=d,v},qb=function(t){return t},Db=Y_(),jb=Y_(),Lb={point:Au,lineStart:Au,lineEnd:Au,polygonStart:function(){Lb.lineStart=Es,Lb.lineEnd=Ds},polygonEnd:function(){Lb.lineStart=Lb.lineEnd=Lb.point=Au,Db.add(Dx(jb)),jb.reset()},result:function(){var t=Db/2;return Db.reset(),t}},Pb=1/0,Ob=Pb,Fb=-Pb,zb=Fb,Rb={point:js,lineStart:Au,lineEnd:Au,polygonStart:Au,polygonEnd:Au,result:function(){var t=[[Pb,Ob],[Fb,zb]];return Fb=zb=-(Ob=Pb=1/0),t}},Hb=0,Ib=0,Ub=0,Bb=0,Wb=0,Yb=0,$b=0,Xb=0,Vb=0,Gb={point:Ls,lineStart:Ps,lineEnd:zs,polygonStart:function(){Gb.lineStart=Rs,Gb.lineEnd=Hs},polygonEnd:function(){Gb.point=Ls,Gb.lineStart=Ps,Gb.lineEnd=zs},result:function(){var t=Vb?[$b/Vb,Xb/Vb]:Yb?[Bb/Yb,Wb/Yb]:Ub?[Hb/Ub,Ib/Ub]:[NaN,NaN];return Hb=Ib=Ub=Bb=Wb=Yb=$b=Xb=Vb=0,t}};Bs.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Ex)}},result:Au},Ws.prototype={_circle:Ys(4.5),pointRadius:function(t){return this._circle=Ys(t),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}};var Jb=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),$x(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return $x(t,r(Lb)),Lb.result()},e.bounds=function(t){return $x(t,r(Rb)),Rb.result()},e.centroid=function(t){return $x(t,r(Gb)),Gb.result()},e.projection=function(n){return arguments.length?(r=null==(t=n)?qb:n.stream,e):t},e.context=function(t){return arguments.length?(i=null==(n=t)?new Ws:new Bs(t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)},Zb=Y_(),Qb=function(t,n){var e=n[0],r=n[1],i=[Hx(e),-Px(e),0],o=0,a=0;Zb.reset();for(var u=0,s=t.length;u<s;++u)if(l=(c=t[u]).length)for(var c,l,f=c[l-1],h=f[0],p=f[1]/2+Nx,d=Hx(p),g=Px(p),v=0;v<l;++v,h=m,d=x,g=b,f=y){var y=c[v],m=y[0],_=y[1]/2+Nx,x=Hx(_),b=Px(_),w=m-h,M=w>=0?1:-1,k=M*w,T=k>Sx,S=d*x;if(Zb.add(Lx(S*M*Hx(k),g*b+S*Px(k))),o+=T?w+M*Ex:w,T^h>=e^m>=e){var C=Iu(Ru(f),Ru(y));Wu(C);var N=Iu(i,C);Wu(N);var E=(T^w>=0?-1:1)*Nu(N[2]);(r>E||r===E&&(C[0]||C[1]))&&(a+=T^w>=0?1:-1)}}return(o<-kx||o<kx&&Zb<-kx)^1&a},Kb=function(t,n,e,r){return function(i,o){function a(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function u(t,n){var e=i(t,n);v.point(e[0],e[1])}function s(){b.point=u,v.lineStart()}function c(){b.point=a,v.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);_.point(e[0],e[1])}function f(){_.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),_.lineEnd();var t,n,e,r,i=_.clean(),a=m.result(),u=a.length;if(g.pop(),p.push(g),g=null,u)if(1&i){if(e=a[0],(n=e.length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart(),t=0;t<n;++t)o.point((r=e[t])[0],r[1]);o.lineEnd()}}else u>1&&2&i&&a.push(a.pop().concat(a.shift())),d.push(a.filter($s))}var p,d,g,v=n(o),y=i.invert(r[0],r[1]),m=yb(),_=n(m),x=!1,b={point:a,lineStart:s,lineEnd:c,polygonStart:function(){b.point=l,b.lineStart=f,b.lineEnd=h,d=[],p=[]},polygonEnd:function(){b.point=a,b.lineStart=s,b.lineEnd=c,d=Zc(d);var t=Qb(p,y);d.length?(x||(o.polygonStart(),x=!0),xb(d,Xs,t,e,o)):t&&(x||(o.polygonStart(),x=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),d=p=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return b}},tw=Kb(function(){return!0},Vs,Js,[-Sx,-Cx]),nw=function(t,n){function e(e,r,i,o){vs(o,t,n,i,e,r)}function r(t,n){return Px(t)*Px(n)>u}function i(t){var n,e,i,u,l;return{lineStart:function(){u=i=!1,l=1},point:function(f,h){var p,d=[f,h],g=r(f,h),v=s?g?0:a(f,h):g?a(f+(f<0?Sx:-Sx),h):0;if(!n&&(u=i=g)&&t.lineStart(),g!==i&&(p=o(n,d),(_b(n,p)||_b(d,p))&&(d[0]+=kx,d[1]+=kx,g=r(d[0],d[1]))),g!==i)l=0,g?(t.lineStart(),p=o(d,n),t.point(p[0],p[1])):(p=o(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(c&&n&&s^g){var y;v&e||!(y=o(d,n,!0))||(l=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||n&&_b(n,d)||t.point(d[0],d[1]),n=d,i=g,e=v},lineEnd:function(){i&&t.lineEnd(),n=null},clean:function(){return l|(u&&i)<<1}}}function o(t,n,e){var r=Ru(t),i=Ru(n),o=[1,0,0],a=Iu(r,i),s=Hu(a,a),c=a[0],l=s-c*c;if(!l)return!e&&t;var f=u*s/l,h=-u*c/l,p=Iu(o,a),d=Bu(o,f),g=Bu(a,h);Uu(d,g);var v=p,y=Hu(d,v),m=Hu(v,v),_=y*y-m*(Hu(d,d)-1);if(!(_<0)){var x=Ux(_),b=Bu(v,(-y-x)/m);if(Uu(b,d),b=zu(b),!e)return b;var w,M=t[0],k=n[0],T=t[1],S=n[1];k<M&&(w=M,M=k,k=w);var C=k-M,N=Dx(C-Sx)<kx,E=N||C<kx;if(!N&&S<T&&(w=T,T=S,S=w),E?N?T+S>0^b[1]<(Dx(b[0]-M)<kx?T:S):T<=b[1]&&b[1]<=S:C>Sx^(M<=b[0]&&b[0]<=k)){var A=Bu(v,(-y+x)/m);return Uu(A,d),[b,zu(A)]}}}function a(n,e){var r=s?t:Sx-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=Px(t),s=u>0,c=Dx(u)>kx;return Kb(r,i,e,s?[0,-t]:[-Sx,t-Sx])},ew=function(t){return{stream:Zs(t)}};Qs.prototype={constructor:Qs,point:function(t,n){this.stream.point(t,n)},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()}};var rw=16,iw=Px(30*qx),ow=function(t,n){return+n?ec(t,n):nc(t)},aw=Zs({point:function(t,n){this.stream.point(t*qx,n*qx)}}),uw=function(){return oc(uc).scale(155.424).center([0,33.6442])},sw=function(){return uw().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},cw=function(){function t(t){var n=t[0],e=t[1];return u=null,i.point(n,e),u||(o.point(n,e),u)||(a.point(n,e),u)}function n(){return e=r=null,t}var e,r,i,o,a,u,s=sw(),c=uw().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=uw().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){u=[t,n]}};return t.invert=function(t){var n=s.scale(),e=s.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},t.stream=function(t){return e&&r===t?e:e=sc([s.stream(r=t),c.stream(t),l.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),l.precision(t),n()):s.precision()},t.scale=function(n){return arguments.length?(s.scale(n),c.scale(.35*n),l.scale(n),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),r=+t[0],u=+t[1];return i=s.translate(t).clipExtent([[r-.455*e,u-.238*e],[r+.455*e,u+.238*e]]).stream(f),o=c.translate([r-.307*e,u+.201*e]).clipExtent([[r-.425*e+kx,u+.12*e+kx],[r-.214*e-kx,u+.234*e-kx]]).stream(f),a=l.translate([r-.205*e,u+.212*e]).clipExtent([[r-.214*e+kx,u+.166*e+kx],[r-.115*e-kx,u+.234*e-kx]]).stream(f),n()},t.fitExtent=function(n,e){return Ks(t,n,e)},t.fitSize=function(n,e){return tc(t,n,e)},t.scale(1070)},lw=cc(function(t){return Ux(2/(1+t))});lw.invert=lc(function(t){return 2*Nu(t/2)});var fw=function(){return rc(lw).scale(124.75).clipAngle(179.999)},hw=cc(function(t){return(t=Cu(t))&&t/Hx(t)});hw.invert=lc(function(t){return t});var pw=function(){return rc(hw).scale(79.4188).clipAngle(179.999)};fc.invert=function(t,n){return[t,2*jx(Fx(n))-Cx]};var dw=function(){return hc(fc).scale(961/Ex)},gw=function(){return oc(dc).scale(109.5).parallels([30,30])};gc.invert=gc;var vw=function(){return rc(gc).scale(152.63)},yw=function(){return oc(vc).scale(131.154).center([0,13.9389])};yc.invert=lc(jx);var mw=function(){return rc(yc).scale(144.049).clipAngle(60)},_w=function(){function t(){return i=o=null,a}var n,e,r,i,o,a,u=1,s=0,c=0,l=qb,f=null,h=qb;return a={stream:function(t){return i&&o===t?i:i=l(h(o=t))},clipExtent:function(i){return arguments.length?(h=null==i?(f=n=e=r=null,qb):xs(f=+i[0][0],n=+i[0][1],e=+i[1][0],r=+i[1][1]),t()):null==f?null:[[f,n],[e,r]]},scale:function(n){return arguments.length?(l=mc(u=+n,s,c),t()):u},translate:function(n){return arguments.length?(l=mc(u,s=+n[0],c=+n[1]),t()):[s,c]},fitExtent:function(t,n){return Ks(a,t,n)},fitSize:function(t,n){return tc(a,t,n)}}};_c.invert=lc(Nu);var xw=function(){return rc(_c).scale(249.5).clipAngle(90+kx)};xc.invert=lc(function(t){return 2*jx(t)});var bw=function(){return rc(xc).scale(250).clipAngle(142)};bc.invert=function(t,n){return[-n,2*jx(Fx(t))-Cx]};var ww=function(){var t=hc(bc),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)};t.version=wc,t.bisect=Sc,t.bisectRight=Sc,t.bisectLeft=Cc,t.ascending=Mc,t.bisector=kc,t.descending=Nc,t.deviation=qc,t.extent=Dc,t.histogram=Wc,t.thresholdFreedmanDiaconis=$c,t.thresholdScott=Xc,t.thresholdSturges=Bc,t.max=Vc,t.mean=Gc,t.median=Jc,t.merge=Zc,t.min=Qc,t.pairs=Kc,t.permute=tl,t.quantile=Yc,t.range=zc,t.scan=nl,t.shuffle=el,t.sum=rl,t.ticks=Uc,t.tickStep=e,t.transpose=il,t.variance=Ac,t.zip=ol,t.entries=fl,t.keys=cl,t.values=ll,t.map=o,t.set=f,t.nest=ul,t.randomUniform=hl,t.randomNormal=pl,t.randomLogNormal=dl,t.randomBates=vl,t.randomIrwinHall=gl,t.randomExponential=yl,t.easeLinear=h,t.easeQuad=g,t.easeQuadIn=p,t.easeQuadOut=d,t.easeQuadInOut=g,t.easeCubic=m,t.easeCubicIn=v,t.easeCubicOut=y,t.easeCubicInOut=m,t.easePoly=bl,t.easePolyIn=_l,t.easePolyOut=xl,t.easePolyInOut=bl,t.easeSin=b,t.easeSinIn=_,t.easeSinOut=x,t.easeSinInOut=b,t.easeExp=k,t.easeExpIn=w,t.easeExpOut=M,t.easeExpInOut=k,t.easeCircle=C,t.easeCircleIn=T,t.easeCircleOut=S,t.easeCircleInOut=C,t.easeBounce=E,t.easeBounceIn=N,t.easeBounceOut=E,t.easeBounceInOut=A,t.easeBack=Fl,t.easeBackIn=Pl,t.easeBackOut=Ol,t.easeBackInOut=Fl,t.easeElastic=Ul,t.easeElasticIn=Il,t.easeElasticOut=Ul,t.easeElasticInOut=Bl,t.polygonArea=Wl,t.polygonCentroid=Yl,t.polygonHull=Xl,t.polygonContains=Vl,t.polygonLength=Gl,t.path=L,t.quadtree=H,t.queue=G,t.arc=wf,t.area=Tf,t.line=kf,t.pie=Nf,t.radialArea=qf,t.radialLine=Af,t.symbol=Zf,t.symbols=Jf,t.symbolCircle=Df,t.symbolCross=jf,t.symbolDiamond=Of,t.symbolSquare=Uf,t.symbolStar=If,t.symbolTriangle=Wf,t.symbolWye=Gf,t.curveBasisClosed=th,t.curveBasisOpen=nh,t.curveBasis=Kf,t.curveBundle=eh,t.curveCardinalClosed=ih,t.curveCardinalOpen=oh,t.curveCardinal=rh,t.curveCatmullRomClosed=uh,t.curveCatmullRomOpen=sh,t.curveCatmullRom=ah,t.curveLinearClosed=ch,t.curveLinear=Mf,t.curveMonotoneX=qt,t.curveMonotoneY=Dt,t.curveNatural=lh,t.curveStep=fh,t.curveStepAfter=Ft,t.curveStepBefore=Ot,t.stack=gh,t.stackOffsetExpand=vh,t.stackOffsetNone=ph,t.stackOffsetSilhouette=yh,t.stackOffsetWiggle=mh,t.stackOrderAscending=_h,t.stackOrderDescending=xh,t.stackOrderInsideOut=bh,t.stackOrderNone=dh,t.stackOrderReverse=wh,t.color=Ut,t.rgb=$t,t.hsl=Jt,t.lab=tn,t.hcl=sn,t.cubehelix=fn,t.interpolate=vp,t.interpolateArray=cp,t.interpolateDate=lp,t.interpolateNumber=fp,t.interpolateObject=hp,t.interpolateRound=yp,t.interpolateString=gp,t.interpolateTransformCss=bp,t.interpolateTransformSvg=wp,t.interpolateZoom=Cp,t.interpolateRgb=ap,t.interpolateRgbBasis=up,t.interpolateRgbBasisClosed=sp,t.interpolateHsl=Np,t.interpolateHslLong=Ep,t.interpolateLab=En,t.interpolateHcl=Ap,t.interpolateHclLong=qp,t.interpolateCubehelix=Dp,t.interpolateCubehelixLong=jp,t.interpolateBasis=rp,t.interpolateBasisClosed=ip,t.quantize=Lp,t.dispatch=Dn,t.dsvFormat=zp,t.csvParse=Hp,t.csvParseRows=Ip,t.csvFormat=Up,t.csvFormatRows=Bp,t.tsvParse=Yp,t.tsvParseRows=$p,t.tsvFormat=Xp,t.tsvFormatRows=Vp,t.request=Gp,t.html=Zp,t.json=Qp,t.text=Kp,t.xml=td,t.csv=ed,t.tsv=rd,t.now=Bn,t.timer=$n,t.timerFlush=Xn,t.timeout=pd,t.interval=dd,t.timeInterval=Qn,t.timeMillisecond=yd,t.timeMilliseconds=md,t.timeSecond=kd,t.timeSeconds=Td,t.timeMinute=Sd,t.timeMinutes=Cd,t.timeHour=Nd,t.timeHours=Ed,t.timeDay=Ad,t.timeDays=qd,t.timeWeek=Dd,t.timeWeeks=Rd,t.timeSunday=Dd,t.timeSundays=Rd,t.timeMonday=jd,t.timeMondays=Hd,t.timeTuesday=Ld,t.timeTuesdays=Id;t.timeWednesday=Pd;t.timeWednesdays=Ud,t.timeThursday=Od,t.timeThursdays=Bd,t.timeFriday=Fd,t.timeFridays=Wd,t.timeSaturday=zd,t.timeSaturdays=Yd,t.timeMonth=$d,t.timeMonths=Xd,t.timeYear=Vd,t.timeYears=Gd,t.utcMillisecond=yd,t.utcMilliseconds=md,t.utcSecond=kd,t.utcSeconds=Td,t.utcMinute=Jd,t.utcMinutes=Zd,t.utcHour=Qd,t.utcHours=Kd,t.utcDay=tg,t.utcDays=ng,t.utcWeek=eg,t.utcWeeks=cg,t.utcSunday=eg,t.utcSundays=cg,t.utcMonday=rg,t.utcMondays=lg,t.utcTuesday=ig,t.utcTuesdays=fg,t.utcWednesday=og,t.utcWednesdays=hg,t.utcThursday=ag,t.utcThursdays=pg,t.utcFriday=ug,t.utcFridays=dg,t.utcSaturday=sg,t.utcSaturdays=gg,t.utcMonth=vg,t.utcMonths=yg,t.utcYear=mg,t.utcYears=xg,t.formatLocale=Dg,t.formatDefaultLocale=re,t.formatSpecifier=Eg,t.precisionFixed=Lg,t.precisionPrefix=Pg,t.precisionRound=Og,t.isoFormat=Ug,t.isoParse=Bg,t.timeFormatLocale=ue,t.timeFormatDefaultLocale=nr,t.scaleBand=or,t.scalePoint=ur,t.scaleIdentity=yr,t.scaleLinear=vr,t.scaleLog=kr,t.scaleOrdinal=ir,t.scaleImplicit=Xg,t.scalePow=Sr,t.scaleSqrt=Cr,t.scaleQuantile=Nr,t.scaleQuantize=Er,t.scaleThreshold=Ar,t.scaleTime=av,t.scaleUtc=uv,t.schemeCategory10=cv,t.schemeCategory20b=lv,t.schemeCategory20c=fv,t.schemeCategory20=hv,t.scaleSequential=Pr,t.interpolateCubehelixDefault=pv,t.interpolateRainbow=yv,t.interpolateWarm=dv,t.interpolateCool=gv,t.interpolateViridis=mv,t.interpolateMagma=_v,t.interpolateInferno=xv,t.interpolatePlasma=bv,t.creator=Tv,t.customEvent=Yr,t.local=zr,t.matcher=Av,t.mouse=Ov,t.namespace=kv,t.namespaces=Mv,t.select=my,t.selectAll=_y,t.selection=Di,t.selector=Fv,t.selectorAll=Rv,t.touch=xy,t.touches=by,t.window=iy,t.active=im,t.interrupt=Dy,t.transition=lo,t.axisTop=_o,t.axisRight=xo,t.axisBottom=bo,t.axisLeft=wo,t.cluster=hm,t.hierarchy=qo,t.pack=Cm,t.packSiblings=Tm,t.packEnclose=km,t.partition=Am,t.stratify=Lm,t.tree=Pm,t.treemap=Rm,t.treemapBinary=Hm,t.treemapDice=Em,t.treemapSlice=Om,t.treemapSliceDice=Im,t.treemapSquarify=zm,t.treemapResquarify=Um,t.forceCenter=Bm,t.forceCollide=$m,t.forceLink=Xm,t.forceManyBody=Zm,t.forceSimulation=Jm,t.forceX=Qm,t.forceY=Km,t.drag=r_,t.dragDisable=n_,t.dragEnable=_a,t.voronoi=d_,t.zoom=m_,t.zoomIdentity=v_,t.zoomTransform=iu,t.brush=L_,t.brushX=vu,t.brushY=yu,t.brushSelection=gu,t.chord=I_,t.ribbon=W_,t.geoAlbers=sw,t.geoAlbersUsa=cw,t.geoArea=Jx,t.geoAzimuthalEqualArea=fw,t.geoAzimuthalEqualAreaRaw=lw,t.geoAzimuthalEquidistant=pw,t.geoAzimuthalEquidistantRaw=hw,t.geoBounds=Kx,t.geoCentroid=nb,t.geoCircle=vb,t.geoClipExtent=Mb,t.geoConicConformal=gw,t.geoConicConformalRaw=dc,t.geoConicEqualArea=uw,t.geoConicEqualAreaRaw=uc,t.geoConicEquidistant=yw,t.geoConicEquidistantRaw=vc,t.geoDistance=Eb,t.geoEquirectangular=vw,t.geoEquirectangularRaw=gc,t.geoGnomonic=mw,t.geoGnomonicRaw=yc,t.geoGraticule=Cs,t.geoGraticule10=Ns,t.geoIdentity=_w,t.geoInterpolate=Ab,t.geoLength=Sb,t.geoMercator=dw,t.geoMercatorRaw=fc,t.geoOrthographic=xw,t.geoOrthographicRaw=_c,t.geoPath=Jb,t.geoProjection=rc,t.geoProjectionMutator=ic,t.geoRotation=gb,t.geoStereographic=bw,t.geoStereographicRaw=xc,t.geoStream=$x,t.geoTransform=ew,t.geoTransverseMercator=ww,t.geoTransverseMercatorRaw=bc,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,n,e){var r,i;/*!
-	 * jQuery JavaScript Library v3.1.1
-	 * https://jquery.com/
-	 *
-	 * Includes Sizzle.js
-	 * https://sizzlejs.com/
-	 *
-	 * Copyright jQuery Foundation and other contributors
-	 * Released under the MIT license
-	 * https://jquery.org/license
-	 *
-	 * Date: 2016-09-22T22:30Z
-	 */
-!function(n,e){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,function(e,o){"use strict";function a(t,n){n=n||ot;var e=n.createElement("script");e.text=t,n.head.appendChild(e).parentNode.removeChild(e)}function u(t){var n=!!t&&"length"in t&&t.length,e=mt.type(t);return"function"!==e&&!mt.isWindow(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}function s(t,n,e){return mt.isFunction(n)?mt.grep(t,function(t,r){return!!n.call(t,r,t)!==e}):n.nodeType?mt.grep(t,function(t){return t===n!==e}):"string"!=typeof n?mt.grep(t,function(t){return lt.call(n,t)>-1!==e}):Nt.test(n)?mt.filter(n,t,e):(n=mt.filter(n,t),mt.grep(t,function(t){return lt.call(n,t)>-1!==e&&1===t.nodeType}))}function c(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}function l(t){var n={};return mt.each(t.match(Lt)||[],function(t,e){n[e]=!0}),n}function f(t){return t}function h(t){throw t}function p(t,n,e){var r;try{t&&mt.isFunction(r=t.promise)?r.call(t).done(n).fail(e):t&&mt.isFunction(r=t.then)?r.call(t,n,e):n.call(void 0,t)}catch(t){e.call(void 0,t)}}function d(){ot.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),mt.ready()}function g(){this.expando=mt.expando+g.uid++}function v(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:It.test(t)?JSON.parse(t):t)}function y(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(Ut,"-$&").toLowerCase(),e=t.getAttribute(r),"string"==typeof e){try{e=v(e)}catch(t){}Ht.set(t,n,e)}else e=void 0;return e}function m(t,n,e,r){var i,o=1,a=20,u=r?function(){return r.cur()}:function(){return mt.css(t,n,"")},s=u(),c=e&&e[3]||(mt.cssNumber[n]?"":"px"),l=(mt.cssNumber[n]||"px"!==c&&+s)&&Wt.exec(mt.css(t,n));if(l&&l[3]!==c){c=c||l[3],e=e||[],l=+s||1;do o=o||".5",l/=o,mt.style(t,n,l+c);while(o!==(o=u()/s)&&1!==o&&--a)}return e&&(l=+l||+s||0,i=e[1]?l+(e[1]+1)*e[2]:+e[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function _(t){var n,e=t.ownerDocument,r=t.nodeName,i=Vt[r];return i?i:(n=e.body.appendChild(e.createElement(r)),i=mt.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),Vt[r]=i,i)}function x(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)r=t[o],r.style&&(e=r.style.display,n?("none"===e&&(i[o]=Rt.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&$t(r)&&(i[o]=_(r))):"none"!==e&&(i[o]="none",Rt.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}function b(t,n){var e;return e="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&mt.nodeName(t,n)?mt.merge([t],e):e}function w(t,n){for(var e=0,r=t.length;e<r;e++)Rt.set(t[e],"globalEval",!n||Rt.get(n[e],"globalEval"))}function M(t,n,e,r,i){for(var o,a,u,s,c,l,f=n.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if(o=t[p],o||0===o)if("object"===mt.type(o))mt.merge(h,o.nodeType?[o]:o);else if(Kt.test(o)){for(a=a||f.appendChild(n.createElement("div")),u=(Jt.exec(o)||["",""])[1].toLowerCase(),s=Qt[u]||Qt._default,a.innerHTML=s[1]+mt.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;mt.merge(h,a.childNodes),a=f.firstChild,a.textContent=""}else h.push(n.createTextNode(o));for(f.textContent="",p=0;o=h[p++];)if(r&&mt.inArray(o,r)>-1)i&&i.push(o);else if(c=mt.contains(o.ownerDocument,o),a=b(f.appendChild(o),"script"),c&&w(a),e)for(l=0;o=a[l++];)Zt.test(o.type||"")&&e.push(o);return f}function k(){return!0}function T(){return!1}function S(){try{return ot.activeElement}catch(t){}}function C(t,n,e,r,i,o){var a,u;if("object"==typeof n){"string"!=typeof e&&(r=r||e,e=void 0);for(u in n)C(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),i===!1)i=T;else if(!i)return t;return 1===o&&(a=i,i=function(t){return mt().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=mt.guid++)),t.each(function(){mt.event.add(this,n,i,r,e)})}function N(t,n){return mt.nodeName(t,"table")&&mt.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function A(t){var n=sn.exec(t.type);return n?t.type=n[1]:t.removeAttribute("type"),t}function q(t,n){var e,r,i,o,a,u,s,c;if(1===n.nodeType){if(Rt.hasData(t)&&(o=Rt.access(t),a=Rt.set(n,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(e=0,r=c[i].length;e<r;e++)mt.event.add(n,i,c[i][e])}Ht.hasData(t)&&(u=Ht.access(t),s=mt.extend({},u),Ht.set(n,s))}}function D(t,n){var e=n.nodeName.toLowerCase();"input"===e&&Gt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function j(t,n,e,r){n=st.apply([],n);var i,o,u,s,c,l,f=0,h=t.length,p=h-1,d=n[0],g=mt.isFunction(d);if(g||h>1&&"string"==typeof d&&!vt.checkClone&&un.test(d))return t.each(function(i){var o=t.eq(i);g&&(n[0]=d.call(this,i,o.html())),j(o,n,e,r)});if(h&&(i=M(n,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=mt.map(b(i,"script"),E),s=u.length;f<h;f++)c=i,f!==p&&(c=mt.clone(c,!0,!0),s&&mt.merge(u,b(c,"script"))),e.call(t[f],c,f);if(s)for(l=u[u.length-1].ownerDocument,mt.map(u,A),f=0;f<s;f++)c=u[f],Zt.test(c.type||"")&&!Rt.access(c,"globalEval")&&mt.contains(l,c)&&(c.src?mt._evalUrl&&mt._evalUrl(c.src):a(c.textContent.replace(cn,""),l))}return t}function L(t,n,e){for(var r,i=n?mt.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||mt.cleanData(b(r)),r.parentNode&&(e&&mt.contains(r.ownerDocument,r)&&w(b(r,"script")),r.parentNode.removeChild(r));return t}function P(t,n,e){var r,i,o,a,u=t.style;return e=e||hn(t),e&&(a=e.getPropertyValue(n)||e[n],""!==a||mt.contains(t.ownerDocument,t)||(a=mt.style(t,n)),!vt.pixelMarginRight()&&fn.test(a)&&ln.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function O(t,n){return{get:function(){return t()?void delete this.get:(this.get=n).apply(this,arguments)}}}function F(t){if(t in yn)return t;for(var n=t[0].toUpperCase()+t.slice(1),e=vn.length;e--;)if(t=vn[e]+n,t in yn)return t}function z(t,n,e){var r=Wt.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function R(t,n,e,r,i){var o,a=0;for(o=e===(r?"border":"content")?4:"width"===n?1:0;o<4;o+=2)"margin"===e&&(a+=mt.css(t,e+Yt[o],!0,i)),r?("content"===e&&(a-=mt.css(t,"padding"+Yt[o],!0,i)),"margin"!==e&&(a-=mt.css(t,"border"+Yt[o]+"Width",!0,i))):(a+=mt.css(t,"padding"+Yt[o],!0,i),"padding"!==e&&(a+=mt.css(t,"border"+Yt[o]+"Width",!0,i)));return a}function H(t,n,e){var r,i=!0,o=hn(t),a="border-box"===mt.css(t,"boxSizing",!1,o);if(t.getClientRects().length&&(r=t.getBoundingClientRect()[n]),r<=0||null==r){if(r=P(t,n,o),(r<0||null==r)&&(r=t.style[n]),fn.test(r))return r;i=a&&(vt.boxSizingReliable()||r===t.style[n]),r=parseFloat(r)||0}return r+R(t,n,e||(a?"border":"content"),i,o)+"px"}function I(t,n,e,r,i){return new I.prototype.init(t,n,e,r,i)}function U(){_n&&(e.requestAnimationFrame(U),mt.fx.tick())}function B(){return e.setTimeout(function(){mn=void 0}),mn=mt.now()}function W(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)e=Yt[r],i["margin"+e]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function Y(t,n,e){for(var r,i=(V.tweeners[n]||[]).concat(V.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function $(t,n,e){var r,i,o,a,u,s,c,l,f="width"in n||"height"in n,h=this,p={},d=t.style,g=t.nodeType&&$t(t),v=Rt.get(t,"fxshow");e.queue||(a=mt._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,mt.queue(t,"fx").length||a.empty.fire()})}));for(r in n)if(i=n[r],xn.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||mt.style(t,r)}if(s=!mt.isEmptyObject(n),s||!mt.isEmptyObject(p)){f&&1===t.nodeType&&(e.overflow=[d.overflow,d.overflowX,d.overflowY],c=v&&v.display,null==c&&(c=Rt.get(t,"display")),l=mt.css(t,"display"),"none"===l&&(c?l=c:(x([t],!0),c=t.style.display||c,l=mt.css(t,"display"),x([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===mt.css(t,"float")&&(s||(h.done(function(){d.display=c}),null==c&&(l=d.display,c="none"===l?"":l)),d.display="inline-block")),e.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=e.overflow[0],d.overflowX=e.overflow[1],d.overflowY=e.overflow[2]})),s=!1;for(r in p)s||(v?"hidden"in v&&(g=v.hidden):v=Rt.access(t,"fxshow",{display:c}),o&&(v.hidden=!g),g&&x([t],!0),h.done(function(){g||x([t]),Rt.remove(t,"fxshow");for(r in p)mt.style(t,r,p[r])})),s=Y(g?v[r]:0,r,h),r in v||(v[r]=s.start,g&&(s.end=s.start,s.start=0))}}function X(t,n){var e,r,i,o,a;for(e in t)if(r=mt.camelCase(e),i=n[r],o=t[e],mt.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),a=mt.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(e in o)e in t||(t[e]=o[e],n[e]=i)}else n[r]=i}function V(t,n,e){var r,i,o=0,a=V.prefilters.length,u=mt.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var n=mn||B(),e=Math.max(0,c.startTime+c.duration-n),r=e/c.duration||0,o=1-r,a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(o);return u.notifyWith(t,[c,o,e]),o<1&&s?e:(u.resolveWith(t,[c]),!1)},c=u.promise({elem:t,props:mt.extend({},n),opts:mt.extend(!0,{specialEasing:{},easing:mt.easing._default},e),originalProperties:n,originalOptions:e,startTime:mn||B(),duration:e.duration,tweens:[],createTween:function(n,e){var r=mt.Tween(t,c.opts,n,e,c.opts.specialEasing[n]||c.opts.easing);return c.tweens.push(r),r},stop:function(n){var e=0,r=n?c.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)c.tweens[e].run(1);return n?(u.notifyWith(t,[c,1,0]),u.resolveWith(t,[c,n])):u.rejectWith(t,[c,n]),this}}),l=c.props;for(X(l,c.opts.specialEasing);o<a;o++)if(r=V.prefilters[o].call(c,t,l,c.opts))return mt.isFunction(r.stop)&&(mt._queueHooks(c.elem,c.opts.queue).stop=mt.proxy(r.stop,r)),r;return mt.map(l,Y,c),mt.isFunction(c.opts.start)&&c.opts.start.call(t,c),mt.fx.timer(mt.extend(s,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function G(t){var n=t.match(Lt)||[];return n.join(" ")}function J(t){return t.getAttribute&&t.getAttribute("class")||""}function Z(t,n,e,r){var i;if(mt.isArray(n))mt.each(n,function(n,i){e||qn.test(t)?r(t,i):Z(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)});else if(e||"object"!==mt.type(n))r(t,n);else for(i in n)Z(t+"["+i+"]",n[i],e,r)}function Q(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(Lt)||[];if(mt.isFunction(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function K(t,n,e,r){function i(u){var s;return o[u]=!0,mt.each(t[u]||[],function(t,u){var c=u(n,e,r);return"string"!=typeof c||a||o[c]?a?!(s=c):void 0:(n.dataTypes.unshift(c),i(c),!1)}),s}var o={},a=t===Bn;return i(n.dataTypes[0])||!o["*"]&&i("*")}function tt(t,n){var e,r,i=mt.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&mt.extend(!0,t,r),t}function nt(t,n,e){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in e)o=s[0];else{for(i in e){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),e[o]}function et(t,n,e,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!s&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=c[s+" "+o]||c["* "+o],!a)for(i in c)if(u=i.split(" "),u[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=u[0],l.unshift(u[1]));break}if(a!==!0)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:n}}function rt(t){return mt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var it=[],ot=e.document,at=Object.getPrototypeOf,ut=it.slice,st=it.concat,ct=it.push,lt=it.indexOf,ft={},ht=ft.toString,pt=ft.hasOwnProperty,dt=pt.toString,gt=dt.call(Object),vt={},yt="3.1.1",mt=function(t,n){return new mt.fn.init(t,n)},_t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,xt=/^-ms-/,bt=/-([a-z])/g,wt=function(t,n){return n.toUpperCase()};mt.fn=mt.prototype={jquery:yt,constructor:mt,length:0,toArray:function(){return ut.call(this)},get:function(t){return null==t?ut.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=mt.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return mt.each(this,t)},map:function(t){return this.pushStack(mt.map(this,function(n,e){return t.call(n,e,n)}))},slice:function(){return this.pushStack(ut.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:ct,sort:it.sort,splice:it.splice},mt.extend=mt.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[u]||{},u++),"object"==typeof a||mt.isFunction(a)||(a={}),u===s&&(a=this,u--);u<s;u++)if(null!=(t=arguments[u]))for(n in t)e=a[n],r=t[n],a!==r&&(c&&r&&(mt.isPlainObject(r)||(i=mt.isArray(r)))?(i?(i=!1,o=e&&mt.isArray(e)?e:[]):o=e&&mt.isPlainObject(e)?e:{},a[n]=mt.extend(c,o,r)):void 0!==r&&(a[n]=r));return a},mt.extend({expando:"jQuery"+(yt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===mt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var n=mt.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==ht.call(t))&&(!(n=at(t))||(e=pt.call(n,"constructor")&&n.constructor,"function"==typeof e&&dt.call(e)===gt))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ft[ht.call(t)]||"object":typeof t},globalEval:function(t){a(t)},camelCase:function(t){return t.replace(xt,"ms-").replace(bt,wt)},nodeName:function(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()},each:function(t,n){var e,r=0;if(u(t))for(e=t.length;r<e&&n.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(n.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(_t,"")},makeArray:function(t,n){var e=n||[];return null!=t&&(u(Object(t))?mt.merge(e,"string"==typeof t?[t]:t):ct.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:lt.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r,i=[],o=0,a=t.length,u=!e;o<a;o++)r=!n(t[o],o),r!==u&&i.push(t[o]);return i},map:function(t,n,e){var r,i,o=0,a=[];if(u(t))for(r=t.length;o<r;o++)i=n(t[o],o,e),null!=i&&a.push(i);else for(o in t)i=n(t[o],o,e),null!=i&&a.push(i);return st.apply([],a)},guid:1,proxy:function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),mt.isFunction(t))return r=ut.call(arguments,2),i=function(){return t.apply(n||this,r.concat(ut.call(arguments)))},i.guid=t.guid=t.guid||mt.guid++,i},now:Date.now,support:vt}),"function"==typeof Symbol&&(mt.fn[Symbol.iterator]=it[Symbol.iterator]),mt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,n){ft["[object "+n+"]"]=n.toLowerCase()});var Mt=/*!
-	 * Sizzle CSS Selector Engine v2.3.3
-	 * https://sizzlejs.com/
-	 *
-	 * Copyright jQuery Foundation and other contributors
-	 * Released under the MIT license
-	 * http://jquery.org/license
-	 *
-	 * Date: 2016-08-08
-	 */
-function(t){function n(t,n,e,r){var i,o,a,u,s,c,l,h=n&&n.ownerDocument,d=n?n.nodeType:9;if(e=e||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return e;if(!r&&((n?n.ownerDocument||n:I)!==j&&D(n),n=n||j,P)){if(11!==d&&(s=yt.exec(t)))if(i=s[1]){if(9===d){if(!(a=n.getElementById(i)))return e;if(a.id===i)return e.push(a),e}else if(h&&(a=h.getElementById(i))&&R(n,a)&&a.id===i)return e.push(a),e}else{if(s[2])return Q.apply(e,n.getElementsByTagName(t)),e;if((i=s[3])&&w.getElementsByClassName&&n.getElementsByClassName)return Q.apply(e,n.getElementsByClassName(i)),e}if(w.qsa&&!$[t+" "]&&(!O||!O.test(t))){if(1!==d)h=n,l=t;else if("object"!==n.nodeName.toLowerCase()){for((u=n.getAttribute("id"))?u=u.replace(bt,wt):n.setAttribute("id",u=H),c=S(t),o=c.length;o--;)c[o]="#"+u+" "+p(c[o]);l=c.join(","),h=mt.test(t)&&f(n.parentNode)||n}if(l)try{return Q.apply(e,h.querySelectorAll(l)),e}catch(t){}finally{u===H&&n.removeAttribute("id")}}}return N(t.replace(ut,"$1"),n,e,r)}function e(){function t(e,r){return n.push(e+" ")>M.cacheLength&&delete t[n.shift()],t[e+" "]=r}var n=[];return t}function r(t){return t[H]=!0,t}function i(t){var n=j.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function o(t,n){for(var e=t.split("|"),r=e.length;r--;)M.attrHandle[e[r]]=n}function a(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function u(t){return function(n){var e=n.nodeName.toLowerCase();return"input"===e&&n.type===t}}function s(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function c(t){return function(n){return"form"in n?n.parentNode&&n.disabled===!1?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&kt(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function l(t){return r(function(n){return n=+n,r(function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))})})}function f(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function p(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function d(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=B++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,s){var c,l,f,h=[U,u];if(s){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,s))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(f=n[H]||(n[H]={}),l=f[n.uniqueID]||(f[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((c=l[o])&&c[0]===U&&c[1]===u)return h[2]=c[2];if(l[o]=h,h[2]=t(n,e,s))return!0}return!1}}function g(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function v(t,e,r){for(var i=0,o=e.length;i<o;i++)n(t,e[i],r);return r}function y(t,n,e,r,i){for(var o,a=[],u=0,s=t.length,c=null!=n;u<s;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),c&&n.push(u)));return a}function m(t,n,e,i,o,a){return i&&!i[H]&&(i=m(i)),o&&!o[H]&&(o=m(o,a)),r(function(r,a,u,s){var c,l,f,h=[],p=[],d=a.length,g=r||v(n||"*",u.nodeType?[u]:u,[]),m=!t||!r&&n?g:y(g,h,t,u,s),_=e?o||(r?t:d||i)?[]:a:m;if(e&&e(m,_,u,s),i)for(c=y(_,p),i(c,[],u,s),l=c.length;l--;)(f=c[l])&&(_[p[l]]=!(m[p[l]]=f));if(r){if(o||t){if(o){for(c=[],l=_.length;l--;)(f=_[l])&&c.push(m[l]=f);o(null,_=[],c,s)}for(l=_.length;l--;)(f=_[l])&&(c=o?tt(r,f):h[l])>-1&&(r[c]=!(a[c]=f))}}else _=y(_===a?_.splice(d,_.length):_),o?o(null,a,_,s):Q.apply(a,_)})}function _(t){for(var n,e,r,i=t.length,o=M.relative[t[0].type],a=o||M.relative[" "],u=o?1:0,s=d(function(t){return t===n},a,!0),c=d(function(t){return tt(n,t)>-1},a,!0),l=[function(t,e,r){var i=!o&&(r||e!==E)||((n=e).nodeType?s(t,e,r):c(t,e,r));return n=null,i}];u<i;u++)if(e=M.relative[t[u].type])l=[d(g(l),e)];else{if(e=M.filter[t[u].type].apply(null,t[u].matches),e[H]){for(r=++u;r<i&&!M.relative[t[r].type];r++);return m(u>1&&g(l),u>1&&p(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(ut,"$1"),e,u<r&&_(t.slice(u,r)),r<i&&_(t=t.slice(r)),r<i&&p(t))}l.push(e)}return g(l)}function x(t,e){var i=e.length>0,o=t.length>0,a=function(r,a,u,s,c){var l,f,h,p=0,d="0",g=r&&[],v=[],m=E,_=r||o&&M.find.TAG("*",c),x=U+=null==m?1:Math.random()||.1,b=_.length;for(c&&(E=a===j||a||c);d!==b&&null!=(l=_[d]);d++){if(o&&l){for(f=0,a||l.ownerDocument===j||(D(l),u=!P);h=t[f++];)if(h(l,a||j,u)){s.push(l);break}c&&(U=x)}i&&((l=!h&&l)&&p--,r&&g.push(l))}if(p+=d,i&&d!==p){for(f=0;h=e[f++];)h(g,v,a,u);if(r){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=J.call(s));v=y(v)}Q.apply(s,v),c&&!r&&v.length>0&&p+e.length>1&&n.uniqueSort(s)}return c&&(U=x,E=m),g};return i?r(a):a}var b,w,M,k,T,S,C,N,E,A,q,D,j,L,P,O,F,z,R,H="sizzle"+1*new Date,I=t.document,U=0,B=0,W=e(),Y=e(),$=e(),X=function(t,n){return t===n&&(q=!0),0},V={}.hasOwnProperty,G=[],J=G.pop,Z=G.push,Q=G.push,K=G.slice,tt=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",it="\\["+et+"*("+rt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(et+"+","g"),ut=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),ct=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),lt=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,_t=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),xt=function(t,n,e){var r="0x"+n-65536;return r!==r||e?n:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},bt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wt=function(t,n){return n?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Mt=function(){D()},kt=d(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Q.apply(G=K.call(I.childNodes),I.childNodes),G[I.childNodes.length].nodeType}catch(t){Q={apply:G.length?function(t,n){Z.apply(t,K.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}w=n.support={},T=n.isXML=function(t){var n=t&&(t.ownerDocument||t).documentElement;return!!n&&"HTML"!==n.nodeName},D=n.setDocument=function(t){var n,e,r=t?t.ownerDocument||t:I;return r!==j&&9===r.nodeType&&r.documentElement?(j=r,L=j.documentElement,P=!T(j),I!==j&&(e=j.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Mt,!1):e.attachEvent&&e.attachEvent("onunload",Mt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(j.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(j.getElementsByClassName),w.getById=i(function(t){return L.appendChild(t).id=H,!j.getElementsByName||!j.getElementsByName(H).length}),w.getById?(M.filter.ID=function(t){var n=t.replace(_t,xt);return function(t){return t.getAttribute("id")===n}},M.find.ID=function(t,n){if("undefined"!=typeof n.getElementById&&P){var e=n.getElementById(t);return e?[e]:[]}}):(M.filter.ID=function(t){var n=t.replace(_t,xt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},M.find.ID=function(t,n){if("undefined"!=typeof n.getElementById&&P){var e,r,i,o=n.getElementById(t);if(o){if(e=o.getAttributeNode("id"),e&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if(e=o.getAttributeNode("id"),e&&e.value===t)return[o]}return[]}}),M.find.TAG=w.getElementsByTagName?function(t,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t):w.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},M.find.CLASS=w.getElementsByClassName&&function(t,n){if("undefined"!=typeof n.getElementsByClassName&&P)return n.getElementsByClassName(t)},F=[],O=[],(w.qsa=vt.test(j.querySelectorAll))&&(i(function(t){L.appendChild(t).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+et+"*(?:value|"+nt+")"),t.querySelectorAll("[id~="+H+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+H+"+*").length||O.push(".#.+[+~]")}),i(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=j.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+et+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),L.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=vt.test(z=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(t){w.disconnectedMatch=z.call(t,"*"),z.call(t,"[s!='']:x"),F.push("!=",ot)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),n=vt.test(L.compareDocumentPosition),R=n||vt.test(L.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},X=n?function(t,n){if(t===n)return q=!0,0;var e=!t.compareDocumentPosition-!n.compareDocumentPosition;return e?e:(e=(t.ownerDocument||t)===(n.ownerDocument||n)?t.compareDocumentPosition(n):1,1&e||!w.sortDetached&&n.compareDocumentPosition(t)===e?t===j||t.ownerDocument===I&&R(I,t)?-1:n===j||n.ownerDocument===I&&R(I,n)?1:A?tt(A,t)-tt(A,n):0:4&e?-1:1)}:function(t,n){if(t===n)return q=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,u=[t],s=[n];if(!i||!o)return t===j?-1:n===j?1:i?-1:o?1:A?tt(A,t)-tt(A,n):0;if(i===o)return a(t,n);for(e=t;e=e.parentNode;)u.unshift(e);for(e=n;e=e.parentNode;)s.unshift(e);for(;u[r]===s[r];)r++;return r?a(u[r],s[r]):u[r]===I?-1:s[r]===I?1:0},j):j},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==j&&D(t),e=e.replace(lt,"='$1']"),w.matchesSelector&&P&&!$[e+" "]&&(!F||!F.test(e))&&(!O||!O.test(e)))try{var r=z.call(t,e);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return n(e,j,null,[t]).length>0},n.contains=function(t,n){return(t.ownerDocument||t)!==j&&D(t),R(t,n)},n.attr=function(t,n){(t.ownerDocument||t)!==j&&D(t);var e=M.attrHandle[n.toLowerCase()],r=e&&V.call(M.attrHandle,n.toLowerCase())?e(t,n,!P):void 0;return void 0!==r?r:w.attributes||!P?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null},n.escape=function(t){return(t+"").replace(bt,wt)},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var n,e=[],r=0,i=0;if(q=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(X),q){for(;n=t[i++];)n===t[i]&&(r=e.push(i));for(;r--;)t.splice(e[r],1)}return A=null,t},k=n.getText=function(t){var n,e="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;n=t[r++];)e+=k(n);return e},M=n.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_t,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&ft.test(e)&&(n=S(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(_t,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=W[t+" "];return n||(n=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&W(t,function(t){return n.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var o=n.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===r:"!="===e?o!==r:"^="===e?r&&0===o.indexOf(r):"*="===e?r&&o.indexOf(r)>-1:"$="===e?r&&o.slice(-r.length)===r:"~="===e?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===e&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,s){var c,l,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",v=n.parentNode,y=u&&n.nodeName.toLowerCase(),m=!s&&!u,_=!1;if(v){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&m){for(h=v,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===U&&c[1],_=p&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||d.pop();)if(1===h.nodeType&&++_&&h===n){l[t]=[U,p,_];break}}else if(m&&(h=n,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===U&&c[1],_=p),_===!1)for(;(h=++p&&h&&h[g]||(_=p=0)||d.pop())&&((u?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++_||(m&&(f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[t]=[U,_]),h!==n)););return _-=i,_===r||_%r===0&&_/r>=0}}},PSEUDO:function(t,e){var i,o=M.pseudos[t]||M.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return o[H]?o(e):o.length>1?(i=[t,t,"",e],M.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var r,i=o(t,e),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(n[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var n=[],e=[],i=C(t.replace(ut,"$1"));return i[H]?r(function(t,n,e,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))}):function(t,r,o){return n[0]=t,i(n,null,o,e),n[0]=null,!e.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return t=t.replace(_t,xt),function(n){return(n.textContent||n.innerText||k(n)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(_t,xt).toLowerCase(),function(n){var e;do if(e=P?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return e=e.toLowerCase(),e===t||0===e.indexOf(t+"-");while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===L},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!M.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,n){return[n-1]}),eq:l(function(t,n,e){return[e<0?e+n:e]}),even:l(function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t}),odd:l(function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t}),lt:l(function(t,n,e){for(var r=e<0?e+n:e;--r>=0;)t.push(r);return t}),gt:l(function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t})}},M.pseudos.nth=M.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[b]=u(b);for(b in{submit:!0,reset:!0})M.pseudos[b]=s(b);return h.prototype=M.filters=M.pseudos,M.setFilters=new h,S=n.tokenize=function(t,e){var r,i,o,a,u,s,c,l=Y[t+" "];if(l)return e?0:l.slice(0);for(u=t,s=[],c=M.preFilter;u;){r&&!(i=st.exec(u))||(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ct.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),u=u.slice(r.length));for(a in M.filter)!(i=pt[a].exec(u))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return e?u.length:u?n.error(t):Y(t,s).slice(0)},C=n.compile=function(t,n){var e,r=[],i=[],o=$[t+" "];if(!o){for(n||(n=S(t)),e=n.length;e--;)o=_(n[e]),o[H]?r.push(o):i.push(o);o=$(t,x(i,r)),o.selector=t}return o},N=n.select=function(t,n,e,r){var i,o,a,u,s,c="function"==typeof t&&t,l=!r&&S(t=c.selector||t);if(e=e||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&P&&M.relative[o[1].type]){if(n=(M.find.ID(a.matches[0].replace(_t,xt),n)||[])[0],!n)return e;c&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!M.relative[u=a.type]);)if((s=M.find[u])&&(r=s(a.matches[0].replace(_t,xt),mt.test(o[0].type)&&f(n.parentNode)||n))){if(o.splice(i,1),t=r.length&&p(o),!t)return Q.apply(e,r),e;break}}return(c||C(t,l))(r,n,!P,e,!n||mt.test(t)&&f(n.parentNode)||n),e},w.sortStable=H.split("").sort(X).join("")===H,w.detectDuplicates=!!q,D(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(j.createElement("fieldset"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,n,e){var r;if(!e)return t[n]===!0?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null}),n}(e);mt.find=Mt,mt.expr=Mt.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=Mt.uniqueSort,mt.text=Mt.getText,mt.isXMLDoc=Mt.isXML,mt.contains=Mt.contains,mt.escapeSelector=Mt.escape;var kt=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&mt(t).is(e))break;r.push(t)}return r},Tt=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},St=mt.expr.match.needsContext,Ct=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Nt=/^.[^:#\[\.,]*$/;mt.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?mt.find.matchesSelector(r,t)?[r]:[]:mt.find.matches(t,mt.grep(n,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(n=0;n<r;n++)if(mt.contains(i[n],this))return!0}));for(e=this.pushStack([]),n=0;n<r;n++)mt.find(t,i[n],e);return r>1?mt.uniqueSort(e):e},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&St.test(t)?mt(t):t||[],!1).length}});var Et,At=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,qt=mt.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||Et,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:At.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof mt?n[0]:n,mt.merge(this,mt.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:ot,!0)),Ct.test(r[1])&&mt.isPlainObject(n))for(r in n)mt.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return i=ot.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==e.ready?e.ready(t):t(mt):mt.makeArray(t,this)};qt.prototype=mt.fn,Et=mt(ot);var Dt=/^(?:parents|prev(?:Until|All))/,jt={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var n=mt(t,this),e=n.length;return this.filter(function(){for(var t=0;t<e;t++)if(mt.contains(this,n[t]))return!0})},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&mt(t);if(!St.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&mt.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?mt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?lt.call(mt(t),this[0]):lt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return kt(t,"parentNode")},parentsUntil:function(t,n,e){return kt(t,"parentNode",e)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return kt(t,"nextSibling")},prevAll:function(t){return kt(t,"previousSibling")},nextUntil:function(t,n,e){return kt(t,"nextSibling",e)},prevUntil:function(t,n,e){return kt(t,"previousSibling",e)},siblings:function(t){return Tt((t.parentNode||{}).firstChild,t)},children:function(t){return Tt(t.firstChild)},contents:function(t){return t.contentDocument||mt.merge([],t.childNodes)}},function(t,n){mt.fn[t]=function(e,r){var i=mt.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=mt.filter(r,i)),this.length>1&&(jt[t]||mt.uniqueSort(i),Dt.test(t)&&i.reverse()),this.pushStack(i)}});var Lt=/[^\x20\t\r\n\f]+/g;mt.Callbacks=function(t){t="string"==typeof t?l(t):mt.extend({},t);var n,e,r,i,o=[],a=[],u=-1,s=function(){for(i=t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)o[u].apply(e[0],e[1])===!1&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},c={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){mt.each(e,function(e,r){mt.isFunction(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==mt.type(r)&&n(r)})}(arguments),e&&!n&&s()),this},remove:function(){return mt.each(arguments,function(t,n){for(var e;(e=mt.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--}),this},has:function(t){return t?mt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=e||[],e=[t,e.slice?e.slice():e],a.push(e),n||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},mt.extend({Deferred:function(t){var n=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return mt.Deferred(function(e){mt.each(n,function(n,r){var i=mt.isFunction(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var u=this,s=arguments,c=function(){var e,c;if(!(t<a)){if(e=r.apply(u,s),e===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,mt.isFunction(c)?i?c.call(e,o(a,n,f,i),o(a,n,h,i)):(a++,c.call(e,o(a,n,f,i),o(a,n,h,i),o(a,n,f,n.notifyWith))):(r!==f&&(u=void 0,s=[e]),(i||n.resolveWith)(u,s))}},l=i?c:function(){try{c()}catch(e){mt.Deferred.exceptionHook&&mt.Deferred.exceptionHook(e,l.stackTrace),t+1>=a&&(r!==h&&(u=void 0,s=[e]),n.rejectWith(u,s))}};t?l():(mt.Deferred.getStackHook&&(l.stackTrace=mt.Deferred.getStackHook()),e.setTimeout(l))}}var a=0;return mt.Deferred(function(e){n[0][3].add(o(0,e,mt.isFunction(i)?i:f,e.notifyWith)),n[1][3].add(o(0,e,mt.isFunction(t)?t:f)),n[2][3].add(o(0,e,mt.isFunction(r)?r:h))}).promise()},promise:function(t){return null!=t?mt.extend(t,i):i}},o={};return mt.each(n,function(t,e){var a=e[2],u=e[5];i[e[1]]=a.add,u&&a.add(function(){r=u},n[3-t][2].disable,n[0][2].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=ut.call(arguments),o=mt.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?ut.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(p(t,o.done(a(e)).resolve,o.reject),"pending"===o.state()||mt.isFunction(i[e]&&i[e].then)))return o.then();for(;e--;)p(i[e],a(e),o.reject);return o.promise()}});var Pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Pt.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},mt.readyException=function(t){e.setTimeout(function(){throw t})};var Ot=mt.Deferred();mt.fn.ready=function(t){return Ot.then(t).catch(function(t){mt.readyException(t)}),this},mt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?mt.readyWait++:mt.ready(!0)},ready:function(t){(t===!0?--mt.readyWait:mt.isReady)||(mt.isReady=!0,t!==!0&&--mt.readyWait>0||Ot.resolveWith(ot,[mt]))}}),mt.ready.then=Ot.then,"complete"===ot.readyState||"loading"!==ot.readyState&&!ot.documentElement.doScroll?e.setTimeout(mt.ready):(ot.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var Ft=function(t,n,e,r,i,o,a){var u=0,s=t.length,c=null==e;if("object"===mt.type(e)){i=!0;for(u in e)Ft(t,n,u,e[u],!0,o,a)}else if(void 0!==r&&(i=!0,mt.isFunction(r)||(a=!0),c&&(a?(n.call(t,r),n=null):(c=n,n=function(t,n,e){return c.call(mt(t),e)})),n))for(;u<s;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:c?n.call(t):s?n(t[0],e):o},zt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var n=t[this.expando];return n||(n={},zt(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[mt.camelCase(n)]=e;else for(r in n)i[mt.camelCase(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][mt.camelCase(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){mt.isArray(n)?n=n.map(mt.camelCase):(n=mt.camelCase(n),n=n in r?[n]:n.match(Lt)||[]),e=n.length;for(;e--;)delete r[n[e]]}(void 0===n||mt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!mt.isEmptyObject(n)}};var Rt=new g,Ht=new g,It=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ut=/[A-Z]/g;mt.extend({hasData:function(t){return Ht.hasData(t)||Rt.hasData(t)},data:function(t,n,e){return Ht.access(t,n,e)},removeData:function(t,n){Ht.remove(t,n)},_data:function(t,n,e){return Rt.access(t,n,e)},_removeData:function(t,n){Rt.remove(t,n)}}),mt.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Ht.get(o),1===o.nodeType&&!Rt.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&(r=a[e].name,0===r.indexOf("data-")&&(r=mt.camelCase(r.slice(5)),y(o,r,i[r])));Rt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Ht.set(this,t)}):Ft(this,function(n){var e;if(o&&void 0===n){if(e=Ht.get(o,t),void 0!==e)return e;if(e=y(o,t),void 0!==e)return e}else this.each(function(){Ht.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ht.remove(this,t)})}}),mt.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=Rt.get(t,n),e&&(!r||mt.isArray(e)?r=Rt.access(t,n,mt.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=mt.queue(t,n),r=e.length,i=e.shift(),o=mt._queueHooks(t,n),a=function(){mt.dequeue(t,n)};"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return Rt.get(t,e)||Rt.access(t,e,{empty:mt.Callbacks("once memory").add(function(){Rt.remove(t,[n+"queue",e])})})}}),mt.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?mt.queue(this[0],t):void 0===n?this:this.each(function(){var e=mt.queue(this,t,n);mt._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&mt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){mt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=mt.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)e=Rt.get(o[a],t+"queueHooks"),e&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var Bt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Wt=new RegExp("^(?:([+-])=|)("+Bt+")([a-z%]*)$","i"),Yt=["Top","Right","Bottom","Left"],$t=function(t,n){return t=n||t,"none"===t.style.display||""===t.style.display&&mt.contains(t.ownerDocument,t)&&"none"===mt.css(t,"display")},Xt=function(t,n,e,r){var i,o,a={};for(o in n)a[o]=t.style[o],t.style[o]=n[o];i=e.apply(t,r||[]);for(o in n)t.style[o]=a[o];return i},Vt={};mt.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){$t(this)?mt(this).show():mt(this).hide()})}});var Gt=/^(?:checkbox|radio)$/i,Jt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Zt=/^$|\/(?:java|ecma)script/i,Qt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;
-var Kt=/<|&#?\w+;/;!function(){var t=ot.createDocumentFragment(),n=t.appendChild(ot.createElement("div")),e=ot.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),n.appendChild(e),vt.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var tn=ot.documentElement,nn=/^key/,en=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rn=/^([^.]*)(?:\.(.+)|)/;mt.event={global:{},add:function(t,n,e,r,i){var o,a,u,s,c,l,f,h,p,d,g,v=Rt.get(t);if(v)for(e.handler&&(o=e,e=o.handler,i=o.selector),i&&mt.find.matchesSelector(tn,i),e.guid||(e.guid=mt.guid++),(s=v.events)||(s=v.events={}),(a=v.handle)||(a=v.handle=function(n){return"undefined"!=typeof mt&&mt.event.triggered!==n.type?mt.event.dispatch.apply(t,arguments):void 0}),n=(n||"").match(Lt)||[""],c=n.length;c--;)u=rn.exec(n[c])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p&&(f=mt.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=mt.event.special[p]||{},l=mt.extend({type:p,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&mt.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=s[p])||(h=s[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),mt.event.global[p]=!0)},remove:function(t,n,e,r,i){var o,a,u,s,c,l,f,h,p,d,g,v=Rt.hasData(t)&&Rt.get(t);if(v&&(s=v.events)){for(n=(n||"").match(Lt)||[""],c=n.length;c--;)if(u=rn.exec(n[c])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p){for(f=mt.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=s[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&g!==l.origType||e&&e.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,v.handle)!==!1||mt.removeEvent(t,p,v.handle),delete s[p])}else for(p in s)mt.event.remove(t,p+n[c],e,r,!0);mt.isEmptyObject(s)&&Rt.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=mt.event.fix(t),s=new Array(arguments.length),c=(Rt.get(this,"events")||{})[u.type]||[],l=mt.event.special[u.type]||{};for(s[0]=u,n=1;n<arguments.length;n++)s[n]=arguments[n];if(u.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,u)!==!1){for(a=mt.event.handlers.call(this,u,c),n=0;(i=a[n++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,r=((mt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(u.result=r)===!1&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,n){var e,r,i,o,a,u=[],s=n.delegateCount,c=t.target;if(s&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||c.disabled!==!0)){for(o=[],a={},e=0;e<s;e++)r=n[e],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?mt(i,this).index(c)>-1:mt.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&u.push({elem:c,handlers:o})}return c=this,s<n.length&&u.push({elem:c,handlers:n.slice(s)}),u},addProp:function(t,n){Object.defineProperty(mt.Event.prototype,t,{enumerable:!0,configurable:!0,get:mt.isFunction(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[mt.expando]?t:new mt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&mt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return mt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},mt.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},mt.Event=function(t,n){return this instanceof mt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?k:T,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&mt.extend(this,n),this.timeStamp=t&&t.timeStamp||mt.now(),void(this[mt.expando]=!0)):new mt.Event(t,n)},mt.Event.prototype={constructor:mt.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},mt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var n=t.button;return null==t.which&&nn.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==n&&en.test(t.type)?1&n?1:2&n?3:4&n?2:0:t.which}},mt.event.addProp),mt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){mt.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||mt.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}}),mt.fn.extend({on:function(t,n,e,r){return C(this,t,n,e,r)},one:function(t,n,e,r){return C(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,mt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return n!==!1&&"function"!=typeof n||(e=n,n=void 0),e===!1&&(e=T),this.each(function(){mt.event.remove(this,t,e,n)})}});var on=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,an=/<script|<style|<link/i,un=/checked\s*(?:[^=]|=\s*.checked.)/i,sn=/^true\/(.*)/,cn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;mt.extend({htmlPrefilter:function(t){return t.replace(on,"<$1></$2>")},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),s=mt.contains(t.ownerDocument,t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||mt.isXMLDoc(t)))for(a=b(u),o=b(t),r=0,i=o.length;r<i;r++)D(o[r],a[r]);if(n)if(e)for(o=o||b(t),a=a||b(u),r=0,i=o.length;r<i;r++)q(o[r],a[r]);else q(t,u);return a=b(u,"script"),a.length>0&&w(a,!s&&b(t,"script")),u},cleanData:function(t){for(var n,e,r,i=mt.event.special,o=0;void 0!==(e=t[o]);o++)if(zt(e)){if(n=e[Rt.expando]){if(n.events)for(r in n.events)i[r]?mt.event.remove(e,r):mt.removeEvent(e,r,n.handle);e[Rt.expando]=void 0}e[Ht.expando]&&(e[Ht.expando]=void 0)}}}),mt.fn.extend({detach:function(t){return L(this,t,!0)},remove:function(t){return L(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?mt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=N(this,t);n.appendChild(t)}})},prepend:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=N(this,t);n.insertBefore(t,n.firstChild)}})},before:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(mt.cleanData(b(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map(function(){return mt.clone(this,t,n)})},html:function(t){return Ft(this,function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!an.test(t)&&!Qt[(Jt.exec(t)||["",""])[1].toLowerCase()]){t=mt.htmlPrefilter(t);try{for(;e<r;e++)n=this[e]||{},1===n.nodeType&&(mt.cleanData(b(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return j(this,arguments,function(n){var e=this.parentNode;mt.inArray(this,t)<0&&(mt.cleanData(b(this)),e&&e.replaceChild(n,this))},t)}}),mt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){mt.fn[t]=function(t){for(var e,r=[],i=mt(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),mt(i[a])[n](e),ct.apply(r,e.get());return this.pushStack(r)}});var ln=/^margin/,fn=new RegExp("^("+Bt+")(?!px)[a-z%]+$","i"),hn=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(u){u.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",u.innerHTML="",tn.appendChild(a);var t=e.getComputedStyle(u);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,u.style.marginRight="50%",i="4px"===t.marginRight,tn.removeChild(a),u=null}}var n,r,i,o,a=ot.createElement("div"),u=ot.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===u.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(u),mt.extend(vt,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var pn=/^(none|table(?!-c[ea]).+)/,dn={position:"absolute",visibility:"hidden",display:"block"},gn={letterSpacing:"0",fontWeight:"400"},vn=["Webkit","Moz","ms"],yn=ot.createElement("div").style;mt.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=P(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=mt.camelCase(n),s=t.style;return n=mt.cssProps[u]||(mt.cssProps[u]=F(u)||u),a=mt.cssHooks[n]||mt.cssHooks[u],void 0===e?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n]:(o=typeof e,"string"===o&&(i=Wt.exec(e))&&i[1]&&(e=m(t,n,i),o="number"),null!=e&&e===e&&("number"===o&&(e+=i&&i[3]||(mt.cssNumber[u]?"":"px")),vt.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(s[n]=e)),void 0)}},css:function(t,n,e,r){var i,o,a,u=mt.camelCase(n);return n=mt.cssProps[u]||(mt.cssProps[u]=F(u)||u),a=mt.cssHooks[n]||mt.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=P(t,n,r)),"normal"===i&&n in gn&&(i=gn[n]),""===e||e?(o=parseFloat(i),e===!0||isFinite(o)?o||0:i):i}}),mt.each(["height","width"],function(t,n){mt.cssHooks[n]={get:function(t,e,r){if(e)return!pn.test(mt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?H(t,n,r):Xt(t,dn,function(){return H(t,n,r)})},set:function(t,e,r){var i,o=r&&hn(t),a=r&&R(t,n,r,"border-box"===mt.css(t,"boxSizing",!1,o),o);return a&&(i=Wt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=mt.css(t,n)),z(t,e,a)}}}),mt.cssHooks.marginLeft=O(vt.reliableMarginLeft,function(t,n){if(n)return(parseFloat(P(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),mt.each({margin:"",padding:"",border:"Width"},function(t,n){mt.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+Yt[r]+n]=o[r]||o[r-2]||o[0];return i}},ln.test(t)||(mt.cssHooks[t+n].set=z)}),mt.fn.extend({css:function(t,n){return Ft(this,function(t,n,e){var r,i,o={},a=0;if(mt.isArray(n)){for(r=hn(t),i=n.length;a<i;a++)o[n[a]]=mt.css(t,n[a],!1,r);return o}return void 0!==e?mt.style(t,n,e):mt.css(t,n)},t,n,arguments.length>1)}}),mt.Tween=I,I.prototype={constructor:I,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||mt.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(mt.cssNumber[e]?"":"px")},cur:function(){var t=I.propHooks[this.prop];return t&&t.get?t.get(this):I.propHooks._default.get(this)},run:function(t){var n,e=I.propHooks[this.prop];return this.options.duration?this.pos=n=mt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):I.propHooks._default.set(this),this}},I.prototype.init.prototype=I.prototype,I.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=mt.css(t.elem,t.prop,""),n&&"auto"!==n?n:0)},set:function(t){mt.fx.step[t.prop]?mt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[mt.cssProps[t.prop]]&&!mt.cssHooks[t.prop]?t.elem[t.prop]=t.now:mt.style(t.elem,t.prop,t.now+t.unit)}}},I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},mt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},mt.fx=I.prototype.init,mt.fx.step={};var mn,_n,xn=/^(?:toggle|show|hide)$/,bn=/queueHooks$/;mt.Animation=mt.extend(V,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return m(e.elem,t,Wt.exec(n),e),e}]},tweener:function(t,n){mt.isFunction(t)?(n=t,t=["*"]):t=t.match(Lt);for(var e,r=0,i=t.length;r<i;r++)e=t[r],V.tweeners[e]=V.tweeners[e]||[],V.tweeners[e].unshift(n)},prefilters:[$],prefilter:function(t,n){n?V.prefilters.unshift(t):V.prefilters.push(t)}}),mt.speed=function(t,n,e){var r=t&&"object"==typeof t?mt.extend({},t):{complete:e||!e&&n||mt.isFunction(t)&&t,duration:t,easing:e&&n||n&&!mt.isFunction(n)&&n};return mt.fx.off||ot.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in mt.fx.speeds?r.duration=mt.fx.speeds[r.duration]:r.duration=mt.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){mt.isFunction(r.old)&&r.old.call(this),r.queue&&mt.dequeue(this,r.queue)},r},mt.fn.extend({fadeTo:function(t,n,e,r){return this.filter($t).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=mt.isEmptyObject(t),o=mt.speed(n,e,r),a=function(){var n=V(this,mt.extend({},t),o);(i||Rt.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var n=!0,i=null!=t&&t+"queueHooks",o=mt.timers,a=Rt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&bn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||mt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var n,e=Rt.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=mt.timers,a=r?r.length:0;for(e.finish=!0,mt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish})}}),mt.each(["toggle","show","hide"],function(t,n){var e=mt.fn[n];mt.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(W(n,!0),t,r,i)}}),mt.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){mt.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}}),mt.timers=[],mt.fx.tick=function(){var t,n=0,e=mt.timers;for(mn=mt.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||mt.fx.stop(),mn=void 0},mt.fx.timer=function(t){mt.timers.push(t),t()?mt.fx.start():mt.timers.pop()},mt.fx.interval=13,mt.fx.start=function(){_n||(_n=e.requestAnimationFrame?e.requestAnimationFrame(U):e.setInterval(mt.fx.tick,mt.fx.interval))},mt.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(_n):e.clearInterval(_n),_n=null},mt.fx.speeds={slow:600,fast:200,_default:400},mt.fn.delay=function(t,n){return t=mt.fx?mt.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var t=ot.createElement("input"),n=ot.createElement("select"),e=n.appendChild(ot.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=e.selected,t=ot.createElement("input"),t.value="t",t.type="radio",vt.radioValue="t"===t.value}();var wn,Mn=mt.expr.attrHandle;mt.fn.extend({attr:function(t,n){return Ft(this,mt.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?mt.prop(t,n,e):(1===o&&mt.isXMLDoc(t)||(i=mt.attrHooks[n.toLowerCase()]||(mt.expr.match.bool.test(n)?wn:void 0)),void 0!==e?null===e?void mt.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:(r=mt.find.attr(t,n),null==r?void 0:r))},attrHooks:{type:{set:function(t,n){if(!vt.radioValue&&"radio"===n&&mt.nodeName(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(Lt);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),wn={set:function(t,n,e){return n===!1?mt.removeAttr(t,e):t.setAttribute(e,e),e}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,n){var e=Mn[n]||mt.find.attr;Mn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=Mn[a],Mn[a]=i,i=null!=e(t,n,r)?a:null,Mn[a]=o),i}});var kn=/^(?:input|select|textarea|button)$/i,Tn=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,n){return Ft(this,mt.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&mt.isXMLDoc(t)||(n=mt.propFix[n]||n,i=mt.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=mt.find.attr(t,"tabindex");return n?parseInt(n,10):kn.test(t.nodeName)||Tn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||(mt.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this}),mt.fn.extend({addClass:function(t){var n,e,r,i,o,a,u,s=0;if(mt.isFunction(t))return this.each(function(n){mt(this).addClass(t.call(this,n,J(this)))});if("string"==typeof t&&t)for(n=t.match(Lt)||[];e=this[s++];)if(i=J(e),r=1===e.nodeType&&" "+G(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");u=G(r),i!==u&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,s=0;if(mt.isFunction(t))return this.each(function(n){mt(this).removeClass(t.call(this,n,J(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(n=t.match(Lt)||[];e=this[s++];)if(i=J(e),r=1===e.nodeType&&" "+G(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");u=G(r),i!==u&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t;return"boolean"==typeof n&&"string"===e?n?this.addClass(t):this.removeClass(t):mt.isFunction(t)?this.each(function(e){mt(this).toggleClass(t.call(this,e,J(this),n),n)}):this.each(function(){var n,r,i,o;if("string"===e)for(r=0,i=mt(this),o=t.match(Lt)||[];n=o[r++];)i.hasClass(n)?i.removeClass(n):i.addClass(n);else void 0!==t&&"boolean"!==e||(n=J(this),n&&Rt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||t===!1?"":Rt.get(this,"__className__")||""))})},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+G(J(e))+" ").indexOf(n)>-1)return!0;return!1}});var Sn=/\r/g;mt.fn.extend({val:function(t){var n,e,r,i=this[0];{if(arguments.length)return r=mt.isFunction(t),this.each(function(e){var i;1===this.nodeType&&(i=r?t.call(this,e,mt(this).val()):t,null==i?i="":"number"==typeof i?i+="":mt.isArray(i)&&(i=mt.map(i,function(t){return null==t?"":t+""})),n=mt.valHooks[this.type]||mt.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))});if(i)return n=mt.valHooks[i.type]||mt.valHooks[i.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:(e=i.value,"string"==typeof e?e.replace(Sn,""):null==e?"":e)}}}),mt.extend({valHooks:{option:{get:function(t){var n=mt.find.attr(t,"value");return null!=n?n:G(mt.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r<s;r++)if(e=i[r],(e.selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!mt.nodeName(e.parentNode,"optgroup"))){if(n=mt(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=mt.makeArray(n),a=i.length;a--;)r=i[a],(r.selected=mt.inArray(mt.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),mt.each(["radio","checkbox"],function(){mt.valHooks[this]={set:function(t,n){if(mt.isArray(n))return t.checked=mt.inArray(mt(t).val(),n)>-1}},vt.checkOn||(mt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Cn=/^(?:focusinfocus|focusoutblur)$/;mt.extend(mt.event,{trigger:function(t,n,r,i){var o,a,u,s,c,l,f,h=[r||ot],p=pt.call(t,"type")?t.type:t,d=pt.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||ot,3!==r.nodeType&&8!==r.nodeType&&!Cn.test(p+mt.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[mt.expando]?t:new mt.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:mt.makeArray(n,[t]),f=mt.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!mt.isWindow(r)){for(s=f.delegateType||p,Cn.test(s+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||ot)&&h.push(u.defaultView||u.parentWindow||e)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?s:f.bindType||p,l=(Rt.get(a,"events")||{})[t.type]&&Rt.get(a,"handle"),l&&l.apply(a,n),l=c&&a[c],l&&l.apply&&zt(a)&&(t.result=l.apply(a,n),t.result===!1&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!zt(r)||c&&mt.isFunction(r[p])&&!mt.isWindow(r)&&(u=r[c],u&&(r[c]=null),mt.event.triggered=p,r[p](),mt.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,n,e){var r=mt.extend(new mt.Event,e,{type:t,isSimulated:!0});mt.event.trigger(r,null,n)}}),mt.fn.extend({trigger:function(t,n){return this.each(function(){mt.event.trigger(t,n,this)})},triggerHandler:function(t,n){var e=this[0];if(e)return mt.event.trigger(t,n,e,!0)}}),mt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){mt.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}),mt.fn.extend({hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),vt.focusin="onfocusin"in e,vt.focusin||mt.each({focus:"focusin",blur:"focusout"},function(t,n){var e=function(t){mt.event.simulate(n,t.target,mt.event.fix(t))};mt.event.special[n]={setup:function(){var r=this.ownerDocument||this,i=Rt.access(r,n);i||r.addEventListener(t,e,!0),Rt.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Rt.access(r,n)-1;i?Rt.access(r,n,i):(r.removeEventListener(t,e,!0),Rt.remove(r,n))}}});var Nn=e.location,En=mt.now(),An=/\?/;mt.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||mt.error("Invalid XML: "+t),n};var qn=/\[\]$/,Dn=/\r?\n/g,jn=/^(?:submit|button|image|reset|file)$/i,Ln=/^(?:input|select|textarea|keygen)/i;mt.param=function(t,n){var e,r=[],i=function(t,n){var e=mt.isFunction(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(mt.isArray(t)||t.jquery&&!mt.isPlainObject(t))mt.each(t,function(){i(this.name,this.value)});else for(e in t)Z(e,t[e],n,i);return r.join("&")},mt.fn.extend({serialize:function(){return mt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=mt.prop(this,"elements");return t?mt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!mt(this).is(":disabled")&&Ln.test(this.nodeName)&&!jn.test(t)&&(this.checked||!Gt.test(t))}).map(function(t,n){var e=mt(this).val();return null==e?null:mt.isArray(e)?mt.map(e,function(t){return{name:n.name,value:t.replace(Dn,"\r\n")}}):{name:n.name,value:e.replace(Dn,"\r\n")}}).get()}});var Pn=/%20/g,On=/#.*$/,Fn=/([?&])_=[^&]*/,zn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Hn=/^(?:GET|HEAD)$/,In=/^\/\//,Un={},Bn={},Wn="*/".concat("*"),Yn=ot.createElement("a");Yn.href=Nn.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nn.href,type:"GET",isLocal:Rn.test(Nn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":mt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?tt(tt(t,mt.ajaxSettings),n):tt(mt.ajaxSettings,t)},ajaxPrefilter:Q(Un),ajaxTransport:Q(Bn),ajax:function(t,n){function r(t,n,r,u){var c,h,p,x,b,w=n;l||(l=!0,s&&e.clearTimeout(s),i=void 0,a=u||"",M.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(x=nt(d,M,r)),x=et(d,x,M,c),c?(d.ifModified&&(b=M.getResponseHeader("Last-Modified"),b&&(mt.lastModified[o]=b),b=M.getResponseHeader("etag"),b&&(mt.etag[o]=b)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=x.state,h=x.data,p=x.error,c=!p)):(p=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(n||w)+"",c?y.resolveWith(g,[h,w,M]):y.rejectWith(g,[M,w,p]),M.statusCode(_),_=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[M,d,c?h:p]),m.fireWith(g,[M,w]),f&&(v.trigger("ajaxComplete",[M,d]),--mt.active||mt.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,u,s,c,l,f,h,p,d=mt.ajaxSetup({},n),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?mt(g):mt.event,y=mt.Deferred(),m=mt.Callbacks("once memory"),_=d.statusCode||{},x={},b={},w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(l){if(!u)for(u={};n=zn.exec(a);)u[n[1].toLowerCase()]=n[2];n=u[t.toLowerCase()]}return null==n?null:n},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(t,n){return null==l&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,x[t]=n),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var n;if(t)if(l)M.always(t[M.status]);else for(n in t)_[n]=[_[n],t[n]];return this},abort:function(t){var n=t||w;return i&&i.abort(n),r(0,n),this}};if(y.promise(M),d.url=((t||d.url||Nn.href)+"").replace(In,Nn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Lt)||[""],null==d.crossDomain){c=ot.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Yn.protocol+"//"+Yn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=mt.param(d.data,d.traditional)),K(Un,d,n,M),l)return M;f=mt.event&&d.global,f&&0===mt.active++&&mt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Hn.test(d.type),o=d.url.replace(On,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pn,"+")):(p=d.url.slice(o.length),d.data&&(o+=(An.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(o=o.replace(Fn,"$1"),p=(An.test(o)?"&":"?")+"_="+En++ +p),d.url=o+p),d.ifModified&&(mt.lastModified[o]&&M.setRequestHeader("If-Modified-Since",mt.lastModified[o]),mt.etag[o]&&M.setRequestHeader("If-None-Match",mt.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Wn+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)M.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(g,M,d)===!1||l))return M.abort();if(w="abort",m.add(d.complete),M.done(d.success),M.fail(d.error),i=K(Bn,d,n,M)){if(M.readyState=1,f&&v.trigger("ajaxSend",[M,d]),l)return M;d.async&&d.timeout>0&&(s=e.setTimeout(function(){M.abort("timeout")},d.timeout));try{l=!1,i.send(x,r)}catch(t){if(l)throw t;r(-1,t)}}else r(-1,"No Transport");return M},getJSON:function(t,n,e){return mt.get(t,n,e,"json")},getScript:function(t,n){return mt.get(t,void 0,n,"script")}}),mt.each(["get","post"],function(t,n){mt[n]=function(t,e,r,i){return mt.isFunction(e)&&(i=i||r,r=e,e=void 0),mt.ajax(mt.extend({url:t,type:n,dataType:i,data:e,success:r},mt.isPlainObject(t)&&t))}}),mt._evalUrl=function(t){return mt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},mt.fn.extend({wrapAll:function(t){var n;return this[0]&&(mt.isFunction(t)&&(t=t.call(this[0])),n=mt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return mt.isFunction(t)?this.each(function(n){mt(this).wrapInner(t.call(this,n))}):this.each(function(){var n=mt(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)})},wrap:function(t){var n=mt.isFunction(t);return this.each(function(e){mt(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){
-mt(this).replaceWith(this.childNodes)}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var $n={0:200,1223:204},Xn=mt.ajaxSettings.xhr();vt.cors=!!Xn&&"withCredentials"in Xn,vt.ajax=Xn=!!Xn,mt.ajaxTransport(function(t){var n,r;if(vt.cors||Xn&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=r=u.onload=u.onerror=u.onabort=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o($n[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),r=u.onerror=n("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var n,e;return{send:function(r,i){n=mt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),ot.head.appendChild(n[0])},abort:function(){e&&e()}}}});var Vn=[],Gn=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||mt.expando+"_"+En++;return this[t]=!0,t}}),mt.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,u=t.jsonp!==!1&&(Gn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=mt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Gn,"$1"+i):t.jsonp!==!1&&(t.url+=(An.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||mt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?mt(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vn.push(i)),a&&mt.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),vt.createHTMLDocument=function(){var t=ot.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),mt.parseHTML=function(t,n,e){if("string"!=typeof t)return[];"boolean"==typeof n&&(e=n,n=!1);var r,i,o;return n||(vt.createHTMLDocument?(n=ot.implementation.createHTMLDocument(""),r=n.createElement("base"),r.href=ot.location.href,n.head.appendChild(r)):n=ot),i=Ct.exec(t),o=!e&&[],i?[n.createElement(i[1])]:(i=M([t],n,o),o&&o.length&&mt(o).remove(),mt.merge([],i.childNodes))},mt.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=G(t.slice(u)),t=t.slice(0,u)),mt.isFunction(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&mt.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done(function(t){o=arguments,a.html(r?mt("<div>").append(mt.parseHTML(t)).find(r):t)}).always(e&&function(t,n){a.each(function(){e.apply(this,o||[t.responseText,n,t])})}),this},mt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,n){mt.fn[n]=function(t){return this.on(n,t)}}),mt.expr.pseudos.animated=function(t){return mt.grep(mt.timers,function(n){return t===n.elem}).length},mt.offset={setOffset:function(t,n,e){var r,i,o,a,u,s,c,l=mt.css(t,"position"),f=mt(t),h={};"static"===l&&(t.style.position="relative"),u=f.offset(),o=mt.css(t,"top"),s=mt.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+s).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),mt.isFunction(n)&&(n=n.call(t,e,mt.extend({},u))),null!=n.top&&(h.top=n.top-u.top+a),null!=n.left&&(h.left=n.left-u.left+i),"using"in n?n.using.call(t,h):f.css(h)}},mt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(n){mt.offset.setOffset(this,t,n)});var n,e,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,e=rt(i),n=i.documentElement,{top:r.top+e.pageYOffset-n.clientTop,left:r.left+e.pageXOffset-n.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var t,n,e=this[0],r={top:0,left:0};return"fixed"===mt.css(e,"position")?n=e.getBoundingClientRect():(t=this.offsetParent(),n=this.offset(),mt.nodeName(t[0],"html")||(r=t.offset()),r={top:r.top+mt.css(t[0],"borderTopWidth",!0),left:r.left+mt.css(t[0],"borderLeftWidth",!0)}),{top:n.top-r.top-mt.css(e,"marginTop",!0),left:n.left-r.left-mt.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===mt.css(t,"position");)t=t.offsetParent;return t||tn})}}),mt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var e="pageYOffset"===n;mt.fn[t]=function(r){return Ft(this,function(t,r,i){var o=rt(t);return void 0===i?o?o[n]:t[r]:void(o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),mt.each(["top","left"],function(t,n){mt.cssHooks[n]=O(vt.pixelPosition,function(t,e){if(e)return e=P(t,n),fn.test(e)?mt(t).position()[n]+"px":e})}),mt.each({Height:"height",Width:"width"},function(t,n){mt.each({padding:"inner"+t,content:n,"":"outer"+t},function(e,r){mt.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(i===!0||o===!0?"margin":"border");return Ft(this,function(n,e,i){var o;return mt.isWindow(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?mt.css(n,e,u):mt.style(n,e,i,u)},n,a?i:void 0,a)}})}),mt.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)}}),mt.parseJSON=JSON.parse,r=[],i=function(){return mt}.apply(n,r),!(void 0!==i&&(t.exports=i));var Jn=e.jQuery,Zn=e.$;return mt.noConflict=function(t){return e.$===mt&&(e.$=Zn),t&&e.jQuery===mt&&(e.jQuery=Jn),mt},o||(e.jQuery=e.$=mt),mt})},function(t,n,e){e(3);t.exports={process:function(t,n,e){var r=[];return t.split("\n").map(function(t){if(!t.startsWith("#")&&0!=t.length){var e=t.split("\t");if(9!==e.length&&(e=t.trim().split(/\s+/)),9==e.length){for(var i=e[8].split(";"),o={},a=0;a<i.length;++a){var u=i[a].split("=");o[u[0]]=u[1]}var s={seqid:e[0],source:e[1],type:e[2],start:parseInt(e[3]),end:parseInt(e[4]),score:e[5],strand:e[6],phase:e[7],attributes:o};(void 0===n||n.indexOf(s.type)>-1)&&r.push(s)}else{var c=new Error("9 parts of feature not found");console.log(c)}}}),r}}},function(t,n,e){"use strict";function r(t,n){if(!(this instanceof r))return new r(t,n);if(n&&n in p&&(n=null),n&&!(n in f))throw new Error("Unknown model: "+n);var e,i;if(t)if(t instanceof r)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var o=l.get(t);if(null===o)throw new Error("Unable to parse color from string: "+t);this.model=o.model,i=f[this.model].channels,this.color=o.value.slice(0,i),this.valpha="number"==typeof o.value[i]?o.value[i]:1}else if(t.length){this.model=n||"rgb",i=f[this.model].channels;var a=h.call(t,0,i);this.color=c(a,i),this.valpha="number"==typeof t[i]?t[i]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var u=Object.keys(t);"alpha"in t&&(u.splice(u.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var s=u.sort().join("");if(!(s in d))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=d[s];var v=f[this.model].labels,y=[];for(e=0;e<v.length;e++)y.push(t[v[e]]);this.color=c(y)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(g[this.model])for(i=f[this.model].channels,e=0;e<i;e++){var m=g[this.model][e];m&&(this.color[e]=m(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function i(t,n){return Number(t.toFixed(n))}function o(t){return function(n){return i(n,t)}}function a(t,n,e){return t=Array.isArray(t)?t:[t],t.forEach(function(t){(g[t]||(g[t]=[]))[n]=e}),t=t[0],function(r){var i;return arguments.length?(e&&(r=e(r)),i=this[t](),i.color[n]=r,i):(i=this[t]().color[n],e&&(i=e(i)),i)}}function u(t){return function(n){return Math.max(0,Math.min(t,n))}}function s(t){return Array.isArray(t)?t:[t]}function c(t,n){for(var e=0;e<n;e++)"number"!=typeof t[e]&&(t[e]=0);return t}var l=e(6),f=e(10),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(t){d[h.call(f[t].labels).sort().join("")]=t});var g={};r.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var n=this.model in l.to?this:this.rgb();n=n.round("number"==typeof t?t:1);var e=1===n.valpha?n.color:n.color.concat(this.valpha);return l.to[n.model](e)},percentString:function(t){var n=this.rgb().round("number"==typeof t?t:1),e=1===n.valpha?n.color:n.color.concat(this.valpha);return l.to.rgb.percent(e)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},n=f[this.model].channels,e=f[this.model].labels,r=0;r<n;r++)t[e[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new r(this.color.map(o(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new r(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:a("rgb",0,u(255)),green:a("rgb",1,u(255)),blue:a("rgb",2,u(255)),hue:a(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:a("hsl",1,u(100)),lightness:a("hsl",2,u(100)),saturationv:a("hsv",1,u(100)),value:a("hsv",2,u(100)),chroma:a("hcg",1,u(100)),gray:a("hcg",2,u(100)),white:a("hwb",1,u(100)),wblack:a("hwb",2,u(100)),cyan:a("cmyk",0,u(100)),magenta:a("cmyk",1,u(100)),yellow:a("cmyk",2,u(100)),black:a("cmyk",3,u(100)),x:a("xyz",0,u(100)),y:a("xyz",1,u(100)),z:a("xyz",2,u(100)),l:a("lab",0,u(100)),a:a("lab",1),b:a("lab",2),keyword:function(t){return arguments.length?new r(t):f[this.model].keyword(this.color)},hex:function(t){return arguments.length?new r(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,n=[],e=0;e<t.length;e++){var r=t[e]/255;n[e]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(t){var n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level:function(t){var n=this.contrast(t);return n>=7.1?"AAA":n>=4.5?"AA":""},dark:function(){var t=this.rgb().color,n=(299*t[0]+587*t[1]+114*t[2])/1e3;return n<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten:function(t){var n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken:function(t){var n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate:function(t){var n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate:function(t){var n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten:function(t){var n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken:function(t){var n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale:function(){var t=this.rgb().color,n=.3*t[0]+.59*t[1]+.11*t[2];return r.rgb(n,n,n)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix:function(t,n){var e=this.rgb(),i=t.rgb(),o=void 0===n?.5:n,a=2*o-1,u=e.alpha()-i.alpha(),s=((a*u===-1?a:(a+u)/(1+a*u))+1)/2,c=1-s;return r.rgb(s*e.red()+c*i.red(),s*e.green()+c*i.green(),s*e.blue()+c*i.blue(),e.alpha()*o+i.alpha()*(1-o))}},Object.keys(f).forEach(function(t){if(p.indexOf(t)===-1){var n=f[t].channels;r.prototype[t]=function(){if(this.model===t)return new r(this);if(arguments.length)return new r(arguments,t);var e="number"==typeof arguments[n]?n:this.valpha;return new r(s(f[this.model][t].raw(this.color)).concat(e),t)},r[t]=function(e){return"number"==typeof e&&(e=c(h.call(arguments),n)),new r(e,t)}}}),t.exports=r},function(t,n,e){function r(t,n,e){return Math.min(Math.max(n,t),e)}function i(t){var n=t.toString(16).toUpperCase();return n.length<2?"0"+n:n}var o=e(7),a=e(8),u={};for(var s in o)o.hasOwnProperty(s)&&(u[o[s]]=s);var c=t.exports={to:{}};c.get=function(t){var n,e,r=t.substring(0,3).toLowerCase();switch(r){case"hsl":n=c.get.hsl(t),e="hsl";break;case"hwb":n=c.get.hwb(t),e="hwb";break;default:n=c.get.rgb(t),e="rgb"}return n?{model:e,value:n}:null},c.get.rgb=function(t){if(!t)return null;var n,e,i=/^#([a-fA-F0-9]{3})$/,a=/^#([a-fA-F0-9]{6})$/,u=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/(\D+)/,l=[0,0,0,1];if(n=t.match(i))for(n=n[1],e=0;e<3;e++)l[e]=parseInt(n[e]+n[e],16);else if(n=t.match(a))for(n=n[1],e=0;e<3;e++){var f=2*e;l[e]=parseInt(n.slice(f,f+2),16)}else if(n=t.match(u)){for(e=0;e<3;e++)l[e]=parseInt(n[e+1],0);n[4]&&(l[3]=parseFloat(n[4]))}else if(n=t.match(s)){for(e=0;e<3;e++)l[e]=Math.round(2.55*parseFloat(n[e+1]));n[4]&&(l[3]=parseFloat(n[4]))}else if(n=t.match(c))return"transparent"===n[1]?[0,0,0,0]:(l=o[n[1]])?(l[3]=1,l):null;for(e=0;e<l.length;e++)l[e]=r(l[e],0,255);return l[3]=r(l[3],0,1),l},c.get.hsl=function(t){if(!t)return null;var n=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=t.match(n);if(e){var i=parseFloat(e[4]),o=(parseFloat(e[1])%360+360)%360,a=r(parseFloat(e[2]),0,100),u=r(parseFloat(e[3]),0,100),s=r(isNaN(i)?1:i,0,1);return[o,a,u,s]}return null},c.get.hwb=function(t){if(!t)return null;var n=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=t.match(n);if(e){var i=parseFloat(e[4]),o=(parseFloat(e[1])%360+360)%360,a=r(parseFloat(e[2]),0,100),u=r(parseFloat(e[3]),0,100),s=r(isNaN(i)?1:i,0,1);return[o,a,u,s]}return null},c.to.hex=function(t){return"#"+i(t[0])+i(t[1])+i(t[2])},c.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=a(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=a(arguments),n="";return t.length>=4&&1!==t[3]&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"},c.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,n){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,n,e){"use strict";var r=e(9),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var n=[],e=0,a=t.length;e<a;e++){var u=t[e];r(u)?n=i.call(n,o.call(u)):n.push(u)}return n};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,n){"use strict";t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,n,e){function r(t){var n=function(n){return void 0===n||null===n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(n.conversion=t.conversion),n}function i(t){var n=function(n){if(void 0===n||null===n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var e=t(n);if("object"==typeof e)for(var r=e.length,i=0;i<r;i++)e[i]=Math.round(e[i]);return e};return"conversion"in t&&(n.conversion=t.conversion),n}var o=e(11),a=e(12),u={},s=Object.keys(o);s.forEach(function(t){u[t]={},Object.defineProperty(u[t],"channels",{value:o[t].channels}),Object.defineProperty(u[t],"labels",{value:o[t].labels});var n=a(t),e=Object.keys(n);e.forEach(function(e){var o=n[e];u[t][e]=i(o),u[t][e].raw=r(o)})}),t.exports=u},function(t,n,e){function r(t,n){return Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)+Math.pow(t[2]-n[2],2)}var i=e(7),o={};for(var a in i)i.hasOwnProperty(a)&&(o[i[a]]=a);var u=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in u)if(u.hasOwnProperty(s)){if(!("channels"in u[s]))throw new Error("missing channels property: "+s);if(!("labels"in u[s]))throw new Error("missing channel labels property: "+s);if(u[s].labels.length!==u[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=u[s].channels,l=u[s].labels;delete u[s].channels,delete u[s].labels,Object.defineProperty(u[s],"channels",{value:c}),Object.defineProperty(u[s],"labels",{value:l})}u.rgb.hsl=function(t){var n,e,r,i=t[0]/255,o=t[1]/255,a=t[2]/255,u=Math.min(i,o,a),s=Math.max(i,o,a),c=s-u;return s===u?n=0:i===s?n=(o-a)/c:o===s?n=2+(a-i)/c:a===s&&(n=4+(i-o)/c),n=Math.min(60*n,360),n<0&&(n+=360),r=(u+s)/2,e=s===u?0:r<=.5?c/(s+u):c/(2-s-u),[n,100*e,100*r]},u.rgb.hsv=function(t){var n,e,r,i=t[0],o=t[1],a=t[2],u=Math.min(i,o,a),s=Math.max(i,o,a),c=s-u;return e=0===s?0:c/s*1e3/10,s===u?n=0:i===s?n=(o-a)/c:o===s?n=2+(a-i)/c:a===s&&(n=4+(i-o)/c),n=Math.min(60*n,360),n<0&&(n+=360),r=s/255*1e3/10,[n,e,r]},u.rgb.hwb=function(t){var n=t[0],e=t[1],r=t[2],i=u.rgb.hsl(t)[0],o=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[i,100*o,100*r]},u.rgb.cmyk=function(t){var n,e,r,i,o=t[0]/255,a=t[1]/255,u=t[2]/255;return i=Math.min(1-o,1-a,1-u),n=(1-o-i)/(1-i)||0,e=(1-a-i)/(1-i)||0,r=(1-u-i)/(1-i)||0,[100*n,100*e,100*r,100*i]},u.rgb.keyword=function(t){var n=o[t];if(n)return n;var e,a=1/0;for(var u in i)if(i.hasOwnProperty(u)){var s=i[u],c=r(t,s);c<a&&(a=c,e=u)}return e},u.keyword.rgb=function(t){return i[t]},u.rgb.xyz=function(t){var n=t[0]/255,e=t[1]/255,r=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*n+.3576*e+.1805*r,o=.2126*n+.7152*e+.0722*r,a=.0193*n+.1192*e+.9505*r;return[100*i,100*o,100*a]},u.rgb.lab=function(t){var n,e,r,i=u.rgb.xyz(t),o=i[0],a=i[1],s=i[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*a-16,e=500*(o-a),r=200*(a-s),[n,e,r]},u.hsl.rgb=function(t){var n,e,r,i,o,a=t[0]/360,u=t[1]/100,s=t[2]/100;if(0===u)return o=255*s,[o,o,o];e=s<.5?s*(1+u):s+u-s*u,n=2*s-e,i=[0,0,0];for(var c=0;c<3;c++)r=a+1/3*-(c-1),r<0&&r++,r>1&&r--,o=6*r<1?n+6*(e-n)*r:2*r<1?e:3*r<2?n+(e-n)*(2/3-r)*6:n,i[c]=255*o;return i},u.hsl.hsv=function(t){var n,e,r=t[0],i=t[1]/100,o=t[2]/100,a=i,u=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=u<=1?u:2-u,e=(o+i)/2,n=0===o?2*a/(u+a):2*i/(o+i),[r,100*n,100*e]},u.hsv.rgb=function(t){var n=t[0]/60,e=t[1]/100,r=t[2]/100,i=Math.floor(n)%6,o=n-Math.floor(n),a=255*r*(1-e),u=255*r*(1-e*o),s=255*r*(1-e*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[u,r,a];case 2:return[a,r,s];case 3:return[a,u,r];case 4:return[s,a,r];case 5:return[r,a,u]}},u.hsv.hsl=function(t){var n,e,r,i=t[0],o=t[1]/100,a=t[2]/100,u=Math.max(a,.01);return r=(2-o)*a,n=(2-o)*u,e=o*u,e/=n<=1?n:2-n,e=e||0,r/=2,[i,100*e,100*r]},u.hwb.rgb=function(t){var n,e,r,i,o=t[0]/360,a=t[1]/100,u=t[2]/100,s=a+u;s>1&&(a/=s,u/=s),n=Math.floor(6*o),e=1-u,r=6*o-n,0!==(1&n)&&(r=1-r),i=a+r*(e-a);var c,l,f;switch(n){default:case 6:case 0:c=e,l=i,f=a;break;case 1:c=i,l=e,f=a;break;case 2:c=a,l=e,f=i;break;case 3:c=a,l=i,f=e;break;case 4:c=i,l=a,f=e;break;case 5:c=e,l=a,f=i}return[255*c,255*l,255*f]},u.cmyk.rgb=function(t){var n,e,r,i=t[0]/100,o=t[1]/100,a=t[2]/100,u=t[3]/100;return n=1-Math.min(1,i*(1-u)+u),e=1-Math.min(1,o*(1-u)+u),r=1-Math.min(1,a*(1-u)+u),[255*n,255*e,255*r]},u.xyz.rgb=function(t){var n,e,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=3.2406*i+o*-1.5372+a*-.4986,e=i*-.9689+1.8758*o+.0415*a,r=.0557*i+o*-.204+1.057*a,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=Math.min(Math.max(0,n),1),e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),[255*n,255*e,255*r]},u.xyz.lab=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,n=116*o-16,e=500*(i-o),r=200*(o-a),[n,e,r]},u.lab.xyz=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];e=(i+16)/116,n=o/500+e,r=e-a/200;var u=Math.pow(e,3),s=Math.pow(n,3),c=Math.pow(r,3);return e=u>.008856?u:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,n*=95.047,e*=100,r*=108.883,[n,e,r]},u.lab.lch=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return n=Math.atan2(a,o),e=360*n/2/Math.PI,e<0&&(e+=360),r=Math.sqrt(o*o+a*a),[i,r,e]},u.lch.lab=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return r=a/360*2*Math.PI,n=o*Math.cos(r),e=o*Math.sin(r),[i,n,e]},u.rgb.ansi16=function(t){var n=t[0],e=t[1],r=t[2],i=1 in arguments?arguments[1]:u.rgb.hsv(t)[2];if(i=Math.round(i/50),0===i)return 30;var o=30+(Math.round(r/255)<<2|Math.round(e/255)<<1|Math.round(n/255));return 2===i&&(o+=60),o},u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])},u.rgb.ansi256=function(t){var n=t[0],e=t[1],r=t[2];if(n===e&&e===r)return n<8?16:n>248?231:Math.round((n-8)/247*24)+232;var i=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return i},u.ansi16.rgb=function(t){var n=t%10;if(0===n||7===n)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];var e=.5*(~~(t>50)+1),r=(1&n)*e*255,i=(n>>1&1)*e*255,o=(n>>2&1)*e*255;return[r,i,o]},u.ansi256.rgb=function(t){if(t>=232){var n=10*(t-232)+8;return[n,n,n]}t-=16;var e,r=Math.floor(t/36)/5*255,i=Math.floor((e=t%36)/6)/5*255,o=e%6/5*255;return[r,i,o]},u.rgb.hex=function(t){var n=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e},u.hex.rgb=function(t){var n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var e=n[0];3===n[0].length&&(e=e.split("").map(function(t){return t+t}).join(""));var r=parseInt(e,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},u.rgb.hcg=function(t){var n,e,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.max(Math.max(r,i),o),u=Math.min(Math.min(r,i),o),s=a-u;return n=s<1?u/(1-s):0,e=s<=0?0:a===r?(i-o)/s%6:a===i?2+(o-r)/s:4+(r-i)/s+4,e/=6,e%=1,[360*e,100*s,100*n]},u.hsl.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=1,i=0;return r=e<.5?2*n*e:2*n*(1-e),r<1&&(i=(e-.5*r)/(1-r)),[t[0],100*r,100*i]},u.hsv.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=n*e,i=0;return r<1&&(i=(e-r)/(1-r)),[t[0],100*r,100*i]},u.hcg.rgb=function(t){var n=t[0]/360,e=t[1]/100,r=t[2]/100;if(0===e)return[255*r,255*r,255*r];var i=[0,0,0],o=n%1*6,a=o%1,u=1-a,s=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return s=(1-e)*r,[255*(e*i[0]+s),255*(e*i[1]+s),255*(e*i[2]+s)]},u.hcg.hsv=function(t){var n=t[1]/100,e=t[2]/100,r=n+e*(1-n),i=0;return r>0&&(i=n/r),[t[0],100*i,100*r]},u.hcg.hsl=function(t){var n=t[1]/100,e=t[2]/100,r=e*(1-n)+.5*n,i=0;return r>0&&r<.5?i=n/(2*r):r>=.5&&r<1&&(i=n/(2*(1-r))),[t[0],100*i,100*r]},u.hcg.hwb=function(t){var n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],100*(r-n),100*(1-r)]},u.hwb.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=1-e,i=r-n,o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],100*i,100*o]},u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},u.gray.hsl=u.gray.hsv=function(t){return[0,0,t[0]]},u.gray.hwb=function(t){return[0,100,t[0]]},u.gray.cmyk=function(t){return[0,0,0,t[0]]},u.gray.lab=function(t){return[t[0],0,0]},u.gray.hex=function(t){var n=255&Math.round(t[0]/100*255),e=(n<<16)+(n<<8)+n,r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(t){var n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},function(t,n,e){function r(){for(var t={},n=s.length,e=0;e<n;e++)t[s[e]]={distance:-1,parent:null};return t}function i(t){var n=r(),e=[t];for(n[t].distance=0;e.length;)for(var i=e.pop(),o=Object.keys(u[i]),a=o.length,s=0;s<a;s++){var c=o[s],l=n[c];l.distance===-1&&(l.distance=n[i].distance+1,l.parent=i,e.unshift(c))}return n}function o(t,n){return function(e){return n(t(e))}}function a(t,n){for(var e=[n[t].parent,t],r=u[n[t].parent][t],i=n[t].parent;n[i].parent;)e.unshift(n[i].parent),r=o(u[n[i].parent][i],r),i=n[i].parent;return r.conversion=e,r}var u=e(11),s=Object.keys(u);t.exports=function(t){for(var n=i(t),e={},r=Object.keys(n),o=r.length,u=0;u<o;u++){var s=r[u],c=n[s];null!==c.parent&&(e[s]=a(s,n))}return e}}]);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
--- a/cpt_xmfa/mauve.xml	Tue Jul 05 05:07:32 2022 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-<?xml version="1.0"?>
-<tool id="edu.tamu.cpt.comparative.mauve" name="X-Vis" version="1.0" profile="16.04">
-	<description>from XMFA file</description>
-	<macros>
-		<import>macros.xml</import>
-		<import>cpt-macros.xml</import>
-	</macros>
-	<configfiles>
-		<configfile name="index">
-		<![CDATA[
-#if ($frameHeight > 0):
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, height=$frameHeight, initial-scale=1">
-    <meta name="description" content="X-Vis">
-    <title>X-Vis</title>
-    <link rel="shortcut icon" href="favicon.ico">
-</head>
-<body>
-    <script src="mauve.js"></script>
-</body>
-</html>
-#else:
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <meta name="description" content="X-Vis">
-    <title>X-Vis</title>
-    <link rel="shortcut icon" href="favicon.ico">
-</head>
-<body>
-    <script src="mauve.js"></script>
-</body>
-</html>
-#end if
-		]]>
-		</configfile>
-	</configfiles>
-	<expand macro="requirements"/>
-	<command detect_errors="aggressive"><![CDATA[
-@GENOME_SELECTOR_PRE@
-mkdir -p "$output.files_path";
-
-python $__tool_directory__/xmfa_process.py
-@INPUT_GFF@
-@INPUT_FASTA@
-@XMFA_INPUT@
-"out" > "$output.files_path/data.json";
-mv out "$output.files_path/";
-
-cp $__tool_directory__/mauve.js $output.files_path/;
-cp $index "$output"
-]]></command>
-	<inputs>
-		<expand macro="input/gff3+fasta" />
-		<expand macro="xmfa_input" />
-                <param label="Manually Set Height (0 for auto-scaling)" name="frameHeight" type="integer" value="0"/>
-	</inputs>
-	<outputs>
-		<data format="html" name="output" />
-	</outputs>
-	<help>
-	</help>
-	<tests/>
-</tool>
--- a/cpt_xmfa/xmfa_process.py	Tue Jul 05 05:07:32 2022 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-#!/usr/bin/env python
-from Bio import SeqIO
-import argparse
-import json
-import os
-from CPT_GFFParser import gffParse, gffWrite
-
-
-def parse_xmfa(xmfa):
-    """Simple XMFA parser until https://github.com/biopython/biopython/pull/544
-    """
-    current_lcb = []
-    current_seq = {}
-    for line in xmfa.readlines():
-        if line.startswith("#"):
-            continue
-
-        if line.strip() == "=":
-            if "id" in current_seq:
-                current_lcb.append(current_seq)
-                current_seq = {}
-            yield current_lcb
-            current_lcb = []
-        else:
-            line = line.strip()
-            if line.startswith(">"):
-                if "id" in current_seq:
-                    current_lcb.append(current_seq)
-                    current_seq = {}
-                data = line.strip().split()
-                # 0 1           2 3      4 5
-                # > 1:5986-6406 + CbK.fa # CbK_gp011
-                id, loc = data[1].split(":")
-                start, end = loc.split("-")
-                current_seq = {
-                    "rid": "_".join(data[1:]),
-                    "id": id,
-                    "start": int(start),
-                    "end": int(end),
-                    "strand": 1 if data[2] == "+" else -1,
-                    "seq": "",
-                    "comment": "",
-                }
-                if len(data) > 5:
-                    current_seq["comment"] = " ".join(data[5:])
-            # else:
-            # current_seq['seq'] += line.strip()
-
-
-def percent_identity(a, b):
-    """Calculate % identity, ignoring gaps in the host sequence
-    """
-    match = 0
-    mismatch = 0
-    for char_a, char_b in zip(list(a), list(b)):
-        if char_a == "-":
-            continue
-        if char_a == char_b:
-            match += 1
-        else:
-            mismatch += 1
-
-    if match + mismatch == 0:
-        return 0.0
-    return 100 * float(match) / (match + mismatch)
-
-
-def get_fasta_ids(sequences):
-    """Returns a list of fasta records in the order they appear
-    """
-    ids = []
-    for seq in SeqIO.parse(sequences, "fasta"):
-        ids.append(seq.id)
-    return ids
-
-
-if __name__ == "__main__":
-    parser = argparse.ArgumentParser(description="parse xmfa file")
-    parser.add_argument("gff3", type=argparse.FileType("r"), help="Multi-GFF3 File")
-    parser.add_argument("fasta", type=argparse.FileType("r"), help="Multi-FA file")
-    parser.add_argument("xmfa", type=argparse.FileType("r"), help="XMFA File")
-    parser.add_argument("output_dir", type=str, help="output directory")
-    args = parser.parse_args()
-
-    fasta_list = get_fasta_ids(args.fasta)
-    lcbs = parse_xmfa(args.xmfa)
-
-    if not os.path.exists(args.output_dir):
-        os.makedirs(args.output_dir)
-
-    output = {"fasta": [], "gff3": [], "xmfa": None}
-
-    processed_xmfa = os.path.join(args.output_dir, "regions.json")
-    with open(processed_xmfa, "w") as handle:
-        json.dump([lcb for lcb in lcbs if len(lcb) > 1], handle, sort_keys=True)
-
-    output["xmfa"] = processed_xmfa
-
-    # Have to seek because we already access args.fasta once in id_tn_dict
-    args.fasta.seek(0)
-    # Load up sequence(s) for GFF3 data
-    seq_dict = SeqIO.to_dict(SeqIO.parse(args.fasta, "fasta"))
-    # Parse GFF3 records
-    gffs = gffParse(args.gff3, base_dict=seq_dict)
-    for record in sorted(gffs, key=lambda rec: fasta_list.index(rec.id)):
-        gff_output = os.path.join(args.output_dir, record.id + ".gff")
-        with open(gff_output, "w") as handle:
-            gffWrite([record], handle)
-        output["gff3"].append(gff_output)
-
-        fa_output = os.path.join(args.output_dir, record.id + ".txt")
-        with open(fa_output, "w") as handle:
-            handle.write(str(record.seq))
-            output["fasta"].append(
-                {"path": fa_output, "length": len(record.seq), "name": record.id}
-            )
-
-    print(json.dumps(output, sort_keys=True))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Mon Jun 05 02:54:26 2023 +0000
@@ -0,0 +1,74 @@
+<macros>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package">progressivemauve</requirement>
+            <!--<requirement type="package" version="2.7">python</requirement>-->
+            <requirement type="package" version="0.6.4">bcbiogff</requirement>
+            <yield/>
+        </requirements>
+    </xml>
+    <token name="@WRAPPER_VERSION@">2.4.0</token>
+    <xml name="citation/progressive_mauve">
+        <citation type="doi">10.1371/journal.pone.0011147</citation>
+    </xml>
+    <xml name="citation/gepard">
+        <citation type="doi">10.1093/bioinformatics/btm039</citation>
+    </xml>
+    <token name="@XMFA_INPUT@">
+		'$xmfa'
+	</token>
+    <xml name="xmfa_input" token_formats="xmfa">
+        <param type="data" format="@FORMATS@" name="xmfa" label="XMFA MSA"/>
+    </xml>
+    <token name="@XMFA_FA_INPUT@">
+		'$sequences'
+	</token>
+    <xml name="xmfa_fa_input">
+        <param type="data" format="fasta" name="sequences" label="Sequences in alignment" help="These sequences should be the SAME DATASET that was used in the progressiveMauve run. Failing that, they should be provided in the same order as in original progressiveMauve run"/>
+    </xml>
+    <xml name="genome_selector">
+        <conditional name="reference_genome">
+            <param name="reference_genome_source" type="select" label="Reference Genome">
+                <option value="history" selected="True">From History</option>
+                <option value="cached">Locally Cached</option>
+            </param>
+            <when value="cached">
+                <param name="fasta_indexes" type="select" label="Source FASTA Sequence">
+                    <options from_data_table="all_fasta"/>
+                </param>
+            </when>
+            <when value="history">
+                <param name="genome_fasta" type="data" format="fasta" label="Source FASTA Sequence"/>
+            </when>
+        </conditional>
+    </xml>
+    <xml name="gff3_input">
+        <param label="GFF3 Annotations" name="gff3_data" type="data" format="gff3"/>
+    </xml>
+    <xml name="input/gff3+fasta">
+        <expand macro="gff3_input"/>
+        <expand macro="genome_selector"/>
+    </xml>
+    <token name="@INPUT_GFF@">
+	    '$gff3_data'
+	</token>
+    <token name="@INPUT_FASTA@">
+    #if str($reference_genome.reference_genome_source) == 'cached':
+            '${reference_genome.fasta_indexes.fields.path}'
+    #else if str($reference_genome.reference_genome_source) == 'history':
+            genomeref.fa
+    #end if
+	</token>
+    <token name="@GENOME_SELECTOR_PRE@">
+    #if $reference_genome.reference_genome_source == 'history':
+            ln -s '$reference_genome.genome_fasta' genomeref.fa;
+    #end if
+	</token>
+    <token name="@GENOME_SELECTOR@">
+    #if str($reference_genome.reference_genome_source) == 'cached':
+            '${reference_genome.fasta_indexes.fields.path}'
+    #else if str($reference_genome.reference_genome_source) == 'history':
+            genomeref.fa
+    #end if
+	</token>
+</macros>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mauve.js	Mon Jun 05 02:54:26 2023 +0000
@@ -0,0 +1,33 @@
+!function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="build/",n(0)}([function(t,n,e){t.exports=e(1)},function(t,n,e){function r(t){return t/P*E}function i(){if(tx=k.event.transform,txf="translate("+tx.x+") scale("+tx.k+",1)",container.attr("transform",txf),1e3==tx.k){var t=tx.x;console.log(t),g()}}function o(){M=container.selectAll("genomes").data(F).enter().append("rect").attr("width",function(t){return t.length}).attr("height",j).attr("x",N.left).attr("y",function(t,n){return N.top+n*q}).attr("id",function(t,n){return t.name}).style("fill","green");$.selectAll("text").data(F).enter().append("text").attr("y",function(t,n){return N.top+n*q+L}).text(function(t){return t.name}).attr("font-family","sans-serif").attr("font-size","20px")}function a(t){colors={"%23FFFF00":"DNA replication/recombination","%23FFA500":"regulation","%2387CEFA":"structural/morphogenesis","%23FF00FF":"lysis","%2371BC78":"packaging",black:"other"},metadata=[t.seqid+" "+t.attributes.num,t.attributes.product,colors[t.attributes.color]],console.log(metadata.join(" | ")),sizes=["20px","15px","15px","15px"],U.length?U.map(function(t){t.text(function(t,n){return metadata[n]})}):(text=X.selectAll("text").data(metadata).enter().append("text").attr("x","100").attr("y",function(t,n){return 20*n+(A-80)/2}).text(function(t){return t}).attr("font-family","sans-serif").attr("font-size",function(t,n){return sizes[n]}),U.push(text))}function u(t,n){for(var e in R[t])if(R[t][e].indexOf(n)>-1)return 10*e}function s(t){for(var n in F)if(t==F[n].name)return n}function c(t,n,e){var i=s(n[0].seqid),o=t+N.left+r(n[e].start),a=D+N.top+j+L/2+u(i,e)+i*q,c=r(n[e].end-n[e].start),l=10;return c<5?"-"==n[e].strand?(o+=c,[[o,a],[o-c,a+l/2],[o,a+l]].join(" ")):[[o,a],[o+c,a+l/2],[o,a+l]].join(" "):"-"==n[e].strand?(o+=c,[[o,a],[o,a+l],[o-c+5,a+l],[o-c,a+l/2],[o-c+5,a]].join(" ")):[[o,a],[o,a+l],[o+c-5,a+l],[o+c,a+l/2],[o+c-5,a]].join(" ")}function l(t){var n=s(t[0].seqid),e=container.selectAll("gene"+n).data(t).enter().append("polygon").attr("points",function(n,e){return c(0,t,e)}).style("fill",function(t,n){return t.attributes.color?t.attributes.color.replace("%23","#"):"black"}).on("click",a);H.push(e)}function f(t,n){w[n].map(function(n){F[n.id-1].x_offset=r(t.start-n.start)})}function h(){M.attr("x",function(t){return N.left+t.x_offset}),I.map(function(t){t.attr("x",function(t,n){return F[t.id-1].x_offset+N.left+r(t.start)})}),B.map(function(t,n){t.attr("points",function(t,e){return p(w[n],e)})}),H.map(function(t,n){t.attr("points",function(t,e){return c(F[z[t.seqid]].x_offset,O[n],e)})})}function p(t,n){var e=function(){var t=1;for(var n in R)Object.keys(R[n]).length-1>t&&(t=Object.keys(R[n]).length-1);return t},r=(F[t[n].id-1].x_offset+N.left+t[n].start/P*E).toString(),i=(N.top+j+L/2+(t[n].id-1)*q).toString(),o=(F[t[n].id-1].x_offset+N.left+t[n].end/P*E).toString(),a=(N.top+j+L/2+(t[n].id-1)*q).toString(),u=o,s=(N.top+j+L/2+(t[n].id-1)*q+2*D+10*e()).toString(),c=(F[t[n+1].id-1].x_offset+N.left+t[n+1].end/P*E).toString(),l=(N.top-L/2+(t[n+1].id-1)*q).toString(),f=(F[t[n+1].id-1].x_offset+N.left+t[n+1].start/P*E).toString(),h=(N.top-L/2+(t[n+1].id-1)*q).toString(),p=r,d=s;return t[n].strand!=t[n+1].strand?[[r,i],[o,a],[u,s],[f,h],[c,l],[p,d]].join(" "):[[r,i],[o,a],[u,s],[c,l],[f,h],[p,d]].join(" ")}function d(t,n,e,i){var o=container.selectAll("lcb"+n).data(t).enter().append("rect").attr("width",function(t,n){return r(t.end-t.start)}).attr("height",j+L).attr("x",function(t,n){return N.left+r(t.start)}).attr("y",function(t,n){return N.top-L/2+(t.id-1)*q}).attr("id",function(t,n){return t.rid}).style("fill","blue").style("opacity",.5).on("click",function(t){f(t,n),h()});I.push(o),sliced_lcb=t.slice(0,t.length-1);var a=container.selectAll("lcb_area"+n).data(sliced_lcb).enter().append("polygon").attr("points",function(n,e){return p(t,e)}).style("fill","#c5c4c4").style("opacity",.65);B.push(a)}function g(){}function v(t){return Math.max.apply(null,t.map(function(t){return t.length}))}function y(t){q=A/t}function m(t){T.each(t,function(t,n,e){F.push({name:n.name,length:r(n.length),x_offset:0,seq:""}),z[n.name]=t})}function _(t){var n={};return t.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(t,e,r,i){n[e]=i}),n}function x(t){last_placed=[null];var n={0:[]};return t.map(function(t,e){for(locs in last_placed)if(null==last_placed[locs]||r(t.start)>1+last_placed[locs])return null==last_placed[locs]&&(last_placed.push(null),n[parseInt(locs)+1]=[]),last_placed[locs]=r(t.end),void n[locs].push(e)}),n}function b(t,n){return t.sort(function(t,e){var r=t[n],i=e[n];return r<i?-1:r>i?1:0})}var w,M,k=e(2),T=e(3),S=e(4),C=e(5),N={top:30,right:30,bottom:30,left:30},E=960-N.left-N.right,A=660-N.top-N.bottom,q=0,D=5,j=10,L=10,P=0,O=[],F=[],z={},R={},H=[],I=[],U=[],B=[],W=k.zoom().scaleExtent([1,1e3]).on("zoom",i),Y=k.select("body").append("svg").attr("width",E+N.left+N.right).attr("height",A+N.top+N.bottom).call(W),$=(Y.append("rect").attr("width",E+N.left+N.right).attr("height",A+N.top+N.bottom).style("fill","white").style("opacity",.4).style("pointer-events","all"),k.select("body").append("svg").attr("width",100).attr("height",A+N.top+N.bottom)),X=k.select("body").append("svg").attr("width",500).attr("height",A+N.top+N.bottom);container=Y.append("g");var V=_(location.search).url;V||(V="data.json"),T.getJSON(V,function(t){P=v(t.fasta),y(t.fasta.length),m(t.fasta),o();var n=["#a6cee3","#b2df8a","#fb9a99","#fdbf6f","#cab2d6","#ffff99"];n=n.map(function(t){return C(t)}),T.getJSON(t.xmfa,function(e){promises=[];var r=t.gff3.map(function(t){var n=T.get(t,function(t){var n=S.process(t,["CDS"]);O.push(n),R[s(n[0].seqid)]=x(b(n,"start"))});promises.push(n)});promises.push(r),Promise.all(promises).then(function(t){w=e;var r=e.map(function(t,e){var r=n[e%n.length];d(t,e,r.rgb().string(),r.darken(.5).rgb().string())});promises.push(r),Promise.all(promises).then(function(t){for(var n in O)l(O[n])})})}),t.fasta.map(function(t){T.get(t.path,function(n){F[z[t.name]].seq=n})})})},function(t,n,e){!function(t,e){e(n)}(this,function(t){"use strict";function n(t){return function(n,e){return Mc(t(n),e)}}function e(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rc?i*=10:o>=Hc?i*=5:o>=Ic&&(i*=2),n<t?-i:i}function r(t){return t.length}function i(){}function o(t,n){var e=new i;if(t instanceof i)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==n)for(;++o<a;)e.set(o,t[o]);else for(;++o<a;)e.set(n(r=t[o],o,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function a(){return{}}function u(t,n,e){t[n]=e}function s(){return o()}function c(t,n,e){t.set(n,e)}function l(){}function f(t,n){var e=new l;if(t instanceof l)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}function h(t){return+t}function p(t){return t*t}function d(t){return t*(2-t)}function g(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function v(t){return t*t*t}function y(t){return--t*t*t+1}function m(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function _(t){return 1-Math.cos(t*Ml)}function x(t){return Math.sin(t*Ml)}function b(t){return(1-Math.cos(wl*t))/2}function w(t){return Math.pow(2,10*t-10)}function M(t){return 1-Math.pow(2,-10*t)}function k(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function T(t){return 1-Math.sqrt(1-t*t)}function S(t){return Math.sqrt(1- --t*t)}function C(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function N(t){return 1-E(1-t)}function E(t){return(t=+t)<kl?jl*t*t:t<Sl?jl*(t-=Tl)*t+Cl:t<El?jl*(t-=Nl)*t+Al:jl*(t-=ql)*t+Dl}function A(t){return((t*=2)<=1?1-E(1-t):E(t-1)+1)/2}function q(t,n){return t[0]-n[0]||t[1]-n[1]}function D(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&$l(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function j(){this._x0=this._y0=this._x1=this._y1=null,this._=[]}function L(){return new j}function P(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,s,c,l,f,h,p=t._root,d={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=p,!(p=p[f=l<<1|c]))return i[f]=d,t;if(u=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===u&&e===s)return d.next=p,i?i[f]=d:t._root=d,t;do i=i?i[f]=new Array(4):t._root=new Array(4),(c=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a;while((f=l<<1|c)===(h=(s>=a)<<1|u>=o));return i[h]=p,i[f]=d,t}function O(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),s=1/0,c=1/0,l=-(1/0),f=-(1/0);for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(a[e]=r,u[e]=i,r<s&&(s=r),r>l&&(l=r),i<c&&(c=i),i>f&&(f=i));for(l<s&&(s=this._x0,l=this._x1),f<c&&(c=this._y0,f=this._y1),this.cover(s,c).cover(l,f),e=0;e<o;++e)P(this,a[e],u[e],t[e]);return this}function F(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function z(t){return t[0]}function R(t){return t[1]}function H(t,n,e){var r=new I(null==n?z:n,null==e?R:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function I(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function U(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function B(t){if(!(t>=1))throw new Error;this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function W(t){if(!t._start)try{Y(t)}catch(n){if(t._tasks[t._ended+t._active-1])X(t,n);else if(!t._data)throw n}}function Y(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=$(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||vf)}}function $(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?X(t,e):(t._data[n]=r,t._waiting?W(t):V(t))))}}function X(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(t){}t._active=NaN,V(t)}function V(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function G(t){return new B(arguments.length?+t:1/0)}function J(t){return t.innerRadius}function Z(t){return t.outerRadius}function Q(t){return t.startAngle}function K(t){return t.endAngle}function tt(t){return t&&t.padAngle}function nt(t){return t>=1?xf:t<=-1?-xf:Math.asin(t)}function et(t,n,e,r,i,o,a,u){var s=e-t,c=r-n,l=a-i,f=u-o,h=(l*(n-o)-f*(t-i))/(f*s-l*c);return[t+h*s,n+h*c]}function rt(t,n,e,r,i,o,a){var u=t-e,s=n-r,c=(a?o:-o)/Math.sqrt(u*u+s*s),l=c*s,f=-c*u,h=t+l,p=n+f,d=e+l,g=r+f,v=(h+d)/2,y=(p+g)/2,m=d-h,_=g-p,x=m*m+_*_,b=i-o,w=h*g-d*p,M=(_<0?-1:1)*Math.sqrt(Math.max(0,b*b*x-w*w)),k=(w*_-m*M)/x,T=(-w*m-_*M)/x,S=(w*_+m*M)/x,C=(-w*m+_*M)/x,N=k-v,E=T-y,A=S-v,q=C-y;return N*N+E*E>A*A+q*q&&(k=S,T=C),{cx:k,cy:T,x01:-l,y01:-f,x11:k*(i/b-1),y11:T*(i/b-1)}}function it(t){this._context=t}function ot(t){return t[0]}function at(t){return t[1]}function ut(t){this._curve=t}function st(t){function n(n){return new ut(t(n))}return n._curve=t,n}function ct(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(st(t)):n()._curve},t}function lt(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t){this._context=t}function dt(t,n){this._basis=new ft(t),this._beta=n}function gt(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function vt(t,n){this._context=t,this._k=(1-n)/6}function yt(t,n){this._context=t,this._k=(1-n)/6}function mt(t,n){this._context=t,this._k=(1-n)/6}function _t(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>mf){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>mf){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function xt(t,n){this._context=t,this._alpha=n}function bt(t,n){this._context=t,this._alpha=n}function wt(t,n){this._context=t,this._alpha=n}function Mt(t){this._context=t}function kt(t){return t<0?-1:1}function Tt(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(kt(o)+kt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function St(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Ct(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function Nt(t){this._context=t}function Et(t){this._context=new At(t)}function At(t){this._context=t}function qt(t){return new Nt(t)}function Dt(t){return new Et(t)}function jt(t){this._context=t}function Lt(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Pt(t,n){this._context=t,this._t=n}function Ot(t){return new Pt(t,0)}function Ft(t){return new Pt(t,1)}function zt(t,n){return t[n]}function Rt(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Ht(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function It(){}function Ut(t){var n;return t=(t+"").trim().toLowerCase(),(n=Sh.exec(t))?(n=parseInt(n[1],16),new Xt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Ch.exec(t))?Bt(parseInt(n[1],16)):(n=Nh.exec(t))?new Xt(n[1],n[2],n[3],1):(n=Eh.exec(t))?new Xt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ah.exec(t))?Wt(n[1],n[2],n[3],n[4]):(n=qh.exec(t))?Wt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Dh.exec(t))?Vt(n[1],n[2]/100,n[3]/100,1):(n=jh.exec(t))?Vt(n[1],n[2]/100,n[3]/100,n[4]):Lh.hasOwnProperty(t)?Bt(Lh[t]):"transparent"===t?new Xt(NaN,NaN,NaN,0):null}function Bt(t){return new Xt(t>>16&255,t>>8&255,255&t,1)}function Wt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Xt(t,n,e,r)}function Yt(t){return t instanceof It||(t=Ut(t)),t?(t=t.rgb(),new Xt(t.r,t.g,t.b,t.opacity)):new Xt}function $t(t,n,e,r){return 1===arguments.length?Yt(t):new Xt(t,n,e,null==r?1:r)}function Xt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Vt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Zt(t,n,e,r)}function Gt(t){if(t instanceof Zt)return new Zt(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=Ut(t)),!t)return new Zt;if(t instanceof Zt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new Zt(a,u,s,t.opacity)}function Jt(t,n,e,r){return 1===arguments.length?Gt(t):new Zt(t,n,e,null==r?1:r)}function Zt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Qt(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Kt(t){if(t instanceof nn)return new nn(t.l,t.a,t.b,t.opacity);if(t instanceof cn){var n=t.h*Ph;return new nn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Xt||(t=Yt(t));var e=an(t.r),r=an(t.g),i=an(t.b),o=en((.4124564*e+.3575761*r+.1804375*i)/zh),a=en((.2126729*e+.7151522*r+.072175*i)/Rh),u=en((.0193339*e+.119192*r+.9503041*i)/Hh);return new nn(116*a-16,500*(o-a),200*(a-u),t.opacity)}function tn(t,n,e,r){return 1===arguments.length?Kt(t):new nn(t,n,e,null==r?1:r)}function nn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function en(t){return t>Wh?Math.pow(t,1/3):t/Bh+Ih}function rn(t){return t>Uh?t*t*t:Bh*(t-Ih)}function on(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function an(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function un(t){if(t instanceof cn)return new cn(t.h,t.c,t.l,t.opacity);t instanceof nn||(t=Kt(t));var n=Math.atan2(t.b,t.a)*Oh;return new cn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function sn(t,n,e,r){return 1===arguments.length?un(t):new cn(t,n,e,null==r?1:r)}function cn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function ln(t){if(t instanceof hn)return new hn(t.h,t.s,t.l,t.opacity);t instanceof Xt||(t=Yt(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Qh*r+Jh*n-Zh*e)/(Qh+Jh-Zh),o=r-i,a=(Gh*(e-i)-Xh*o)/Vh,u=Math.sqrt(a*a+o*o)/(Gh*i*(1-i)),s=u?Math.atan2(a,o)*Oh-120:NaN;return new hn(s<0?s+360:s,u,i,t.opacity)}function fn(t,n,e,r){return 1===arguments.length?ln(t):new hn(t,n,e,null==r?1:r)}function hn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function pn(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function dn(t,n){return function(e){return t+e*n}}function gn(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function vn(t,n){var e=n-t;return e?dn(t,e>180||e<-180?e-360*Math.round(e/360):e):op(isNaN(t)?n:t)}function yn(t){return 1===(t=+t)?mn:function(n,e){return e-n?gn(n,e,t):op(isNaN(n)?e:n)}}function mn(t,n){var e=n-t;return e?dn(t,e):op(isNaN(t)?n:t)}function _n(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=$t(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}function xn(t){return function(){return t}}function bn(t){return function(n){return t(n)+""}}function wn(t){return"none"===t?_p:(Kh||(Kh=document.createElement("DIV"),tp=document.documentElement,np=document.defaultView),Kh.style.transform=t,t=np.getComputedStyle(tp.appendChild(Kh),null).getPropertyValue("transform"),tp.removeChild(Kh),t=t.slice(7,-1).split(","),xp(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Mn(t){return null==t?_p:(ep||(ep=document.createElementNS("http://www.w3.org/2000/svg","g")),ep.setAttribute("transform",t),(t=ep.transform.baseVal.consolidate())?(t=t.matrix,xp(t.a,t.b,t.c,t.d,t.e,t.f)):_p)}function kn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:fp(t,i)},{i:s-2,x:fp(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:fp(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:fp(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:fp(t,e)},{i:u-2,x:fp(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Tn(t){return((t=Math.exp(t))+1/t)/2}function Sn(t){return((t=Math.exp(t))-1/t)/2}function Cn(t){return((t=Math.exp(2*t))-1)/(t+1)}function Nn(t){return function(n,e){var r=t((n=Jt(n)).h,(e=Jt(e)).h),i=mn(n.s,e.s),o=mn(n.l,e.l),a=mn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}function En(t,n){var e=mn((t=tn(t)).l,(n=tn(n)).l),r=mn(t.a,n.a),i=mn(t.b,n.b),o=mn(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function An(t){return function(n,e){var r=t((n=sn(n)).h,(e=sn(e)).h),i=mn(n.c,e.c),o=mn(n.l,e.l),a=mn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}function qn(t){return function n(e){function r(n,r){var i=t((n=fn(n)).h,(r=fn(r)).h),o=mn(n.s,r.s),a=mn(n.l,r.l),u=mn(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}function Dn(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new jn(r)}function jn(t){this._=t}function Ln(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Pn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function On(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Pp,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Fn(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function zn(t,n){var e=Fn(t);return function(r,i){return n(e(r),i,t)}}function Rn(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function Hn(t){return function(n,e){t(null==n?e:null)}}function In(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Un(t,n){return function(e){return t(e.responseText,n)}}function Bn(){return cd||(hd(Wn),cd=fd.now()+ld)}function Wn(){cd=0}function Yn(){this._call=this._time=this._next=null}function $n(t,n,e){var r=new Yn;return r.restart(t,n,e),r}function Xn(){Bn(),++id;for(var t,n=Op;n;)(t=cd-n._time)>=0&&n._call.call(null,t),n=n._next;--id}function Vn(){cd=(sd=fd.now())+ld,id=od=0;try{Xn()}finally{id=0,Jn(),cd=0}}function Gn(){var t=fd.now(),n=t-sd;n>ud&&(ld-=n,sd=t)}function Jn(){for(var t,n,e=Op,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Op=n);Fp=t,Zn(r)}function Zn(t){if(!id){od&&(od=clearTimeout(od));var n=t-cd;n>24?(t<1/0&&(od=setTimeout(Vn,n)),ad&&(ad=clearInterval(ad))):(ad||(ad=setInterval(Gn,ud)),id=1,hd(Vn))}}function Qn(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do a.push(new Date(+e));while(n(e,o),t(e),e<r);return a},i.filter=function(e){return Qn(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return gd.setTime(+n),vd.setTime(+r),t(gd),t(vd),Math.floor(e(gd,vd))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}function Kn(t){return Qn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xd)/Md})}function te(t){return Qn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/Md})}function ne(t){if(!(n=Ng.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",a=!!n[5],u=n[6]&&+n[6],s=!!n[7],c=n[8]&&+n[8].slice(1),l=n[9]||"";"n"===l?(s=!0,l="g"):Cg[l]||(l=""),(a||"0"===e&&"="===r)&&(a=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=s,this.precision=c,this.type=l}function ee(t){return t}function re(n){return Ag=Dg(n),t.format=Ag.format,t.formatPrefix=Ag.formatPrefix,Ag}function ie(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function oe(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ae(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function ue(t){function n(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=Fg[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function e(t,n){return function(e){var i=ae(1900),o=r(i,t,e+="",0);if(o!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var a="Z"in i?oe(ae(i.y)).getUTCDay():n(ae(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,oe(i)):n(i)}}function r(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(i=n.charCodeAt(a++),37===i){if(i=n.charAt(a++),o=U[i in Fg?n.charAt(a++):i],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=A.exec(n.slice(e));return r?(t.p=q[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=P[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=D.exec(n.slice(e));return r?(t.w=j[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=z.exec(n.slice(e));return r?(t.m=R[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=O.exec(n.slice(e));return r?(t.m=F[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){return r(t,w,n,e)}function l(t,n,e){return r(t,M,n,e)}function f(t,n,e){return r(t,k,n,e)}function h(t){return C[t.getDay()]}function p(t){return S[t.getDay()]}function d(t){return E[t.getMonth()]}function g(t){return N[t.getMonth()]}function v(t){return T[+(t.getHours()>=12)]}function y(t){return C[t.getUTCDay()]}function m(t){return S[t.getUTCDay()]}function _(t){return E[t.getUTCMonth()]}function x(t){return N[t.getUTCMonth()]}function b(t){return T[+(t.getUTCHours()>=12)]}var w=t.dateTime,M=t.date,k=t.time,T=t.periods,S=t.days,C=t.shortDays,N=t.months,E=t.shortMonths,A=le(T),q=fe(T),D=le(S),j=fe(S),L=le(C),P=fe(C),O=le(N),F=fe(N),z=le(E),R=fe(E),H={a:h,A:p,b:d,B:g,c:null,d:Se,e:Se,H:Ce,I:Ne,j:Ee,L:Ae,m:qe,M:De,p:v,S:je,U:Le,w:Pe,W:Oe,x:null,X:null,y:Fe,Y:ze,Z:Re,"%":tr},I={a:y,A:m,b:_,B:x,c:null,d:He,e:He,H:Ie,I:Ue,j:Be,L:We,m:Ye,M:$e,p:b,S:Xe,U:Ve,w:Ge,W:Je,x:null,X:null,y:Ze,Y:Qe,Z:Ke,"%":tr},U={a:o,A:a,b:u,B:s,c:c,d:_e,e:_e,H:be,I:be,j:xe,L:ke,m:me,M:we,p:i,S:Me,U:pe,w:he,W:de,x:l,X:f,y:ve,Y:ge,Z:ye,"%":Te};return H.x=n(M,H),H.X=n(k,H),H.c=n(w,H),I.x=n(M,I),I.X=n(k,I),I.c=n(w,I),{format:function(t){var e=n(t+="",H);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",ie);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",I);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,oe);return n.toString=function(){return t},n}}}function se(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function ce(t){return t.replace(Hg,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function fe(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function he(t,n,e){var r=zg.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function pe(t,n,e){var r=zg.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function de(t,n,e){var r=zg.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function ge(t,n,e){var r=zg.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ve(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ye(t,n,e){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function me(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function _e(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function xe(t,n,e){var r=zg.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function be(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function we(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Me(t,n,e){var r=zg.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ke(t,n,e){var r=zg.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Te(t,n,e){var r=Rg.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Se(t,n){return se(t.getDate(),n,2)}function Ce(t,n){return se(t.getHours(),n,2)}function Ne(t,n){return se(t.getHours()%12||12,n,2)}function Ee(t,n){return se(1+Ad.count(Vd(t),t),n,3)}function Ae(t,n){return se(t.getMilliseconds(),n,3)}function qe(t,n){return se(t.getMonth()+1,n,2)}function De(t,n){return se(t.getMinutes(),n,2)}function je(t,n){return se(t.getSeconds(),n,2)}function Le(t,n){return se(Dd.count(Vd(t),t),n,2)}function Pe(t){return t.getDay()}function Oe(t,n){return se(jd.count(Vd(t),t),n,2)}function Fe(t,n){return se(t.getFullYear()%100,n,2)}function ze(t,n){return se(t.getFullYear()%1e4,n,4)}function Re(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+se(n/60|0,"0",2)+se(n%60,"0",2)}function He(t,n){return se(t.getUTCDate(),n,2)}function Ie(t,n){return se(t.getUTCHours(),n,2)}function Ue(t,n){return se(t.getUTCHours()%12||12,n,2)}function Be(t,n){return se(1+tg.count(mg(t),t),n,3)}function We(t,n){return se(t.getUTCMilliseconds(),n,3)}function Ye(t,n){return se(t.getUTCMonth()+1,n,2)}function $e(t,n){return se(t.getUTCMinutes(),n,2)}function Xe(t,n){return se(t.getUTCSeconds(),n,2)}function Ve(t,n){return se(eg.count(mg(t),t),n,2)}function Ge(t){return t.getUTCDay()}function Je(t,n){return se(rg.count(mg(t),t),n,2)}function Ze(t,n){return se(t.getUTCFullYear()%100,n,2)}function Qe(t,n){return se(t.getUTCFullYear()%1e4,n,4)}function Ke(){return"+0000"}function tr(){return"%"}function nr(n){return jg=ue(n),t.timeFormat=jg.format,t.timeParse=jg.parse,t.utcFormat=jg.utcFormat,t.utcParse=jg.utcParse,jg}function er(t){return t.toISOString()}function rr(t){var n=new Date(t);return isNaN(n)?null:n}function ir(t){function n(n){var o=n+"",a=e.get(o);if(!a){if(i!==Xg)return i;e.set(o,a=r.push(n))}return t[(a-1)%t.length]}var e=o(),r=[],i=Xg;return t=null==t?[]:$g.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=o();for(var i,a,u=-1,s=t.length;++u<s;)e.has(a=(i=t[u])+"")||e.set(a,r.push(i));return n},n.range=function(e){return arguments.length?(t=$g.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return ir().domain(r).range(t).unknown(i)},n}function or(){function t(){var t=i().length,r=a[1]<a[0],f=a[r-0],h=a[1-r];n=(h-f)/Math.max(1,t-s+2*c),u&&(n=Math.floor(n)),f+=(h-f-n*(t-s))*l,e=n*(1-s),u&&(f=Math.round(f),e=Math.round(e));var p=zc(t).map(function(t){return f+n*t});return o(r?p.reverse():p)}var n,e,r=ir().unknown(void 0),i=r.domain,o=r.range,a=[0,1],u=!1,s=0,c=0,l=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(a=[+n[0],+n[1]],t()):a.slice()},r.rangeRound=function(n){return a=[+n[0],+n[1]],u=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(u=!!n,t()):u},r.padding=function(n){return arguments.length?(s=c=Math.max(0,Math.min(1,n)),t()):s},r.paddingInner=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.paddingOuter=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),
+t()):c},r.align=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),t()):l},r.copy=function(){return or().domain(i()).range(a).round(u).paddingInner(s).paddingOuter(c).align(l)},t()}function ar(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ar(n())},t}function ur(){return ar(or().paddingInner(1))}function sr(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Vg(n)}function cr(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function lr(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function fr(t,n,e,r){var i=t[0],o=t[1],a=n[0],u=n[1];return o<i?(i=e(o,i),a=r(u,a)):(i=e(i,o),a=r(a,u)),function(t){return a(i(t))}}function hr(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),a=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)o[u]=e(t[u],t[u+1]),a[u]=r(n[u],n[u+1]);return function(n){var e=Sc(t,n,1,i)-1;return a[e](o[e](n))}}function pr(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function dr(t,n){function e(){return i=Math.min(u.length,s.length)>2?hr:fr,o=a=null,r}function r(n){return(o||(o=i(u,s,l?cr(t):t,c)))(+n)}var i,o,a,u=Jg,s=Jg,c=vp,l=!1;return r.invert=function(t){return(a||(a=i(s,u,sr,l?lr(n):n)))(+t)},r.domain=function(t){return arguments.length?(u=Yg.call(t,Gg),e()):u.slice()},r.range=function(t){return arguments.length?(s=$g.call(t),e()):s.slice()},r.rangeRound=function(t){return s=$g.call(t),c=yp,e()},r.clamp=function(t){return arguments.length?(l=!!t,e()):l},r.interpolate=function(t){return arguments.length?(c=t,e()):c},e()}function gr(t){var n=t.domain;return t.ticks=function(t){var e=n();return Uc(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Zg(n(),t,e)},t.nice=function(r){var i=n(),o=i.length-1,a=null==r?10:r,u=i[0],s=i[o],c=e(u,s,a);return c&&(c=e(Math.floor(u/c)*c,Math.ceil(s/c)*c,a),i[0]=Math.floor(u/c)*c,i[o]=Math.ceil(s/c)*c,n(i)),t},t}function vr(){var t=dr(sr,fp);return t.copy=function(){return pr(t,vr())},gr(t)}function yr(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=Yg.call(e,Gg),t):n.slice()},t.copy=function(){return yr().domain(n)},gr(t)}function mr(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:Vg(n)}function _r(t,n){return t<0?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function xr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function br(t){return 10===t?xr:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function wr(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Mr(t){return function(n){return-t(-n)}}function kr(){function n(){return o=wr(i),a=br(i),r()[0]<0&&(o=Mr(o),a=Mr(a)),e}var e=dr(mr,_r).domain([1,10]),r=e.domain,i=10,o=wr(10),a=br(10);return e.base=function(t){return arguments.length?(i=+t,n()):i},e.domain=function(t){return arguments.length?(r(t),n()):r()},e.ticks=function(t){var n,e=r(),u=e[0],s=e[e.length-1];(n=s<u)&&(h=u,u=s,s=h);var c,l,f,h=o(u),p=o(s),d=null==t?10:+t,g=[];if(!(i%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,u>0){for(;h<p;++h)for(l=1,c=a(h);l<i;++l)if(f=c*l,!(f<u)){if(f>s)break;g.push(f)}}else for(;h<p;++h)for(l=i-1,c=a(h);l>=1;--l)if(f=c*l,!(f<u)){if(f>s)break;g.push(f)}}else g=Uc(h,p,Math.min(p-h,d)).map(a);return n?g.reverse():g},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var u=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/a(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=u?r(t):""}},e.nice=function(){return r(Qg(r(),{floor:function(t){return a(Math.floor(o(t)))},ceil:function(t){return a(Math.ceil(o(t)))}}))},e.copy=function(){return pr(e,kr().base(i))},e}function Tr(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function Sr(){function t(t,n){return(n=Tr(n,e)-(t=Tr(t,e)))?function(r){return(Tr(r,e)-t)/n}:Vg(n)}function n(t,n){return n=Tr(n,e)-(t=Tr(t,e)),function(r){return Tr(t+n*r,1/e)}}var e=1,r=dr(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return pr(r,Sr().exponent(e))},gr(r)}function Cr(){return Sr().exponent(.5)}function Nr(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=Yc(e,t/o);return n}function n(t){if(!isNaN(t=+t))return r[Sc(i,t)]}var e=[],r=[],i=[];return n.invertExtent=function(t){var n=r.indexOf(t);return n<0?[NaN,NaN]:[n>0?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]},n.domain=function(n){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=n.length;i<o;++i)r=n[i],null==r||isNaN(r=+r)||e.push(r);return e.sort(Mc),t()},n.range=function(n){return arguments.length?(r=$g.call(n),t()):r.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return Nr().domain(e).range(r)},n}function Er(){function t(t){if(t<=t)return a[Sc(o,t,0,i)]}function n(){var n=-1;for(o=new Array(i);++n<i;)o[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,o=[.5],a=[0,1];return t.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n()):[e,r]},t.range=function(t){return arguments.length?(i=(a=$g.call(t)).length-1,n()):a.slice()},t.invertExtent=function(t){var n=a.indexOf(t);return n<0?[NaN,NaN]:n<1?[e,o[0]]:n>=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return Er().domain([e,r]).range(a)},gr(t)}function Ar(){function t(t){if(t<=t)return e[Sc(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=$g.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=$g.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return Ar().domain(n).range(e)},t}function qr(t){return new Date(t)}function Dr(t){return t instanceof Date?+t:+new Date(+t)}function jr(t,n,r,i,o,a,u,s,c){function l(e){return(u(e)<e?g:a(e)<e?v:o(e)<e?y:i(e)<e?m:n(e)<e?r(e)<e?_:x:t(e)<e?b:w)(e)}function f(n,r,i,o){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(i-r)/n,u=kc(function(t){return t[2]}).right(M,a);u===M.length?(o=e(r/ov,i/ov,n),n=t):u?(u=M[a/M[u-1][2]<M[u][2]/a?u-1:u],o=u[1],n=u[0]):(o=e(r,i,n),n=s)}return null==o?n:n.every(o)}var h=dr(sr,fp),p=h.invert,d=h.domain,g=c(".%L"),v=c(":%S"),y=c("%I:%M"),m=c("%I %p"),_=c("%a %d"),x=c("%b %d"),b=c("%B"),w=c("%Y"),M=[[u,1,Kg],[u,5,5*Kg],[u,15,15*Kg],[u,30,30*Kg],[a,1,tv],[a,5,5*tv],[a,15,15*tv],[a,30,30*tv],[o,1,nv],[o,3,3*nv],[o,6,6*nv],[o,12,12*nv],[i,1,ev],[i,2,2*ev],[r,1,rv],[n,1,iv],[n,3,3*iv],[t,1,ov]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(Yg.call(t,Dr)):d().map(qr)},h.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(e=i,i=o,o=e),e=f(t,i,o,n),e=e?e.range(i,o+1):[],a?e.reverse():e},h.tickFormat=function(t,n){return null==n?l:c(n)},h.nice=function(t,n){var e=d();return(t=f(t,e[0],e[e.length-1],n))?d(Qg(e,t)):h},h.copy=function(){return pr(h,jr(t,n,r,i,o,a,u,s,c))},h}function Lr(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Pr(t){function n(n){var o=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,o)):o)}var e=0,r=1,i=!1;return n.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n):[e,r]},n.clamp=function(t){return arguments.length?(i=!!t,n):i},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Pr(t).domain([e,r]).clamp(i)},gr(n)}function Or(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===wv&&n.documentElement.namespaceURI===wv?n.createElement(t):n.createElementNS(e,t)}}function Fr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function zr(){return new Rr}function Rr(){this._="@"+(++Sv).toString(36)}function Hr(t,n,e){return t=Ir(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Ir(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function Ur(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function Br(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Wr(t,n,e){var r=qv.hasOwnProperty(t.type)?Hr:Ir;return function(i,o,a){var u,s=this.__on,c=r(n,o,a);if(s)for(var l=0,f=s.length;l<f;++l)if((u=s[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(u):this.__on=[u]}}function Yr(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}}function $r(){}function Xr(){return[]}function Vr(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Gr(t,n,e,r,i,o){for(var a,u=0,s=n.length,c=o.length;u<c;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new Vr(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function Jr(t,n,e,r,i,o,a){var u,s,c,l={},f=n.length,h=o.length,p=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(p[u]=c=Yv+a.call(s,s.__data__,u,n),c in l?i[u]=s:l[c]=s);for(u=0;u<h;++u)c=Yv+a.call(t,o[u],u,o),(s=l[c])?(r[u]=s,s.__data__=o[u],l[c]=null):e[u]=new Vr(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&l[p[u]]===s&&(i[u]=s)}function Zr(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Qr(t){return function(){this.removeAttribute(t)}}function Kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ti(t,n){return function(){this.setAttribute(t,n)}}function ni(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ei(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function ri(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function ii(t){return function(){this.style.removeProperty(t)}}function oi(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ai(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function ui(t){return function(){delete this[t]}}function si(t,n){return function(){this[t]=n}}function ci(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function li(t){return t.trim().split(/^|\s+/)}function fi(t){return t.classList||new hi(t)}function hi(t){this._node=t,this._names=li(t.getAttribute("class")||"")}function pi(t,n){for(var e=fi(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function di(t,n){for(var e=fi(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function gi(t){return function(){pi(this,t)}}function vi(t){return function(){di(this,t)}}function yi(t,n){return function(){(n.apply(this,arguments)?pi:di)(this,t)}}function mi(){this.textContent=""}function _i(t){return function(){this.textContent=t}}function xi(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function bi(){this.innerHTML=""}function wi(t){return function(){this.innerHTML=t}}function Mi(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ki(){this.nextSibling&&this.parentNode.appendChild(this)}function Ti(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Si(){return null}function Ci(){var t=this.parentNode;t&&t.removeChild(this)}function Ni(t,n,e){var r=iy(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ei(t,n){return function(){return Ni(this,t,n)}}function Ai(t,n){return function(){return Ni(this,t,n.apply(this,arguments))}}function qi(t,n){this._groups=t,this._parents=n}function Di(){return new qi([[document.documentElement]],yy)}function ji(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>ky)throw new Error("too late");return e}function Li(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Sy)throw new Error("too late");return e}function Pi(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Oi(t,n,e){function r(t){e.state=Ty,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var c,l,f,h;if(e.state!==Ty)return a();for(c in s)if(h=s[c],h.name===e.name){if(h.state===Cy)return pd(i);h.state===Ny?(h.state=Ay,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[c]):+c<n&&(h.state=Ay,h.timer.stop(),delete s[c])}if(pd(function(){e.state===Cy&&(e.state=Ny,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=Sy,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Sy){for(e.state=Cy,u=new Array(f=e.tween.length),c=0,l=-1;c<f;++c)(h=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(u[++l]=h);u.length=l+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=Ey,1),i=-1,o=u.length;++i<o;)u[i].call(null,r);e.state===Ey&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){e.state=Ay,e.timer.stop(),delete s[n];for(var r in s)return;delete t.__transition}var u,s=t.__transition;s[n]=e,e.timer=$n(r,0,e.time)}function Fi(t,n){var e,r;return function(){var i=Li(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function zi(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Li(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,c=i.length;s<c;++s)if(i[s].name===n){i[s]=u;break}s===c&&i.push(u)}o.tween=i}}function Ri(t,n,e){var r=t._id;return t.each(function(){var t=Li(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Pi(t,r).value[n]}}function Hi(t){return function(){this.removeAttribute(t)}}function Ii(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ui(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Bi(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Wi(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function Yi(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function $i(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function Xi(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function Vi(t,n){return function(){ji(this,t).delay=+n.apply(this,arguments)}}function Gi(t,n){return n=+n,function(){ji(this,t).delay=n}}function Ji(t,n){return function(){Li(this,t).duration=+n.apply(this,arguments)}}function Zi(t,n){return n=+n,function(){Li(this,t).duration=n}}function Qi(t,n){if("function"!=typeof n)throw new Error;return function(){Li(this,t).ease=n}}function Ki(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function to(t,n,e){var r,i,o=Ki(n)?ji:Li;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function no(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function eo(t,n){var e,r,i;return function(){var o=iy(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function ro(t){return function(){this.style.removeProperty(t)}}function io(t,n,e){var r,i;return function(){var o=iy(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function oo(t,n,e){var r,i,o;return function(){var a=iy(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function ao(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function uo(t){return function(){this.textContent=t}}function so(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function co(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function lo(t){return Di().transition(t)}function fo(){return++Ky}function ho(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return nm.time=Bn(),nm;return e}function po(t,n,e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}function go(t,n,e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}function vo(t){var n=t.bandwidth()/2;return t.round()&&(n=Math.round(n)),function(e){return t(e)+n}}function yo(){return!this.__axis}function mo(t,n){function e(e){var c,l=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,f=null==o?n.tickFormat?n.tickFormat.apply(n,r):am:o,h=Math.max(a,0)+s,p=t===um||t===cm?po:go,d=n.range(),g=d[0]+.5,v=d[d.length-1]+.5,y=(n.bandwidth?vo:am)(n.copy()),m=e.selection?e.selection():e,_=m.selectAll(".domain").data([null]),x=m.selectAll(".tick").data(l,n).order(),b=x.exit(),w=x.enter().append("g").attr("class","tick"),M=x.select("line"),k=x.select("text"),T=t===um||t===lm?-1:1,S=t===lm||t===sm?(c="x","y"):(c="y","x");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),x=x.merge(w),M=M.merge(w.append("line").attr("stroke","#000").attr(c+"2",T*a).attr(S+"1",.5).attr(S+"2",.5)),k=k.merge(w.append("text").attr("fill","#000").attr(c,T*h).attr(S,.5).attr("dy",t===um?"0em":t===cm?"0.71em":"0.32em")),e!==m&&(_=_.transition(e),x=x.transition(e),M=M.transition(e),k=k.transition(e),b=b.transition(e).attr("opacity",fm).attr("transform",function(t){return p(y,this.parentNode.__axis||y,t)}),w.attr("opacity",fm).attr("transform",function(t){return p(this.parentNode.__axis||y,y,t)})),b.remove(),_.attr("d",t===lm||t==sm?"M"+T*u+","+g+"H0.5V"+v+"H"+T*u:"M"+g+","+T*u+"V0.5H"+v+"V"+T*u),x.attr("opacity",1).attr("transform",function(t){return p(y,y,t)}),M.attr(c+"2",T*a),k.attr(c,T*h).text(f),m.filter(yo).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===sm?"start":t===lm?"end":"middle"),m.each(function(){this.__axis=y})}var r=[],i=null,o=null,a=6,u=6,s=3;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=om.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:om.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:om.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(o=t,e):o},e.tickSize=function(t){return arguments.length?(a=u=+t,e):a},e.tickSizeInner=function(t){return arguments.length?(a=+t,e):a},e.tickSizeOuter=function(t){return arguments.length?(u=+t,e):u},e.tickPadding=function(t){return arguments.length?(s=+t,e):s},e}function _o(t){return mo(um,t)}function xo(t){return mo(sm,t)}function bo(t){return mo(cm,t)}function wo(t){return mo(lm,t)}function Mo(t,n){return t.parent===n.parent?1:2}function ko(t){return t.reduce(To,0)/t.length}function To(t,n){return t+n.x}function So(t){return 1+t.reduce(Co,0)}function Co(t,n){return Math.max(t,n.y)}function No(t){for(var n;n=t.children;)t=n[0];return t}function Eo(t){for(var n;n=t.children;)t=n[n.length-1];return t}function Ao(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function qo(t,n){var e,r,i,o,a,u=new Oo(t),s=+t.value&&(u.value=t.value),c=[u];for(null==n&&(n=jo);e=c.pop();)if(s&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)c.push(r=e.children[o]=new Oo(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Po)}function Do(){return qo(this).eachBefore(Lo)}function jo(t){return t.children}function Lo(t){t.data=t.data.data}function Po(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function Oo(t){this.data=t,this.depth=this.height=0,this.parent=null}function Fo(t){this._=t,this.next=null}function zo(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r-n.r;return i*i+1e-6>e*e+r*r}function Ro(t,n){var e,r,i,o=null,a=t.head;switch(n.length){case 1:e=Ho(n[0]);break;case 2:e=Io(n[0],n[1]);break;case 3:e=Uo(n[0],n[1],n[2])}for(;a;)i=a._,r=a.next,e&&zo(e,i)?o=a:(o?(t.tail=o,o.next=null):t.head=t.tail=null,n.push(i),e=Ro(t,n),n.pop(),t.head?(a.next=t.head,t.head=a):(a.next=null,t.head=t.tail=a),o=t.tail,o.next=r),a=r;return t.tail=o,e}function Ho(t){return{x:t.x,y:t.y,r:t.r}}function Io(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,s=o-e,c=a-r,l=u-i,f=Math.sqrt(s*s+c*c);return{x:(e+o+s/f*l)/2,y:(r+a+c/f*l)/2,r:(f+i+u)/2}}function Uo(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,s=n.r,c=e.x,l=e.y,f=e.r,h=2*(r-a),p=2*(i-u),d=2*(s-o),g=r*r+i*i-o*o-a*a-u*u+s*s,v=2*(r-c),y=2*(i-l),m=2*(f-o),_=r*r+i*i-o*o-c*c-l*l+f*f,x=v*p-h*y,b=(p*_-y*g)/x-r,w=(y*d-p*m)/x,M=(v*g-h*_)/x-i,k=(h*m-v*d)/x,T=w*w+k*k-1,S=2*(b*w+M*k+o),C=b*b+M*M-o*o,N=(-S-Math.sqrt(S*S-4*T*C))/(2*T);return{x:b+w*N+r,y:M+k*N+i,r:N}}function Bo(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,a=t.r+e.r,u=n.x-r,s=n.y-i,c=u*u+s*s;if(c){var l=.5+((a*=a)-(o*=o))/(2*c),f=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);e.x=r+l*u+f*s,e.y=i+l*s-f*u}else e.x=r+a,e.y=i}function Wo(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i>e*e+r*r}function Yo(t,n,e){var r=t.x-n,i=t.y-e;return r*r+i*i}function $o(t){this._=t,this.next=null,this.previous=null}function Xo(t){if(!(i=t.length))return 0;var n,e,r,i;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Bo(e,n,r=t[2]);var o,a,u,s,c,l,f,h=n.r*n.r,p=e.r*e.r,d=r.r*r.r,g=h+p+d,v=h*n.x+p*e.x+d*r.x,y=h*n.y+p*e.y+d*r.y;n=new $o(n),e=new $o(e),r=new $o(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u<i;++u){if(Bo(n._,e._,r=t[u]),r=new $o(r),(c=n.previous)===(s=e.next)){if(Wo(s._,r._)){n=e,e=s,--u;continue t}}else{l=s._.r,f=c._.r;do if(l<=f){if(Wo(s._,r._)){e=s,n.next=e,e.previous=n,--u;continue t}s=s.next,l+=s._.r}else{if(Wo(c._,r._)){n=c,n.next=e,e.previous=n,--u;continue t}c=c.previous,f+=c._.r}while(s!==c.next)}for(r.previous=n,r.next=e,n.next=e.previous=e=r,g+=d=r._.r*r._.r,v+=d*r._.x,y+=d*r._.y,h=Yo(n._,o=v/g,a=y/g);(r=r.next)!==e;)(d=Yo(r._,o,a))<h&&(n=r,h=d);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=km(n),u=0;u<i;++u)n=t[u],n.x-=r.x,n.y-=r.y;return r.r}function Vo(t){return null==t?null:Go(t)}function Go(t){if("function"!=typeof t)throw new Error;return t}function Jo(){return 0}function Zo(t){return Math.sqrt(t.value)}function Qo(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Ko(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=Xo(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function ta(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function na(t){return t.id}function ea(t){return t.parentId}function ra(t,n){return t.parent===n.parent?1:2}function ia(t){var n=t.children;return n?n[0]:t.t}function oa(t){var n=t.children;return n?n[n.length-1]:t.t}function aa(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function ua(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function sa(t,n,e){return t.a.parent===n.parent?t.a:e}function ca(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function la(t){for(var n,e,r,i,o,a=new ca(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new ca(r[i],i)),e.parent=n;return(a.parent=new ca(null,0)).children=[a],a}function fa(t,n,e,r,i,o){for(var a,u,s,c,l,f,h,p,d,g,v,y,m=[],_=n.children,x=0,b=_.length,w=n.value;x<b;){for(c=i-e,l=o-r,h=p=f=_[x].value,v=Math.max(l/c,c/l)/(w*t),y=f*f*v,g=Math.max(p/y,y/h),s=x+1;s<b;++s){if(f+=u=_[s].value,u<h&&(h=u),u>p&&(p=u),y=f*f*v,d=Math.max(p/y,y/h),d>g){f-=u;break}g=d}m.push(a={value:f,dice:c<l,children:_.slice(x,s)}),a.dice?Em(a,e,r,i,w?r+=l*f/w:o):Om(a,e,r,w?e+=c*f/w:i,o),w-=f,x=s}return m}function ha(t){return t.x+t.vx}function pa(t){return t.y+t.vy}function da(t,n){return n}function ga(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function va(t){return t.x}function ya(t){return t.y}function ma(){t.event.stopImmediatePropagation()}function _a(t,n){var e=t.document.documentElement,r=my(t).on("dragstart.drag",null);n&&(r.on("click.drag",t_,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function xa(t,n,e,r,i,o,a,u,s,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=s,this._=c}function ba(){return!t.event.button}function wa(){return this.parentNode}function Ma(n){return null==n?{x:t.event.x,y:t.event.y}:n}function ka(t){return t[0]}function Ta(t){return t[1]}function Sa(){this._=null}function Ca(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Na(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Ea(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Aa(t){for(;t.L;)t=t.L;return t}function qa(t,n,e,r){var i=[null,null],o=c_.push(i)-1;return i.left=t,i.right=n,e&&ja(i,t,n,e),r&&ja(i,n,t,r),u_[t.index].halfedges.push(o),u_[n.index].halfedges.push(o),i}function Da(t,n,e){var r=[n,e];return r.left=t,r}function ja(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function La(t,n,e,r,i){var o,a=t[0],u=t[1],s=a[0],c=a[1],l=u[0],f=u[1],h=0,p=1,d=l-s,g=f-c;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<h)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=r-s,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>h&&(h=o)}else if(d>0){if(o<h)return;o<p&&(p=o)}if(o=e-c,g||!(o>0)){if(o/=g,g<0){if(o<h)return;o<p&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=i-c,g||!(o<0)){if(o/=g,g<0){if(o>p)return;o>h&&(h=o)}else if(g>0){if(o<h)return;o<p&&(p=o)}return!(h>0||p<1)||(h>0&&(t[0]=[s+h*d,c+h*g]),p<1&&(t[1]=[s+p*d,c+p*g]),!0)}}}}}function Pa(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,s=t[0],c=t.left,l=t.right,f=c[0],h=c[1],p=l[0],d=l[1],g=(f+p)/2,v=(h+d)/2;if(d===h){if(g<n||g>=r)return;if(f>p){if(s){if(s[1]>=i)return}else s=[g,e];o=[g,i]}else{if(s){if(s[1]<e)return}else s=[g,i];o=[g,e]}}else if(a=(f-p)/(d-h),u=v-a*g,a<-1||a>1)if(f>p){if(s){if(s[1]>=i)return}else s=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(s){if(s[1]<e)return}else s=[(i-u)/a,i];o=[(e-u)/a,e]}else if(h<d){if(s){if(s[0]>=r)return}else s=[n,a*n+u];o=[r,a*r+u]}else{if(s){if(s[0]<n)return}else s=[r,a*r+u];o=[n,a*n+u]}return t[0]=s,t[1]=o,!0}function Oa(t,n,e,r){for(var i,o=c_.length;o--;)Pa(i=c_[o],t,n,e,r)&&La(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>h_||Math.abs(i[0][1]-i[1][1])>h_)||delete c_[o]}function Fa(t){return u_[t.index]={site:t,halfedges:[]}}function za(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Ra(t,n){return n[+(n.left!==t.site)]}function Ha(t,n){return n[+(n.left===t.site)]}function Ia(){for(var t,n,e,r,i=0,o=u_.length;i<o;++i)if((t=u_[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(e=0;e<r;++e)a[e]=e,u[e]=za(t,c_[n[e]]);for(a.sort(function(t,n){return u[n]-u[t]}),e=0;e<r;++e)u[e]=n[a[e]];for(e=0;e<r;++e)n[e]=u[e]}}function Ua(t,n,e,r){var i,o,a,u,s,c,l,f,h,p,d,g,v=u_.length,y=!0;for(i=0;i<v;++i)if(o=u_[i]){for(a=o.site,s=o.halfedges,u=s.length;u--;)c_[s[u]]||s.splice(u,1);for(u=0,c=s.length;u<c;)p=Ha(o,c_[s[u]]),d=p[0],g=p[1],l=Ra(o,c_[s[++u%c]]),f=l[0],h=l[1],(Math.abs(d-f)>h_||Math.abs(g-h)>h_)&&(s.splice(u,0,c_.push(Da(a,p,Math.abs(d-t)<h_&&r-g>h_?[t,Math.abs(f-t)<h_?h:r]:Math.abs(g-r)<h_&&e-d>h_?[Math.abs(h-r)<h_?f:e,r]:Math.abs(d-e)<h_&&g-n>h_?[e,Math.abs(f-e)<h_?h:n]:Math.abs(g-n)<h_&&d-t>h_?[Math.abs(h-n)<h_?f:t,n]:null))-1),++c);c&&(y=!1)}if(y){var m,_,x,b=1/0;for(i=0,y=null;i<v;++i)(o=u_[i])&&(a=o.site,m=a[0]-t,_=a[1]-n,x=m*m+_*_,x<b&&(b=x,y=o));if(y){var w=[t,n],M=[t,r],k=[e,r],T=[e,n];y.halfedges.push(c_.push(Da(a=y.site,w,M))-1,c_.push(Da(a,M,k))-1,c_.push(Da(a,k,T))-1,c_.push(Da(a,T,w))-1)}}for(i=0;i<v;++i)(o=u_[i])&&(o.halfedges.length||delete u_[i])}function Ba(){Ca(this),this.x=this.y=this.arc=this.site=this.cy=null}function Wa(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],u=i[1],s=r[0]-a,c=r[1]-u,l=o[0]-a,f=o[1]-u,h=2*(s*f-c*l);if(!(h>=-p_)){var p=s*s+c*c,d=l*l+f*f,g=(f*p-c*d)/h,v=(s*d-l*p)/h,y=l_.pop()||new Ba;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=s_._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}s_.insert(m,y),m||(o_=y)}}}}function Ya(t){var n=t.circle;n&&(n.P||(o_=n.N),s_.remove(n),l_.push(n),Ca(n),t.circle=null)}function $a(){Ca(this),this.edge=this.site=this.circle=null}function Xa(t){var n=f_.pop()||new $a;return n.site=t,n}function Va(t){Ya(t),a_.remove(t),f_.push(t),Ca(t)}function Ga(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];Va(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<h_&&Math.abs(r-s.circle.cy)<h_;)o=s.P,u.unshift(s),Va(s),s=o;u.unshift(s),Ya(s);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<h_&&Math.abs(r-c.circle.cy)<h_;)a=c.N,u.push(c),Va(c),c=a;u.push(c),Ya(c);var l,f=u.length;for(l=1;l<f;++l)c=u[l],s=u[l-1],ja(c.edge,s.site,c.site,i);s=u[0],c=u[f-1],c.edge=qa(s.site,c.site,null,i),Wa(s),Wa(c)}function Ja(t){for(var n,e,r,i,o=t[0],a=t[1],u=a_._;u;)if(r=Za(u,a)-o,r>h_)u=u.L;else{if(i=o-Qa(u,a),!(i>h_)){r>-h_?(n=u.P,e=u):i>-h_?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}Fa(t);var s=Xa(t);if(a_.insert(n,s),n||e){if(n===e)return Ya(n),e=Xa(n.site),a_.insert(s,e),s.edge=e.edge=qa(n.site,s.site),Wa(n),void Wa(e);if(!e)return void(s.edge=qa(n.site,s.site));Ya(n),Ya(e);var c=n.site,l=c[0],f=c[1],h=t[0]-l,p=t[1]-f,d=e.site,g=d[0]-l,v=d[1]-f,y=2*(h*v-p*g),m=h*h+p*p,_=g*g+v*v,x=[(v*m-p*_)/y+l,(h*_-g*m)/y+f];ja(e.edge,c,d,x),s.edge=qa(c,t,null,x),e.edge=qa(t,d,null,x),Wa(n),Wa(e)}}function Za(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-(1/0);e=a.site;var u=e[0],s=e[1],c=s-n;if(!c)return u;var l=u-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-s+c/2+i-o/2)))/f+r:(r+u)/2}function Qa(t,n){var e=t.N;if(e)return Za(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function Ka(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function tu(t,n){return n[1]-t[1]||n[0]-t[0]}function nu(t,n){var e,r,i,o=t.sort(tu).pop();for(c_=[],u_=new Array(t.length),a_=new Sa,s_=new Sa;;)if(i=o_,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(Ja(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Ga(i.arc)}if(Ia(),n){var a=+n[0][0],u=+n[0][1],s=+n[1][0],c=+n[1][1];Oa(a,u,s,c),Ua(a,u,s,c)}this.edges=c_,this.cells=u_,a_=s_=c_=u_=null}function eu(t,n,e){this.target=t,this.type=n,this.transform=e}function ru(t,n,e){this.k=t,this.x=n,this.y=e}function iu(t){
+return t.__zoom||v_}function ou(){t.event.stopImmediatePropagation()}function au(){return!t.event.button}function uu(){var t,n,e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,t=e.width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function su(){return this.__zoom||v_}function cu(){t.event.stopImmediatePropagation()}function lu(t){return{type:t}}function fu(){return!t.event.button}function hu(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function pu(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function du(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function gu(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function vu(){return mu(S_)}function yu(){return mu(C_)}function mu(n){function e(t){var e=t.property("__brush",u).selectAll(".overlay").data([lu("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",E_.overlay).merge(e).each(function(){var t=pu(this).extent;my(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([lu("selection")]).enter().append("rect").attr("class","selection").attr("cursor",E_.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return E_[t.type]}),t.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",a)}function r(){var t=my(this),n=pu(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-h/2:n[0][0]-h/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-h/2:n[0][1]-h/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+h:h}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+h:h})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,n){return t.__brush.emitter||new o(t,n)}function o(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function a(){function e(){var t=Ov(k);!O||w||M||(Math.abs(t[0]-z[0])>Math.abs(t[1]-z[1])?M=!0:w=!0),z=t,b=!0,b_(),o()}function o(){var t;switch(_=z[0]-F[0],x=z[1]-F[1],S){case M_:case w_:C&&(_=Math.max(D-f,Math.min(L-g,_)),h=f+_,v=g+_),N&&(x=Math.max(j-p,Math.min(P-y,x)),d=p+x,m=y+x);break;case k_:C<0?(_=Math.max(D-f,Math.min(L-f,_)),h=f+_,v=g):C>0&&(_=Math.max(D-g,Math.min(L-g,_)),h=f,v=g+_),N<0?(x=Math.max(j-p,Math.min(P-p,x)),d=p+x,m=y):N>0&&(x=Math.max(j-y,Math.min(P-y,x)),d=p,m=y+x);break;case T_:C&&(h=Math.max(D,Math.min(L,f-_*C)),v=Math.max(D,Math.min(L,g+_*C))),N&&(d=Math.max(j,Math.min(P,p-x*N)),m=Math.max(j,Math.min(P,y+x*N)))}v<h&&(C*=-1,t=f,f=g,g=t,t=h,h=v,v=t,T in A_&&I.attr("cursor",E_[T=A_[T]])),m<d&&(N*=-1,t=p,p=y,y=t,t=d,d=m,m=t,T in q_&&I.attr("cursor",E_[T=q_[T]])),E.selection&&(q=E.selection),w&&(h=q[0][0],v=q[1][0]),M&&(d=q[0][1],m=q[1][1]),q[0][0]===h&&q[0][1]===d&&q[1][0]===v&&q[1][1]===m||(E.selection=[[h,d],[v,m]],r.call(k),R.brush())}function a(){if(cu(),t.event.touches){if(t.event.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500),H.on("touchmove.brush touchend.brush touchcancel.brush",null)}else _a(t.event.view,b),U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);H.attr("pointer-events","all"),I.attr("cursor",E_.overlay),E.selection&&(q=E.selection),du(q)&&(E.selection=null,r.call(k)),R.end()}function u(){switch(t.event.keyCode){case 16:O=C&&N;break;case 18:S===k_&&(C&&(g=v-_*C,f=h+_*C),N&&(y=m-x*N,p=d+x*N),S=T_,o());break;case 32:S!==k_&&S!==T_||(C<0?g=v-_:C>0&&(f=h-_),N<0?y=m-x:N>0&&(p=d-x),S=M_,I.attr("cursor",E_.selection),o());break;default:return}b_()}function c(){switch(t.event.keyCode){case 16:O&&(w=M=O=!1,o());break;case 18:S===T_&&(C<0?g=v:C>0&&(f=h),N<0?y=m:N>0&&(p=d),S=k_,o());break;case 32:S===M_&&(t.event.altKey?(C&&(g=v-_*C,f=h+_*C),N&&(y=m-x*N,p=d+x*N),S=T_):(C<0?g=v:C>0&&(f=h),N<0?y=m:N>0&&(p=d),S=k_),I.attr("cursor",E_[T]),o());break;default:return}b_()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return b_()}else if(s)return;if(l.apply(this,arguments)){var f,h,p,d,g,v,y,m,_,x,b,w,M,k=this,T=t.event.target.__data__.type,S="selection"===(t.event.metaKey?T="overlay":T)?w_:t.event.altKey?T_:k_,C=n===C_?null:D_[T],N=n===S_?null:j_[T],E=pu(k),A=E.extent,q=E.selection,D=A[0][0],j=A[0][1],L=A[1][0],P=A[1][1],O=C&&N&&t.event.shiftKey,F=Ov(k),z=F,R=i(k,arguments).beforestart();"overlay"===T?E.selection=q=[[f=n===C_?D:F[0],p=n===S_?j:F[1]],[g=n===C_?L:f,y=n===S_?P:p]]:(f=q[0][0],p=q[0][1],g=q[1][0],y=q[1][1]),h=f,d=p,v=g,m=y;var H=my(k).attr("pointer-events","none"),I=H.selectAll(".overlay").attr("cursor",E_[T]);if(t.event.touches)H.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",a,!0);else{var U=my(t.event.view).on("keydown.brush",u,!0).on("keyup.brush",c,!0).on("mousemove.brush",e,!0).on("mouseup.brush",a,!0);n_(t.event.view)}cu(),Dy(k),r.call(k),R.start()}}function u(){var t=this.__brush||{selection:null};return t.extent=c.apply(this,arguments),t.dim=n,t}var s,c=hu,l=fu,f=Dn(e,"start","brush","end"),h=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){a.selection=1===t&&du(c)?null:l(t),r.call(o),u.brush()}var o=this,a=o.__brush,u=i(o,arguments),s=a.selection,c=n.input("function"==typeof e?e.apply(this,arguments):e,a.extent),l=vp(s,c);return s&&c?t:t(1)}):t.each(function(){var t=this,o=arguments,a=t.__brush,u=n.input("function"==typeof e?e.apply(t,o):e,a.extent),s=i(t,o).beforestart();Dy(t),a.selection=null==u||du(u)?null:u,r.call(t),s.start().brush().end()})},o.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){Yr(new x_(e,t,n.output(this.state.selection)),f.apply,f,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(c="function"==typeof t?t:__([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):c},e.filter=function(t){return arguments.length?(l="function"==typeof t?t:__(!!t),e):l},e.handleSize=function(t){return arguments.length?(h=+t,e):h},e.on=function(){var t=f.on.apply(f,arguments);return t===f?e:t},e}function _u(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function xu(t){return t.source}function bu(t){return t.target}function wu(t){return t.radius}function Mu(t){return t.startAngle}function ku(t){return t.endAngle}function Tu(){this.reset()}function Su(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function Cu(t){return t>1?0:t<-1?Sx:Math.acos(t)}function Nu(t){return t>1?Cx:t<-1?-Cx:Math.asin(t)}function Eu(t){return(t=Hx(t/2))*t}function Au(){}function qu(t,n){t&&Yx.hasOwnProperty(t.type)&&Yx[t.type](t,n)}function Du(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function ju(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Du(t[e],n,1);n.polygonEnd()}function Lu(){Gx.point=Ou}function Pu(){Fu($_,X_)}function Ou(t,n){Gx.point=Fu,$_=t,X_=n,t*=qx,n*=qx,V_=t,G_=Px(n=n/2+Nx),J_=Hx(n)}function Fu(t,n){t*=qx,n*=qx,n=n/2+Nx;var e=t-V_,r=e>=0?1:-1,i=r*e,o=Px(n),a=Hx(n),u=J_*a,s=G_*o+u*Px(i),c=u*r*Hx(i);Xx.add(Lx(c,s)),V_=t,G_=o,J_=a}function zu(t){return[Lx(t[1],t[0]),Nu(t[2])]}function Ru(t){var n=t[0],e=t[1],r=Px(e);return[r*Px(n),r*Hx(n),Hx(e)]}function Hu(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Iu(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Uu(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Bu(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Wu(t){var n=Ux(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Yu(t,n){ox.push(ax=[Z_=t,K_=t]),n<Q_&&(Q_=n),n>tx&&(tx=n)}function $u(t,n){var e=Ru([t*qx,n*qx]);if(ix){var r=Iu(ix,e),i=[r[1],-r[0],0],o=Iu(i,r);Wu(o),o=zu(o);var a,u=t-nx,s=u>0?1:-1,c=o[0]*Ax*s,l=Dx(u)>180;l^(s*nx<c&&c<s*t)?(a=o[1]*Ax,a>tx&&(tx=a)):(c=(c+360)%360-180,l^(s*nx<c&&c<s*t)?(a=-o[1]*Ax,a<Q_&&(Q_=a)):(n<Q_&&(Q_=n),n>tx&&(tx=n))),l?t<nx?Qu(Z_,t)>Qu(Z_,K_)&&(K_=t):Qu(t,K_)>Qu(Z_,K_)&&(Z_=t):K_>=Z_?(t<Z_&&(Z_=t),t>K_&&(K_=t)):t>nx?Qu(Z_,t)>Qu(Z_,K_)&&(K_=t):Qu(t,K_)>Qu(Z_,K_)&&(Z_=t)}else Yu(t,n);ix=e,nx=t}function Xu(){Qx.point=$u}function Vu(){ax[0]=Z_,ax[1]=K_,Qx.point=Yu,ix=null}function Gu(t,n){if(ix){var e=t-nx;Zx.add(Dx(e)>180?e+(e>0?360:-360):e)}else ex=t,rx=n;Gx.point(t,n),$u(t,n)}function Ju(){Gx.lineStart()}function Zu(){Gu(ex,rx),Gx.lineEnd(),Dx(Zx)>kx&&(Z_=-(K_=180)),ax[0]=Z_,ax[1]=K_,ix=null}function Qu(t,n){return(n-=t)<0?n+360:n}function Ku(t,n){return t[0]-n[0]}function ts(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function ns(t,n){t*=qx,n*=qx;var e=Px(n);es(e*Px(t),e*Hx(t),Hx(n))}function es(t,n,e){++ux,cx+=(t-cx)/ux,lx+=(n-lx)/ux,fx+=(e-fx)/ux}function rs(){tb.point=is}function is(t,n){t*=qx,n*=qx;var e=Px(n);xx=e*Px(t),bx=e*Hx(t),wx=Hx(n),tb.point=os,es(xx,bx,wx)}function os(t,n){t*=qx,n*=qx;var e=Px(n),r=e*Px(t),i=e*Hx(t),o=Hx(n),a=Lx(Ux((a=bx*o-wx*i)*a+(a=wx*r-xx*o)*a+(a=xx*i-bx*r)*a),xx*r+bx*i+wx*o);sx+=a,hx+=a*(xx+(xx=r)),px+=a*(bx+(bx=i)),dx+=a*(wx+(wx=o)),es(xx,bx,wx)}function as(){tb.point=ns}function us(){tb.point=cs}function ss(){ls(mx,_x),tb.point=ns}function cs(t,n){mx=t,_x=n,t*=qx,n*=qx,tb.point=ls;var e=Px(n);xx=e*Px(t),bx=e*Hx(t),wx=Hx(n),es(xx,bx,wx)}function ls(t,n){t*=qx,n*=qx;var e=Px(n),r=e*Px(t),i=e*Hx(t),o=Hx(n),a=bx*o-wx*i,u=wx*r-xx*o,s=xx*i-bx*r,c=Ux(a*a+u*u+s*s),l=xx*r+bx*i+wx*o,f=c&&-Cu(l)/c,h=Lx(c,l);gx+=f*a,vx+=f*u,yx+=f*s,sx+=h,hx+=h*(xx+(xx=r)),px+=h*(bx+(bx=i)),dx+=h*(wx+(wx=o)),es(xx,bx,wx)}function fs(t,n){return[t>Sx?t-Ex:t<-Sx?t+Ex:t,n]}function hs(t,n,e){return(t%=Ex)?n||e?rb(ds(t),gs(n,e)):ds(t):n||e?gs(n,e):fs}function ps(t){return function(n,e){return n+=t,[n>Sx?n-Ex:n<-Sx?n+Ex:n,e]}}function ds(t){var n=ps(t);return n.invert=ps(-t),n}function gs(t,n){function e(t,n){var e=Px(n),u=Px(t)*e,s=Hx(t)*e,c=Hx(n),l=c*r+u*i;return[Lx(s*o-l*a,u*r-c*i),Nu(l*o+s*a)]}var r=Px(t),i=Hx(t),o=Px(n),a=Hx(n);return e.invert=function(t,n){var e=Px(n),u=Px(t)*e,s=Hx(t)*e,c=Hx(n),l=c*o-s*a;return[Lx(s*o+c*a,u*r+l*i),Nu(l*r-u*i)]},e}function vs(t,n,e,r,i,o){if(e){var a=Px(n),u=Hx(n),s=r*e;null==i?(i=n+r*Ex,o=n-s/2):(i=ys(a,i),o=ys(a,o),(r>0?i<o:i>o)&&(i+=r*Ex));for(var c,l=i;r>0?l>o:l<o;l-=s)c=zu([a,-u*Px(l),-u*Hx(l)]),t.point(c[0],c[1])}}function ys(t,n){n=Ru(n),n[0]-=t,Wu(n);var e=Cu(-n[1]);return((-n[2]<0?-e:e)+Ex-kx)%Ex}function ms(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function _s(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function xs(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,c){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||s(i,o)<0^u>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+u+4)%4)!==f)}else c.point(o[0],o[1])}function a(r,i){return Dx(r[0]-t)<kx?i>0?0:3:Dx(r[0]-e)<kx?i>0?2:1:Dx(r[1]-n)<kx?i>0?1:0:i>0?3:2}function u(t,n){return s(t.x,n.x)}function s(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){function s(t,n){i(t,n)&&S.point(t,n)}function c(){for(var n=0,e=0,i=v.length;e<i;++e)for(var o,a,u=v[e],s=1,c=u.length,l=u[0],f=l[0],h=l[1];s<c;++s)o=f,a=h,l=u[s],f=l[0],h=l[1],a<=r?h>r&&(f-o)*(r-a)>(h-a)*(t-o)&&++n:h<=r&&(f-o)*(r-a)<(h-a)*(t-o)&&--n;return n}function l(){S=C,g=[],v=[],T=!0}function f(){var t=c(),n=T&&t,e=(g=Zc(g)).length;(n||e)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),e&&xb(g,u,t,o,a),a.polygonEnd()),S=a,g=v=y=null}function h(){N.point=d,v&&v.push(y=[]),k=!0,M=!1,b=w=NaN}function p(){g&&(d(m,_),x&&M&&C.rejoin(),g.push(C.result())),N.point=s,M&&S.lineEnd()}function d(o,a){var u=i(o,a);if(v&&y.push([o,a]),k)m=o,_=a,x=u,k=!1,u&&(S.lineStart(),S.point(o,a));else if(u&&M)S.point(o,a);else{var s=[b=Math.max(wb,Math.min(bb,b)),w=Math.max(wb,Math.min(bb,w))],c=[o=Math.max(wb,Math.min(bb,o)),a=Math.max(wb,Math.min(bb,a))];mb(s,c,t,n,e,r)?(M||(S.lineStart(),S.point(s[0],s[1])),S.point(c[0],c[1]),u||S.lineEnd(),T=!1):u&&(S.lineStart(),S.point(o,a),T=!1)}b=o,w=a,M=u}var g,v,y,m,_,x,b,w,M,k,T,S=a,C=yb(),N={point:s,lineStart:h,lineEnd:p,polygonStart:l,polygonEnd:f};return N}}function bs(){Tb.point=Ms,Tb.lineEnd=ws}function ws(){Tb.point=Tb.lineEnd=Au}function Ms(t,n){t*=qx,n*=qx,ib=t,ob=Hx(n),ab=Px(n),Tb.point=ks}function ks(t,n){t*=qx,n*=qx;var e=Hx(n),r=Px(n),i=Dx(t-ib),o=Px(i),a=Hx(i),u=r*a,s=ab*e-ob*r*o,c=ob*e+ab*r*o;kb.add(Lx(Ux(u*u+s*s),c)),ib=t,ob=e,ab=r}function Ts(t,n,e){var r=zc(t,n-kx,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Ss(t,n,e){var r=zc(t,n-kx,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function Cs(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return zc(Ox(o/v)*v,i,v).map(h).concat(zc(Ox(c/y)*y,s,y).map(p)).concat(zc(Ox(r/d)*d,e,d).filter(function(t){return Dx(t%v)>kx}).map(l)).concat(zc(Ox(u/g)*g,a,g).filter(function(t){return Dx(t%y)>kx}).map(f))}var e,r,i,o,a,u,s,c,l,f,h,p,d=10,g=d,v=90,y=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(s).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],o>i&&(n=o,o=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(m)):[[o,c],[i,s]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],u=+n[0][1],a=+n[1][1],r>e&&(n=r,r=e,e=n),u>a&&(n=u,u=a,a=n),t.precision(m)):[[r,u],[e,a]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.stepMinor=function(n){return arguments.length?(d=+n[0],g=+n[1],t):[d,g]},t.precision=function(n){return arguments.length?(m=+n,l=Ts(u,a,90),f=Ss(r,e,m),h=Ts(c,s,90),p=Ss(o,i,m),t):m},t.extentMajor([[-180,-90+kx],[180,90-kx]]).extentMinor([[-180,-80-kx],[180,80+kx]])}function Ns(){return Cs()()}function Es(){Lb.point=As}function As(t,n){Lb.point=qs,ub=cb=t,sb=lb=n}function qs(t,n){jb.add(lb*t-cb*n),cb=t,lb=n}function Ds(){qs(ub,sb)}function js(t,n){t<Pb&&(Pb=t),t>Fb&&(Fb=t),n<Ob&&(Ob=n),n>zb&&(zb=n)}function Ls(t,n){Hb+=t,Ib+=n,++Ub}function Ps(){Gb.point=Os}function Os(t,n){Gb.point=Fs,Ls(pb=t,db=n)}function Fs(t,n){var e=t-pb,r=n-db,i=Ux(e*e+r*r);Bb+=i*(pb+t)/2,Wb+=i*(db+n)/2,Yb+=i,Ls(pb=t,db=n)}function zs(){Gb.point=Ls}function Rs(){Gb.point=Is}function Hs(){Us(fb,hb)}function Is(t,n){Gb.point=Us,Ls(fb=pb=t,hb=db=n)}function Us(t,n){var e=t-pb,r=n-db,i=Ux(e*e+r*r);Bb+=i*(pb+t)/2,Wb+=i*(db+n)/2,Yb+=i,i=db*t-pb*n,$b+=i*(pb+t),Xb+=i*(db+n),Vb+=3*i,Ls(pb=t,db=n)}function Bs(t){this._context=t}function Ws(){this._string=[]}function Ys(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function $s(t){return t.length>1}function Xs(t,n){return((t=t.x)[0]<0?t[1]-Cx-kx:Cx-t[1])-((n=n.x)[0]<0?n[1]-Cx-kx:Cx-n[1])}function Vs(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Sx:-Sx,s=Dx(o-e);Dx(s-Sx)<kx?(t.point(e,r=(r+a)/2>0?Cx:-Cx),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&s>=Sx&&(Dx(e-i)<kx&&(e-=i*kx),Dx(o-u)<kx&&(o-=u*kx),r=Gs(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function Gs(t,n,e,r){var i,o,a=Hx(t-e);return Dx(a)>kx?jx((Hx(n)*(o=Px(r))*Hx(e)-Hx(r)*(i=Px(n))*Hx(t))/(i*o*a)):(n+r)/2}function Js(t,n,e,r){var i;if(null==t)i=e*Cx,r.point(-Sx,i),r.point(0,i),r.point(Sx,i),r.point(Sx,0),r.point(Sx,-i),r.point(0,-i),r.point(-Sx,-i),r.point(-Sx,0),r.point(-Sx,i);else if(Dx(t[0]-n[0])>kx){var o=t[0]<n[0]?Sx:-Sx;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Zs(t){return function(n){var e=new Qs;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Qs(){}function Ks(t,n,e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),$x(e,t.stream(Rb));var a=Rb.result(),u=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),s=+n[0][0]+(r-u*(a[1][0]+a[0][0]))/2,c=+n[0][1]+(i-u*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([s,c])}function tc(t,n,e){return Ks(t,[[0,0],n],e)}function nc(t){return Zs({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function ec(t,n){function e(r,i,o,a,u,s,c,l,f,h,p,d,g,v){var y=c-r,m=l-i,_=y*y+m*m;if(_>4*n&&g--){var x=a+h,b=u+p,w=s+d,M=Ux(x*x+b*b+w*w),k=Nu(w/=M),T=Dx(Dx(w)-1)<kx||Dx(o-f)<kx?(o+f)/2:Lx(b,x),S=t(T,k),C=S[0],N=S[1],E=C-r,A=N-i,q=m*E-y*A;(q*q/_>n||Dx((y*E+m*A)/_-.5)>.3||a*h+u*p+s*d<iw)&&(e(r,i,o,a,u,s,C,N,T,x/=M,b/=M,w,g,v),v.point(C,N),e(C,N,T,x,b,w,c,l,f,h,p,d,g,v))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=NaN,w.point=o,n.lineStart()}function o(r,i){var o=Ru([r,i]),a=t(r,i);e(y,m,v,_,x,b,y=a[0],m=a[1],v=r,_=o[0],x=o[1],b=o[2],rw,n),n.point(y,m)}function a(){w.point=r,n.lineEnd()}function u(){i(),w.point=s,w.lineEnd=c}function s(t,n){o(l=t,n),f=y,h=m,p=_,d=x,g=b,w.point=o}function c(){e(y,m,v,_,x,b,f,h,l,p,d,g,rw,n),w.lineEnd=a,a()}var l,f,h,p,d,g,v,y,m,_,x,b,w={point:r,lineStart:i,lineEnd:a,polygonStart:function(){n.polygonStart(),w.lineStart=u},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function rc(t){return ic(function(){return t})()}function ic(t){function n(t){return t=l(t[0]*qx,t[1]*qx),[t[0]*v+u,s-t[1]*v]}function e(t){return t=l.invert((t[0]-u)/v,(s-t[1])/v),t&&[t[0]*Ax,t[1]*Ax]}function r(t,n){return t=a(t,n),[t[0]*v+u,s-t[1]*v]}function i(){l=rb(c=hs(b,w,M),a);var t=a(_,x);return u=y-t[0]*v,s=m+t[1]*v,o()}function o(){return d=g=null,n}var a,u,s,c,l,f,h,p,d,g,v=150,y=480,m=250,_=0,x=0,b=0,w=0,M=0,k=null,T=tw,S=null,C=qb,N=.5,E=ow(r,N);return n.stream=function(t){return d&&g===t?d:d=aw(T(c,E(C(g=t))))},n.clipAngle=function(t){return arguments.length?(T=+t?nw(k=t*qx,6*qx):(k=null,tw),o()):k*Ax},n.clipExtent=function(t){return arguments.length?(C=null==t?(S=f=h=p=null,qb):xs(S=+t[0][0],f=+t[0][1],h=+t[1][0],p=+t[1][1]),o()):null==S?null:[[S,f],[h,p]]},n.scale=function(t){return arguments.length?(v=+t,i()):v},n.translate=function(t){return arguments.length?(y=+t[0],m=+t[1],i()):[y,m]},n.center=function(t){return arguments.length?(_=t[0]%360*qx,x=t[1]%360*qx,i()):[_*Ax,x*Ax]},n.rotate=function(t){return arguments.length?(b=t[0]%360*qx,w=t[1]%360*qx,M=t.length>2?t[2]%360*qx:0,i()):[b*Ax,w*Ax,M*Ax]},n.precision=function(t){return arguments.length?(E=ow(r,N=t*t),o()):Ux(N)},n.fitExtent=function(t,e){return Ks(n,t,e)},n.fitSize=function(t,e){return tc(n,t,e)},function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,i()}}function oc(t){var n=0,e=Sx/3,r=ic(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*qx,e=t[1]*qx):[n*Ax,e*Ax]},i}function ac(t){function n(t,n){return[t*e,Hx(n)/e]}var e=Px(t);return n.invert=function(t,n){return[t/e,Nu(n*e)]},n}function uc(t,n){function e(t,n){var e=Ux(o-2*i*Hx(n))/i;return[e*Hx(t*=i),a-e*Px(t)]}var r=Hx(t),i=(r+Hx(n))/2;if(Dx(i)<kx)return ac(t);var o=1+r*(2*i-r),a=Ux(o)/i;return e.invert=function(t,n){var e=a-n;return[Lx(t,Dx(e))/i*Ix(e),Nu((o-(t*t+e*e)*i*i)/(2*i))]},e}function sc(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function cc(t){return function(n,e){var r=Px(n),i=Px(e),o=t(r*i);return[o*i*Hx(n),o*Hx(e)]}}function lc(t){return function(n,e){var r=Ux(n*n+e*e),i=t(r),o=Hx(i),a=Px(i);return[Lx(n*o,r*a),Nu(r&&e*o/r)]}}function fc(t,n){return[t,zx(Bx((Cx+n)/2))]}function hc(t){var n,e=rc(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(t){return arguments.length?(r(t),n&&e.clipExtent(null),e):r()},e.translate=function(t){return arguments.length?(i(t),n&&e.clipExtent(null),e):i()},e.clipExtent=function(t){if(!arguments.length)return n?null:o();if(n=null==t){var a=Sx*r(),u=i();t=[[u[0]-a,u[1]-a],[u[0]+a,u[1]+a]]}return o(t),e},e.clipExtent(null)}function pc(t){return Bx((Cx+t)/2)}function dc(t,n){function e(t,n){o>0?n<-Cx+kx&&(n=-Cx+kx):n>Cx-kx&&(n=Cx-kx);var e=o/Rx(pc(n),i);return[e*Hx(i*t),o-e*Px(i*t)]}var r=Px(t),i=t===n?Hx(t):zx(r/Px(n))/zx(pc(n)/pc(t)),o=r*Rx(pc(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=Ix(i)*Ux(t*t+e*e);return[Lx(t,Dx(e))/i*Ix(e),2*jx(Rx(o/r,1/i))-Cx]},e):fc}function gc(t,n){return[t,n]}function vc(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Hx(r),o-e*Px(r)]}var r=Px(t),i=t===n?Hx(t):(r-Px(n))/(n-t),o=r/i+t;return Dx(i)<kx?gc:(e.invert=function(t,n){var e=o-n;return[Lx(t,Dx(e))/i*Ix(e),o-Ix(i)*Ux(t*t+e*e)]},e)}function yc(t,n){var e=Px(n),r=Px(t)*e;return[e*Hx(t)/r,Hx(n)/r]}function mc(t,n,e){return 1===t&&0===n&&0===e?qb:Zs({point:function(r,i){this.stream.point(r*t+n,i*t+e)}})}function _c(t,n){return[Px(n)*Hx(t),Hx(n)]}function xc(t,n){var e=Px(n),r=1+Px(t)*e;return[e*Hx(t)/r,Hx(n)/r]}function bc(t,n){return[zx(Bx((Cx+n)/2)),-t]}var wc="4.3.0",Mc=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},kc=function(t){return 1===t.length&&(t=n(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},Tc=kc(Mc),Sc=Tc.right,Cc=Tc.left,Nc=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Ec=function(t){return null===t?NaN:+t},Ac=function(t,n){var e,r,i=t.length,o=0,a=0,u=-1,s=0;if(null==n)for(;++u<i;)isNaN(e=Ec(t[u]))||(r=e-o,o+=r/++s,a+=r*(e-o));else for(;++u<i;)isNaN(e=Ec(n(t[u],u,t)))||(r=e-o,o+=r/++s,a+=r*(e-o));if(s>1)return a/(s-1)},qc=function(t,n){var e=Ac(t,n);return e?Math.sqrt(e):e},Dc=function(t,n){var e,r,i,o=-1,a=t.length;if(null==n){for(;++o<a;)if(null!=(r=t[o])&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=t[o])&&(e>r&&(e=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=n(t[o],o,t))&&r>=r){e=i=r;break}for(;++o<a;)null!=(r=n(t[o],o,t))&&(e>r&&(e=r),i<r&&(i=r))}return[e,i]},jc=Array.prototype,Lc=jc.slice,Pc=jc.map,Oc=function(t){return function(){return t}},Fc=function(t){return t},zc=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},Rc=Math.sqrt(50),Hc=Math.sqrt(10),Ic=Math.sqrt(2),Uc=function(t,n,r){var i=e(t,n,r);return zc(Math.ceil(t/i)*i,Math.floor(n/i)*i+i/2,i)},Bc=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},Wc=function(){function t(t){var i,o,a=t.length,u=new Array(a);for(i=0;i<a;++i)u[i]=n(t[i],i,t);var s=e(u),c=s[0],l=s[1],f=r(u,c,l);Array.isArray(f)||(f=Uc(c,l,f));for(var h=f.length;f[0]<=c;)f.shift(),--h;for(;f[h-1]>=l;)f.pop(),--h;var p,d=new Array(h+1);for(i=0;i<=h;++i)p=d[i]=[],p.x0=i>0?f[i-1]:c,p.x1=i<h?f[i]:l;for(i=0;i<a;++i)o=u[i],c<=o&&o<=l&&d[Sc(f,o,0,h)].push(t[i]);return d}var n=Fc,e=Dc,r=Bc;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:Oc(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:Oc([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Oc(Array.isArray(n)?Lc.call(n):n),t):r},t},Yc=function(t,n,e){if(null==e&&(e=Ec),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t),u=+e(t[o+1],o+1,t);return a+(u-a)*(i-o)}},$c=function(t,n,e){return t=Pc.call(t,Ec).sort(Mc),Math.ceil((e-n)/(2*(Yc(t,.75)-Yc(t,.25))*Math.pow(t.length,-1/3)))},Xc=function(t,n,e){return Math.ceil((e-n)/(3.5*qc(t)*Math.pow(t.length,-1/3)))},Vc=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&r>e&&(e=r)}return e},Gc=function(t,n){var e,r=0,i=t.length,o=-1,a=i;if(null==n)for(;++o<i;)isNaN(e=Ec(t[o]))?--a:r+=e;else for(;++o<i;)isNaN(e=Ec(n(t[o],o,t)))?--a:r+=e;if(a)return r/a},Jc=function(t,n){var e,r=[],i=t.length,o=-1;if(null==n)for(;++o<i;)isNaN(e=Ec(t[o]))||r.push(e);else for(;++o<i;)isNaN(e=Ec(n(t[o],o,t)))||r.push(e);return Yc(r.sort(Mc),.5)},Zc=function(t){for(var n,e,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(e=new Array(a);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--a]=r[n];return e},Qc=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&e>r&&(e=r)}return e},Kc=function(t){for(var n=0,e=t.length-1,r=t[0],i=new Array(e<0?0:e);n<e;)i[n]=[r,r=t[++n]];return i},tl=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},nl=function(t,n){if(e=t.length){var e,r,i=0,o=0,a=t[o];for(n||(n=Mc);++i<e;)(n(r=t[i],a)<0||0!==n(a,a))&&(a=r,o=i);return 0===n(a,a)?o:void 0}},el=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},rl=function(t,n){var e,r=0,i=t.length,o=-1;if(null==n)for(;++o<i;)(e=+t[o])&&(r+=e);else for(;++o<i;)(e=+n(t[o],o,t))&&(r+=e);return r},il=function(t){if(!(o=t.length))return[];for(var n=-1,e=Qc(t,r),i=new Array(e);++n<e;)for(var o,a=-1,u=i[n]=new Array(o);++a<o;)u[a]=t[a][n];return i},ol=function(){return il(arguments)},al="$";i.prototype=o.prototype={constructor:i,has:function(t){return al+t in this},get:function(t){return this[al+t]},set:function(t,n){return this[al+t]=n,this},remove:function(t){var n=al+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===al&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===al&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===al&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===al&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===al&&++t;return t},empty:function(){for(var t in this)if(t[0]===al)return!1;return!0},each:function(t){for(var n in this)n[0]===al&&t(this[n],n.slice(1),this)}};var ul=function(){function t(n,i,a,u){if(i>=l.length)return null!=r?r(n):null!=e?n.sort(e):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=o(),v=a();++h<p;)(f=g.get(s=d(c=n[h])+""))?f.push(c):g.set(s,[c]);return g.each(function(n,e){u(v,e,t(n,i,a,u))}),v}function n(t,e){if(++e>l.length)return t;var i,o=f[e-1];return null!=r&&e>=l.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=o?i.sort(function(t,n){return o(t.key,n.key)}):i}var e,r,i,l=[],f=[];return i={object:function(n){return t(n,0,a,u)},map:function(n){return t(n,0,s,c)},entries:function(e){return n(t(e,0,s,c),0)},key:function(t){return l.push(t),i},sortKeys:function(t){return f[l.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},sl=o.prototype;l.prototype=f.prototype={constructor:l,has:sl.has,add:function(t){return t+="",this[al+t]=t,this},remove:sl.remove,clear:sl.clear,values:sl.keys,size:sl.size,empty:sl.empty,each:sl.each};var cl=function(t){var n=[];for(var e in t)n.push(e);return n},ll=function(t){var n=[];for(var e in t)n.push(t[e]);return n},fl=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},hl=function(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return Math.random()*n+t}},pl=function(t,n){var e,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var i;if(null!=e)i=e,e=null;else do e=2*Math.random()-1,i=2*Math.random()-1,r=e*e+i*i;while(!r||r>1);return t+n*i*Math.sqrt(-2*Math.log(r)/r)}},dl=function(){var t=pl.apply(this,arguments);return function(){return Math.exp(t())}},gl=function(t){return function(){for(var n=0,e=0;e<t;++e)n+=Math.random();return n}},vl=function(t){var n=gl(t);return function(){return n()/t}},yl=function(t){return function(){return-Math.log(1-Math.random())/t}},ml=3,_l=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(ml),xl=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(ml),bl=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(ml),wl=Math.PI,Ml=wl/2,kl=4/11,Tl=6/11,Sl=8/11,Cl=.75,Nl=9/11,El=10/11,Al=.9375,ql=21/22,Dl=63/64,jl=1/kl/kl,Ll=1.70158,Pl=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(Ll),Ol=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(Ll),Fl=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Ll),zl=2*Math.PI,Rl=1,Hl=.3,Il=function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Ul=function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Bl=function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=zl);return r.amplitude=function(n){return t(n,e*zl)},r.period=function(e){return t(n,e)},r}(Rl,Hl),Wl=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},Yl=function(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],s=0;++r<i;)n=u,u=t[r],s+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return s*=3,[o/s,a/s]},$l=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},Xl=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(q),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=D(r),a=D(i),u=a[0]===o[0],s=a[a.length-1]===o[o.length-1],c=[];for(n=o.length-1;n>=0;--n)c.push(t[r[o[n]][2]]);for(n=+u;n<a.length-s;++n)c.push(t[r[a[n]][2]]);return c},Vl=function(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],s=o[0],c=o[1],l=!1,f=0;f<i;++f)o=t[f],e=o[0],r=o[1],r>u!=c>u&&a<(s-e)*(u-r)/(c-r)+e&&(l=!l),s=e,c=r;return l},Gl=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],s=0;++r<i;)n=a,e=u,o=t[r],a=o[0],u=o[1],n-=a,e-=u,s+=Math.sqrt(n*n+e*e);return s},Jl=Math.PI,Zl=2*Jl,Ql=1e-6,Kl=Zl-Ql;j.prototype=L.prototype={constructor:j,moveTo:function(t,n){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,
+this._y1=this._y0,this._.push("Z"))},lineTo:function(t,n){this._.push("L",this._x1=+t,",",this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._.push("Q",+t,",",+n,",",this._x1=+e,",",this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._.push("C",+t,",",+n,",",+e,",",+r,",",this._x1=+i,",",this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._.push("M",this._x1=t,",",this._y1=n);else if(f>Ql)if(Math.abs(l*u-s*c)>Ql&&i){var h=e-o,p=r-a,d=u*u+s*s,g=h*h+p*p,v=Math.sqrt(d),y=Math.sqrt(f),m=i*Math.tan((Jl-Math.acos((d+f-g)/(2*v*y)))/2),_=m/y,x=m/v;Math.abs(_-1)>Ql&&this._.push("L",t+_*c,",",n+_*l),this._.push("A",i,",",i,",0,0,",+(l*h>c*p),",",this._x1=t+x*u,",",this._y1=n+x*s)}else this._.push("L",this._x1=t,",",this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var a=e*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._.push("M",s,",",c):(Math.abs(this._x1-s)>Ql||Math.abs(this._y1-c)>Ql)&&this._.push("L",s,",",c),e&&(f>Kl?this._.push("A",e,",",e,",0,1,",l,",",t-a,",",n-u,"A",e,",",e,",0,1,",l,",",this._x1=s,",",this._y1=c):(f<0&&(f=f%Zl+Zl),this._.push("A",e,",",e,",0,",+(f>=Jl),",",l,",",this._x1=t+e*Math.cos(i),",",this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n,"h",+e,"v",+r,"h",-e,"Z")},toString:function(){return this._.join("")}};var tf=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return P(this.cover(n,e),n,e,t)},nf=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var a,u,s=i-e,c=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do a=new Array(4),a[u]=c,c=a;while(s*=2,i=e+s,o=r+s,t>i||n>o);break;case 1:do a=new Array(4),a[u]=c,c=a;while(s*=2,e=i-s,o=r+s,e>t||n>o);break;case 2:do a=new Array(4),a[u]=c,c=a;while(s*=2,i=e+s,r=o-s,t>i||r>n);break;case 3:do a=new Array(4),a[u]=c,c=a;while(s*=2,e=i-s,r=o-s,e>t||r>n)}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},ef=function(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t},rf=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},of=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},af=function(t,n,e){var r,i,o,a,u,s,c,l=this._x0,f=this._y0,h=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new of(g,l,f,h,p)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,p=n+e,e*=e);s=d.pop();)if(!(!(g=s.node)||(i=s.x0)>h||(o=s.y0)>p||(a=s.x1)<l||(u=s.y1)<f))if(g.length){var v=(i+a)/2,y=(o+u)/2;d.push(new of(g[3],v,y,a,u),new of(g[2],i,y,v,u),new of(g[1],v,o,a,y),new of(g[0],i,o,v,y)),(c=(n>=y)<<1|t>=v)&&(s=d[d.length-1],d[d.length-1]=d[d.length-1-c],d[d.length-1-c]=s)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),x=m*m+_*_;if(x<e){var b=Math.sqrt(e=x);l=t-b,f=n-b,h=t+b,p=n+b,r=g.data}}return r},uf=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,s,c,l,f,h,p=this._root,d=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(u=(d+v)/2))?d=u:v=u,(l=a>=(s=(g+y)/2))?g=s:y=s,n=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)},sf=function(){return this._root},cf=function(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t},lf=function(t){var n,e,r,i,o,a,u=[],s=this._root;for(s&&u.push(new of(s,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,a=n.y1)&&s.length){var c=(r+o)/2,l=(i+a)/2;(e=s[3])&&u.push(new of(e,c,l,o,a)),(e=s[2])&&u.push(new of(e,r,l,c,a)),(e=s[1])&&u.push(new of(e,c,i,o,l)),(e=s[0])&&u.push(new of(e,r,i,c,l))}return this},ff=function(t){var n,e=[],r=[];for(this._root&&e.push(new of(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,a=n.x0,u=n.y0,s=n.x1,c=n.y1,l=(a+s)/2,f=(u+c)/2;(o=i[0])&&e.push(new of(o,a,u,l,f)),(o=i[1])&&e.push(new of(o,l,u,s,f)),(o=i[2])&&e.push(new of(o,a,f,l,c)),(o=i[3])&&e.push(new of(o,l,f,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},hf=function(t){return arguments.length?(this._x=t,this):this._x},pf=function(t){return arguments.length?(this._y=t,this):this._y},df=H.prototype=I.prototype;df.copy=function(){var t,n,e=new I(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=U(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=U(n));return e},df.add=tf,df.addAll=O,df.cover=nf,df.data=ef,df.extent=rf,df.find=af,df.remove=uf,df.removeAll=F,df.root=sf,df.size=cf,df.visit=lf,df.visitAfter=ff,df.x=hf,df.y=pf;var gf=[].slice,vf={};B.prototype=G.prototype={constructor:B,defer:function(t){if("function"!=typeof t||this._call)throw new Error;if(null!=this._error)return this;var n=gf.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),W(this),this},abort:function(){return null==this._error&&X(this,new Error("abort")),this},await:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=function(n,e){t.apply(null,[n].concat(e))},V(this),this},awaitAll:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=t,V(this),this}};var yf=function(t){return function(){return t}},mf=1e-12,_f=Math.PI,xf=_f/2,bf=2*_f,wf=function(){function t(){var t,c,l=+n.apply(this,arguments),f=+e.apply(this,arguments),h=o.apply(this,arguments)-xf,p=a.apply(this,arguments)-xf,d=Math.abs(p-h),g=p>h;if(s||(s=t=L()),f<l&&(c=f,f=l,l=c),f>mf)if(d>bf-mf)s.moveTo(f*Math.cos(h),f*Math.sin(h)),s.arc(0,0,f,h,p,!g),l>mf&&(s.moveTo(l*Math.cos(p),l*Math.sin(p)),s.arc(0,0,l,p,h,g));else{var v,y,m=h,_=p,x=h,b=p,w=d,M=d,k=u.apply(this,arguments)/2,T=k>mf&&(i?+i.apply(this,arguments):Math.sqrt(l*l+f*f)),S=Math.min(Math.abs(f-l)/2,+r.apply(this,arguments)),C=S,N=S;if(T>mf){var E=nt(T/l*Math.sin(k)),A=nt(T/f*Math.sin(k));(w-=2*E)>mf?(E*=g?1:-1,x+=E,b-=E):(w=0,x=b=(h+p)/2),(M-=2*A)>mf?(A*=g?1:-1,m+=A,_-=A):(M=0,m=_=(h+p)/2)}var q=f*Math.cos(m),D=f*Math.sin(m),j=l*Math.cos(b),P=l*Math.sin(b);if(S>mf){var O=f*Math.cos(_),F=f*Math.sin(_),z=l*Math.cos(x),R=l*Math.sin(x);if(d<_f){var H=w>mf?et(q,D,z,R,O,F,j,P):[j,P],I=q-H[0],U=D-H[1],B=O-H[0],W=F-H[1],Y=1/Math.sin(Math.acos((I*B+U*W)/(Math.sqrt(I*I+U*U)*Math.sqrt(B*B+W*W)))/2),$=Math.sqrt(H[0]*H[0]+H[1]*H[1]);C=Math.min(S,(l-$)/(Y-1)),N=Math.min(S,(f-$)/(Y+1))}}M>mf?N>mf?(v=rt(z,R,q,D,f,N,g),y=rt(O,F,j,P,f,N,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),N<S?s.arc(v.cx,v.cy,N,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,N,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,f,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,N,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):(s.moveTo(q,D),s.arc(0,0,f,m,_,!g)):s.moveTo(q,D),l>mf&&w>mf?C>mf?(v=rt(j,P,O,F,l,-C,g),y=rt(q,D,z,R,l,-C,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),C<S?s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,l,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,C,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):s.arc(0,0,l,b,x,g):s.lineTo(j,P)}else s.moveTo(0,0);if(s.closePath(),t)return s=null,t+""||null}var n=J,e=Z,r=yf(0),i=null,o=Q,a=K,u=tt,s=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-_f/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:yf(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:yf(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:yf(+n),t):o},t.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:yf(+n),t):a},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:yf(+n),t):u},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t};it.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Mf=function(t){return new it(t)},kf=function(){function t(t){var u,s,c,l=t.length,f=!1;for(null==i&&(a=o(c=L())),u=0;u<=l;++u)!(u<l&&r(s=t[u],u,t))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+n(s,u,t),+e(s,u,t));if(c)return a=null,c+""||null}var n=ot,e=at,r=yf(!0),i=null,o=Mf,a=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:yf(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(a=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=a=null:a=o(i=n),t):i},t},Tf=function(){function t(t){var n,l,f,h,p,d=t.length,g=!1,v=new Array(d),y=new Array(d);for(null==u&&(c=s(p=L())),n=0;n<=d;++n){if(!(n<d&&a(h=t[n],n,t))===g)if(g=!g)l=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=n-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}g&&(v[n]=+e(h,n,t),y[n]=+i(h,n,t),c.point(r?+r(h,n,t):v[n],o?+o(h,n,t):y[n]))}if(p)return c=null,p+""||null}function n(){return kf().defined(a).curve(s).context(u)}var e=ot,r=null,i=yf(0),o=at,a=yf(!0),u=null,s=Mf,c=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:yf(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:yf(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(a="function"==typeof n?n:yf(!!n),t):a},t.curve=function(n){return arguments.length?(s=n,null!=u&&(c=s(u)),t):s},t.context=function(n){return arguments.length?(null==n?u=c=null:c=s(u=n),t):u},t},Sf=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Cf=function(t){return t},Nf=function(){function t(t){var u,s,c,l,f,h=t.length,p=0,d=new Array(h),g=new Array(h),v=+i.apply(this,arguments),y=Math.min(bf,Math.max(-bf,o.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u<h;++u)(f=g[d[u]=u]=+n(t[u],u,t))>0&&(p+=f);for(null!=e?d.sort(function(t,n){return e(g[t],g[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),u=0,c=p?(y-h*_)/p:0;u<h;++u,v=l)s=d[u],f=g[s],l=v+(f>0?f*c:0)+_,g[s]={data:t[s],index:u,value:f,startAngle:v,endAngle:l,padAngle:m};return g}var n=Cf,e=Sf,r=null,i=yf(0),o=yf(bf),a=yf(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:yf(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:yf(+n),t):o},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:yf(+n),t):a},t},Ef=st(Mf);ut.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Af=function(){return ct(kf().curve(Ef))},qf=function(){var t=Tf().curve(Ef),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ct(e())},delete t.lineX0,t.lineEndAngle=function(){return ct(r())},delete t.lineX1,t.lineInnerRadius=function(){return ct(i())},delete t.lineY0,t.lineOuterRadius=function(){return ct(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(st(t)):n()._curve},t},Df={draw:function(t,n){var e=Math.sqrt(n/_f);t.moveTo(e,0),t.arc(0,0,e,0,bf)}},jf={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Lf=Math.sqrt(1/3),Pf=2*Lf,Of={draw:function(t,n){var e=Math.sqrt(n/Pf),r=e*Lf;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Ff=.8908130915292852,zf=Math.sin(_f/10)/Math.sin(7*_f/10),Rf=Math.sin(bf/10)*zf,Hf=-Math.cos(bf/10)*zf,If={draw:function(t,n){var e=Math.sqrt(n*Ff),r=Rf*e,i=Hf*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=bf*o/5,u=Math.cos(a),s=Math.sin(a);t.lineTo(s*e,-u*e),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},Uf={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Bf=Math.sqrt(3),Wf={draw:function(t,n){var e=-Math.sqrt(n/(3*Bf));t.moveTo(0,2*e),t.lineTo(-Bf*e,-e),t.lineTo(Bf*e,-e),t.closePath()}},Yf=-.5,$f=Math.sqrt(3)/2,Xf=1/Math.sqrt(12),Vf=3*(Xf/2+1),Gf={draw:function(t,n){var e=Math.sqrt(n/Vf),r=e/2,i=e*Xf,o=r,a=e*Xf+e,u=-o,s=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,s),t.lineTo(Yf*r-$f*i,$f*r+Yf*i),t.lineTo(Yf*o-$f*a,$f*o+Yf*a),t.lineTo(Yf*u-$f*s,$f*u+Yf*s),t.lineTo(Yf*r+$f*i,Yf*i-$f*r),t.lineTo(Yf*o+$f*a,Yf*a-$f*o),t.lineTo(Yf*u+$f*s,Yf*s-$f*u),t.closePath()}},Jf=[Df,jf,Of,Uf,If,Wf,Gf],Zf=function(){function t(){var t;if(r||(r=t=L()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=yf(Df),e=yf(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:yf(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:yf(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},Qf=function(){};ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Kf=function(t){return new ft(t)};ht.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var th=function(t){return new ht(t)};pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:lt(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var nh=function(t){return new pt(t)};dt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*a),this._beta*n[s]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var eh=function t(n){function e(t){return 1===n?new ft(t):new dt(t,n)}return e.beta=function(n){return t(+n)},e}(.85);vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var rh=function t(n){function e(t){return new vt(t,n)}return e.tension=function(n){return t(+n)},e}(0);yt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ih=function t(n){function e(t){return new yt(t,n)}return e.tension=function(n){return t(+n)},e}(0);mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var oh=function t(n){function e(t){return new mt(t,n)}return e.tension=function(n){return t(+n)},e}(0);xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var ah=function t(n){function e(t){return n?new xt(t,n):new vt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);bt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var uh=function t(n){function e(t){return n?new bt(t,n):new yt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var sh=function t(n){function e(t){return n?new wt(t,n):new mt(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Mt.prototype={areaStart:Qf,areaEnd:Qf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var ch=function(t){return new Mt(t)};Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ct(this,this._t0,St(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Ct(this,St(this,e=Tt(this,t,n)),e);break;default:Ct(this,this._t0,e=Tt(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Et.prototype=Object.create(Nt.prototype)).point=function(t,n){Nt.prototype.point.call(this,n,t)},At.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Lt(t),i=Lt(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var lh=function(t){return new jt(t)};Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var fh=function(t){return new Pt(t,.5)},hh=Array.prototype.slice,ph=function(t,n){if((r=t.length)>1)for(var e,r,i=1,o=t[n[0]],a=o.length;i<r;++i){e=o,o=t[n[i]];for(var u=0;u<a;++u)o[u][1]+=o[u][0]=isNaN(e[u][1])?e[u][0]:e[u][1]}},dh=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},gh=function(){function t(t){var o,a,u=n.apply(this,arguments),s=t.length,c=u.length,l=new Array(c);for(o=0;o<c;++o){for(var f,h=u[o],p=l[o]=new Array(s),d=0;d<s;++d)p[d]=f=[0,+i(t[d],h,d,t)],f.data=t[d];p.key=h}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return r(l,a),l}var n=yf([]),e=dh,r=ph,i=zt;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:yf(hh.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:yf(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?dh:"function"==typeof n?n:yf(hh.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?ph:n,t):r},t},vh=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}ph(t,n)}},yh=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}ph(t,n)}},mh=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,s=0,c=0;u<i;++u){for(var l=t[n[u]],f=l[a][1]||0,h=l[a-1][1]||0,p=(f-h)/2,d=0;d<u;++d){var g=t[n[d]],v=g[a][1]||0,y=g[a-1][1]||0;p+=v-y}s+=f,c+=p*f}e[a-1][1]+=e[a-1][0]=o,s&&(o-=c/s)}e[a-1][1]+=e[a-1][0]=o,ph(t,n)}},_h=function(t){var n=t.map(Rt);return dh(t).sort(function(t,e){return n[t]-n[e]})},xh=function(t){return _h(t).reverse()},bh=function(t){var n,e,r=t.length,i=t.map(Rt),o=dh(t).sort(function(t,n){return i[n]-i[t]}),a=0,u=0,s=[],c=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],s.push(e)):(u+=i[e],c.push(e));return c.reverse().concat(s)},wh=function(t){return dh(t).reverse()},Mh=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},kh=.7,Th=1/kh,Sh=/^#([0-9a-f]{3})$/,Ch=/^#([0-9a-f]{6})$/,Nh=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Eh=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Ah=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,qh=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Dh=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,jh=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Lh={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,rebeccapurple:6697881,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};Mh(It,Ut,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Mh(Xt,$t,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new Xt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Mh(Zt,Jt,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new Zt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new Zt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Xt(Qt(t>=240?t-240:t+120,i,r),Qt(t,i,r),Qt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Ph=Math.PI/180,Oh=180/Math.PI,Fh=18,zh=.95047,Rh=1,Hh=1.08883,Ih=4/29,Uh=6/29,Bh=3*Uh*Uh,Wh=Uh*Uh*Uh;Mh(nn,tn,Ht(It,{brighter:function(t){return new nn(this.l+Fh*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new nn(this.l-Fh*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Rh*rn(t),n=zh*rn(n),e=Hh*rn(e),new Xt(on(3.2404542*n-1.5371385*t-.4985314*e),on(-.969266*n+1.8760108*t+.041556*e),on(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Mh(cn,sn,Ht(It,{brighter:function(t){return new cn(this.h,this.c,this.l+Fh*(null==t?1:t),this.opacity)},darker:function(t){return new cn(this.h,this.c,this.l-Fh*(null==t?1:t),this.opacity)},rgb:function(){return Kt(this).rgb()}}));var Yh=-.14861,$h=1.78277,Xh=-.29227,Vh=-.90649,Gh=1.97294,Jh=Gh*Vh,Zh=Gh*$h,Qh=$h*Xh-Vh*Yh;Mh(hn,fn,Ht(It,{brighter:function(t){return t=null==t?Th:Math.pow(Th,t),new hn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?kh:Math.pow(kh,t),new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Ph,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Xt(255*(n+e*(Yh*r+$h*i)),255*(n+e*(Xh*r+Vh*i)),255*(n+e*(Gh*r)),this.opacity)}}));var Kh,tp,np,ep,rp=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return pn((e-r/n)*n,a,i,o,u)}},ip=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return pn((e-r/n)*n,i,o,a,u)}},op=function(t){return function(){return t}},ap=function t(n){function e(t,n){var e=r((t=$t(t)).r,(n=$t(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),a=r(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var r=yn(n);return e.gamma=t,e}(1),up=_n(rp),sp=_n(ip),cp=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),a=new Array(r);for(e=0;e<i;++e)o[e]=vp(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}},lp=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},fp=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},hp=function(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=vp(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},pp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dp=new RegExp(pp.source,"g"),gp=function(t,n){var e,r,i,o=pp.lastIndex=dp.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=pp.exec(t))&&(r=dp.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:fp(e,r)})),o=dp.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?bn(s[0].x):xn(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})},vp=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?op(n):("number"===r?fp:"string"===r?(e=Ut(n))?(n=e,ap):gp:n instanceof Ut?ap:n instanceof Date?lp:Array.isArray(n)?cp:isNaN(n)?hp:fp)(t,n)},yp=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}},mp=180/Math.PI,_p={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},xp=function(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*mp,skewX:Math.atan(s)*mp,scaleX:a,scaleY:u}},bp=kn(wn,"px, ","px)","deg)"),wp=kn(Mn,", ",")",")"),Mp=Math.SQRT2,kp=2,Tp=4,Sp=1e-12,Cp=function(t,n){var e,r,i=t[0],o=t[1],a=t[2],u=n[0],s=n[1],c=n[2],l=u-i,f=s-o,h=l*l+f*f;if(h<Sp)r=Math.log(c/a)/Mp,e=function(t){return[i+t*l,o+t*f,a*Math.exp(Mp*t*r)]};else{var p=Math.sqrt(h),d=(c*c-a*a+Tp*h)/(2*a*kp*p),g=(c*c-a*a-Tp*h)/(2*c*kp*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/Mp,e=function(t){var n=t*r,e=Tn(v),u=a/(kp*p)*(e*Cn(Mp*n+v)-Sn(v));return[i+u*l,o+u*f,a*e/Tn(Mp*n+v)]}}return e.duration=1e3*r,e},Np=Nn(vn),Ep=Nn(mn),Ap=An(vn),qp=An(mn),Dp=qn(vn),jp=qn(mn),Lp=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},Pp={value:function(){}};jn.prototype=Dn.prototype={constructor:jn,on:function(t,n){var e,r=this._,i=Ln(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=On(r[e],t.name,n);else if(null==n)for(e in r)r[e]=On(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Pn(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new jn(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Op,Fp,zp=function(t){function n(t,n){var r,i,o=e(t,function(t,e){return r?r(t,e-1):(i=t,void(r=n?zn(t,n):Fn(t)))});return o.columns=i,o}function e(t,n){function e(){if(l>=c)return a;if(i)return i=!1,o;var n,e=l;if(34===t.charCodeAt(e)){for(var r=e;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return l=r+2,n=t.charCodeAt(r+1),13===n?(i=!0,10===t.charCodeAt(r+2)&&++l):10===n&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;l<c;){var u=1;if(n=t.charCodeAt(l++),10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(l)&&(++l,++u);else if(n!==s)continue;return t.slice(e,l-u)}return t.slice(e)}for(var r,i,o={},a={},u=[],c=t.length,l=0,f=0;(r=e())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=e();n&&null==(h=n(h,f++))||u.push(h)}return u}function r(n,e){return null==e&&(e=Rn(n)),[e.map(a).join(t)].concat(n.map(function(n){return e.map(function(t){return a(n[t])}).join(t)})).join("\n")}function i(t){return t.map(o).join("\n")}function o(n){return n.map(a).join(t)}function a(t){return null==t?"":u.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}},Rp=zp(","),Hp=Rp.parse,Ip=Rp.parseRows,Up=Rp.format,Bp=Rp.formatRows,Wp=zp("\t"),Yp=Wp.parse,$p=Wp.parseRows,Xp=Wp.format,Vp=Wp.formatRows,Gp=function(t,n){function e(t){var n,e=l.status;if(!e&&In(l)||e>=200&&e<300||304===e){if(a)try{n=a.call(r,l)}catch(t){return void s.call("error",r,t)}else n=l;s.call("load",r,n)}else s.call("error",r,t)}var r,i,a,u,s=Dn("beforesend","progress","load","error"),c=o(),l=new XMLHttpRequest,f=null,h=null,p=0;if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){l.readyState>3&&e(t)},l.onprogress=function(t){s.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c.get(t):(null==n?c.remove(t):c.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(p=+t,r):p},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",r)},response:function(t){return a=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,o){return l.open(n,t,!0,f,h),null==i||c.has("accept")||c.set("accept",i+",*/*"),l.setRequestHeader&&c.each(function(t,n){l.setRequestHeader(n,t)}),null!=i&&l.overrideMimeType&&l.overrideMimeType(i),null!=u&&(l.responseType=u),p>0&&(l.timeout=p),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=Hn(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),s.call("beforesend",r,l),l.send(null==e?null:e),r},abort:function(){return l.abort(),r},on:function(){var t=s.on.apply(s,arguments);return t===s?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r},Jp=function(t,n){return function(e,r){var i=Gp(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},Zp=Jp("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),Qp=Jp("application/json",function(t){return JSON.parse(t.responseText)}),Kp=Jp("text/plain",function(t){return t.responseText}),td=Jp("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),nd=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=Gp(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(Un(n,r=t)):r},o.row(r),i?o.get(i):o}},ed=nd("text/csv",Hp),rd=nd("text/tab-separated-values",Yp),id=0,od=0,ad=0,ud=1e3,sd=0,cd=0,ld=0,fd="object"==typeof performance&&performance.now?performance:Date,hd="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};Yn.prototype=$n.prototype={constructor:Yn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Bn():+e)+(null==n?0:+n),this._next||Fp===this||(Fp?Fp._next=this:Op=this,Fp=this),this._call=t,this._time=e,Zn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zn())}};var pd=function(t,n,e){var r=new Yn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},dd=function(t,n,e){var r=new Yn,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Bn():+e,r.restart(function o(a){a+=i,r.restart(o,i+=n,e),t(a)},n,e),r)},gd=new Date,vd=new Date,yd=Qn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});yd.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Qn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):yd:null};var md=yd.range,_d=1e3,xd=6e4,bd=36e5,wd=864e5,Md=6048e5,kd=Qn(function(t){t.setTime(Math.floor(t/_d)*_d)},function(t,n){t.setTime(+t+n*_d)},function(t,n){return(n-t)/_d},function(t){return t.getUTCSeconds()}),Td=kd.range,Sd=Qn(function(t){t.setTime(Math.floor(t/xd)*xd)},function(t,n){t.setTime(+t+n*xd)},function(t,n){return(n-t)/xd},function(t){return t.getMinutes()}),Cd=Sd.range,Nd=Qn(function(t){var n=t.getTimezoneOffset()*xd%bd;n<0&&(n+=bd),t.setTime(Math.floor((+t-n)/bd)*bd+n)},function(t,n){t.setTime(+t+n*bd)},function(t,n){return(n-t)/bd},function(t){return t.getHours()}),Ed=Nd.range,Ad=Qn(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xd)/wd},function(t){return t.getDate()-1}),qd=Ad.range,Dd=Kn(0),jd=Kn(1),Ld=Kn(2),Pd=Kn(3),Od=Kn(4),Fd=Kn(5),zd=Kn(6),Rd=Dd.range,Hd=jd.range,Id=Ld.range,Ud=Pd.range,Bd=Od.range,Wd=Fd.range,Yd=zd.range,$d=Qn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Xd=$d.range,Vd=Qn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Vd.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var Gd=Vd.range,Jd=Qn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*xd)},function(t,n){return(n-t)/xd},function(t){return t.getUTCMinutes()}),Zd=Jd.range,Qd=Qn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*bd)},function(t,n){return(n-t)/bd},function(t){return t.getUTCHours()}),Kd=Qd.range,tg=Qn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/wd},function(t){return t.getUTCDate()-1}),ng=tg.range,eg=te(0),rg=te(1),ig=te(2),og=te(3),ag=te(4),ug=te(5),sg=te(6),cg=eg.range,lg=rg.range,fg=ig.range,hg=og.range,pg=ag.range,dg=ug.range,gg=sg.range,vg=Qn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),yg=vg.range,mg=Qn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var _g,xg=mg.range,bg=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},wg=function(t){return t=bg(Math.abs(t)),t?t[1]:NaN},Mg=function(t,n){return function(e,r){for(var i=e.length,o=[],a=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(e.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}},kg=function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},Tg=function(t,n){var e=bg(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(_g=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+bg(t,Math.max(0,n+o-1))[0]},Sg=function(t,n){var e=bg(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Cg={"":kg,"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Sg(100*t,n)},r:Sg,s:Tg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ng=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,Eg=function(t){return new ne(t)};ne.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Ag,qg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Dg=function(t){function n(t){function n(t){var n,i,s,m=d,_=g;if("c"===p)_=v(t)+_,t="";else{t=+t;var x=(t<0||1/t<0)&&(t*=-1,!0);if(t=v(t,h),x)for(n=-1,i=t.length,x=!1;++n<i;)if(s=t.charCodeAt(n),48<s&&s<58||"x"===p&&96<s&&s<103||"X"===p&&64<s&&s<71){x=!0;break}if(m=(x?"("===u?u:"-":"-"===u||"("===u?"":u)+m,_=_+("s"===p?qg[8+_g/3]:"")+(x&&"("===u?")":""),y)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){_=(46===s?o+t.slice(n+1):t.slice(n))+_,t=t.slice(0,n);break}}f&&!c&&(t=r(t,1/0));var b=m.length+t.length+_.length,w=b<l?new Array(l-b+1).join(e):"";switch(f&&c&&(t=r(w+t,w.length?l-_.length:1/0),w=""),a){case"<":return m+t+_+w;case"=":return m+w+t+_;case"^":return w.slice(0,b=w.length>>1)+m+t+_+w.slice(b)}return w+m+t+_}t=Eg(t);var e=t.fill,a=t.align,u=t.sign,s=t.symbol,c=t.zero,l=t.width,f=t.comma,h=t.precision,p=t.type,d="$"===s?i[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===s?i[1]:/[%p]/.test(p)?"%":"",v=Cg[p],y=!p||/[defgprs%]/.test(p);return h=null==h?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=Eg(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(wg(e)/3))),o=Math.pow(10,-i),a=qg[8+i/3];return function(t){return r(o*t)+a}}var r=t.grouping&&t.thousands?Mg(t.grouping,t.thousands):ee,i=t.currency,o=t.decimal;return{format:n,formatPrefix:e}};re({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var jg,Lg=function(t){return Math.max(0,-wg(Math.abs(t)))},Pg=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(wg(n)/3)))-wg(Math.abs(t)))},Og=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,wg(n)-wg(t))+1},Fg={"-":"",_:" ",0:"0"},zg=/^\s*\d+/,Rg=/^%/,Hg=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;nr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]});var Ig="%Y-%m-%dT%H:%M:%S.%LZ",Ug=Date.prototype.toISOString?er:t.utcFormat(Ig),Bg=+new Date("2000-01-01T00:00:00.000Z")?rr:t.utcParse(Ig),Wg=Array.prototype,Yg=Wg.map,$g=Wg.slice,Xg={name:"implicit"},Vg=function(t){return function(){return t}},Gg=function(t){return+t},Jg=[0,1],Zg=function(n,r,i){var o,a=n[0],u=n[n.length-1],s=e(a,u,null==r?10:r);switch(i=Eg(null==i?",f":i),i.type){case"s":var c=Math.max(Math.abs(a),Math.abs(u));return null!=i.precision||isNaN(o=Pg(s,c))||(i.precision=o),t.formatPrefix(i,c);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Og(s,Math.max(Math.abs(a),Math.abs(u))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Lg(s))||(i.precision=o-2*("%"===i.type))}return t.format(i)},Qg=function(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t},Kg=1e3,tv=60*Kg,nv=60*tv,ev=24*nv,rv=7*ev,iv=30*ev,ov=365*ev,av=function(){return jr(Vd,$d,Dd,Ad,Nd,Sd,kd,yd,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},uv=function(){return jr(mg,vg,eg,tg,Qd,Jd,kd,yd,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},sv=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},cv=sv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),lv=sv("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),fv=sv("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),hv=sv("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),pv=jp(fn(300,.5,0),fn(-240,.5,1)),dv=jp(fn(-100,.75,.35),fn(80,1.5,.8)),gv=jp(fn(260,.75,.35),fn(80,1.5,.8)),vv=fn(),yv=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return vv.h=360*t-100,vv.s=1.5-1.5*n,vv.l=.8-.9*n,vv+""},mv=Lr(sv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_v=Lr(sv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),xv=Lr(sv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bv=Lr(sv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),wv="http://www.w3.org/1999/xhtml",Mv={svg:"http://www.w3.org/2000/svg",xhtml:wv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},kv=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Mv.hasOwnProperty(n)?{space:Mv[n],local:t}:t},Tv=function(t){var n=kv(t);return(n.local?Fr:Or)(n)},Sv=0;Rr.prototype=zr.prototype={constructor:Rr,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Cv=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Nv=document.documentElement;if(!Nv.matches){var Ev=Nv.webkitMatchesSelector||Nv.msMatchesSelector||Nv.mozMatchesSelector||Nv.oMatchesSelector;Cv=function(t){return function(){return Ev.call(this,t)}}}}var Av=Cv,qv={};if(t.event=null,"undefined"!=typeof document){var Dv=document.documentElement;"onmouseenter"in Dv||(qv={mouseenter:"mouseover",mouseleave:"mouseout"})}var jv=function(t,n,e){var r,i,o=Ur(t+""),a=o.length;{if(!(arguments.length<2)){for(u=n?Wr:Br,null==e&&(e=!1),r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}},Lv=function(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e},Pv=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Ov=function(t){var n=Lv();return n.changedTouches&&(n=n.changedTouches[0]),Pv(t,n)},Fv=function(t){return null==t?$r:function(){return this.querySelector(t)}},zv=function(t){"function"!=typeof t&&(t=Fv(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,c=r[i]=new Array(s),l=0;l<s;++l)(o=u[l])&&(a=t.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new qi(r,this._parents)},Rv=function(t){return null==t?Xr:function(){return this.querySelectorAll(t)}},Hv=function(t){"function"!=typeof t&&(t=Rv(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,c=0;c<s;++c)(a=u[c])&&(r.push(t.call(a,a.__data__,c,u)),i.push(a));return new qi(r,i)},Iv=function(t){"function"!=typeof t&&(t=Av(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new qi(r,this._parents)},Uv=function(t){return new Array(t.length)},Bv=function(){return new qi(this._enter||this._groups.map(Uv),this._parents)};Vr.prototype={constructor:Vr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Wv=function(t){return function(){return t}},Yv="$",$v=function(t,n){if(!t)return p=new Array(this.size()),c=-1,this.each(function(t){p[++c]=t}),p;var e=n?Jr:Gr,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Wv(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),c=0;c<o;++c){var l=r[c],f=i[c],h=f.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,g=u[c]=new Array(d),v=a[c]=new Array(d),y=s[c]=new Array(h);e(l,f,g,v,y,p,n);for(var m,_,x=0,b=0;x<d;++x)if(m=g[x]){for(x>=b&&(b=x+1);!(_=v[b])&&++b<d;);m._next=_||null}}return a=new qi(a,r),a._enter=u,a._exit=s,a},Xv=function(){return new qi(this._exit||this._groups.map(Uv),this._parents)},Vv=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=n[u],l=e[u],f=c.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new qi(a,this._parents)},Gv=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Jv=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Zr);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,c=i[o]=new Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(n)}return new qi(i,this._parents).order()},Zv=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Qv=function(){var t=new Array(this.size()),n=-1;return this.each(function(){
+t[++n]=this}),t},Kv=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},ty=function(){var t=0;return this.each(function(){++t}),t},ny=function(){return!this.node()},ey=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},ry=function(t,n){var e=kv(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Kr:Qr:"function"==typeof n?e.local?ri:ei:e.local?ni:ti)(e,n))},iy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},oy=function(t,n,e){var r;return arguments.length>1?this.each((null==n?ii:"function"==typeof n?ai:oi)(t,n,null==e?"":e)):iy(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},ay=function(t,n){return arguments.length>1?this.each((null==n?ui:"function"==typeof n?ci:si)(t,n)):this.node()[t]};hi.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var uy=function(t,n){var e=li(t+"");if(arguments.length<2){for(var r=fi(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?yi:n?gi:vi)(e,n))},sy=function(t){return arguments.length?this.each(null==t?mi:("function"==typeof t?xi:_i)(t)):this.node().textContent},cy=function(t){return arguments.length?this.each(null==t?bi:("function"==typeof t?Mi:wi)(t)):this.node().innerHTML},ly=function(){return this.each(ki)},fy=function(){return this.each(Ti)},hy=function(t){var n="function"==typeof t?t:Tv(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},py=function(t,n){var e="function"==typeof t?t:Tv(t),r=null==n?Si:"function"==typeof n?n:Fv(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},dy=function(){return this.each(Ci)},gy=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},vy=function(t,n){return this.each(("function"==typeof n?Ai:Ei)(t,n))},yy=[null];qi.prototype=Di.prototype={constructor:qi,select:zv,selectAll:Hv,filter:Iv,data:$v,enter:Bv,exit:Xv,merge:Vv,order:Gv,sort:Jv,call:Zv,nodes:Qv,node:Kv,size:ty,empty:ny,each:ey,attr:ry,style:oy,property:ay,classed:uy,text:sy,html:cy,raise:ly,lower:fy,append:hy,insert:py,remove:dy,datum:gy,on:jv,dispatch:vy};var my=function(t){return"string"==typeof t?new qi([[document.querySelector(t)]],[document.documentElement]):new qi([[t]],yy)},_y=function(t){return"string"==typeof t?new qi([document.querySelectorAll(t)],[document.documentElement]):new qi([null==t?[]:t],yy)},xy=function(t,n,e){arguments.length<3&&(e=n,n=Lv().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Pv(t,r);return null},by=function(t,n){null==n&&(n=Lv().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Pv(t,n[e]);return i},wy=Dn("start","end","interrupt"),My=[],ky=0,Ty=1,Sy=2,Cy=3,Ny=4,Ey=5,Ay=6,qy=function(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};Oi(t,e,{name:n,index:r,group:i,on:wy,tween:My,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ky})},Dy=function(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>Sy&&e.state<Ey,e.state=Ay,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}},jy=function(t){return this.each(function(){Dy(this,t)})},Ly=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Pi(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Fi:zi)(e,t,n))},Py=function(t,n){var e;return("number"==typeof n?fp:n instanceof Ut?ap:(e=Ut(n))?(n=e,ap):gp)(t,n)},Oy=function(t,n){var e=kv(t),r="transform"===e?wp:Py;return this.attrTween(t,"function"==typeof n?(e.local?Yi:Wi)(e,r,Ri(this,"attr."+t,n)):null==n?(e.local?Ii:Hi)(e):(e.local?Bi:Ui)(e,r,n))},Fy=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=kv(t);return this.tween(e,(r.local?$i:Xi)(r,n))},zy=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Vi:Gi)(n,t)):Pi(this.node(),n).delay},Ry=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ji:Zi)(n,t)):Pi(this.node(),n).duration},Hy=function(t){var n=this._id;return arguments.length?this.each(Qi(n,t)):Pi(this.node(),n).ease},Iy=function(t){"function"!=typeof t&&(t=Av(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],c=0;c<u;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&s.push(o);return new co(r,this._parents,this._name,this._id)},Uy=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,c=n[u],l=e[u],f=c.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new co(a,this._parents,this._name,this._id)},By=function(t,n){var e=this._id;return arguments.length<2?Pi(this.node(),e).on.on(t):this.each(to(e,t,n))},Wy=function(){return this.on("end.remove",no(this._id))},Yy=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Fv(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,c=r[a],l=c.length,f=o[a]=new Array(l),h=0;h<l;++h)(u=c[h])&&(s=t.call(u,u.__data__,h,c))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,qy(f[h],n,e,h,f,Pi(u,e)));return new co(o,this._parents,n,e)},$y=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Rv(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var h,p=t.call(s,s.__data__,f,c),d=Pi(s,e),g=0,v=p.length;g<v;++g)(h=p[g])&&qy(h,n,e,g,p,d);o.push(p),a.push(s)}return new co(o,a,n,e)},Xy=Di.prototype.constructor,Vy=function(){return new Xy(this._groups,this._parents)},Gy=function(t,n,e){var r="transform"==(t+="")?bp:Py;return null==n?this.styleTween(t,eo(t,r)).on("end.style."+t,ro(t)):this.styleTween(t,"function"==typeof n?oo(t,r,Ri(this,"style."+t,n)):io(t,r,n),e)},Jy=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,ao(t,n,null==e?"":e))},Zy=function(t){return this.tween("text","function"==typeof t?so(Ri(this,"text",t)):uo(null==t?"":t+""))},Qy=function(){for(var t=this._name,n=this._id,e=fo(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=Pi(a,n);qy(a,t,e,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new co(r,this._parents,t,e)},Ky=0,tm=Di.prototype;co.prototype=lo.prototype={constructor:co,select:Yy,selectAll:$y,filter:Iy,merge:Uy,selection:Vy,transition:Qy,call:tm.call,nodes:tm.nodes,node:tm.node,size:tm.size,empty:tm.empty,each:tm.each,on:By,attr:Oy,attrTween:Fy,style:Gy,styleTween:Jy,text:Zy,remove:Wy,tween:Ly,delay:zy,duration:Ry,ease:Hy};var nm={time:null,delay:0,duration:250,ease:m},em=function(t){var n,e;t instanceof co?(n=t._id,t=t._name):(n=fo(),(e=nm).time=Bn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,c=0;c<s;++c)(a=u[c])&&qy(a,t,n,c,u,e||ho(a,n));return new co(r,this._parents,t,n)};Di.prototype.interrupt=jy,Di.prototype.transition=em;var rm=[null],im=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Ty&&e.name===n)return new co([[t]],rm,n,+r)}return null},om=Array.prototype.slice,am=function(t){return t},um=1,sm=2,cm=3,lm=4,fm=1e-6,hm=function(){function t(t){var o,a=0;t.eachAfter(function(t){var e=t.children;e?(t.x=ko(e),t.y=So(e)):(t.x=o?a+=n(t,o):0,t.y=0,o=t)});var u=No(t),s=Eo(t),c=u.x-n(u,s)/2,l=s.x+n(s,u)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-c)/(l-c)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=Mo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},pm=function(t){var n,e,r,i,o=this,a=[o];do for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);while(a.length);return this},dm=function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},gm=function(t){for(var n,e,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=a.pop();)t(i);return this},vm=function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},ym=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},mm=function(t){for(var n=this,e=Ao(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},_m=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},xm=function(){var t=[];return this.each(function(n){t.push(n)}),t},bm=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},wm=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n};Oo.prototype=qo.prototype={constructor:Oo,each:pm,eachAfter:gm,eachBefore:dm,sum:vm,sort:ym,path:mm,ancestors:_m,descendants:xm,leaves:bm,links:wm,copy:Do};var Mm=function(t){for(var n,e=(t=t.slice()).length,r=null,i=r;e;){var o=new Fo(t[e-1]);i=i?i.next=o:r=o,t[n]=t[--e]}return{head:r,tail:i}},km=function(t){return Ro(Mm(t),[])},Tm=function(t){return Xo(t),t},Sm=function(t){return function(){return t}},Cm=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(Qo(n)).eachAfter(Ko(i,.5)).eachBefore(ta(1)):t.eachBefore(Qo(Zo)).eachAfter(Ko(Jo,1)).eachAfter(Ko(i,t.r/Math.min(e,r))).eachBefore(ta(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=Jo;return t.radius=function(e){return arguments.length?(n=Vo(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:Sm(+n),t):i},t},Nm=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Em=function(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-n)/t.value;++u<s;)o=a[u],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*c},Am=function(){function t(t){var a=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/a,t.eachBefore(n(r,a)),o&&t.eachBefore(Nm),t}function n(t,n){return function(e){e.children&&Em(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,a=e.x1-i,u=e.y1-i;a<r&&(r=a=(r+a)/2),u<o&&(o=u=(o+u)/2),e.x0=r,e.y0=o,e.x1=a,e.y1=u}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t},qm="$",Dm={depth:-1},jm={},Lm=function(){function t(t){var r,i,o,a,u,s,c,l=t.length,f=new Array(l),h={};for(i=0;i<l;++i)r=t[i],u=f[i]=new Oo(r),null!=(s=n(r,i,t))&&(s+="")&&(c=qm+(u.id=s),h[c]=c in h?jm:u);for(i=0;i<l;++i)if(u=f[i],s=e(t[i],i,t),null!=s&&(s+="")){if(a=h[qm+s],!a)throw new Error("missing: "+s);if(a===jm)throw new Error("ambiguous: "+s);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Dm,o.eachBefore(function(t){t.depth=t.parent.depth+1,--l}).eachBefore(Po),o.parent=null,l>0)throw new Error("cycle");return o}var n=na,e=ea;return t.id=function(e){return arguments.length?(n=Go(e),t):n},t.parentId=function(n){return arguments.length?(e=Go(n),t):e},t};ca.prototype=Object.create(Oo.prototype);var Pm=function(){function t(t){var r=la(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),s)t.eachBefore(i);else{var c=t,l=t,f=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)});var h=c===l?1:o(c,l)/2,p=h-c.x,d=a/(l.x+h+p),g=u/(f.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*g})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){ua(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+o(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,a=t,u=n,s=i.parent.children[0],c=i.m,l=a.m,f=u.m,h=s.m;u=oa(u),i=ia(i),u&&i;)s=ia(s),a=oa(a),a.a=t,r=u.z+f-i.z-c+o(u._,i._),r>0&&(aa(sa(u,t,e),t,r),c+=r,l+=r),f+=u.m,c+=i.m,h+=s.m,l+=a.m;u&&!oa(a)&&(a.t=u,a.m+=f-l),i&&!ia(s)&&(s.t=i,s.m+=c-h,e=t)}return e}function i(t){t.x*=a,t.y=t.depth*u}var o=ra,a=1,u=1,s=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(s=!1,a=+n[0],u=+n[1],t):s?null:[a,u]},t.nodeSize=function(n){return arguments.length?(s=!0,a=+n[0],u=+n[1],t):s?[a,u]:null},t},Om=function(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(i-e)/t.value;++u<s;)o=a[u],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*c},Fm=(1+Math.sqrt(5))/2,zm=function t(n){function e(t,e,r,i,o){fa(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Fm),Rm=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),a=[0],r&&t.eachBefore(Nm),t}function n(t){var n=a[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(n=a[t.depth+1]=u(t)/2,r+=f(t)-n,i+=s(t)-n,o-=c(t)-n,h-=l(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=zm,r=!1,i=1,o=1,a=[0],u=Jo,s=Jo,c=Jo,l=Jo,f=Jo;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=Go(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(u="function"==typeof n?n:Sm(+n),t):u},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(s="function"==typeof n?n:Sm(+n),t):s},t.paddingRight=function(n){return arguments.length?(c="function"==typeof n?n:Sm(+n),t):c},t.paddingBottom=function(n){return arguments.length?(l="function"==typeof n?n:Sm(+n),t):l},t.paddingLeft=function(n){return arguments.length?(f="function"==typeof n?n:Sm(+n),t):f},t},Hm=function(t,n,e,r,i){function o(t,n,e,r,i,a,u){if(t>=n-1){var c=s[t];return c.x0=r,c.y0=i,c.x1=a,c.y1=u,void 0}for(var f=l[t],h=e/2+f,p=t+1,d=n-1;p<d;){var g=p+d>>>1;l[g]<h?p=g+1:d=g}var v=l[p]-f,y=e-v;if(u-i>a-r){var m=(i*y+u*v)/e;o(t,p,v,r,i,a,m),o(p,n,y,r,m,a,u)}else{var _=(r*y+a*v)/e;o(t,p,v,r,i,_,u),o(p,n,y,_,i,a,u)}}var a,u,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=u=a=0;a<c;++a)l[a+1]=u+=s[a].value;o(0,c,t.value,n,e,r,i)},Im=function(t,n,e,r,i){(1&t.depth?Om:Em)(t,n,e,r,i)},Um=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,s,c,l,f=-1,h=a.length,p=t.value;++f<h;){for(u=a[f],s=u.children,c=u.value=0,l=s.length;c<l;++c)u.value+=s[c].value;u.dice?Em(u,e,r,i,r+=(o-r)*u.value/p):Om(u,e,r,e+=(i-e)*u.value/p,o),p-=u.value}else t._squarify=a=fa(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Fm),Bm=function(t,n){function e(){var e,i,o=r.length,a=0,u=0;for(e=0;e<o;++e)i=r[e],a+=i.x,u+=i.y;for(a=a/o-t,u=u/o-n,e=0;e<o;++e)i=r[e],i.x-=a,i.y-=u}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e},Wm=function(t){return function(){return t}},Ym=function(){return 1e-6*(Math.random()-.5)},$m=function(t){function n(){function t(t,e,r,i,o){var u=t.data,p=t.r,d=f+p;{if(!u)return e>c+d||i<c-d||r>l+d||o<l-d;if(u.index>n){var g=c-u.x-u.vx,v=l-u.y-u.vy,y=g*g+v*v;y<d*d&&(0===g&&(g=Ym(),y+=g*g),0===v&&(v=Ym(),y+=v*v),y=(d-(y=Math.sqrt(y)))/y*a,s.vx+=(g*=y)*(d=(p*=p)/(h+p)),s.vy+=(v*=y)*d,u.vx-=g*(d=1-d),u.vy-=v*d)}}}for(var n,r,s,c,l,f,h,p=i.length,d=0;d<u;++d)for(r=H(i,ha,pa).visitAfter(e),n=0;n<p;++n)s=i[n],f=o[n],h=f*f,c=s.x+s.vx,l=s.y+s.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e=i.length;for(o=new Array(e),n=0;n<e;++n)o[n]=+t(i[n],n,i)}}var i,o,a=1,u=1;return"function"!=typeof t&&(t=Wm(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(u=+t,n):u},n.strength=function(t){return arguments.length?(a=+t,n):a},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:Wm(+e),r(),n):t},n},Xm=function(t){function n(t){return 1/Math.min(l[t.source.index],l[t.target.index])}function e(n){for(var e=0,r=t.length;e<g;++e)for(var i,o,a,c,l,h,p,d=0;d<r;++d)i=t[d],o=i.source,a=i.target,c=a.x+a.vx-o.x-o.vx||Ym(),l=a.y+a.vy-o.y-o.vy||Ym(),h=Math.sqrt(c*c+l*l),h=(h-s[d])/h*n*u[d],c*=h,l*=h,a.vx-=c*(p=f[d]),a.vy-=l*p,o.vx+=c*(p=1-p),o.vy+=l*p}function r(){if(c){var n,e,r=c.length,p=t.length,d=o(c,h);for(n=0,l=new Array(r);n<r;++n)l[n]=0;for(n=0;n<p;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=ga(d,e.source)),"object"!=typeof e.target&&(e.target=ga(d,e.target)),++l[e.source.index],++l[e.target.index];for(n=0,f=new Array(p);n<p;++n)e=t[n],f[n]=l[e.source.index]/(l[e.source.index]+l[e.target.index]);u=new Array(p),i(),s=new Array(p),a()}}function i(){if(c)for(var n=0,e=t.length;n<e;++n)u[n]=+p(t[n],n,t)}function a(){if(c)for(var n=0,e=t.length;n<e;++n)s[n]=+d(t[n],n,t)}var u,s,c,l,f,h=da,p=n,d=Wm(30),g=1;return null==t&&(t=[]),e.initialize=function(t){c=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(h=t,e):h},e.iterations=function(t){return arguments.length?(g=+t,e):g},e.strength=function(t){return arguments.length?(p="function"==typeof t?t:Wm(+t),i(),e):p},e.distance=function(t){return arguments.length?(d="function"==typeof t?t:Wm(+t),a(),e):d},e},Vm=10,Gm=Math.PI*(3-Math.sqrt(5)),Jm=function(t){function n(){e(),d.call("tick",a),u<s&&(p.stop(),d.call("end",a))}function e(){var n,e,r=t.length;for(u+=(l-u)*c,h.each(function(t){t(u)}),n=0;n<r;++n)e=t[n],null==e.fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(e.y=e.fy,e.vy=0)}function r(){for(var n,e=0,r=t.length;e<r;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=Vm*Math.sqrt(e),o=e*Gm;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var a,u=1,s=.001,c=1-Math.pow(s,1/300),l=0,f=.6,h=o(),p=$n(n),d=Dn("tick","end");return null==t&&(t=[]),r(),a={tick:e,restart:function(){return p.restart(n),a},stop:function(){return p.stop(),a},nodes:function(n){return arguments.length?(t=n,r(),h.each(i),a):t},alpha:function(t){return arguments.length?(u=+t,a):u},alphaMin:function(t){return arguments.length?(s=+t,a):s},alphaDecay:function(t){return arguments.length?(c=+t,a):+c},alphaTarget:function(t){return arguments.length?(l=+t,a):l},velocityDecay:function(t){return arguments.length?(f=1-t,a):1-f},force:function(t,n){return arguments.length>1?(null==n?h.remove(t):h.set(t,i(n)),a):h.get(t)},find:function(n,e,r){var i,o,a,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)u=t[c],i=n-u.x,o=e-u.y,a=i*i+o*o,a<r&&(s=u,r=a);return s},on:function(t,n){return arguments.length>1?(d.on(t,n),a):d.on(t)}}},Zm=function(){function t(t){var n,u=i.length,s=H(i,va,ya).visitAfter(e);for(a=t,n=0;n<u;++n)o=i[n],s.visit(r)}function n(){if(i){var t,n=i.length;for(u=new Array(n),t=0;t<n;++t)u[t]=+s(i[t],t,i)}}function e(t){var n,e,r,i,o,a=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=n.value)&&(a+=e,r+=e*n.x,i+=e*n.y);t.x=r/a,t.y=i/a}else{n=t,n.x=n.data.x,n.y=n.data.y;do a+=u[n.data.index];while(n=n.next)}t.value=a}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,s=t.y-o.y,h=r-n,p=i*i+s*s;if(h*h/f<p)return p<l&&(0===i&&(i=Ym(),p+=i*i),0===s&&(s=Ym(),p+=s*s),p<c&&(p=Math.sqrt(c*p)),o.vx+=i*t.value*a/p,o.vy+=s*t.value*a/p),!0;if(!(t.length||p>=l)){(t.data!==o||t.next)&&(0===i&&(i=Ym(),p+=i*i),0===s&&(s=Ym(),p+=s*s),p<c&&(p=Math.sqrt(c*p)));do t.data!==o&&(h=u[t.data.index]*a/p,o.vx+=i*h,o.vy+=s*h);while(t=t.next)}}var i,o,a,u,s=Wm(-30),c=1,l=1/0,f=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Wm(+e),n(),t):s},t.distanceMin=function(n){return arguments.length?(c=n*n,t):Math.sqrt(c)},t.distanceMax=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t.theta=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t},Qm=function(t){function n(t){for(var n,e=0,a=r.length;e<a;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+a(r[n],n,r)}}var r,i,o,a=Wm(.1);return"function"!=typeof t&&(t=Wm(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(a="function"==typeof t?t:Wm(+t),e(),n):a},n.x=function(r){return arguments.length?(t="function"==typeof r?r:Wm(+r),e(),n):t},n},Km=function(t){function n(t){for(var n,e=0,a=r.length;e<a;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+a(r[n],n,r)}}var r,i,o,a=Wm(.1);return"function"!=typeof t&&(t=Wm(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(a="function"==typeof t?t:Wm(+t),e(),n):a},n.y=function(r){return arguments.length?(t="function"==typeof r?r:Wm(+r),e(),n):t},n},t_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},n_=function(t){var n=t.document.documentElement,e=my(t).on("dragstart.drag",t_,!0);"onselectstart"in n?e.on("selectstart.drag",t_,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},e_=function(t){return function(){return t}};xa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var r_=function(){function n(t){t.on("mousedown.drag",e).on("touchstart.drag",o).on("touchmove.drag",a).on("touchend.drag touchcancel.drag",u).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!l&&f.apply(this,arguments)){var n=s("mouse",h.apply(this,arguments),Ov,this,arguments);n&&(my(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),n_(t.event.view),ma(),c=!1,n("start"))}}function r(){t_(),c=!0,d.mouse("drag")}function i(){my(t.event.view).on("mousemove.drag mouseup.drag",null),_a(t.event.view,c),t_(),d.mouse("end")}function o(){if(f.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=h.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(e=s(r[n].identifier,i,xy,this,arguments))&&(ma(),e("start"))}}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(n=0;n<i;++n)(e=d[r[n].identifier])&&(t_(),e("drag"))}function u(){var n,e,r=t.event.changedTouches,i=r.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),n=0;n<i;++n)(e=d[r[n].identifier])&&(ma(),e("end"))}function s(e,r,i,o,a){var u,s,c,l=i(r,e),f=g.copy();if(Yr(new xa(n,"beforestart",u,e,v,l[0],l[1],0,0,f),function(){return null!=(t.event.subject=u=p.apply(o,a))&&(s=u.x-l[0]||0,c=u.y-l[1]||0,!0)}))return function t(h){var p,g=l;switch(h){case"start":d[e]=t,p=v++;break;case"end":delete d[e],--v;case"drag":l=i(r,e),p=v}Yr(new xa(n,h,u,e,p,l[0]+s,l[1]+c,l[0]-g[0],l[1]-g[1],f),f.apply,f,[h,o,a])}}var c,l,f=ba,h=wa,p=Ma,d={},g=Dn("start","drag","end"),v=0;return n.filter=function(t){return arguments.length?(f="function"==typeof t?t:e_(!!t),n):f},n.container=function(t){return arguments.length?(h="function"==typeof t?t:e_(t),n):h},n.subject=function(t){return arguments.length?(p="function"==typeof t?t:e_(t),n):p},n.on=function(){var t=g.on.apply(g,arguments);return t===g?n:t},n},i_=function(t){return function(){return t}};Sa.prototype={constructor:Sa,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Aa(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Na(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Ea(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Ea(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Na(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Aa(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,Na(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Ea(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Na(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Ea(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Na(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Ea(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var o_,a_,u_,s_,c_,l_=[],f_=[],h_=1e-6,p_=1e-12;nu.prototype={constructor:nu,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return Ra(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){for(var i,o=e.site,a=e.halfedges,u=-1,s=a.length,c=n[a[s-1]],l=c.left===o?c.right:c.left;++u<s;)i=l,c=n[a[u]],l=c.left===o?c.right:c.left,i&&l&&r<i.index&&r<l.index&&Ka(o,i,l)<0&&t.push([o.data,i.data,l.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){var r,i=this,o=i._found||0,a=i.cells[o]||i.cells[o=0],u=t-a.site[0],s=n-a.site[1],c=u*u+s*s;do a=i.cells[r=o],o=null,a.halfedges.forEach(function(e){var r=i.edges[e],u=r.left;if(u!==a.site&&u||(u=r.right)){var s=t-u[0],l=n-u[1],f=s*s+l*l;f<c&&(c=f,o=u.index)}});while(null!==o);return i._found=r,null==e||c<=e*e?a.site:null}};var d_=function(){function t(t){return new nu(t.map(function(r,i){var o=[Math.round(n(r,i,t)/h_)*h_,Math.round(e(r,i,t)/h_)*h_];return o.index=i,o.data=r,o}),r)}var n=ka,e=Ta,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:i_(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:i_(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},g_=function(t){return function(){return t}};ru.prototype={constructor:ru,scale:function(t){return 1===t?this:new ru(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ru(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var v_=new ru(1,0,0);iu.prototype=ru.prototype;var y_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},m_=function(){function n(t){t.on("wheel.zoom",c).on("mousedown.zoom",l).on("dblclick.zoom",f).on("touchstart.zoom",h).on("touchmove.zoom",p).on("touchend.zoom touchcancel.zoom",d).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",su)}function e(t,n){return n=Math.max(_,Math.min(x,n)),n===t.k?t:new ru(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new ru(t.k,r,i)}function i(t,n){var e=Math.min(0,t.invertX(n[0][0])-b)||Math.max(0,t.invertX(n[1][0])-w),r=Math.min(0,t.invertY(n[0][1])-M)||Math.max(0,t.invertY(n[1][1])-k);return e||r?t.translate(e,r):t}function o(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function a(t,n,e){t.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=u(t,r),a=m.apply(t,r),s=e||o(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof n?n.apply(t,r):n,h=Cp(l.invert(s).concat(c/l.k),f.invert(s).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new ru(e,s[0]-n[0]*e,s[1]-n[1]*e)}i.zoom(null,t)}})}function u(t,n){for(var e,r=0,i=S.length;r<i;++r)if((e=S[r]).that===t)return e;return new s(t,n)}function s(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=m.apply(t,n)}function c(){function n(){o.wheel=null,o.end()}if(y.apply(this,arguments)){var o=u(this,arguments),a=this.__zoom,s=Math.max(_,Math.min(x,a.k*Math.pow(2,-t.event.deltaY*(t.event.deltaMode?120:1)/500))),c=Ov(this);if(o.wheel)o.mouse[0][0]===c[0]&&o.mouse[0][1]===c[1]||(o.mouse[1]=a.invert(o.mouse[0]=c)),clearTimeout(o.wheel);else{if(a.k===s)return;o.mouse=[c,a.invert(c)],Dy(this),o.start()}y_(),o.wheel=setTimeout(n,E),o.zoom("mouse",i(r(e(a,s),o.mouse[0],o.mouse[1]),o.extent))}}function l(){function n(){y_(),o.moved=!0,o.zoom("mouse",i(r(o.that.__zoom,o.mouse[0]=Ov(o.that),o.mouse[1]),o.extent))}function e(){a.on("mousemove.zoom mouseup.zoom",null),_a(t.event.view,o.moved),y_(),o.end()}if(!v&&y.apply(this,arguments)){var o=u(this,arguments),a=my(t.event.view).on("mousemove.zoom",n,!0).on("mouseup.zoom",e,!0),s=Ov(this);n_(t.event.view),ou(),o.mouse=[s,this.__zoom.invert(s)],Dy(this),o.start()}}function f(){if(y.apply(this,arguments)){var o=this.__zoom,u=Ov(this),s=o.invert(u),c=o.k*(t.event.shiftKey?.5:2),l=i(r(e(o,c),u,s),m.apply(this,arguments));y_(),T>0?my(this).transition().duration(T).call(a,l,u):my(this).call(n.transform,l)}}function h(){if(y.apply(this,arguments)){var n,e,r,i=u(this,arguments),o=t.event.changedTouches,a=o.length;for(ou(),n=0;n<a;++n)e=o[n],r=xy(this,o,e.identifier),r=[r,this.__zoom.invert(r),e.identifier],i.touch0?i.touch1||(i.touch1=r):i.touch0=r;return g&&(g=clearTimeout(g),!i.touch1)?(i.end(),f.apply(this,arguments)):void(t.event.touches.length===a&&(g=setTimeout(function(){g=null},N),Dy(this),i.start()))}}function p(){var n,o,a,s,c=u(this,arguments),l=t.event.changedTouches,f=l.length;for(y_(),g&&(g=clearTimeout(g)),n=0;n<f;++n)o=l[n],a=xy(this,l,o.identifier),c.touch0&&c.touch0[2]===o.identifier?c.touch0[0]=a:c.touch1&&c.touch1[2]===o.identifier&&(c.touch1[0]=a);if(o=c.that.__zoom,c.touch1){var h=c.touch0[0],p=c.touch0[1],d=c.touch1[0],v=c.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,m=(m=v[0]-p[0])*m+(m=v[1]-p[1])*m;o=e(o,Math.sqrt(y/m)),a=[(h[0]+d[0])/2,(h[1]+d[1])/2],s=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!c.touch0)return;a=c.touch0[0],s=c.touch0[1];
+}c.zoom("touch",i(r(o,a,s),c.extent))}function d(){var n,e,r=u(this,arguments),i=t.event.changedTouches,o=i.length;for(ou(),v&&clearTimeout(v),v=setTimeout(function(){v=null},N),n=0;n<o;++n)e=i[n],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0||r.end()}var g,v,y=au,m=uu,_=0,x=1/0,b=-x,w=x,M=b,k=w,T=250,S=[],C=Dn("start","zoom","end"),N=500,E=150;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",su),t!==e?a(t,n):e.interrupt().each(function(){u(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},n.scaleBy=function(t,e){n.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n})},n.scaleTo=function(t,a){n.transform(t,function(){var t=m.apply(this,arguments),n=this.__zoom,u=o(t),s=n.invert(u),c="function"==typeof a?a.apply(this,arguments):a;return i(r(e(n,c),u,s),t)})},n.translateBy=function(t,e,r){n.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),m.apply(this,arguments))})},s.prototype={start:function(){return 1===++this.active&&(this.index=S.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0===--this.active&&(S.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){Yr(new eu(n,t,this.that.__zoom),C.apply,C,[t,this.that,this.args])}},n.filter=function(t){return arguments.length?(y="function"==typeof t?t:g_(!!t),n):y},n.extent=function(t){return arguments.length?(m="function"==typeof t?t:g_([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):m},n.scaleExtent=function(t){return arguments.length?(_=+t[0],x=+t[1],n):[_,x]},n.translateExtent=function(t){return arguments.length?(b=+t[0][0],w=+t[1][0],M=+t[0][1],k=+t[1][1],n):[[b,M],[w,k]]},n.duration=function(t){return arguments.length?(T=+t,n):T},n.on=function(){var t=C.on.apply(C,arguments);return t===C?n:t},n},__=function(t){return function(){return t}},x_=function(t,n,e){this.target=t,this.type=n,this.selection=e},b_=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},w_={name:"drag"},M_={name:"space"},k_={name:"handle"},T_={name:"center"},S_={name:"x",handles:["e","w"].map(lu),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},C_={name:"y",handles:["n","s"].map(lu),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},N_={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(lu),input:function(t){return t},output:function(t){return t}},E_={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},A_={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},q_={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},D_={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},j_={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},L_=function(){return mu(N_)},P_=Math.cos,O_=Math.sin,F_=Math.PI,z_=F_/2,R_=2*F_,H_=Math.max,I_=function(){function t(t){var o,a,u,s,c,l,f=t.length,h=[],p=zc(f),d=[],g=[],v=g.groups=new Array(f),y=new Array(f*f);for(o=0,c=-1;++c<f;){for(a=0,l=-1;++l<f;)a+=t[c][l];h.push(a),d.push(zc(f)),o+=a}for(e&&p.sort(function(t,n){return e(h[t],h[n])}),r&&d.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=H_(0,R_-n*f)/o,s=o?n:R_/f,a=0,c=-1;++c<f;){for(u=a,l=-1;++l<f;){var m=p[c],_=d[m][l],x=t[m][_],b=a,w=a+=x*o;y[_*f+m]={index:m,subindex:_,startAngle:b,endAngle:w,value:x}}v[m]={index:m,startAngle:u,endAngle:a,value:h[m]},a+=s}for(c=-1;++c<f;)for(l=c-1;++l<f;){var M=y[l*f+c],k=y[c*f+l];(M.value||k.value)&&g.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}return i?g.sort(i):g}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=H_(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=_u(n))._=n,t):i&&i._},t},U_=Array.prototype.slice,B_=function(t){return function(){return t}},W_=function(){function t(){var t,u=U_.call(arguments),s=n.apply(this,u),c=e.apply(this,u),l=+r.apply(this,(u[0]=s,u)),f=i.apply(this,u)-z_,h=o.apply(this,u)-z_,p=l*P_(f),d=l*O_(f),g=+r.apply(this,(u[0]=c,u)),v=i.apply(this,u)-z_,y=o.apply(this,u)-z_;if(a||(a=t=L()),a.moveTo(p,d),a.arc(0,0,l,f,h),f===v&&h===y||(a.quadraticCurveTo(0,0,g*P_(v),g*O_(v)),a.arc(0,0,g,v,y)),a.quadraticCurveTo(0,0,p,d),a.closePath(),t)return a=null,t+""||null}var n=xu,e=bu,r=wu,i=Mu,o=ku,a=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:B_(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:B_(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:B_(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(a=null==n?null:n,t):a},t},Y_=function(){return new Tu};Tu.prototype={constructor:Tu,reset:function(){this.s=this.t=0},add:function(t){Su(Mx,t,this.t),Su(this,Mx.s,this.s),this.s?this.t+=Mx.t:this.s=Mx.t},valueOf:function(){return this.s}};var $_,X_,V_,G_,J_,Z_,Q_,K_,tx,nx,ex,rx,ix,ox,ax,ux,sx,cx,lx,fx,hx,px,dx,gx,vx,yx,mx,_x,xx,bx,wx,Mx=new Tu,kx=1e-6,Tx=1e-12,Sx=Math.PI,Cx=Sx/2,Nx=Sx/4,Ex=2*Sx,Ax=180/Sx,qx=Sx/180,Dx=Math.abs,jx=Math.atan,Lx=Math.atan2,Px=Math.cos,Ox=Math.ceil,Fx=Math.exp,zx=Math.log,Rx=Math.pow,Hx=Math.sin,Ix=Math.sign||function(t){return t>0?1:t<0?-1:0},Ux=Math.sqrt,Bx=Math.tan,Wx={Feature:function(t,n){qu(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)qu(e[r].geometry,n)}},Yx={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Du(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Du(e[r],n,0)},Polygon:function(t,n){ju(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)ju(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)qu(e[r],n)}},$x=function(t,n){t&&Wx.hasOwnProperty(t.type)?Wx[t.type](t,n):qu(t,n)},Xx=Y_(),Vx=Y_(),Gx={point:Au,lineStart:Au,lineEnd:Au,polygonStart:function(){Xx.reset(),Gx.lineStart=Lu,Gx.lineEnd=Pu},polygonEnd:function(){var t=+Xx;Vx.add(t<0?Ex+t:t),this.lineStart=this.lineEnd=this.point=Au},sphere:function(){Vx.add(Ex)}},Jx=function(t){return Vx.reset(),$x(t,Gx),2*Vx},Zx=Y_(),Qx={point:Yu,lineStart:Xu,lineEnd:Vu,polygonStart:function(){Qx.point=Gu,Qx.lineStart=Ju,Qx.lineEnd=Zu,Zx.reset(),Gx.polygonStart()},polygonEnd:function(){Gx.polygonEnd(),Qx.point=Yu,Qx.lineStart=Xu,Qx.lineEnd=Vu,Xx<0?(Z_=-(K_=180),Q_=-(tx=90)):Zx>kx?tx=90:Zx<-kx&&(Q_=-90),ax[0]=Z_,ax[1]=K_}},Kx=function(t){var n,e,r,i,o,a,u;if(tx=K_=-(Z_=Q_=1/0),ox=[],$x(t,Qx),e=ox.length){for(ox.sort(Ku),n=1,r=ox[0],o=[r];n<e;++n)i=ox[n],ts(r,i[0])||ts(r,i[1])?(Qu(r[0],i[1])>Qu(r[0],r[1])&&(r[1]=i[1]),Qu(i[0],r[1])>Qu(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-(1/0),e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(u=Qu(r[1],i[0]))>a&&(a=u,Z_=i[0],K_=r[1])}return ox=ax=null,Z_===1/0||Q_===1/0?[[NaN,NaN],[NaN,NaN]]:[[Z_,Q_],[K_,tx]]},tb={sphere:Au,point:ns,lineStart:rs,lineEnd:as,polygonStart:function(){tb.lineStart=us,tb.lineEnd=ss},polygonEnd:function(){tb.lineStart=rs,tb.lineEnd=as}},nb=function(t){ux=sx=cx=lx=fx=hx=px=dx=gx=vx=yx=0,$x(t,tb);var n=gx,e=vx,r=yx,i=n*n+e*e+r*r;return i<Tx&&(n=hx,e=px,r=dx,sx<kx&&(n=cx,e=lx,r=fx),i=n*n+e*e+r*r,i<Tx)?[NaN,NaN]:[Lx(e,n)*Ax,Nu(r/Ux(i))*Ax]},eb=function(t){return function(){return t}},rb=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e};fs.invert=fs;var ib,ob,ab,ub,sb,cb,lb,fb,hb,pb,db,gb=function(t){function n(n){return n=t(n[0]*qx,n[1]*qx),n[0]*=Ax,n[1]*=Ax,n}return t=hs(t[0]*qx,t[1]*qx,t.length>2?t[2]*qx:0),n.invert=function(n){return n=t.invert(n[0]*qx,n[1]*qx),n[0]*=Ax,n[1]*=Ax,n},n},vb=function(){function t(t,n){e.push(t=r(t,n)),t[0]*=Ax,t[1]*=Ax}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*qx,s=a.apply(this,arguments)*qx;return e=[],r=hs(-t[0]*qx,-t[1]*qx,0).invert,vs(u,n,s,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=eb([0,0]),o=eb(90),a=eb(6),u={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:eb([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:eb(+t),n):o},n.precision=function(t){return arguments.length?(a="function"==typeof t?t:eb(+t),n):a},n},yb=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Au,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},mb=function(t,n,e,r,i,o){var a,u=t[0],s=t[1],c=n[0],l=n[1],f=0,h=1,p=c-u,d=l-s;if(a=e-u,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>f&&(f=a)}if(a=i-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<h&&(h=a)}if(a=r-s,d||!(a>0)){if(a/=d,d<0){if(a<f)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>f&&(f=a)}if(a=o-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a<f)return;a<h&&(h=a)}return f>0&&(t[0]=u+f*p,t[1]=s+f*d),h<1&&(n[0]=u+h*p,n[1]=s+h*d),!0}}}}},_b=function(t,n){return Dx(t[0]-n[0])<kx&&Dx(t[1]-n[1])<kx},xb=function(t,n,e,r,i){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(_b(r,a)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u.push(e=new ms(r,t,null,!0)),s.push(e.o=new ms(r,null,e,!1)),u.push(e=new ms(a,t,null,!1)),s.push(e.o=new ms(a,null,e,!0))}}),u.length){for(s.sort(n),_s(u),_s(s),o=0,a=s.length;o<a;++o)s[o].e=e=!e;for(var c,l,f=u[0];;){for(var h=f,p=!0;h.v;)if((h=h.n)===f)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,a=c.length;o<a;++o)i.point((l=c[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((l=c[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,p=!p}while(!h.v);i.lineEnd()}}},bb=1e9,wb=-bb,Mb=function(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=xs(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}},kb=Y_(),Tb={sphere:Au,point:Au,lineStart:bs,lineEnd:Au,polygonStart:Au,polygonEnd:Au},Sb=function(t){return kb.reset(),$x(t,Tb),+kb},Cb=[null,null],Nb={type:"LineString",coordinates:Cb},Eb=function(t,n){return Cb[0]=t,Cb[1]=n,Sb(Nb)},Ab=function(t,n){var e=t[0]*qx,r=t[1]*qx,i=n[0]*qx,o=n[1]*qx,a=Px(r),u=Hx(r),s=Px(o),c=Hx(o),l=a*Px(e),f=a*Hx(e),h=s*Px(i),p=s*Hx(i),d=2*Nu(Ux(Eu(o-r)+a*s*Eu(i-e))),g=Hx(d),v=d?function(t){var n=Hx(t*=d)/g,e=Hx(d-t)/g,r=e*l+n*h,i=e*f+n*p,o=e*u+n*c;return[Lx(i,r)*Ax,Lx(o,Ux(r*r+i*i))*Ax]}:function(){return[e*Ax,r*Ax]};return v.distance=d,v},qb=function(t){return t},Db=Y_(),jb=Y_(),Lb={point:Au,lineStart:Au,lineEnd:Au,polygonStart:function(){Lb.lineStart=Es,Lb.lineEnd=Ds},polygonEnd:function(){Lb.lineStart=Lb.lineEnd=Lb.point=Au,Db.add(Dx(jb)),jb.reset()},result:function(){var t=Db/2;return Db.reset(),t}},Pb=1/0,Ob=Pb,Fb=-Pb,zb=Fb,Rb={point:js,lineStart:Au,lineEnd:Au,polygonStart:Au,polygonEnd:Au,result:function(){var t=[[Pb,Ob],[Fb,zb]];return Fb=zb=-(Ob=Pb=1/0),t}},Hb=0,Ib=0,Ub=0,Bb=0,Wb=0,Yb=0,$b=0,Xb=0,Vb=0,Gb={point:Ls,lineStart:Ps,lineEnd:zs,polygonStart:function(){Gb.lineStart=Rs,Gb.lineEnd=Hs},polygonEnd:function(){Gb.point=Ls,Gb.lineStart=Ps,Gb.lineEnd=zs},result:function(){var t=Vb?[$b/Vb,Xb/Vb]:Yb?[Bb/Yb,Wb/Yb]:Ub?[Hb/Ub,Ib/Ub]:[NaN,NaN];return Hb=Ib=Ub=Bb=Wb=Yb=$b=Xb=Vb=0,t}};Bs.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Ex)}},result:Au},Ws.prototype={_circle:Ys(4.5),pointRadius:function(t){return this._circle=Ys(t),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}};var Jb=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),$x(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return $x(t,r(Lb)),Lb.result()},e.bounds=function(t){return $x(t,r(Rb)),Rb.result()},e.centroid=function(t){return $x(t,r(Gb)),Gb.result()},e.projection=function(n){return arguments.length?(r=null==(t=n)?qb:n.stream,e):t},e.context=function(t){return arguments.length?(i=null==(n=t)?new Ws:new Bs(t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)},Zb=Y_(),Qb=function(t,n){var e=n[0],r=n[1],i=[Hx(e),-Px(e),0],o=0,a=0;Zb.reset();for(var u=0,s=t.length;u<s;++u)if(l=(c=t[u]).length)for(var c,l,f=c[l-1],h=f[0],p=f[1]/2+Nx,d=Hx(p),g=Px(p),v=0;v<l;++v,h=m,d=x,g=b,f=y){var y=c[v],m=y[0],_=y[1]/2+Nx,x=Hx(_),b=Px(_),w=m-h,M=w>=0?1:-1,k=M*w,T=k>Sx,S=d*x;if(Zb.add(Lx(S*M*Hx(k),g*b+S*Px(k))),o+=T?w+M*Ex:w,T^h>=e^m>=e){var C=Iu(Ru(f),Ru(y));Wu(C);var N=Iu(i,C);Wu(N);var E=(T^w>=0?-1:1)*Nu(N[2]);(r>E||r===E&&(C[0]||C[1]))&&(a+=T^w>=0?1:-1)}}return(o<-kx||o<kx&&Zb<-kx)^1&a},Kb=function(t,n,e,r){return function(i,o){function a(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function u(t,n){var e=i(t,n);v.point(e[0],e[1])}function s(){b.point=u,v.lineStart()}function c(){b.point=a,v.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);_.point(e[0],e[1])}function f(){_.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),_.lineEnd();var t,n,e,r,i=_.clean(),a=m.result(),u=a.length;if(g.pop(),p.push(g),g=null,u)if(1&i){if(e=a[0],(n=e.length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart(),t=0;t<n;++t)o.point((r=e[t])[0],r[1]);o.lineEnd()}}else u>1&&2&i&&a.push(a.pop().concat(a.shift())),d.push(a.filter($s))}var p,d,g,v=n(o),y=i.invert(r[0],r[1]),m=yb(),_=n(m),x=!1,b={point:a,lineStart:s,lineEnd:c,polygonStart:function(){b.point=l,b.lineStart=f,b.lineEnd=h,d=[],p=[]},polygonEnd:function(){b.point=a,b.lineStart=s,b.lineEnd=c,d=Zc(d);var t=Qb(p,y);d.length?(x||(o.polygonStart(),x=!0),xb(d,Xs,t,e,o)):t&&(x||(o.polygonStart(),x=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),d=p=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return b}},tw=Kb(function(){return!0},Vs,Js,[-Sx,-Cx]),nw=function(t,n){function e(e,r,i,o){vs(o,t,n,i,e,r)}function r(t,n){return Px(t)*Px(n)>u}function i(t){var n,e,i,u,l;return{lineStart:function(){u=i=!1,l=1},point:function(f,h){var p,d=[f,h],g=r(f,h),v=s?g?0:a(f,h):g?a(f+(f<0?Sx:-Sx),h):0;if(!n&&(u=i=g)&&t.lineStart(),g!==i&&(p=o(n,d),(_b(n,p)||_b(d,p))&&(d[0]+=kx,d[1]+=kx,g=r(d[0],d[1]))),g!==i)l=0,g?(t.lineStart(),p=o(d,n),t.point(p[0],p[1])):(p=o(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(c&&n&&s^g){var y;v&e||!(y=o(d,n,!0))||(l=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||n&&_b(n,d)||t.point(d[0],d[1]),n=d,i=g,e=v},lineEnd:function(){i&&t.lineEnd(),n=null},clean:function(){return l|(u&&i)<<1}}}function o(t,n,e){var r=Ru(t),i=Ru(n),o=[1,0,0],a=Iu(r,i),s=Hu(a,a),c=a[0],l=s-c*c;if(!l)return!e&&t;var f=u*s/l,h=-u*c/l,p=Iu(o,a),d=Bu(o,f),g=Bu(a,h);Uu(d,g);var v=p,y=Hu(d,v),m=Hu(v,v),_=y*y-m*(Hu(d,d)-1);if(!(_<0)){var x=Ux(_),b=Bu(v,(-y-x)/m);if(Uu(b,d),b=zu(b),!e)return b;var w,M=t[0],k=n[0],T=t[1],S=n[1];k<M&&(w=M,M=k,k=w);var C=k-M,N=Dx(C-Sx)<kx,E=N||C<kx;if(!N&&S<T&&(w=T,T=S,S=w),E?N?T+S>0^b[1]<(Dx(b[0]-M)<kx?T:S):T<=b[1]&&b[1]<=S:C>Sx^(M<=b[0]&&b[0]<=k)){var A=Bu(v,(-y+x)/m);return Uu(A,d),[b,zu(A)]}}}function a(n,e){var r=s?t:Sx-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=Px(t),s=u>0,c=Dx(u)>kx;return Kb(r,i,e,s?[0,-t]:[-Sx,t-Sx])},ew=function(t){return{stream:Zs(t)}};Qs.prototype={constructor:Qs,point:function(t,n){this.stream.point(t,n)},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()}};var rw=16,iw=Px(30*qx),ow=function(t,n){return+n?ec(t,n):nc(t)},aw=Zs({point:function(t,n){this.stream.point(t*qx,n*qx)}}),uw=function(){return oc(uc).scale(155.424).center([0,33.6442])},sw=function(){return uw().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},cw=function(){function t(t){var n=t[0],e=t[1];return u=null,i.point(n,e),u||(o.point(n,e),u)||(a.point(n,e),u)}function n(){return e=r=null,t}var e,r,i,o,a,u,s=sw(),c=uw().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=uw().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){u=[t,n]}};return t.invert=function(t){var n=s.scale(),e=s.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},t.stream=function(t){return e&&r===t?e:e=sc([s.stream(r=t),c.stream(t),l.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),l.precision(t),n()):s.precision()},t.scale=function(n){return arguments.length?(s.scale(n),c.scale(.35*n),l.scale(n),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),r=+t[0],u=+t[1];return i=s.translate(t).clipExtent([[r-.455*e,u-.238*e],[r+.455*e,u+.238*e]]).stream(f),o=c.translate([r-.307*e,u+.201*e]).clipExtent([[r-.425*e+kx,u+.12*e+kx],[r-.214*e-kx,u+.234*e-kx]]).stream(f),a=l.translate([r-.205*e,u+.212*e]).clipExtent([[r-.214*e+kx,u+.166*e+kx],[r-.115*e-kx,u+.234*e-kx]]).stream(f),n()},t.fitExtent=function(n,e){return Ks(t,n,e)},t.fitSize=function(n,e){return tc(t,n,e)},t.scale(1070)},lw=cc(function(t){return Ux(2/(1+t))});lw.invert=lc(function(t){return 2*Nu(t/2)});var fw=function(){return rc(lw).scale(124.75).clipAngle(179.999)},hw=cc(function(t){return(t=Cu(t))&&t/Hx(t)});hw.invert=lc(function(t){return t});var pw=function(){return rc(hw).scale(79.4188).clipAngle(179.999)};fc.invert=function(t,n){return[t,2*jx(Fx(n))-Cx]};var dw=function(){return hc(fc).scale(961/Ex)},gw=function(){return oc(dc).scale(109.5).parallels([30,30])};gc.invert=gc;var vw=function(){return rc(gc).scale(152.63)},yw=function(){return oc(vc).scale(131.154).center([0,13.9389])};yc.invert=lc(jx);var mw=function(){return rc(yc).scale(144.049).clipAngle(60)},_w=function(){function t(){return i=o=null,a}var n,e,r,i,o,a,u=1,s=0,c=0,l=qb,f=null,h=qb;return a={stream:function(t){return i&&o===t?i:i=l(h(o=t))},clipExtent:function(i){return arguments.length?(h=null==i?(f=n=e=r=null,qb):xs(f=+i[0][0],n=+i[0][1],e=+i[1][0],r=+i[1][1]),t()):null==f?null:[[f,n],[e,r]]},scale:function(n){return arguments.length?(l=mc(u=+n,s,c),t()):u},translate:function(n){return arguments.length?(l=mc(u,s=+n[0],c=+n[1]),t()):[s,c]},fitExtent:function(t,n){return Ks(a,t,n)},fitSize:function(t,n){return tc(a,t,n)}}};_c.invert=lc(Nu);var xw=function(){return rc(_c).scale(249.5).clipAngle(90+kx)};xc.invert=lc(function(t){return 2*jx(t)});var bw=function(){return rc(xc).scale(250).clipAngle(142)};bc.invert=function(t,n){return[-n,2*jx(Fx(t))-Cx]};var ww=function(){var t=hc(bc),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)};t.version=wc,t.bisect=Sc,t.bisectRight=Sc,t.bisectLeft=Cc,t.ascending=Mc,t.bisector=kc,t.descending=Nc,t.deviation=qc,t.extent=Dc,t.histogram=Wc,t.thresholdFreedmanDiaconis=$c,t.thresholdScott=Xc,t.thresholdSturges=Bc,t.max=Vc,t.mean=Gc,t.median=Jc,t.merge=Zc,t.min=Qc,t.pairs=Kc,t.permute=tl,t.quantile=Yc,t.range=zc,t.scan=nl,t.shuffle=el,t.sum=rl,t.ticks=Uc,t.tickStep=e,t.transpose=il,t.variance=Ac,t.zip=ol,t.entries=fl,t.keys=cl,t.values=ll,t.map=o,t.set=f,t.nest=ul,t.randomUniform=hl,t.randomNormal=pl,t.randomLogNormal=dl,t.randomBates=vl,t.randomIrwinHall=gl,t.randomExponential=yl,t.easeLinear=h,t.easeQuad=g,t.easeQuadIn=p,t.easeQuadOut=d,t.easeQuadInOut=g,t.easeCubic=m,t.easeCubicIn=v,t.easeCubicOut=y,t.easeCubicInOut=m,t.easePoly=bl,t.easePolyIn=_l,t.easePolyOut=xl,t.easePolyInOut=bl,t.easeSin=b,t.easeSinIn=_,t.easeSinOut=x,t.easeSinInOut=b,t.easeExp=k,t.easeExpIn=w,t.easeExpOut=M,t.easeExpInOut=k,t.easeCircle=C,t.easeCircleIn=T,t.easeCircleOut=S,t.easeCircleInOut=C,t.easeBounce=E,t.easeBounceIn=N,t.easeBounceOut=E,t.easeBounceInOut=A,t.easeBack=Fl,t.easeBackIn=Pl,t.easeBackOut=Ol,t.easeBackInOut=Fl,t.easeElastic=Ul,t.easeElasticIn=Il,t.easeElasticOut=Ul,t.easeElasticInOut=Bl,t.polygonArea=Wl,t.polygonCentroid=Yl,t.polygonHull=Xl,t.polygonContains=Vl,t.polygonLength=Gl,t.path=L,t.quadtree=H,t.queue=G,t.arc=wf,t.area=Tf,t.line=kf,t.pie=Nf,t.radialArea=qf,t.radialLine=Af,t.symbol=Zf,t.symbols=Jf,t.symbolCircle=Df,t.symbolCross=jf,t.symbolDiamond=Of,t.symbolSquare=Uf,t.symbolStar=If,t.symbolTriangle=Wf,t.symbolWye=Gf,t.curveBasisClosed=th,t.curveBasisOpen=nh,t.curveBasis=Kf,t.curveBundle=eh,t.curveCardinalClosed=ih,t.curveCardinalOpen=oh,t.curveCardinal=rh,t.curveCatmullRomClosed=uh,t.curveCatmullRomOpen=sh,t.curveCatmullRom=ah,t.curveLinearClosed=ch,t.curveLinear=Mf,t.curveMonotoneX=qt,t.curveMonotoneY=Dt,t.curveNatural=lh,t.curveStep=fh,t.curveStepAfter=Ft,t.curveStepBefore=Ot,t.stack=gh,t.stackOffsetExpand=vh,t.stackOffsetNone=ph,t.stackOffsetSilhouette=yh,t.stackOffsetWiggle=mh,t.stackOrderAscending=_h,t.stackOrderDescending=xh,t.stackOrderInsideOut=bh,t.stackOrderNone=dh,t.stackOrderReverse=wh,t.color=Ut,t.rgb=$t,t.hsl=Jt,t.lab=tn,t.hcl=sn,t.cubehelix=fn,t.interpolate=vp,t.interpolateArray=cp,t.interpolateDate=lp,t.interpolateNumber=fp,t.interpolateObject=hp,t.interpolateRound=yp,t.interpolateString=gp,t.interpolateTransformCss=bp,t.interpolateTransformSvg=wp,t.interpolateZoom=Cp,t.interpolateRgb=ap,t.interpolateRgbBasis=up,t.interpolateRgbBasisClosed=sp,t.interpolateHsl=Np,t.interpolateHslLong=Ep,t.interpolateLab=En,t.interpolateHcl=Ap,t.interpolateHclLong=qp,t.interpolateCubehelix=Dp,t.interpolateCubehelixLong=jp,t.interpolateBasis=rp,t.interpolateBasisClosed=ip,t.quantize=Lp,t.dispatch=Dn,t.dsvFormat=zp,t.csvParse=Hp,t.csvParseRows=Ip,t.csvFormat=Up,t.csvFormatRows=Bp,t.tsvParse=Yp,t.tsvParseRows=$p,t.tsvFormat=Xp,t.tsvFormatRows=Vp,t.request=Gp,t.html=Zp,t.json=Qp,t.text=Kp,t.xml=td,t.csv=ed,t.tsv=rd,t.now=Bn,t.timer=$n,t.timerFlush=Xn,t.timeout=pd,t.interval=dd,t.timeInterval=Qn,t.timeMillisecond=yd,t.timeMilliseconds=md,t.timeSecond=kd,t.timeSeconds=Td,t.timeMinute=Sd,t.timeMinutes=Cd,t.timeHour=Nd,t.timeHours=Ed,t.timeDay=Ad,t.timeDays=qd,t.timeWeek=Dd,t.timeWeeks=Rd,t.timeSunday=Dd,t.timeSundays=Rd,t.timeMonday=jd,t.timeMondays=Hd,t.timeTuesday=Ld,t.timeTuesdays=Id;t.timeWednesday=Pd;t.timeWednesdays=Ud,t.timeThursday=Od,t.timeThursdays=Bd,t.timeFriday=Fd,t.timeFridays=Wd,t.timeSaturday=zd,t.timeSaturdays=Yd,t.timeMonth=$d,t.timeMonths=Xd,t.timeYear=Vd,t.timeYears=Gd,t.utcMillisecond=yd,t.utcMilliseconds=md,t.utcSecond=kd,t.utcSeconds=Td,t.utcMinute=Jd,t.utcMinutes=Zd,t.utcHour=Qd,t.utcHours=Kd,t.utcDay=tg,t.utcDays=ng,t.utcWeek=eg,t.utcWeeks=cg,t.utcSunday=eg,t.utcSundays=cg,t.utcMonday=rg,t.utcMondays=lg,t.utcTuesday=ig,t.utcTuesdays=fg,t.utcWednesday=og,t.utcWednesdays=hg,t.utcThursday=ag,t.utcThursdays=pg,t.utcFriday=ug,t.utcFridays=dg,t.utcSaturday=sg,t.utcSaturdays=gg,t.utcMonth=vg,t.utcMonths=yg,t.utcYear=mg,t.utcYears=xg,t.formatLocale=Dg,t.formatDefaultLocale=re,t.formatSpecifier=Eg,t.precisionFixed=Lg,t.precisionPrefix=Pg,t.precisionRound=Og,t.isoFormat=Ug,t.isoParse=Bg,t.timeFormatLocale=ue,t.timeFormatDefaultLocale=nr,t.scaleBand=or,t.scalePoint=ur,t.scaleIdentity=yr,t.scaleLinear=vr,t.scaleLog=kr,t.scaleOrdinal=ir,t.scaleImplicit=Xg,t.scalePow=Sr,t.scaleSqrt=Cr,t.scaleQuantile=Nr,t.scaleQuantize=Er,t.scaleThreshold=Ar,t.scaleTime=av,t.scaleUtc=uv,t.schemeCategory10=cv,t.schemeCategory20b=lv,t.schemeCategory20c=fv,t.schemeCategory20=hv,t.scaleSequential=Pr,t.interpolateCubehelixDefault=pv,t.interpolateRainbow=yv,t.interpolateWarm=dv,t.interpolateCool=gv,t.interpolateViridis=mv,t.interpolateMagma=_v,t.interpolateInferno=xv,t.interpolatePlasma=bv,t.creator=Tv,t.customEvent=Yr,t.local=zr,t.matcher=Av,t.mouse=Ov,t.namespace=kv,t.namespaces=Mv,t.select=my,t.selectAll=_y,t.selection=Di,t.selector=Fv,t.selectorAll=Rv,t.touch=xy,t.touches=by,t.window=iy,t.active=im,t.interrupt=Dy,t.transition=lo,t.axisTop=_o,t.axisRight=xo,t.axisBottom=bo,t.axisLeft=wo,t.cluster=hm,t.hierarchy=qo,t.pack=Cm,t.packSiblings=Tm,t.packEnclose=km,t.partition=Am,t.stratify=Lm,t.tree=Pm,t.treemap=Rm,t.treemapBinary=Hm,t.treemapDice=Em,t.treemapSlice=Om,t.treemapSliceDice=Im,t.treemapSquarify=zm,t.treemapResquarify=Um,t.forceCenter=Bm,t.forceCollide=$m,t.forceLink=Xm,t.forceManyBody=Zm,t.forceSimulation=Jm,t.forceX=Qm,t.forceY=Km,t.drag=r_,t.dragDisable=n_,t.dragEnable=_a,t.voronoi=d_,t.zoom=m_,t.zoomIdentity=v_,t.zoomTransform=iu,t.brush=L_,t.brushX=vu,t.brushY=yu,t.brushSelection=gu,t.chord=I_,t.ribbon=W_,t.geoAlbers=sw,t.geoAlbersUsa=cw,t.geoArea=Jx,t.geoAzimuthalEqualArea=fw,t.geoAzimuthalEqualAreaRaw=lw,t.geoAzimuthalEquidistant=pw,t.geoAzimuthalEquidistantRaw=hw,t.geoBounds=Kx,t.geoCentroid=nb,t.geoCircle=vb,t.geoClipExtent=Mb,t.geoConicConformal=gw,t.geoConicConformalRaw=dc,t.geoConicEqualArea=uw,t.geoConicEqualAreaRaw=uc,t.geoConicEquidistant=yw,t.geoConicEquidistantRaw=vc,t.geoDistance=Eb,t.geoEquirectangular=vw,t.geoEquirectangularRaw=gc,t.geoGnomonic=mw,t.geoGnomonicRaw=yc,t.geoGraticule=Cs,t.geoGraticule10=Ns,t.geoIdentity=_w,t.geoInterpolate=Ab,t.geoLength=Sb,t.geoMercator=dw,t.geoMercatorRaw=fc,t.geoOrthographic=xw,t.geoOrthographicRaw=_c,t.geoPath=Jb,t.geoProjection=rc,t.geoProjectionMutator=ic,t.geoRotation=gb,t.geoStereographic=bw,t.geoStereographicRaw=xc,t.geoStream=$x,t.geoTransform=ew,t.geoTransverseMercator=ww,t.geoTransverseMercatorRaw=bc,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,n,e){var r,i;/*!
+	 * jQuery JavaScript Library v3.1.1
+	 * https://jquery.com/
+	 *
+	 * Includes Sizzle.js
+	 * https://sizzlejs.com/
+	 *
+	 * Copyright jQuery Foundation and other contributors
+	 * Released under the MIT license
+	 * https://jquery.org/license
+	 *
+	 * Date: 2016-09-22T22:30Z
+	 */
+!function(n,e){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,function(e,o){"use strict";function a(t,n){n=n||ot;var e=n.createElement("script");e.text=t,n.head.appendChild(e).parentNode.removeChild(e)}function u(t){var n=!!t&&"length"in t&&t.length,e=mt.type(t);return"function"!==e&&!mt.isWindow(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}function s(t,n,e){return mt.isFunction(n)?mt.grep(t,function(t,r){return!!n.call(t,r,t)!==e}):n.nodeType?mt.grep(t,function(t){return t===n!==e}):"string"!=typeof n?mt.grep(t,function(t){return lt.call(n,t)>-1!==e}):Nt.test(n)?mt.filter(n,t,e):(n=mt.filter(n,t),mt.grep(t,function(t){return lt.call(n,t)>-1!==e&&1===t.nodeType}))}function c(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}function l(t){var n={};return mt.each(t.match(Lt)||[],function(t,e){n[e]=!0}),n}function f(t){return t}function h(t){throw t}function p(t,n,e){var r;try{t&&mt.isFunction(r=t.promise)?r.call(t).done(n).fail(e):t&&mt.isFunction(r=t.then)?r.call(t,n,e):n.call(void 0,t)}catch(t){e.call(void 0,t)}}function d(){ot.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),mt.ready()}function g(){this.expando=mt.expando+g.uid++}function v(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:It.test(t)?JSON.parse(t):t)}function y(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(Ut,"-$&").toLowerCase(),e=t.getAttribute(r),"string"==typeof e){try{e=v(e)}catch(t){}Ht.set(t,n,e)}else e=void 0;return e}function m(t,n,e,r){var i,o=1,a=20,u=r?function(){return r.cur()}:function(){return mt.css(t,n,"")},s=u(),c=e&&e[3]||(mt.cssNumber[n]?"":"px"),l=(mt.cssNumber[n]||"px"!==c&&+s)&&Wt.exec(mt.css(t,n));if(l&&l[3]!==c){c=c||l[3],e=e||[],l=+s||1;do o=o||".5",l/=o,mt.style(t,n,l+c);while(o!==(o=u()/s)&&1!==o&&--a)}return e&&(l=+l||+s||0,i=e[1]?l+(e[1]+1)*e[2]:+e[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function _(t){var n,e=t.ownerDocument,r=t.nodeName,i=Vt[r];return i?i:(n=e.body.appendChild(e.createElement(r)),i=mt.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),Vt[r]=i,i)}function x(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)r=t[o],r.style&&(e=r.style.display,n?("none"===e&&(i[o]=Rt.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&$t(r)&&(i[o]=_(r))):"none"!==e&&(i[o]="none",Rt.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}function b(t,n){var e;return e="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&mt.nodeName(t,n)?mt.merge([t],e):e}function w(t,n){for(var e=0,r=t.length;e<r;e++)Rt.set(t[e],"globalEval",!n||Rt.get(n[e],"globalEval"))}function M(t,n,e,r,i){for(var o,a,u,s,c,l,f=n.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if(o=t[p],o||0===o)if("object"===mt.type(o))mt.merge(h,o.nodeType?[o]:o);else if(Kt.test(o)){for(a=a||f.appendChild(n.createElement("div")),u=(Jt.exec(o)||["",""])[1].toLowerCase(),s=Qt[u]||Qt._default,a.innerHTML=s[1]+mt.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;mt.merge(h,a.childNodes),a=f.firstChild,a.textContent=""}else h.push(n.createTextNode(o));for(f.textContent="",p=0;o=h[p++];)if(r&&mt.inArray(o,r)>-1)i&&i.push(o);else if(c=mt.contains(o.ownerDocument,o),a=b(f.appendChild(o),"script"),c&&w(a),e)for(l=0;o=a[l++];)Zt.test(o.type||"")&&e.push(o);return f}function k(){return!0}function T(){return!1}function S(){try{return ot.activeElement}catch(t){}}function C(t,n,e,r,i,o){var a,u;if("object"==typeof n){"string"!=typeof e&&(r=r||e,e=void 0);for(u in n)C(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),i===!1)i=T;else if(!i)return t;return 1===o&&(a=i,i=function(t){return mt().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=mt.guid++)),t.each(function(){mt.event.add(this,n,i,r,e)})}function N(t,n){return mt.nodeName(t,"table")&&mt.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function A(t){var n=sn.exec(t.type);return n?t.type=n[1]:t.removeAttribute("type"),t}function q(t,n){var e,r,i,o,a,u,s,c;if(1===n.nodeType){if(Rt.hasData(t)&&(o=Rt.access(t),a=Rt.set(n,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(e=0,r=c[i].length;e<r;e++)mt.event.add(n,i,c[i][e])}Ht.hasData(t)&&(u=Ht.access(t),s=mt.extend({},u),Ht.set(n,s))}}function D(t,n){var e=n.nodeName.toLowerCase();"input"===e&&Gt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function j(t,n,e,r){n=st.apply([],n);var i,o,u,s,c,l,f=0,h=t.length,p=h-1,d=n[0],g=mt.isFunction(d);if(g||h>1&&"string"==typeof d&&!vt.checkClone&&un.test(d))return t.each(function(i){var o=t.eq(i);g&&(n[0]=d.call(this,i,o.html())),j(o,n,e,r)});if(h&&(i=M(n,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=mt.map(b(i,"script"),E),s=u.length;f<h;f++)c=i,f!==p&&(c=mt.clone(c,!0,!0),s&&mt.merge(u,b(c,"script"))),e.call(t[f],c,f);if(s)for(l=u[u.length-1].ownerDocument,mt.map(u,A),f=0;f<s;f++)c=u[f],Zt.test(c.type||"")&&!Rt.access(c,"globalEval")&&mt.contains(l,c)&&(c.src?mt._evalUrl&&mt._evalUrl(c.src):a(c.textContent.replace(cn,""),l))}return t}function L(t,n,e){for(var r,i=n?mt.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||mt.cleanData(b(r)),r.parentNode&&(e&&mt.contains(r.ownerDocument,r)&&w(b(r,"script")),r.parentNode.removeChild(r));return t}function P(t,n,e){var r,i,o,a,u=t.style;return e=e||hn(t),e&&(a=e.getPropertyValue(n)||e[n],""!==a||mt.contains(t.ownerDocument,t)||(a=mt.style(t,n)),!vt.pixelMarginRight()&&fn.test(a)&&ln.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function O(t,n){return{get:function(){return t()?void delete this.get:(this.get=n).apply(this,arguments)}}}function F(t){if(t in yn)return t;for(var n=t[0].toUpperCase()+t.slice(1),e=vn.length;e--;)if(t=vn[e]+n,t in yn)return t}function z(t,n,e){var r=Wt.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function R(t,n,e,r,i){var o,a=0;for(o=e===(r?"border":"content")?4:"width"===n?1:0;o<4;o+=2)"margin"===e&&(a+=mt.css(t,e+Yt[o],!0,i)),r?("content"===e&&(a-=mt.css(t,"padding"+Yt[o],!0,i)),"margin"!==e&&(a-=mt.css(t,"border"+Yt[o]+"Width",!0,i))):(a+=mt.css(t,"padding"+Yt[o],!0,i),"padding"!==e&&(a+=mt.css(t,"border"+Yt[o]+"Width",!0,i)));return a}function H(t,n,e){var r,i=!0,o=hn(t),a="border-box"===mt.css(t,"boxSizing",!1,o);if(t.getClientRects().length&&(r=t.getBoundingClientRect()[n]),r<=0||null==r){if(r=P(t,n,o),(r<0||null==r)&&(r=t.style[n]),fn.test(r))return r;i=a&&(vt.boxSizingReliable()||r===t.style[n]),r=parseFloat(r)||0}return r+R(t,n,e||(a?"border":"content"),i,o)+"px"}function I(t,n,e,r,i){return new I.prototype.init(t,n,e,r,i)}function U(){_n&&(e.requestAnimationFrame(U),mt.fx.tick())}function B(){return e.setTimeout(function(){mn=void 0}),mn=mt.now()}function W(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)e=Yt[r],i["margin"+e]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function Y(t,n,e){for(var r,i=(V.tweeners[n]||[]).concat(V.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function $(t,n,e){var r,i,o,a,u,s,c,l,f="width"in n||"height"in n,h=this,p={},d=t.style,g=t.nodeType&&$t(t),v=Rt.get(t,"fxshow");e.queue||(a=mt._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,mt.queue(t,"fx").length||a.empty.fire()})}));for(r in n)if(i=n[r],xn.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||mt.style(t,r)}if(s=!mt.isEmptyObject(n),s||!mt.isEmptyObject(p)){f&&1===t.nodeType&&(e.overflow=[d.overflow,d.overflowX,d.overflowY],c=v&&v.display,null==c&&(c=Rt.get(t,"display")),l=mt.css(t,"display"),"none"===l&&(c?l=c:(x([t],!0),c=t.style.display||c,l=mt.css(t,"display"),x([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===mt.css(t,"float")&&(s||(h.done(function(){d.display=c}),null==c&&(l=d.display,c="none"===l?"":l)),d.display="inline-block")),e.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=e.overflow[0],d.overflowX=e.overflow[1],d.overflowY=e.overflow[2]})),s=!1;for(r in p)s||(v?"hidden"in v&&(g=v.hidden):v=Rt.access(t,"fxshow",{display:c}),o&&(v.hidden=!g),g&&x([t],!0),h.done(function(){g||x([t]),Rt.remove(t,"fxshow");for(r in p)mt.style(t,r,p[r])})),s=Y(g?v[r]:0,r,h),r in v||(v[r]=s.start,g&&(s.end=s.start,s.start=0))}}function X(t,n){var e,r,i,o,a;for(e in t)if(r=mt.camelCase(e),i=n[r],o=t[e],mt.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),a=mt.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(e in o)e in t||(t[e]=o[e],n[e]=i)}else n[r]=i}function V(t,n,e){var r,i,o=0,a=V.prefilters.length,u=mt.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var n=mn||B(),e=Math.max(0,c.startTime+c.duration-n),r=e/c.duration||0,o=1-r,a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(o);return u.notifyWith(t,[c,o,e]),o<1&&s?e:(u.resolveWith(t,[c]),!1)},c=u.promise({elem:t,props:mt.extend({},n),opts:mt.extend(!0,{specialEasing:{},easing:mt.easing._default},e),originalProperties:n,originalOptions:e,startTime:mn||B(),duration:e.duration,tweens:[],createTween:function(n,e){var r=mt.Tween(t,c.opts,n,e,c.opts.specialEasing[n]||c.opts.easing);return c.tweens.push(r),r},stop:function(n){var e=0,r=n?c.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)c.tweens[e].run(1);return n?(u.notifyWith(t,[c,1,0]),u.resolveWith(t,[c,n])):u.rejectWith(t,[c,n]),this}}),l=c.props;for(X(l,c.opts.specialEasing);o<a;o++)if(r=V.prefilters[o].call(c,t,l,c.opts))return mt.isFunction(r.stop)&&(mt._queueHooks(c.elem,c.opts.queue).stop=mt.proxy(r.stop,r)),r;return mt.map(l,Y,c),mt.isFunction(c.opts.start)&&c.opts.start.call(t,c),mt.fx.timer(mt.extend(s,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function G(t){var n=t.match(Lt)||[];return n.join(" ")}function J(t){return t.getAttribute&&t.getAttribute("class")||""}function Z(t,n,e,r){var i;if(mt.isArray(n))mt.each(n,function(n,i){e||qn.test(t)?r(t,i):Z(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)});else if(e||"object"!==mt.type(n))r(t,n);else for(i in n)Z(t+"["+i+"]",n[i],e,r)}function Q(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(Lt)||[];if(mt.isFunction(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function K(t,n,e,r){function i(u){var s;return o[u]=!0,mt.each(t[u]||[],function(t,u){var c=u(n,e,r);return"string"!=typeof c||a||o[c]?a?!(s=c):void 0:(n.dataTypes.unshift(c),i(c),!1)}),s}var o={},a=t===Bn;return i(n.dataTypes[0])||!o["*"]&&i("*")}function tt(t,n){var e,r,i=mt.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&mt.extend(!0,t,r),t}function nt(t,n,e){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in e)o=s[0];else{for(i in e){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),e[o]}function et(t,n,e,r){var i,o,a,u,s,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!s&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),s=o,o=l.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=c[s+" "+o]||c["* "+o],!a)for(i in c)if(u=i.split(" "),u[1]===o&&(a=c[s+" "+u[0]]||c["* "+u[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=u[0],l.unshift(u[1]));break}if(a!==!0)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:n}}function rt(t){return mt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var it=[],ot=e.document,at=Object.getPrototypeOf,ut=it.slice,st=it.concat,ct=it.push,lt=it.indexOf,ft={},ht=ft.toString,pt=ft.hasOwnProperty,dt=pt.toString,gt=dt.call(Object),vt={},yt="3.1.1",mt=function(t,n){return new mt.fn.init(t,n)},_t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,xt=/^-ms-/,bt=/-([a-z])/g,wt=function(t,n){return n.toUpperCase()};mt.fn=mt.prototype={jquery:yt,constructor:mt,length:0,toArray:function(){return ut.call(this)},get:function(t){return null==t?ut.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=mt.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return mt.each(this,t)},map:function(t){return this.pushStack(mt.map(this,function(n,e){return t.call(n,e,n)}))},slice:function(){return this.pushStack(ut.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:ct,sort:it.sort,splice:it.splice},mt.extend=mt.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[u]||{},u++),"object"==typeof a||mt.isFunction(a)||(a={}),u===s&&(a=this,u--);u<s;u++)if(null!=(t=arguments[u]))for(n in t)e=a[n],r=t[n],a!==r&&(c&&r&&(mt.isPlainObject(r)||(i=mt.isArray(r)))?(i?(i=!1,o=e&&mt.isArray(e)?e:[]):o=e&&mt.isPlainObject(e)?e:{},a[n]=mt.extend(c,o,r)):void 0!==r&&(a[n]=r));return a},mt.extend({expando:"jQuery"+(yt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===mt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var n=mt.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==ht.call(t))&&(!(n=at(t))||(e=pt.call(n,"constructor")&&n.constructor,"function"==typeof e&&dt.call(e)===gt))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ft[ht.call(t)]||"object":typeof t},globalEval:function(t){a(t)},camelCase:function(t){return t.replace(xt,"ms-").replace(bt,wt)},nodeName:function(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()},each:function(t,n){var e,r=0;if(u(t))for(e=t.length;r<e&&n.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(n.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(_t,"")},makeArray:function(t,n){var e=n||[];return null!=t&&(u(Object(t))?mt.merge(e,"string"==typeof t?[t]:t):ct.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:lt.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r,i=[],o=0,a=t.length,u=!e;o<a;o++)r=!n(t[o],o),r!==u&&i.push(t[o]);return i},map:function(t,n,e){var r,i,o=0,a=[];if(u(t))for(r=t.length;o<r;o++)i=n(t[o],o,e),null!=i&&a.push(i);else for(o in t)i=n(t[o],o,e),null!=i&&a.push(i);return st.apply([],a)},guid:1,proxy:function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),mt.isFunction(t))return r=ut.call(arguments,2),i=function(){return t.apply(n||this,r.concat(ut.call(arguments)))},i.guid=t.guid=t.guid||mt.guid++,i},now:Date.now,support:vt}),"function"==typeof Symbol&&(mt.fn[Symbol.iterator]=it[Symbol.iterator]),mt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,n){ft["[object "+n+"]"]=n.toLowerCase()});var Mt=/*!
+	 * Sizzle CSS Selector Engine v2.3.3
+	 * https://sizzlejs.com/
+	 *
+	 * Copyright jQuery Foundation and other contributors
+	 * Released under the MIT license
+	 * http://jquery.org/license
+	 *
+	 * Date: 2016-08-08
+	 */
+function(t){function n(t,n,e,r){var i,o,a,u,s,c,l,h=n&&n.ownerDocument,d=n?n.nodeType:9;if(e=e||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return e;if(!r&&((n?n.ownerDocument||n:I)!==j&&D(n),n=n||j,P)){if(11!==d&&(s=yt.exec(t)))if(i=s[1]){if(9===d){if(!(a=n.getElementById(i)))return e;if(a.id===i)return e.push(a),e}else if(h&&(a=h.getElementById(i))&&R(n,a)&&a.id===i)return e.push(a),e}else{if(s[2])return Q.apply(e,n.getElementsByTagName(t)),e;if((i=s[3])&&w.getElementsByClassName&&n.getElementsByClassName)return Q.apply(e,n.getElementsByClassName(i)),e}if(w.qsa&&!$[t+" "]&&(!O||!O.test(t))){if(1!==d)h=n,l=t;else if("object"!==n.nodeName.toLowerCase()){for((u=n.getAttribute("id"))?u=u.replace(bt,wt):n.setAttribute("id",u=H),c=S(t),o=c.length;o--;)c[o]="#"+u+" "+p(c[o]);l=c.join(","),h=mt.test(t)&&f(n.parentNode)||n}if(l)try{return Q.apply(e,h.querySelectorAll(l)),e}catch(t){}finally{u===H&&n.removeAttribute("id")}}}return N(t.replace(ut,"$1"),n,e,r)}function e(){function t(e,r){return n.push(e+" ")>M.cacheLength&&delete t[n.shift()],t[e+" "]=r}var n=[];return t}function r(t){return t[H]=!0,t}function i(t){var n=j.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function o(t,n){for(var e=t.split("|"),r=e.length;r--;)M.attrHandle[e[r]]=n}function a(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function u(t){return function(n){var e=n.nodeName.toLowerCase();return"input"===e&&n.type===t}}function s(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function c(t){return function(n){return"form"in n?n.parentNode&&n.disabled===!1?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&kt(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function l(t){return r(function(n){return n=+n,r(function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))})})}function f(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function p(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function d(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=B++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,s){var c,l,f,h=[U,u];if(s){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,s))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(f=n[H]||(n[H]={}),l=f[n.uniqueID]||(f[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((c=l[o])&&c[0]===U&&c[1]===u)return h[2]=c[2];if(l[o]=h,h[2]=t(n,e,s))return!0}return!1}}function g(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function v(t,e,r){for(var i=0,o=e.length;i<o;i++)n(t,e[i],r);return r}function y(t,n,e,r,i){for(var o,a=[],u=0,s=t.length,c=null!=n;u<s;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),c&&n.push(u)));return a}function m(t,n,e,i,o,a){return i&&!i[H]&&(i=m(i)),o&&!o[H]&&(o=m(o,a)),r(function(r,a,u,s){var c,l,f,h=[],p=[],d=a.length,g=r||v(n||"*",u.nodeType?[u]:u,[]),m=!t||!r&&n?g:y(g,h,t,u,s),_=e?o||(r?t:d||i)?[]:a:m;if(e&&e(m,_,u,s),i)for(c=y(_,p),i(c,[],u,s),l=c.length;l--;)(f=c[l])&&(_[p[l]]=!(m[p[l]]=f));if(r){if(o||t){if(o){for(c=[],l=_.length;l--;)(f=_[l])&&c.push(m[l]=f);o(null,_=[],c,s)}for(l=_.length;l--;)(f=_[l])&&(c=o?tt(r,f):h[l])>-1&&(r[c]=!(a[c]=f))}}else _=y(_===a?_.splice(d,_.length):_),o?o(null,a,_,s):Q.apply(a,_)})}function _(t){for(var n,e,r,i=t.length,o=M.relative[t[0].type],a=o||M.relative[" "],u=o?1:0,s=d(function(t){return t===n},a,!0),c=d(function(t){return tt(n,t)>-1},a,!0),l=[function(t,e,r){var i=!o&&(r||e!==E)||((n=e).nodeType?s(t,e,r):c(t,e,r));return n=null,i}];u<i;u++)if(e=M.relative[t[u].type])l=[d(g(l),e)];else{if(e=M.filter[t[u].type].apply(null,t[u].matches),e[H]){for(r=++u;r<i&&!M.relative[t[r].type];r++);return m(u>1&&g(l),u>1&&p(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(ut,"$1"),e,u<r&&_(t.slice(u,r)),r<i&&_(t=t.slice(r)),r<i&&p(t))}l.push(e)}return g(l)}function x(t,e){var i=e.length>0,o=t.length>0,a=function(r,a,u,s,c){var l,f,h,p=0,d="0",g=r&&[],v=[],m=E,_=r||o&&M.find.TAG("*",c),x=U+=null==m?1:Math.random()||.1,b=_.length;for(c&&(E=a===j||a||c);d!==b&&null!=(l=_[d]);d++){if(o&&l){for(f=0,a||l.ownerDocument===j||(D(l),u=!P);h=t[f++];)if(h(l,a||j,u)){s.push(l);break}c&&(U=x)}i&&((l=!h&&l)&&p--,r&&g.push(l))}if(p+=d,i&&d!==p){for(f=0;h=e[f++];)h(g,v,a,u);if(r){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=J.call(s));v=y(v)}Q.apply(s,v),c&&!r&&v.length>0&&p+e.length>1&&n.uniqueSort(s)}return c&&(U=x,E=m),g};return i?r(a):a}var b,w,M,k,T,S,C,N,E,A,q,D,j,L,P,O,F,z,R,H="sizzle"+1*new Date,I=t.document,U=0,B=0,W=e(),Y=e(),$=e(),X=function(t,n){return t===n&&(q=!0),0},V={}.hasOwnProperty,G=[],J=G.pop,Z=G.push,Q=G.push,K=G.slice,tt=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",it="\\["+et+"*("+rt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(et+"+","g"),ut=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),ct=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),lt=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,_t=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),xt=function(t,n,e){var r="0x"+n-65536;return r!==r||e?n:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},bt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wt=function(t,n){return n?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Mt=function(){D()},kt=d(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Q.apply(G=K.call(I.childNodes),I.childNodes),G[I.childNodes.length].nodeType}catch(t){Q={apply:G.length?function(t,n){Z.apply(t,K.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}w=n.support={},T=n.isXML=function(t){var n=t&&(t.ownerDocument||t).documentElement;return!!n&&"HTML"!==n.nodeName},D=n.setDocument=function(t){var n,e,r=t?t.ownerDocument||t:I;return r!==j&&9===r.nodeType&&r.documentElement?(j=r,L=j.documentElement,P=!T(j),I!==j&&(e=j.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Mt,!1):e.attachEvent&&e.attachEvent("onunload",Mt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(j.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(j.getElementsByClassName),w.getById=i(function(t){return L.appendChild(t).id=H,!j.getElementsByName||!j.getElementsByName(H).length}),w.getById?(M.filter.ID=function(t){var n=t.replace(_t,xt);return function(t){return t.getAttribute("id")===n}},M.find.ID=function(t,n){if("undefined"!=typeof n.getElementById&&P){var e=n.getElementById(t);return e?[e]:[]}}):(M.filter.ID=function(t){var n=t.replace(_t,xt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},M.find.ID=function(t,n){if("undefined"!=typeof n.getElementById&&P){var e,r,i,o=n.getElementById(t);if(o){if(e=o.getAttributeNode("id"),e&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if(e=o.getAttributeNode("id"),e&&e.value===t)return[o]}return[]}}),M.find.TAG=w.getElementsByTagName?function(t,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t):w.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},M.find.CLASS=w.getElementsByClassName&&function(t,n){if("undefined"!=typeof n.getElementsByClassName&&P)return n.getElementsByClassName(t)},F=[],O=[],(w.qsa=vt.test(j.querySelectorAll))&&(i(function(t){L.appendChild(t).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+et+"*(?:value|"+nt+")"),t.querySelectorAll("[id~="+H+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+H+"+*").length||O.push(".#.+[+~]")}),i(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=j.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+et+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),L.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=vt.test(z=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(t){w.disconnectedMatch=z.call(t,"*"),z.call(t,"[s!='']:x"),F.push("!=",ot)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),n=vt.test(L.compareDocumentPosition),R=n||vt.test(L.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},X=n?function(t,n){if(t===n)return q=!0,0;var e=!t.compareDocumentPosition-!n.compareDocumentPosition;return e?e:(e=(t.ownerDocument||t)===(n.ownerDocument||n)?t.compareDocumentPosition(n):1,1&e||!w.sortDetached&&n.compareDocumentPosition(t)===e?t===j||t.ownerDocument===I&&R(I,t)?-1:n===j||n.ownerDocument===I&&R(I,n)?1:A?tt(A,t)-tt(A,n):0:4&e?-1:1)}:function(t,n){if(t===n)return q=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,u=[t],s=[n];if(!i||!o)return t===j?-1:n===j?1:i?-1:o?1:A?tt(A,t)-tt(A,n):0;if(i===o)return a(t,n);for(e=t;e=e.parentNode;)u.unshift(e);for(e=n;e=e.parentNode;)s.unshift(e);for(;u[r]===s[r];)r++;return r?a(u[r],s[r]):u[r]===I?-1:s[r]===I?1:0},j):j},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==j&&D(t),e=e.replace(lt,"='$1']"),w.matchesSelector&&P&&!$[e+" "]&&(!F||!F.test(e))&&(!O||!O.test(e)))try{var r=z.call(t,e);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return n(e,j,null,[t]).length>0},n.contains=function(t,n){return(t.ownerDocument||t)!==j&&D(t),R(t,n)},n.attr=function(t,n){(t.ownerDocument||t)!==j&&D(t);var e=M.attrHandle[n.toLowerCase()],r=e&&V.call(M.attrHandle,n.toLowerCase())?e(t,n,!P):void 0;return void 0!==r?r:w.attributes||!P?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null},n.escape=function(t){return(t+"").replace(bt,wt)},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var n,e=[],r=0,i=0;if(q=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(X),q){for(;n=t[i++];)n===t[i]&&(r=e.push(i));for(;r--;)t.splice(e[r],1)}return A=null,t},k=n.getText=function(t){var n,e="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;n=t[r++];)e+=k(n);return e},M=n.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_t,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&ft.test(e)&&(n=S(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(_t,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=W[t+" "];return n||(n=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&W(t,function(t){return n.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var o=n.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===r:"!="===e?o!==r:"^="===e?r&&0===o.indexOf(r):"*="===e?r&&o.indexOf(r)>-1:"$="===e?r&&o.slice(-r.length)===r:"~="===e?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===e&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,s){var c,l,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",v=n.parentNode,y=u&&n.nodeName.toLowerCase(),m=!s&&!u,_=!1;if(v){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&m){for(h=v,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===U&&c[1],_=p&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||d.pop();)if(1===h.nodeType&&++_&&h===n){l[t]=[U,p,_];break}}else if(m&&(h=n,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===U&&c[1],_=p),_===!1)for(;(h=++p&&h&&h[g]||(_=p=0)||d.pop())&&((u?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++_||(m&&(f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[t]=[U,_]),h!==n)););return _-=i,_===r||_%r===0&&_/r>=0}}},PSEUDO:function(t,e){var i,o=M.pseudos[t]||M.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return o[H]?o(e):o.length>1?(i=[t,t,"",e],M.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var r,i=o(t,e),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(n[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var n=[],e=[],i=C(t.replace(ut,"$1"));return i[H]?r(function(t,n,e,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))}):function(t,r,o){return n[0]=t,i(n,null,o,e),n[0]=null,!e.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return t=t.replace(_t,xt),function(n){return(n.textContent||n.innerText||k(n)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(_t,xt).toLowerCase(),function(n){var e;do if(e=P?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return e=e.toLowerCase(),e===t||0===e.indexOf(t+"-");while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===L},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!M.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,n){return[n-1]}),eq:l(function(t,n,e){return[e<0?e+n:e]}),even:l(function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t}),odd:l(function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t}),lt:l(function(t,n,e){for(var r=e<0?e+n:e;--r>=0;)t.push(r);return t}),gt:l(function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t})}},M.pseudos.nth=M.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[b]=u(b);for(b in{submit:!0,reset:!0})M.pseudos[b]=s(b);return h.prototype=M.filters=M.pseudos,M.setFilters=new h,S=n.tokenize=function(t,e){var r,i,o,a,u,s,c,l=Y[t+" "];if(l)return e?0:l.slice(0);for(u=t,s=[],c=M.preFilter;u;){r&&!(i=st.exec(u))||(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ct.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),u=u.slice(r.length));for(a in M.filter)!(i=pt[a].exec(u))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return e?u.length:u?n.error(t):Y(t,s).slice(0)},C=n.compile=function(t,n){var e,r=[],i=[],o=$[t+" "];if(!o){for(n||(n=S(t)),e=n.length;e--;)o=_(n[e]),o[H]?r.push(o):i.push(o);o=$(t,x(i,r)),o.selector=t}return o},N=n.select=function(t,n,e,r){var i,o,a,u,s,c="function"==typeof t&&t,l=!r&&S(t=c.selector||t);if(e=e||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&P&&M.relative[o[1].type]){if(n=(M.find.ID(a.matches[0].replace(_t,xt),n)||[])[0],!n)return e;c&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!M.relative[u=a.type]);)if((s=M.find[u])&&(r=s(a.matches[0].replace(_t,xt),mt.test(o[0].type)&&f(n.parentNode)||n))){if(o.splice(i,1),t=r.length&&p(o),!t)return Q.apply(e,r),e;break}}return(c||C(t,l))(r,n,!P,e,!n||mt.test(t)&&f(n.parentNode)||n),e},w.sortStable=H.split("").sort(X).join("")===H,w.detectDuplicates=!!q,D(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(j.createElement("fieldset"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,n,e){var r;if(!e)return t[n]===!0?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null}),n}(e);mt.find=Mt,mt.expr=Mt.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=Mt.uniqueSort,mt.text=Mt.getText,mt.isXMLDoc=Mt.isXML,mt.contains=Mt.contains,mt.escapeSelector=Mt.escape;var kt=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&mt(t).is(e))break;r.push(t)}return r},Tt=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},St=mt.expr.match.needsContext,Ct=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Nt=/^.[^:#\[\.,]*$/;mt.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?mt.find.matchesSelector(r,t)?[r]:[]:mt.find.matches(t,mt.grep(n,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(n=0;n<r;n++)if(mt.contains(i[n],this))return!0}));for(e=this.pushStack([]),n=0;n<r;n++)mt.find(t,i[n],e);return r>1?mt.uniqueSort(e):e},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&St.test(t)?mt(t):t||[],!1).length}});var Et,At=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,qt=mt.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||Et,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:At.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof mt?n[0]:n,mt.merge(this,mt.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:ot,!0)),Ct.test(r[1])&&mt.isPlainObject(n))for(r in n)mt.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return i=ot.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==e.ready?e.ready(t):t(mt):mt.makeArray(t,this)};qt.prototype=mt.fn,Et=mt(ot);var Dt=/^(?:parents|prev(?:Until|All))/,jt={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var n=mt(t,this),e=n.length;return this.filter(function(){for(var t=0;t<e;t++)if(mt.contains(this,n[t]))return!0})},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&mt(t);if(!St.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&mt.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?mt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?lt.call(mt(t),this[0]):lt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return kt(t,"parentNode")},parentsUntil:function(t,n,e){return kt(t,"parentNode",e)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return kt(t,"nextSibling")},prevAll:function(t){return kt(t,"previousSibling")},nextUntil:function(t,n,e){return kt(t,"nextSibling",e)},prevUntil:function(t,n,e){return kt(t,"previousSibling",e)},siblings:function(t){return Tt((t.parentNode||{}).firstChild,t)},children:function(t){return Tt(t.firstChild)},contents:function(t){return t.contentDocument||mt.merge([],t.childNodes)}},function(t,n){mt.fn[t]=function(e,r){var i=mt.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=mt.filter(r,i)),this.length>1&&(jt[t]||mt.uniqueSort(i),Dt.test(t)&&i.reverse()),this.pushStack(i)}});var Lt=/[^\x20\t\r\n\f]+/g;mt.Callbacks=function(t){t="string"==typeof t?l(t):mt.extend({},t);var n,e,r,i,o=[],a=[],u=-1,s=function(){for(i=t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)o[u].apply(e[0],e[1])===!1&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},c={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){mt.each(e,function(e,r){mt.isFunction(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==mt.type(r)&&n(r)})}(arguments),e&&!n&&s()),this},remove:function(){return mt.each(arguments,function(t,n){for(var e;(e=mt.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--}),this},has:function(t){return t?mt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=e||[],e=[t,e.slice?e.slice():e],a.push(e),n||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},mt.extend({Deferred:function(t){var n=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return mt.Deferred(function(e){mt.each(n,function(n,r){var i=mt.isFunction(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var u=this,s=arguments,c=function(){var e,c;if(!(t<a)){if(e=r.apply(u,s),e===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,mt.isFunction(c)?i?c.call(e,o(a,n,f,i),o(a,n,h,i)):(a++,c.call(e,o(a,n,f,i),o(a,n,h,i),o(a,n,f,n.notifyWith))):(r!==f&&(u=void 0,s=[e]),(i||n.resolveWith)(u,s))}},l=i?c:function(){try{c()}catch(e){mt.Deferred.exceptionHook&&mt.Deferred.exceptionHook(e,l.stackTrace),t+1>=a&&(r!==h&&(u=void 0,s=[e]),n.rejectWith(u,s))}};t?l():(mt.Deferred.getStackHook&&(l.stackTrace=mt.Deferred.getStackHook()),e.setTimeout(l))}}var a=0;return mt.Deferred(function(e){n[0][3].add(o(0,e,mt.isFunction(i)?i:f,e.notifyWith)),n[1][3].add(o(0,e,mt.isFunction(t)?t:f)),n[2][3].add(o(0,e,mt.isFunction(r)?r:h))}).promise()},promise:function(t){return null!=t?mt.extend(t,i):i}},o={};return mt.each(n,function(t,e){var a=e[2],u=e[5];i[e[1]]=a.add,u&&a.add(function(){r=u},n[3-t][2].disable,n[0][2].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=ut.call(arguments),o=mt.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?ut.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(p(t,o.done(a(e)).resolve,o.reject),"pending"===o.state()||mt.isFunction(i[e]&&i[e].then)))return o.then();for(;e--;)p(i[e],a(e),o.reject);return o.promise()}});var Pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Pt.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},mt.readyException=function(t){e.setTimeout(function(){throw t})};var Ot=mt.Deferred();mt.fn.ready=function(t){return Ot.then(t).catch(function(t){mt.readyException(t)}),this},mt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?mt.readyWait++:mt.ready(!0)},ready:function(t){(t===!0?--mt.readyWait:mt.isReady)||(mt.isReady=!0,t!==!0&&--mt.readyWait>0||Ot.resolveWith(ot,[mt]))}}),mt.ready.then=Ot.then,"complete"===ot.readyState||"loading"!==ot.readyState&&!ot.documentElement.doScroll?e.setTimeout(mt.ready):(ot.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var Ft=function(t,n,e,r,i,o,a){var u=0,s=t.length,c=null==e;if("object"===mt.type(e)){i=!0;for(u in e)Ft(t,n,u,e[u],!0,o,a)}else if(void 0!==r&&(i=!0,mt.isFunction(r)||(a=!0),c&&(a?(n.call(t,r),n=null):(c=n,n=function(t,n,e){return c.call(mt(t),e)})),n))for(;u<s;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:c?n.call(t):s?n(t[0],e):o},zt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var n=t[this.expando];return n||(n={},zt(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[mt.camelCase(n)]=e;else for(r in n)i[mt.camelCase(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][mt.camelCase(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){mt.isArray(n)?n=n.map(mt.camelCase):(n=mt.camelCase(n),n=n in r?[n]:n.match(Lt)||[]),e=n.length;for(;e--;)delete r[n[e]]}(void 0===n||mt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!mt.isEmptyObject(n)}};var Rt=new g,Ht=new g,It=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ut=/[A-Z]/g;mt.extend({hasData:function(t){return Ht.hasData(t)||Rt.hasData(t)},data:function(t,n,e){return Ht.access(t,n,e)},removeData:function(t,n){Ht.remove(t,n)},_data:function(t,n,e){return Rt.access(t,n,e)},_removeData:function(t,n){Rt.remove(t,n)}}),mt.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Ht.get(o),1===o.nodeType&&!Rt.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&(r=a[e].name,0===r.indexOf("data-")&&(r=mt.camelCase(r.slice(5)),y(o,r,i[r])));Rt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Ht.set(this,t)}):Ft(this,function(n){var e;if(o&&void 0===n){if(e=Ht.get(o,t),void 0!==e)return e;if(e=y(o,t),void 0!==e)return e}else this.each(function(){Ht.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ht.remove(this,t)})}}),mt.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=Rt.get(t,n),e&&(!r||mt.isArray(e)?r=Rt.access(t,n,mt.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=mt.queue(t,n),r=e.length,i=e.shift(),o=mt._queueHooks(t,n),a=function(){mt.dequeue(t,n)};"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return Rt.get(t,e)||Rt.access(t,e,{empty:mt.Callbacks("once memory").add(function(){Rt.remove(t,[n+"queue",e])})})}}),mt.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?mt.queue(this[0],t):void 0===n?this:this.each(function(){var e=mt.queue(this,t,n);mt._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&mt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){mt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=mt.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)e=Rt.get(o[a],t+"queueHooks"),e&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var Bt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Wt=new RegExp("^(?:([+-])=|)("+Bt+")([a-z%]*)$","i"),Yt=["Top","Right","Bottom","Left"],$t=function(t,n){return t=n||t,"none"===t.style.display||""===t.style.display&&mt.contains(t.ownerDocument,t)&&"none"===mt.css(t,"display")},Xt=function(t,n,e,r){var i,o,a={};for(o in n)a[o]=t.style[o],t.style[o]=n[o];i=e.apply(t,r||[]);for(o in n)t.style[o]=a[o];return i},Vt={};mt.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){$t(this)?mt(this).show():mt(this).hide()})}});var Gt=/^(?:checkbox|radio)$/i,Jt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Zt=/^$|\/(?:java|ecma)script/i,Qt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;
+var Kt=/<|&#?\w+;/;!function(){var t=ot.createDocumentFragment(),n=t.appendChild(ot.createElement("div")),e=ot.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),n.appendChild(e),vt.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var tn=ot.documentElement,nn=/^key/,en=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rn=/^([^.]*)(?:\.(.+)|)/;mt.event={global:{},add:function(t,n,e,r,i){var o,a,u,s,c,l,f,h,p,d,g,v=Rt.get(t);if(v)for(e.handler&&(o=e,e=o.handler,i=o.selector),i&&mt.find.matchesSelector(tn,i),e.guid||(e.guid=mt.guid++),(s=v.events)||(s=v.events={}),(a=v.handle)||(a=v.handle=function(n){return"undefined"!=typeof mt&&mt.event.triggered!==n.type?mt.event.dispatch.apply(t,arguments):void 0}),n=(n||"").match(Lt)||[""],c=n.length;c--;)u=rn.exec(n[c])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p&&(f=mt.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=mt.event.special[p]||{},l=mt.extend({type:p,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&mt.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=s[p])||(h=s[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),mt.event.global[p]=!0)},remove:function(t,n,e,r,i){var o,a,u,s,c,l,f,h,p,d,g,v=Rt.hasData(t)&&Rt.get(t);if(v&&(s=v.events)){for(n=(n||"").match(Lt)||[""],c=n.length;c--;)if(u=rn.exec(n[c])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p){for(f=mt.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=s[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&g!==l.origType||e&&e.guid!==l.guid||u&&!u.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,v.handle)!==!1||mt.removeEvent(t,p,v.handle),delete s[p])}else for(p in s)mt.event.remove(t,p+n[c],e,r,!0);mt.isEmptyObject(s)&&Rt.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=mt.event.fix(t),s=new Array(arguments.length),c=(Rt.get(this,"events")||{})[u.type]||[],l=mt.event.special[u.type]||{};for(s[0]=u,n=1;n<arguments.length;n++)s[n]=arguments[n];if(u.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,u)!==!1){for(a=mt.event.handlers.call(this,u,c),n=0;(i=a[n++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,r=((mt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(u.result=r)===!1&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,n){var e,r,i,o,a,u=[],s=n.delegateCount,c=t.target;if(s&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||c.disabled!==!0)){for(o=[],a={},e=0;e<s;e++)r=n[e],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?mt(i,this).index(c)>-1:mt.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&u.push({elem:c,handlers:o})}return c=this,s<n.length&&u.push({elem:c,handlers:n.slice(s)}),u},addProp:function(t,n){Object.defineProperty(mt.Event.prototype,t,{enumerable:!0,configurable:!0,get:mt.isFunction(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[mt.expando]?t:new mt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&mt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return mt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},mt.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},mt.Event=function(t,n){return this instanceof mt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?k:T,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&mt.extend(this,n),this.timeStamp=t&&t.timeStamp||mt.now(),void(this[mt.expando]=!0)):new mt.Event(t,n)},mt.Event.prototype={constructor:mt.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},mt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var n=t.button;return null==t.which&&nn.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==n&&en.test(t.type)?1&n?1:2&n?3:4&n?2:0:t.which}},mt.event.addProp),mt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){mt.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||mt.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}}),mt.fn.extend({on:function(t,n,e,r){return C(this,t,n,e,r)},one:function(t,n,e,r){return C(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,mt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return n!==!1&&"function"!=typeof n||(e=n,n=void 0),e===!1&&(e=T),this.each(function(){mt.event.remove(this,t,e,n)})}});var on=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,an=/<script|<style|<link/i,un=/checked\s*(?:[^=]|=\s*.checked.)/i,sn=/^true\/(.*)/,cn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;mt.extend({htmlPrefilter:function(t){return t.replace(on,"<$1></$2>")},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),s=mt.contains(t.ownerDocument,t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||mt.isXMLDoc(t)))for(a=b(u),o=b(t),r=0,i=o.length;r<i;r++)D(o[r],a[r]);if(n)if(e)for(o=o||b(t),a=a||b(u),r=0,i=o.length;r<i;r++)q(o[r],a[r]);else q(t,u);return a=b(u,"script"),a.length>0&&w(a,!s&&b(t,"script")),u},cleanData:function(t){for(var n,e,r,i=mt.event.special,o=0;void 0!==(e=t[o]);o++)if(zt(e)){if(n=e[Rt.expando]){if(n.events)for(r in n.events)i[r]?mt.event.remove(e,r):mt.removeEvent(e,r,n.handle);e[Rt.expando]=void 0}e[Ht.expando]&&(e[Ht.expando]=void 0)}}}),mt.fn.extend({detach:function(t){return L(this,t,!0)},remove:function(t){return L(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?mt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=N(this,t);n.appendChild(t)}})},prepend:function(){return j(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=N(this,t);n.insertBefore(t,n.firstChild)}})},before:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return j(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(mt.cleanData(b(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map(function(){return mt.clone(this,t,n)})},html:function(t){return Ft(this,function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!an.test(t)&&!Qt[(Jt.exec(t)||["",""])[1].toLowerCase()]){t=mt.htmlPrefilter(t);try{for(;e<r;e++)n=this[e]||{},1===n.nodeType&&(mt.cleanData(b(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return j(this,arguments,function(n){var e=this.parentNode;mt.inArray(this,t)<0&&(mt.cleanData(b(this)),e&&e.replaceChild(n,this))},t)}}),mt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){mt.fn[t]=function(t){for(var e,r=[],i=mt(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),mt(i[a])[n](e),ct.apply(r,e.get());return this.pushStack(r)}});var ln=/^margin/,fn=new RegExp("^("+Bt+")(?!px)[a-z%]+$","i"),hn=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(u){u.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",u.innerHTML="",tn.appendChild(a);var t=e.getComputedStyle(u);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,u.style.marginRight="50%",i="4px"===t.marginRight,tn.removeChild(a),u=null}}var n,r,i,o,a=ot.createElement("div"),u=ot.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===u.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(u),mt.extend(vt,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var pn=/^(none|table(?!-c[ea]).+)/,dn={position:"absolute",visibility:"hidden",display:"block"},gn={letterSpacing:"0",fontWeight:"400"},vn=["Webkit","Moz","ms"],yn=ot.createElement("div").style;mt.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=P(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=mt.camelCase(n),s=t.style;return n=mt.cssProps[u]||(mt.cssProps[u]=F(u)||u),a=mt.cssHooks[n]||mt.cssHooks[u],void 0===e?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n]:(o=typeof e,"string"===o&&(i=Wt.exec(e))&&i[1]&&(e=m(t,n,i),o="number"),null!=e&&e===e&&("number"===o&&(e+=i&&i[3]||(mt.cssNumber[u]?"":"px")),vt.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(s[n]=e)),void 0)}},css:function(t,n,e,r){var i,o,a,u=mt.camelCase(n);return n=mt.cssProps[u]||(mt.cssProps[u]=F(u)||u),a=mt.cssHooks[n]||mt.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=P(t,n,r)),"normal"===i&&n in gn&&(i=gn[n]),""===e||e?(o=parseFloat(i),e===!0||isFinite(o)?o||0:i):i}}),mt.each(["height","width"],function(t,n){mt.cssHooks[n]={get:function(t,e,r){if(e)return!pn.test(mt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?H(t,n,r):Xt(t,dn,function(){return H(t,n,r)})},set:function(t,e,r){var i,o=r&&hn(t),a=r&&R(t,n,r,"border-box"===mt.css(t,"boxSizing",!1,o),o);return a&&(i=Wt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=mt.css(t,n)),z(t,e,a)}}}),mt.cssHooks.marginLeft=O(vt.reliableMarginLeft,function(t,n){if(n)return(parseFloat(P(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),mt.each({margin:"",padding:"",border:"Width"},function(t,n){mt.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+Yt[r]+n]=o[r]||o[r-2]||o[0];return i}},ln.test(t)||(mt.cssHooks[t+n].set=z)}),mt.fn.extend({css:function(t,n){return Ft(this,function(t,n,e){var r,i,o={},a=0;if(mt.isArray(n)){for(r=hn(t),i=n.length;a<i;a++)o[n[a]]=mt.css(t,n[a],!1,r);return o}return void 0!==e?mt.style(t,n,e):mt.css(t,n)},t,n,arguments.length>1)}}),mt.Tween=I,I.prototype={constructor:I,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||mt.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(mt.cssNumber[e]?"":"px")},cur:function(){var t=I.propHooks[this.prop];return t&&t.get?t.get(this):I.propHooks._default.get(this)},run:function(t){var n,e=I.propHooks[this.prop];return this.options.duration?this.pos=n=mt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):I.propHooks._default.set(this),this}},I.prototype.init.prototype=I.prototype,I.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=mt.css(t.elem,t.prop,""),n&&"auto"!==n?n:0)},set:function(t){mt.fx.step[t.prop]?mt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[mt.cssProps[t.prop]]&&!mt.cssHooks[t.prop]?t.elem[t.prop]=t.now:mt.style(t.elem,t.prop,t.now+t.unit)}}},I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},mt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},mt.fx=I.prototype.init,mt.fx.step={};var mn,_n,xn=/^(?:toggle|show|hide)$/,bn=/queueHooks$/;mt.Animation=mt.extend(V,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return m(e.elem,t,Wt.exec(n),e),e}]},tweener:function(t,n){mt.isFunction(t)?(n=t,t=["*"]):t=t.match(Lt);for(var e,r=0,i=t.length;r<i;r++)e=t[r],V.tweeners[e]=V.tweeners[e]||[],V.tweeners[e].unshift(n)},prefilters:[$],prefilter:function(t,n){n?V.prefilters.unshift(t):V.prefilters.push(t)}}),mt.speed=function(t,n,e){var r=t&&"object"==typeof t?mt.extend({},t):{complete:e||!e&&n||mt.isFunction(t)&&t,duration:t,easing:e&&n||n&&!mt.isFunction(n)&&n};return mt.fx.off||ot.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in mt.fx.speeds?r.duration=mt.fx.speeds[r.duration]:r.duration=mt.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){mt.isFunction(r.old)&&r.old.call(this),r.queue&&mt.dequeue(this,r.queue)},r},mt.fn.extend({fadeTo:function(t,n,e,r){return this.filter($t).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=mt.isEmptyObject(t),o=mt.speed(n,e,r),a=function(){var n=V(this,mt.extend({},t),o);(i||Rt.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var n=!0,i=null!=t&&t+"queueHooks",o=mt.timers,a=Rt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&bn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||mt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var n,e=Rt.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=mt.timers,a=r?r.length:0;for(e.finish=!0,mt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish})}}),mt.each(["toggle","show","hide"],function(t,n){var e=mt.fn[n];mt.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(W(n,!0),t,r,i)}}),mt.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){mt.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}}),mt.timers=[],mt.fx.tick=function(){var t,n=0,e=mt.timers;for(mn=mt.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||mt.fx.stop(),mn=void 0},mt.fx.timer=function(t){mt.timers.push(t),t()?mt.fx.start():mt.timers.pop()},mt.fx.interval=13,mt.fx.start=function(){_n||(_n=e.requestAnimationFrame?e.requestAnimationFrame(U):e.setInterval(mt.fx.tick,mt.fx.interval))},mt.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(_n):e.clearInterval(_n),_n=null},mt.fx.speeds={slow:600,fast:200,_default:400},mt.fn.delay=function(t,n){return t=mt.fx?mt.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var t=ot.createElement("input"),n=ot.createElement("select"),e=n.appendChild(ot.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=e.selected,t=ot.createElement("input"),t.value="t",t.type="radio",vt.radioValue="t"===t.value}();var wn,Mn=mt.expr.attrHandle;mt.fn.extend({attr:function(t,n){return Ft(this,mt.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?mt.prop(t,n,e):(1===o&&mt.isXMLDoc(t)||(i=mt.attrHooks[n.toLowerCase()]||(mt.expr.match.bool.test(n)?wn:void 0)),void 0!==e?null===e?void mt.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:(r=mt.find.attr(t,n),null==r?void 0:r))},attrHooks:{type:{set:function(t,n){if(!vt.radioValue&&"radio"===n&&mt.nodeName(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(Lt);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),wn={set:function(t,n,e){return n===!1?mt.removeAttr(t,e):t.setAttribute(e,e),e}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,n){var e=Mn[n]||mt.find.attr;Mn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=Mn[a],Mn[a]=i,i=null!=e(t,n,r)?a:null,Mn[a]=o),i}});var kn=/^(?:input|select|textarea|button)$/i,Tn=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,n){return Ft(this,mt.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&mt.isXMLDoc(t)||(n=mt.propFix[n]||n,i=mt.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=mt.find.attr(t,"tabindex");return n?parseInt(n,10):kn.test(t.nodeName)||Tn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||(mt.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this}),mt.fn.extend({addClass:function(t){var n,e,r,i,o,a,u,s=0;if(mt.isFunction(t))return this.each(function(n){mt(this).addClass(t.call(this,n,J(this)))});if("string"==typeof t&&t)for(n=t.match(Lt)||[];e=this[s++];)if(i=J(e),r=1===e.nodeType&&" "+G(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");u=G(r),i!==u&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,s=0;if(mt.isFunction(t))return this.each(function(n){mt(this).removeClass(t.call(this,n,J(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(n=t.match(Lt)||[];e=this[s++];)if(i=J(e),r=1===e.nodeType&&" "+G(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");u=G(r),i!==u&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t;return"boolean"==typeof n&&"string"===e?n?this.addClass(t):this.removeClass(t):mt.isFunction(t)?this.each(function(e){mt(this).toggleClass(t.call(this,e,J(this),n),n)}):this.each(function(){var n,r,i,o;if("string"===e)for(r=0,i=mt(this),o=t.match(Lt)||[];n=o[r++];)i.hasClass(n)?i.removeClass(n):i.addClass(n);else void 0!==t&&"boolean"!==e||(n=J(this),n&&Rt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||t===!1?"":Rt.get(this,"__className__")||""))})},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+G(J(e))+" ").indexOf(n)>-1)return!0;return!1}});var Sn=/\r/g;mt.fn.extend({val:function(t){var n,e,r,i=this[0];{if(arguments.length)return r=mt.isFunction(t),this.each(function(e){var i;1===this.nodeType&&(i=r?t.call(this,e,mt(this).val()):t,null==i?i="":"number"==typeof i?i+="":mt.isArray(i)&&(i=mt.map(i,function(t){return null==t?"":t+""})),n=mt.valHooks[this.type]||mt.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))});if(i)return n=mt.valHooks[i.type]||mt.valHooks[i.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:(e=i.value,"string"==typeof e?e.replace(Sn,""):null==e?"":e)}}}),mt.extend({valHooks:{option:{get:function(t){var n=mt.find.attr(t,"value");return null!=n?n:G(mt.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],s=a?o+1:i.length;for(r=o<0?s:a?o:0;r<s;r++)if(e=i[r],(e.selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!mt.nodeName(e.parentNode,"optgroup"))){if(n=mt(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=mt.makeArray(n),a=i.length;a--;)r=i[a],(r.selected=mt.inArray(mt.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),mt.each(["radio","checkbox"],function(){mt.valHooks[this]={set:function(t,n){if(mt.isArray(n))return t.checked=mt.inArray(mt(t).val(),n)>-1}},vt.checkOn||(mt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Cn=/^(?:focusinfocus|focusoutblur)$/;mt.extend(mt.event,{trigger:function(t,n,r,i){var o,a,u,s,c,l,f,h=[r||ot],p=pt.call(t,"type")?t.type:t,d=pt.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||ot,3!==r.nodeType&&8!==r.nodeType&&!Cn.test(p+mt.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[mt.expando]?t:new mt.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:mt.makeArray(n,[t]),f=mt.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!mt.isWindow(r)){for(s=f.delegateType||p,Cn.test(s+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||ot)&&h.push(u.defaultView||u.parentWindow||e)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?s:f.bindType||p,l=(Rt.get(a,"events")||{})[t.type]&&Rt.get(a,"handle"),l&&l.apply(a,n),l=c&&a[c],l&&l.apply&&zt(a)&&(t.result=l.apply(a,n),t.result===!1&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!zt(r)||c&&mt.isFunction(r[p])&&!mt.isWindow(r)&&(u=r[c],u&&(r[c]=null),mt.event.triggered=p,r[p](),mt.event.triggered=void 0,u&&(r[c]=u)),t.result}},simulate:function(t,n,e){var r=mt.extend(new mt.Event,e,{type:t,isSimulated:!0});mt.event.trigger(r,null,n)}}),mt.fn.extend({trigger:function(t,n){return this.each(function(){mt.event.trigger(t,n,this)})},triggerHandler:function(t,n){var e=this[0];if(e)return mt.event.trigger(t,n,e,!0)}}),mt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){mt.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}),mt.fn.extend({hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),vt.focusin="onfocusin"in e,vt.focusin||mt.each({focus:"focusin",blur:"focusout"},function(t,n){var e=function(t){mt.event.simulate(n,t.target,mt.event.fix(t))};mt.event.special[n]={setup:function(){var r=this.ownerDocument||this,i=Rt.access(r,n);i||r.addEventListener(t,e,!0),Rt.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Rt.access(r,n)-1;i?Rt.access(r,n,i):(r.removeEventListener(t,e,!0),Rt.remove(r,n))}}});var Nn=e.location,En=mt.now(),An=/\?/;mt.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||mt.error("Invalid XML: "+t),n};var qn=/\[\]$/,Dn=/\r?\n/g,jn=/^(?:submit|button|image|reset|file)$/i,Ln=/^(?:input|select|textarea|keygen)/i;mt.param=function(t,n){var e,r=[],i=function(t,n){var e=mt.isFunction(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(mt.isArray(t)||t.jquery&&!mt.isPlainObject(t))mt.each(t,function(){i(this.name,this.value)});else for(e in t)Z(e,t[e],n,i);return r.join("&")},mt.fn.extend({serialize:function(){return mt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=mt.prop(this,"elements");return t?mt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!mt(this).is(":disabled")&&Ln.test(this.nodeName)&&!jn.test(t)&&(this.checked||!Gt.test(t))}).map(function(t,n){var e=mt(this).val();return null==e?null:mt.isArray(e)?mt.map(e,function(t){return{name:n.name,value:t.replace(Dn,"\r\n")}}):{name:n.name,value:e.replace(Dn,"\r\n")}}).get()}});var Pn=/%20/g,On=/#.*$/,Fn=/([?&])_=[^&]*/,zn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Hn=/^(?:GET|HEAD)$/,In=/^\/\//,Un={},Bn={},Wn="*/".concat("*"),Yn=ot.createElement("a");Yn.href=Nn.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nn.href,type:"GET",isLocal:Rn.test(Nn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":mt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?tt(tt(t,mt.ajaxSettings),n):tt(mt.ajaxSettings,t)},ajaxPrefilter:Q(Un),ajaxTransport:Q(Bn),ajax:function(t,n){function r(t,n,r,u){var c,h,p,x,b,w=n;l||(l=!0,s&&e.clearTimeout(s),i=void 0,a=u||"",M.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(x=nt(d,M,r)),x=et(d,x,M,c),c?(d.ifModified&&(b=M.getResponseHeader("Last-Modified"),b&&(mt.lastModified[o]=b),b=M.getResponseHeader("etag"),b&&(mt.etag[o]=b)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=x.state,h=x.data,p=x.error,c=!p)):(p=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(n||w)+"",c?y.resolveWith(g,[h,w,M]):y.rejectWith(g,[M,w,p]),M.statusCode(_),_=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[M,d,c?h:p]),m.fireWith(g,[M,w]),f&&(v.trigger("ajaxComplete",[M,d]),--mt.active||mt.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,u,s,c,l,f,h,p,d=mt.ajaxSetup({},n),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?mt(g):mt.event,y=mt.Deferred(),m=mt.Callbacks("once memory"),_=d.statusCode||{},x={},b={},w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(l){if(!u)for(u={};n=zn.exec(a);)u[n[1].toLowerCase()]=n[2];n=u[t.toLowerCase()]}return null==n?null:n},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(t,n){return null==l&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,x[t]=n),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var n;if(t)if(l)M.always(t[M.status]);else for(n in t)_[n]=[_[n],t[n]];return this},abort:function(t){var n=t||w;return i&&i.abort(n),r(0,n),this}};if(y.promise(M),d.url=((t||d.url||Nn.href)+"").replace(In,Nn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Lt)||[""],null==d.crossDomain){c=ot.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Yn.protocol+"//"+Yn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=mt.param(d.data,d.traditional)),K(Un,d,n,M),l)return M;f=mt.event&&d.global,f&&0===mt.active++&&mt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Hn.test(d.type),o=d.url.replace(On,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pn,"+")):(p=d.url.slice(o.length),d.data&&(o+=(An.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(o=o.replace(Fn,"$1"),p=(An.test(o)?"&":"?")+"_="+En++ +p),d.url=o+p),d.ifModified&&(mt.lastModified[o]&&M.setRequestHeader("If-Modified-Since",mt.lastModified[o]),mt.etag[o]&&M.setRequestHeader("If-None-Match",mt.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Wn+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)M.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(g,M,d)===!1||l))return M.abort();if(w="abort",m.add(d.complete),M.done(d.success),M.fail(d.error),i=K(Bn,d,n,M)){if(M.readyState=1,f&&v.trigger("ajaxSend",[M,d]),l)return M;d.async&&d.timeout>0&&(s=e.setTimeout(function(){M.abort("timeout")},d.timeout));try{l=!1,i.send(x,r)}catch(t){if(l)throw t;r(-1,t)}}else r(-1,"No Transport");return M},getJSON:function(t,n,e){return mt.get(t,n,e,"json")},getScript:function(t,n){return mt.get(t,void 0,n,"script")}}),mt.each(["get","post"],function(t,n){mt[n]=function(t,e,r,i){return mt.isFunction(e)&&(i=i||r,r=e,e=void 0),mt.ajax(mt.extend({url:t,type:n,dataType:i,data:e,success:r},mt.isPlainObject(t)&&t))}}),mt._evalUrl=function(t){return mt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},mt.fn.extend({wrapAll:function(t){var n;return this[0]&&(mt.isFunction(t)&&(t=t.call(this[0])),n=mt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return mt.isFunction(t)?this.each(function(n){mt(this).wrapInner(t.call(this,n))}):this.each(function(){var n=mt(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)})},wrap:function(t){var n=mt.isFunction(t);return this.each(function(e){mt(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){
+mt(this).replaceWith(this.childNodes)}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var $n={0:200,1223:204},Xn=mt.ajaxSettings.xhr();vt.cors=!!Xn&&"withCredentials"in Xn,vt.ajax=Xn=!!Xn,mt.ajaxTransport(function(t){var n,r;if(vt.cors||Xn&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=r=u.onload=u.onerror=u.onabort=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o($n[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),r=u.onerror=n("error"),void 0!==u.onabort?u.onabort=r:u.onreadystatechange=function(){4===u.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var n,e;return{send:function(r,i){n=mt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),ot.head.appendChild(n[0])},abort:function(){e&&e()}}}});var Vn=[],Gn=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||mt.expando+"_"+En++;return this[t]=!0,t}}),mt.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,u=t.jsonp!==!1&&(Gn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=mt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Gn,"$1"+i):t.jsonp!==!1&&(t.url+=(An.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||mt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?mt(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vn.push(i)),a&&mt.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),vt.createHTMLDocument=function(){var t=ot.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),mt.parseHTML=function(t,n,e){if("string"!=typeof t)return[];"boolean"==typeof n&&(e=n,n=!1);var r,i,o;return n||(vt.createHTMLDocument?(n=ot.implementation.createHTMLDocument(""),r=n.createElement("base"),r.href=ot.location.href,n.head.appendChild(r)):n=ot),i=Ct.exec(t),o=!e&&[],i?[n.createElement(i[1])]:(i=M([t],n,o),o&&o.length&&mt(o).remove(),mt.merge([],i.childNodes))},mt.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=G(t.slice(u)),t=t.slice(0,u)),mt.isFunction(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&mt.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done(function(t){o=arguments,a.html(r?mt("<div>").append(mt.parseHTML(t)).find(r):t)}).always(e&&function(t,n){a.each(function(){e.apply(this,o||[t.responseText,n,t])})}),this},mt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,n){mt.fn[n]=function(t){return this.on(n,t)}}),mt.expr.pseudos.animated=function(t){return mt.grep(mt.timers,function(n){return t===n.elem}).length},mt.offset={setOffset:function(t,n,e){var r,i,o,a,u,s,c,l=mt.css(t,"position"),f=mt(t),h={};"static"===l&&(t.style.position="relative"),u=f.offset(),o=mt.css(t,"top"),s=mt.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+s).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),mt.isFunction(n)&&(n=n.call(t,e,mt.extend({},u))),null!=n.top&&(h.top=n.top-u.top+a),null!=n.left&&(h.left=n.left-u.left+i),"using"in n?n.using.call(t,h):f.css(h)}},mt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(n){mt.offset.setOffset(this,t,n)});var n,e,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,e=rt(i),n=i.documentElement,{top:r.top+e.pageYOffset-n.clientTop,left:r.left+e.pageXOffset-n.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var t,n,e=this[0],r={top:0,left:0};return"fixed"===mt.css(e,"position")?n=e.getBoundingClientRect():(t=this.offsetParent(),n=this.offset(),mt.nodeName(t[0],"html")||(r=t.offset()),r={top:r.top+mt.css(t[0],"borderTopWidth",!0),left:r.left+mt.css(t[0],"borderLeftWidth",!0)}),{top:n.top-r.top-mt.css(e,"marginTop",!0),left:n.left-r.left-mt.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===mt.css(t,"position");)t=t.offsetParent;return t||tn})}}),mt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var e="pageYOffset"===n;mt.fn[t]=function(r){return Ft(this,function(t,r,i){var o=rt(t);return void 0===i?o?o[n]:t[r]:void(o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),mt.each(["top","left"],function(t,n){mt.cssHooks[n]=O(vt.pixelPosition,function(t,e){if(e)return e=P(t,n),fn.test(e)?mt(t).position()[n]+"px":e})}),mt.each({Height:"height",Width:"width"},function(t,n){mt.each({padding:"inner"+t,content:n,"":"outer"+t},function(e,r){mt.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(i===!0||o===!0?"margin":"border");return Ft(this,function(n,e,i){var o;return mt.isWindow(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?mt.css(n,e,u):mt.style(n,e,i,u)},n,a?i:void 0,a)}})}),mt.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)}}),mt.parseJSON=JSON.parse,r=[],i=function(){return mt}.apply(n,r),!(void 0!==i&&(t.exports=i));var Jn=e.jQuery,Zn=e.$;return mt.noConflict=function(t){return e.$===mt&&(e.$=Zn),t&&e.jQuery===mt&&(e.jQuery=Jn),mt},o||(e.jQuery=e.$=mt),mt})},function(t,n,e){e(3);t.exports={process:function(t,n,e){var r=[];return t.split("\n").map(function(t){if(!t.startsWith("#")&&0!=t.length){var e=t.split("\t");if(9!==e.length&&(e=t.trim().split(/\s+/)),9==e.length){for(var i=e[8].split(";"),o={},a=0;a<i.length;++a){var u=i[a].split("=");o[u[0]]=u[1]}var s={seqid:e[0],source:e[1],type:e[2],start:parseInt(e[3]),end:parseInt(e[4]),score:e[5],strand:e[6],phase:e[7],attributes:o};(void 0===n||n.indexOf(s.type)>-1)&&r.push(s)}else{var c=new Error("9 parts of feature not found");console.log(c)}}}),r}}},function(t,n,e){"use strict";function r(t,n){if(!(this instanceof r))return new r(t,n);if(n&&n in p&&(n=null),n&&!(n in f))throw new Error("Unknown model: "+n);var e,i;if(t)if(t instanceof r)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var o=l.get(t);if(null===o)throw new Error("Unable to parse color from string: "+t);this.model=o.model,i=f[this.model].channels,this.color=o.value.slice(0,i),this.valpha="number"==typeof o.value[i]?o.value[i]:1}else if(t.length){this.model=n||"rgb",i=f[this.model].channels;var a=h.call(t,0,i);this.color=c(a,i),this.valpha="number"==typeof t[i]?t[i]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var u=Object.keys(t);"alpha"in t&&(u.splice(u.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var s=u.sort().join("");if(!(s in d))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=d[s];var v=f[this.model].labels,y=[];for(e=0;e<v.length;e++)y.push(t[v[e]]);this.color=c(y)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(g[this.model])for(i=f[this.model].channels,e=0;e<i;e++){var m=g[this.model][e];m&&(this.color[e]=m(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function i(t,n){return Number(t.toFixed(n))}function o(t){return function(n){return i(n,t)}}function a(t,n,e){return t=Array.isArray(t)?t:[t],t.forEach(function(t){(g[t]||(g[t]=[]))[n]=e}),t=t[0],function(r){var i;return arguments.length?(e&&(r=e(r)),i=this[t](),i.color[n]=r,i):(i=this[t]().color[n],e&&(i=e(i)),i)}}function u(t){return function(n){return Math.max(0,Math.min(t,n))}}function s(t){return Array.isArray(t)?t:[t]}function c(t,n){for(var e=0;e<n;e++)"number"!=typeof t[e]&&(t[e]=0);return t}var l=e(6),f=e(10),h=[].slice,p=["keyword","gray","hex"],d={};Object.keys(f).forEach(function(t){d[h.call(f[t].labels).sort().join("")]=t});var g={};r.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var n=this.model in l.to?this:this.rgb();n=n.round("number"==typeof t?t:1);var e=1===n.valpha?n.color:n.color.concat(this.valpha);return l.to[n.model](e)},percentString:function(t){var n=this.rgb().round("number"==typeof t?t:1),e=1===n.valpha?n.color:n.color.concat(this.valpha);return l.to.rgb.percent(e)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},n=f[this.model].channels,e=f[this.model].labels,r=0;r<n;r++)t[e[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new r(this.color.map(o(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new r(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:a("rgb",0,u(255)),green:a("rgb",1,u(255)),blue:a("rgb",2,u(255)),hue:a(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:a("hsl",1,u(100)),lightness:a("hsl",2,u(100)),saturationv:a("hsv",1,u(100)),value:a("hsv",2,u(100)),chroma:a("hcg",1,u(100)),gray:a("hcg",2,u(100)),white:a("hwb",1,u(100)),wblack:a("hwb",2,u(100)),cyan:a("cmyk",0,u(100)),magenta:a("cmyk",1,u(100)),yellow:a("cmyk",2,u(100)),black:a("cmyk",3,u(100)),x:a("xyz",0,u(100)),y:a("xyz",1,u(100)),z:a("xyz",2,u(100)),l:a("lab",0,u(100)),a:a("lab",1),b:a("lab",2),keyword:function(t){return arguments.length?new r(t):f[this.model].keyword(this.color)},hex:function(t){return arguments.length?new r(t):l.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,n=[],e=0;e<t.length;e++){var r=t[e]/255;n[e]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(t){var n=this.luminosity(),e=t.luminosity();return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)},level:function(t){var n=this.contrast(t);return n>=7.1?"AAA":n>=4.5?"AA":""},dark:function(){var t=this.rgb().color,n=(299*t[0]+587*t[1]+114*t[2])/1e3;return n<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),n=0;n<3;n++)t.color[n]=255-t.color[n];return t},lighten:function(t){var n=this.hsl();return n.color[2]+=n.color[2]*t,n},darken:function(t){var n=this.hsl();return n.color[2]-=n.color[2]*t,n},saturate:function(t){var n=this.hsl();return n.color[1]+=n.color[1]*t,n},desaturate:function(t){var n=this.hsl();return n.color[1]-=n.color[1]*t,n},whiten:function(t){var n=this.hwb();return n.color[1]+=n.color[1]*t,n},blacken:function(t){var n=this.hwb();return n.color[2]+=n.color[2]*t,n},grayscale:function(){var t=this.rgb().color,n=.3*t[0]+.59*t[1]+.11*t[2];return r.rgb(n,n,n)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var n=this.hsl(),e=n.color[0];return e=(e+t)%360,e=e<0?360+e:e,n.color[0]=e,n},mix:function(t,n){var e=this.rgb(),i=t.rgb(),o=void 0===n?.5:n,a=2*o-1,u=e.alpha()-i.alpha(),s=((a*u===-1?a:(a+u)/(1+a*u))+1)/2,c=1-s;return r.rgb(s*e.red()+c*i.red(),s*e.green()+c*i.green(),s*e.blue()+c*i.blue(),e.alpha()*o+i.alpha()*(1-o))}},Object.keys(f).forEach(function(t){if(p.indexOf(t)===-1){var n=f[t].channels;r.prototype[t]=function(){if(this.model===t)return new r(this);if(arguments.length)return new r(arguments,t);var e="number"==typeof arguments[n]?n:this.valpha;return new r(s(f[this.model][t].raw(this.color)).concat(e),t)},r[t]=function(e){return"number"==typeof e&&(e=c(h.call(arguments),n)),new r(e,t)}}}),t.exports=r},function(t,n,e){function r(t,n,e){return Math.min(Math.max(n,t),e)}function i(t){var n=t.toString(16).toUpperCase();return n.length<2?"0"+n:n}var o=e(7),a=e(8),u={};for(var s in o)o.hasOwnProperty(s)&&(u[o[s]]=s);var c=t.exports={to:{}};c.get=function(t){var n,e,r=t.substring(0,3).toLowerCase();switch(r){case"hsl":n=c.get.hsl(t),e="hsl";break;case"hwb":n=c.get.hwb(t),e="hwb";break;default:n=c.get.rgb(t),e="rgb"}return n?{model:e,value:n}:null},c.get.rgb=function(t){if(!t)return null;var n,e,i=/^#([a-fA-F0-9]{3})$/,a=/^#([a-fA-F0-9]{6})$/,u=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/(\D+)/,l=[0,0,0,1];if(n=t.match(i))for(n=n[1],e=0;e<3;e++)l[e]=parseInt(n[e]+n[e],16);else if(n=t.match(a))for(n=n[1],e=0;e<3;e++){var f=2*e;l[e]=parseInt(n.slice(f,f+2),16)}else if(n=t.match(u)){for(e=0;e<3;e++)l[e]=parseInt(n[e+1],0);n[4]&&(l[3]=parseFloat(n[4]))}else if(n=t.match(s)){for(e=0;e<3;e++)l[e]=Math.round(2.55*parseFloat(n[e+1]));n[4]&&(l[3]=parseFloat(n[4]))}else if(n=t.match(c))return"transparent"===n[1]?[0,0,0,0]:(l=o[n[1]])?(l[3]=1,l):null;for(e=0;e<l.length;e++)l[e]=r(l[e],0,255);return l[3]=r(l[3],0,1),l},c.get.hsl=function(t){if(!t)return null;var n=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=t.match(n);if(e){var i=parseFloat(e[4]),o=(parseFloat(e[1])%360+360)%360,a=r(parseFloat(e[2]),0,100),u=r(parseFloat(e[3]),0,100),s=r(isNaN(i)?1:i,0,1);return[o,a,u,s]}return null},c.get.hwb=function(t){if(!t)return null;var n=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,e=t.match(n);if(e){var i=parseFloat(e[4]),o=(parseFloat(e[1])%360+360)%360,a=r(parseFloat(e[2]),0,100),u=r(parseFloat(e[3]),0,100),s=r(isNaN(i)?1:i,0,1);return[o,a,u,s]}return null},c.to.hex=function(t){return"#"+i(t[0])+i(t[1])+i(t[2])},c.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=a(arguments),n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=a(arguments),n="";return t.length>=4&&1!==t[3]&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"},c.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,n){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,n,e){"use strict";var r=e(9),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var n=[],e=0,a=t.length;e<a;e++){var u=t[e];r(u)?n=i.call(n,o.call(u)):n.push(u)}return n};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,n){"use strict";t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,n,e){function r(t){var n=function(n){return void 0===n||null===n?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(n.conversion=t.conversion),n}function i(t){var n=function(n){if(void 0===n||null===n)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var e=t(n);if("object"==typeof e)for(var r=e.length,i=0;i<r;i++)e[i]=Math.round(e[i]);return e};return"conversion"in t&&(n.conversion=t.conversion),n}var o=e(11),a=e(12),u={},s=Object.keys(o);s.forEach(function(t){u[t]={},Object.defineProperty(u[t],"channels",{value:o[t].channels}),Object.defineProperty(u[t],"labels",{value:o[t].labels});var n=a(t),e=Object.keys(n);e.forEach(function(e){var o=n[e];u[t][e]=i(o),u[t][e].raw=r(o)})}),t.exports=u},function(t,n,e){function r(t,n){return Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)+Math.pow(t[2]-n[2],2)}var i=e(7),o={};for(var a in i)i.hasOwnProperty(a)&&(o[i[a]]=a);var u=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in u)if(u.hasOwnProperty(s)){if(!("channels"in u[s]))throw new Error("missing channels property: "+s);if(!("labels"in u[s]))throw new Error("missing channel labels property: "+s);if(u[s].labels.length!==u[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=u[s].channels,l=u[s].labels;delete u[s].channels,delete u[s].labels,Object.defineProperty(u[s],"channels",{value:c}),Object.defineProperty(u[s],"labels",{value:l})}u.rgb.hsl=function(t){var n,e,r,i=t[0]/255,o=t[1]/255,a=t[2]/255,u=Math.min(i,o,a),s=Math.max(i,o,a),c=s-u;return s===u?n=0:i===s?n=(o-a)/c:o===s?n=2+(a-i)/c:a===s&&(n=4+(i-o)/c),n=Math.min(60*n,360),n<0&&(n+=360),r=(u+s)/2,e=s===u?0:r<=.5?c/(s+u):c/(2-s-u),[n,100*e,100*r]},u.rgb.hsv=function(t){var n,e,r,i=t[0],o=t[1],a=t[2],u=Math.min(i,o,a),s=Math.max(i,o,a),c=s-u;return e=0===s?0:c/s*1e3/10,s===u?n=0:i===s?n=(o-a)/c:o===s?n=2+(a-i)/c:a===s&&(n=4+(i-o)/c),n=Math.min(60*n,360),n<0&&(n+=360),r=s/255*1e3/10,[n,e,r]},u.rgb.hwb=function(t){var n=t[0],e=t[1],r=t[2],i=u.rgb.hsl(t)[0],o=1/255*Math.min(n,Math.min(e,r));return r=1-1/255*Math.max(n,Math.max(e,r)),[i,100*o,100*r]},u.rgb.cmyk=function(t){var n,e,r,i,o=t[0]/255,a=t[1]/255,u=t[2]/255;return i=Math.min(1-o,1-a,1-u),n=(1-o-i)/(1-i)||0,e=(1-a-i)/(1-i)||0,r=(1-u-i)/(1-i)||0,[100*n,100*e,100*r,100*i]},u.rgb.keyword=function(t){var n=o[t];if(n)return n;var e,a=1/0;for(var u in i)if(i.hasOwnProperty(u)){var s=i[u],c=r(t,s);c<a&&(a=c,e=u)}return e},u.keyword.rgb=function(t){return i[t]},u.rgb.xyz=function(t){var n=t[0]/255,e=t[1]/255,r=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*n+.3576*e+.1805*r,o=.2126*n+.7152*e+.0722*r,a=.0193*n+.1192*e+.9505*r;return[100*i,100*o,100*a]},u.rgb.lab=function(t){var n,e,r,i=u.rgb.xyz(t),o=i[0],a=i[1],s=i[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*a-16,e=500*(o-a),r=200*(a-s),[n,e,r]},u.hsl.rgb=function(t){var n,e,r,i,o,a=t[0]/360,u=t[1]/100,s=t[2]/100;if(0===u)return o=255*s,[o,o,o];e=s<.5?s*(1+u):s+u-s*u,n=2*s-e,i=[0,0,0];for(var c=0;c<3;c++)r=a+1/3*-(c-1),r<0&&r++,r>1&&r--,o=6*r<1?n+6*(e-n)*r:2*r<1?e:3*r<2?n+(e-n)*(2/3-r)*6:n,i[c]=255*o;return i},u.hsl.hsv=function(t){var n,e,r=t[0],i=t[1]/100,o=t[2]/100,a=i,u=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=u<=1?u:2-u,e=(o+i)/2,n=0===o?2*a/(u+a):2*i/(o+i),[r,100*n,100*e]},u.hsv.rgb=function(t){var n=t[0]/60,e=t[1]/100,r=t[2]/100,i=Math.floor(n)%6,o=n-Math.floor(n),a=255*r*(1-e),u=255*r*(1-e*o),s=255*r*(1-e*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[u,r,a];case 2:return[a,r,s];case 3:return[a,u,r];case 4:return[s,a,r];case 5:return[r,a,u]}},u.hsv.hsl=function(t){var n,e,r,i=t[0],o=t[1]/100,a=t[2]/100,u=Math.max(a,.01);return r=(2-o)*a,n=(2-o)*u,e=o*u,e/=n<=1?n:2-n,e=e||0,r/=2,[i,100*e,100*r]},u.hwb.rgb=function(t){var n,e,r,i,o=t[0]/360,a=t[1]/100,u=t[2]/100,s=a+u;s>1&&(a/=s,u/=s),n=Math.floor(6*o),e=1-u,r=6*o-n,0!==(1&n)&&(r=1-r),i=a+r*(e-a);var c,l,f;switch(n){default:case 6:case 0:c=e,l=i,f=a;break;case 1:c=i,l=e,f=a;break;case 2:c=a,l=e,f=i;break;case 3:c=a,l=i,f=e;break;case 4:c=i,l=a,f=e;break;case 5:c=e,l=a,f=i}return[255*c,255*l,255*f]},u.cmyk.rgb=function(t){var n,e,r,i=t[0]/100,o=t[1]/100,a=t[2]/100,u=t[3]/100;return n=1-Math.min(1,i*(1-u)+u),e=1-Math.min(1,o*(1-u)+u),r=1-Math.min(1,a*(1-u)+u),[255*n,255*e,255*r]},u.xyz.rgb=function(t){var n,e,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=3.2406*i+o*-1.5372+a*-.4986,e=i*-.9689+1.8758*o+.0415*a,r=.0557*i+o*-.204+1.057*a,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=Math.min(Math.max(0,n),1),e=Math.min(Math.max(0,e),1),r=Math.min(Math.max(0,r),1),[255*n,255*e,255*r]},u.xyz.lab=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,n=116*o-16,e=500*(i-o),r=200*(o-a),[n,e,r]},u.lab.xyz=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];e=(i+16)/116,n=o/500+e,r=e-a/200;var u=Math.pow(e,3),s=Math.pow(n,3),c=Math.pow(r,3);return e=u>.008856?u:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,n*=95.047,e*=100,r*=108.883,[n,e,r]},u.lab.lch=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return n=Math.atan2(a,o),e=360*n/2/Math.PI,e<0&&(e+=360),r=Math.sqrt(o*o+a*a),[i,r,e]},u.lch.lab=function(t){var n,e,r,i=t[0],o=t[1],a=t[2];return r=a/360*2*Math.PI,n=o*Math.cos(r),e=o*Math.sin(r),[i,n,e]},u.rgb.ansi16=function(t){var n=t[0],e=t[1],r=t[2],i=1 in arguments?arguments[1]:u.rgb.hsv(t)[2];if(i=Math.round(i/50),0===i)return 30;var o=30+(Math.round(r/255)<<2|Math.round(e/255)<<1|Math.round(n/255));return 2===i&&(o+=60),o},u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])},u.rgb.ansi256=function(t){var n=t[0],e=t[1],r=t[2];if(n===e&&e===r)return n<8?16:n>248?231:Math.round((n-8)/247*24)+232;var i=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return i},u.ansi16.rgb=function(t){var n=t%10;if(0===n||7===n)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];var e=.5*(~~(t>50)+1),r=(1&n)*e*255,i=(n>>1&1)*e*255,o=(n>>2&1)*e*255;return[r,i,o]},u.ansi256.rgb=function(t){if(t>=232){var n=10*(t-232)+8;return[n,n,n]}t-=16;var e,r=Math.floor(t/36)/5*255,i=Math.floor((e=t%36)/6)/5*255,o=e%6/5*255;return[r,i,o]},u.rgb.hex=function(t){var n=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e},u.hex.rgb=function(t){var n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var e=n[0];3===n[0].length&&(e=e.split("").map(function(t){return t+t}).join(""));var r=parseInt(e,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},u.rgb.hcg=function(t){var n,e,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.max(Math.max(r,i),o),u=Math.min(Math.min(r,i),o),s=a-u;return n=s<1?u/(1-s):0,e=s<=0?0:a===r?(i-o)/s%6:a===i?2+(o-r)/s:4+(r-i)/s+4,e/=6,e%=1,[360*e,100*s,100*n]},u.hsl.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=1,i=0;return r=e<.5?2*n*e:2*n*(1-e),r<1&&(i=(e-.5*r)/(1-r)),[t[0],100*r,100*i]},u.hsv.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=n*e,i=0;return r<1&&(i=(e-r)/(1-r)),[t[0],100*r,100*i]},u.hcg.rgb=function(t){var n=t[0]/360,e=t[1]/100,r=t[2]/100;if(0===e)return[255*r,255*r,255*r];var i=[0,0,0],o=n%1*6,a=o%1,u=1-a,s=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return s=(1-e)*r,[255*(e*i[0]+s),255*(e*i[1]+s),255*(e*i[2]+s)]},u.hcg.hsv=function(t){var n=t[1]/100,e=t[2]/100,r=n+e*(1-n),i=0;return r>0&&(i=n/r),[t[0],100*i,100*r]},u.hcg.hsl=function(t){var n=t[1]/100,e=t[2]/100,r=e*(1-n)+.5*n,i=0;return r>0&&r<.5?i=n/(2*r):r>=.5&&r<1&&(i=n/(2*(1-r))),[t[0],100*i,100*r]},u.hcg.hwb=function(t){var n=t[1]/100,e=t[2]/100,r=n+e*(1-n);return[t[0],100*(r-n),100*(1-r)]},u.hwb.hcg=function(t){var n=t[1]/100,e=t[2]/100,r=1-e,i=r-n,o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],100*i,100*o]},u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},u.gray.hsl=u.gray.hsv=function(t){return[0,0,t[0]]},u.gray.hwb=function(t){return[0,100,t[0]]},u.gray.cmyk=function(t){return[0,0,0,t[0]]},u.gray.lab=function(t){return[t[0],0,0]},u.gray.hex=function(t){var n=255&Math.round(t[0]/100*255),e=(n<<16)+(n<<8)+n,r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(t){var n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},function(t,n,e){function r(){for(var t={},n=s.length,e=0;e<n;e++)t[s[e]]={distance:-1,parent:null};return t}function i(t){var n=r(),e=[t];for(n[t].distance=0;e.length;)for(var i=e.pop(),o=Object.keys(u[i]),a=o.length,s=0;s<a;s++){var c=o[s],l=n[c];l.distance===-1&&(l.distance=n[i].distance+1,l.parent=i,e.unshift(c))}return n}function o(t,n){return function(e){return n(t(e))}}function a(t,n){for(var e=[n[t].parent,t],r=u[n[t].parent][t],i=n[t].parent;n[i].parent;)e.unshift(n[i].parent),r=o(u[n[i].parent][i],r),i=n[i].parent;return r.conversion=e,r}var u=e(11),s=Object.keys(u);t.exports=function(t){for(var n=i(t),e={},r=Object.keys(n),o=r.length,u=0;u<o;u++){var s=r[u],c=n[s];null!==c.parent&&(e[s]=a(s,n))}return e}}]);
+//# sourceMappingURL=index.js.map
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mauve.xml	Mon Jun 05 02:54:26 2023 +0000
@@ -0,0 +1,68 @@
+<tool id="edu.tamu.cpt.comparative.mauve" name="X-Vis" version="1.0" profile="16.04">
+    <description>from XMFA file</description>
+    <macros>
+        <import>macros.xml</import>
+        <import>cpt-macros.xml</import>
+    </macros>
+    <configfiles>
+        <configfile name="index">
+		<![CDATA[
+#if ($frameHeight > 0):
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, height=$frameHeight, initial-scale=1">
+    <meta name="description" content="X-Vis">
+    <title>X-Vis</title>
+    <link rel="shortcut icon" href="favicon.ico">
+</head>
+<body>
+    <script src="mauve.js"></script>
+</body>
+</html>
+#else:
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="X-Vis">
+    <title>X-Vis</title>
+    <link rel="shortcut icon" href="favicon.ico">
+</head>
+<body>
+    <script src="mauve.js"></script>
+</body>
+</html>
+#end if
+		]]>
+		</configfile>
+    </configfiles>
+    <expand macro="requirements"/>
+    <command detect_errors="aggressive"><![CDATA[
+@GENOME_SELECTOR_PRE@
+mkdir -p "$output.files_path";
+
+python '$__tool_directory__/xmfa_process.py'
+@INPUT_GFF@
+@INPUT_FASTA@
+@XMFA_INPUT@
+"out" > "$output.files_path/data.json";
+mv out "$output.files_path/";
+
+cp '$__tool_directory__/mauve.js' '$output.files_path/';
+cp '$index' "$output"
+]]></command>
+    <inputs>
+        <expand macro="input/gff3+fasta"/>
+        <expand macro="xmfa_input"/>
+        <param label="Manually Set Height (0 for auto-scaling)" name="frameHeight" type="integer" value="0"/>
+    </inputs>
+    <outputs>
+        <data format="html" name="output"/>
+    </outputs>
+    <help>
+	</help>
+    <tests/>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xmfa_process.py	Mon Jun 05 02:54:26 2023 +0000
@@ -0,0 +1,115 @@
+#!/usr/bin/env python
+from Bio import SeqIO
+import argparse
+import json
+import os
+from CPT_GFFParser import gffParse, gffWrite
+
+
+def parse_xmfa(xmfa):
+    """Simple XMFA parser until https://github.com/biopython/biopython/pull/544"""
+    current_lcb = []
+    current_seq = {}
+    for line in xmfa.readlines():
+        if line.startswith("#"):
+            continue
+
+        if line.strip() == "=":
+            if "id" in current_seq:
+                current_lcb.append(current_seq)
+                current_seq = {}
+            yield current_lcb
+            current_lcb = []
+        else:
+            line = line.strip()
+            if line.startswith(">"):
+                if "id" in current_seq:
+                    current_lcb.append(current_seq)
+                    current_seq = {}
+                data = line.strip().split()
+                # 0 1           2 3      4 5
+                # > 1:5986-6406 + CbK.fa # CbK_gp011
+                id, loc = data[1].split(":")
+                start, end = loc.split("-")
+                current_seq = {
+                    "rid": "_".join(data[1:]),
+                    "id": id,
+                    "start": int(start),
+                    "end": int(end),
+                    "strand": 1 if data[2] == "+" else -1,
+                    "seq": "",
+                    "comment": "",
+                }
+                if len(data) > 5:
+                    current_seq["comment"] = " ".join(data[5:])
+            # else:
+            # current_seq['seq'] += line.strip()
+
+
+def percent_identity(a, b):
+    """Calculate % identity, ignoring gaps in the host sequence"""
+    match = 0
+    mismatch = 0
+    for char_a, char_b in zip(list(a), list(b)):
+        if char_a == "-":
+            continue
+        if char_a == char_b:
+            match += 1
+        else:
+            mismatch += 1
+
+    if match + mismatch == 0:
+        return 0.0
+    return 100 * float(match) / (match + mismatch)
+
+
+def get_fasta_ids(sequences):
+    """Returns a list of fasta records in the order they appear"""
+    ids = []
+    for seq in SeqIO.parse(sequences, "fasta"):
+        ids.append(seq.id)
+    return ids
+
+
+if __name__ == "__main__":
+    parser = argparse.ArgumentParser(description="parse xmfa file")
+    parser.add_argument("gff3", type=argparse.FileType("r"), help="Multi-GFF3 File")
+    parser.add_argument("fasta", type=argparse.FileType("r"), help="Multi-FA file")
+    parser.add_argument("xmfa", type=argparse.FileType("r"), help="XMFA File")
+    parser.add_argument("output_dir", type=str, help="output directory")
+    args = parser.parse_args()
+
+    fasta_list = get_fasta_ids(args.fasta)
+    lcbs = parse_xmfa(args.xmfa)
+
+    if not os.path.exists(args.output_dir):
+        os.makedirs(args.output_dir)
+
+    output = {"fasta": [], "gff3": [], "xmfa": None}
+
+    processed_xmfa = os.path.join(args.output_dir, "regions.json")
+    with open(processed_xmfa, "w") as handle:
+        json.dump([lcb for lcb in lcbs if len(lcb) > 1], handle, sort_keys=True)
+
+    output["xmfa"] = processed_xmfa
+
+    # Have to seek because we already access args.fasta once in id_tn_dict
+    args.fasta.seek(0)
+    # Load up sequence(s) for GFF3 data
+    seq_dict = SeqIO.to_dict(SeqIO.parse(args.fasta, "fasta"))
+    # Parse GFF3 records
+    gffs = gffParse(args.gff3, base_dict=seq_dict)
+    for record in sorted(gffs, key=lambda rec: fasta_list.index(rec.id)):
+        gff_output = os.path.join(args.output_dir, record.id + ".gff")
+        with open(gff_output, "w") as handle:
+            gffWrite([record], handle)
+        output["gff3"].append(gff_output)
+
+        fa_output = os.path.join(args.output_dir, record.id + ".txt")
+        with open(fa_output, "w") as handle:
+            handle.write(str(record.seq))
+            output["fasta"].append(
+                {"path": fa_output, "length": len(record.seq), "name": record.id}
+            )
+
+    print(json.dumps(output, sort_keys=True))