alignment.js
Version:
A suite of reusable [React](http://reactjs.org/) components for creating a variety of visualizations involving [multiple sequence alignments](https://en.wikipedia.org/wiki/Multiple_sequence_alignment). [View the live demo here](http://alignment.hyphy.org/
8 lines • 1.25 MB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.alignment=n():t.alignment=n()}(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=316)}([function(t,n,e){"use strict";t.exports=e(167)},function(t,n,e){"use strict";e.d(n,"a",function(){return o});var r=new Date,i=new Date;function o(t,n,e,a){function u(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return u.floor=function(n){return t(n=new Date(+n)),n},u.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},u.round=function(t){var n=u(t),e=u.ceil(t);return t-n<e-t?n:e},u.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,i){var o,a=[];if(e=u.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return a;do{a.push(o=new Date(+e)),n(e,i),t(e)}while(o<e&&e<r);return a},u.filter=function(e){return o(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(u.count=function(n,o){return r.setTime(+n),i.setTime(+o),t(r),t(i),Math.floor(e(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(n){return a(n)%t==0}:function(n){return u.count(0,n)%t==0}):u:null}),u}},function(t,n,e){"use strict";e.d(n,"d",function(){return r}),e.d(n,"c",function(){return i}),e.d(n,"b",function(){return o}),e.d(n,"a",function(){return a}),e.d(n,"e",function(){return u});var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},function(t,n){var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return u}),e.d(n,"k",function(){return c}),e.d(n,"m",function(){return s}),e.d(n,"i",function(){return f}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return p}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return _}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return b});var r=e(1),i=e(2);function o(t){return Object(r.a)(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e})}var a=o(0),u=o(1),c=o(2),s=o(3),f=o(4),l=o(5),h=o(6),d=a.range,p=u.range,v=c.range,_=s.range,g=f.range,y=l.range,b=h.range},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return u}),e.d(n,"k",function(){return c}),e.d(n,"m",function(){return s}),e.d(n,"i",function(){return f}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return p}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return _}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return b});var r=e(1),i=e(2);function o(t){return Object(r.a)(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/i.e})}var a=o(0),u=o(1),c=o(2),s=o(3),f=o(4),l=o(5),h=o(6),d=a.range,p=u.range,v=c.range,_=s.range,g=f.range,y=l.range,b=h.range},function(t,n,e){var r=e(7),i=e(3),o=e(38),a=e(28),u=e(30),c=function(t,n,e){var s,f,l,h=t&c.F,d=t&c.G,p=t&c.S,v=t&c.P,_=t&c.B,g=t&c.W,y=d?i:i[n]||(i[n]={}),b=y.prototype,m=d?r:p?r[n]:(r[n]||{}).prototype;for(s in d&&(e=n),e)(f=!h&&m&&void 0!==m[s])&&u(y,s)||(l=f?m[s]:e[s],y[s]=d&&"function"!=typeof m[s]?e[s]:_&&f?o(l,r):g&&m[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[s]=l,t&c.R&&b&&!b[s]&&a(b,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){t.exports=e(182)},function(t,n,e){var r=e(83)("wks"),i=e(62),o=e(7).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,n,e){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=e(244),i=e(245),o=e(139);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,n){if(a()<n)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=c.prototype:(null===t&&(t=new c(n)),t.length=n),t}function c(t,n,e){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,n,e);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return s(this,t,n,e)}function s(t,n,e,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,r){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");n=void 0===e&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,e):new Uint8Array(n,e,r);c.TYPED_ARRAY_SUPPORT?(t=n).__proto__=c.prototype:t=h(t,n);return t}(t,n,e,r):"string"==typeof n?function(t,n,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(n,e),i=(t=u(t,r)).write(n,e);i!==r&&(t=t.slice(0,i));return t}(t,n,e):function(t,n){if(c.isBuffer(n)){var e=0|d(n.length);return 0===(t=u(t,e)).length?t:(n.copy(t,0,0,e),t)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function(t){return t!=t}(n.length)?u(t,0):h(t,n);if("Buffer"===n.type&&o(n.data))return h(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,n){if(f(n),t=u(t,n<0?0:0|d(n)),!c.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function h(t,n){var e=n.length<0?0:0|d(n.length);t=u(t,e);for(var r=0;r<e;r+=1)t[r]=255&n[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,n){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return q(t).length;default:if(r)return F(t).length;n=(""+n).toLowerCase(),r=!0}}function v(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function _(t,n,e,r,i){if(0===t.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof n&&(n=c.from(n,r)),c.isBuffer(n))return 0===n.length?-1:g(t,n,e,r,i);if("number"==typeof n)return n&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):g(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,n,e,r,i){var o,a=1,u=t.length,c=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||n.length<2)return-1;a=2,u/=2,c/=2,e/=2}function s(t,n){return 1===a?t[n]:t.readUInt16BE(n*a)}if(i){var f=-1;for(o=e;o<u;o++)if(s(t,o)===s(n,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(e+c>u&&(e=u-c),o=e;o>=0;o--){for(var l=!0,h=0;h<c;h++)if(s(t,o+h)!==s(n,h)){l=!1;break}if(l)return o}return-1}function y(t,n,e,r){e=Number(e)||0;var i=t.length-e;r?(r=Number(r))>i&&(r=i):r=i;var o=n.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(n.substr(2*a,2),16);if(isNaN(u))return a;t[e+a]=u}return a}function b(t,n,e,r){return U(F(n,t.length-e),t,e,r)}function m(t,n,e,r){return U(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,r)}function x(t,n,e,r){return m(t,n,e,r)}function w(t,n,e,r){return U(q(n),t,e,r)}function k(t,n,e,r){return U(function(t,n){for(var e,r,i,o=[],a=0;a<t.length&&!((n-=2)<0);++a)e=t.charCodeAt(a),r=e>>8,i=e%256,o.push(i),o.push(r);return o}(n,t.length-e),t,e,r)}function E(t,n,e){return 0===n&&e===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(n,e))}function M(t,n,e){e=Math.min(t.length,e);for(var r=[],i=n;i<e;){var o,a,u,c,s=t[i],f=null,l=s>239?4:s>223?3:s>191?2:1;if(i+l<=e)switch(l){case 1:s<128&&(f=s);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&s)<<6|63&o)>127&&(f=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&s)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(t){var n=t.length;if(n<=S)return String.fromCharCode.apply(String,t);var e="",r=0;for(;r<n;)e+=String.fromCharCode.apply(String,t.slice(r,r+=S));return e}(r)}n.Buffer=c,n.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},n.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,n,e){return s(null,t,n,e)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,n,e){return function(t,n,e,r){return f(n),n<=0?u(t,n):void 0!==e?"string"==typeof r?u(t,n).fill(e,r):u(t,n).fill(e):u(t,n)}(null,t,n,e)},c.allocUnsafe=function(t){return l(null,t)},c.allocUnsafeSlow=function(t){return l(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,n){if(!c.isBuffer(t)||!c.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,r=n.length,i=0,o=Math.min(e,r);i<o;++i)if(t[i]!==n[i]){e=t[i],r=n[i];break}return e<r?-1:r<e?1:0},c.isEncoding=function(t){switch(String(t).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}},c.concat=function(t,n){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var e;if(void 0===n)for(n=0,e=0;e<t.length;++e)n+=t[e].length;var r=c.allocUnsafe(n),i=0;for(e=0;e<t.length;++e){var a=t[e];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)v(this,n,n+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)v(this,n,n+3),v(this,n+1,n+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)v(this,n,n+7),v(this,n+1,n+6),v(this,n+2,n+5),v(this,n+3,n+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?M(this,0,t):function(t,n,e){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,n,e);case"utf8":case"utf-8":return M(this,n,e);case"ascii":return A(this,n,e);case"latin1":case"binary":return T(this,n,e);case"base64":return E(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,n,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,n,e,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===e&&(e=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),n<0||e>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&n>=e)return 0;if(r>=i)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=e-n,u=Math.min(o,a),s=this.slice(r,i),f=t.slice(n,e),l=0;l<u;++l)if(s[l]!==f[l]){o=s[l],a=f[l];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},c.prototype.indexOf=function(t,n,e){return _(this,t,n,e,!0)},c.prototype.lastIndexOf=function(t,n,e){return _(this,t,n,e,!1)},c.prototype.write=function(t,n,e,r){if(void 0===n)r="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)r=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===r&&(r="utf8")):(r=e,e=void 0)}var i=this.length-n;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,n,e);case"utf8":case"utf-8":return b(this,t,n,e);case"ascii":return m(this,t,n,e);case"latin1":case"binary":return x(this,t,n,e);case"base64":return w(this,t,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function A(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(t[i]);return r}function O(t,n,e){var r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var i="",o=n;o<e;++o)i+=B(t[o]);return i}function j(t,n,e){for(var r=t.slice(n,e),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function N(t,n,e,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<o)throw new RangeError('"value" argument is out of bounds');if(e+r>t.length)throw new RangeError("Index out of range")}function R(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(n&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function z(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=n>>>8*(r?i:3-i)&255}function P(t,n,e,r,i,o){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function L(t,n,e,r,o){return o||P(t,0,e,4),i.write(t,n,e,r,23,4),e+4}function I(t,n,e,r,o){return o||P(t,0,e,8),i.write(t,n,e,r,52,8),e+8}c.prototype.slice=function(t,n){var e,r=this.length;if(t=~~t,n=void 0===n?r:~~n,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t),c.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,n)).__proto__=c.prototype;else{var i=n-t;e=new c(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},c.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||C(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||C(t,n,this.length);for(var r=this[t+--n],i=1;n>0&&(i*=256);)r+=this[t+--n]*i;return r},c.prototype.readUInt8=function(t,n){return n||C(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,n){return n||C(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,n){return n||C(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,n){return n||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,n){return n||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||C(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*n)),r},c.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||C(t,n,this.length);for(var r=n,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},c.prototype.readInt8=function(t,n){return n||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,n){n||C(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},c.prototype.readInt16BE=function(t,n){n||C(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},c.prototype.readInt32LE=function(t,n){return n||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,n){return n||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,n){return n||C(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,n){return n||C(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,n){return n||C(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,n){return n||C(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,n,e,r){(t=+t,n|=0,e|=0,r)||N(this,t,n,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[n]=255&t;++o<e&&(i*=256);)this[n+o]=t/i&255;return n+e},c.prototype.writeUIntBE=function(t,n,e,r){(t=+t,n|=0,e|=0,r)||N(this,t,n,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[n+i]=255&t;--i>=0&&(o*=256);)this[n+i]=t/o&255;return n+e},c.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},c.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):R(this,t,n,!0),n+2},c.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):R(this,t,n,!1),n+2},c.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):z(this,t,n,!0),n+4},c.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):z(this,t,n,!1),n+4},c.prototype.writeIntLE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);N(this,t,n,e,i-1,-i)}var o=0,a=1,u=0;for(this[n]=255&t;++o<e&&(a*=256);)t<0&&0===u&&0!==this[n+o-1]&&(u=1),this[n+o]=(t/a>>0)-u&255;return n+e},c.prototype.writeIntBE=function(t,n,e,r){if(t=+t,n|=0,!r){var i=Math.pow(2,8*e-1);N(this,t,n,e,i-1,-i)}var o=e-1,a=1,u=0;for(this[n+o]=255&t;--o>=0&&(a*=256);)t<0&&0===u&&0!==this[n+o+1]&&(u=1),this[n+o]=(t/a>>0)-u&255;return n+e},c.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},c.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):R(this,t,n,!0),n+2},c.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):R(this,t,n,!1),n+2},c.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):z(this,t,n,!0),n+4},c.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||N(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):z(this,t,n,!1),n+4},c.prototype.writeFloatLE=function(t,n,e){return L(this,t,n,!0,e)},c.prototype.writeFloatBE=function(t,n,e){return L(this,t,n,!1,e)},c.prototype.writeDoubleLE=function(t,n,e){return I(this,t,n,!0,e)},c.prototype.writeDoubleBE=function(t,n,e){return I(this,t,n,!1,e)},c.prototype.copy=function(t,n,e,r){if(e||(e=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&r<e&&(r=e),r===e)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=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),t.length-n<r-e&&(r=t.length-n+e);var i,o=r-e;if(this===t&&e<n&&n<r)for(i=o-1;i>=0;--i)t[i+n]=this[i+e];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+n]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},c.prototype.fill=function(t,n,e,r){if("string"==typeof t){if("string"==typeof n?(r=n,n=0,e=this.length):"string"==typeof e&&(r=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;var o;if(n>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=n;o<e;++o)this[o]=t;else{var a=c.isBuffer(t)?t:F(new c(t,r).toString()),u=a.length;for(o=0;o<e-n;++o)this[o+n]=a[o%u]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,n){var e;n=n||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((e=t.charCodeAt(a))>55295&&e<57344){if(!i){if(e>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(n-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((n-=1)<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}}).call(this,e(14))},function(t,n){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,n,e){(function(t,e){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this||{},o=i._,a=Array.prototype,u=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,s=a.push,f=a.slice,l=u.toString,h=u.hasOwnProperty,d=Array.isArray,p=Object.keys,v=Object.create,_=function(){},g=function(t){return t instanceof g?t:this instanceof g?void(this._wrapped=t):new g(t)};n.nodeType?i._=g:(!e.nodeType&&e.exports&&(n=e.exports=g),n._=g),g.VERSION="1.9.2";var y,b=function(t,n,e){if(void 0===n)return t;switch(null==e?3:e){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,o){return t.call(n,e,r,i,o)}}return function(){return t.apply(n,arguments)}},m=function(t,n,e){return g.iteratee!==y?g.iteratee(t,n):null==t?g.identity:g.isFunction(t)?b(t,n,e):g.isObject(t)&&!g.isArray(t)?g.matcher(t):g.property(t)};g.iteratee=y=function(t,n){return m(t,n,1/0)};var x=function(t,n){return n=null==n?t.length-1:+n,function(){for(var e=Math.max(arguments.length-n,0),r=Array(e),i=0;i<e;i++)r[i]=arguments[i+n];switch(n){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(n+1);for(i=0;i<n;i++)o[i]=arguments[i];return o[n]=r,t.apply(this,o)}},w=function(t){if(!g.isObject(t))return{};if(v)return v(t);_.prototype=t;var n=new _;return _.prototype=null,n},k=function(t){return function(n){return null==n?void 0:n[t]}},E=function(t,n){return null!=t&&h.call(t,n)},M=function(t,n){for(var e=n.length,r=0;r<e;r++){if(null==t)return;t=t[n[r]]}return e?t:void 0},S=Math.pow(2,53)-1,A=k("length"),T=function(t){var n=A(t);return"number"==typeof n&&n>=0&&n<=S};g.each=g.forEach=function(t,n,e){var r,i;if(n=b(n,e),T(t))for(r=0,i=t.length;r<i;r++)n(t[r],r,t);else{var o=g.keys(t);for(r=0,i=o.length;r<i;r++)n(t[o[r]],o[r],t)}return t},g.map=g.collect=function(t,n,e){n=m(n,e);for(var r=!T(t)&&g.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=n(t[u],u,t)}return o};var O=function(t){return function(n,e,r,i){var o=arguments.length>=3;return function(n,e,r,i){var o=!T(n)&&g.keys(n),a=(o||n).length,u=t>0?0:a-1;for(i||(r=n[o?o[u]:u],u+=t);u>=0&&u<a;u+=t){var c=o?o[u]:u;r=e(r,n[c],c,n)}return r}(n,b(e,i,4),r,o)}};g.reduce=g.foldl=g.inject=O(1),g.reduceRight=g.foldr=O(-1),g.find=g.detect=function(t,n,e){var r=(T(t)?g.findIndex:g.findKey)(t,n,e);if(void 0!==r&&-1!==r)return t[r]},g.filter=g.select=function(t,n,e){var r=[];return n=m(n,e),g.each(t,function(t,e,i){n(t,e,i)&&r.push(t)}),r},g.reject=function(t,n,e){return g.filter(t,g.negate(m(n)),e)},g.every=g.all=function(t,n,e){n=m(n,e);for(var r=!T(t)&&g.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!n(t[a],a,t))return!1}return!0},g.some=g.any=function(t,n,e){n=m(n,e);for(var r=!T(t)&&g.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(n(t[a],a,t))return!0}return!1},g.contains=g.includes=g.include=function(t,n,e,r){return T(t)||(t=g.values(t)),("number"!=typeof e||r)&&(e=0),g.indexOf(t,n,e)>=0},g.invoke=x(function(t,n,e){var r,i;return g.isFunction(n)?i=n:g.isArray(n)&&(r=n.slice(0,-1),n=n[n.length-1]),g.map(t,function(t){var o=i;if(!o){if(r&&r.length&&(t=M(t,r)),null==t)return;o=t[n]}return null==o?o:o.apply(t,e)})}),g.pluck=function(t,n){return g.map(t,g.property(n))},g.where=function(t,n){return g.filter(t,g.matcher(n))},g.findWhere=function(t,n){return g.find(t,g.matcher(n))},g.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=typeof t[0]&&null!=t)for(var u=0,c=(t=T(t)?t:g.values(t)).length;u<c;u++)null!=(r=t[u])&&r>o&&(o=r);else n=m(n,e),g.each(t,function(t,e,r){((i=n(t,e,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},g.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=typeof t[0]&&null!=t)for(var u=0,c=(t=T(t)?t:g.values(t)).length;u<c;u++)null!=(r=t[u])&&r<o&&(o=r);else n=m(n,e),g.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},g.shuffle=function(t){return g.sample(t,1/0)},g.sample=function(t,n,e){if(null==n||e)return T(t)||(t=g.values(t)),t[g.random(t.length-1)];var r=T(t)?g.clone(t):g.values(t),i=A(r);n=Math.max(Math.min(n,i),0);for(var o=i-1,a=0;a<n;a++){var u=g.random(a,o),c=r[a];r[a]=r[u],r[u]=c}return r.slice(0,n)},g.sortBy=function(t,n,e){var r=0;return n=m(n,e),g.pluck(g.map(t,function(t,e,i){return{value:t,index:r++,criteria:n(t,e,i)}}).sort(function(t,n){var e=t.criteria,r=n.criteria;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return t.index-n.index}),"value")};var j=function(t,n){return function(e,r,i){var o=n?[[],[]]:{};return r=m(r,i),g.each(e,function(n,i){var a=r(n,i,e);t(o,n,a)}),o}};g.groupBy=j(function(t,n,e){E(t,e)?t[e].push(n):t[e]=[n]}),g.indexBy=j(function(t,n,e){t[e]=n}),g.countBy=j(function(t,n,e){E(t,e)?t[e]++:t[e]=1});var C=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;g.toArray=function(t){return t?g.isArray(t)?f.call(t):g.isString(t)?t.match(C):T(t)?g.map(t,g.identity):g.values(t):[]},g.size=function(t){return null==t?0:T(t)?t.length:g.keys(t).length},g.partition=j(function(t,n,e){t[e?0:1].push(n)},!0),g.first=g.head=g.take=function(t,n,e){return null==t||t.length<1?null==n?void 0:[]:null==n||e?t[0]:g.initial(t,t.length-n)},g.initial=function(t,n,e){return f.call(t,0,Math.max(0,t.length-(null==n||e?1:n)))},g.last=function(t,n,e){return null==t||t.length<1?null==n?void 0:[]:null==n||e?t[t.length-1]:g.rest(t,Math.max(0,t.length-n))},g.rest=g.tail=g.drop=function(t,n,e){return f.call(t,null==n||e?1:n)},g.compact=function(t){return g.filter(t,Boolean)};var N=function(t,n,e,r){for(var i=(r=r||[]).length,o=0,a=A(t);o<a;o++){var u=t[o];if(T(u)&&(g.isArray(u)||g.isArguments(u)))if(n)for(var c=0,s=u.length;c<s;)r[i++]=u[c++];else N(u,n,e,r),i=r.length;else e||(r[i++]=u)}return r};g.flatten=function(t,n){return N(t,n,!1)},g.without=x(function(t,n){return g.difference(t,n)}),g.uniq=g.unique=function(t,n,e,r){g.isBoolean(n)||(r=e,e=n,n=!1),null!=e&&(e=m(e,r));for(var i=[],o=[],a=0,u=A(t);a<u;a++){var c=t[a],s=e?e(c,a,t):c;n&&!e?(a&&o===s||i.push(c),o=s):e?g.contains(o,s)||(o.push(s),i.push(c)):g.contains(i,c)||i.push(c)}return i},g.union=x(function(t){return g.uniq(N(t,!0,!0))}),g.intersection=function(t){for(var n=[],e=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!g.contains(n,o)){var a;for(a=1;a<e&&g.contains(arguments[a],o);a++);a===e&&n.push(o)}}return n},g.difference=x(function(t,n){return n=N(n,!0,!0),g.filter(t,function(t){return!g.contains(n,t)})}),g.unzip=function(t){for(var n=t&&g.max(t,A).length||0,e=Array(n),r=0;r<n;r++)e[r]=g.pluck(t,r);return e},g.zip=x(g.unzip),g.object=function(t,n){for(var e={},r=0,i=A(t);r<i;r++)n?e[t[r]]=n[r]:e[t[r][0]]=t[r][1];return e};var R=function(t){return function(n,e,r){e=m(e,r);for(var i=A(n),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(e(n[o],o,n))return o;return-1}};g.findIndex=R(1),g.findLastIndex=R(-1),g.sortedIndex=function(t,n,e,r){for(var i=(e=m(e,r,1))(n),o=0,a=A(t);o<a;){var u=Math.floor((o+a)/2);e(t[u])<i?o=u+1:a=u}return o};var z=function(t,n,e){return function(r,i,o){var a=0,u=A(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+u,a):u=o>=0?Math.min(o+1,u):o+u+1;else if(e&&o&&u)return r[o=e(r,i)]===i?o:-1;if(i!=i)return(o=n(f.call(r,a,u),g.isNaN))>=0?o+a:-1;for(o=t>0?a:u-1;o>=0&&o<u;o+=t)if(r[o]===i)return o;return-1}};g.indexOf=z(1,g.findIndex,g.sortedIndex),g.lastIndexOf=z(-1,g.findLastIndex),g.range=function(t,n,e){null==n&&(n=t||0,t=0),e||(e=n<t?-1:1);for(var r=Math.max(Math.ceil((n-t)/e),0),i=Array(r),o=0;o<r;o++,t+=e)i[o]=t;return i},g.chunk=function(t,n){if(null==n||n<1)return[];for(var e=[],r=0,i=t.length;r<i;)e.push(f.call(t,r,r+=n));return e};var P=function(t,n,e,r,i){if(!(r instanceof n))return t.apply(e,i);var o=w(t.prototype),a=t.apply(o,i);return g.isObject(a)?a:o};g.bind=x(function(t,n,e){if(!g.isFunction(t))throw new TypeError("Bind must be called on a function");var r=x(function(i){return P(t,r,n,this,e.concat(i))});return r}),g.partial=x(function(t,n){var e=g.partial.placeholder,r=function(){for(var i=0,o=n.length,a=Array(o),u=0;u<o;u++)a[u]=n[u]===e?arguments[i++]:n[u];for(;i<arguments.length;)a.push(arguments[i++]);return P(t,r,this,this,a)};return r}),g.partial.placeholder=g,g.bindAll=x(function(t,n){var e=(n=N(n,!1,!1)).length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var r=n[e];t[r]=g.bind(t[r],t)}}),g.memoize=function(t,n){var e=function(r){var i=e.cache,o=""+(n?n.apply(this,arguments):r);return E(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return e.cache={},e},g.delay=x(function(t,n,e){return setTimeout(function(){return t.apply(null,e)},n)}),g.defer=g.partial(g.delay,g,1),g.throttle=function(t,n,e){var r,i,o,a,u=0;e||(e={});var c=function(){u=!1===e.leading?0:g.now(),r=null,a=t.apply(i,o),r||(i=o=null)},s=function(){var s=g.now();u||!1!==e.leading||(u=s);var f=n-(s-u);return i=this,o=arguments,f<=0||f>n?(r&&(clearTimeout(r),r=null),u=s,a=t.apply(i,o),r||(i=o=null)):r||!1===e.trailing||(r=setTimeout(c,f)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s},g.debounce=function(t,n,e){var r,i,o=function(n,e){r=null,e&&(i=t.apply(n,e))},a=x(function(a){if(r&&clearTimeout(r),e){var u=!r;r=setTimeout(o,n),u&&(i=t.apply(this,a))}else r=g.delay(o,n,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},g.wrap=function(t,n){return g.partial(n,t)},g.negate=function(t){return function(){return!t.apply(this,arguments)}},g.compose=function(){var t=arguments,n=t.length-1;return function(){for(var e=n,r=t[n].apply(this,arguments);e--;)r=t[e].call(this,r);return r}},g.after=function(t,n){return function(){if(--t<1)return n.apply(this,arguments)}},g.before=function(t,n){var e;return function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=null),e}},g.once=g.partial(g.before,2),g.restArguments=x;var L=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(t,n){var e=I.length,r=t.constructor,i=g.isFunction(r)&&r.prototype||u,o="constructor";for(E(t,o)&&!g.contains(n,o)&&n.push(o);e--;)(o=I[e])in t&&t[o]!==i[o]&&!g.contains(n,o)&&n.push(o)};g.keys=function(t){if(!g.isObject(t))return[];if(p)return p(t);var n=[];for(var e in t)E(t,e)&&n.push(e);return L&&D(t,n),n},g.allKeys=function(t){if(!g.isObject(t))return[];var n=[];for(var e in t)n.push(e);return L&&D(t,n),n},g.values=function(t){for(var n=g.keys(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=t[n[i]];return r},g.mapObject=function(t,n,e){n=m(n,e);for(var r=g.keys(t),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=n(t[u],u,t)}return o},g.pairs=function(t){for(var n=g.keys(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=[n[i],t[n[i]]];return r},g.invert=function(t){for(var n={},e=g.keys(t),r=0,i=e.length;r<i;r++)n[t[e[r]]]=e[r];return n},g.functions=g.methods=function(t){var n=[];for(var e in t)g.isFunction(t[e])&&n.push(e);return n.sort()};var B=function(t,n){return function(e){var r=arguments.length;if(n&&(e=Object(e)),r<2||null==e)return e;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),u=a.length,c=0;c<u;c++){var s=a[c];n&&void 0!==e[s]||(e[s]=o[s])}return e}};g.extend=B(g.allKeys),g.extendOwn=g.assign=B(g.keys),g.findKey=function(t,n,e){n=m(n,e);for(var r,i=g.keys(t),o=0,a=i.length;o<a;o++)if(n(t[r=i[o]],r,t))return r};var F,q,U=function(t,n,e){return n in e};g.pick=x(function(t,n){var e={},r=n[0];if(null==t)return e;g.isFunction(r)?(n.length>1&&(r=b(r,n[1])),n=g.allKeys(t)):(r=U,n=N(n,!1,!1),t=Object(t));for(var i=0,o=n.length;i<o;i++){var a=n[i],u=t[a];r(u,a,t)&&(e[a]=u)}return e}),g.omit=x(function(t,n){var e,r=n[0];return g.isFunction(r)?(r=g.negate(r),n.length>1&&(e=n[1])):(n=g.map(N(n,!1,!1),String),r=function(t,e){return!g.contains(n,e)}),g.pick(t,r,e)}),g.defaults=B(g.allKeys,!0),g.create=function(t,n){var e=w(t);return n&&g.extendOwn(e,n),e},g.clone=function(t){return g.isObject(t)?g.isArray(t)?t.slice():g.extend({},t):t},g.tap=function(t,n){return n(t),t},g.isMatch=function(t,n){var e=g.keys(n),r=e.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=e[o];if(n[a]!==i[a]||!(a in i))return!1}return!0},F=function(t,n,e,r){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var i=typeof t;return("function"===i||"object"===i||"object"==typeof n)&&q(t,n,e,r)},q=function(t,n,e,r){t instanceof g&&(t=t._wrapped),n instanceof g&&(n=n._wrapped);var i=l.call(t);if(i!==l.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return c.valueOf.call(t)===c.valueOf.call(n)}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof n)return!1;var a=t.constructor,u=n.constructor;if(a!==u&&!(g.isFunction(a)&&a instanceof a&&g.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}e=e||[],r=r||[];for(var s=e.length;s--;)if(e[s]===t)return r[s]===n;if(e.push(t),r.push(n),o){if((s=t.length)!==n.length)return!1;for(;s--;)if(!F(t[s],n[s],e,r))return!1}else{var f,h=g.keys(t);if(s=h.length,g.keys(n).length!==s)return!1;for(;s--;)if(f=h[s],!E(n,f)||!F(t[f],n[f],e,r))return!1}return e.pop(),r.pop(),!0},g.isEqual=function(t,n){return F(t,n)},g.isEmpty=function(t){return null==t||(T(t)&&(g.isArray(t)||g.isString(t)||g.isArguments(t))?0===t.length:0===g.keys(t).length)},g.isElement=function(t){return!(!t||1!==t.nodeType)},g.isArray=d||function(t){return"[object Array]"===l.call(t)},g.isObject=function(t){var n=typeof t;return"function"===n||"object"===n&&!!t},g.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){g["is"+t]=function(n){return l.call(n)==="[object "+t+"]"}}),g.isArguments(arguments)||(g.isArguments=function(t){return E(t,"callee")});var H=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof H&&(g.isFunction=function(t){return"function"==typeof t||!1}),g.isFinite=function(t){return!g.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},g.isNaN=function(t){return g.isNumber(t)&&isNaN(t)},g.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===l.call(t)},g.isNull=function(t){return null===t},g.isUndefined=function(t){return void 0===t},g.has=function(t,n){if(!g.isArray(n))return E(t,n);for(var e=n.length,r=0;r<e;r++){var i=n[r];if(null==t||!h.call(t,i))return!1;t=t[i]}return!!e},g.noConflict=function(){return i._=o,this},g.identity=function(t){return t},g.constant=function(t){return function(){return t}},g.noop=function(){},g.property=function(t){return g.isArray(t)?function(n){return M(n,t)}:k(t)},g.propertyOf=function(t){return null==t?function(){}:function(n){return g.isArray(n)?M(t,n):t[n]}},g.matcher=g.matches=function(t){return t=g.extendOwn({},t),function(n){return g.isMatch(n,t)}},g.times=function(t,n,e){var r=Array(Math.max(0,t));n=b(n,e,1);for(var i=0;i<t;i++)r[i]=n(i);return r},g.random=function(t,n){return null==n&&(n=t,t=0),t+Math.floor(Math.random()*(n-t+1))},g.now=Date.now||function(){return(new Date).getTime()};var W={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Y=g.invert(W),Z=function(t){var n=function(n){return t[n]},e="(?:"+g.keys(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}};g.escape=Z(W),g.unescape=Z(Y),g.result=function(t,n,e){g.isArray(n)||(n=[n]);var r=n.length;if(!r)return g.isFunction(e)?e.call(t):e;for(var i=0;i<r;i++){var o=null==t?void 0:t[n[i]];void 0===o&&(o=e,i=r),t=g.isFunction(o)?o.call(t):o}return t};var $=0;g.uniqueId=function(t){var n=++$+"";return t?t+n:n},g.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},X=/\\|'|\r|\n|\u2028|\u2029/g,K=function(t){return"\\"+V[t]};g.template=function(t,n,e){!n&&e&&(n=e),n=g.defaults({},n,g.templateSettings);var r,i=RegExp([(n.escape||G).source,(n.interpolate||G).source,(n.evaluate||G).source].join("|")+"|$","g"),o=0,a="__p+='";t.replace(i,function(n,e,r,i,u){return a+=t.slice(o,u).replace(X,K),o=u+n.length,e?a+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),n}),a+="';\n",n.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(n.variable||"obj","_",a)}catch(t){throw t.source=a,t}var u=function(t){return r.call(this,t,g)},c=n.variable||"obj";return u.source="function("+c+"){\n"+a+"}",u},g.chain=function(t){var n=g(t);return n._chain=!0,n};var J=function(t,n){return t._chain?g(n).chain():n};g.mixin=function(t){return g.each(g.functions(t),function(n){var e=g[n]=t[n];g.prototype[n]=function(){var t=[this._wrapped];return s.apply(t,arguments),J(this,e.apply(g,t))}}),g},g.mixin(g),g.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=a[t];g.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],J(this,e)}}),g.each(["concat","join","slice"],function(t){var n=a[t];g.prototype[t]=function(){return J(this,n.apply(this._wrapped,arguments))}}),g.prototype.value=function(){return this._wrapped},g.prototype.valueOf=g.prototype.toJSON=g.prototype.value,g.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return g}.apply(n,[]))||(e.exports=r)}()}).call(this,e(14),e(20)(t))},function(t,n,e){var r=e(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,n,e){t.exports=!e(29)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"c",function(){return o}),e.d(n,"d",function(){return a}),e.d(n,"e",function(){return u}),e.d(n,"a",function(){return s});var r,i,o,a,u,c=e(69);function s(t){return r=Object(c.a)(t),i=r.format,o=r.parse,a=r.utcFormat,u=r.utcParse,r}s({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,n,e){"use strict";e.r(n),e.d(n,"version",function(){return r}),e.d(n,"bisect",function(){return s}),e.d(n,"bisectRight",function(){return u}),e.d(n,"bisectLeft",function(){return c}),e.d(n,"ascending",function(){return i}),e.d(n,"bisector",function(){return o}),e.d(n,"cross",function(){return h}),e.d(n,"descending",function(){return d}),e.d(n,"deviation",function(){return _}),e.d(n,"extent",function(){return g}),e.d(n,"histogram",function(){return C}),e.d(n,"thresholdFreedmanDiaconis",function(){return R}),e.d(n,"thresholdScott",function(){return z}),e.d(n,"thresholdSturges",function(){return j}),e.d(n,"max",function(){return P}),e.d(n,"mean",function(){return L}),e.d(n,"median",function(){return I}),e.d(n,"merge",function(){return D}),e.d(n,"min",function(){return B}),e.d(n,"pairs",function(){return f}),e.d(n,"permute",function(){return F}),e.d(n,"quantile",function(){return N}),e.d(n,"range",function(){return k}),e.d(n,"scan",function(){return q}),e.d(n,"shuffle",function(){return U}),e.d(n,"sum",function(){return H}),e.d(n,"ticks",function(){return A}),e.d(n,"tickIncrement",function(){return T}),e.d(n,"tickStep",function(){return O}),e.d(n,"transpose",function(){return W}),e.d(n,"variance",function(){return v}),e.d(n,"zip",function(){return Z}),e.d(n,"axisTop",function(){return it}),e.d(n,"axisRight",function(){return ot}),e.d(n,"axisBottom",function(){return at}),e.d(n,"axisLeft",function(){return ut}),e.d(n,"brush",function(){return Hr}),e.d(n,"brushX",function(){return qr}),e.d(n,"brushY",function(){return Ur}),e.d(n,"brushSelection",function(){return Fr}),e.d(n,"chord",function(){return Kr}),e.d(n,"ribbon",function(){return li}),e.d(n,"nest",function(){return vi}),e.d(n,"set",function(){return ki}),e.d(n,"map",function(){return pi}),e.d(n,"keys",function(){return Ei}),e.d(n,"values",function(){return Mi}),e.d(n,"entries",function(){return Si}),e.d(n,"color",function(){return En}),e.d(n,"rgb",function(){return Tn}),e.d(n,"hsl",function(){return Pn}),e.d(n,"lab",function(){return Di}),e.d(n,"hcl",function(){return Zi}),e.d(n,"lch",function(){return Yi}),e.d(n,"gray",function(){return Ii}),e.d(n,"cubehelix",function(){return no}),e.d(n,"contours",function(){return ho}),e.d(n,"contourDensity",function(){return bo}),e.d(n,"dispatch",function(){return dt}),e.d(n,"drag",function(){return So}),e.d(n,"dragDisable",function(){return an}),e.d(n,"dragEnable",function(){return un}),e.d(n,"dsvFormat",function(){return Lo}),e.d(n,"csvParse",function(){return Do}),e.d(n,"csvParseRows",function(){return Bo}),e.d(n,"csvFormat",function(){return Fo}),e.d(n,"csvFormatBody",function(){return qo}),e.d(n,"csvFormatRows",function(){return Uo}),e.d(n,"csvFormatRow",function(){return Ho}),e.d(n,"csvFormatValue",function(){return Wo}),e.d(n,"tsvParse",function(){return Zo}),e.d(n,"tsvParseRows",function(){return $o}),e.d(n,"tsvFormat",function(){return Go}),e.d(n,"tsvFormatBody",function(){return Vo}),e.d(n,"tsvFormatRows",function(){return Xo}),e.d(n,"tsvFormatRow",function(){return Ko}),e.d(n,"tsvFormatValue",function(){return Jo}),e.d(n,"autoType",function(){return Qo}),e.d(n,"easeLinear",function(){return na}),e.d(n,"easeQuad",function(){return ia}),e.d(n,"easeQuadIn",function(){return ea}),e.d(n,"easeQuadOut",function(){return ra}),e.d(n,"easeQuadInOut",function(){return ia}),e.d(n,"easeCubic",function(){return hr}),e.d(n,"easeCubicIn",function(){return fr}),e.d(n,"easeCubicOut",function(){return lr}),e.d(n,"easeCubicInOut",function(){return hr}),e.d(n,"easePoly",function(){return ua}),e.d(n,"easePolyIn",function(){return oa}),e.d(n,"easePolyOut",function(){return aa}),e.d(n,"easePolyInOut",function(){return ua}),e.d(n,"easeSin",function(){return ha}),e.d(n,"easeSinIn",function(){return fa}),e.d(n,"easeSinOut",function(){return la}),e.d(n,"easeSinInOut",function(){return ha}),e.d(n,"easeExp",function(){return va}),e.d(n,"easeExpIn",function(){return da}),e.d(n,"easeExpOut",function(){return pa}),e.d(n,"easeExpInOut",function(){return va}),e.d(n,"easeCircle",function(){return ya}),e.d(n,"easeCircleIn",function(){return _a}),e.d(n,"easeCircleOut",function(){return ga}),e.d(n,"easeCircleInOut",function(){return ya}),e.d(n,"easeBounce",function(){return ja}),e.d(n,"easeBounceIn",function(){return Oa}),e.d(n,"easeBounceOut",function(){return ja}),e.d(n,"easeBounceInOut",function(){return Ca}),e.d(n,"easeBack",function(){return za}),e.d(n,"easeBackIn",function(){return Na}),e.d(n,"easeBackOut",function(){return Ra}),e.d(n,"easeBackInOut",function(){return za}),e.d(n,"easeElastic",function(){return Ia}),e.d(n,"easeElasticIn",function(){return La}),e.d(n,"easeElasticOut",function(){return Ia}),e.d(n,"easeElasticInOut",function(){return Da}),e.d(n,"blob",function(){return Fa}),e.d(n,"buffer",function(){return Ua}),e.d(n,"dsv",function(){return Za}),e.d(n,"csv",function(){return $a}),e.d(n,"tsv",function(){return Ga}),e.d(n,"image",function(){return Va}),e.d(n,"json",function(){return Ka}),e.d(n,"text",function(){return Wa}),e.d(n,"xml",function(){return Qa}),e.d(n,"html",function(){return tu}),e.d(n,"svg",function(){return nu}),e.d(n,"forceCenter",function(){return eu}),e.d(n,"forceCollide",function(){return vu}),e.d(n,"forceLink",function(){return yu}),e.d(n,"forceManyBody",function(){return Eu}),e.d(n,"forceRadial",function(){return Mu}),e.d(n,"forceSimulation",function(){return ku}),e.d(n,"forceX",function(){return Su}),e.d(n,"forceY",function(){return Au}),e.d(n,"formatDefaultLocale",function(){return Wu}),e.d(n,"format",function(){return Pu}),e.d(n,"formatPrefix",function(){return Lu}),e.d(n,"formatLocale",function(){return Hu}),e.d(n,"formatSpecifier",function(){return Cu}),e.d(n,"FormatSpecifier",function(){return Nu}),e.d(n,"precisionFixed",function(){return Yu}),e.d(n,"precisionPrefix",function(){return