(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1017:function(e,n,t){var r={"./language.json":850,"./sidebar.json":851,"./translation.json":852};function o(e){return i(e).then((function(e){return t.t(e,3)}))}function i(e){return Promise.resolve().then((function(){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}))}o.keys=function(){return Object.keys(r)},o.resolve=i,o.id=1017,e.exports=o},1118:function(e,n,t){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var l=function(e,n){var t=n||0,r=a;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")};n.a=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n)for(var a=0;a<16;++a)n[r+a]=o[a];return n||l(o)}},118:function(e,n,t){"use strict";var r=t(265),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function l(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!=typeof t){if(h){var o=p(t);o&&o!==h&&e(n,o,r)}var a=s(t);f&&(a=a.concat(f(t)));for(var c=l(n),b=l(t),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||b&&b[y]||c&&c[y])){var g=d(t,y);try{u(n,y,g)}catch(e){}}}}return n}},203:function(e,n,t){e.exports=t(868)()},206:function(e,n,t){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var t,c,l=a(e),u=1;u<arguments.length;u++){for(var s in t=Object(arguments[u]))o.call(t,s)&&(l[s]=t[s]);if(r){c=r(t);for(var f=0;f<c.length;f++)i.call(t,c[f])&&(l[c[f]]=t[c[f]])}}return l}},265:function(e,n,t){"use strict";e.exports=t(870)},274:function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[t].concat(i).concat([o]).join("\n")}var a;return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t})).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];null!=a[0]&&r[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),n.push(a))}},n}},653:function(e,n,t){var r,o,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i=function(){"use strict";return function(e){function n(n){if(n)try{e(n+"}")}catch(e){}}return function(t,r,o,i,a,c,l,u,s,f){switch(t){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(n)}}}},"object"===a(n)&&void 0!==e?e.exports=i():(r=i(),void 0===(o="function"==typeof r?r.call(n,t,n,e):r)||(e.exports=o))},668:function(e,n,t){"use strict";function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function o(e){return"Undefined"===r(e)}function i(e){return"Null"===r(e)}function a(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function c(e){return"Array"===r(e)}function l(e){return"Symbol"===r(e)}var u,s,f,d,p;u=i,s=o;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function h(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),o=0;for(n=0;n<t;n++)for(var i=arguments[n],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function b(e,n,t,r){var o=r.propertyIsEnumerable(n)?"enumerable":"nonenumerable";"enumerable"===o&&(e[n]=t),"nonenumerable"===o&&Object.defineProperty(e,n,{value:t,enumerable:!1,writable:!0,configurable:!0})}function m(e,n,t){if(!a(n))return t&&c(t)&&t.forEach((function(t){n=t(e,n)})),n;var r={};a(e)&&(r=h(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(t,r){var o=e[r];return(!l(r)&&!Object.getOwnPropertyNames(n).includes(r)||l(r)&&!Object.getOwnPropertySymbols(n).includes(r))&&b(t,r,o,e),t}),{}));return h(Object.getOwnPropertyNames(n),Object.getOwnPropertySymbols(n)).reduce((function(r,o){var i=n[o],l=a(e)?e[o]:void 0;return t&&c(t)&&t.forEach((function(e){i=e(l,i)})),void 0!==l&&a(i)&&(i=m(l,i,t)),b(r,o,i,n),r}),r)}n.a=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=null,o=e;return a(e)&&e.extensions&&1===Object.keys(e).length&&(o={},r=e.extensions),n.reduce((function(e,n){return m(e,n,r)}),o)}},674:function(e,n){var t,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],s=!1,f=-1;function d(){s&&l&&(s=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!s){var e=c(d);s=!0;for(var n=u.length;n;){for(l=u,u=[];++f<n;)l&&l[f].run();f=-1,n=u.length}l=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function b(){}o.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new h(e,n)),1!==u.length||s||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},675:function(e,n,t){"use strict";e.exports=function(e,n){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||n?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},681:function(e,n,t){"use strict";e.exports=t(867)},684:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return e&&"object"===r(e)&&"default"in e?e.default:e}var i=t(1),a=o(i),c=o(t(969));function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,n,t){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==t&&"function"!=typeof t)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,s=[];function f(){o=e(s.map((function(e){return e.props}))),d.canUseDOM?n(o):t&&(o=t(o))}var d=function(e){var n,t;function i(){return e.apply(this,arguments)||this}t=e,(n=i).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,i.peek=function(){return o},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=o;return o=void 0,s=[],e};var l=i.prototype;return l.shouldComponentUpdate=function(e){return!c(e,this.props)},l.componentWillMount=function(){s.push(this),f()},l.componentDidUpdate=function(){f()},l.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),f()},l.render=function(){return a.createElement(r,this.props)},i}(i.Component);return l(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),l(d,"canUseDOM",u),d}}},685:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty,c="undefined"!=typeof Element;e.exports=function(e,n){try{return function e(n,t){if(n===t)return!0;if(n&&t&&"object"==r(n)&&"object"==r(t)){var l,u,s,f=o(n),d=o(t);if(f&&d){if((u=n.length)!=t.length)return!1;for(l=u;0!=l--;)if(!e(n[l],t[l]))return!1;return!0}if(f!=d)return!1;var p=n instanceof Date,h=t instanceof Date;if(p!=h)return!1;if(p&&h)return n.getTime()==t.getTime();var b=n instanceof RegExp,m=t instanceof RegExp;if(b!=m)return!1;if(b&&m)return n.toString()==t.toString();var y=i(n);if((u=y.length)!==i(t).length)return!1;for(l=u;0!=l--;)if(!a.call(t,y[l]))return!1;if(c&&n instanceof Element&&t instanceof Element)return n===t;for(l=u;0!=l--;)if(!("_owner"===(s=y[l])&&n.$$typeof||e(n[s],t[s])))return!1;return!0}return n!=n&&t!=t}(e,n)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},690:function(e,n,t){"use strict";t.r(n);t(678),t(679),t(680),t(866);var r=t(1),o=t.n(r),i=t(88),a=t.n(i),c=t(669),l=t(677);function u(e){return function(n){var t=n.dispatch,r=n.getState;return function(n){return function(o){return"function"==typeof o?o(t,r,e):n(o)}}}}var s=u();s.withExtraArgument=u;var f=s,d=t(726),p=t.n(d),h=t(694),b=t(699),m=t(733),y=t(693),g=t(700),v=function(e){return function(n){return function(t){var r=e.getState(),o=n(t),i=p.a.parse(window.location.search),a=window.location.pathname;switch(t.type){case h.z:case h.hb:0===(i=t.query).n&&delete i.n,i.tt&&delete i.tt;break;case h.m:i.branchLabel=r.controls.defaults.selectedBranchLabel===t.value?void 0:t.value;break;case h.y:i.gmin=t.zoomc[0]===r.controls.absoluteZoomMin?void 0:t.zoomc[0],i.gmax=t.zoomc[1]>=r.controls.absoluteZoomMax?void 0:t.zoomc[1];break;case h.J:i.c=t.colorBy===r.controls.defaults.colorBy?void 0:t.colorBy;break;case h.Z:i.ci="ci"in i?void 0:null;break;case h.c:if(t.trait===y.y){i.gt=Object(g.e)(t.values);break}var c=t.trait===y.M?"s":"f_".concat(t.trait);i[c]=t.values.filter((function(e){return e.active})).map((function(e){return e.value})).join(",");break;case h.s:var l=t.scatterVariables;i.scatterX="scatter"===t.layout&&r.controls.distanceMeasure!==l.x?l.x:void 0,i.scatterY="scatter"===t.layout&&r.controls.colorBy!==l.y?l.y:void 0,i.branches="scatter"!==t.layout&&"clock"!==t.layout||!1!==l.showBranches?void 0:"hide",i.regression="scatter"===t.layout&&!0===l.showRegression?"show":"clock"===t.layout&&!1===l.showRegression?"hide":void 0,i.l=t.layout===r.controls.defaults.layout?void 0:t.layout,Object(m.c)(r.controls.temporalConfidence.exists,r.controls.distanceMeasure,i.l)||(i.ci=void 0);break;case h.q:i.r=t.data===r.controls.defaults.geoResolution?void 0:t.data;break;case h.ab:t.data===r.controls.defaults.showTransmissionLines?i.transmissions=void 0:i.transmissions=t.data?"show":"hide";break;case h.r:i.lang=t.data===r.general.defaults.language?void 0:t.data;break;case h.o:i.m=t.data===r.controls.defaults.distanceMeasure?void 0:t.data,Object(m.c)(r.controls.temporalConfidence.exists,i.m,r.controls.layout)||(i.ci=void 0);break;case h.w:i.p=!0===t.notInURLState?void 0:t.data;break;case h.X:"sidebar"in i&&(i.sidebar=void 0);break;case h.R:"legend"in i&&(i.legend=void 0);break;case h.W:r.controls.defaults.panels.length===t.panelsToDisplay.length&&0===r.controls.defaults.panels.filter((function(e){return!t.panelsToDisplay.includes(e)})).length?i.d=void 0:i.d=t.panelsToDisplay.join(","),i.p=t.panelLayout;break;case h.x:i.tl=t.key===y.M?void 0:t.key;break;case h.n:"Pause"===r.controls.animationPlayPauseButton?(i.dmin=void 0,i.dmax=void 0):(i.dmin=t.dateMin===r.controls.absoluteDateMin?void 0:t.dateMin,i.dmax=t.dateMax===r.controls.absoluteDateMax?void 0:t.dateMax);break;case h.gb:i.label=t.cladeName?t.cladeName:void 0;break;case h.H:"Play"===t.data&&(i.animate=void 0,i.dmin=r.controls.dateMin===r.controls.absoluteDateMin?void 0:r.controls.dateMin,i.dmax=r.controls.dateMax===r.controls.absoluteDateMax?void 0:r.controls.dateMax);break;case h.I:var u=Object(b.g)(window.NEXTSTRAIN.animationStartPoint),s=Object(b.g)(window.NEXTSTRAIN.animationEndPoint),f=r.controls.mapAnimationShouldLoop?"1":"0",d=r.controls.mapAnimationCumulative?"1":"0",v=r.controls.mapAnimationDurationInMilliseconds;i.animate="".concat(u,",").concat(s,",").concat(f,",").concat(d,",").concat(v);break;case h.M:t.query?i=t.query:t.displayComponent!==r.general.displayComponent&&(i={});break;case h.V:!0===t.narrativeOn?i={n:r.narrative.blockIdx}:!1===t.narrativeOn&&(i=p.a.parse(r.narrative.blocks[r.narrative.blockIdx].query))}switch(t.type){case h.z:if(t.pathnameShouldBe&&!t.narrative){a=t.pathnameShouldBe;break}if(t.tree.name&&t.treeToo&&t.treeToo.name&&!t.narrative){var w="".concat(t.tree.name,":").concat(t.treeToo.name);window.location.pathname.includes(w)||(a=w)}break;case h.V:!0===t.narrativeOn?a=r.narrative.pathname:!1===t.narrativeOn&&(a=r.narrative.blocks[r.narrative.blockIdx].dataset);break;case h.M:"main"===t.displayComponent||"datasetLoader"===t.displayComponent||"splash"===t.displayComponent?a=t.path||a:a.startsWith("/".concat(t.displayComponent))||(a=t.displayComponent);break;case h.O:a=a.split(":")[0];break;case h.bb:var O=t.tree.name,x=t.treeToo.name;a=O.concat(":",x)}Object.keys(i).filter((function(e){return""===i[e]})).forEach((function(e){return delete i[e]})),r.narrative.display&&Object.keys(i).filter((function(e){return"n"!==e})).forEach((function(e){return delete i[e]}));var S=p.a.stringify(i).replace(/%2C/g,",").replace(/%2F/g,"/").replace(/%3A/g,":");if(S&&(S="?"+S),a.startsWith("/")||(a="/"+a),a!==window.location.pathname||S!==window.location.search){var A=a;S&&(A+=S),t.pushState?window.history.pushState({},"",A):window.history.replaceState({},"",A),n({type:h.eb,pathname:a})}else a!==r.general.pathname&&t.type===h.M&&n({type:h.eb,pathname:a});return o}}};function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function x(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e){if(e){for(var n=window.location.pathname.replace(/^\//,"").replace(/\/$/,"").split(":")[0],t=0;t<e.length;t++)if(e[t].request===n)return e[t].buildUrl;return!1}}var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loaded:!1,metadata:null,rootSequence:void 0,colorOptions:y.h},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.A:return Object.assign({},e,{loaded:!1});case h.hb:case h.z:return n.metadata;case h.a:var t=Object.assign({},e.colorings,n.newColorings),r=e.geoResolutions;return n.newGeoResolution&&(r=r?[].concat(S(r),[n.newGeoResolution]):[n.newGeoResolution]),Object.assign({},e,{colorings:t,geoResolutions:r});case h.P:if(e.buildUrl)return e;var o=E(n.data.datasets);return o?Object.assign({},e,{buildUrl:o}):e;case h.Q:return O(O({},e),{},{rootSequence:n.data});default:return e}},C=t(784),B=t(820),T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loaded:!1,showCounts:!1},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.y:return Object.assign({},e,{zoomMax:n.zoomc[1],zoomMin:n.zoomc[0]});case h.A:return{loaded:!1,showCounts:!1};case h.hb:case h.z:return n.entropy;case h.D:return Object.assign({},e,{loaded:!0,bars:n.data,maxYVal:n.maxYVal});case h.C:return Object.assign({},e,{showCounts:n.showCounts});default:return e}},D=t(780),k=function(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].id===n)return t;return-1},_=function(e){return{message:e.message||"",details:e.details||"",notificationType:e.notificationType,classes:["notification",e.notificationType],id:e.id}},M=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{stack:[],counter:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.b:return(e=n.stack.slice()).push(_(t)),Object.assign({},n,{counter:t.id,stack:e});case h.N:return(e=n.stack.slice()).splice(k(e,t.id),1),Object.assign({},n,{stack:e});default:return n}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loaded:!1,blocks:null,blockIdx:void 0,pathname:void 0,display:!1,title:void 0},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.A:return Object.assign({},e,{loaded:!1,display:!1});case h.z:if(n.narrative){var t=n.narrative;return{loaded:!0,display:!0,blocks:t,title:t[0].__html.match(/>(.+?)</)[1],pathname:window.location.pathname,blockIdx:n.query.n||0}}return e;case h.hb:return n.query.hasOwnProperty("n")?Object.assign({},e,{blockIdx:n.query.n}):e;case h.V:return e.loaded?Object.assign({},e,{display:n.narrativeOn}):(console.warn("Attempted to toggle narrative that was not loaded"),e);default:return e}},R=t(696),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(C.b)(),n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.A:return Object.assign({},e,{loaded:!1});case h.hb:case h.z:return n.treeToo?n.treeToo:Object(C.b)();case h.bb:return n.treeToo}if(!e.loaded)return e;switch(n.type){case h.O:return Object(C.b)();case h.n:case h.gb:return n.tangleTipLookup?Object.assign({},e,{tangleTipLookup:n.tangleTipLookup,visibility:n.visibilityToo,visibilityVersion:n.visibilityVersionToo,branchThickness:n.branchThicknessToo,branchThicknessVersion:n.branchThicknessVersionToo,idxOfInViewRootNode:n.idxOfInViewRootNodeToo,idxOfFilteredRoot:n.idxOfFilteredRootToo,selectedStrain:n.selectedStrain}):e;case h.fb:return Object.assign({},e,{tipRadii:n.dataToo,tipRadiiVersion:n.version});case h.J:return n.nodeColorsToo?Object.assign({},e,{nodeColors:n.nodeColorsToo,nodeColorsVersion:n.version}):e;case h.a:return Object(R.a)(e.nodes,n.newNodeAttrs),e;default:return e}},I=t(720),N=t(713),L=p.a.parse(window.location.search),z={language:"en"},U=function(){return Object(N.b)("entryPage")?Object(N.a)("entryPage"):Object(I.b)(window.location.pathname)},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{defaults:z,displayComponent:U(),errorMessage:void 0,pathname:window.location.pathname,language:L.lang?L.lang:z.language},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.M:var t={displayComponent:n.displayComponent,errorMessage:n.errorMessage};return n.path&&(t.pathname=n.path),Object.assign({},e,t);case h.eb:return Object.assign({},e,{pathname:n.pathname});case h.r:return Object.assign({},e,{language:n.data});case h.z:var r=n.metadata.displayDefaults.language||z.language;return Object.assign({},e,{defaults:Object.assign({},e.defaults,{language:r}),language:L.lang?L.lang:r});default:return e}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{jsons:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.f:return{jsons:Object.assign(e.jsons,n.jsons)};case h.z:return{jsons:{}};default:return e}};function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){H(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function H(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{error:void 0,loaded:!1,collections:[],collectionToDisplay:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h.G:return G(G({},e),{},{loaded:!0,collections:n.collections,collectionToDisplay:n.collectionToDisplay});case h.t:return G(G({},e),{},{loaded:!0,collectionToDisplay:n.collectionToDisplay});case h.db:return G(G({},e),{},{loaded:!0,error:n.data});default:return e}},$=Object(l.b)({metadata:j,tree:C.a,frequencies:B.a,controls:m.a,entropy:T,browserDimensions:D.b,notifications:M,narrative:P,treeToo:F,general:V,jsonCache:q,measurements:W}),X=t(753);function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){Z(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Z(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Q,ee,ne,te=function(e){return function(n){return function(t){if(t.type!==h.J)return n(t);var r=e.getState(),o=r.controls,i=r.metadata,a=r.tree;if("scatter"!==o.layout||!Object(g.f)(o.colorBy))return n(t);var c=K({},o.scatterVariables),l=!1,u=Object(g.g)(t.colorBy);if(u&&(l=!0,"gt"===c.x&&(c.xLabel=u,Object(X.a)(c,t.colorScale,"x")),"gt"===c.y&&(c.yLabel=u,Object(X.a)(c,t.colorScale,"y"))),!u&&("gt"===c.x||"gt"===c.y)){l=!0;var s=Object(X.c)(i.colorings,t.colorBy);if("gt"===c.y){var f=Object(X.d)(s,[t.colorBy],c.x),d=f.value,p=f.label;c.y=d,c.yLabel=p,Object(X.b)(c,"y",o,a,i)}if("gt"===c.x){var b=Object(X.d)(s,[t.colorBy],c.y),m=b.value,y=b.label;c.x=m,c.xLabel=y,Object(X.b)(c,"x",o,a,i)}}return n(l?K(K({},t),{},{scatterVariables:c}):t)}}},re=function(e){var n=[f,te,v],t=Object(l.c)(l.a.apply(void 0,n),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e});return Object(l.d)($,e,t)},oe=t(714),ie=t(982),ae=t(203),ce=t.n(ae),le=t(967),ue=t.n(le);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,n){return(de=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function pe(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=me(e);if(n){var o=me(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return he(this,t)}}function he(e,n){if(n&&("object"===se(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ye(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var ge,ve=Object(c.b)((function(e){return{displayNarrative:e.narrative.display,canTogglePanelLayout:e.controls.canTogglePanelLayout,controlDefaults:e.controls.defaults}}))((ne=ee=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&de(e,n)}(i,e);var n,t,r,o=pe(i);function i(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),ye(be(n=o.call(this,e)),"onURLChanged",(function(){return n.props.dispatch(Object(I.a)())})),n}return n=i,(t=[{key:"componentDidMount",value:function(){window.addEventListener("resize",ue()(this.handleResizeByDispatching.bind(this),500,{leading:!0,trailing:!0})),window.addEventListener("popstate",this.onURLChanged)}},{key:"handleResizeByDispatching",value:function(){var e=this;this.props.dispatch((function(n,t){var r=t().browserDimensions.browserDimensions,o={width:window.innerWidth,height:window.innerHeight,docHeight:window.document.body.clientHeight};n({type:h.e,data:o}),e.props.displayNarrative||"sidebarOpen"in e.props.controlDefaults||(r.width>y.j&&o.width<y.j?n({type:h.X,value:!1}):r.width<y.j&&o.width>y.j&&n({type:h.X,value:!0})),!e.props.displayNarrative&&e.props.canTogglePanelLayout&&(r.width<y.Q&&o.width>=y.Q?n({type:h.w,data:"grid",notInURLState:!0}):r.width>y.Q&&o.width<=y.Q&&n({type:h.w,data:"full",notInURLState:!0}))}))}},{key:"render",value:function(){return null}}])&&fe(n.prototype,t),r&&fe(n,r),i}(o.a.Component),ye(ee,"propTypes",{dispatch:ce.a.func.isRequired}),Q=ne))||Q,we=t(788);function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Se(e,n){return(Se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Ae(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=je(e);if(n){var o=je(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Ee(this,t)}}function Ee(e,n){if(n&&("object"===Oe(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce,Be,Te,De=Object(c.b)()(ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Se(e,n)}(i,e);var n,t,r,o=Ae(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return n=i,(t=[{key:"componentWillMount",value:function(){this.props.dispatch(Object(we.b)()),this.props.dispatch({type:h.M,displayComponent:"main"})}},{key:"render",value:function(){return null}}])&&xe(n.prototype,t),r&&xe(n,r),i}(o.a.Component))||ge,ke=t(847),_e=t(683),Me=Object(c.b)((function(e){return{pathname:e.general.pathname,metadata:e.metadata,general:e.general}}))((function(e){var n=e.metadata,t="auspice";Object(N.b)("browserTitle")&&(t=Object(N.a)("browserTitle"));var r=window.location.pathname.replace(/^\//g,"").replace(/\/$/g,"").replace(/\//g," / ").replace(/:/g," : ");return r&&(t=t+" / "+r),o.a.createElement(_e.Helmet,null,o.a.createElement("title",null,t),n&&n.title?o.a.createElement("meta",{name:"description",content:n.title}):null)})),Pe=t(970),Re=t.n(Pe);function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,n){return(Ne=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Le(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=Ue(e);if(n){var o=Ue(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return ze(this,t)}}function ze(e,n){if(n&&("object"===Fe(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve,qe,Ye,Ge,He=Object(c.b)((function(e){return{stack:e.notifications.stack,pageWidth:e.browserDimensions.browserDimensions.width}}))((Te=Be=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ne(e,n)}(a,e);var n,t,r,i=Le(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"closeIcon",value:function(e){var n=this;return o.a.createElement("div",{onClick:function(){n.removeNotificationCallback(e.id)},style:{cursor:"pointer"},className:"close-icon"},o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 15 15"},o.a.createElement("polygon",{id:"Shape",points:"7.48 8 11.23 11.75 9.75 13.23 6 9.48 2.25 13.23 0.77 11.75 4.52 8 0.77 4.25 2.25 2.77 6 6.52 9.75 2.77 11.23 4.25"})))}},{key:"generateEl",value:function(e){return o.a.createElement("div",{key:e.id,className:e.classes.join(" ")},o.a.createElement("div",{className:"icon icon-main"},function(e){switch(e){case"info":return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 16 16"},o.a.createElement("path",{id:"Shape",d:"M14,1H2C1.5,1,1,1.4,1,2v8c0,0.6,0.5,1,1,1h2v3.5L7.5,11H14c0.6,0,1-0.4,1-1V2C15,1.4,14.6,1,14,1L14,1z"}));case"warning":return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 16 16"},o.a.createElement("path",{d:"M8.865,1.51999998 C8.685,1.20999998 8.355,1.01999998 7.995,1.01999998 C7.635,1.01999998 7.305,1.20999998 7.125,1.51999998 L0.275000001,13.5 C0.0950000006,13.81 0.0950000006,14.19 0.275000001,14.5 C0.465000001,14.81 0.795000001,15 1.145,15 L14.845,15 C15.205,15 15.535,14.81 15.705,14.5 C15.875,14.19 15.885,13.81 15.715,13.5 L8.865,1.51999998 Z M8.995,13 L6.995,13 L6.995,11 L8.995,11 L8.995,13 L8.995,13 Z M8.995,9.99999998 L6.995,9.99999998 L6.995,5.99999998 L8.995,5.99999998 L8.995,9.99999998 L8.995,9.99999998 Z",id:"Shape"}));case"success":return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 13 16"},o.a.createElement("polygon",{id:"Shape",points:"12 5 4 13 0 9 1.5 7.5 4 10 10.5 3.5"}));case"error":return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 13 16"},o.a.createElement("path",{d:"M5.05,0.31 C5.86,2.48 5.46,3.69 4.53,4.62 C3.55,5.67 1.98,6.45 0.9,7.98 C-0.55,10.03 -0.8,14.51 4.43,15.68 C2.23,14.52 1.76,11.16 4.13,9.07 C3.52,11.1 4.66,12.4 6.07,11.93 C7.46,11.46 8.37,12.46 8.34,13.6 C8.32,14.38 8.03,15.04 7.21,15.41 C10.63,14.82 11.99,11.99 11.99,9.85 C11.99,7.01 9.46,6.63 10.74,4.24 C9.22,4.37 8.71,5.37 8.85,6.99 C8.94,8.07 7.83,8.79 6.99,8.32 C6.32,7.91 6.33,7.13 6.93,6.54 C8.18,5.31 8.68,2.45 5.05,0.32 L5.03,0.3 L5.05,0.31 Z",id:"Shape"}));default:return""}}(e.notificationType)),o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"message item"},e.message),o.a.createElement("div",{className:"detail item"},o.a.createElement("div",{className:"detail-content"},"string"==typeof e.details?e.details:e.details.map((function(e){return o.a.createElement("div",{key:e},e)}))))),"error"===e.notificationType?this.closeIcon(e):null)}},{key:"removeNotificationCallback",value:function(e){this.props.dispatch({type:h.N,id:e})}},{key:"render",value:function(){var e=this;return this.props.pageWidth<600?null:o.a.createElement(Re.a,{className:"notifications",transitionName:"notification",transitionEnterTimeout:500,transitionLeaveTimeout:500,style:{zIndex:2e4}},this.props.stack.map((function(n){return e.generateEl(n)})))}}])&&Ie(n.prototype,t),r&&Ie(n,r),a}(o.a.Component),Ve=Be,qe="propTypes",Ye={stack:ce.a.array.isRequired,dispatch:ce.a.func.isRequired,pageWidth:ce.a.number.isRequired},qe in Ve?Object.defineProperty(Ve,qe,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):Ve[qe]=Ye,Ce=Te))||Ce;function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Xe(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,n){return(Je=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Ke(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=Qe(e);if(n){var o=Qe(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Ze(this,t)}}function Ze(e,n){if(n&&("object"===We(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var en=Object(r.lazy)((function(){return Promise.all([t.e(0),t.e(1),t.e(6)]).then(t.bind(null,1112))})),nn=Object(r.lazy)((function(){return Promise.all([t.e(0),t.e(7)]).then(t.bind(null,1116))})),tn=Object(r.lazy)((function(){return t.e(14).then(t.bind(null,1119))}));var rn=Object(c.b)((function(e){return{displayComponent:e.general.displayComponent}}))(Ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Je(e,n)}(c,e);var n,t,i,a=Ke(c);function c(){return $e(this,c),a.apply(this,arguments)}return n=c,(t=[{key:"render",value:function(){switch(this.props.displayComponent){case"main":return o.a.createElement(r.Suspense,{fallback:o.a.createElement(ke.b,null)},o.a.createElement(en,null));case"splash":return o.a.createElement(r.Suspense,{fallback:null},o.a.createElement(nn,null));case"status":return o.a.createElement(r.Suspense,{fallback:o.a.createElement(ke.b,null)},o.a.createElement(tn,null));case"datasetLoader":return o.a.createElement(De,null);default:return console.error("reduxStore.general.displayComponent is invalid (".concat(this.props.displayComponent,")")),o.a.createElement(nn,null)}}}])&&Xe(n.prototype,t),i&&Xe(n,i),c}(o.a.Component))||Ge,on=Object(ie.hot)((function(){return o.a.createElement("div",null,o.a.createElement(Me,null),o.a.createElement(ve,null),o.a.createElement(He,null),o.a.createElement(rn,null))})),an=t(676),cn=t(123),ln=(t(983),t(985),t(987),t(989),t(991),t(993),t(995),re());window.NEXTSTRAIN||(window.NEXTSTRAIN={}),Object(oe.c)(),an.a.use(cn.e).init({resources:{},lng:"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},defaultNS:"translation"});for(var un=function(){var e=fn[sn];t(1017)("./".concat(e,".json")).then((function(n){return an.a.addResourceBundle("en",e,n.default)}))},sn=0,fn=["language","sidebar","translation"];sn<fn.length;sn++)un();a.a.render(o.a.createElement(c.a,{store:ln},o.a.createElement(on,null)),document.getElementById("root"))},693:function(e,n,t){"use strict";t.d(n,"h",(function(){return c})),t.d(n,"l",(function(){return l})),t.d(n,"k",(function(){return u})),t.d(n,"j",(function(){return s})),t.d(n,"Q",(function(){return f})),t.d(n,"m",(function(){return d})),t.d(n,"p",(function(){return p})),t.d(n,"q",(function(){return h})),t.d(n,"o",(function(){return b})),t.d(n,"n",(function(){return m})),t.d(n,"L",(function(){return y})),t.d(n,"g",(function(){return g})),t.d(n,"r",(function(){return v})),t.d(n,"K",(function(){return w})),t.d(n,"w",(function(){return O})),t.d(n,"N",(function(){return x})),t.d(n,"O",(function(){return S})),t.d(n,"t",(function(){return A})),t.d(n,"s",(function(){return E})),t.d(n,"P",(function(){return j})),t.d(n,"u",(function(){return C})),t.d(n,"f",(function(){return B})),t.d(n,"F",(function(){return T})),t.d(n,"e",(function(){return D})),t.d(n,"d",(function(){return k})),t.d(n,"v",(function(){return _})),t.d(n,"x",(function(){return M})),t.d(n,"i",(function(){return P})),t.d(n,"J",(function(){return R})),t.d(n,"B",(function(){return F})),t.d(n,"G",(function(){return I})),t.d(n,"I",(function(){return N})),t.d(n,"H",(function(){return L})),t.d(n,"a",(function(){return z})),t.d(n,"c",(function(){return U})),t.d(n,"b",(function(){return V})),t.d(n,"C",(function(){return Y})),t.d(n,"M",(function(){return G})),t.d(n,"y",(function(){return H})),t.d(n,"D",(function(){return W})),t.d(n,"E",(function(){return $})),t.d(n,"A",(function(){return X})),t.d(n,"z",(function(){return K}));var r=t(732),o=t(711),i=t(713);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c={country:{key:"country",legendTitle:"Country",menuItem:"country",type:"discrete"},region:{key:"region",legendTitle:"Region",menuItem:"region",type:"discrete"},num_date:{key:"num_date",legendTitle:"Sampling date",menuItem:"date",type:"continuous"},ep:{key:"ep",legendTitle:"Epitope Mutations",menuItem:"epitope mutations",type:"continuous"},ne:{key:"ne",legendTitle:"Non-epitope Mutations",menuItem:"nonepitope mutations",type:"continuous"},rb:{key:"rb",legendTitle:"Receptor Binding Mutations",menuItem:"RBS mutations",type:"continuous"},gt:{key:"genotype",legendTitle:"Genotype",menuItem:"genotype",type:"discrete"}},l=220,u=46,s=780,f=1600,d="country",p="country",h="rect",b="num_date",m=6,y=-1e8,g=!1,v="aa",w="nuc",O=[0,.111,.222,.333,.444,.555,.666,.777,.888,1],x=4,S=7,A=150,E=500,j=1,C=350,B=.075,T=.075,D=50,k=10,_=(O.map((function(e){return Math.round(3.6*e*100)/100})),O.map((function(e){return Math.round(100*(.2+1.8*e))/100})),O.map((function(e){return Math.round(16*(e-.5)*100)/100})),Object(o.a)().domain([0,1]).range([2,4.5]),Object(r.b)().domain([0,1]).range([1,10])),M=(Object(r.b)().domain([3,20]).range([9,3]).clamp([!0]),["#60AA9E","#D9AD3D","#5097BA","#E67030","#8EBC66","#E59637","#AABD52","#DF4327","#C4B945","#75B681"]),P=[[],["#4C90C0"],["#4C90C0","#CBB742"],["#4988C5","#7EB876","#CBB742"],["#4580CA","#6BB28D","#AABD52","#DFA43B"],["#4377CD","#61AB9D","#94BD61","#CDB642","#E68133"],["#416DCE","#59A3AA","#84BA6F","#BBBC49","#E29D39","#E1502A"],["#3F63CF","#529AB6","#75B681","#A6BE55","#D4B13F","#E68133","#DC2F24"],["#3E58CF","#4B8EC1","#65AE96","#8CBB69","#B8BC4A","#DCAB3C","#E67932","#DC2F24"],["#3F4DCB","#4681C9","#5AA4A8","#78B67E","#9EBE5A","#C5B945","#E0A23A","#E67231","#DC2F24"],["#4042C7","#4274CE","#5199B7","#69B091","#88BB6C","#ADBD51","#CEB541","#E39B39","#E56C2F","#DC2F24"],["#4137C2","#4066CF","#4B8DC2","#5DA8A3","#77B67F","#96BD60","#B8BC4B","#D4B13F","#E59638","#E4672F","#DC2F24"],["#462EB9","#3E58CF","#4580CA","#549DB2","#69B091","#83BA70","#A2BE57","#C1BA47","#D9AD3D","#E69136","#E4632E","#DC2F24"],["#4B26B1","#3F4ACA","#4272CE","#4D92BF","#5DA8A3","#74B583","#8EBC66","#ACBD51","#C8B944","#DDA93C","#E68B35","#E3602D","#DC2F24"],["#511EA8","#403DC5","#4063CF","#4785C7","#559EB1","#67AF94","#7EB877","#98BD5E","#B4BD4C","#CDB642","#DFA53B","#E68735","#E35D2D","#DC2F24"],["#511EA8","#403AC4","#3F5ED0","#457FCB","#5098B9","#60AA9F","#73B583","#8BBB6A","#A4BE56","#BDBB48","#D3B240","#E19F3A","#E68234","#E25A2C","#DC2F24"],["#511EA8","#4138C3","#3E59CF","#4379CD","#4D92BE","#5AA5A8","#6BB18E","#7FB975","#96BD5F","#AFBD4F","#C5B945","#D8AE3E","#E39B39","#E67D33","#E2572B","#DC2F24"],["#511EA8","#4236C1","#3F55CE","#4273CE","#4A8CC2","#569FAF","#64AD98","#76B680","#8BBB6A","#A1BE58","#B7BC4B","#CCB742","#DCAB3C","#E59638","#E67932","#E1552B","#DC2F24"],["#511EA8","#4335BF","#3F51CC","#416ECE","#4887C6","#529BB6","#5FA9A0","#6EB389","#81B973","#95BD61","#AABD52","#BFBB48","#D1B340","#DEA63B","#E69237","#E67531","#E1522A","#DC2F24"],["#511EA8","#4333BE","#3F4ECB","#4169CF","#4682C9","#4F96BB","#5AA5A8","#68AF92","#78B77D","#8BBB6A","#9EBE59","#B3BD4D","#C5B945","#D5B03F","#E0A23A","#E68D36","#E67231","#E1502A","#DC2F24"],["#511EA8","#4432BD","#3F4BCA","#4065CF","#447ECC","#4C91BF","#56A0AE","#63AC9A","#71B486","#81BA72","#94BD62","#A7BE54","#BABC4A","#CBB742","#D9AE3E","#E29E39","#E68935","#E56E30","#E14F2A","#DC2F24"],["#511EA8","#4531BC","#3F48C9","#3F61D0","#4379CD","#4A8CC2","#539CB4","#5EA9A2","#6BB18E","#7AB77B","#8BBB6A","#9CBE5B","#AFBD4F","#C0BA47","#CFB541","#DCAB3C","#E39B39","#E68534","#E56B2F","#E04D29","#DC2F24"],["#511EA8","#4530BB","#3F46C8","#3F5ED0","#4375CD","#4988C5","#5098B9","#5AA5A8","#66AE95","#73B583","#82BA71","#93BC62","#A4BE56","#B5BD4C","#C5B945","#D3B240","#DEA73B","#E59738","#E68234","#E4682F","#E04C29","#DC2F24"],["#511EA8","#462FBA","#3F44C8","#3E5BD0","#4270CE","#4784C8","#4E95BD","#57A1AD","#61AB9C","#6DB38A","#7BB879","#8BBB6A","#9BBE5C","#ABBD51","#BBBC49","#CBB843","#D6AF3E","#DFA43B","#E69537","#E67F33","#E4662E","#E04A29","#DC2F24"],["#511EA8","#462EB9","#4042C7","#3E58CF","#416DCE","#4580CA","#4C90C0","#549DB2","#5DA8A3","#69B091","#75B681","#83BA70","#92BC63","#A2BE57","#B2BD4D","#C1BA47","#CEB541","#D9AD3D","#E1A03A","#E69136","#E67C32","#E4632E","#E04929","#DC2F24"],["#511EA8","#462EB9","#4040C6","#3F55CE","#4169CF","#447DCC","#4A8CC2","#529AB7","#5AA5A8","#64AD98","#70B487","#7DB878","#8BBB6A","#99BD5D","#A9BD53","#B7BC4B","#C5B945","#D1B340","#DCAB3C","#E29D39","#E68D36","#E67932","#E3612D","#E04828","#DC2F24"],["#511EA8","#472DB8","#403EC6","#3F53CD","#4066CF","#4379CD","#4989C5","#4F97BB","#57A1AD","#61AA9E","#6BB18E","#77B67F","#84BA70","#92BC64","#A0BE58","#AFBD4F","#BCBB49","#CAB843","#D4B13F","#DEA83C","#E39B39","#E68A35","#E67732","#E35F2D","#DF4728","#DC2F24"],["#511EA8","#472CB7","#403DC5","#3F50CC","#4063CF","#4375CD","#4785C7","#4D93BE","#559EB1","#5DA8A3","#67AF94","#72B485","#7EB877","#8BBB6A","#98BD5E","#A6BE55","#B4BD4C","#C1BA47","#CDB642","#D7AF3E","#DFA53B","#E49838","#E68735","#E67431","#E35D2D","#DF4628","#DC2F24"],["#511EA8","#482CB7","#403BC5","#3F4ECB","#3F61D0","#4272CE","#4682C9","#4C90C0","#529BB5","#5AA5A8","#63AC9A","#6DB28B","#78B77D","#84BA6F","#91BC64","#9EBE59","#ACBD51","#B9BC4A","#C5B945","#D0B441","#DAAD3D","#E0A23A","#E59637","#E68434","#E67231","#E35C2C","#DF4528","#DC2F24"],["#511EA8","#482BB6","#403AC4","#3F4CCB","#3F5ED0","#426FCE","#457FCB","#4A8CC2","#5098B9","#58A2AC","#60AA9F","#69B091","#73B583","#7FB976","#8BBB6A","#97BD5F","#A4BE56","#B1BD4E","#BDBB48","#C9B843","#D3B240","#DCAB3C","#E19F3A","#E69337","#E68234","#E67030","#E25A2C","#DF4428","#DC2F24"],["#511EA8","#482BB6","#4039C3","#3F4ACA","#3E5CD0","#416CCE","#447CCD","#4989C4","#4E96BC","#559FB0","#5DA8A4","#66AE96","#6FB388","#7AB77C","#85BA6F","#91BC64","#9DBE5A","#AABD53","#B6BD4B","#C2BA46","#CDB642","#D6B03F","#DDA83C","#E29D39","#E69036","#E67F33","#E56D30","#E2592C","#DF4428","#DC2F24"],["#511EA8","#482AB5","#4138C3","#3F48C9","#3E59CF","#4169CF","#4379CD","#4886C6","#4D92BE","#539CB4","#5AA5A8","#62AB9B","#6BB18E","#75B581","#7FB975","#8BBB6A","#96BD5F","#A2BE57","#AFBD4F","#BABC4A","#C5B945","#CFB541","#D8AE3E","#DFA63B","#E39B39","#E68D36","#E67D33","#E56B2F","#E2572B","#DF4328","#DC2F24"],["#511EA8","#492AB5","#4137C2","#3F47C9","#3E57CE","#4067CF","#4376CD","#4783C8","#4C8FC0","#519AB7","#58A2AC","#5FA9A0","#68AF93","#70B486","#7BB77A","#85BA6F","#90BC65","#9CBE5B","#A8BE54","#B3BD4D","#BEBB48","#C9B843","#D2B340","#DAAD3D","#E0A33B","#E49838","#E68B35","#E67B32","#E5692F","#E2562B","#DF4227","#DC2F24"],["#511EA8","#492AB5","#4236C1","#3F45C8","#3F55CE","#4064CF","#4273CE","#4681CA","#4A8CC2","#4F97BA","#569FAF","#5CA7A4","#64AD98","#6DB28B","#76B680","#80B974","#8BBB6A","#96BD60","#A1BE58","#ACBD51","#B7BC4B","#C2BA46","#CCB742","#D4B13F","#DCAB3C","#E1A13A","#E59638","#E68835","#E67932","#E4672F","#E1552B","#DF4227","#DC2F24"],["#511EA8","#4929B4","#4235C0","#3F44C8","#3F53CD","#3F62CF","#4270CE","#457ECB","#4989C4","#4E95BD","#549DB3","#5AA5A8","#61AB9C","#69B090","#72B485","#7BB879","#85BA6E","#90BC65","#9BBE5C","#A6BE55","#B1BD4E","#BBBC49","#C5B945","#CEB541","#D6AF3E","#DDA93C","#E29F39","#E69537","#E68634","#E67732","#E4662E","#E1532B","#DF4127","#DC2F24"],["#511EA8","#4929B4","#4335BF","#3F42C7","#3F51CC","#3F60D0","#416ECE","#447CCD","#4887C6","#4D92BF","#529BB6","#58A2AB","#5FA9A0","#66AE95","#6EB389","#77B67E","#81B973","#8BBB6A","#95BD61","#A0BE59","#AABD52","#B5BD4C","#BFBB48","#C9B843","#D1B340","#D8AE3E","#DEA63B","#E29C39","#E69237","#E68434","#E67531","#E4642E","#E1522A","#DF4127","#DC2F24"],["#511EA8","#4928B4","#4334BF","#4041C7","#3F50CC","#3F5ED0","#416CCE","#4379CD","#4784C7","#4B8FC1","#5098B9","#56A0AF","#5CA7A4","#63AC99","#6BB18E","#73B583","#7CB878","#86BB6E","#90BC65","#9ABD5C","#A4BE56","#AFBD4F","#B9BC4A","#C2BA46","#CCB742","#D3B240","#DAAC3D","#DFA43B","#E39B39","#E68F36","#E68234","#E67431","#E4632E","#E1512A","#DF4027","#DC2F24"]],R=1e4,F=function(){return Object(i.b)("serverAddress")?Object(i.a)("serverAddress").replace(/\/$/,""):"/charon"},I={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec","01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep"},N=50,L=55,z=0,U=1,V=2,q=["unknown","?","nan","na","n/a","","unassigned"],Y=function(e){return!!["number","boolean","string"].includes(a(e))&&("string"!=typeof e||!q.includes(e.toLowerCase()))},G=Symbol("strain"),H=Symbol("genotype"),W=Symbol("measurementId"),$=Symbol("measurementJitter"),X=function(){if(Object(i.b)("mapTiles"))return Object(i.a)("mapTiles");return{api:"https://api.mapbox.com/styles/v1/trvrb/ciu03v244002o2in5hlm3q6w2/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidHJ2cmIiLCJhIjoiY2tqcnM5bXIxMWV1eTJzazN2YXVrODVnaiJ9.7iPttR9a_W7zuYlUCfrz6A",attribution:'© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <a style="font-weight: 700" href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>',mapboxWordmark:!0}},J={A:"Alanine",R:"Arginine",N:"Asparagine",D:"Aspartic acid",C:"Cysteine",Q:"Glutamine",E:"Glutamic acid",G:"Glycine",H:"Histidine",I:"Isoleucine",L:"Leucine",K:"Lysine",M:"Methionine",F:"Phenylalanine",P:"Proline",S:"Serine",T:"Threonine",W:"Tryptophan",Y:"Tyrosine",V:"Valine"},K=function(e){return J[e.toUpperCase()]||"Unknown"}},694:function(e,n,t){"use strict";t.d(n,"fb",(function(){return r})),t.d(n,"J",(function(){return o})),t.d(n,"F",(function(){return i})),t.d(n,"E",(function(){return a})),t.d(n,"e",(function(){return c})),t.d(n,"K",(function(){return l})),t.d(n,"L",(function(){return u})),t.d(n,"s",(function(){return s})),t.d(n,"m",(function(){return f})),t.d(n,"o",(function(){return d})),t.d(n,"n",(function(){return p})),t.d(n,"h",(function(){return h})),t.d(n,"g",(function(){return b})),t.d(n,"q",(function(){return m})),t.d(n,"r",(function(){return y})),t.d(n,"z",(function(){return g})),t.d(n,"c",(function(){return v})),t.d(n,"gb",(function(){return w})),t.d(n,"U",(function(){return O})),t.d(n,"k",(function(){return x})),t.d(n,"l",(function(){return S})),t.d(n,"i",(function(){return A})),t.d(n,"j",(function(){return E})),t.d(n,"A",(function(){return j})),t.d(n,"Z",(function(){return C})),t.d(n,"H",(function(){return B})),t.d(n,"b",(function(){return T})),t.d(n,"N",(function(){return D})),t.d(n,"w",(function(){return k})),t.d(n,"W",(function(){return _})),t.d(n,"cb",(function(){return M})),t.d(n,"B",(function(){return P})),t.d(n,"a",(function(){return R})),t.d(n,"V",(function(){return F})),t.d(n,"D",(function(){return I})),t.d(n,"C",(function(){return N})),t.d(n,"M",(function(){return L})),t.d(n,"I",(function(){return z})),t.d(n,"hb",(function(){return U})),t.d(n,"bb",(function(){return V})),t.d(n,"O",(function(){return q})),t.d(n,"Y",(function(){return Y})),t.d(n,"eb",(function(){return G})),t.d(n,"y",(function(){return H})),t.d(n,"P",(function(){return W})),t.d(n,"X",(function(){return $})),t.d(n,"R",(function(){return X})),t.d(n,"ab",(function(){return J})),t.d(n,"f",(function(){return K})),t.d(n,"Q",(function(){return Z})),t.d(n,"x",(function(){return Q})),t.d(n,"p",(function(){return ee})),t.d(n,"G",(function(){return ne})),t.d(n,"t",(function(){return te})),t.d(n,"v",(function(){return re})),t.d(n,"T",(function(){return oe})),t.d(n,"S",(function(){return ie})),t.d(n,"u",(function(){return ae})),t.d(n,"d",(function(){return ce})),t.d(n,"db",(function(){return le}));var r="UPDATE_TIP_RADII",o="NEW_COLORS",i="LOAD_FREQUENCIES",a="FREQUENCY_MATRIX",c="BROWSER_DIMENSIONS",l="NODE_MOUSEENTER",u="NODE_MOUSELEAVE",s="CHANGE_LAYOUT",f="CHANGE_BRANCH_LABEL",d="CHANGE_DISTANCE_MEASURE",p="CHANGE_DATES_VISIBILITY_THICKNESS",h="CHANGE_ABSOLUTE_DATE_MIN",b="CHANGE_ABSOLUTE_DATE_MAX",m="CHANGE_GEO_RESOLUTION",y="CHANGE_LANGUAGE",g="CLEAN_START",v="APPLY_FILTER",w="UPDATE_VISIBILITY_AND_BRANCH_THICKNESS",O="TOGGLE_MUT_TYPE",x="CHANGE_ANIMATION_START",S="CHANGE_ANIMATION_TIME",A="CHANGE_ANIMATION_CUMULATIVE",E="CHANGE_ANIMATION_LOOP",j="DATA_INVALID",C="TOGGLE_TEMPORAL_CONF",B="MAP_ANIMATION_PLAY_PAUSE_BUTTON",T="ADD_NOTIFICATION",D="REMOVE_NOTIFICATION",k="CHANGE_PANEL_LAYOUT",_="TOGGLE_PANEL_DISPLAY",M="TRIGGER_DOWNLOAD_MODAL",P="DISMISS_DOWNLOAD_MODAL",R="ADD_EXTRA_METADATA",F="TOGGLE_NARRATIVE",I="ENTROPY_DATA",N="ENTROPY_COUNTS_TOGGLE",L="PAGE_CHANGE",z="MIDDLEWARE_ONLY_ANIMATION_STARTED",U="URL_QUERY_CHANGE_WITH_COMPUTED_STATE",V="TREE_TOO_DATA",q="REMOVE_TREE_TOO",Y="TOGGLE_TANGLE",G="UPDATE_PATHNAME",H="CHANGE_ZOOM",W="SET_AVAILABLE",$="TOGGLE_SIDEBAR",X="TOGGLE_LEGEND",J="TOGGLE_TRANSMISSION_LINES",K="CACHE_JSONS",Z="SET_ROOT_SEQUENCE",Q="CHANGE_TIP_LABEL_KEY",ee="CHANGE_EXPLODE_ATTR",ne="LOAD_MEASUREMENTS",te="CHANGE_MEASUREMENTS_COLLECTION",re="CHANGE_MEASUREMENTS_GROUP_BY",oe="TOGGLE_MEASUREMENTS_THRESHOLD",ie="TOGGLE_MEASUREMENTS_OVERALL_MEAN",ae="CHANGE_MEASUREMENTS_DISPLAY",ce="APPLY_MEASUREMENTS_FILTER",le="UPDATE_MEASUREMENTS_ERROR"},695:function(e,n,t){"use strict";t.d(n,"o",(function(){return o})),t.d(n,"d",(function(){return i})),t.d(n,"b",(function(){return a})),t.d(n,"a",(function(){return c})),t.d(n,"h",(function(){return l})),t.d(n,"f",(function(){return u})),t.d(n,"i",(function(){return s})),t.d(n,"c",(function(){return f})),t.d(n,"j",(function(){return d})),t.d(n,"g",(function(){return p})),t.d(n,"n",(function(){return h})),t.d(n,"k",(function(){return b})),t.d(n,"l",(function(){return m})),t.d(n,"m",(function(){return y})),t.d(n,"e",(function(){return g}));var r=t(693),o="Lato, Helvetica Neue, Helvetica, sans-serif",i="Lato, Helvetica Neue, Helvetica, sans-serif",a="Lato, Helvetica Neue, Helvetica, sans-serif",c="#333",l="#888",u="#BBB",s="#F2F2F2",f="#89B77F",d={backgroundColor:"#FFF",fontFamily:a,width:r.l-13,borderSpacing:0,fontSize:14,paddingLeft:"10px",border:"1px solid #ccc",height:36,appearance:"none",borderRadius:"4px",color:c,fontWeight:400,marginBottom:"3px"},p={border:"0px",backgroundColor:"inherit",marginLeft:0,marginTop:5,marginRight:10,marginBottom:5,borderRadius:2,cursor:"pointer",padding:2,fontFamily:a,color:c,fontWeight:400,textTransform:"uppercase",fontSize:14,verticalAlign:"top",outline:0},h={borderTop:"1px solid #BBB",borderLeft:"1px solid #CCC",borderRight:"1px solid #CCC",borderBottom:"1px solid #CCC",borderRadius:"0px 0px 3px 3px",paddingTop:3,paddingBottom:3,paddingLeft:6,paddingRight:6,backgroundColor:"#fff",fontWeight:400,color:c,fontFamily:a,fontSize:12,textTransform:"uppercase"},b={borderTop:"1px solid #BBB",borderLeft:"1px solid #CCC",borderRight:"1px solid #CCC",borderBottom:"1px solid #CCC",borderRadius:"0px 0px 3px 3px",paddingTop:3,paddingBottom:3,paddingLeft:6,paddingRight:6,backgroundColor:"#fff"},m={border:"none",backgroundColor:"inherit",padding:0,margin:0,cursor:"pointer",fontFamily:a,color:c,fontWeight:400,textTransform:"uppercase",fontSize:12},y={border:"none",backgroundColor:"inherit",padding:0,margin:0,cursor:"pointer",fontFamily:a,color:"#5097BA",fontWeight:400,textTransform:"uppercase",fontSize:12},g={branchInfoHeading:{fontSize:15,fontWeight:400,verticalAlign:"middle",padding:"5px"},buttonLink:{float:"right",fontFamily:a,fontSize:14,fontWeight:400,textDecoration:"none",pointerEvents:"auto",background:"none",color:"white",cursor:"pointer",textTransform:"uppercase",borderRadius:2,border:"1px solid #CCC",verticalAlign:"middle"},tooltip:{position:"relative",padding:5,color:"white",fontFamily:a,fontSize:14,lineHeight:1,fontWeight:300},modalContainer:{position:"absolute",width:"100%",height:"100%",pointerEvents:"all",top:0,left:0,zIndex:2e3,backgroundColor:"rgba(80, 80, 80, .20)",display:"flex",justifyContent:"center",alignItems:"center",wordWrap:"break-word",wordBreak:"break-word"},panel:{position:"relative",paddingLeft:30,padding:"5% 5%",borderRadius:5,backgroundColor:"rgba(55,55,55,0.9)",color:"white",fontFamily:a,fontSize:18,lineHeight:1,fontWeight:300,maxWidth:"80%",overflowY:"auto"},modalHeading:{fontSize:24,fontWeight:400},modalSubheading:{fontSize:20,fontWeight:400,marginTop:"20px",marginBottom:"20px"},tooltipHeading:{fontSize:18,fontWeight:400,marginBottom:"10px"},comment:{fontStyle:"italic",fontWeight:200,fontSize:14,marginTop:"10px"},topRightMessage:{fontStyle:"italic",fontWeight:200,fontSize:14,textAlign:"right",marginTop:"-20px"},list:{paddingLeft:15,listStyleType:"disc"},item:{paddingTop:4,paddingBottom:4,minWidth:130,verticalAlign:"top"},break:{marginBottom:"10px"}}},696:function(e,n,t){"use strict";t.d(n,"h",(function(){return c})),t.d(n,"e",(function(){return l})),t.d(n,"j",(function(){return u})),t.d(n,"f",(function(){return s})),t.d(n,"c",(function(){return f})),t.d(n,"i",(function(){return d})),t.d(n,"b",(function(){return h})),t.d(n,"d",(function(){return m})),t.d(n,"g",(function(){return y})),t.d(n,"k",(function(){return g})),t.d(n,"a",(function(){return v}));var r=t(693);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.entropy,i=void 0!==o&&o,a=t.confidence,c=void 0!==a&&a;if(e.node_attrs){if(!i&&!c){if(!e.node_attrs[n])return n===r.M?e.name:void 0;var l=e.node_attrs[n].value;if(!Object(r.C)(l))return;return l}return i?e.node_attrs[n]?e.node_attrs[n].entropy:void 0:c&&e.node_attrs[n]?e.node_attrs[n].confidence:void 0}},l=function(e){if(e.node_attrs&&void 0!==e.node_attrs.div)return e.node_attrs.div},u=function(e){if(e.node_attrs&&e.node_attrs.vaccine)return e.node_attrs.vaccine},s=function(e){return e.node_attrs&&e.node_attrs.author&&e.node_attrs.author.value?e.node_attrs.author:void 0},f=function(e){var n,t;return e.node_attrs&&(Object(r.C)(e.node_attrs.accession)&&(n=e.node_attrs.accession),t=p(e.node_attrs.url)),{accession:n,url:t}},d=function(e,n){if(e.node_attrs&&e.node_attrs[n])return p(e.node_attrs[n].url)};function p(e){if(void 0!==e)try{if("string"!=typeof e)throw new Error;return e.startsWith("http_")&&(e=e.replace("http_","http:")),e.startsWith("https_")&&(e=e.replace("https_","https:")),new URL(e).href}catch(n){return void console.warn("Dataset provided the invalid URL ".concat(e))}}function h(e){var n=new Set;return e.forEach((function(e){e.branch_attrs&&e.branch_attrs.mutations&&Object.keys(e.branch_attrs.mutations).length&&Object.entries(e.branch_attrs.mutations).forEach((function(e){var t=i(e,2),r=t[0];t[1].forEach((function(e){var t=[e.slice(0,1),e.slice(1,-1),e.slice(-1)],o=t[0],i=t[1],a=t[2];n.add("".concat(r," ").concat(i).concat(a)),n.add("".concat(r," ").concat(i).concat(o))}))}))})),n}var b=function(e){var n={};return function e(t){t.branch_attrs&&t.branch_attrs.mutations&&Object.keys(t.branch_attrs.mutations).length&&Object.entries(t.branch_attrs.mutations).forEach((function(e){var t=i(e,2),r=t[0],o=t[1];"nuc"!==r&&"nuc"===r||(n[r]||(n[r]={}),o.forEach((function(e){var t=[e.slice(0,1),e.slice(1,-1),e.slice(-1)],o=t[0],i=t[1],a=t[2];n[r][i]?n[r][i][0]=o:n[r][i]=[o,a]})))}));var r=t.arrayIdx,o=t.parent;o&&o.arrayIdx!==r&&e(o)}(e),n},m=function(e,n){var t=e.branch_attrs&&e.branch_attrs.mutations;return"object"!==o(t)?{}:function(e,n,t){for(var r={},o=function(){var o=a[i],c={unique:[],homoplasies:[],gaps:[],reversionsToRoot:[]},l="nuc"===o;l&&(c.ns=[]),e[o].forEach((function(e){var r=e.slice(-1);"-"===r?c.gaps.push(e):l&&"N"===r?c.ns.push(e):n["".concat(o,":").concat(e)]>1?c.homoplasies.push(e):c.unique.push(e);var i=e.slice(1,-1);"-"!==r&&"N"!==r&&t[o]&&t[o][i]&&t[o][i][0]===t[o][i][1]&&c.reversionsToRoot.push(e)})),r[o]=c},i=0,a=Object.keys(e);i<a.length;i++)o();return r}(t,n,e.parent===e?{}:b(e))},y=function(e){e.branch_attrs&&e.branch_attrs.mutations;return function(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var o=r[t],a={changes:[],gaps:[],reversionsToRoot:[]},c="nuc"===o;c&&(a.ns=[]);for(var l=0,u=Object.entries(e[o]);l<u.length;l++){var s=i(u[l],2),f=s[0],d=s[1],p="".concat(d[0]).concat(f).concat(d[1]);"-"===d[1]?a.gaps.push(p):c&&"N"===d[1]?a.ns.push(p):d[0]===d[1]?a.reversionsToRoot.push(p):a.changes.push(p)}n[o]=a}return n}(b(e))},g=function(e){if(!(e instanceof Object))return function(e,n){return"nuc"===e?-1:"nuc"===n?1:0};var n=Object.entries(e).sort((function(e,n){return"nuc"===n[0]?1:e[1].start<n[1].start?-1:e[1].start>n[1].start?1:0})).map((function(e){return i(e,1)[0]}));return function(e,t){return n.indexOf(e)<n.indexOf(t)?-1:n.indexOf(e)>n.indexOf(t)?1:0}},v=function(e,n){e.forEach((function(e){if(n[e.name]){e.node_attrs||(e.node_attrs={});for(var t=0,r=Object.entries(n[e.name]);t<r.length;t++){var o=i(r[t],2),a=o[0],c=o[1];e.node_attrs[a]=c}}}))}},699:function(e,n,t){"use strict";t.d(n,"d",(function(){return a})),t.d(n,"h",(function(){return c})),t.d(n,"g",(function(){return l})),t.d(n,"a",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return f})),t.d(n,"f",(function(){return p})),t.d(n,"e",(function(){return h})),t.d(n,"i",(function(){return b}));var r=t(693);function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var a=function(e){return"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0"))},c=function(e){var n=e%1,t=parseInt(e,10),r=n*(d(t)?366:365);return new Date(new Date(t,0,1).getTime()+24*r*60*60*1e3)},l=function(e){if(e<0)return Math.round(e).toString();var n=c(e);return a(n)},u=function(e){if("-"===e[0]){var n=e.substring(1).split("-");return-parseFloat(n[0])}var t=o(e.split("-").map((function(e){return parseInt(e,10)})),3),r=t[0],i=t[1],a=t[2];return r+((Date.UTC(r,i-1,a)-Date.UTC(r,0,1))/864e5+.5)/(d(r)?366:365)},s=function(){return a(new Date)},f=function(){return u(s())};function d(e){return e%4==0&&e%100!=0||e%400==0}var p=function(e,n){var t=new Date(n.getTime()),r=1===n.getDate()&&0===n.getMonth();switch(e){case"DAY":return t;case"WEEK":var o=n.getDay();return 1===o||t.setDate(n.getDate()+(8-o)%7-7),t;case"MONTH":return 1===n.getDate()?t:new Date(n.getFullYear(),n.getMonth(),1,12);case"YEAR":return r?t:new Date(n.getFullYear(),0,1,12);case"FIVEYEAR":case"DECADE":return new Date(5*Math.floor(n.getFullYear()/5),0,1,12);case"CENTURY":return new Date(100*Math.floor(n.getFullYear()/100),0,1,12);default:return console.error("Unknown unit for `advanceDateTo`:",e),t}},h=function(e,n){var t=new Date(n.getTime());switch(e){case"DAY":t.setDate(n.getDate()+1);break;case"WEEK":t.setDate(n.getDate()+7);break;case"MONTH":t.setMonth(n.getMonth()+1);break;case"YEAR":t.setFullYear(n.getFullYear()+1);break;case"FIVEYEAR":t.setFullYear(n.getFullYear()+5);break;case"DECADE":t.setFullYear(n.getFullYear()+10);break;case"CENTURY":t.setFullYear(n.getFullYear()+100);break;default:console.error("Unknown unit for `getNextDate`:",e)}return t},b=function(e,n){var t,i,c,u="number"==typeof n?l(n):n instanceof Date?a(n):n;if(u.startsWith("-")){var s=o(u.slice(1).split("-"),3);t=s[0],i=s[1],c=s[2],t="-".concat(t)}else{var f=o(u.split("-"),3);t=f[0],i=f[1],c=f[2]}switch(e){case"CENTURY":case"DECADE":case"FIVEYEAR":case"YEAR":if("01"===i&&"01"===c)return t;case"MONTH":if("01"===c)return"".concat(t,"-").concat(r.G[i]);default:return"".concat(t,"-").concat(r.G[i],"-").concat(c)}}},700:function(e,n,t){"use strict";t.d(n,"f",(function(){return c})),t.d(n,"d",(function(){return l})),t.d(n,"a",(function(){return u})),t.d(n,"c",(function(){return s})),t.d(n,"e",(function(){return f})),t.d(n,"b",(function(){return d})),t.d(n,"g",(function(){return p}));var r=t(693);function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=function(e){return"gt"===e||e.startsWith("gt-")},l=function(e){var n=e.gene,t=e.positions;return n||(n=r.K),t&&t.length?"gt-".concat(n,"_").concat(t.join(",")):(console.error("encodeColorByGenotype failed: no positions"),null)},u=function(e,n){var t="object"===a(n)&&Object.keys(n).length,i=e.match(/^gt-(.+)_([0-9,]+)$/);if(i){var c=o(i,3),l=c[1],u=c[2],f=t?n[l]:"Infinity";if(t&&!f)return console.error("decodeColorByGenotype failed: no gene length",e,l,n),null;var d=s(u,f);return d.length?{gene:l,positions:d,aa:l!==r.K}:(console.error("decodeColorByGenotype failed: no valid positions",e,u,f),null)}return console.error("Unable to decode colorBy genotype:",e),null},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Infinity";return e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return e>0&&e<=Math.floor(n)}))},f=function(e){var n=e.filter((function(e){return e.active})).map((function(e){return e.value})).reduce((function(e,n){var t=o(n.split(" "),2),r=t[0],i=t[1];return e.has(r)||e.set(r,[]),e.get(r).push(i),e}),new Map);return Array.from(n.entries()).map((function(e){var n=o(e,2),t=n[0],r=n[1];return"".concat(t,".").concat(r.join(","))})).join(",")},d=function(e){var n;return e.split(",").map((function(e){if(e.includes(".")){var t=e.split(".");return n=t[0],t.join(" ")}return"".concat(n," ").concat(e)})).map((function(e){return{active:!0,value:e}}))},p=function(e){var n=!!c(e)&&u(e);return!!n&&"Genotype ".concat(n.gene,": ").concat(n.positions.join(", "))}},701:function(e,n,t){"use strict";t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return l})),t.d(n,"i",(function(){return u})),t.d(n,"h",(function(){return s})),t.d(n,"b",(function(){return f})),t.d(n,"d",(function(){return d})),t.d(n,"e",(function(){return h})),t.d(n,"f",(function(){return b})),t.d(n,"j",(function(){return y})),t.d(n,"g",(function(){return g}));var r=t(1096),o=t(696);function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw i}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c=function(e,n){var t="".concat(e,"_").concat(n).replace(/(\W+)/g,"-");return CSS.escape(t)},l=function e(n,t){t(n);var r=n.n;if(r.hasChildren&&void 0!==r.children){var o,a=i(r.children);try{for(a.s();!(o=a.n()).done;){e(o.value.shell,t)}}catch(e){a.e(e)}finally{a.f()}}},u=function e(n,t){var r=n.n.children;if(!r||!r.length)return n.displayOrder=0===n.n.fullTipCount||void 0===t?t:++t,n.displayOrderRange=[t,t],t;for(var o=r.length-1;o>=0;o--)t=e(r[o].shell,t);return n.displayOrder=r.reduce((function(e,n){return e+n.shell.displayOrder}),0)/r.length,n.displayOrderRange=[r[0].shell.displayOrder,r[r.length-1].shell.displayOrder],t};var s=function(e){var n,t=function(e,n){return 1===e||n<10||2*e>n?0:n/20}(e[0].n.children.filter((function(e){return 0!==e.fullTipCount})).length,e[0].n.fullTipCount),r=0,o=i(e[0].n.children);try{for(o.s();!(n=o.n()).done;){var a=n.value;0===a.fullTipCount?u(e[a.arrayIdx],void 0):(r=u(e[a.arrayIdx],r),r+=t)}}catch(e){o.e(e)}finally{o.f()}e[0].displayOrder=void 0,e[0].displayOrderRange=[void 0,void 0]},f=function(e){return e>1?Math.round(1e3*(e+Number.EPSILON))/1e3:e>.01?Math.round(1e4*(e+Number.EPSILON))/1e4:e.toExponential(3)},d=function(e){return e.shell.that.zoomNode.n.arrayIdx};function p(e,n,t){if("num_date"===t){var r=(e.shell.that.dateRange[1]-e.shell.that.dateRange[0])/50;return Object(o.h)(e,"num_date")-r<Object(o.h)(n,"num_date")}var i=(e.shell.that.xScale.domain()[1]-e.shell.that.nodes[0].depth)/50;return Object(o.e)(e)-i<Object(o.e)(n)}var h=function(e,n){for(var t=e.parent;p(e,t,n)&&t!==t.parent;)t=t.parent;return t};function b(e){return Object(r.a)(e.domain())<=5}var m=function(e){return"__ROOT"===e.parent.name&&e.parentInfo.original},y=function(e){return m(e)?e.parentInfo.original:e.parent},g=function(e){var n=e.map((function(e){return e.displayOrder})).reduce((function(e,n){return(null!=n?n:0)>e?n:e}),0);return function(e){return[n-e.displayOrder,m(e.n)?void 0:n-e.n.parent.shell.displayOrder]}}},702:function(e,n,t){"use strict";t.d(n,"b",(function(){return O})),t.d(n,"g",(function(){return x})),t.d(n,"c",(function(){return S})),t.d(n,"f",(function(){return A})),t.d(n,"a",(function(){return E})),t.d(n,"e",(function(){return j})),t.d(n,"d",(function(){return C}));var r=t(823),o=t(723),i=t(694),a=t(752),c=t(785),l=t(699),u=t(701),s=t(819),f=t(770),d=t(696),p=t(717),h=t(728);function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}function v(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var O=function(e,n){var t=void 0!==e?e:n.idxOfInViewRootNode;if(n.nodes[0].shell)n.nodes.forEach((function(e){e.shell.inView=!1,e.shell.update=!0})),n.nodes[t].hasChildren?Object(u.a)(n.nodes[t].shell,(function(e){e.inView=!0})):0===n.nodes[t].parent.arrayIdx?n.nodes[t].shell.inView=!0:Object(u.a)(n.nodes[t].parent.shell,(function(e){e.inView=!0}));else{n.nodes.forEach((function(e){e.inView=!1}));!function e(n){if(n.inView=!0,n.children){var t,r=g(n.children);try{for(r.s();!(t=r.n()).done;){e(t.value)}}catch(e){r.e(e)}finally{r.f()}}}(n.nodes[t].hasChildren?n.nodes[t]:n.nodes[t].parent)}return t},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.root,t=void 0===n?[void 0,void 0]:n,r=e.cladeSelected,l=void 0===r?void 0:r;return function(e,n){var r=n(),u=r.tree,d=r.treeToo,p=r.controls,h=r.frequencies;if(void 0===t[0]&&!l&&u.selectedClade&&(l=u.selectedClade),u.nodes){var b=O(t[0],u),m=Object(o.a)(u,p,{dateMinNumeric:p.dateMinNumeric,dateMaxNumeric:p.dateMaxNumeric}),y={type:i.gb,visibility:m.visibility,visibilityVersion:m.visibilityVersion,branchThickness:m.branchThickness,branchThicknessVersion:m.branchThicknessVersion,idxOfInViewRootNode:b,idxOfFilteredRoot:m.idxOfFilteredRoot,cladeName:l,selectedClade:l,stateCountAttrs:Object.keys(p.filters)};if(p.showTreeToo){var g=O(t[1],d),v=Object(o.a)(d,p,{dateMinNumeric:p.dateMinNumeric,dateMaxNumeric:p.dateMaxNumeric});y.tangleTipLookup=Object(s.a)(u.nodes,d.nodes,m.visibility,v.visibility),y.visibilityToo=v.visibility,y.visibilityVersionToo=v.visibilityVersion,y.branchThicknessToo=v.branchThickness,y.branchThicknessVersionToo=v.branchThicknessVersion,y.idxOfInViewRootNodeToo=g,y.idxOfFilteredRootToo=v.idxOfFilteredRoot}y.visibleLegendValues=Object(f.b)({colorBy:p.colorBy,genotype:p.colorScale.genotype,scaleType:p.colorScale.scaleType,legendValues:p.colorScale.legendValues,treeNodes:u.nodes,treeTooNodes:d?d.nodes:void 0,visibility:y.visibility,visibilityToo:y.visibilityToo}),e(y),Object(a.d)(e,n),h.loaded&&Object(c.b)(e,n)}}},S=function(e){var n=e.newMin,t=void 0!==n&&n,r=e.newMax,u=void 0!==r&&r,d=e.quickdraw,p=void 0!==d&&d;return function(e,n){var r=n(),d=r.tree,h=r.treeToo,b=r.controls,m=r.frequencies;if(d.nodes){var y={dateMinNumeric:t?Object(l.a)(t):b.dateMinNumeric,dateMaxNumeric:u?Object(l.a)(u):b.dateMaxNumeric},g=Object(o.a)(d,b,y),v={type:i.n,quickdraw:p,dateMin:t||b.dateMin,dateMax:u||b.dateMax,dateMinNumeric:y.dateMinNumeric,dateMaxNumeric:y.dateMaxNumeric,visibility:g.visibility,visibilityVersion:g.visibilityVersion,branchThickness:g.branchThickness,branchThicknessVersion:g.branchThicknessVersion,idxOfInViewRootNode:d.idxOfInViewRootNode,stateCountAttrs:Object.keys(b.filters)};if(b.showTreeToo){var w=Object(o.a)(h,b,y);v.tangleTipLookup=Object(s.a)(d.nodes,h.nodes,g.visibility,w.visibility),v.visibilityToo=w.visibility,v.visibilityVersionToo=w.visibilityVersion,v.branchThicknessToo=w.branchThickness,v.branchThicknessVersionToo=w.branchThicknessVersion}v.visibleLegendValues=Object(f.b)({colorBy:b.colorBy,scaleType:b.colorScale.scaleType,genotype:b.colorScale.genotype,legendValues:b.colorScale.legendValues,treeNodes:d.nodes,treeTooNodes:h?h.nodes:void 0,visibility:v.visibility,visibilityToo:v.visibilityToo}),e(v),Object(a.d)(e,n),m.loaded&&Object(c.b)(e,n)}}},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.tipSelectedIdx,t=void 0!==n&&n,a=e.selectedLegendItem,c=void 0!==a&&a,l=e.geoFilter,u=void 0===l?[]:l,s=e.searchNodes,f=void 0!==s&&s;return function(e,n){var a=n(),l=a.controls,s=a.tree,d=a.treeToo,p=l.colorScale,h={type:i.fb,version:s.tipRadiiVersion+1},b=l.showTreeToo;if(t){if(h.data=Object(r.a)({tipSelectedIdx:t,colorScale:p,tree:s}),b){var m=Object(o.f)(d.nodes,s.nodes[t].name);h.dataToo=Object(r.a)({idx:m,colorScale:p,tree:d})}}else h.data=Object(r.a)({selectedLegendItem:c,geoFilter:u,searchNodes:f,colorScale:p,tree:s}),b&&(h.dataToo=Object(r.a)({selectedLegendItem:c,geoFilter:u,searchNodes:f,colorScale:p,tree:d}));e(h)}},E=function(e,n,t){return function(r,o){var a,c=o().controls,l=Reflect.ownKeys(c.filters);switch(e){case"set":a=t.map((function(e){return{value:e,active:!0}}));break;case"add":if(-1===l.indexOf(n))a=t.map((function(e){return{value:e,active:!0}}));else{var u=(a=c.filters[n].slice()).map((function(e){return e.value}));t.forEach((function(e){var n=u.indexOf(e);-1===n?a.push({value:e,active:!0}):a[n].active=!0}))}break;case"remove":case"inactivate":if(-1===l.indexOf(n))return void console.error("trying to ".concat(e," values from an un-initialised filter!"));var s,f=(a=c.filters[n].slice()).map((function(e){return e.value})),d=g(t);try{for(d.s();!(s=d.n()).done;){var p=s.value,h=f.indexOf(p);-1!==h?"remove"===e?a.splice(h,1):a[h].active=!1:console.error("trying to ".concat(e," filter value ").concat(p," which was not part of the filter selection"))}}catch(e){d.e(e)}finally{d.f()}break;default:return void console.error("applyFilter called with invalid mode: ".concat(e))}r({type:i.c,trait:n,values:a}),r(x())}},j=function(){return{type:i.Z}},C=function(e){return function(n,t){var r=t(),a=r.tree,c=r.metadata,l=r.controls;if(a.nodes.forEach((function(e){if(e.hasOwnProperty("unexplodedChildren")){e.children=e.unexplodedChildren,e.hasChildren=!0,delete e.unexplodedChildren;var n,t=g(e.children);try{for(t.s();!(n=t.n()).done;)n.value.parent=e}catch(e){t.e(e)}finally{t.f()}}})),e){var u=a.nodes[0];if(function e(n,t,r){var o=t.hasChildren?y(t.children):[];if(0===t.arrayIdx)t.unexplodedChildren=o;else if(t.hasChildren){var i=Object(d.h)(t,r),a=t.children.map((function(e){return Object(d.h)(e,r)})).map((function(e,n){return e!==i?n:void 0})).filter((function(e){return void 0!==e}));a.length&&(a.forEach((function(e){var r=t.children[e];n.children.push(r),r.parent=n})),t.unexplodedChildren=o,t.children=t.children.filter((function(e,n){return!a.includes(n)})),0===t.children.length&&(t.hasChildren=!1))}var c,l=g(o);try{for(l.s();!(c=l.n()).done;){var u=c.value;e(n,u,r)}}catch(e){l.e(e)}finally{l.f()}}(u,u,e),u.unexplodedChildren.length===u.children.length)return void n(Object(p.d)({message:"Cannot explode tree on this trait - is it defined on internal nodes?"}));!function(e,n,t){var r=Object(f.c)(t,e.colorings[t],n,void 0);n[0].children.sort((function(e,n){var o=[Object(d.h)(e,t),Object(d.h)(n,t)],i=o[0],a=o[1];if(r.length){var c=[r.indexOf(i),r.indexOf(a)],l=c[0],u=c[1];return-1===l&&-1===u||(-1===u||l<u)?-1:l>u?1:0}return i>a?-1:1}))}(c,a.nodes,e)}Object(h.a)(a.nodes[0]),Object(h.b)(a.nodes[0],a.visibility),O(0,a);var s=Object(o.a)(a,l,{dateMinNumeric:l.dateMinNumeric,dateMaxNumeric:l.dateMaxNumeric});s.idxOfInViewRootNode=0,s.stateCountAttrs=Object.keys(l.filters),s.visibleLegendValues=Object(f.b)({colorBy:l.colorBy,genotype:l.colorScale.genotype,scaleType:l.colorScale.scaleType,legendValues:l.colorScale.legendValues,treeNodes:a.nodes,visibility:s.visibility}),n(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({type:i.p,explodeAttr:e},s))}}},704:function(e,n,t){"use strict";t.d(n,"d",(function(){return f})),t.d(n,"c",(function(){return d})),t.d(n,"g",(function(){return p})),t.d(n,"h",(function(){return h})),t.d(n,"b",(function(){return b})),t.d(n,"a",(function(){return y})),t.d(n,"f",(function(){return g})),t.d(n,"e",(function(){return v}));var r=t(809),o=t(1092),i=t(732),a=t(700),c=t(696),l=t(693);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var f=function(e,n){var t=0,o=0,i=0;e.forEach((function(e){var a=Object(r.g)(n[e.arrayIdx]);t+=a.r,o+=a.g,i+=a.b}));var a=e.length;return Object(r.g)(t/a,o/a,i/a).toString()},d=function(e){return!!Object(a.f)(e)&&(Object(a.a)(e).aa?"aa":"nuc")},p=function(e,n,t,r){var o=e.map((function(e){return Object(c.h)(e,t)}));return n&&n.forEach((function(e){return o.push(Object(c.h)(e,t))})),(o=u(new Set(o))).filter((function(e){return-1===r.indexOf(e)})).filter((function(e){return Object(l.C)(e)}))},h=function(e,n){return Object(a.f)(n.colorBy)&&n.genotype?e.currentGt:Object(c.h)(e,n.colorBy)},b=function(e,n){return e&&e.nodes&&n&&n.colorBy?e.nodes.map((function(e){return h(e,n)})).map((function(e){return n.scale(e)})):null},m=Object(i.a)().exponent([.6]).domain([0,2]).range([.4,1]).clamp(!0),y=function(e,n,t){return!0===n?e.nodeColors.map((function(n,i){var a=Object(c.h)(e.nodes[i],t,{entropy:!0}),l=a?m(a):.6;return Object(r.g)(Object(o.a)(n,"#BBB")(l)).toString()})):e.nodeColors.map((function(e){return Object(r.g)(Object(o.a)(e,"#BBB")(.6)).toString()}))},g=function(e){var n=Object(r.f)(e);return n.s*=1.8,n.l/=1.2,Object(r.g)(n).toString()},v=function(e){return Object(r.g)(e).brighter([.65]).toString()}},705:function(e,n,t){"use strict";t.d(n,"a",(function(){return i})),t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"d",(function(){return l})),t.d(n,"f",(function(){return u})),t.d(n,"g",(function(){return s})),t.d(n,"e",(function(){return f})),t.d(n,"h",(function(){return d}));var r=t(670),o=t(786),i=r.c.div.withConfig({displayName:"styles__ControlsContainer",componentId:"sc-3vqs3j-0"})(["display:flex;flex-direction:column;align-content:stretch;flex-wrap:nowrap;height:100%;order:0;flex-grow:0;flex-shrink:1;flex-basis:auto;align-self:auto;padding:0px 20px 20px 20px;"]),a=r.c.div.withConfig({displayName:"styles__HeaderContainer",componentId:"sc-3vqs3j-1"})(["display:flex;justify-content:space-between;font-family:",";font-size:16px;line-height:28px;min-height:28px;margin-top:15px;margin-bottom:5px;font-weight:500;color:",";"],(function(e){return e.theme["font-family"]}),(function(e){return e.theme.color})),c=r.c.span.withConfig({displayName:"styles__HeaderIconContainer",componentId:"sc-3vqs3j-2"})(["padding-top:4px;padding-right:3px;cursor:help;color:#888;"]),l=r.c.button.withConfig({displayName:"styles__SidebarButton",componentId:"sc-3vqs3j-3"})(["border:0px;background-color:inherit;margin:5px 5px 10px 5px;border-radius:2px;cursor:pointer;padding:2px;font-family:",";color:",";font-weight:400;text-transform:uppercase;font-size:14px;vertical-align:top;outline:0;"],(function(e){return e.theme["font-family"]}),(function(e){return e.selected?e.theme.selectedColor:e.theme.unselectedColor})),u=r.c.div.withConfig({displayName:"styles__SidebarSubtitle",componentId:"sc-3vqs3j-4"})(["font-family:",";margin:","px 0px 5px 0px;font-size:12px;font-weight:400;color:",";"],(function(e){return e.theme["font-family"]}),(function(e){return e.spaceAbove?"5":"0"}),(function(e){return e.theme.color})),s=Object(r.c)(u).withConfig({displayName:"styles__SidebarSubtitleFlex",componentId:"sc-3vqs3j-5"})(["display:flex;justify-content:space-between;"]),f=r.c.span.withConfig({displayName:"styles__SidebarIconContainer",componentId:"sc-3vqs3j-6"})(["padding-right:3px;font-size:16px;cursor:help;color:#888;"]),d=Object(r.c)(o.a).withConfig({displayName:"styles__StyledTooltip",componentId:"sc-3vqs3j-7"})(["max-width:30vh;white-space:normal;line-height:1.2;padding:21px !important;z-index:1001 !important;& > br{margin-bottom:10px;}"])},707:function(e,n,t){"use strict"},712:function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r=t(1),o=t.n(r),i=t(5),a=t(682);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var s={IndicatorSeparator:function(){return null},DropdownIndicator:function(e){return o.a.createElement(i.q.DropdownIndicator,e,o.a.createElement("span",{style:{borderColor:"#999 transparent transparent",borderStyle:"solid",borderWidth:"5px 5px 2.5px",display:"inline-block",height:0,width:0,position:"relative"}}))}},f={menu:function(e){return l(l({},e),{},{marginTop:0})},placeholder:function(e){return l(l({},e),{},{color:"#aaa"})}};n.b=function(e){var n=l(l({},s),e.components),t=l(l({},f),e.styles),r=l(l({},e),{},{components:n,styles:t});return o.a.createElement(a.a,r)}},713:function(e,n,t){"use strict";t.d(n,"a",(function(){return o})),t.d(n,"b",(function(){return i}));var r={},o=function(e){return r[e]?r[e]:(console.error("Requested non-existing extension",e),!1)},i=function(e){return Object.keys(r).includes(e)}},714:function(e,n,t){"use strict";t.d(n,"c",(function(){return l})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return s}));var r,o,i=t(713);function a(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function c(e){a(i,r,o,c,l,"next",e)}function l(e){a(i,r,o,c,l,"throw",e)}c(void 0)}))}}var l=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(i.b)("googleAnalyticsKey")){e.next=2;break}return e.abrupt("return");case 2:return o=t.e(12).then(t.bind(null,1089)),e.next=5,o;case 5:r=e.sent.default,e.next=9;break;case 9:r.initialize(Object(i.a)("googleAnalyticsKey"));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=5;break}return e.next=3,o;case 3:e.next=6;break;case 5:return e.abrupt("return");case 6:r.set({page:window.location.pathname}),r.pageview(window.location.pathname);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=5;break}return e.next=3,o;case 3:e.next=6;break;case 5:return e.abrupt("return");case 6:r.event({category:"Controls",action:n});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},717:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"a",(function(){return c})),t.d(n,"c",(function(){return l})),t.d(n,"d",(function(){return u}));var r=t(694),o=t(693),i=function(e){return function(n,t){var i=t().notifications.counter+1;n(Object.assign({},e,{type:r.b,id:i})),"error"!==e.notificationType&&window.setTimeout((function(){return n({type:r.N,id:i})}),o.J)}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.message,t=void 0===n?"Info":n,r=e.details,o=void 0===r?"":r;return i({notificationType:"info",message:t,details:o})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.message,t=void 0===n?"Error":n,r=e.details,o=void 0===r?"":r;return i({notificationType:"error",message:t,details:o})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.message,t=void 0===n?"Success!":n,r=e.details,o=void 0===r?"":r;return i({notificationType:"success",message:t,details:o})},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.message,t=void 0===n?"Warning":n,r=e.details,o=void 0===r?"":r;return i({notificationType:"warning",message:t,details:o})}},720:function(e,n,t){"use strict";t.d(n,"b",(function(){return b})),t.d(n,"a",(function(){return y})),t.d(n,"c",(function(){return g}));var r=t(726),o=t.n(r),i=t(769),a=t(694),c=t(788),l=t(717);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}var b=function(e){var n=e.toLowerCase().replace(/^\/+/,"").replace(/\/+$/,"").split("/");return!n.length||1===n.length&&""===n[0]||1===n.length&&"staging"===n[0]||1===n.length&&"community"===n[0]||1===n.length&&"narratives"===n[0]||2===n.length&&"groups"===n[0]?"splash":"status"===n[0]?"status":"datasetLoader"},m=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,t,r,o,u){var f,p,h,b,m,y,g,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f=Object(c.a)(o),p=d(f,2),h=p[0],b=p[1],m=t[h],y=t[b],e.next=6,m.main;case 6:if(g=e.sent,!y){e.next=13;break}return e.next=10,y.main;case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=!1;case 14:v=e.t0,n(s(s({type:a.hb},Object(i.a)({json:g,secondTreeDataset:v,mainTreeName:h,secondTreeName:b,narrativeBlocks:r,query:u,dispatch:n})),{},{pushState:!0,query:u})),m.loadSidecars(n),e.next=23;break;case 19:e.prev=19,e.t1=e.catch(0),n(Object(l.a)({message:"Error loading the datasets for this narrative slide",details:"Please contact the author of this narrative!"})),console.error(e.t1);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){h(i,r,o,a,c,"next",e)}function c(e){h(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e,t,r,o,i){return n.apply(this,arguments)}}(),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=void 0===n?void 0:n,r=e.query,c=void 0===r?void 0:r,l=e.push,u=void 0===l||l,f=e.changeDatasetOnly,d=void 0!==f&&f;return function(e,n){var r=n();if(t||(t=window.location.pathname),c||(c=o.a.parse(window.location.search)),r.general.pathname!==t)d?m(e,r.jsonCache.jsons,r.narrative.blocks,t,c):e({type:a.M,path:t,displayComponent:b(t),pushState:u,query:c});else{var l=Object(i.a)({oldState:r,query:c,narrativeBlocks:r.narrative.blocks,dispatch:e});e(s(s({type:a.hb},l),{},{pushState:u,query:c}))}}},g=function(e){return{type:a.M,displayComponent:"splash",errorMessage:e,pushState:!0}}},721:function(e,n,t){"use strict";var r=t(1),o=t.n(r),i=t(695);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=b(e);if(n){var o=b(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&d(e,n)}(c,e);var n,t,r,a=p(c);function c(){return s(this,c),a.apply(this,arguments)}return n=c,(t=[{key:"getStyles",value:function(){return{base:{backgroundColor:"#FFFFFF",display:"inline-block",marginLeft:14,marginRight:0,marginTop:0,marginBottom:10,paddingLeft:6,paddingRight:6,paddingBottom:6,overflow:"hidden",position:"relative"},title:{fontFamily:i.d,color:i.a,fontSize:16,marginLeft:0,marginTop:0,marginBottom:8,fontWeight:500,backgroundColor:"#FFFFFF",borderTop:"thin solid #BBB",minHeight:"15px"}}}},{key:"getStylesInfoCard",value:function(){return{base:{backgroundColor:"#FFFFFF",display:"inline-block",marginLeft:14,marginRight:0,marginTop:0,marginBottom:10,paddingLeft:6,paddingRight:6,paddingBottom:6,overflow:"hidden",position:"relative"},title:{fontFamily:i.d,color:"#fff",fontSize:16,marginLeft:0,marginTop:0,marginBottom:8,fontWeight:500,backgroundColor:"#FFFFFF"}}}},{key:"render",value:function(){var e=this.props.infocard?this.getStylesInfoCard():this.getStyles();return o.a.createElement("div",{id:"".concat(this.props.title,"Card"),style:l(l({},e.base),this.props.style)},o.a.createElement("div",{id:"CardTitle",style:l(l({},e.title),this.props.titleStyles)},this.props.title),o.a.createElement("div",{id:"CardContentContainer",style:{display:"flex",justifyContent:this.props.center?"center":"flex-start"}},this.props.children))}}])&&f(n.prototype,t),r&&f(n,r),c}(o.a.Component);n.a=m},723:function(e,n,t){"use strict";t.d(n,"e",(function(){return f})),t.d(n,"f",(function(){return d})),t.d(n,"c",(function(){return p})),t.d(n,"a",(function(){return y})),t.d(n,"b",(function(){return g})),t.d(n,"d",(function(){return w}));var r=t(693),o=t(728),i=t(696),a=t(717);function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||u(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var f=function(e,n){return e.filter((function(e,t){return n[t]===r.b&&!e.hasChildren})).reduce((function(e,n){var t=Object(i.h)(n,"num_date");return t?[Math.min(t,e[0]),Math.max(t,e[1])]:e}),[1e5,-1e5])},d=function(e,n){var t;for(t=0;t<e.length;t++)if(e[t].name===n)return t;return console.error("strainNameToIdx couldn't find strain"),0},p=function(e,n,t,r){var o,i=0;for(o=0;o<e.length;o++)if(e[o].branch_attrs&&void 0!==e[o].branch_attrs.labels&&e[o].branch_attrs.labels[n]===t){if(0!==i)return console.error("getIdxMatchingLabel found multiple labels ".concat(n,"===").concat(t)),r(Object(a.d)({message:"Specified Zoom Label Found Multiple Times!",details:"Multiple nodes in the tree are labelled '"+n+" "+t+"' - no zoom performed"})),0;i=o}return 0===i&&(console.error("getIdxMatchingLabel couldn't find label ".concat(n,"===").concat(t)),r(Object(a.d)({message:"Specified Zoom Label Value Not Found!",details:"The label '"+n+"' value '"+t+"' was not found in the tree - no zoom performed"}))),i},h=function(e,n){var t=e[0].tipCount;return t||(t=1),e.map((function(e,o){return n[o]===r.b?Object(r.v)((e.tipCount+5)/(t+5)):.5}))},b=function e(n,t){0===t.arrayIdx||n[t.parent.arrayIdx]||(n[t.parent.arrayIdx]=!0,e(n,t.parent))},m=function(e,n,t){if(!e.nodes)return console.error("getFiltered() ran without tree.nodes"),null;var o,a,u=[];if(Reflect.ownKeys(n.filters).forEach((function(e){if(e!==r.y){var t=n.filters[e].filter((function(e){return e.active})).map((function(e){return e.value}));t.length&&u.push({trait:e,values:t})}})),u.length){for(var s=(o=e.nodes.map((function(e,n){return!e.hasChildren&&t[n]&&u.every((function(n){return n.values.includes(Object(i.h)(e,n.trait))}))}))).reduce((function(e,n,t){return n&&e.push(t),e}),[]),f=0;f<s.length;f++)b(o,e.nodes[s[f]]);a=function e(n,t){if(!t.hasChildren)return t.arrayIdx;var r=t.children.filter((function(e){return n[e.arrayIdx]}));if(r.length>1)return t.arrayIdx;n[t.arrayIdx]=!1;for(var o=0;o<r.length;o++){var i=e(n,r[o]);if(i)return i}return null}(o,e.nodes[0])}var d=l(function(e,n,t){var o=!!Reflect.ownKeys(n).includes(r.y)&&n[r.y].filter((function(e){return e.active})).map((function(e){return e.value}));if(!o||!o.length)return;e||(e=Array.from({length:t.length},(function(){return!0})));var i=g(o),a=i.length,l=new Array(a),u=new Array(t.length);!function e(n,t){if(n.branch_attrs&&n.branch_attrs.mutations&&Object.keys(n.branch_attrs.mutations).length)for(var r=n.branch_attrs.mutations,o=0;o<a;o++)if(r[i[o][0]]){var s=r[i[o][0]].map((function(e){return e.slice(1,-1)})),f=r[i[o][0]].map((function(e){return e.slice(-1)})),d=s.indexOf(i[o][1]);-1!==d&&(i[o][2].has(f[d])?t[o]=!0:t[o]=!1,l[o]||(l[o]=r[i[o][0]][d].slice(0,1)))}u[n.arrayIdx]=t,n.hasChildren&&n.children.forEach((function(n){return e(n,c(t))}))}(t[0],Array.from({length:a},(function(){})));var s=l.map((function(e,n){return i[n][2].has(e)})),f=e.map((function(e,n){return!!e&&u[n].map((function(e,n){return void 0===e?s[n]:e})).every((function(e){return e}))})),d=function(e,n){var t=[],r=new Set,o=0;function i(e){if(n[e.arrayIdx])t.push(e.arrayIdx);else if(e.hasChildren)for(var r=0;r<e.children.length;r++)i(e.children[r])}return i(e[0]),t.forEach((function(n){return function n(t){r.add(t);var o=e[t].parent.arrayIdx;if(0===t||r.has(o))return;n(o)}(n)})),function e(n){var t=n.arrayIdx;if(!r.has(t))return;if(!n.hasChildren)return void(o=t);var i=n.children.filter((function(e){return r.has(e.arrayIdx)}));if(1!==i.length)return void(o=t);e(i[0])}(e[0]),o}(t,f);return[f,d]}(o,n.filters,e.nodes)||[o,a],2);return{filtered:o=d[0],idxOfFilteredRoot:a=d[1]}},y=function(e,n,t){var a=function(e){if(!e.nodes)return console.error("getInView() ran without tree.nodes"),null;var n;try{n=e.nodes.map((function(e){return e.shell.inView}))}catch(t){n=e.nodes.map((function(e){return void 0===e.inView||e.inView}))}return n}(e),c=m(e,n,a)||{},l=c.filtered,u=c.idxOfFilteredRoot,s=function(e,n,t,o,a){return e.nodes?e.nodes.map((function(e,c){if(o[c]&&(!a||a[c])){var l=Object(i.h)(e,"num_date"),u=Object(i.h)(e.parent,"num_date");if(!l||!u)return r.b;if("divOnly"===n.branchLengthsToDisplay)return r.b;if(l>=t.dateMinNumeric&&l<=t.dateMaxNumeric)return r.b;if(!(l<t.dateMinNumeric||u>t.dateMaxNumeric))return r.c}return r.a})):(console.error("calcVisibility ran without tree.nodes"),r.b)}(e,n,t,a,l);return Object(o.b)(e.nodes[0],s),{visibility:s,visibilityVersion:e.visibilityVersion+1,branchThickness:h(e.nodes,s),branchThicknessVersion:e.branchThicknessVersion+1,idxOfFilteredRoot:u}};function g(e){return e.map((function(e){var n=l(e.split(" "),2),t=n[0],r=n[1];return[t,r.slice(0,-1),r.slice(-1)]})).sort(v).map((function(e,n){return 0===n?[[e[0],e[1],new Set(e[2])]]:e})).reduce((function(e,n){var t=e[e.length-1];return n[0]===t[0]&&n[1]===t[1]?t[2].add(n[2]):e.push([n[0],n[1],new Set(n[2])]),e}))}function v(e,n){if(e[0]!==n[0])return"nuc"===e[0]?1:"nuc"===n[0]||e<n?-1:1;var t=[parseInt(e[1],10),parseInt(n[1],10)],r=t[0],o=t[1];return r>o?1:o>r?-1:e[2]>n[2]?1:e[2]<n[2]?-1:0}var w=function(e,n){var t=0;return e.forEach((function(e,o){e.hasChildren||n[o]!==r.b||(t+=1)})),t}},726:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=t(871),i=t(206);function a(e,n){return n.encode?n.strict?o(e):encodeURIComponent(e):e}n.extract=function(e){return e.split("?")[1]||""},n.parse=function(e,n){var t=function(e){var n;switch(e.arrayFormat){case"index":return function(e,t,r){n=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),n?(void 0===r[e]&&(r[e]={}),r[e][n[1]]=t):r[e]=t};case"bracket":return function(e,t,r){n=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),n?void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=[t]:r[e]=t};default:return function(e,n,t){void 0!==t[e]?t[e]=[].concat(t[e],n):t[e]=n}}}(n=i({arrayFormat:"none"},n)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=n.shift(),i=n.length>0?n.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),t(decodeURIComponent(r),i,o)})),Object.keys(o).sort().reduce((function(e,n){var t=o[n];return Boolean(t)&&"object"===r(t)&&!Array.isArray(t)?e[n]=function e(n){return Array.isArray(n)?n.sort():"object"===r(n)?e(Object.keys(n)).sort((function(e,n){return Number(e)-Number(n)})).map((function(e){return n[e]})):n}(t):e[n]=t,e}),Object.create(null))):o},n.stringify=function(e,n){var t=function(e){switch(e.arrayFormat){case"index":return function(n,t,r){return null===t?[a(n,e),"[",r,"]"].join(""):[a(n,e),"[",a(r,e),"]=",a(t,e)].join("")};case"bracket":return function(n,t){return null===t?a(n,e):[a(n,e),"[]=",a(t,e)].join("")};default:return function(n,t){return null===t?a(n,e):[a(n,e),"=",a(t,e)].join("")}}}(n=i({encode:!0,strict:!0,arrayFormat:"none"},n));return e?Object.keys(e).sort().map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return a(r,n);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(t(r,e,i.length))})),i.join("&")}return a(r,n)+"="+a(o,n)})).filter((function(e){return e.length>0})).join("&"):""}},728:function(e,n,t){"use strict";t.d(n,"d",(function(){return i})),t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return l}));var r=t(693),o=t(696),i=function(e,n,t,i){var a={};return n.forEach((function(e){a[e]=new Map})),e.forEach((function(e){n.forEach((function(n){var c=Object(o.h)(e,n);if(!(i&&e.hasChildren||t&&t[e.arrayIdx]!==r.b)){var l=a[n].get(c)||0;a[n].set(c,l+1)}}))})),a},a=function e(n,t){if(n.tipCount=0,void 0!==n.children)for(var o=0;o<n.children.length;o++)e(n.children[o],t),n.tipCount+=n.children[o].tipCount;else n.tipCount=t[n.arrayIdx]===r.b?1:0},c=function(e){var n=0;return e.forEach((function(e){e.hasChildren||n++})),n},l=function e(n){if(n.fullTipCount=0,void 0!==n.children)for(var t=0;t<n.children.length;t++)e(n.children[t]),n.fullTipCount+=n.children[t].fullTipCount;else n.fullTipCount=1}},733:function(e,n,t){"use strict";t.d(n,"b",(function(){return h})),t.d(n,"c",(function(){return b}));var r=t(699),o=t(693),i=t(694),a=t(780),c=t(769),l=t(736);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var h=function(){var e={distanceMeasure:o.o,layout:o.q,geoResolution:o.p,filters:{},filtersInFooter:[],colorBy:o.m,selectedBranchLabel:"none",showTransmissionLines:!0},n={sidebarOpen:window.innerWidth>o.j,setDefault:!1};n.setDefault&&(e.sidebarOpen=n.sidebarOpen);var t=Object(r.g)(Object(r.c)()-o.n),i=Object(r.b)(),c=Object(r.a)(t),l=Object(r.a)(i);return{defaults:e,available:void 0,canTogglePanelLayout:!0,selectedNode:null,region:null,search:null,strain:null,geneLength:{},mutType:o.r,temporalConfidence:{exists:!1,display:!1,on:!1},layout:e.layout,scatterVariables:{},distanceMeasure:e.distanceMeasure,dateMin:t,dateMinNumeric:c,dateMax:i,dateMaxNumeric:l,absoluteDateMin:t,absoluteDateMinNumeric:c,absoluteDateMax:i,absoluteDateMaxNumeric:l,colorBy:e.colorBy,colorByConfidence:{display:!1,on:!1},colorScale:void 0,explodeAttr:void 0,selectedBranchLabel:"none",canRenderBranchLabels:!0,analysisSlider:!1,geoResolution:e.geoResolution,filters:e.filters,filtersInFooter:e.filtersInFooter,showDownload:!1,quickdraw:!1,mapAnimationDurationInMilliseconds:3e4,mapAnimationStartDate:null,mapAnimationCumulative:!1,mapAnimationShouldLoop:!1,animationPlayPauseButton:"Play",panelsAvailable:[],panelsToDisplay:[],panelLayout:Object(a.a)().width>o.Q?"grid":"full",tipLabelKey:o.M,showTreeToo:void 0,showTangle:!1,zoomMin:void 0,zoomMax:void 0,branchLengthsToDisplay:"divAndDate",sidebarOpen:n.sidebarOpen,treeLegendOpen:void 0,mapLegendOpen:void 0,showOnlyPanels:!1,showTransmissionLines:!0,normalizeFrequencies:!0,measurementsGroupBy:void 0,measurementsDisplay:"mean",measurementsShowOverallMean:!0,measurementsShowThreshold:!0,measurementsFilters:{}}},b=function(e,n,t){return e&&"num_date"===n&&"rect"===t};n.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h(),n=arguments.length>1?arguments[1]:void 0;switch(n.type){case i.hb:case i.z:return n.controls;case i.P:return Object.assign({},e,{available:n.data});case i.K:return Object.assign({},e,{selectedNode:n.data});case i.L:return Object.assign({},e,{selectedNode:null});case i.p:return Object.assign({},e,{explodeAttr:n.explodeAttr,colorScale:Object.assign({},e.colorScale,{visibleLegendValues:n.visibleLegendValues})});case i.m:return Object.assign({},e,{selectedBranchLabel:n.value});case i.s:return Object.assign({},e,{layout:n.layout,canRenderBranchLabels:n.canRenderBranchLabels,scatterVariables:n.scatterVariables,temporalConfidence:Object.assign({},e.temporalConfidence,{display:b(e.temporalConfidence.exists,e.distanceMeasure,n.data),on:!1})});case i.o:var t={distanceMeasure:n.data,branchLengthsToDisplay:e.branchLengthsToDisplay};return b(e.temporalConfidence.exists,n.data,e.layout)?t.temporalConfidence=Object.assign({},e.temporalConfidence,{display:!0}):t.temporalConfidence=Object.assign({},e.temporalConfidence,{display:!1,on:!1}),Object.assign({},e,t);case i.n:var o={quickdraw:n.quickdraw};n.dateMin&&(o.dateMin=n.dateMin,o.dateMinNumeric=n.dateMinNumeric),n.dateMax&&(o.dateMax=n.dateMax,o.dateMaxNumeric=n.dateMaxNumeric);var a=d(d({},e.colorScale),{},{visibleLegendValues:n.visibleLegendValues});return d(d(d({},e),o),{},{colorScale:a});case i.h:return Object.assign({},e,{absoluteDateMin:n.data,absoluteDateMinNumeric:Object(r.a)(n.data)});case i.g:return Object.assign({},e,{absoluteDateMax:n.data,absoluteDateMaxNumeric:Object(r.a)(n.data)});case i.l:return Object.assign({},e,{mapAnimationDurationInMilliseconds:n.data});case i.i:return Object.assign({},e,{mapAnimationCumulative:n.data});case i.j:return Object.assign({},e,{mapAnimationShouldLoop:n.data});case i.H:return Object.assign({},e,{quickdraw:"Play"!==n.data,animationPlayPauseButton:n.data});case i.k:return Object.assign({},e,{mapAnimationStartDate:n.data});case i.w:return Object.assign({},e,{panelLayout:n.data});case i.x:return d(d({},e),{},{tipLabelKey:n.key});case i.bb:return n.controls;case i.W:return Object.assign({},e,{panelsToDisplay:n.panelsToDisplay,panelLayout:n.panelLayout,canTogglePanelLayout:n.canTogglePanelLayout});case i.J:var s=Object.assign({},e,{colorBy:n.colorBy,colorScale:n.colorScale,colorByConfidence:Object(c.c)(e,n.colorBy)});return n.scatterVariables&&(s.scatterVariables=n.scatterVariables),s;case i.q:return Object.assign({},e,{geoResolution:n.data});case i.c:var f=Object.assign({},e.filters,{});return f[n.trait]=n.values,Object.assign({},e,{filters:f});case i.U:return Object.assign({},e,{mutType:n.data});case i.Z:return Object.assign({},e,{temporalConfidence:Object.assign({},e.temporalConfidence,{on:!e.temporalConfidence.on})});case i.cb:return Object.assign({},e,{showDownload:!0});case i.B:return Object.assign({},e,{showDownload:!1});case i.O:return Object.assign({},e,{showTreeToo:void 0,showTangle:!1,canTogglePanelLayout:Object(l.a)(e.panelsAvailable),panelsToDisplay:e.panelsAvailable.slice()});case i.Y:return e.showTreeToo?Object.assign({},e,{showTangle:!e.showTangle}):e;case i.X:return Object.assign({},e,{sidebarOpen:n.value});case i.R:return Object.assign({},e,{legendOpen:n.value});case i.a:for(var p=0,m=Object.keys(n.newColorings);p<m.length;p++){var y=m[p];e.filters[y]=[],e.coloringsPresentOnTree.add(y)}var g=Object.assign({},e,{coloringsPresentOnTree:e.coloringsPresentOnTree,filters:e.filters});return n.newGeoResolution&&!e.panelsAvailable.includes("map")&&(g=d(d({},g),{},{geoResolution:n.newGeoResolution.key,canTogglePanelLayout:Object(l.a)([].concat(u(e.panelsToDisplay),["map"])),panelsAvailable:[].concat(u(e.panelsAvailable),["map"]),panelsToDisplay:[].concat(u(e.panelsToDisplay),["map"])})),g;case i.gb:var v=Object.assign({},e.colorScale,{visibleLegendValues:n.visibleLegendValues});return Object.assign({},e,{colorScale:v});case i.ab:return Object.assign({},e,{showTransmissionLines:n.data});case i.F:return d(d({},e),{},{normalizeFrequencies:n.normalizeFrequencies});case i.E:return Object.hasOwnProperty.call(n,"normalizeFrequencies")?Object.assign({},e,{normalizeFrequencies:n.normalizeFrequencies}):e;case i.G:case i.t:return d(d({},e),n.controls);case i.v:return d(d({},e),{},{measurementsGroupBy:n.data});case i.T:return d(d({},e),{},{measurementsShowThreshold:n.data});case i.S:return d(d({},e),{},{measurementsShowOverallMean:n.data});case i.u:return d(d({},e),{},{measurementsDisplay:n.data});case i.d:return d(d({},e),{},{measurementsFilters:n.data});default:return e}}},736:function(e,n,t){"use strict";t.d(n,"b",(function(){return c})),t.d(n,"a",(function(){return l})),t.d(n,"c",(function(){return u}));var r=t(904),o=t.n(r),i=t(694),a=["tree","measurements","map"],c=function(e){return o()(e,a).length},l=function(e){return c(e)>1},u=function(e){return function(n,t){var r,o=t().controls,a=o.panelsToDisplay.indexOf(e);-1===a?r=o.panelsAvailable.filter((function(n){return-1!==o.panelsToDisplay.indexOf(n)||n===e})):(r=o.panelsToDisplay.slice()).splice(a,1);var c=l(r),u=c?o.panelLayout:"full";n({type:i.W,panelsToDisplay:r,panelLayout:u,canTogglePanelLayout:c})}}},740:function(e,n,t){"use strict";t.d(n,"a",(function(){return u})),t.d(n,"b",(function(){return s}));var r=t(704),o=t(700),i=t(770),a=(t(707),t(752)),c=t(785),l=t(694),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return function(n,t){var o=t(),u=o.controls,s=o.tree,f=o.treeToo,d=o.metadata,p=o.frequencies;if(null===s.nodes||!d.loaded)return null;var h=e||u.colorBy,b=Object(i.a)(h,u,s,f,d),m=Object(r.b)(s,b),y=f.loaded?Object(r.b)(f,b):void 0,g=Object(r.c)(h),v=g!==u.mutType&&g;return v&&n(Object(a.a)(v)),n({type:l.J,colorBy:h,colorScale:b,nodeColors:m,nodeColorsToo:y,version:b.version}),p.loaded&&Object(c.b)(n,t),null}},s=function(){return function(e,n){var t=n(),r=t.controls;if(!t.metadata.rootSequence)return console.error("Missing root sequence"),null;var i=r.colorBy;return Object(o.f)(i)&&e(u(i)),null}}},751:function(e,n,t){"use strict";t.d(n,"d",(function(){return a})),t.d(n,"a",(function(){return c})),t.d(n,"b",(function(){return l})),t.d(n,"c",(function(){return u}));var r=t(693),o=t(700),i=t(696),a="unassigned",c=function(e,n,t,o){var i=n.length,a=new Array(i).fill(0);e.forEach((function(e){if(o[e.idx]===r.b)for(var n=0;n<i;n++)a[n]+=e.values[n]}));return!0},l=function(e,n,t,c,l,u,s){var f=l.legendValues.filter((function(e){return void 0!==e}));f.push(a);var d=Object(o.f)(u),p={},h=n.length;f.forEach((function(e){p[e]=new Array(h).fill(0)}));var b=new Array(h).fill(0);if(e.forEach((function(e){if(c[e.idx]===r.b)for(var n=function(e,n,t,r,o){if(o)return t.currentGt;var c=Object(i.h)(t,r);if(!c||"unknown"===c)return a;if(!e.continuous)return c;for(var l=0;l<n.length;l++){var u=n[l];if(u===a)return a;var s=e.legendBounds[u][0];if(c<=e.legendBounds[u][1]&&c>s)return u}return console.error("Could not assign",c,"to a category"),a}(l,f,t[e.idx],u,d)||a,o=0;o<h;o++)p[n][o]+=e.values[o],b[o]+=e.values[o]})),s){Object.keys(p).forEach((function(e){b.forEach((function(n,t){n>1e-7?p[e][t]/=n:p[e][t]=0}))}))}return 0===p[a].reduce((function(e,n){return e+n}),0)&&delete p[a],p},u=function(e,n,t){var r=e.pivots.map((function(e){return Math.round(100*parseFloat(e))/100})),o=null;if("projection_pivot"in e&&(o=Math.round(100*parseFloat(e.projection_pivot))/100),!n.loaded)throw new Error("tree not loaded");var i=[];n.nodes.filter((function(e){return!e.hasChildren})).forEach((function(n){e[n.name]?i.push({idx:n.arrayIdx,values:e[n.name].frequencies}):console.warn("No tip frequency information for ".concat(n.name))}));var a=t.normalizeFrequencies&&c(i,r,n.nodes,n.visibility),u=l(i,r,n.nodes,n.visibility,t.colorScale,t.colorBy,a);return{data:i,pivots:r,matrix:u,projection_pivot:o,normalizeFrequencies:a}}},752:function(e,n,t){"use strict";t.d(n,"d",(function(){return u})),t.d(n,"a",(function(){return s})),t.d(n,"c",(function(){return f})),t.d(n,"b",(function(){return d}));var r=t(735),o=t.n(r),i=t(821),a=t(694);function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var u=o()((function(e,n){var t=n(),r=t.entropy,o=t.controls,l=t.tree;if(l.nodes&&l.visibility&&r.geneMap&&"Play"===o.animationPlayPauseButton){var u=c(Object(i.a)(l.nodes,l.visibility,o.mutType,r.geneMap,r.showCounts),2),s=u[0],f=u[1];e({type:a.D,data:s,maxYVal:f})}}),500,{leading:!0,trailing:!0}),s=function(e){return function(n,t){n({type:a.U,data:e}),u(n,t)}},f=function(e){return function(n,t){n({type:a.C,showCounts:e}),u(n,t)}},d=function(e){return function(n,t){n({type:a.y,zoomc:e}),u(n,t)}}},753:function(e,n,t){"use strict";t.d(n,"c",(function(){return c})),t.d(n,"e",(function(){return l})),t.d(n,"d",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return f}));var r=t(770),o=t(700);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){var t=Object.keys(e).filter((function(n){return"boolean"!==e[n].type})).map((function(n){return{value:n,label:e[n].title||n}})),r=Object(o.g)(n);return r?t.forEach((function(e){"gt"===e.value&&(e.label=r)})):t=t.filter((function(e){return"gt"!==e.value})),t.unshift({value:"displayOrder",label:"Node ordering in tree"}),t.unshift({value:"div",label:"Divergence"}),t}function l(e,n,t,r){var o=e.distanceMeasure,l=e.colorBy,f=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e.scatterVariables),d=c(n.colorings,e.colorBy),p={};if(p.showBranches=!Object.prototype.hasOwnProperty.call(f,"showBranches")||f.showBranches,p.showRegression=Object.prototype.hasOwnProperty.call(f,"showRegression")?f.showRegression:!!r,!r){var h=u(d,[f.x,o],f.y);p.x=h.value,p.xLabel=h.label;var b=u(d,[f.y,l],h.value);p.y=b.value,p.yLabel=b.label;for(var m=0,y=["x","y"];m<y.length;m++){s(p,y[m],e,t,n)}p.xContinuous&&p.yContinuous||(p.showRegression=!1)}return p}function u(e,n,t){for(var r=e.map((function(e){return e.value})),i=0;i<n.length;i++)if(n[i]&&n[i]!==t){var a=Object(o.f)(n[i])?"gt":n[i],c=r.indexOf(a);if(-1!==c)return e[c]}for(var l=0;l<r.length;l++)if(r[l]!==t)return e[l]}function s(e,n,t,o,i){var a=e[n];if(["div","num_date","displayOrder"].includes(a)||"continuous"===i.colorings[a].type)return e["".concat(n,"Continuous")]=!0,e["".concat(n,"Domain")]=void 0,e;var c="gt"===e[n]?t.colorBy:e[n];return f(e,Object(r.a)(c,t,o,null,i),n)}function f(e,n,t){return"continuous"===n.scaleType?(e["".concat(t,"Continuous")]=!0,e["".concat(t,"Domain")]=void 0,e):(e["".concat(t,"Continuous")]=!1,e["".concat(t,"Domain")]=n.domain.slice(),e)}},755:function(e,n,t){"use strict";t.d(n,"c",(function(){return y})),t.d(n,"b",(function(){return g})),t.d(n,"a",(function(){return v})),t.d(n,"e",(function(){return w})),t.d(n,"d",(function(){return O})),t.d(n,"f",(function(){return x}));var r=t(915),o=t.n(r),i=t(693),a=t(835),c=t(694);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var b=function(e,n){if(!n)return e[0];var t=e.filter((function(e){return e.key===n}));return 0===t.length?e[0]:(t.length>1&&console.error("Found multiple collections with key ".concat(n,". Returning the first matching collection only.")),t[0])},m=function(e,n){var t=o()(e,["measurementsGroupBy","measurementsDisplay","measurementsShowOverallMean","measurementsShowThreshold","measurementsFilters"]);if(!n.fields.has(t.measurementsGroupBy)){var r=d(n.groupings.keys(),1);t.measurementsGroupBy=r[0]}if(Object.entries(t.measurementsFilters).forEach((function(e){var r=d(e,2),o=r[0],i=r[1];return n.filters.has(o)?(t.measurementsFilters[o]=new Map(i),f(i.keys()).forEach((function(e){n.filters.get(o).values.has(e)||t.measurementsFilters[o].delete(e)}))):delete t.measurementsFilters[o]})),n.display_defaults){var i=n.display_defaults,a=i.group_by,c=i.measurement_display,l=i.show_overall_mean,u=i.show_threshold;a&&(t.measurementsGroupBy=a),c&&(t.measurementsDisplay=c),"boolean"==typeof l&&(t.measurementsShowOverallMean=l),"boolean"==typeof u&&(t.measurementsShowThreshold=u)}return t},y=function(e){return function(n,t){var r=t(),o=r.tree,l=r.controls;if(!o.loaded)throw new Error("tree not loaded");var u=e.collections;if(!u||0===u.length)throw new Error("Measurements JSON does not have collections");u.forEach((function(e){e.fields=new Map((e.fields||[]).map((function(e){var n=e.key;return[n,{title:e.title||n}]})));var n=e.filters;e.filters=new Map((e.filters||[]).map((function(e){return[e,{values:new Set}]})));var t=e.groupings.reduce((function(e,n){return e[n.key]={},e}),{});e.measurements.forEach((function(r,o){Object.entries(r).forEach((function(r){var o=d(r,2),i=o[0],a=o[1];if(e.fields.has(i)||e.fields.set(i,{title:i}),e.filters.has(i)||!n){var c=e.filters.get(i)||{values:new Set};c.values.add(a),e.filters.set(i,c)}if(i in t){var l=t[i][a];t[i][a]=l?l+1:1}}));var c=a.i.yMin,l=a.i.yMax;r[i.E]=Math.random()*(l-c+1)+c,r[i.D]=o})),e.groupings=new Map(e.groupings.map((function(e){var n=e.key,r=e.order,o=Object.entries(t[n]).sort((function(e,n){var t=d(e,2)[1];return d(n,2)[1]-t})).filter((function(e){var n=d(e,1)[0];return!r||!r.includes(n)})).map((function(e){return d(e,1)[0]}));return[n,{values:(r||[]).concat(o)}]})))}));var s=b(u,e.default_collection);n({type:c.G,collections:u,collectionToDisplay:s,controls:m(l,s)})}},g=function(e){return function(n,t){var r=t(),o=r.controls,i=r.measurements,a=b(i.collections,e);n({type:c.t,collectionToDisplay:a,controls:m(o,a)})}},v=function(e,n,t){return function(r,o){var i=u({},o().controls.measurementsFilters);i[e]=new Map(i[e]),i[e].set(n,{active:t}),r({type:c.d,data:i})}},w=function(e,n){return function(t,r){var o=u({},r().controls.measurementsFilters);o[e]=new Map(o[e]),o[e].delete(n),0===o[e].size&&delete o[e],t({type:c.d,data:o})}},O=function(e){return function(n,t){var r=u({},t().controls.measurementsFilters);delete r[e],n({type:c.d,data:r})}},x=function(e,n){return function(t,r){var o=u({},r().controls.measurementsFilters);o[e]=new Map(o[e]);var i,a=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=p(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(o[e].keys());try{for(a.s();!(i=a.n()).done;){var l=i.value;o[e].set(l,{active:n})}}catch(e){a.e(e)}finally{a.f()}t({type:c.d,data:o})}}},759:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"a",(function(){return c}));var r=t(842);function o(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var a=e.apply(n,t);function c(e){o(a,r,i,c,l,"next",e)}function l(e){o(a,r,i,c,l,"throw",e)}c(void 0)}))}}var a=function(){var e=i(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n);case 2:if(200===(t=e.sent).status){e.next=13;break}if(204!==t.status){e.next=6;break}throw new r.a;case 6:return e.t0=Error,e.t1="",e.next=10,t.text();case 10:throw e.t2=e.sent,e.t3=e.t1.concat.call(e.t1,e.t2," (").concat(t.statusText,")"),new e.t0(e.t3);case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),c=function(){var e=i(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(n);case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},769:function(e,n,t){"use strict";t.d(n,"c",(function(){return Y})),t.d(n,"d",(function(){return ee})),t.d(n,"a",(function(){return ne})),t.d(n,"b",(function(){return te}));var r=t(875),o=t.n(r),i=t(726),a=t.n(i),c=t(699),l=t(693),u=t(780),s=t(723),f=t(819),d=t(733),p=t(820),h=t(728),b=t(821),m=t(784),y=t(696);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||w(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,n){if(e){if("string"==typeof e)return O(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,n):void 0}}function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var x=function(e,n,t){n[e.name]||(n[e.name]=!0,t.push(e))},S=function(e){var n=[],t=[],r={};for(n.push(e);0!==n.length;){var o=n.pop();if(x(o,r,t),o.children)for(var i=o.children.length-1;i>=0;i-=1)n.push(o.children[i])}return t},A=function(e){e.parent=e;var n=[];for(n.push(e);0!==n.length;){var t=n.pop();if(t.children)for(var r=t.children.length-1;r>=0;r-=1)t.children[r].parent=t,n.push(t.children[r])}},E=function(e){var n,t=[],r=[],o=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=w(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(Array.isArray(e)?e:[e]);try{for(o.s();!(n=o.n()).done;){var i=n.value;A(i),r.push(t.length),t.push.apply(t,v(S(i)))}}catch(e){o.e(e)}finally{o.f()}t.unshift(function(e,n){var t={name:"__ROOT",node_attrs:{hidden:"always"},children:n.map((function(n){return e[n]}))};t.parent=t;var r=t.children.map((function(e){return Object(y.e)(e)})).filter((function(e){return void 0!==e}));r.length&&(t.node_attrs.div=Math.min.apply(Math,v(r)));var o=t.children.map((function(e){return Object(y.h)(e,"num_date")})).filter((function(e){return void 0!==e}));return o.length&&(t.node_attrs.num_date={value:Math.min.apply(Math,v(o))}),t}(t,r));var a=function(e){return Object(h.a)(e[0]),e.forEach((function(e,n){e.arrayIdx=n,e.hasChildren=void 0!==e.children})),e}(t);!function(e){e.forEach((function(e){e.parentInfo={original:e.parent}}))}(t);var c=a.filter((function(e){var n=Object(y.j)(e);return n&&(Object.keys(n).length>1||"serum"!==Object.keys(n)[0])})),l=function(e){var n=new Set;return e.forEach((function(e){e.branch_attrs&&e.branch_attrs.labels&&Object.keys(e.branch_attrs.labels).forEach((function(t){n.add(t),e.branch_attrs.labels[t]=String(e.branch_attrs.labels[t])}))})),["none"].concat(v(n))}(t),u=function(e){var n={};return e.forEach((function(e){e.branch_attrs&&e.branch_attrs.mutations&&Object.entries(e.branch_attrs.mutations).forEach((function(e){var t=g(e,2),r=t[0];t[1].forEach((function(e){n["".concat(r,":").concat(e)]?n["".concat(r,":").concat(e)]++:n["".concat(r,":").concat(e)]=1}))}))})),n}(t);return Object.assign({},Object(m.b)(),{nodes:a,vaccines:c,observedMutations:u,availableBranchLabels:l,loaded:!0})},j=function(e){var n={};e.forEach((function(e){n[e.prot]=e}));for(var t=Object.keys(n).sort((function(e,t){return n[e].start<n[t].start?-1:n[e].start>n[t].start?1:0})),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];n[i].idx=t.indexOf(i)}return n},C=function(e){if(e&&e.nuc){var n=function(e){for(var n=[],t=[],r=0,o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];a!==l.K?(r++,n.push({prot:a,start:e[a].start-1,end:e[a].end,strand:e[a].strand,fill:l.x[r%10]})):t.push({start:e[a].start-1,end:e[a].end})}return[n,t]}(e),t=n[0];return{showCounts:!1,loaded:!0,annotations:t,lengthSequence:n[1][0].end,geneMap:j(t)}}return{showCounts:!1,loaded:!1,annotations:[],geneMap:{}}},B=t(704),T=t(770),D=t(751),k=t(702),_=t(753),M=t(700),P=t(824),R=t(736);function F(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?F(Object(t),!0).forEach((function(n){N(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function L(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||V(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,n){if(e){if("string"==typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Y=function(e,n){return e.coloringsPresentOnTreeWithConfidence.has(n)},G=function(e,n){var t=Object(y.h)(e[0],"num_date");return void 0===t?Object(c.g)(n.dateMaxNumeric-l.n):Object(c.g)(t-.01)},H=function(e){var n=l.L;return e.forEach((function(e){var t=Object(y.h)(e,"num_date");void 0!==t&&t>n&&(n=t)})),n+=.01,Object(c.g)(n)},W=function(e,n){if(n.l&&(e.layout=n.l),n.gmin&&(e.zoomMin=parseInt(n.gmin,10)),n.gmax&&(e.zoomMax=parseInt(n.gmax,10)),n.m&&"divAndDate"===e.branchLengthsToDisplay&&(e.distanceMeasure=n.m),n.c&&(e.colorBy=n.c),void 0===n.ci?e.temporalConfidence.on=!1:e.temporalConfidence.on=!0,n.r&&(e.geoResolution=n.r),n.d){var t=n.d.split(",");e.panelsToDisplay=e.panelsAvailable.filter((function(e){return-1!==t.indexOf(e)})),e.canTogglePanelLayout=Object(R.a)(e.panelsToDisplay),e.canTogglePanelLayout||(e.panelLayout="full")}n.p&&e.canTogglePanelLayout&&("full"===n.p||"grid"===n.p)&&(e.panelLayout=n.p),n.tl&&(e.tipLabelKey=n.tl),n.dmin&&(e.dateMin=n.dmin,e.dateMinNumeric=Object(c.a)(n.dmin)),n.dmax&&(e.dateMax=n.dmax,e.dateMaxNumeric=Object(c.a)(n.dmax));var r,o=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=V(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(Object.keys(n).filter((function(e){return e.startsWith("f_")})));try{for(o.s();!(r=o.n()).done;){var i=r.value;e.filters[i.replace("f_","")]=n[i].split(",").map((function(e){return{value:e,active:!0}}))}}catch(e){o.e(e)}finally{o.f()}if(n.s&&(e.filters[l.M]=n.s.split(",").map((function(e){return{value:e,active:!0}}))),n.gt&&(e.filters[l.y]=Object(M.b)(n.gt)),n.animate){var a=n.animate.split(",");window.NEXTSTRAIN.animationStartPoint=Object(c.a)(a[0]),window.NEXTSTRAIN.animationEndPoint=Object(c.a)(a[1]),e.dateMin=a[0],e.dateMax=a[1],e.dateMinNumeric=Object(c.a)(a[0]),e.dateMaxNumeric=Object(c.a)(a[1]),e.mapAnimationShouldLoop="1"===a[2],e.mapAnimationCumulative="1"===a[3],e.mapAnimationDurationInMilliseconds=parseInt(a[4],10),e.animationPlayPauseButton="Pause"}else e.animationPlayPauseButton="Play";return n.branchLabel&&(e.selectedBranchLabel=n.branchLabel),n.sidebar&&("open"===n.sidebar?(e.defaults.sidebarOpen=!0,e.sidebarOpen=!0):"closed"===n.sidebar&&(e.defaults.sidebarOpen=!1,e.sidebarOpen=!1)),n.legend&&("open"===n.legend?e.legendOpen=!0:"closed"===n.legend&&(e.legendOpen=!1)),"onlyPanels"in n&&(e.showOnlyPanels=!0),n.transmissions&&("show"===n.transmissions?e.showTransmissionLines=!0:"hide"===n.transmissions&&(e.showTransmissionLines=!1)),"hide"===n.branches&&(e.scatterVariables.showBranches=!1),"show"===n.regression&&(e.scatterVariables.showRegression=!0),"hide"===n.regression&&(e.scatterVariables.showRegression=!1),n.scatterX&&(e.scatterVariables.x=n.scatterX),n.scatterY&&(e.scatterVariables.y=n.scatterY),e},$=function(e,n){if(n.date_range&&(n.date_range.date_min&&(e.dateMin=n.date_range.date_min,e.dateMinNumeric=Object(c.a)(e.dateMin),e.absoluteDateMin=n.date_range.date_min,e.absoluteDateMinNumeric=Object(c.a)(e.absoluteDateMin),e.mapAnimationStartDate=n.date_range.date_min),n.date_range.date_max&&(e.dateMax=n.date_range.date_max,e.dateMaxNumeric=Object(c.a)(e.dateMax),e.absoluteDateMax=n.date_range.date_max,e.absoluteDateMaxNumeric=Object(c.a)(e.absoluteDateMax))),n.analysisSlider&&(e.analysisSlider={key:n.analysisSlider,valid:!1}),n.filters?(e.filtersInFooter=z(n.filters),n.filters.forEach((function(n){e.filters[n]=[]}))):(console.warn("JSON did not include any filters"),e.filtersInFooter=[]),e.filters[l.M]=[],e.filters[l.y]=[],n.displayDefaults)for(var t=["geoResolution","colorBy","distanceMeasure","layout","mapTriplicate","selectedBranchLabel","sidebar","showTransmissionLines","normalizeFrequencies"],r=["string","string","string","string","boolean","string","string","boolean","boolean"],o=0;o<t.length;o+=1)Object.hasOwnProperty.call(n.displayDefaults,t[o])&&(U(n.displayDefaults[t[o]])===r[o]?"sidebar"===t[o]?"open"===n.displayDefaults[t[o]]?(e.defaults.sidebarOpen=!0,e.sidebarOpen=!0):"closed"===n.displayDefaults[t[o]]?(e.defaults.sidebarOpen=!1,e.sidebarOpen=!1):console.error("Skipping 'display_default' for sidebar as it's not 'open' or 'closed'"):(e[t[o]]=n.displayDefaults[t[o]],e.defaults[t[o]]=n.displayDefaults[t[o]]):console.error("Skipping 'display_default' for ",t[o],"as it is not of type ",r[o]));else n.displayDefaults={};if(n.panels?(e.panelsAvailable=n.panels.slice(),e.panelsToDisplay=n.panels.slice()):(e.panelsAvailable=["tree"],e.panelsToDisplay=["tree"]),n.geoResolutions&&n.geoResolutions.length||(e.panelsAvailable=e.panelsAvailable.filter((function(e){return"map"!==e})),e.panelsToDisplay=e.panelsToDisplay.filter((function(e){return"map"!==e}))),n.genomeAnnotations&&n.genomeAnnotations.nuc||(e.panelsAvailable=e.panelsAvailable.filter((function(e){return"entropy"!==e})),e.panelsToDisplay=e.panelsToDisplay.filter((function(e){return"entropy"!==e}))),n.displayDefaults&&n.displayDefaults.panels&&Array.isArray(n.displayDefaults.panels)?(n.displayDefaults.panels=n.displayDefaults.panels.filter((function(n){return e.panelsAvailable.includes(n)})),e.panelsToDisplay=e.panelsToDisplay.filter((function(e){return n.displayDefaults.panels.includes(e)})),e.defaults.panels=n.displayDefaults.panels):e.defaults.panels=e.panelsAvailable.slice(),Object(R.a)(e.panelsToDisplay)||(e.panelLayout="full",e.canTogglePanelLayout=!1),n.genomeAnnotations)for(var i=0,a=Object.keys(n.genomeAnnotations);i<a.length;i++){var u=a[i];e.geneLength[u]=n.genomeAnnotations[u].end-n.genomeAnnotations[u].start,u!==l.K&&(e.geneLength[u]/=3)}else console.warn("JSONs did not include `genome_annotations`");return e},X=function(e,n,t,r){if(e.dateMin=G(n.nodes,e),e.dateMax=H(n.nodes),e.dateMinNumeric=Object(c.a)(e.dateMin),e.dateMaxNumeric=Object(c.a)(e.dateMax),t){var o=G(t.nodes,e),i=H(t.nodes),a=Object(c.a)(o),l=Object(c.a)(i);a<e.dateMinNumeric&&(e.dateMinNumeric=a,e.dateMin=o),l>e.dateMaxNumeric&&(e.dateMaxNumeric=l,e.dateMax=i)}e.absoluteDateMin=e.dateMin,e.absoluteDateMax=e.dateMax,e.absoluteDateMinNumeric=Object(c.a)(e.absoluteDateMin),e.absoluteDateMaxNumeric=Object(c.a)(e.absoluteDateMax),e.coloringsPresentOnTree=new Set,e.coloringsPresentOnTreeWithConfidence=new Set;var u=[];r&&(u=Object.keys(r));var s=!1,f=!1,d=function(n){n.forEach((function(n){if(u.forEach((function(t){e.coloringsPresentOnTreeWithConfidence.has(t)||(Object(y.h)(n,t,{confidence:!0})?(e.coloringsPresentOnTreeWithConfidence.add(t),e.coloringsPresentOnTree.add(t)):Object(y.h)(n,t)&&e.coloringsPresentOnTree.add(t))})),n.branch_attrs&&n.branch_attrs.mutations){var t=Object.keys(n.branch_attrs.mutations);(t.length>1||1===t.length&&"nuc"!==t[0])&&(s=!0),t.includes("nuc")&&(f=!0)}}))};d(n.nodes),t&&d(t.nodes),s||f?"aa"!==e.mutType||s?"nuc"!==e.mutType||f||(e.mutType="aa"):e.mutType="nuc":e.mutType=null,(s||f)&&e.coloringsPresentOnTree.add("gt");var p=void 0!==Object(y.h)(n.nodes[0],"num_date"),h=void 0!==Object(y.e)(n.nodes[0]);return e.branchLengthsToDisplay=p&&h?"divAndDate":p?"dateOnly":"divOnly",e.distanceMeasure="divOnly"===e.branchLengthsToDisplay?"div":"dateOnly"===e.branchLengthsToDisplay?"num_date":e.distanceMeasure,-1!==n.availableBranchLabels.indexOf("clade")&&(e.defaults.selectedBranchLabel="clade",e.selectedBranchLabel="clade"),e.temporalConfidence=Object(y.h)(n.nodes[0],"num_date",{confidence:!0})?{exists:!0,display:!0,on:!1}:{exists:!1,display:!1,on:!1},e},J=function(e,n,t,r){var o=e.idxOfInViewRootNode;if(n){var i=L(n.split(":"),2),a=i[0],c=i[1],l=Object(s.c)(e.nodes,a,c,r);e.selectedClade=n,o=Object(k.b)(l,e)}else e.selectedClade=void 0,o=Object(k.b)(0,e);var u=Object(s.a)(e,t,{dateMinNumeric:t.dateMinNumeric,dateMaxNumeric:t.dateMaxNumeric}),f=Object.assign({},e,u);return f.stateCountAttrs=Object.keys(t.filters),f.idxOfInViewRootNode=o,f.visibleStateCounts=Object(h.d)(f.nodes,f.stateCountAttrs,f.visibility,!0),f.totalStateCounts=Object(h.d)(f.nodes,f.stateCountAttrs,!1,!0),f},K=function(e,n){var t=e.indexOf(n);-1!==t&&e.splice(t,1)},Z=function(e,n){return e.showTreeToo=n,e.showTangle=!0,e.layout="rect",e.panelsToDisplay=e.panelsToDisplay.slice(),K(e.panelsToDisplay,"map"),K(e.panelsToDisplay,"entropy"),K(e.panelsToDisplay,"frequencies"),e.canTogglePanelLayout=!1,e.panelLayout="full",e},Q=function(e){var n,t,r={};if(e.meta.colorings&&(r.colorings=(n=e.meta.colorings,t={},n.forEach((function(e){t[e.key]=I({},e),delete t[e.key].key})),t)),r.title=e.meta.title,r.updated=e.meta.updated,e.meta.description&&(r.description=e.meta.description),e.version&&(r.version=e.version),e.meta.maintainers&&(r.maintainers=e.meta.maintainers),e.meta.build_url&&(r.buildUrl=e.meta.build_url),e.meta.genome_annotations&&(r.genomeAnnotations=e.meta.genome_annotations),e.meta.data_provenance&&(r.dataProvenance=e.meta.data_provenance),e.meta.filters&&(r.filters=e.meta.filters),e.meta.panels&&(r.panels=e.meta.panels),e.meta.display_defaults){r.displayDefaults={};for(var o=0,i=Object.entries({color_by:"colorBy",geo_resolution:"geoResolution",distance_measure:"distanceMeasure",branch_label:"selectedBranchLabel",map_triplicate:"mapTriplicate",layout:"layout",language:"language",sidebar:"sidebar",panels:"panels",transmission_lines:"showTransmissionLines"});o<i.length;o++){var a=L(i[o],2),c=a[0],l=a[1];Object.prototype.hasOwnProperty.call(e.meta.display_defaults,c)&&(r.displayDefaults[l]=e.meta.display_defaults[c])}}return e.meta.geo_resolutions&&(r.geoResolutions=e.meta.geo_resolutions),Object.prototype.hasOwnProperty.call(r,"loaded")&&console.error('Metadata JSON must not contain the key "loaded". Ignoring.'),r.loaded=!0,r},ee=function(e,n){var t=parseInt(e.n,10)||0;return t>=n.length&&(console.warn("Attempted to go to narrative page ".concat(t," which doesn't exist")),t=0),t},ne=function(e){var n,t,r,i,c,s,m,g,v=e.json,w=void 0!==v&&v,O=e.secondTreeDataset,x=void 0!==O&&O,S=e.oldState,A=void 0!==S&&S,j=e.narrativeBlocks,k=void 0!==j&&j,R=e.mainTreeName,F=void 0!==R&&R,N=e.secondTreeName,z=void 0!==N&&N,V=e.query,q=e.dispatch;if(w?(c=Q(w),r=C(c.genomeAnnotations),m=Object(p.b)(),(n=E(w.tree)).debug="LEFT",n.name=F,c.mainTreeNumTips=Object(h.c)(n.nodes),x&&((t=E(x.tree)).debug="RIGHT",t.name=z),i=Object(d.b)(),i=X(i,n,t,c.colorings),(i=$(i,c)).absoluteZoomMin=0,i.absoluteZoomMax=r.lengthSequence):A&&(i=o()(A.controls),r=I({},A.entropy),n=I({},A.tree),t=I({},A.treeToo),c=I({},A.metadata),m=I({},A.frequencies),i=function(e){for(var n=0,t=Object.keys(e.defaults);n<t.length;n++){var r=t[n];switch(U(e.defaults[r])){case"boolean":case"string":e[r]=e.defaults[r];break;case"object":e[r]=JSON.parse(JSON.stringify(e.defaults[r]));break;default:console.error("unknown typeof for default state of ",r,e.defaults[r])}}return e.dateMin=e.absoluteDateMin,e.dateMax=e.absoluteDateMax,e.dateMinNumeric=e.absoluteDateMinNumeric,e.dateMaxNumeric=e.absoluteDateMaxNumeric,e.zoomMax=void 0,e.zoomMin=void 0,e.panelLayout=Object(u.a)().width>l.Q?"grid":"full",e.panelsToDisplay=e.panelsAvailable.slice(),e.tipLabelKey=l.M,e.scatterVariables={},e}(i),i=$(i,c)),k&&(g=ee(V,s=k),V=a.a.parse(s[g].query)),i=W(i,V),k&&s[g].mainDisplayMarkdown&&(i.panelsToDisplay=["MainDisplayMarkdown"]),i=function(e,n,t,r,o){n.colorings||(n.colorings={});var i=function(){var r=Object.keys(n.colorings).filter((function(e){return"gt"!==e}));n.displayDefaults&&n.displayDefaults.colorBy&&-1!==r.indexOf(n.displayDefaults.colorBy)?(console.warn("colorBy falling back to",n.displayDefaults.colorBy),e.colorBy=n.displayDefaults.colorBy,e.defaults.colorBy=n.displayDefaults.colorBy):r.length?-1!==r.indexOf(l.m)?(e.colorBy=l.m,e.defaults.colorBy=l.m):(console.error("Error detected trying to set colorBy to",e.colorBy,"falling back to",r[0]),e.colorBy=r[0],e.defaults.colorBy=r[0]):(console.error("Error detected trying to set colorBy to",e.colorBy," as there are no color options defined in the JSONs!"),e.colorBy="none",e.defaults.colorBy="none"),delete t.c};if(Object(M.f)(e.colorBy)?Object(M.a)(e.colorBy,e.geneLength)||i():-1===Object.keys(n.colorings).indexOf(e.colorBy)&&i(),e.zoomMax>e.absoluteZoomMax&&(e.zoomMax=e.absoluteZoomMax),e.zoomMin<e.absoluteZoomMin&&(e.zoomMin=e.absoluteZoomMin),e.zoomMin>e.zoomMax){var a=e.zoomMin;e.zoomMin=e.zoomMax,e.zoomMax=a}if(e.colorByConfidence=Y(e,e.colorBy),-1===["div","num_date"].indexOf(e.distanceMeasure)&&(e.distanceMeasure="num_date",console.error("Error detected. Setting distanceMeasure to ",e.distanceMeasure)),n.geoResolutions){var c=n.geoResolutions.map((function(e){return e.key}));-1===c.indexOf(e.geoResolution)&&(n.displayDefaults&&n.displayDefaults.geoResolution&&-1!==c.indexOf(n.displayDefaults.geoResolution)?e.geoResolution=n.displayDefaults.geoResolution:-1!==c.indexOf(l.p)?e.geoResolution=l.p:e.geoResolution=c[0],console.error("Error detected. Setting geoResolution to ",e.geoResolution),delete t.r)}else console.warn("JSONs did not include `geoResolutions`");if(e.selectedBranchLabel&&!r.availableBranchLabels.includes(e.selectedBranchLabel)&&(console.error("Can't set selected branch label to ",e.selectedBranchLabel),e.selectedBranchLabel="none",e.defaults.selectedBranchLabel="none"),Object(P.a)(n.colorings).map((function(e){return e.value})).includes(e.tipLabelKey)||(console.error("Can't set selected tip label to ",e.tipLabelKey),e.tipLabelKey=l.M),Object(d.c)(e.temporalConfidence.exists,e.distanceMeasure,e.layout)?e.temporalConfidence.display=!0:(e.temporalConfidence.display=!1,e.temporalConfidence.on=!1,delete t.ci),e.colorBy){var u=Object(B.c)(e.colorBy);u&&(e.mutType=u)}var s=Object.keys(e.filters).filter((function(n){return e.filters[n].length})),f=Object(h.d)(r.nodes,s,!1,!0);if(s.forEach((function(n){var r=e.filters[n].filter((function(e){return f[n].has(e.value)}));e.filters[n]=r,r.length?t["f_".concat(n)]=r.map((function(e){return e.value})).join(","):delete t["f_".concat(n)]})),e.filters[l.M]){var p=r.nodes.map((function(e){return e.name}));e.filters[l.M]=e.filters[l.M].filter((function(e){return p.includes(e.value)})),t.s=e.filters[l.M].map((function(e){return e.value})).join(","),t.s||delete t.s}if(e.filters[l.y]){var b=Object(y.b)(r.nodes);e.filters[l.y]=e.filters[l.y].filter((function(e){return b.has(e.value)})),t.gt=Object(M.e)(e.filters[l.y])}return t.m&&"divAndDate"!==e.branchLengthsToDisplay&&delete t.m,"open"!==t.sidebar&&"closed"!==t.sidebar&&delete t.sidebar,o&&("sidebarOpen"in e.defaults&&delete e.defaults.sidebarOpen,e.sidebarOpen=!0),"scatter"===e.layout||"clock"===e.layout?(e.scatterVariables=Object(_.e)(e,n,r,"clock"===e.layout),t.scatterX&&t.scatterX!==e.scatterVariables.x&&delete t.scatterX,t.scatterY&&t.scatterY!==e.scatterVariables.y&&delete t.scatterY,"clock"===e.layout&&(delete t.scatterX,delete t.scatterY)):(e.scatterVariables={},delete t.scatterX,delete t.scatterY,delete t.regression,delete t.branches),e}(i,c,V,n,k||A&&A.narrative.display),w||i.colorBy!==A.controls.colorBy){var G=Object(T.a)(i.colorBy,i,n,t,c),H=Object(B.b)(n,G);i.colorScale=G,i.colorByConfidence=Y(i,i.colorBy),n.nodeColorsVersion=G.version,n.nodeColors=H}if(V.clade&&(V.label||"root"===V.clade||(V.label="clade:".concat(V.clade)),delete V.clade),V.label&&(V.label.includes(":")||(console.error("Defined a label without ':' separator."),delete V.label),n.availableBranchLabels.includes(V.label.split(":")[0])||(console.error("Label name ".concat(V.label.split(":")[0]," doesn't exist")),delete V.label)),n=J(n,V.label,i,q),t&&t.loaded&&(t.nodeColorsVersion=n.nodeColorsVersion,t.nodeColors=Object(B.b)(t,i.colorScale),t=J(t,void 0,i,q),i=Z(i,t.name),t.tangleTipLookup=Object(f.a)(n.nodes,t.nodes,n.visibility,t.visibility)),i.colorScale.visibleLegendValues=Object(T.b)({colorBy:i.colorBy,scaleType:i.colorScale.scaleType,genotype:i.colorScale.genotype,legendValues:i.colorScale.legendValues,treeNodes:n.nodes,treeTooNodes:t?t.nodes:void 0,visibility:n.visibility,visibilityToo:t?t.visibilityToo:void 0}),r.loaded){var K=L(Object(b.a)(n.nodes,n.visibility,i.mutType,r.geneMap,r.showCounts),2),ne=K[0],te=K[1];r.bars=ne,r.maxYVal=te,r.zoomMax=i.zoomMax,r.zoomMin=i.zoomMin,r.zoomCoordinates=[i.zoomMin,i.zoomMax]}m&&m.loaded&&(m.version++,Object(D.a)(m.data,m.pivots,n.nodes,n.visibility)||(i.normalizeFrequencies=!1),m.matrix=Object(D.b)(m.data,m.pivots,n.nodes,n.visibility,i.colorScale,i.colorBy,i.normalizeFrequencies));return k&&(V={n:g}),{tree:n,treeToo:t,metadata:c,entropy:r,controls:i,narrative:s,frequencies:m,query:V}},te=function(e){var n=e.treeTooJSON,t=e.oldState,r=e.originalTreeUrl,o=e.secondTreeUrl,i=e.dispatch,a=t.controls,c=Object.assign({},t.tree);c.name=r;var l=E(n);l.name=o,l.debug="RIGHT",a=X(a,c,l,t.metadata.colorings),a=Z(a,o),l=J(l,void 0,a,i);var u=Object(T.a)(a.colorBy,a,c,l,t.metadata),s=Object(B.b)(l,u);return c.nodeColors=Object(B.b)(c,u),c.nodeColorsVersion++,a.colorScale=u,a.colorByConfidence=Y(a,a.colorBy),l.nodeColorsVersion=u.version,l.nodeColors=s,l.tangleTipLookup=Object(f.a)(c.nodes,l.nodes,c.visibility,l.visibility),{tree:c,treeToo:l,controls:a}}},770:function(e,n,t){"use strict";t.d(n,"a",(function(){return A})),t.d(n,"c",(function(){return B})),t.d(n,"b",(function(){return T}));var r=t(745),o=t(711),i=t(1095),a=t(1096),c=t(1097),l=t(809),u=t(1122),s=t(693),f=t(728),d=t(704),p=t(700),h=t(696);function b(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=y(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||O(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,n){if(e){if("string"==typeof e)return x(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,n):void 0}}function x(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var S="#ADB1B3",A=function(e,n,t,i,a){try{if("none"===e)throw new Error("colorBy is 'none'. Falling back to a default, uninformative color scale.");if(!t.nodes)throw new Error("calcColorScale called before tree is ready.");var c,u,f,d,y,g,O=a.colorings,x=i?i.nodes:void 0,A=!1;Object(p.f)(e)&&n.geneLength&&(g=Object(p.a)(e,n.geneLength),function(e,n,t,r){var o=t.length,i=t.map((function(){})),a=t.map((function(){return[]}));!function e(r,c){var l,u=c;if(r.branch_attrs&&r.branch_attrs.mutations&&r.branch_attrs.mutations[n]&&(l=r.branch_attrs.mutations[n]),l&&l.length)for(var s=0;s<l.length;s++)for(var f=l[s],d=parseInt(f.slice(1,f.length-1),10),p=0;p<o;p++)t[p]===d&&(i[p]||(i[p]=f.slice(0,1)),u[p]=f.slice(f.length-1,f.length));r.currentGt=m(u);for(var h=0;h<o;h++)u[h]||a[h].push(r);if(r.hasChildren){var y,g=b(r.children);try{for(g.s();!(y=g.n()).done;){e(y.value,m(u))}}catch(e){g.e(e)}finally{g.f()}}}(e[0],t.map((function(){}))),r&&i.forEach((function(e,o){try{var a=r[n][t[o]-1];e?e!==a&&console.error("Mismatch between inferred ancestral state for ".concat(n,"@").concat(t[o]," of ").concat(e," and the root-sequence JSON value of ").concat(a)):i[o]=a}catch(e){console.error("Error accessing the root-sequence data",e.message)}}));for(var c=0;c<o;c++){var l,u=b(a[c]);try{for(u.s();!(l=u.n()).done;){l.value.currentGt[c]=i[c]}}catch(e){u.e(e)}finally{u.f()}}e.forEach((function(e){e.currentGt=e.currentGt.join(" / ")}))}(t.nodes,g.gene,g.positions,a.rootSequence));var B=g?"categorical":O[e].type;if(g){var M=function(e,n){var t=function(e,n){var t={};e.forEach((function(e){var n=Object(h.h)(e,"num_date");void 0===n&&(n=0),(!t[e.currentGt]||n<t[e.currentGt])&&(t[e.currentGt]=n)}));var r,o=Object.keys(t);return o.sort((function(e,n){return t[e]<t[n]?-1:1})),r="nuc"===n?o.filter((function(e){return"X"!==e&&"-"!==e&&"N"!==e})):o.filter((function(e){return"X"!==e&&"-"!==e})),-1!==o.indexOf("-")&&r.push("-"),-1!==o.indexOf("N")&&"nuc"===n&&r.push("N"),-1!==o.indexOf("X")&&r.push("X"),r}(e,n),o="nuc"===n?t.filter((function(e){return"X"!==e&&"-"!==e&&"N"!==e&&""!==e})):t.filter((function(e){return"X"!==e&&"-"!==e&&""!==e})),i=[void 0].concat(w(t)),a=[S].concat(w(s.x.slice(0,o.length)));-1!==t.indexOf("-")&&a.push(Object(l.g)(217,217,217));-1!==t.indexOf("N")&&"nuc"===n&&a.push(Object(l.g)(153,153,153));-1!==t.indexOf("X")&&a.push(Object(l.g)(102,102,102));return{colorScale:Object(r.a)().domain(i).range(a),legendValues:t}}(t.nodes,n.mutType);u=M.legendValues,c=M.colorScale,y=w(u)}else{if(!O||!O[e])throw new Error("Error in logic for processing colorings");if("continuous"===B){var P=function(e,n,t,r){var i;switch(e){case"lbi":i=[0,.7];break;case"num_date":break;default:i=j(t,r,e)}var a,c,l=function(e){if(!Array.isArray(e))return!1;var n=e.filter((function(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"string"==typeof e[1]&&e[1].match(/#[0-9A-Fa-f]{6}/)}));return!(n.length<2)&&n}(n);if(l)a=l.map((function(e){return e[0]})),c=l.map((function(e){return e[1]}));else if("num_date"===e){var u=Object(h.h)(t[0],"num_date"),f=t.filter((function(e){return!e.hasChildren})).map((function(e){return Object(h.h)(e,"num_date")}));if(r){var d=Object(h.h)(r[0],"num_date");d<u&&(u=d),f.concat(r.filter((function(e){return!e.hasChildren})).map((function(e){return Object(h.h)(e,"num_date")})))}f=f.sort(),a=[u];for(var p=parseInt(f.length/9,10),b=0;b<9;b++)a.push(f[p*b]);a.push(f[f.length-1]),a=w(new Set(a)),c=s.i[a.length]}else c=s.i[9],a=s.w.map((function(e){return i[0]+e*(i[1]-i[0])}));var m,y=Object(o.a)().domain(a).range(c);switch(e){case"lbi":m=[0,.1,.2,.3,.4,.5,.6,.7];break;case"num_date":m=a.slice(1);break;default:var g=i[1]-i[0],v=g>5?2:3;m=s.w.map((function(e){return parseFloat((i[0]+e*g).toFixed(v))}))}-0===m[0]&&(m[0]=0);return{continuous:!0,colorScale:function(e){return Object(s.C)(e)?y(e):S},legendBounds:_(m),legendValues:m}}(e,O[e].scale,t.nodes,x);A=P.continuous,c=P.colorScale,f=P.legendBounds,u=P.legendValues}else if(O[e].scale){var R=E(e,O[e].scale,t.nodes,x);A=R.continuous,u=R.legendValues,c=R.colorScale}else if("categorical"===B)c=D(u=C(t.nodes,x,e),"categorical");else if("ordinal"===B){var F=function(e,n,t){var r,i,a=C(n,t,e),c=a.every((function(e){return Number.isInteger(e)})),l=!1;if(c){var u=j(n,t,e);if(u[1]-u[0]<=s.i.length){a=[];for(var f=u[0];f<=u[1];f++)a.push(f);r=D(a,"ordinal")}else{console.warn("Using a continous scale as there are too many values in the ordinal scale"),l=!0;var d=Object(o.a)().domain(s.w.map((function(e){return u[0]+e*(u[1]-u[0])}))).range(s.i[9]);r=function(e){return Object(s.C)(e)?d(e):S};var p=u[1]-u[0],h=p>5?2:3;-0===(a=s.w.map((function(e){return parseFloat((u[0]+e*p).toFixed(h))})))[0]&&(a[0]=0),i=_(a)}}else console.warn("Using a categorical scale as currently ordinal scales must only contain integers"),l=!1,r=D(a,"categorical");return{continuous:l,colorScale:r,legendValues:a,legendBounds:i}}(e,t.nodes,x);A=F.continuous,c=F.colorScale,u=F.legendValues,f=F.legendBounds}else{if("boolean"!==B)throw new Error("ColorBy ".concat(e," invalid type -- ").concat(B));u=C(t.nodes,x,e),c=k}"continuous"!==B&&(y=u.slice());var I=function(e,n,t){if(!Array.isArray(e))return!1;var r="continuous"===t?e.filter((function(e){return"number"==typeof e.value})):e.filter((function(e){return n.includes(e.value)}));if(!r.length)return console.warn("Provided legend info for this coloring doesn't match any values in the tree!"),!1;var o=r.map((function(e){return e.value})),i=new Map(r.map((function(e){return"string"==typeof e.display||"number"==typeof e.display?[e.value,e.display]:[e.value,e.value]}))),a={};if("continuous"===t){var c=r.map((function(e){return e.bounds})).filter((function(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]})).map((function(e){var n=v(e,2),t=n[0],r=n[1];return t>r?[r,t]:[t,r]})).filter((function(e,n,t){for(var r=v(e,2),o=r[0],i=r[1],a=0;a<n;a++){var c=t[a];if(o<c[1]&&o>c[0]||i<c[1]&&i>c[0])return console.warn("Legend bounds must not overlap. Check [".concat(o,", ").concat(i,"] and [").concat(c[0],", ").concat(c[1],"]. Auspice will create its own bounds.")),!1}return!0}));c.length===o.length?o.forEach((function(e,n){a[e]=c[n]})):a=_(o)}return{legendValues:o,legendLabels:i,legendBounds:a}}(O[e].legend,u,B);I&&(u=I.legendValues,d=I.legendLabels,f=I.legendBounds)}var N=T({colorBy:e,scaleType:B,genotype:g,legendValues:u,treeNodes:t.nodes,treeTooNodes:x,visibility:t.visibility,visibilityToo:i?i.visibility:void 0});return{scale:c,continuous:A,colorBy:e,version:void 0===n.colorScale?1:n.colorScale.version+1,legendValues:u,legendBounds:f,legendLabels:d,genotype:g,domain:y,scaleType:B,visibleLegendValues:N}}catch(t){return console.error("Error creating color scales. Details:\n",t.message),{scale:function(){return S},continuous:!1,colorBy:e,version:void 0===n.colorScale?1:n.colorScale.version+1,legendValues:["unknown"],legendBounds:_(["unknown"]),genotype:null,scaleType:null,domain:[],visibleLegendValues:["unknown"]}}};function E(e,n,t,r){if(!Array.isArray(n))throw new Error("".concat(e," has defined a scale which wasn't an array"));var i,a,l,s=new Map(n),f=n.map((function(e){return e[0]})),p=Object(d.g)(t,r,e,f);if(p.length){f=f.concat(p);var h=(i=p.length,a=["#BDC3C6","#868992"],l=Object(o.a)().domain([0,i]).interpolate(u.a).range(a),Object(c.a)(0,i).map(l));p.forEach((function(e,n){s.set(e,h[n])}))}return{continuous:!1,legendValues:f,colorScale:function(e){return s.get(e)||S}}}function j(e,n,t){var r=(n?e.concat(n):e.slice()).map((function(e){return Object(h.h)(e,t)})).filter((function(e){return void 0!==e})).filter((function(e,n,t){return t.indexOf(e)===n})).map((function(e){return+e}));return[Object(i.a)(r),Object(a.a)(r)]}function C(e,n,t){var r=Object(f.d)(e,[t],!1,!1)[t];if(n){var o,i=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=O(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(Object(f.d)(n,[t],!1,!1)[t].keys());try{for(i.s();!(o=i.n()).done;){var a=o.value,c=r.get(a)||0;r.set(a,c+1)}}catch(e){i.e(e)}finally{i.f()}}return function(e,n,t){var r=Array.from(e);return"clade_membership"===n?r.sort():r.sort((function(e,n){return t.get(e)===t.get(n)?e<n?-1:1:t.get(e)>t.get(n)?-1:1})),r}(Array.from(r.keys()).filter((function(e){return Object(s.C)(e)})),t,r)}function B(e,n,t,r){return Object(p.f)(e)?(console.warn("legend ordering for genotypes not yet implemented"),[]):"continuous"===n.type?(console.warn("legend ordering for continuous scales not yet implemented"),[]):n.scale?E(e,n.scale,t,r).legendValues:C(t,r,e)}function T(e){var n=e.colorBy,t=e.scaleType,r=e.genotype,o=e.legendValues,i=e.treeNodes,a=e.treeTooNodes,c=e.visibility,l=e.visibilityToo;if(c&&("ordinal"===t||"categorical"===t)){var u=i.filter((function(e,n){return!e.hasChildren&&c[n]===s.b})).map((function(e){return r?e.currentGt:Object(h.h)(e,n)}));if(a&&l){var f=a.filter((function(e,n){return!e.hasChildren&&l[n]===s.b})).map((function(e){return r?e.currentGt:Object(h.h)(e,n)}));u=[].concat(w(u),w(f))}return u=new Set(u),o.filter((function(e){return u.has(e)}))}return o.slice()}function D(e,n){var t;"ordinal"!==n&&"categorical"!==n||(t=e.length<s.i.length?s.i[e.length].slice():s.i[s.i.length-1].slice());var o=Object(r.a)().domain(e).range(t);return function(n){return void 0===n||-1===e.indexOf(n)?S:o(n)}}function k(e){return Object(s.C)(e)?["true","1","yes"].includes(String(e).toLowerCase())?"#4C90C0":"#CBB742":S}function _(e){var n=function(e,n){return e+.5*(n-e)},t=e.length,r={};r[e[0]]=[0,n(e[0],e[1])];for(var o=1;o<t-1;o++)r[e[o]]=[n(e[o-1],e[o]),n(e[o],e[o+1])];return r[e[t-1]]=[n(e[t-2],e[t-1]),1e4],r}},780:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var r=t(694),o=function(){return{width:window.innerWidth,height:window.innerHeight,docHeight:window.document.body.clientHeight}};n.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{browserDimensions:o()},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case r.e:return Object.assign({},e,{browserDimensions:n.data});default:return e}}},783:function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},784:function(e,n,t){"use strict";t.d(n,"b",(function(){return u}));var r=t(728),o=t(696),i=t(694);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=function(){return{loaded:!1,nodes:null,name:void 0,visibility:null,visibilityVersion:0,nodeColors:null,nodeColorsVersion:0,tipRadii:null,tipRadiiVersion:0,branchThickness:null,branchThicknessVersion:0,vaccines:!1,version:0,idxOfInViewRootNode:0,visibleStateCounts:{},totalStateCounts:{},observedMutations:{},availableBranchLabels:[],selectedStrain:void 0,selectedClade:void 0}};n.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u(),n=arguments.length>1?arguments[1]:void 0;switch(n.type){case i.hb:case i.z:return n.tree;case i.A:return Object.assign({},e,{loaded:!1});case i.p:case i.n:case i.gb:var t={visibility:n.visibility,visibilityVersion:n.visibilityVersion,branchThickness:n.branchThickness,branchThicknessVersion:n.branchThicknessVersion,idxOfInViewRootNode:n.idxOfInViewRootNode,idxOfFilteredRoot:n.idxOfFilteredRoot,cladeName:n.cladeName,selectedClade:n.cladeName,visibleStateCounts:Object(r.d)(e.nodes,n.stateCountAttrs,n.visibility,!0),selectedStrain:n.selectedStrain};return Object.assign({},e,t);case i.fb:return Object.assign({},e,{tipRadii:n.data,tipRadiiVersion:n.version});case i.J:return Object.assign({},e,{nodeColors:n.nodeColors,nodeColorsVersion:n.version});case i.bb:return n.tree;case i.a:return Object(o.a)(e.nodes,n.newNodeAttrs),c(c({},e),{},{visibleStateCounts:c(c({},e.visibleStateCounts),Object(r.d)(e.nodes,Object.keys(n.newColorings),e.visibility,!0)),totalStateCounts:c(c({},e.totalStateCounts),Object(r.d)(e.nodes,Object.keys(n.newColorings),!1,!0))});default:return e}}},785:function(e,n,t){"use strict";t.d(n,"a",(function(){return c})),t.d(n,"b",(function(){return l}));var r=t(735),o=t.n(r),i=t(694),a=(t(707),t(751)),c=function(e){return function(n,t){var r=t(),o=r.tree,c=r.controls,l=Object(a.c)(e,o,c),u=l.data,s=l.pivots,f=l.matrix,d=l.projection_pivot,p=l.normalizeFrequencies;n({type:i.F,frequencies:{loaded:!0,version:1,data:u,pivots:s,matrix:f,projection_pivot:d},normalizeFrequencies:p})}},l=o()((function(e,n){var t=n(),r=t.frequencies,o=t.tree,c=t.controls;if(c.colorScale)if(r.data){var l=c.normalizeFrequencies&&Object(a.a)(r.data,r.pivots,o.nodes,o.visibility),u=Object(a.b)(r.data,r.pivots,o.nodes,o.visibility,c.colorScale,c.colorBy,l);e({type:i.E,matrix:u,normalizeFrequencies:l})}else console.error("Race condition in updateFrequencyData. Frequencies data not in state. Matrix can't be calculated.");else console.error("Race condition in updateFrequencyData. ColourScale not Set. Frequency Matrix can't be calculated.")}),500,{leading:!1,trailing:!0})},788:function(e,n,t){"use strict";t.d(n,"a",(function(){return j})),t.d(n,"c",(function(){return C})),t.d(n,"b",(function(){return B}));var r=t(726),o=t.n(r),i=t(694),a=t(693),c=t(720),l=t(769),u=t(785),s=t(755),f=t(759),d=t(717),p=t(938),h=t(842),b=t(846),m=t(740),y=t(702),g=t(736);function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){S(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e,n,t,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void t(e)}c.done?n(l):Promise.resolve(l).then(r,o)}function E(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){A(i,r,o,a,c,"next",e)}function c(e){A(i,r,o,a,c,"throw",e)}a(void 0)}))}}function j(e){var n;if(e.includes(":")){var t=e.replace(/^\//,"").replace(/\/$/,"").split(":");e=t[0],n=t[1]}return e.startsWith("/")&&(e=e.slice(1)),n&&n.startsWith("/")&&(n=n.slice(1)),[e,n]}var C=function(e,n){return function(){var t=E(regeneratorRuntime.mark((function t(r,o){var a,c,u,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new N(e),t.prev=1,a.fetchMain(),t.next=5,a.main;case 5:c=t.sent,t.next=13;break;case 8:return t.prev=8,t.t0=t.catch(1),console.error("Failed to fetch additional tree",t.t0.message),r(Object(d.d)({message:"Failed to fetch second tree"})),t.abrupt("return");case 13:(u=o()).controls.explodeAttr&&r(Object(y.d)(void 0)),s=Object(l.b)({treeTooJSON:c.tree,oldState:u,originalTreeUrl:n,secondTreeUrl:e,dispatch:r}),r(x({type:i.bb},s));case 17:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}()},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=void 0===n?window.location.pathname:n,r=e.search,a=void 0===r?window.location.search:r;return function(){var e=E(regeneratorRuntime.mark((function e(n,r){var c,l,u,s,f,p,h,b,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r(),c.tree.loaded&&n({type:i.A}),l=o.a.parse(a),!t.includes("/narratives/")){e.next=7;break}M(n,t,l),e.next=41;break;case 7:return T(n,l),u=j(t),s=v(u,2),f=s[0],p=s[1],h=new N(f),b=p?new N(p):void 0,e.prev=11,h.fetchMain(),b&&b.fetchMain(),e.next=16,k(n,h,b,l);case 16:e.next=23;break;case 18:return e.prev=18,e.t0=e.catch(11),m="Couldn't load JSONs for ".concat(h.name," ").concat(b?"and/or ".concat(b.name):""),R(e.t0,n,m),e.abrupt("return");case 23:return e.next=25,h.fetchSidecars();case 25:return h.loadSidecars(n),e.prev=26,h.fetchAvailable(),e.t1=n,e.t2=i.P,e.next=32,h.available;case 32:e.t3=e.sent,e.t4={type:e.t2,data:e.t3},(0,e.t1)(e.t4),e.next=41;break;case 37:e.prev=37,e.t5=e.catch(26),console.error("Failed to fetch available datasets",e.t5.message),n(Object(d.d)({message:"Failed to fetch available datasets"}));case 41:case"end":return e.stop()}}),e,null,[[11,18],[26,37]])})));return function(n,t){return e.apply(this,arguments)}}()};function T(e,n){n.tt&&e(Object(d.a)({message:"Specifing a second tree via '?tt=".concat(n.tt,"' is no longer supported."),details:"The new syntax requires the complete name for both trees. For example, instead of 'flu/seasonal/h3n2/ha/2y?tt=na' you must specify 'flu/seasonal/h3n2/ha/2y:flu/seasonal/h3n2/na/2y' "}))}function D(e){return Object(d.a)({message:"Error fetching one of the datasets. Using the YAML-defined dataset instead.",details:"Could not fetch dataset(s)specified for this slide.\n      Make sure these exist and are spelled correctly.\n      Error details:\n        status: ".concat(e.status,";\n        message: ").concat(e.message)})}function k(e,n,t,r,o){return _.apply(this,arguments)}function _(){return(_=E(regeneratorRuntime.mark((function e(n,t,r,o,a){var c,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.main;case 2:if(c=e.sent,!r){e.next=9;break}return e.next=6,r.main;case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0=void 0;case 10:u=e.t0,s=r?"".concat(t.pathname,":").concat(r.pathname):t.pathname,n(x({type:i.z,pathnameShouldBe:a?void 0:s},Object(l.a)({json:c,secondTreeDataset:u,query:o,narrativeBlocks:a,mainTreeName:t.pathname,secondTreeName:r?r.pathname:null,dispatch:n})));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e,n,t){return P.apply(this,arguments)}function P(){return(P=E(regeneratorRuntime.mark((function e(n,t,r){var o,a,l,u,s,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,F(t);case 3:o=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),console.error("Error obtaining narratives",e.t0.message),e.abrupt("return",n(Object(c.c)("Couldn't load narrative for ".concat(t))));case 10:return a=I(o,r),l=a.datasets,u=a.initialNames,s=a.frontmatterNames,f=!0,e.prev=12,l[u[0]].fetchMain(),u[1]&&l[u[1]].fetchMain(),e.next=17,k(n,l[u[0]],l[u[1]],r,o);case 17:e.next=33;break;case 19:return e.prev=19,e.t1=e.catch(12),f=!1,e.prev=22,l[s[0]].fetchMain(),s[1]&&l[s[1]].fetchMain(),e.next=27,k(n,l[s[0]],l[s[1]],r,o);case 27:n(D(e.t1)),e.next=33;break;case 30:return e.prev=30,e.t2=e.catch(22),e.abrupt("return",R(e.t2,n,"Couldn't load the datasets defined in the narrative."));case 33:if(!f){e.next=39;break}return e.next=36,l[u[0]].fetchSidecars();case 36:l[u[0]].loadSidecars(n),e.next=42;break;case 39:return e.next=41,l[s[0]].fetchSidecars();case 41:l[s[0]].loadSidecars(n);case 42:return Object.values(l).forEach((function(e){e.fetchMain(),e.fetchSidecars()})),e.abrupt("return",n({type:i.f,jsons:l}));case 44:case"end":return e.stop()}}),e,null,[[0,6],[12,19],[22,30]])})))).apply(this,arguments)}function R(e,n,t){e instanceof h.a?n({type:i.M,displayComponent:"splash",pushState:!0}):(console.error(e,e.message),n(Object(c.c)(t)))}function F(e){var n="".concat(Object(a.B)(),"/getNarrative?prefix=").concat(e,"&type=md");return Object(f.b)(n).then((function(e){return e.text()})).then((function(e){return Object(p.parseMarkdownNarrativeFile)(e,b.a)})).catch((function(e){if(!e.fileContents)throw e;return console.error("Narrative file doesn't appear to be markdown! Attempting to parse as JSON."),JSON.parse(e.fileContents)})).then((function(e){var n,t,r;return t=(n=e)[n.length-1],r=Object.assign({},t,{__html:void 0,isEndOfNarrativeSlide:!0}),n.push(r),e}))}function I(e,n){var t={},r=[],o=[],i=Object(l.d)(n,e);return e.forEach((function(e,n){var a=v(j(e.dataset),2),c=a[0],l=a[1];t[c]||(t[c]=new N(c)),l&&!t[l]&&(t[l]=new N(l)),0===n&&(o=[c,l]),n===i&&(r=[c,l])})),{datasets:t,initialNames:r,frontmatterNames:o}}function N(e){this.name=e,this.pathname=void 0,this.apiCalls={},this.apiCalls.main="".concat(Object(a.B)(),"/getDataset?prefix=").concat(e),this.apiCalls.tipFrequencies="".concat(this.apiCalls.main,"&type=tip-frequencies"),this.apiCalls.rootSequence="".concat(this.apiCalls.main,"&type=root-sequence"),this.apiCalls.measurements="".concat(this.apiCalls.main,"&type=measurements"),this.apiCalls.getAvailable="".concat(Object(a.B)(),"/getAvailable?prefix=").concat(e)}N.prototype.fetchMain=function(){var e=this;this.main||(this.main=Object(f.b)(this.apiCalls.main).then((function(n){return e.pathname=o.a.parse(n.url.split("?")[1]).prefix,e.pathname!==e.name&&console.log('Pathname for "'.concat(e.name,'" changing to "').concat(e.pathname,'".')),n})).then((function(e){return e.json()})))},N.prototype.fetchSidecars=function(){var e=E(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.main;case 2:if(n=e.sent){e.next=5;break}throw new Error("Cannot fetch sidecar files since the main JSON didn't succeed.");case 5:n.meta.panels&&n.meta.panels.includes("frequencies")&&!this.tipFrequencies&&(this.tipFrequencies=Object(f.a)(this.apiCalls.tipFrequencies).catch((function(e){console.error("Failed to fetch frequencies",e.message)}))),this.rootSequence||(this.rootSequence=Object(f.a)(this.apiCalls.rootSequence).catch((function(){}))),n.meta.panels&&n.meta.panels.includes("measurements")&&!this.measurements&&(this.measurements=Object(f.a)(this.apiCalls.measurements).catch((function(e){console.error("Failed to fetch measurements collections",e.message)})));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),N.prototype.loadSidecars=function(e){this.tipFrequencies&&this.tipFrequencies.then((function(n){return e(Object(u.a)(n))})).catch((function(){e(Object(d.d)({message:"Failed to fetch frequencies"}))})),this.rootSequence&&this.rootSequence.then((function(n){e({type:i.Q,data:n}),e(Object(m.b)())})),this.measurements&&this.measurements.then((function(n){return e(Object(s.c)(n))})).catch((function(n){var t="Failed to load measurements collections";console.error(t,n.message),e(Object(d.d)({message:t})),e(Object(g.c)("measurements")),e({type:i.db,data:t})}))},N.prototype.fetchAvailable=function(){var e=E(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.available=Object(f.a)(this.apiCalls.getAvailable);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},819:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var r=t(693),o=function(e,n,t,o){for(var i={},a=0;a<n.length;a++)n[a].hasChildren||(i[n[a].name]=a);for(var c=[],l=0;l<e.length;l++){var u=i[e[l].name];!e[l].hasChildren&&u&&t[l]===r.b&&o[u]===r.b&&c.push([l,i[e[l].name]])}return c}},820:function(e,n,t){"use strict";t.d(n,"b",(function(){return o}));var r=t(694),o=function(){return{loaded:!1,data:void 0,pivots:void 0,matrix:void 0,projection_pivot:void 0,version:0}};n.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o(),n=arguments.length>1?arguments[1]:void 0;switch(n.type){case r.hb:case r.F:return n.frequencies?n.frequencies:e;case r.E:return Object.assign({},e,{loaded:!0,matrix:n.matrix,version:e.version+1});case r.A:return o();default:return e}}},821:function(e,n,t){"use strict";t.d(n,"a",(function(){return l}));var r=t(693);function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,a=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw a}}}}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var a=function(e,n){for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];if(n>=e[o].start&&n<=e[o].end)return o}return!1},c=function(e){return!!(e.branch_attrs&&e.branch_attrs.mutations&&Object.keys(e.branch_attrs.mutations).length)&&e.branch_attrs.mutations},l=function(e,n,t,i,l){return l?function(e,n,t,i){var l=i?{}:[];i&&Object.keys(t).forEach((function(e){l[e]={}})),e.forEach((function(e){if(n[e.arrayIdx]===r.b){var t=c(e);if(t)if(i){var a,u=o(Object.keys(t).filter((function(e){return"nuc"!==e})));try{var s=function(){var e=a.value;t[e].forEach((function(n){var t=parseInt(n.slice(1,n.length-1),10),r=n.slice(0,1),o=n.slice(-1);"X"!==r&&"X"!==o&&(l[e][t]?l[e][t]++:l[e][t]=1)}))};for(u.s();!(a=u.n()).done;)s()}catch(e){u.e(e)}finally{u.f()}}else{if(!t.nuc)return;t.nuc.forEach((function(e){var n=parseInt(e.slice(1,e.length-1),10),t=e.slice(0,1),r=e.slice(-1);"N"!==t&&"-"!==t&&"N"!==r&&"-"!==r&&(l[n]?l[n]++:l[n]=1)}))}}}));var u=[],s=0,f=0;if(i)for(var d=Object.keys(l),p=0;p<d.length;p++)for(var h in l[d[p]]){var b=parseInt(h,10);l[d[p]][b]>f&&(f=l[d[p]][b]),u[s]={x:t[d[p]].start+3*b-1,y:l[d[p]][b],codon:b,fill:r.x[p%10],prot:d[p]},s++}else{for(var m=0;m<l.length;m++)l[m]&&(l[m]>f&&(f=l[m]),u[s]={x:m,y:l[m]},s++);var y,g=o(u);try{for(g.s();!(y=g.n()).done;){var v=y.value;v.prot=a(t,v.x)}}catch(e){g.e(e)}finally{g.f()}}return[u,f]}(e,n,i,"aa"===t):function(e,n,t,i){var l=i?Object.keys(t):[r.K],u={},s={},f={};l.forEach((function(e){u[e]={},f[e]={},s[e]={}}));var d=e[0],p=0,h=function(e){var n=this[0],t=this[1],r=parseInt(e.slice(1,e.length-1),10),o=e.slice(0,1),a=e.slice(e.length-1,e.length);if(i){if("X"===o||"X"===a)return}else if("N"===o||"-"===o||"N"===a||"-"===a)return;s[n][r]||(s[n][r]=o),t[n][r]=a};!function e(t,a){var u=c(t);if(u)if(i){var s,d=o(Object.keys(u).filter((function(e){return"nuc"!==e})));try{for(d.s();!(s=d.n()).done;){var b=s.value;l.includes(b)&&u[b].forEach(h,[b,a])}}catch(e){d.e(e)}finally{d.f()}}else u.nuc&&u.nuc.forEach(h,[r.K,a]);if(t.hasChildren){var m,y=o(t.children);try{var g=function(){var n=m.value,t={};l.forEach((function(e){t[e]=Object.assign({},a[e])})),e(n,t)};for(y.s();!(m=y.n()).done;)g()}catch(e){y.e(e)}finally{y.f()}}else if(n[t.arrayIdx]===r.b){p++;var v,w=o(l);try{for(w.s();!(v=w.n()).done;)for(var O=v.value,x=0,S=Object.keys(a[O]);x<S.length;x++){var A=S[x];f[O][A]?f[O][A][a[O][A]]?f[O][A][a[O][A]]++:f[O][A][a[O][A]]=1:(f[O][A]={},f[O][A][a[O][A]]=1)}}catch(e){w.e(e)}finally{w.f()}}}(d,u);var b,m=0,y=0,g=[],v=o(l);try{for(v.s();!(b=v.n()).done;)for(var w=b.value,O=0,x=Object.keys(f[w]);O<x.length;O++){for(var S=x[O],A=0,E=0,j=Object.keys(f[w][S]);E<j.length;E++){var C=j[E];A+=f[w][S][C]}var B=p-A;B>0&&(f[w][S][s[w][S]]?f[w][S][s[w][S]]+=B:f[w][S][s[w][S]]=B);for(var T=0,D=0,k=Object.keys(f[w][S]);D<k.length;D++){var _=k[D],M=f[w][S][_]/p;T+=-1*M*Math.log(M)}T>m&&(m=T),g[y]=i?{x:t[w].start+3*S-1,y:T.toFixed(3),codon:parseInt(S,10),fill:r.x[y%10],prot:w}:{x:parseInt(S,10),y:T.toFixed(3),prot:a(t,S)},y++}}catch(e){v.e(e)}finally{v.f()}return[g,m]}(e,n,i,"aa"===t)}},823:function(e,n,t){"use strict";t.d(n,"b",(function(){return l})),t.d(n,"a",(function(){return s}));var r=t(693),o=t(704),i=t(696);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var l=function(e,n,t){var r=Object(o.h)(n,t);return t.continuous?r<=t.legendBounds[e][1]&&r>t.legendBounds[e][0]:r===e},u=function(e,n,t){return t===Object(i.h)(e,n)},s=function(e){var n=e.tipSelectedIdx,t=void 0!==n&&n,o=e.selectedLegendItem,i=void 0!==o&&o,c=e.geoFilter,s=void 0===c?[]:c,f=e.searchNodes,d=void 0!==f&&f,p=e.colorScale,h=e.tree;if(!1!==i&&h&&h.nodes)return h.nodes.map((function(e){return l(i,e,p)?r.O:r.N}));if(2===s.length&&h&&h.nodes)return h.nodes.map((function(e){return u.apply(void 0,[e].concat(a(s)))?r.O:r.N}));if(d)return h.nodes.map((function(e){return e.name.toLowerCase().includes(d)?r.O:r.N}));if(t){var b=h.nodes.map((function(){return r.N}));return b[t]=r.O+3,b}return h&&h.nodes?h.nodes.map((function(){return r.N})):null}},824:function(e,n,t){"use strict";t.d(n,"a",(function(){return A}));var r,o=t(1),i=t.n(o),a=t(669),c=t(692),l=t(694),u=t(705),s=t(693),f=t(712);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||b(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function v(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=O(e);if(n){var o=O(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return w(this,t)}}function w(e,n){if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=Object(a.b)((function(e){return{selected:e.controls.tipLabelKey,options:A(e.metadata.colorings)}}))(r=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&g(e,n)}(a,e);var n,t,r,o=v(a);function a(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e)).change=function(e){n.props.dispatch({type:l.x,key:e.value})},n}return n=a,(t=[{key:"render",value:function(){var e=this,n=this.props.t;return i.a.createElement("div",{style:{paddingTop:5}},i.a.createElement(u.f,null,n("sidebar:Tip Labels")),i.a.createElement("div",{style:{width:s.l,fontSize:14}},i.a.createElement(f.b,{value:this.props.options.filter((function(n){return n.value===e.props.selected})),getOptionValue:function(e){return e.value.toString()},options:this.props.options,isClearable:!1,isSearchable:!1,isMulti:!1,onChange:this.change})))}}])&&y(n.prototype,t),r&&y(n,r),a}(i.a.Component))||r,S=Object(c.a)()(x);function A(e){return[{value:s.M,label:"Sample Name"}].concat(h(Object.entries(e).filter((function(e){return"gt"!==e[0]})).map((function(e){var n=p(e,2);return{value:n[0],label:n[1].title}}))))}n.b=S},835:function(e,n,t){"use strict";t.d(n,"i",(function(){return v})),t.d(n,"j",(function(){return O})),t.d(n,"d",(function(){return S})),t.d(n,"e",(function(){return A})),t.d(n,"h",(function(){return E})),t.d(n,"b",(function(){return j})),t.d(n,"g",(function(){return B})),t.d(n,"c",(function(){return T})),t.d(n,"f",(function(){return D})),t.d(n,"a",(function(){return k})),t.d(n,"k",(function(){return _}));var r=t(836),o=t.n(r),i=t(1098),a=t(1123),c=t(1100),l=t(1124),u=t(802),s=t(1087),f=t(1099),d=t(841),p=t(1114),h=t(937),b=t(693),m=t(704);function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var v={yMin:0,yMax:100,leftPadding:120,rightPadding:30,topPadding:20,bottomPadding:50,subplotHeight:100,subplotPadding:10,circleRadius:3,circleHoverRadius:5,circleStrokeWidth:1,thresholdStrokeWidth:2,thresholdStroke:"#DDD",subplotFill:"#adb1b3",subplotFillOpacity:"0.15",diamondSize:25,standardDeviationStroke:2,overallMeanColor:"#000"};v.overallMeanYValue=v.subplotHeight/2;var w={xAxis:"measurementXAxis",yAxis:"measurementYAxis",threshold:"measurementThreshold",subplot:"measurementSubplot",subplotBackground:"measurementSubplotBackground",rawMeasurements:"rawMeasurements",rawMeasurementsGroup:"rawMeasurementsGroup",overallMean:"measurementsOverallMean",colorMean:"measurementsColorMean",mean:"mean",standardDeviation:"standardDeviation"},O="measurementsSVGContainer",x=function(e){return"measurement_subplot_".concat(e)},S=function(e,n){return Object(s.a)().domain(Object(i.a)(n,(function(e){return e.value}))).range([v.leftPadding,e-v.rightPadding]).nice()},A=function(){var e=v.yMin-2*v.circleRadius,n=v.yMax+2*v.circleRadius;return Object(s.a)().domain([e,n]).range([v.subplotHeight,0]).nice()},E=function(e,n,t){return o()(Object(a.a)(e,(function(e){return e[n]})),(function(e){var n=y(e,1)[0];return t.indexOf(n)}),"asc")},j=function(e){Object(f.a)(e).attr("height",null).selectAll("*").remove()},C=function(e,n,t,r,o,i,a){var u={mean:Object(c.a)(e),standardDeviation:Object(l.a)(e)},s=n.append("g").attr("class",t).attr("display","none").selectAll("meanAndStandardDeviation").data([u]).enter();s.append("path").attr("class",w.mean).attr("transform",(function(e){return"translate(".concat(o(e.mean),", ").concat(i,")")})).attr("d",Object(p.a)().type(h.a).size(v.diamondSize)).attr("fill",r).on("mouseover",(function(e){var n=d.c.clientX,t=d.c.clientY;a(e,"mean",n,t)})).on("mouseout",(function(){return a(null)})),void 0!==u.standardDeviation&&s.append("line").attr("class",w.standardDeviation).attr("x1",(function(e){return o(e.mean-e.standardDeviation)})).attr("x2",(function(e){return o(e.mean+e.standardDeviation)})).attr("y1",i).attr("y2",i).attr("stroke-width",v.standardDeviationStroke).attr("stroke",r).on("mouseover",(function(e){var n=d.c.clientX,t=d.c.clientY;a(e,"mean",n,t)})).on("mouseout",(function(){return a(null)}))},B=function(e,n,t){var r=n.xScale,o=n.yScale,i=n.x_axis_label,a=n.threshold,c=n.groupingOrderedValues,l=n.groupedMeasurements;if(!l||0!==l.length){var s=Object(f.a)(e),p=s.node().getBoundingClientRect().width,h=v.subplotHeight*l.length+v.topPadding+v.bottomPadding;if(s.attr("height",h),null!==a){var m=r(a);s.append("line").attr("class",w.threshold).attr("x1",m).attr("x2",m).attr("y1",v.topPadding).attr("y2",h-v.bottomPadding).attr("stroke-width",v.thresholdStrokeWidth).attr("stroke",v.thresholdStroke).attr("display","none")}s.append("g").attr("class",w.xAxis).attr("transform","translate(0, ".concat(h-v.bottomPadding,")")).call(Object(u.a)(r)).call((function(e){return e.attr("font-family",null)})).append("text").attr("x",v.leftPadding+(p-v.leftPadding-v.rightPadding)/2).attr("y",2*v.bottomPadding/3).attr("text-anchor","middle").attr("fill","currentColor").text(i);var g=v.topPadding;l.forEach((function(e,n){var i=y(e,2),a=i[0],l=i[1],p=s.append("svg").attr("class",w.subplot).attr("id",x(c.indexOf(a))).attr("width","100%").attr("height",v.subplotHeight).attr("y",g);g+=v.subplotHeight,p.append("rect").attr("class",w.subplotBackground).attr("x",0).attr("y",0).attr("height","100%").attr("width","100%").attr("fill",n%2?v.subplotFill:"none").attr("fill-opacity",v.subplotFillOpacity),p.append("g").attr("class",w.yAxis).attr("transform","translate(".concat(v.leftPadding,", 0)")).call(Object(u.b)(o).tickValues([o((v.yMax-v.yMin)/2)]).tickFormat((function(){return a}))).call((function(e){return e.attr("font-family",null)})),p.append("g").attr("class",w.rawMeasurementsGroup).attr("display","none").selectAll("dot").data(l).enter().append("circle").attr("class",w.rawMeasurements).attr("id",(function(e){return"meaurement_".concat(e[b.D])})).attr("cx",(function(e){return r(e.value)})).attr("cy",(function(e){return o(e[b.E])})).attr("r",v.circleRadius).on("mouseover",(function(e,n,r){Object(f.a)(r[n]).transition().duration("100").attr("r",v.circleHoverRadius);var o=d.c.clientX,i=d.c.clientY;t(e,"measurement",o,i)})).on("mouseout",(function(e,n,r){Object(f.a)(r[n]).transition().duration("200").attr("r",v.circleRadius),t(null)})),C(l.map((function(e){return e.value})),p,w.overallMean,v.overallMeanColor,r,v.overallMeanYValue,t)}))}},T=function(e,n){Object(f.a)(e).selectAll(".".concat(w.rawMeasurements)).style("stroke",(function(e){return n[e.strain].color})).style("stroke-width",v.circleStrokeWidth).style("fill",(function(e){return Object(m.e)(n[e.strain].color)}))},D=function(e,n,t,r){var o=n.xScale,i=n.groupingOrderedValues,a=n.groupedMeasurements,c=Object(f.a)(e);c.selectAll(".".concat(w.colorMean)).remove(),a.forEach((function(e){var n=y(e,2),a=n[0],l=n[1],u={};l.forEach((function(e){var n=t[e.strain],r=n.attribute,o=n.color;u[r]=u[r]||{color:null,values:[]},u[r].values.push(e.value),u[r].color||(u[r].color=o)}));var s=c.select("#".concat(x(i.indexOf(a)))),f=Object.keys(u).length,d=(v.subplotHeight-4*v.subplotPadding)/(f-1),p=v.subplotPadding;Object.values(u).forEach((function(e){var n=e.color,t=e.values;C(t,s,w.colorMean,n,o,p,r),(p+=d)>v.overallMeanYValue-v.subplotPadding&&p<v.overallMeanYValue+v.subplotPadding&&(p=v.overallMeanYValue+v.subplotPadding)}))}))},k=function(e,n){var t=Object(f.a)(e),r={raw:w.rawMeasurementsGroup,mean:w.colorMean};Object.entries(r).forEach((function(e){var r=y(e,2),o=r[0],i=r[1];t.selectAll(".".concat(i)).attr("display",n===o?null:"none")}))},_=function(e,n,t){var r=t?null:"none";Object(f.a)(e).selectAll(".".concat(w[n])).attr("display",r)}},842:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(e,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){var n="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return c(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function c(e,n,t){return(c=l()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&u(o,t.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,n){return(u=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return f}));var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&u(e,n)}(a,e);var n,t,r=(n=a,t=l(),function(){var e,r=s(n);if(t){var o=s(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return i(this,e)});function a(){o(this,a);for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.call.apply(r,[this].concat(n))}return a}(a(Error))},845:function(e,n,t){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=t(954),o=t(955),i=t(956);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,n){if(a()<n)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n)).__proto__=l.prototype:(null===e&&(e=new l(n)),e.length=n),e}function l(e,n,t){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,n,t);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,n,t)}function u(e,n,t,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(e,n,t,r){if(n.byteLength,t<0||n.byteLength<t)throw new RangeError("'offset' is out of bounds");if(n.byteLength<t+(r||0))throw new RangeError("'length' is out of bounds");n=void 0===t&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,t):new Uint8Array(n,t,r);l.TYPED_ARRAY_SUPPORT?(e=n).__proto__=l.prototype:e=d(e,n);return e}(e,n,t,r):"string"==typeof n?function(e,n,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(n,t),o=(e=c(e,r)).write(n,t);o!==r&&(e=e.slice(0,o));return e}(e,n,t):function(e,n){if(l.isBuffer(n)){var t=0|p(n.length);return 0===(e=c(e,t)).length||n.copy(e,0,0,t),e}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(r=n.length)!=r?c(e,0):d(e,n);if("Buffer"===n.type&&i(n.data))return d(e,n.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,n)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,n){if(s(n),e=c(e,n<0?0:0|p(n)),!l.TYPED_ARRAY_SUPPORT)for(var t=0;t<n;++t)e[t]=0;return e}function d(e,n){var t=n.length<0?0:0|p(n.length);e=c(e,t);for(var r=0;r<t;r+=1)e[r]=255&n[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,n){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return U(e).length;default:if(r)return z(e).length;n=(""+n).toLowerCase(),r=!0}}function b(e,n,t){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,n,t);case"utf8":case"utf-8":return j(this,n,t);case"ascii":return C(this,n,t);case"latin1":case"binary":return B(this,n,t);case"base64":return E(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function y(e,n,t,r,o){if(0===e.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"==typeof n&&(n=l.from(n,r)),l.isBuffer(n))return 0===n.length?-1:g(e,n,t,r,o);if("number"==typeof n)return n&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):g(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,n,t,r,o){var i,a=1,c=e.length,l=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;a=2,c/=2,l/=2,t/=2}function u(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){var s=-1;for(i=t;i<c;i++)if(u(e,i)===u(n,-1===s?0:i-s)){if(-1===s&&(s=i),i-s+1===l)return s*a}else-1!==s&&(i-=i-s),s=-1}else for(t+l>c&&(t=c-l),i=t;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(n,d)){f=!1;break}if(f)return i}return-1}function v(e,n,t,r){t=Number(t)||0;var o=e.length-t;r?(r=Number(r))>o&&(r=o):r=o;var i=n.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(n.substr(2*a,2),16);if(isNaN(c))return a;e[t+a]=c}return a}function w(e,n,t,r){return V(z(n,e.length-t),e,t,r)}function O(e,n,t,r){return V(function(e){for(var n=[],t=0;t<e.length;++t)n.push(255&e.charCodeAt(t));return n}(n),e,t,r)}function x(e,n,t,r){return O(e,n,t,r)}function S(e,n,t,r){return V(U(n),e,t,r)}function A(e,n,t,r){return V(function(e,n){for(var t,r,o,i=[],a=0;a<e.length&&!((n-=2)<0);++a)t=e.charCodeAt(a),r=t>>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function E(e,n,t){return 0===n&&t===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(n,t))}function j(e,n,t){t=Math.min(e.length,t);for(var r=[],o=n;o<t;){var i,a,c,l,u=e[o],s=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=t)switch(f){case 1:u<128&&(s=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(s=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(s=l)}null===s?(s=65533,f=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=f}return function(e){var n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);var t="",r=0;for(;r<n;)t+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return t}(r)}n.Buffer=l,n.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},n.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,n,t){return u(null,e,n,t)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,n,t){return function(e,n,t,r){return s(n),n<=0?c(e,n):void 0!==t?"string"==typeof r?c(e,n).fill(t,r):c(e,n).fill(t):c(e,n)}(null,e,n,t)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,n){if(!l.isBuffer(e)||!l.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var t=e.length,r=n.length,o=0,i=Math.min(t,r);o<i;++o)if(e[o]!==n[o]){t=e[o],r=n[o];break}return t<r?-1:r<t?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,n){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var t;if(void 0===n)for(n=0,t=0;t<e.length;++t)n+=e[t].length;var r=l.allocUnsafe(n),o=0;for(t=0;t<e.length;++t){var a=e[t];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)m(this,n,n+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)m(this,n,n+3),m(this,n+1,n+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)m(this,n,n+7),m(this,n+1,n+6),m(this,n+2,n+5),m(this,n+3,n+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):b.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,n,t,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(t>>>=0)-(n>>>=0),c=Math.min(i,a),u=this.slice(r,o),s=e.slice(n,t),f=0;f<c;++f)if(u[f]!==s[f]){i=u[f],a=s[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,n,t){return-1!==this.indexOf(e,n,t)},l.prototype.indexOf=function(e,n,t){return y(this,e,n,t,!0)},l.prototype.lastIndexOf=function(e,n,t){return y(this,e,n,t,!1)},l.prototype.write=function(e,n,t,r){if(void 0===n)r="utf8",t=this.length,n=0;else if(void 0===t&&"string"==typeof n)r=n,t=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(t)?(t|=0,void 0===r&&(r="utf8")):(r=t,t=void 0)}var o=this.length-n;if((void 0===t||t>o)&&(t=o),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,n,t);case"utf8":case"utf-8":return w(this,e,n,t);case"ascii":return O(this,e,n,t);case"latin1":case"binary":return x(this,e,n,t);case"base64":return S(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,n,t){var r="";t=Math.min(e.length,t);for(var o=n;o<t;++o)r+=String.fromCharCode(127&e[o]);return r}function B(e,n,t){var r="";t=Math.min(e.length,t);for(var o=n;o<t;++o)r+=String.fromCharCode(e[o]);return r}function T(e,n,t){var r=e.length;(!n||n<0)&&(n=0),(!t||t<0||t>r)&&(t=r);for(var o="",i=n;i<t;++i)o+=L(e[i]);return o}function D(e,n,t){for(var r=e.slice(n,t),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function k(e,n,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>t)throw new RangeError("Trying to access beyond buffer length")}function _(e,n,t,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)throw new RangeError('"value" argument is out of bounds');if(t+r>e.length)throw new RangeError("Index out of range")}function M(e,n,t,r){n<0&&(n=65535+n+1);for(var o=0,i=Math.min(e.length-t,2);o<i;++o)e[t+o]=(n&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function P(e,n,t,r){n<0&&(n=4294967295+n+1);for(var o=0,i=Math.min(e.length-t,4);o<i;++o)e[t+o]=n>>>8*(r?o:3-o)&255}function R(e,n,t,r,o,i){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function F(e,n,t,r,i){return i||R(e,0,t,4),o.write(e,n,t,r,23,4),t+4}function I(e,n,t,r,i){return i||R(e,0,t,8),o.write(e,n,t,r,52,8),t+8}l.prototype.slice=function(e,n){var t,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e),l.TYPED_ARRAY_SUPPORT)(t=this.subarray(e,n)).__proto__=l.prototype;else{var o=n-e;t=new l(o,void 0);for(var i=0;i<o;++i)t[i]=this[i+e]}return t},l.prototype.readUIntLE=function(e,n,t){e|=0,n|=0,t||k(e,n,this.length);for(var r=this[e],o=1,i=0;++i<n&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,n,t){e|=0,n|=0,t||k(e,n,this.length);for(var r=this[e+--n],o=1;n>0&&(o*=256);)r+=this[e+--n]*o;return r},l.prototype.readUInt8=function(e,n){return n||k(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,n){return n||k(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,n){return n||k(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,n){return n||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,n){return n||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,n,t){e|=0,n|=0,t||k(e,n,this.length);for(var r=this[e],o=1,i=0;++i<n&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*n)),r},l.prototype.readIntBE=function(e,n,t){e|=0,n|=0,t||k(e,n,this.length);for(var r=n,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},l.prototype.readInt8=function(e,n){return n||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,n){n||k(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(e,n){n||k(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(e,n){return n||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,n){return n||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,n){return n||k(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,n){return n||k(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,n){return n||k(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,n){return n||k(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,n,t,r){(e=+e,n|=0,t|=0,r)||_(this,e,n,t,Math.pow(2,8*t)-1,0);var o=1,i=0;for(this[n]=255&e;++i<t&&(o*=256);)this[n+i]=e/o&255;return n+t},l.prototype.writeUIntBE=function(e,n,t,r){(e=+e,n|=0,t|=0,r)||_(this,e,n,t,Math.pow(2,8*t)-1,0);var o=t-1,i=1;for(this[n+o]=255&e;--o>=0&&(i*=256);)this[n+o]=e/i&255;return n+t},l.prototype.writeUInt8=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},l.prototype.writeUInt16LE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},l.prototype.writeUInt16BE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},l.prototype.writeUInt32LE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):P(this,e,n,!0),n+4},l.prototype.writeUInt32BE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):P(this,e,n,!1),n+4},l.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);_(this,e,n,t,o-1,-o)}var i=0,a=1,c=0;for(this[n]=255&e;++i<t&&(a*=256);)e<0&&0===c&&0!==this[n+i-1]&&(c=1),this[n+i]=(e/a>>0)-c&255;return n+t},l.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);_(this,e,n,t,o-1,-o)}var i=t-1,a=1,c=0;for(this[n+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[n+i+1]&&(c=1),this[n+i]=(e/a>>0)-c&255;return n+t},l.prototype.writeInt8=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},l.prototype.writeInt16LE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},l.prototype.writeInt16BE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},l.prototype.writeInt32LE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):P(this,e,n,!0),n+4},l.prototype.writeInt32BE=function(e,n,t){return e=+e,n|=0,t||_(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):P(this,e,n,!1),n+4},l.prototype.writeFloatLE=function(e,n,t){return F(this,e,n,!0,t)},l.prototype.writeFloatBE=function(e,n,t){return F(this,e,n,!1,t)},l.prototype.writeDoubleLE=function(e,n,t){return I(this,e,n,!0,t)},l.prototype.writeDoubleBE=function(e,n,t){return I(this,e,n,!1,t)},l.prototype.copy=function(e,n,t,r){if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r<t&&(r=t),r===t)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n<r-t&&(r=e.length-n+t);var o,i=r-t;if(this===e&&t<n&&n<r)for(o=i-1;o>=0;--o)e[o+n]=this[o+t];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+n]=this[o+t];else Uint8Array.prototype.set.call(e,this.subarray(t,t+i),n);return i},l.prototype.fill=function(e,n,t,r){if("string"==typeof e){if("string"==typeof n?(r=n,n=0,t=this.length):"string"==typeof t&&(r=t,t=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<t)throw new RangeError("Out of range index");if(t<=n)return this;var i;if(n>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(i=n;i<t;++i)this[i]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),c=a.length;for(i=0;i<t-n;++i)this[i+n]=a[i%c]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,n){var t;n=n||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((t=e.charCodeAt(a))>55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,n,t,r){for(var o=0;o<r&&!(o+t>=n.length||o>=e.length);++o)n[o+t]=e[o];return o}}).call(this,t(205))},846:function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r=t(965),o=t.n(r),i=t(966),a=t.n(i);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}a.a.addHook("afterSanitizeAttributes",(function(e){"href"in e&&location.hostname!==e.hostname&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noreferrer nofollow")),c(e.childNodes).filter((function(e){return"img"===e.localName})).length>0&&("a"===e.localName?e.parentNode.className+=" imageContainer":e.className+=" imageContainer")}));var u=["div","h1","h2","h3","h4","h5","h6","p","em","strong","del","ol","ul","li","a","img"];u.push("#text","code","pre","hr","table","thead","tbody","th","tr","td","sub","sup"),u.push("svg","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform"),u.push("circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer"),u.push("feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA"),u.push("feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset"),u.push("fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face"),u.push("font-face-format","font-face-name","font-face-src","font-face-uri","g","glyph","glyphRef"),u.push("hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path"),u.push("pattern","polygon","polyline","radialGradient","rect","set","stop","switch","symbol"),u.push("text","textPath","title","tref","tspan","use","view","vkern");var s=["href","src","width","height","alt"];s.push("accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth"),s.push("baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by"),s.push("calcMode","cap-height","class","clip","clipPathUnits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cursor","cx","cy"),s.push("d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy"),s.push("edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired"),s.push("fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fr","fx","fy"),s.push("g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits"),s.push("hanging","height","href","hreflang","horiz-adv-x","horiz-origin-x"),s.push("id","ideographic","image-rendering","in","in2","intercept"),s.push("k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes"),s.push("lang","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local"),s.push("marker-end","marker-mid","marker-start","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","max","media","method","min","mode"),s.push("name","numOctaves"),s.push("offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness"),s.push("panose-1","paint-order","path","pathLength","patternContentUnits","patternTransform","patternUnits","ping","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits"),s.push("r","radius","referrerPolicy","refX","refY","rel","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry"),s.push("scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage"),s.push("tabindex","tableValues","target","targetX","targetY","text-anchor","text-decoration","text-rendering","textLength","to","transform","type"),s.push("u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em"),s.push("v-alphabetic","v-hanging","v-ideographic","v-mathematical","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","viewBox","viewTarget","visibility"),s.push("width","widths","word-spacing","writing-mode"),s.push("x","x-height","x1","x2","xChannelSelector"),s.push("y","y1","y2","yChannelSelector"),s.push("z","zoomAndPan");var f=function(e){var n=a.a.sanitize,t={ALLOWED_TAGS:u,ALLOWED_ATTR:s,KEEP_CONTENT:!1,ALLOW_DATA_ATTR:!1};return n(o()(e),t)}},847:function(e,n,t){"use strict";t.d(n,"a",(function(){return l}));var r=t(1),o=t.n(r),i=t(721),a=t(968),c=function(e){var n=e.availableHeight,t=void 0!==n&&n;t||(t=isNaN(window.innerHeight)?window.clientHeight:window.innerHeight);var r={marginTop:"".concat(t/2-100,"px")};return o.a.createElement("img",{className:"spinner",src:a,alt:"loading",style:r})},l=function(e){var n=e.height,t=e.width;return o.a.createElement(i.a,null,o.a.createElement("div",{style:{height:n,width:t}},o.a.createElement(c,{availableHeight:n})))};n.b=c},848:function(e,n,t){"use strict";n.__esModule=!0,n.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);n.default=r,e.exports=n.default},850:function(e){e.exports=JSON.parse('{"name":"English"}')},851:function(e){e.exports=JSON.parse('{"Dataset":"Dataset","Date Range":"Date Range","Color By":"Color By","Tree Options":"Tree Options","Layout":"Layout","rectangular":"rectangular","radial":"radial","unrooted":"unrooted","clock":"clock","Branch Length":"Branch Length","time":"time","divergence":"divergence","Show confidence intervals":"Show confidence intervals","Branch Labels":"Branch Labels","Search Strains":"Search Strains","Second Tree":"Second Tree","Map Options":"Map Options","Geographic resolution":"Geographic resolution","Animation Speed":"Animation Speed","Loop animation":"Loop animation","Animate cumulative history":"Animate cumulative history","Panel Options":"Panel Options","Show tree":"Show tree","Show map":"Show map","Show entropy":"Show entropy","Language":"Language","Slow":"Slow","Medium":"Medium","Fast":"Fast","full":"full","grid":"grid"}')},852:function(e){e.exports=JSON.parse('{"__Header//Byline__":"########################################","Maintained by":"Maintained by","using data from":"using data from","Built with":"Built with","__Header//Info__":"########################################","Showing {{x}} of {{y}} genomes":"Showing {{x}} of {{y}} genomes","Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}":"Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}","Comprising":"Comprising","Animation in progress":"Animation in progress","Filtered to":"Filtered to","__Download Modal__":"########################################","click outside this box to return to the app":"click outside this box to return to the app","last updated":"last updated","A full list of sequence authors is available via the TSV files below":"A full list of sequence authors is available via the TSV files below","Data usage policy":"Data usage policy","Please cite the authors who contributed genomic data (where relevant), as well as":"Please cite the authors who contributed genomic data (where relevant), as well as","Download data":"Download data","Data usage part 1":"The data presented here is intended to rapidly disseminate analysis of important pathogens. Unpublished data is included with permission of the data generators, and does not impact their right to publish. ","Data usage part 2":"Please contact the respective authors (available via the TSV files below) if you intend to carry out further research using their data. Derived data, such as phylogenies, can be downloaded below - please contact the relevant authors where appropriate.","__Entropy Panel__":"########################################","Diversity":"Diversity","entropy":"entropy","events":"events","Codon {{codon}} in protein {{protein}}":"Codon {{codon}} in protein {{protein}}","Nucleotide {{nuc}}":"Nucleotide {{nuc}}","Nuc positions {{a}} to {{b}}":"Nuc positions {{a}} to {{b}}","Num mutations":"Num mutations","Negative strand":"Negative strand","Positive strand":"Positive strand","Click to color tree & map":"Click to color tree & map","__Footer__":"########################################","Filter by {{filterTitle}}":"Filter by {{filterTitle}}","Data updated":"Data updated","__Map panel__":"########################################","Transmissions":"Transmissions","Geography":"Geography","reset zoom":"reset zoom","Reset":"Reset","Play":"Play","Pause":"Pause","__Tree (Phylogeny) panel__":"########################################","Phylogeny":"Phylogeny","Reset Layout":"Reset Layout","Click on tip to display more info":"Click on tip to display more info","Click to zoom into clade":"Click to zoom into clade","Click to zoom out to parent clade":"Click to zoom out to parent clade","Branch leading to":"Branch leading to","Number of descendants":"Number of descendants","Nucleotide mutations":"Nucleotide mutations","AA mutations":"AA mutations","protein mutations truncated":"protein mutations truncated","Gaps":"Gaps","{{x}} more":"{{x}} more","No nucleotide mutations":"No nucleotide mutations","No amino acid mutations":"No amino acid mutations","Divergence":"Divergence","Date":"Date","Collection date":"Collection date","Inferred collection date":"Inferred collection date","Inferred Date":"Inferred Date","Date Confidence Interval":"Date Confidence Interval","Vaccine selected":"Vaccine selected","Vaccine start date":"Vaccine start date","Vaccine end date":"Vaccine end date","Serum strain":"Serum strain","Click outside this box to go back to the tree":"Click outside this box to go back to the tree","Authors":"Authors","Title":"Title","Journal":"Journal","__Frequencies panel__":"########################################","Frequencies":"Frequencies","colored by":"colored by","Projection":"Projection","Time point":"Time point","Frequency":"Frequency","Projected frequency":"Projected frequency"}')},866:function(e,n,t){(function(t){var r,o,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */!function(t,c){"object"==a(n)?e.exports=c(t):(o=[],r=c.bind(t,t),void 0===(i="function"==typeof r?r.apply(n,o):r)||(e.exports=i))}(void 0!==t?t:this,(function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var n=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var n,t=String(e),r=t.length,o=-1,i="",a=t.charCodeAt(0);++o<r;)0!=(n=t.charCodeAt(o))?i+=n>=1&&n<=31||127==n||0==o&&n>=48&&n<=57||1==o&&n>=48&&n<=57&&45==a?"\\"+n.toString(16)+" ":(0!=o||1!=r||45!=n)&&(n>=128||45==n||95==n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122)?t.charAt(o):"\\"+t.charAt(o):i+="�";return i};return e.CSS||(e.CSS={}),e.CSS.escape=n,n}))}).call(this,t(205))},867:function(e,n,t){"use strict";
/** @license React v0.19.1
 * scheduler.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.
 */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i,a,c,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,f=function e(){if(null!==u)try{var t=n.unstable_now();u(!0,t),u=null}catch(n){throw setTimeout(e,0),n}},d=Date.now();n.unstable_now=function(){return Date.now()-d},o=function(e){null!==u?setTimeout(o,0,e):(u=e,setTimeout(f,0))},i=function(e,n){s=setTimeout(e,n)},a=function(){clearTimeout(s)},c=function(){return!1},l=n.unstable_forceFrameRate=function(){}}else{var p=window.performance,h=window.Date,b=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var y=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===r(p)&&"function"==typeof p.now)n.unstable_now=function(){return p.now()};else{var g=h.now();n.unstable_now=function(){return h.now()-g}}var v=!1,w=null,O=-1,x=5,S=0;c=function(){return n.unstable_now()>=S},l=function(){},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var A=new MessageChannel,E=A.port2;A.port1.onmessage=function(){if(null!==w){var e=n.unstable_now();S=e+x;try{w(!0,e)?E.postMessage(null):(v=!1,w=null)}catch(e){throw E.postMessage(null),e}}else v=!1},o=function(e){w=e,v||(v=!0,E.postMessage(null))},i=function(e,t){O=b((function(){e(n.unstable_now())}),t)},a=function(){m(O),O=-1}}function j(e,n){var t=e.length;e.push(n);e:for(;;){var r=t-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,n)))break e;e[r]=n,e[t]=o,t=r}}function C(e){return void 0===(e=e[0])?null:e}function B(e){var n=e[0];if(void 0!==n){var t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,l=e[c];if(void 0!==a&&0>T(a,t))void 0!==l&&0>T(l,a)?(e[r]=l,e[c]=t,r=c):(e[r]=a,e[i]=t,r=i);else{if(!(void 0!==l&&0>T(l,t)))break e;e[r]=l,e[c]=t,r=c}}}return n}return null}function T(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var D=[],k=[],_=1,M=null,P=3,R=!1,F=!1,I=!1;function N(e){for(var n=C(k);null!==n;){if(null===n.callback)B(k);else{if(!(n.startTime<=e))break;B(k),n.sortIndex=n.expirationTime,j(D,n)}n=C(k)}}function L(e){if(I=!1,N(e),!F)if(null!==C(D))F=!0,o(z);else{var n=C(k);null!==n&&i(L,n.startTime-e)}}function z(e,t){F=!1,I&&(I=!1,a()),R=!0;var r=P;try{for(N(t),M=C(D);null!==M&&(!(M.expirationTime>t)||e&&!c());){var o=M.callback;if(null!==o){M.callback=null,P=M.priorityLevel;var l=o(M.expirationTime<=t);t=n.unstable_now(),"function"==typeof l?M.callback=l:M===C(D)&&B(D),N(t)}else B(D);M=C(D)}if(null!==M)var u=!0;else{var s=C(k);null!==s&&i(L,s.startTime-t),u=!1}return u}finally{M=null,P=r,R=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=l;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){F||R||(F=!0,o(z))},n.unstable_getCurrentPriorityLevel=function(){return P},n.unstable_getFirstCallbackNode=function(){return C(D)},n.unstable_next=function(e){switch(P){case 1:case 2:case 3:var n=3;break;default:n=P}var t=P;P=n;try{return e()}finally{P=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=V,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=P;P=e;try{return n()}finally{P=t}},n.unstable_scheduleCallback=function(e,t,c){var l=n.unstable_now();if("object"===r(c)&&null!==c){var u=c.delay;u="number"==typeof u&&0<u?l+u:l,c="number"==typeof c.timeout?c.timeout:U(e)}else c=U(e),u=l;return e={id:_++,callback:t,priorityLevel:e,startTime:u,expirationTime:c=u+c,sortIndex:-1},u>l?(e.sortIndex=u,j(k,e),null===C(D)&&e===C(k)&&(I?a():I=!0,i(L,u-l))):(e.sortIndex=c,j(D,e),F||R||(F=!0,o(z))),e},n.unstable_shouldYield=function(){var e=n.unstable_now();N(e);var t=C(D);return t!==M&&null!==M&&null!==t&&null!==t.callback&&t.startTime<=e&&t.expirationTime<M.expirationTime||c()},n.unstable_wrapCallback=function(e){var n=P;return function(){var t=P;P=n;try{return e.apply(this,arguments)}finally{P=t}}}},868:function(e,n,t){"use strict";var r=t(869);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},869:function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},87:function(e,n,t){"use strict";var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(o=e[t],i=n[t],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}n.a=function(e,n){var t;void 0===n&&(n=o);var r,i=[],a=!1;return function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return a&&t===this&&n(o,i)||(r=e.apply(this,o),a=!0,t=this,i=o),r}}},870:function(e,n,t){"use strict";
/** @license React v16.13.1
 * react-is.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.
 */function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,b=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,O=o?Symbol.for("react.responder"):60118,x=o?Symbol.for("react.scope"):60119;function S(e){if("object"===r(e)&&null!==e){var n=e.$$typeof;switch(n){case i:switch(e=e.type){case d:case p:case c:case u:case l:case b:return e;default:switch(e=e&&e.$$typeof){case f:case h:case g:case y:case s:return e;default:return n}}case a:return n}}}function A(e){return S(e)===p}n.AsyncMode=d,n.ConcurrentMode=p,n.ContextConsumer=f,n.ContextProvider=s,n.Element=i,n.ForwardRef=h,n.Fragment=c,n.Lazy=g,n.Memo=y,n.Portal=a,n.Profiler=u,n.StrictMode=l,n.Suspense=b,n.isAsyncMode=function(e){return A(e)||S(e)===d},n.isConcurrentMode=A,n.isContextConsumer=function(e){return S(e)===f},n.isContextProvider=function(e){return S(e)===s},n.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===i},n.isForwardRef=function(e){return S(e)===h},n.isFragment=function(e){return S(e)===c},n.isLazy=function(e){return S(e)===g},n.isMemo=function(e){return S(e)===y},n.isPortal=function(e){return S(e)===a},n.isProfiler=function(e){return S(e)===u},n.isStrictMode=function(e){return S(e)===l},n.isSuspense=function(e){return S(e)===b},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===p||e===u||e===l||e===b||e===m||"object"===r(e)&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e.$$typeof===w||e.$$typeof===O||e.$$typeof===x||e.$$typeof===v)},n.typeOf=S},871:function(e,n,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},874:function(e,n){function t(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id=874},933:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||a(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=a(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==t.return||t.return()}finally{if(l)throw i}}}}function a(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function u(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,n,t){return n&&u(e.prototype,n),t&&u(e,t),e}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=d(e,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?e:t):o.value}}).apply(this,arguments)}function d(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=O(e)););return e}function p(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&w(e,n)}function h(e){var n=v();return function(){var t,r=O(e);if(n){var o=O(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return b(this,t)}}function b(e,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){var n="function"==typeof Map?new Map:void 0;return(y=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return g(e,arguments,O(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)})(e)}function g(e,n,t){return(g=v()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&w(o,t.prototype),o}).apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function w(e,n){return(w=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return x}));var x=function(e){p(t,e);var n=h(t);function t(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j;if(l(this,t),r=n.call(this),Object.defineProperties(m(r),{_intern:{value:new Map},_key:{value:a}}),null!=e){var c,u=i(e);try{for(u.s();!(c=u.n()).done;){var s=o(c.value,2),f=s[0],d=s[1];r.set(f,d)}}catch(e){u.e(e)}finally{u.f()}}return r}return s(t,[{key:"get",value:function(e){return f(O(t.prototype),"get",this).call(this,S(this,e))}},{key:"has",value:function(e){return f(O(t.prototype),"has",this).call(this,S(this,e))}},{key:"set",value:function(e,n){return f(O(t.prototype),"set",this).call(this,A(this,e),n)}},{key:"delete",value:function(e){return f(O(t.prototype),"delete",this).call(this,E(this,e))}}]),t}(y(Map));Set;function S(e,n){var t=e._intern,r=(0,e._key)(n);return t.has(r)?t.get(r):n}function A(e,n){var t=e._intern,r=(0,e._key)(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function E(e,n){var t=e._intern,r=(0,e._key)(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function j(e){return null!==e&&"object"===r(e)?e.valueOf():e}},938:function(e,n,t){function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var l=t(939).safeLoadFront,u=t(726);function s(e,n){var t="";t+=f(e),t+=p(e),t+=h(e),e.abstract&&"string"==typeof e.abstract&&(t+="### ".concat(e.abstract,"\n")),e.date&&"string"==typeof e.date&&(t+="#### Created: ".concat(e.date,"\n")),e.updated&&"string"==typeof e.updated&&(t+="#### Updated: ".concat(e.updated,"\n"));var r=b(e,"license","licenseLink");return r&&(t+="#### License: ".concat(r,"\n")),o(o({},d(e.dataset)),{},{__html:n(t)})}function f(e){if(!e.title)throw new Error("Narrative YAML frontmatter must define a title!");return"## ".concat(e.title,"\n")}function d(e){var n,t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{n=new URL(e)}catch(n){if(r)return console.error("Couldn't parse the URL \"".concat(e,'". Falling back to "').concat(r,'".')),{dataset:r,query:""};throw new Error("Narrative YAML frontmatter must define a valid dataset URL!")}if(n.pathname)t=n.pathname;else{if(!r)throw new Error("Narrative YAML frontmatter must define a valid dataset URL!");console.error('The URL "'.concat(e,'" didn\'t define a dataset! Falling back to "').concat(r,'".')),t=r}var o=u.stringify(u.parse(n.search));return{dataset:t,query:o}}function p(e){var n="",t=b(e,"authors","authorLinks");return t&&(n+="### Author: ".concat(t),e.affiliations&&"string"==typeof e.affiliations&&(n+=" <sup> 1 </sup>",n+="\n<sub><sup> 1 </sup> ".concat(e.affiliations,"</sub>"))),n+"\n"}function h(e){var n=b(e,"translators","translatorLinks");return n?"### Translators: ".concat(n,"\n"):""}function b(e,n,t){var r=e[n],o=e[t];return Array.isArray(r)?function(e,n,t,r){n&&(Array.isArray(n)?n.length!==e.length&&(console.warn("Narrative parsing - the length of ".concat(t," and ").concat(r," did not match. Skipping links.")),n=void 0):(console.warn("Narrative parsing - if ".concat(t," is an array, then ").concat(r," must also be an array. Skipping links.")),n=void 0));n&&(e=e.map((function(e,t){return m(e,n[t])})));return e.join(", ")}(r,o,n,t):"string"==typeof r?function(e,n,t,r){n&&"string"!=typeof n&&(console.warn("Narrative parsing - if ".concat(t," is a string, then ").concat(r," must also be a string. Skipping links.")),n=void 0);return m(e,n)}(r,o,n,t):void 0}function m(e,n){return n?"[".concat(e,"](").concat(n,")"):e}e.exports={parseMarkdownNarrativeFile:function(e,n){var t=l(e);if(1===Object.keys(t).length){var r=new Error;throw r.fileContents=e,r}var i=s(t,n);return[i].concat(a(function(e,n,t){return e.replace(/\r\n/g,"\n").split("\n").reduce((function(e,n){var t=function(e){if(!e)return{};var n=e.match(/^\s*#\s*\[(.+?)\]\((.+?)\)\s*$/);return n&&3===n.length?{lineIndicatesNewSlide:!0,title:n[1],urlString:n[2]}:{}}(n),r=t.lineIndicatesNewSlide,o=t.title,i=t.urlString;return e.length||r?r?[].concat(a(e),[{lines:["# ".concat(o)],urlString:i}]):(e[e.length-1].lines.push(n),e):e}),[]).map((function(e){return function(e){var n=[],t=[],r=!1;if(e.lines.forEach((function(e){r||!e.match(/^```auspiceMainDisplayMarkdown\s*$/)?r&&e.match(/^```\s*/)?r=!1:r?t.push(e):n.push(e):r=!0})),t.length)return o(o({},e),{},{lines:n,mainMarkdownLines:t});return e}(e)})).map((function(e){var r=o(o({},d(e.urlString,n)),{},{__html:t(e.lines.join("\n"))});return e.mainMarkdownLines&&(r.mainDisplayMarkdown=e.mainMarkdownLines.join("\n")),r}))}(t.__content,i.dataset,n)))},createTitleSlideFromFrontmatter:s,parseTitleSlideTitle:f,parseNarrativeAuthors:p,parseNarrativeTranslators:h}},954:function(e,n,t){"use strict";n.byteLength=function(e){var n=u(e),t=n[0],r=n[1];return 3*(t+r)/4-r},n.toByteArray=function(e){var n,t,r=u(e),a=r[0],c=r[1],l=new i(function(e,n,t){return 3*(n+t)/4-t}(0,a,c)),s=0,f=c>0?a-4:a;for(t=0;t<f;t+=4)n=o[e.charCodeAt(t)]<<18|o[e.charCodeAt(t+1)]<<12|o[e.charCodeAt(t+2)]<<6|o[e.charCodeAt(t+3)],l[s++]=n>>16&255,l[s++]=n>>8&255,l[s++]=255&n;2===c&&(n=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,l[s++]=255&n);1===c&&(n=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,l[s++]=n>>8&255,l[s++]=255&n);return l},n.fromByteArray=function(e){for(var n,t=e.length,o=t%3,i=[],a=0,c=t-o;a<c;a+=16383)i.push(s(e,a,a+16383>c?c:a+16383));1===o?(n=e[t-1],i.push(r[n>>2]+r[n<<4&63]+"==")):2===o&&(n=(e[t-2]<<8)+e[t-1],i.push(r[n>>10]+r[n>>4&63]+r[n<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=a.length;c<l;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function u(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=n),[t,t===n?0:4-t%4]}function s(e,n,t){for(var o,i,a=[],c=n;c<t;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},955:function(e,n){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
n.read=function(e,n,t,r,o){var i,a,c=8*o-r-1,l=(1<<c)-1,u=l>>1,s=-7,f=t?o-1:0,d=t?-1:1,p=e[n+f];for(f+=d,i=p&(1<<-s)-1,p>>=-s,s+=c;s>0;i=256*i+e[n+f],f+=d,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=r;s>0;a=256*a+e[n+f],f+=d,s-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,n,t,r,o,i){var a,c,l,u=8*i-o-1,s=(1<<u)-1,f=s>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,b=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,a=s):(a=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-a))<1&&(a--,l*=2),(n+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=s?(c=0,a=s):a+f>=1?(c=(n*l-1)*Math.pow(2,o),a+=f):(c=n*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[t+p]=255&c,p+=h,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;e[t+p]=255&a,p+=h,a/=256,u-=8);e[t+p-h]|=128*b}},956:function(e,n){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},963:function(e,n){},968:function(e,n,t){e.exports=t.p+"ea8c3e13e8c17436264760d638ab970e.png"},969:function(e,n){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e,n,r,o){var i=r?r.call(o,e,n):void 0;if(void 0!==i)return!!i;if(e===n)return!0;if("object"!==t(e)||!e||"object"!==t(n)||!n)return!1;var a=Object.keys(e),c=Object.keys(n);if(a.length!==c.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var s=a[u];if(!l(s))return!1;var f=e[s],d=n[s];if(!1===(i=r?r.call(o,f,d,s):void 0)||void 0===i&&f!==d)return!1}return!0}},970:function(e,n,t){"use strict";e.exports=t(971)},973:function(e,n){e.exports=function(){for(var e=arguments.length,n=[],t=0;t<e;t++)n[t]=arguments[t];if(0!==(n=n.filter((function(e){return null!=e}))).length)return 1===n.length?n[0]:n.reduce((function(e,n){return function(){e.apply(this,arguments),n.apply(this,arguments)}}))}},974:function(e,n,t){"use strict";e.exports=function(){}},977:function(e,n,t){"use strict";var r=t(671);n.__esModule=!0,n.default=function(e,n){e.classList?e.classList.add(n):(0,o.default)(e,n)||("string"==typeof e.className?e.className=e.className+" "+n:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+n))};var o=r(t(978));e.exports=n.default},978:function(e,n,t){"use strict";n.__esModule=!0,n.default=function(e,n){return e.classList?!!n&&e.classList.contains(n):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")},e.exports=n.default},979:function(e,n,t){"use strict";function r(e,n){return e.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=r(e.className,n):e.setAttribute("class",r(e.className&&e.className.baseVal||"",n))}},980:function(e,n,t){"use strict";var r=t(671);n.__esModule=!0,n.default=void 0;var o,i=r(t(848)),a="clearTimeout",c=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-u)),r=setTimeout(e,t);return u=n,r},l=function(e,n){return e+(e?n[0].toUpperCase()+n.substr(1):n)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var n=l(e,"request");if(n in window)return a=l(e,"cancel"),c=function(e){return window[n](e)}}));var u=(new Date).getTime();(o=function(e){return c(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var s=o;n.default=s,e.exports=n.default},981:function(e,n,t){"use strict";var r=t(671);n.__esModule=!0,n.default=n.animationEnd=n.animationDelay=n.animationTiming=n.animationDuration=n.animationName=n.transitionEnd=n.transitionDuration=n.transitionDelay=n.transitionTiming=n.transitionProperty=n.transform=void 0;var o,i,a,c,l,u,s,f,d,p,h,b=r(t(848)),m="transform";if(n.transform=m,n.animationEnd=a,n.transitionEnd=i,n.transitionDelay=s,n.transitionTiming=u,n.transitionDuration=l,n.transitionProperty=c,n.animationDelay=h,n.animationTiming=p,n.animationDuration=d,n.animationName=f,b.default){var y=function(){for(var e,n,t=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var c=o[a];if(c+"TransitionProperty"in t){i="-"+c.toLowerCase(),e=r[c]("TransitionEnd"),n=r[c]("AnimationEnd");break}}!e&&"transitionProperty"in t&&(e="transitionend");!n&&"animationName"in t&&(n="animationend");return t=null,{animationEnd:n,transitionEnd:e,prefix:i}}();o=y.prefix,n.transitionEnd=i=y.transitionEnd,n.animationEnd=a=y.animationEnd,n.transform=m=o+"-"+m,n.transitionProperty=c=o+"-transition-property",n.transitionDuration=l=o+"-transition-duration",n.transitionDelay=s=o+"-transition-delay",n.transitionTiming=u=o+"-transition-timing-function",n.animationName=f=o+"-animation-name",n.animationDuration=d=o+"-animation-duration",n.animationTiming=p=o+"-animation-delay",n.animationDelay=h=o+"-animation-timing-function"}var g={transform:m,end:i,property:c,timing:u,delay:s,duration:l};n.default=g},982:function(e,n,t){n.hot=function(e){return e}},983:function(e,n,t){var r=t(984);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},984:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,'\nhtml, p, div, input, button {\n  font-family: "Lato", "Helvetica Neue", "Helvetica", "sans-serif";\n  font-weight: 400;\n}\n/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n *    user zoom.\n */\nhtml {\n  font-family: sans-serif; /* 1 */\n  -ms-text-size-adjust: 100%; /* 2 */\n  -webkit-text-size-adjust: 100%; /* 2 */\n  -webkit-overflow-scrolling: touch;  \n}\n/**\n * Remove default margin.\n */\nhtml, body, #root, [data-reactid=".0"] {\n  margin: 0;\n  height: 100%;\n  position: relative;\n}\n\n/*\nlinks\n*/\na, .link {\n  color: #5097BA;\n  text-decoration: none;\n  cursor: pointer;\n  font-family: "Lato", "Helvetica Neue", "Helvetica", "sans-serif";\n  font-weight: 400;\n  font-size: 94%;\n}\n\n/* from Bootstrap */\ntable {\n  border-collapse: collapse;\n  border-spacing: 0;\n}\n\ntd,\nth {\n  padding: 0;\n}\n/* end bootstrap */\n\n.panel th {\n  text-align: left;\n  padding-right: 10px;\n}\n.panel td {\n  text-align: left;\n  padding: 3px;\n}\n\nbutton:focus {outline:0;}\n',""])},985:function(e,n,t){var r=t(986);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},986:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,'\n/* HTML5 display definitions\n   ========================================================================== */\n\n/**\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\n * and Firefox.\n * Correct `block` display not defined for `main` in IE 11.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n  display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n  display: inline-block; /* 1 */\n  vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n  display: none;\n  height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9/10.\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n  display: none;\n}\n\n/* Links\n   ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n  background-color: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n  outline: 0;\n}\n\n/* Text-level semantics\n   ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n */\n\nabbr[title] {\n  border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n */\n\nb,\nstrong {\n  font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari and Chrome.\n */\n\ndfn {\n  font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari, and Chrome.\n */\n\nh1 {\n  font-size: 2em;\n  margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n  background: #ff0;\n  color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n  font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n\nsup {\n  top: -0.5em;\n}\n\nsub {\n  bottom: -0.25em;\n}\n\n/* Embedded content\n   ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9/10.\n */\n\nimg {\n  border: 0;\n}\n\n/**\n * Correct overflow not hidden in IE 9/10/11.\n */\n\nsvg:not(:root) {\n  overflow: hidden;\n}\n\n/* Grouping content\n   ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari.\n */\n\nfigure {\n  margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n  height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n  overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n  font-family: monospace, monospace;\n  font-size: 1em;\n}\n\n/* Forms\n   ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n *    Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  color: inherit; /* 1 */\n  font: inherit; /* 2 */\n  margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\n */\n\nbutton {\n  overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n  text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n *    and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n *    `input` and others.\n */\n\nbutton,\nhtml input[type="button"], /* 1 */\ninput[type="reset"],\ninput[type="submit"] {\n  -webkit-appearance: button; /* 2 */\n  cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n  cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n  border: 0;\n  padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n  line-height: normal;\n}\n\n/**\n * It\'s recommended that you don\'t attempt to style these elements.\n * Firefox\'s implementation doesn\'t respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type="checkbox"],\ninput[type="radio"] {\n  box-sizing: border-box; /* 1 */\n  padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome\'s increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type="number"]::-webkit-inner-spin-button,\ninput[type="number"]::-webkit-outer-spin-button {\n  height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n *    (include `-moz` to future-proof).\n */\n\ninput[type="search"] {\n  -webkit-appearance: textfield; /* 1 */\n  -moz-box-sizing: content-box;\n  -webkit-box-sizing: content-box; /* 2 */\n  box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type="search"]::-webkit-search-cancel-button,\ninput[type="search"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n  border: 1px solid #c0c0c0;\n  margin: 0 2px;\n  padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\n * 2. Remove padding so people aren\'t caught out if they zero out fieldsets.\n */\n\nlegend {\n  border: 0; /* 1 */\n  padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9/10/11.\n */\n\ntextarea {\n  overflow: auto;\n}\n\n/**\n * Don\'t inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n  font-weight: bold;\n}\n\n/* Tables\n   ==========================================================================\n   MOVED TO GLOBAL.CSS\n   */\n',""])},987:function(e,n,t){var r=t(988);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},988:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,'/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2017 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n/*!\n * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=6b86ca18d196601f4dc3dca9dfd88c2f)\n * Config saved to config.json and https://gist.github.com/6b86ca18d196601f4dc3dca9dfd88c2f\n */\n/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n\n/* i\'ve removed a bunch of stuff here that was in browserCompatability.css already*/\n\n/** {\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n*:before,\n*:after {\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}*/\nhtml {\n  font-size: 10px;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n/*body {\n  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n  font-size: 14px;\n  line-height: 1.42857143;\n  color: #333333;\n  background-color: #ffffff;\n}*/\ninput,\nbutton,\nselect,\ntextarea {\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\na {\n  text-decoration: none;\n}\na:hover,\na:focus {\n  color: #5097BA;\n  text-decoration: underline;\n}\na:focus {\n  outline: 5px auto -webkit-focus-ring-color;\n  outline-offset: -2px;\n}\nfigure {\n  margin: 0;\n}\nimg {\n  vertical-align: middle;\n}\n.img-responsive {\n  display: block;\n  max-width: 100%;\n  height: auto;\n}\n.img-rounded {\n  border-radius: 6px;\n}\n.img-thumbnail {\n  padding: 4px;\n  line-height: 1.42857143;\n  background-color: #ffffff;\n  border: 1px solid #dddddd;\n  border-radius: 4px;\n  -webkit-transition: all 0.2s ease-in-out;\n  -o-transition: all 0.2s ease-in-out;\n  transition: all 0.2s ease-in-out;\n  display: inline-block;\n  max-width: 100%;\n  height: auto;\n}\n.img-circle {\n  border-radius: 50%;\n}\nhr {\n  margin-top: 20px;\n  margin-bottom: 20px;\n  border: 0;\n  border-top: 1px solid #eeeeee;\n}\n.sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  padding: 0;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  border: 0;\n}\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n  position: static;\n  width: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  clip: auto;\n}\n[role="button"] {\n  cursor: pointer;\n}\n\n\n\n.container {\n  margin-right: auto;\n  margin-left: auto;\n  padding-left: 15px;\n  padding-right: 15px;\n}\n@media (min-width: 768px) {\n  .container {\n    width: 728px;\n  }\n}\n@media (min-width: 992px) {\n  .container {\n    width: 952px;\n  }\n}\n@media (min-width: 1200px) {\n  .container {\n    width: 1150px;\n  }\n}\n.container-fluid {\n  margin-right: auto;\n  margin-left: auto;\n  padding-left: 15px;\n  padding-right: 15px;\n}\n.row {\n  margin-left: -15px;\n  margin-right: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n  position: relative;\n  min-height: 1px;\n  padding-left: 15px;\n  padding-right: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n  float: left;\n}\n.col-xs-12 {\n  width: 100%;\n}\n.col-xs-11 {\n  width: 91.66666667%;\n}\n.col-xs-10 {\n  width: 83.33333333%;\n}\n.col-xs-9 {\n  width: 75%;\n}\n.col-xs-8 {\n  width: 66.66666667%;\n}\n.col-xs-7 {\n  width: 58.33333333%;\n}\n.col-xs-6 {\n  width: 50%;\n}\n.col-xs-5 {\n  width: 41.66666667%;\n}\n.col-xs-4 {\n  width: 33.33333333%;\n}\n.col-xs-3 {\n  width: 25%;\n}\n.col-xs-2 {\n  width: 16.66666667%;\n}\n.col-xs-1 {\n  width: 8.33333333%;\n}\n.col-xs-pull-12 {\n  right: 100%;\n}\n.col-xs-pull-11 {\n  right: 91.66666667%;\n}\n.col-xs-pull-10 {\n  right: 83.33333333%;\n}\n.col-xs-pull-9 {\n  right: 75%;\n}\n.col-xs-pull-8 {\n  right: 66.66666667%;\n}\n.col-xs-pull-7 {\n  right: 58.33333333%;\n}\n.col-xs-pull-6 {\n  right: 50%;\n}\n.col-xs-pull-5 {\n  right: 41.66666667%;\n}\n.col-xs-pull-4 {\n  right: 33.33333333%;\n}\n.col-xs-pull-3 {\n  right: 25%;\n}\n.col-xs-pull-2 {\n  right: 16.66666667%;\n}\n.col-xs-pull-1 {\n  right: 8.33333333%;\n}\n.col-xs-pull-0 {\n  right: auto;\n}\n.col-xs-push-12 {\n  left: 100%;\n}\n.col-xs-push-11 {\n  left: 91.66666667%;\n}\n.col-xs-push-10 {\n  left: 83.33333333%;\n}\n.col-xs-push-9 {\n  left: 75%;\n}\n.col-xs-push-8 {\n  left: 66.66666667%;\n}\n.col-xs-push-7 {\n  left: 58.33333333%;\n}\n.col-xs-push-6 {\n  left: 50%;\n}\n.col-xs-push-5 {\n  left: 41.66666667%;\n}\n.col-xs-push-4 {\n  left: 33.33333333%;\n}\n.col-xs-push-3 {\n  left: 25%;\n}\n.col-xs-push-2 {\n  left: 16.66666667%;\n}\n.col-xs-push-1 {\n  left: 8.33333333%;\n}\n.col-xs-push-0 {\n  left: auto;\n}\n.col-xs-offset-12 {\n  margin-left: 100%;\n}\n.col-xs-offset-11 {\n  margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n  margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n  margin-left: 75%;\n}\n.col-xs-offset-8 {\n  margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n  margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n  margin-left: 50%;\n}\n.col-xs-offset-5 {\n  margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n  margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n  margin-left: 25%;\n}\n.col-xs-offset-2 {\n  margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n  margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n  margin-left: 0%;\n}\n@media (min-width: 680px) {\n  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n    float: left;\n  }\n  .col-sm-12 {\n    width: 100%;\n  }\n  .col-sm-11 {\n    width: 91.66666667%;\n  }\n  .col-sm-10 {\n    width: 83.33333333%;\n  }\n  .col-sm-9 {\n    width: 75%;\n  }\n  .col-sm-8 {\n    width: 66.66666667%;\n  }\n  .col-sm-7 {\n    width: 58.33333333%;\n  }\n  .col-sm-6 {\n    width: 50%;\n  }\n  .col-sm-5 {\n    width: 41.66666667%;\n  }\n  .col-sm-4 {\n    width: 33.33333333%;\n  }\n  .col-sm-3 {\n    width: 25%;\n  }\n  .col-sm-2 {\n    width: 16.66666667%;\n  }\n  .col-sm-1 {\n    width: 8.33333333%;\n  }\n  .col-sm-pull-12 {\n    right: 100%;\n  }\n  .col-sm-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-sm-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-sm-pull-9 {\n    right: 75%;\n  }\n  .col-sm-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-sm-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-sm-pull-6 {\n    right: 50%;\n  }\n  .col-sm-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-sm-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-sm-pull-3 {\n    right: 25%;\n  }\n  .col-sm-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-sm-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-sm-pull-0 {\n    right: auto;\n  }\n  .col-sm-push-12 {\n    left: 100%;\n  }\n  .col-sm-push-11 {\n    left: 91.66666667%;\n  }\n  .col-sm-push-10 {\n    left: 83.33333333%;\n  }\n  .col-sm-push-9 {\n    left: 75%;\n  }\n  .col-sm-push-8 {\n    left: 66.66666667%;\n  }\n  .col-sm-push-7 {\n    left: 58.33333333%;\n  }\n  .col-sm-push-6 {\n    left: 50%;\n  }\n  .col-sm-push-5 {\n    left: 41.66666667%;\n  }\n  .col-sm-push-4 {\n    left: 33.33333333%;\n  }\n  .col-sm-push-3 {\n    left: 25%;\n  }\n  .col-sm-push-2 {\n    left: 16.66666667%;\n  }\n  .col-sm-push-1 {\n    left: 8.33333333%;\n  }\n  .col-sm-push-0 {\n    left: auto;\n  }\n  .col-sm-offset-12 {\n    margin-left: 100%;\n  }\n  .col-sm-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-sm-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-sm-offset-9 {\n    margin-left: 75%;\n  }\n  .col-sm-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-sm-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-sm-offset-6 {\n    margin-left: 50%;\n  }\n  .col-sm-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-sm-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-sm-offset-3 {\n    margin-left: 25%;\n  }\n  .col-sm-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-sm-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-sm-offset-0 {\n    margin-left: 0%;\n  }\n}\n@media (min-width: 992px) {\n  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n    float: left;\n  }\n  .col-md-12 {\n    width: 100%;\n  }\n  .col-md-11 {\n    width: 91.66666667%;\n  }\n  .col-md-10 {\n    width: 83.33333333%;\n  }\n  .col-md-9 {\n    width: 75%;\n  }\n  .col-md-8 {\n    width: 66.66666667%;\n  }\n  .col-md-7 {\n    width: 58.33333333%;\n  }\n  .col-md-6 {\n    width: 50%;\n  }\n  .col-md-5 {\n    width: 41.66666667%;\n  }\n  .col-md-4 {\n    width: 33.33333333%;\n  }\n  .col-md-3 {\n    width: 25%;\n  }\n  .col-md-2 {\n    width: 16.66666667%;\n  }\n  .col-md-1 {\n    width: 8.33333333%;\n  }\n  .col-md-pull-12 {\n    right: 100%;\n  }\n  .col-md-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-md-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-md-pull-9 {\n    right: 75%;\n  }\n  .col-md-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-md-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-md-pull-6 {\n    right: 50%;\n  }\n  .col-md-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-md-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-md-pull-3 {\n    right: 25%;\n  }\n  .col-md-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-md-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-md-pull-0 {\n    right: auto;\n  }\n  .col-md-push-12 {\n    left: 100%;\n  }\n  .col-md-push-11 {\n    left: 91.66666667%;\n  }\n  .col-md-push-10 {\n    left: 83.33333333%;\n  }\n  .col-md-push-9 {\n    left: 75%;\n  }\n  .col-md-push-8 {\n    left: 66.66666667%;\n  }\n  .col-md-push-7 {\n    left: 58.33333333%;\n  }\n  .col-md-push-6 {\n    left: 50%;\n  }\n  .col-md-push-5 {\n    left: 41.66666667%;\n  }\n  .col-md-push-4 {\n    left: 33.33333333%;\n  }\n  .col-md-push-3 {\n    left: 25%;\n  }\n  .col-md-push-2 {\n    left: 16.66666667%;\n  }\n  .col-md-push-1 {\n    left: 8.33333333%;\n  }\n  .col-md-push-0 {\n    left: auto;\n  }\n  .col-md-offset-12 {\n    margin-left: 100%;\n  }\n  .col-md-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-md-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-md-offset-9 {\n    margin-left: 75%;\n  }\n  .col-md-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-md-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-md-offset-6 {\n    margin-left: 50%;\n  }\n  .col-md-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-md-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-md-offset-3 {\n    margin-left: 25%;\n  }\n  .col-md-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-md-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-md-offset-0 {\n    margin-left: 0%;\n  }\n}\n@media (min-width: 1200px) {\n  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n    float: left;\n  }\n  .col-lg-12 {\n    width: 100%;\n  }\n  .col-lg-11 {\n    width: 91.66666667%;\n  }\n  .col-lg-10 {\n    width: 83.33333333%;\n  }\n  .col-lg-9 {\n    width: 75%;\n  }\n  .col-lg-8 {\n    width: 66.66666667%;\n  }\n  .col-lg-7 {\n    width: 58.33333333%;\n  }\n  .col-lg-6 {\n    width: 50%;\n  }\n  .col-lg-5 {\n    width: 41.66666667%;\n  }\n  .col-lg-4 {\n    width: 33.33333333%;\n  }\n  .col-lg-3 {\n    width: 25%;\n  }\n  .col-lg-2 {\n    width: 16.66666667%;\n  }\n  .col-lg-1 {\n    width: 8.33333333%;\n  }\n  .col-lg-pull-12 {\n    right: 100%;\n  }\n  .col-lg-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-lg-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-lg-pull-9 {\n    right: 75%;\n  }\n  .col-lg-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-lg-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-lg-pull-6 {\n    right: 50%;\n  }\n  .col-lg-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-lg-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-lg-pull-3 {\n    right: 25%;\n  }\n  .col-lg-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-lg-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-lg-pull-0 {\n    right: auto;\n  }\n  .col-lg-push-12 {\n    left: 100%;\n  }\n  .col-lg-push-11 {\n    left: 91.66666667%;\n  }\n  .col-lg-push-10 {\n    left: 83.33333333%;\n  }\n  .col-lg-push-9 {\n    left: 75%;\n  }\n  .col-lg-push-8 {\n    left: 66.66666667%;\n  }\n  .col-lg-push-7 {\n    left: 58.33333333%;\n  }\n  .col-lg-push-6 {\n    left: 50%;\n  }\n  .col-lg-push-5 {\n    left: 41.66666667%;\n  }\n  .col-lg-push-4 {\n    left: 33.33333333%;\n  }\n  .col-lg-push-3 {\n    left: 25%;\n  }\n  .col-lg-push-2 {\n    left: 16.66666667%;\n  }\n  .col-lg-push-1 {\n    left: 8.33333333%;\n  }\n  .col-lg-push-0 {\n    left: auto;\n  }\n  .col-lg-offset-12 {\n    margin-left: 100%;\n  }\n  .col-lg-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-lg-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-lg-offset-9 {\n    margin-left: 75%;\n  }\n  .col-lg-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-lg-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-lg-offset-6 {\n    margin-left: 50%;\n  }\n  .col-lg-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-lg-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-lg-offset-3 {\n    margin-left: 25%;\n  }\n  .col-lg-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-lg-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-lg-offset-0 {\n    margin-left: 0%;\n  }\n}\n.clearfix:before,\n.clearfix:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after {\n  content: " ";\n  display: table;\n}\n.clearfix:after,\n.container:after,\n.container-fluid:after,\n.row:after {\n  clear: both;\n}\n.center-block {\n  display: block;\n  margin-left: auto;\n  margin-right: auto;\n}\n.pull-right {\n  float: right !important;\n}\n.pull-left {\n  float: left !important;\n}\n.hide {\n  display: none !important;\n}\n.show {\n  display: block !important;\n}\n.invisible {\n  visibility: hidden;\n}\n.text-hide {\n  font: 0/0 a;\n  color: transparent;\n  text-shadow: none;\n  background-color: transparent;\n  border: 0;\n}\n.hidden {\n  display: none !important;\n}\n.affix {\n  position: fixed;\n}\n',""])},989:function(e,n,t){var r=t(990);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},990:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,'\n/* Variables - keep in sync with globalStyles.js*/\n:root {\n  --darkGrey: #333;\n  --medGrey: #888;\n  --lightGrey: #CCC;\n  --brandColor: #5097BA;\n}\n\n/* stop horizontal scroll bar appearing*/\nbody {\n  overflow-x: hidden;\n}\n\n/* The width and height properties include\nthe content, the padding and border, but not the margin.\n*/\n.static * {\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n.static *:before,\n.static *:after {\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n\n.static .line {\n  margin-top: 20px;\n  margin-bottom: 20px;\n  border-bottom: 1px solid #CCC;\n}\n\n.static .main {\n  margin-top: 30px;\n}\n\n.static .title {\n  font-size: 28;\n}\n\n.static div {\n  text-align: justify;\n  font-size: 16px;\n  margin-top: 5px;\n  margin-bottom: 5px;\n  font-weight: 300;\n  color: var(--darkGrey);\n  line-height: 1.42857143;\n}\n\n.static h1 {\n  text-align: left;\n  font-size: 38px;\n  line-height: 32px;\n  font-weight: 300;\n  color: var(--darkGrey);\n  min-width: 240px;\n  margin-top: 40px;\n  margin-bottom: 30px;\n}\n\n.static h2 {\n  text-align: left;\n  font-size: 16px;\n  line-height: 28px;\n  margin-top: 15px;\n  margin-bottom: 5px;\n  font-weight: 500;\n  color: var(--darkGrey);\n  border-bottom: 10px;\n  min-width: 240px;\n}\n\n.static h3 {\n  text-align: left;\n  font-size: 16px;\n  line-height: 28px;\n  margin-top: 10px;\n  margin-bottom: 0px;\n  font-weight: 500;\n  color: var(--darkGrey);\n  border-bottom: 0px;\n  min-width: 240px;\n}\n\n.static .bigspacer {\n  height: 30px;\n}\n\n.static .hugespacer {\n  height: 50px;\n}\n\n.static .bigspacer {\n  height: 30px;\n}\n\n.static .spacer {\n  height: 10px;\n}\n\n.static .smallspacer {\n  height: 5px;\n}\n\n.static .highlight {\n  background-color: white;\n  color: var(--medGrey);\n  font-size: 94%; /* same as <a>*/\n}\n\nstrong {\n  background-color: white;\n  color: var(--medGrey);\n  font-size: 94%; /* same as <a>*/\n}\n\n.static.container {\n  padding-left: 25px;\n  padding-right: 25px;\n}\n\n.static .col-md-9 img {\n  width: 100%;\n}\n\n.static .clickable {\n  color: #5097BA;\n  text-decoration: none;\n  cursor: pointer;\n  font-family: "Lato", "Helvetica Neue", "Helvetica", "sans-serif";\n  font-weight: 400;\n  font-size: 94%;\n}\n/*.static aside {\n  float: right;\n}*/\n@media (min-width: 992px) {\n  .static aside {\n    float: right;\n    padding-left: 30px;\n    text-align: left;\n  }\n  .static .col-md-3 h1 {\n    text-align: right;\n    float: right;\n  }\n  .static .col-md-3 h2 {\n    text-align: right;\n    float: right;\n  }\n}\n\n.static .aside {\n  font-size: 13px;\n  font-weight: 300;\n}\n\n/* https://stackoverflow.com/questions/16771225/css3-rotate-animation */\n.spinner {\n    position: relative;\n    /*top: 50%;*/\n    left: 50%;\n    width: 80px;\n    height: 80px;\n    margin: 0px 0px 0px -40px;\n    -webkit-animation:spin 1s linear infinite;\n    -moz-animation:spin 1s linear infinite;\n    animation:spin 1s linear infinite;\n}\n@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }\n@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }\n@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }\n',""])},991:function(e,n,t){var r=t(992);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},992:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,"/*\nhttps://github.com/atom/notifications/blob/master/styles/notifications.less\nhttps://github.com/atom/atom/blob/master/static/variables/octicon-utf-codes.less\nhttps://github.com/atom/atom/blob/master/static/variables/octicon-mixins.less\nhttps://github.com/atom/atom/blob/master/static/variables/ui-variables.less\n*/\n\n:root {\n  --icon-size: 35px;\n  --icon-size-plus-padding: 45px;\n  --width: 450px;\n  --width-detail: 450px;\n  --min-h: 50px;\n\n  --background-color-info: #0098ff;\n  --background-color-success: #00ce4c;\n  --background-color-warning: #ff8533;\n  --background-color-error: #c00;\n\n  --text-color-info: #3b71ab;\n  --text-color-success: #17944e;\n  --text-color-warning: #bf5818;\n  --text-color-error: #9c0101;\n}\n\n.notifications {\n  display: block;\n  z-index: 1000;\n  position: fixed;\n  top: 20px;\n  right: 0;\n  bottom: 0;\n  padding: 0;\n  /*font-size: 1.2em;*/\n  overflow-x: hidden;\n  overflow-y: auto;\n  pointer-events: none;\n}\n\n.notification {\n  float: right;\n  clear: right;\n  position: relative;\n  width: var(--width);\n  padding-left: var(--icon-size-plus-padding);\n  margin-bottom: 4px;\n  max-height: 800px;\n  min-height: var(--min-h);\n  word-wrap: break-word;\n  pointer-events: auto;\n}\n\n/* BACKGROUND & TEXT COLOURS */\n.notification.error {\n  background-color: var(--background-color-error);\n  color: var(--text-color-error);\n}\n\n.notification.warning {\n  background-color: var(--background-color-warning);\n  color: var(--text-color-warning);\n}\n\n.notification.info {\n  background-color: var(--background-color-info);\n  color: var(--text-color-info);\n}\n\n.notification.success {\n  background-color: var(--background-color-success);\n  color: var(--text-color-success);\n}\n\n.notification .content {\n  background-color: rgba(255, 255, 255, 0.5);\n  min-height: var(--min-h);\n  /* top | right | bottom | left */\n  padding: 5px 0px 0px 5px;\n}\n\n.notification .message {\n  font-size: 22px;\n  /*color: white;*/\n  background-clip: padding-box;\n  max-height: 200px;\n  overflow-y: auto;\n}\n\n.notification .detail {\n  font-size: 14px;\n  font-weight: 200;\n  /*background-color: rgba(255, 255, 255, 0.3);*/\n  background-clip: padding-box;\n  max-height: 500px;\n  overflow-y: auto;\n}\n\n.notification .icon {\n  font-size: var(--icon-size);\n  width: var(--icon-size);\n  height: var(--icon-size);\n  top: 0;\n  left: 0;\n  /* top | right | bottom | left */\n  margin: 7px 0px 0px 5px;\n  /*padding: 0;*/\n  position: absolute;\n  /*fill: white;*/\n  fill: rgba(255, 255, 255, 0.8);\n  font-weight: normal;\n  font-style: normal;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  text-decoration: none;\n}\n\n.notification .close-icon {\n  position: absolute;\n  right: 0;\n  top: 0;\n  width: 20px;\n  height: 20px;\n  margin: 5px 5px 0px 0px;\n  fill: rgba(255, 255, 255, 0.8);\n}\n\n/*\nhttps://facebook.github.io/react/docs/animation.html#high-level-api-reactcsstransitiongroup\n*/\n.notification-enter {\n  left: var(--width);\n}\n\n.notification-enter.notification-enter-active {\n  transition: 400ms ease-in;\n  left: 0;\n}\n\n.notification-leave {\n  left: 0;\n}\n\n.notification-leave.notification-leave-active {\n  transition: 400ms ease-in;\n  left: var(--width);\n}\n",""])},993:function(e,n,t){var r=t(994);"string"==typeof r&&(r=[[e.i,r,""]]);t(204)(r,{});r.locals&&(e.exports=r.locals)},994:function(e,n,t){(e.exports=t(274)(!1)).push([e.i,"/**\n * React Select\n * ============\n * Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/\n * https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs\n * MIT License: https://github.com/JedWatson/react-select\n*/\n.Select {\n  position: relative;\n}\n.Select,\n.Select div,\n.Select input,\n.Select span {\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n.Select.is-disabled > .Select-control {\n  background-color: #f9f9f9;\n}\n.Select.is-disabled > .Select-control:hover {\n  box-shadow: none;\n}\n.Select.is-disabled .Select-arrow-zone {\n  cursor: default;\n  pointer-events: none;\n  opacity: 0.35;\n}\n.Select-control {\n  background-color: #fafafa;\n  border-color: #d9d9d9 #ccc #b3b3b3;\n  border-radius: 4px;\n  border: 1px solid #ccc;\n  color: #333;\n  cursor: default;\n  display: table;\n  border-spacing: 0;\n  border-collapse: separate;\n  height: 36px;\n  outline: none;\n  overflow: hidden;\n  position: relative;\n  width: 100%;\n}\n.Select-control:hover {\n  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n}\n.Select-control .Select-input:focus {\n  outline: none;\n}\n.is-searchable.is-open > .Select-control {\n  cursor: text;\n}\n.is-open > .Select-control {\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n  background: #fafafa;\n  border-color: #b3b3b3 #ccc #d9d9d9;\n}\n.is-open > .Select-control .Select-arrow {\n  top: -2px;\n  border-color: transparent transparent #999;\n  border-width: 0 5px 5px;\n}\n.is-searchable.is-focused:not(.is-open) > .Select-control {\n  cursor: text;\n}\n.is-focused:not(.is-open) > .Select-control {\n  border-color: #007eff;\n  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);\n}\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n  bottom: 0;\n  color: #aaa;\n  left: 0;\n  line-height: 34px;\n  padding-left: 10px;\n  padding-right: 10px;\n  position: absolute;\n  right: 0;\n  top: 0;\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.has-value.is-clearable.Select--single > .Select-control .Select-value {\n  padding-right: 42px;\n}\n.has-value.Select--single > .Select-control .Select-value .Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label {\n  color: #333;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label {\n  cursor: pointer;\n  text-decoration: none;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus {\n  color: #007eff;\n  outline: none;\n  text-decoration: underline;\n}\n.Select-input {\n  height: 34px;\n  padding-left: 10px;\n  padding-right: 10px;\n  vertical-align: middle;\n}\n.Select-input > input {\n  width: 100%;\n  background: none transparent;\n  border: 0 none;\n  box-shadow: none;\n  cursor: default;\n  display: inline-block;\n  font-family: inherit;\n  font-size: inherit;\n  margin: 0;\n  outline: none;\n  line-height: 14px;\n  /* For IE 8 compatibility */\n  padding: 8px 0 12px;\n  /* For IE 8 compatibility */\n  -webkit-appearance: none;\n}\n.is-focused .Select-input > input {\n  cursor: text;\n}\n.has-value.is-pseudo-focused .Select-input {\n  opacity: 0;\n}\n.Select-control:not(.is-searchable) > .Select-input {\n  outline: none;\n}\n.Select-loading-zone {\n  cursor: pointer;\n  display: table-cell;\n  position: relative;\n  text-align: center;\n  vertical-align: middle;\n  width: 16px;\n}\n.Select-loading {\n  -webkit-animation: Select-animation-spin 400ms infinite linear;\n  -o-animation: Select-animation-spin 400ms infinite linear;\n  animation: Select-animation-spin 400ms infinite linear;\n  width: 16px;\n  height: 16px;\n  box-sizing: border-box;\n  border-radius: 50%;\n  border: 2px solid #ccc;\n  border-right-color: #333;\n  display: inline-block;\n  position: relative;\n  vertical-align: middle;\n}\n.Select-clear-zone {\n  -webkit-animation: Select-animation-fadeIn 200ms;\n  -o-animation: Select-animation-fadeIn 200ms;\n  animation: Select-animation-fadeIn 200ms;\n  color: #999;\n  cursor: pointer;\n  display: table-cell;\n  position: relative;\n  text-align: center;\n  vertical-align: middle;\n  width: 17px;\n}\n.Select-clear-zone:hover {\n  color: #D0021B;\n}\n.Select-clear {\n  display: inline-block;\n  font-size: 18px;\n  line-height: 1;\n}\n.Select--multi .Select-clear-zone {\n  width: 17px;\n}\n.Select-arrow-zone {\n  cursor: pointer;\n  display: table-cell;\n  position: relative;\n  text-align: center;\n  vertical-align: middle;\n  width: 25px;\n  padding-right: 5px;\n}\n.Select-arrow {\n  border-color: #999 transparent transparent;\n  border-style: solid;\n  border-width: 5px 5px 2.5px;\n  display: inline-block;\n  height: 0;\n  width: 0;\n  position: relative;\n}\n.is-open .Select-arrow,\n.Select-arrow-zone:hover > .Select-arrow {\n  border-top-color: #666;\n}\n.Select--multi .Select-multi-value-wrapper {\n  display: inline-block;\n}\n.Select .Select-aria-only {\n  display: inline-block;\n  height: 1px;\n  width: 1px;\n  margin: -1px;\n  clip: rect(0, 0, 0, 0);\n  overflow: hidden;\n  float: left;\n}\n@-webkit-keyframes Select-animation-fadeIn {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n@keyframes Select-animation-fadeIn {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n.Select-menu-outer {\n  border-bottom-right-radius: 4px;\n  border-bottom-left-radius: 4px;\n  background-color: #fafafa;\n  border: 1px solid #ccc;\n  border-top-color: #e6e6e6;\n  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n  box-sizing: border-box;\n  margin-top: -1px;\n  max-height: 300px;\n  position: absolute;\n  top: 100%;\n  width: 100%;\n  z-index: 1;\n  -webkit-overflow-scrolling: touch;\n}\n.Select-menu {\n  max-height: 298px;\n  overflow-y: auto;\n}\n.Select-option {\n  box-sizing: border-box;\n  background-color: #fafafa;\n  color: #666666;\n  cursor: pointer;\n  display: block;\n  padding: 8px 10px;\n}\n.Select-option:last-child {\n  border-bottom-right-radius: 4px;\n  border-bottom-left-radius: 4px;\n}\n.Select-option.is-selected {\n  background-color: #f5faff;\n  /* Fallback color for IE 8 */\n  background-color: rgba(0, 126, 255, 0.04);\n  color: #333;\n}\n.Select-option.is-focused {\n  background-color: #ebf5ff;\n  /* Fallback color for IE 8 */\n  background-color: rgba(0, 126, 255, 0.08);\n  color: #333;\n}\n.Select-option.is-disabled {\n  color: #cccccc;\n  cursor: default;\n}\n.Select-noresults {\n  box-sizing: border-box;\n  color: #999999;\n  cursor: default;\n  display: block;\n  padding: 8px 10px;\n}\n.Select--multi .Select-input {\n  vertical-align: middle;\n  margin-left: 10px;\n  padding: 0;\n}\n.Select--multi.has-value .Select-input {\n  margin-left: 5px;\n}\n.Select--multi .Select-value {\n  background-color: #ebf5ff;\n  /* Fallback color for IE 8 */\n  background-color: rgba(0, 126, 255, 0.08);\n  border-radius: 2px;\n  border: 1px solid #c2e0ff;\n  /* Fallback color for IE 8 */\n  border: 1px solid rgba(0, 126, 255, 0.24);\n  color: #007eff;\n  display: inline-block;\n  font-size: 0.9em;\n  line-height: 1.4;\n  margin-left: 5px;\n  margin-top: 5px;\n  vertical-align: top;\n}\n.Select--multi .Select-value-icon,\n.Select--multi .Select-value-label {\n  display: inline-block;\n  vertical-align: middle;\n}\n.Select--multi .Select-value-label {\n  border-bottom-right-radius: 2px;\n  border-top-right-radius: 2px;\n  cursor: default;\n  padding: 2px 5px;\n}\n.Select--multi a.Select-value-label {\n  color: #007eff;\n  cursor: pointer;\n  text-decoration: none;\n}\n.Select--multi a.Select-value-label:hover {\n  text-decoration: underline;\n}\n.Select--multi .Select-value-icon {\n  cursor: pointer;\n  border-bottom-left-radius: 2px;\n  border-top-left-radius: 2px;\n  border-right: 1px solid #c2e0ff;\n  /* Fallback color for IE 8 */\n  border-right: 1px solid rgba(0, 126, 255, 0.24);\n  padding: 1px 5px 3px;\n}\n.Select--multi .Select-value-icon:hover,\n.Select--multi .Select-value-icon:focus {\n  background-color: #d8eafd;\n  /* Fallback color for IE 8 */\n  background-color: rgba(0, 113, 230, 0.08);\n  color: #0071e6;\n}\n.Select--multi .Select-value-icon:active {\n  background-color: #c2e0ff;\n  /* Fallback color for IE 8 */\n  background-color: rgba(0, 126, 255, 0.24);\n}\n.Select--multi.is-disabled .Select-value {\n  background-color: #fcfcfc;\n  border: 1px solid #e3e3e3;\n  color: #333;\n}\n.Select--multi.is-disabled .Select-value-icon {\n  cursor: not-allowed;\n  border-right: 1px solid #e3e3e3;\n}\n.Select--multi.is-disabled .Select-value-icon:hover,\n.Select--multi.is-disabled .Select-value-icon:focus,\n.Select--multi.is-disabled .Select-value-icon:active {\n  background-color: #fcfcfc;\n}\n@keyframes Select-animation-spin {\n  to {\n    transform: rotate(1turn);\n  }\n}\n@-webkit-keyframes Select-animation-spin {\n  to {\n    -webkit-transform: rotate(1turn);\n  }\n}\n",""])}}]);