text: module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=54)}([function(t,e,n){"use strict";t.exports=n(43)},function(t,e,n){t.exports=n(45)()},function(t,e,n){var r,i;!function(){var o={version:"3.5.17"},a=[].slice,u=function(t){return a.call(t)},T=this.document;function s(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(T)try{u(T.documentElement.childNodes)[0].nodeType}catch(t){u=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),T)try{T.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var l=this.Element.prototype,A=l.setAttribute,f=l.setAttributeNS,C=this.CSSStyleDeclaration.prototype,G=C.setProperty;l.setAttribute=function(t,e){A.call(this,t,e+"")},l.setAttributeNS=function(t,e,n){f.call(this,t,e,n+"")},C.setProperty=function(t,e,n){G.call(this,t,e+"",n)}}function p(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function h(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function m(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}o.ascending=p,o.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},o.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},o.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},o.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]},o.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)d(n=+t[o])&&(r+=n);else for(;++o<i;)d(n=+e.call(t,t[o],o))&&(r+=n);return r},o.mean=function(t,e){var n,r=0,i=t.length,o=-1,a=i;if(1===arguments.length)for(;++o<i;)d(n=h(t[o]))?r+=n:--a;else for(;++o<i;)d(n=h(e.call(t,t[o],o)))?r+=n:--a;if(a)return r/a},o.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},o.median=function(t,e){var n,r=[],i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)d(n=h(t[a]))&&r.push(n);else for(;++a<i;)d(n=h(e.call(t,t[a],a)))&&r.push(n);if(r.length)return o.quantile(r.sort(p),.5)},o.variance=function(t,e){var n,r,i=t.length,o=0,a=0,u=-1,T=0;if(1===arguments.length)for(;++u<i;)d(n=h(t[u]))&&(a+=(r=n-o)*(n-(o+=r/++T)));else for(;++u<i;)d(n=h(e.call(t,t[u],u)))&&(a+=(r=n-o)*(n-(o+=r/++T)));if(T>1)return a/(T-1)},o.deviation=function(){var t=o.variance.apply(this,arguments);return t?Math.sqrt(t):t};var y=m(p);function v(t){return t.length}o.bisectLeft=y.left,o.bisect=o.bisectRight=y.right,o.bisector=function(t){return m(1===t.length?function(e,n){return p(t(e),n)}:t)},o.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,o<2&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},o.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},o.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e<n;)i[e]=[r,r=t[++e]];return i},o.transpose=function(t){if(!(i=t.length))return[];for(var e=-1,n=o.min(t,v),r=new Array(n);++e<n;)for(var i,a=-1,u=r[e]=new Array(i);++a<i;)u[a]=t[a][e];return r},o.zip=function(){return o.transpose(arguments)},o.keys=function(t){var e=[];for(var n in t)e.push(n);return e},o.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},o.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},o.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n};var g=Math.abs;function S(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function x(){this._=Object.create(null)}o.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,i=[],o=S(g(n)),a=-1;if(t*=o,e*=o,(n*=o)<0)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)<e;)i.push(r/o);return i},o.map=function(t,e){var n=new x;if(t instanceof x)t.forEach((function(t,e){n.set(t,e)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e.call(t,r=t[i],i),r)}else for(var a in t)n.set(a,t[a]);return n};var _="__proto__",w="\0";function k(t){return(t+="")===_||t[0]===w?w+t:t}function M(t){return(t+="")[0]===w?t.slice(1):t}function N(t){return k(t)in this._}function L(t){return(t=k(t))in this._&&delete this._[t]}function E(){var t=[];for(var e in this._)t.push(M(e));return t}function D(){var t=0;for(var e in this._)++t;return t}function O(){for(var t in this._)return!1;return!0}function P(){this._=Object.create(null)}function I(t){return t}function V(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function F(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=j.length;n<r;++n){var i=j[n]+e;if(i in t)return i}}b(x,{has:N,get:function(t){return this._[k(t)]},set:function(t,e){return this._[k(t)]=e},remove:L,keys:E,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:M(e),value:this._[e]});return t},size:D,empty:O,forEach:function(t){for(var e in this._)t.call(this,M(e),this._[e])}}),o.nest=function(){var t,e,n={},r=[],i=[];function a(i,o,u){if(u>=r.length)return e?e.call(n,o):t?o.sort(t):o;for(var T,s,c,l,A=-1,f=o.length,C=r[u++],G=new x;++A<f;)(l=G.get(T=C(s=o[A])))?l.push(s):G.set(T,[s]);return i?(s=i(),c=function(t,e){s.set(t,a(i,e,u))}):(s={},c=function(t,e){s[t]=a(i,e,u)}),G.forEach(c),s}return n.map=function(t,e){return a(e,t,0)},n.entries=function(t){return function t(e,n){if(n>=r.length)return e;var o=[],a=i[n++];return e.forEach((function(e,r){o.push({key:e,values:t(r,n)})})),a?o.sort((function(t,e){return a(t.key,e.key)})):o}(a(o.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return i[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},o.set=function(t){var e=new P;if(t)for(var n=0,r=t.length;n<r;++n)e.add(t[n]);return e},b(P,{has:N,add:function(t){return this._[k(t+="")]=!0,t},remove:L,values:E,size:D,empty:O,forEach:function(t){for(var e in this._)t.call(this,M(e))}}),o.behavior={},o.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=V(t,e,e[n]);return t};var j=["webkit","ms","moz","Moz","o","O"];function R(){}function K(){}function q(t){var e=[],n=new x;function r(){for(var n,r=e,i=-1,o=r.length;++i<o;)(n=r[i].on)&&n.apply(this,arguments);return t}return r.on=function(r,i){var o,a=n.get(r);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,o=e.indexOf(a)).concat(e.slice(o+1)),n.remove(r)),i&&e.push(n.set(r,{on:i})),t)},r}function z(){o.event.preventDefault()}function Q(){for(var t,e=o.event;t=e.sourceEvent;)e=t;return e}function B(t){for(var e=new K,n=0,r=arguments.length;++n<r;)e[arguments[n]]=q(e);return e.of=function(n,r){return function(i){try{var a=i.sourceEvent=o.event;i.target=t,o.event=i,e[i.type].apply(n,r)}finally{o.event=a}}},e}o.dispatch=function(){for(var t=new K,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=q(t);return t},K.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},o.event=null,o.requote=function(t){return t.replace(W,"\\$&")};var W=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function H(t){return U(t,$),t}var Y=function(t,e){return e.querySelector(t)},X=function(t,e){return e.querySelectorAll(t)},Z=function(t,e){var n=t.matches||t[F(t,"matchesSelector")];return(Z=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Y=function(t,e){return Sizzle(t,e)[0]||null},X=Sizzle,Z=Sizzle.matchesSelector),o.selection=function(){return o.select(T.documentElement)};var $=o.selection.prototype=[];function J(t){return"function"==typeof t?t:function(){return Y(t,this)}}function tt(t){return"function"==typeof t?t:function(){return X(t,this)}}$.select=function(t){var e,n,r,i,o=[];t=J(t);for(var a=-1,u=this.length;++a<u;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var T=-1,s=r.length;++T<s;)(i=r[T])?(e.push(n=t.call(i,i.__data__,T,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return H(o)},$.selectAll=function(t){var e,n,r=[];t=tt(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],T=-1,s=a.length;++T<s;)(n=a[T])&&(r.push(e=u(t.call(n,n.__data__,T,i))),e.parentNode=n);return H(r)};var et="http://www.w3.org/1999/xhtml",nt={svg:"http://www.w3.org/2000/svg",xhtml:et,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rt(t,e){return t=o.ns.qualify(t),null==e?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof e?t.local?function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}:function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}:t.local?function(){this.setAttributeNS(t.space,t.local,e)}:function(){this.setAttribute(t,e)}}function it(t){return t.trim().replace(/\s+/g," ")}function ot(t){return new RegExp("(?:^|\\s+)"+o.requote(t)+"(?:\\s+|$)","g")}function at(t){return(t+"").trim().split(/^|\s+/)}function ut(t,e){var n=(t=at(t).map(Tt)).length;return"function"==typeof e?function(){for(var r=-1,i=e.apply(this,arguments);++r<n;)t[r](this,i)}:function(){for(var r=-1;++r<n;)t[r](this,e)}}function Tt(t){var e=ot(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",it(i+" "+t))):n.setAttribute("class",it(i.replace(e," ")))}}function st(t,e,n){return null==e?function(){this.style.removeProperty(t)}:"function"==typeof e?function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}:function(){this.style.setProperty(t,e,n)}}function ct(t,e){return null==e?function(){delete this[t]}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}:function(){this[t]=e}}function lt(t){return"function"==typeof t?t:(t=o.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,n=this.namespaceURI;return n===et&&e.documentElement.namespaceURI===et?e.createElement(t):e.createElementNS(n,t)}}function At(){var t=this.parentNode;t&&t.removeChild(this)}function ft(t){return{__data__:t}}function Ct(t){return function(){return Z(this,t)}}function Gt(t){return arguments.length||(t=p),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function pt(t,e){for(var n=0,r=t.length;n<r;n++)for(var i,o=t[n],a=0,u=o.length;a<u;a++)(i=o[a])&&e(i,a,n);return t}function ht(t){return U(t,dt),t}o.ns={prefix:nt,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),nt.hasOwnProperty(n)?{space:nt[n],local:t}:t}},$.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=o.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(rt(e,t[e]));return this}return this.each(rt(t,e))},$.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=at(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!ot(t[i]).test(e))return!1;return!0}for(e in t)this.each(ut(e,t[e]));return this}return this.each(ut(t,e))},$.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.each(st(n,t[n],e));return this}if(r<2){var i=this.node();return c(i).getComputedStyle(i,null).getPropertyValue(t)}n=""}return this.each(st(t,e,n))},$.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(ct(e,t[e]));return this}return this.each(ct(t,e))},$.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},$.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},$.append=function(t){return t=lt(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},$.insert=function(t,e){return t=lt(t),e=J(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},$.remove=function(){return this.each(At)},$.data=function(t,e){var n,r,i=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(n=this[0]).length);++i<o;)(r=n[i])&&(t[i]=r.__data__);return t}function a(t,n){var r,i,o,a=t.length,c=n.length,l=Math.min(a,c),A=new Array(c),f=new Array(c),C=new Array(a);if(e){var G,p=new x,h=new Array(a);for(r=-1;++r<a;)(i=t[r])&&(p.has(G=e.call(i,i.__data__,r))?C[r]=i:p.set(G,i),h[r]=G);for(r=-1;++r<c;)(i=p.get(G=e.call(n,o=n[r],r)))?!0!==i&&(A[r]=i,i.__data__=o):f[r]=ft(o),p.set(G,!0);for(r=-1;++r<a;)r in h&&!0!==p.get(h[r])&&(C[r]=t[r])}else{for(r=-1;++r<l;)i=t[r],o=n[r],i?(i.__data__=o,A[r]=i):f[r]=ft(o);for(;r<c;++r)f[r]=ft(n[r]);for(;r<a;++r)C[r]=t[r]}f.update=A,f.parentNode=A.parentNode=C.parentNode=t.parentNode,u.push(f),T.push(A),s.push(C)}var u=ht([]),T=H([]),s=H([]);if("function"==typeof t)for(;++i<o;)a(n=this[i],t.call(n,n.parentNode.__data__,i));else for(;++i<o;)a(n=this[i],t);return T.enter=function(){return u},T.exit=function(){return s},T},$.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},$.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=Ct(t));for(var o=0,a=this.length;o<a;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var u=0,T=n.length;u<T;u++)(r=n[u])&&t.call(r,r.__data__,u,o)&&e.push(r)}return H(i)},$.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},$.sort=function(t){t=Gt.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},$.each=function(t){return pt(this,(function(e,n,r){t.call(e,e.__data__,n,r)}))},$.call=function(t){var e=u(arguments);return t.apply(e[0]=this,e),this},$.empty=function(){return!this.node()},$.node=function(){for(var t=0,e=this.length;t<e;t++)for(var n=this[t],r=0,i=n.length;r<i;r++){var o=n[r];if(o)return o}return null},$.size=function(){var t=0;return pt(this,(function(){++t})),t};var dt=[];function mt(t){var e,n;return function(r,i,o){var a,u=t[o].update,T=u.length;for(o!=n&&(n=o,e=0),i>=e&&(e=i+1);!(a=u[e])&&++e<T;);return a}}function yt(t,e,n){var r="__on"+t,i=t.indexOf("."),a=gt;i>0&&(t=t.slice(0,i));var T=vt.get(t);function s(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return T&&(t=T,a=St),i?e?function(){var i=a(e,u(arguments));s.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:s:e?R:function(){var e,n=new RegExp("^__on([^.]+)"+o.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}}o.selection.enter=ht,o.selection.enter.prototype=dt,dt.append=$.append,dt.empty=$.empty,dt.node=$.node,dt.call=$.call,dt.size=$.size,dt.select=function(t){for(var e,n,r,i,o,a=[],u=-1,T=this.length;++u<T;){r=(i=this[u]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var s=-1,c=i.length;++s<c;)(o=i[s])?(e.push(r[s]=n=t.call(i.parentNode,o.__data__,s,u)),n.__data__=o.__data__):e.push(null)}return H(a)},dt.insert=function(t,e){return arguments.length<2&&(e=mt(this)),$.insert.call(this,t,e)},o.select=function(t){var e;return"string"==typeof t?(e=[Y(t,T)]).parentNode=T.documentElement:(e=[t]).parentNode=s(t),H([e])},o.selectAll=function(t){var e;return"string"==typeof t?(e=u(X(t,T))).parentNode=T.documentElement:(e=u(t)).parentNode=null,H([e])},$.on=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=!1),t)this.each(yt(n,t[n],e));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(yt(t,e,n))};var vt=o.map({mouseenter:"mouseover",mouseleave:"mouseout"});function gt(t,e){return function(n){var r=o.event;o.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{o.event=r}}}function St(t,e){var n=gt(t,e);return function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}T&&vt.forEach((function(t){"on"+t in T&&vt.remove(t)}));var bt,xt=0;function _t(t){var e=".dragsuppress-"+ ++xt,n="click"+e,r=o.select(c(t)).on("touchmove"+e,z).on("dragstart"+e,z).on("selectstart"+e,z);if(null==bt&&(bt=!("onselectstart"in t)&&F(t.style,"userSelect")),bt){var i=s(t).style,a=i[bt];i[bt]="none"}return function(t){if(r.on(e,null),bt&&(i[bt]=a),t){var o=function(){r.on(n,null)};r.on(n,(function(){z(),o()}),!0),setTimeout(o,0)}}}o.mouse=function(t){return kt(t,Q())};var wt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function kt(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(wt<0){var i=c(t);if(i.scrollX||i.scrollY){var a=(n=o.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();wt=!(a.f||a.e),n.remove()}}return wt?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function Mt(){return o.event.changedTouches[0].identifier}o.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=Q().changedTouches),e)for(var r,i=0,o=e.length;i<o;++i)if((r=e[i]).identifier===n)return kt(t,r)},o.behavior.drag=function(){var t=B(i,"drag","dragstart","dragend"),e=null,n=a(R,o.mouse,c,"mousemove","mouseup"),r=a(Mt,o.touch,I,"touchmove","touchend");function i(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function a(n,r,i,a,u){return function(){var T,s=this,c=o.event.target.correspondingElement||o.event.target,l=s.parentNode,A=t.of(s,arguments),f=0,C=n(),G=".drag"+(null==C?"":"-"+C),p=o.select(i(c)).on(a+G,m).on(u+G,y),h=_t(c),d=r(l,C);function m(){var t,e,n=r(l,C);n&&(t=n[0]-d[0],e=n[1]-d[1],f|=t|e,d=n,A({type:"drag",x:n[0]+T[0],y:n[1]+T[1],dx:t,dy:e}))}function y(){r(l,C)&&(p.on(a+G,null).on(u+G,null),h(f),A({type:"dragend"}))}T=e?[(T=e.apply(s,arguments)).x-d[0],T.y-d[1]]:[0,0],A({type:"dragstart"})}}return i.origin=function(t){return arguments.length?(e=t,i):e},o.rebind(i,t,"on")},o.touches=function(t,e){return arguments.length<2&&(e=Q().touches),e?u(e).map((function(e){var n=kt(t,e);return n.identifier=e.identifier,n})):[]};var Nt=1e-6,Lt=Nt*Nt,Et=Math.PI,Dt=2*Et,Ot=Dt-Nt,Pt=Et/2,It=Et/180,Vt=180/Et;function Ft(t){return t>0?1:t<0?-1:0}function jt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Rt(t){return t>1?0:t<-1?Et:Math.acos(t)}function Kt(t){return t>1?Pt:t<-1?-Pt:Math.asin(t)}function qt(t){return((t=Math.exp(t))+1/t)/2}function zt(t){return(t=Math.sin(t/2))*t}var Qt=Math.SQRT2;o.interpolateZoom=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],u=e[0],T=e[1],s=e[2],c=u-i,l=T-o,A=c*c+l*l;if(A<Lt)r=Math.log(s/a)/Qt,n=function(t){return[i+t*c,o+t*l,a*Math.exp(Qt*t*r)]};else{var f=Math.sqrt(A),C=(s*s-a*a+4*A)/(2*a*2*f),G=(s*s-a*a-4*A)/(2*s*2*f),p=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(G*G+1)-G);r=(h-p)/Qt,n=function(t){var e,n=t*r,u=qt(p),T=a/(2*f)*(u*(e=Qt*n+p,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(p));return[i+T*c,o+T*l,a*u/qt(Qt*n+p)]}}return n.duration=1e3*r,n},o.behavior.zoom=function(){var t,e,n,r,i,a,u,s,l,A={x:0,y:0,k:1},f=[960,500],C=Ut,G=250,p=0,h="mousedown.zoom",d="mousemove.zoom",m="mouseup.zoom",y="touchstart.zoom",v=B(g,"zoomstart","zoom","zoomend");function g(t){t.on(h,L).on(Wt+".zoom",D).on("dblclick.zoom",O).on(y,E)}function S(t){return[(t[0]-A.x)/A.k,(t[1]-A.y)/A.k]}function b(t){A.k=Math.max(C[0],Math.min(C[1],t))}function x(t,e){e=function(t){return[t[0]*A.k+A.x,t[1]*A.k+A.y]}(e),A.x+=t[0]-e[0],A.y+=t[1]-e[1]}function _(t,n,r,i){t.__chart__={x:A.x,y:A.y,k:A.k},b(Math.pow(2,i)),x(e=n,r),t=o.select(t),G>0&&(t=t.transition().duration(G)),t.call(g.event)}function w(){u&&u.domain(a.range().map((function(t){return(t-A.x)/A.k})).map(a.invert)),l&&l.domain(s.range().map((function(t){return(t-A.y)/A.k})).map(s.invert))}function k(t){p++||t({type:"zoomstart"})}function M(t){w(),t({type:"zoom",scale:A.k,translate:[A.x,A.y]})}function N(t){--p||(t({type:"zoomend"}),e=null)}function L(){var t=this,e=v.of(t,arguments),n=0,r=o.select(c(t)).on(d,(function(){n=1,x(o.mouse(t),i),M(e)})).on(m,(function(){r.on(d,null).on(m,null),a(n),N(e)})),i=S(o.mouse(t)),a=_t(t);wu.call(t),k(e)}function E(){var t,e=this,n=v.of(e,arguments),r={},a=0,u=".zoom-"+o.event.changedTouches[0].identifier,T="touchmove"+u,s="touchend"+u,c=[],l=o.select(e),f=_t(e);function C(){var n=o.touches(e);return t=A.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=S(t))})),n}function G(){var t=o.event.target;o.select(t).on(T,p).on(s,d),c.push(t);for(var n=o.event.changedTouches,u=0,l=n.length;u<l;++u)r[n[u].identifier]=null;var f=C(),G=Date.now();if(1===f.length){if(G-i<500){var h=f[0];_(e,h,r[h.identifier],Math.floor(Math.log(A.k)/Math.LN2)+1),z()}i=G}else if(f.length>1){h=f[0];var m=f[1],y=h[0]-m[0],v=h[1]-m[1];a=y*y+v*v}}function p(){var u,T,s,c,l=o.touches(e);wu.call(e);for(var A=0,f=l.length;A<f;++A,c=null)if(s=l[A],c=r[s.identifier]){if(T)break;u=s,T=c}if(c){var C=(C=s[0]-u[0])*C+(C=s[1]-u[1])*C,G=a&&Math.sqrt(C/a);u=[(u[0]+s[0])/2,(u[1]+s[1])/2],T=[(T[0]+c[0])/2,(T[1]+c[1])/2],b(G*t)}i=null,x(u,T),M(n)}function d(){if(o.event.touches.length){for(var t=o.event.changedTouches,e=0,i=t.length;e<i;++e)delete r[t[e].identifier];for(var a in r)return void C()}o.selectAll(c).on(u,null),l.on(h,L).on(y,E),f(),N(n)}G(),k(n),l.on(h,null).on(y,G)}function D(){var i=v.of(this,arguments);r?clearTimeout(r):(wu.call(this),t=S(e=n||o.mouse(this)),k(i)),r=setTimeout((function(){r=null,N(i)}),50),z(),b(Math.pow(2,.002*Bt())*A.k),x(e,t),M(i)}function O(){var t=o.mouse(this),e=Math.log(A.k)/Math.LN2;_(this,t,S(t),o.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}return Wt||(Wt="onwheel"in T?(Bt=function(){return-o.event.deltaY*(o.event.deltaMode?120:1)},"wheel"):"onmousewheel"in T?(Bt=function(){return o.event.wheelDelta},"mousewheel"):(Bt=function(){return-o.event.detail},"MozMousePixelScroll")),g.event=function(t){t.each((function(){var t=v.of(this,arguments),n=A;Nu?o.select(this).transition().each("start.zoom",(function(){A=this.__chart__||{x:0,y:0,k:1},k(t)})).tween("zoom:zoom",(function(){var r=f[0],i=f[1],a=e?e[0]:r/2,u=e?e[1]:i/2,T=o.interpolateZoom([(a-A.x)/A.k,(u-A.y)/A.k,r/A.k],[(a-n.x)/n.k,(u-n.y)/n.k,r/n.k]);return function(e){var n=T(e),i=r/n[2];this.__chart__=A={x:a-n[0]*i,y:u-n[1]*i,k:i},M(t)}})).each("interrupt.zoom",(function(){N(t)})).each("end.zoom",(function(){N(t)})):(this.__chart__=A,k(t),M(t),N(t))}))},g.translate=function(t){return arguments.length?(A={x:+t[0],y:+t[1],k:A.k},w(),g):[A.x,A.y]},g.scale=function(t){return arguments.length?(A={x:A.x,y:A.y,k:null},b(+t),w(),g):A.k},g.scaleExtent=function(t){return arguments.length?(C=null==t?Ut:[+t[0],+t[1]],g):C},g.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],g):n},g.size=function(t){return arguments.length?(f=t&&[+t[0],+t[1]],g):f},g.duration=function(t){return arguments.length?(G=+t,g):G},g.x=function(t){return arguments.length?(u=t,a=t.copy(),A={x:0,y:0,k:1},g):u},g.y=function(t){return arguments.length?(l=t,s=t.copy(),A={x:0,y:0,k:1},g):l},o.rebind(g,v,"on")};var Bt,Wt,Ut=[0,1/0];function Ht(){}function Yt(t,e,n){return this instanceof Yt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof Yt?new Yt(t.h,t.s,t.l):he(""+t,de,Yt):new Yt(t,e,n)}o.color=Ht,Ht.prototype.toString=function(){return this.rgb()+""},o.hsl=Yt;var Xt=Yt.prototype=new Ht;function Zt(t,e,n){var r,i;function o(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new Ae(o(t+120),o(t),o(t-120))}function $t(t,e,n){return this instanceof $t?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof $t?new $t(t.h,t.c,t.l):Te(t instanceof ee?t.l:(t=me((t=o.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new $t(t,e,n)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,t*this.l)},Xt.rgb=function(){return Zt(this.h,this.s,this.l)},o.hcl=$t;var Jt=$t.prototype=new Ht;function te(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new ee(n,Math.cos(t*=It)*e,Math.sin(t)*e)}function ee(t,e,n){return this instanceof ee?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof ee?new ee(t.l,t.a,t.b):t instanceof $t?te(t.h,t.c,t.l):me((t=Ae(t)).r,t.g,t.b):new ee(t,e,n)}Jt.brighter=function(t){return new $t(this.h,this.c,Math.min(100,this.l+ne*(arguments.length?t:1)))},Jt.darker=function(t){return new $t(this.h,this.c,Math.max(0,this.l-ne*(arguments.length?t:1)))},Jt.rgb=function(){return te(this.h,this.c,this.l).rgb()},o.lab=ee;var ne=18,re=.95047,ie=1,oe=1.08883,ae=ee.prototype=new Ht;function ue(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return new Ae(le(3.2404542*(i=se(i)*re)-1.5371385*(r=se(r)*ie)-.4985314*(o=se(o)*oe)),le(-.969266*i+1.8760108*r+.041556*o),le(.0556434*i-.2040259*r+1.0572252*o))}function Te(t,e,n){return t>0?new $t(Math.atan2(n,e)*Vt,Math.sqrt(e*e+n*n),t):new $t(NaN,NaN,t)}function se(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ce(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function le(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Ae(t,e,n){return this instanceof Ae?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof Ae?new Ae(t.r,t.g,t.b):he(""+t,Ae,Zt):new Ae(t,e,n)}function fe(t){return new Ae(t>>16,t>>8&255,255&t)}function Ce(t){return fe(t)+""}ae.brighter=function(t){return new ee(Math.min(100,this.l+ne*(arguments.length?t:1)),this.a,this.b)},ae.darker=function(t){return new ee(Math.max(0,this.l-ne*(arguments.length?t:1)),this.a,this.b)},ae.rgb=function(){return ue(this.l,this.a,this.b)},o.rgb=Ae;var Ge=Ae.prototype=new Ht;function pe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function he(t,e,n){var r,i,o,a=0,u=0,T=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ve(i[0]),ve(i[1]),ve(i[2]))}return(o=ge.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,u=240&o,u|=u>>4,T=15&o,T|=T<<4):7===t.length&&(a=(16711680&o)>>16,u=(65280&o)>>8,T=255&o)),e(a,u,T))}function de(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-o,T=(a+o)/2;return u?(i=T<.5?u/(a+o):u/(2-a-o),r=t==a?(e-n)/u+(e<n?6:0):e==a?(n-t)/u+2:(t-e)/u+4,r*=60):(r=NaN,i=T>0&&T<1?0:r),new Yt(r,i,T)}function me(t,e,n){var r=ce((.4124564*(t=ye(t))+.3575761*(e=ye(e))+.1804375*(n=ye(n)))/re),i=ce((.2126729*t+.7151522*e+.072175*n)/ie);return ee(116*i-16,500*(r-i),200*(i-ce((.0193339*t+.119192*e+.9503041*n)/oe)))}function ye(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ve(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}Ge.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e<i&&(e=i),n&&n<i&&(n=i),r&&r<i&&(r=i),new Ae(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new Ae(i,i,i)},Ge.darker=function(t){return new Ae((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},Ge.hsl=function(){return de(this.r,this.g,this.b)},Ge.toString=function(){return"#"+pe(this.r)+pe(this.g)+pe(this.b)};var ge=o.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,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});function Se(t){return"function"==typeof t?t:function(){return t}}function be(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),xe(e,n,t,r)}}function xe(t,e,n,r){var i={},a=o.dispatch("beforesend","progress","load","error"),T={},s=new XMLHttpRequest,c=null;function l(){var t,e=s.status;if(!e&&function(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}(s)||e>=200&&e<300||304===e){try{t=n.call(i,s)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,s)}return!this.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=l:s.onreadystatechange=function(){s.readyState>3&&l()},s.onprogress=function(t){var e=o.event;o.event=t;try{a.progress.call(i,s)}finally{o.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?T[t]:(null==e?delete T[t]:T[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return n=t,i},["get","post"].forEach((function(t){i[t]=function(){return i.send.apply(i,[t].concat(u(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),s.open(n,t,!0),null==e||"accept"in T||(T.accept=e+",*/*"),s.setRequestHeader)for(var u in T)s.setRequestHeader(u,T[u]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=c&&(s.responseType=c),null!=o&&i.on("error",o).on("load",(function(t){o(null,t)})),a.beforesend.call(i,s),s.send(null==r?null:r),i},i.abort=function(){return s.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}ge.forEach((function(t,e){ge.set(t,fe(e))})),o.functor=Se,o.xhr=be(I),o.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=xe(t,e,null==n?o:a(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?o:a(t)):n},i}function o(t){return i.parse(t.responseText)}function a(t){return function(e){return i.parse(e.responseText,t)}}function u(e){return e.map(T).join(t)}function T(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,(function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i}))},i.parseRows=function(t,e){var n,i,o={},a={},u=[],T=t.length,s=0,c=0;function l(){if(s>=T)return a;if(i)return i=!1,o;var e=s;if(34===t.charCodeAt(e)){for(var n=e;n++<T;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}return s=n+2,13===(u=t.charCodeAt(n+1))?(i=!0,10===t.charCodeAt(n+2)&&++s):10===u&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;s<T;){var u,c=1;if(10===(u=t.charCodeAt(s++)))i=!0;else if(13===u)i=!0,10===t.charCodeAt(s)&&(++s,++c);else if(u!==r)continue;return t.slice(e,s-c)}return t.slice(e)}for(;(n=l())!==a;){for(var A=[];n!==o&&n!==a;)A.push(n),n=l();e&&null==(A=e(A,c++))||u.push(A)}return u},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var n=new P,r=[];return e.forEach((function(t){for(var e in t)n.has(e)||r.push(n.add(e))})),[r.map(T).join(t)].concat(e.map((function(e){return r.map((function(t){return T(e[t])})).join(t)}))).join("\n")},i.formatRows=function(t){return t.map(u).join("\n")},i},o.csv=o.dsv(",","text/csv"),o.tsv=o.dsv("\t","text/tab-separated-values");var _e,we,ke,Me,Ne=this[F(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function Le(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var i={c:t,t:n+e,n:null};return we?we.n=i:_e=i,we=i,ke||(Me=clearTimeout(Me),ke=1,Ne(Ee)),i}function Ee(){var t=De(),e=Oe()-t;e>24?(isFinite(e)&&(clearTimeout(Me),Me=setTimeout(Ee,e)),ke=0):(ke=1,Ne(Ee))}function De(){for(var t=Date.now(),e=_e;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Oe(){for(var t,e=_e,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:_e=e.n;return we=t,n}function Pe(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}o.timer=function(){Le.apply(this,arguments)},o.timer.flush=function(){De(),Oe()},o.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Ie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(t,e){var n=Math.pow(10,3*g(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Ve(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,o=[],a=0,u=r[0],T=0;i>0&&u>0&&(T+u+1>e&&(u=Math.max(1,e-T)),o.push(t.substring(i-=u,i+u)),!((T+=u+1)>e));)u=r[a=(a+1)%r.length];return o.reverse().join(n)}:I;return function(t){var n=Fe.exec(t),r=n[1]||" ",u=n[2]||">",T=n[3]||"-",s=n[4]||"",c=n[5],l=+n[6],A=n[7],f=n[8],C=n[9],G=1,p="",h="",d=!1,m=!0;switch(f&&(f=+f.substring(1)),(c||"0"===r&&"="===u)&&(c=r="0",u="="),C){case"n":A=!0,C="g";break;case"%":G=100,h="%",C="f";break;case"p":G=100,h="%",C="r";break;case"b":case"o":case"x":case"X":"#"===s&&(p="0"+C.toLowerCase());case"c":m=!1;case"d":d=!0,f=0;break;case"s":G=-1,C="r"}"$"===s&&(p=i[0],h=i[1]),"r"!=C||f||(C="g"),null!=f&&("g"==C?f=Math.max(1,Math.min(21,f)):"e"!=C&&"f"!=C||(f=Math.max(0,Math.min(20,f)))),C=je.get(C)||Re;var y=c&&A;return function(t){var n=h;if(d&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===T?"":T;if(G<0){var s=o.formatPrefix(t,f);t=s.scale(t),n=s.symbol+h}else t*=G;var v,g,S=(t=C(t,f)).lastIndexOf(".");if(S<0){var b=m?t.lastIndexOf("e"):-1;b<0?(v=t,g=""):(v=t.substring(0,b),g=t.substring(b))}else v=t.substring(0,S),g=e+t.substring(S+1);!c&&A&&(v=a(v,1/0));var x=p.length+v.length+g.length+(y?0:i.length),_=x<l?new Array(x=l-x+1).join(r):"";return y&&(v=a(_+v,_.length?l-g.length:1/0)),i+=p,t=v+g,("<"===u?i+t+_:">"===u?_+i+t:"^"===u?_.substring(0,x>>=1)+i+t+_.substring(x):i+(y?t:_+t))+n}}}o.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=o.round(t,Pe(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ie[8+n/3]};var Fe=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,je=o.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=o.round(t,Pe(t,e))).toFixed(Math.max(0,Math.min(20,Pe(t*(1+1e-15),e))))}});function Re(t){return t+""}var Ke=o.time={},qe=Date;function ze(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}ze.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Qe.setUTCDate.apply(this._,arguments)},setDay:function(){Qe.setUTCDay.apply(this._,arguments)},setFullYear:function(){Qe.setUTCFullYear.apply(this._,arguments)},setHours:function(){Qe.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Qe.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Qe.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Qe.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Qe.setUTCSeconds.apply(this._,arguments)},setTime:function(){Qe.setTime.apply(this._,arguments)}};var Qe=Date.prototype;function Be(t,e,n){function r(e){var n=t(e),r=o(n,1);return e-n<r-e?n:r}function i(n){return e(n=t(new qe(n-1)),1),n}function o(t,n){return e(t=new qe(+t),n),t}function a(t,r,o){var a=i(t),u=[];if(o>1)for(;a<r;)n(a)%o||u.push(new Date(+a)),e(a,1);else for(;a<r;)u.push(new Date(+a)),e(a,1);return u}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var u=t.utc=We(t);return u.floor=u,u.round=We(r),u.ceil=We(i),u.offset=We(o),u.range=function(t,e,n){try{qe=ze;var r=new ze;return r._=t,a(r,e,n)}finally{qe=Date}},t}function We(t){return function(e,n){try{qe=ze;var r=new ze;return r._=e,t(r,n)._}finally{qe=Date}}}function Ue(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,u=t.shortDays,T=t.months,s=t.shortMonths;function c(t){var e=t.length;function n(n){for(var r,i,o,a=[],u=-1,T=0;++u<e;)37===t.charCodeAt(u)&&(a.push(t.slice(T,u)),null!=(i=He[r=t.charAt(++u)])&&(r=t.charAt(++u)),(o=v[r])&&(r=o(n,null==i?"e"===r?" ":"0":i)),a.push(r),T=u+1);return a.push(t.slice(T,u)),a.join("")}return n.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(l(n,t,e,0)!=e.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&qe!==ze,i=new(r?ze:qe);return"j"in n?i.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),i.setFullYear(n.y,0,1),i.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(i.getDay()+5)%7:n.w+7*n.U-(i.getDay()+6)%7)):i.setFullYear(n.y,n.m,n.d),i.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?i._:i},n.toString=function(){return t},n}function l(t,e,n,r){for(var i,o,a,u=0,T=e.length,s=n.length;u<T;){if(r>=s)return-1;if(37===(i=e.charCodeAt(u++))){if(a=e.charAt(u++),!(o=g[a in He?e.charAt(u++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(qe=ze);return n._=t,e(n)}finally{qe=Date}}return n.parse=function(t){try{qe=ze;var n=e.parse(t);return n&&n._}finally{qe=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=pn;var A=o.map(),f=$e(a),C=Je(a),G=$e(u),p=Je(u),h=$e(T),d=Je(T),m=$e(s),y=Je(s);i.forEach((function(t,e){A.set(t.toLowerCase(),e)}));var v={a:function(t){return u[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return T[t.getMonth()]},c:c(e),d:function(t,e){return Ze(t.getDate(),e,2)},e:function(t,e){return Ze(t.getDate(),e,2)},H:function(t,e){return Ze(t.getHours(),e,2)},I:function(t,e){return Ze(t.getHours()%12||12,e,2)},j:function(t,e){return Ze(1+Ke.dayOfYear(t),e,3)},L:function(t,e){return Ze(t.getMilliseconds(),e,3)},m:function(t,e){return Ze(t.getMonth()+1,e,2)},M:function(t,e){return Ze(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return Ze(t.getSeconds(),e,2)},U:function(t,e){return Ze(Ke.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ze(Ke.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return Ze(t.getFullYear()%100,e,2)},Y:function(t,e){return Ze(t.getFullYear()%1e4,e,4)},Z:Cn,"%":function(){return"%"}},g={a:function(t,e,n){G.lastIndex=0;var r=G.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){f.lastIndex=0;var r=f.exec(e.slice(n));return r?(t.w=C.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){m.lastIndex=0;var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){h.lastIndex=0;var r=h.exec(e.slice(n));return r?(t.m=d.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return l(t,v.c.toString(),e,n)},d:Tn,e:Tn,H:cn,I:cn,j:sn,L:fn,m:un,M:ln,p:function(t,e,n){var r=A.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:An,U:en,w:tn,W:nn,x:function(t,e,n){return l(t,v.x.toString(),e,n)},X:function(t,e,n){return l(t,v.X.toString(),e,n)},y:on,Y:rn,Z:an,"%":Gn};return c}Ke.year=Be((function(t){return(t=Ke.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Ke.years=Ke.year.range,Ke.years.utc=Ke.year.utc.range,Ke.day=Be((function(t){var e=new qe(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Ke.days=Ke.day.range,Ke.days.utc=Ke.day.utc.range,Ke.dayOfYear=function(t){var e=Ke.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=Ke[t]=Be((function(t){return(t=Ke.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=Ke.year(t).getDay();return Math.floor((Ke.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));Ke[t+"s"]=n.range,Ke[t+"s"].utc=n.utc.range,Ke[t+"OfYear"]=function(t){var n=Ke.year(t).getDay();return Math.floor((Ke.dayOfYear(t)+(n+e)%7)/7)}})),Ke.week=Ke.sunday,Ke.weeks=Ke.sunday.range,Ke.weeks.utc=Ke.sunday.utc.range,Ke.weekOfYear=Ke.sundayOfYear;var He={"-":"",_:" ",0:"0"},Ye=/^\s*\d+/,Xe=/^%/;function Ze(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function $e(t){return new RegExp("^(?:"+t.map(o.requote).join("|")+")","i")}function Je(t){for(var e=new x,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function tn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function en(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function nn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function rn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function on(t,e,n){Ye.lastIndex=0;var r,i=Ye.exec(e.slice(n,n+2));return i?(t.y=(r=+i[0])+(r>68?1900:2e3),n+i[0].length):-1}function an(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function un(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function sn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function cn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ln(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function An(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function fn(t,e,n){Ye.lastIndex=0;var r=Ye.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Cn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=g(e)/60|0,i=g(e)%60;return n+Ze(r,"0",2)+Ze(i,"0",2)}function Gn(t,e,n){Xe.lastIndex=0;var r=Xe.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pn(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}o.locale=function(t){return{numberFormat:Ve(t),timeFormat:Ue(t)}};var hn=o.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dn(){}o.format=hn.numberFormat,o.geo={},dn.prototype={s:0,t:0,add:function(t){yn(t,this.t,mn),yn(mn.s,this.s,this),this.s?this.t+=mn.t:this.s=mn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var mn=new dn;function yn(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function vn(t,e){t&&Sn.hasOwnProperty(t.type)&&Sn[t.type](t,e)}o.geo.stream=function(t,e){t&&gn.hasOwnProperty(t.type)?gn[t.type](t,e):vn(t,e)};var gn={Feature:function(t,e){vn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)vn(n[r].geometry,e)}},Sn={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){bn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)bn(n[r],e,0)},Polygon:function(t,e){xn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)xn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)vn(n[r],e)}};function bn(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function xn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)bn(t[n],e,1);e.polygonEnd()}o.geo.area=function(t){return _n=0,o.geo.stream(t,jn),_n};var _n,wn,kn,Mn,Nn,Ln,En,Dn,On,Pn,In,Vn,Fn=new dn,jn={sphere:function(){_n+=4*Et},point:R,lineStart:R,lineEnd:R,polygonStart:function(){Fn.reset(),jn.lineStart=Rn},polygonEnd:function(){var t=2*Fn;_n+=t<0?4*Et+t:t,jn.lineStart=jn.lineEnd=jn.point=R}};function Rn(){var t,e,n,r,i;function o(t,e){e=e*It/2+Et/4;var o=(t*=It)-n,a=o>=0?1:-1,u=a*o,T=Math.cos(e),s=Math.sin(e),c=i*s,l=r*T+c*Math.cos(u),A=c*a*Math.sin(u);Fn.add(Math.atan2(A,l)),n=t,r=T,i=s}jn.point=function(a,u){jn.point=o,n=(t=a)*It,r=Math.cos(u=(e=u)*It/2+Et/4),i=Math.sin(u)},jn.lineEnd=function(){o(t,e)}}function Kn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function qn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Qn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Bn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Wn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Un(t){return[Math.atan2(t[1],t[0]),Kt(t[2])]}function Hn(t,e){return g(t[0]-e[0])<Nt&&g(t[1]-e[1])<Nt}o.geo.bounds=function(){var t,e,n,r,i,a,u,T,s,c,l,A={point:f,lineStart:G,lineEnd:p,polygonStart:function(){A.point=h,A.lineStart=d,A.lineEnd=m,s=0,jn.polygonStart()},polygonEnd:function(){jn.polygonEnd(),A.point=f,A.lineStart=G,A.lineEnd=p,Fn<0?(t=-(n=180),e=-(r=90)):s>Nt?r=90:s<-Nt&&(e=-90),l[0]=t,l[1]=n}};function f(i,o){c.push(l=[t=i,n=i]),o<e&&(e=o),o>r&&(r=o)}function C(o,a){var u=Kn([o*It,a*It]);if(T){var s=zn(T,u),c=zn([s[1],-s[0],0],s);Wn(c),c=Un(c);var l=o-i,A=l>0?1:-1,C=c[0]*Vt*A,G=g(l)>180;if(G^(A*i<C&&C<A*o))(p=c[1]*Vt)>r&&(r=p);else if(G^(A*i<(C=(C+360)%360-180)&&C<A*o)){var p;(p=-c[1]*Vt)<e&&(e=p)}else a<e&&(e=a),a>r&&(r=a);G?o<i?y(t,o)>y(t,n)&&(n=o):y(o,n)>y(t,n)&&(t=o):n>=t?(o<t&&(t=o),o>n&&(n=o)):o>i?y(t,o)>y(t,n)&&(n=o):y(o,n)>y(t,n)&&(t=o)}else f(o,a);T=u,i=o}function G(){A.point=C}function p(){l[0]=t,l[1]=n,A.point=f,T=null}function h(t,e){if(T){var n=t-i;s+=g(n)>180?n+(n>0?360:-360):n}else a=t,u=e;jn.point(t,e),C(t,e)}function d(){jn.lineStart()}function m(){h(a,u),jn.lineEnd(),g(s)>Nt&&(t=-(n=180)),l[0]=t,l[1]=n,T=null}function y(t,e){return(e-=t)<0?e+360:e}function v(t,e){return t[0]-e[0]}function S(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}return function(i){if(r=n=-(t=e=1/0),c=[],o.geo.stream(i,A),s=c.length){c.sort(v);for(var a=1,u=[G=c[0]];a<s;++a)S((f=c[a])[0],G)||S(f[1],G)?(y(G[0],f[1])>y(G[0],G[1])&&(G[1]=f[1]),y(f[0],G[1])>y(G[0],G[1])&&(G[0]=f[0])):u.push(G=f);for(var T,s,f,C=-1/0,G=(a=0,u[s=u.length-1]);a<=s;G=f,++a)f=u[a],(T=y(G[1],f[0]))>C&&(C=T,t=f[0],n=G[1])}return c=l=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),o.geo.centroid=function(t){wn=kn=Mn=Nn=Ln=En=Dn=On=Pn=In=Vn=0,o.geo.stream(t,Yn);var e=Pn,n=In,r=Vn,i=e*e+n*n+r*r;return i<Lt&&(e=En,n=Dn,r=On,kn<Nt&&(e=Mn,n=Nn,r=Ln),(i=e*e+n*n+r*r)<Lt)?[NaN,NaN]:[Math.atan2(n,e)*Vt,Kt(r/Math.sqrt(i))*Vt]};var Yn={sphere:R,point:Xn,lineStart:$n,lineEnd:Jn,polygonStart:function(){Yn.lineStart=tr},polygonEnd:function(){Yn.lineStart=$n}};function Xn(t,e){t*=It;var n=Math.cos(e*=It);Zn(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Zn(t,e,n){Mn+=(t-Mn)/++wn,Nn+=(e-Nn)/wn,Ln+=(n-Ln)/wn}function $n(){var t,e,n;function r(r,i){r*=It;var o=Math.cos(i*=It),a=o*Math.cos(r),u=o*Math.sin(r),T=Math.sin(i),s=Math.atan2(Math.sqrt((s=e*T-n*u)*s+(s=n*a-t*T)*s+(s=t*u-e*a)*s),t*a+e*u+n*T);kn+=s,En+=s*(t+(t=a)),Dn+=s*(e+(e=u)),On+=s*(n+(n=T)),Zn(t,e,n)}Yn.point=function(i,o){i*=It;var a=Math.cos(o*=It);t=a*Math.cos(i),e=a*Math.sin(i),n=Math.sin(o),Yn.point=r,Zn(t,e,n)}}function Jn(){Yn.point=Xn}function tr(){var t,e,n,r,i;function o(t,e){t*=It;var o=Math.cos(e*=It),a=o*Math.cos(t),u=o*Math.sin(t),T=Math.sin(e),s=r*T-i*u,c=i*a-n*T,l=n*u-r*a,A=Math.sqrt(s*s+c*c+l*l),f=n*a+r*u+i*T,C=A&&-Rt(f)/A,G=Math.atan2(A,f);Pn+=C*s,In+=C*c,Vn+=C*l,kn+=G,En+=G*(n+(n=a)),Dn+=G*(r+(r=u)),On+=G*(i+(i=T)),Zn(n,r,i)}Yn.point=function(a,u){t=a,e=u,Yn.point=o,a*=It;var T=Math.cos(u*=It);n=T*Math.cos(a),r=T*Math.sin(a),i=Math.sin(u),Zn(n,r,i)},Yn.lineEnd=function(){o(t,e),Yn.lineEnd=Jn,Yn.point=Xn}}function er(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function nr(){return!0}function rr(t,e,n,r,i){var o=[],a=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(Hn(n,r)){i.lineStart();for(var u=0;u<e;++u)i.point((n=t[u])[0],n[1]);i.lineEnd()}else{var T=new or(n,t,null,!0),s=new or(n,null,T,!1);T.o=s,o.push(T),a.push(s),T=new or(r,t,null,!1),s=new or(r,null,T,!0),T.o=s,o.push(T),a.push(s)}}})),a.sort(e),ir(o),ir(a),o.length){for(var u=0,T=n,s=a.length;u<s;++u)a[u].e=T=!T;for(var c,l,A=o[0];;){for(var f=A,C=!0;f.v;)if((f=f.n)===A)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(C)for(u=0,s=c.length;u<s;++u)i.point((l=c[u])[0],l[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(C)for(u=(c=f.p.z).length-1;u>=0;--u)i.point((l=c[u])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,C=!C}while(!f.v);i.lineEnd()}}}function ir(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function or(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ar(t,e,n,r){return function(i,a){var u,T=e(a),s=i.invert(r[0],r[1]),c={point:l,lineStart:f,lineEnd:C,polygonStart:function(){c.point=y,c.lineStart=v,c.lineEnd=g,u=[],G=[]},polygonEnd:function(){c.point=l,c.lineStart=f,c.lineEnd=C,u=o.merge(u);var t=function(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;Fn.reset();for(var u=0,T=e.length;u<T;++u){var s=e[u],c=s.length;if(c)for(var l=s[0],A=l[0],f=l[1]/2+Et/4,C=Math.sin(f),G=Math.cos(f),p=1;;){p===c&&(p=0);var h=(t=s[p])[0],d=t[1]/2+Et/4,m=Math.sin(d),y=Math.cos(d),v=h-A,g=v>=0?1:-1,S=g*v,b=S>Et,x=C*m;if(Fn.add(Math.atan2(x*g*Math.sin(S),G*y+x*Math.cos(S))),o+=b?v+g*Dt:v,b^A>=n^h>=n){var _=zn(Kn(l),Kn(t));Wn(_);var w=zn(i,_);Wn(w);var k=(b^v>=0?-1:1)*Kt(w[2]);(r>k||r===k&&(_[0]||_[1]))&&(a+=b^v>=0?1:-1)}if(!p++)break;A=h,C=m,G=y,l=t}}return(o<-Nt||o<Nt&&Fn<-Nt)^1&a}(s,G);u.length?(m||(a.polygonStart(),m=!0),rr(u,sr,t,n,a)):t&&(m||(a.polygonStart(),m=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),m&&(a.polygonEnd(),m=!1),u=G=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function l(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function A(t,e){var n=i(t,e);T.point(n[0],n[1])}function f(){c.point=A,T.lineStart()}function C(){c.point=l,T.lineEnd()}var G,p,h=Tr(),d=e(h),m=!1;function y(t,e){p.push([t,e]);var n=i(t,e);d.point(n[0],n[1])}function v(){d.lineStart(),p=[]}function g(){y(p[0][0],p[0][1]),d.lineEnd();var t,e=d.clean(),n=h.buffer(),r=n.length;if(p.pop(),G.push(p),p=null,r)if(1&e){var i,o=-1;if((r=(t=n[0]).length-1)>0){for(m||(a.polygonStart(),m=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),u.push(n.filter(ur))}return c}}function ur(t){return t.length>1}function Tr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:R,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function sr(t,e){return((t=t.x)[0]<0?t[1]-Pt-Nt:Pt-t[1])-((e=e.x)[0]<0?e[1]-Pt-Nt:Pt-e[1])}var cr=ar(nr,(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?Et:-Et,T=g(o-n);g(T-Et)<Nt?(t.point(n,r=(r+a)/2>0?Pt:-Pt),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&T>=Et&&(g(n-i)<Nt&&(n-=i*Nt),g(o-u)<Nt&&(o-=u*Nt),r=function(t,e,n,r){var i,o,a=Math.sin(t-n);return g(a)>Nt?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Pt,r.point(-Et,i),r.point(0,i),r.point(Et,i),r.point(Et,0),r.point(Et,-i),r.point(0,-i),r.point(-Et,-i),r.point(-Et,0),r.point(-Et,i);else if(g(t[0]-e[0])>Nt){var o=t[0]<e[0]?Et:-Et;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-Et,-Et/2]);function lr(t){var e=Math.cos(t),n=e>0,r=g(e)>Nt;return ar(i,(function(t){var e,u,T,s,c;return{lineStart:function(){s=T=!1,c=1},point:function(l,A){var f,C=[l,A],G=i(l,A),p=n?G?0:a(l,A):G?a(l+(l<0?Et:-Et),A):0;if(!e&&(s=T=G)&&t.lineStart(),G!==T&&(f=o(e,C),(Hn(e,f)||Hn(C,f))&&(C[0]+=Nt,C[1]+=Nt,G=i(C[0],C[1]))),G!==T)c=0,G?(t.lineStart(),f=o(C,e),t.point(f[0],f[1])):(f=o(e,C),t.point(f[0],f[1]),t.lineEnd()),e=f;else if(r&&e&&n^G){var h;p&u||!(h=o(C,e,!0))||(c=0,n?(t.lineStart(),t.point(h[0][0],h[0][1]),t.point(h[1][0],h[1][1]),t.lineEnd()):(t.point(h[1][0],h[1][1]),t.lineEnd(),t.lineStart(),t.point(h[0][0],h[0][1])))}!G||e&&Hn(e,C)||t.point(C[0],C[1]),e=C,T=G,u=p},lineEnd:function(){T&&t.lineEnd(),e=null},clean:function(){return c|(s&&T)<<1}}}),Hr(t,6*It),n?[0,-t]:[-Et,t-Et]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function o(t,n,r){var i=[1,0,0],o=zn(Kn(t),Kn(n)),a=qn(o,o),u=o[0],T=a-u*u;if(!T)return!r&&t;var s=e*a/T,c=-e*u/T,l=zn(i,o),A=Bn(i,s);Qn(A,Bn(o,c));var f=l,C=qn(A,f),G=qn(f,f),p=C*C-G*(qn(A,A)-1);if(!(p<0)){var h=Math.sqrt(p),d=Bn(f,(-C-h)/G);if(Qn(d,A),d=Un(d),!r)return d;var m,y=t[0],v=n[0],S=t[1],b=n[1];v<y&&(m=y,y=v,v=m);var x=v-y,_=g(x-Et)<Nt;if(!_&&b<S&&(m=S,S=b,b=m),_||x<Nt?_?S+b>0^d[1]<(g(d[0]-y)<Nt?S:b):S<=d[1]&&d[1]<=b:x>Et^(y<=d[0]&&d[0]<=v)){var w=Bn(f,(-C+h)/G);return Qn(w,A),[d,Un(w)]}}}function a(e,r){var i=n?t:Et-t,o=0;return e<-i?o|=1:e>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function Ar(t,e,n,r){return function(i){var o,a=i.a,u=i.b,T=a.x,s=a.y,c=0,l=1,A=u.x-T,f=u.y-s;if(o=t-T,A||!(o>0)){if(o/=A,A<0){if(o<c)return;o<l&&(l=o)}else if(A>0){if(o>l)return;o>c&&(c=o)}if(o=n-T,A||!(o<0)){if(o/=A,A<0){if(o>l)return;o>c&&(c=o)}else if(A>0){if(o<c)return;o<l&&(l=o)}if(o=e-s,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<l&&(l=o)}else if(f>0){if(o>l)return;o>c&&(c=o)}if(o=r-s,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<l&&(l=o)}return c>0&&(i.a={x:T+c*A,y:s+c*f}),l<1&&(i.b={x:T+l*A,y:s+l*f}),i}}}}}}var fr=1e9;function Cr(t,e,n,r){return function(T){var s,c,l,A,f,C,G,p,h,d,m,y=T,v=Tr(),g=Ar(t,e,n,r),S={point:_,lineStart:function(){S.point=w,c&&c.push(l=[]);d=!0,h=!1,G=p=NaN},lineEnd:function(){s&&(w(A,f),C&&h&&v.rejoin(),s.push(v.buffer()));S.point=_,h&&T.lineEnd()},polygonStart:function(){T=v,s=[],c=[],m=!0},polygonEnd:function(){T=y,s=o.merge(s);var e=function(t){for(var e=0,n=c.length,r=t[1],i=0;i<n;++i)for(var o,a=1,u=c[i],T=u.length,s=u[0];a<T;++a)o=u[a],s[1]<=r?o[1]>r&&jt(s,o,t)>0&&++e:o[1]<=r&&jt(s,o,t)<0&&--e,s=o;return 0!==e}([t,r]),n=m&&e,i=s.length;(n||i)&&(T.polygonStart(),n&&(T.lineStart(),b(null,null,1,T),T.lineEnd()),i&&rr(s,a,e,b,T),T.polygonEnd()),s=c=l=null}};function b(o,a,T,s){var c=0,l=0;if(null==o||(c=i(o,T))!==(l=i(a,T))||u(o,a)<0^T>0)do{s.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+T+4)%4)!==l);else s.point(a[0],a[1])}function x(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function _(t,e){x(t,e)&&T.point(t,e)}function w(t,e){var n=x(t=Math.max(-fr,Math.min(fr,t)),e=Math.max(-fr,Math.min(fr,e)));if(c&&l.push([t,e]),d)A=t,f=e,C=n,d=!1,n&&(T.lineStart(),T.point(t,e));else if(n&&h)T.point(t,e);else{var r={a:{x:G,y:p},b:{x:t,y:e}};g(r)?(h||(T.lineStart(),T.point(r.a.x,r.a.y)),T.point(r.b.x,r.b.y),n||T.lineEnd(),m=!1):n&&(T.lineStart(),T.point(t,e),m=!1)}G=t,p=e,h=n}return S};function i(r,i){return g(r[0]-t)<Nt?i>0?0:3:g(r[0]-n)<Nt?i>0?2:1:g(r[1]-e)<Nt?i>0?1:0:i>0?3:2}function a(t,e){return u(t.x,e.x)}function u(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function Gr(t){var e=0,n=Et/3,r=Rr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Et/180,n=t[1]*Et/180):[e/Et*180,n/Et*180]},i}function pr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,Kt((i-(t*t+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(u){return arguments.length?(o=Cr(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return Gr(pr)}).raw=pr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var t,e,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),T={point:function(e,n){t=[e,n]}};function s(i){var o=i[0],a=i[1];return t=null,e(o,a),t||(n(o,a),t)||r(o,a),t}return s.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?u:i).invert(t)},s.stream=function(t){var e=i.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},s.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),u.precision(t),s):i.precision()},s.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),u.scale(t),s.translate(i.translate())):i.scale()},s.translate=function(t){if(!arguments.length)return i.translate();var o=i.scale(),c=+t[0],l=+t[1];return e=i.translate(t).clipExtent([[c-.455*o,l-.238*o],[c+.455*o,l+.238*o]]).stream(T).point,n=a.translate([c-.307*o,l+.201*o]).clipExtent([[c-.425*o+Nt,l+.12*o+Nt],[c-.214*o-Nt,l+.234*o-Nt]]).stream(T).point,r=u.translate([c-.205*o,l+.212*o]).clipExtent([[c-.214*o+Nt,l+.166*o+Nt],[c-.115*o-Nt,l+.234*o-Nt]]).stream(T).point,s},s.scale(1070)};var hr,dr,mr,yr,vr,gr,Sr={point:R,lineStart:R,lineEnd:R,polygonStart:function(){dr=0,Sr.lineStart=br},polygonEnd:function(){Sr.lineStart=Sr.lineEnd=Sr.point=R,hr+=g(dr/2)}};function br(){var t,e,n,r;function i(t,e){dr+=r*t-n*e,n=t,r=e}Sr.point=function(o,a){Sr.point=i,t=n=o,e=r=a},Sr.lineEnd=function(){i(t,e)}}var xr={point:function(t,e){t<mr&&(mr=t);t>vr&&(vr=t);e<yr&&(yr=e);e>gr&&(gr=e)},lineStart:R,lineEnd:R,polygonStart:R,polygonEnd:R};function _r(){var t=wr(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=u},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=wr(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=o}function o(t,n){e.push("L",t,",",n)}function a(){n.point=r}function u(){e.push("Z")}return n}function wr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var kr,Mr={point:Nr,lineStart:Lr,lineEnd:Er,polygonStart:function(){Mr.lineStart=Dr},polygonEnd:function(){Mr.point=Nr,Mr.lineStart=Lr,Mr.lineEnd=Er}};function Nr(t,e){Mn+=t,Nn+=e,++Ln}function Lr(){var t,e;function n(n,r){var i=n-t,o=r-e,a=Math.sqrt(i*i+o*o);En+=a*(t+n)/2,Dn+=a*(e+r)/2,On+=a,Nr(t=n,e=r)}Mr.point=function(r,i){Mr.point=n,Nr(t=r,e=i)}}function Er(){Mr.point=Nr}function Dr(){var t,e,n,r;function i(t,e){var i=t-n,o=e-r,a=Math.sqrt(i*i+o*o);En+=a*(n+t)/2,Dn+=a*(r+e)/2,On+=a,Pn+=(a=r*t-n*e)*(n+t),In+=a*(r+e),Vn+=3*a,Nr(n=t,r=e)}Mr.point=function(o,a){Mr.point=i,Nr(t=n=o,e=r=a)},Mr.lineEnd=function(){i(t,e)}}function Or(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=u},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=t,n},result:R};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Dt)}function i(e,r){t.moveTo(e,r),n.point=o}function o(e,n){t.lineTo(e,n)}function a(){n.point=r}function u(){t.closePath()}return n}function Pr(t){var e=.5,n=Math.cos(30*It),r=16;function i(t){return(r?a:o)(t)}function o(e){return Fr(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function a(e){var n,i,o,a,T,s,c,l,A,f,C,G,p={point:h,lineStart:d,lineEnd:y,polygonStart:function(){e.polygonStart(),p.lineStart=v},polygonEnd:function(){e.polygonEnd(),p.lineStart=d}};function h(n,r){n=t(n,r),e.point(n[0],n[1])}function d(){l=NaN,p.point=m,e.lineStart()}function m(n,i){var o=Kn([n,i]),a=t(n,i);u(l,A,c,f,C,G,l=a[0],A=a[1],c=n,f=o[0],C=o[1],G=o[2],r,e),e.point(l,A)}function y(){p.point=h,e.lineEnd()}function v(){d(),p.point=g,p.lineEnd=S}function g(t,e){m(n=t,e),i=l,o=A,a=f,T=C,s=G,p.point=m}function S(){u(l,A,c,f,C,G,i,o,n,a,T,s,r,e),p.lineEnd=y,y()}return p}function u(r,i,o,a,T,s,c,l,A,f,C,G,p,h){var d=c-r,m=l-i,y=d*d+m*m;if(y>4*e&&p--){var v=a+f,S=T+C,b=s+G,x=Math.sqrt(v*v+S*S+b*b),_=Math.asin(b/=x),w=g(g(b)-1)<Nt||g(o-A)<Nt?(o+A)/2:Math.atan2(S,v),k=t(w,_),M=k[0],N=k[1],L=M-r,E=N-i,D=m*L-d*E;(D*D/y>e||g((d*L+m*E)/y-.5)>.3||a*f+T*C+s*G<n)&&(u(r,i,o,a,T,s,M,N,w,v/=x,S/=x,b,p,h),h.point(M,N),u(M,N,w,v,S,b,c,l,A,f,C,G,p,h))}}return i.precision=function(t){return arguments.length?(r=(e=t*t)>0&&16,i):Math.sqrt(e)},i}function Ir(t){var e=Pr((function(e,n){return t([e*Vt,n*Vt])}));return function(t){return Kr(e(t))}}function Vr(t){this.stream=t}function Fr(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function jr(t){return Rr((function(){return t}))()}function Rr(t){var e,n,r,i,a,u,T=Pr((function(t,n){return[(t=e(t,n))[0]*s+i,a-t[1]*s]})),s=150,c=480,l=250,A=0,f=0,C=0,G=0,p=0,h=cr,d=I,m=null,y=null;function v(t){return[(t=r(t[0]*It,t[1]*It))[0]*s+i,a-t[1]*s]}function g(t){return(t=r.invert((t[0]-i)/s,(a-t[1])/s))&&[t[0]*Vt,t[1]*Vt]}function S(){r=er(n=Qr(C,G,p),e);var t=e(A,f);return i=c-t[0]*s,a=l+t[1]*s,b()}function b(){return u&&(u.valid=!1,u=null),v}return v.stream=function(t){return u&&(u.valid=!1),(u=Kr(h(n,T(d(t))))).valid=!0,u},v.clipAngle=function(t){return arguments.length?(h=null==t?(m=t,cr):lr((m=+t)*It),b()):m},v.clipExtent=function(t){return arguments.length?(y=t,d=t?Cr(t[0][0],t[0][1],t[1][0],t[1][1]):I,b()):y},v.scale=function(t){return arguments.length?(s=+t,S()):s},v.translate=function(t){return arguments.length?(c=+t[0],l=+t[1],S()):[c,l]},v.center=function(t){return arguments.length?(A=t[0]%360*It,f=t[1]%360*It,S()):[A*Vt,f*Vt]},v.rotate=function(t){return arguments.length?(C=t[0]%360*It,G=t[1]%360*It,p=t.length>2?t[2]%360*It:0,S()):[C*Vt,G*Vt,p*Vt]},o.rebind(v,T,"precision"),function(){return e=t.apply(this,arguments),v.invert=e.invert&&g,S()}}function Kr(t){return Fr(t,(function(e,n){t.point(e*It,n*It)}))}function qr(t,e){return[t,e]}function zr(t,e){return[t>Et?t-Dt:t<-Et?t+Dt:t,e]}function Qr(t,e,n){return t?e||n?er(Wr(t),Ur(e,n)):Wr(t):e||n?Ur(e,n):zr}function Br(t){return function(e,n){return[(e+=t)>Et?e-Dt:e<-Et?e+Dt:e,n]}}function Wr(t){var e=Br(t);return e.invert=Br(-t),e}function Ur(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),o=Math.sin(e);function a(t,e){var a=Math.cos(e),u=Math.cos(t)*a,T=Math.sin(t)*a,s=Math.sin(e),c=s*n+u*r;return[Math.atan2(T*i-c*o,u*n-s*r),Kt(c*i+T*o)]}return a.invert=function(t,e){var a=Math.cos(e),u=Math.cos(t)*a,T=Math.sin(t)*a,s=Math.sin(e),c=s*i-T*o;return[Math.atan2(T*i+s*o,u*n+c*r),Kt(c*n-u*r)]},a}function Hr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,u){var T=a*e;null!=i?(i=Yr(n,i),o=Yr(n,o),(a>0?i<o:i>o)&&(i+=a*Dt)):(i=t+a*Dt,o=t-.5*T);for(var s,c=i;a>0?c>o:c<o;c-=T)u.point((s=Un([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],s[1])}}function Yr(t,e){var n=Kn(e);n[0]-=t,Wn(n);var r=Rt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Nt)%(2*Math.PI)}function Xr(t,e,n){var r=o.range(t,e-Nt,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Zr(t,e,n){var r=o.range(t,e-Nt,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function $r(t){return t.source}function Jr(t){return t.target}o.geo.path=function(){var t,e,n,r,i,a=4.5;function u(t){return t&&("function"==typeof a&&r.pointRadius(+a.apply(this,arguments)),i&&i.valid||(i=n(r)),o.geo.stream(t,i)),r.result()}function T(){return i=null,u}return u.area=function(t){return hr=0,o.geo.stream(t,n(Sr)),hr},u.centroid=function(t){return Mn=Nn=Ln=En=Dn=On=Pn=In=Vn=0,o.geo.stream(t,n(Mr)),Vn?[Pn/Vn,In/Vn]:On?[En/On,Dn/On]:Ln?[Mn/Ln,Nn/Ln]:[NaN,NaN]},u.bounds=function(t){return vr=gr=-(mr=yr=1/0),o.geo.stream(t,n(xr)),[[mr,yr],[vr,gr]]},u.projection=function(e){return arguments.length?(n=(t=e)?e.stream||Ir(e):I,T()):t},u.context=function(t){return arguments.length?(r=null==(e=t)?new _r:new Or(t),"function"!=typeof a&&r.pointRadius(a),T()):e},u.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(r.pointRadius(+t),+t),u):a},u.projection(o.geo.albersUsa()).context(null)},o.geo.transform=function(t){return{stream:function(e){var n=new Vr(e);for(var r in t)n[r]=t[r];return n}}},Vr.prototype={point:function(t,e){this.stream.point(t,e)},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()}},o.geo.projection=jr,o.geo.projectionMutator=Rr,(o.geo.equirectangular=function(){return jr(qr)}).raw=qr.invert=qr,o.geo.rotation=function(t){function e(e){return(e=t(e[0]*It,e[1]*It))[0]*=Vt,e[1]*=Vt,e}return t=Qr(t[0]%360*It,t[1]*It,t.length>2?t[2]*It:0),e.invert=function(e){return(e=t.invert(e[0]*It,e[1]*It))[0]*=Vt,e[1]*=Vt,e},e},zr.invert=qr,o.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=Qr(-t[0]*It,-t[1]*It,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=Vt,t[1]*=Vt}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Hr((t=+n)*It,r*It),i):t},i.precision=function(n){return arguments.length?(e=Hr(t*It,(r=+n)*It),i):r},i.angle(90)},o.geo.distance=function(t,e){var n,r=(e[0]-t[0])*It,i=t[1]*It,o=e[1]*It,a=Math.sin(r),u=Math.cos(r),T=Math.sin(i),s=Math.cos(i),c=Math.sin(o),l=Math.cos(o);return Math.atan2(Math.sqrt((n=l*a)*n+(n=s*c-T*l*u)*n),T*c+s*l*u)},o.geo.graticule=function(){var t,e,n,r,i,a,u,T,s,c,l,A,f=10,C=f,G=90,p=360,h=2.5;function d(){return{type:"MultiLineString",coordinates:m()}}function m(){return o.range(Math.ceil(r/G)*G,n,G).map(l).concat(o.range(Math.ceil(T/p)*p,u,p).map(A)).concat(o.range(Math.ceil(e/f)*f,t,f).filter((function(t){return g(t%G)>Nt})).map(s)).concat(o.range(Math.ceil(a/C)*C,i,C).filter((function(t){return g(t%p)>Nt})).map(c))}return d.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},d.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(A(u).slice(1),l(n).reverse().slice(1),A(T).reverse().slice(1))]}},d.extent=function(t){return arguments.length?d.majorExtent(t).minorExtent(t):d.minorExtent()},d.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],T=+t[0][1],u=+t[1][1],r>n&&(t=r,r=n,n=t),T>u&&(t=T,T=u,u=t),d.precision(h)):[[r,T],[n,u]]},d.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),d.precision(h)):[[e,a],[t,i]]},d.step=function(t){return arguments.length?d.majorStep(t).minorStep(t):d.minorStep()},d.majorStep=function(t){return arguments.length?(G=+t[0],p=+t[1],d):[G,p]},d.minorStep=function(t){return arguments.length?(f=+t[0],C=+t[1],d):[f,C]},d.precision=function(o){return arguments.length?(h=+o,s=Xr(a,i,90),c=Zr(e,t,h),l=Xr(T,u,90),A=Zr(r,n,h),d):h},d.majorExtent([[-180,-90+Nt],[180,90-Nt]]).minorExtent([[-180,-80-Nt],[180,80+Nt]])},o.geo.greatArc=function(){var t,e,n=$r,r=Jr;function i(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},i.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,i):n},i.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(t,e){return n=t[0]*It,r=t[1]*It,i=e[0]*It,o=e[1]*It,a=Math.cos(r),u=Math.sin(r),T=Math.cos(o),s=Math.sin(o),c=a*Math.cos(n),l=a*Math.sin(n),A=T*Math.cos(i),f=T*Math.sin(i),C=2*Math.asin(Math.sqrt(zt(o-r)+a*T*zt(i-n))),G=1/Math.sin(C),(p=C?function(t){var e=Math.sin(t*=C)*G,n=Math.sin(C-t)*G,r=n*c+e*A,i=n*l+e*f,o=n*u+e*s;return[Math.atan2(i,r)*Vt,Math.atan2(o,Math.sqrt(r*r+i*i))*Vt]}:function(){return[n*Vt,r*Vt]}).distance=C,p;var n,r,i,o,a,u,T,s,c,l,A,f,C,G,p},o.geo.length=function(t){return kr=0,o.geo.stream(t,ti),kr};var ti={sphere:R,point:R,lineStart:function(){var t,e,n;function r(r,i){var o=Math.sin(i*=It),a=Math.cos(i),u=g((r*=It)-t),T=Math.cos(u);kr+=Math.atan2(Math.sqrt((u=a*Math.sin(u))*u+(u=n*o-e*a*T)*u),e*o+n*a*T),t=r,e=o,n=a}ti.point=function(i,o){t=i*It,e=Math.sin(o*=It),n=Math.cos(o),ti.point=r},ti.lineEnd=function(){ti.point=ti.lineEnd=R}},lineEnd:R,polygonStart:R,polygonEnd:R};function ei(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}var ni=ei((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(o.geo.azimuthalEqualArea=function(){return jr(ni)}).raw=ni;var ri=ei((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),I);function ii(t,e){var n=Math.cos(t),r=function(t){return Math.tan(Et/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),o=n*Math.pow(r(t),i)/i;if(!i)return ui;function a(t,e){o>0?e<-Pt+Nt&&(e=-Pt+Nt):e>Pt-Nt&&(e=Pt-Nt);var n=o/Math.pow(r(e),i);return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}return a.invert=function(t,e){var n=o-e,r=Ft(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Pt]},a}function oi(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(g(r)<Nt)return qr;function o(t,e){var n=i-e;return[n*Math.sin(r*t),i-n*Math.cos(r*t)]}return o.invert=function(t,e){var n=i-e;return[Math.atan2(t,n)/r,i-Ft(r)*Math.sqrt(t*t+n*n)]},o}(o.geo.azimuthalEquidistant=function(){return jr(ri)}).raw=ri,(o.geo.conicConformal=function(){return Gr(ii)}).raw=ii,(o.geo.conicEquidistant=function(){return Gr(oi)}).raw=oi;var ai=ei((function(t){return 1/t}),Math.atan);function ui(t,e){return[t,Math.log(Math.tan(Et/4+e/2))]}function Ti(t){var e,n=jr(t),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=o.apply(n,arguments);if(a===n){if(e=null==t){var u=Et*r(),T=i();o([[T[0]-u,T[1]-u],[T[0]+u,T[1]+u]])}}else e&&(a=null);return a},n.clipExtent(null)}(o.geo.gnomonic=function(){return jr(ai)}).raw=ai,ui.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Pt]},(o.geo.mercator=function(){return Ti(ui)}).raw=ui;var si=ei((function(){return 1}),Math.asin);(o.geo.orthographic=function(){return jr(si)}).raw=si;var ci=ei((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function li(t,e){return[Math.log(Math.tan(Et/4+e/2)),-t]}function Ai(t){return t[0]}function fi(t){return t[1]}function Ci(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;i++){for(;r>1&&jt(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Gi(t,e){return t[0]-e[0]||t[1]-e[1]}(o.geo.stereographic=function(){return jr(ci)}).raw=ci,li.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Pt]},(o.geo.transverseMercator=function(){var t=Ti(li),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=li,o.geom={},o.geom.hull=function(t){var e=Ai,n=fi;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=Se(e),o=Se(n),a=t.length,u=[],T=[];for(r=0;r<a;r++)u.push([+i.call(this,t[r],r),+o.call(this,t[r],r),r]);for(u.sort(Gi),r=0;r<a;r++)T.push([u[r][0],-u[r][1]]);var s=Ci(u),c=Ci(T),l=c[0]===s[0],A=c[c.length-1]===s[s.length-1],f=[];for(r=s.length-1;r>=0;--r)f.push(t[u[s[r]][2]]);for(r=+l;r<c.length-A;++r)f.push(t[u[c[r]][2]]);return f}return r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},o.geom.polygon=function(t){return U(t,pi),t};var pi=o.geom.polygon.prototype=[];function hi(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function di(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,u=r[0]-o,T=t[1],s=n[1],c=e[1]-T,l=r[1]-s,A=(u*(T-s)-l*(i-o))/(l*a-u*c);return[i+A*a,T+A*c]}function mi(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}pi.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},pi.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o*t,a*t]},pi.clip=function(t){for(var e,n,r,i,o,a,u=mi(t),T=-1,s=this.length-mi(this),c=this[s-1];++T<s;){for(e=t.slice(),t.length=0,i=this[T],o=e[(r=e.length-u)-1],n=-1;++n<r;)hi(a=e[n],c,i)?(hi(o,c,i)||t.push(di(o,a,c,i)),t.push(a)):hi(o,c,i)&&t.push(di(o,a,c,i)),o=a;u&&t.push(t[0]),c=i}return t};var yi,vi,gi,Si,bi,xi=[],_i=[];function wi(){Wi(this),this.edge=this.site=this.circle=null}function ki(t){var e=xi.pop()||new wi;return e.site=t,e}function Mi(t){Fi(t),gi.remove(t),xi.push(t),Wi(t)}function Ni(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},o=t.P,a=t.N,u=[t];Mi(t);for(var T=o;T.circle&&g(n-T.circle.x)<Nt&&g(r-T.circle.cy)<Nt;)o=T.P,u.unshift(T),Mi(T),T=o;u.unshift(T),Fi(T);for(var s=a;s.circle&&g(n-s.circle.x)<Nt&&g(r-s.circle.cy)<Nt;)a=s.N,u.push(s),Mi(s),s=a;u.push(s),Fi(s);var c,l=u.length;for(c=1;c<l;++c)s=u[c],T=u[c-1],zi(s.edge,T.site,s.site,i);T=u[0],(s=u[l-1]).edge=Ki(T.site,s.site,null,i),Vi(T),Vi(s)}function Li(t){for(var e,n,r,i,o=t.x,a=t.y,u=gi._;u;)if((r=Ei(u,a)-o)>Nt)u=u.L;else{if(!((i=o-Di(u,a))>Nt)){r>-Nt?(e=u.P,n=u):i>-Nt?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var T=ki(t);if(gi.insert(e,T),e||n){if(e===n)return Fi(e),n=ki(e.site),gi.insert(T,n),T.edge=n.edge=Ki(e.site,T.site),Vi(e),void Vi(n);if(n){Fi(e),Fi(n);var s=e.site,c=s.x,l=s.y,A=t.x-c,f=t.y-l,C=n.site,G=C.x-c,p=C.y-l,h=2*(A*p-f*G),d=A*A+f*f,m=G*G+p*p,y={x:(p*d-f*m)/h+c,y:(A*m-G*d)/h+l};zi(n.edge,s,C,y),T.edge=Ki(s,t,null,y),n.edge=Ki(t,C,null,y),Vi(e),Vi(n)}else T.edge=Ki(e.site,T.site)}}function Ei(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site).x,T=n.y,s=T-e;if(!s)return u;var c=u-r,l=1/o-1/s,A=c/s;return l?(-A+Math.sqrt(A*A-2*l*(c*c/(-2*s)-T+s/2+i-o/2)))/l+r:(r+u)/2}function Di(t,e){var n=t.N;if(n)return Ei(n,e);var r=t.site;return r.y===e?r.x:1/0}function Oi(t){this.site=t,this.edges=[]}function Pi(t,e){return e.angle-t.angle}function Ii(){Wi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vi(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,u=i.y,T=r.x-a,s=r.y-u,c=o.x-a,l=2*(T*(p=o.y-u)-s*c);if(!(l>=-Lt)){var A=T*T+s*s,f=c*c+p*p,C=(p*A-s*f)/l,G=(T*f-c*A)/l,p=G+u,h=_i.pop()||new Ii;h.arc=t,h.site=i,h.x=C+a,h.y=p+Math.sqrt(C*C+G*G),h.cy=p,t.circle=h;for(var d=null,m=bi._;m;)if(h.y<m.y||h.y===m.y&&h.x<=m.x){if(!m.L){d=m.P;break}m=m.L}else{if(!m.R){d=m;break}m=m.R}bi.insert(d,h),d||(Si=h)}}}}function Fi(t){var e=t.circle;e&&(e.P||(Si=e.N),bi.remove(e),_i.push(e),Wi(e),t.circle=null)}function ji(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],u=e[1][0],T=e[0][1],s=e[1][1],c=t.l,l=t.r,A=c.x,f=c.y,C=l.x,G=l.y,p=(A+C)/2,h=(f+G)/2;if(G===f){if(p<a||p>=u)return;if(A>C){if(o){if(o.y>=s)return}else o={x:p,y:T};n={x:p,y:s}}else{if(o){if(o.y<T)return}else o={x:p,y:s};n={x:p,y:T}}}else if(i=h-(r=(A-C)/(G-f))*p,r<-1||r>1)if(A>C){if(o){if(o.y>=s)return}else o={x:(T-i)/r,y:T};n={x:(s-i)/r,y:s}}else{if(o){if(o.y<T)return}else o={x:(s-i)/r,y:s};n={x:(T-i)/r,y:T}}else if(f<G){if(o){if(o.x>=u)return}else o={x:a,y:r*a+i};n={x:u,y:r*u+i}}else{if(o){if(o.x<a)return}else o={x:u,y:r*u+i};n={x:a,y:r*a+i}}return t.a=o,t.b=n,!0}function Ri(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ki(t,e,n,r){var i=new Ri(t,e);return yi.push(i),n&&zi(i,t,e,n),r&&zi(i,e,t,r),vi[t.i].edges.push(new Qi(i,t,e)),vi[e.i].edges.push(new Qi(i,e,t)),i}function qi(t,e,n){var r=new Ri(t,null);return r.a=e,r.b=n,yi.push(r),r}function zi(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function Qi(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Bi(){this._=null}function Wi(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ui(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Hi(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Yi(t){for(;t.L;)t=t.L;return t}function Xi(t,e){var n,r,i,o=t.sort(Zi).pop();for(yi=[],vi=new Array(t.length),gi=new Bi,bi=new Bi;;)if(i=Si,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===n&&o.y===r||(vi[o.i]=new Oi(o),Li(o),n=o.x,r=o.y),o=t.pop();else{if(!i)break;Ni(i.arc)}e&&(function(t){for(var e,n=yi,r=Ar(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)(!ji(e=n[i],t)||!r(e)||g(e.a.x-e.b.x)<Nt&&g(e.a.y-e.b.y)<Nt)&&(e.a=e.b=null,n.splice(i,1))}(e),function(t){for(var e,n,r,i,o,a,u,T,s,c,l=t[0][0],A=t[1][0],f=t[0][1],C=t[1][1],G=vi,p=G.length;p--;)if((o=G[p])&&o.prepare())for(T=(u=o.edges).length,a=0;a<T;)r=(c=u[a].end()).x,i=c.y,e=(s=u[++a%T].start()).x,n=s.y,(g(r-e)>Nt||g(i-n)>Nt)&&(u.splice(a,0,new Qi(qi(o.site,c,g(r-l)<Nt&&C-i>Nt?{x:l,y:g(e-l)<Nt?n:C}:g(i-C)<Nt&&A-r>Nt?{x:g(n-C)<Nt?e:A,y:C}:g(r-A)<Nt&&i-f>Nt?{x:A,y:g(e-A)<Nt?n:f}:g(i-f)<Nt&&r-l>Nt?{x:g(n-f)<Nt?e:l,y:f}:null),o.site,null)),++T)}(e));var a={cells:vi,edges:yi};return gi=bi=yi=vi=null,a}function Zi(t,e){return e.y-t.y||e.x-t.x}Oi.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)(t=e[n].edge).b&&t.a||e.splice(n,1);return e.sort(Pi),e.length},Qi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Bi.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Yi(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Ui(this,n),n=(t=n).U),n.C=!1,r.C=!0,Hi(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Hi(this,n),n=(t=n).U),n.C=!1,r.C=!0,Ui(this,r)),n=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 e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?Yi(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Ui(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Hi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Ui(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Hi(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Ui(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Hi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},o.geom.voronoi=function(t){var e=Ai,n=fi,r=e,i=n,o=$i;if(t)return a(t);function a(t){var e=new Array(t.length),n=o[0][0],r=o[0][1],i=o[1][0],a=o[1][1];return Xi(u(t),o).cells.forEach((function(o,u){var T=o.edges,s=o.site;(e[u]=T.length?T.map((function(t){var e=t.start();return[e.x,e.y]})):s.x>=n&&s.x<=i&&s.y>=r&&s.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=t[u]})),e}function u(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/Nt)*Nt,y:Math.round(i(t,e)/Nt)*Nt,i:e}}))}return a.links=function(t){return Xi(u(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},a.triangles=function(t){var e=[];return Xi(u(t)).cells.forEach((function(n,r){for(var i,o,a,u,T=n.site,s=n.edges.sort(Pi),c=-1,l=s.length,A=s[l-1].edge,f=A.l===T?A.r:A.l;++c<l;)A,i=f,f=(A=s[c].edge).l===T?A.r:A.l,r<i.i&&r<f.i&&(a=i,u=f,((o=T).x-u.x)*(a.y-o.y)-(o.x-a.x)*(u.y-o.y)<0)&&e.push([t[r],t[i.i],t[f.i]])})),e},a.x=function(t){return arguments.length?(r=Se(e=t),a):e},a.y=function(t){return arguments.length?(i=Se(n=t),a):n},a.clipExtent=function(t){return arguments.length?(o=null==t?$i:t,a):o===$i?null:o},a.size=function(t){return arguments.length?a.clipExtent(t&&[[0,0],t]):o===$i?null:o&&o[1]},a};var $i=[[-1e6,-1e6],[1e6,1e6]];function Ji(t){return t.x}function to(t){return t.y}function eo(t,e,n,r,i,o){if(!t(e,n,r,i,o)){var a=.5*(n+i),u=.5*(r+o),T=e.nodes;T[0]&&eo(t,T[0],n,r,a,u),T[1]&&eo(t,T[1],a,r,i,u),T[2]&&eo(t,T[2],n,u,a,o),T[3]&&eo(t,T[3],a,u,i,o)}}function no(t,e,n,r,i,o,a){var u,T=1/0;return function t(s,c,l,A,f){if(!(c>o||l>a||A<r||f<i)){if(C=s.point){var C,G=e-s.x,p=n-s.y,h=G*G+p*p;if(h<T){var d=Math.sqrt(T=h);r=e-d,i=n-d,o=e+d,a=n+d,u=C}}for(var m=s.nodes,y=.5*(c+A),v=.5*(l+f),g=(n>=v)<<1|e>=y,S=g+4;g<S;++g)if(s=m[3&g])switch(3&g){case 0:t(s,c,l,y,v);break;case 1:t(s,y,l,A,v);break;case 2:t(s,c,v,y,f);break;case 3:t(s,y,v,A,f)}}}(t,r,i,o,a),u}function ro(t,e){t=o.rgb(t),e=o.rgb(e);var n=t.r,r=t.g,i=t.b,a=e.r-n,u=e.g-r,T=e.b-i;return function(t){return"#"+pe(Math.round(n+a*t))+pe(Math.round(r+u*t))+pe(Math.round(i+T*t))}}function io(t,e){var n,r={},i={};for(n in t)n in e?r[n]=so(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function oo(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ao(t,e){var n,r,i,o=uo.lastIndex=To.lastIndex=0,a=-1,u=[],T=[];for(t+="",e+="";(n=uo.exec(t))&&(r=To.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,T.push({i:a,x:oo(n,r)})),o=To.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?T[0]?(e=T[0].x,function(t){return e(t)+""}):function(){return e}:(e=T.length,function(t){for(var n,r=0;r<e;++r)u[(n=T[r]).i]=n.x(t);return u.join("")})}o.geom.delaunay=function(t){return o.geom.voronoi().triangles(t)},o.geom.quadtree=function(t,e,n,r,i){var o,a=Ai,u=fi;if(o=arguments.length)return a=Ji,u=to,3===o&&(i=n,r=e,n=e=0),T(t);function T(t){var T,s,c,l,A,f,C,G,p,h=Se(a),d=Se(u);if(null!=e)f=e,C=n,G=r,p=i;else if(G=p=-(f=C=1/0),s=[],c=[],A=t.length,o)for(l=0;l<A;++l)(T=t[l]).x<f&&(f=T.x),T.y<C&&(C=T.y),T.x>G&&(G=T.x),T.y>p&&(p=T.y),s.push(T.x),c.push(T.y);else for(l=0;l<A;++l){var m=+h(T=t[l],l),y=+d(T,l);m<f&&(f=m),y<C&&(C=y),m>G&&(G=m),y>p&&(p=y),s.push(m),c.push(y)}var v=G-f,S=p-C;function b(t,e,n,r,i,o,a,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var T=t.x,s=t.y;if(null!=T)if(g(T-n)+g(s-r)<.01)x(t,e,n,r,i,o,a,u);else{var c=t.point;t.x=t.y=t.point=null,x(t,c,T,s,i,o,a,u),x(t,e,n,r,i,o,a,u)}else t.x=n,t.y=r,t.point=e}else x(t,e,n,r,i,o,a,u)}function x(t,e,n,r,i,o,a,u){var T=.5*(i+a),s=.5*(o+u),c=n>=T,l=r>=s,A=l<<1|c;t.leaf=!1,c?i=T:a=T,l?o=s:u=s,b(t=t.nodes[A]||(t.nodes[A]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,i,o,a,u)}v>S?p=C+v:G=f+S;var _={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){b(_,t,+h(t,++l),+d(t,l),f,C,G,p)},visit:function(t){eo(t,_,f,C,G,p)},find:function(t){return no(_,t[0],t[1],f,C,G,p)}};if(l=-1,null==e){for(;++l<A;)b(_,t[l],s[l],c[l],f,C,G,p);--l}else t.forEach(_.add);return s=c=t=T=null,_}return T.x=function(t){return arguments.length?(a=t,T):a},T.y=function(t){return arguments.length?(u=t,T):u},T.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),T):null==e?null:[[e,n],[r,i]]},T.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),T):null==e?null:[r-e,i-n]},T},o.interpolateRgb=ro,o.interpolateObject=io,o.interpolateNumber=oo,o.interpolateString=ao;var uo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,To=new RegExp(uo.source,"g");function so(t,e){for(var n,r=o.interpolators.length;--r>=0&&!(n=o.interpolators[r](t,e)););return n}function co(t,e){var n,r=[],i=[],o=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;n<u;++n)r.push(so(t[n],e[n]));for(;n<o;++n)i[n]=t[n];for(;n<a;++n)i[n]=e[n];return function(t){for(n=0;n<u;++n)i[n]=r[n](t);return i}}o.interpolate=so,o.interpolators=[function(t,e){var n=typeof e;return("string"===n?ge.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?ro:ao:e instanceof Ht?ro:Array.isArray(e)?co:"object"===n&&isNaN(e)?io:oo)(t,e)}],o.interpolateArray=co;var lo=function(){return I},Ao=o.map({linear:lo,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return ho},cubic:function(){return mo},sin:function(){return vo},exp:function(){return go},circle:function(){return So},elastic:function(t,e){var n;arguments.length<2&&(e=.45);arguments.length?n=e/Dt*Math.asin(1/t):(t=1,n=e/4);return function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Dt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return bo}}),fo=o.map({in:I,out:Go,"in-out":po,"out-in":function(t){return po(Go(t))}});function Co(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function Go(t){return function(e){return 1-t(1-e)}}function po(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ho(t){return t*t}function mo(t){return t*t*t}function yo(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function vo(t){return 1-Math.cos(t*Pt)}function go(t){return Math.pow(2,10*(t-1))}function So(t){return 1-Math.sqrt(1-t*t)}function bo(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function xo(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function _o(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=ko(i),u=wo(i,o),T=ko(((e=o)[0]+=(r=-u)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,a*=-1,u*=-1),this.rotate=(a?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*Vt,this.translate=[t.e,t.f],this.scale=[a,T],this.skew=T?Math.atan2(u,T)*Vt:0}function wo(t,e){return t[0]*e[0]+t[1]*e[1]}function ko(t){var e=Math.sqrt(wo(t,t));return e&&(t[0]/=e,t[1]/=e),e}o.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=Ao.get(n)||lo,Co((r=fo.get(r)||I)(n.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(t,e){t=o.hcl(t),e=o.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,u=e.c-r,T=e.l-i;isNaN(u)&&(u=0,r=isNaN(r)?e.c:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return te(n+a*t,r+u*t,i+T*t)+""}},o.interpolateHsl=function(t,e){t=o.hsl(t),e=o.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,u=e.s-r,T=e.l-i;isNaN(u)&&(u=0,r=isNaN(r)?e.s:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Zt(n+a*t,r+u*t,i+T*t)+""}},o.interpolateLab=function(t,e){t=o.lab(t),e=o.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,u=e.a-r,T=e.b-i;return function(t){return ue(n+a*t,r+u*t,i+T*t)+""}},o.interpolateRound=xo,o.transform=function(t){var e=T.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new _o(n?n.matrix:Mo)})(t)},_o.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Mo={a:1,b:0,c:0,d:1,e:0,f:0};function No(t){return t.length?t.pop()+",":""}function Lo(t,e){var n=[],r=[];return t=o.transform(t),e=o.transform(e),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:oo(t[0],e[0])},{i:i-2,x:oo(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}(t.translate,e.translate,n,r),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(No(n)+"rotate(",null,")")-2,x:oo(t,e)})):e&&n.push(No(n)+"rotate("+e+")")}(t.rotate,e.rotate,n,r),function(t,e,n,r){t!==e?r.push({i:n.push(No(n)+"skewX(",null,")")-2,x:oo(t,e)}):e&&n.push(No(n)+"skewX("+e+")")}(t.skew,e.skew,n,r),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(No(n)+"scale(",null,",",null,")");r.push({i:i-4,x:oo(t[0],e[0])},{i:i-2,x:oo(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(No(n)+"scale("+e+")")}(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,o=r.length;++i<o;)n[(e=r[i]).i]=e.x(t);return n.join("")}}function Eo(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function Do(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Oo(t){for(var e=t.source,n=t.target,r=function(t,e){if(t===e)return t;var n=Po(t),r=Po(e),i=n.pop(),o=r.pop(),a=null;for(;i===o;)a=i,i=n.pop(),o=r.pop();return a}(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function Po(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Io(t){t.fixed|=2}function Vo(t){t.fixed&=-7}function Fo(t){t.fixed|=4,t.px=t.x,t.py=t.y}function jo(t){t.fixed&=-5}o.interpolateTransform=Lo,o.layout={},o.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Oo(t[n]));return e}},o.layout.chord=function(){var t,e,n,r,i,a,u,T={},s=0;function c(){var T,c,A,f,C,G={},p=[],h=o.range(r),d=[];for(t=[],e=[],T=0,f=-1;++f<r;){for(c=0,C=-1;++C<r;)c+=n[f][C];p.push(c),d.push(o.range(r)),T+=c}for(i&&h.sort((function(t,e){return i(p[t],p[e])})),a&&d.forEach((function(t,e){t.sort((function(t,r){return a(n[e][t],n[e][r])}))})),T=(Dt-s*r)/T,c=0,f=-1;++f<r;){for(A=c,C=-1;++C<r;){var m=h[f],y=d[m][C],v=n[m][y],g=c,S=c+=v*T;G[m+"-"+y]={index:m,subindex:y,startAngle:g,endAngle:S,value:v}}e[m]={index:m,startAngle:A,endAngle:c,value:p[m]},c+=s}for(f=-1;++f<r;)for(C=f-1;++C<r;){var b=G[f+"-"+C],x=G[C+"-"+f];(b.value||x.value)&&t.push(b.value<x.value?{source:x,target:b}:{source:b,target:x})}u&&l()}function l(){t.sort((function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return T.matrix=function(i){return arguments.length?(r=(n=i)&&n.length,t=e=null,T):n},T.padding=function(n){return arguments.length?(s=n,t=e=null,T):s},T.sortGroups=function(n){return arguments.length?(i=n,t=e=null,T):i},T.sortSubgroups=function(e){return arguments.length?(a=e,t=null,T):a},T.sortChords=function(e){return arguments.length?(u=e,t&&l(),T):u},T.chords=function(){return t||c(),t},T.groups=function(){return e||c(),e},T},o.layout.force=function(){var t,e,n,r,i,a,u={},T=o.dispatch("start","tick","end"),s=[1,1],c=.9,l=Ro,A=Ko,f=-30,C=qo,G=.1,p=.64,h=[],d=[];function m(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,u=i-n,T=o*o+a*a;if(u*u/p<T){if(T<C){var s=e.charge/T;t.px-=o*s,t.py-=a*s}return!0}if(e.point&&T&&T<C){s=e.pointCharge/T;t.px-=o*s,t.py-=a*s}}return!e.charge}}function y(t){t.px=o.event.x,t.py=o.event.y,u.resume()}return u.tick=function(){if((n*=.99)<.005)return t=null,T.end({type:"end",alpha:n=0}),!0;var e,u,l,A,C,p,y,v,g,S=h.length,b=d.length;for(u=0;u<b;++u)A=(l=d[u]).source,(p=(v=(C=l.target).x-A.x)*v+(g=C.y-A.y)*g)&&(v*=p=n*i[u]*((p=Math.sqrt(p))-r[u])/p,g*=p,C.x-=v*(y=A.weight+C.weight?A.weight/(A.weight+C.weight):.5),C.y-=g*y,A.x+=v*(y=1-y),A.y+=g*y);if((y=n*G)&&(v=s[0]/2,g=s[1]/2,u=-1,y))for(;++u<S;)(l=h[u]).x+=(v-l.x)*y,l.y+=(g-l.y)*y;if(f)for(!function t(e,n,r){var i=0,o=0;e.charge=0;if(!e.leaf)for(var a,u=e.nodes,T=u.length,s=-1;++s<T;)null!=(a=u[s])&&(t(a,n,r),e.charge+=a.charge,i+=a.charge*a.cx,o+=a.charge*a.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=n*r[e.point.index];e.charge+=e.pointCharge=c,i+=c*e.point.x,o+=c*e.point.y}e.cx=i/e.charge;e.cy=o/e.charge}(e=o.geom.quadtree(h),n,a),u=-1;++u<S;)(l=h[u]).fixed||e.visit(m(l));for(u=-1;++u<S;)(l=h[u]).fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*c,l.y-=(l.py-(l.py=l.y))*c);T.tick({type:"tick",alpha:n})},u.nodes=function(t){return arguments.length?(h=t,u):h},u.links=function(t){return arguments.length?(d=t,u):d},u.size=function(t){return arguments.length?(s=t,u):s},u.linkDistance=function(t){return arguments.length?(l="function"==typeof t?t:+t,u):l},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(A="function"==typeof t?t:+t,u):A},u.friction=function(t){return arguments.length?(c=+t,u):c},u.charge=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.chargeDistance=function(t){return arguments.length?(C=t*t,u):Math.sqrt(C)},u.gravity=function(t){return arguments.length?(G=+t,u):G},u.theta=function(t){return arguments.length?(p=t*t,u):Math.sqrt(p)},u.alpha=function(e){return arguments.length?(e=+e,n?e>0?n=e:(t.c=null,t.t=NaN,t=null,T.end({type:"end",alpha:n=0})):e>0&&(T.start({type:"start",alpha:n=e}),t=Le(u.tick)),u):n},u.start=function(){var t,e,n,o=h.length,T=d.length,c=s[0],C=s[1];for(t=0;t<o;++t)(n=h[t]).index=t,n.weight=0;for(t=0;t<T;++t)"number"==typeof(n=d[t]).source&&(n.source=h[n.source]),"number"==typeof n.target&&(n.target=h[n.target]),++n.source.weight,++n.target.weight;for(t=0;t<o;++t)n=h[t],isNaN(n.x)&&(n.x=G("x",c)),isNaN(n.y)&&(n.y=G("y",C)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"==typeof l)for(t=0;t<T;++t)r[t]=+l.call(this,d[t],t);else for(t=0;t<T;++t)r[t]=l;if(i=[],"function"==typeof A)for(t=0;t<T;++t)i[t]=+A.call(this,d[t],t);else for(t=0;t<T;++t)i[t]=A;if(a=[],"function"==typeof f)for(t=0;t<o;++t)a[t]=+f.call(this,h[t],t);else for(t=0;t<o;++t)a[t]=f;function G(n,r){if(!e){for(e=new Array(o),s=0;s<o;++s)e[s]=[];for(s=0;s<T;++s){var i=d[s];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,u=e[t],s=-1,c=u.length;++s<c;)if(!isNaN(a=u[s][n]))return a;return Math.random()*r}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(e||(e=o.behavior.drag().origin(I).on("dragstart.force",Io).on("drag.force",y).on("dragend.force",Vo)),!arguments.length)return e;this.on("mouseover.force",Fo).on("mouseout.force",jo).call(e)},o.rebind(u,T,"on")};var Ro=20,Ko=1,qo=1/0;function zo(t,e){return o.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=Yo,t}function Qo(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function Bo(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(t=r.pop());)e(t)}function Wo(t){return t.children}function Uo(t){return t.value}function Ho(t,e){return e.value-t.value}function Yo(t){return o.merge(t.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}o.layout.hierarchy=function(){var t=Ho,e=Wo,n=Uo;function r(i){var o,a=[i],u=[];for(i.depth=0;null!=(o=a.pop());)if(u.push(o),(s=e.call(r,o,o.depth))&&(T=s.length)){for(var T,s,c;--T>=0;)a.push(c=s[T]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=s}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Bo(i,(function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)})),u}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(Qo(t,(function(t){t.children&&(t.value=0)})),Bo(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},o.layout.partition=function(){var t=o.layout.hierarchy(),e=[1,1];function n(n,r){var i=t.call(this,n,r);return function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,u,T,s=-1;for(r=e.value?r/e.value:0;++s<a;)t(u=o[s],n,T=u.value*r,i),n+=T}}(i[0],0,e[0],e[1]/function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,t(n[o]));return 1+r}(i[0])),i}return n.size=function(t){return arguments.length?(e=t,n):e},zo(n,t)},o.layout.pie=function(){var t=Number,e=Xo,n=0,r=Dt,i=0;function a(u){var T,s=u.length,c=u.map((function(e,n){return+t.call(a,e,n)})),l=+("function"==typeof n?n.apply(this,arguments):n),A=("function"==typeof r?r.apply(this,arguments):r)-l,f=Math.min(Math.abs(A)/s,+("function"==typeof i?i.apply(this,arguments):i)),C=f*(A<0?-1:1),G=o.sum(c),p=G?(A-s*C)/G:0,h=o.range(s),d=[];return null!=e&&h.sort(e===Xo?function(t,e){return c[e]-c[t]}:function(t,n){return e(u[t],u[n])}),h.forEach((function(t){d[t]={data:u[t],value:T=c[t],startAngle:l,endAngle:l+=T*p+C,padAngle:f}})),d}return a.value=function(e){return arguments.length?(t=e,a):t},a.sort=function(t){return arguments.length?(e=t,a):e},a.startAngle=function(t){return arguments.length?(n=t,a):n},a.endAngle=function(t){return arguments.length?(r=t,a):r},a.padAngle=function(t){return arguments.length?(i=t,a):i},a};var Xo={};function Zo(t){return t.x}function $o(t){return t.y}function Jo(t,e,n){t.y0=e,t.y=n}o.layout.stack=function(){var t=I,e=na,n=ra,r=Jo,i=Zo,a=$o;function u(T,s){if(!(f=T.length))return T;var c=T.map((function(e,n){return t.call(u,e,n)})),l=c.map((function(t){return t.map((function(t,e){return[i.call(u,t,e),a.call(u,t,e)]}))})),A=e.call(u,l,s);c=o.permute(c,A),l=o.permute(l,A);var f,C,G,p,h=n.call(u,l,s),d=c[0].length;for(G=0;G<d;++G)for(r.call(u,c[0][G],p=h[G],l[0][G][1]),C=1;C<f;++C)r.call(u,c[C][G],p+=l[C-1][G][1],l[C][G][1]);return T}return u.values=function(e){return arguments.length?(t=e,u):t},u.order=function(t){return arguments.length?(e="function"==typeof t?t:ta.get(t)||na,u):e},u.offset=function(t){return arguments.length?(n="function"==typeof t?t:ea.get(t)||ra,u):n},u.x=function(t){return arguments.length?(i=t,u):i},u.y=function(t){return arguments.length?(a=t,u):a},u.out=function(t){return arguments.length?(r=t,u):r},u};var ta=o.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(ia),a=t.map(oa),u=o.range(r).sort((function(t,e){return i[t]-i[e]})),T=0,s=0,c=[],l=[];for(e=0;e<r;++e)n=u[e],T<s?(T+=a[n],c.push(n)):(s+=a[n],l.push(n));return l.reverse().concat(c)},reverse:function(t){return o.range(t.length).reverse()},default:na}),ea=o.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],u=0,T=[];for(n=0;n<o;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];r>u&&(u=r),a.push(r)}for(n=0;n<o;++n)T[n]=(u-a[n])/2;return T},wiggle:function(t){var e,n,r,i,o,a,u,T,s,c=t.length,l=t[0],A=l.length,f=[];for(f[0]=T=s=0,n=1;n<A;++n){for(e=0,i=0;e<c;++e)i+=t[e][n][1];for(e=0,o=0,u=l[n][0]-l[n-1][0];e<c;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*u);r<e;++r)a+=(t[r][n][1]-t[r][n-1][1])/u;o+=a*t[e][n][1]}f[n]=T-=i?o/i*u:0,T<s&&(s=T)}for(n=0;n<A;++n)f[n]-=s;return f},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,u=[];for(n=0;n<o;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];if(r)for(e=0;e<i;e++)t[e][n][1]/=r;else for(e=0;e<i;e++)t[e][n][1]=a}for(n=0;n<o;++n)u[n]=0;return u},zero:ra});function na(t){return o.range(t.length)}function ra(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function ia(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;n<o;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function oa(t){return t.reduce(aa,0)}function aa(t,e){return t+e[1]}function ua(t,e){return Ta(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ta(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function sa(t){return[o.min(t),o.max(t)]}function ca(t,e){return t.value-e.value}function la(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Aa(t,e){t._pack_next=e,e._pack_prev=t}function fa(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function Ca(t){if((e=t.children)&&(T=e.length)){var e,n,r,i,o,a,u,T,s=1/0,c=-1/0,l=1/0,A=-1/0;if(e.forEach(Ga),(n=e[0]).x=-n.r,n.y=0,m(n),T>1&&((r=e[1]).x=r.r,r.y=0,m(r),T>2))for(ha(n,r,i=e[2]),m(i),la(n,i),n._pack_prev=i,la(i,r),r=n._pack_next,o=3;o<T;o++){ha(n,r,i=e[o]);var f=0,C=1,G=1;for(a=r._pack_next;a!==r;a=a._pack_next,C++)if(fa(a,i)){f=1;break}if(1==f)for(u=n._pack_prev;u!==a._pack_prev&&!fa(u,i);u=u._pack_prev,G++);f?(C<G||C==G&&r.r<n.r?Aa(n,r=a):Aa(n=u,r),o--):(la(n,i),r=i,m(i))}var p=(s+c)/2,h=(l+A)/2,d=0;for(o=0;o<T;o++)(i=e[o]).x-=p,i.y-=h,d=Math.max(d,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=d,e.forEach(pa)}function m(t){s=Math.min(t.x-t.r,s),c=Math.max(t.x+t.r,c),l=Math.min(t.y-t.r,l),A=Math.max(t.y+t.r,A)}}function Ga(t){t._pack_next=t._pack_prev=t}function pa(t){delete t._pack_next,delete t._pack_prev}function ha(t,e,n){var r=t.r+n.r,i=e.x-t.x,o=e.y-t.y;if(r&&(i||o)){var a=e.r+n.r,u=i*i+o*o,T=.5+((r*=r)-(a*=a))/(2*u),s=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);n.x=t.x+T*i+s*o,n.y=t.y+T*o-s*i}else n.x=t.x+r,n.y=t.y}function da(t,e){return t.parent==e.parent?1:2}function ma(t){var e=t.children;return e.length?e[0]:t.t}function ya(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function va(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function ga(t,e,n){return t.a.parent===e.parent?t.a:n}function Sa(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function ba(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return i<0&&(n+=i/2,i=0),o<0&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function xa(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]}function _a(t){return t.rangeExtent?t.rangeExtent():xa(t.range())}function wa(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function ka(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Ma(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Na}o.layout.histogram=function(){var t=!0,e=Number,n=sa,r=ua;function i(i,a){for(var u,T,s=[],c=i.map(e,this),l=n.call(this,c,a),A=r.call(this,l,c,a),f=(a=-1,c.length),C=A.length-1,G=t?1:1/f;++a<C;)(u=s[a]=[]).dx=A[a+1]-(u.x=A[a]),u.y=0;if(C>0)for(a=-1;++a<f;)(T=c[a])>=l[0]&&T<=l[1]&&((u=s[o.bisect(A,T,1,C)-1]).y+=G,u.push(i[a]));return s}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(n=Se(t),i):n},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return Ta(e,t)}:Se(t),i):r},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},o.layout.pack=function(){var t,e=o.layout.hierarchy().sort(ca),n=0,r=[1,1];function i(i,o){var a=e.call(this,i,o),u=a[0],T=r[0],s=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(u.x=u.y=0,Bo(u,(function(t){t.r=+c(t.value)})),Bo(u,Ca),n){var l=n*(t?1:Math.max(2*u.r/T,2*u.r/s))/2;Bo(u,(function(t){t.r+=l})),Bo(u,Ca),Bo(u,(function(t){t.r-=l}))}return function t(e,n,r,i){var o=e.children;e.x=n+=i*e.x;e.y=r+=i*e.y;e.r*=i;if(o)for(var a=-1,u=o.length;++a<u;)t(o[a],n,r,i)}(u,T/2,s/2,t?1:1/Math.max(2*u.r/T,2*u.r/s)),a}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(t){return arguments.length?(n=+t,i):n},zo(i,e)},o.layout.tree=function(){var t=o.layout.hierarchy().sort(null).value(null),e=da,n=[1,1],r=null;function i(i,o){var s=t.call(this,i,o),c=s[0],l=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var i,o=e.children,a=0,u=o.length;a<u;++a)r.push((o[a]=i={_:o[a],parent:e,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}(c);if(Bo(l,a),l.parent.m=-l.z,Qo(l,u),r)Qo(c,T);else{var A=c,f=c,C=c;Qo(c,(function(t){t.x<A.x&&(A=t),t.x>f.x&&(f=t),t.depth>C.depth&&(C=t)}));var G=e(A,f)/2-A.x,p=n[0]/(f.x+e(f,A)/2+G),h=n[1]/(C.depth||1);Qo(c,(function(t){t.x=(t.x+G)*p,t.y=t.depth*h}))}return s}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,i=t.children,o=i.length;for(;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,u=n,T=o.parent.children[0],s=o.m,c=a.m,l=u.m,A=T.m;u=ya(u),o=ma(o),u&&o;)T=ma(T),(a=ya(a)).a=t,(i=u.z+l-o.z-s+e(u._,o._))>0&&(va(ga(u,t,r),t,i),s+=i,c+=i),l+=u.m,s+=o.m,A+=T.m,c+=a.m;u&&!ya(a)&&(a.t=u,a.m+=l-c),o&&!ma(T)&&(T.t=o,T.m+=s-A,r=t)}return r}(t,i,t.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function T(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t)?T:null,i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:T,i):r?n:null},zo(i,t)},o.layout.cluster=function(){var t=o.layout.hierarchy().sort(null).value(null),e=da,n=[1,1],r=!1;function i(i,a){var u,T=t.call(this,i,a),s=T[0],c=0;Bo(s,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+o.max(t,(function(t){return t.y}))}(n)):(t.x=u?c+=e(t,u):0,t.y=0,u=t)}));var l=function t(e){var n=e.children;return n&&n.length?t(n[0]):e}(s),A=function t(e){var n,r=e.children;return r&&(n=r.length)?t(r[n-1]):e}(s),f=l.x-e(l,A)/2,C=A.x+e(A,l)/2;return Bo(s,r?function(t){t.x=(t.x-s.x)*n[0],t.y=(s.y-t.y)*n[1]}:function(t){t.x=(t.x-f)/(C-f)*n[0],t.y=(1-(s.y?t.y/s.y:1))*n[1]}),T}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t),i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null!=(n=t),i):r?n:null},zo(i,t)},o.layout.treemap=function(){var t,e=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=Sa,u=!1,T="squarify",s=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function l(t){var e=t.children;if(e&&e.length){var n,r,i,o=a(t),u=[],s=e.slice(),A=1/0,G="slice"===T?o.dx:"dice"===T?o.dy:"slice-dice"===T?1&t.depth?o.dy:o.dx:Math.min(o.dx,o.dy);for(c(s,o.dx*o.dy/t.value),u.area=0;(i=s.length)>0;)u.push(n=s[i-1]),u.area+=n.area,"squarify"!==T||(r=f(u,G))<=A?(s.pop(),A=r):(u.area-=u.pop().area,C(u,G,o,!1),G=Math.min(o.dx,o.dy),u.length=u.area=0,A=1/0);u.length&&(C(u,G,o,!0),u.length=u.area=0),e.forEach(l)}}function A(t){var e=t.children;if(e&&e.length){var n,r=a(t),i=e.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(C(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(A)}}function f(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,u=t.length;++a<u;)(n=t[a].area)&&(n<o&&(o=n),n>i&&(i=n));return e*=e,(r*=r)?Math.max(e*i*s/r,r/(e*o*s)):1/0}function C(t,e,r,i){var o,a=-1,u=t.length,T=r.x,s=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++a<u;)(o=t[a]).x=T,o.y=s,o.dy=c,T+=o.dx=Math.min(r.x+r.dx-T,c?n(o.area/c):0);o.z=!0,o.dx+=r.x+r.dx-T,r.y+=c,r.dy-=c}else{for((i||c>r.dx)&&(c=r.dx);++a<u;)(o=t[a]).x=T,o.y=s,o.dx=c,s+=o.dy=Math.min(r.y+r.dy-s,c?n(o.area/c):0);o.z=!1,o.dy+=r.y+r.dy-s,r.x+=c,r.dx-=c}}function G(n){var i=t||e(n),o=i[0];return o.x=o.y=0,o.value?(o.dx=r[0],o.dy=r[1]):o.dx=o.dy=0,t&&e.revalue(o),c([o],o.dx*o.dy/o.value),(t?A:l)(o),u&&(t=i),i}return G.size=function(t){return arguments.length?(r=t,G):r},G.padding=function(t){if(!arguments.length)return i;function e(e){var n=t.call(G,e,e.depth);return null==n?Sa(e):ba(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return ba(e,t)}var r;return a=null==(i=t)?Sa:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,G},G.round=function(t){return arguments.length?(n=t?Math.round:Number,G):n!=Number},G.sticky=function(e){return arguments.length?(u=e,t=null,G):u},G.ratio=function(t){return arguments.length?(s=t,G):s},G.mode=function(t){return arguments.length?(T=t+"",G):T},zo(G,e)},o.random={normal:function(t,e){var n=arguments.length;return n<2&&(e=1),n<1&&(t=0),function(){var n,r,i;do{i=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=o.random.normal.apply(o,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=o.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n<t;n++)e+=Math.random();return e}}},o.scale={};var Na={floor:I,ceil:I};function La(t,e,n,r){var i=[],a=[],u=0,T=Math.min(t.length,e.length)-1;for(t[T]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<=T;)i.push(n(t[u-1],t[u])),a.push(r(e[u-1],e[u]));return function(e){var n=o.bisect(t,e,1,T)-1;return a[n](i[n](e))}}function Ea(t,e){return o.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Da(t,e){return ka(t,Ma(Oa(t,e)[2])),ka(t,Ma(Oa(t,e)[2])),t}function Oa(t,e){null==e&&(e=10);var n=xa(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Pa(t,e){return o.range.apply(o,Oa(t,e))}function Ia(t,e,n){var r=Oa(t,e);if(n){var i=Fe.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(g(r[0]),g(r[1])));return i[7]||(i[7]="."+Fa(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+function(t,e){var n=Fa(e[2]);return t in Va?Math.abs(n-Fa(Math.max(g(e[0]),g(e[1]))))+ +("e"!==t):n-2*("%"===t)}(i[8],r)),n=i.join("")}else n=",."+Fa(r[2])+"f";return o.format(n)}o.scale.linear=function(){return function t(e,n,r,i){var o,a;function u(){var t=Math.min(e.length,n.length)>2?La:wa,u=i?Do:Eo;return o=t(e,n,u,r),a=t(n,e,u,so),T}function T(t){return o(t)}T.invert=function(t){return a(t)};T.domain=function(t){return arguments.length?(e=t.map(Number),u()):e};T.range=function(t){return arguments.length?(n=t,u()):n};T.rangeRound=function(t){return T.range(t).interpolate(xo)};T.clamp=function(t){return arguments.length?(i=t,u()):i};T.interpolate=function(t){return arguments.length?(r=t,u()):r};T.ticks=function(t){return Pa(e,t)};T.tickFormat=function(t,n){return Ia(e,t,n)};T.nice=function(t){return Da(e,t),u()};T.copy=function(){return t(e,n,r,i)};return u()}([0,1],[0,1],so,!1)};var Va={s:1,g:1,p:1,r:1,e:1};function Fa(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}o.scale.log=function(){return function t(e,n,r,i){function a(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function u(t){return r?Math.pow(n,t):-Math.pow(n,-t)}function T(t){return e(a(t))}T.invert=function(t){return u(e.invert(t))};T.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((i=t.map(Number)).map(a)),T):i};T.base=function(t){return arguments.length?(n=+t,e.domain(i.map(a)),T):n};T.nice=function(){var t=ka(i.map(a),r?Math:Ra);return e.domain(t),i=t.map(u),T};T.ticks=function(){var t=xa(i),e=[],o=t[0],T=t[1],s=Math.floor(a(o)),c=Math.ceil(a(T)),l=n%1?2:n;if(isFinite(c-s)){if(r){for(;s<c;s++)for(var A=1;A<l;A++)e.push(u(s)*A);e.push(u(s))}else for(e.push(u(s));s++<c;)for(A=l-1;A>0;A--)e.push(u(s)*A);for(s=0;e[s]<o;s++);for(c=e.length;e[c-1]>T;c--);e=e.slice(s,c)}return e};T.tickFormat=function(t,e){if(!arguments.length)return ja;arguments.length<2?e=ja:"function"!=typeof e&&(e=o.format(e));var r=Math.max(1,n*t/T.ticks().length);return function(t){var i=t/u(Math.round(a(t)));return i*n<n-.5&&(i*=n),i<=r?e(t):""}};T.copy=function(){return t(e.copy(),n,r,i)};return Ea(T,e)}(o.scale.linear().domain([0,1]),10,!0,[1,10])};var ja=o.format(".0e"),Ra={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Ka(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}o.scale.pow=function(){return function t(e,n,r){var i=Ka(n),o=Ka(1/n);function a(t){return e(i(t))}a.invert=function(t){return o(e.invert(t))};a.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(i)),a):r};a.ticks=function(t){return Pa(r,t)};a.tickFormat=function(t,e){return Ia(r,t,e)};a.nice=function(t){return a.domain(Da(r,t))};a.exponent=function(t){return arguments.length?(i=Ka(n=t),o=Ka(1/n),e.domain(r.map(i)),a):n};a.copy=function(){return t(e.copy(),n,r)};return Ea(a,e)}(o.scale.linear(),1,[0,1])},o.scale.sqrt=function(){return o.scale.pow().exponent(.5)},o.scale.ordinal=function(){return function t(e,n){var r,i,a;function u(t){return i[((r.get(t)||("range"===n.t?r.set(t,e.push(t)):NaN))-1)%i.length]}function T(t,n){return o.range(e.length).map((function(e){return t+n*e}))}u.domain=function(t){if(!arguments.length)return e;e=[],r=new x;for(var i,o=-1,a=t.length;++o<a;)r.has(i=t[o])||r.set(i,e.push(i));return u[n.t].apply(u,n.a)};u.range=function(t){return arguments.length?(i=t,a=0,n={t:"range",a:arguments},u):i};u.rangePoints=function(t,r){arguments.length<2&&(r=0);var o=t[0],s=t[1],c=e.length<2?(o=(o+s)/2,0):(s-o)/(e.length-1+r);return i=T(o+c*r/2,c),a=0,n={t:"rangePoints",a:arguments},u};u.rangeRoundPoints=function(t,r){arguments.length<2&&(r=0);var o=t[0],s=t[1],c=e.length<2?(o=s=Math.round((o+s)/2),0):(s-o)/(e.length-1+r)|0;return i=T(o+Math.round(c*r/2+(s-o-(e.length-1+r)*c)/2),c),a=0,n={t:"rangeRoundPoints",a:arguments},u};u.rangeBands=function(t,r,o){arguments.length<2&&(r=0),arguments.length<3&&(o=r);var s=t[1]<t[0],c=t[s-0],l=t[1-s],A=(l-c)/(e.length-r+2*o);return i=T(c+A*o,A),s&&i.reverse(),a=A*(1-r),n={t:"rangeBands",a:arguments},u};u.rangeRoundBands=function(t,r,o){arguments.length<2&&(r=0),arguments.length<3&&(o=r);var s=t[1]<t[0],c=t[s-0],l=t[1-s],A=Math.floor((l-c)/(e.length-r+2*o));return i=T(c+Math.round((l-c-(e.length-r)*A)/2),A),s&&i.reverse(),a=Math.round(A*(1-r)),n={t:"rangeRoundBands",a:arguments},u};u.rangeBand=function(){return a};u.rangeExtent=function(){return xa(n.a[0])};u.copy=function(){return t(e,n)};return u.domain(e)}([],{t:"range",a:[[]]})},o.scale.category10=function(){return o.scale.ordinal().range(qa)},o.scale.category20=function(){return o.scale.ordinal().range(za)},o.scale.category20b=function(){return o.scale.ordinal().range(Qa)},o.scale.category20c=function(){return o.scale.ordinal().range(Ba)};var qa=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ce),za=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ce),Qa=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ce),Ba=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ce);function Wa(){return 0}o.scale.quantile=function(){return function t(e,n){var r;function i(){var t=0,i=n.length;for(r=[];++t<i;)r[t-1]=o.quantile(e,t/i);return a}function a(t){if(!isNaN(t=+t))return n[o.bisect(r,t)]}a.domain=function(t){return arguments.length?(e=t.map(h).filter(d).sort(p),i()):e};a.range=function(t){return arguments.length?(n=t,i()):n};a.quantiles=function(){return r};a.invertExtent=function(t){return(t=n.indexOf(t))<0?[NaN,NaN]:[t>0?r[t-1]:e[0],t<r.length?r[t]:e[e.length-1]]};a.copy=function(){return t(e,n)};return i()}([],[])},o.scale.quantize=function(){return function t(e,n,r){var i,o;function a(t){return r[Math.max(0,Math.min(o,Math.floor(i*(t-e))))]}function u(){return i=r.length/(n-e),o=r.length-1,a}a.domain=function(t){return arguments.length?(e=+t[0],n=+t[t.length-1],u()):[e,n]};a.range=function(t){return arguments.length?(r=t,u()):r};a.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/i+e,t+1/i]};a.copy=function(){return t(e,n,r)};return u()}(0,1,[0,1])},o.scale.threshold=function(){return function t(e,n){function r(t){if(t<=t)return n[o.bisect(e,t)]}r.domain=function(t){return arguments.length?(e=t,r):e};r.range=function(t){return arguments.length?(n=t,r):n};r.invertExtent=function(t){return t=n.indexOf(t),[e[t-1],e[t]]};r.copy=function(){return t(e,n)};return r}([.5],[0,1])},o.scale.identity=function(){return function t(e){function n(t){return+t}n.invert=n;n.domain=n.range=function(t){return arguments.length?(e=t.map(n),n):e};n.ticks=function(t){return Pa(e,t)};n.tickFormat=function(t,n){return Ia(e,t,n)};n.copy=function(){return t(e)};return n}([0,1])},o.svg={},o.svg.arc=function(){var t=Ha,e=Ya,n=Wa,r=Ua,i=Xa,o=Za,a=$a;function u(){var u=Math.max(0,+t.apply(this,arguments)),s=Math.max(0,+e.apply(this,arguments)),c=i.apply(this,arguments)-Pt,l=o.apply(this,arguments)-Pt,A=Math.abs(l-c),f=c>l?0:1;if(s<u&&(C=s,s=u,u=C),A>=Ot)return T(s,f)+(u?T(u,1-f):"")+"Z";var C,G,p,h,d,m,y,v,g,S,b,x,_=0,w=0,k=[];if((h=(+a.apply(this,arguments)||0)/2)&&(p=r===Ua?Math.sqrt(u*u+s*s):+r.apply(this,arguments),f||(w*=-1),s&&(w=Kt(p/s*Math.sin(h))),u&&(_=Kt(p/u*Math.sin(h)))),s){d=s*Math.cos(c+w),m=s*Math.sin(c+w),y=s*Math.cos(l-w),v=s*Math.sin(l-w);var M=Math.abs(l-c-2*w)<=Et?0:1;if(w&&Ja(d,m,y,v)===f^M){var N=(c+l)/2;d=s*Math.cos(N),m=s*Math.sin(N),y=v=null}}else d=m=0;if(u){g=u*Math.cos(l-_),S=u*Math.sin(l-_),b=u*Math.cos(c+_),x=u*Math.sin(c+_);var L=Math.abs(c-l+2*_)<=Et?0:1;if(_&&Ja(g,S,b,x)===1-f^L){var E=(c+l)/2;g=u*Math.cos(E),S=u*Math.sin(E),b=x=null}}else g=S=0;if(A>Nt&&(C=Math.min(Math.abs(s-u)/2,+n.apply(this,arguments)))>.001){G=u<s^f?0:1;var D=C,O=C;if(A<Et){var P=null==b?[g,S]:null==y?[d,m]:di([d,m],[b,x],[y,v],[g,S]),I=d-P[0],V=m-P[1],F=y-P[0],j=v-P[1],R=1/Math.sin(Math.acos((I*F+V*j)/(Math.sqrt(I*I+V*V)*Math.sqrt(F*F+j*j)))/2),K=Math.sqrt(P[0]*P[0]+P[1]*P[1]);O=Math.min(C,(u-K)/(R-1)),D=Math.min(C,(s-K)/(R+1))}if(null!=y){var q=tu(null==b?[g,S]:[b,x],[d,m],s,D,f),z=tu([y,v],[g,S],s,D,f);C===D?k.push("M",q[0],"A",D,",",D," 0 0,",G," ",q[1],"A",s,",",s," 0 ",1-f^Ja(q[1][0],q[1][1],z[1][0],z[1][1]),",",f," ",z[1],"A",D,",",D," 0 0,",G," ",z[0]):k.push("M",q[0],"A",D,",",D," 0 1,",G," ",z[0])}else k.push("M",d,",",m);if(null!=b){var Q=tu([d,m],[b,x],u,-O,f),B=tu([g,S],null==y?[d,m]:[y,v],u,-O,f);C===O?k.push("L",B[0],"A",O,",",O," 0 0,",G," ",B[1],"A",u,",",u," 0 ",f^Ja(B[1][0],B[1][1],Q[1][0],Q[1][1]),",",1-f," ",Q[1],"A",O,",",O," 0 0,",G," ",Q[0]):k.push("L",B[0],"A",O,",",O," 0 0,",G," ",Q[0])}else k.push("L",g,",",S)}else k.push("M",d,",",m),null!=y&&k.push("A",s,",",s," 0 ",M,",",f," ",y,",",v),k.push("L",g,",",S),null!=b&&k.push("A",u,",",u," 0 ",L,",",1-f," ",b,",",x);return k.push("Z"),k.join("")}function T(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}return u.innerRadius=function(e){return arguments.length?(t=Se(e),u):t},u.outerRadius=function(t){return arguments.length?(e=Se(t),u):e},u.cornerRadius=function(t){return arguments.length?(n=Se(t),u):n},u.padRadius=function(t){return arguments.length?(r=t==Ua?Ua:Se(t),u):r},u.startAngle=function(t){return arguments.length?(i=Se(t),u):i},u.endAngle=function(t){return arguments.length?(o=Se(t),u):o},u.padAngle=function(t){return arguments.length?(a=Se(t),u):a},u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Pt;return[Math.cos(r)*n,Math.sin(r)*n]},u};var Ua="auto";function Ha(t){return t.innerRadius}function Ya(t){return t.outerRadius}function Xa(t){return t.startAngle}function Za(t){return t.endAngle}function $a(t){return t&&t.padAngle}function Ja(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function tu(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],u=(i?r:-r)/Math.sqrt(o*o+a*a),T=u*a,s=-u*o,c=t[0]+T,l=t[1]+s,A=e[0]+T,f=e[1]+s,C=(c+A)/2,G=(l+f)/2,p=A-c,h=f-l,d=p*p+h*h,m=n-r,y=c*f-A*l,v=(h<0?-1:1)*Math.sqrt(Math.max(0,m*m*d-y*y)),g=(y*h-p*v)/d,S=(-y*p-h*v)/d,b=(y*h+p*v)/d,x=(-y*p+h*v)/d,_=g-C,w=S-G,k=b-C,M=x-G;return _*_+w*w>k*k+M*M&&(g=b,S=x),[[g-T,S-s],[g*n/m,S*n/m]]}function eu(t){var e=Ai,n=fi,r=nr,i=ru,o=i.key,a=.7;function u(o){var u,T=[],s=[],c=-1,l=o.length,A=Se(e),f=Se(n);function C(){T.push("M",i(t(s),a))}for(;++c<l;)r.call(this,u=o[c],c)?s.push([+A.call(this,u,c),+f.call(this,u,c)]):s.length&&(C(),s=[]);return s.length&&C(),T.length?T.join(""):null}return u.x=function(t){return arguments.length?(e=t,u):e},u.y=function(t){return arguments.length?(n=t,u):n},u.defined=function(t){return arguments.length?(r=t,u):r},u.interpolate=function(t){return arguments.length?(o="function"==typeof t?i=t:(i=nu.get(t)||ru).key,u):o},u.tension=function(t){return arguments.length?(a=t,u):a},u}o.svg.line=function(){return eu(I)};var nu=o.map({linear:ru,"linear-closed":iu,step:function(t){var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];for(;++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);n>1&&i.push("H",r[0]);return i.join("")},"step-before":ou,"step-after":au,basis:su,"basis-open":function(t){if(t.length<4)return ru(t);var e,n=[],r=-1,i=t.length,o=[0],a=[0];for(;++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);n.push(cu(fu,o)+","+cu(fu,a)),--r;for(;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Cu(n,o,a);return n.join("")},"basis-closed":function(t){var e,n,r=-1,i=t.length,o=i+4,a=[],u=[];for(;++r<4;)n=t[r%i],a.push(n[0]),u.push(n[1]);e=[cu(fu,a),",",cu(fu,u)],--r;for(;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),Cu(e,a,u);return e.join("")},bundle:function(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],u=t[n][0]-o,T=t[n][1]-a,s=-1;++s<=n;)r=t[s],i=s/n,r[0]=e*r[0]+(1-e)*(o+i*u),r[1]=e*r[1]+(1-e)*(a+i*T);return su(t)},cardinal:function(t,e){return t.length<3?ru(t):t[0]+uu(t,Tu(t,e))},"cardinal-open":function(t,e){return t.length<4?ru(t):t[1]+uu(t.slice(1,-1),Tu(t,e))},"cardinal-closed":function(t,e){return t.length<3?iu(t):t[0]+uu((t.push(t[0]),t),Tu([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?ru(t):t[0]+uu(t,function(t){var e,n,r,i,o=[],a=function(t){var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=Gu(i,o);for(;++e<n;)r[e]=(a+(a=Gu(i=o,o=t[e+1])))/2;return r[e]=a,r}(t),u=-1,T=t.length-1;for(;++u<T;)e=Gu(t[u],t[u+1]),g(e)<Nt?a[u]=a[u+1]=0:(n=a[u]/e,r=a[u+1]/e,(i=n*n+r*r)>9&&(i=3*e/Math.sqrt(i),a[u]=i*n,a[u+1]=i*r));u=-1;for(;++u<=T;)i=(t[Math.min(T,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),o.push([i||0,a[u]*i||0]);return o}(t))}});function ru(t){return t.length>1?t.join("L"):t+"Z"}function iu(t){return t.join("L")+"Z"}function ou(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function au(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function uu(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return ru(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],u=a,T=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],T=2),e.length>1){u=e[1],o=t[T],T++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1];for(var s=2;s<e.length;s++,T++)o=t[T],u=e[s],r+="S"+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1]}if(n){var c=t[T];r+="Q"+(o[0]+2*u[0]/3)+","+(o[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function Tu(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],u=1,T=t.length;++u<T;)n=o,o=a,a=t[u],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function su(t){if(t.length<3)return ru(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],u=[o,o,o,r[1]],T=[i,",",o,"L",cu(fu,a),",",cu(fu,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),Cu(T,a,u);return t.pop(),T.push("L",r),T.join("")}function cu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}nu.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var lu=[0,2/3,1/3,0],Au=[0,1/3,2/3,0],fu=[0,1/6,2/3,1/6];function Cu(t,e,n){t.push("C",cu(lu,e),",",cu(lu,n),",",cu(Au,e),",",cu(Au,n),",",cu(fu,e),",",cu(fu,n))}function Gu(t,e){return(e[1]-t[1])/(e[0]-t[0])}function pu(t){for(var e,n,r,i=-1,o=t.length;++i<o;)n=(e=t[i])[0],r=e[1]-Pt,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function hu(t){var e=Ai,n=Ai,r=0,i=fi,o=nr,a=ru,u=a.key,T=a,s="L",c=.7;function l(u){var l,A,f,C=[],G=[],p=[],h=-1,d=u.length,m=Se(e),y=Se(r),v=e===n?function(){return A}:Se(n),g=r===i?function(){return f}:Se(i);function S(){C.push("M",a(t(p),c),s,T(t(G.reverse()),c),"Z")}for(;++h<d;)o.call(this,l=u[h],h)?(G.push([A=+m.call(this,l,h),f=+y.call(this,l,h)]),p.push([+v.call(this,l,h),+g.call(this,l,h)])):G.length&&(S(),G=[],p=[]);return G.length&&S(),C.length?C.join(""):null}return l.x=function(t){return arguments.length?(e=n=t,l):n},l.x0=function(t){return arguments.length?(e=t,l):e},l.x1=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(r=i=t,l):i},l.y0=function(t){return arguments.length?(r=t,l):r},l.y1=function(t){return arguments.length?(i=t,l):i},l.defined=function(t){return arguments.length?(o=t,l):o},l.interpolate=function(t){return arguments.length?(u="function"==typeof t?a=t:(a=nu.get(t)||ru).key,T=a.reverse||a,s=a.closed?"M":"L",l):u},l.tension=function(t){return arguments.length?(c=t,l):c},l}function du(t){return t.radius}function mu(t){return[t.x,t.y]}function yu(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Pt;return[n*Math.cos(r),n*Math.sin(r)]}}function vu(){return 64}function gu(){return"circle"}function Su(t){var e=Math.sqrt(t/Et);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}o.svg.line.radial=function(){var t=eu(pu);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},ou.reverse=au,au.reverse=ou,o.svg.area=function(){return hu(I)},o.svg.area.radial=function(){var t=hu(pu);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},o.svg.chord=function(){var t=$r,e=Jr,n=du,r=Xa,i=Za;function o(n,r){var i,o,s=a(this,t,n,r),c=a(this,e,n,r);return"M"+s.p0+u(s.r,s.p1,s.a1-s.a0)+(o=c,(i=s).a0==o.a0&&i.a1==o.a1?T(s.r,s.p1,s.r,s.p0):T(s.r,s.p1,c.r,c.p0)+u(c.r,c.p1,c.a1-c.a0)+T(c.r,c.p1,s.r,s.p0))+"Z"}function a(t,e,o,a){var u=e.call(t,o,a),T=n.call(t,u,a),s=r.call(t,u,a)-Pt,c=i.call(t,u,a)-Pt;return{r:T,a0:s,a1:c,p0:[T*Math.cos(s),T*Math.sin(s)],p1:[T*Math.cos(c),T*Math.sin(c)]}}function u(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Et)+",1 "+e}function T(t,e,n,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(n=Se(t),o):n},o.source=function(e){return arguments.length?(t=Se(e),o):t},o.target=function(t){return arguments.length?(e=Se(t),o):e},o.startAngle=function(t){return arguments.length?(r=Se(t),o):r},o.endAngle=function(t){return arguments.length?(i=Se(t),o):i},o},o.svg.diagonal=function(){var t=$r,e=Jr,n=mu;function r(r,i){var o=t.call(this,r,i),a=e.call(this,r,i),u=(o.y+a.y)/2,T=[o,{x:o.x,y:u},{x:a.x,y:u},a];return"M"+(T=T.map(n))[0]+"C"+T[1]+" "+T[2]+" "+T[3]}return r.source=function(e){return arguments.length?(t=Se(e),r):t},r.target=function(t){return arguments.length?(e=Se(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},o.svg.diagonal.radial=function(){var t=o.svg.diagonal(),e=mu,n=t.projection;return t.projection=function(t){return arguments.length?n(yu(e=t)):e},t},o.svg.symbol=function(){var t=gu,e=vu;function n(n,r){return(bu.get(t.call(this,n,r))||Su)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=Se(e),n):t},n.size=function(t){return arguments.length?(e=Se(t),n):e},n};var bu=o.map({circle:Su,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*_u)),n=e*_u;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/xu),n=e*xu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/xu),n=e*xu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});o.svg.symbolTypes=bu.keys();var xu=Math.sqrt(3),_u=Math.tan(30*It);$.transition=function(t){for(var e,n,r=Nu||++Du,i=Iu(t),o=[],a=Lu||{time:Date.now(),ease:yo,delay:0,duration:250},u=-1,T=this.length;++u<T;){o.push(e=[]);for(var s=this[u],c=-1,l=s.length;++c<l;)(n=s[c])&&Vu(n,c,i,r,a),e.push(n)}return Mu(o,i,r)},$.interrupt=function(t){return this.each(null==t?wu:ku(Iu(t)))};var wu=ku(Iu());function ku(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Mu(t,e,n){return U(t,Eu),t.namespace=e,t.id=n,t}var Nu,Lu,Eu=[],Du=0;function Ou(t,e,n,r){var i=t.id,o=t.namespace;return pt(t,"function"==typeof n?function(t,a,u){t[o][i].tween.set(e,r(n.call(t,t.__data__,a,u)))}:(n=r(n),function(t){t[o][i].tween.set(e,n)}))}function Pu(t){return null==t&&(t=""),function(){this.textContent=t}}function Iu(t){return null==t?"__transition__":"__transition_"+t+"__"}function Vu(t,e,n,r,i){var o,a,u,T,s,c=t[n]||(t[n]={active:0,count:0}),l=c[r];function A(n){var i=c.active,A=c[i];for(var C in A&&(A.timer.c=null,A.timer.t=NaN,--c.count,delete c[i],A.event&&A.event.interrupt.call(t,t.__data__,A.index)),c)if(+C<r){var G=c[C];G.timer.c=null,G.timer.t=NaN,--c.count,delete c[C]}a.c=f,Le((function(){return a.c&&f(n||1)&&(a.c=null,a.t=NaN),1}),0,o),c.active=r,l.event&&l.event.start.call(t,t.__data__,e),s=[],l.tween.forEach((function(n,r){(r=r.call(t,t.__data__,e))&&s.push(r)})),T=l.ease,u=l.duration}function f(i){for(var o=i/u,a=T(o),A=s.length;A>0;)s[--A].call(t,a);if(o>=1)return l.event&&l.event.end.call(t,t.__data__,e),--c.count?delete c[r]:delete t[n],1}l||(o=i.time,a=Le((function(t){var e=l.delay;if(a.t=e+o,e<=t)return A(t-e);a.c=A}),0,o),l=c[r]={tween:new x,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++c.count)}Eu.call=$.call,Eu.empty=$.empty,Eu.node=$.node,Eu.size=$.size,o.transition=function(t,e){return t&&t.transition?Nu?t.transition(e):t:o.selection().transition(t)},o.transition.prototype=Eu,Eu.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=J(t);for(var u=-1,T=this.length;++u<T;){a.push(e=[]);for(var s=this[u],c=-1,l=s.length;++c<l;)(r=s[c])&&(n=t.call(r,r.__data__,c,u))?("__data__"in r&&(n.__data__=r.__data__),Vu(n,c,o,i,r[o][i]),e.push(n)):e.push(null)}return Mu(a,o,i)},Eu.selectAll=function(t){var e,n,r,i,o,a=this.id,u=this.namespace,T=[];t=tt(t);for(var s=-1,c=this.length;++s<c;)for(var l=this[s],A=-1,f=l.length;++A<f;)if(r=l[A]){o=r[u][a],n=t.call(r,r.__data__,A,s),T.push(e=[]);for(var C=-1,G=n.length;++C<G;)(i=n[C])&&Vu(i,C,u,a,o),e.push(i)}return Mu(T,u,a)},Eu.filter=function(t){var e,n,r=[];"function"!=typeof t&&(t=Ct(t));for(var i=0,o=this.length;i<o;i++){r.push(e=[]);for(var a,u=0,T=(a=this[i]).length;u<T;u++)(n=a[u])&&t.call(n,n.__data__,u,i)&&e.push(n)}return Mu(r,this.namespace,this.id)},Eu.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):pt(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},Eu.attr=function(t,e){if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var n="transform"==t?Lo:so,r=o.ns.qualify(t);function i(){this.removeAttribute(r)}function a(){this.removeAttributeNS(r.space,r.local)}function u(t){return null==t?i:(t+="",function(){var e,i=this.getAttribute(r);return i!==t&&(e=n(i,t),function(t){this.setAttribute(r,e(t))})})}function T(t){return null==t?a:(t+="",function(){var e,i=this.getAttributeNS(r.space,r.local);return i!==t&&(e=n(i,t),function(t){this.setAttributeNS(r.space,r.local,e(t))})})}return Ou(this,"attr."+t,e,r.local?T:u)},Eu.attrTween=function(t,e){var n=o.ns.qualify(t);return this.tween("attr."+t,n.local?function(t,r){var i=e.call(this,t,r,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,r){var i=e.call(this,t,r,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}})},Eu.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.style(n,t[n],e);return this}n=""}function i(){this.style.removeProperty(t)}function o(e){return null==e?i:(e+="",function(){var r,i=c(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=so(i,e),function(e){this.style.setProperty(t,r(e),n)})})}return Ou(this,"style."+t,e,o)},Eu.styleTween=function(t,e,n){function r(r,i){var o=e.call(this,r,i,c(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Eu.text=function(t){return Ou(this,"text",t,Pu)},Eu.remove=function(){var t=this.namespace;return this.each("end.transition",(function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)}))},Eu.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=o.ease.apply(o,arguments)),pt(this,(function(r){r[n][e].ease=t})))},Eu.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:pt(this,"function"==typeof t?function(r,i,o){r[n][e].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[n][e].delay=t}))},Eu.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:pt(this,"function"==typeof t?function(r,i,o){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Eu.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Lu,a=Nu;try{Nu=n,pt(this,(function(e,i,o){Lu=e[r][n],t.call(e,e.__data__,i,o)}))}finally{Lu=i,Nu=a}}else pt(this,(function(i){var a=i[r][n];(a.event||(a.event=o.dispatch("start","end","interrupt"))).on(t,e)}));return this},Eu.transition=function(){for(var t,e,n,r=this.id,i=++Du,o=this.namespace,a=[],u=0,T=this.length;u<T;u++){a.push(t=[]);for(var s,c=0,l=(s=this[u]).length;c<l;c++)(e=s[c])&&Vu(e,c,o,i,{time:(n=e[o][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),t.push(e)}return Mu(a,o,i)},o.svg.axis=function(){var t,e=o.scale.linear(),n=Fu,r=6,i=6,a=3,T=[10],s=null;function c(u){u.each((function(){var u,c=o.select(this),l=this.__chart__||e,A=this.__chart__=e.copy(),f=null==s?A.ticks?A.ticks.apply(A,T):A.domain():s,C=null==t?A.tickFormat?A.tickFormat.apply(A,T):I:t,G=c.selectAll(".tick").data(f,A),p=G.enter().insert("g",".domain").attr("class","tick").style("opacity",Nt),h=o.transition(G.exit()).style("opacity",Nt).remove(),d=o.transition(G.order()).style("opacity",1),m=Math.max(r,0)+a,y=_a(A),v=c.selectAll(".domain").data([0]),g=(v.enter().append("path").attr("class","domain"),o.transition(v));p.append("line"),p.append("text");var S,b,x,_,w=p.select("line"),k=d.select("line"),M=G.select("text").text(C),N=p.select("text"),L=d.select("text"),E="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(u=Ru,S="x",x="y",b="x2",_="y2",M.attr("dy",E<0?"0em":".71em").style("text-anchor","middle"),g.attr("d","M"+y[0]+","+E*i+"V0H"+y[1]+"V"+E*i)):(u=Ku,S="y",x="x",b="y2",_="x2",M.attr("dy",".32em").style("text-anchor",E<0?"end":"start"),g.attr("d","M"+E*i+","+y[0]+"H0V"+y[1]+"H"+E*i)),w.attr(_,E*r),N.attr(x,E*m),k.attr(b,0).attr(_,E*r),L.attr(S,0).attr(x,E*m),A.rangeBand){var D=A,O=D.rangeBand()/2;l=A=function(t){return D(t)+O}}else l.rangeBand?l=A:h.call(u,A,l);p.call(u,l,A),d.call(u,A,A)}))}return c.scale=function(t){return arguments.length?(e=t,c):e},c.orient=function(t){return arguments.length?(n=t in ju?t+"":Fu,c):n},c.ticks=function(){return arguments.length?(T=u(arguments),c):T},c.tickValues=function(t){return arguments.length?(s=t,c):s},c.tickFormat=function(e){return arguments.length?(t=e,c):t},c.tickSize=function(t){var e=arguments.length;return e?(r=+t,i=+arguments[e-1],c):r},c.innerTickSize=function(t){return arguments.length?(r=+t,c):r},c.outerTickSize=function(t){return arguments.length?(i=+t,c):i},c.tickPadding=function(t){return arguments.length?(a=+t,c):a},c.tickSubdivide=function(){return arguments.length&&c},c};var Fu="bottom",ju={top:1,right:1,bottom:1,left:1};function Ru(t,e,n){t.attr("transform",(function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"}))}function Ku(t,e,n){t.attr("transform",(function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"}))}o.svg.brush=function(){var t,e,n=B(A,"brushstart","brush","brushend"),r=null,i=null,a=[0,0],u=[0,0],T=!0,s=!0,l=zu[0];function A(t){t.each((function(){var t=o.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",p).on("touchstart.brush",p),e=t.selectAll(".background").data([0]);e.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(l,I);n.exit().remove(),n.enter().append("g").attr("class",(function(t){return"resize "+t})).style("cursor",(function(t){return qu[t]})).append("rect").attr("x",(function(t){return/[ew]$/.test(t)?-3:null})).attr("y",(function(t){return/^[ns]/.test(t)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",A.empty()?"none":null);var a,u=o.transition(t),T=o.transition(e);r&&(a=_a(r),T.attr("x",a[0]).attr("width",a[1]-a[0]),C(u)),i&&(a=_a(i),T.attr("y",a[0]).attr("height",a[1]-a[0]),G(u)),f(u)}))}function f(t){t.selectAll(".resize").attr("transform",(function(t){return"translate("+a[+/e$/.test(t)]+","+u[+/^s/.test(t)]+")"}))}function C(t){t.select(".extent").attr("x",a[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",a[1]-a[0])}function G(t){t.select(".extent").attr("y",u[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",u[1]-u[0])}function p(){var l,p,h=this,d=o.select(o.event.target),m=n.of(h,arguments),y=o.select(h),v=d.datum(),g=!/^(n|s)$/.test(v)&&r,S=!/^(e|w)$/.test(v)&&i,b=d.classed("extent"),x=_t(h),_=o.mouse(h),w=o.select(c(h)).on("keydown.brush",(function(){32==o.event.keyCode&&(b||(l=null,_[0]-=a[1],_[1]-=u[1],b=2),z())})).on("keyup.brush",(function(){32==o.event.keyCode&&2==b&&(_[0]+=a[1],_[1]+=u[1],b=0,z())}));if(o.event.changedTouches?w.on("touchmove.brush",N).on("touchend.brush",E):w.on("mousemove.brush",N).on("mouseup.brush",E),y.interrupt().selectAll("*").interrupt(),b)_[0]=a[0]-_[0],_[1]=u[0]-_[1];else if(v){var k=+/w$/.test(v),M=+/^n/.test(v);p=[a[1-k]-_[0],u[1-M]-_[1]],_[0]=a[k],_[1]=u[M]}else o.event.altKey&&(l=_.slice());function N(){var t=o.mouse(h),e=!1;p&&(t[0]+=p[0],t[1]+=p[1]),b||(o.event.altKey?(l||(l=[(a[0]+a[1])/2,(u[0]+u[1])/2]),_[0]=a[+(t[0]<l[0])],_[1]=u[+(t[1]<l[1])]):l=null),g&&L(t,r,0)&&(C(y),e=!0),S&&L(t,i,1)&&(G(y),e=!0),e&&(f(y),m({type:"brush",mode:b?"move":"resize"}))}function L(n,r,i){var o,c,A=_a(r),f=A[0],C=A[1],G=_[i],p=i?u:a,h=p[1]-p[0];if(b&&(f-=G,C-=h+G),o=(i?s:T)?Math.max(f,Math.min(C,n[i])):n[i],b?c=(o+=G)+h:(l&&(G=Math.max(f,Math.min(C,2*l[i]-o))),G<o?(c=o,o=G):c=G),p[0]!=o||p[1]!=c)return i?e=null:t=null,p[0]=o,p[1]=c,!0}function E(){N(),y.style("pointer-events","all").selectAll(".resize").style("display",A.empty()?"none":null),o.select("body").style("cursor",null),w.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),x(),m({type:"brushend"})}y.style("pointer-events","none").selectAll(".resize").style("display",null),o.select("body").style("cursor",d.style("cursor")),m({type:"brushstart"}),N()}return A.event=function(r){r.each((function(){var r=n.of(this,arguments),i={x:a,y:u,i:t,j:e},T=this.__chart__||i;this.__chart__=i,Nu?o.select(this).transition().each("start.brush",(function(){t=T.i,e=T.j,a=T.x,u=T.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=co(a,i.x),o=co(u,i.y);return t=e=null,function(t){a=i.x=n(t),u=i.y=o(t),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=i.i,e=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},A.x=function(t){return arguments.length?(l=zu[!(r=t)<<1|!i],A):r},A.y=function(t){return arguments.length?(l=zu[!r<<1|!(i=t)],A):i},A.clamp=function(t){return arguments.length?(r&&i?(T=!!t[0],s=!!t[1]):r?T=!!t:i&&(s=!!t),A):r&&i?[T,s]:r?T:i?s:null},A.extent=function(n){var o,T,s,c,l;return arguments.length?(r&&(o=n[0],T=n[1],i&&(o=o[0],T=T[0]),t=[o,T],r.invert&&(o=r(o),T=r(T)),T<o&&(l=o,o=T,T=l),o==a[0]&&T==a[1]||(a=[o,T])),i&&(s=n[0],c=n[1],r&&(s=s[1],c=c[1]),e=[s,c],i.invert&&(s=i(s),c=i(c)),c<s&&(l=s,s=c,c=l),s==u[0]&&c==u[1]||(u=[s,c])),A):(r&&(t?(o=t[0],T=t[1]):(o=a[0],T=a[1],r.invert&&(o=r.invert(o),T=r.invert(T)),T<o&&(l=o,o=T,T=l))),i&&(e?(s=e[0],c=e[1]):(s=u[0],c=u[1],i.invert&&(s=i.invert(s),c=i.invert(c)),c<s&&(l=s,s=c,c=l))),r&&i?[[o,s],[T,c]]:r?[o,T]:i&&[s,c])},A.clear=function(){return A.empty()||(a=[0,0],u=[0,0],t=e=null),A},A.empty=function(){return!!r&&a[0]==a[1]||!!i&&u[0]==u[1]},o.rebind(A,n,"on")};var qu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},zu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Qu=Ke.format=hn.timeFormat,Bu=Qu.utc,Wu=Bu("%Y-%m-%dT%H:%M:%S.%LZ");function Uu(t){return t.toISOString()}function Hu(t,e,n){function r(e){return t(e)}function i(t,n){var r=(t[1]-t[0])/n,i=o.bisect(Xu,r);return i==Xu.length?[e.year,Oa(t.map((function(t){return t/31536e6})),n)[2]]:i?e[r/Xu[i-1]<Xu[i]/r?i-1:i]:[Ju,Oa(t,n)[2]]}return r.invert=function(e){return Yu(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(Yu)},r.nice=function(t,e){var n=r.domain(),o=xa(n),a=null==t?i(o,10):"number"==typeof t&&i(o,t);function u(n){return!isNaN(n)&&!t.range(n,Yu(+n+1),e).length}return a&&(t=a[0],e=a[1]),r.domain(ka(n,e>1?{floor:function(e){for(;u(e=t.floor(e));)e=Yu(e-1);return e},ceil:function(e){for(;u(e=t.ceil(e));)e=Yu(+e+1);return e}}:t))},r.ticks=function(t,e){var n=xa(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],Yu(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Hu(t.copy(),e,n)},Ea(r,t)}function Yu(t){return new Date(t)}Qu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Uu:Wu,Uu.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Uu.toString=Wu.toString,Ke.second=Be((function(t){return new qe(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Ke.seconds=Ke.second.range,Ke.seconds.utc=Ke.second.utc.range,Ke.minute=Be((function(t){return new qe(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Ke.minutes=Ke.minute.range,Ke.minutes.utc=Ke.minute.utc.range,Ke.hour=Be((function(t){var e=t.getTimezoneOffset()/60;return new qe(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Ke.hours=Ke.hour.range,Ke.hours.utc=Ke.hour.utc.range,Ke.month=Be((function(t){return(t=Ke.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Ke.months=Ke.month.range,Ke.months.utc=Ke.month.utc.range;var Xu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Zu=[[Ke.second,1],[Ke.second,5],[Ke.second,15],[Ke.second,30],[Ke.minute,1],[Ke.minute,5],[Ke.minute,15],[Ke.minute,30],[Ke.hour,1],[Ke.hour,3],[Ke.hour,6],[Ke.hour,12],[Ke.day,1],[Ke.day,2],[Ke.week,1],[Ke.month,1],[Ke.month,3],[Ke.year,1]],$u=Qu.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",nr]]),Ju={range:function(t,e,n){return o.range(Math.ceil(t/n)*n,+e,n).map(Yu)},floor:I,ceil:I};Zu.year=Ke.year,Ke.scale=function(){return Hu(o.scale.linear(),Zu,$u)};var tT=Zu.map((function(t){return[t[0].utc,t[1]]})),eT=Bu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",nr]]);function nT(t){return JSON.parse(t.responseText)}function rT(t){var e=T.createRange();return e.selectNode(T.body),e.createContextualFragment(t.responseText)}tT.year=Ke.year.utc,Ke.scale.utc=function(){return Hu(o.scale.linear(),tT,eT)},o.text=be((function(t){return t.responseText})),o.json=function(t,e){return xe(t,"application/json",nT,e)},o.html=function(t,e){return xe(t,"text/html",rT,e)},o.xml=be((function(t){return t.responseXML})),this.d3=o,void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(n)return[t,e];return t},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t&&r.test(t)};var r=/-webkit-|-moz-|-ms-/;t.exports=e.default},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"default",(function(){return h})),n.d(e,"VERSION",(function(){return d})),n.d(e,"iteratee",(function(){return v})),n.d(e,"restArguments",(function(){return S})),n.d(e,"each",(function(){return L})),n.d(e,"forEach",(function(){return L})),n.d(e,"map",(function(){return E})),n.d(e,"collect",(function(){return E})),n.d(e,"reduce",(function(){return O})),n.d(e,"foldl",(function(){return O})),n.d(e,"inject",(function(){return O})),n.d(e,"reduceRight",(function(){return P})),n.d(e,"foldr",(function(){return P})),n.d(e,"find",(function(){return I})),n.d(e,"detect",(function(){return I})),n.d(e,"filter",(function(){return V})),n.d(e,"select",(function(){return V})),n.d(e,"reject",(function(){return F})),n.d(e,"every",(function(){return j})),n.d(e,"all",(function(){return j})),n.d(e,"some",(function(){return R})),n.d(e,"any",(function(){return R})),n.d(e,"contains",(function(){return K})),n.d(e,"includes",(function(){return K})),n.d(e,"include",(function(){return K})),n.d(e,"invoke",(function(){return q})),n.d(e,"pluck",(function(){return z})),n.d(e,"where",(function(){return Q})),n.d(e,"findWhere",(function(){return B})),n.d(e,"max",(function(){return W})),n.d(e,"min",(function(){return U})),n.d(e,"shuffle",(function(){return H})),n.d(e,"sample",(function(){return Y})),n.d(e,"sortBy",(function(){return X})),n.d(e,"groupBy",(function(){return $})),n.d(e,"indexBy",(function(){return J})),n.d(e,"countBy",(function(){return tt})),n.d(e,"toArray",(function(){return nt})),n.d(e,"size",(function(){return rt})),n.d(e,"partition",(function(){return it})),n.d(e,"first",(function(){return ot})),n.d(e,"head",(function(){return ot})),n.d(e,"take",(function(){return ot})),n.d(e,"initial",(function(){return at})),n.d(e,"last",(function(){return ut})),n.d(e,"rest",(function(){return Tt})),n.d(e,"tail",(function(){return Tt})),n.d(e,"drop",(function(){return Tt})),n.d(e,"compact",(function(){return st})),n.d(e,"flatten",(function(){return lt})),n.d(e,"without",(function(){return At})),n.d(e,"uniq",(function(){return ft})),n.d(e,"unique",(function(){return ft})),n.d(e,"union",(function(){return Ct})),n.d(e,"intersection",(function(){return Gt})),n.d(e,"difference",(function(){return pt})),n.d(e,"unzip",(function(){return ht})),n.d(e,"zip",(function(){return dt})),n.d(e,"object",(function(){return mt})),n.d(e,"findIndex",(function(){return vt})),n.d(e,"findLastIndex",(function(){return gt})),n.d(e,"sortedIndex",(function(){return St})),n.d(e,"indexOf",(function(){return xt})),n.d(e,"lastIndexOf",(function(){return _t})),n.d(e,"range",(function(){return wt})),n.d(e,"chunk",(function(){return kt})),n.d(e,"bind",(function(){return Nt})),n.d(e,"partial",(function(){return Lt})),n.d(e,"bindAll",(function(){return Et})),n.d(e,"memoize",(function(){return Dt})),n.d(e,"delay",(function(){return Ot})),n.d(e,"defer",(function(){return Pt})),n.d(e,"throttle",(function(){return It})),n.d(e,"debounce",(function(){return Vt})),n.d(e,"wrap",(function(){return Ft})),n.d(e,"negate",(function(){return jt})),n.d(e,"compose",(function(){return Rt})),n.d(e,"after",(function(){return Kt})),n.d(e,"before",(function(){return qt})),n.d(e,"once",(function(){return zt})),n.d(e,"keys",(function(){return Ut})),n.d(e,"allKeys",(function(){return Ht})),n.d(e,"values",(function(){return Yt})),n.d(e,"mapObject",(function(){return Xt})),n.d(e,"pairs",(function(){return Zt})),n.d(e,"invert",(function(){return $t})),n.d(e,"functions",(function(){return Jt})),n.d(e,"methods",(function(){return Jt})),n.d(e,"extend",(function(){return ee})),n.d(e,"extendOwn",(function(){return ne})),n.d(e,"assign",(function(){return ne})),n.d(e,"findKey",(function(){return re})),n.d(e,"pick",(function(){return oe})),n.d(e,"omit",(function(){return ae})),n.d(e,"defaults",(function(){return ue})),n.d(e,"create",(function(){return Te})),n.d(e,"clone",(function(){return se})),n.d(e,"tap",(function(){return ce})),n.d(e,"isMatch",(function(){return le})),n.d(e,"isEqual",(function(){return fe})),n.d(e,"isEmpty",(function(){return Ce})),n.d(e,"isElement",(function(){return Ge})),n.d(e,"isArray",(function(){return he})),n.d(e,"isObject",(function(){return de})),n.d(e,"isArguments",(function(){return me})),n.d(e,"isFunction",(function(){return ye})),n.d(e,"isString",(function(){return ve})),n.d(e,"isNumber",(function(){return ge})),n.d(e,"isDate",(function(){return Se})),n.d(e,"isRegExp",(function(){return be})),n.d(e,"isError",(function(){return xe})),n.d(e,"isSymbol",(function(){return _e})),n.d(e,"isMap",(function(){return we})),n.d(e,"isWeakMap",(function(){return ke})),n.d(e,"isSet",(function(){return Me})),n.d(e,"isWeakSet",(function(){return Ne})),n.d(e,"isFinite",(function(){return Ee})),n.d(e,"isNaN",(function(){return De})),n.d(e,"isBoolean",(function(){return Oe})),n.d(e,"isNull",(function(){return Pe})),n.d(e,"isUndefined",(function(){return Ie})),n.d(e,"has",(function(){return Ve})),n.d(e,"identity",(function(){return Fe})),n.d(e,"constant",(function(){return je})),n.d(e,"noop",(function(){return Re})),n.d(e,"property",(function(){return Ke})),n.d(e,"propertyOf",(function(){return qe})),n.d(e,"matcher",(function(){return ze})),n.d(e,"matches",(function(){return ze})),n.d(e,"times",(function(){return Qe})),n.d(e,"random",(function(){return Be})),n.d(e,"now",(function(){return We})),n.d(e,"escape",(function(){return Xe})),n.d(e,"unescape",(function(){return Ze})),n.d(e,"result",(function(){return $e})),n.d(e,"uniqueId",(function(){return tn})),n.d(e,"templateSettings",(function(){return en})),n.d(e,"template",(function(){return un})),n.d(e,"chain",(function(){return Tn})),n.d(e,"mixin",(function(){return cn}));var r="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},i=Array.prototype,o=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=i.push,T=i.slice,s=o.toString,c=o.hasOwnProperty,l=Array.isArray,A=Object.keys,f=Object.create,C=r.isNaN,G=r.isFinite,p=function(){};function h(t){return t instanceof h?t:this instanceof h?void(this._wrapped=t):new h(t)}var d=h.VERSION="1.10.2";function m(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}}function y(t,e,n){return null==t?Fe:ye(t)?m(t,e,n):de(t)&&!he(t)?ze(t):Ke(t)}function v(t,e){return y(t,e,1/0)}function g(t,e,n){return h.iteratee!==v?h.iteratee(t,e):y(t,e,n)}function S(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}}function b(t){if(!de(t))return{};if(f)return f(t);p.prototype=t;var e=new p;return p.prototype=null,e}function x(t){return function(e){return null==e?void 0:e[t]}}function _(t,e){return null!=t&&c.call(t,e)}function w(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}h.iteratee=v;var k=Math.pow(2,53)-1,M=x("length");function N(t){var e=M(t);return"number"==typeof e&&e>=0&&e<=k}function L(t,e,n){var r,i;if(e=m(e,n),N(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=Ut(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t}function E(t,e,n){e=g(e,n);for(var r=!N(t)&&Ut(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=e(t[u],u,t)}return o}function D(t){var e=function(e,n,r,i){var o=!N(e)&&Ut(e),a=(o||e).length,u=t>0?0:a-1;for(i||(r=e[o?o[u]:u],u+=t);u>=0&&u<a;u+=t){var T=o?o[u]:u;r=n(r,e[T],T,e)}return r};return function(t,n,r,i){var o=arguments.length>=3;return e(t,m(n,i,4),r,o)}}var O=D(1),P=D(-1);function I(t,e,n){var r=(N(t)?vt:re)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function V(t,e,n){var r=[];return e=g(e,n),L(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function F(t,e,n){return V(t,jt(g(e)),n)}function j(t,e,n){e=g(e,n);for(var r=!N(t)&&Ut(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0}function R(t,e,n){e=g(e,n);for(var r=!N(t)&&Ut(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1}function K(t,e,n,r){return N(t)||(t=Yt(t)),("number"!=typeof n||r)&&(n=0),xt(t,e,n)>=0}var q=S((function(t,e,n){var r,i;return ye(e)?i=e:he(e)&&(r=e.slice(0,-1),e=e[e.length-1]),E(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=w(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function z(t,e){return E(t,Ke(e))}function Q(t,e){return V(t,ze(e))}function B(t,e){return I(t,ze(e))}function W(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,T=(t=N(t)?t:Yt(t)).length;u<T;u++)null!=(r=t[u])&&r>o&&(o=r);else e=g(e,n),L(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o}function U(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var u=0,T=(t=N(t)?t:Yt(t)).length;u<T;u++)null!=(r=t[u])&&r<o&&(o=r);else e=g(e,n),L(t,(function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)}));return o}function H(t){return Y(t,1/0)}function Y(t,e,n){if(null==e||n)return N(t)||(t=Yt(t)),t[Be(t.length-1)];var r=N(t)?se(t):Yt(t),i=M(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=Be(a,o),T=r[a];r[a]=r[u],r[u]=T}return r.slice(0,e)}function X(t,e,n){var r=0;return e=g(e,n),z(E(t,(function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function Z(t,e){return function(n,r,i){var o=e?[[],[]]:{};return r=g(r,i),L(n,(function(e,i){var a=r(e,i,n);t(o,e,a)})),o}}var $=Z((function(t,e,n){_(t,n)?t[n].push(e):t[n]=[e]})),J=Z((function(t,e,n){t[n]=e})),tt=Z((function(t,e,n){_(t,n)?t[n]++:t[n]=1})),et=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function nt(t){return t?he(t)?T.call(t):ve(t)?t.match(et):N(t)?E(t,Fe):Yt(t):[]}function rt(t){return null==t?0:N(t)?t.length:Ut(t).length}var it=Z((function(t,e,n){t[n?0:1].push(e)}),!0);function ot(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:at(t,t.length-e)}function at(t,e,n){return T.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function ut(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:Tt(t,Math.max(0,t.length-e))}function Tt(t,e,n){return T.call(t,null==e||n?1:e)}function st(t){return V(t,Boolean)}function ct(t,e,n,r){for(var i=(r=r||[]).length,o=0,a=M(t);o<a;o++){var u=t[o];if(N(u)&&(he(u)||me(u)))if(e)for(var T=0,s=u.length;T<s;)r[i++]=u[T++];else ct(u,e,n,r),i=r.length;else n||(r[i++]=u)}return r}function lt(t,e){return ct(t,e,!1)}var At=S((function(t,e){return pt(t,e)}));function ft(t,e,n,r){Oe(e)||(r=n,n=e,e=!1),null!=n&&(n=g(n,r));for(var i=[],o=[],a=0,u=M(t);a<u;a++){var T=t[a],s=n?n(T,a,t):T;e&&!n?(a&&o===s||i.push(T),o=s):n?K(o,s)||(o.push(s),i.push(T)):K(i,T)||i.push(T)}return i}var Ct=S((function(t){return ft(ct(t,!0,!0))}));function Gt(t){for(var e=[],n=arguments.length,r=0,i=M(t);r<i;r++){var o=t[r];if(!K(e,o)){var a;for(a=1;a<n&&K(arguments[a],o);a++);a===n&&e.push(o)}}return e}var pt=S((function(t,e){return e=ct(e,!0,!0),V(t,(function(t){return!K(e,t)}))}));function ht(t){for(var e=t&&W(t,M).length||0,n=Array(e),r=0;r<e;r++)n[r]=z(t,r);return n}var dt=S(ht);function mt(t,e){for(var n={},r=0,i=M(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function yt(t){return function(e,n,r){n=g(n,r);for(var i=M(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}var vt=yt(1),gt=yt(-1);function St(t,e,n,r){for(var i=(n=g(n,r,1))(e),o=0,a=M(t);o<a;){var u=Math.floor((o+a)/2);n(t[u])<i?o=u+1:a=u}return o}function bt(t,e,n){return function(r,i,o){var a=0,u=M(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+u,a):u=o>=0?Math.min(o+1,u):o+u+1;else if(n&&o&&u)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(T.call(r,a,u),De))>=0?o+a:-1;for(o=t>0?a:u-1;o>=0&&o<u;o+=t)if(r[o]===i)return o;return-1}}var xt=bt(1,vt,St),_t=bt(-1,gt);function wt(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i}function kt(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(T.call(t,r,r+=e));return n}function Mt(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=b(t.prototype),a=t.apply(o,i);return de(a)?a:o}var Nt=S((function(t,e,n){if(!ye(t))throw new TypeError("Bind must be called on a function");var r=S((function(i){return Mt(t,r,e,this,n.concat(i))}));return r})),Lt=S((function(t,e){var n=Lt.placeholder,r=function(){for(var i=0,o=e.length,a=Array(o),u=0;u<o;u++)a[u]=e[u]===n?arguments[i++]:e[u];for(;i<arguments.length;)a.push(arguments[i++]);return Mt(t,r,this,this,a)};return r}));Lt.placeholder=h;var Et=S((function(t,e){var n=(e=ct(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Nt(t[r],t)}}));function Dt(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return _(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n}var Ot=S((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Pt=Lt(Ot,h,1);function It(t,e,n){var r,i,o,a,u=0;n||(n={});var T=function(){u=!1===n.leading?0:We(),r=null,a=t.apply(i,o),r||(i=o=null)},s=function(){var s=We();u||!1!==n.leading||(u=s);var c=e-(s-u);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),u=s,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(T,c)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s}function Vt(t,e,n){var r,i,o=function(e,n){r=null,n&&(i=t.apply(e,n))},a=S((function(a){if(r&&clearTimeout(r),n){var u=!r;r=setTimeout(o,e),u&&(i=t.apply(this,a))}else r=Ot(o,e,this,a);return i}));return a.cancel=function(){clearTimeout(r),r=null},a}function Ft(t,e){return Lt(e,t)}function jt(t){return function(){return!t.apply(this,arguments)}}function Rt(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function Kt(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function qt(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}var zt=Lt(qt,2),Qt=!{toString:null}.propertyIsEnumerable("toString"),Bt=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function Wt(t,e){var n=Bt.length,r=t.constructor,i=ye(r)&&r.prototype||o,a="constructor";for(_(t,a)&&!K(e,a)&&e.push(a);n--;)(a=Bt[n])in t&&t[a]!==i[a]&&!K(e,a)&&e.push(a)}function Ut(t){if(!de(t))return[];if(A)return A(t);var e=[];for(var n in t)_(t,n)&&e.push(n);return Qt&&Wt(t,e),e}function Ht(t){if(!de(t))return[];var e=[];for(var n in t)e.push(n);return Qt&&Wt(t,e),e}function Yt(t){for(var e=Ut(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r}function Xt(t,e,n){e=g(e,n);for(var r=Ut(t),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=e(t[u],u,t)}return o}function Zt(t){for(var e=Ut(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r}function $t(t){for(var e={},n=Ut(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e}function Jt(t){var e=[];for(var n in t)ye(t[n])&&e.push(n);return e.sort()}function te(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),u=a.length,T=0;T<u;T++){var s=a[T];e&&void 0!==n[s]||(n[s]=o[s])}return n}}var ee=te(Ht),ne=te(Ut);function re(t,e,n){e=g(e,n);for(var r,i=Ut(t),o=0,a=i.length;o<a;o++)if(e(t[r=i[o]],r,t))return r}function ie(t,e,n){return e in n}var oe=S((function(t,e){var n={},r=e[0];if(null==t)return n;ye(r)?(e.length>1&&(r=m(r,e[1])),e=Ht(t)):(r=ie,e=ct(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];r(u,a,t)&&(n[a]=u)}return n})),ae=S((function(t,e){var n,r=e[0];return ye(r)?(r=jt(r),e.length>1&&(n=e[1])):(e=E(ct(e,!1,!1),String),r=function(t,n){return!K(e,n)}),oe(t,r,n)})),ue=te(Ht,!0);function Te(t,e){var n=b(t);return e&&ne(n,e),n}function se(t){return de(t)?he(t)?t.slice():ee({},t):t}function ce(t,e){return e(t),t}function le(t,e){var n=Ut(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0}function Ae(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&function(t,e,n,r){t instanceof h&&(t=t._wrapped);e instanceof h&&(e=e._wrapped);var i=s.call(t);if(i!==s.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return a.valueOf.call(t)===a.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var u=t.constructor,T=e.constructor;if(u!==T&&!(ye(u)&&u instanceof u&&ye(T)&&T instanceof T)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];var c=(n=n||[]).length;for(;c--;)if(n[c]===t)return r[c]===e;if(n.push(t),r.push(e),o){if((c=t.length)!==e.length)return!1;for(;c--;)if(!Ae(t[c],e[c],n,r))return!1}else{var l,A=Ut(t);if(c=A.length,Ut(e).length!==c)return!1;for(;c--;)if(l=A[c],!_(e,l)||!Ae(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0}(t,e,n,r)}function fe(t,e){return Ae(t,e)}function Ce(t){return null==t||(N(t)&&(he(t)||ve(t)||me(t))?0===t.length:0===Ut(t).length)}function Ge(t){return!(!t||1!==t.nodeType)}function pe(t){return function(e){return s.call(e)==="[object "+t+"]"}}var he=l||pe("Array");function de(t){var e=typeof t;return"function"===e||"object"===e&&!!t}var me=pe("Arguments"),ye=pe("Function"),ve=pe("String"),ge=pe("Number"),Se=pe("Date"),be=pe("RegExp"),xe=pe("Error"),_e=pe("Symbol"),we=pe("Map"),ke=pe("WeakMap"),Me=pe("Set"),Ne=pe("WeakSet");!function(){me(arguments)||(me=function(t){return _(t,"callee")})}();var Le=r.document&&r.document.childNodes;function Ee(t){return!_e(t)&&G(t)&&!C(parseFloat(t))}function De(t){return ge(t)&&C(t)}function Oe(t){return!0===t||!1===t||"[object Boolean]"===s.call(t)}function Pe(t){return null===t}function Ie(t){return void 0===t}function Ve(t,e){if(!he(e))return _(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!c.call(t,i))return!1;t=t[i]}return!!n}function Fe(t){return t}function je(t){return function(){return t}}function Re(){}function Ke(t){return he(t)?function(e){return w(e,t)}:x(t)}function qe(t){return null==t?function(){}:function(e){return he(e)?w(t,e):t[e]}}function ze(t){return t=ne({},t),function(e){return le(e,t)}}function Qe(t,e,n){var r=Array(Math.max(0,t));e=m(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r}function Be(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}"object"!=typeof Int8Array&&"function"!=typeof Le&&(ye=function(t){return"function"==typeof t||!1});var We=Date.now||function(){return(new Date).getTime()},Ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},He=$t(Ue);function Ye(t){var e=function(e){return t[e]},n="(?:"+Ut(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}}var Xe=Ye(Ue),Ze=Ye(He);function $e(t,e,n){he(e)||(e=[e]);var r=e.length;if(!r)return ye(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=ye(o)?o.call(t):o}return t}var Je=0;function tn(t){var e=++Je+"";return t?t+e:e}var en=h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},nn=/(.)^/,rn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},on=/\\|'|\r|\n|\u2028|\u2029/g,an=function(t){return"\\"+rn[t]};function un(t,e,n){!e&&n&&(e=n),e=ue({},e,h.templateSettings);var r,i=RegExp([(e.escape||nn).source,(e.interpolate||nn).source,(e.evaluate||nn).source].join("|")+"|$","g"),o=0,a="__p+='";t.replace(i,(function(e,n,r,i,u){return a+=t.slice(o,u).replace(on,an),o=u+e.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),e})),a+="';\n",e.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(e.variable||"obj","_",a)}catch(t){throw t.source=a,t}var u=function(t){return r.call(this,t,h)},T=e.variable||"obj";return u.source="function("+T+"){\n"+a+"}",u}function Tn(t){var e=h(t);return e._chain=!0,e}function sn(t,e){return t._chain?h(e).chain():e}function cn(t){return L(Jt(t),(function(e){var n=h[e]=t[e];h.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),sn(this,n.apply(h,t))}})),h}L(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=i[t];h.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],sn(this,n)}})),L(["concat","join","slice"],(function(t){var e=i[t];h.prototype[t]=function(){return sn(this,e.apply(this._wrapped,arguments))}})),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)}}.call(this,n(10))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return m}));var r=n(15),i=n.n(r),o=n(16),a=n.n(o),u=n(7),T=n.n(u),s=n(17),c=n(30),l=n(8),A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=i()(s.a),C=a()(c.a,f);var G=void 0,p=void 0;function h(e){var n=e||t&&t.navigator&&t.navigator.userAgent;return p&&n===G||(p="all"===n?{prefix:f,prefixedKeyframes:"keyframes"}:new C({userAgent:n}),G=n),p}function d(t){return h(t).prefixedKeyframes||"keyframes"}function m(t,e){var n=function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return Array.isArray(r)?r=r.join(";"+n+":"):r&&"object"===(void 0===r?"undefined":A(r))&&"function"==typeof r.toString&&(r=r.toString()),e[n]=r,e}),{})}(t);return function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return Array.isArray(r)&&(r=T.a.canUseDOM?r[r.length-1].toString():r.join(";"+Object(l.a)(n)+":")),e[n]=r,e}),{})}(h(e).prefix(n))}}).call(this,n(10))},function(t,e,n){var r;
  /*!
    Copyright (c) 2015 Jed Watson.
    Based on code that is Copyright 2013-2015, Facebook, Inc.
    All rights reserved.
  */!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=/([a-z])?([A-Z])/g,i=function(t,e,n){return(e||"")+"-"+n.toLowerCase()},o=function(t){return t.replace(r,i)};e.b=function(t){return Object.keys(t).reduce((function(e,n){var r=o(n);return/^ms-/.test(r)&&(r="-"+r),e[r]=t[n],e}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.exports=e.default},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){for(var o=0,a=t.length;o<a;++o){var u=t[o](e,n,r,i);if(u)return u}},t.exports=e.default},function(t,e,n){"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(Array.isArray(e))for(var n=0,i=e.length;n<i;++n)r(t,e[n]);else r(t,e)},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t instanceof Object&&!Array.isArray(t)},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t)};var r,i=n(52),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.prefixMap,n=t.plugins;return function t(u){for(var T in u){var s=u[T];if((0,a.default)(s))u[T]=t(s);else if(Array.isArray(s)){for(var c=[],l=0,A=s.length;l<A;++l){var f=(0,i.default)(n,T,s[l],u,e);(0,o.default)(c,f||s[l])}c.length>0&&(u[T]=c)}else{var C=(0,i.default)(n,T,s,u,e);C&&(u[T]=C),u=(0,r.default)(e,T,u)}}return u}};var r=u(n(47)),i=u(n(11)),o=u(n(12)),a=u(n(13));function u(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(t){var e=t.prefixMap,n=t.plugins,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r="undefined"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||r,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,i.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,o.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var a=this._browserInfo.browserName&&e[this._browserInfo.browserName];if(a){for(var u in this._requiresPrefix={},a)a[u]>=this._browserInfo.browserVersion&&(this._requiresPrefix[u]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return r(t,[{key:"prefix",value:function(t){return this._useFallback?c(t):this._hasPropsRequiringPrefix?this._prefixStyle(t):t}},{key:"_prefixStyle",value:function(t){for(var e in t){var r=t[e];if((0,T.default)(r))t[e]=this.prefix(r);else if(Array.isArray(r)){for(var i=[],o=0,c=r.length;o<c;++o){var l=(0,s.default)(n,e,r[o],t,this._metaData);(0,u.default)(i,l||r[o])}i.length>0&&(t[e]=i)}else{var A=(0,s.default)(n,e,r,t,this._metaData);A&&(t[e]=A),this._requiresPrefix.hasOwnProperty(e)&&(t[this._browserInfo.jsPrefix+(0,a.default)(e)]=r,this._keepUnprefixed||delete t[e])}}return t}}],[{key:"prefixAll",value:function(t){return c(t)}}]),t}()};var i=c(n(48)),o=c(n(51)),a=c(n(9)),u=c(n(12)),T=c(n(13)),s=c(n(11));function c(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},function(t,e,n){"use strict";var r=n(18),i=n.n(r),o=n(19),a=n.n(o),u=n(20),T=n.n(u),s=n(21),c=n.n(s),l=n(22),A=n.n(l),f=n(23),C=n.n(f),G=n(24),p=n.n(G),h=n(25),d=n.n(h),m=n(26),y=n.n(m),v=n(27),g=n.n(v),S=n(28),b=n.n(S),x=n(29),_=n.n(x),w=["Webkit"],k=["Moz"],M=["ms"],N=["Webkit","Moz"],L=["Webkit","ms"],E=["Webkit","Moz","ms"];e.a={plugins:[i.a,a.a,T.a,c.a,A.a,C.a,p.a,d.a,y.a,g.a,b.a,_.a],prefixMap:{transform:L,transformOrigin:L,transformOriginX:L,transformOriginY:L,backfaceVisibility:w,perspective:w,perspectiveOrigin:w,transformStyle:w,transformOriginZ:w,animation:w,animationDelay:w,animationDirection:w,animationFillMode:w,animationDuration:w,animationIterationCount:w,animationName:w,animationPlayState:w,animationTimingFunction:w,appearance:N,userSelect:E,fontKerning:w,textEmphasisPosition:w,textEmphasis:w,textEmphasisStyle:w,textEmphasisColor:w,boxDecorationBreak:w,clipPath:w,maskImage:w,maskMode:w,maskRepeat:w,maskPosition:w,maskClip:w,maskOrigin:w,maskSize:w,maskComposite:w,mask:w,maskBorderSource:w,maskBorderMode:w,maskBorderSlice:w,maskBorderWidth:w,maskBorderOutset:w,maskBorderRepeat:w,maskBorder:w,maskType:w,textDecorationStyle:N,textDecorationSkip:N,textDecorationLine:N,textDecorationColor:N,filter:w,fontFeatureSettings:N,breakAfter:E,breakBefore:E,breakInside:E,columnCount:N,columnFill:N,columnGap:N,columnRule:N,columnRuleColor:N,columnRuleStyle:N,columnRuleWidth:N,columns:N,columnSpan:N,columnWidth:N,writingMode:L,flex:L,flexBasis:w,flexDirection:L,flexGrow:w,flexFlow:L,flexShrink:w,flexWrap:L,alignContent:w,alignItems:w,alignSelf:w,justifyContent:w,order:w,transitionDelay:w,transitionDuration:w,transitionProperty:w,transitionTimingFunction:w,backdropFilter:w,scrollSnapType:L,scrollSnapPointsX:L,scrollSnapPointsY:L,scrollSnapDestination:L,scrollSnapCoordinate:L,shapeImageThreshold:w,shapeImageMargin:w,shapeImageOutside:w,hyphens:E,flowInto:L,flowFrom:L,regionFragment:L,boxSizing:k,textAlignLast:k,tabSize:k,wrapFlow:M,wrapThrough:M,wrapMargin:M,touchAction:M,gridTemplateColumns:M,gridTemplateRows:M,gridTemplateAreas:M,gridTemplate:M,gridAutoColumns:M,gridAutoRows:M,gridAutoFlow:M,grid:M,gridRowStart:M,gridColumnStart:M,gridRowEnd:M,gridRow:M,gridColumn:M,gridColumnEnd:M,gridColumnGap:M,gridRowGap:M,gridArea:M,gridGap:M,textSizeAdjust:L,borderImage:w,borderImageOutset:w,borderImageRepeat:w,borderImageSlice:w,borderImageSource:w,borderImageWidth:w}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&e.indexOf("calc(")>-1)return a.map((function(t){return e.replace(/calc\(/g,t+"calc(")}))};var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};var a=["-webkit-","-moz-",""];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&e.indexOf("cross-fade(")>-1)return a.map((function(t){return e.replace(/cross-fade\(/g,t+"cross-fade(")}))};var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};var a=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("cursor"===t&&i.hasOwnProperty(e))return r.map((function(t){return t+e}))};var r=["-webkit-","-moz-",""],i={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&e.indexOf("filter(")>-1)return a.map((function(t){return e.replace(/filter\(/g,t+"filter(")}))};var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};var a=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("display"===t&&r.hasOwnProperty(e))return r[e]};var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){i.hasOwnProperty(t)&&(n[i[t]]=r[e]||e)};var r={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal");i.hasOwnProperty(t)&&(n[i[t]]=r[e]||e)};var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},i={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&u.test(e))return a.map((function(t){return e.replace(u,(function(e){return t+e}))}))};var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};var a=["-webkit-","-moz-",""],u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,o.default)(e)&&e.indexOf("image-set(")>-1)return a.map((function(t){return e.replace(/image-set\(/g,t+"image-set(")}))};var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};var a=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("position"===t&&"sticky"===e)return["-webkit-sticky","sticky"]},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(i.hasOwnProperty(t)&&o.hasOwnProperty(e))return r.map((function(t){return t+e}))};var r=["-webkit-","-moz-",""],i={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,a){if("string"==typeof e&&u.hasOwnProperty(t)){var s=function(t,e){if((0,i.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var u=n[o],s=[u];for(var c in e){var l=(0,r.default)(c);if(u.indexOf(l)>-1&&"order"!==l)for(var A=e[c],f=0,C=A.length;f<C;++f)s.unshift(u.replace(l,T[A[f]]+l))}n[o]=s.join(",")}return n.join(",")}(e,a),c=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-moz-|-ms-/.test(t)})).join(",");if(t.indexOf("Webkit")>-1)return c;var l=s.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-webkit-|-ms-/.test(t)})).join(",");return t.indexOf("Moz")>-1?l:(n["Webkit"+(0,o.default)(t)]=c,n["Moz"+(0,o.default)(t)]=l,s)}};var r=a(n(14)),i=a(n(4)),o=a(n(9));function a(t){return t&&t.__esModule?t:{default:t}}var u={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},T={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};t.exports=e.default},function(t,e,n){"use strict";var r=n(31),i=n.n(r),o=n(32),a=n.n(o),u=n(33),T=n.n(u),s=n(34),c=n.n(s),l=n(35),A=n.n(l),f=n(36),C=n.n(f),G=n(37),p=n.n(G),h=n(38),d=n.n(h),m=n(39),y=n.n(m),v=n(40),g=n.n(v),S=n(41),b=n.n(S),x=n(42),_=n.n(x);e.a={plugins:[i.a,a.a,T.a,c.a,A.a,C.a,p.a,d.a,y.a,g.a,b.a,_.a],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,a=r.browserVersion,u=r.cssPrefix,T=r.keepUnprefixed;if("string"==typeof e&&e.indexOf("calc(")>-1&&("firefox"===i&&a<15||"chrome"===i&&a<25||"safari"===i&&a<6.1||"ios_saf"===i&&a<7))return(0,o.default)(e.replace(/calc\(/g,u+"calc("),e,T)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,a=r.browserVersion,u=r.cssPrefix,T=r.keepUnprefixed;if("string"==typeof e&&e.indexOf("cross-fade(")>-1&&("chrome"===i||"opera"===i||"and_chr"===i||("ios_saf"===i||"safari"===i)&&a<10))return(0,o.default)(e.replace(/cross-fade\(/g,u+"cross-fade("),e,T)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,T=r.browserVersion,s=r.cssPrefix,c=r.keepUnprefixed;if("cursor"===t&&a[e]&&("firefox"===i||"chrome"===i||"safari"===i||"opera"===i))return(0,o.default)(s+e,e,c);if("cursor"===t&&u[e]&&("firefox"===i&&T<24||"chrome"===i&&T<37||"safari"===i&&T<9||"opera"===i&&T<24))return(0,o.default)(s+e,e,c)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a={grab:!0,grabbing:!0},u={"zoom-in":!0,"zoom-out":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,a=r.browserVersion,u=r.cssPrefix,T=r.keepUnprefixed;if("string"==typeof e&&e.indexOf("filter(")>-1&&("ios_saf"===i||"safari"===i&&a<9.1))return(0,o.default)(e.replace(/filter\(/g,u+"filter("),e,T)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,u=r.browserVersion,T=r.cssPrefix,s=r.keepUnprefixed;if("display"===t&&a[e]&&("chrome"===i&&u<29&&u>20||("safari"===i||"ios_saf"===i)&&u<9&&u>6||"opera"===i&&(15===u||16===u)))return(0,o.default)(T+e,e,s)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a={flex:!0,"inline-flex":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,T=r.browserVersion,s=r.cssPrefix,c=r.keepUnprefixed,l=r.requiresPrefix;if((u.hasOwnProperty(t)||"display"===t&&"string"==typeof e&&e.indexOf("flex")>-1)&&("ie_mob"===i||"ie"===i)&&10===T){if(delete l[t],c||Array.isArray(n[t])||delete n[t],"display"===t&&a.hasOwnProperty(e))return(0,o.default)(s+a[e],e,c);u.hasOwnProperty(t)&&(n[u[t]]=a[e]||e)}};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},u={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,s=r.browserVersion,c=r.cssPrefix,l=r.keepUnprefixed,A=r.requiresPrefix;if((T.indexOf(t)>-1||"display"===t&&"string"==typeof e&&e.indexOf("flex")>-1)&&("firefox"===i&&s<22||"chrome"===i&&s<21||("safari"===i||"ios_saf"===i)&&s<=6.1||"android"===i&&s<4.4||"and_uc"===i)){if(delete A[t],l||Array.isArray(n[t])||delete n[t],"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),"display"===t&&a.hasOwnProperty(e))return(0,o.default)(c+a[e],e,l);u.hasOwnProperty(t)&&(n[u[t]]=a[e]||e)}};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},u={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},T=Object.keys(u).concat(["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"]);t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,u=r.browserVersion,T=r.cssPrefix,s=r.keepUnprefixed;if("string"==typeof e&&a.test(e)&&("firefox"===i&&u<16||"chrome"===i&&u<26||("safari"===i||"ios_saf"===i)&&u<7||("opera"===i||"op_mini"===i)&&u<12.1||"android"===i&&u<4.4||"and_uc"===i))return(0,o.default)(e.replace(a,(function(t){return T+t})),e,s)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,a=r.cssPrefix,u=r.keepUnprefixed;if("string"==typeof e&&e.indexOf("image-set(")>-1&&("chrome"===i||"opera"===i||"and_chr"===i||"and_uc"===i||"ios_saf"===i||"safari"===i))return(0,o.default)(e.replace(/image-set\(/g,a+"image-set("),e,u)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.browserName,a=r.cssPrefix,u=r.keepUnprefixed;if("position"===t&&"sticky"===e&&("safari"===i||"ios_saf"===i))return(0,o.default)(a+e,e,u)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.cssPrefix,T=r.keepUnprefixed;if(a.hasOwnProperty(t)&&u.hasOwnProperty(e))return(0,o.default)(i+e,e,T)};var r,i=n(3),o=(r=i)&&r.__esModule?r:{default:r};var a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},u={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=r.cssPrefix,T=r.keepUnprefixed,s=r.requiresPrefix;if("string"==typeof e&&a.hasOwnProperty(t)){u||(u=Object.keys(s).map((function(t){return(0,o.default)(t)})));var c=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return u.forEach((function(t){c.forEach((function(e,n){e.indexOf(t)>-1&&"order"!==t&&(c[n]=e.replace(t,i+t)+(T?","+e:""))}))})),c.join(",")}};var r,i=n(14),o=(r=i)&&r.__esModule?r:{default:r};var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u=void 0;t.exports=e.default},function(t,e,n){"use strict";
  /** @license React v16.13.1
   * react.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var r=n(44),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,T=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,l=i?Symbol.for("react.context"):60110,A=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,C=i?Symbol.for("react.memo"):60115,G=i?Symbol.for("react.lazy"):60116,p="function"==typeof Symbol&&Symbol.iterator;function h(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||d}function v(){}function g(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||d}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(h(85));this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},v.prototype=y.prototype;var S=g.prototype=new v;S.constructor=g,r(S,y.prototype),S.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function w(t,e,n){var r,i={},a=null,u=null;if(null!=e)for(r in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(a=""+e.key),e)x.call(e,r)&&!_.hasOwnProperty(r)&&(i[r]=e[r]);var T=arguments.length-2;if(1===T)i.children=n;else if(1<T){for(var s=Array(T),c=0;c<T;c++)s[c]=arguments[c+2];i.children=s}if(t&&t.defaultProps)for(r in T=t.defaultProps)void 0===i[r]&&(i[r]=T[r]);return{$$typeof:o,type:t,key:a,ref:u,props:i,_owner:b.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var M=/\/+/g,N=[];function L(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function E(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var T=!1;if(null===e)T=!0;else switch(u){case"string":case"number":T=!0;break;case"object":switch(e.$$typeof){case o:case a:T=!0}}if(T)return r(i,e,""===n?"."+O(e,0):n),1;if(T=0,n=""===n?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=n+O(u=e[s],s);T+=t(u,c,r,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=p&&e[p]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),s=0;!(u=e.next()).done;)T+=t(u=u.value,c=n+O(u,s++),r,i);else if("object"===u)throw r=""+e,Error(h(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return T}(t,"",e,n)}function O(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function P(t,e){t.func.call(t.context,e,t.count++)}function I(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?V(t,r,n,(function(t){return t})):null!=t&&(k(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(M,"$&/")+"/")+n)),r.push(t))}function V(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(M,"$&/")+"/"),D(t,I,e=L(e,o,r,i)),E(e)}var F={current:null};function j(){var t=F.current;if(null===t)throw Error(h(321));return t}var R={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return V(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;D(t,P,e=L(null,null,e,n)),E(e)},count:function(t){return D(t,(function(){return null}),null)},toArray:function(t){var e=[];return V(t,e,null,(function(t){return t})),e},only:function(t){if(!k(t))throw Error(h(143));return t}},e.Component=y,e.Fragment=u,e.Profiler=s,e.PureComponent=g,e.StrictMode=T,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,e.cloneElement=function(t,e,n){if(null==t)throw Error(h(267,t));var i=r({},t.props),a=t.key,u=t.ref,T=t._owner;if(null!=e){if(void 0!==e.ref&&(u=e.ref,T=b.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)x.call(e,c)&&!_.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==s?s[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}return{$$typeof:o,type:t.type,key:a,ref:u,props:i,_owner:T}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:l,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=w,e.createFactory=function(t){var e=w.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:A,render:t}},e.isValidElement=k,e.lazy=function(t){return{$$typeof:G,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:C,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return j().useCallback(t,e)},e.useContext=function(t,e){return j().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return j().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return j().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return j().useLayoutEffect(t,e)},e.useMemo=function(t,e){return j().useMemo(t,e)},e.useReducer=function(t,e,n){return j().useReducer(t,e,n)},e.useRef=function(t){return j().useRef(t)},e.useState=function(t){return j().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,T=a(t),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))i.call(n,c)&&(T[c]=n[c]);if(r){u=r(n);for(var l=0;l<u.length;l++)o.call(n,u[l])&&(T[u[l]]=n[u[l]])}}return T}},function(t,e,n){"use strict";var r=n(46);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t.hasOwnProperty(e)){for(var r={},i=t[e],a=(0,o.default)(e),u=Object.keys(n),T=0;T<u.length;T++){var s=u[T];if(s===e)for(var c=0;c<i.length;c++)r[i[c]+a]=n[e];r[s]=n[s]}return r}return n};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=o.default._detect(t);e.yandexbrowser&&(e=o.default._detect(t.replace(/YaBrowser\/[0-9.]*/,"")));for(var n in a)if(e.hasOwnProperty(n)){var r=a[n];e.jsPrefix=r,e.cssPrefix="-"+r.toLowerCase()+"-";break}e.browserName=function(t){if(t.firefox)return"firefox";if(t.mobile||t.tablet){if(t.ios)return"ios_saf";if(t.android)return"android";if(t.opera)return"op_mini"}for(var e in u)if(t.hasOwnProperty(e))return u[e]}(e),e.version?e.browserVersion=parseFloat(e.version):e.browserVersion=parseInt(parseFloat(e.osversion),10);e.osVersion=parseFloat(e.osversion),"ios_saf"===e.browserName&&e.browserVersion>e.osVersion&&(e.browserVersion=e.osVersion);"android"===e.browserName&&e.chrome&&e.browserVersion>37&&(e.browserName="and_chr");"android"===e.browserName&&e.osVersion<5&&(e.browserVersion=e.osVersion);"android"===e.browserName&&e.samsungBrowser&&(e.browserName="and_chr",e.browserVersion=44);return e};var r,i=n(49),o=(r=i)&&r.__esModule?r:{default:r};var a={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},u={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};t.exports=e.default},function(t,e,n){var r;r=function(){var t=!0;function e(e){function n(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function r(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var i,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),u=!/like android/i.test(e)&&/android/i.test(e),T=/nexus\s*[0-6]\s*/i.test(e),s=!T&&/nexus\s*[0-9]+/i.test(e),c=/CrOS/.test(e),l=/silk/i.test(e),A=/sailfish/i.test(e),f=/tizen/i.test(e),C=/(web|hpw)(o|0)s/i.test(e),G=/windows phone/i.test(e),p=(/SamsungBrowser/i.test(e),!G&&/windows/i.test(e)),h=!a&&!l&&/macintosh/i.test(e),d=!u&&!A&&!f&&!C&&/linux/i.test(e),m=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=n(/version\/(\d+(\.\d+)?)/i),v=/tablet/i.test(e)&&!/tablet pc/i.test(e),g=!v&&/[^-]mobi/i.test(e),S=/xbox/i.test(e);/opera/i.test(e)?i={name:"Opera",opera:t,version:y||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?i={name:"Opera",opera:t,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(e)?i={name:"Samsung Internet for Android",samsungBrowser:t,version:y||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?i={name:"NAVER Whale browser",whale:t,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?i={name:"MZ Browser",mzbrowser:t,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?i={name:"Opera Coast",coast:t,version:y||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?i={name:"Focus",focus:t,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?i={name:"Yandex Browser",yandexbrowser:t,version:y||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?i={name:"UC Browser",ucbrowser:t,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?i={name:"Maxthon",maxthon:t,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?i={name:"Epiphany",epiphany:t,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?i={name:"Puffin",puffin:t,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?i={name:"Sleipnir",sleipnir:t,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?i={name:"K-Meleon",kMeleon:t,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:G?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},m?(i.msedge=t,i.version=m):(i.msie=t,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?i={name:"Internet Explorer",msie:t,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?i={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?i={name:"Microsoft Edge",msedge:t,version:m}:/vivaldi/i.test(e)?i={name:"Vivaldi",vivaldi:t,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||y}:A?i={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?i={name:"SeaMonkey",seamonkey:t,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(i={name:"Firefox",firefox:t,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(i.firefoxos=t,i.osname="Firefox OS")):l?i={name:"Amazon Silk",silk:t,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?i={name:"PhantomJS",phantom:t,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?i={name:"SlimerJS",slimer:t,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:y||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:C?(i={name:"WebOS",osname:"WebOS",webos:t,version:y||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(i.touchpad=t)):/bada/i.test(e)?i={name:"Bada",osname:"Bada",bada:t,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:f?i={name:"Tizen",osname:"Tizen",tizen:t,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(e)?i={name:"QupZilla",qupzilla:t,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(e)?i={name:"Chromium",chromium:t,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(e)?i={name:"Chrome",chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:u?i={name:"Android",version:y}:/safari|applewebkit/i.test(e)?(i={name:"Safari",safari:t},y&&(i.version=y)):a?(i={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},y&&(i.version=y)):i=/googlebot/i.test(e)?{name:"Googlebot",googlebot:t,version:n(/googlebot\/(\d+(\.\d+))/i)||y}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(i.name=i.name||"Blink",i.blink=t):(i.name=i.name||"Webkit",i.webkit=t),!i.version&&y&&(i.version=y)):!i.opera&&/gecko\//i.test(e)&&(i.name=i.name||"Gecko",i.gecko=t,i.version=i.version||n(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!u&&!i.silk?!i.windowsphone&&a?(i[a]=t,i.ios=t,i.osname="iOS"):h?(i.mac=t,i.osname="macOS"):S?(i.xbox=t,i.osname="Xbox"):p?(i.windows=t,i.osname="Windows"):d&&(i.linux=t,i.osname="Linux"):(i.android=t,i.osname="Android");var b="";i.windows?b=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?b=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?b=(b=n(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):a?b=(b=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):u?b=n(/android[ \/-](\d+(\.\d+)*)/i):i.webos?b=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?b=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?b=n(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(b=n(/tizen[\/\s](\d+(\.\d+)*)/i)),b&&(i.osversion=b);var x=!i.windows&&b.split(".")[0];return v||s||"ipad"==a||u&&(3==x||x>=4&&!g)||i.silk?i.tablet=t:(g||"iphone"==a||"ipod"==a||u||T||i.blackberry||i.webos||i.bada)&&(i.mobile=t),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===o([i.version,"1.0"])||i.mzbrowser&&1===o([i.version,"6.0"])||i.focus&&1===o([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=t:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=t:i.x=t,i}var n=e("undefined"!=typeof navigator&&navigator.userAgent||"");function r(t){return t.split(".").length}function i(t,e){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n++)r.push(e(t[n]));return r}function o(t){for(var e=Math.max(r(t[0]),r(t[1])),n=i(t,(function(t){var n=e-r(t);return i((t+=new Array(n+1).join(".0")).split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));--e>=0;){if(n[0][e]>n[1][e])return 1;if(n[0][e]!==n[1][e])return-1;if(0===e)return 0}}function a(t,r,i){var a=n;"string"==typeof r&&(i=r,r=void 0),void 0===r&&(r=!1),i&&(a=e(i));var u=""+a.version;for(var T in t)if(t.hasOwnProperty(T)&&a[T]){if("string"!=typeof t[T])throw new Error("Browser version in the minVersion map should be a string: "+T+": "+String(t));return o([u,t[T]])<0}return r}return n.test=function(t){for(var e=0;e<t.length;++e){var r=t[e];if("string"==typeof r&&r in n)return!0}return!1},n.isUnsupportedBrowser=a,n.compareVersions=o,n.check=function(t,e,n){return!a(t,e,n)},n._detect=e,n.detect=e,n},t.exports?t.exports=r():n(50)("bowser",r)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if("chrome"===t&&e<43||("safari"===t||"ios_saf"===t)&&e<9||"opera"===t&&e<30||"android"===t&&e<=4.4||"and_uc"===t)return n+"keyframes";return"keyframes"},t.exports=e.default},function(t,e,n){"use strict";n.r(e);var r=/[A-Z]/g,i=/^ms-/,o={};function a(t){return"-"+t.toLowerCase()}e.default=function(t){if(o.hasOwnProperty(t))return o[t];var e=t.replace(r,a);return o[t]=i.test(e)?"-"+e:e}},function(t){t.exports=JSON.parse('{"name":"ECM33","chromStart":393123,"chromEnd":394742,"blockStarts":[0,388],"blockSizes":[58,1231],"dnaLength":1620,"proteinLength":430,"strand":"+","variantDataDna":[{"start":264,"variant_type":"Deletion","score":1,"end":266},{"snpType":"Synonymous","start":760,"variant_type":"SNP","score":2,"end":761},{"snpType":"Nonsynonymous","start":1477,"variant_type":"SNP","score":2,"end":1478},{"snpType":"Intron","start":551,"variant_type":"SNP","score":2,"end":552},{"snpType":"Synonymous","start":1438,"variant_type":"SNP","score":4,"end":1439},{"snpType":"Synonymous","start":1492,"variant_type":"SNP","score":4,"end":1493},{"snpType":"Intron","start":569,"variant_type":"SNP","score":3,"end":570},{"snpType":"Synonymous","start":1033,"variant_type":"SNP","score":1,"end":1034},{"snpType":"Nonsynonymous","start":573,"variant_type":"SNP","score":1,"end":574},{"snpType":"Nonsynonymous","start":1788,"variant_type":"SNP","score":4,"end":1789},{"snpType":"Nonsynonymous","start":581,"variant_type":"SNP","score":3,"end":582},{"snpType":"Synonymous","start":1009,"variant_type":"SNP","score":1,"end":1010},{"snpType":"Nonsynonymous","start":666,"variant_type":"SNP","score":1,"end":667},{"snpType":"Nonsynonymous","start":1680,"variant_type":"SNP","score":1,"end":1681},{"start":410,"variant_type":"Deletion","score":3,"end":411},{"snpType":"Intron","start":402,"variant_type":"SNP","score":2,"end":403},{"snpType":"Nonsynonymous","start":1523,"variant_type":"SNP","score":2,"end":1524},{"snpType":"Intron","start":331,"variant_type":"SNP","score":2,"end":332},{"snpType":"Synonymous","start":770,"variant_type":"SNP","score":3,"end":771},{"snpType":"Intron","start":299,"variant_type":"SNP","score":1,"end":300},{"snpType":"Nonsynonymous","start":242,"variant_type":"SNP","score":1,"end":243},{"snpType":"Intron","start":253,"variant_type":"SNP","score":3,"end":254},{"start":1,"variant_type":"Insertion","score":8,"end":185}],"alignedDnaSequences":[{"strain_id":1,"strain_link":"/strain/S288C/overview","name":"S288C","sequence":"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":8,"strain_link":"/strain/X2180-1A/overview","name":"X2180-1A","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":12,"strain_link":"/strain/SEY6210/overview","name":"SEY6210","sequence":"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":2,"strain_link":"/strain/W303/overview","name":"W303","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":11,"strain_link":"/strain/JK9-3d/overview","name":"JK9-3d","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":3,"strain_link":"/strain/FL100/overview","name":"FL100","sequence":"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTCTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTAGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCTAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAGCGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGCCGTTGCCTTACTATAA"},{"strain_id":4,"strain_link":"/strain/CENPK/overview","name":"CEN.PK","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":7,"strain_link":"/strain/D273-10B/overview","name":"D273-10B","sequence":"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":5,"strain_link":"/strain/Sigma1278b/overview","name":"Sigma1278b","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACATTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAAAAAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAGCAGCTAACTCAACTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTTTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTGGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCCAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGGCGTTGCCTTACTATAA"},{"strain_id":13,"strain_link":"/strain/RM11-1a/overview","name":"RM11-1a","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACTTTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCACTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCAAAAAAAA-AAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACATTACTTTTCTTTATCTAAACAGCTAACTCATCTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAATTCCAGTTCTCTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTAGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAAATTCGACTCTTCTTCTAGTAACTTCTCCTGTAACGCTTTGAAGAAGATGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGCCGTTGCCTTACTATAA"},{"strain_id":6,"strain_link":"/strain/SK1/overview","name":"SK1","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTTGTATGTACACTTTCTCCTTTT--TTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCCCAAATCTCGAGTAGATTCGTGGTCCTCTTCATTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCGAAAAAAA-AAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACACTACTTTTCTTTATCTAAACAGTTAACTCATCTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTACTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAACTCCAGTTCTCTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATACCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTAGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAACTTCGACTCTTCTTCTAGTAACTTCTCCTGTAACGCTTTGAAGAAGTTGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGCCGTTGCCTTACTATAA"},{"strain_id":9,"strain_link":"/strain/Y55/overview","name":"Y55","sequence":"AGAACATCATCTTTGAGTACTTCGGCCACTTTTAGAAAAGAAATTAAATAAAAGAGTTAATCGTTCATTCGCTTCTACACAGTTTAATCTTTTCCATTTTTCTTTCAACAAGTCCCTTTGAGCTATCAAGAATACGTTTATTTGACTTTTAAAGATCTAGTTTTAATTTTACTATTATTCCGCAATGCAATTCAAGAACGCTTTGACTGCTACTGCTATTCTAAGTGCCTCCGCTCTAGCTGGTATGTACACTTTCTCCTTTTTTTTCATCTTTTTTTCTTTATTTGCCTCTTTCCTCACAAATCTCGAGTAGATTCGTGGTCCTCTTCACTCTTTTCTTTTTTCTTTGTCGATTACTGGGCTTTTTTTCATAGGTCTCGATTGACGCGGACGGACAATGCAAAAAAAA-AAATTTCCAAAAGAGGAAACGGGTTTCGAGATCTCGTGAGGATGGTTTTGGAATATTCTTCAATATTTCTGCCTGTCATAGGATTAGGGCGAGTAATGAAACAGAATAATACATGTATAAATCGATCGGGAATACTAACATTACTTTTCTTTATCTAAACAGCTAACTCATCTACTTCTATTCCATCTTCATGTAGTATTGGTACTTCTGCCACTGCTACTGCTCAAGCTGATTTGGACAAAATCTCCGGTTGTAGTACCATTGTTGGTAACTTGACCATCACCGGTGACTTGGGTTCCGCTGCTTTGGCTAGTATCCAAGAGATTGATGGTTCCTTGACTATCTTCAATTCCAGTTCTCTATCTTCTTTCTCCGCTGACTCTATCAAGAAAATCACCGGTGATTTGAACATGCAAGAATTGATCATTTTGACCAGTGCTTCTTTCGGTTCTTTGCAAGAAGTAGACTCCATTAACATGGTGACTTTGCCTGCCATTTCTACCTTCTCCACCGATTTACAAAATGCTAACAACATTATTGTTTCTGACACCACTTTGGAAAGTGTCGAAGGTTTCTCCACTTTGAAGAAGGTTAATGTTTTTAACATCAACAACAACAGATATCTAAACTCTTTCCAATCTTCCTTGGAAAGTGTCTCTGACTCTTTACAATTCTCTTCCAACGGTGACAACACTACTTTGGCCTTCGACAATTTGGTCTGGGCTAACAACATCACTTTGAGAGATGTTAACTCTATTTCTTTCGGTAGTTTGCAAACTGTTAACGCTTCCTTAGGTTTCATTAACAACACTTTGCCAAGTTTGAACTTGACCCAATTGAGCAAGGTTGGTCAATCTTTGTCTATCGTCTCCAACGATGAATTATCCAAGGCCGCTTTCAGTAACTTGACTACTGTTGGTGGTGGTTTCATCATTGCTAACAACACACAATTGAAGGTCATTGACGGTTTTAACAAGGTTCAAACTGTTGGTGGTGCCATTGAAGTTACTGGTAACTTCTCAACCTTAGACTTATCTTCTTTGAAGTCTGTTAGAGGTGGTGCTAAATTCGACTCTTCTTCTAGTAACTTCTCCTGTAACGCTTTGAAGAAGATGCAAAGTAACGGTGCTATTCAAGGTGACTCTTTTGTTTGCAAGAACGGTGCCACATCTACCTCCGTTAAGCTATCCTCTACTTCTACTGAATCATCCAAGAGCTCTGCTACATCTTCCGCTTCTTCTAGTGGTGATGCCTCCAATGCTCAAGCTAACGTTTCAGCTTCCGCTAGCTCTTCTTCCTCTTCTTCTAAGAAGTCTAAGGGTGCTGCTCCAGAACTTGTTCCAGCCACTTCATTCATGGGTGTCGTTGCTGCTGTTGCCGTTGCCTTACTATAA"}],"variantDataProtein":[{"snpType":"Synonymous","start":51,"variant_type":"SNP","score":1,"end":52},{"snpType":"Synonymous","start":425,"variant_type":"SNP","score":4,"end":426},{"snpType":"Synonymous","start":20,"variant_type":"SNP","score":1,"end":21},{"snpType":"Synonymous","start":389,"variant_type":"SNP","score":1,"end":390},{"snpType":"Synonymous","start":23,"variant_type":"SNP","score":3,"end":24},{"snpType":"Synonymous","start":337,"variant_type":"SNP","score":2,"end":338},{"snpType":"Synonymous","start":321,"variant_type":"SNP","score":2,"end":322}],"alignedProteinSequences":[{"strain_id":1,"strain_link":"/strain/S288C/overview","name":"S288C","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":8,"strain_link":"/strain/X2180-1A/overview","name":"X2180-1A","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":12,"strain_link":"/strain/SEY6210/overview","name":"SEY6210","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":2,"strain_link":"/strain/W303/overview","name":"W303","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":11,"strain_link":"/strain/JK9-3d/overview","name":"JK9-3d","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":3,"strain_link":"/strain/FL100/overview","name":"FL100","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQASVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVAVALL*"},{"strain_id":4,"strain_link":"/strain/CENPK/overview","name":"CEN.PK","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":7,"strain_link":"/strain/D273-10B/overview","name":"D273-10B","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":5,"strain_link":"/strain/Sigma1278b/overview","name":"Sigma1278b","sequence":"MQFKNALTATAILSASALAANSTTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVGVALL*"},{"strain_id":13,"strain_link":"/strain/RM11-1a/overview","name":"RM11-1a","sequence":"MQFKNALTATAILSASALAANSSTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGAKFDSSSSNFSCNALKKMQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVAVALL*"},{"strain_id":6,"strain_link":"/strain/SK1/overview","name":"SK1","sequence":"MQFKNALTATAILSASALAFNSSTSIPSSCSIGTSATATAQADLDKISGCTTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGANFDSSSSNFSCNALKKLQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVAVALL*"},{"strain_id":9,"strain_link":"/strain/Y55/overview","name":"Y55","sequence":"MQFKNALTATAILSASALAANSSTSIPSSCSIGTSATATAQADLDKISGCSTIVGNLTITGDLGSAALASIQEIDGSLTIFNSSSLSSFSADSIKKITGDLNMQELIILTSASFGSLQEVDSINMVTLPAISTFSTDLQNANNIIVSDTTLESVEGFSTLKKVNVFNINNNRYLNSFQSSLESVSDSLQFSSNGDNTTLAFDNLVWANNITLRDVNSISFGSLQTVNASLGFINNTLPSLNLTQLSKVGQSLSIVSNDELSKAAFSNLTTVGGGFIIANNTQLKVIDGFNKVQTVGGAIEVTGNFSTLDLSSLKSVRGGAKFDSSSSNFSCNALKKMQSNGAIQGDSFVCKNGATSTSVKLSSTSTESSKSSATSSASSSGDASNAQANVSASASSSSSSSKKSKGAAPELVPATSFMGVVAAVAVALL*"}],"domains":[{"start":1,"end":400,"domain":{"name":"PF0022","id":1,"description":"Lorem ipsum stuff"},"source":{"name":"Pfam","href":null,"id":1}},{"start":145,"end":340,"domain":{"name":"PF0023","id":2},"source":{"name":"Pfam","href":null,"id":1}},{"start":245,"end":540,"domain":{"name":"Some23","id":3},"source":{"name":"Panther","href":null,"id":2}}]}')},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=n(0),a=n.n(o),u=n(5),T=Object(u.mixin)(u);T._=T;var s,c,l,A=T,f=n(1),C=n.n(f),G=function(t){var e,n,r,i=A.groupBy(t,(function(t){return t.sourceId})),o=[],a=0;for(var u in i){n=(e=A.sortBy(i[u],(function(t){return t.start}))).map((function(t,n){return r=A.filter(e,(function(e){return r=e,s=(n=t).start<=r.start&&n.end>=r.start,c=n.end>=r.end&&n.start<=r.end,l=n.start>=r.start&&n.end<=r.end,s||c||l;var n,r})),r=A.sortBy(r,(function(t){return t.start})),t._track=r.indexOf(t)+a,t}));var T=A.max(n,(function(t){return t._track}))._track;a=T+1,o=o.concat(n)}return o};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=function(t){return function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(u,e);var n,r,i,o=y(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return n=u,(r=[{key:"componentDidMount",value:function(){this._handleResize=this._handleResize.bind(this),window.addEventListener("resize",this._handleResize)}},{key:"_handleResize",value:function(){this.wrappedComponent._calculateWidth()}},{key:"render",value:function(){var e=this;return a.a.createElement(t,h({ref:function(t){return e.wrappedComponent=t}},this.props))}}])&&d(n.prototype,r),i&&d(n,i),u}(o.Component)},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var x=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._userAgent=e,this._listeners=[],this._cssSet={}}return b(t,[{key:"subscribe",value:function(t){var e=this;return-1===this._listeners.indexOf(t)&&this._listeners.push(t),{remove:function(){var n=e._listeners.indexOf(t);n>-1&&e._listeners.splice(n,1)}}}},{key:"addCSS",value:function(t){var e=this;return this._cssSet[t]||(this._cssSet[t]=!0,this._emitChange()),{remove:function(){delete e._cssSet[t],e._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join("\n")}},{key:"_emitChange",value:function(){this._listeners.forEach((function(t){return t()}))}}]),t}(),_={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function w(t,e){return!_[t]&&"number"==typeof e&&0!==e?e+"px":e}function k(t,e){return Object.keys(t).reduce((function(n,r){return n[r]=e(t[r],r),n}),{})}function M(t){return k(t,(function(e,n){return w(n,t[n])+" !important"}))}var N=n(8),L=n(6);function E(t,e,n){if(!e)return"";var r,i=k(e,(function(t,e){return w(e,t)})),o=Object(L.b)(i,n),a=Object(N.b)(o);return t+"{"+(r=a,Object.keys(r).map((function(t){return t+": "+r[t]+";"})).join("\n"))+"}"}var D=function(t){return null==t?"main":t.toString()},O=function(t,e,n){var r=D(e);return!!t&&!!t._radiumStyleState&&!!t._radiumStyleState[r]&&t._radiumStyleState[r][n]},P=function(t){return"string"==typeof t.ref?t.ref:t.key},I=function(t){return t._lastRadiumState||t.state&&t.state._radiumStyleState||{}};function V(t){if(!t)return"";for(var e=5381,n=t.length-1;n;)e=33*e^t.charCodeAt(n),n-=1;return(e>>>0).toString(16)}var F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function j(t){return t&&t.constructor===Object&&t.toString===Object.prototype.toString}function R(t){var e={};return t.forEach((function(t){t&&"object"===(void 0===t?"undefined":F(t))&&(Array.isArray(t)&&(t=R(t)),Object.keys(t).forEach((function(n){if(j(t[n])&&j(e[n])){if(0===n.indexOf("@media"))for(var r=n;;)if(!e[r+=" "])return void(e[r]=t[n]);e[n]=R([e[n],t[n]])}else e[n]=t[n]})))})),e}Object.assign,"function"==typeof Symbol&&Symbol.iterator;var K=function(){};var q=function(t){var e=t.style,n=t.mergeStyles;return{style:Array.isArray(e)?n(e):e}};var z=[],Q=!1;function B(){z.forEach((function(t){t()}))}var W=function(t){return-1===z.indexOf(t)&&z.push(t),Q||(window.addEventListener("mouseup",B),Q=!0),{remove:function(){var e=z.indexOf(t);z.splice(e,1),0===z.length&&Q&&(window.removeEventListener("mouseup",B),Q=!1)}}},U=function(t){return":hover"===t||":active"===t||":focus"===t},H=function(t){var e=t.ExecutionEnvironment,n=t.getComponentField,r=t.getState,i=t.mergeStyles,o=t.props,a=t.setState,u=t.style,T={},s={};if(u[":hover"]){var c=o.onMouseEnter;s.onMouseEnter=function(t){c&&c(t),a(":hover",!0)};var l=o.onMouseLeave;s.onMouseLeave=function(t){l&&l(t),a(":hover",!1)}}if(u[":active"]){var A=o.onMouseDown;s.onMouseDown=function(t){A&&A(t),T._lastMouseDown=Date.now(),a(":active","viamousedown")};var f=o.onKeyDown;s.onKeyDown=function(t){f&&f(t)," "!==t.key&&"Enter"!==t.key||a(":active","viakeydown")};var C=o.onKeyUp;s.onKeyUp=function(t){C&&C(t)," "!==t.key&&"Enter"!==t.key||a(":active",!1)}}if(u[":focus"]){var G=o.onFocus;s.onFocus=function(t){G&&G(t),a(":focus",!0)};var p=o.onBlur;s.onBlur=function(t){p&&p(t),a(":focus",!1)}}u[":active"]&&!n("_radiumMouseUpListener")&&e.canUseEventListeners&&(T._radiumMouseUpListener=W((function(){Object.keys(n("state")._radiumStyleState).forEach((function(t){"viamousedown"===r(":active",t)&&a(":active",!1,t)}))})));var h=o.disabled?[u[":disabled"]]:Object.keys(u).filter((function(t){return U(t)&&r(t)})).map((function(t){return u[t]})),d=i([u].concat(h));return d=Object.keys(d).reduce((function(t,e){return U(e)||":disabled"===e||(t[e]=d[e]),t}),{}),{componentFields:T,props:s,style:d}},Y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X=void 0;function Z(t,e){return Object.keys(t).filter((function(n){return e(t[n],n)})).reduce((function(e,n){return e[n]=t[n],e}),{})}var $={checkProps:K,keyframes:function(t){var e=t.addCSS,n=t.config,r=t.style,i=function(t){var r=t.__process(n.userAgent),i=r.animationName,o=r.css;return e(o),i};return{style:Object.keys(r).reduce((function(t,e){var n=r[e],o=Array.isArray(n);return"animationName"===e&&n&&(n.__radiumKeyframes||o)&&(n=o?n.map(i).join(", "):i(n)),t[e]=n,t}),{})}},mergeStyleArray:q,prefix:function(t){var e=t.config,n=t.style;return{style:Object(L.b)(n,e.userAgent)}},removeNestedStyles:function(t){var e=t.isNestedStyle,n=t.style;return{style:Object.keys(n).reduce((function(t,r){var i=n[r];return e(i)||(t[r]=i),t}),{})}},resolveInteractionStyles:H,resolveMediaQueries:function(t){var e=t.ExecutionEnvironment,n=t.addCSS,r=t.appendImportantToEachValue,i=t.config,o=t.cssRuleSetToString,a=t.getComponentField,u=t.getGlobalState,T=t.hash,s=t.isNestedStyle,c=t.mergeStyles,l=t.props,A=t.setState,f=t.style,C=function(t){return Object.keys(t).reduce((function(e,n){return 0!==n.indexOf("@media")&&(e[n]=t[n]),e}),{})}(f),G=function(t){var e=t.addCSS,n=t.appendImportantToEachValue,r=t.cssRuleSetToString,i=t.hash,o=t.isNestedStyle,a=t.style,u=t.userAgent,T="";return Object.keys(a).filter((function(t){return 0===t.indexOf("@media")})).map((function(t){var s=n(Z(a[t],(function(t){return!o(t)})));if(Object.keys(s).length){var c=r("",s,u),l="rmq-"+i(t+c);e(t+"{ ."+l+c+"}"),T+=(T?" ":"")+l}})),T}({addCSS:n,appendImportantToEachValue:r,cssRuleSetToString:o,hash:T,isNestedStyle:s,style:f,userAgent:i.userAgent}),p=G?{className:G+(l.className?" "+l.className:"")}:null,h=i.matchMedia||function(t){return void 0===X&&(X=!!t.canUseDOM&&!!window&&!!window.matchMedia&&function(t){return window.matchMedia(t)}||null),X}(e);if(!h)return{props:p,style:C};var d=Y({},a("_radiumMediaQueryListenersByQuery")),m=u("mediaQueryListsByQuery")||{};return Object.keys(f).filter((function(t){return 0===t.indexOf("@media")})).map((function(t){var e=Z(f[t],s);if(Object.keys(e).length){var n=function(t){var e=t.listener,n=t.listenersByQuery,r=t.matchMedia,i=t.mediaQueryListsByQuery,o=t.query,a=i[o=o.replace("@media ","")];return!a&&r&&(i[o]=a=r(o)),n&&n[o]||(a.addListener(e),n[o]={remove:function(){a.removeListener(e)}}),a}({listener:function(){return A(t,n.matches,"_all")},listenersByQuery:d,matchMedia:h,mediaQueryListsByQuery:m,query:t});n.matches&&(C=c([C,e]))}})),{componentFields:{_radiumMediaQueryListenersByQuery:d},globalState:{mediaQueryListsByQuery:m},props:p,style:C}},visited:function(t){var e=t.addCSS,n=t.appendImportantToEachValue,r=t.config,i=t.cssRuleSetToString,o=t.hash,a=t.props,u=t.style,T=a.className,s=Object.keys(u).reduce((function(t,a){var s=u[a];if(":visited"===a){s=n(s);var c=i("",s,r.userAgent),l="rad-"+o(c);e("."+l+":visited"+c),T=(T?T+" ":"")+l}else t[a]=s;return t}),{});return{props:T===a.className?null:{className:T},style:s}}},J=n(7),tt=n.n(J),et=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt={plugins:[$.mergeStyleArray,$.checkProps,$.resolveMediaQueries,$.resolveInteractionStyles,$.keyframes,$.visited,$.removeNestedStyles,$.prefix,$.checkProps]},it={},ot=null,at=function(t){return t.type&&!t.type._isRadiumEnhanced},ut=function(t){var e=t.children,n=t.component,r=t.config,i=t.existingKeyMap,o=t.extraStateKeyMap;if(!e)return e;var u=void 0===e?"undefined":nt(e);if("string"===u||"number"===u)return e;if("function"===u)return function(){var t=e.apply(this,arguments);if(a.a.isValidElement(t)){var u=P(t);delete o[u];var T=ot(n,t,r,i,!0,o),s=T.element;return s}return t};if(1===a.a.Children.count(e)&&e.type){var T=a.a.Children.only(e),s=P(T);return delete o[s],ot(n,T,r,i,!0,o).element}return a.a.Children.map(e,(function(t){if(a.a.isValidElement(t)){var e=P(t);return delete o[e],ot(n,t,r,i,!0,o).element}return t}))},Tt=function(t){var e=t.component,n=t.config,r=t.existingKeyMap,i=t.props,o=t.extraStateKeyMap,u=i;return Object.keys(i).forEach((function(t){if("children"!==t){var T=i[t];if(a.a.isValidElement(T)){var s=P(T);delete o[s],u=et({},u);var c=ot(e,T,n,r,!0,o).element;u[t]=c}}})),u},st=function(t){var e=t.component,n=t.config,r=t.existingKeyMap,i=t.props,o=t.renderedElement;if(!a.a.isValidElement(o)||"string"!=typeof o.type||!i.style)return i;var u=i,T=n.plugins||rt.plugins,s=e.constructor.displayName||e.constructor.name,c=function(t){var e=t.componentName,n=t.existingKeyMap,r=t.renderedElement,i=P(r),o=D(i),a=!1;return function(){if(a)return o;if(a=!0,n[o]){var t=void 0;throw"string"==typeof r.type?t=r.type:r.type.constructor&&(t=r.type.constructor.displayName||r.type.constructor.name),new Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(i?'Key "'+i+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+e+'". '+(t?'Element: "'+t+'".':""))}return n[o]=!0,o}}({renderedElement:o,existingKeyMap:r,componentName:s}),l=function(t){return e[t]},A=function(t){return it[t]},f=function(t,n){return O(e.state,n||c(),t)},C=function(t,n,r){return function(t,e,n,r){if(t._radiumIsMounted){var i=I(t),o={_radiumStyleState:et({},i)};o._radiumStyleState[e]=et({},o._radiumStyleState[e]),o._radiumStyleState[e][n]=r,t._lastRadiumState=o._radiumStyleState,t.setState(o)}}(e,r||c(),t,n)},G=function(t){var n=e._radiumStyleKeeper||e.context._radiumStyleKeeper;if(!n){if(lt)return{remove:function(){}};throw new Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+s+"`.")}return n.addCSS(t)},p=i.style;return T.forEach((function(t){var r=t({ExecutionEnvironment:tt.a,addCSS:G,appendImportantToEachValue:M,componentName:s,config:n,cssRuleSetToString:E,getComponentField:l,getGlobalState:A,getState:f,hash:V,mergeStyles:R,props:u,setState:C,isNestedStyle:j,style:p})||{};p=r.style||p,u=r.props&&Object.keys(r.props).length?et({},u,r.props):u;var i=r.componentFields||{};Object.keys(i).forEach((function(t){e[t]=i[t]}));var o=r.globalState||{};Object.keys(o).forEach((function(t){it[t]=o[t]}))})),p!==i.style&&(u=et({},u,{style:p})),u},ct=function(t,e,n){return"string"==typeof t.type&&(e=et({},e,{"data-radium":!0})),a.a.cloneElement(t,e,n)},lt=!1;var At=ot=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments[5];if(!o){var a=I(t);o=Object.keys(a).reduce((function(t,e){return"main"!==e&&(t[e]=!0),t}),{})}if(Array.isArray(e)&&!e.props){var u=e.map((function(e){if(o){var a=P(e);delete o[a]}return ot(t,e,n,r,i,o).element}));return{extraStateKeyMap:o,element:u}}if(!e||e.props&&e.props["data-radium"]||i&&!at(e))return{extraStateKeyMap:o,element:e};var T=e.props.children,s=ut({children:T,component:t,config:n,existingKeyMap:r,extraStateKeyMap:o}),c=Tt({component:t,config:n,existingKeyMap:r,extraStateKeyMap:o,props:e.props});if(c=st({component:t,config:n,existingKeyMap:r,props:c,renderedElement:e}),s===T&&c===e.props)return{extraStateKeyMap:o,element:e};var l=ct(e,c!==e.props?c:{},s);return{extraStateKeyMap:o,element:l}},ft=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ct=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Gt=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0};function pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function dt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mt=["arguments","callee","caller","length","name","prototype","type"],yt=void 0,vt=void 0;function gt(t,e,n){var r,i,o,a,u=(i=r=function(t){function r(){pt(this,r);var t=ht(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments));return t.state=t.state||{},t.state._radiumStyleState={},t._radiumIsMounted=!0,function(t,e){vt.forEach((function(n){var r=Object.getOwnPropertyDescriptor(t,n),i=(r||{}).value;if(i){var o=(Object.getOwnPropertyDescriptor(yt,n)||{}).value;e.prototype[n]||i===o||(Object.defineProperty(e.prototype,n,r),delete t[n])}}))}(t,e),t}return dt(r,t),Ct(r,[{key:"componentWillUnmount",value:function(){Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"componentWillUnmount",this)&&Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"componentWillUnmount",this).call(this),this._radiumIsMounted=!1,this._radiumMouseUpListener&&this._radiumMouseUpListener.remove(),this._radiumMediaQueryListenersByQuery&&Object.keys(this._radiumMediaQueryListenersByQuery).forEach((function(t){this._radiumMediaQueryListenersByQuery[t].remove()}),this)}},{key:"getChildContext",value:function(){var t=Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"getChildContext",this)?Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"getChildContext",this).call(this):{};if(!this.props.radiumConfig)return t;var e=ft({},t);return this.props.radiumConfig&&(e._radiumConfig=this.props.radiumConfig),e}},{key:"render",value:function(){var t=Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"render",this).call(this),e=this.props.radiumConfig||this.context._radiumConfig||n;n&&e!==n&&(e=ft({},n,e));var i=At(this,t,e),o=i.extraStateKeyMap,a=i.element;return this._extraRadiumStateKeys=Object.keys(o),a}},{key:"componentDidUpdate",value:function(t,e,n){if(Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"componentDidUpdate",this)&&Gt(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"componentDidUpdate",this).call(this,t,e,n),this._extraRadiumStateKeys&&this._extraRadiumStateKeys.length>0){var i=this._extraRadiumStateKeys.reduce((function(t,e){t[e];return function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,[e])}),I(this));this._lastRadiumState=i,this.setState({_radiumStyleState:i})}}}]),r}(e),r._isRadiumEnhanced=!0,i);return yt=u.prototype,vt=Object.getOwnPropertyNames(yt).filter((function(t){return"constructor"!==t&&"function"==typeof yt[t]})),o=t,a=u,Object.getOwnPropertyNames(o).forEach((function(t){if(mt.indexOf(t)<0&&!a.hasOwnProperty(t)){var e=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(a,t,e)}})),u.propTypes&&u.propTypes.style&&(u.propTypes=ft({},u.propTypes,{style:C.a.oneOfType([C.a.array,C.a.object])})),u.displayName=t.displayName||t.name||"Component",u.contextTypes=ft({},u.contextTypes,{_radiumConfig:C.a.object,_radiumStyleKeeper:C.a.instanceOf(x)}),u.childContextTypes=ft({},u.childContextTypes,{_radiumConfig:C.a.object,_radiumStyleKeeper:C.a.instanceOf(x)}),u}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof t)return function(t,e){var n=ft({},t,e);return function(t){return St(t,n)}}(e,t);var n,r=t,i=r;return"function"==typeof(n=i)&&/^\s*class\s+/.test(n.toString())&&(i=function(t){function e(){return Reflect.construct(t,arguments,this.constructor)}return Reflect.setPrototypeOf(e.prototype,t.prototype),Reflect.setPrototypeOf(e,t),e}(i)),function(t){var e=t.prototype||{};return!(t.isReactComponent||e.isReactComponent||t.render||e.render)}(i)&&(i=function(t,e){return(t=function(t){function n(){return pt(this,n),ht(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return dt(n,t),Ct(n,[{key:"render",value:function(){return e(this.props,this.context)}}]),n}(o.Component)).displayName=e.displayName||e.name,t}(i,r)),i===r&&(i=function(t){function e(){return pt(this,e),ht(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return dt(e,t),e}(i)),gt(r,i,e)}var bt,xt,_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var kt,Mt,Nt=(xt=bt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),wt(e,[{key:"_buildStyles",value:function(t){var e=this,n=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.context&&this.context._radiumConfig&&this.context._radiumConfig.userAgent,r=this.props.scopeSelector,i=Object.keys(t).reduce((function(e,n){return"object"!==_t(t[n])&&(e[n]=t[n]),e}),{});return(Object.keys(i).length?E(r||"",i,n):"")+Object.keys(t).reduce((function(i,o){var a=t[o];if("mediaQueries"===o)i+=e._buildMediaQueryString(a);else if("object"===_t(t[o])){i+=E(r?o.split(",").map((function(t){return r+" "+t.trim()})).join(","):o,a,n)}return i}),"")}},{key:"_buildMediaQueryString",value:function(t){var e=this,n="";return Object.keys(t).forEach((function(r){n+="@media "+r+"{"+e._buildStyles(t[r])+"}"})),n}},{key:"render",value:function(){if(!this.props.rules)return null;var t=this._buildStyles(this.props.rules);return a.a.createElement("style",{dangerouslySetInnerHTML:{__html:t}})}}]),e}(o.PureComponent),bt.propTypes={radiumConfig:C.a.object,rules:C.a.object,scopeSelector:C.a.string},bt.contextTypes={_radiumConfig:C.a.object},bt.defaultProps={scopeSelector:""},xt),Lt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var Et=(Mt=kt=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t._onChange=function(){var e=t.context._radiumStyleKeeper.getCSS();if(e!==t._css){if(!t._root)throw new Error("No root style object found, even after StyleSheet mount.");t._root.innerHTML=e,t._css=e}},t._css=t.context._radiumStyleKeeper.getCSS(),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Lt(e,[{key:"componentDidMount",value:function(){this._subscription=this.context._radiumStyleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this._subscription&&this._subscription.remove()}},{key:"render",value:function(){var t=this;return a.a.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(e){t._root=e}})}}]),e}(o.Component),kt.contextTypes={_radiumStyleKeeper:C.a.instanceOf(x)},Mt),Dt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Ot(t){if(!t._radiumStyleKeeper){var e=t.props.radiumConfig&&t.props.radiumConfig.userAgent||t.context._radiumConfig&&t.context._radiumConfig.userAgent;t._radiumStyleKeeper=new x(e)}return t._radiumStyleKeeper}var Pt=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return Ot(t),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Dt(e,[{key:"getChildContext",value:function(){return{_radiumStyleKeeper:Ot(this)}}},{key:"render",value:function(){var t=this.props,e=(t.radiumConfig,function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["radiumConfig"]));return a.a.createElement("div",e,this.props.children,a.a.createElement(Et,null))}}]),e}(o.PureComponent);Pt.contextTypes={_radiumConfig:C.a.object,_radiumStyleKeeper:C.a.instanceOf(x)},Pt.childContextTypes={_radiumStyleKeeper:C.a.instanceOf(x)};var It=Pt=St(Pt);function Vt(t){return St(t)}Vt.Plugins=$,Vt.Style=Nt,Vt.StyleRoot=It,Vt.getState=O,Vt.keyframes=function(t,e){return{__radiumKeyframes:!0,__process:function(n){var r=Object(L.a)(n),i=Object.keys(t).map((function(e){return E(e,t[e],n)})).join("\n"),o=(e?e+"-":"")+"radium-animation-"+V(i);return{css:"@"+r+" "+o+" {\n"+i+"\n}\n",animationName:o}}}};var Ft=Vt;function jt(t){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qt(t);if(e){var i=Qt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==jt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kt(t,e)}(o,t);var e,n,r,i=qt(o);function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,t)}return e=o,(n=[{key:"render",value:function(){var t=this.props,e=this._isComplex(),n=0;e&&(n=30*A.keys(this.props.data).length);var r={display:t.visible?"block":"none",top:t.top-n,left:t.left,width:e?350:"auto"},i=this._getInnerContentNode();return a.a.createElement("div",{onMouseEnter:this.props.onMouseEnter,style:[Wt.wrapper,r]},i,a.a.createElement("div",{style:[Wt.triangle]}))}},{key:"_getInnerContentNode",value:function(){return this._isComplex()?this._getComplexContent():this._getTextNode()}},{key:"_isComplex",value:function(){return this.props.title&&this.props.data}},{key:"_getComplexContent",value:function(){var t=this,e=null;if(this.props.title){var n=this.props.href?a.a.createElement("a",{href:this.props.href},this.props.title):this.props.title;e=a.a.createElement("h3",null,n)}var r=null;if(this.props.data){var i=A.keys(this.props.data),o=A.reduce(i,(function(e,n,r){return e.push(a.a.createElement("dt",{key:"flexToolTipT"+r},n)),e.push(a.a.createElement("dd",{key:"flexToolTipD"+r},t.props.data[n])),e}),[]);r=a.a.createElement("dl",{className:"key-value"},o)}return a.a.createElement("div",null,e,r)}},{key:"_getTextNode",value:function(){var t=this.props.href?a.a.createElement("a",{href:this.props.href},this.props.text):this.props.text;return a.a.createElement("span",{className:"flexible-tooltip-text"},t)}}])&&Rt(e.prototype,n),r&&Rt(e,r),o}(o.Component);Bt.propTypes={visible:C.a.bool,text:C.a.string,title:C.a.string,href:C.a.string,left:C.a.number,top:C.a.number,onMouseEnter:C.a.func},Bt.defaultProps={visible:!1,text:"",left:0,top:0,title:"",data:null};var Wt={wrapper:{position:"absolute",marginLeft:-220,marginTop:-65,minHeight:35,padding:"0.5rem 0.5rem 0 0.5rem",width:"auto",backgroundColor:"#e7e7e7",borderRadius:5,fontSize:16,zIndex:100},triangle:{position:"absolute",bottom:-15,left:18,width:0,height:0,marginLeft:195,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:"15px solid #e7e7e7"}},Ut=Ft(Bt),Ht=function(t,e){var n;return n="right"===(e=e||"right")?[{x:0,y:0},{x:t-10,y:0},{x:t,y:8.5},{x:t-10,y:17},{x:0,y:17},{x:0,y:0}]:[{x:10,y:0},{x:t,y:0},{x:t,y:17},{x:10,y:17},{x:0,y:8.5}],i.a.svg.line().x((function(t){return t.x})).y((function(t){return t.y}))(n)+"Z"};function Yt(t){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zt(t,e){return(Zt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ee(t);if(e){var i=ee(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(t,e){return!e||"object"!==Yt(e)&&"function"!=typeof e?te(t):e}function te(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ee(t){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ne=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zt(t,e)}(u,t);var e,n,r,o=$t(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=o.call(this,t)).state={scale:null},e._calculateWidth=e._calculateWidth.bind(te(e)),e}return e=u,(n=[{key:"render",value:function(){var t=this,e=this.props.labelText?a.a.createElement("p",{className:"axis-label",style:{marginLeft:"".concat(100*this.props.leftRatio,"%"),position:"relative"}},this.props.labelText):null,n=this.props.height||(this.props.gridTicks?"100%":32),r="standalone-axis ".concat(this.props.gridTicks?"grid-ticks":""),i={position:"relative"};return this.props.gridTicks&&(i.height="100%"),a.a.createElement("div",{ref:function(e){return t.wrapper=e},className:r,style:i},e,a.a.createElement("svg",{ref:function(e){return t.svg=e},style:{width:"100%",height:n}}))}},{key:"componentDidMount",value:function(){this.setState({isMounted:!0},this._calculateScale())}},{key:"componentWillUnmount",value:function(){this.setState({isMounted:!1})}},{key:"componentWillReceiveProps",value:function(t){this._calculateScale(t)}},{key:"componentDidUpdate",value:function(){this._renderSVG()}},{key:"_calculateWidth",value:function(){this.state.isMounted&&this._calculateScale()}},{key:"_calculateScale",value:function(t){var e=t||this.props;if(null!==e.maxValue){var n={linear:i.a.scale.linear(),sqrt:i.a.scale.sqrt()}[this.props.scaleType],r=this.wrapper.getBoundingClientRect().width-1,o=r*e.leftRatio,a=n.domain(e.domain).range([0,r-o]);this.setState({scale:a})}}},{key:"_renderSVG",value:function(){if(this.state.scale){var t=this.props.gridTicks?-this.wrapper.offsetHeight:6,e=i.a.svg.axis().orient(this.props.orientation).ticks(this.props.ticks).tickFormat(this.props.tickFormat).tickSize(t).scale(this.state.scale),n=i.a.select(this.svg),r=this.wrapper.getBoundingClientRect().width*this.props.leftRatio,o="top"===this.props.orientation?30:0;this.props.gridTicks&&"bottom"===this.props.orientation&&(o+=this.wrapper.getBoundingClientRect().height-24);var a="translate(".concat(r,", ").concat(o,")"),u=n.selectAll("g.axis").data([null]);u.enter().append("g").attr({class:"axis",transform:a}),u.transition().duration(this.props.transitionDuration).attr({transform:a}).call(e)}}}])&&Xt(e.prototype,n),r&&Xt(e,r),u}(o.Component);ne.propTypes={domain:C.a.array.isRequired,gridTicks:C.a.bool,labelText:C.a.string,leftRatio:C.a.number,orientation:C.a.string,scaleType:C.a.string,ticks:C.a.number,tickFormat:C.a.func,transitionDuration:C.a.number},ne.defaultProps={gridTicks:!1,leftRatio:0,orientation:"top",scaleType:"linear",ticks:3,transitionDuration:0};var re=S(ne);function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ae(t,e){return(ae=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ue(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ce(t);if(e){var i=ce(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Te(this,n)}}function Te(t,e){return!e||"object"!==ie(e)&&"function"!=typeof e?se(t):e}function se(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ce(t){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var le=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ae(t,e)}(u,t);var e,n,r,o=ue(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=o.call(this,t)).state={DOMWidth:400,mouseOverDomainId:null},e._onDomainMouseLeave=e._onDomainMouseLeave.bind(se(e)),e._calculateWidth=e._calculateWidth.bind(se(e)),e}return e=u,(n=[{key:"render",value:function(){return a.a.createElement("div",{className:"sgd-viz protein-viewer"},this._renderLabels(),this._renderViz())}},{key:"componentDidMount",value:function(){this.setState({isMounted:!0},this._calculateWidth)}},{key:"componentWillUnmount",value:function(){this.setState({isMounted:!1})}},{key:"_calculateWidth",value:function(){if(this.state.isMounted){var t=this.vizNode.getBoundingClientRect().width;this.setState({DOMWidth:t})}}},{key:"_renderLabels",value:function(){var t,e,n,r=this._getSources(),o=this._getTrackedDomains(),u=this.props.locusData?40:0,T=r.map((function(r,T){return t=A.filter(o,(function(t){return t.source.id===r.id})),e=i.a.min(t,(function(t){return t._track})),n=u+24*e,a.a.createElement("div",{key:"proteinViewerLabel"+T,style:{position:"absolute",top:n,right:"1rem"}},a.a.createElement("label",null,r.name))}));return a.a.createElement("div",{className:"protein-viewer-label-container",style:{position:"relative",width:"20%"}},T)}},{key:"_renderViz",value:function(){var t=this,e=this._getXScale().domain(),n=this._getHeight();return a.a.createElement("div",{onMouseLeave:this._onDomainMouseLeave,className:"protein-viewer-viz-container",style:{position:"relative",width:"100%",height:n+24}},a.a.createElement(re,{domain:e,leftRatio:.2,gridTicks:!0,orientation:"bottom"}),a.a.createElement("div",{ref:function(e){return t.vizNode=e},style:{width:"80%",height:n,left:"20%",position:"absolute",top:0,border:"1px solid #ddd"}},this._getSVGNode(),this._getTooltipNode()))}},{key:"_getSVGNode",value:function(){var t,e,n,r,i,o,u,T=this,s=this._getXScale(),c=(this._getYScale(),this._getColorScale()),l=this._getTrackedDomains(),A=this.props.locusData?40:0,f=l.map((function(l,f){u=A+24*l._track,t="translate(".concat(s(l.start),", ").concat(u,")"),e=Math.round(Math.abs(s(l.start)-s(l.end))),n=c(l.source.name),r=l.domain.name,i=7*r.length<e,o=null,i&&(o=a.a.createElement("text",{x:"3",y:14,fontSize:14},r));var C=l.domain.id===T.state.mouseOverDomainId?"gray":"none";return a.a.createElement("g",{onMouseOver:function(t){T._onDomainMouseOver(t,l)},key:"proteinDomain"+f,transform:t},a.a.createElement("rect",{x:"0",y:"0",width:e,height:24,fill:C,opacity:.1}),o,a.a.createElement("line",{strokeWidth:"2",stroke:n,x1:"0",x2:e,y1:19,y2:19}),a.a.createElement("line",{strokeWidth:"2",stroke:n,x1:"0",x2:"0",y1:14,y2:24}),a.a.createElement("line",{strokeWidth:"2",stroke:n,x1:e,x2:e,y1:14,y2:24}))}));return a.a.createElement("svg",{width:this.state.DOMWidth,height:this._getHeight()},this._getLocusNode(),f)}},{key:"_getLocusNode",value:function(){if(!this.props.locusData)return null;var t=this._getXScale()(this.props.locusData.end),e=Ht(t),n=this._getXScale().range()[1]-2;return a.a.createElement("g",{transform:"translate(0, 7)"},a.a.createElement("line",{x1:"0",x2:n,y1:27,y2:27,stroke:"#ddd",strokeDasharray:"5 3"}),a.a.createElement("path",{d:e,fill:"#696599"}),a.a.createElement("text",{x:t/2,y:14,fontSize:14,fill:"white",textAnchor:"middle"},this.props.locusData.name))}},{key:"_getTooltipNode",value:function(){var t=this;if(!this.state.mouseOverDomainId)return null;var e=A.find(this.props.data,(function(e){return e.domain.id===t.state.mouseOverDomainId})),n=this._getXScale()(e.start),r=(this.props.locusData?40:0)+24*e._track,i={Coords:"".concat(e.start,"..").concat(e.end)};return e.domain.description&&(i.Description=e.domain.description),a.a.createElement(Ut,{visible:!0,left:n,top:r,title:e.domain.name,href:e.domain.href,data:i})}},{key:"_onDomainMouseOver",value:function(t,e){this._mouseLeaveTimeout&&clearTimeout(this._mouseLeaveTimeout),this.setState({mouseOverDomainId:e.domain.id})}},{key:"_onDomainMouseLeave",value:function(){var t=this;this._mouseLeaveTimeout=setTimeout((function(){t.state.isMounted&&t.setState({mouseOverDomainId:null})}),250)}},{key:"_getSources",value:function(){var t=A.groupBy(this.props.data,(function(t){return t.source.name}));return A.keys(t).map((function(e){var n=t[e][0].source,r=t[e].length;return A.extend(n,{numberDomains:r})}))}},{key:"_getTrackedDomains",value:function(){return this._trackedDomains||(this._trackedDomains=G(this.props.data)),this._trackedDomains}},{key:"_getXScale",value:function(){var t=this.props.locusData;return i.a.scale.linear().domain([t.start,t.end]).range([-2,this.state.DOMWidth-2])}},{key:"_getYScale",value:function(){var t,e,n=this.props.locusData?40:0,r=[],o=[],a=this._getSources(),u=this._getTrackedDomains(),T=n;return a.forEach((function(n){t=A.filter(u,(function(t){return n.id===t.source.id})),e=i.a.max(t,(function(t){return t._track})),r.push(n.id),o.push(T),T+=24*(e+1)})),o.push(T),i.a.scale.ordinal().domain(r).range(o)}},{key:"_getColorScale",value:function(){if(this.props.colorScale)return this.props.colorScale;var t=this._getSources().map((function(t){return t.name}));return i.a.scale.category10().domain(t)}},{key:"_getHeight",value:function(){var t=this._getTrackedDomains();return 24*(i.a.max(t,(function(t){return t._track}))+2)+40}}])&&oe(e.prototype,n),r&&oe(e,r),u}(o.Component);le.propTypes={data:C.a.array.isRequired,locusData:C.a.object.isRequired,colorScale:C.a.func};var Ae=S(le);function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ce="S288C",Ge=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.attributes={},this.attributes.alignedDnaSequences=e.alignedDnaSequences,this.attributes.alignedProteinSequences=e.alignedProteinSequences,this.attributes.variantDataDna=e.variantDataDna,this.attributes.variantDataProtein=e.variantDataProtein,this.attributes.referenceName=e.referenceName||Ce}var e,n,r;return e=t,(n=[{key:"parse",value:function(t){return t.strand="+",t.alignedProteinSequences=this._sortSequencesByStrain(t.alignedProteinSequences),t.alignedDnaSequences=this._sortSequencesByStrain(t.alignedDnaSequences),t}},{key:"canShowSequence",value:function(t){var e=this.attributes;return t?e.alignedProteinSequences.length>1&&e.variantDataProtein.length>0:e.alignedDnaSequences.length>1&&e.variantDataDna.length>0}},{key:"_sortSequencesByStrain",value:function(t){return A.sortBy(t,(function(t){return t.name===Ce?1:2}))}},{key:"_isOverlap",value:function(t,e){var n=t.end>=e.start&&t.start<=e.end+1,r=t.start<=e.end+1&&t.end>=e.start;return(n||r)&&!(t===e)}},{key:"getReferenceCoordinatesFromAlignedCoordinates",value:function(t,e,n){var r=this.attributes,i=n?r.alignedProteinSequences:r.alignedDnaSequences;return A.findWhere(i,{name:r.referenceName}).sequence.split("").reduce((function(n,r,i){return"-"!==r&&(i<t&&(n.start+=1),i<e&&(n.end+=1)),n}),{start:0,end:0})}},{key:"_mergeOrAddSegment",value:function(t,e){for(var n,r=t.length-1;r>=0;r--)if(n=t[r],this._isOverlap(n,e))return n.start=Math.min(n.start,e.start),n.end=Math.max(n.end,e.end),t;return t.push(A.extend(e,{visible:!0})),t}},{key:"formatSegments",value:function(t){var e=this,n=t?this.attributes.variantDataProtein:this.attributes.variantDataDna,r=t?this.attributes.alignedProteinSequences:this.attributes.alignedDnaSequences;n=A.sortBy(n,(function(t){return t.start}));var i=A.reduce(n,(function(t,n){return e._mergeOrAddSegment(t,n)}),[]);i[0].start>1&&i.push({visible:!1,start:1,end:i[0].start});var o=A.where(i,{visible:!0});o.forEach((function(t,e){t.visible&&e<o.length-1&&i.push({visible:!1,start:t.end,end:o[e+1].start})}));var a=A.max(i,(function(t){return t.end})),u=A.max(r,(function(t){return t.sequence.length})).sequence.length;return a.end<u?i.push({start:a.end,end:u,visible:!1}):i.push({start:a.end,end:u+1,visible:!0}),i=A.map(i,(function(t){return t.domain=[t.start,t.end],t})),i=A.sortBy(i,(function(t){return t.start}))}},{key:"formatSequences",value:function(t){var e=t?this.attributes.alignedProteinSequences:this.attributes.alignedDnaSequences;return A.map(e,(function(t){return{name:t.name,href:t.href,sequence:t.sequence}}))}}])&&fe(e.prototype,n),r&&fe(e,r),t}();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(){return(he=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function de(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function me(t,e){return(me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ge(t);if(e){var i=ge(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ve(this,n)}}function ve(t,e){return!e||"object"!==pe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ge(t){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Se=function(t){return function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&me(t,e)}(u,e);var n,r,i,o=ye(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,t)}return n=u,(r=[{key:"calculateCanvasRatio",value:function(t){var e=t.canvas.getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},{key:"render",value:function(){return a.a.createElement(t,he({},this.props,{calculateCanvasRatio:this.calculateCanvasRatio}))}}])&&de(n.prototype,r),i&&de(n,i),u}(o.Component)},be=4,xe=17,_e="#ffffbf",we="#fc8d59",ke="#91bfdb",Me="black",Ne="gray",Le="#0ab94c",Ee=function(t,e,n,r,i,o,a,u){u=u||1,t.lineWidth=1*u,void 0===o&&(o=r),void 0===a&&(a=i);var T={synonymous:_e,nonsynonymous:we,intron:ke,untranslatable:Ne,intergenic:Le};t.strokeStyle=Me,t.beginPath(),t.moveTo(o*u,(a+be/2+1)*u),t.lineTo(o*u,(a+xe)*u),t.stroke();var s="insertion"===e||"deletion"===e?"black":T[n];if("insertion"===e)t.globalAlpha=1,t.fillColor=Me,t.lineWidth=3*u,t.beginPath(),t.moveTo((r-be)*u,i*u),t.lineTo(r*u,(i-be)*u),t.lineTo((r+be)*u,i*u),t.stroke();else if("deletion"===e)t.lineWidth=2*u,t.beginPath(),t.moveTo((r-be)*u,(i+be)*u),t.lineTo((r+be)*u,(i-be)*u),t.stroke(),t.beginPath(),t.moveTo((r-be)*u,(i-be)*u),t.lineTo((r+be)*u,(i+be)*u),t.stroke();else{t.globalAlpha=1,t.fillStyle=s;var c=new Path2D;c.arc((r+.25)*u,i*u,be*u,0,2*Math.PI,!0),t.fill(c),t.stroke(c),t.globalAlpha=1}};function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oe(){return(Oe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ie(t,e){return(Ie=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ve(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=je(t);if(e){var i=je(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Fe(this,n)}}function Fe(t,e){return!e||"object"!==De(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function je(t){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Re={button:{display:"inline-block",padding:"6px 12px",marginBottom:0,fontSize:14,fontWeight:400,lineHeight:1.42857143,textAlign:"center",whiteSpace:"nowrap",verticalAlign:"middle",touchAction:"manipulation",cursor:"pointer",userSelect:"none",backgroundImage:"none",border:"1px solid #ccc",borderRadius:4,color:"#333",backgroundColor:"#fff",textDecoration:"none",":hover":{backgroundColor:"#efefef"}}};function Ke(t){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ze(t,e){return(ze=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ue(t);if(e){var i=Ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(t,e){return!e||"object"!==Ke(e)&&"function"!=typeof e?We(t):e}function We(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ue(t){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var He={container:{position:"relative"},panel:{position:"absolute",top:45,right:0,width:200,height:220,background:"#fff",borderRadius:4,border:"1px solid #ccc",zIndex:1,display:"flex",textAlign:"left",paddingTop:15,boxSizing:"content-box"},label:{height:20,marginTop:5,marginBottom:11}},Ye=Ft(Se(function(t){return function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ie(t,e)}(u,e);var n,r,i,o=Ve(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return n=u,(r=[{key:"componentDidMount",value:function(){this._handleClick=this._handleClick.bind(this),document.addEventListener("click",this._handleClick)}},{key:"_handleClick",value:function(){this.wrappedComponent.didClickOutside()}},{key:"render",value:function(){var e=this;return a.a.createElement(t,Oe({ref:function(t){return e.wrappedComponent=t}},this.props))}}])&&Pe(n.prototype,r),i&&Pe(n,i),u}(o.Component)}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ze(t,e)}(o,t);var e,n,r,i=Qe(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).state={isActive:!1,canvasRatio:1},e._toggleActive=e._toggleActive.bind(We(e)),e}return e=o,(n=[{key:"render",value:function(){return a.a.createElement("div",{style:He.container},a.a.createElement("a",{style:Re.button,onClick:this._toggleActive},"Legend ",a.a.createElement("i",{className:"fa fa-sort-desc"})),this._renderPanel())}},{key:"componentWillMount",value:function(){this.setState({isMounted:!0})}},{key:"componentWillUnmount",value:function(){this.setState({isMounted:!1})}},{key:"componentDidUpdate",value:function(t,e){this.state.isActive&&this._drawLegend(),this.state.isActive!==e.isActive&&this.state.isActive&&this.setState({canvasRatio:this.props.calculateCanvasRatio(this)})}},{key:"didClickOutside",value:function(){this.state.isMounted&&this.state.isActive&&this.setState({isActive:!1})}},{key:"_renderPanel",value:function(){var t=this;if(!this.state.isActive)return null;var e=this._getWidth(),n=this._getHeight(),r=this.state.canvasRatio;return a.a.createElement("div",{style:He.panel},a.a.createElement("canvas",{ref:function(e){return t.canvas=e},width:e*r,height:n*r,style:{width:e,height:n}}),a.a.createElement("div",null,a.a.createElement("p",{style:He.label},"Insertion"),a.a.createElement("p",{style:He.label},"Deletion"),a.a.createElement("p",{style:He.label},"Synonymous SNP"),a.a.createElement("p",{style:He.label},"Nonsynonymous SNP"),a.a.createElement("p",{style:He.label},"Intron SNP"),a.a.createElement("p",{style:He.label},"Untranslatable SNP"),a.a.createElement("p",{style:He.label},"Intergenic SNP")))}},{key:"_toggleActive",value:function(t){t&&(t.preventDefault(),t.nativeEvent.stopImmediatePropagation()),this.setState({isActive:!this.state.isActive})}},{key:"_getWidth",value:function(){return 28}},{key:"_getHeight",value:function(){return 220}},{key:"_drawLegend",value:function(){var t=this.state.canvasRatio,e=this._getWidth()*t,n=this._getHeight()*t,r=this.canvas.getContext("2d");r.clearRect(0,0,e,n);var i,o=0;["insertion","deletion"].forEach((function(e){Ee(r,e,"",16,i=31*o+8,16,i,t),o+=1})),["synonymous","nonsynonymous","intron","untranslatable","intergenic"].forEach((function(e){Ee(r,"snp",e,16,i=31*o+8,16,i,t),o+=1}))}}])&&qe(e.prototype,n),r&&qe(e,r),o}(o.Component))));function Xe(t){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(){return(Ze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Je(t,e){return(Je=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rn(t);if(e){var i=rn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return en(this,n)}}function en(t,e){return!e||"object"!==Xe(e)&&"function"!=typeof e?nn(t):e}function nn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rn(t){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var on=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Je(t,e)}(u,t);var e,n,r,o=tn(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=o.call(this,t)).state={DOMWidth:400,offsetLeft:0,offsetTop:0,computedForceData:null,trackedDomains:null,canvasRatio:1,toolTipVisible:!1,toolTipTop:0,toolTipLeft:0,toolTipText:"",toolTipHref:null},e._clearToolTip=e._clearToolTip.bind(nn(e)),e._download=e._download.bind(nn(e)),e._clearMouseOverTimeout=e._clearMouseOverTimeout.bind(nn(e)),e}return e=u,(n=[{key:"render",value:function(){var t=this,e=this.state.DOMWidth,n=this._calculateHeight(),r=this.state.canvasRatio,i=n/r;return a.a.createElement("div",{ref:function(e){return t.wrapper=e},className:"feature-viewer"},this._renderControls(),a.a.createElement("div",{onMouseLeave:this._clearToolTip,style:[xn.container]},this._renderTooltip(),a.a.createElement("canvas",{ref:function(e){return t.canvas=e},width:e*r,height:n,style:[xn.canvas,{width:e,height:n/r}]}),a.a.createElement("div",{ref:function(e){return t.frame=e},style:[xn.frame,{height:i}]},this._renderVoronoi(),null)))}},{key:"componentDidMount",value:function(){var t=this.frame;t.scrollLeft=hn,t.scrollTop=Gn,this.setState({canvasRatio:this.props.calculateCanvasRatio(this)}),this._calculateWidth(),this._drawCanvas(),this.props.canScroll&&t.addEventListener("scroll",this._onScroll),this.props.domains&&this._updateTrackedDomains()}},{key:"_renderTooltip",value:function(){var t={visible:this.state.toolTipVisible,top:this.state.toolTipTop,left:this.state.toolTipLeft,text:this.state.toolTipText,href:this.state.toolTipHref};return a.a.createElement(Ut,Ze({onMouseEnter:this._clearMouseOverTimeout},t))}},{key:"_calculateHeight",value:function(){if(!this.state.trackedDomains)return(Tn+2*An)*this.state.canvasRatio;var t=this._getDomainYScale().range();return t[1]-t[0]+(Tn+3*An+35)*this.state.canvasRatio}},{key:"_setupZoomEvents",value:function(){var t=this,e=this.scroller,n=this._getScale(),r=i.a.behavior.zoom().y(n).on("zoom",(function(){var e=n.domain();t.props.store.setPositionByFeatureTrack(t.props.featureTrackId,e[0],e[1]),t.props.onSetScale(n)}));i.a.select(e).call(r)}},{key:"componentDidUpdate",value:function(t,e){this._drawCanvas();var n=t.forceLength!==this.props.forceLength||t.chromStart!==this.props.chromStart||t.chromEnd!==this.props.chromEnd||t.isProteinMode!==this.props.isProteinMode;if(e.DOMWidth!==this.state.DOMWidth||n){if(this.props.onSetScale){var r=this._getScale();if(this.props.isRelative){var i=r.domain(),o=this.props.focusFeature.chromStart,a=[i[0]+o,i[1]+o];r.domain(a)}var u=this._getAdjustedScale();this.props.onSetScale(u)}this._recalculateForceLayout()}t.domains!==this.props.domains&&(this._updateTrackedDomains(),this._clearToolTip())}},{key:"_renderControls",value:function(){var t=this.props.contigHref?a.a.createElement("a",{href:this.props.contigHref},this.props.contigName):a.a.createElement("span",null,this.props.contigName),e="";return(this.props.isUpstreamMode||this.props.isDownstreamMode)&&(e=this.props.intergenicDisplayName),a.a.createElement("div",{style:[xn.uiContainer]},a.a.createElement("div",null,a.a.createElement("h3",null,"Location: ",t," ",this.props.chromStart,"..",this.props.chromEnd," ",e)),a.a.createElement("div",{style:[xn.btnContainer]},a.a.createElement("div",{style:[xn.btnGroup]},a.a.createElement(Ye,null),a.a.createElement("a",{onClick:this._download,style:[Re.button,xn.button]},"Download ",a.a.createElement("i",{className:"fa fa-download"})))))}},{key:"_recalculateForceLayout",value:function(){var t=this._getRawVariants(),e=i.a.layout.force().nodes(t).size([this._getScale().range()[1],this._calculateHeight()]).charge(-.5).gravity(0).chargeDistance(2*gn);e.start(),this.setState({computedForceData:e.nodes()})}},{key:"_renderVoronoi",value:function(){var t=this;if(!this.state.computedForceData)return null;var e=this._getScale(),n=[],r=this.state.canvasRatio,o=this._calculateHeight()/r,u=[];if(this.state.computedForceData.forEach((function(e){"function"==typeof t.props.onHighlightSegment&&n.push((function(){var n,i,o=t.props.model.getReferenceCoordinatesFromAlignedCoordinates(e.start,e.end,t.props.isProteinMode);i=t.props.isUpstreamMode||t.props.isDownstreamMode?t.props.chromStart:t.props.focusFeature.chromStart,n=t.props.isProteinMode?1===Math.abs(o.end-o.start)?i+e.dna_start-1:"".concat(i+e.dna_start-1,"..").concat(i+e.dna_end-1):1===Math.abs(o.end-o.start)?i+o.start-1:"".concat(i+o.start-1,"..").concat(i+o.end-1);var a=t.props.contigName||"",u="".concat(a," ").concat(n),T="".concat(e.variant_type," at ").concat(u);t.props.onHighlightSegment(e.start-1,e.end-1),t.setState({toolTipVisible:!0,toolTipTop:e.y/r,toolTipLeft:e.x/r,toolTipText:T,toolTipHref:null})})),u.push([e.x/r,e.y/r])})),this.state.trackedDomains){var T,s,c=this._getDomainYScale(),l=this.props.isRelative?0:this.props.focusFeature.chromStart;this.state.trackedDomains.forEach((function(i){T=e(l+i.start),s=e(l+i.end);for(var o=Math.abs(s-T)/un-1;o>=0;o--){var a=(T+o*un)/r,A=c(i._track);n.push((function(){t.setState({toolTipVisible:!0,toolTipTop:A/r,toolTipLeft:a,toolTipText:i.name,toolTipHref:i.href})})),u.push([a,A/r])}}))}var A,f=i.a.geom.voronoi().clipExtent([[0,0],[this.state.DOMWidth,o]])(u),C=(i.a.scale.category10(),f.map((function(e,r){return 0===e.length?null:(A="M"+e.join("L")+"Z",a.a.createElement("path",{key:"pathVn"+r,onMouseOver:function(){t._onMouseOver(n[r])},d:A,fill:"white",stroke:"none",fillOpacity:"0",strokeWidth:"1"}))})));return a.a.createElement("svg",{width:this.state.DOMWidth,height:o,style:{position:"absolute",top:this.state.offsetTop,left:this.state.offsetLeft}},C)}},{key:"_calculateWidth",value:function(){var t=this.wrapper.getBoundingClientRect().width-1;this.setState({DOMWidth:t})}},{key:"_drawCanvas",value:function(){var t=this.canvas.getContext("2d");t.font=An*this.state.canvasRatio+"px 'Lato' sans-serif",t.textAlign="center";var e=this._calculateHeight();t.clearRect(0,0,this.state.DOMWidth*this.state.canvasRatio,e),this._drawHighlightedSegment(t),this._drawAxis(t),this._drawFeatures(t),this._drawVariants(t),this._drawDomains(t)}},{key:"_drawFeatures",value:function(t){var e=this;this.props.isUpstreamMode||this.props.isDownstreamMode?t.fillStyle=Cn:t.fillStyle=fn;var n,r,i,o,a,u,T,s,c,l,A=this._getScale(),f=this.props.isRelative?this.props.chromStart:0,C=this.state.canvasRatio;this.props.features.forEach((function(G){var p,h,d,m,y,v,g;if(l="+"===G.strand,n=(l?G.chromStart:G.chromEnd)-f,r=(l?G.chromEnd:G.chromStart)-f,e.props.forceLength&&(r=e.props.forceLength),i=A(n),o=A(r),a=o-yn*C,T=(u=Sn)*C,s=(u+yn/2)*C,c=(u+yn)*C,e.props.drawIntrons&&G.blockStarts&&G.blockSizes)G.blockStarts.forEach((function(e,i){p=i===G.blockStarts.length-1,l?(h=Math.round(A(e+n)),d=Math.round(A(e+G.blockSizes[i]+n))):(h=Math.round(A(r-e-G.blockSizes[i])),d=Math.round(A(r-e))),p?(t.beginPath(),l?(t.moveTo(h,T),t.lineTo(a,T),t.lineTo(d,s),t.lineTo(a,c),t.lineTo(h,c)):(t.moveTo(h+yn,T),t.lineTo(d,T),t.lineTo(d,c),t.lineTo(h+yn,c),t.lineTo(h,s)),t.closePath(),t.fill()):(m=Math.abs(d-h),t.fillRect(h,T,m,c-T),y=G.blockStarts[i+1],v=l?Math.round(A(n+y)):Math.round(A(r-G.blockStarts[i+1]-G.blockSizes[i+1])),g=l?d:h,t.strokeStyle=dn,t.beginPath(),t.moveTo(g,s),t.lineTo(v,s),t.lineWidth=1*C,t.stroke())}));else if(i>10&&(i=10),e.props.isUpstreamMode||e.props.isDownstreamMode){var S=Math.abs(o-i);t.fillRect(i,T,S,c-T)}else t.beginPath(),t.moveTo(i,T),t.lineTo(a,T),t.lineTo(o,s),t.lineTo(a,c),t.lineTo(i,c),t.closePath(),t.fill()}))}},{key:"_drawHighlightedSegment",value:function(t){if(this.props.highlightedSegment){var e=this._getScale(),n=this.props.highlightedSegment[0];0!==n&&(n+=1);var r=this.props.highlightedSegment[1]+1,i=e(n),o=e(r),a=Math.abs(o-i),u=this._calculateHeight();t.fillStyle=ln,t.fillRect(i,0,a,u)}}},{key:"_drawAxis",value:function(t){var e,n=this,r=this._getScale(),i=r.ticks(),o=this.state.canvasRatio,a=Tn*o,u=this._calculateHeight();t.strokeStyle=mn,t.fillStyle=dn,t.lineWidth=1,i.forEach((function(i){e=Math.round(r(i))+.5,t.beginPath(),t.moveTo(e,0),t.lineTo(e,a-sn*o),t.stroke(),t.fillText(i.toString(),e,a),n.props.domains&&(t.beginPath(),t.moveTo(e,a+3*o),t.lineTo(e,u),t.stroke())}))}},{key:"_drawVariants",value:function(t){this.state.computedForceData;var e,n,r,i,o,a,u=this.state.canvasRatio,T=this._getRawVariants();T.forEach((function(s,c){n=void 0===s.snpType?"":s.snpType,e=T[c],r=s.x/u,i=s.y/u,o=e.x/u,a=e.y/u,Ee(t,s.variant_type.toLowerCase(),n.toLowerCase(),r,i,o,a,u)}))}},{key:"_getRawVariants",value:function(){var t,e,n=this._getScale(),r=this.props.isRelative?0:this.props.focusFeature.chromStart,i=(Sn+yn/2-vn)*this.state.canvasRatio;return this.props.variantData.map((function(o){return t=r+(o.referenceCoordinates[0]+o.referenceCoordinates[1])/2,e=Math.round(n(t)),o.snpType&&o.snpType.toLowerCase(),o.type.toLowerCase(),A.extend(o,{x:e,y:i})}))}},{key:"_drawDomains",value:function(t){var e=this,n=this.state.trackedDomains;if(n){var r=this._getScale(),o=this._getDomainYScale(),a=i.a.scale.category10(),u=this.props.isRelative?0:this.props.focusFeature.chromStart,T=this.state.canvasRatio;t.fillStyle=dn,t.textAlign="left",t.lineWidth=1*T;var s,c,l,A,f,C,G,p,h=An*T;t.fillText("Protein Domains",h,o.range()[0]-2*h);var d=cn/2*T;n.forEach((function(n){s=r(u+n.start),c=r(u+n.end),A=o(n._track),f=A-d,C=A+d,l=s+3*T,G=A-3*T,p=c-s,t.strokeStyle=a(n.sourceId),t.lineWidth=2*e.state.canvasRatio,t.beginPath(),t.moveTo(s,A),t.lineTo(c,A),t.stroke(),t.lineWidth=2*e.state.canvasRatio,t.beginPath(),t.moveTo(s,f),t.lineTo(s,C),t.stroke(),t.beginPath(),t.moveTo(c,f),t.lineTo(c,C),t.stroke(),t.measureText(n.name).width<p&&t.fillText(n.name,l,G)}))}}},{key:"_getScale",value:function(){var t=Math.abs(this.props.chromEnd-this.props.chromStart),e=void 0===this.props.forceLength?t:this.props.forceLength,n=this.props.isRelative?[0,e]:[this.props.chromStart,this.props.chromStart+e];return i.a.scale.linear().domain(n).range([10,(this.state.DOMWidth-10)*this.state.canvasRatio])}},{key:"_getAdjustedScale",value:function(){var t=this,e=this._getScale(),n=e.range().map((function(e){return e/t.state.canvasRatio}));return e.range(n),e}},{key:"_updateTrackedDomains",value:function(){var t=G(this.props.domains);this.props.domains||(t=null),this.setState({trackedDomains:t})}},{key:"_getDomainYScale",value:function(){var t=this.state.trackedDomains,e=t.map((function(t){return t._track})),n=A.uniq(e),r=i.a.min(n),o=i.a.max(n),a=Tn+An+35,u=(o-r)*cn*3+a;return i.a.scale.linear().domain([r,o]).range([a*this.state.canvasRatio,u*this.state.canvasRatio])}},{key:"_onScroll",value:function(t){}},{key:"_clearToolTip",value:function(){this.setState({toolTipVisible:!1})}},{key:"_download",value:function(){var t=this.canvas;if(this.props.downloadCaption){var e=t.getContext("2d"),n=An*this.state.canvasRatio,r=n/2,i=this._calculateHeight()-n/2;e.fillStyle=dn,e.textAlign="left",e.fillText(this.props.downloadCaption,r,i)}var o=t.toDataURL("image/png");o=o.replace(/^data:image\/[^;]/,"data:application/octet-stream"),window.location.href=o,this._drawCanvas()}},{key:"_onMouseOver",value:function(t){this._clearMouseOverTimeout(),this._mouseOverTimeout=setTimeout((function(){t()}),bn)}},{key:"_clearMouseOverTimeout",value:function(){this._mouseOverTimeout&&clearTimeout(this._mouseOverTimeout)}}])&&$e(e.prototype,n),r&&$e(e,r),u}(o.Component);on.propTypes={featureTrackId:C.a.string,canScroll:C.a.bool,chromStart:C.a.number,chromEnd:C.a.number,domains:C.a.array,features:C.a.array,focusFeature:C.a.object,highlightedSegment:C.a.array,onSetScale:C.a.func,variantData:C.a.array,onHighlightSegment:C.a.func,onForceUpdate:C.a.func,isRelative:C.a.bool,drawIntrons:C.a.bool,downloadCaption:C.a.string,contigName:C.a.string,contigHref:C.a.string,forceLength:C.a.number,isProteinMode:C.a.bool,isUpstreamMode:C.a.bool,isDownstreamMode:C.a.bool,intergenicDisplayName:C.a.string},on.defaultProps={canScroll:!0,drawIntrons:!0,isRelative:!1,isProteinMode:!1};var an=Se(Ft(on)),un=30,Tn=70,sn=16,cn=7,ln="#EBDD71",An=14,fn="#09AEB2",Cn="#d6bb1e",Gn=4*Tn,pn=1e4,hn=pn/2,dn="black",mn="#b0b0b0",yn=20,vn=17,gn=4,Sn=23,bn=200,xn={container:{position:"relative",minHeight:Tn},canvas:{position:"absolute",top:0},frame:{position:"relative",overflow:"scroll"},scroller:{width:pn,height:5*Tn},uiContainer:{display:"flex",justifyContent:"space-between"},button:{marginRight:"0.5rem"},btnContainer:{padding:"1rem 0 1rem 1rem",textAlign:"right"},btnGroup:{marginLeft:"1rem",display:"flex",flexDirection:"row-reverse"}};function _n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var wn=[],kn=[],Mn=[],Nn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"getOriginalPosition",value:function(t){var e=A.findWhere(wn,{id:t});return e?e.originalPosition:{}}},{key:"getFeatureTrackData",value:function(t){return A.findWhere(wn,{id:t})}},{key:"getInteractionData",value:function(){return Mn}},{key:"getFeatureTracks",value:function(){return wn}},{key:"getVizTracks",value:function(){return kn}},{key:"addFeatureTrack",value:function(t){t.originalPosition=A.clone(t.position),t.zoomLevel=0,void 0===t.id&&(t.id="featureTrack"+wn.length.toString());var e=A.findIndex(wn,(function(e){return e.id===t.id}));e<0?wn.push(t):wn[e]=t}},{key:"addVizTrack",value:function(){var t=kn.length.toString();kn.push({id:"viz"+t,type:null})}},{key:"setPositionByFeatureTrack",value:function(t,e,n){var r=A.findWhere(wn,{id:t});r.position.chromStart=e,r.position.chromEnd=n}},{key:"zoomByFeatureTrack",value:function(t,e){var n=A.findWhere(wn,{id:t});n.zoomLevel=e;var r=Math.abs(n.originalPosition.chromEnd-n.originalPosition.chromStart),o=i.a.scale.linear().domain([0,1]).range([r,100])(e),a=Math.round((n.position.chromStart+n.position.chromEnd)/2),u=a-o/2,T=a+o/2;this.setPositionByFeatureTrack(t,u,T)}},{key:"removeVizTrack",value:function(t){kn=[]}},{key:"setFixtureData",value:function(){this.addFeatureTrack()}},{key:"getFeatureFixture",value:function(){return{features:[{chrom:"chriii",chromStart:1e3,chromEnd:1500,strand:"+",blockSizes:[500],blockStarts:[0]},{chrom:"chriii",chromStart:1525,chromEnd:1875,strand:"+",blockSizes:[100,50],blockStarts:[0,300]},{chrom:"chriii",chromStart:1600,chromEnd:1450,strand:"-",blockSizes:[150],blockStarts:[0]}],position:{chromStart:1e3,chromEnd:2e3,chrom:"chriii"}}}},{key:"translate",value:function(t,e){var n=A.findWhere(wn,{id:t});n.position.chromStart=n.originalPosition.chromStart+e,n.position.chromEnd=n.originalPosition.chromEnd+e}},{key:"zoom",value:function(t){position.chromStart=t[0],position.chromEnd=t[1]}}])&&_n(e.prototype,n),r&&_n(e,r),t}();function Ln(t){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function En(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dn(t,e){return(Dn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function On(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=In(t);if(e){var i=In(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Pn(this,n)}}function Pn(t,e){return!e||"object"!==Ln(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function In(t){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dn(t,e)}(o,t);var e,n,r,i=On(o);function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,t)}return e=o,(n=[{key:"render",value:function(){var t=this,e=this._getTickNodes(),n=this._getSegmentNodes();return a.a.createElement("svg",{ref:function(e){return t.svg=e},style:{width:"100%",height:40}},e,n)}},{key:"_getSegmentNodes",value:function(){var t=this.props.scale;return A.map(this.props.segments,(function(e,n){return a.a.createElement("line",{key:"segmentLine"+n,x1:t(e.domain[0]-1),x2:t(e.domain[1]-1),y1:39,y2:39,strokeDasharray:e.visible?null:"3px 3px",stroke:"black",fill:"none"})}))}},{key:"_getSegmentNodes",value:function(){var t=this.props.scale;return A.map(this.props.segments,(function(e,n){return a.a.createElement("line",{key:"segmentLine"+n,x1:t(e.domain[0]-1),x2:t(e.domain[1]-1),y1:39,y2:39,strokeDasharray:e.visible?null:"3px 3px",stroke:"black",fill:"none"})}))}},{key:"_getTickNodes",value:function(){var t=this.props.scale,e=A.reduce(this.props.segments,(function(t,e){return e.domain[1]-e.domain[0]==1?t:(t.push(e.domain[1]),t)}),[1]),n=A.map(e,(function(e,n){var r="translate(".concat(t(e-.5),", ").concat(33,")");return a.a.createElement("g",{key:"tick"+n,transform:r},a.a.createElement("text",{textAnchor:"left",transform:"translate(5, 0) rotate(-90)"},e),a.a.createElement("line",{x1:"0",x2:"0",y1:"2",y2:8,stroke:"black",fill:"none"}))}));return a.a.createElement("g",null,n)}}])&&En(e.prototype,n),r&&En(e,r),o}(o.Component);Vn.propTypes={segments:C.a.array.isRequired,scale:C.a.func.isRequired};var Fn=Vn;function jn(t){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kn(t,e){return(Kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bn(t);if(e){var i=Bn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zn(this,n)}}function zn(t,e){return!e||"object"!==jn(e)&&"function"!=typeof e?Qn(t):e}function Qn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bn(t){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kn(t,e)}(u,t);var e,n,r,o=qn(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=o.call(this,t)).state={activeSequenceName:null},e._onScroll=e._onScroll.bind(Qn(e)),e}return e=u,(n=[{key:"render",value:function(){var t=this,e=this._getXScale(),n=A.max(e.range()),r=(this.props.sequences.length+3)*(Hn+3);return a.a.createElement("div",null,this._getLabelsNode(),a.a.createElement("div",{ref:function(e){return t.scroller=e},style:[Yn.scroller]},a.a.createElement("div",{style:{width:n+Un}},a.a.createElement(Fn,{segments:this.props.segments,scale:e}),a.a.createElement("svg",{ref:function(e){return t.svg=e},style:{width:n+Un,height:r}},this._getSegmentNodes(),this._getVisibleSegmentNodes()))))}},{key:"componentDidMount",value:function(){if(this.props.onSetScale){var t=this._getXScale();this.props.onSetScale(t)}this.scroller.onscroll=this._onScroll}},{key:"componentDidUpdate",value:function(t,e){var n=t.isProteinMode!==this.props.isProteinMode;if("function"==typeof this.props.onSetScale&&n){var r=this._getXScale();this.props.onSetScale(r)}}},{key:"_onScroll",value:function(t){if(this.props.onSetScale){var e=this.scroller.scrollLeft,n=this._getXScale(),r=n.range().map((function(t){return t-e})),i=n.copy().range(r);this.props.onSetScale(i)}}},{key:"_onSegmentMouseOver",value:function(t,e,n,r){if(this.props.onHighlightSegment){var i=e.domain[0]-1,o=e.domain[1]-1;this.props.onHighlightSegment(i,o)}this.setState({activeSequenceName:r})}},{key:"_clearMouseOver",value:function(){this.props.onHighlightSegment&&this.props.onHighlightSegment(null),this.setState({activeSequenceName:null})}},{key:"_getLabelsNode",value:function(){var t=this,e=this._getYScale(),n=A.map(this.props.sequences,(function(n,r){var i=[Yn.sequenceLabel,{top:e(n.name)+28}],o=t.state.activeSequenceName===n.name?a.a.createElement("i",{className:"fa fa-chevron-right"}):null;return a.a.createElement("a",{href:n.href,key:"sequenceAlignLabel"+r,target:"_new",style:i},o," ",n.name)}));return a.a.createElement("div",{style:[Yn.sequenceLabelContainer]},n)}},{key:"_getSegmentNodes",value:function(){var t=this,e=this._getXScale();return A.map(this.props.segments,(function(n,r){var i=n.visible?Hn/2:0,o=e(n.domain[0])-i,u=e(n.domain[1])-e(n.domain[0])+i,T=t.props.sequences.length*Un+3;return t.state.mouseOverSegmentIndex,a.a.createElement("rect",{onMouseOver:function(e){t._onSegmentMouseOver(e,n,r)},key:"segRect"+r,x:o,y:0,width:u,height:T,fill:"none",stroke:"none",opacity:.5,style:{pointerEvents:"all"}})}))}},{key:"_getVisibleSequenceNodes",value:function(t,e){var n=this,r=this._getXScale(),i=this._getYScale();return A.map(this.props.sequences,(function(o,u){var T=o.sequence.slice(t.domain[0]-1,t.domain[1]-1),s="translate(".concat(r(t.domain[0]-1),", ").concat(i(o.name),")");return a.a.createElement("text",{onMouseOver:function(r){n._onSegmentMouseOver(r,t,e,o.name)},key:"variantSeqNode"+e+"_"+u,transform:s,fontSize:Un,fontFamily:"Courier"},T)}))}},{key:"_getVisibleSegmentNodes",value:function(){var t=this;return A.reduce(this.props.segments,(function(e,n,r){return n.visible&&(e=e.concat(t._getVisibleSequenceNodes(n,r))),e}),[])}},{key:"_getXScale",value:function(){return function(t){A.sortBy(t,(function(t){return t.domain[0]}));var e=A.reduce(t,(function(t,e){return t.push(e.domain[1]-1),t}),[0]),n=A.reduce(t,(function(t,e){var n=t[t.length-1],r=8.41*(e.domain[1]-e.domain[0]),i=e.visible?r:Math.min(30,r);return t.push(n+=i),t}),[8.41]);return i.a.scale.linear().domain(e).range(n)}(this.props.segments)}},{key:"_getYScale",value:function(){var t=(this.props.sequences.length+1)*(Hn+3),e=A.map(this.props.sequences,(function(t){return t.name}));return i.a.scale.ordinal().domain(e).rangePoints([Hn+3,t+Hn])}}])&&Rn(e.prototype,n),r&&Rn(e,r),u}(o.Component);Wn.propTypes={onHighlightSegment:C.a.func,onSetScale:C.a.func,segments:C.a.array.isRequired,sequences:C.a.array.isRequired,isProteinMode:C.a.bool},Wn.defaultProps={highlightedSegmentDomain:null};var Un=14,Hn=9.25,Yn={scroller:{marginLeft:150,overflow:"scroll"},sequenceLabelContainer:{position:"absolute",height:"100%",background:"inherit",width:150},sequenceLabel:{position:"absolute",right:"1rem"}},Xn=Ft(Wn);function Zn(t){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jn(t,e){return(Jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nr(t);if(e){var i=nr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return er(this,n)}}function er(t,e){return!e||"object"!==Zn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nr(t){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jn(t,e)}(o,t);var e,n,r,i=tr(o);function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,t)}return e=o,(n=[{key:"render",value:function(){var t=this.props.x1Coordinates,e=this.props.x2Coordinates,n=[t[0],t[1]],r=[e[0],e[1]],i="".concat(n[0],",0 ").concat(n[1],",0 ").concat(r[1],",").concat(64," ").concat(r[0],",").concat(64),o=this.props.isVisible?a.a.createElement("polygon",{points:i,fill:"#EBDD71"}):null,u=this._getX1LineNode(),T=this._getX2LineNode();return a.a.createElement("div",{className:"parset",style:{height:70,position:"relative"}},a.a.createElement("svg",{width:"100%",height:70},u,o,T))}},{key:"_getX1LineNode",value:function(){return null}},{key:"_getX2LineNode",value:function(){if(!this.props.isVisible)return null;var t=this.props.x2Coordinates;return a.a.createElement("g",null,a.a.createElement("line",{x1:t[0],x2:t[0],y1:64,y2:70,stroke:"black"}),a.a.createElement("line",{x1:t[0],x2:t[1],y1:64,y2:64,stroke:"black"}),a.a.createElement("line",{x1:t[1],x2:t[1],y1:64,y2:70,stroke:"black"}))}}])&&$n(e.prototype,n),r&&$n(e,r),o}(o.Component);rr.propTypes={isVisible:C.a.bool,x1Coordinates:C.a.array,x2Coordinates:C.a.array},rr.defaultProps={isVisible:!1,text:""};var ir=rr;function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ar(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ur(t,e){return(ur=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lr(t);if(e){var i=lr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sr(this,n)}}function sr(t,e){return!e||"object"!==or(e)&&"function"!=typeof e?cr(t):e}function cr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lr(t){return(lr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ur(t,e)}(o,t);var e,n,r,i=Tr(o);function o(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(e=i.call(this,t))._getNewStore();return e.state={highlightedAlignedSegment:null,parsetVisible:!1,x1Scale:function(){return 0},x2Scale:function(){return 0},store:n},e._highlightSegment=e._highlightSegment.bind(cr(e)),e}return e=o,(n=[{key:"render",value:function(){return a.a.createElement("div",{className:"sgd-viz variant-viewer"},this._renderFeatureViewer(),this._renderParset(),this._renderSequence())}},{key:"_renderFeatureViewer",value:function(){var t,e=this,n=this.state.store.getFeatureTrackData("variantViewer"),r=n.features,i=r[0],o=this._getModel(),u=(this.props.isProteinMode?this.props.variantDataProtein:this.props.variantDataDna).map((function(n){return t=o.getReferenceCoordinatesFromAlignedCoordinates(n.start,n.end,e.props.isProteinMode),A.extend(n,{coordinates:[n.start,n.end],referenceCoordinates:[t.start,t.end],type:n.variant_type})})),T=null,s=this.state.highlightedAlignedSegment;if(s){var c=o.getReferenceCoordinatesFromAlignedCoordinates(s[0],s[1],this.props.isProteinMode);T=[c.start,c.end]}var l,f,C,G=this.props.isProteinMode&&this.props.domains?this.props.domains:null;this.props.isUpstreamMode||this.props.isDownstreamMode?(l=Math.min(this.props.chromStart,this.props.chromEnd),f=Math.max(this.props.chromStart,this.props.chromEnd)):(l=Math.min(n.position.chromStart,n.position.chromEnd),f=Math.max(n.position.chromStart,n.position.chromEnd)),this.props.isProteinMode&&this.props.proteinLength&&(C=this.props.proteinLength),(this.props.isUpstreamMode||this.props.isDownstreamMode)&&(C=this.props.chromEnd-this.props.chromStart+1);var p=!0;return(this.props.isProteinMode||this.props.isUpstreamMode||this.props.isDownstreamMode)&&(p=!1),a.a.createElement(an,{featureTrackId:"variantViewer",store:this.state.store,domains:G,canScroll:!0,chromStart:l,chromEnd:f,orientation:this.props.orientation,contigName:this.props.contigName,contigHref:this.props.contigHref,downloadCaption:this.props.downloadCaption,features:r,focusFeature:i,highlightedSegment:T,onSetScale:function(t){e.setState({x1Scale:t})},variantData:u,onHighlightSegment:this._highlightSegment,onForceUpdate:function(){e.forceUpdate()},isRelative:!0,drawIntrons:p,forceLength:C,model:o,isProteinMode:this.props.isProteinMode,isUpstreamMode:this.props.isUpstreamMode,isDownstreamMode:this.props.isDownstreamMode,intergenicDisplayName:this.props.intergenicDisplayName})}},{key:"_renderParset",value:function(){var t=this,e=this.state.highlightedAlignedSegment||[0,0],n=this._getModel().getReferenceCoordinatesFromAlignedCoordinates(e[0],e[1],this.props.isProteinMode);n=[n.start,n.end];var r=this.props.isRelative?0:this.props.chromStart,i=n.map((function(e){return t.state.x1Scale(e+r)})),o=e.map((function(e){return t.state.x2Scale(e)+150}));return 1===Math.abs(n[1]-n[0])&&("+"===this.props.strand?n[0]:n[1]),a.a.createElement(ir,{ref:function(e){return t.parset=e},isVisible:!0,x1Coordinates:i,x2Coordinates:o})}},{key:"_renderSequence",value:function(){var t=this,e=this._getModel(),n=e.formatSequences(this.props.isProteinMode,this.props.strainIds),r=e.formatSegments(this.props.isProteinMode);return a.a.createElement("div",null,a.a.createElement(Xn,{ref:function(e){return t.multiAlignmentViewer=e},segments:r,sequences:n,onSetScale:function(e){t.setState({x2Scale:e})},onHighlightSegment:this._highlightSegment,highlightedSegmentDomain:this.state.highlightedAlignedSegment,isProteinMode:this.props.isProteinMode}))}},{key:"_highlightSegment",value:function(t,e){this.setState({highlightedAlignedSegment:[t,e]})}},{key:"_getModel",value:function(){return new Ge({alignedDnaSequences:this.props.alignedDnaSequences,alignedProteinSequences:this.props.alignedProteinSequences,variantDataDna:this.props.variantDataDna,variantDataProtein:this.props.variantDataProtein})}},{key:"_getNewStore",value:function(){var t=this.props.chromStart,e=this.props.chromEnd,n=this.props.strand||"+",r=this.props.blockSizes||[Math.abs(e-t)],i=this.props.blockStarts||[0],o={id:"variantViewer",position:{chromStart:t,chromEnd:e},features:[{chrom:this.props.contigName||"",chromStart:t,chromEnd:e,strand:n,blockSizes:r,blockStarts:i}]},a=new Nn;return a.addFeatureTrack(o),a}}])&&ar(e.prototype,n),r&&ar(e,r),o}(o.Component);Ar.propTypes={name:C.a.string,chromStart:C.a.number.isRequired,chromEnd:C.a.number.isRequired,contigName:C.a.string,contigHref:C.a.string,alignedDnaSequences:C.a.array,alignedProteinSequences:C.a.array,variantDataDna:C.a.array,variantDataProtein:C.a.array,dnaLength:C.a.number,proteinLength:C.a.number,strand:C.a.string,orientation:C.a.string,isProteinMode:C.a.bool,isUpstreamMode:C.a.bool,isDownstreamMode:C.a.bool,intergenicDisplayName:C.a.string,domains:C.a.array,downloadCaption:C.a.string};var fr=Ar;function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"ProteinViewer",(function(){return hr})),n.d(e,"VariantViewer",(function(){return pr})),n.d(e,"ProteinViewerComponent",(function(){return Ae})),n.d(e,"VariantViewerComponent",(function(){return fr}));var Gr=n(53),pr=function t(e){Cr(this,t),void 0===e&&(e={}),e.el=e.el||document.body;var n="fixture"===e.config?Gr:e.config,r=n.alignedDnaSequences,i=n.alignedProteinSequences,o=n.variantDataDna,a=n.variantDataProtein,u=n.chromStart,T=n.chromEnd,s=n.blockStarts,c=n.blockSizes,l=n.name,A=n.contigName,f=n.contigHref,C=n.dnaLength,G=n.proteinLength,p=n.strand,h=n.domains,d=n.isProteinMode,m=n.downloadCaption,y=n.isRelative;ReactDOM.render(React.createElement(fr,{name:l,alignedDnaSequences:r,alignedProteinSequences:i,variantDataDna:o,variantDataProtein:a,chromStart:u,chromEnd:T,blockStarts:s,blockSizes:c,contigName:A,contigHref:f,dnaLength:C,proteinLength:G,strand:p,domains:h,isProteinMode:d,downloadCaption:m,isRelative:y}),e.el)},hr=function t(e){Cr(this,t),void 0===e&&(e={}),e.el=e.el||document.body,ReactDOM.render(React.createElement(Ae,{data:e.config.domains,locusData:e.config.locus}),e.el)}}]);