diff --git a/webapp/dist/109da3ab610328154d3119eec563adb2.json b/webapp/dist/109da3ab610328154d3119eec563adb2.json new file mode 100644 index 0000000000..f0e82a478f --- /dev/null +++ b/webapp/dist/109da3ab610328154d3119eec563adb2.json @@ -0,0 +1 @@ +{"Aacute":"\u00C1","aacute":"\u00E1","Acirc":"\u00C2","acirc":"\u00E2","acute":"\u00B4","AElig":"\u00C6","aelig":"\u00E6","Agrave":"\u00C0","agrave":"\u00E0","amp":"&","AMP":"&","Aring":"\u00C5","aring":"\u00E5","Atilde":"\u00C3","atilde":"\u00E3","Auml":"\u00C4","auml":"\u00E4","brvbar":"\u00A6","Ccedil":"\u00C7","ccedil":"\u00E7","cedil":"\u00B8","cent":"\u00A2","copy":"\u00A9","COPY":"\u00A9","curren":"\u00A4","deg":"\u00B0","divide":"\u00F7","Eacute":"\u00C9","eacute":"\u00E9","Ecirc":"\u00CA","ecirc":"\u00EA","Egrave":"\u00C8","egrave":"\u00E8","ETH":"\u00D0","eth":"\u00F0","Euml":"\u00CB","euml":"\u00EB","frac12":"\u00BD","frac14":"\u00BC","frac34":"\u00BE","gt":">","GT":">","Iacute":"\u00CD","iacute":"\u00ED","Icirc":"\u00CE","icirc":"\u00EE","iexcl":"\u00A1","Igrave":"\u00CC","igrave":"\u00EC","iquest":"\u00BF","Iuml":"\u00CF","iuml":"\u00EF","laquo":"\u00AB","lt":"<","LT":"<","macr":"\u00AF","micro":"\u00B5","middot":"\u00B7","nbsp":"\u00A0","not":"\u00AC","Ntilde":"\u00D1","ntilde":"\u00F1","Oacute":"\u00D3","oacute":"\u00F3","Ocirc":"\u00D4","ocirc":"\u00F4","Ograve":"\u00D2","ograve":"\u00F2","ordf":"\u00AA","ordm":"\u00BA","Oslash":"\u00D8","oslash":"\u00F8","Otilde":"\u00D5","otilde":"\u00F5","Ouml":"\u00D6","ouml":"\u00F6","para":"\u00B6","plusmn":"\u00B1","pound":"\u00A3","quot":"\"","QUOT":"\"","raquo":"\u00BB","reg":"\u00AE","REG":"\u00AE","sect":"\u00A7","shy":"\u00AD","sup1":"\u00B9","sup2":"\u00B2","sup3":"\u00B3","szlig":"\u00DF","THORN":"\u00DE","thorn":"\u00FE","times":"\u00D7","Uacute":"\u00DA","uacute":"\u00FA","Ucirc":"\u00DB","ucirc":"\u00FB","Ugrave":"\u00D9","ugrave":"\u00F9","uml":"\u00A8","Uuml":"\u00DC","uuml":"\u00FC","Yacute":"\u00DD","yacute":"\u00FD","yen":"\u00A5","yuml":"\u00FF"} \ No newline at end of file diff --git a/webapp/dist/2980083682e94d33a66eef2e7d612519.svg b/webapp/dist/2980083682e94d33a66eef2e7d612519.svg new file mode 100644 index 0000000000..1ee89d4368 --- /dev/null +++ b/webapp/dist/2980083682e94d33a66eef2e7d612519.svg @@ -0,0 +1,565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/webapp/dist/43159b383933d36c20b00405971cd4eb.svg b/webapp/dist/43159b383933d36c20b00405971cd4eb.svg new file mode 100644 index 0000000000..b1d6c2b242 --- /dev/null +++ b/webapp/dist/43159b383933d36c20b00405971cd4eb.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/webapp/dist/706450d7bba6374ca02fe167d86685cb.ttf b/webapp/dist/706450d7bba6374ca02fe167d86685cb.ttf new file mode 100644 index 0000000000..ed9372f8ea Binary files /dev/null and b/webapp/dist/706450d7bba6374ca02fe167d86685cb.ttf differ diff --git a/webapp/dist/97493d3f11c0a3bd5cbd959f5d19b699.woff2 b/webapp/dist/97493d3f11c0a3bd5cbd959f5d19b699.woff2 new file mode 100644 index 0000000000..3311d58514 Binary files /dev/null and b/webapp/dist/97493d3f11c0a3bd5cbd959f5d19b699.woff2 differ diff --git a/webapp/dist/a239f00c1c044ecbb6878e0cba0ee8fb.png b/webapp/dist/a239f00c1c044ecbb6878e0cba0ee8fb.png new file mode 100644 index 0000000000..0453f11196 Binary files /dev/null and b/webapp/dist/a239f00c1c044ecbb6878e0cba0ee8fb.png differ diff --git a/webapp/dist/babel.js b/webapp/dist/babel.js new file mode 100644 index 0000000000..12630b6ffe --- /dev/null +++ b/webapp/dist/babel.js @@ -0,0 +1,3 @@ +!function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){(function(t){"use strict";function n(t,n,r){t[n]||Object[e](t,n,{writable:!0,configurable:!0,value:r})}if(r(2),r(293),r(295),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,function(){return this}())},function(t,n,r){r(3),r(52),r(53),r(54),r(55),r(57),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(70),r(72),r(74),r(76),r(79),r(80),r(81),r(85),r(87),r(89),r(92),r(93),r(94),r(95),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(105),r(106),r(107),r(109),r(110),r(111),r(113),r(114),r(115),r(116),r(117),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(131),r(132),r(136),r(137),r(138),r(139),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(159),r(160),r(166),r(167),r(169),r(170),r(171),r(175),r(176),r(177),r(178),r(179),r(181),r(182),r(183),r(184),r(187),r(189),r(190),r(191),r(193),r(195),r(197),r(198),r(199),r(201),r(202),r(203),r(204),r(211),r(214),r(215),r(217),r(218),r(221),r(222),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(240),r(241),r(242),r(244),r(245),r(246),r(247),r(248),r(249),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(260),r(261),r(263),r(264),r(265),r(266),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(291),r(292),t.exports=r(9)},function(t,n,r){"use strict";var e=r(4),i=r(5),o=r(6),u=r(8),c=r(18),f=r(22).KEY,a=r(7),s=r(23),l=r(24),h=r(19),v=r(25),p=r(26),d=r(27),y=r(29),g=r(42),b=r(45),x=r(12),w=r(32),m=r(16),S=r(17),_=r(46),E=r(49),O=r(51),F=r(11),P=r(30),M=O.f,A=F.f,j=E.f,N=e.Symbol,I=e.JSON,R=I&&I.stringify,k="prototype",T=v("_hidden"),L=v("toPrimitive"),C={}.propertyIsEnumerable,U=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),G=Object[k],B="function"==typeof N,V=e.QObject,z=!V||!V[k]||!V[k].findChild,Y=o&&a(function(){return 7!=_(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(G,n);e&&delete G[n],A(t,n,r),e&&t!==G&&A(G,n,e)}:A,J=function(t){var n=D[t]=_(N[k]);return n._k=t,n},K=B&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},q=function(t,n,r){return t===G&&q(W,n,r),x(t),n=m(n,!0),x(r),i(D,n)?(r.enumerable?(i(t,T)&&t[T][n]&&(t[T][n]=!1),r=_(r,{enumerable:S(0,!1)})):(i(t,T)||A(t,T,S(1,{})),t[T][n]=!0),Y(t,n,r)):A(t,n,r)},X=function(t,n){x(t);for(var r,e=g(n=w(n)),i=0,o=e.length;o>i;)q(t,r=e[i++],n[r]);return t},$=function(t,n){return void 0===n?_(t):X(_(t),n)},H=function(t){var n=C.call(this,t=m(t,!0));return!(this===G&&i(D,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,T)&&this[T][t])||n)},Z=function(t,n){if(t=w(t),n=m(n,!0),t!==G||!i(D,n)||i(W,n)){var r=M(t,n);return!r||!i(D,n)||i(t,T)&&t[T][n]||(r.enumerable=!0),r}},Q=function(t){for(var n,r=j(w(t)),e=[],o=0;r.length>o;)i(D,n=r[o++])||n==T||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===G,e=j(r?W:w(t)),o=[],u=0;e.length>u;)!i(D,n=e[u++])||r&&!i(G,n)||o.push(D[n]);return o};B||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===G&&n.call(W,r),i(this,T)&&i(this[T],t)&&(this[T][t]=!1),Y(this,t,S(1,r))};return o&&z&&Y(G,t,{configurable:!0,set:n}),J(t)},c(N[k],"toString",function(){return this._k}),O.f=Z,F.f=q,r(50).f=E.f=Q,r(44).f=H,r(43).f=tt,o&&!r(28)&&c(G,"propertyIsEnumerable",H,!0),p.f=function(t){return J(v(t))}),u(u.G+u.W+u.F*!B,{Symbol:N});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var nt=P(v.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!B,"Symbol",{"for":function(t){return i(U,t+="")?U[t]:U[t]=N(t)},keyFor:function(t){if(K(t))return y(U,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:$,defineProperty:q,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),I&&u(u.S+u.F*(!B||a(function(){var t=N();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!K(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],"function"==typeof n&&(r=n),!r&&b(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,R.apply(I,e)}}}),N[k][L]||r(10)(N[k],L,N[k].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=!r(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,r){var e=r(4),i=r(9),o=r(10),u=r(18),c=r(20),f="prototype",a=function(t,n,r){var s,l,h,v,p=t&a.F,d=t&a.G,y=t&a.S,g=t&a.P,b=t&a.B,x=d?e:y?e[n]||(e[n]={}):(e[n]||{})[f],w=d?i:i[n]||(i[n]={}),m=w[f]||(w[f]={});d&&(r=n);for(s in r)l=!p&&x&&void 0!==x[s],h=(l?x:r)[s],v=b&&l?c(h,e):g&&"function"==typeof h?c(Function.call,h):h,x&&u(x,s,h,t&a.U),w[s]!=h&&o(w,s,v),g&&m[s]!=h&&(m[s]=h)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(11),i=r(17);t.exports=r(6)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(12),i=r(14),o=r(16),u=Object.defineProperty;n.f=r(6)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(c){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(13);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(6)&&!r(7)(function(){return 7!=Object.defineProperty(r(15)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(13),i=r(4).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){var e=r(13);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(4),i=r(10),o=r(5),u=r(19)("src"),c="toString",f=Function[c],a=(""+f).split(c);r(9).inspectSource=function(t){return f.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||f.call(this)})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(21);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(19)("meta"),i=r(13),o=r(5),u=r(11).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(7)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return a&&p.NEED&&f(t)&&!o(t,e)&&s(t),t},p=t.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},function(t,n,r){var e=r(4),i="__core-js_shared__",o=e[i]||(e[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,r){var e=r(11).f,i=r(5),o=r(25)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(23)("wks"),i=r(19),o=r(4).Symbol,u="function"==typeof o,c=t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))};c.store=e},function(t,n,r){n.f=r(25)},function(t,n,r){var e=r(4),i=r(9),o=r(28),u=r(26),c=r(11).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n){t.exports=!1},function(t,n,r){var e=r(30),i=r(32);t.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,f=0;c>f;)if(o[r=u[f++]]===n)return r}},function(t,n,r){var e=r(31),i=r(41);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(5),i=r(32),o=r(36)(!1),u=r(40)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(33),i=r(35);t.exports=function(t){return e(i(t))}},function(t,n,r){var e=r(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(32),i=r(37),o=r(39);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n,r){var e=r(38),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(38),i=Math.max,o=Math.min;t.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(23)("keys"),i=r(19);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(30),i=r(43),o=r(44);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(34);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(12),i=r(47),o=r(41),u=r(40)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,n=r(15)("iframe"),e=o.length,i="<",u=">";for(n.style.display="none",r(48).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),a=t.F;e--;)delete a[f][o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(11),i=r(12),o=r(30);t.exports=r(6)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){t.exports=r(4).document&&document.documentElement},function(t,n,r){var e=r(32),i=r(50).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},function(t,n,r){var e=r(31),i=r(41).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(44),i=r(17),o=r(32),u=r(16),c=r(5),f=r(14),a=Object.getOwnPropertyDescriptor;n.f=r(6)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(r){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(8);e(e.S,"Object",{create:r(46)})},function(t,n,r){var e=r(8);e(e.S+e.F*!r(6),"Object",{defineProperty:r(11).f})},function(t,n,r){var e=r(8);e(e.S+e.F*!r(6),"Object",{defineProperties:r(47)})},function(t,n,r){var e=r(32),i=r(51).f;r(56)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){var e=r(8),i=r(9),o=r(7);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(58),i=r(59);r(56)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(35);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(5),i=r(58),o=r(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(58),i=r(30);r(56)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){r(56)("getOwnPropertyNames",function(){return r(49).f})},function(t,n,r){var e=r(13),i=r(22).onFreeze;r(56)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(13),i=r(22).onFreeze;r(56)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(13),i=r(22).onFreeze;r(56)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(13);r(56)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(13);r(56)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(13);r(56)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(8);e(e.S+e.F,"Object",{assign:r(69)})},function(t,n,r){"use strict";var e=r(30),i=r(43),o=r(44),u=r(58),c=r(33),f=Object.assign;t.exports=!f||r(7)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e})?function(t,n){for(var r=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?e(v).concat(s(v)):e(v),d=p.length,y=0;d>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:f},function(t,n,r){var e=r(8);e(e.S,"Object",{is:r(71)})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},function(t,n,r){var e=r(8);e(e.S,"Object",{setPrototypeOf:r(73).set})},function(t,n,r){var e=r(13),i=r(12),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{e=r(20)(Function.call,r(51).f(Object.prototype,"__proto__").set,2),e(t,[]),n=!(t instanceof Array)}catch(i){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n,r){"use strict";var e=r(75),i={};i[r(25)("toStringTag")]="z",i+""!="[object z]"&&r(18)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(34),i=r(25)("toStringTag"),o="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(r){}};t.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),i))?r:o?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n,r){var e=r(8);e(e.P,"Function",{bind:r(77)})},function(t,n,r){"use strict";var e=r(21),i=r(13),o=r(78),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(8),i=r(35),o=r(7),u=r(84),c="["+u+"]",f="​…",a=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||f[t]()!=f}),a=i[t]=c?n(h):u[t];r&&(i[r]=a),e(e.P+e.F*c,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},function(t,n){t.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var e=r(8),i=r(86);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){var e=r(4).parseFloat,i=r(83).trim;t.exports=1/e(r(84)+"-0")!==-(1/0)?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){"use strict";var e=r(4),i=r(5),o=r(34),u=r(88),c=r(16),f=r(7),a=r(50).f,s=r(51).f,l=r(11).f,h=r(83).trim,v="Number",p=e[v],d=p,y=p.prototype,g=o(r(46)(y))==v,b="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=b?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(r=n.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;ai)return NaN;return parseInt(f,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(g?f(function(){y.valueOf.call(r)}):o(r)!=v)?u(new d(x(n)),r,p):x(n)};for(var w,m=r(6)?a(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;m.length>S;S++)i(d,w=m[S])&&!i(p,w)&&l(p,w,s(d,w));p.prototype=y,y.constructor=p,r(18)(e,v,p)}},function(t,n,r){var e=r(13),i=r(73).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(8),i=r(38),o=r(90),u=r(91),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l="0",h=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},v=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call(l,7-r.length)+r}return n},d=function(t,n,r){return 0===n?r:n%2===1?d(t,n-1,r*t):d(t*t,n/2,r)},y=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(7)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),g="",b=l;if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(g="-",f=-f),f>1e-21)if(n=y(f*d(2,69,1))-69,r=n<0?f*d(2,-n,1):f/d(2,n,1),r*=4503599627370496,n=52-n,n>0){for(h(0,r),e=a;e>=7;)h(1e7,0),e-=7;for(h(d(10,e,1),0),e=n-1;e>=23;)v(1<<23),e-=23;v(1<0?(c=b.length,b=g+(c<=a?"0."+u.call(l,a-c)+b:b.slice(0,c-a)+"."+b.slice(c-a))):b=g+b,b}})},function(t,n,r){var e=r(34);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){"use strict";var e=r(38),i=r(35);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n,r){"use strict";var e=r(8),i=r(7),o=r(90),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(8);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(8),i=r(4).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(8);e(e.S,"Number",{isInteger:r(96)})},function(t,n,r){var e=r(13),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n,r){var e=r(8);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(8),i=r(96),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(8);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(8);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(8),i=r(86);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(8),i=r(82);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(8),i=r(104),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=r(8),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:e})},function(t,n,r){var e=r(8),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(8),i=r(108);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,r){var e=r(8);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(8),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(8),i=r(112);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(8),i=r(108),o=Math.pow,u=o(2,-52),c=o(2,-23),f=o(2,127)*(2-c),a=o(2,-126),s=function(t){return t+1/u-1/u};e(e.S,"Math",{fround:function(t){var n,r,e=Math.abs(t),o=i(t);return ef||r!=r?o*(1/0):o*r)}})},function(t,n,r){var e=r(8),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u0?(e=r/f,o+=e*e):o+=r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(8),i=Math.imul;e(e.S+e.F*r(7)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,n){var r=65535,e=+t,i=+n,o=r&e,u=r&i;return 0|o*u+((r&e>>>16)*u+o*(r&i>>>16)<<16>>>0)}})},function(t,n,r){var e=r(8);e(e.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,n,r){var e=r(8);e(e.S,"Math",{log1p:r(104)})},function(t,n,r){var e=r(8);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(8);e(e.S,"Math",{sign:r(108)})},function(t,n,r){var e=r(8),i=r(112),o=Math.exp;e(e.S+e.F*r(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(8),i=r(112),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(8);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(8),i=r(39),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(((n-=65536)>>10)+55296,n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(8),i=r(32),o=r(37);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){var e=r(38),i=r(35);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f),o<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,r){"use strict";var e=r(28),i=r(8),o=r(18),u=r(10),c=r(5),f=r(129),a=r(130),s=r(24),l=r(59),h=r(25)("iterator"),v=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",y="values",g=function(){return this};t.exports=function(t,n,r,b,x,w,m){a(r,n,b);var S,_,E,O=function(t){if(!v&&t in A)return A[t];switch(t){case d:return function(){return new r(this,t)};case y:return function(){return new r(this,t)}}return function(){return new r(this,t)}},F=n+" Iterator",P=x==y,M=!1,A=t.prototype,j=A[h]||A[p]||x&&A[x],N=j||O(x),I=x?P?O("entries"):N:void 0,R="Array"==n?A.entries||j:j;if(R&&(E=l(R.call(new t)),E!==Object.prototype&&(s(E,F,!0),e||c(E,h)||u(E,h,g))),P&&j&&j.name!==y&&(M=!0,N=function(){return j.call(this)}),e&&!m||!v&&!M&&A[h]||u(A,h,N),f[n]=N,f[F]=g,x)if(S={values:P?N:O(y),keys:w?N:O(d),entries:I},m)for(_ in S)_ in A||o(A,_,S[_]);else i(i.P+i.F*(v||M),n,S);return S}},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(46),i=r(17),o=r(24),u={};r(10)(u,r(25)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){"use strict";var e=r(8),i=r(127)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(8),i=r(37),o=r(133),u="endsWith",c=""[u];e(e.P+e.F*r(135)(u),"String",{endsWith:function(t){var n=o(this,t,u),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),f=void 0===r?e:Math.min(i(r),e),a=String(t);return c?c.call(n,a,f):n.slice(f-a.length,f)===a}})},function(t,n,r){var e=r(134),i=r(35);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(13),i=r(34),o=r(25)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(25)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(i){}}return!0}},function(t,n,r){"use strict";var e=r(8),i=r(133),o="includes";e(e.P+e.F*r(135)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(8);e(e.P,"String",{repeat:r(91)})},function(t,n,r){"use strict";var e=r(8),i=r(37),o=r(133),u="startsWith",c=""[u];e(e.P+e.F*r(135)(u),"String",{startsWith:function(t){var n=o(this,t,u),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return c?c.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(140)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){var e=r(8),i=r(7),o=r(35),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n,r){"use strict";r(140)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(140)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(140)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(140)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(140)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(140)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(140)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(140)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(140)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(140)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(140)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(140)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){var e=r(8);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(16);e(e.P+e.F*r(7)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){"use strict";var e=r(8),i=r(7),o=Date.prototype.getTime,u=function(t){return t>9?t:"0"+t};e(e.P+e.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"; +}})},function(t,n,r){var e=Date.prototype,i="Invalid Date",o="toString",u=e[o],c=e.getTime;new Date(NaN)+""!=i&&r(18)(e,o,function(){var t=c.call(this);return t===t?u.call(this):i})},function(t,n,r){var e=r(25)("toPrimitive"),i=Date.prototype;e in i||r(10)(i,e,r(158))},function(t,n,r){"use strict";var e=r(12),i=r(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),t!=o)}},function(t,n,r){var e=r(8);e(e.S,"Array",{isArray:r(45)})},function(t,n,r){"use strict";var e=r(20),i=r(8),o=r(58),u=r(161),c=r(162),f=r(37),a=r(163),s=r(164);i(i.S+i.F*!r(165)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,y=void 0!==d,g=0,b=s(h);if(y&&(d=e(d,p>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(n=f(h.length),r=new v(n);n>g;g++)a(r,g,y?d(h[g],g):h[g]);else for(l=b.call(h),r=new v;!(i=l.next()).done;g++)a(r,g,y?u(l,d,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){var e=r(12);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(o){var u=t["return"];throw void 0!==u&&e(u.call(t)),o}}},function(t,n,r){var e=r(129),i=r(25)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(11),i=r(17);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(75),i=r(25)("iterator"),o=r(129);t.exports=r(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){var e=r(25)("iterator"),i=!1;try{var o=[7][e]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(u){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(c){}return r}},function(t,n,r){"use strict";var e=r(8),i=r(163);e(e.S+e.F*r(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(8),i=r(32),o=[].join;e(e.P+e.F*(r(33)!=Object||!r(168)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){var e=r(7);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){"use strict";var e=r(8),i=r(48),o=r(34),u=r(39),c=r(37),f=[].slice;e(e.P+e.F*r(7)(function(){i&&f.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=Array(s),h=0;hm;m++)if((h||m in b)&&(d=b[m],y=x(d,m,g),t))if(r)S[m]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:S.push(d)}else if(s)return!1;return l?-1:a||s?s:S}}},function(t,n,r){var e=r(174);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(13),i=r(45),o=r(25)("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(8),i=r(172)(1);e(e.P+e.F*!r(168)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(172)(2);e(e.P+e.F*!r(168)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(172)(3);e(e.P+e.F*!r(168)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(172)(4);e(e.P+e.F*!r(168)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(180);e(e.P+e.F*!r(168)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){var e=r(21),i=r(58),o=r(33),u=r(37);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(8),i=r(180);e(e.P+e.F*!r(168)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(8),i=r(36)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(168)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(32),o=r(38),u=r(37),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(f||!r(168)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(8);e(e.P,"Array",{copyWithin:r(185)}),r(186)("copyWithin")},function(t,n,r){"use strict";var e=r(58),i=r(39),o=r(37);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n,r){var e=r(25)("unscopables"),i=Array.prototype;void 0==i[e]&&r(10)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(8);e(e.P,"Array",{fill:r(188)}),r(186)("fill")},function(t,n,r){"use strict";var e=r(58),i=r(39),o=r(37);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(8),i=r(172)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(186)(o)},function(t,n,r){"use strict";var e=r(8),i=r(172)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(186)(o)},function(t,n,r){r(192)("Array")},function(t,n,r){"use strict";var e=r(4),i=r(11),o=r(6),u=r(25)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(186),i=r(194),o=r(129),u=r(32);t.exports=r(128)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){var e=r(4),i=r(88),o=r(11).f,u=r(50).f,c=r(134),f=r(196),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(r(6)&&(!p||r(7)(function(){return v[r(25)("match")]=!1,a(h)!=h||a(v)==v||"/a/i"!=a(h,"i")}))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var d=(function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}),y=u(s),g=0;y.length>g;)d(y[g++]);l.constructor=a,a.prototype=l,r(18)(e,"RegExp",a)}r(192)("RegExp")},function(t,n,r){"use strict";var e=r(12);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";r(198);var e=r(12),i=r(196),o=r(6),u="toString",c=/./[u],f=function(t){r(18)(RegExp.prototype,u,t,!0)};r(7)(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?f(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):c.name!=u&&f(function(){return c.call(this)})},function(t,n,r){r(6)&&"g"!=/./g.flags&&r(11).f(RegExp.prototype,"flags",{configurable:!0,get:r(196)})},function(t,n,r){r(200)("match",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){"use strict";var e=r(10),i=r(18),o=r(7),u=r(35),c=r(25);t.exports=function(t,n,r){var f=c(t),a=r(u,f,""[t]),s=a[0],l=a[1];o(function(){var n={};return n[f]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,f,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n,r){r(200)("replace",2,function(t,n,r){return[function(e,i){"use strict";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,r){r(200)("search",1,function(t,n,r){return[function(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},function(t,n,r){r(200)("split",2,function(t,n,e){"use strict";var i=r(134),o=e,u=[].push,c="split",f="length",a="lastIndex";if("c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[f]||2!="ab"[c](/(?:ab)*/)[f]||4!="."[c](/(.?)(.?)/)[f]||"."[c](/()()/)[f]>1||""[c](/.?/)[f]){var s=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,c,l,h,v,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,g=void 0===n?4294967295:n>>>0,b=new RegExp(t.source,d+"g");for(s||(e=new RegExp("^"+b.source+"$(?!\\s)",d));(c=b.exec(r))&&(l=c.index+c[0][f],!(l>y&&(p.push(r.slice(y,c.index)),!s&&c[f]>1&&c[0].replace(e,function(){for(v=1;v1&&c.index=g)));)b[a]===c.index&&b[a]++;return y===r[f]?!h&&b.test("")||p.push(""):p.push(r.slice(y)),p[f]>g?p.slice(0,g):p}}else"0"[c](void 0,0)[f]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(r,i){var o=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},e]})},function(t,n,r){"use strict";var e,i,o,u=r(28),c=r(4),f=r(20),a=r(75),s=r(8),l=r(13),h=r(21),v=r(205),p=r(206),d=r(207),y=r(208).set,g=r(209)(),b="Promise",x=c.TypeError,w=c.process,m=c[b],w=c.process,S="process"==a(w),_=function(){},E=!!function(){try{var t=m.resolve(1),n=(t.constructor={})[r(25)("species")]=function(t){t(_,_)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(_)instanceof n}catch(e){}}(),O=function(t,n){return t===n||t===m&&n===o},F=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},P=function(t){return O(m,t)?new M(t):new i(t)},M=i=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw x("Bad Promise constructor");n=t,r=e}),this.resolve=h(n),this.reject=h(r)},A=function(t){try{t()}catch(n){return{error:n}}},j=function(t,n){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u=i?n.ok:n.fail,c=n.resolve,f=n.reject,a=n.domain;try{u?(i||(2==t._h&&R(t),t._h=1),u===!0?r=e:(a&&a.enter(),r=u(e),a&&a.exit()),r===n.promise?f(x("Promise-chain cycle")):(o=F(r))?o.call(r,c,f):c(r)):f(e)}catch(s){f(s)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){y.call(c,function(){var n,r,e,i=t._v;if(I(t)&&(n=A(function(){S?w.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(e=c.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=S||I(t)?2:1),t._a=void 0,n)throw n.error})},I=function(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,e=0;r.length>e;)if(n=r[e++],n.fail||!I(n.promise))return!1;return!0},R=function(t){y.call(c,function(){var n;S?w.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},k=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},T=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw x("Promise can't be resolved itself");(n=F(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(T,e,1),f(k,e,1))}catch(i){k.call(e,i)}}):(r._v=t,r._s=1,j(r,!1))}catch(e){k.call({_w:r,_d:!1},e)}}};E||(m=function(t){v(this,m,b,"_h"),h(t),e.call(this);try{t(f(T,this,1),f(k,this,1))}catch(n){k.call(this,n)}},e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=r(210)(m.prototype,{then:function(t,n){var r=P(d(this,m));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=S?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&j(this,!1),r.promise},"catch":function(t){return this.then(void 0,t)}}),M=function(){var t=new e;this.promise=t,this.resolve=f(T,t,1),this.reject=f(k,t,1)}),s(s.G+s.W+s.F*!E,{Promise:m}),r(24)(m,b),r(192)(b),o=r(9)[b],s(s.S+s.F*!E,b,{reject:function(t){var n=P(this),r=n.reject;return r(t),n.promise}}),s(s.S+s.F*(u||!E),b,{resolve:function(t){if(t instanceof m&&O(t.constructor,this))return t;var n=P(this),r=n.resolve;return r(t),n.promise}}),s(s.S+s.F*!(E&&r(165)(function(t){m.all(t)["catch"](_)})),b,{all:function(t){var n=this,r=P(n),e=r.resolve,i=r.reject,o=A(function(){var r=[],o=0,u=1;p(t,!1,function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o&&i(o.error),r.promise},race:function(t){var n=this,r=P(n),e=r.reject,i=A(function(){p(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i&&e(i.error),r.promise}})},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(20),i=r(161),o=r(162),u=r(12),c=r(37),f=r(164),a={},s={},n=t.exports=function(t,n,r,l,h){var v,p,d,y,g=h?function(){return t}:f(t),b=e(r,l,n?2:1),x=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=c(t.length);v>x;x++)if(y=n?b(u(p=t[x])[0],p[1]):b(t[x]),y===a||y===s)return y}else for(d=g.call(t);!(p=d.next()).done;)if(y=i(d,b,p.value,n),y===a||y===s)return y};n.BREAK=a,n.RETURN=s},function(t,n,r){var e=r(12),i=r(21),o=r(25)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e,i,o,u=r(20),c=r(78),f=r(48),a=r(15),s=r(4),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,d=0,y={},g="onreadystatechange",b=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},x=function(t){b.call(t.data)};h&&v||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},v=function(t){delete y[t]},"process"==r(34)(l)?e=function(t){l.nextTick(u(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=x,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):e=g in a("script")?function(t){f.appendChild(a("script"))[g]=function(){f.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:h,clear:v}},function(t,n,r){var e=r(4),i=r(208).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(34)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(f&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(o){throw t?r():n=void 0,o}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(a)};else if(o){var s=!0,l=document.createTextNode("");new o(a).observe(l,{characterData:!0}),r=function(){l.data=s=!s}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(a)}}else r=function(){i.call(e,a)};return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},function(t,n,r){"use strict";var e=r(212);t.exports=r(213)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(this,t);return n&&n.v},set:function(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(11).f,i=r(46),o=r(210),u=r(20),c=r(205),f=r(35),a=r(206),s=r(128),l=r(194),h=r(192),v=r(6),p=r(22).fastKey,d=v?"_s":"size",y=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,s){var l=t(function(t,e){c(t,l,n,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[s],t)});return o(l.prototype,{clear:function(){for(var t=this,n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},"delete":function(t){var n=this,r=y(n,t);if(r){var e=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=e),e&&(e.p=i),n._f==r&&(n._f=e),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){c(this,l,"forEach");for(var n,r=u(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(this,t)}}),v&&e(l.prototype,"size",{get:function(){return f(this[d])}}),l},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){s(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?l(0,r.k):"values"==n?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),h(n)}}},function(t,n,r){"use strict";var e=r(4),i=r(8),o=r(18),u=r(210),c=r(22),f=r(206),a=r(205),s=r(13),l=r(7),h=r(165),v=r(24),p=r(88);t.exports=function(t,n,r,d,y,g){var b=e[t],x=b,w=y?"set":"add",m=x&&x.prototype,S={},_=function(t){var n=m[t];o(m,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof x&&(g||m.forEach&&!l(function(){(new x).entries().next()}))){var E=new x,O=E[w](g?{}:-0,1)!=E,F=l(function(){E.has(1)}),P=h(function(t){new x(t)}),M=!g&&l(function(){for(var t=new x,n=5;n--;)t[w](n,n);return!t.has(-0)});P||(x=n(function(n,r){a(n,x,t);var e=p(new b,n,x);return void 0!=r&&f(r,y,e[w],e),e}),x.prototype=m,m.constructor=x),(F||M)&&(_("delete"),_("has"),y&&_("get")),(M||O)&&_(w),g&&m.clear&&delete m.clear}else x=d.getConstructor(n,t,y,w),u(x.prototype,r),c.NEED=!0;return v(x,t),S[t]=x,i(i.G+i.W+i.F*(x!=b),S),g||d.setStrong(x,t,y),x}},function(t,n,r){"use strict";var e=r(212);t.exports=r(213)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(172)(0),o=r(18),u=r(22),c=r(69),f=r(216),a=r(13),s=u.getWeak,l=Object.isExtensible,h=f.ufstore,v={},p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(t){if(a(t)){var n=s(t);return n===!0?h(this).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(this,t,n)}},y=t.exports=r(213)("WeakMap",p,d,f,!0,!0);7!=(new y).set((Object.freeze||Object)(v),7).get(v)&&(e=f.getConstructor(p),c(e.prototype,d),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=y.prototype,r=n[t];o(n,t,function(n,i){if(a(n)&&!l(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},function(t,n,r){"use strict";var e=r(210),i=r(22).getWeak,o=r(12),u=r(13),c=r(205),f=r(206),a=r(172),s=r(5),l=a(5),h=a(6),v=0,p=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},y=function(t,n){return l(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=y(this,t);if(n)return n[1]},has:function(t){return!!y(this,t)},set:function(t,n){var r=y(this,t);r?r[1]=n:this.a.push([t,n])},"delete":function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){c(t,a,n,"_i"),t._i=v++,t._l=void 0,void 0!=e&&f(e,r,t[o],t)});return e(a.prototype,{"delete":function(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this)["delete"](t):n&&s(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this).has(t):n&&s(n,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return e===!0?p(t).set(n,r):e[t._i]=r,t},ufstore:p}},function(t,n,r){"use strict";var e=r(216);r(213)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(8),i=r(219),o=r(220),u=r(12),c=r(39),f=r(37),a=r(13),s=r(4).ArrayBuffer,l=r(207),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW,g="ArrayBuffer";e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,g,{isView:function(t){return p&&p(t)||a(t)&&y in t}}),e(e.P+e.U+e.F*r(7)(function(){return!new h(2).slice(1,void 0).byteLength}),g,{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new v(this),s=new v(o),p=0;e>1,s=23===n?A(2,-24)-A(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=M(t),t!=t||t===F?(i=t!=t?1:0,e=f):(e=j(N(t)/I),t*(o=A(2,-e))<1&&(e--,o*=2),t+=e+a>=1?s/o:s*A(2,1-a),t*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*A(2,n),e+=a):(i=t*A(2,a-1)*A(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u},W=function(t,n,r){var e,i=8*r-n-1,o=(1<>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-F:F;e+=A(2,n),s-=u}return(a?-1:1)*e*A(2,s-n)},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Y=function(t){return D(t,52,8)},J=function(t){return D(t,23,4)},K=function(t,n,r){p(t[x],n,{get:function(){return this[r]}})},q=function(t,n,r,e){var i=+r,o=l(i);if(i!=o||o<0||o+n>t[C])throw O(m);var u=t[L]._b,c=o+t[U],f=u.slice(c,c+n);return e?f:f.reverse()},X=function(t,n,r,e,i,o){var u=+r,c=l(u);if(u!=c||c<0||c+n>t[C])throw O(m);for(var f=t[L]._b,a=c+t[U],s=e(+i),h=0;htt;)(H=Q[tt++])in S||c(S,H,P[H]);o||(Z.constructor=S)}var nt=new _(new S(2)),rt=_[x].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(_[x],{setInt8:function(t,n){rt.call(this,t,n<<24>>24)},setUint8:function(t,n){rt.call(this,t,n<<24>>24)}},!0)}else S=function(t){var n=$(this,t);this._b=d.call(Array(n),0),this[C]=n},_=function(t,n,r){s(this,_,b),s(t,S,b);var e=t[C],i=l(n);if(i<0||i>e)throw O("Wrong offset!");if(r=void 0===r?e-i:h(r),i+r>e)throw O(w);this[L]=t,this[U]=i,this[C]=r},i&&(K(S,k,"_l"),K(_,R,"_b"),K(_,k,"_l"),K(_,T,"_o")),f(_[x],{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var n=q(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=q(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return G(q(this,4,t,arguments[1]))},getUint32:function(t){return G(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return W(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return W(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){X(this,1,t,B,n)},setUint8:function(t,n){X(this,1,t,B,n)},setInt16:function(t,n){X(this,2,t,V,n,arguments[2])},setUint16:function(t,n){X(this,2,t,V,n,arguments[2])},setInt32:function(t,n){X(this,4,t,z,n,arguments[2])},setUint32:function(t,n){X(this,4,t,z,n,arguments[2])},setFloat32:function(t,n){X(this,4,t,J,n,arguments[2])},setFloat64:function(t,n){X(this,8,t,Y,n,arguments[2])}});y(S,g),y(_,b),c(_[x],u.VIEW,!0),n[g]=S,n[b]=_},function(t,n,r){var e=r(8);e(e.G+e.W+e.F*!r(219).ABV,{DataView:r(220).DataView})},function(t,n,r){r(223)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){"use strict";if(r(6)){var e=r(28),i=r(4),o=r(7),u=r(8),c=r(219),f=r(220),a=r(20),s=r(205),l=r(17),h=r(10),v=r(210),p=r(38),d=r(37),y=r(39),g=r(16),b=r(5),x=r(71),w=r(75),m=r(13),S=r(58),_=r(162),E=r(46),O=r(59),F=r(50).f,P=r(164),M=r(19),A=r(25),j=r(172),N=r(36),I=r(207),R=r(193),k=r(129),T=r(165),L=r(192),C=r(188),U=r(185),D=r(11),W=r(51),G=D.f,B=W.f,V=i.RangeError,z=i.TypeError,Y=i.Uint8Array,J="ArrayBuffer",K="Shared"+J,q="BYTES_PER_ELEMENT",X="prototype",$=Array[X],H=f.ArrayBuffer,Z=f.DataView,Q=j(0),tt=j(2),nt=j(3),rt=j(4),et=j(5),it=j(6),ot=N(!0),ut=N(!1),ct=R.values,ft=R.keys,at=R.entries,st=$.lastIndexOf,lt=$.reduce,ht=$.reduceRight,vt=$.join,pt=$.sort,dt=$.slice,yt=$.toString,gt=$.toLocaleString,bt=A("iterator"),xt=A("toStringTag"),wt=M("typed_constructor"),mt=M("def_constructor"),St=c.CONSTR,_t=c.TYPED,Et=c.VIEW,Ot="Wrong length!",Ft=j(1,function(t,n){return It(I(t,t[mt]),n)}),Pt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Mt=!!Y&&!!Y[X].set&&o(function(){new Y(1).set({})}),At=function(t,n){if(void 0===t)throw z(Ot);var r=+t,e=d(t);if(n&&!x(r,e))throw V(Ot);return e},jt=function(t,n){var r=p(t);if(r<0||r%n)throw V("Wrong offset!");return r},Nt=function(t){if(m(t)&&_t in t)return t;throw z(t+" is not a typed array!")},It=function(t,n){if(!(m(t)&&wt in t))throw z("It is not a typed array constructor!");return new t(n)},Rt=function(t,n){return kt(I(t,t[mt]),n)},kt=function(t,n){for(var r=0,e=n.length,i=It(t,e);e>r;)i[r]=n[r++];return i},Tt=function(t,n,r){G(t,n,{get:function(){return this._d[r]}})},Lt=function(t){var n,r,e,i,o,u,c=S(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=P(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=d(c.length),i=It(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},Ct=function(){for(var t=0,n=arguments.length,r=It(this,n);n>t;)r[t]=arguments[t++];return r},Ut=!!Y&&o(function(){gt.call(new Y(1))}),Dt=function(){return gt.apply(Ut?dt.call(Nt(this)):Nt(this),arguments)},Wt={copyWithin:function(t,n){return U.call(Nt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return rt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Nt(this),arguments)},filter:function(t){return Rt(this,tt(Nt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return et(Nt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Nt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Nt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ut(Nt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Nt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return vt.apply(Nt(this),arguments)},lastIndexOf:function(t){return st.apply(Nt(this),arguments)},map:function(t){return Ft(Nt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Nt(this),arguments)},reduceRight:function(t){return ht.apply(Nt(this),arguments)},reverse:function(){for(var t,n=this,r=Nt(n).length,e=Math.floor(r/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return pt.call(Nt(this),t)},subarray:function(t,n){var r=Nt(this),e=r.length,i=y(t,e);return new(I(r,r[mt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:y(n,e))-i))}},Gt=function(t,n){return Rt(this,dt.call(Nt(this),t,n))},Bt=function(t){Nt(this);var n=jt(arguments[1],1),r=this.length,e=S(t),i=d(e.length),o=0;if(i+n>r)throw V(Ot);for(;o255?255:255&e),i.v[p](r*n+i.o,e,Pt)},A=function(t,n){G(t,n,{get:function(){return P(this,n)},set:function(t){return M(this,n,t)},enumerable:!0})};x?(y=r(function(t,r,e,i){s(t,y,a,"_d");var o,u,c,f,l=0,v=0;if(m(r)){if(!(r instanceof H||(f=w(r))==J||f==K))return _t in r?kt(y,r):Lt.call(y,r);o=r,v=jt(e,n);var p=r.byteLength;if(void 0===i){if(p%n)throw V(Ot);if(u=p-v,u<0)throw V(Ot)}else if(u=d(i)*n,u+v>p)throw V(Ot);c=u/n}else c=At(r,!0),u=c*n,o=new H(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new Z(o)});l=r.length)return{value:void 0,done:!0};while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){function e(t,n){var r,c,s=arguments.length<3?t:arguments[2];return a(t)===s?t[n]:(r=i.f(t,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(s):void 0:f(c=o(t))?e(c,n,s):void 0}var i=r(51),o=r(59),u=r(5),c=r(8),f=r(13),a=r(12);c(c.S,"Reflect",{get:e})},function(t,n,r){var e=r(51),i=r(8),o=r(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(8),i=r(59),o=r(12);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(8);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(8),i=r(12),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(8);e(e.S,"Reflect",{ownKeys:r(243)})},function(t,n,r){var e=r(50),i=r(43),o=r(12),u=r(4).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(8),i=r(12),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(n){return!1}}})},function(t,n,r){function e(t,n,r){var f,h,v=arguments.length<4?t:arguments[3],p=o.f(s(t),n);if(!p){if(l(h=u(t)))return e(h,n,r,v);p=a(0)}return c(p,"value")?!(p.writable===!1||!l(v))&&(f=o.f(v,n)||a(0),f.value=r,i.f(v,n,f),!0):void 0!==p.set&&(p.set.call(v,r),!0)}var i=r(11),o=r(51),u=r(59),c=r(5),f=r(8),a=r(17),s=r(12),l=r(13);f(f.S,"Reflect",{set:e})},function(t,n,r){var e=r(8),i=r(73);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(r){return!1}}})},function(t,n,r){"use strict";var e=r(8),i=r(36)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(186)("includes")},function(t,n,r){"use strict";var e=r(8),i=r(127)(!0);e(e.P,"String",{at:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(8),i=r(250);e(e.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){var e=r(37),i=r(91),o=r(35);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){"use strict";var e=r(8),i=r(250);e(e.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){"use strict";r(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,r){"use strict";r(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,r){"use strict";var e=r(8),i=r(35),o=r(37),u=r(134),c=r(196),f=RegExp.prototype,a=function(t,n){this._r=t,this._s=n};r(130)(a,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),e(e.P,"String",{matchAll:function(t){if(i(this),!u(t))throw TypeError(t+" is not a regexp!");var n=String(this),r="flags"in f?String(t.flags):c.call(t),e=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return e.lastIndex=o(t.lastIndex),new a(e,n)}})},function(t,n,r){r(27)("asyncIterator")},function(t,n,r){r(27)("observable")},function(t,n,r){var e=r(8),i=r(243),o=r(32),u=r(51),c=r(163);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r=o(t),e=u.f,f=i(r),a={},s=0;f.length>s;)c(a,n=f[s++],e(r,n));return a}})},function(t,n,r){var e=r(8),i=r(259)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){var e=r(30),i=r(32),o=r(44).f;t.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),f=c.length,a=0,s=[];f>a;)o.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},function(t,n,r){var e=r(8),i=r(259)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(21),u=r(11);r(6)&&e(e.P+r(262),"Object",{__defineGetter__:function(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){t.exports=r(28)||!r(7)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r(4)[t]})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(21),u=r(11);r(6)&&e(e.P+r(262),"Object",{__defineSetter__:function(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(16),u=r(59),c=r(51).f;r(6)&&e(e.P+r(262),"Object",{__lookupGetter__:function(t){var n,r=i(this),e=o(t,!0);do if(n=c(r,e))return n.get;while(r=u(r))}})},function(t,n,r){"use strict";var e=r(8),i=r(58),o=r(16),u=r(59),c=r(51).f;r(6)&&e(e.P+r(262),"Object",{__lookupSetter__:function(t){var n,r=i(this),e=o(t,!0);do if(n=c(r,e))return n.set;while(r=u(r))}})},function(t,n,r){var e=r(8);e(e.P+e.R,"Map",{toJSON:r(267)("Map")})},function(t,n,r){var e=r(75),i=r(268);t.exports=function(t){return function(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,n,r){var e=r(206);t.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},function(t,n,r){var e=r(8);e(e.P+e.R,"Set",{toJSON:r(267)("Set")})},function(t,n,r){var e=r(8);e(e.S,"System",{global:r(4)})},function(t,n,r){var e=r(8),i=r(34);e(e.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,n,r){var e=r(8);e(e.S,"Math",{iaddh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},function(t,n,r){var e=r(8);e(e.S,"Math",{isubh:function(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},function(t,n,r){var e=r(8);e(e.S,"Math",{imulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>16,f=i>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>16)+((o*f>>>0)+(a&r)>>16)}})},function(t,n,r){var e=r(8);e(e.S,"Math",{umulh:function(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>>16,f=i>>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>>16)+((o*f>>>0)+(a&r)>>>16)}})},function(t,n,r){var e=r(277),i=r(12),o=e.key,u=e.set;e.exp({defineMetadata:function(t,n,r,e){u(t,n,i(r),o(e))}})},function(t,n,r){var e=r(211),i=r(8),o=r(23)("metadata"),u=o.store||(o.store=new(r(215))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},f=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},a=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){i(i.S,"Reflect",t)};t.exports={store:u,map:c,has:f,get:a,set:s,keys:l,key:h,exp:v}},function(t,n,r){var e=r(277),i=r(12),o=e.key,u=e.map,c=e.store;e.exp({deleteMetadata:function(t,n){var r=arguments.length<3?void 0:o(arguments[2]),e=u(i(n),r,!1);if(void 0===e||!e["delete"](t))return!1;if(e.size)return!0;var f=c.get(n);return f["delete"](r),!!f.size||c["delete"](n)}})},function(t,n,r){var e=r(277),i=r(12),o=r(59),u=e.has,c=e.get,f=e.key,a=function(t,n,r){var e=u(t,n,r);if(e)return c(t,n,r);var i=o(n);return null!==i?a(t,i,r):void 0};e.exp({getMetadata:function(t,n){return a(t,i(n),arguments.length<3?void 0:f(arguments[2]))}})},function(t,n,r){var e=r(214),i=r(268),o=r(277),u=r(12),c=r(59),f=o.keys,a=o.key,s=function(t,n){var r=f(t,n),o=c(t);if(null===o)return r;var u=s(o,n);return u.length?r.length?i(new e(r.concat(u))):u:r};o.exp({getMetadataKeys:function(t){return s(u(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,n,r){var e=r(277),i=r(12),o=e.get,u=e.key;e.exp({getOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){var e=r(277),i=r(12),o=e.keys,u=e.key;e.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,n,r){var e=r(277),i=r(12),o=r(59),u=e.has,c=e.key,f=function(t,n,r){var e=u(t,n,r);if(e)return!0;var i=o(n);return null!==i&&f(t,i,r)};e.exp({hasMetadata:function(t,n){return f(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},function(t,n,r){var e=r(277),i=r(12),o=e.has,u=e.key;e.exp({hasOwnMetadata:function(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,r){var e=r(277),i=r(12),o=r(21),u=e.key,c=e.set;e.exp({metadata:function(t,n){return function(r,e){c(t,n,(void 0!==e?i:o)(r),u(e))}}})},function(t,n,r){var e=r(8),i=r(209)(),o=r(4).process,u="process"==r(34)(o);e(e.G,{asap:function(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},function(t,n,r){"use strict";var e=r(8),i=r(4),o=r(9),u=r(209)(),c=r(25)("observable"),f=r(21),a=r(12),s=r(205),l=r(210),h=r(10),v=r(206),p=v.RETURN,d=function(t){return null==t?void 0:f(t)},y=function(t){var n=t._c;n&&(t._c=void 0,n())},g=function(t){return void 0===t._o},b=function(t){g(t)||(t._o=void 0,y(t))},x=function(t,n){a(t),this._c=void 0,this._o=t,t=new w(this);try{var r=n(t),e=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){e.unsubscribe()}:f(r),this._c=r)}catch(i){return void t.error(i)}g(this)&&y(this)};x.prototype=l({},{unsubscribe:function(){b(this)}});var w=function(t){this._s=t};w.prototype=l({},{next:function(t){var n=this._s;if(!g(n)){var r=n._o;try{var e=d(r.next);if(e)return e.call(r,t)}catch(i){try{b(n)}finally{throw i}}}},error:function(t){var n=this._s;if(g(n))throw t;var r=n._o;n._o=void 0;try{var e=d(r.error);if(!e)throw t;t=e.call(r,t)}catch(i){try{y(n)}finally{throw i}}return y(n),t},complete:function(t){var n=this._s;if(!g(n)){var r=n._o;n._o=void 0;try{var e=d(r.complete);t=e?e.call(r,t):void 0}catch(i){try{y(n)}finally{throw i}}return y(n),t}}});var m=function(t){s(this,m,"Observable","_f")._f=f(t)};l(m.prototype,{subscribe:function(t){return new x(t,this._f)},forEach:function(t){var n=this;return new(o.Promise||i.Promise)(function(r,e){f(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(r){e(r),i.unsubscribe()}},error:e,complete:r})})}}),l(m,{from:function(t){var n="function"==typeof this?this:m,r=d(a(t)[c]);if(r){var e=a(r.call(t));return e.constructor===n?e:new n(function(t){return e.subscribe(t)})}return new n(function(n){var r=!1;return u(function(){if(!r){try{if(v(t,!1,function(t){if(n.next(t),r)return p})===p)return}catch(e){if(r)throw e;return void n.error(e)}n.complete()}}),function(){r=!0}})},of:function(){for(var t=0,n=arguments.length,r=Array(n);tu;)(r[u]=arguments[u++])===c&&(f=!0);return function(){var e,o=this,u=arguments.length,a=0,s=0;if(!f&&!u)return i(t,r,o);if(e=r.slice(),f)for(;n>a;a++)e[a]===c&&(e[a]=arguments[s++]);for(;u>s;)e.push(arguments[s++]);return i(t,e,o)}}},function(t,n,r){t.exports=r(4)},function(t,n,r){var e=r(8),i=r(208);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(193),i=r(18),o=r(4),u=r(10),c=r(129),f=r(25),a=f("iterator"),s=f("toStringTag"),l=c.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],v=0;v<5;v++){var p,d=h[v],y=o[d],g=y&&y.prototype;if(g){g[a]||u(g,a,l),g[s]||u(g,s,d),c[d]=l;for(p in e)g[p]||i(g,p,e[p],!0)}}},function(t,n,r){(function(n,r){!function(n){"use strict";function e(t,n,r,e){var i=Object.create((n||o).prototype),u=new p(e||[]);return i._invoke=l(t,r,u),i}function i(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(e){return{type:"throw",arg:e}}}function o(){}function u(){}function c(){}function f(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function a(t){this.arg=t}function s(t){function n(r,e,o,u){var c=i(t[r],t,e);if("throw"!==c.type){var f=c.arg,s=f.value;return s instanceof a?Promise.resolve(s.arg).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(s).then(function(t){f.value=t,o(f)},u)}u(c.arg)}function e(t,r){function e(){return new Promise(function(e,i){n(t,r,e,i)})}return o=o?o.then(e,e):e()}"object"==typeof r&&r.domain&&(n=r.domain.bind(n));var o;this._invoke=e}function l(t,n,r){var e=E;return function(o,u){if(e===F)throw new Error("Generator is already running");if(e===P){if("throw"===o)throw u;return y()}for(;;){var c=r.delegate;if(c){if("return"===o||"throw"===o&&c.iterator[o]===g){r.delegate=null;var f=c.iterator["return"];if(f){var a=i(f,c.iterator,u);if("throw"===a.type){o="throw",u=a.arg;continue}}if("return"===o)continue}var a=i(c.iterator[o],c.iterator,u);if("throw"===a.type){r.delegate=null,o="throw",u=a.arg;continue}o="next",u=g;var s=a.arg;if(!s.done)return e=O,s;r[c.resultName]=s.value,r.next=c.nextLoc,r.delegate=null}if("next"===o)r.sent=r._sent=u;else if("throw"===o){if(e===E)throw e=P,u;r.dispatchException(u)&&(o="next",u=g)}else"return"===o&&r.abrupt("return",u);e=F;var a=i(t,n,r);if("normal"===a.type){e=r.done?P:O;var s={value:a.arg,done:r.done};if(a.arg!==M)return s;r.delegate&&"next"===o&&(u=g)}else"throw"===a.type&&(e=P,o="throw",u=a.arg)}}}function h(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function v(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function d(t){if(t){var n=t[w];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function i(){for(;++r=0;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=b.call(i,"catchLoc"),c=b.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&b.call(e,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),v(r),M}},"catch":function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;v(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:d(t),resultName:n,nextLoc:r},M}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(n,function(){return this}(),r(294))},function(t,n){function r(){l&&a&&(l=!1,a.length?s=a.concat(s):h=-1,s.length&&e())}function e(){if(!l){var t=u(r);l=!0;for(var n=s.length;n;){for(a=s,s=[];++h1)for(var r=1;r","lt":"<","quot":"\""} diff --git a/webapp/dist/c0bcb26dadc1d1cecb06ce656ac08591.svg b/webapp/dist/c0bcb26dadc1d1cecb06ce656ac08591.svg new file mode 100644 index 0000000000..fdf03ff477 --- /dev/null +++ b/webapp/dist/c0bcb26dadc1d1cecb06ce656ac08591.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/webapp/dist/d910d99bf12370e4fafecfec9fffe6ed.json b/webapp/dist/d910d99bf12370e4fafecfec9fffe6ed.json new file mode 100644 index 0000000000..44e5d0bb41 --- /dev/null +++ b/webapp/dist/d910d99bf12370e4fafecfec9fffe6ed.json @@ -0,0 +1 @@ +{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376} \ No newline at end of file diff --git a/webapp/dist/d9ee23d59d0e0e727b51368b458a0bff.woff b/webapp/dist/d9ee23d59d0e0e727b51368b458a0bff.woff new file mode 100644 index 0000000000..8b280b98fa Binary files /dev/null and b/webapp/dist/d9ee23d59d0e0e727b51368b458a0bff.woff differ diff --git a/webapp/dist/f538a60960fcdc4a4f5ceb05a8190b1d.json b/webapp/dist/f538a60960fcdc4a4f5ceb05a8190b1d.json new file mode 100644 index 0000000000..7ccfcd8bba --- /dev/null +++ b/webapp/dist/f538a60960fcdc4a4f5ceb05a8190b1d.json @@ -0,0 +1 @@ +{"Aacute":"\u00C1","aacute":"\u00E1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223E","acd":"\u223F","acE":"\u223E\u0333","Acirc":"\u00C2","acirc":"\u00E2","acute":"\u00B4","Acy":"\u0410","acy":"\u0430","AElig":"\u00C6","aelig":"\u00E6","af":"\u2061","Afr":"\uD835\uDD04","afr":"\uD835\uDD1E","Agrave":"\u00C0","agrave":"\u00E0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03B1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2A3F","amp":"&","AMP":"&","andand":"\u2A55","And":"\u2A53","and":"\u2227","andd":"\u2A5C","andslope":"\u2A58","andv":"\u2A5A","ang":"\u2220","ange":"\u29A4","angle":"\u2220","angmsdaa":"\u29A8","angmsdab":"\u29A9","angmsdac":"\u29AA","angmsdad":"\u29AB","angmsdae":"\u29AC","angmsdaf":"\u29AD","angmsdag":"\u29AE","angmsdah":"\u29AF","angmsd":"\u2221","angrt":"\u221F","angrtvb":"\u22BE","angrtvbd":"\u299D","angsph":"\u2222","angst":"\u00C5","angzarr":"\u237C","Aogon":"\u0104","aogon":"\u0105","Aopf":"\uD835\uDD38","aopf":"\uD835\uDD52","apacir":"\u2A6F","ap":"\u2248","apE":"\u2A70","ape":"\u224A","apid":"\u224B","apos":"'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224A","Aring":"\u00C5","aring":"\u00E5","Ascr":"\uD835\uDC9C","ascr":"\uD835\uDCB6","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224D","Atilde":"\u00C3","atilde":"\u00E3","Auml":"\u00C4","auml":"\u00E4","awconint":"\u2233","awint":"\u2A11","backcong":"\u224C","backepsilon":"\u03F6","backprime":"\u2035","backsim":"\u223D","backsimeq":"\u22CD","Backslash":"\u2216","Barv":"\u2AE7","barvee":"\u22BD","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23B5","bbrktbrk":"\u23B6","bcong":"\u224C","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201E","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29B0","bepsi":"\u03F6","bernou":"\u212C","Bernoullis":"\u212C","Beta":"\u0392","beta":"\u03B2","beth":"\u2136","between":"\u226C","Bfr":"\uD835\uDD05","bfr":"\uD835\uDD1F","bigcap":"\u22C2","bigcirc":"\u25EF","bigcup":"\u22C3","bigodot":"\u2A00","bigoplus":"\u2A01","bigotimes":"\u2A02","bigsqcup":"\u2A06","bigstar":"\u2605","bigtriangledown":"\u25BD","bigtriangleup":"\u25B3","biguplus":"\u2A04","bigvee":"\u22C1","bigwedge":"\u22C0","bkarow":"\u290D","blacklozenge":"\u29EB","blacksquare":"\u25AA","blacktriangle":"\u25B4","blacktriangledown":"\u25BE","blacktriangleleft":"\u25C2","blacktriangleright":"\u25B8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20E5","bnequiv":"\u2261\u20E5","bNot":"\u2AED","bnot":"\u2310","Bopf":"\uD835\uDD39","bopf":"\uD835\uDD53","bot":"\u22A5","bottom":"\u22A5","bowtie":"\u22C8","boxbox":"\u29C9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250C","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252C","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229F","boxplus":"\u229E","boxtimes":"\u22A0","boxul":"\u2518","boxuL":"\u255B","boxUl":"\u255C","boxUL":"\u255D","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255A","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253C","boxvH":"\u256A","boxVh":"\u256B","boxVH":"\u256C","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251C","boxvR":"\u255E","boxVr":"\u255F","boxVR":"\u2560","bprime":"\u2035","breve":"\u02D8","Breve":"\u02D8","brvbar":"\u00A6","bscr":"\uD835\uDCB7","Bscr":"\u212C","bsemi":"\u204F","bsim":"\u223D","bsime":"\u22CD","bsolb":"\u29C5","bsol":"\\","bsolhsub":"\u27C8","bull":"\u2022","bullet":"\u2022","bump":"\u224E","bumpE":"\u2AAE","bumpe":"\u224F","Bumpeq":"\u224E","bumpeq":"\u224F","Cacute":"\u0106","cacute":"\u0107","capand":"\u2A44","capbrcup":"\u2A49","capcap":"\u2A4B","cap":"\u2229","Cap":"\u22D2","capcup":"\u2A47","capdot":"\u2A40","CapitalDifferentialD":"\u2145","caps":"\u2229\uFE00","caret":"\u2041","caron":"\u02C7","Cayleys":"\u212D","ccaps":"\u2A4D","Ccaron":"\u010C","ccaron":"\u010D","Ccedil":"\u00C7","ccedil":"\u00E7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2A4C","ccupssm":"\u2A50","Cdot":"\u010A","cdot":"\u010B","cedil":"\u00B8","Cedilla":"\u00B8","cemptyv":"\u29B2","cent":"\u00A2","centerdot":"\u00B7","CenterDot":"\u00B7","cfr":"\uD835\uDD20","Cfr":"\u212D","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03A7","chi":"\u03C7","circ":"\u02C6","circeq":"\u2257","circlearrowleft":"\u21BA","circlearrowright":"\u21BB","circledast":"\u229B","circledcirc":"\u229A","circleddash":"\u229D","CircleDot":"\u2299","circledR":"\u00AE","circledS":"\u24C8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25CB","cirE":"\u29C3","cire":"\u2257","cirfnint":"\u2A10","cirmid":"\u2AEF","cirscir":"\u29C2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201D","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2A74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2A6D","Congruent":"\u2261","conint":"\u222E","Conint":"\u222F","ContourIntegral":"\u222E","copf":"\uD835\uDD54","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\u00A9","COPY":"\u00A9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21B5","cross":"\u2717","Cross":"\u2A2F","Cscr":"\uD835\uDC9E","cscr":"\uD835\uDCB8","csub":"\u2ACF","csube":"\u2AD1","csup":"\u2AD0","csupe":"\u2AD2","ctdot":"\u22EF","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22DE","cuesc":"\u22DF","cularr":"\u21B6","cularrp":"\u293D","cupbrcap":"\u2A48","cupcap":"\u2A46","CupCap":"\u224D","cup":"\u222A","Cup":"\u22D3","cupcup":"\u2A4A","cupdot":"\u228D","cupor":"\u2A45","cups":"\u222A\uFE00","curarr":"\u21B7","curarrm":"\u293C","curlyeqprec":"\u22DE","curlyeqsucc":"\u22DF","curlyvee":"\u22CE","curlywedge":"\u22CF","curren":"\u00A4","curvearrowleft":"\u21B6","curvearrowright":"\u21B7","cuvee":"\u22CE","cuwed":"\u22CF","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232D","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21A1","dArr":"\u21D3","dash":"\u2010","Dashv":"\u2AE4","dashv":"\u22A3","dbkarow":"\u290F","dblac":"\u02DD","Dcaron":"\u010E","dcaron":"\u010F","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21CA","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2A77","deg":"\u00B0","Del":"\u2207","Delta":"\u0394","delta":"\u03B4","demptyv":"\u29B1","dfisht":"\u297F","Dfr":"\uD835\uDD07","dfr":"\uD835\uDD21","dHar":"\u2965","dharl":"\u21C3","dharr":"\u21C2","DiacriticalAcute":"\u00B4","DiacriticalDot":"\u02D9","DiacriticalDoubleAcute":"\u02DD","DiacriticalGrave":"`","DiacriticalTilde":"\u02DC","diam":"\u22C4","diamond":"\u22C4","Diamond":"\u22C4","diamondsuit":"\u2666","diams":"\u2666","die":"\u00A8","DifferentialD":"\u2146","digamma":"\u03DD","disin":"\u22F2","div":"\u00F7","divide":"\u00F7","divideontimes":"\u22C7","divonx":"\u22C7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231E","dlcrop":"\u230D","dollar":"$","Dopf":"\uD835\uDD3B","dopf":"\uD835\uDD55","Dot":"\u00A8","dot":"\u02D9","DotDot":"\u20DC","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22A1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222F","DoubleDot":"\u00A8","DoubleDownArrow":"\u21D3","DoubleLeftArrow":"\u21D0","DoubleLeftRightArrow":"\u21D4","DoubleLeftTee":"\u2AE4","DoubleLongLeftArrow":"\u27F8","DoubleLongLeftRightArrow":"\u27FA","DoubleLongRightArrow":"\u27F9","DoubleRightArrow":"\u21D2","DoubleRightTee":"\u22A8","DoubleUpArrow":"\u21D1","DoubleUpDownArrow":"\u21D5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21D3","DownArrowUpArrow":"\u21F5","DownBreve":"\u0311","downdownarrows":"\u21CA","downharpoonleft":"\u21C3","downharpoonright":"\u21C2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295E","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21BD","DownRightTeeVector":"\u295F","DownRightVectorBar":"\u2957","DownRightVector":"\u21C1","DownTeeArrow":"\u21A7","DownTee":"\u22A4","drbkarow":"\u2910","drcorn":"\u231F","drcrop":"\u230C","Dscr":"\uD835\uDC9F","dscr":"\uD835\uDCB9","DScy":"\u0405","dscy":"\u0455","dsol":"\u29F6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22F1","dtri":"\u25BF","dtrif":"\u25BE","duarr":"\u21F5","duhar":"\u296F","dwangle":"\u29A6","DZcy":"\u040F","dzcy":"\u045F","dzigrarr":"\u27FF","Eacute":"\u00C9","eacute":"\u00E9","easter":"\u2A6E","Ecaron":"\u011A","ecaron":"\u011B","Ecirc":"\u00CA","ecirc":"\u00EA","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042D","ecy":"\u044D","eDDot":"\u2A77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\uD835\uDD08","efr":"\uD835\uDD22","eg":"\u2A9A","Egrave":"\u00C8","egrave":"\u00E8","egs":"\u2A96","egsdot":"\u2A98","el":"\u2A99","Element":"\u2208","elinters":"\u23E7","ell":"\u2113","els":"\u2A95","elsdot":"\u2A97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25FB","emptyv":"\u2205","EmptyVerySmallSquare":"\u25AB","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014A","eng":"\u014B","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\uD835\uDD3C","eopf":"\uD835\uDD56","epar":"\u22D5","eparsl":"\u29E3","eplus":"\u2A71","epsi":"\u03B5","Epsilon":"\u0395","epsilon":"\u03B5","epsiv":"\u03F5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2A96","eqslantless":"\u2A95","Equal":"\u2A75","equals":"=","EqualTilde":"\u2242","equest":"\u225F","Equilibrium":"\u21CC","equiv":"\u2261","equivDD":"\u2A78","eqvparsl":"\u29E5","erarr":"\u2971","erDot":"\u2253","escr":"\u212F","Escr":"\u2130","esdot":"\u2250","Esim":"\u2A73","esim":"\u2242","Eta":"\u0397","eta":"\u03B7","ETH":"\u00D0","eth":"\u00F0","Euml":"\u00CB","euml":"\u00EB","euro":"\u20AC","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\uFB03","fflig":"\uFB00","ffllig":"\uFB04","Ffr":"\uD835\uDD09","ffr":"\uD835\uDD23","filig":"\uFB01","FilledSmallSquare":"\u25FC","FilledVerySmallSquare":"\u25AA","fjlig":"fj","flat":"\u266D","fllig":"\uFB02","fltns":"\u25B1","fnof":"\u0192","Fopf":"\uD835\uDD3D","fopf":"\uD835\uDD57","forall":"\u2200","ForAll":"\u2200","fork":"\u22D4","forkv":"\u2AD9","Fouriertrf":"\u2131","fpartint":"\u2A0D","frac12":"\u00BD","frac13":"\u2153","frac14":"\u00BC","frac15":"\u2155","frac16":"\u2159","frac18":"\u215B","frac23":"\u2154","frac25":"\u2156","frac34":"\u00BE","frac35":"\u2157","frac38":"\u215C","frac45":"\u2158","frac56":"\u215A","frac58":"\u215D","frac78":"\u215E","frasl":"\u2044","frown":"\u2322","fscr":"\uD835\uDCBB","Fscr":"\u2131","gacute":"\u01F5","Gamma":"\u0393","gamma":"\u03B3","Gammad":"\u03DC","gammad":"\u03DD","gap":"\u2A86","Gbreve":"\u011E","gbreve":"\u011F","Gcedil":"\u0122","Gcirc":"\u011C","gcirc":"\u011D","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2A8C","gel":"\u22DB","geq":"\u2265","geqq":"\u2267","geqslant":"\u2A7E","gescc":"\u2AA9","ges":"\u2A7E","gesdot":"\u2A80","gesdoto":"\u2A82","gesdotol":"\u2A84","gesl":"\u22DB\uFE00","gesles":"\u2A94","Gfr":"\uD835\uDD0A","gfr":"\uD835\uDD24","gg":"\u226B","Gg":"\u22D9","ggg":"\u22D9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2AA5","gl":"\u2277","glE":"\u2A92","glj":"\u2AA4","gnap":"\u2A8A","gnapprox":"\u2A8A","gne":"\u2A88","gnE":"\u2269","gneq":"\u2A88","gneqq":"\u2269","gnsim":"\u22E7","Gopf":"\uD835\uDD3E","gopf":"\uD835\uDD58","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22DB","GreaterFullEqual":"\u2267","GreaterGreater":"\u2AA2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2A7E","GreaterTilde":"\u2273","Gscr":"\uD835\uDCA2","gscr":"\u210A","gsim":"\u2273","gsime":"\u2A8E","gsiml":"\u2A90","gtcc":"\u2AA7","gtcir":"\u2A7A","gt":">","GT":">","Gt":"\u226B","gtdot":"\u22D7","gtlPar":"\u2995","gtquest":"\u2A7C","gtrapprox":"\u2A86","gtrarr":"\u2978","gtrdot":"\u22D7","gtreqless":"\u22DB","gtreqqless":"\u2A8C","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\uFE00","gvnE":"\u2269\uFE00","Hacek":"\u02C7","hairsp":"\u200A","half":"\u00BD","hamilt":"\u210B","HARDcy":"\u042A","hardcy":"\u044A","harrcir":"\u2948","harr":"\u2194","hArr":"\u21D4","harrw":"\u21AD","Hat":"^","hbar":"\u210F","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22B9","hfr":"\uD835\uDD25","Hfr":"\u210C","HilbertSpace":"\u210B","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21FF","homtht":"\u223B","hookleftarrow":"\u21A9","hookrightarrow":"\u21AA","hopf":"\uD835\uDD59","Hopf":"\u210D","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\uD835\uDCBD","Hscr":"\u210B","hslash":"\u210F","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224E","HumpEqual":"\u224F","hybull":"\u2043","hyphen":"\u2010","Iacute":"\u00CD","iacute":"\u00ED","ic":"\u2063","Icirc":"\u00CE","icirc":"\u00EE","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\u00A1","iff":"\u21D4","ifr":"\uD835\uDD26","Ifr":"\u2111","Igrave":"\u00CC","igrave":"\u00EC","ii":"\u2148","iiiint":"\u2A0C","iiint":"\u222D","iinfin":"\u29DC","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012A","imacr":"\u012B","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22B7","imped":"\u01B5","Implies":"\u21D2","incare":"\u2105","in":"\u2208","infin":"\u221E","infintie":"\u29DD","inodot":"\u0131","intcal":"\u22BA","int":"\u222B","Int":"\u222C","integers":"\u2124","Integral":"\u222B","intercal":"\u22BA","Intersection":"\u22C2","intlarhk":"\u2A17","intprod":"\u2A3C","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012E","iogon":"\u012F","Iopf":"\uD835\uDD40","iopf":"\uD835\uDD5A","Iota":"\u0399","iota":"\u03B9","iprod":"\u2A3C","iquest":"\u00BF","iscr":"\uD835\uDCBE","Iscr":"\u2110","isin":"\u2208","isindot":"\u22F5","isinE":"\u22F9","isins":"\u22F4","isinsv":"\u22F3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\u00CF","iuml":"\u00EF","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\uD835\uDD0D","jfr":"\uD835\uDD27","jmath":"\u0237","Jopf":"\uD835\uDD41","jopf":"\uD835\uDD5B","Jscr":"\uD835\uDCA5","jscr":"\uD835\uDCBF","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039A","kappa":"\u03BA","kappav":"\u03F0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041A","kcy":"\u043A","Kfr":"\uD835\uDD0E","kfr":"\uD835\uDD28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040C","kjcy":"\u045C","Kopf":"\uD835\uDD42","kopf":"\uD835\uDD5C","Kscr":"\uD835\uDCA6","kscr":"\uD835\uDCC0","lAarr":"\u21DA","Lacute":"\u0139","lacute":"\u013A","laemptyv":"\u29B4","lagran":"\u2112","Lambda":"\u039B","lambda":"\u03BB","lang":"\u27E8","Lang":"\u27EA","langd":"\u2991","langle":"\u27E8","lap":"\u2A85","Laplacetrf":"\u2112","laquo":"\u00AB","larrb":"\u21E4","larrbfs":"\u291F","larr":"\u2190","Larr":"\u219E","lArr":"\u21D0","larrfs":"\u291D","larrhk":"\u21A9","larrlp":"\u21AB","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21A2","latail":"\u2919","lAtail":"\u291B","lat":"\u2AAB","late":"\u2AAD","lates":"\u2AAD\uFE00","lbarr":"\u290C","lBarr":"\u290E","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298B","lbrksld":"\u298F","lbrkslu":"\u298D","Lcaron":"\u013D","lcaron":"\u013E","Lcedil":"\u013B","lcedil":"\u013C","lceil":"\u2308","lcub":"{","Lcy":"\u041B","lcy":"\u043B","ldca":"\u2936","ldquo":"\u201C","ldquor":"\u201E","ldrdhar":"\u2967","ldrushar":"\u294B","ldsh":"\u21B2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27E8","LeftArrowBar":"\u21E4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21D0","LeftArrowRightArrow":"\u21C6","leftarrowtail":"\u21A2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27E6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21C3","LeftFloor":"\u230A","leftharpoondown":"\u21BD","leftharpoonup":"\u21BC","leftleftarrows":"\u21C7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21D4","leftrightarrows":"\u21C6","leftrightharpoons":"\u21CB","leftrightsquigarrow":"\u21AD","LeftRightVector":"\u294E","LeftTeeArrow":"\u21A4","LeftTee":"\u22A3","LeftTeeVector":"\u295A","leftthreetimes":"\u22CB","LeftTriangleBar":"\u29CF","LeftTriangle":"\u22B2","LeftTriangleEqual":"\u22B4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21BF","LeftVectorBar":"\u2952","LeftVector":"\u21BC","lEg":"\u2A8B","leg":"\u22DA","leq":"\u2264","leqq":"\u2266","leqslant":"\u2A7D","lescc":"\u2AA8","les":"\u2A7D","lesdot":"\u2A7F","lesdoto":"\u2A81","lesdotor":"\u2A83","lesg":"\u22DA\uFE00","lesges":"\u2A93","lessapprox":"\u2A85","lessdot":"\u22D6","lesseqgtr":"\u22DA","lesseqqgtr":"\u2A8B","LessEqualGreater":"\u22DA","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2AA1","lesssim":"\u2272","LessSlantEqual":"\u2A7D","LessTilde":"\u2272","lfisht":"\u297C","lfloor":"\u230A","Lfr":"\uD835\uDD0F","lfr":"\uD835\uDD29","lg":"\u2276","lgE":"\u2A91","lHar":"\u2962","lhard":"\u21BD","lharu":"\u21BC","lharul":"\u296A","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21C7","ll":"\u226A","Ll":"\u22D8","llcorner":"\u231E","Lleftarrow":"\u21DA","llhard":"\u296B","lltri":"\u25FA","Lmidot":"\u013F","lmidot":"\u0140","lmoustache":"\u23B0","lmoust":"\u23B0","lnap":"\u2A89","lnapprox":"\u2A89","lne":"\u2A87","lnE":"\u2268","lneq":"\u2A87","lneqq":"\u2268","lnsim":"\u22E6","loang":"\u27EC","loarr":"\u21FD","lobrk":"\u27E6","longleftarrow":"\u27F5","LongLeftArrow":"\u27F5","Longleftarrow":"\u27F8","longleftrightarrow":"\u27F7","LongLeftRightArrow":"\u27F7","Longleftrightarrow":"\u27FA","longmapsto":"\u27FC","longrightarrow":"\u27F6","LongRightArrow":"\u27F6","Longrightarrow":"\u27F9","looparrowleft":"\u21AB","looparrowright":"\u21AC","lopar":"\u2985","Lopf":"\uD835\uDD43","lopf":"\uD835\uDD5D","loplus":"\u2A2D","lotimes":"\u2A34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25CA","lozenge":"\u25CA","lozf":"\u29EB","lpar":"(","lparlt":"\u2993","lrarr":"\u21C6","lrcorner":"\u231F","lrhar":"\u21CB","lrhard":"\u296D","lrm":"\u200E","lrtri":"\u22BF","lsaquo":"\u2039","lscr":"\uD835\uDCC1","Lscr":"\u2112","lsh":"\u21B0","Lsh":"\u21B0","lsim":"\u2272","lsime":"\u2A8D","lsimg":"\u2A8F","lsqb":"[","lsquo":"\u2018","lsquor":"\u201A","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2AA6","ltcir":"\u2A79","lt":"<","LT":"<","Lt":"\u226A","ltdot":"\u22D6","lthree":"\u22CB","ltimes":"\u22C9","ltlarr":"\u2976","ltquest":"\u2A7B","ltri":"\u25C3","ltrie":"\u22B4","ltrif":"\u25C2","ltrPar":"\u2996","lurdshar":"\u294A","luruhar":"\u2966","lvertneqq":"\u2268\uFE00","lvnE":"\u2268\uFE00","macr":"\u00AF","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21A6","mapsto":"\u21A6","mapstodown":"\u21A7","mapstoleft":"\u21A4","mapstoup":"\u21A5","marker":"\u25AE","mcomma":"\u2A29","Mcy":"\u041C","mcy":"\u043C","mdash":"\u2014","mDDot":"\u223A","measuredangle":"\u2221","MediumSpace":"\u205F","Mellintrf":"\u2133","Mfr":"\uD835\uDD10","mfr":"\uD835\uDD2A","mho":"\u2127","micro":"\u00B5","midast":"*","midcir":"\u2AF0","mid":"\u2223","middot":"\u00B7","minusb":"\u229F","minus":"\u2212","minusd":"\u2238","minusdu":"\u2A2A","MinusPlus":"\u2213","mlcp":"\u2ADB","mldr":"\u2026","mnplus":"\u2213","models":"\u22A7","Mopf":"\uD835\uDD44","mopf":"\uD835\uDD5E","mp":"\u2213","mscr":"\uD835\uDCC2","Mscr":"\u2133","mstpos":"\u223E","Mu":"\u039C","mu":"\u03BC","multimap":"\u22B8","mumap":"\u22B8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20D2","nap":"\u2249","napE":"\u2A70\u0338","napid":"\u224B\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266E","naturals":"\u2115","natur":"\u266E","nbsp":"\u00A0","nbump":"\u224E\u0338","nbumpe":"\u224F\u0338","ncap":"\u2A43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2A6D\u0338","ncup":"\u2A42","Ncy":"\u041D","ncy":"\u043D","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21D7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200B","NegativeThickSpace":"\u200B","NegativeThinSpace":"\u200B","NegativeVeryThinSpace":"\u200B","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226B","NestedLessLess":"\u226A","NewLine":"\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\uD835\uDD11","nfr":"\uD835\uDD2B","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2A7E\u0338","nges":"\u2A7E\u0338","nGg":"\u22D9\u0338","ngsim":"\u2275","nGt":"\u226B\u20D2","ngt":"\u226F","ngtr":"\u226F","nGtv":"\u226B\u0338","nharr":"\u21AE","nhArr":"\u21CE","nhpar":"\u2AF2","ni":"\u220B","nis":"\u22FC","nisd":"\u22FA","niv":"\u220B","NJcy":"\u040A","njcy":"\u045A","nlarr":"\u219A","nlArr":"\u21CD","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219A","nLeftarrow":"\u21CD","nleftrightarrow":"\u21AE","nLeftrightarrow":"\u21CE","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2A7D\u0338","nles":"\u2A7D\u0338","nless":"\u226E","nLl":"\u22D8\u0338","nlsim":"\u2274","nLt":"\u226A\u20D2","nlt":"\u226E","nltri":"\u22EA","nltrie":"\u22EC","nLtv":"\u226A\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\u00A0","nopf":"\uD835\uDD5F","Nopf":"\u2115","Not":"\u2AEC","not":"\u00AC","NotCongruent":"\u2262","NotCupCap":"\u226D","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226F","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226B\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2A7E\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224E\u0338","NotHumpEqual":"\u224F\u0338","notin":"\u2209","notindot":"\u22F5\u0338","notinE":"\u22F9\u0338","notinva":"\u2209","notinvb":"\u22F7","notinvc":"\u22F6","NotLeftTriangleBar":"\u29CF\u0338","NotLeftTriangle":"\u22EA","NotLeftTriangleEqual":"\u22EC","NotLess":"\u226E","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226A\u0338","NotLessSlantEqual":"\u2A7D\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2AA2\u0338","NotNestedLessLess":"\u2AA1\u0338","notni":"\u220C","notniva":"\u220C","notnivb":"\u22FE","notnivc":"\u22FD","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2AAF\u0338","NotPrecedesSlantEqual":"\u22E0","NotReverseElement":"\u220C","NotRightTriangleBar":"\u29D0\u0338","NotRightTriangle":"\u22EB","NotRightTriangleEqual":"\u22ED","NotSquareSubset":"\u228F\u0338","NotSquareSubsetEqual":"\u22E2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22E3","NotSubset":"\u2282\u20D2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2AB0\u0338","NotSucceedsSlantEqual":"\u22E1","NotSucceedsTilde":"\u227F\u0338","NotSuperset":"\u2283\u20D2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2AFD\u20E5","npart":"\u2202\u0338","npolint":"\u2A14","npr":"\u2280","nprcue":"\u22E0","nprec":"\u2280","npreceq":"\u2AAF\u0338","npre":"\u2AAF\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219B","nrArr":"\u21CF","nrarrw":"\u219D\u0338","nrightarrow":"\u219B","nRightarrow":"\u21CF","nrtri":"\u22EB","nrtrie":"\u22ED","nsc":"\u2281","nsccue":"\u22E1","nsce":"\u2AB0\u0338","Nscr":"\uD835\uDCA9","nscr":"\uD835\uDCC3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22E2","nsqsupe":"\u22E3","nsub":"\u2284","nsubE":"\u2AC5\u0338","nsube":"\u2288","nsubset":"\u2282\u20D2","nsubseteq":"\u2288","nsubseteqq":"\u2AC5\u0338","nsucc":"\u2281","nsucceq":"\u2AB0\u0338","nsup":"\u2285","nsupE":"\u2AC6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20D2","nsupseteq":"\u2289","nsupseteqq":"\u2AC6\u0338","ntgl":"\u2279","Ntilde":"\u00D1","ntilde":"\u00F1","ntlg":"\u2278","ntriangleleft":"\u22EA","ntrianglelefteq":"\u22EC","ntriangleright":"\u22EB","ntrianglerighteq":"\u22ED","Nu":"\u039D","nu":"\u03BD","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224D\u20D2","nvdash":"\u22AC","nvDash":"\u22AD","nVdash":"\u22AE","nVDash":"\u22AF","nvge":"\u2265\u20D2","nvgt":">\u20D2","nvHarr":"\u2904","nvinfin":"\u29DE","nvlArr":"\u2902","nvle":"\u2264\u20D2","nvlt":"<\u20D2","nvltrie":"\u22B4\u20D2","nvrArr":"\u2903","nvrtrie":"\u22B5\u20D2","nvsim":"\u223C\u20D2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21D6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\u00D3","oacute":"\u00F3","oast":"\u229B","Ocirc":"\u00D4","ocirc":"\u00F4","ocir":"\u229A","Ocy":"\u041E","ocy":"\u043E","odash":"\u229D","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2A38","odot":"\u2299","odsold":"\u29BC","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29BF","Ofr":"\uD835\uDD12","ofr":"\uD835\uDD2C","ogon":"\u02DB","Ograve":"\u00D2","ograve":"\u00F2","ogt":"\u29C1","ohbar":"\u29B5","ohm":"\u03A9","oint":"\u222E","olarr":"\u21BA","olcir":"\u29BE","olcross":"\u29BB","oline":"\u203E","olt":"\u29C0","Omacr":"\u014C","omacr":"\u014D","Omega":"\u03A9","omega":"\u03C9","Omicron":"\u039F","omicron":"\u03BF","omid":"\u29B6","ominus":"\u2296","Oopf":"\uD835\uDD46","oopf":"\uD835\uDD60","opar":"\u29B7","OpenCurlyDoubleQuote":"\u201C","OpenCurlyQuote":"\u2018","operp":"\u29B9","oplus":"\u2295","orarr":"\u21BB","Or":"\u2A54","or":"\u2228","ord":"\u2A5D","order":"\u2134","orderof":"\u2134","ordf":"\u00AA","ordm":"\u00BA","origof":"\u22B6","oror":"\u2A56","orslope":"\u2A57","orv":"\u2A5B","oS":"\u24C8","Oscr":"\uD835\uDCAA","oscr":"\u2134","Oslash":"\u00D8","oslash":"\u00F8","osol":"\u2298","Otilde":"\u00D5","otilde":"\u00F5","otimesas":"\u2A36","Otimes":"\u2A37","otimes":"\u2297","Ouml":"\u00D6","ouml":"\u00F6","ovbar":"\u233D","OverBar":"\u203E","OverBrace":"\u23DE","OverBracket":"\u23B4","OverParenthesis":"\u23DC","para":"\u00B6","parallel":"\u2225","par":"\u2225","parsim":"\u2AF3","parsl":"\u2AFD","part":"\u2202","PartialD":"\u2202","Pcy":"\u041F","pcy":"\u043F","percnt":"%","period":".","permil":"\u2030","perp":"\u22A5","pertenk":"\u2031","Pfr":"\uD835\uDD13","pfr":"\uD835\uDD2D","Phi":"\u03A6","phi":"\u03C6","phiv":"\u03D5","phmmat":"\u2133","phone":"\u260E","Pi":"\u03A0","pi":"\u03C0","pitchfork":"\u22D4","piv":"\u03D6","planck":"\u210F","planckh":"\u210E","plankv":"\u210F","plusacir":"\u2A23","plusb":"\u229E","pluscir":"\u2A22","plus":"+","plusdo":"\u2214","plusdu":"\u2A25","pluse":"\u2A72","PlusMinus":"\u00B1","plusmn":"\u00B1","plussim":"\u2A26","plustwo":"\u2A27","pm":"\u00B1","Poincareplane":"\u210C","pointint":"\u2A15","popf":"\uD835\uDD61","Popf":"\u2119","pound":"\u00A3","prap":"\u2AB7","Pr":"\u2ABB","pr":"\u227A","prcue":"\u227C","precapprox":"\u2AB7","prec":"\u227A","preccurlyeq":"\u227C","Precedes":"\u227A","PrecedesEqual":"\u2AAF","PrecedesSlantEqual":"\u227C","PrecedesTilde":"\u227E","preceq":"\u2AAF","precnapprox":"\u2AB9","precneqq":"\u2AB5","precnsim":"\u22E8","pre":"\u2AAF","prE":"\u2AB3","precsim":"\u227E","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2AB9","prnE":"\u2AB5","prnsim":"\u22E8","prod":"\u220F","Product":"\u220F","profalar":"\u232E","profline":"\u2312","profsurf":"\u2313","prop":"\u221D","Proportional":"\u221D","Proportion":"\u2237","propto":"\u221D","prsim":"\u227E","prurel":"\u22B0","Pscr":"\uD835\uDCAB","pscr":"\uD835\uDCC5","Psi":"\u03A8","psi":"\u03C8","puncsp":"\u2008","Qfr":"\uD835\uDD14","qfr":"\uD835\uDD2E","qint":"\u2A0C","qopf":"\uD835\uDD62","Qopf":"\u211A","qprime":"\u2057","Qscr":"\uD835\uDCAC","qscr":"\uD835\uDCC6","quaternions":"\u210D","quatint":"\u2A16","quest":"?","questeq":"\u225F","quot":"\"","QUOT":"\"","rAarr":"\u21DB","race":"\u223D\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221A","raemptyv":"\u29B3","rang":"\u27E9","Rang":"\u27EB","rangd":"\u2992","range":"\u29A5","rangle":"\u27E9","raquo":"\u00BB","rarrap":"\u2975","rarrb":"\u21E5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21A0","rArr":"\u21D2","rarrfs":"\u291E","rarrhk":"\u21AA","rarrlp":"\u21AC","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21A3","rarrw":"\u219D","ratail":"\u291A","rAtail":"\u291C","ratio":"\u2236","rationals":"\u211A","rbarr":"\u290D","rBarr":"\u290F","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298C","rbrksld":"\u298E","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201D","rdquor":"\u201D","rdsh":"\u21B3","real":"\u211C","realine":"\u211B","realpart":"\u211C","reals":"\u211D","Re":"\u211C","rect":"\u25AD","reg":"\u00AE","REG":"\u00AE","ReverseElement":"\u220B","ReverseEquilibrium":"\u21CB","ReverseUpEquilibrium":"\u296F","rfisht":"\u297D","rfloor":"\u230B","rfr":"\uD835\uDD2F","Rfr":"\u211C","rHar":"\u2964","rhard":"\u21C1","rharu":"\u21C0","rharul":"\u296C","Rho":"\u03A1","rho":"\u03C1","rhov":"\u03F1","RightAngleBracket":"\u27E9","RightArrowBar":"\u21E5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21D2","RightArrowLeftArrow":"\u21C4","rightarrowtail":"\u21A3","RightCeiling":"\u2309","RightDoubleBracket":"\u27E7","RightDownTeeVector":"\u295D","RightDownVectorBar":"\u2955","RightDownVector":"\u21C2","RightFloor":"\u230B","rightharpoondown":"\u21C1","rightharpoonup":"\u21C0","rightleftarrows":"\u21C4","rightleftharpoons":"\u21CC","rightrightarrows":"\u21C9","rightsquigarrow":"\u219D","RightTeeArrow":"\u21A6","RightTee":"\u22A2","RightTeeVector":"\u295B","rightthreetimes":"\u22CC","RightTriangleBar":"\u29D0","RightTriangle":"\u22B3","RightTriangleEqual":"\u22B5","RightUpDownVector":"\u294F","RightUpTeeVector":"\u295C","RightUpVectorBar":"\u2954","RightUpVector":"\u21BE","RightVectorBar":"\u2953","RightVector":"\u21C0","ring":"\u02DA","risingdotseq":"\u2253","rlarr":"\u21C4","rlhar":"\u21CC","rlm":"\u200F","rmoustache":"\u23B1","rmoust":"\u23B1","rnmid":"\u2AEE","roang":"\u27ED","roarr":"\u21FE","robrk":"\u27E7","ropar":"\u2986","ropf":"\uD835\uDD63","Ropf":"\u211D","roplus":"\u2A2E","rotimes":"\u2A35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2A12","rrarr":"\u21C9","Rrightarrow":"\u21DB","rsaquo":"\u203A","rscr":"\uD835\uDCC7","Rscr":"\u211B","rsh":"\u21B1","Rsh":"\u21B1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22CC","rtimes":"\u22CA","rtri":"\u25B9","rtrie":"\u22B5","rtrif":"\u25B8","rtriltri":"\u29CE","RuleDelayed":"\u29F4","ruluhar":"\u2968","rx":"\u211E","Sacute":"\u015A","sacute":"\u015B","sbquo":"\u201A","scap":"\u2AB8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2ABC","sc":"\u227B","sccue":"\u227D","sce":"\u2AB0","scE":"\u2AB4","Scedil":"\u015E","scedil":"\u015F","Scirc":"\u015C","scirc":"\u015D","scnap":"\u2ABA","scnE":"\u2AB6","scnsim":"\u22E9","scpolint":"\u2A13","scsim":"\u227F","Scy":"\u0421","scy":"\u0441","sdotb":"\u22A1","sdot":"\u22C5","sdote":"\u2A66","searhk":"\u2925","searr":"\u2198","seArr":"\u21D8","searrow":"\u2198","sect":"\u00A7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\uD835\uDD16","sfr":"\uD835\uDD30","sfrown":"\u2322","sharp":"\u266F","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\u00AD","Sigma":"\u03A3","sigma":"\u03C3","sigmaf":"\u03C2","sigmav":"\u03C2","sim":"\u223C","simdot":"\u2A6A","sime":"\u2243","simeq":"\u2243","simg":"\u2A9E","simgE":"\u2AA0","siml":"\u2A9D","simlE":"\u2A9F","simne":"\u2246","simplus":"\u2A24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2A33","smeparsl":"\u29E4","smid":"\u2223","smile":"\u2323","smt":"\u2AAA","smte":"\u2AAC","smtes":"\u2AAC\uFE00","SOFTcy":"\u042C","softcy":"\u044C","solbar":"\u233F","solb":"\u29C4","sol":"/","Sopf":"\uD835\uDD4A","sopf":"\uD835\uDD64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\uFE00","sqcup":"\u2294","sqcups":"\u2294\uFE00","Sqrt":"\u221A","sqsub":"\u228F","sqsube":"\u2291","sqsubset":"\u228F","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25A1","Square":"\u25A1","SquareIntersection":"\u2293","SquareSubset":"\u228F","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25AA","squ":"\u25A1","squf":"\u25AA","srarr":"\u2192","Sscr":"\uD835\uDCAE","sscr":"\uD835\uDCC8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22C6","Star":"\u22C6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03F5","straightphi":"\u03D5","strns":"\u00AF","sub":"\u2282","Sub":"\u22D0","subdot":"\u2ABD","subE":"\u2AC5","sube":"\u2286","subedot":"\u2AC3","submult":"\u2AC1","subnE":"\u2ACB","subne":"\u228A","subplus":"\u2ABF","subrarr":"\u2979","subset":"\u2282","Subset":"\u22D0","subseteq":"\u2286","subseteqq":"\u2AC5","SubsetEqual":"\u2286","subsetneq":"\u228A","subsetneqq":"\u2ACB","subsim":"\u2AC7","subsub":"\u2AD5","subsup":"\u2AD3","succapprox":"\u2AB8","succ":"\u227B","succcurlyeq":"\u227D","Succeeds":"\u227B","SucceedsEqual":"\u2AB0","SucceedsSlantEqual":"\u227D","SucceedsTilde":"\u227F","succeq":"\u2AB0","succnapprox":"\u2ABA","succneqq":"\u2AB6","succnsim":"\u22E9","succsim":"\u227F","SuchThat":"\u220B","sum":"\u2211","Sum":"\u2211","sung":"\u266A","sup1":"\u00B9","sup2":"\u00B2","sup3":"\u00B3","sup":"\u2283","Sup":"\u22D1","supdot":"\u2ABE","supdsub":"\u2AD8","supE":"\u2AC6","supe":"\u2287","supedot":"\u2AC4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27C9","suphsub":"\u2AD7","suplarr":"\u297B","supmult":"\u2AC2","supnE":"\u2ACC","supne":"\u228B","supplus":"\u2AC0","supset":"\u2283","Supset":"\u22D1","supseteq":"\u2287","supseteqq":"\u2AC6","supsetneq":"\u228B","supsetneqq":"\u2ACC","supsim":"\u2AC8","supsub":"\u2AD4","supsup":"\u2AD6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21D9","swarrow":"\u2199","swnwar":"\u292A","szlig":"\u00DF","Tab":"\t","target":"\u2316","Tau":"\u03A4","tau":"\u03C4","tbrk":"\u23B4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20DB","telrec":"\u2315","Tfr":"\uD835\uDD17","tfr":"\uD835\uDD31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03B8","thetasym":"\u03D1","thetav":"\u03D1","thickapprox":"\u2248","thicksim":"\u223C","ThickSpace":"\u205F\u200A","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223C","THORN":"\u00DE","thorn":"\u00FE","tilde":"\u02DC","Tilde":"\u223C","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2A31","timesb":"\u22A0","times":"\u00D7","timesd":"\u2A30","tint":"\u222D","toea":"\u2928","topbot":"\u2336","topcir":"\u2AF1","top":"\u22A4","Topf":"\uD835\uDD4B","topf":"\uD835\uDD65","topfork":"\u2ADA","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25B5","triangledown":"\u25BF","triangleleft":"\u25C3","trianglelefteq":"\u22B4","triangleq":"\u225C","triangleright":"\u25B9","trianglerighteq":"\u22B5","tridot":"\u25EC","trie":"\u225C","triminus":"\u2A3A","TripleDot":"\u20DB","triplus":"\u2A39","trisb":"\u29CD","tritime":"\u2A3B","trpezium":"\u23E2","Tscr":"\uD835\uDCAF","tscr":"\uD835\uDCC9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040B","tshcy":"\u045B","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226C","twoheadleftarrow":"\u219E","twoheadrightarrow":"\u21A0","Uacute":"\u00DA","uacute":"\u00FA","uarr":"\u2191","Uarr":"\u219F","uArr":"\u21D1","Uarrocir":"\u2949","Ubrcy":"\u040E","ubrcy":"\u045E","Ubreve":"\u016C","ubreve":"\u016D","Ucirc":"\u00DB","ucirc":"\u00FB","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21C5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296E","ufisht":"\u297E","Ufr":"\uD835\uDD18","ufr":"\uD835\uDD32","Ugrave":"\u00D9","ugrave":"\u00F9","uHar":"\u2963","uharl":"\u21BF","uharr":"\u21BE","uhblk":"\u2580","ulcorn":"\u231C","ulcorner":"\u231C","ulcrop":"\u230F","ultri":"\u25F8","Umacr":"\u016A","umacr":"\u016B","uml":"\u00A8","UnderBar":"_","UnderBrace":"\u23DF","UnderBracket":"\u23B5","UnderParenthesis":"\u23DD","Union":"\u22C3","UnionPlus":"\u228E","Uogon":"\u0172","uogon":"\u0173","Uopf":"\uD835\uDD4C","uopf":"\uD835\uDD66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21D1","UpArrowDownArrow":"\u21C5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21D5","UpEquilibrium":"\u296E","upharpoonleft":"\u21BF","upharpoonright":"\u21BE","uplus":"\u228E","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03C5","Upsi":"\u03D2","upsih":"\u03D2","Upsilon":"\u03A5","upsilon":"\u03C5","UpTeeArrow":"\u21A5","UpTee":"\u22A5","upuparrows":"\u21C8","urcorn":"\u231D","urcorner":"\u231D","urcrop":"\u230E","Uring":"\u016E","uring":"\u016F","urtri":"\u25F9","Uscr":"\uD835\uDCB0","uscr":"\uD835\uDCCA","utdot":"\u22F0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25B5","utrif":"\u25B4","uuarr":"\u21C8","Uuml":"\u00DC","uuml":"\u00FC","uwangle":"\u29A7","vangrt":"\u299C","varepsilon":"\u03F5","varkappa":"\u03F0","varnothing":"\u2205","varphi":"\u03D5","varpi":"\u03D6","varpropto":"\u221D","varr":"\u2195","vArr":"\u21D5","varrho":"\u03F1","varsigma":"\u03C2","varsubsetneq":"\u228A\uFE00","varsubsetneqq":"\u2ACB\uFE00","varsupsetneq":"\u228B\uFE00","varsupsetneqq":"\u2ACC\uFE00","vartheta":"\u03D1","vartriangleleft":"\u22B2","vartriangleright":"\u22B3","vBar":"\u2AE8","Vbar":"\u2AEB","vBarv":"\u2AE9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22A2","vDash":"\u22A8","Vdash":"\u22A9","VDash":"\u22AB","Vdashl":"\u2AE6","veebar":"\u22BB","vee":"\u2228","Vee":"\u22C1","veeeq":"\u225A","vellip":"\u22EE","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200A","Vfr":"\uD835\uDD19","vfr":"\uD835\uDD33","vltri":"\u22B2","vnsub":"\u2282\u20D2","vnsup":"\u2283\u20D2","Vopf":"\uD835\uDD4D","vopf":"\uD835\uDD67","vprop":"\u221D","vrtri":"\u22B3","Vscr":"\uD835\uDCB1","vscr":"\uD835\uDCCB","vsubnE":"\u2ACB\uFE00","vsubne":"\u228A\uFE00","vsupnE":"\u2ACC\uFE00","vsupne":"\u228B\uFE00","Vvdash":"\u22AA","vzigzag":"\u299A","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2A5F","wedge":"\u2227","Wedge":"\u22C0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\uD835\uDD1A","wfr":"\uD835\uDD34","Wopf":"\uD835\uDD4E","wopf":"\uD835\uDD68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\uD835\uDCB2","wscr":"\uD835\uDCCC","xcap":"\u22C2","xcirc":"\u25EF","xcup":"\u22C3","xdtri":"\u25BD","Xfr":"\uD835\uDD1B","xfr":"\uD835\uDD35","xharr":"\u27F7","xhArr":"\u27FA","Xi":"\u039E","xi":"\u03BE","xlarr":"\u27F5","xlArr":"\u27F8","xmap":"\u27FC","xnis":"\u22FB","xodot":"\u2A00","Xopf":"\uD835\uDD4F","xopf":"\uD835\uDD69","xoplus":"\u2A01","xotime":"\u2A02","xrarr":"\u27F6","xrArr":"\u27F9","Xscr":"\uD835\uDCB3","xscr":"\uD835\uDCCD","xsqcup":"\u2A06","xuplus":"\u2A04","xutri":"\u25B3","xvee":"\u22C1","xwedge":"\u22C0","Yacute":"\u00DD","yacute":"\u00FD","YAcy":"\u042F","yacy":"\u044F","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042B","ycy":"\u044B","yen":"\u00A5","Yfr":"\uD835\uDD1C","yfr":"\uD835\uDD36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\uD835\uDD50","yopf":"\uD835\uDD6A","Yscr":"\uD835\uDCB4","yscr":"\uD835\uDCCE","YUcy":"\u042E","yucy":"\u044E","yuml":"\u00FF","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017A","Zcaron":"\u017D","zcaron":"\u017E","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017B","zdot":"\u017C","zeetrf":"\u2128","ZeroWidthSpace":"\u200B","Zeta":"\u0396","zeta":"\u03B6","zfr":"\uD835\uDD37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21DD","zopf":"\uD835\uDD6B","Zopf":"\u2124","Zscr":"\uD835\uDCB5","zscr":"\uD835\uDCCF","zwj":"\u200D","zwnj":"\u200C"} \ No newline at end of file diff --git a/webapp/dist/f7c2b4b747b1a225eb8dee034134a1b0.eot b/webapp/dist/f7c2b4b747b1a225eb8dee034134a1b0.eot new file mode 100644 index 0000000000..33b2bb8005 Binary files /dev/null and b/webapp/dist/f7c2b4b747b1a225eb8dee034134a1b0.eot differ diff --git a/webapp/dist/index.html b/webapp/dist/index.html new file mode 100644 index 0000000000..57468ae512 --- /dev/null +++ b/webapp/dist/index.html @@ -0,0 +1,42 @@ + + + + + Panoptes + + + + + +
Panoptes requires JavaScript.
+
Panoptes requires a screen width of at least 750 pixels.
+ +
+ + diff --git a/webapp/dist/panoptes.js b/webapp/dist/panoptes.js new file mode 100644 index 0000000000..fabb61c94c --- /dev/null +++ b/webapp/dist/panoptes.js @@ -0,0 +1,234 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){e.exports=n(298)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){function n(){f&&u&&(f=!1,u.length?c=u.concat(c):p=-1,c.length&&r())}function r(){if(!f){var e=a(n);f=!0;for(var t=c.length;t;){for(u=c,c=[];++p1)for(var n=1;n=t||n<0||k&&r>=x}function h(){var e=i();return p(e)?d(e):void(w=setTimeout(h,f(e)))}function d(e){return w=void 0,S&&y?r(e):(y=b=void 0,_)}function m(){C=0,y=T=b=w=void 0}function v(){return void 0===w?_:d(i())}function g(){var e=i(),n=p(e);if(y=arguments,b=this,T=e,n){if(void 0===w)return c(T);if(k)return w=setTimeout(h,t),r(T)}return void 0===w&&(w=setTimeout(h,t)),_}var y,b,x,_,w,T,C=0,E=!1,k=!1,S=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(E=!!n.leading,k="maxWait"in n,x=k?l(a(n.maxWait)||0,t):x,S="trailing"in n?!!n.trailing:S),g.cancel=m,g.flush=v,g}var o=n(300),i=n(301),a=n(302),s="Expected a function",l=Math.max,u=Math.min;e.exports=r},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(){return Date.now()}e.exports=n},function(e,t,n){function r(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t=o(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=c.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):u.test(e)?s:+e}var o=n(303),i=n(300),a=n(304),s=NaN,l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;e.exports=r},function(e,t,n){function r(e){var t=o(e)?l.call(e):"";return t==i||t==a}var o=n(300),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,l=s.toString;e.exports=r},function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&s.call(e)==i}var o=n(305),i="[object Symbol]",a=Object.prototype,s=a.toString;e.exports=r},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.locationsAreEqual=t.Actions=t.useQueries=t.useBeforeUnload=t.useBasename=t.createMemoryHistory=t.createHashHistory=t.createHistory=void 0;var o=n(307);Object.defineProperty(t,"locationsAreEqual",{enumerable:!0,get:function(){return o.locationsAreEqual}});var i=n(312),a=r(i),s=n(321),l=r(s),u=n(323),c=r(u),f=n(324),p=r(f),h=n(325),d=r(h),m=n(326),v=r(m),g=n(311),y=r(g);t.createHistory=a["default"],t.createHashHistory=l["default"],t.createMemoryHistory=c["default"],t.useBasename=p["default"],t.useBeforeUnload=d["default"],t.useQueries=v["default"],t.Actions=y["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t=0&&0===window.sessionStorage.length)return;throw n}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(l(e))}catch(n){if(n.name===a)return}if(t)try{return JSON.parse(t)}catch(n){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(314);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(307),i=n(309);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,i.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,i.createPath)(e)),!1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=e&&s&&(i=!0,r()))}};c()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(310),i=(r(o),function(e,t,n){var r=e(t,n);e.length<2&&n(r)});t["default"]=i},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},d=function(){var e=f();return!!(0,u.isAbsolutePath)(e)||(h("/"+e),!1)},m=t.getCurrentLocation=function(e){var t=f(),n=(0,u.getQueryStringValueFromPath)(t,e),r=void 0;n&&(t=(0,u.stripQueryStringValueFromPath)(t,e),r=(0,l.readState)(n));var o=(0,u.parsePath)(t);return o.state=r,(0,a.createLocation)(o,void 0,n)},v=void 0,g=(t.startListener=function(e,t){var n=function(){if(d()){var n=m(t);v&&n.key&&v.key===n.key||(v=n,e(n))}};return d(),(0,s.addEventListener)(window,c,n),function(){return(0,s.removeEventListener)(window,c,n)}},function(e,t,n){var r=e.state,o=e.key,i=(0,u.createPath)(e);void 0!==r&&(i=(0,u.addQueryStringValueToPath)(i,t,o),(0,l.saveState)(o,r)),v=e,n(i)});t.pushLocation=function(e,t){return g(e,t,function(e){f()!==e&&p(e)})},t.replaceLocation=function(e,t){return g(e,t,function(e){f()!==e&&h(e)})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0&&t=0&&v1?t-1:0),o=1;o1?t-1:0),o=1;o1){for(var v=Array(m),g=0;g1){for(var b=Array(y),x=0;x>",E={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:a(),arrayOf:s,element:l(),instanceOf:u,node:h(),objectOf:f,oneOf:c,oneOfType:p,shape:d};e.exports=E},function(e,t){"use strict";e.exports="15.2.1"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("23"),e}var o=n(334),i=n(336);n(335);e.exports=r},function(e,t,n){"use strict";e.exports=n(358)},function(e,t,n){"use strict";var r=n(359),o=n(362),i=n(481),a=n(382),s=n(379),l=n(355),u=n(486),c=n(487),f=n(488);n(338);o.inject();var p={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:l,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:f};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:a});e.exports=p},function(e,t,n){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function o(e,t){var n=r(e);n._hostNode=t,t[m]=n}function i(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function a(e,t){if(!(e._flags&d.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=r(s)._domID;if(null!=l){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(h)===String(l)||8===i.nodeType&&i.nodeValue===" react-text: "+l+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+l+" "){o(s,i);continue e}c("32",l)}}e._flags|=d.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&a(r,e);return n}function l(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function u(e){if(void 0===e._hostNode?c("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:c("34"),e=e._hostParent;for(;t.length;e=t.pop())a(e,e._hostNode);return e._hostNode}var c=n(334),f=n(360),p=n(361),h=(n(335),f.ID_ATTRIBUTE_NAME),d=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:l,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:o,uncacheNode:i};e.exports=v},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(334),i=(n(335),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o("48",f):void 0;var p=f.toLowerCase(),h=n[f],d={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:r(h,t.MUST_USE_PROPERTY),hasBooleanValue:r(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:o("50",f),l.hasOwnProperty(f)){var m=l[f];d.attributeName=m}a.hasOwnProperty(f)&&(d.attributeNamespace=a[f]),u.hasOwnProperty(f)&&(d.propertyName=u[f]),c.hasOwnProperty(f)&&(d.mutationMethod=c[f]),s.properties[f]=d}}}),a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t8&&T<=11),k=32,S=String.fromCharCode(k),A=h.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[A.topCompositionEnd,A.topKeyPress,A.topTextInput,A.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[A.topBlur,A.topCompositionEnd,A.topKeyDown,A.topKeyPress,A.topKeyUp,A.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[A.topBlur,A.topCompositionStart,A.topKeyDown,A.topKeyPress,A.topKeyUp,A.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[A.topBlur,A.topCompositionUpdate,A.topKeyDown,A.topKeyPress,A.topKeyUp,A.topMouseDown]}},M=!1,O=null,D={eventTypes:P,extractEvents:function(e,t,n,r){return[u(e,t,n,r),p(e,t,n,r)]}};e.exports=D},function(e,t,n){"use strict";var r=n(349),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return b(e,r)}function o(e,t,n){var o=t?y.bubbled:y.captured,i=r(e,n,o);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchInstances=v(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?m.getParentInstance(t):null;m.traverseTwoPhase(n,o,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=b(e,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,e))}}function l(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){g(e,i)}function c(e){g(e,a)}function f(e,t,n,r){m.traverseEnterLeave(n,r,s,e,t)}function p(e){g(e,l)}var h=n(364),d=n(366),m=n(368),v=n(370),g=n(371),y=(n(338),h.PropagationPhases),b=d.getListener,x={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};e.exports=x},function(e,t,n){"use strict";var r=n(334),o=n(367),i=n(368),a=n(369),s=n(370),l=n(371),u=(n(335),{}),c=null,f=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return f(e,!0)},h=function(e){return f(e,!1)},d={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?r("94",t,typeof n):void 0;var i=u[t]||(u[t]={});i[e._rootNodeID]=n;var a=o.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=u[t];return n&&n[e._rootNodeID]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=u[t];r&&delete r[e._rootNodeID]},deleteAllListeners:function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t][e._rootNodeID]){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete u[t][e._rootNodeID]}},extractEvents:function(e,t,n,r){for(var i,a=o.plugins,l=0;l-1?void 0:a("96",e),!u.plugins[n]){t.extractEvents?void 0:a("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a("98",i,e)}}}function o(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]?a("100",e):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(334),s=(n(335),null),l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];l.hasOwnProperty(n)&&l[n]===o||(l[n]?a("102",n):void 0,l[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=u},function(e,t,n){"use strict";function r(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function o(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=b.getNodeFromInstance(r),t?v.invokeGuardedCallbackWithCatch(o,n,e):v.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(372),i=null;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(376),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return l?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=n(329),i=n(333),a=n(339),s=(n(338),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),l={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n8));var F=!1;_.canUseDOM&&(F=k("input")&&(!("documentMode"in document)||document.documentMode>11));var I={get:function(){return j.get.call(this)},set:function(e){L=""+e,j.set.call(this,e)}},N={eventTypes:M,extractEvents:function(e,t,n,o){var i,a,s=t?w.getNodeFromInstance(t):window;if(r(s)?R?i=l:a=u:S(s)?F?i=h:(i=m,a=d):v(s)&&(i=g),i){var c=i(e,t);if(c){var f=C.getPooled(M.change,c,n,o);return f.type="change",x.accumulateTwoPhaseDispatches(f),f}}a&&a(e,s,t)}};e.exports=N},function(e,t,n){"use strict";function r(){S.ReactReconcileTransaction&&_?void 0:c("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){r(),_.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==g.length?c("124",t,g.length):void 0,g.sort(a),y++;for(var n=0;n]/,l=n(402),u=l(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild.childNodes,o=0;o]/;e.exports=r},function(e,t,n){"use strict";var r=n(334),o=n(399),i=n(372),a=n(406),s=n(339),l=(n(335),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=l},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=u;u?void 0:l(!1);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:l(!1),a(f).forEach(t));for(var p=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=n(372),a=n(407),s=n(408),l=n(335),u=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),o=0;o":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var o=n(372),i=n(335),a=o.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],u=[1,"","
"],c=[3,"","
"],f=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(e){p[e]=f,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";var r=n(349),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";var r=n(398),o=n(359),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(J[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?m("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?m("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&G in t.dangerouslySetInnerHTML?void 0:m("61")),null!=t.style&&"object"!=typeof t.style?m("62",r(e)):void 0)}function i(e,t,n,r){if(!(r instanceof F)){var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===K,s=i?o._node:o._ownerDocument;W(t,s),r.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;C.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;O.postMountWrapper(e)}function l(){var e=this;j.postMountWrapper(e)}function u(){var e=this;D.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:m("63");var t=U(e);switch(t?void 0:m("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[k.trapBubbledEvent(T.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in X)X.hasOwnProperty(n)&&e._wrapperState.listeners.push(k.trapBubbledEvent(T.topLevelTypes[n],X[n],t));break;case"source":e._wrapperState.listeners=[k.trapBubbledEvent(T.topLevelTypes.topError,"error",t)];break;case"img":e._wrapperState.listeners=[k.trapBubbledEvent(T.topLevelTypes.topError,"error",t),k.trapBubbledEvent(T.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[k.trapBubbledEvent(T.topLevelTypes.topReset,"reset",t),k.trapBubbledEvent(T.topLevelTypes.topSubmit,"submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[k.trapBubbledEvent(T.topLevelTypes.topInvalid,"invalid",t)]}}function f(){L.postUpdateWrapper(this)}function p(e){te.call(ee,e)||($.test(e)?void 0:m("65",e),ee[e]=!0)}function h(e,t){return e.indexOf("-")>=0||null!=t.is}function d(e){var t=e.type;p(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=null,this._domID=null,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(334),v=n(329),g=n(412),y=n(414),b=n(399),x=n(400),_=n(360),w=n(422),T=n(364),C=n(366),E=n(367),k=n(425),S=n(397),A=n(428),P=n(361),M=n(359),O=n(430),D=n(432),L=n(433),j=n(434),R=(n(385),n(435)),F=n(447),I=(n(339),n(404)),N=(n(335),n(388),n(351)),B=(n(450),n(451),n(338),P),z=C.deleteListener,U=M.getNodeFromInstance,W=k.listenTo,H=E.registrationNameModules,q={string:!0,number:!0},V=N({style:null}),G=N({__html:null}),Y={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},K=11,X={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Z={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Q={listing:!0,pre:!0,textarea:!0},J=v({menuitem:!0},Z),$=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ee={},te={}.hasOwnProperty,ne=1;d.displayName="ReactDOMComponent",d.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=ne++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"button":i=A.getHostProps(this,i,t);break;case"input":O.mountWrapper(this,i,t),i=O.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":D.mountWrapper(this,i,t),i=D.getHostProps(this,i);break;case"select":L.mountWrapper(this,i,t),i=L.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":j.mountWrapper(this,i,t),i=j.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}o(this,i);var a,f;null!=t?(a=t._namespaceURI,f=t._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===x.svg&&"foreignobject"===f)&&(a=x.html),a===x.html&&("svg"===this._tag?a=x.svg:"math"===this._tag&&(a=x.mathml)),this._namespaceURI=a;var p;if(e.useCreateElement){var h,d=n._ownerDocument;if(a===x.html)if("script"===this._tag){var m=d.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",h=m.removeChild(m.firstChild)}else h=i.is?d.createElement(this._currentElement.type,i.is):d.createElement(this._currentElement.type);else h=d.createElementNS(a,this._currentElement.type);M.precacheNode(this,h),this._flags|=B.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var y=b(h);this._createInitialChildren(e,i,r,y),p=y}else{var _=this._createOpenTagMarkupAndPutListeners(e,i),T=this._createContentMarkup(e,i,r);p=!T&&Z[this._tag]?_+"/>":_+">"+T+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{r===V&&(o&&(o=this._previousStyleCopy=v({},t.style)),o=y.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?Y.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,o)):a=w.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=q[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=I(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return Q[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&b.queueHTML(r,o.__html);else{var i=q[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)b.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),l=0;l0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);return n?n:null}var a=n(334),s=(n(337),n(437)),l=(n(385),n(379)),u=(n(335),n(338),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,o(e)):void 0}});e.exports=u},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0;a"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:l("33"),"_hostNode"in t?void 0:l("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e?void 0:l("35"),"_hostNode"in t?void 0:l("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e?void 0:l("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],!1,n);for(o=0;o0;)n(l[u],!1,i)}var l=n(334);n(335);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";var r=n(334),o=n(329),i=n(398),a=n(399),s=n(359),l=(n(385),n(404)),u=(n(335),n(451),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=null,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(u.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",u=" /react-text ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,f=c.createComment(i),p=c.createComment(u),h=a(c.createDocumentFragment());return a.queueChild(h,a(f)),this._stringText&&a.queueChild(h,a(c.createTextNode(this._stringText))),a.queueChild(h,a(p)),s.precacheNode(this,f),this._closingComment=p,h}var d=l(this._stringText);return e.renderToStaticMarkup?d:""+d+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(329),i=n(379),a=n(386),s=n(339),l={initialize:s,close:function(){p.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[u,l];o(r.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};e.exports=p},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=f.getNodeFromInstance(e),n=t.parentNode;return f.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=h(e.nativeEvent),n=f.getClosestInstanceFromNode(t),o=n;do e.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;it.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=u(e,o),l=u(e,i);if(s&&l){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}var l=n(372),u=n(463),c=n(374),f=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:s};e.exports=p},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=t&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(465);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(466);e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering","in":0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(e){o.Properties[e]=0,r[e]&&(o.DOMAttributeNames[e]=r[e])}),e.exports=o},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(_||null==y||y!==f())return null;var n=r(y);if(!x||!d(x,n)){x=n;var o=c.getPooled(g.select,b,e,t);return o.type="select",o.target=y,a.accumulateTwoPhaseDispatches(o),o}return null}var i=n(364),a=n(365),s=n(372),l=n(359),u=n(461),c=n(376),f=n(467),p=n(389),h=n(351),d=n(450),m=i.topLevelTypes,v=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,g={select:{phasedRegistrationNames:{bubbled:h({onSelect:null}),captured:h({onSelectCapture:null})},dependencies:[m.topBlur,m.topContextMenu,m.topFocus,m.topKeyDown,m.topMouseDown,m.topMouseUp,m.topSelectionChange]}},y=null,b=null,x=null,_=!1,w=!1,T=h({onSelect:null}),C={eventTypes:g,extractEvents:function(e,t,n,r){if(!w)return null;var i=t?l.getNodeFromInstance(t):window;switch(e){case m.topFocus:(p(i)||"true"===i.contentEditable)&&(y=i,b=t,x=null);break;case m.topBlur:y=null,b=null,x=null;break;case m.topMouseDown:_=!0;break;case m.topContextMenu:case m.topMouseUp:return _=!1,o(n,r);case m.topSelectionChange:if(v)break;case m.topKeyDown:case m.topKeyUp:return o(n,r)}return null},didPutListener:function(e,t,n){t===T&&(w=!0)}};e.exports=C},function(e,t,n){"use strict";var r=n(334),o=n(364),i=n(457),a=n(365),s=n(359),l=n(471),u=n(472),c=n(376),f=n(473),p=n(474),h=n(392),d=n(477),m=n(478),v=n(479),g=n(393),y=n(480),b=n(339),x=n(475),_=(n(335),n(351)),w=o.topLevelTypes,T={abort:{phasedRegistrationNames:{bubbled:_({onAbort:!0}),captured:_({onAbortCapture:!0})}},animationEnd:{phasedRegistrationNames:{bubbled:_({onAnimationEnd:!0}),captured:_({onAnimationEndCapture:!0})}},animationIteration:{phasedRegistrationNames:{bubbled:_({onAnimationIteration:!0}),captured:_({onAnimationIterationCapture:!0})}},animationStart:{phasedRegistrationNames:{bubbled:_({onAnimationStart:!0}),captured:_({onAnimationStartCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:_({onBlur:!0}),captured:_({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:_({onCanPlay:!0}),captured:_({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:_({onCanPlayThrough:!0}),captured:_({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:_({onClick:!0}),captured:_({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:_({onContextMenu:!0}),captured:_({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:_({onCopy:!0}),captured:_({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:_({onCut:!0}),captured:_({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:_({onDoubleClick:!0}),captured:_({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:_({onDrag:!0}),captured:_({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:_({onDragEnd:!0}),captured:_({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:_({onDragEnter:!0}),captured:_({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:_({onDragExit:!0}),captured:_({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:_({onDragLeave:!0}),captured:_({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:_({onDragOver:!0}),captured:_({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:_({onDragStart:!0}),captured:_({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:_({onDrop:!0}),captured:_({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:_({onDurationChange:!0}),captured:_({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:_({onEmptied:!0}),captured:_({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:_({onEncrypted:!0}),captured:_({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:_({onEnded:!0}),captured:_({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:_({onError:!0}),captured:_({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:_({onFocus:!0}),captured:_({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:_({onInput:!0}),captured:_({onInputCapture:!0})}},invalid:{phasedRegistrationNames:{bubbled:_({onInvalid:!0}),captured:_({onInvalidCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:_({onKeyDown:!0}),captured:_({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:_({onKeyPress:!0}),captured:_({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:_({onKeyUp:!0}),captured:_({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:_({onLoad:!0}),captured:_({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:_({onLoadedData:!0}),captured:_({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:_({onLoadedMetadata:!0}),captured:_({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:_({onLoadStart:!0}),captured:_({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:_({onMouseDown:!0}),captured:_({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:_({onMouseMove:!0}),captured:_({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:_({onMouseOut:!0}),captured:_({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:_({onMouseOver:!0}),captured:_({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:_({onMouseUp:!0}),captured:_({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:_({onPaste:!0}),captured:_({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:_({onPause:!0}),captured:_({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:_({onPlay:!0}),captured:_({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:_({onPlaying:!0}),captured:_({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:_({onProgress:!0}),captured:_({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:_({onRateChange:!0}),captured:_({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:_({onReset:!0}),captured:_({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:_({onScroll:!0}),captured:_({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:_({onSeeked:!0}),captured:_({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:_({onSeeking:!0}),captured:_({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:_({onStalled:!0}),captured:_({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:_({onSubmit:!0}),captured:_({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:_({onSuspend:!0}),captured:_({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:_({onTimeUpdate:!0}),captured:_({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:_({onTouchCancel:!0}),captured:_({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:_({onTouchEnd:!0}),captured:_({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:_({onTouchMove:!0}),captured:_({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:_({onTouchStart:!0}),captured:_({onTouchStartCapture:!0})}},transitionEnd:{phasedRegistrationNames:{bubbled:_({onTransitionEnd:!0}),captured:_({onTransitionEndCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:_({onVolumeChange:!0}),captured:_({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:_({onWaiting:!0}),captured:_({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:_({onWheel:!0}),captured:_({onWheelCapture:!0})}}},C={topAbort:T.abort,topAnimationEnd:T.animationEnd,topAnimationIteration:T.animationIteration,topAnimationStart:T.animationStart,topBlur:T.blur,topCanPlay:T.canPlay,topCanPlayThrough:T.canPlayThrough,topClick:T.click,topContextMenu:T.contextMenu,topCopy:T.copy,topCut:T.cut,topDoubleClick:T.doubleClick,topDrag:T.drag,topDragEnd:T.dragEnd,topDragEnter:T.dragEnter,topDragExit:T.dragExit,topDragLeave:T.dragLeave,topDragOver:T.dragOver,topDragStart:T.dragStart,topDrop:T.drop,topDurationChange:T.durationChange,topEmptied:T.emptied,topEncrypted:T.encrypted,topEnded:T.ended,topError:T.error,topFocus:T.focus,topInput:T.input,topInvalid:T.invalid,topKeyDown:T.keyDown,topKeyPress:T.keyPress,topKeyUp:T.keyUp,topLoad:T.load,topLoadedData:T.loadedData,topLoadedMetadata:T.loadedMetadata,topLoadStart:T.loadStart,topMouseDown:T.mouseDown,topMouseMove:T.mouseMove,topMouseOut:T.mouseOut,topMouseOver:T.mouseOver,topMouseUp:T.mouseUp,topPaste:T.paste,topPause:T.pause,topPlay:T.play,topPlaying:T.playing,topProgress:T.progress,topRateChange:T.rateChange,topReset:T.reset,topScroll:T.scroll,topSeeked:T.seeked,topSeeking:T.seeking,topStalled:T.stalled,topSubmit:T.submit,topSuspend:T.suspend,topTimeUpdate:T.timeUpdate,topTouchCancel:T.touchCancel,topTouchEnd:T.touchEnd,topTouchMove:T.touchMove,topTouchStart:T.touchStart,topTransitionEnd:T.transitionEnd,topVolumeChange:T.volumeChange,topWaiting:T.waiting,topWheel:T.wheel};for(var E in C)C[E].dependencies=[E];var k=_({onClick:null}),S={},A={eventTypes:T,extractEvents:function(e,t,n,o){var i=C[e];if(!i)return null;var s;switch(e){case w.topAbort:case w.topCanPlay:case w.topCanPlayThrough:case w.topDurationChange:case w.topEmptied:case w.topEncrypted:case w.topEnded:case w.topError:case w.topInput:case w.topInvalid:case w.topLoad:case w.topLoadedData:case w.topLoadedMetadata:case w.topLoadStart:case w.topPause:case w.topPlay:case w.topPlaying:case w.topProgress:case w.topRateChange:case w.topReset:case w.topSeeked:case w.topSeeking:case w.topStalled:case w.topSubmit:case w.topSuspend:case w.topTimeUpdate:case w.topVolumeChange:case w.topWaiting:s=c;break;case w.topKeyPress:if(0===x(n))return null;case w.topKeyDown:case w.topKeyUp:s=p;break;case w.topBlur:case w.topFocus:s=f;break;case w.topClick:if(2===n.button)return null;case w.topContextMenu:case w.topDoubleClick:case w.topMouseDown:case w.topMouseMove:case w.topMouseOut:case w.topMouseOver:case w.topMouseUp:s=h;break;case w.topDrag:case w.topDragEnd:case w.topDragEnter:case w.topDragExit:case w.topDragLeave:case w.topDragOver:case w.topDragStart:case w.topDrop:s=d;break;case w.topTouchCancel:case w.topTouchEnd:case w.topTouchMove:case w.topTouchStart:s=m;break;case w.topAnimationEnd:case w.topAnimationIteration:case w.topAnimationStart:s=l;break;case w.topTransitionEnd:s=v;break;case w.topScroll:s=g;break;case w.topWheel:s=y;break;case w.topCopy:case w.topCut:case w.topPaste:s=u}s?void 0:r("86",e);var b=s.getPooled(i,t,n,o);return a.accumulateTwoPhaseDispatches(b),b},didPutListener:function(e,t,n){if(t===k){var r=e._rootNodeID,o=s.getNodeFromInstance(e);S[r]||(S[r]=i.listen(o,"click",b))}},willDeleteListener:function(e,t){if(t===k){var n=e._rootNodeID;S[n].remove(),delete S[n]}}};e.exports=A},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(376),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(376),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(393),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(393),i=n(475),a=n(476),s=n(395),l={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,l),e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(475),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(392),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(393),i=n(395),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(376),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(392),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=b(I,null,null,null,null,null,t);if(e){var l=_.get(e);a=l._processChildContext(l._context)}else a=k;var c=f(n);if(c){var h=c._currentElement,d=h.props;if(P(d,t)){var m=c._renderedComponent.getPublicInstance(),v=r&&function(){r.call(m)};return N._updateRootComponent(c,s,a,n,v),m}N.unmountComponentAtNode(n)}var g=o(n),y=g&&!!i(g),x=u(n),w=y&&!c&&!x,T=N._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(T),T},render:function(e,t,n){return N._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){!e||e.nodeType!==D&&e.nodeType!==L&&e.nodeType!==j?p("40"):void 0;var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(O);return!1}return delete R[t._instance.rootID],E.batchedUpdates(l,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(!t||t.nodeType!==D&&t.nodeType!==L&&t.nodeType!==j?p("41"):void 0,i){var s=o(t);if(w.canReuseMarkup(e,s))return void v.precacheNode(n,s);var l=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,l);var c=e,f=r(c,u),d=" (client) "+c.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===L?p("42",d):void 0}if(t.nodeType===L?p("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else A(t,e),v.precacheNode(n,t.firstChild)}};e.exports=N},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(n(451),9);e.exports=r},function(e,t){"use strict";var n={useCreateElement:!0};e.exports=n},function(e,t,n){"use strict";var r=n(485),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0,i=e.length,a=i&-4;o-1)throw new Error("A store cannot wait on itself");var o=this.currentDispatch[r];if(o.waitingOn.length)throw new Error(r+" already waiting on stores");u(t,function(e){var t=this.currentDispatch[e];if(!this.stores[e])throw new Error("Cannot wait for non-existent store "+e);if(t.waitingOn.indexOf(r)>-1)throw new Error("Circular wait detected between "+r+" and "+e)},this),o.resolved=!1,o.waitingOn=p(o.waitingOn.concat(t)),o.waitCallback=n},d.prototype.setDispatchInterceptor=function(e){e?this.dispatchInterceptor=e:this.dispatchInterceptor=h},e.exports=d},function(e,t,n){function r(e,t,n,r){return t&&"boolean"!=typeof t&&a(e,t,n)?t=!1:"function"==typeof t&&(r=n, +n=t,t=!1),"function"==typeof n?o(e,t,i(n,r,3)):o(e,t)}var o=n(492),i=n(520),a=n(522);e.exports=r},function(e,t,n){function r(e,t,n,d,m,v,g){var b;if(n&&(b=m?n(e,d,m):n(e)),void 0!==b)return b;if(!p(e))return e;var x=f(e);if(x){if(b=l(e),!t)return o(e,b)}else{var w=N.call(e),T=w==y;if(w!=_&&w!=h&&(!T||m))return F[w]?u(e,w,t):m?e:{};if(b=c(T?{}:e),!t)return a(b,e)}v||(v=[]),g||(g=[]);for(var C=v.length;C--;)if(v[C]==e)return g[C];return v.push(e),g.push(b),(x?i:s)(e,function(o,i){b[i]=r(o,t,n,i,e,v,g)}),b}var o=n(493),i=n(494),a=n(495),s=n(512),l=n(516),u=n(517),c=n(519),f=n(509),p=n(501),h="[object Arguments]",d="[object Array]",m="[object Boolean]",v="[object Date]",g="[object Error]",y="[object Function]",b="[object Map]",x="[object Number]",_="[object Object]",w="[object RegExp]",T="[object Set]",C="[object String]",E="[object WeakMap]",k="[object ArrayBuffer]",S="[object Float32Array]",A="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",O="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",j="[object Uint16Array]",R="[object Uint32Array]",F={};F[h]=F[d]=F[k]=F[m]=F[v]=F[S]=F[A]=F[P]=F[M]=F[O]=F[x]=F[_]=F[w]=F[C]=F[D]=F[L]=F[j]=F[R]=!0,F[g]=F[y]=F[b]=F[T]=F[E]=!1;var I=Object.prototype,N=I.toString;e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){for(var t=l(e),n=t.length,r=n&&e.length,u=!!r&&s(r)&&(i(e)||o(e)),f=-1,p=[];++f-1&&e%1==0&&e0;++ru))return!1;for(;++lo?0:o+t),n=void 0===n||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=120?i(n&&f):null}var p=e[0],h=-1,d=p?p.length:0,m=s[0];e:for(;++h=s,f=c?a():null,p=[];f?(r=i,u=!1):(c=!1,f=t?[]:p);e:for(;++n1&&e.length%2!==0)throw new Error("bindActions must take an even number of arguments.");var t=function(e,t){if(!t)throw new Error("The handler for action type "+e+" is falsy");this.__actions__[e]=t}.bind(this);if(1===e.length&&s(e[0])){e=e[0];for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}else for(var r=0;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?d(e)+t:t}function v(){return!0}function g(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function y(e,t){return x(e,t,0)}function b(e,t){return x(e,t,t)}function x(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function w(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function T(){return{value:void 0,done:!0}}function C(e){return!!S(e)}function E(e){return e&&"function"==typeof e.next}function k(e){var t=S(e);return t&&t.call(e)}function S(e){var t=e&&(Tn&&e[Tn]||e[Cn]);if("function"==typeof t)return t}function A(e){return e&&"number"==typeof e.length}function P(e){return null===e||void 0===e?N():i(e)?e.toSeq():U(e)}function M(e){return null===e||void 0===e?N().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function O(e){return null===e||void 0===e?N():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():z(e)}function D(e){return(null===e||void 0===e?N():i(e)?a(e)?e.entrySeq():e:z(e)).toSetSeq()}function L(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function R(e){this._iterable=e,this.size=e.length||e.size}function F(e){this._iterator=e,this._iteratorCache=[]}function I(e){return!(!e||!e[kn])}function N(){return Sn||(Sn=new L([]))}function B(e){var t=Array.isArray(e)?new L(e).fromEntrySeq():E(e)?new F(e).fromEntrySeq():C(e)?new R(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function z(e){var t=W(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){var t=W(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function W(e){return A(e)?new L(e):E(e)?new F(e):C(e)?new R(e):void 0}function H(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[n?i-a:a];return a++>i?T():w(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?G(t,e,"",{"":e}):Y(e)}function G(e,t,n,r){return Array.isArray(t)?e.call(r,n,O(t).map(function(n,r){return G(e,n,r,t)})):K(t)?e.call(r,n,M(t).map(function(n,r){return G(e,n,r,t)})):t}function Y(e){return Array.isArray(e)?O(e).map(Y).toList():K(e)?M(e).map(Y).toMap():e}function K(e){return e&&(e.constructor===Object||void 0===e.constructor)}function X(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Z(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&X(o[1],e)&&(n||X(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!X(t,e.get(r,gn)):!X(e.get(r,gn),t))return f=!1,!1});return f&&e.size===p}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(An)return An;An=this}}function J(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(J(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function ie(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>In?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=zn[e];return void 0===t&&(t=se(e),Bn===Nn&&(Bn=0,zn={}),Bn++,zn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){J(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?we():pe(e)&&!u(e)?e:we().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[Un])}function he(e,t){this.ownerID=e,this.entries=t}function de(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&xe(e._root)}function be(e,t){return w(e,t[0],t[1])}function xe(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Wn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function we(){return Hn||(Hn=_e(0))}function Te(e,t,n){var r,o;if(e._root){var i=c(yn),a=c(bn);if(r=Ce(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===gn?-1:1:0)}else{if(n===gn)return e;o=1,r=new he(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):we()}function Ce(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===gn?e:(f(s),f(a),new ge(t,r,[o,i]))}function Ee(e){return e.constructor===ge||e.constructor===ve}function ke(e,t,n,r,o){if(e.keyHash===r)return new ve(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&vn,s=(0===n?r:r>>>n)&vn,l=a===s?[ke(e,t,n+dn,r,o)]:(i=new ge(t,r,o),a>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new me(e,i+1,a)}function Me(e,t,r){for(var o=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Fe(e,t,n,r){var o=r?e:h(e);return o[t]=n,o}function Ie(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s0&&oi?0:i-n,u=a-n;return u>mn&&(u=mn),function(){if(o===u)return Zn;var e=t?--u:o++;return r&&r[e]}}function o(e,r,o){var s,l=e&&e.array,u=o>i?0:i-o>>r,c=(a-o>>r)+1;return c>mn&&(c=mn),function(){for(;;){if(s){var e=s();if(e!==Zn)return e;s=null}if(u===c)return Zn;var i=t?--c:u++;s=n(l&&l[i],r-dn,o+(i<=e.size||t<0)return e.withMutations(function(e){t<0?Xe(e,t).set(0,n):Xe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(bn);return t>=Qe(e._capacity)?r=Ge(r,e.__ownerID,0,t,n,i):o=Ge(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):He(e._origin,e._capacity,e._level,o,r):e}function Ge(e,t,n,r,o,i){var a=r>>>n&vn,s=e&&a0){var u=e&&e.array[a],c=Ge(u,t,n-dn,r,o,i);return c===u?e:(l=Ye(e,t),l.array[a]=c,l)}return s&&e.array[a]===o?e:(f(i),l=Ye(e,t),void 0===o&&a===l.array.length-1?l.array.pop():l.array[a]=o,l)}function Ye(e,t){return t&&e&&t===e.ownerID?e:new Ue(e?e.array.slice():[],t)}function Ke(e,t){if(t>=Qe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&vn],r-=dn;return n}}function Xe(e,t,n){void 0!==t&&(t=0|t),void 0!==n&&(n=0|n);var r=e.__ownerID||new p,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ue(u&&u.array.length?[void 0,u]:[],r),l+=dn,c+=1<=1<f?new Ue([],r):d;if(d&&h>f&&adn;g-=dn){var y=f>>>g&vn;v=v.array[y]=Ye(v.array[y],r)}v.array[f>>>dn&vn]=d}if(s=h)a-=h,s-=h,l=dn,u=null,m=m&&m.removeBefore(r,0,a);else if(a>o||h>>l&vn;if(b!==h>>>l&vn)break;b&&(c+=(1<o&&(u=u.removeBefore(r,l,a-c)),u&&ha&&(a=u.size),i(l)||(u=u.map(function(e){return V(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),Le(e,t,o)}function Qe(e){return e>>dn<=mn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=At(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Pt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===wn){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===_n?xn:_n,n)},t}function lt(e,t,n){var r=At(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,gn);return i===gn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(wn,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return w(r,s,t.call(n,a[1],s,e),o)})},r}function ut(e,t){var n=At(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Pt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=At(e);return r&&(o.has=function(r){var o=e.get(r,gn);return o!==gn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,gn);return i!==gn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(wn,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return w(o,r?u:s++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function pt(e,t,n){var r=a(e),o=(u(e)?Je():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=St(e);return o.map(function(t){return Ct(e,i(t))})}function ht(e,t,n,r){var o=e.size;if(void 0!==t&&(t=0|t),void 0!==n&&(n=n===1/0?o:0|n),g(t,n,o))return e;var i=y(t,o),a=b(n,o);if(i!==i||a!==a)return ht(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l===l&&(s=l<0?0:l);var u=At(e);return u.size=0===s?s:e.size&&s||void 0,!r&&I(e)&&s>=0&&(u.get=function(t,n){return t=m(this,t),t>=0&&ts)return T();var e=o.next();return r||t===_n?e:t===xn?w(t,l-1,void 0,e):w(t,l-1,e.value[1],e)})},u}function dt(e,t,n){var r=At(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(wn,o),s=!0;return new _(function(){if(!s)return T();var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===wn?e:w(r,l,u,e):(s=!1,T())})},r}function mt(e,t,n,r){var o=At(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(wn,i),l=!0,u=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===_n?e:o===xn?w(o,u++,void 0,e):w(o,u++,e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===wn?e:w(o,i,c,e)})},o}function vt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?B(e):z(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new L(o);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function gt(e,t,n){var r=At(e);return r.__iterateUncached=function(r,o){function a(e,u){var c=this;e.__iterate(function(e,o){return(!t||u0}function Tt(e,n,r){var o=At(e);return o.size=new L(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(_n,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),k(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?T():w(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function Ct(e,t){return I(e)?t:e.constructor(t)}function Et(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function kt(e){return ce(e.size),d(e)}function St(e){return a(e)?n:s(e)?r:o}function At(e){return Object.create((a(e)?M:s(e)?O:D).prototype)}function Pt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):P.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return an(o,r)}function an(e,t){return t=On(t,3432918353),t=On(t<<15|t>>>-15,461845907),t=On(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=On(t^t>>>16,2246822507),t=On(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var un="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",hn="delete",dn=5,mn=1<r?T():w(e,o,n[t?r-o++:o++])})},e(j,M),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===!1)return i+1}return i},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var a=r[t?o-i:i];return i++>o?T():w(e,a,n[a])})},j.prototype[pn]=!0,e(R,O),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=k(n),o=0;if(E(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},R.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=k(n);if(!E(r))return new _(T);var o=0;return new _(function(){var t=r.next();return t.done?t:w(e,o++,t.value)})},e(F,O),F.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return w(e,o,r[o++])})};var Sn;e(Q,O),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(e,t){return this.has(e)?this._value:t},Q.prototype.includes=function(e){return X(this._value,e)},Q.prototype.slice=function(e,t){var n=this.size;return g(e,t,n)?this:new Q(this._value,b(t,n)-y(e,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(e){return X(this._value,e)?0:-1},Q.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},Q.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?T():w(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:Z(this,e)};var Pn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Mn,On="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,Ln=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),jn="function"==typeof WeakMap;jn&&(Mn=new WeakMap);var Rn=0,Fn="__immutablehash__";"function"==typeof Symbol&&(Fn=Symbol(Fn));var In=16,Nn=255,Bn=0,zn={};e(fe,te),fe.of=function(){var e=ln.call(arguments,0);return we().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return Te(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},fe.prototype.remove=function(e){return Te(this,e,gn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=je(this,Ot(e),t,n);return r===gn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):we()},fe.prototype.merge=function(){return Me(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return Me(this,e,t)},fe.prototype.mergeIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Me(this,Oe,arguments)},fe.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Me(this,De(e),t)},fe.prototype.mergeDeepIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,we(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Je(xt(this,e))},fe.prototype.sortBy=function(e,t){return Je(xt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new ye(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var Un="@@__IMMUTABLE_MAP__@@",Wn=fe.prototype;Wn[Un]=!0,Wn[hn]=Wn.remove,Wn.removeIn=Wn.deleteIn,he.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=qn)return Se(e,l,r,o);var d=e&&e===this.ownerID,m=d?l:h(l);return p?s?u===c-1?m.pop():m[u]=m.pop():m[u]=[r,o]:m.push([r,o]),d?(this.entries=m,this):new he(e,m)}},de.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&vn),i=this.bitmap;return 0===(i&o)?r:this.nodes[Re(i&o-1)].get(e+dn,t,n,r)},de.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&vn,l=1<=Vn)return Pe(e,p,u,s,d);if(c&&!d&&2===p.length&&Ee(p[1^f]))return p[1^f];if(c&&d&&1===p.length&&Ee(d))return d;var m=e&&e===this.ownerID,v=c?d?u:u^l:u|l,g=c?d?Fe(p,f,d,m):Ne(p,f,m):Ie(p,f,d,m);return m?(this.bitmap=v,this.nodes=g,this):new de(e,v,g)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&vn,i=this.nodes[o];return i?i.get(e+dn,t,n,r):r},me.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&vn,l=o===gn,u=this.nodes,c=u[s];if(l&&!c)return this;var f=Ce(c,e,t+dn,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&(p--,p=0&&e>>t&vn;if(r>=this.array.length)return new Ue([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-dn,n),o===a&&i)return this}if(i&&!o)return this;var s=Ye(this,e);if(!i)for(var l=0;l>>t&vn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if(o=i&&i.removeAfter(e,t-dn,n),o===i&&r===this.array.length-1)return this}var a=Ye(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Xn,Zn={};e(Je,fe),Je.of=function(){return this(arguments)},Je.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Je.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Je.prototype.set=function(e,t){return nt(this,e,t)},Je.prototype.remove=function(e){return nt(this,e,gn)},Je.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Je.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Je.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Je.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Je.isOrderedMap=$e,Je.prototype[pn]=!0,Je.prototype[hn]=Je.prototype.remove;var Qn;e(rt,M),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?kt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(_n,t),r=t?kt(this):0;return new _(function(){var o=n.next();return o.done?o:w(e,t?--r:r++,o.value,o)})},rt.prototype[pn]=!0,e(ot,O),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t),r=0;return new _(function(){var t=n.next();return t.done?t:w(e,r++,t.value,t)})},e(it,D),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){var t=n.next();return t.done?t:w(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Et(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Et(r);var o=i(r);return w(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=Pt,e(Dt,te),Dt.prototype.toString=function(){return this.__toString(jt(this)+" {","}")},Dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Lt(this,we()))},Dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+jt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Lt(this,r)},Dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Lt(this,t)},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Lt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jn=Dt.prototype;Jn[hn]=Jn.remove,Jn.deleteIn=Jn.removeIn=Wn.removeIn,Jn.merge=Wn.merge,Jn.mergeWith=Wn.mergeWith,Jn.mergeIn=Wn.mergeIn,Jn.mergeDeep=Wn.mergeDeep,Jn.mergeDeepWith=Wn.mergeDeepWith,Jn.mergeDeepIn=Wn.mergeDeepIn,Jn.setIn=Wn.setIn,Jn.update=Wn.update,Jn.updateIn=Wn.updateIn,Jn.withMutations=Wn.withMutations,Jn.asMutable=Wn.asMutable,Jn.asImmutable=Wn.asImmutable,e(It,re),It.of=function(){return this(arguments)},It.fromKeys=function(e){return this(n(e).keySeq())},It.prototype.toString=function(){return this.__toString("Set {","}")},It.prototype.has=function(e){return this._map.has(e)},It.prototype.add=function(e){return Bt(this,this._map.set(e,!0))},It.prototype.remove=function(e){return Bt(this,this._map.remove(e))},It.prototype.clear=function(){return Bt(this,this._map.clear())},It.prototype.union=function(){var e=ln.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kt(e,t)},Gt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kt(t,n)},Gt.prototype.pop=function(){return this.slice(1)},Gt.prototype.unshift=function(){return this.push.apply(this,arguments)},Gt.prototype.unshiftAll=function(e){return this.pushAll(e)},Gt.prototype.shift=function(){return this.pop.apply(this,arguments)},Gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xt()},Gt.prototype.slice=function(e,t){if(g(e,t,this.size))return this;var n=y(e,this.size),r=b(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Kt(o,i)},Gt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Gt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Gt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new _(function(){if(r){var t=r.value;return r=r.next,w(e,n++,t)}return T()})},Gt.isStack=Yt;var or="@@__IMMUTABLE_STACK__@@",ir=Gt.prototype;ir[or]=!0,ir.withMutations=Wn.withMutations,ir.asMutable=Wn.asMutable,ir.asImmutable=Wn.asImmutable,ir.wasAltered=Wn.wasAltered;var ar;t.Iterator=_,Zt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ot(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,(!0))},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Je(this.toKeyedSeq())},toOrderedSet:function(){return Wt(a(this)?this.valueSeq():this)},toSet:function(){return It(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Gt(a(this)?this.valueSeq():this)},toList:function(){return Be(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=ln.call(arguments,0);return Ct(this,vt(this,e))},includes:function(e){return this.some(function(t){return X(t,e)})},entries:function(){return this.__iterator(wn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return Ct(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(xn)},map:function(e,t){return Ct(this,lt(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ct(this,ut(this,!0))},slice:function(e,t){return Ct(this,ht(this,e,t,!0))},some:function(e,t){return!this.every($t(e),t)},sort:function(e){return Ct(this,xt(this,e))},values:function(){return this.__iterator(_n)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return d(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return Z(this,e)},entrySeq:function(){var e=this;if(e._cache)return new L(e._cache);var t=e.toSeq().map(Jt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter($t(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return Ct(this,yt(this,e,t))},flatten:function(e){return Ct(this,gt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return X(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=Ot(e);!(n=o.next()).done;){var i=n.value;if(r=r&&r.get?r.get(i,gn):gn,r===gn)return t}return r},groupBy:function(e,t){return pt(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return X(t,e)})},keySeq:function(){return this.toSeq().map(Qt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?en(e):rn)},minBy:function(e,t){return _t(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ct(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ct(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile($t(e),t)},sortBy:function(e,t){return Ct(this,xt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ct(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ct(this,dt(this,e,t))},takeUntil:function(e,t){return this.takeWhile($t(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=t.prototype;sr[un]=!0,sr[En]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=tn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Zt(n,{flip:function(){return Ct(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return Ct(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ct(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var lr=n.prototype;lr[cn]=!0,lr[En]=sr.entries,lr.__toJS=sr.toObject,lr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Zt(r,{toKeyedSeq:function(){return new rt(this,(!1))},filter:function(e,t){return Ct(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ct(this,ut(this,!1))},slice:function(e,t){return Ct(this,ht(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=y(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ct(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Ct(this,gt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=m(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e-1&&Object.keys(t.refs[n].refs).forEach(function(r){var o=e.uid?e.uid:e;r==="notification-"+o&&t.refs[n].refs[r]._hideNotification()})})},componentDidMount:function(){this._getStyles.setOverrideStyle(this.props.style)},render:function(){var e=this,t=null,n=this.state.notifications;return n.length&&(t=Object.keys(a.positions).map(function(t){var o=n.filter(function(e){return t===e.position});if(o.length)return r.createElement(i,{ref:"container-"+t,key:t,position:t,notifications:o,getStyles:e._getStyles,onRemove:e._didNotificationRemoved,noAnimation:e.props.noAnimation,allowHTML:e.props.allowHTML})})),r.createElement("div",{className:"notifications-wrapper",style:this._getStyles.wrapper()},t)}});e.exports=l},function(e,t,n){var r=n(330),o=n(590),i=n(591),a=r.createClass({displayName:"NotificationContainer",propTypes:{position:r.PropTypes.string.isRequired,notifications:r.PropTypes.array.isRequired,getStyles:r.PropTypes.object},_style:{},componentWillMount:function(){this._style=this.props.getStyles.container(this.props.position),!this.props.getStyles.overrideWidth||this.props.position!==i.positions.tc&&this.props.position!==i.positions.bc||(this._style.marginLeft=-(this.props.getStyles.overrideWidth/2))},render:function(){var e,t=this;return[i.positions.bl,i.positions.br,i.positions.bc].indexOf(this.props.position)>-1&&this.props.notifications.reverse(),e=this.props.notifications.map(function(e){return r.createElement(o,{ref:"notification-"+e.uid,key:e.uid,notification:e,getStyles:t.props.getStyles,onRemove:t.props.onRemove,noAnimation:t.props.noAnimation,allowHTML:t.props.allowHTML})}),r.createElement("div",{className:"notifications-"+this.props.position,style:this._style},e)}});e.exports=a},function(e,t,n){var r=n(330),o=n(357),i=n(591),a=n(592),s=n(329),l=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]},u=r.createClass({displayName:"NotificationItem",propTypes:{notification:r.PropTypes.object,getStyles:r.PropTypes.object,onRemove:r.PropTypes.func,allowHTML:r.PropTypes.bool,noAnimation:r.PropTypes.bool},getDefaultProps:function(){return{noAnimation:!1,onRemove:function(){},allowHTML:!1}},getInitialState:function(){return{visible:!1,removed:!1}},componentWillMount:function(){var e=this.props.getStyles,t=this.props.notification.level;this._noAnimation=this.props.noAnimation,this._styles={notification:e.byElement("notification")(t),title:e.byElement("title")(t),dismiss:e.byElement("dismiss")(t),messageWrapper:e.byElement("messageWrapper")(t),actionWrapper:e.byElement("actionWrapper")(t),action:e.byElement("action")(t)},this.props.notification.dismissible||(this._styles.notification.cursor="default")},_styles:{},_notificationTimer:null,_height:0,_noAnimation:null,_isMounted:!1,_removeCount:0,_getCssPropertyByPosition:function(){var e=this.props.notification.position,t={};switch(e){case i.positions.tl:case i.positions.bl:t={property:"left",value:-200};break;case i.positions.tr:case i.positions.br:t={property:"right",value:-200};break;case i.positions.tc:t={property:"top",value:-100};break;case i.positions.bc:t={property:"bottom",value:-100}}return t},_defaultAction:function(e){var t=this.props.notification;e.preventDefault(),this._hideNotification(),"function"==typeof t.action.callback&&t.action.callback()},_hideNotification:function(){this._notificationTimer&&this._notificationTimer.clear(),this._isMounted&&this.setState({visible:!1,removed:!0}),this._noAnimation&&this._removeNotification()},_removeNotification:function(){this.props.onRemove(this.props.notification.uid)},_dismiss:function(){this.props.notification.dismissible&&this._hideNotification()},_showNotification:function(){var e=this;setTimeout(function(){e._isMounted&&e.setState({visible:!0})},50)},_onTransitionEnd:function(){this._removeCount>0||this.state.removed&&(this._removeCount++,this._removeNotification())},componentDidMount:function(){var e=this,t=l(),n=this.props.notification,r=o.findDOMNode(this);this._height=r.offsetHeight,this._isMounted=!0,this._noAnimation||(t?r.addEventListener(t,this._onTransitionEnd):this._noAnimation=!0),n.autoDismiss&&(this._notificationTimer=new a.Timer(function(){e._hideNotification()},1e3*n.autoDismiss)),this._showNotification()},_handleMouseEnter:function(){var e=this.props.notification;e.autoDismiss&&this._notificationTimer.pause()},_handleMouseLeave:function(){var e=this.props.notification;e.autoDismiss&&this._notificationTimer.resume()},componentWillUnmount:function(){var e=o.findDOMNode(this),t=l();e.removeEventListener(t,this._onTransitionEnd),this._isMounted=!1},_allowHTML:function(e){return{__html:e}},render:function(){var e=this.props.notification,t="notification notification-"+e.level,n=s({},this._styles.notification),o=this._getCssPropertyByPosition(),i=null,a=null,l=null,u=null;return t+=this.state.visible?" notification-visible":" notification-hidden",e.dismissible||(t+=" notification-not-dismissible"),this.props.getStyles.overrideStyle&&(this.state.visible||this.state.removed||(n[o.property]=o.value),this.state.visible&&!this.state.removed&&(n.height=this._height,n[o.property]=0),this.state.removed&&(n.overlay="hidden",n.height=0,n.marginTop=0,n.paddingTop=0,n.paddingBottom=0),n.opacity=this.state.visible?this._styles.notification.isVisible.opacity:this._styles.notification.isHidden.opacity),e.title&&(l=r.createElement("h4",{className:"notification-title",style:this._styles.title},e.title)),e.message&&(u=this.props.allowHTML?r.createElement("div",{className:"notification-message",style:this._styles.messageWrapper,dangerouslySetInnerHTML:this._allowHTML(e.message)}):r.createElement("div",{className:"notification-message",style:this._styles.messageWrapper},e.message)),e.dismissible&&(i=r.createElement("span",{className:"notification-dismiss",style:this._styles.dismiss},"×")),e.action&&(a=r.createElement("div",{className:"notification-action-wrapper",style:this._styles.actionWrapper},r.createElement("button",{ +className:"notification-action-button",onClick:this._defaultAction,style:this._styles.action},e.action.label))),r.createElement("div",{className:t,onClick:this._dismiss,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,style:n},l,u,i,a)}});e.exports=u},function(e,t){var n={positions:{tl:"tl",tr:"tr",tc:"tc",bl:"bl",br:"br",bc:"bc"},levels:{success:"success",error:"error",warning:"warning",info:"info"},notification:{title:null,message:null,level:null,position:"tr",autoDismiss:5,dismissible:!0,action:null}};e.exports=n},function(e,t){var n={Timer:function(e,t){var n,r,o=t;this.pause=function(){clearTimeout(n),o-=new Date-r},this.resume=function(){r=new Date,clearTimeout(n),n=setTimeout(e,o)},this.clear=function(){clearTimeout(n)},this.resume()}};e.exports=n},function(e,t){var n=320,r={success:{rgb:"94, 164, 0",hex:"#5ea400"},error:{rgb:"236, 61, 61",hex:"#ec3d3d"},warning:{rgb:"235, 173, 23",hex:"#ebad1a"},info:{rgb:"54, 156, 199",hex:"#369cc7"}},o="0.9",i={Wrapper:{},Containers:{DefaultStyle:{fontFamily:"inherit",position:"fixed",width:n,padding:"0 10px 10px 10px",zIndex:9998,WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",height:"auto"},tl:{top:"0px",bottom:"auto",left:"0px",right:"auto"},tr:{top:"0px",bottom:"auto",left:"auto",right:"0px"},tc:{top:"0px",bottom:"auto",margin:"0 auto",left:"50%",marginLeft:-(n/2)},bl:{top:"auto",bottom:"0px",left:"0px",right:"auto"},br:{top:"auto",bottom:"0px",left:"auto",right:"0px"},bc:{top:"auto",bottom:"0px",margin:"0 auto",left:"50%",marginLeft:-(n/2)}},NotificationItem:{DefaultStyle:{position:"relative",width:"100%",cursor:"pointer",borderRadius:"2px",fontSize:"13px",margin:"10px 0 0",padding:"10px",display:"block",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",opacity:0,transition:"0.3s ease-in-out",isHidden:{opacity:0},isVisible:{opacity:1}},success:{borderTop:"2px solid "+r.success.hex,backgroundColor:"#f0f5ea",color:"#4b583a",WebkitBoxShadow:"0 0 1px rgba("+r.success.rgb+","+o+")",MozBoxShadow:"0 0 1px rgba("+r.success.rgb+","+o+")",boxShadow:"0 0 1px rgba("+r.success.rgb+","+o+")"},error:{borderTop:"2px solid "+r.error.hex,backgroundColor:"#f4e9e9",color:"#412f2f",WebkitBoxShadow:"0 0 1px rgba("+r.error.rgb+","+o+")",MozBoxShadow:"0 0 1px rgba("+r.error.rgb+","+o+")",boxShadow:"0 0 1px rgba("+r.error.rgb+","+o+")"},warning:{borderTop:"2px solid "+r.warning.hex,backgroundColor:"#f9f6f0",color:"#5a5343",WebkitBoxShadow:"0 0 1px rgba("+r.warning.rgb+","+o+")",MozBoxShadow:"0 0 1px rgba("+r.warning.rgb+","+o+")",boxShadow:"0 0 1px rgba("+r.warning.rgb+","+o+")"},info:{borderTop:"2px solid "+r.info.hex,backgroundColor:"#e8f0f4",color:"#41555d",WebkitBoxShadow:"0 0 1px rgba("+r.info.rgb+","+o+")",MozBoxShadow:"0 0 1px rgba("+r.info.rgb+","+o+")",boxShadow:"0 0 1px rgba("+r.info.rgb+","+o+")"}},Title:{DefaultStyle:{fontSize:"14px",margin:"0 0 5px 0",padding:0,fontWeight:"bold"},success:{color:r.success.hex},error:{color:r.error.hex},warning:{color:r.warning.hex},info:{color:r.info.hex}},MessageWrapper:{DefaultStyle:{margin:0,padding:0}},Dismiss:{DefaultStyle:{fontFamily:"Arial",fontSize:"17px",position:"absolute",top:"4px",right:"5px",lineHeight:"15px",backgroundColor:"#dededf",color:"#ffffff",borderRadius:"50%",width:"14px",height:"14px",fontWeight:"bold",textAlign:"center"},success:{color:"#f0f5ea",backgroundColor:"#b0ca92"},error:{color:"#f4e9e9",backgroundColor:"#e4bebe"},warning:{color:"#f9f6f0",backgroundColor:"#e1cfac"},info:{color:"#e8f0f4",backgroundColor:"#a4becb"}},Action:{DefaultStyle:{background:"#ffffff",borderRadius:"2px",padding:"6px 20px",fontWeight:"bold",margin:"10px 0 0 0",border:0},success:{backgroundColor:r.success.hex,color:"#ffffff"},error:{backgroundColor:r.error.hex,color:"#ffffff"},warning:{backgroundColor:r.warning.hex,color:"#ffffff"},info:{backgroundColor:r.info.hex,color:"#ffffff"}},ActionWrapper:{DefaultStyle:{margin:0,padding:0}}};e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(489),i=r(o),a=n(330),s=r(a),l=i["default"].FluxMixin(s["default"]);l.componentWillMount=function(){this.flux=this.getFlux()},e.exports=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=(r(o),{componentWillMount:function(){var e=this;if(!(this.props.flux||this.context&&this.context.flux)){var t=this.constructor.displayName?" of "+this.constructor.displayName:"";throw new Error("Could not find flux on this.props or this.context"+t)}var n=this.props.flux||this.context&&this.context.flux;n.store("ConfigStore").on("change",this._setConfigFromFlux),this.tableConfig=function(){return e.config.tablesById[e.props.table]},this._setConfigFromFlux()},componentWillUnmount:function(){var e=this.props.flux||this.context&&this.context.flux;e.store("ConfigStore").removeListener("change",this._setStateFromFlux)},_setConfigFromFlux:function(){var e=this.props.flux||this.context&&this.context.flux;this.config=e.store("ConfigStore").getState(),this.forceUpdate()}});e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(597),i=r(o);e.exports=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.shallowEqualImmutable=t.shouldComponentUpdate=t.immutableRenderDecorator=t["default"]=void 0;var o=n(598),i=r(o),a=n(599),s=r(a),l=n(600),u=r(l),c=n(601),f=r(c);t["default"]=u["default"],t.immutableRenderDecorator=f["default"],t.shouldComponentUpdate=i["default"],t.shallowEqualImmutable=s["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return!(0,a["default"])(this.props,e)||!(0,a["default"])(this.state,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(599),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(e===t||l(e,t))return!0;if("object"!==("undefined"==typeof e?"undefined":i(e))||null===e||"object"!==("undefined"==typeof t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),a=0;a1&&d.reverse(),S&&C0){if(++e>=i)return n}else e=0;return r(n,s)}}();e.exports=s},function(e,t){function n(e){var t=e;return t.placeholder}e.exports=n},function(e,t,n){function r(e,t){for(var n=e.length,r=a(t.length,n),s=o(e);r--;){var l=t[r];e[r]=i(l,n)?s[l]:void 0}return e}var o=n(639),i=n(643),a=Math.min;e.exports=r},function(e,t){function n(e,t){return t=null==t?r:t,!!t&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e100&&t.y>50&&this.props.onDragAway?(this.props.onDragAway(e,{x:t.x,y:t.y}),!1):(this.refs["drag_"+e].setState({dragging:!1,x:0,y:0}),void this.setState({dragging:!1}))},renderTab:function(e){var t=this,n=this.state,r=n.icons,o=n.titles,i=e.props.compId,s={tab:!0,active:i===this.props.activeTab,inactive:i!==this.props.activeTab,dragging:i===this.state.dragging},l="";this.props.onClose&&(l=a["default"].createElement(y["default"],{className:"action close",name:"close",onClick:this.handleClose.bind(this,i)}));var u=a["default"].createElement("div",{className:(0,c["default"])(s),onClick:this.handleClick.bind(this,i)},r[i]?a["default"].createElement(y["default"],{name:r[i]}):null,a["default"].createElement("div",{className:"title"},o[i]),this.props.unclosableTab!==i?l:null);return this.props.onDragAway&&this.props.unclosableTab!==i&&(u=a["default"].createElement(x["default"],{ref:"drag_"+i,key:i,defaultPosition:{x:0,y:0},onStop:function(){return t.handleDragStop(i)},onDrag:function(){return t.setState({dragging:i})}},u)),u},renderPane:function(e){return a["default"].cloneElement(e,{active:e.props.compId===this.props.activeTab,key:e.props.compId,ref:e.props.compId})},render:function(){var e=Object.assign({},this.props);return delete e.unclosableTab,delete e.activeTab,delete e.onSwitch,delete e.onClose,delete e.onAddTab,delete e.onDragAway,a["default"].createElement("div",o({},e,{className:"tabbed-area"}),a["default"].createElement("div",{className:"tabs"},l["default"].map(this.props.children,this.renderTab,this),this.props.onAddTab?a["default"].createElement(y["default"],{name:"plus-circle",onClick:this.handleAddTab}):null),a["default"].createElement("div",{className:"tab-content"},l["default"].map(this.props.children,this.renderPane,this)))}});e.exports=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return a["default"].Children.map(e,function(e){return a["default"].isValidElement(e)?t.call(n,e):e})}var i=n(330),a=r(i);e.exports={map:o}},function(e,t,n){var r,o;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ +!function(){"use strict";function n(){for(var e=[],t=0;t-1}var o=n(660);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}var o=n(660);e.exports=r},function(e,t,n){function r(){this.__data__=new o}var o=n(657);e.exports=r},function(e,t){function n(e){return this.__data__["delete"](e)}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;return n instanceof o&&n.__data__.length==a&&(n=this.__data__=new i(n.__data__)),n.set(e,t),this}var o=n(657),i=n(670),a=200;e.exports=r},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++tf))return!1;var h=u.get(e);if(h)return h==t;var d=-1,m=!0,v=l&a?new o:void 0;for(u.set(e,t);++d-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&l.call(e)==a}var o=n(637),i=n(305),a="[object String]",s=Object.prototype,l=s.toString;e.exports=r},function(e,t){function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t,n){function r(e){return g.call(e)}var o=n(712),i=n(679),a=n(713),s=n(714),l=n(608),u=n(616),c="[object Map]",f="[object Object]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",v=Object.prototype,g=v.toString,y=u(o),b=u(i),x=u(a),_=u(s),w=u(l);(o&&r(new o(new ArrayBuffer(1)))!=m||i&&r(new i)!=c||a&&r(a.resolve())!=p||s&&r(new s)!=h||l&&r(new l)!=d)&&(r=function(e){var t=g.call(e),n=t==f?e.constructor:void 0,r=n?u(n):void 0;if(r)switch(r){case y:return m;case b:return c;case x:return p;case _:return h;case w:return d}return t}),e.exports=r},function(e,t,n){var r=n(609),o=n(614),i=r(o,"DataView");e.exports=i},function(e,t,n){var r=n(609),o=n(614),i=r(o,"Promise");e.exports=i},function(e,t,n){var r=n(609),o=n(614),i=r(o,"Set");e.exports=i},function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!M[D.call(e)]}var o=n(708),i=n(305),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",p="[object Map]",h="[object Number]",d="[object Object]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",T="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",P="[object Uint32Array]",M={};M[_]=M[w]=M[T]=M[C]=M[E]=M[k]=M[S]=M[A]=M[P]=!0,M[a]=M[s]=M[b]=M[l]=M[x]=M[u]=M[c]=M[f]=M[p]=M[h]=M[d]=M[m]=M[v]=M[g]=M[y]=!1;var O=Object.prototype,D=O.toString;e.exports=r},function(e,t,n){function r(e,t){var n=s(e)?o:i;return n(e,a(t,3))}var o=n(717),i=n(718),a=n(723),s=n(637);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=e?e.length:0;++n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t=t?e:t)),e}e.exports=n},function(e,t,n){function r(e){return n(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./error.svg":748,"./genomebrowser.png":749,"./panoptes-logo.png":750,"./spinner.svg":751};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=747},function(e,t,n){e.exports=n.p+"43159b383933d36c20b00405971cd4eb.svg"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAuCAYAAAC4e0AJAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQffCREOJwFtVfkoAAAJnUlEQVRo3tWZe3BV1RXGf2ufe5NwIYEAEl7hoSBEsZbHFJXR3HMTMcpYLFO1INjWovhAKg9BdOxMEWtHZNQRHC10piN0rFOpM1B1KpBzo0WQWl+jEor1UUBeAU1CE8g9Z6/+cc5NLk77R4CbtufOnruTuXuftb+19lrft7eoKv+vT6yzA0RivcD2BBP+Cf/Qgm5KvyHC1wditAFxIBN9k9PPAAUCQSJoPLQrWLRwIWvXrO2naDcAwbRa9Q/nzXigAszIsKs9BVbbk80qiV6j8YMEYGhDMAptQGDBMdAmYFBOOgGmqbGkuMffhwwZClANxgFQbCOwMY/G21Yw/cEC0t1CfxnuHqC4/HMa95dCEP3OCZ1jglOHq8KAcQ3Sb4zUjB+qivQHG4s82ZTXsAEOAAMEIwpW0GvmTf322oEDB7YuWbK0FNSCYABrABvtKSNRX3hkTk3b4cOHefzxJ4aBlEeGA7zbqRDu7IatcqupTaefACL0aakYXXFLfX39ctBxioiAo6gRRJX2+RUkcoNuqRhdsbK+fve9ih0fGm8BM1/VP5A35FUA+BPYe0P0re6q3zUbzAsgPQQdCKZBCA6CAIpgUOxg0F6COaDIS7vqd40Ec3W4UUUU3nfd5IF8hw2um3zV82pnKnZA9K8ZArsnXjLxnkmTLmPlk0/FINYd1ACiGB8/03zPPXfrju3b2fHWWwkwL0VoowQKZmVn7TCdN12jxv25wxWW79ixfer1N9yAZk74FHUfjymqwsSriRdfpJrRmpoadr61c4xgXgyTZ3u4rE65yb3S2bTd2ZhPparb+56XniSwHAQVVdQmBPOKOoWvIaaRgngRxvicsC34xxPgXyyYuSrSgmazkHnBdZPPZuesrd2ST+RPCZ9til2kBE2hM0yzYr9L0Poz/JZv0dK8n5bmL4zfNEoIlgE/VWwTEWCCeSbXcLoS+WzAeF5db7B3AlcIxlFsAZhuYAsFiQMtijaCsWAFTD2wyk1WfoycGiydQT7GWXhcN3kMdLnneZco9udhUicTbkabRVk0TD9rXLfyeRA4Q15lOCuPkvbqLgV+CCYmHXMnwCTAGCWb8M0kz/MmolFFaE8A7Ymga433PO8nCg8L5jxBe4GWCboRuAqYLOhGQQcAxcBI4BEv7d16pu81Z8HwJWBuAhuADgB5Q41znTqxJykoaaKgpFmdwicFZwrYbYIOBnww02u99P1da7xqe0t76YVgrgJrBVMKulpjBSvpVdFCYfcaCKZDMJ3Cosl28ISvwPmFwBNAaZTgqz3PWyp0fLoE+XS67nrFThEIBNNT0eeeWrXqGc207KXli2FkgiKMtmG0DT8o4mj9uaqZw6ueXr1GkN8ilID1BTPZ89LTT2+rqXaqpdwqBGcQSC3IVnC2gyzdsOElGHypUFYm0N+QKI/RZ3DYEn1jlJUZKBNGXC0bNvwBMAsFZ1s4j1MLMtR1U52yJXZai8UuiBznCHrwxQ0bHpk27TqY+ePvoUEf4oFPxgnIWIkogHLMxIlj2Lvj4LRpr2x6evXqlXfeddeVQEHEThcC8/JKzNLpusGCGachwYwr+uhlkyZF+qPoGJmTbcQdgx8JEoKQxsRQEMWJHwUYfu4wgBXAAxEQY9Je3VDgi/xRYrg8VBUGhWbBvLtk8RImTJgALV+9jc0omGg3ZY0HfCdMSAgrHl3Bm9u3A/I6yHyB7opVhSuAdXmjByKxB8BWRWi9V5VKLait3fqgQpWEMi7oYJ9CVoxEmUQ1lOA9FFl3ZXX1rzdveW0lmLECorBV1V+eT3pQFJV6BZuxNkDRkSFvobijkiqCRDbZaBHtFFiBc/3Aj84WLOE4U5hvMfJ1Tqm/MJ2uiwvOLYqeo9iSUGwZNAyrf5eRjWIbXDfV4HlpAVORI+6P5/fcBvtXxUyJEEwo9juum9rmeekZYIaGrPE/VRurEep/CWPbXhZShvbFvZNX4xX+DLY54imAuQV0G9hKMMWC9NeQCgehh5RoMTFwmiBoEEwBsE4wt4fesQAngHRei5TrphBkclRYsm1xZWUSwbkQTFl4rmOGYmJDIDYk9Ig5h7C4XZCsdAFnfs74WpApbrJzRcp0PmwE10299g0X17xe98a8RYsWfqQaHKJvuU9x31IKS3rTraQ38dISxl/TrOrvnzXr5o/TdXV3gL02OpUC+MBNui/nnZjlsO6lYA7kTDPjscdWzhSJl6P0wQ+Go5lx+JmxxGUYe4+UiMRK169bPxtkBh3hcghY0uUyMO2lSxS7Ijy7tD5IH9C/gfwSE/+QWDwMd79NsZnRgiwCLtAwqxjgU2CB67pNHTJwa9fw+WSyskkwtwObww2pxwRTDvobbNvdtLUmpK2lSGxmnsDzih2p0AzGCKYWzG2um2o63fefmQDPjhXwPO9SwfxAsRdlMREoiEKtLSdMPgLWua67syOjKl2EfI7elFwR7m5X+OzUX9q20HCbNRxgn+umdoZTnJkAPyunB55X54K9G+j1DWy+BFqAETneqPG82pRg1iaTlb//72rYtHcr2AdDw7Opz74Odq7rVs503eRtYGYBL0feUDBxhTu8tPfQmbz7NGK+Kld8zweujXCwAkWKfRj4DMxEgX4aXhzsA/uqwCjgPoVuYEwUSu+4bmpRNu7zHPMhdfG8uu+HhhsEE0h4+Hjj5MmTXxVkKehi0B8BNwn2AUFunTr1um0K04Gj0QkCwDjPq53fJRrWdasApyynrG8G8zZI7z17PuHIkQZCVM3FYMaCGW8wY9Y9t56m5mbq63cjOI5gNoNsyaEZFZ3VsKd39AG3dfjBFAF3ptPpYyNGnMc5g84fQnH/MhKlx0j0PkKi9yEbL/lq1tz7BpT0Lh8+atT5vPfB+wGYO+QU/m7m0smjj9NQUqYHmLVZiitI0+zZs+f8as2zSKLvWGxmPKqFWGwOPQ6loehxCovfbG34/JMbrr+RP27auAzk/A5maRao+l/mMVWaEWCPZO9hFV2fqs6qQudDrOwh7hhQyGSiu9joEtaJBQTBiaLCApJukk2bNm4UuDlcoAHshcCX+UQ+CeaKMGS0RJDFlsuVxIeDOHmyG7HwjhMCxXckhCcIxbgPOMQo7HGUhG3g0GED8jBoSyhS7B5V+7t85vmTwOGo7V/20DKr6ilBUExMywjs4LBJOdLeD7/FDkK1L62tJXrwoM6ZMycQzKForiNgTuS5wprdYBuidQf79u/nxMk2EPspfrAPCqNd50MsZ3rfz14nKrHEicbGJo7/8zhKsDHMTgC2Ja8b9n/p+RdRP/MwtKDObQAAAABJRU5ErkJggg=="},function(e,t,n){e.exports=n.p+"a239f00c1c044ecbb6878e0cba0ee8fb.png"},function(e,t,n){e.exports=n.p+"c0bcb26dadc1d1cecb06ce656ac08591.svg"},function(e,t,n){!function(t,r){e.exports=r(n(330),n(357))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(1)["default"],e.exports.DraggableCore=n(9)["default"]},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){"undefined"!=typeof e.SVGElement&&h["default"].findDOMNode(this)instanceof e.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e={},t=null,n=Boolean(this.props.position),r=!n||this.state.dragging,o=this.props.position||this.props.defaultPosition,i={x:(0,g.canDragX)(this)&&r?this.state.x:o.x,y:(0,g.canDragY)(this)&&r?this.state.y:o.y};this.state.isElementSVG?t=(0,v.createSVGTransform)(i):e=(0,v.createCSSTransform)(i);var a=(0,m["default"])(this.props.children.props.className||"","react-draggable",{"react-draggable-dragging":this.state.dragging,"react-draggable-dragged":this.state.dragged});return f["default"].createElement(x["default"],s({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),f["default"].cloneElement(f["default"].Children.only(this.props.children),{className:a,style:s({},this.props.children.props.style,e),transform:t}))}}]),n}(f["default"].Component);T.displayName="Draggable",T.propTypes=s({},x["default"].propTypes,{axis:c.PropTypes.oneOf(["both","x","y","none"]),bounds:c.PropTypes.oneOfType([c.PropTypes.shape({left:c.PropTypes.number,right:c.PropTypes.number,top:c.PropTypes.number,bottom:c.PropTypes.number}),c.PropTypes.string,c.PropTypes.oneOf([!1])]),defaultPosition:c.PropTypes.shape({x:c.PropTypes.number,y:c.PropTypes.number}),position:c.PropTypes.shape({x:c.PropTypes.number,y:c.PropTypes.number}),className:y.dontSetMe,style:y.dontSetMe,transform:y.dontSetMe}),T.defaultProps=s({},x["default"].defaultProps,{axis:"both",bounds:!1,defaultPosition:{x:0,y:0},position:null}),t["default"]=T}).call(t,function(){return this}())},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){var r,o;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ +!function(){"use strict";function n(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t>",x={listOf:s,mapOf:l,orderedMapOf:u,setOf:c,orderedSetOf:f,stackOf:p,iterableOf:h,recordOf:d,shape:v,contains:v,mapContains:g,list:i("List",y.List.isList),map:i("Map",y.Map.isMap),orderedMap:i("OrderedMap",y.OrderedMap.isOrderedMap),set:i("Set",y.Set.isSet),orderedSet:i("OrderedSet",y.OrderedSet.isOrderedSet),stack:i("Stack",y.Stack.isStack),seq:i("Seq",y.Seq.isSeq),record:i("Record",function(e){return e instanceof y.Record}),iterable:i("Iterable",y.Iterable.isIterable)};e.exports=x},function(e,t,n){"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n(758)["default"],e.exports.ResizableBox=n(760)["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var i=y++;n=g||(g=s(t)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"); +var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var h={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=d(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t=0&&!e.isPropagationStopped();n--){var r=t[n](e);r===!1&&(e.stopPropagation(),e.preventDefault())}}var i=n(767),a=n(474),s={};t.activate=function(e){return e||(e="keyup"),s[e]||(s[e]=i(document,e,r)),t},t.disable=function(e){e||(e="keyup"),s[e]&&(s[e].remove(),s[e]=null)};var l=[];t.addHandler=function(e){l.push(e)},t.removeHandler=function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},t.Mixin=function(e){return{componentDidMount:function(){var t=this[e];l.push(t)},componentWillUnmount:function(){var t=this[e],n=l.indexOf(t);l.splice(n,1)}}}},function(e,t){"use strict";function n(e,t,n){if(null==e)throw new TypeError("target must be provided");if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("eventType must be a string");var r=t.split(" ").filter(Boolean);if(0===r.length)throw new Error("eventType must not be blank");if(e.addEventListener)return r.forEach(function(t){e.addEventListener(t,n,!1)}),{remove:function(){r.forEach(function(t){e.removeEventListener(t,n,!1)})}};if(e.attachEvent)return r.forEach(function(t){e.attachEvent("on"+t,n)}),{remove:function(){r.forEach(function(t){e.detachEvent("on"+t,n)})}};throw new TypeError("target must have addEventListener or attachEvent")}e.exports=n},function(e,t){"use strict";function n(e){return o[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)}function r(e){for(var t in o)if(o.hasOwnProperty(t)&&o[t]===e)return t;return String.fromCharCode(e).toLowerCase()}for(var o={ctrl:17,control:17,alt:18,option:18,shift:16,windows:91,command:91,esc:27,escape:27,"`":192,"-":189,"=":187,backspace:8,tab:9,"\\":220,"[":219,"]":221,";":186,"'":222,enter:13,"return":13,",":188,".":190,"/":191,space:32,pause:19,"break":19,insert:45,"delete":46,home:36,end:35,pageup:33,pagedown:34,left:37,up:38,right:39,down:40,capslock:20,numlock:144,scrolllock:145},i=1;i<20;i++)o["f"+i]=111+i;e.exports=function(e){return"string"==typeof e?n(e):"number"==typeof e?r(e):void 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(770),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.baseTheme;return{root:{position:"relative",boxSizing:"border-box",overflow:"visible",transition:v["default"].easeOut(),padding:n.spacing.iconSize/2,width:2*n.spacing.iconSize,height:2*n.spacing.iconSize,fontSize:0},tooltip:{boxSizing:"border-box"},overlay:{position:"relative",top:0,width:"100%",height:"100%",background:n.palette.disabledColor},disabled:{color:n.palette.disabledColor,fill:n.palette.disabledColor,cursor:"not-allowed"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){if(!S){var e=document.createElement("style");e.innerHTML="\n button::-moz-focus-inner,\n input::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n ",document.body.appendChild(e),S=!0}}function u(){A||(y["default"].on(window,"keydown",function(e){P="tab"===(0,x["default"])(e)}),A=!0)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0;i--)this.on(e,r[i],o)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(){n.call(e)})},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)},isKeyboard:function(e){return["keydown","keypress","keyup"].indexOf(e.type)!==-1}}},function(e,t){t=e.exports=function(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return i[e];var o=String(e),a=n[o.toLowerCase()];if(a)return a;var a=r[o.toLowerCase()];return a?a:1===o.length?o.charCodeAt(0):void 0};var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,"break":19,caps:20,"return":13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*! + * Programatically add the following + */ +for(o=97;o<123;o++)n[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)n[o-48]=o;for(o=1;o<13;o++)n["f"+o]=o+111;for(o=0;o<10;o++)n["numpad "+o]=o+96;var i=t.names=t.title={};for(o in n)i[n[o]]=o;for(var a in r)n[a]=r[a]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t300)return void r.stopListeningForScrollAbort();var n=Math.abs(e.touches[0].clientY-r.firstTouchY),i=Math.abs(e.touches[0].clientX-r.firstTouchX);if(n>6||i>6){var a=r.state.ripples,s=a[0],l=h["default"].cloneElement(s,{aborted:!0});a=w(a),a=[].concat(o(a),[l]),r.setState({ripples:a},function(){r.end()})}},r.ignoreNextMouseDown=!1,r.state={hasRipples:!1,nextKey:0,ripples:[]},r}return s(t,e),u(t,[{key:"start",value:function(e,t){var n=this.context.muiTheme.ripple;if(this.ignoreNextMouseDown&&!t)return void(this.ignoreNextMouseDown=!1);var r=this.state.ripples;r=[].concat(o(r),[h["default"].createElement(_["default"],{key:this.state.nextKey,style:this.props.centerRipple?{}:this.getRippleStyle(e),color:this.props.color||n.color,opacity:this.props.opacity,touchGenerated:t})]),this.ignoreNextMouseDown=t,this.setState({hasRipples:!0,nextKey:this.state.nextKey+1,ripples:r})}},{key:"end",value:function(){var e=this.state.ripples;this.setState({ripples:w(e)}),this.props.abortOnScroll&&this.stopListeningForScrollAbort()}},{key:"startListeningForScrollAbort",value:function(e){this.firstTouchY=e.touches[0].clientY,this.firstTouchX=e.touches[0].clientX,document.body.addEventListener("touchmove",this.handleTouchMove)}},{key:"stopListeningForScrollAbort",value:function(){document.body.removeEventListener("touchmove",this.handleTouchMove)}},{key:"getRippleStyle",value:function(e){var t={},n=m["default"].findDOMNode(this),r=n.offsetHeight,o=n.offsetWidth,i=b["default"].offset(n),a=e.touches&&e.touches.length,s=a?e.touches[0].pageX:e.pageX,l=a?e.touches[0].pageY:e.pageY,u=s-i.left,c=l-i.top,f=this.calcDiag(u,c),p=this.calcDiag(o-u,c),h=this.calcDiag(o-u,r-c),d=this.calcDiag(u,r-c),v=Math.max(f,p,h,d),g=2*v,y=u-v,x=c-v;return t.height=g+"px",t.width=g+"px",t.top=x+"px",t.left=y+"px",t}},{key:"calcDiag",value:function(e,t){return Math.sqrt(e*e+t*t)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.style,r=this.state,o=r.hasRipples,i=r.ripples,a=this.context.muiTheme.prepareStyles,s=void 0;if(o){var l=(0,f["default"])({height:"100%",width:"100%",position:"absolute",top:0,left:0,overflow:"hidden"},n);s=h["default"].createElement(g["default"],{style:a(l)},i)}return h["default"].createElement("div",{onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onMouseLeave:this.handleMouseLeave,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},s,t)}}]),t}(p.Component);T.propTypes={abortOnScroll:p.PropTypes.bool,centerRipple:p.PropTypes.bool,children:p.PropTypes.node,color:p.PropTypes.string,opacity:p.PropTypes.number,style:p.PropTypes.object},T.defaultProps={abortOnScroll:!0},T.contextTypes={muiTheme:p.PropTypes.object.isRequired},t["default"]=T},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={isDescendant:function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.color,o=e.hoverColor,i=t.muiTheme.baseTheme,a=r||i.palette.textColor,s=o||a;return{root:{color:n.hovered?s:a,position:"relative",fontSize:i.spacing.iconSize,display:"inline-block",userSelect:"none",transition:v["default"].easeOut()}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.verticalPosition,o=e.horizontalPosition,i=e.touch?10:0,a=e.touch?-20:-10,s="bottom"===r?14+i:-14-i,l=t.muiTheme,u=l.baseTheme,c=l.zIndex,f=l.tooltip,p={root:{position:"absolute",fontFamily:u.fontFamily,fontSize:"10px",lineHeight:"22px",padding:"0 8px",zIndex:c.tooltip,color:f.color,overflow:"hidden",top:-1e4,borderRadius:2,userSelect:"none",opacity:0,right:"left"===o?12:null,left:"center"===o?(n.offsetWidth-48)/2*-1:null,transition:v["default"].easeOut("0ms","top","450ms")+", "+v["default"].easeOut("450ms","transform","0ms")+", "+v["default"].easeOut("450ms","opacity","0ms")},label:{position:"relative",whiteSpace:"nowrap"},ripple:{position:"absolute",left:"center"===o?"50%":"left"===o?"100%":"0%",top:"bottom"===r?0:"100%",transform:"translate(-50%, -50%)",borderRadius:"50%",backgroundColor:"transparent",transition:v["default"].easeOut("0ms","width","450ms")+", "+v["default"].easeOut("0ms","height","450ms")+", "+v["default"].easeOut("450ms","backgroundColor","0ms")},rootWhenShown:{top:"top"===r?a:36,opacity:.9,transform:"translate3d(0px, "+s+"px, 0px)",transition:v["default"].easeOut("0ms","top","0ms")+", "+v["default"].easeOut("450ms","transform","0ms")+", "+v["default"].easeOut("450ms","opacity","0ms")},rootWhenTouched:{fontSize:"14px",lineHeight:"32px",padding:"0 16px"},rippleWhenShown:{backgroundColor:f.rippleBackgroundColor,transition:v["default"].easeOut("450ms","width","0ms")+", "+v["default"].easeOut("450ms","height","0ms")+", "+v["default"].easeOut("450ms","backgroundColor","0ms")}};return p}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++rn?n:e}function r(e){var t=e.type,n=e.values;if(t.indexOf("rgb")>-1)for(var r=0;r<3;r++)n[r]=parseInt(n[r]);var o=void 0;return o=t.indexOf("hsl")>-1?e.type+"("+n[0]+", "+n[1]+"%, "+n[2]+"%":e.type+"("+n[0]+", "+n[1]+", "+n[2],o+=4===n.length?", "+e.values[3]+")":")"}function o(e){if(4===e.length){for(var t="#",n=1;n-1){var t=e.values.map(function(e){return e/=255,e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}if(e.type.indexOf("hsl")>-1)return e.values[2]/100}function l(e){var t=arguments.length<=1||void 0===arguments[1]?.15:arguments[1];return s(e)>.5?c(e,t):f(e,t)}function u(e,t){return e=i(e),t=n(t,0,1),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,r(e)}function c(e,t){if(e=i(e),t=n(t,0,1),e.type.indexOf("hsl")>-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")>-1)for(var o=0;o<3;o++)e.values[o]*=1-t;return r(e)}function f(e,t){if(e=i(e),t=n(t,0,1),e.type.indexOf("hsl")>-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")>-1)for(var o=0;o<3;o++)e.values[o]+=(255-e.values[o])*t;return r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.convertColorToString=r,t.convertHexToRGB=o,t.decomposeColor=i,t.getContrastRatio=a,t.getLuminance=s,t.emphasize=l,t.fade=u,t.darken=c,t.lighten=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(837),i=n(835),a=n(838),s=r(a);t["default"]={spacing:s["default"],fontFamily:"Roboto, sans-serif",palette:{primary1Color:o.cyan500,primary2Color:o.cyan700,primary3Color:o.grey400,accent1Color:o.pinkA200,accent2Color:o.grey100,accent3Color:o.grey500,textColor:o.darkBlack,secondaryTextColor:(0,i.fade)(o.darkBlack,.54),alternateTextColor:o.white,canvasColor:o.white,borderColor:o.grey300,disabledColor:(0,i.fade)(o.darkBlack,.3),pickerHeaderColor:o.cyan500,clockCircleColor:(0,i.fade)(o.darkBlack,.07),shadowColor:o.fullBlack}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.red50="#ffebee",t.red100="#ffcdd2",t.red200="#ef9a9a",t.red300="#e57373",t.red400="#ef5350",t.red500="#f44336",t.red600="#e53935",t.red700="#d32f2f",t.red800="#c62828",t.red900="#b71c1c",t.redA100="#ff8a80",t.redA200="#ff5252",t.redA400="#ff1744",t.redA700="#d50000",t.pink50="#fce4ec",t.pink100="#f8bbd0",t.pink200="#f48fb1",t.pink300="#f06292",t.pink400="#ec407a",t.pink500="#e91e63",t.pink600="#d81b60",t.pink700="#c2185b",t.pink800="#ad1457",t.pink900="#880e4f",t.pinkA100="#ff80ab",t.pinkA200="#ff4081",t.pinkA400="#f50057",t.pinkA700="#c51162",t.purple50="#f3e5f5",t.purple100="#e1bee7",t.purple200="#ce93d8",t.purple300="#ba68c8",t.purple400="#ab47bc",t.purple500="#9c27b0",t.purple600="#8e24aa",t.purple700="#7b1fa2",t.purple800="#6a1b9a",t.purple900="#4a148c",t.purpleA100="#ea80fc",t.purpleA200="#e040fb",t.purpleA400="#d500f9",t.purpleA700="#aa00ff",t.deepPurple50="#ede7f6",t.deepPurple100="#d1c4e9",t.deepPurple200="#b39ddb",t.deepPurple300="#9575cd",t.deepPurple400="#7e57c2",t.deepPurple500="#673ab7",t.deepPurple600="#5e35b1",t.deepPurple700="#512da8",t.deepPurple800="#4527a0",t.deepPurple900="#311b92",t.deepPurpleA100="#b388ff",t.deepPurpleA200="#7c4dff",t.deepPurpleA400="#651fff",t.deepPurpleA700="#6200ea",t.indigo50="#e8eaf6",t.indigo100="#c5cae9",t.indigo200="#9fa8da",t.indigo300="#7986cb",t.indigo400="#5c6bc0",t.indigo500="#3f51b5",t.indigo600="#3949ab",t.indigo700="#303f9f",t.indigo800="#283593",t.indigo900="#1a237e",t.indigoA100="#8c9eff",t.indigoA200="#536dfe",t.indigoA400="#3d5afe",t.indigoA700="#304ffe",t.blue50="#e3f2fd",t.blue100="#bbdefb",t.blue200="#90caf9",t.blue300="#64b5f6",t.blue400="#42a5f5",t.blue500="#2196f3",t.blue600="#1e88e5",t.blue700="#1976d2",t.blue800="#1565c0",t.blue900="#0d47a1",t.blueA100="#82b1ff",t.blueA200="#448aff",t.blueA400="#2979ff",t.blueA700="#2962ff",t.lightBlue50="#e1f5fe",t.lightBlue100="#b3e5fc",t.lightBlue200="#81d4fa",t.lightBlue300="#4fc3f7",t.lightBlue400="#29b6f6",t.lightBlue500="#03a9f4",t.lightBlue600="#039be5",t.lightBlue700="#0288d1",t.lightBlue800="#0277bd",t.lightBlue900="#01579b",t.lightBlueA100="#80d8ff",t.lightBlueA200="#40c4ff",t.lightBlueA400="#00b0ff",t.lightBlueA700="#0091ea",t.cyan50="#e0f7fa",t.cyan100="#b2ebf2",t.cyan200="#80deea",t.cyan300="#4dd0e1",t.cyan400="#26c6da",t.cyan500="#00bcd4",t.cyan600="#00acc1",t.cyan700="#0097a7",t.cyan800="#00838f",t.cyan900="#006064",t.cyanA100="#84ffff",t.cyanA200="#18ffff",t.cyanA400="#00e5ff",t.cyanA700="#00b8d4",t.teal50="#e0f2f1",t.teal100="#b2dfdb",t.teal200="#80cbc4",t.teal300="#4db6ac",t.teal400="#26a69a",t.teal500="#009688",t.teal600="#00897b",t.teal700="#00796b",t.teal800="#00695c",t.teal900="#004d40",t.tealA100="#a7ffeb",t.tealA200="#64ffda",t.tealA400="#1de9b6",t.tealA700="#00bfa5",t.green50="#e8f5e9",t.green100="#c8e6c9",t.green200="#a5d6a7",t.green300="#81c784",t.green400="#66bb6a",t.green500="#4caf50",t.green600="#43a047",t.green700="#388e3c",t.green800="#2e7d32",t.green900="#1b5e20",t.greenA100="#b9f6ca",t.greenA200="#69f0ae",t.greenA400="#00e676",t.greenA700="#00c853",t.lightGreen50="#f1f8e9",t.lightGreen100="#dcedc8",t.lightGreen200="#c5e1a5",t.lightGreen300="#aed581",t.lightGreen400="#9ccc65",t.lightGreen500="#8bc34a",t.lightGreen600="#7cb342",t.lightGreen700="#689f38",t.lightGreen800="#558b2f",t.lightGreen900="#33691e",t.lightGreenA100="#ccff90",t.lightGreenA200="#b2ff59",t.lightGreenA400="#76ff03",t.lightGreenA700="#64dd17",t.lime50="#f9fbe7",t.lime100="#f0f4c3",t.lime200="#e6ee9c",t.lime300="#dce775",t.lime400="#d4e157",t.lime500="#cddc39",t.lime600="#c0ca33",t.lime700="#afb42b",t.lime800="#9e9d24",t.lime900="#827717",t.limeA100="#f4ff81",t.limeA200="#eeff41",t.limeA400="#c6ff00",t.limeA700="#aeea00",t.yellow50="#fffde7",t.yellow100="#fff9c4",t.yellow200="#fff59d",t.yellow300="#fff176",t.yellow400="#ffee58",t.yellow500="#ffeb3b",t.yellow600="#fdd835",t.yellow700="#fbc02d",t.yellow800="#f9a825",t.yellow900="#f57f17",t.yellowA100="#ffff8d",t.yellowA200="#ffff00",t.yellowA400="#ffea00",t.yellowA700="#ffd600",t.amber50="#fff8e1",t.amber100="#ffecb3",t.amber200="#ffe082",t.amber300="#ffd54f",t.amber400="#ffca28",t.amber500="#ffc107",t.amber600="#ffb300",t.amber700="#ffa000",t.amber800="#ff8f00",t.amber900="#ff6f00",t.amberA100="#ffe57f",t.amberA200="#ffd740",t.amberA400="#ffc400",t.amberA700="#ffab00",t.orange50="#fff3e0",t.orange100="#ffe0b2",t.orange200="#ffcc80",t.orange300="#ffb74d",t.orange400="#ffa726",t.orange500="#ff9800",t.orange600="#fb8c00",t.orange700="#f57c00",t.orange800="#ef6c00",t.orange900="#e65100",t.orangeA100="#ffd180",t.orangeA200="#ffab40",t.orangeA400="#ff9100",t.orangeA700="#ff6d00",t.deepOrange50="#fbe9e7",t.deepOrange100="#ffccbc",t.deepOrange200="#ffab91",t.deepOrange300="#ff8a65",t.deepOrange400="#ff7043",t.deepOrange500="#ff5722",t.deepOrange600="#f4511e",t.deepOrange700="#e64a19",t.deepOrange800="#d84315",t.deepOrange900="#bf360c",t.deepOrangeA100="#ff9e80",t.deepOrangeA200="#ff6e40",t.deepOrangeA400="#ff3d00",t.deepOrangeA700="#dd2c00",t.brown50="#efebe9",t.brown100="#d7ccc8",t.brown200="#bcaaa4",t.brown300="#a1887f",t.brown400="#8d6e63",t.brown500="#795548",t.brown600="#6d4c41",t.brown700="#5d4037",t.brown800="#4e342e",t.brown900="#3e2723",t.blueGrey50="#eceff1",t.blueGrey100="#cfd8dc",t.blueGrey200="#b0bec5",t.blueGrey300="#90a4ae",t.blueGrey400="#78909c",t.blueGrey500="#607d8b",t.blueGrey600="#546e7a",t.blueGrey700="#455a64",t.blueGrey800="#37474f",t.blueGrey900="#263238",t.grey50="#fafafa",t.grey100="#f5f5f5",t.grey200="#eeeeee",t.grey300="#e0e0e0",t.grey400="#bdbdbd",t.grey500="#9e9e9e",t.grey600="#757575",t.grey700="#616161",t.grey800="#424242",t.grey900="#212121",t.black="#000000",t.white="#ffffff",t.transparent="rgba(0, 0, 0, 0)",t.fullBlack="rgba(0, 0, 0, 1)",t.darkBlack="rgba(0, 0, 0, 0.87)",t.lightBlack="rgba(0, 0, 0, 0.54)",t.minBlack="rgba(0, 0, 0, 0.26)",t.faintBlack="rgba(0, 0, 0, 0.12)",t.fullWhite="rgba(255, 255, 255, 1)",t.darkWhite="rgba(255, 255, 255, 0.87)",t.lightWhite="rgba(255, 255, 255, 0.54)"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={iconSize:24,desktopGutter:24,desktopGutterMore:32,desktopGutterLess:16,desktopGutterMini:8,desktopKeylineIncrement:64,desktopDropDownMenuItemHeight:32,desktopDropDownMenuFontSize:15,desktopDrawerMenuItemHeight:48,desktopSubheaderHeight:48,desktopToolbarHeight:56}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={menu:1e3,appBar:1100,drawerOverlay:1200,drawer:1300,dialogOverlay:1400,dialog:1500,layer:2e3,popover:2100,snackbar:2900,tooltip:3e3}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=function(e){var t=e.userAgent;if(void 0===t&&"undefined"!=typeof navigator&&(t=navigator.userAgent),void 0!==t||l||(l=!0),t===!1)return null;if("all"===t||void 0===t)return function(e){return a["default"].prefixAll(e)};var n=function(){var e=new a["default"]({userAgent:t});return{v:function(t){return e.prefix(t)}}}();return"object"===("undefined"==typeof n?"undefined":o(n))?n.v:void 0};var i=n(841),a=r(i),s=n(310),l=(r(s),!1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments[2],r=arguments[3];Object.keys(t).forEach(function(o){var i=e[o];Array.isArray(i)?[].concat(t[o]).forEach(function(t){e[o].indexOf(t)===-1&&e[o].splice(i.indexOf(n),r?0:1,t)}):e[o]=t[o]})}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=t._browserInfo.version}).reduce(function(e,t){return e[t]=!0,e},{}),this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0):this._usePrefixAllFallback=!0}return a(e,[{key:"prefix",value:function(e){var t=this;return this._usePrefixAllFallback?(0,l["default"])(e):this._hasPropsRequiringPrefix?(Object.keys(e).forEach(function(n){var r=e[n];r instanceof Object&&!Array.isArray(r)?e[n]=t.prefix(r):t._requiresPrefix[n]&&(e[t.jsPrefix+(0,d["default"])(n)]=r,t._keepUnprefixed||delete e[n])}),Object.keys(e).forEach(function(n){[].concat(e[n]).forEach(function(r){R.forEach(function(o){i(e,o({property:n,value:r,styles:e,browserInfo:t._browserInfo,prefix:{js:t.jsPrefix,css:t.cssPrefix,keyframes:t.prefixedKeyframes},keepUnprefixed:t._keepUnprefixed,requiresPrefix:t._requiresPrefix}),r,t._keepUnprefixed)})})}),e):e}}],[{key:"prefixAll",value:function(e){return(0,l["default"])(e)}}]),e}();t["default"]=F,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Object.keys(e).forEach(function(t){var n=e[t];n instanceof Object&&!Array.isArray(n)?e[t]=o(n):Object.keys(s["default"]).forEach(function(r){var o=s["default"][r];o[t]&&(e[r+(0,u["default"])(t)]=n)})}),Object.keys(e).forEach(function(t){[].concat(e[t]).forEach(function(n,r){k.forEach(function(r){return i(e,r(t,n))})})}),e}function i(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];Object.keys(t).forEach(function(n){var r=e[n];Array.isArray(r)?[].concat(t[n]).forEach(function(t){var o=r.indexOf(t);o>-1&&e[n].splice(o,1),e[n].push(t)}):e[n]=t[n]})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(843),s=r(a),l=n(844),u=r(l),c=n(845),f=r(c),p=n(848),h=r(p),d=n(849),m=r(d),v=n(850),g=r(v),y=n(851),b=r(y),x=n(852),_=r(x),w=n(854),T=r(w),C=n(855),E=r(C),k=[f["default"],h["default"],g["default"],b["default"],_["default"],T["default"],E["default"],m["default"]];e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0,borderImage:!0,borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:!0,tabSize:!0,objectFit:!0,objectPosition:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if("string"==typeof t&&!(0,l["default"])(t)&&t.indexOf("calc(")>-1)return(0,a["default"])(e,t,function(e,t){return t.replace(/calc\(/g,e+"calc(")})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(846),a=r(i),s=n(847),l=r(s);e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){var r=arguments.length<=2||void 0===arguments[2]?function(e,t){return e+t}:arguments[2];return n({},e,["-webkit-","-moz-",""].map(function(e){return r(e,t)}))},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.isArray(e)&&(e=e.join(",")),null!==e.match(/-webkit-|-moz-|-ms-/)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if("cursor"===e&&s[t])return(0,a["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(846),a=r(i),s={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if("display"===e&&r[t])return{display:["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r={flex:!0,"inline-flex":!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(s[e]&&l[t])return(0,a["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(846),a=r(i),s={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},l={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if("string"==typeof t&&!(0,l["default"])(t)&&null!==t.match(u))return(0,a["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(846),a=r(i),s=n(847),l=r(s),u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if("string"==typeof t&&m[e]){var n,r=a(t),i=r.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return null===e.match(/-moz-|-ms-/)}).join(",");return e.indexOf("Webkit")>-1?o({},e,i):(n={},o(n,"Webkit"+(0,c["default"])(e),i),o(n,e,r),n)}}function a(e){if((0,p["default"])(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(d["default"]).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(d["default"][n]).forEach(function(n){var o=(0,l["default"])(n);e.indexOf(o)>-1&&"order"!==o&&(t=e.replace(o,r+o)+","+t)}),t},e)}),t.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var s=n(853),l=r(s),u=n(844),c=r(u),f=n(847),p=r(f),h=n(843),d=r(h),m={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0}; +e.exports=t["default"]},function(e,t){"use strict";function n(e){return e.replace(r,"-$&").toLowerCase().replace(o,"-ms-")}var r=/[A-Z]/g,o=/^ms-/;e.exports=n},function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(i[e])return n({},i[e],o[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return"flexDirection"===e?{WebkitBoxOrient:t.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:t.indexOf("reverse")>-1?"reverse":"normal"}:i[e]?n({},i[e],o[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},i={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(857),i=r(o),a={Webkit:["chrome","safari","ios","android","phantom","opera","webos","blackberry","bada","tizen","chromium","vivaldi"],Moz:["firefox","seamonkey","sailfish"],ms:["msie","msedge"]},s={chrome:[["chrome"],["chromium"]],safari:[["safari"]],firefox:[["firefox"]],ie:[["msie"]],edge:[["msedge"]],opera:[["opera"],["vivaldi"]],ios_saf:[["ios","mobile"],["ios","tablet"]],ie_mob:[["windowsphone","mobile","msie"],["windowsphone","tablet","msie"],["windowsphone","mobile","msedge"],["windowsphone","tablet","msedge"]],op_mini:[["opera","mobile"],["opera","tablet"]],and_uc:[["android","mobile"],["android","tablet"]],android:[["android","mobile"],["android","tablet"]]};t["default"]=function(e){if(!e)return!1;var t=i["default"]._detect(e);Object.keys(a).forEach(function(e){a[e].forEach(function(n){t[n]&&(t.prefix={inline:e,css:"-"+e.toLowerCase()+"-"})})});var n="";return Object.keys(s).forEach(function(e){s[e].forEach(function(r){var o=0;r.forEach(function(e){t[e]&&(o+=1)}),r.length===o&&(n=e)})}),t.browser=n,t.version=t.version?parseFloat(t.version):parseInt(parseFloat(t.osversion),10),"android"===t.browser&&t.chrome&&t.version>37&&(t.browser="and_chr"),t.version=parseFloat(t.version),t.osversion=parseFloat(t.osversion),"android"===t.browser&&t.osversion<5&&(t.version=t.osversion),t},e.exports=t["default"]},function(e,t,n){var r,o;/*! + * Bowser - a browser detector + * https://github.com/ded/bowser + * MIT License | (c) Dustin Diaz 2015 + */ +!function(i,a){"undefined"!=typeof e&&e.exports?e.exports=a():(r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}("bowser",function(){function e(e){function t(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function n(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var r,o=t(/(ipod|iphone|ipad)/i).toLowerCase(),i=/like android/i.test(e),s=!i&&/android/i.test(e),l=/nexus\s*[0-6]\s*/i.test(e),u=!l&&/nexus\s*[0-9]+/i.test(e),c=/CrOS/.test(e),f=/silk/i.test(e),p=/sailfish/i.test(e),h=/tizen/i.test(e),d=/(web|hpw)os/i.test(e),m=/windows phone/i.test(e),v=!m&&/windows/i.test(e),g=!o&&!f&&/macintosh/i.test(e),y=!s&&!p&&!h&&!d&&/linux/i.test(e),b=t(/edge\/(\d+(\.\d+)?)/i),x=t(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(e),w=!_&&/[^-]mobi/i.test(e),T=/xbox/i.test(e);/opera|opr|opios/i.test(e)?r={name:"Opera",opera:a,version:x||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?r={name:"Opera Coast",coast:a,version:x||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?r={name:"Yandex Browser",yandexbrowser:a,version:x||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:"UC Browser",ucbrowser:a,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?r={name:"Maxthon",maxthon:a,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?r={name:"Epiphany",epiphany:a,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?r={name:"Puffin",puffin:a,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?r={name:"Sleipnir",sleipnir:a,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?r={name:"K-Meleon",kMeleon:a,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(r={name:"Windows Phone",windowsphone:a},b?(r.msedge=a,r.version=b):(r.msie=a,r.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?r={name:"Internet Explorer",msie:a,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?r={name:"Chrome",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?r={name:"Microsoft Edge",msedge:a,version:b}:/vivaldi/i.test(e)?r={name:"Vivaldi",vivaldi:a,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||x}:p?r={name:"Sailfish",sailfish:a,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?r={name:"SeaMonkey",seamonkey:a,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:"Firefox",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(r.firefoxos=a)):f?r={name:"Amazon Silk",silk:a,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?r={name:"PhantomJS",phantom:a,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?r={name:"SlimerJS",slimer:a,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?r={name:"BlackBerry",blackberry:a,version:x||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(r={name:"WebOS",webos:a,version:x||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(r.touchpad=a)):/bada/i.test(e)?r={name:"Bada",bada:a,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:h?r={name:"Tizen",tizen:a,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(e)?r={name:"QupZilla",qupzilla:a,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(e)?r={name:"Chromium",chromium:a,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x}:/chrome|crios|crmo/i.test(e)?r={name:"Chrome",chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:x}:/safari|applewebkit/i.test(e)?(r={name:"Safari",safari:a},x&&(r.version=x)):o?(r={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},x&&(r.version=x)):r=/googlebot/i.test(e)?{name:"Googlebot",googlebot:a,version:t(/googlebot\/(\d+(\.\d+))/i)||x}:{name:t(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(r.name=r.name||"Blink",r.blink=a):(r.name=r.name||"Webkit",r.webkit=a),!r.version&&x&&(r.version=x)):!r.opera&&/gecko\//i.test(e)&&(r.name=r.name||"Gecko",r.gecko=a,r.version=r.version||t(/gecko\/(\d+(\.\d+)?)/i)),r.msedge||!s&&!r.silk?o?(r[o]=a,r.ios=a):g?r.mac=a:T?r.xbox=a:v?r.windows=a:y&&(r.linux=a):r.android=a;var C="";r.windowsphone?C=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o?(C=t(/os (\d+([_\s]\d+)*) like mac os x/i),C=C.replace(/[_\s]/g,".")):s?C=t(/android[ \/-](\d+(\.\d+)*)/i):r.webos?C=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?C=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?C=t(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(C=t(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(r.osversion=C);var E=C.split(".")[0];return _||u||"ipad"==o||s&&(3==E||E>=4&&!w)||r.silk?r.tablet=a:(w||"iphone"==o||"ipod"==o||s||l||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function t(e){return e.split(".").length}function n(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0;){if(o[0][r]>o[1][r])return 1;if(o[0][r]!==o[1][r])return-1;if(0===r)return 0}}function o(t,n,o){var i=s;"string"==typeof n&&(o=n,n=void 0),void 0===n&&(n=!1),o&&(i=e(o));var a=""+i.version;for(var l in t)if(t.hasOwnProperty(l)&&i[l])return r([a,t[l]])<0;return n}function i(e,t,n){return!o(e,t,n)}var a=!0,s=e("undefined"!=typeof navigator?navigator.userAgent:"");return s.test=function(e){for(var t=0;t-1&&("firefox"===i&&a<15||"chrome"===i&&a<25||"safari"===i&&a<6.1||"ios_saf"===i&&a<7))return o({},t,(0,s["default"])(n.replace(/calc\(/g,l+"calc("),n,u))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(861),s=r(a);e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){return n?[e,t]:e},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.property,n=e.value,r=e.browserInfo,o=r.browser,i=r.version,l=e.prefix.css,u=e.keepUnprefixed;if("cursor"===t&&s[n]&&("firefox"===o&&i<24||"chrome"===o&&i<37||"safari"===o&&i<9||"opera"===o&&i<24))return{cursor:(0,a["default"])(l+n,n,u)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(861),a=r(i),s={"zoom-in":!0,"zoom-out":!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.property,n=e.value,r=e.browserInfo,o=r.browser,i=(r.version,e.prefix.css),l=e.keepUnprefixed;if("cursor"===t&&s[n]&&("firefox"===o||"chrome"===o||"safari"===o||"opera"===o))return{cursor:(0,a["default"])(i+n,n,l)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(861),a=r(i),s={grab:!0,grabbing:!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.property,n=e.value,r=e.browserInfo,o=r.browser,i=r.version,l=e.prefix.css,u=e.keepUnprefixed;if("display"===t&&s[n]&&("chrome"===o&&i<29&&i>20||("safari"===o||"ios_saf"===o)&&i<9&&i>6||"opera"===o&&(15==i||16==i)))return{display:(0,a["default"])(l+n,n,u)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(861),a=r(i),s={flex:!0,"inline-flex":!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.property,n=e.value,r=e.prefix.css,i=e.keepUnprefixed;if(l[t]&&u[n])return o({},t,(0,s["default"])(r+n,n,i))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(861),s=r(a),l={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},u={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.property,n=e.value,r=e.browserInfo,i=r.browser,a=r.version,u=e.prefix.css,c=e.keepUnprefixed;if("string"==typeof n&&null!==n.match(l)&&("firefox"===i&&a<16||"chrome"===i&&a<26||("safari"===i||"ios_saf"===i)&&a<7||("opera"===i||"op_mini"===i)&&a<12.1||"android"===i&&a<4.4||"and_uc"===i))return o({},t,(0,s["default"])(u+n,n,c))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(861),s=r(a),l=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.property,n=e.value,r=e.prefix.css,i=e.requiresPrefix,s=e.keepUnprefixed,u=(0,f["default"])(t);if("string"==typeof n&&p[u]){var c=function(){var e=Object.keys(i).map(function(e){return(0,l["default"])(e)}),a=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return e.forEach(function(e){a.forEach(function(t,n){t.indexOf(e)>-1&&"order"!==e&&(a[n]=t.replace(e,r+e)+(s?","+t:""))})}),{v:o({},t,a.join(","))}}();if("object"===("undefined"==typeof c?"undefined":a(c)))return c.v}}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i;var s=n(853),l=r(s),u=n(844),c=(r(u),n(868)),f=r(c),p={transition:!0,transitionProperty:!0};e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.replace(/^(ms|Webkit|Moz|O)/,"");return t.charAt(0).toLowerCase()+t.slice(1)},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.property,n=e.value,r=e.styles,i=e.browserInfo,a=i.browser,c=i.version,f=e.prefix.css,p=e.keepUnprefixed;if((u[t]||"display"===t&&"string"==typeof n&&n.indexOf("flex")>-1)&&("ie_mob"===a||"ie"===a)&&10==c){if(p||Array.isArray(r[t])||delete r[t],"display"===t&&l[n])return{display:(0,s["default"])(f+l[n],n,p)};if(u[t])return o({},u[t],l[n]||n)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(861),s=r(a),l={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},u={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.property,n=e.value,r=e.styles,i=e.browserInfo,a=i.browser,c=i.version,p=e.prefix.css,h=e.keepUnprefixed;if((f.indexOf(t)>-1||"display"===t&&"string"==typeof n&&n.indexOf("flex")>-1)&&("firefox"===a&&c<22||"chrome"===a&&c<21||("safari"===a||"ios_saf"===a)&&c<=6.1||"android"===a&&c<4.4||"and_uc"===a)){if(h||Array.isArray(r[t])||delete r[t],"flexDirection"===t)return{WebkitBoxOrient:n.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:n.indexOf("reverse")>-1?"reverse":"normal"};if("display"===t&&l[n])return{display:(0,s["default"])(p+l[n],n,h)};if(u[t])return o({},u[t],l[n]||n)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(861),s=r(a),l={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},u={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"},c=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],f=Object.keys(u).concat(c);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(310);r(i)},function(e,t){"use strict";function n(e){if(e.isRtl)return function(e){var t={right:"left",left:"right",marginRight:"marginLeft",marginLeft:"marginRight",paddingRight:"paddingLeft",paddingLeft:"paddingRight",borderRight:"borderLeft",borderLeft:"borderRight"},n={};return Object.keys(e).forEach(function(i){var a=e[i],s=i;switch(t.hasOwnProperty(i)&&(s=t[i]),i){case"float":case"textAlign":"right"===a?a="left":"left"===a&&(a="right");break;case"direction":"ltr"===a?a="rtl":"rtl"===a&&(a="ltr");break;case"transform":if(!a)break;var l=void 0;(l=a.match(r))&&(a=a.replace(l[0],l[1]+-parseFloat(l[4]))),(l=a.match(o))&&(a=a.replace(l[0],l[1]+-parseFloat(l[4])+l[5]+l[6]?", "+(-parseFloat(l[7])+l[8]):""));break;case"transformOrigin":if(!a)break;a.indexOf("right")>-1?a=a.replace("right","left"):a.indexOf("left")>-1&&(a=a.replace("left","right"))}n[s]=a}),n}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r=/((^|\s)translate(3d|X)?\()(\-?[\d]+)/,o=/((^|\s)skew(x|y)?\()\s*(\-?[\d]+)(deg|rad|grad)(,\s*(\-?[\d]+)(deg|rad|grad))?/},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n=0;n--){var o=t[n];e=o(e)}return e}}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=n(837),i=function a(){r(this,a),this.textFullBlack=o.fullBlack,this.textDarkBlack=o.darkBlack,this.textLightBlack=o.lightBlack,this.textMinBlack=o.minBlack,this.textFullWhite=o.fullWhite,this.textDarkWhite=o.darkWhite,this.textLightWhite=o.lightWhite,this.fontWeightLight=300,this.fontWeightNormal=400,this.fontWeightMedium=500,this.fontStyleButtonFontSize=14};t["default"]=new i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),o=!0}}var r=document.attachEvent,o=!1,i={};if(!r){var a=function(){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(t){return e(t)}}();i.resetTriggers=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i.checkTriggers=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},i.scrollListener=function(e){var t=this;i.resetTriggers(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=a(function(){i.checkTriggers(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};var l=!1,u="animation",c="",f="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="",m=document.createElement("fakeelement");if(void 0!==m.style.animationName&&(l=!0),l===!1)for(var v=0;v
',e.appendChild(e.__resizeTriggers__),i.resetTriggers(e),e.addEventListener("scroll",i.scrollListener,!0),f&&e.__resizeTriggers__.addEventListener(f,function(t){t.animationName==g&&i.resetTriggers(e)})),e.__resizeListeners__.push(t))},_=function(e,t){r?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",i.scrollListener),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))};e.exports={ +addResizeListener:x,removeResizeListener:_}},function(e,t,n){var r=n(879);"string"==typeof r&&(r=[[e.id,r,""]]);n(764)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(763)(),t.push([e.id,"/*!\n * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(880)+");src:url("+n(881)+"?#iefix&v=4.3.0) format('embedded-opentype'),url("+n(882)+") format('woff2'),url("+n(883)+") format('woff'),url("+n(884)+") format('truetype'),url("+n(885)+'#fontawesomeregular) format(\'svg\');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);transform:scaleX(-1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before,.fa-genderless:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}',""])},function(e,t,n){e.exports=n.p+"f7c2b4b747b1a225eb8dee034134a1b0.eot"},880,function(e,t,n){e.exports=n.p+"97493d3f11c0a3bd5cbd959f5d19b699.woff2"},function(e,t,n){e.exports=n.p+"d9ee23d59d0e0e727b51368b458a0bff.woff"},function(e,t,n){e.exports=n.p+"706450d7bba6374ca02fe167d86685cb.ttf"},function(e,t,n){e.exports=n.p+"2980083682e94d33a66eef2e7d612519.svg"},function(e,t,n){var r=n(887);"string"==typeof r&&(r=[[e.id,r,""]]);n(764)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(763)(),t.push([e.id,'.tabbed-area{position:absolute;width:100%;height:100%}.tabbed-area .tab-content{position:relative;width:100%;height:calc(100% - 44px - 4px - 3px)}.tabbed-area .tab-content .tab-pane{display:none;position:absolute;top:0;left:0;overflow:hidden;clear:both;width:100%;height:100%}.tabbed-area .tab-content .tab-pane.active{overflow:auto;display:inherit}.tabbed-area .tabs{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;min-height:44px;border-bottom:4px solid #3d8bd5;padding-top:3px}.tabbed-area .tabs .tab{font-size:15px;display:-ms-flexbox;display:flex;margin-right:0;margin-left:3px;cursor:pointer;top:1px;overflow:hidden;white-space:nowrap;min-width:100px;max-width:250px;padding-left:10px;padding-right:10px}.tabbed-area .tabs .tab .title{-ms-flex:1;flex:1;vertical-align:middle;line-height:44px;text-overflow:ellipsis;overflow:hidden}.tabbed-area .tabs .tab.active{top:0;background:#3d8bd5;color:#fff}.tabbed-area .tabs .tab.active .icon .bitmap{-webkit-filter:invert(100%);filter:invert(100%)}.tabbed-area .tabs .tab.inactive:hover{background:#66a2de;color:#fff}.tabbed-area .tabs .tab.inactive:hover .icon .bitmap{-webkit-filter:invert(100%);filter:invert(100%)}.tabbed-area .tabs .tab.inactive .action{visibility:hidden}.tabbed-area .tabs .tab.dragging{z-index:9999}.tabbed-area .tabs .icon{line-height:44px;margin-left:5px;margin-right:5px;opacity:.5}.tabbed-area .tabs .icon .bitmap{transform:translateY(3px)}.tabbed-area .tabs .icon.close:hover{opacity:1}.icon{position:relative;vertical-align:middle;font-size:22px;cursor:pointer}.icon .bitmap{height:22px}.icon:hover{opacity:1}.icon.close{opacity:.3}.icon.close:hover{opacity:1}.icon.inverted-bitmap{-webkit-filter:invert(100%);filter:invert(100%)}.icon.inverted-bitmap img.bitmap{vertical-align:middle}.popups{position:absolute;top:0;left:0;width:0;height:0}.popup{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed!important;border:1px solid #6e6e6e;box-shadow:0 19px 60px rgba(0,0,0,.3),0 15px 20px rgba(0,0,0,.22);background:#fff;z-index:1002}.popup .popup-drag{position:absolute;height:33px;width:calc(100% - 64px);top:0;left:0;cursor:move;z-index:1003}.popup .popup-header{overflow:hidden;white-space:nowrap;height:33px;cursor:move;font-size:10pt;font-weight:700;color:#fff;background:linear-gradient(90deg,#3d8bd5 0,#3d8bd5);display:-ms-flexbox;display:flex;box-shadow:0 1px 6px rgba(0,0,0,.12),0 1px 4px rgba(0,0,0,.24);position:relative;z-index:3}.popup .popup-header .icon{line-height:33px;margin-left:5px;margin-right:5px}.popup .popup-header .icon .bitmap{-webkit-filter:invert(100%);filter:invert(100%);transform:translateY(3px)}.popup .popup-header .title{-ms-flex:1;flex:1;vertical-align:middle;line-height:33px;text-overflow:ellipsis;overflow:hidden}.popup .popup-body{position:relative;-ms-flex:1;flex:1;overflow:auto}.modal{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:9999;position:absolute;width:100%;height:100%;top:0;left:0;outline:0;opacity:0;background:rgba(0,0,0,.7);transition:visibility 0s linear .5s,opacity .5s linear}.modal .popup{position:static!important;transition:none;visibility:hidden}.modal .popup .popup-header{cursor:inherit}.modal.visible{opacity:1;transition-delay:0s}.modal.visible,.modal.visible .popup{visibility:visible}.react-resizable{position:relative}.react-resizable-handle.react-draggable{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;cursor:se-resize;transform:none!important;-webkit-transform:none!important;-ms-transform:none!important;-o-transform:none!important;-moz-transform:none!important;z-index:99}.status-text{text-align:center;font-style:italic;opacity:.5}.top-bar{background:#3d8bd5;box-shadow:0 1px 6px rgba(0,0,0,.12),0 1px 4px rgba(0,0,0,.24);position:relative;z-index:2}.top-bar .block{display:inline-block;margin-left:5px;white-space:nowrap}.top-bar .block .icon:first-child{margin-left:0}.top-bar .btn{border:none;background:transparent;color:#fff}.top-bar .text{vertical-align:middle;line-height:33px;color:#fff;margin-left:7px;margin-right:7px}.top-bar .icon{margin-left:5px;margin-right:5px;line-height:33px;color:#fff}.top-bar .disabled{color:#66a2de}.datatable{width:100%;height:100%;overflow:hidden;position:absolute}.sidebar{width:248px;padding:12px 9px}.sidebar-header{line-height:normal}.sidebar-header .icon-holder{border-radius:9px;border:2px solid #66a2de;padding:5px;margin-right:10px;margin-bottom:10px;float:left;background-color:#e6f4f5}.sidebar-header .icon-holder .icon{font-size:30px;line-height:30px;color:#3d8bd5}.sidebar-header .icon-holder .icon .bitmap{height:30px}.stack{display:-ms-flexbox;display:flex;width:100%;height:100%}.stack div.grow{position:relative;-ms-flex:1;flex:1}.stack.start-align{-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.stack.start-align .description{padding:20px 10px 0}.stack.wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.stack.vertical{-ms-flex-direction:column;flex-direction:column}.stack.horizontal{-ms-flex-direction:row;flex-direction:row}.stack.spread{-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-line-pack:distribute;align-content:space-around}.pointer{cursor:pointer}.large-modal{height:calc(100vh - 150px);width:calc(100vw - 150px)}.tall-modal{max-height:calc(100vh - 150px)}.centering-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:20px}.scroll-within{overflow:auto}.query-editor-container{padding:5px}.query-editor{margin:5px;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content;text-align:center;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAALCAYAAABPhbxiAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRADgAOAA4Nh/TngAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQffBwgNOB69YOJuAAABmUlEQVQoz21QPasTURA9d+4WuyEJ4WKjYGWxiEm08AfYWCikUrQVEowRIpqwpb/AyuI1YRcEK8XiwYME/BGJzWv9BZpIPnfvx1wb88h78VTDnDlz5owYj8cPlVJZURSTxWLxLk3TrRACV2GtxXA4fFUul9/M5/O3FEXRU631TSnlS6XUt263e52ZL4mYGYPB4HWpVDqx1t6OougJ7UljDIjokVJq0uv17jvn4L1Hu90uJ0nyuVKpnFhryXsPAAiY2UspQURgZhDRXaXUpN/v94wxP6rV6scwDB9bawEAQggwsw+890eBvPfXarXaF+/9HyJSzrkL0T9ekHNuedg8EBMRKWY+4pxzS9Jap8aYc/wH+yftcwkhYIw511qncrVa/W40GmdEdCcIgluH2w9r7z3yPP++Xq+fj0ajnzKOY0yn02W9Xj9l5htSyntEdMnJOYfNZvNpt9u9yLLslxACMo5jAMBsNtPNZvPMOWeEEA+CIBAAUBQFb7fb91rrJMuy4uKaVqt1lK3T6TwLw/ADAOR5nqRp+vXqzF/6b8+GPmTC7wAAAABJRU5ErkJggg==");background-position:50%;background-repeat:repeat-y}.query-editor .endpoint{display:inline-block;border-radius:18px;background:#e0e0e0;padding:10px}.query-editor .criteria{display:inline-block;margin:10px}.query-editor .or{margin:5px}.query-editor .or .startline{height:16px;background:#e0e0e0;border-top-left-radius:16px;border-top-right-radius:16px}.query-editor .or .endline{height:16px;background:#e0e0e0;border-bottom-left-radius:16px;border-bottom-right-radius:16px}.query-editor .or .components{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content;border-right:2px solid #e0e0e0;border-left:2px solid #e0e0e0;background:#fff}.query-editor .or .components .or-criteria-wrapper{padding-top:5px;padding-bottom:5px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAALCAYAAABPhbxiAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRADgAOAA4Nh/TngAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQffBwgNOB69YOJuAAABmUlEQVQoz21QPasTURA9d+4WuyEJ4WKjYGWxiEm08AfYWCikUrQVEowRIpqwpb/AyuI1YRcEK8XiwYME/BGJzWv9BZpIPnfvx1wb88h78VTDnDlz5owYj8cPlVJZURSTxWLxLk3TrRACV2GtxXA4fFUul9/M5/O3FEXRU631TSnlS6XUt263e52ZL4mYGYPB4HWpVDqx1t6OougJ7UljDIjokVJq0uv17jvn4L1Hu90uJ0nyuVKpnFhryXsPAAiY2UspQURgZhDRXaXUpN/v94wxP6rV6scwDB9bawEAQggwsw+890eBvPfXarXaF+/9HyJSzrkL0T9ekHNuedg8EBMRKWY+4pxzS9Jap8aYc/wH+yftcwkhYIw511qncrVa/W40GmdEdCcIgluH2w9r7z3yPP++Xq+fj0ajnzKOY0yn02W9Xj9l5htSyntEdMnJOYfNZvNpt9u9yLLslxACMo5jAMBsNtPNZvPMOWeEEA+CIBAAUBQFb7fb91rrJMuy4uKaVqt1lK3T6TwLw/ADAOR5nqRp+vXqzF/6b8+GPmTC7wAAAABJRU5ErkJggg==");background-position:50%;background-repeat:repeat-y}.query-editor .and{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content}.query-editor .criterion{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:5px;padding:5px}.query-editor .criterion .close{color:#000}.query-editor .criterion input,.query-editor .criterion select{margin:5px;width:150px;display:block}.query-editor .criterion input{text-indent:3px}.query-editor .criterion .actions{border-left:1px solid #e0e0e0}.query-editor .criterion .icon{height:18px;line-height:18px}.query-editor .criterion .action{cursor:pointer;height:18px;line-height:18px;margin:5px;opacity:.3}.query-editor .criterion .action:hover{opacity:1}.query-editor .criterion .icon-wrapper{position:relative}.query-editor .criterion .icon-overlay{position:absolute;top:3px;left:0}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAGCAIAAAB1kpiRAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wcIDRQ1KO1wgAAAAFBJREFUCNdtyjEOwCAMQ1E7KhFHyP1Px8iSiSgwICG11KPfp7uPMfA3kk+ttfd+FyTNTETEzEopt6mqAPgUxwBwzrnfzGytRcSxF+8iIo4BWFGnInEcArZUAAAAAElFTkSuQmCC") no-repeat 100%}input,select{border:none;border-bottom:1px solid #e0e0e0}input:focus{outline:none;outline-offset:inherit;border-bottom:2px solid #3d8bd5}input.invalid{border-bottom:2px solid #d62728}.query-picker .list-string{width:250px}.table-row-cell{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:8px}.table-col{margin:5px}.table-col-cell{padding-left:5px;padding-right:5px}.prop{opacity:.6}.prop.true{color:#2ca02c}.prop.false{color:#d62728}.table-row-cell .prop.bool{top:-4px}.table-row-header{padding:0!important;height:100%;line-height:50px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.table-row-header .label{-ms-flex-negative:1;flex-shrink:1;text-align:center}.table-row-header .icon{min-width:20px;color:#a9a9a9;font-size:14px;padding-left:3px;padding-right:3px}.table-row-header .icon:hover{color:#4e4e4e}.table-row-header.sort-column-ascending,.table-row-header.sort-column-descending{background:#e8e8e8;box-shadow:inset 1px 1px 1px #a9a9a9}.table-col-header{padding:0 5px!important;height:100%;line-height:30px;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left;-ms-flex-align:left;align-items:left}.table-col-header .label{-ms-flex-negative:1;flex-shrink:1;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap}.table-col-header .icon{min-width:20px;color:#a9a9a9;font-size:14px;padding-left:3px;padding-right:3px;vertical-align:baseline}.table-col-header .icon:hover{color:#4e4e4e}.rc-tooltip{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}.item-picker .picked{opacity:.5}.item-picker .header{text-align:center;font-size:18px;padding-top:16px}.item-picker .search{padding-left:16px}.highlight{color:#ff4081}.internal-link{color:#3d8bd5;text-decoration:underline;cursor:pointer}.external-link-icon{margin-right:5px}.error{font-size:20px;font-weight:700;color:darkred}',""]); +},function(e,t,n){var r=n(889);"string"==typeof r&&(r=[[e.id,r,""]]);n(764)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(763)(),t.push([e.id,".green{background-color:green}.red{background-color:red}.blue{background-color:blue}*,:after,:before{box-sizing:border-box}body{font-family:Roboto,sans-serif;color:#242424;font-size:14px}.main .page{height:100vh;width:100vw;-ms-flex-direction:column;flex-direction:column}.main .page,.main .page .header{display:-ms-flexbox;display:flex}.main .page .header{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:visible;z-index:1;height:50px;background:#fff}.main .page .header .title{-ms-flex:1;flex:1;margin:25px;font-weight:700;font-size:large}.main .page .header .logo{margin:25px}.main .page .header .username{margin:7px;font-weight:700}.main .page .body{-ms-flex:1;flex:1;position:relative}a{color:#3d8bd5}a:visited{color:#66a2de}",""])},function(e,t,n){function r(e){return n(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./DatasetImportStatus/ItemView":891,"./DatasetImportStatus/ItemView.js":891,"./DatasetImportStatus/ListView":922,"./DatasetImportStatus/ListView.js":922,"./DatasetManager/Actions":954,"./DatasetManager/Actions.js":954,"./Panoptes":587,"./Panoptes.js":587,"./containers/DataItem":963,"./containers/DataItem.js":963,"./containers/DataTableWithActions":973,"./containers/DataTableWithActions.js":973,"./containers/EmptyTab":1189,"./containers/EmptyTab.js":1189,"./containers/ErrorTab":1195,"./containers/ErrorTab.js":1195,"./containers/FindGene":1196,"./containers/FindGene.js":1196,"./containers/FindGeneByNameDesc":1197,"./containers/FindGeneByNameDesc.js":1197,"./containers/FindGeneByRegion":1212,"./containers/FindGeneByRegion.js":1212,"./containers/Finder":1215,"./containers/Finder.js":1215,"./containers/Gene":1216,"./containers/Gene.js":1216,"./containers/GenomeBrowserWithActions":1303,"./containers/GenomeBrowserWithActions.js":1303,"./containers/GroupedItemPicker":1304,"./containers/GroupedItemPicker.js":1304,"./containers/ItemPicker":1305,"./containers/ItemPicker.js":1305,"./containers/ListWithActions":1307,"./containers/ListWithActions.js":1307,"./containers/MapWithActions":1309,"./containers/MapWithActions.js":1309,"./containers/PlotContainer":1175,"./containers/PlotContainer.js":1175,"./containers/PlotWithActions":1425,"./containers/PlotWithActions.js":1425,"./containers/QueryPicker":1433,"./containers/QueryPicker.js":1433,"./containers/RecentlyFoundGenes":1214,"./containers/RecentlyFoundGenes.js":1214,"./containers/RecentlyUsedTableQueries":1441,"./containers/RecentlyUsedTableQueries.js":1441,"./containers/StartTab":1443,"./containers/StartTab.js":1443,"./containers/StoredTableQueries":1442,"./containers/StoredTableQueries.js":1442,"./containers/TreeContainer":1169,"./containers/TreeContainer.js":1169,"./containers/TreeWithActions":1444,"./containers/TreeWithActions.js":1444,"./containers/item_views/FieldList":1445,"./containers/item_views/FieldList.js":1445,"./containers/item_views/ItemMap":1136,"./containers/item_views/ItemMap.js":1136,"./containers/item_views/Overview":1448,"./containers/item_views/Overview.js":1448,"./containers/item_views/PieChartMap":1449,"./containers/item_views/PieChartMap.js":1449,"./containers/item_views/PropertyGroup":1463,"./containers/item_views/PropertyGroup.js":1463,"./containers/item_views/Template":1464,"./containers/item_views/Template.js":1464,"./panoptes/ComponentWrapper":1168,"./panoptes/ComponentWrapper.js":1168,"./panoptes/DataItemActions":964,"./panoptes/DataItemActions.js":964,"./panoptes/DataTableView":982,"./panoptes/DataTableView.js":982,"./panoptes/ExternalLinkButton":971,"./panoptes/ExternalLinkButton.js":971,"./panoptes/GeneSearchResultsList":1198,"./panoptes/GeneSearchResultsList.js":1198,"./panoptes/GeoMarker":1465,"./panoptes/GeoMarker.js":1465,"./panoptes/HTMLWithComponents":1082,"./panoptes/HTMLWithComponents.js":1082,"./panoptes/ItemLink":1037,"./panoptes/ItemLink.js":1037,"./panoptes/ItemMap":1137,"./panoptes/ItemMap.js":1137,"./panoptes/ItemTemplate":1207,"./panoptes/ItemTemplate.js":1207,"./panoptes/LegendElement":1222,"./panoptes/LegendElement.js":1222,"./panoptes/ListView":1308,"./panoptes/ListView.js":1308,"./panoptes/PieChart":1459,"./panoptes/PieChart.js":1459,"./panoptes/PieChartMap":1451,"./panoptes/PieChartMap.js":1451,"./panoptes/PieChartSector":1460,"./panoptes/PieChartSector.js":1460,"./panoptes/Plot":1180,"./panoptes/Plot.js":1180,"./panoptes/PopupButton":966,"./panoptes/PopupButton.js":966,"./panoptes/PropertyCell":1035,"./panoptes/PropertyCell.js":1035,"./panoptes/PropertyHeader":1038,"./panoptes/PropertyHeader.js":1038,"./panoptes/PropertyLegend":1300,"./panoptes/PropertyLegend.js":1300,"./panoptes/PropertyList":1446,"./panoptes/PropertyList.js":1446,"./panoptes/PropertyListItem":1447,"./panoptes/PropertyListItem.js":1447,"./panoptes/QueryEditor":1434,"./panoptes/QueryEditor.js":1434,"./panoptes/QueryString":1080,"./panoptes/QueryString.js":1080,"./panoptes/RegionGenesList":1213,"./panoptes/RegionGenesList.js":1213,"./panoptes/SelectFieldWithNativeFallback":1422,"./panoptes/SelectFieldWithNativeFallback.js":1422,"./panoptes/TableList":1193,"./panoptes/TableList.js":1193,"./panoptes/Tree":1171,"./panoptes/Tree.js":1171,"./panoptes/ViewList":1190,"./panoptes/ViewList.js":1190,"./panoptes/genome/Background":1258,"./panoptes/genome/Background.js":1258,"./panoptes/genome/Controls":1254,"./panoptes/genome/Controls.js":1254,"./panoptes/genome/FindBlocks":1232,"./panoptes/genome/FindBlocks.js":1232,"./panoptes/genome/GenomeBrowser":1235,"./panoptes/genome/GenomeBrowser.js":1235,"./panoptes/genome/LoadingIndicator":1253,"./panoptes/genome/LoadingIndicator.js":1253,"./panoptes/genome/tracks/AnnotationChannel":1256,"./panoptes/genome/tracks/AnnotationChannel.js":1256,"./panoptes/genome/tracks/BlockChunkedChannel":1262,"./panoptes/genome/tracks/BlockChunkedChannel.js":1262,"./panoptes/genome/tracks/CategoricalChannel":1263,"./panoptes/genome/tracks/CategoricalChannel.js":1263,"./panoptes/genome/tracks/ChannelWithConfigDrawer":1223,"./panoptes/genome/tracks/ChannelWithConfigDrawer.js":1223,"./panoptes/genome/tracks/GenomeScale":1233,"./panoptes/genome/tracks/GenomeScale.js":1233,"./panoptes/genome/tracks/NumericalSummaryTrack":1276,"./panoptes/genome/tracks/NumericalSummaryTrack.js":1276,"./panoptes/genome/tracks/NumericalTrackGroupChannel":1278,"./panoptes/genome/tracks/NumericalTrackGroupChannel.js":1278,"./panoptes/genome/tracks/PerRowIndicatorChannel":1297,"./panoptes/genome/tracks/PerRowIndicatorChannel.js":1297,"./panoptes/genome/tracks/PerRowNumericalChannel":1302,"./panoptes/genome/tracks/PerRowNumericalChannel.js":1302,"./panoptes/genome/tracks/ReferenceSequence":1217,"./panoptes/genome/tracks/ReferenceSequence.js":1217,"./panoptes/genome/tracks/ScaledSVGChannel":1269,"./panoptes/genome/tracks/ScaledSVGChannel.js":1269,"./panoptes/genome/tracks/YScale":1270,"./panoptes/genome/tracks/YScale.js":1270,"./ui/Alert":1468,"./ui/Alert.js":1468,"./ui/Confirm":1469,"./ui/Confirm.js":1469,"./ui/ConfirmButton":959,"./ui/ConfirmButton.js":959,"./ui/HelloWorld":1470,"./ui/HelloWorld.js":1470,"./ui/Icon":744,"./ui/Icon.js":744,"./ui/Loading":919,"./ui/Loading.js":919,"./ui/Modal":765,"./ui/Modal.js":765,"./ui/Pluralise":1306,"./ui/Pluralise.js":1306,"./ui/Popup":755,"./ui/Popup.js":755,"./ui/Popups":754,"./ui/Popups.js":754,"./ui/SidebarHeader":958,"./ui/SidebarHeader.js":958,"./ui/TabPane":753,"./ui/TabPane.js":753,"./ui/TabbedArea":650,"./ui/TabbedArea.js":650,"./ui/TooltipEllipsis":1039,"./ui/TooltipEllipsis.js":1039,"./utils/DataDownloader":1081,"./utils/DataDownloader.js":1081,"./utils/DetectResize":876,"./utils/DetectResize.js":876,"./utils/GeoLayouter":1452,"./utils/GeoLayouter.js":1452,"./utils/Memoize":1471,"./utils/Memoize.js":1471,"./utils/ValidComponentChildren":651,"./utils/ValidComponentChildren.js":651};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=890},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0)throw Error("Client is not authenticated");throw Error("Invalid server response type")}if("Error"in e)throw"NotAuthenticated"==e.Error?Error("Not Authenticated"):Error("Error: "+e.Error);if("issue"in e)throw Error(e.issue);return e}function i(e){if(0===e.status&&0==e.readyState)return"__SUPERSEEDED__";throw e}function a(e){return"Error: "+(e.statusText||e.message)}function s(e){var t=arguments.length<=1||void 0===arguments[1]?"GET":arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r={url:H,method:t,params:{},timeout:6e4,data:n};return(0,P["default"])(Object.assign(r,e)).then(P["default"].filterSuccess).then(P["default"].toJSON).then(o)}function l(e){return function(t){var n=z["default"].ValueListDecoder(),r={};return(0,R["default"])(e,function(e,o){return r[o]=n.doDecode(t[o])}),r}}function u(e){return function(t){var n={};return(0,R["default"])(e,function(e,r){var o=t.results[e.folder+"_"+e.config+"_"+e.name];o?n[r]={data:z["default"].Encoder.Create(o.encoder).decodeArray(o.data),summariser:o.summariser}:n[r]=null}),n}}function c(e){(0,F.assertRequired)(e,["database","table","columns"]);var t={query:N["default"].nullQuery,order:null,ascending:!0,count:!1,start:0,stop:1e6,distinct:!1,transpose:!0},n=k({},t,e),r=n.database,o=n.table,i=n.columns,a=n.query,u=n.order,c=n.ascending,f=n.count,p=n.start,h=n.stop,d=n.distinct,m=n.transpose,v="";(0,R["default"])(i,function(e,t){v.length>0&&(v+="~"),v+=e+t});var g=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},g,{params:{datatype:"pageqry",database:r,tbname:o,qry:a,collist:L["default"].compressToEncodedURIComponent(v),order:u,sortreverse:c?"0":"1",needtotalcount:f?"1":"0",limit:p+"~"+h,distinct:d?"1":"0"}})).then(l(i)).then(function(e){if(m){for(var t=[],n=function(n){var r={};(0,R["default"])(e,function(e,t){return r[t]=e[n]}),t.push(r)},r=0;r0&&(c+="~"),c+=e.folder+"~"+e.config+"~"+e.name});var f=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},f,{params:{datatype:"summinfo",dataid:r,ids:c,blocksize:i,blockstart:a,blockcount:l}})).then(u(o))}function h(e){(0,F.assertRequired)(e,["database","table","tree"]);var t=e.database,n=e.table,r=e.tree,o=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},o,{params:{datatype:"custom",respmodule:"panoptesserver",respid:"getgraph",database:t,tableid:n,graphid:r}})).then(function(e){return e})}function d(e){return e=W["default"].encode(JSON.stringify(e)),s({method:"POST",params:{datatype:"storedata"},data:e}).then(function(e){return e.id})}function m(e){return s({params:{datatype:"fetchstoredata",id:e}}).then(function(e){return JSON.parse(W["default"].decode(e.content))})}function v(e){(0,F.assertRequired)(e,["database","table","primKeyField","primKeyValue"]);var t=e.database,n=e.table,r=e.primKeyField,o=e.primKeyValue,i=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},i,{params:{datatype:"recordinfo",database:t,tbname:n,qry:N["default"].WhereClause.encode(N["default"].WhereClause.CompareFixed(r,"=",o))}})).then(function(e){return e.Data})}function g(e){(0,F.assertRequired)(e,["database","search","maxMatches"]);var t=e.database,n=e.search,r=e.maxMatches,o=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},o,{params:{datatype:"findgene",database:t,table:"annotation",pattern:n,count:r,reportall:1}})).then(function(e){var t=z["default"].ValueListDecoder();return["Chroms","Descrs","Ends","Hits","IDs","Starts"].forEach(function(n){return e[n]=t.doDecode(e[n])}),e={chromosomes:e.Chroms,descriptions:e.Descrs,ends:e.Ends,hits:e.Hits,ids:e.IDs,starts:e.Starts}})}function y(e){(0,F.assertRequired)(e,["database","chromosome","startPosition","endPosition"]);var t=e.database,n=e.chromosome,r=e.startPosition,o=e.endPosition,i={fid:"ST",fname:"ST",descr:"ST",fstart:"IN",fstop:"IN"},a=N["default"].WhereClause.encode(N["default"].WhereClause.AND([N["default"].WhereClause.CompareFixed("chromid","=",n),N["default"].WhereClause.CompareFixed("fstop",">=",r),N["default"].WhereClause.CompareFixed("fstart","<=",o),N["default"].WhereClause.CompareFixed("ftype","=","gene")]));return c({database:t,table:"annotation",columns:i,query:a})}function b(e){(0,F.assertRequired)(e,["database","geneId"]);var t=e.database,n=e.geneId;return v({database:t,table:"annotation",primKeyField:"fid",primKeyValue:n})}function x(e){(0,F.assertRequired)(e,["dataset"]);var t=(e.dataset,{id:"GN",user:"GN",timestamp:"GN",name:"GN",status:"GN",progress:"IN",completed:"IN",failed:"IN",scope:"GN"}),n=N["default"].nullQuery;return c({database:"",table:"calculations",columns:t,query:n,order:"timestamp",ascending:!1})}function _(e){(0,F.assertRequired)(e,["logId"]);var t=e.logId,n=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},n,{params:{datatype:"custom",respmodule:"panoptesserver",respid:"getcalculationlog",id:t}})).then(function(e){return e.Content})}function w(e){return s({params:{datatype:"custom",respmodule:"panoptesserver",respid:"fileload_dataset",ScopeStr:"all",SkipTableTracks:"false",datasetid:e}}).then(function(e){return JSON.parse(W["default"].decode(e.content))})}function T(e){return s({params:{datatype:"custom",respmodule:"panoptesserver",respid:"fileload_dataset",ScopeStr:"none",SkipTableTracks:"false",datasetid:e}}).then(function(e){return JSON.parse(W["default"].decode(e.content))})}function C(e){(0,F.assertRequired)(e,["database","table"]);var t={query:N["default"].nullQuery},n=k({},t,e),r=n.database,o=n.table,i=n.query,a=n.maxRecordCount,l=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},l,{params:{datatype:"getrecordcount",database:r,tbname:o,qry:i,maxrecordcount:a}})).then(function(e){return e.TotalRecordCount})}function E(e){(0,F.assertRequired)(e,["dataset","path","action","content"]);var t=e.dataset,n=e.path,r=e.action,o=e.content,i=e.cancellation?{cancellation:e.cancellation}:{};return s(k({},i,{method:"POST",data:JSON.stringify(o),params:{dataset:t,path:n,action:r,datatype:"custom",respmodule:"panoptesserver",respid:"modifyconfig"}})).then(function(e){return e.config})}var k=Object.assign||function(e){for(var t=1;t "+n.status),n.status?r.resolve(n):r.reject(n)}catch(e){r.reject(n)}},n.onprogress=function(e){r.notify(e)},n.open(i,a,!0),this.responseType&&(n.responseType=this.responseType);var s=this.headers;for(var l in s)s.hasOwnProperty(l)&&n.setRequestHeader(l,s[l]);this.withCredentials&&(n.withCredentials=!0);var u=this.data;return void 0!==u&&null!==u?n.send(u):n.send(),this.cancellation.fin(function(){r.promise.isFulfilled()||(o("Qajax cancellation reached."),n.abort())}),this.timeout?r.promise.timeout(this.timeout).fail(function(e){throw e instanceof Error&&(o("Qajax request delay reach in "+i+" "+a),n.abort()),n}):r.promise}},l.defaults=s.prototype,l.Builder=s,l.filterStatus=function(t){var n,r,o=this.log;if(r=typeof t,"function"===r)n=t;else{if("number"!==r)throw"validStatus type "+r+" unsupported";n=function(e){return e===t}}return function(t){var r=0;try{r=t.status}catch(i){o("Qajax: failed to read xhr.status")}return 1223===r&&(r=204),n(r)?e.resolve(t):e.reject(t)}},l.filterSuccess=l.filterStatus(function(e){return e>=200&&e<300||304===e}),l.toJSON=function(t){return e.fcall(function(){return JSON.parse(t.responseText)})},l.getJSON=function(e){return l({url:e,method:"GET"}).then(l.filterSuccess).then(l.toJSON)},l.serialize=o,l})},function(e,t,n){(function(t,n){/*! + * + * Copyright 2009-2012 Kris Kowal under the terms of the MIT + * license found at http://github.com/kriskowal/q/raw/master/LICENSE + * + * With parts by Tyler Close + * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found + * at http://www.opensource.org/licenses/mit-license.html + * Forked at ref_send.js version: 2009-05-11 + * + * With parts by Mark Miller + * Copyright (C) 2011 Google Inc. + * + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +!function(t){"use strict";if("function"==typeof bootstrap)bootstrap("promise",t);else{e.exports=t()}}(function(){"use strict";function e(e){return function(){return Z.apply(e,arguments)}}function r(e){return e===Object(e)}function o(e){return"[object StopIteration]"===oe(e)||e instanceof G}function i(e,t){if(H&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&e.stack.indexOf(ie)===-1){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+ie+"\n");e.stack=a(o)}}function a(e){for(var t=e.split("\n"),n=[],r=0;r=Y&&r<=ce}function c(){if(H)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=l(n);if(!r)return;return V=r[0],r[1]}}function f(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack),e.apply(e,arguments)}}function p(e){return e instanceof v?e:x(e)?P(e):A(e)}function h(){function e(e){t=e,i.source=e,J(n,function(t,n){p.nextTick(function(){e.promiseDispatch.apply(e,n)})},void 0),n=void 0,r=void 0}var t,n=[],r=[],o=te(h.prototype),i=te(v.prototype);if(i.promiseDispatch=function(e,o,i){var a=Q(arguments);n?(n.push(a),"when"===o&&i[1]&&r.push(i[1])):p.nextTick(function(){t.promiseDispatch.apply(t,a)})},i.valueOf=function(){if(n)return i;var e=y(t);return b(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},p.longStackSupport&&H)try{throw new Error}catch(a){i.stack=a.stack.substring(a.stack.indexOf("\n")+1)}return o.promise=i,o.resolve=function(n){t||e(p(n))},o.fulfill=function(n){t||e(A(n))},o.reject=function(n){t||e(S(n))},o.notify=function(e){t||J(r,function(t,n){p.nextTick(function(){n(e)})},void 0)},o}function d(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=h();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function m(e){return d(function(t,n){for(var r=0,o=e.length;r=r)throw new TypeError}for(;n2?e.resolve(Q(arguments,1)):e.resolve(n)}},p.Promise=d,p.promise=d,d.race=m,d.all=I,d.reject=S,d.resolve=p,p.passByCopy=function(e){return e},v.prototype.passByCopy=function(){return this},p.join=function(e,t){return p(e).join(t)},v.prototype.join=function(e){return p([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},p.race=m,v.prototype.race=function(){return this.then(p.race)},p.makePromise=v,v.prototype.toString=function(){return"[object Promise]"},v.prototype.then=function(e,t,n){function r(t){try{return"function"==typeof e?e(t):t}catch(n){return S(n)}}function o(e){if("function"==typeof t){i(e,s);try{return t(e)}catch(n){return S(n)}}return S(e)}function a(e){return"function"==typeof n?n(e):e}var s=this,l=h(),u=!1;return p.nextTick(function(){s.promiseDispatch(function(e){u||(u=!0,l.resolve(r(e)))},"when",[function(e){u||(u=!0,l.resolve(o(e)))}])}),s.promiseDispatch(void 0,"when",[void 0,function(e){var t,n=!1;try{t=a(e)}catch(r){if(n=!0,!p.onerror)throw r;p.onerror(r)}n||l.notify(t)}]),l.promise},p.tap=function(e,t){return p(e).tap(t)},v.prototype.tap=function(e){return e=p(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},p.when=g,v.prototype.thenResolve=function(e){return this.then(function(){return e})},p.thenResolve=function(e,t){return p(e).thenResolve(t)},v.prototype.thenReject=function(e){return this.then(function(){throw e})},p.thenReject=function(e,t){return p(e).thenReject(t)},p.nearer=y,p.isPromise=b,p.isPromiseAlike=x,p.isPending=_,v.prototype.isPending=function(){return"pending"===this.inspect().state},p.isFulfilled=w,v.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},p.isRejected=T,v.prototype.isRejected=function(){return"rejected"===this.inspect().state};var ae=[],se=[],le=[],ue=!0;p.resetUnhandledRejections=C,p.getUnhandledReasons=function(){return ae.slice()},p.stopUnhandledRejectionTracking=function(){C(),ue=!1},C(),p.reject=S,p.fulfill=A,p.master=M,p.spread=O,v.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},p.async=D,p.spawn=L,p["return"]=j,p.promised=R,p.dispatch=F,v.prototype.dispatch=function(e,t){var n=this,r=h();return p.nextTick(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},p.get=function(e,t){return p(e).dispatch("get",[t])},v.prototype.get=function(e){return this.dispatch("get",[e])},p.set=function(e,t,n){return p(e).dispatch("set",[t,n])},v.prototype.set=function(e,t){return this.dispatch("set",[e,t])},p.del=p["delete"]=function(e,t){return p(e).dispatch("delete",[t])},v.prototype.del=v.prototype["delete"]=function(e){return this.dispatch("delete",[e])},p.mapply=p.post=function(e,t,n){return p(e).dispatch("post",[t,n])},v.prototype.mapply=v.prototype.post=function(e,t){return this.dispatch("post",[e,t])},p.send=p.mcall=p.invoke=function(e,t){return p(e).dispatch("post",[t,Q(arguments,2)])},v.prototype.send=v.prototype.mcall=v.prototype.invoke=function(e){return this.dispatch("post",[e,Q(arguments,1)])},p.fapply=function(e,t){return p(e).dispatch("apply",[void 0,t])},v.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},p["try"]=p.fcall=function(e){return p(e).dispatch("apply",[void 0,Q(arguments,1)])},v.prototype.fcall=function(){return this.dispatch("apply",[void 0,Q(arguments)])},p.fbind=function(e){var t=p(e),n=Q(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(Q(arguments))])}},v.prototype.fbind=function(){var e=this,t=Q(arguments);return function(){return e.dispatch("apply",[this,t.concat(Q(arguments))])}},p.keys=function(e){return p(e).dispatch("keys",[])},v.prototype.keys=function(){return this.dispatch("keys",[])},p.all=I,v.prototype.all=function(){return I(this)},p.any=N,v.prototype.any=function(){return N(this)},p.allResolved=f(B,"allResolved","allSettled"),v.prototype.allResolved=function(){return B(this)},p.allSettled=z,v.prototype.allSettled=function(){return this.then(function(e){return I(ee(e,function(e){function t(){return e.inspect()}return e=p(e),e.then(t,t)}))})},p.fail=p["catch"]=function(e,t){return p(e).then(void 0,t)},v.prototype.fail=v.prototype["catch"]=function(e){return this.then(void 0,e)},p.progress=U,v.prototype.progress=function(e){return this.then(void 0,void 0,e)},p.fin=p["finally"]=function(e,t){return p(e)["finally"](t)},v.prototype.fin=v.prototype["finally"]=function(e){return e=p(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},p.done=function(e,t,n,r){return p(e).done(t,n,r)},v.prototype.done=function(e,n,r){var o=function(e){p.nextTick(function(){if(i(e,a),!p.onerror)throw e;p.onerror(e)})},a=e||n||r?this.then(e,n,r):this;"object"==typeof t&&t&&t.domain&&(o=t.domain.bind(o)),a.then(void 0,o)},p.timeout=function(e,t,n){return p(e).timeout(t,n)},v.prototype.timeout=function(e,t){var n=h(),r=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+e+" ms"),t.code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},p.delay=function(e,t){return void 0===t&&(t=e,e=void 0),p(e).delay(t)},v.prototype.delay=function(e){return this.then(function(t){var n=h();return setTimeout(function(){n.resolve(t)},e),n.promise})},p.nfapply=function(e,t){return p(e).nfapply(t)},v.prototype.nfapply=function(e){var t=h(),n=Q(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},p.nfcall=function(e){var t=Q(arguments,1);return p(e).nfapply(t)},v.prototype.nfcall=function(){var e=Q(arguments),t=h();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},p.nfbind=p.denodeify=function(e){var t=Q(arguments,1);return function(){var n=t.concat(Q(arguments)),r=h();return n.push(r.makeNodeResolver()),p(e).fapply(n).fail(r.reject),r.promise}},v.prototype.nfbind=v.prototype.denodeify=function(){var e=Q(arguments);return e.unshift(this),p.denodeify.apply(void 0,e)},p.nbind=function(e,t){var n=Q(arguments,2);return function(){function r(){return e.apply(t,arguments)}var o=n.concat(Q(arguments)),i=h();return o.push(i.makeNodeResolver()),p(r).fapply(o).fail(i.reject),i.promise}},v.prototype.nbind=function(){var e=Q(arguments,0);return e.unshift(this),p.nbind.apply(void 0,e)},p.nmapply=p.npost=function(e,t,n){return p(e).npost(t,n)},v.prototype.nmapply=v.prototype.npost=function(e,t){var n=Q(t||[]),r=h();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},p.nsend=p.nmcall=p.ninvoke=function(e,t){var n=Q(arguments,2),r=h();return n.push(r.makeNodeResolver()),p(e).dispatch("post",[t,n]).fail(r.reject),r.promise},v.prototype.nsend=v.prototype.nmcall=v.prototype.ninvoke=function(e){var t=Q(arguments,1),n=h();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},p.nodeify=W,v.prototype.nodeify=function(e){return e?void this.then(function(t){p.nextTick(function(){e(null,t)})},function(t){p.nextTick(function(){e(t)})}):this},p.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var ce=c();return p})}).call(t,n(294),n(896).setImmediate)},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var i=n(294).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,l={},u=0;t.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,r=!(arguments.length<2)&&s.call(arguments,1);return l[n]=!0,i(function(){l[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete l[e]}}).call(t,n(896).setImmediate,n(896).clearImmediate)},function(e,t,n){var r,o=function(){function e(e,t){if(!o[e]){o[e]={};for(var n=0;n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(e){if(null===e||void 0===e)return i.decompress(e);for(var n=new Array(e.length/2),r=0,o=n.length;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(o=a[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++),a[u]=p++,c=String(l)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r>=1}else{for(o=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(o=a[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++)}for(o=2,r=0;r>=1;for(;;){if(m<<=1,v==t-1){d.push(n(m));break}v++}return d.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,n,r){var o,i,a,s,l,u,c,f,p=[],h=4,d=4,m=3,v="",g=[],y={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)p[i]=i;for(s=0,u=Math.pow(2,2),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;switch(o=s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;f=t(s);break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;f=t(s);break;case 2:return""}for(p[3]=f,a=f,g.push(f);;){if(y.index>e)return"";for(s=0,u=Math.pow(2,m),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;switch(f=s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;p[d++]=t(s),f=d-1,h--;break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)l=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),s|=(l>0?1:0)*c,c<<=1;p[d++]=t(s),f=d-1,h--;break;case 2:return g.join("")}if(0==h&&(h=Math.pow(2,m),m++),p[f])v=p[f];else{if(f!==d)return null;v=a+a.charAt(0)}g.push(v),p[d++]=a+v.charAt(0),h--,a=v,0==h&&(h=Math.pow(2,m),m++)}}};return i}();r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t){"use strict";var n={assertRequired:function(e,t){t.forEach(function(t){if(!(t in e)||void 0===e[t])throw Error(t+" is a required arg")})}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(900),i=r(o),a=n(901),s=r(a),l=n(902),u=r(l),c={};c.DataTypes=["String","Float","Integer","MultiChoiceInt"],c.TableColInfo=function(e,t,n,r){var o={};return o.ID=e,o.name=t,o.datatype=n,o.choicelist=r,o.content2Display=function(e){return e.toString()},o.display2Content=function(e){return e},o.isNumerical=function(){return"Float"==this.datatype||"Integer"==this.datatype},o.isMultipleCoice=function(){return"MultiChoiceInt"==this.datatype||this.choicelist&&this.choicelist.length>0},o},c.WhereClause={},c.WhereClause.whcClassGenerator={},c.WhereClause._fieldComparisonOperators=[{ID:"=",name:"=",String:!0,Float:!0,Integer:!0,MultiChoiceInt:!0,Create:function(){return c.WhereClause.CompareFixed("","=","")},fieldType:"value"},{ID:"<>",name:"not =",String:!0,Float:!0,Integer:!0,MultiChoiceInt:!0,Create:function(){return c.WhereClause.CompareFixed("","<>","")},fieldType:"value"},{ID:"<",name:"<",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareFixed("","<","")},fieldType:"value"},{ID:">",name:">",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareFixed("",">","")},fieldType:"value"},{ID:"<=",name:"<=",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareFixed("","<=","")},fieldType:"value"},{ID:">=",name:">=",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareFixed("",">=","")},fieldType:"value"},{ID:"between",name:"Between",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareBetween("","","")},fieldType:"minMax"},{ID:"CONTAINS",name:"Contains",String:!0,Create:function(){return c.WhereClause.CompareFixed("","CONTAINS","")},fieldType:"value"},{ID:"NOTCONTAINS",name:"Does not contain",String:!0,Create:function(){return c.WhereClause.CompareFixed("","NOTCONTAINS","")},fieldType:"value"},{ID:"STARTSWITH",name:"Starts with",String:!0,Create:function(){return c.WhereClause.CompareFixed("","STARTSWITH","")},fieldType:"value"},{ID:"LIKE",name:"Like",String:!0,Create:function(){return c.WhereClause.CompareFixed("","LIKE","")},fieldType:"value"},{ID:"ISPRESENT",name:"Is present",MultiChoiceInt:!0,Float:!0,Integer:!0,Create:function(){return c.WhereClause.IsPresent()},fieldType:"none"},{ID:"ISABSENT",name:"Is absent",MultiChoiceInt:!0,Float:!0,Integer:!0,Create:function(){return c.WhereClause.IsAbsent()},fieldType:"none"},{ID:"ISNOTEMPTYSTR",name:"Is present",String:!0,Create:function(){return c.WhereClause.IsNotEmptyStr()},fieldType:"none"},{ID:"ISEMPTYSTR",name:"Is absent",String:!0,Create:function(){return c.WhereClause.IsEmptyStr()},fieldType:"none"},{ID:"=FIELD",name:"Equals column",MultiChoiceInt:!0,String:!0,Float:!0,Integer:!0,Create:function(){return c.WhereClause.EqualsField()},fieldType:"otherColumn"},{ID:"<>FIELD",name:"Differs from column",MultiChoiceInt:!0,String:!0,Float:!0,Integer:!0,Create:function(){return c.WhereClause.DiffersField()},fieldType:"otherColumn"},{ID:"FIELD",name:"> Column",Float:!0,Integer:!0,Create:function(){return c.WhereClause.CompareField(">FIELD")},fieldType:"otherColumnWithScaleAndOffset"},{ID:"_subset_",name:"in subset",Create:function(){return c.WhereClause.InSubset()},fieldType:"subset"},{ID:"_note_",name:"has note containing",Create:function(){return c.WhereClause.NoteContains()},fieldType:"note"}],c.WhereClause.getFieldComparisonOperatorInfo=function(e){for(var t in c.WhereClause._fieldComparisonOperators){var n=c.WhereClause._fieldComparisonOperators[t];if(n.ID==e)return n}throw Error("Invalid field comparison operator id "+e)},c.WhereClause.getCompatibleFieldComparisonOperators=function(e){var t=[];for(var n in c.WhereClause._fieldComparisonOperators){var r=c.WhereClause._fieldComparisonOperators[n];r[e]&&t.push(r)}return t},c.WhereClause.whcClassGenerator.comparefixed=function(e){return c.WhereClause.CompareFixed(e.ColName,e.type,e.CompValue)},c.WhereClause.CompareFixed=function(e,t,n){for(var r={},o=!1,i=0;iFIELD",e.toQueryDisplayString=function(t,n){return t.fieldInfoMap[e.ColName].name+" <> "+t.fieldInfoMap[e.ColName2].name},e},c.WhereClause.whcClassGenerator.comparefield=function(e){var t=c.WhereClause.CompareField(e.type);return t.ColName=e.ColName,t.ColName2=e.ColName2,t.Factor=e.Factor,t.Offset=e.Offset,t},c.WhereClause.CompareField=function(e){var t={};return t.whcClass="comparefield",t.isCompound=!1,t.ColName="",t.ColName2="",t.type=e,t.Factor=1,t.Offset=0,t.toQueryDisplayString=function(e,n){var r=e.fieldInfoMap[t.ColName].name+" "+t.type[0]+" ";if(Math.abs(t.Factor-1)>1e-9){var o=void 0;if(0==t.Factor)o="0";else{var i=parseFloat(t.Factor),a=Math.max(0,Math.round(4-Math.log(Math.abs(i))/Math.LN10));o=i.toFixed(a)}r+=o+"x"}r+=e.fieldInfoMap[t.ColName2].name;var s=e.fieldInfoMap[t.ColName].toDisplayString(Math.abs(t.Offset));return t.Offset>0&&(r+="+"+s),t.Offset<0&&(r+="-"+s),r},t},c.WhereClause.whcClassGenerator.ispresent=function(e){var t=c.WhereClause.IsPresent();return t.ColName=e.ColName,t},c.WhereClause.IsPresent=function(){var e={};return e.whcClass="ispresent",e.isCompound=!1,e.type="ISPRESENT",e.toQueryDisplayString=function(t,n){return t.fieldInfoMap[e.ColName].name+" is present"},e},c.WhereClause.whcClassGenerator.isabsent=function(e){var t=c.WhereClause.IsAbsent();return t.ColName=e.ColName,t},c.WhereClause.IsAbsent=function(){var e={};return e.whcClass="isabsent",e.isCompound=!1,e.type="ISABSENT",e.toQueryDisplayString=function(t,n){return t.fieldInfoMap[e.ColName].name+" is absent"},e},c.WhereClause.whcClassGenerator.isstringnonempty=function(e){var t=c.WhereClause.IsNotEmptyStr();return t.ColName=e.ColName,t},c.WhereClause.IsNotEmptyStr=function(){var e={};return e.whcClass="isstringnonempty",e.isCompound=!1,e.type="ISNOTEMPTYSTR",e.toQueryDisplayString=function(t,n){return t.fieldInfoMap[e.ColName].name+" is present"},e},c.WhereClause.whcClassGenerator.isstringempty=function(e){var t=c.WhereClause.IsEmptyStr();return t.ColName=e.ColName,t},c.WhereClause.IsEmptyStr=function(){var e={};return e.whcClass="isstringempty",e.isCompound=!1,e.type="ISEMPTYSTR",e.toQueryDisplayString=function(t,n){return t.fieldInfoMap[e.ColName].name+" is absent"},e},c.WhereClause.whcClassGenerator._subset_=function(e){var t=c.WhereClause.InSubset();return t.Subset=e.Subset,t.SubsetTable=e.SubsetTable,t.PrimKey=e.PrimKey,t},c.WhereClause.InSubset=function(){var e={};return e.whcClass="_subset_",e.isCompound=!1,e.type="_subset_",e.ColName="_subset_",e.toQueryDisplayString=function(e,t){var n="[Unknown]";return e.subsetMap[this.Subset]&&(n=e.subsetMap[this.Subset].name),'in subset "'+n+'"'},e},c.WhereClause.whcClassGenerator._note_=function(e){var t=c.WhereClause.NoteContains();return t.NoteText=e.NoteText,t.PrimKey=e.PrimKey,t.NoteItemTable=e.NoteItemTable,t},c.WhereClause.NoteContains=function(){var e={};return e.whcClass="_note_",e.isCompound=!1,e.type="_note_",e.ColName="_note_",e.NoteText="",e.toQueryDisplayString=function(e,t){return'has note containing "'+this.NoteText+'"'},e},c.WhereClause.whcClassGenerator.trivial=function(e){return c.WhereClause.Trivial()},c.WhereClause.Trivial=function(){var e={};return e.whcClass="trivial",e.isCompound=!1,e.type="",e.isTrivial=!0,e.toQueryDisplayString=function(e,t){return"All"},e},c.WhereClause.whcClassGenerator.none=function(e){return c.WhereClause.None()},c.WhereClause.None=function(){var e={};return e.whcClass="none",e.isCompound=!1,e.type="None",e.isNone=!0,e.toQueryDisplayString=function(e,t){return"None"},e},c.WhereClause.whcClassGenerator.compound=function(e){var t=c.WhereClause.Compound(e.type,[]);return e.components.forEach(function(e,n){return t.addComponent(c.WhereClause.whcClassGenerator[e.whcClass](e))}),t},c.WhereClause.Compound=function(e,t){if("AND"!=e&&"OR"!=e)throw Error("Invalid compound where clause statement: "+e);var n={};return n.whcClass="compound",n.isCompound=!0,n.type=e,n.components=(0,u["default"])(t,function(e){return!e.isTrivial}),null==n.components&&(n.components=[]),n.addComponent=function(e){e.parent=n,this.components.push(e)},n.getComponentCount=function(){return this.components.length},n.inlineIfOneChild=function(){if(1===n.getComponentCount()){var e=n.parent,t=n.isRoot;Object.assign(n,n.components[0]),n.parent=e,n.isRoot=t}},n.removeChild=function(e){n.components=n.components.filter(function(t){return t===e}),n.inlineIfOneChild()},n.toQueryDisplayString=function(e,t){t||(t=0);var r=[];n.components.forEach(function(n,o){return r.push(n.toQueryDisplayString(e,t+1))});var o=" "+n.type+" ",i=r.join(o);return 1==t&&(i="["+i+"]"),t>1&&(i="("+i+")"),i},n},c.WhereClause.AND=function(e){return c.WhereClause.Compound("AND",e)},c.WhereClause.OR=function(e){return c.WhereClause.Compound("OR",e)},c.WhereClause.encode=function(e){function t(e){delete e.parent,e.Components=void 0===e.components?e.Components:e.components,e.Tpe=void 0===e.type?e.Tpe:e.type,e.components&&e.components.forEach(t),delete e.components,delete e.type}e=(0,i["default"])(e),t(e);var n=JSON.stringify(e),r=s["default"].encode(n); +if(r=r.replace(/\+/g,"-"),r=r.replace(/\//g,"_"),s["default"].decode(r)!=n)throw Error("Invalid encoding");return r},c.WhereClause.decode=function(e){function t(e,n){n.components=void 0===n.Components?n.components:n.Components,n.type=void 0===n.Tpe?n.type:n.Tpe,delete n.Tpe,delete n.Components,n.components&&n.components.forEach(t.bind(this,n))}function n(e,t){t.parent=e,t.components&&t.components.forEach(n.bind(this,t))}function r(e,t){t.isCompound&&t.inlineIfOneChild(),t.components&&t.components.forEach(r.bind(this,t))}var o=s["default"].decode(e);try{o=JSON.parse(o)}catch(i){return console.error("Bad query - can't parse. Using null query"),c.WhereClause.Trivial()}t(null,o);var a=c.WhereClause.whcClassGenerator[o.whcClass](o);return n(null,a),r(null,a),a.isRoot=!0,a},c.WhereClause.clone=function(e){return c.WhereClause.decode(c.WhereClause.encode(e))},c.WhereClause.createRestriction=function(e,t){var n=c.WhereClause.clone(e);return n.isTrivial?t:n.isCompound&&"AND"==n.type?(n.addComponent(t),n):c.WhereClause.AND([n,t])},c.WhereClause.createValueRestriction=function(e,t,n,r){r||(r="=");var o=c.WhereClause.clone(e),i=c.WhereClause.CompareFixed(t,r,n.toString());if(o.isTrivial)return i;var a=null;return o.type==r&&o.ColName==t&&(a=o),o.isCompound&&"AND"==o.type&&o.components.forEach(function(e,n){e.type==r&&e.ColName==t&&(a=e)}),a?(a.CompValue=n,o):o.isCompound&&"AND"==o.type?(o.addComponent(i),o):c.WhereClause.AND([o,i])},c.WhereClause.createRangeRestriction=function(e,t,n,r,o){var i=c.WhereClause.clone(e),a=c.WhereClause.CompareBetween(t,n.toString(),r.toString());if(i.isTrivial)return a;var s=null;return"between"==i.type&&i.ColName==t&&(s=i),i.isCompound&&"AND"==i.type&&i.components.forEach(function(e,n){"between"==e.type&&e.ColName==t&&(s=e)}),s?(o?(s.CompValueMin=n.toString(),s.CompValueMax=r.toString()):(s.CompValueMin=Math.max(parseFloat(s.CompValueMin),parseFloat(n)).toString(),s.CompValueMax=Math.min(parseFloat(s.CompValueMax),parseFloat(r)).toString()),i):i.isCompound&&"AND"==i.type?(i.addComponent(a),i):c.WhereClause.AND([i,a])},c.TableSort=function(e){var t={};return t.columnList=e,t.getPrimaryColumnID=function(){return this.columnList[this.columnList.length-1]},t.toString=function(){return this.columnList.join("~")},t},c.nullQuery=c.WhereClause.encode(c.WhereClause.Trivial()),e.exports=c},function(e,t,n){function r(e){return o(e,!0,!0)}var o=n(800);e.exports=r},function(e,t){"use strict";var n={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",encode:function(e){var t="",r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=0;for(e=n._utf8Encode(e);c>2,s=(3&r)<<4|o>>4,l=(15&o)<<2|i>>6,u=63&i,isNaN(o)?l=u=64:isNaN(i)&&(u=64),t=t+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(l)+this._keyStr.charAt(u);return t},decode:function(e){for(var t="",r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=0;c>4,o=(15&s)<<4|l>>2,i=(3&l)<<6|u,t+=String.fromCharCode(r),64!=l&&(t+=String.fromCharCode(o)),64!=u&&(t+=String.fromCharCode(i));return t=n._utf8Decode(t)},_utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},_utf8Decode:function(e){var t="",n=0,r=void 0,o=void 0,i=void 0;for(r=o=0;n191&&r<224?(o=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&o),n+=2):(o=e.charCodeAt(n+1),i=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i),n+=3);return t}};e.exports=n},function(e,t,n){function r(e,t){var n=s(e)?o:i;return n(e,a(t,3))}var o=n(903),i=n(904),a=n(723),s=n(637);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=e?e.length:0,o=0,i=[];++n>=1;return o},t.getRecordLength=function(){return this.byteCount},t},o.Encoder.MultiCatCount=function(e){var t={};n(e.CatCount),n(e.EncoderLen),t.catCount=parseInt(e.CatCount),t.encoderlen=parseInt(e.EncoderLen);var r=o.B64();return t.decodeArray=function(e){for(var n=e.length,o=[],i=0;in.MAX_ENTRIES&&(delete n.cache[n.lru[0]],n.lru=n.lru.slice(1)),delete n.cancellers[e],t})["catch"](function(t){throw delete n.cache[e],delete n.cancellers[e],n.lru=(0,s["default"])(n.lru,e),t}));var l=u["default"].defer();return this.numberWaitingFor[e]||(this.numberWaitingFor[e]=0),this.numberWaitingFor[e]+=1,r.then(function(){n.numberWaitingFor[e]-=1,0===n.numberWaitingFor[e]&&n.cancellers[e]&&n.cancellers[e].resolve(),l.reject(c)}),this.cache[e].then(function(t){n.numberWaitingFor[e]-=1,l.resolve(t)}),this.cache[e]["catch"](function(t){n.numberWaitingFor[e]=0,l.reject(t)}),l.promise},filterCancelled:function(e){if(e!==c)throw e;return"__CANCELLED__"}};e.exports=f},function(e,t,n){function r(e,t){return null!=e&&i(e,t,o)}var o=n(697),i=n(741);e.exports=r},function(e,t,n){var r=n(911),o=n(704),i=n(649),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},function(e,t,n){function r(e,t,n,r){var f=-1,p=i,h=!0,d=e.length,m=[],v=t.length;if(!d)return m;n&&(t=s(t,l(n))),r?(p=a,h=!1):t.length>=c&&(p=u,h=!1,t=new o(t));e:for(;++f-1}var o=n(913);e.exports=r},function(e,t,n){function r(e,t,n){if(t!==t)return o(e,n);for(var r=n-1,i=e.length;++rn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t+e)%360,t=t<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var n=this,r=e,o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*o+r.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e=new a;return e.values=r(this.values),e}},a.prototype.getValues=function(e){for(var t={},n=0;n + * @license MIT + */ +"use strict";function o(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(t){return this instanceof e?(e.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof t?a(this,t):"string"==typeof t?s(this,t,arguments.length>1?arguments[1]:"utf8"):l(this,t)):arguments.length>1?new e(t,arguments[1]):new e(t)}function a(t,n){if(t=m(t,n<0?0:0|v(n)),!e.TYPED_ARRAY_SUPPORT)for(var r=0;r>>1;return r&&(t.parent=Q),t}function v(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function g(t,n){if(!(this instanceof g))return new g(t,n);var r=new e(t,n);return delete r.parent,r}function y(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),t<0&&(t=0),n>this.length&&(n=this.length),n<=t)return"";for(;;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return P(this,t,n);case"binary":return M(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var l,u,c,f;switch(s){case 1:i<128&&(a=i);break;case 2:l=e[o+1],128===(192&l)&&(f=(31&i)<<6|63&l,f>127&&(a=f));break;case 3:l=e[o+1],u=e[o+2],128===(192&l)&&128===(192&u)&&(f=(15&i)<<12|(63&l)<<6|63&u,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:l=e[o+1],u=e[o+2],c=e[o+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(f=(15&i)<<18|(63&l)<<12|(63&u)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return A(r)}function A(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function j(t,n,r,o,i,a){if(!e.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(n>i||nt.length)throw new RangeError("index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(t>o||te.length)throw new RangeError("index out of range");if(n<0)throw new RangeError("index out of range")}function N(e,t,n,r,o){return o||I(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||I(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function z(e){if(e=U(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function U(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function G(e){return K.toByteArray(z(e))}function Y(e,t,n,r){for(var o=0;o=t.length||o>=e.length);o++)t[o+n]=e[o];return o}var K=n(926),X=n(927),Z=n(928);t.Buffer=e,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50,e.poolSize=8192;var Q={};e.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:o(),e.TYPED_ARRAY_SUPPORT?(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array):(e.prototype.length=void 0,e.prototype.parent=void 0),e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,o=n.length,i=0,a=Math.min(r,o);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},e.prototype.compare=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:e.compare(this,t)},e.prototype.indexOf=function(t,n){function r(e,t,n){for(var r=-1,o=0;n+o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(n<0&&(n=Math.max(this.length+n,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,n);if(e.isBuffer(t))return r(this,t,n);if("number"==typeof t)return e.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,n):r(this,[t],n);throw new TypeError("val must be string, number or Buffer")},e.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},e.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=t,t=0|n,n=o}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"binary":return T(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n0&&(o*=256);)r+=this[e+--t]*o;return r},e.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},e.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},e.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||j(this,e,t,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},e.prototype.writeUInt8=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):R(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):R(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):F(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):F(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=0,a=1,s=e<0?1:0;for(this[t]=255&e;++i>0)-s&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=e<0?1:0;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=(e/a>>0)-s&255;return t+n},e.prototype.writeInt8=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):R(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):R(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):F(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,r){return t=+t,n=0|n,r||j(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):F(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,o){if(r||(r=0),o||0===o||(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n=0;i--)t[i+n]=this[i+r];else if(a<1e3||!e.TYPED_ARRAY_SUPPORT)for(i=0;i=this.length)throw new RangeError("start out of bounds");if(n<0||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;r0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;l="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,u=new i(3*e.length/4-l),a=l>0?e.length-4:e.length;var f=0;for(r=0,o=0;r>16),n((65280&s)>>8),n(255&s);return 2===l?(s=t(e.charAt(r))<<2|t(e.charAt(r+1))>>4,n(255&s)):1===l&&(s=t(e.charAt(r))<<10|t(e.charAt(r+1))<<4|t(e.charAt(r+2))>>2,n(s>>8&255),n(255&s)),u}function o(e){function t(e){return r.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var o,i,a,s=e.length%3,l="";for(o=0,a=e.length-s;o>2),l+=t(i<<4&63),l+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],l+=t(i>>10),l+=t(i>>4&63),l+=t(i<<2&63),l+="="}return l}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),l="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0),f="-".charCodeAt(0),p="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=o}(t)},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?p/l:p*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,u-=8);e[n+h-d]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){function r(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function o(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var o=.4124*t+.3576*n+.1805*r,i=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*o,100*i,100*a]},a.rgb.lab=function(e){var t,n,r,o=a.rgb.xyz(e),i=o[0],s=o[1],l=o[2];return i/=95.047,s/=100,l/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,t=116*s-16,n=500*(i-s),r=200*(s-l),[t,n,r]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return i=255*l,[i,i,i];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,o=[0,0,0];for(var u=0;u<3;u++)r=a+1/3*-(u-1),r<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[u]=255*i;return o},a.hsl.hsv=function(e){var t,n,r=e[0],o=e[1]/100,i=e[2]/100;return 0===i?[0,0,0]:(i*=2,o*=i<=1?i:2-i,n=(i+o)/2,t=2*o/(i+o),[r,100*t,100*n])},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r=e[0],o=e[1]/100,i=e[2]/100;return n=(2-o)*i,t=o*i,t/=n<=1?n:2-n,t=t||0,n/=2,[r,100*t,100*n]},a.hwb.rgb=function(e){var t,n,r,o,i=e[0]/360,a=e[1]/100,s=e[2]/100,l=a+s;l>1&&(a/=l,s/=l),t=Math.floor(6*i),n=1-s,r=6*i-t,0!==(1&t)&&(r=1-r),o=a+r*(n-a);var u,c,f;switch(t){default:case 6:case 0:u=n,c=o,f=a;break;case 1:u=o,c=n,f=a;break;case 2:u=a,c=n,f=o;break;case 3:u=a,c=o,f=n;break;case 4:u=o,c=a,f=n;break;case 5:u=n,c=a,f=o}return[255*u,255*c,255*f]},a.cmyk.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,o*(1-s)+s),n=1-Math.min(1,i*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return t=3.2406*o+i*-1.5372+a*-.4986,n=o*-.9689+1.8758*i+.0415*a,r=.0557*o+i*-.204+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},a.xyz.lab=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return o/=95.047,i/=100,a/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*i-16,n=500*(o-i),r=200*(i-a),[t,n,r]},a.lab.xyz=function(e){var t,n,r,o,i=e[0],a=e[1],s=e[2];return i<=8?(n=100*i/903.3,o=7.787*(n/100)+16/116):(n=100*Math.pow((i+16)/116,3),o=Math.pow(n/100,1/3)),t=t/95.047<=.008856?t=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),r=r/108.883<=.008859?r=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3),[t,n,r]},a.lab.lch=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return t=Math.atan2(a,i),n=360*t/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(i*i+a*a),[o,r,n]},a.lch.lab=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return r=a/360*2*Math.PI,t=i*Math.cos(r),n=i*Math.sin(r),[o,t,n]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(o=Math.round(o/50),0===o)return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=.5*(~~(e>50)+1),r=(1&t)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}e-=16;var n,r=Math.floor(e/36)/5*255,o=Math.floor((n=e%36)/6)/5*255,i=n%6/5*255;return[r,o,i]},a.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}/i);if(!t)return[0,0,0];var n=parseInt(t[0],16),r=n>>16&255,o=n>>8&255,i=255&n;return[r,o,i]},a.rgb.hcg=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,o),i),s=Math.min(Math.min(r,o),i),l=a-s;return t=l<1?s/(1-l):0,n=l<=0?0:a===r?(o-i)/l%6:a===o?2+(i-r)/l:4+(r-o)/l+4,n/=6,n%=1,[360*n,100*l,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,a=i%1,s=1-a,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},a.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),o=0;return r>0&&(o=t/r),[e[0],100*o,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],100*o,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,o=r-t,i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],100*o,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]}},function(e,t){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114], +sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){function r(){for(var e={},t=l.length,n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.insetChildren,o=e.leftAvatar,i=e.leftCheckbox,a=e.leftIcon,s=e.nestedLevel,l=e.rightAvatar,u=e.rightIcon,c=e.rightIconButton,f=e.rightToggle,p=e.secondaryText,h=e.secondaryTextLines,d=t.muiTheme,m=d.listItem,v=d.baseTheme.palette.textColor,g=(0,b.fade)(v,.1),y=!p&&(o||l),x=!p&&!(o||l),w=p&&1===h,T=p&&h>1,C={root:{backgroundColor:!n.isKeyboardFocused&&!n.hovered||n.rightIconButtonHovered||n.rightIconButtonKeyboardFocused?null:g,color:v,display:"block",fontSize:16,lineHeight:"16px",position:"relative",transition:_["default"].easeOut()},innerDiv:{marginLeft:s*m.nestedLevelDepth,paddingLeft:a||o||i||r?72:16,paddingRight:u||l||c?56:f?72:16,paddingBottom:y?20:16,paddingTop:x||T?16:20,position:"relative"},icons:{height:24,width:24,display:"block",position:"absolute",top:w?12:y?4:0,margin:12},leftIcon:{left:4},rightIcon:{right:4},avatars:{position:"absolute",top:y?8:16},label:{cursor:"pointer"},leftAvatar:{left:16},rightAvatar:{right:16},leftCheckbox:{position:"absolute",display:"block",width:24,top:w?24:y?16:12,left:16},primaryText:{},rightIconButton:{position:"absolute",display:"block",top:w?12:y?4:0,right:4},rightToggle:{position:"absolute",display:"block",width:54,top:w?25:y?17:13,right:8},secondaryText:{fontSize:14,lineHeight:T?"18px":"16px",height:T?36:16,margin:0,marginTop:4,color:m.secondaryTextColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:T?null:"nowrap",display:T?"-webkit-box":null,WebkitLineClamp:T?2:null,WebkitBoxOrient:T?"vertical":null}};return C}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0?t.props.nestedItems.reduce(r.hasSelectedDescendant,e):e||r.isChildSelected(t,r.props)},r.handleItemTouchTap=function(e,t){var n=r.getValueLink(r.props),o=t.props.value;o!==n.value&&n.requestChange(e,o)},a=t,i(r,a)}return a(n,t),l(n,[{key:"getValueLink",value:function(e){return e.valueLink||{value:e.value,requestChange:e.onChange}}},{key:"extendChild",value:function(e,t,n){var r=this;if(e&&e.type&&"ListItem"===e.type.muiName){var o=this.isChildSelected(e,this.props),i=void 0;o&&(i=(0,c["default"])({},t,n));var a=(0,c["default"])({},e.props.style,i);return this.keyIndex+=1,p["default"].cloneElement(e,{onTouchTap:function(t){r.handleItemTouchTap(t,e),e.props.onTouchTap&&e.props.onTouchTap(t)},key:this.keyIndex,style:a,nestedItems:e.props.nestedItems.map(function(e){return r.extendChild(e,t,n)}),initiallyOpen:this.isInitiallyOpen(e)})}return e}},{key:"isInitiallyOpen",value:function(e){return e.props.initiallyOpen?e.props.initiallyOpen:this.hasSelectedDescendant(!1,e)}},{key:"isChildSelected",value:function(e,t){return this.getValueLink(t).value===e.props.value}},{key:"render",value:function(){var t=this,n=this.props,r=n.children,o=n.selectedItemStyle;this.keyIndex=0;var i={};if(!o){var a=this.context.muiTheme.baseTheme.palette.textColor;i.backgroundColor=(0,h.fade)(a,.2)}return p["default"].createElement(e,s({},this.props,this.state),p["default"].Children.map(r,function(e){return t.extendChild(e,i,o)}))}}]),n}(e),t.propTypes={children:f.PropTypes.node,onChange:f.PropTypes.func,selectedItemStyle:f.PropTypes.object,value:f.PropTypes.any,valueLink:(0,m["default"])(f.PropTypes.shape({value:f.PropTypes.any,requestChange:f.PropTypes.func}),"This property is deprecated due to his low popularity. Use the value and onChange property.\n It will be removed with v0.16.0.")},t.contextTypes={muiTheme:f.PropTypes.object.isRequired},n};t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(955),s=r(a),l=n(596),u=r(l),c=n(594),f=r(c),p=n(595),h=r(p),d=n(956),m=r(d),v=n(958),g=r(v),y=n(744),b=r(y),x=n(959),_=r(x),w=n(919),T=r(w),C=n(922),E=r(C),k=n(892),S=r(k),A=i["default"].createClass({displayName:"DatasetManagerActions",mixins:[u["default"],f["default"],h["default"]],propTypes:{componentUpdate:i["default"].PropTypes.func.isRequired,title:i["default"].PropTypes.string,sidebar:i["default"].PropTypes.bool},getDefaultProps:function(){return{sidebar:!0}},icon:function(){return"database"},title:function(){return this.props.title||"Dataset manager"},handleReloadConfig:function(){S["default"].importDatasetConfig(this.config.dataset)},handleReimport:function(){S["default"].importDataset(this.config.dataset)},render:function(){var e=this,t=this.props,n=t.sidebar,r=t.componentUpdate;if(!this.config.user.isManager)return i["default"].createElement(T["default"],{status:"custom"},"Sorry you do not have management permissions for this dataset");var o=this.config.settings.name,a=this.config.dataset,l=i["default"].createElement("div",{className:"sidebar"},i["default"].createElement(g["default"],{icon:this.icon(),description:"Import and configure the "+o+" ("+a+") dataset"}),i["default"].createElement(_["default"],{label:"Reload config only",primary:!0,icon:i["default"].createElement(b["default"],{fixedWidth:!0,name:"cogs"}),message:"Are you sure you want to reload the configuration for the "+o+" ("+a+") dataset?",onConfirm:function(){return e.handleReloadConfig()}}),i["default"].createElement(_["default"],{label:"Reimport everything",primary:!0,icon:i["default"].createElement(b["default"],{fixedWidth:!0,name:"refresh"}),message:"Are you sure you want to reimport everything for the "+o+" ("+a+") dataset?",onConfirm:function(){return e.handleReimport()}}));return i["default"].createElement(m["default"],{styles:{sidebar:{paddingRight:(0,s["default"])()+"px"}},docked:n,sidebar:l},i["default"].createElement("div",{className:"vertical stack"},i["default"].createElement("div",{className:"top-bar"},i["default"].createElement(b["default"],{className:"pointer icon",name:n?"arrows-h":"bars",onClick:function(){return r({sidebar:!n})},title:n?"Expand":"Sidebar"}),i["default"].createElement("span",{className:"block text"},"Status logs")),i["default"].createElement("div",{className:"grow"},i["default"].createElement(E["default"],{refreshMilliseconds:2e3}))))}});e.exports=A},function(e,t,n){var r,o,i;!function(n,a){o=[],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(){var e=null;return function(){if(null!==e)return e;if("loading"!==window.document.readyState){var t,n;return t=window.document.createElement("div"),n=window.document.createElement("div"),t.style.width="100px",t.style.overflowX="scroll",n.style.width="100px",window.document.body.appendChild(t),window.document.body.appendChild(n),e=t.offsetHeight-n.offsetHeight,window.document.body.removeChild(t),window.document.body.removeChild(n),e}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(957),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;tthis.props.dragToggleDistance)&&this.props.onSetOpen(!this.props.open),this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}}},{key:"onScroll",value:function(){this.isTouching()&&this.inCancelDistanceOnScroll()&&this.setState({touchIdentifier:null,touchStartX:null,touchStartY:null,touchCurrentX:null,touchCurrentY:null})}},{key:"inCancelDistanceOnScroll",value:function(){var e=void 0;return e=this.props.pullRight?Math.abs(this.state.touchCurrentX-this.state.touchStartX)this.state.touchStartX?this.state.sidebarWidth+this.state.touchStartX-this.state.touchCurrentX:this.state.sidebarWidth:Math.min(window.innerWidth-this.state.touchCurrentX,this.state.sidebarWidth):this.props.open&&this.state.touchStartXthis.state.touchStartX?this.state.sidebarWidth:this.state.sidebarWidth-this.state.touchStartX+this.state.touchCurrentX:Math.min(this.state.touchCurrentX,this.state.sidebarWidth)}},{key:"render",value:function(){var e=s({},m.sidebar,this.props.styles.sidebar),t=s({},m.content,this.props.styles.content),n=s({},m.overlay,this.props.styles.overlay),r=this.state.dragSupported&&this.props.touch,o=this.isTouching(),i={className:this.props.rootClassName,style:s({},m.root,this.props.styles.root)},a=void 0;if(this.props.pullRight?(e.right=0,e.transform="translateX(100%)",e.WebkitTransform="translateX(100%)",this.props.shadow&&(e.boxShadow="-2px 2px 4px rgba(0, 0, 0, 0.15)")):(e.left=0,e.transform="translateX(-100%)",e.WebkitTransform="translateX(-100%)",this.props.shadow&&(e.boxShadow="2px 2px 4px rgba(0, 0, 0, 0.15)")),o){var l=this.touchSidebarWidth()/this.state.sidebarWidth;this.props.pullRight?(e.transform="translateX("+100*(1-l)+"%)",e.WebkitTransform="translateX("+100*(1-l)+"%)"):(e.transform="translateX(-"+100*(1-l)+"%)",e.WebkitTransform="translateX(-"+100*(1-l)+"%)"),n.opacity=l,n.visibility="visible"}else this.props.docked?(0!==this.state.sidebarWidth&&(e.transform="translateX(0%)",e.WebkitTransform="translateX(0%)"),this.props.pullRight?t.right=this.state.sidebarWidth+"px":t.left=this.state.sidebarWidth+"px"):this.props.open&&(e.transform="translateX(0%)",e.WebkitTransform="translateX(0%)",n.opacity=1,n.visibility="visible");if(!o&&this.props.transitions||(e.transition="none",e.WebkitTransition="none",t.transition="none",n.transition="none"),r)if(this.props.open)i.onTouchStart=this.onTouchStart,i.onTouchMove=this.onTouchMove,i.onTouchEnd=this.onTouchEnd,i.onTouchCancel=this.onTouchEnd,i.onScroll=this.onScroll;else{var u=s({},m.dragHandle,this.props.styles.dragHandle);u.width=this.props.touchHandleWidth,this.props.pullRight?u.right=0:u.left=0,a=f["default"].createElement("div",{style:u,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchEnd})}return f["default"].createElement("div",i,f["default"].createElement("div",{className:this.props.sidebarClassName,style:e,ref:"sidebar"},this.props.sidebar),f["default"].createElement("div",{className:this.props.overlayClassName,style:n,onClick:this.overlayClicked,onTouchTap:this.overlayClicked}),f["default"].createElement("div",{className:this.props.contentClassName,style:t},a,this.props.children))}}]),t}(f["default"].Component);v.propTypes={children:f["default"].PropTypes.node.isRequired,styles:f["default"].PropTypes.shape({root:f["default"].PropTypes.object,sidebar:f["default"].PropTypes.object,content:f["default"].PropTypes.object,overlay:f["default"].PropTypes.object,dragHandle:f["default"].PropTypes.object}),rootClassName:f["default"].PropTypes.string,sidebarClassName:f["default"].PropTypes.string,contentClassName:f["default"].PropTypes.string,overlayClassName:f["default"].PropTypes.string,sidebar:f["default"].PropTypes.node.isRequired,docked:f["default"].PropTypes.bool,open:f["default"].PropTypes.bool,transitions:f["default"].PropTypes.bool,touch:f["default"].PropTypes.bool,touchHandleWidth:f["default"].PropTypes.number,pullRight:f["default"].PropTypes.bool,shadow:f["default"].PropTypes.bool,dragToggleDistance:f["default"].PropTypes.number,onSetOpen:f["default"].PropTypes.func},v.defaultProps={docked:!1,open:!1,transitions:!0,touch:!0,touchHandleWidth:20,pullRight:!1,shadow:!0,dragToggleDistance:30,onSetOpen:function(){},styles:{}},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(744),u=r(l),c=i["default"].createClass({displayName:"SidebarHeader",mixins:[s["default"]],propTypes:{icon:i["default"].PropTypes.string.isRequired,description:i["default"].PropTypes.node},render:function(){var e=this.props,t=e.icon,n=e.description;return i["default"].createElement("div",{className:"sidebar-header"},i["default"].createElement("div",{className:"icon-holder"},i["default"].createElement(u["default"],{name:t})),i["default"].createElement("span",{className:"description"},n||i["default"].createElement("i",null,"No description")),i["default"].createElement("div",{style:{clear:"both"}}))}});e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(330),a=r(i),s=n(596),l=r(s),u=n(594),c=r(u),f=n(744),p=r(f),h=n(967),d=r(h),m={ItemMap:"containers/MapWithActions",Tree:"containers/TreeWithActions",Plot:"containers/PlotWithActions"},v=a["default"].createClass({displayName:"PopupButton",mixins:[l["default"],c["default"]],propTypes:{component:a["default"].PropTypes.string,componentPath:a["default"].PropTypes.string,label:a["default"].PropTypes.string,icon:a["default"].PropTypes.string,componentUpdate:a["default"].PropTypes.func},handleClick:function(e){var t=this.props,n=t.component,r=t.componentPath,i=t.componentUpdate,a=o(t,["component","componentPath","componentUpdate"]),s=1==e.button||e.metaKey||e.ctrlKey;if(s){var l=!1;this.getFlux().actions.session.popupOpen(m[n]||r,a,l)}else if(i)this.props.componentUpdate(a,m[n]||r);else{e.stopPropagation();var u=!0;this.getFlux().actions.session.popupOpen(m[n]||r,a,u)}},render:function(){var e=this.props,t=e.label,n=e.icon,r=e.component,o=e.componentPath;return m.hasOwnProperty(r)||o||console.error(r+" is not a valid component name (from PopupButton)"),a["default"].createElement(d["default"],{style:{margin:"7px",color:"white"},label:t,primary:!0,icon:n?a["default"].createElement(p["default"],{inverse:!0,name:n}):null,labelStyle:{textTransform:"inherit"},onClick:this.handleClick})}});t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(968),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){}function u(e,t,n){var r=t.muiTheme,o=r.baseTheme,i=r.button,a=r.raisedButton,s=e.disabled,l=e.disabledBackgroundColor,u=e.disabledLabelColor,c=e.fullWidth,f=e.icon,p=e.label,h=e.labelPosition,d=e.primary,m=e.secondary,v=e.style,b=d||m?.4:.08,x=a.color,_=a.textColor;s?(x=l||a.disabledColor,_=u||a.disabledTextColor):d?(x=a.primaryColor,_=a.primaryTextColor):m?(x=a.secondaryColor,_=a.secondaryTextColor):(e.backgroundColor&&(x=e.backgroundColor),e.labelColor&&(_=e.labelColor));var w=v&&v.height||i.height,T=2;return{root:{display:"inline-block",transition:g["default"].easeOut(),minWidth:c?"100%":i.minWidth},button:{position:"relative",height:w,lineHeight:w+"px",width:"100%",padding:0,borderRadius:T,transition:g["default"].easeOut(),backgroundColor:x,textAlign:"center"},label:{position:"relative",opacity:1,fontSize:a.fontSize,letterSpacing:0,textTransform:a.textTransform||i.textTransform||"uppercase",fontWeight:a.fontWeight,margin:0,userSelect:"none",paddingLeft:f&&"before"!==h?8:o.spacing.desktopGutterLess,paddingRight:f&&"before"===h?8:o.spacing.desktopGutterLess,color:_},icon:{verticalAlign:"middle",marginLeft:p&&"before"!==h?12:0,marginRight:p&&"before"===h?12:0},overlay:{height:w,borderRadius:T,backgroundColor:(n.keyboardFocused||n.hovered)&&!s&&(0,y.fade)(_,b),transition:g["default"].easeOut(),top:0},ripple:{color:_,opacity:d||m?.16:.1}}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.rounded,r=e.circle,o=e.transitionEnabled,i=e.zDepth,a=t.muiTheme,s=a.baseTheme,l=a.paper;return{root:{color:l.color,backgroundColor:l.backgroundColor,transition:o&&y["default"].easeOut(),boxSizing:"border-box",fontFamily:s.fontFamily,WebkitTapHighlightColor:"rgba(0,0,0,0)",boxShadow:l.zDepthShadows[i-1],borderRadius:r?"50%":n?"2px":"0px"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&(e.propertyGroups[n]=(0,y["default"])(t),e.propertyGroups[n].properties=r)})},componentDidUpdate:function(e,t){this.state.searchOpen&&""===this.props.searchText&&this.refs.searchField.focus()},icon:function(){return this.tableConfig().icon},title:function(){return this.props.title||this.tableConfig().capNamePlural},handleQueryPick:function(e){this.getFlux().actions.session.modalClose(),this.props.componentUpdate({query:e})},handleColumnChange:function(e){this.getFlux().actions.session.modalClose(),this.props.componentUpdate(function(t){return t.set("columns",e)})},handleColumnResize:function(e,t){this.props.componentUpdate({columnWidths:o({},e,t)})},handleOrderChange:function(e,t){this.props.componentUpdate({order:e,ascending:t})},handleFetchedRowsCountChange:function(e){this.setState({fetchedRowsCount:e})},handleShowableRowsCountChange:function(e){this.setState({showableRowsCount:e})},handleTotalRowsCountChange:function(e){this.setState({totalRowsCount:e})},handleNextPage:function(){this.setState({startRowIndex:this.state.startRowIndex+this.state.showableRowsCount})},handlePreviousPage:function(){var e=this.state.startRowIndex-this.state.showableRowsCount;e<0&&(e=0),this.setState({startRowIndex:e})},handleFirstPage:function(){this.setState({startRowIndex:0})},handleLastPage:function(){this.setState({startRowIndex:this.state.totalRowsCount-this.state.showableRowsCount})},handleDownload:function(){G["default"].downloadTableData({dataset:this.config.dataset,table:this.props.table,tableConfig:this.tableConfig(),rowsCount:this.state.totalRowsCount,onLimitBreach:this.handleDownloadLimitBreach,query:this.props.query,columns:this.props.columns,ascending:this.props.ascending})},handleDownloadLimitBreach:function(e){var t=e.totalDataPoints,n=e.maxDataPoints,r="You have asked to download "+t+" data points, which is more than our current limit of "+n+". Please use a stricter filter or fewer columns, or contact us directly.";this.getFlux().actions.session.modalOpen("ui/Alert",{title:"Warning",message:r})},handleSearchOpen:function(){this.setState({searchOpen:!0})},handleSearchChange:function(e){this.props.componentUpdate({searchText:e.target.value})},handleSearchBlur:function(e){""===e.target.value&&this.setState({searchOpen:!1})},createDataTableQuery:function(){var e=this.props,t=e.query,n=e.searchText,r=t;if(""!==n){for(var o=null,i=0,a=this.tableConfig().quickFindFields.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return Boolean(e||0===e)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){return{root:{position:"relative"},textarea:{height:n.height,width:"100%",resize:"none",font:"inherit",padding:0,cursor:e.disabled?"not-allowed":"initial"},shadow:{resize:"none",overflow:"hidden",visibility:"hidden",position:"absolute",height:"initial"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=this.props.rows&&(r=Math.min(this.props.rowsMax*g,r)),r=Math.max(r,g),this.state.height!==r&&(this.setState({height:r}),this.props.onHeightChange&&this.props.onHeightChange(t,r))}},{key:"render",value:function(){var e=this.props,t=(e.onChange,e.onHeightChange,e.rows,e.rowsMax,e.shadowStyle),n=e.style,r=e.textareaStyle,i=(e.valueLink,o(e,["onChange","onHeightChange","rows","rowsMax","shadowStyle","style","textareaStyle","valueLink"])),a=this.context.muiTheme.prepareStyles,s=l(this.props,this.context,this.state),c=(0,p["default"])(s.root,n),f=(0,p["default"])(s.textarea,r),h=(0,p["default"])({},f,s.shadow,t);return this.props.hasOwnProperty("valueLink")&&(i.value=this.props.valueLink.value),d["default"].createElement("div",{style:a(c)},d["default"].createElement(v["default"],{target:"window",onResize:this.handleResize}),d["default"].createElement("textarea",{ref:"shadow",style:a(h),tabIndex:"-1",rows:this.props.rows,defaultValue:this.props.defaultValue,readOnly:!0,value:this.props.value,valueLink:this.props.valueLink}),d["default"].createElement("textarea",u({},i,{ +ref:"input",rows:this.props.rows,style:a(f),onChange:this.handleChange})))}}]),t}(h.Component);y.propTypes={defaultValue:h.PropTypes.any,disabled:h.PropTypes.bool,onChange:h.PropTypes.func,onHeightChange:h.PropTypes.func,rows:h.PropTypes.number,rowsMax:h.PropTypes.number,shadowStyle:h.PropTypes.object,style:h.PropTypes.object,textareaStyle:h.PropTypes.object,value:h.PropTypes.string,valueLink:h.PropTypes.object},y.defaultProps={rows:1},y.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,function(){n.call(e)})}function l(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)}function u(e,t){for(var n in e)if("on"===n.substring(0,2)&&e[n]instanceof Function){var r=n.substring(2).toLowerCase();t(r,e[n])}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n0&&f>0?!function(){n.setState({loadStatus:"loading"});var e=c+f-1,r={database:n.config.dataset,table:p.fetchTableName,columns:h,order:l,ascending:u,query:a,start:c,stop:e},s={database:n.config.dataset,table:p.fetchTableName,query:a};t.request(function(e){return Promise.all([D["default"].get("pageQuery"+JSON.stringify(r),function(e){return M["default"].pageQuery(i({cancellation:e},r))},e),D["default"].get("recordCount"+JSON.stringify(s),function(e){return M["default"].recordCount(i({cancellation:e},s))},e)])}).then(function(e){var t=o(e,2),r=t[0],i=t[1];n.setState({loadStatus:"loaded",rows:r,totalRowsCount:i})})["catch"](M["default"].filterAborted)["catch"](D["default"].filterCancelled)["catch"](function(e){(0,j["default"])(n.getFlux(),M["default"].errorMessage(e),function(){return n.fetchData(n.props)}),n.setState({loadStatus:"error"})})}():this.setState({rows:[]})},handleColumnResize:function(e,t){this.props.onColumnResize&&this.props.onColumnResize(t,e),this.forceUpdate()},handleOrderChange:function(e){var t=!0;this.props.order==e&&(this.props.ascending?t=!1:e=null),this.props.onOrderChange&&this.props.onOrderChange(e,t)},defaultWidth:function(e){return"Boolean"==e.dispDataType?75:e.defaultWidth?e.defaultWidth:e.isDate?110:e.decimDigits?Math.max(15+15*e.decimDigits,110):110},handleResize:function(e){this.setState(e),this.setShowableRows(e)},setShowableRows:function(e){this.setState({showableRowsCount:e.height?Math.floor((e.height-X-Z)/K):0})},componentDidUpdate:function(e,t){this.props.onShowableRowsCountChange&&t.showableRowsCount!==this.state.showableRowsCount&&(this.forceFetch(),this.props.onShowableRowsCountChange(this.state.showableRowsCount)),this.props.onFetchedRowsCountChange&&t.rows.length!==this.state.rows.length&&this.props.onFetchedRowsCountChange(this.state.rows.length),this.props.onTotalRowsCountChange&&t.totalRowsCount!==this.state.totalRowsCount&&this.props.onTotalRowsCountChange(this.state.totalRowsCount)},render:function(){var e=this,t=this.props,n=t.className,r=t.columns,o=t.columnWidths,i=t.order,a=t.ascending,l=this.state,u=l.loadStatus,c=l.rows,f=l.width,p=l.height,d=this.config.tablesById[this.props.table];return d?r.size>0?s["default"].createElement(G["default"],{onResize:this.handleResize},s["default"].createElement("div",{className:(0,h["default"])("datatable",n)},s["default"].createElement(A.Table,{rowHeight:K,rowsCount:c.length,width:f,height:p,headerHeight:X,onColumnResizeEndCallback:this.handleColumnResize,isColumnResizing:!1},r.map(function(t){if(!d.propertiesById[t])return void console.log("Column "+t+" doesn't exist on "+e.props.table+".");var n=d.propertiesById[t],r=n.id,l=n.isPrimKey,u=n.description,f=n.name,p=i==t&&a,v=i==t&&!a,g=o.get(t,e.defaultWidth(n));return s["default"].createElement(A.Column,{width:g,key:r,fixed:l,allowCellsRecycling:!0,isResizable:!0,minWidth:50,header:s["default"].createElement(z["default"],{className:(0,h["default"])({pointer:!0,"table-row-header":!0,"sort-column-ascending":p,"sort-column-descending":v}),style:{width:g},onClick:function(){return e.handleOrderChange(r)},prefix:p||v?s["default"].createElement(q["default"],{className:"sort",name:p?"sort-amount-asc":"sort-amount-desc"}):null,name:f,description:u,tooltipPlacement:"bottom",tooltipTrigger:["click"]}),cell:function(e){var t=e.rowIndex,o="inherit",i=n.maxVal,a=n.minVal,l=n.categoryColors,u=n.showBar,f=n.alignment,p=c[t][r];if(u&&null!==p&&void 0!==i&&void 0!==a){p=parseFloat(p);var h=100*(p-a)/(i-a);o="linear-gradient(to right, "+(t%2?"rgb(115, 190, 252)":"rgb(150, 207, 253)")+" "+h+"%, rgba(0,0,0,0) "+h+"%"}else if(null!==p&&void 0!==i&&void 0!==a){var d=Math.min(Math.max(parseFloat(p),a),i);o=(0,b["default"])(Y).lighten(.58*(1-(d-a)/(i-a))).rgbString()}if(l){var v=l[p]||l._other_;v&&(v=(0,m["default"])(v).lighten(.3),t%2&&v.darken(.1),o=v.rgbString())}return s["default"].createElement("div",{className:"table-row-cell",style:{textAlign:f,width:g,height:K+"px",background:o}},s["default"].createElement(N["default"],{prop:n,value:p}))}})})),s["default"].createElement(W["default"],{status:u}))):s["default"].createElement("div",{className:(0,h["default"])("datatable",n)},s["default"].createElement(W["default"],{status:"custom"},"No columns selected")):(console.log("Table "+this.props.table+" doesn't exist'"),null)}});e.exports=Q},function(e,t,n){e.exports=n(984)},function(e,t,n){"use strict";var r=n(985),o=n(1022),i=n(1020),a=n(1019),s={Cell:o,Column:i,ColumnGroup:a,Table:r};s.version="0.6.2",e.exports=s},function(e,t,n){"use strict";function r(e,t){}var o=Object.assign||function(e){for(var t=1;t0||e>=0&&this.state.scrollX0||e>=0&&this.state.scrollYr?r:this.state.height>r&&this.props.ownerHeight?Math.max(r,this.props.ownerHeight):this.state.height+this.state.maxScrollY,e!==this._contentHeight&&this.props.onContentHeightChange&&this.props.onContentHeightChange(e),this._contentHeight=e},componentDidMount:function(){this._reportContentHeight()},componentWillReceiveProps:function(e){var t=e.scrollToRow;void 0!==t&&null!==t&&(this._rowToScrollTo=t);var n=e.scrollToColumn;void 0!==n&&null!==n&&(this._columnToScrollTo=n);var r=e.overflowX,o=e.overflowY;r===this.props.overflowX&&o===this.props.overflowY||(this._wheelHandler=new a(this._onWheel,"hidden"!==r,"hidden"!==o)),this.props.ownerHeight===e.ownerHeight&&this.props.scrollTop===e.scrollTop||this._didScrollStart(),this._didScrollStop(),this.setState(this._calculateState(e,this.state))},componentDidUpdate:function(){this._reportContentHeight()},render:function(){var e,t=this.state,n=this.props;t.useGroupHeader&&(e=o.createElement(c,{key:"group_header",isScrolling:this._isScrolling,className:g(h("fixedDataTableLayout/header"),h("public/fixedDataTable/header")),width:t.width,height:t.groupHeaderHeight,index:0,zIndex:1,offsetTop:0,scrollLeft:t.scrollX,fixedColumns:t.groupHeaderFixedColumns,scrollableColumns:t.groupHeaderScrollableColumns,onColumnResize:this._onColumnResize}));var r=this.state.maxScrollY,i=t.maxScrollX>0&&"hidden"!==t.overflowX,a=r>0&&"hidden"!==t.overflowY,l=i?s.SIZE:0,f=t.height-l-2*T-t.footerHeight,p=t.useGroupHeader?t.groupHeaderHeight:0,d=p+t.headerHeight;f-=d;var m=0,v=null!=n.maxHeight?d+t.bodyHeight:d+f,y=v+t.footerHeight;void 0!==n.ownerHeight&&n.ownerHeightt.ownerHeight||t.scrollY or "),n.push(e))});var o=!1;n.length&&n[0].type.__TableColumnGroup__&&(o=!0);var i,a,l=t&&t.firstRowIndex||0,u=t&&t.firstRowOffset||0;i=t&&"hidden"!==e.overflowX?t.scrollX:e.scrollLeft,t&&"hidden"!==e.overflowY?a=t.scrollY:(d=this._scrollHelper.scrollTo(e.scrollTop),l=d.index,u=d.offset,a=d.position),void 0!==this._rowToScrollTo&&(d=this._scrollHelper.scrollRowIntoView(this._rowToScrollTo),l=d.index,u=d.offset,a=d.position,delete this._rowToScrollTo);var c=o?e.groupHeaderHeight:0;if(t&&e.rowsCount!==t.rowsCount){var h=(void 0===e.height?e.maxHeight:e.height)-(e.headerHeight||0)-(e.footerHeight||0)-(e.groupHeaderHeight||0);this._scrollHelper=new f(e.rowsCount,e.rowHeight,h,e.rowHeightGetter);var d=this._scrollHelper.scrollToRow(l,u);l=d.index,u=d.offset,a=d.position}else t&&e.rowHeightGetter!==t.rowHeightGetter&&this._scrollHelper.setRowHeightGetter(e.rowHeightGetter);var m;m=e.isColumnResizing?t&&t.columnResizingData:w;var g,y;if(o){var b=p.adjustColumnGroupWidths(n,e.width);g=b.columns,y=b.columnGroups}else g=p.adjustColumnWidths(n,e.width);var x=this._populateColumnsAndColumnData(g,y,t);if(void 0!==this._columnToScrollTo){var C=x.bodyFixedColumns.length;if(this._columnToScrollTo>=C){var E,k,S=0;for(E=0;EP&&(i=P)}delete this._columnToScrollTo}var L=void 0===e.height,j=Math.round(L?e.maxHeight:e.height),R=e.footerHeight+e.headerHeight+c+2*T,F=j-R,I=this._scrollHelper.getContentHeight(),N=I+R,B=p.getTotalWidth(g),z=B>e.width&&"hidden"!==e.overflowX;z&&(F-=s.SIZE,N+=s.SIZE,R+=s.SIZE);var U=Math.max(0,B-e.width),W=Math.max(0,I-F);i=Math.min(i,U),a=Math.min(a,W),W||(L&&(j=N),F=N-R),this._scrollHelper.setViewportHeight(F);var H=r({isColumnResizing:t&&t.isColumnResizing},x,e,{columns:g,columnGroups:y,columnResizingData:m,firstRowIndex:l,firstRowOffset:u,horizontalScrollbarVisible:z,maxScrollX:U,maxScrollY:W,reservedHeight:R,scrollContentHeight:I,scrollX:i,scrollY:a,bodyHeight:F,height:j,groupHeaderHeight:c,useGroupHeader:o});return H},_selectColumnElement:function(e,t){for(var n=[],r=0;rMath.abs(e)&&"hidden"!==this.props.overflowY){var r=this._scrollHelper.scrollBy(Math.round(t)),o=Math.max(0,r.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:r.index,firstRowOffset:r.offset,scrollY:r.position,scrollContentHeight:r.contentHeight,maxScrollY:o})}else e&&"hidden"!==this.props.overflowX&&(n+=e,n=n<0?0:n,n=n>this.state.maxScrollX?this.state.maxScrollX:n,this.setState({scrollX:n}));this._didScrollStop()}},_onHorizontalScroll:function(e){this.isMounted()&&e!==this.state.scrollX&&(this._isScrolling||this._didScrollStart(),this.setState({scrollX:e}),this._didScrollStop())},_onVerticalScroll:function(e){if(this.isMounted()&&e!==this.state.scrollY){this._isScrolling||this._didScrollStart();var t=this._scrollHelper.scrollTo(Math.round(e));this.setState({firstRowIndex:t.index,firstRowOffset:t.offset,scrollY:t.position,scrollContentHeight:t.contentHeight}),this._didScrollStop()}},_didScrollStart:function(){this.isMounted()&&!this._isScrolling&&(this._isScrolling=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY))},_didScrollStop:function(){this.isMounted()&&this._isScrolling&&(this._isScrolling=!1,this.setState({redraw:!0}),this.props.onScrollEnd&&this.props.onScrollEnd(this.state.scrollX,this.state.scrollY))}}),A=o.createClass({displayName:"HorizontalScrollbar",mixins:[i],propTypes:{contentSize:x.number.isRequired,offset:x.number.isRequired,onScroll:x.func.isRequired,position:x.number.isRequired,size:x.number.isRequired},render:function(){var e={height:s.SIZE,width:this.props.size},t={height:s.SIZE,position:"absolute",overflow:"hidden",width:this.props.size};return b(t,0,this.props.offset),o.createElement("div",{className:g(h("fixedDataTableLayout/horizontalScrollbar"),h("public/fixedDataTable/horizontalScrollbar")),style:e},o.createElement("div",{style:t},o.createElement(s,r({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}});e.exports=S},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}var r={shouldComponentUpdate:function(e,t){return!n(this.props,e)||!n(this.state,t)}};e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;nr},ie64:function(){return b.ie()&&h},firefox:function(){return n()||o},opera:function(){return n()||i},webkit:function(){return n()||a},safari:function(){return b.webkit()},chrome:function(){return n()||s},windows:function(){return n()||c},osx:function(){return n()||u},linux:function(){return n()||f},iphone:function(){return n()||d},mobile:function(){return n()||d||m||p||g},nativeApp:function(){return n()||v},android:function(){return n()||p},ipad:function(){return n()||m}};e.exports=b},function(e,t,n){"use strict";/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ +function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(994);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(990),o=n(996),i=0,a=o||function(e){var n=Date.now(),r=Math.max(0,16-(n-i));return i=n+r,t.setTimeout(function(){e(Date.now())},r)};a(r),e.exports=a}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame;e.exports=n}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(998),o=n(1001),i=n(986),a=n(1002),s=n(988),l=n(989),u=n(1003),c=n(1004),f=n(990),p=n(1005),h=i.PropTypes,d={position:0,scrollable:!1},m=parseInt(u("scrollbar-face-margin"),10),v=2*m,g=30,y=40,b=null,x=i.createClass({displayName:"Scrollbar",mixins:[s],propTypes:{contentSize:h.number.isRequired,defaultPosition:h.number,isOpaque:h.bool,orientation:h.oneOf(["vertical","horizontal"]),onScroll:h.func,position:h.number,size:h.number.isRequired,trackColor:h.oneOf(["gray"]),zIndex:h.number,verticalTop:h.number},getInitialState:function(){var e=this.props;return this._calculateState(e.position||e.defaultPosition||0,e.size,e.contentSize,e.orientation)},componentWillReceiveProps:function(e){var t=e.position;void 0===t?this._setNextState(this._calculateState(this.state.position,e.size,e.contentSize,e.orientation)):this._setNextState(this._calculateState(t,e.size,e.contentSize,e.orientation),e)},getDefaultProps:function(){return{defaultPosition:0,isOpaque:!1,onScroll:f,orientation:"vertical",zIndex:99}},render:function(){if(!this.state.scrollable)return null;var e,t,n=this.props.size,r=this.state.isHorizontal,o=!r,a=this.state.focused||this.state.isDragging,s=this.state.faceSize,l=this.props.isOpaque,f=this.props.verticalTop||0,h=c({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":o,"ScrollbarLayout/mainHorizontal":r,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":l,"public/Scrollbar/mainActive":a}),d=c({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":r,"ScrollbarLayout/faceVertical":o,"public/Scrollbar/faceActive":a,"public/Scrollbar/face":!0}),g=this.state.position*this.state.scale+m;return r?(e={width:n},t={width:s-v},p(t,g,0)):(e={top:f,height:n},t={height:s-v},p(t,0,g)),e.zIndex=this.props.zIndex,"gray"===this.props.trackColor&&(e.backgroundColor=u("fbui-desktop-background-light")),i.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onWheel:this._wheelHandler.onWheel,className:h,style:e,tabIndex:0},i.createElement("div",{ref:"face",className:d,style:t}))},componentWillMount:function(){var e="horizontal"===this.props.orientation,t=e?this._onWheelX:this._onWheelY;this._wheelHandler=new l(t,this._shouldHandleX,this._shouldHandleY)},componentDidMount:function(){this._mouseMoveTracker=new r(this._onMouseMove,this._onMouseMoveEnd,document.documentElement),void 0!==this.props.position&&this.state.position!==this.props.position&&this._didScroll()},componentWillUnmount:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),b===this&&(b=null),delete this._mouseMoveTracker},scrollBy:function(e){this._onWheel(e)},_shouldHandleX:function(e){return"horizontal"===this.props.orientation&&this._shouldHandleChange(e)},_shouldHandleY:function(e){return"horizontal"!==this.props.orientation&&this._shouldHandleChange(e)},_shouldHandleChange:function(e){var t=this._calculateState(this.state.position+e,this.props.size,this.props.contentSize,this.props.orientation);return t.position!==this.state.position},_calculateState:function(e,t,n,r){if(t<1||n<=t)return d;var o=e+"_"+t+"_"+n+"_"+r;if(this._stateKey===o)return this._stateForKey;var i="horizontal"===r,a=t/n,s=t*a;su&&(e=u);var c=!!this._mouseMoveTracker&&this._mouseMoveTracker.isDragging(),f={faceSize:s,isDragging:c,isHorizontal:i,position:e,scale:a,scrollable:l};return this._stateKey=o,this._stateForKey=f,f},_onWheelY:function(e,t){this._onWheel(t)},_onWheelX:function(e,t){this._onWheel(e)},_onWheel:function(e){var t=this.props;this._setNextState(this._calculateState(this.state.position+e,t.size,t.contentSize,t.orientation))},_onMouseDown:function(e){var t;if(e.target!==a.findDOMNode(this.refs.face)){var n=e.nativeEvent,r=this.state.isHorizontal?n.offsetX||n.layerX:n.offsetY||n.layerY,o=this.props;r/=this.state.scale,t=this._calculateState(r-.5*this.state.faceSize/this.state.scale,o.size,o.contentSize,o.orientation)}else t={};t.focused=!0,this._setNextState(t),this._mouseMoveTracker.captureMouseMoves(e),a.findDOMNode(this).focus()},_onMouseMove:function(e,t){var n=this.props,r=this.state.isHorizontal?e:t;r/=this.state.scale,this._setNextState(this._calculateState(this.state.position+r,n.size,n.contentSize,n.orientation))},_onMouseMoveEnd:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),this.setState({isDragging:!1})},_onKeyDown:function(e){var t=e.keyCode;if(t!==o.TAB){var n=y,r=0;if(this.state.isHorizontal)switch(t){case o.HOME:r=-1,n=this.props.contentSize;break;case o.LEFT:r=-1;break;case o.RIGHT:r=1;break;default:return}if(!this.state.isHorizontal)switch(t){case o.SPACE:r=e.shiftKey?-1:1;break;case o.HOME:r=-1,n=this.props.contentSize;break;case o.UP:r=-1;break;case o.DOWN:r=1;break;case o.PAGE_UP:r=-1,n=this.props.size;break;case o.PAGE_DOWN:r=1,n=this.props.size;break;default:return}e.preventDefault();var i=this.props;this._setNextState(this._calculateState(this.state.position+n*r,i.size,i.contentSize,i.orientation))}},_onFocus:function(){this.setState({focused:!0})},_onBlur:function(){this.setState({focused:!1})},_blur:function(){if(this.isMounted())try{this._onBlur(),a.findDOMNode(this).blur()}catch(e){}},_setNextState:function(e,t){t=t||this.props;var n=t.position,r=this.state.position!==e.position;if(void 0===n){var o=r?this._didScroll:void 0;this.setState(e,o)}else{if(n!==e.position)return void(void 0!==e.position&&e.position!==this.state.position&&this.props.onScroll(e.position));this.setState(e)}r&&b!==this&&(b&&b._blur(),b=this)},_didScroll:function(){this.props.onScroll(this.state.position)}});x.KEYBOARD_SCROLL_AMOUNT=y,x.SIZE=parseInt(u("scrollbar-size"),10),e.exports=x},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n0;)this._addRowToBuffer(t,this._viewportRowsBegin,this._viewportRowsEnd-1),t++,e--;return this._rows}},{key:"getRows",value:function(e,t){var n=t,r=n,o=e,i=Math.min(e+this._maxVisibleRowCount,this._rowsCount);for(this._viewportRowsBegin=e;o=i&&(r=this._bufferSet.replaceFurthestValuePosition(t,n,e)),null===r?(r=this._bufferSet.getNewPositionForValue(e),this._rows[r]=e):this._rows[r]=e}}]),e}();e.exports=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n=e&&o<=t)return null;var i;e-r>o-t?(i=r,this._smallValues.pop()):(i=o,this._largeValues.pop());var s=this._valueToPositionMap[i];return delete this._valueToPositionMap[i],this._valueToPositionMap[n]=s,this._pushToHeaps(s,n),s}},{key:"_pushToHeaps",value:function(e,t){var n={position:e,value:t};this._smallValues.push(n),this._largeValues.push(n)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var e=Math.min(this._smallValues.size(),this._largeValues.size()),t=Math.max(this._smallValues.size(),this._largeValues.size());t>10*e&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var e=this._smallValues.size()t.value}}]),e}();e.exports=s},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){return e0&&(this._items[0]=t,this._sinkDown(0)),e}}},{key:"push",value:function(e){this._items[this._size++]=e,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(0!==this._size)return this._items[0]}},{key:"_heapify",value:function(){for(var e=Math.floor((this._size+1)/2);e>=0;e--)this._sinkDown(e)}},{key:"_bubbleUp",value:function(e){for(var t=this._items[e];e>0;){var n=Math.floor((e+1)/2)-1,r=this._items[n];if(this._comparator(r,t))return;this._items[n]=t,this._items[e]=r,e=n}}},{key:"_sinkDown",value:function(e){for(var t=this._items[e];;){var n=2*(e+1)-1,r=2*(e+1),o=-1;if(nn?n:e}e.exports=n},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0){var t=a({"fixedDataTableRowLayout/fixedColumnsDivider":!0,"fixedDataTableRowLayout/columnsShadow":this.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":!0,"public/fixedDataTableRow/columnsShadow":this.props.scrollLeft>0}),n={left:e,height:this.props.height};return o.createElement("div",{className:t,style:n})}},_onClick:function(e){this.props.onClick(e,this.props.index)},_onDoubleClick:function(e){this.props.onDoubleClick(e,this.props.index)},_onMouseDown:function(e){this.props.onMouseDown(e,this.props.index)},_onMouseEnter:function(e){this.props.onMouseEnter(e,this.props.index)},_onMouseLeave:function(e){this.props.onMouseLeave(e,this.props.index)}}),f=o.createClass({displayName:"FixedDataTableRow",propTypes:{isScrolling:u.bool,height:u.number.isRequired,zIndex:u.number,offsetTop:u.number.isRequired,width:u.number.isRequired},render:function(){var e={width:this.props.width,height:this.props.height,zIndex:this.props.zIndex?this.props.zIndex:0};return l(e,0,this.props.offsetTop),o.createElement("div",{style:e,className:a("fixedDataTableRowLayout/rowWrapper")},o.createElement(c,r({},this.props,{offsetTop:void 0,zIndex:void 0})))}});e.exports=f},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0){var c="cell_"+o;n[o]=this._renderCell(e.rowIndex,e.rowHeight,s,r,c)}r+=s.width}var p=this._getColumnsWidth(t),h={height:e.height,position:"absolute",width:p,zIndex:e.zIndex};return u(h,-1*f*e.left,0),a.createElement("div",{className:l("fixedDataTableCellGroupLayout/cellGroup"),style:h},n)},_renderCell:function(e,t,n,r,o){var i=n.isResizable&&this.props.onColumnResize,l=i?this.props.onColumnResize:null,u=n.cellClassName;return a.createElement(s,{isScrolling:this.props.isScrolling,align:n.align,className:u,height:t,key:o,maxWidth:n.maxWidth,minWidth:n.minWidth,onColumnResize:l,rowIndex:e,columnKey:n.columnKey,width:n.width,left:r,cell:n.cell})},_getColumnsWidth:function(e){for(var t=0,n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(1022),i=n(1017),a=n(986),s=n(1004),l=n(1023),u=i.DIR_SIGN,c=a.PropTypes,f={align:"left",highlighted:!1},p=a.createClass({displayName:"FixedDataTableCell",propTypes_DISABLED_FOR_PERFORMANCE:{isScrolling:c.bool,align:c.oneOf(["left","center","right"]),className:c.string,highlighted:c.bool,width:c.number.isRequired,minWidth:c.number,maxWidth:c.number,height:c.number.isRequired,cell:c.oneOfType([c.string,c.element,c.func]),columnKey:c.oneOfType([c.string,c.number]),rowIndex:c.number.isRequired,onColumnResize:c.func,left:c.number},shouldComponentUpdate:function(e){return!e.isScrolling||this.props.rowIndex!==e.rowIndex},getDefaultProps:function(){return f},render:function(){var e=this.props,t=e.height,n=e.width,i=e.columnKey,c=r(e,["height","width","columnKey"]),f={height:t,width:n};1===u?f.left=c.left:f.right=c.left;var p,h=l(s({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":c.lastChild,"fixedDataTableCellLayout/alignRight":"right"===c.align,"fixedDataTableCellLayout/alignCenter":"center"===c.align,"public/fixedDataTableCell/alignRight":"right"===c.align,"public/fixedDataTableCell/highlighted":c.highlighted,"public/fixedDataTableCell/main":!0}),c.className);if(c.onColumnResize){var d={height:t};p=a.createElement("div",{className:s("fixedDataTableCellLayout/columnResizerContainer"),style:d,onMouseDown:this._onColumnResizerMouseDown},a.createElement("div",{className:l(s("fixedDataTableCellLayout/columnResizerKnob"),s("public/fixedDataTableCell/columnResizerKnob")),style:d}))}var m={columnKey:i,height:t,width:n};c.rowIndex>=0&&(m.rowIndex=c.rowIndex);var v;return v=a.isValidElement(c.cell)?a.cloneElement(c.cell,m):"function"==typeof c.cell?c.cell(m):a.createElement(o,m,c.cell),a.createElement("div",{className:h,style:f},p,v)},_onColumnResizerMouseDown:function(e){this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.columnKey,e)}});e.exports=p},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t1)for(var r=1;r=0&&t>=e-s;){var n=this._updateRowHeight(t);this._position+=n,t--}}},{key:"_updateRowHeight",value:function(e){if(e<0||e>=this._rowCount)return 0;var t=this._rowHeightGetter(e);if(t!==this._storedHeights[e]){var n=t-this._storedHeights[e];return this._rowOffsets.set(e,t),this._storedHeights[e]=t,this._contentHeight+=n,n}return 0}},{key:"getRowPosition",value:function(e){return this._updateRowHeight(e),this._rowOffsets.sumUntil(e)}},{key:"scrollBy",value:function(e){if(0===this._rowCount)return l;var t=this._rowOffsets.greatestLowerBound(this._position);t=a(t,0,Math.max(this._rowCount-1,0));var n=this._rowOffsets.sumUntil(t),r=t,o=this._position,i=this._updateRowHeight(r);0!==n&&(o+=i);var s=this._storedHeights[r]-(o-n);if(e>=0)for(;e>0&&r0&&r>=0;)if(e=0){var c=this._updateRowHeight(r);u=this._storedHeights[r],o+=c}}var f=this._contentHeight-this._viewportHeight;o=a(o,0,f),this._position=o;var p=this._rowOffsets.greatestLowerBound(o);p=a(p,0,Math.max(this._rowCount-1,0)),n=this._rowOffsets.sumUntil(p);var h=n-o;return this._updateHeightsInViewport(p,h),this._updateHeightsAboveViewport(p),{index:p,offset:h,position:this._position,contentHeight:this._contentHeight}}},{key:"_getRowAtEndPosition",value:function(e){this._updateRowHeight(e);for(var t=e,n=this._storedHeights[t];n=0;)t--,t>=0&&(this._updateRowHeight(t),n+=this._storedHeights[t]);var r=this._rowOffsets.sumTo(e)-this._viewportHeight;return r<0&&(r=0),r}},{key:"scrollTo",value:function(e){if(0===this._rowCount)return l;if(e<=0)return this._position=0,this._updateHeightsInViewport(0,0),{index:0,offset:0,position:this._position,contentHeight:this._contentHeight};if(e>=this._contentHeight-this._viewportHeight){var t=this._rowCount-1;e=this._getRowAtEndPosition(t)}this._position=e;var n=this._rowOffsets.greatestLowerBound(e);n=a(n,0,Math.max(this._rowCount-1,0));var r=this._rowOffsets.sumUntil(n),o=r-e;return this._updateHeightsInViewport(n,o),this._updateHeightsAboveViewport(n),{index:n,offset:o,position:this._position,contentHeight:this._contentHeight}}},{key:"scrollToRow",value:function(e,t){e=a(e,0,Math.max(this._rowCount-1,0)),t=a(t,-this._storedHeights[e],0);var n=this._rowOffsets.sumUntil(e);return this.scrollTo(n-t)}},{key:"scrollRowIntoView",value:function(e){e=a(e,0,Math.max(this._rowCount-1,0));var t=this._rowOffsets.sumUntil(e),n=t+this._storedHeights[e];if(t=0;--n)t[n]=0;return t},u=function(){function e(t){r(this,e),this._size=t.length,this._half=o(this._size),this._heap=new l(2*this._half);var n;for(n=0;n0;--n)this._heap[n]=this._heap[2*n]+this._heap[2*n+1]}return i(e,[{key:"set",value:function(e,t){a(0<=e&&e=0;--o)r[o]=n;return new e(r)}},{key:"empty",value:function(t){return e.uniform(t,0)}}]),e}();e.exports=u}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-right-width:1px;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10}.fixedDataTableColumnResizerLineLayout_hiddenElem,body[dir=rtl] .fixedDataTableColumnResizerLineLayout_main{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_hasBottomBorder,.fixedDataTableLayout_header{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_bottomShadow,.fixedDataTableLayout_topShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableLayout_horizontalScrollbar{bottom:0;position:absolute}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;position:absolute;top:0}.fixedDataTableRowLayout_fixedColumnsDivider{backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTableRowLayout_columnsShadow{width:4px}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;transition-duration:.25s;transition-timing-function:ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;transition-property:background-color width;width:15px}.ScrollbarLayout_mainVertical.public_Scrollbar_mainActive,.ScrollbarLayout_mainVertical:hover{width:17px}.ScrollbarLayout_mainHorizontal{bottom:0;height:15px;left:0;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1}.ScrollbarLayout_face:after{border-radius:6px;content:'';display:block;position:absolute;transition:background-color .25s ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.public_fixedDataTable_hasBottomBorder,.public_fixedDataTable_header,.public_fixedDataTable_main{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAF0lEQVR4AWPUkNeSBhHCjJoK2twgFisAFagCCp3pJlAAAAAASUVORK5CYII=) repeat-x}.public_fixedDataTable_bottomShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAAAHElEQVQI12MwNjZmZdAT1+Nm0JDWEGZQk1GTBgAWkwIeAEp52AAAAABJRU5ErkJggg==) repeat-x}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background:0 0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAFklEQVQIHWPSkNeSBmJhTQVtbiDNCgASagIIuJX8OgAAAABJRU5ErkJggg==) repeat-y}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main:hover{background-color:hsla(0,0%,100%,.8)}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_faceActive:after,.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after{background-color:#7d7d7d}",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(330),a=r(i),s=n(596),l=r(s),u=n(1036),c=r(u),f=n(744),p=r(f),h=n(594),d=r(h),m=n(1037),v=r(m),g=a["default"].createClass({displayName:"PropertyCell",mixins:[l["default"],d["default"]],propTypes:{prop:a["default"].PropTypes.object,value:a["default"].PropTypes.any},render:function(){var e=this.props,t=e.prop,n=e.value,r=(0,c["default"])(t,n),i=a["default"].createElement("i",{className:"fa fa-external-link external-link-icon"});if(t.externalUrl){var s=function(){var e=n.split(";");return{v:a["default"].createElement("span",{className:"prop"},e.map(function(n,r){return a["default"].createElement("span",{key:r},0===r?i:null,a["default"].createElement("a",{target:"_blank",href:t.externalUrl.replace("{value}",n)},n),r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;tn.right}function i(e,t,n){return e.topn.bottom}function a(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1057),a=r(i),s=n(1058),l=r(s);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){var o=a["default"].clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),a["default"].mix(o,i)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1057),a=r(i);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=void 0,n=void 0,r=void 0;if(a["default"].isWindow(e)||9===e.nodeType){var o=a["default"].getWindow(e);t={left:a["default"].getWindowScrollLeft(o),top:a["default"].getWindowScrollTop(o)},n=a["default"].viewportWidth(o),r=a["default"].viewportHeight(o)}else t=a["default"].offset(e),n=a["default"].outerWidth(e),r=a["default"].outerHeight(e);return t.width=n,t.height=r,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1057),a=r(i);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var i=void 0,s=void 0,l=void 0,u=void 0;return i={left:e.left,top:e.top},l=(0,a["default"])(t,n[1]),u=(0,a["default"])(e,n[0]),s=[u.left-l.left,u.top-l.top],{left:i.left-s[0]+r[0]-o[0],top:i.top-s[1]+r[1]-o[1]}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1063),a=r(i);t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=void 0,s=void 0;return a=e.left,s=e.top,"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){return null!=e&&e==e.window}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";e.exports=n(1066)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.children;return l["default"].isValidElement(t)&&!t.key?l["default"].cloneElement(t,{key:d}):t}function a(){}Object.defineProperty(t,"__esModule",{value:!0});var s=n(330),l=r(s),u=n(1067),c=n(1068),f=r(c),p=n(1073),h=r(p),d="rc_animate_"+Date.now(),m=l["default"].createClass({displayName:"Animate",propTypes:{component:l["default"].PropTypes.any,animation:l["default"].PropTypes.object,transitionName:l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.object]),transitionEnter:l["default"].PropTypes.bool,transitionAppear:l["default"].PropTypes.bool,exclusive:l["default"].PropTypes.bool,transitionLeave:l["default"].PropTypes.bool,onEnd:l["default"].PropTypes.func,onEnter:l["default"].PropTypes.func,onLeave:l["default"].PropTypes.func,onAppear:l["default"].PropTypes.func,showProp:l["default"].PropTypes.string},getDefaultProps:function(){return{animation:{},component:"span",transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:a,onEnter:a,onLeave:a,onAppear:a}},getInitialState:function(){return this.currentlyAnimatingKeys={},this.keysToEnter=[],this.keysToLeave=[],{children:(0,u.toArrayChildren)(i(this.props))}},componentDidMount:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})},componentWillReceiveProps:function(e){var t=this;this.nextProps=e;var n=(0,u.toArrayChildren)(i(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var a=r.showProp,s=this.currentlyAnimatingKeys,c=r.exclusive?(0,u.toArrayChildren)(i(r)):this.state.children,f=[];a?(c.forEach(function(e){var t=e&&(0,u.findChildInChildrenByKey)(n,e.key),r=void 0;r=t&&t.props[a]||!e.props[a]?t:l["default"].cloneElement(t||e,o({},a,!0)),r&&f.push(r)}),n.forEach(function(e){e&&(0,u.findChildInChildrenByKey)(c,e.key)||f.push(e)})):f=(0,u.mergeChildren)(c,n),this.setState({children:f}),n.forEach(function(e){var n=e&&e.key;if(!e||!s[n]){var r=e&&(0,u.findChildInChildrenByKey)(c,n);if(a){var o=e.props[a];if(r){var i=(0,u.findShownChildInChildrenByKey)(c,n,a);!i&&o&&t.keysToEnter.push(n)}else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}}),c.forEach(function(e){var r=e&&e.key;if(!e||!s[r]){var o=e&&(0,u.findChildInChildrenByKey)(n,r);if(a){var i=e.props[a];if(o){var l=(0,u.findShownChildInChildrenByKey)(n,r,a);!l&&i&&t.keysToLeave.push(r)}else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}})},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performEnter:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillEnter(this.handleDoneAdding.bind(this,e,"enter")))},performAppear:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillAppear(this.handleDoneAdding.bind(this,e,"appear")))},handleDoneAdding:function(e,t){var n=this.props;if(delete this.currentlyAnimatingKeys[e],!n.exclusive||n===this.nextProps){var r=(0,u.toArrayChildren)(i(n));this.isValidChildByKey(r,e)?"appear"===t?h["default"].allowAppearCallback(n)&&(n.onAppear(e),n.onEnd(e,!0)):h["default"].allowEnterCallback(n)&&(n.onEnter(e),n.onEnd(e,!0)):this.performLeave(e)}},performLeave:function(e){this.refs[e]&&(this.currentlyAnimatingKeys[e]=!0,this.refs[e].componentWillLeave(this.handleDoneLeaving.bind(this,e)))},handleDoneLeaving:function(e){var t=this.props;if(delete this.currentlyAnimatingKeys[e],!t.exclusive||t===this.nextProps){var n=(0,u.toArrayChildren)(i(t));if(this.isValidChildByKey(n,e))this.performEnter(e);else{var r=function(){h["default"].allowLeaveCallback(t)&&(t.onLeave(e),t.onEnd(e,!1))};this.isMounted()&&!(0,u.isSameChildren)(this.state.children,n,t.showProp)?this.setState({children:n},r):r()}}},isValidChildByKey:function(e,t){var n=this.props.showProp;return n?(0,u.findShownChildInChildrenByKey)(e,t,n):(0,u.findChildInChildrenByKey)(e,t)},stop:function(e){delete this.currentlyAnimatingKeys[e];var t=this.refs[e];t&&t.stop()},render:function(){var e=this.props;this.nextProps=e;var t=this.state.children,n=null;t&&(n=t.map(function(t){if(null===t||void 0===t)return t;if(!t.key)throw new Error("must set key for children");return l["default"].createElement(f["default"],{key:t.key,ref:t.key,animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},t)}));var r=e.component;if(r){var o=e;return"string"==typeof r&&(o={className:e.className,style:e.style}),l["default"].createElement(r,o,n)}return n[0]||null}});t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=[];return f["default"].Children.forEach(e,function(e){t.push(e)}),t}function i(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function a(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for children");r=e}}),r}function s(e,t,n){var r=0;return e&&e.forEach(function(e){r||(r=e&&e.key===t&&!e.props[n])}),r}function l(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,o){var i=t[o];e&&i&&(e&&!i||!e&&i?r=!1:e.key!==i.key?r=!1:n&&e.props[n]!==i.props[n]&&(r=!1))}),r}function u(e,t){var n=[],r={},o=[];return e.forEach(function(e){e&&i(t,e.key)?o.length&&(r[e.key]=o,o=[]):o.push(e)}),t.forEach(function(e){e&&r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=o,t.findChildInChildrenByKey=i,t.findShownChildInChildrenByKey=a,t.findHiddenChildInChildrenByKey=s,t.isSameChildren=l,t.mergeChildren=u;var c=n(330),f=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(330),a=r(i),s=n(357),l=r(s),u=n(1069),c=r(u),f=n(1073),p=r(f),h={ +enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},d=a["default"].createClass({displayName:"AnimateChild",propTypes:{children:a["default"].PropTypes.any},componentWillUnmount:function(){this.stop()},componentWillEnter:function(e){p["default"].isEnterSupported(this.props)?this.transition("enter",e):e()},componentWillAppear:function(e){p["default"].isAppearSupported(this.props)?this.transition("appear",e):e()},componentWillLeave:function(e){p["default"].isLeaveSupported(this.props)?this.transition("leave",e):e()},transition:function(e,t){var n=this,r=l["default"].findDOMNode(this),i=this.props,a=i.transitionName,s="object"===("undefined"==typeof a?"undefined":o(a));this.stop();var f=function(){n.stopper=null,t()};if((u.isCssAnimationSupported||!i.animation[e])&&a&&i[h[e]]){var p=s?a[e]:a+"-"+e;this.stopper=(0,c["default"])(r,p,f)}else this.stopper=i.animation[e](r,f)},stop:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())},render:function(){return this.props.children}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=window.getComputedStyle(e),r="",o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(330),a=r(i),s=a["default"].createClass({displayName:"LazyRenderBox",propTypes:{children:i.PropTypes.any,className:i.PropTypes.string,visible:i.PropTypes.bool,hiddenClassName:i.PropTypes.string},shouldComponentUpdate:function(e){return e.hiddenClassName||e.visible},render:function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=o(e,["hiddenClassName","visible"]);return t||a["default"].Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),a["default"].createElement("div",r)):a["default"].Children.only(r.children)}});t["default"]=s,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){return e[0]===t[0]&&e[1]===t[1]}function r(e,t,n){var r=e[t]||{};return i({},r,n)}function o(e,t,r){var o=r.points;for(var i in e)if(e.hasOwnProperty(i)&&n(e[i].points,o))return t+"-placement-"+i;return""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=n(330),a=r(i),s=n(596),l=r(s),u=n(595),c=r(u),f=n(594),p=r(f),h=n(602),d=r(h),m=n(899),v=r(m),g=n(1036),y=r(g),b=a["default"].createClass({displayName:"QueryString",mixins:[l["default"],p["default"],c["default"],(0,d["default"])("PanoptesStore")],propTypes:{table:a["default"].PropTypes.string.isRequired,query:a["default"].PropTypes.string.isRequired,prepend:a["default"].PropTypes.string.isRequired},getStateFromFlux:function(){return{subsets:this.getFlux().store("PanoptesStore").getStoredSubsetsFor(this.props.table)}},render:function(){var e=this,t=this.props,n=t.query,r=t.prepend,i=(t.table,o(t,["query","prepend","table"])),s=v["default"].WhereClause.decode(n);if(!s||s.isTrivial)return a["default"].createElement("span",i,r+" No filter");var l={};this.tableConfig().properties.forEach(function(t){l[t.id]={name:t.name,toDisplayString:y["default"].bind(e,t)}});var u={};this.state.subsets.map(function(e){u[e.id]={name:e.name}});var c={fieldInfoMap:l,subsetMap:u};return a["default"].createElement("span",i,r+" "+s.toQueryDisplayString(c,0))}});e.exports=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t={query:h["default"].nullQuery,ascending:!0},n=i({},t,e),r=n.dataset,o=n.table,a=n.query,l=n.columns,c=n.tableConfig,p=n.ascending,m=n.rowsCount,v=n.onLimitBreach;l||(l=s["default"].List(c.properties).filter(function(e){return e.showByDefault&&e.showInTable}).map(function(e){return e.id}));var g=m*l.size;if(g>d)return v({totalDataPoints:g,maxDataPoints:d}),null;l||(l=s["default"].List(c.properties).filter(function(e){return e.showByDefault&&e.showInTable}).map(function(e){return e.id}));var y="";if(l.map(function(e){if("StoredSelection"!==e){var t=c.propertiesById[e].defaultFetchEncoding;0!==y.length&&(y+="~"),y+=t+e}}),!y)return console.error("!columnList"),null;var b=f["default"].serverURL;b+="?datatype=downloadtable",b+="&database="+r,b+="&qry="+a,b+="&tbname="+o,b+="&collist="+u["default"].compressToEncodedURIComponent(y),c.positionField?(b+="&posfield="+c.positionField,b+="&order="+c.positionField):b+="&order="+c.primkey,b+="&sortreverse="+(p?"0":"1"),window.location.href=b}var i=Object.assign||function(e){for(var t=1;t'+this.props.children+"")}});e.exports=_},function(e,t,n){"use strict";var r=n(1084),o=n(1132),i=n(1135),a=n(1134);e.exports={Parser:r,ProcessingInstructions:o,IsValidNodeDefinitions:i,ProcessNodeDefinitions:a}},function(e,t,n){"use strict";var r=n(1085),o=n(1086),i=n(1132),a=n(1135),s=function(e,t){var n=function(e){var n=new o.DomHandler,r=new o.Parser(n,t);return r.parseComplete(e),n.dom},s=function(e,t,n){if(t(e)){var o=[];r.each(e.children,function(r,i){e.children.length>1&&"tag"===r.type&&(r.attribs.key=r.attribs.key||i),o.push(s(r,t,n))}),r.compact(o);for(var i=0;i element.");return s(o[0],t,r)},u=function(t){var n=new i(e);return l(t,a.alwaysValid,n.defaultProcessingInstructions)};return{parse:u,parseWithInstructions:l}};e.exports=s},function(e,t,n){var r;(function(e,o){(function(){function i(e,t){return e.set(t[0],t[1]),e}function a(e,t){return e.add(t),e}function s(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function l(e,t,n,r){for(var o=-1,i=e?e.length:0;++o-1}function d(e,t,n){for(var r=-1,o=e?e.length:0;++r-1;);return n}function j(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function R(e){return e&&e.Object===Object?e:null}function F(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function I(e){return Pn[e]}function N(e){return Mn[e]}function B(e){return"\\"+Dn[e]}function z(e,t){return null==e?J:e[t]}function U(e,t,n){for(var r=e.length,o=t+(n?1:-1);n?o--:++o-1}function Kt(e,t){var n=this.__data__,r=dn(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Xt(e){var t=-1,n=e?e.length:0;for(this.clear();++t=t?e:t)),e}function _n(e,t,n,r,o,i,a){var s;if(r&&(s=i?r(e,o,i,a):r(e)),s!==J)return s;if(!gs(e))return e;var l=gf(e);if(l){if(s=Vo(e),!t)return no(e,s)}else{var c=Wo(e),f=c==Re||c==Fe;if(yf(e))return qr(e,t);if(c==Be||c==Me||f&&!i){if(W(e))return i?e:{};if(s=Go(f?{}:e),!t)return oo(e,vn(s,e))}else{if(!An[c])return i?e:{};s=Yo(e,c,_n,t)}}a||(a=new on);var p=a.get(e);if(p)return p;if(a.set(e,s),!l)var h=n?Do(e):rl(e);return u(h||e,function(o,i){h&&(i=o,o=e[i]),hn(s,i,_n(o,t,n,r,i,e,a))}),s}function Pn(e){var t=rl(e),n=t.length;return function(r){if(null==r)return!n;for(var o=n;o--;){var i=t[o],a=e[i],s=r[i];if(s===J&&!(i in Object(r))||!a(s))return!1}return!0}}function Mn(e){return gs(e)?Wu(e):{}}function On(e,t,n){if("function"!=typeof e)throw new wu(te);return Vu(function(){e.apply(J,n)},t)}function Dn(e,t,n,r){var o=-1,i=h,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=m(t,M(n))),r?(i=d,a=!1):t.length>=ee&&(i=D,a=!1,t=new tn(t));e:for(;++oo?0:o+n),r=r===J||r>o?o:Bs(r),r<0&&(r+=o),r=n>r?0:zs(r);n0&&n(s)?t>1?zn(s,t-1,n,r,o):v(o,s):r||(o[o.length]=s)}return o}function Hn(e,t){return e&&Cc(e,t,rl)}function qn(e,t){return e&&Ec(e,t,rl)}function Vn(e,t){return p(t,function(t){return ds(e[t])})}function Gn(e,t){t=$o(t,e)?[t]:Wr(t);for(var n=0,r=t.length;null!=e&&nt}function Xn(e,t){return null!=e&&(Pu.call(e,t)||"object"==typeof e&&t in e&&null===zo(e))}function Zn(e,t){return null!=e&&t in Object(e)}function Qn(e,t,n){return e>=$u(t,n)&&e=120&&c.length>=120)?new tn(a&&c):J}c=e[0];var f=-1,p=s[0];e:for(;++f-1;)s!==e&&qu.call(s,l,1),qu.call(e,l,1);return e}function _r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;if(Qo(o))qu.call(e,o,1);else if($o(o,e))delete e[ci(o)];else{var a=Wr(o),s=li(e,a);null!=s&&delete s[ci(Oi(a))]}}}return e}function wr(e,t){return e+Yu(tc()*(t-e+1))}function Tr(e,t,n,r){for(var o=-1,i=Ju(Gu((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}function Cr(e,t){var n="";if(!e||t<1||t>Ce)return n;do t%2&&(n+=e),t=Yu(t/2),t&&(e+=e);while(t);return n}function Er(e,t,n,r){t=$o(t,e)?[t]:Wr(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++oo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r>>1,a=e[i];null!==a&&!Ds(a)&&(n?a<=t:a=ee){var u=t?null:Sc(e);if(u)return G(u);a=!1,o=D,l=new tn}else l=t?[]:s;e:for(;++r=r?e:kr(e,t,n)}function qr(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Vr(e){var t=new e.constructor(e.byteLength);return new Nu(t).set(new Nu(e)),t}function Gr(e,t){var n=t?Vr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Yr(e,t,n){var r=t?n(q(e),!0):q(e);return g(r,i,new e.constructor)}function Kr(e){var t=new e.constructor(e.source,Et.exec(e));return t.lastIndex=e.lastIndex,t}function Xr(e,t,n){var r=t?n(G(e),!0):G(e);return g(r,a,new e.constructor)}function Zr(e){return xc?Object(xc.call(e)):{}}function Qr(e,t){var n=t?Vr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Jr(e,t){if(e!==t){var n=e!==J,r=null===e,o=e===e,i=Ds(e),a=t!==J,s=null===t,l=t===t,u=Ds(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}function eo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=Ju(i-a,0),c=Array(l+u),f=!r;++s1?n[o-1]:J,a=o>2?n[2]:J;for(i=e.length>3&&"function"==typeof i?(o--,i):J,a&&Jo(n[0],n[1],a)&&(i=o<3?J:i,o=1),t=Object(t);++r-1?t[i?i[a]:a]:J}}function vo(e){return Va(function(t){t=zn(t,1);var n=t.length,o=n,i=r.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new wu(te);if(i&&!s&&"wrapper"==jo(a))var s=new r([],(!0))}for(o=s?o:n;++o=ee)return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o1&&y.reverse(),f&&ls))return!1;var u=i.get(e);if(u)return u==t;var c=-1,f=!0,p=o&de?new tn:J;for(i.set(e,t);++c-1&&e%1==0&&e=this.__values__.length,t=e?J:this.__values__[this.__index__++];return{done:e,value:t}}function pa(){return this}function ha(e){for(var t,r=this;r instanceof n;){var o=pi(r);o.__index__=0,o.__values__=J,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t}function da(){var e=this.__wrapped__;if(e instanceof o){var t=e;return this.__actions__.length&&(t=new o(this)),t=t.reverse(),t.__actions__.push({func:la,args:[Ni],thisArg:J}),new r(t,this.__chain__)}return this.thru(Ni)}function ma(){return Ir(this.__wrapped__,this.__actions__)}function va(e,t,n){var r=gf(e)?f:Rn;return n&&Jo(e,t,n)&&(t=J),r(e,Fo(t,3))}function ga(e,t){var n=gf(e)?p:Bn;return n(e,Fo(t,3))}function ya(e,t){return zn(Ca(e,t),1)}function ba(e,t){return zn(Ca(e,t),Te)}function xa(e,t,n){return n=n===J?1:Bs(n),zn(Ca(e,t),n)}function _a(e,t){var n=gf(e)?u:wc;return n(e,Fo(t,3))}function wa(e,t){var n=gf(e)?c:Tc;return n(e,Fo(t,3))}function Ta(e,t,n,r){e=os(e)?e:vl(e),n=n&&!r?Bs(n):0;var o=e.length;return n<0&&(n=Ju(o+n,0)),Os(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&w(e,t,n)>-1}function Ca(e,t){var n=gf(e)?m:ur;return n(e,Fo(t,3))}function Ea(e,t,n,r){return null==e?[]:(gf(t)||(t=null==t?[]:[t]),n=r?J:n,gf(n)||(n=null==n?[]:[n]),mr(e,t,n))}function ka(e,t,n){var r=gf(e)?g:E,o=arguments.length<3;return r(e,Fo(t,4),n,o,wc)}function Sa(e,t,n){var r=gf(e)?y:E,o=arguments.length<3;return r(e,Fo(t,4),n,o,Tc)}function Aa(e,t){var n=gf(e)?p:Bn;return t=Fo(t,3),n(e,function(e,n,r){return!t(e,n,r)})}function Pa(e){var t=os(e)?e:vl(e),n=t.length;return n>0?t[wr(0,n-1)]:J}function Ma(e,t,n){var r=-1,o=Is(e),i=o.length,a=i-1;for(t=(n?Jo(e,t,n):t===J)?1:yn(Bs(t),0,i);++r0&&(n=t.apply(this,arguments)),e<=1&&(t=J),n}}function Na(e,t,n){t=n?J:t;var r=Ao(e,se,J,J,J,J,J,t);return r.placeholder=Na.placeholder,r}function Ba(e,t,n){t=n?J:t;var r=Ao(e,le,J,J,J,J,J,t);return r.placeholder=Ba.placeholder,r}function za(e,t,n){function r(t){var n=p,r=h;return p=h=J,y=t,m=e.apply(r,n)}function o(e){return y=e,v=Vu(s,t),b?r(e):m}function i(e){var n=e-g,r=e-y,o=t-n;return x?$u(o,d-r):o}function a(e){var n=e-g,r=e-y;return g===J||n>=t||n<0||x&&r>=d}function s(){var e=ja();return a(e)?l(e):void(v=Vu(s,i(e)))}function l(e){return v=J,_&&p?r(e):(p=h=J,m)}function u(){y=0,p=g=h=v=J}function c(){return v===J?m:l(ja())}function f(){var e=ja(),n=a(e);if(p=arguments,h=this,g=e,n){if(v===J)return o(g);if(x)return v=Vu(s,t),r(g)}return v===J&&(v=Vu(s,t)),m}var p,h,d,m,v,g,y=0,b=!1,x=!1,_=!0;if("function"!=typeof e)throw new wu(te);return t=Us(t)||0,gs(n)&&(b=!!n.leading,x="maxWait"in n,d=x?Ju(Us(n.maxWait)||0,t):d,_="trailing"in n?!!n.trailing:_),f.cancel=u,f.flush=c,f}function Ua(e){return Ao(e,he)}function Wa(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new wu(te);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Wa.Cache||Xt),n}function Ha(e){if("function"!=typeof e)throw new wu(te);return function(){return!e.apply(this,arguments)}}function qa(e){return Ia(2,e)}function Va(e,t){if("function"!=typeof e)throw new wu(te);return t=Ju(t===J?e.length-1:Bs(t),0),function(){for(var n=arguments,r=-1,o=Ju(n.length-t,0),i=Array(o);++r-1&&e%1==0&&e<=Ce}function gs(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ys(e){return!!e&&"object"==typeof e}function bs(e){return ys(e)&&Wo(e)==Ie}function xs(e,t){return e===t||rr(e,t,No(t))}function _s(e,t,n){return n="function"==typeof n?n:J,rr(e,t,No(t),n)}function ws(e){return ks(e)&&e!=+e}function Ts(e){if(Oc(e))throw new bu("This method is not supported with `core-js`. Try https://github.com/es-shims.");return or(e)}function Cs(e){return null===e}function Es(e){return null==e}function ks(e){return"number"==typeof e||ys(e)&&Du.call(e)==Ne}function Ss(e){if(!ys(e)||Du.call(e)!=Be||W(e))return!1;var t=zo(e);if(null===t)return!0;var n=Pu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Au.call(n)==Ou}function As(e){return gs(e)&&Du.call(e)==Ue}function Ps(e){return ms(e)&&e>=-Ce&&e<=Ce}function Ms(e){return ys(e)&&Wo(e)==We}function Os(e){return"string"==typeof e||!gf(e)&&ys(e)&&Du.call(e)==He}function Ds(e){return"symbol"==typeof e||ys(e)&&Du.call(e)==qe}function Ls(e){return ys(e)&&vs(e.length)&&!!Sn[Du.call(e)]}function js(e){return e===J}function Rs(e){return ys(e)&&Wo(e)==Ve}function Fs(e){return ys(e)&&Du.call(e)==Ge}function Is(e){if(!e)return[];if(os(e))return Os(e)?X(e):no(e);if(Uu&&e[Uu])return H(e[Uu]());var t=Wo(e),n=t==Ie?q:t==We?G:vl;return n(e)}function Ns(e){if(!e)return 0===e?e:0;if(e=Us(e),e===Te||e===-Te){var t=e<0?-1:1;return t*Ee}return e===e?e:0}function Bs(e){var t=Ns(e),n=t%1;return t===t?n?t-n:t:0}function zs(e){return e?yn(Bs(e),0,Se):0}function Us(e){if("number"==typeof e)return e;if(Ds(e))return ke;if(gs(e)){var t=ds(e.valueOf)?e.valueOf():e;e=gs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(bt,"");var n=At.test(e);return n||Mt.test(e)?jn(e.slice(2),n?2:8):St.test(e)?ke:+e}function Ws(e){return ro(e,ol(e))}function Hs(e){return yn(Bs(e),-Ce,Ce)}function qs(e){return null==e?"":Dr(e)}function Vs(e,t){var n=Mn(e);return t?vn(n,t):n}function Gs(e,t){return x(e,Fo(t,3),Hn)}function Ys(e,t){return x(e,Fo(t,3),qn)}function Ks(e,t){return null==e?e:Cc(e,Fo(t,3),ol)}function Xs(e,t){return null==e?e:Ec(e,Fo(t,3),ol)}function Zs(e,t){return e&&Hn(e,Fo(t,3))}function Qs(e,t){return e&&qn(e,Fo(t,3))}function Js(e){return null==e?[]:Vn(e,rl(e))}function $s(e){return null==e?[]:Vn(e,ol(e))}function el(e,t,n){var r=null==e?J:Gn(e,t);return r===J?n:r}function tl(e,t){return null!=e&&qo(e,t,Xn)}function nl(e,t){return null!=e&&qo(e,t,Zn)}function rl(e){var t=ri(e);if(!t&&!os(e))return ar(e);var n=Ko(e),r=!!n,o=n||[],i=o.length;for(var a in e)!Xn(e,a)||r&&("length"==a||Qo(a,i))||t&&"constructor"==a||o.push(a);return o}function ol(e){for(var t=-1,n=ri(e),r=sr(e),o=r.length,i=Ko(e),a=!!i,s=i||[],l=s.length;++tt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=tc();return $u(e+o*(t-e+Ln("1e-"+((o+"").length-1))),t)}return wr(e,t)}function _l(e){return qf(qs(e).toLowerCase())}function wl(e){return e=qs(e),e&&e.replace(Dt,I).replace(xn,"")}function Tl(e,t,n){e=qs(e),t=Dr(t);var r=e.length;return n=n===J?r:yn(Bs(n),0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function Cl(e){return e=qs(e),e&&ct.test(e)?e.replace(lt,N):e}function El(e){return e=qs(e),e&&yt.test(e)?e.replace(gt,"\\$&"):e}function kl(e,t,n){e=qs(e),t=Bs(t);var r=t?K(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return _o(Yu(o),n)+e+_o(Gu(o),n)}function Sl(e,t,n){e=qs(e),t=Bs(t);var r=t?K(e):0;return t&&r>>0)?(e=qs(e),e&&("string"==typeof t||null!=t&&!As(t))&&(t=Dr(t),""==t&&Tn.test(e))?Hr(X(e),0,n):oc.call(e,t,n)):[]}function Ll(e,t,n){return e=qs(e),n=yn(Bs(n),0,e.length),e.lastIndexOf(Dr(t),n)==n}function jl(e,n,r){var o=t.templateSettings;r&&Jo(e,n,r)&&(n=J),e=qs(e),n=Tf({},n,o,fn);var i,a,s=Tf({},n.imports,o.imports,fn),l=rl(s),u=O(s,l),c=0,f=n.interpolate||Lt,p="__p += '",h=_u((n.escape||Lt).source+"|"+f.source+"|"+(f===ht?Ct:Lt).source+"|"+(n.evaluate||Lt).source+"|$","g"),d="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++kn+"]")+"\n";e.replace(h,function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(c,l).replace(jt,B),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),p+="';\n";var m=n.variable;m||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(ot,""):p).replace(it,"$1").replace(at,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Vf(function(){return Function(l,d+"return "+p).apply(J,u)});if(v.source=p,ps(v))throw v;return v}function Rl(e){return qs(e).toLowerCase()}function Fl(e){return qs(e).toUpperCase()}function Il(e,t,n){if(e=qs(e),e&&(n||t===J))return e.replace(bt,"");if(!e||!(t=Dr(t)))return e;var r=X(e),o=X(t),i=L(r,o),a=j(r,o)+1;return Hr(r,i,a).join("")}function Nl(e,t,n){if(e=qs(e),e&&(n||t===J))return e.replace(_t,"");if(!e||!(t=Dr(t)))return e;var r=X(e),o=j(r,X(t))+1;return Hr(r,0,o).join("")}function Bl(e,t,n){if(e=qs(e),e&&(n||t===J))return e.replace(xt,"");if(!e||!(t=Dr(t)))return e;var r=X(e),o=L(r,X(t));return Hr(r,o).join("")}function zl(e,t){var n=ve,r=ge;if(gs(t)){var o="separator"in t?t.separator:o;n="length"in t?Bs(t.length):n,r="omission"in t?Dr(t.omission):r}e=qs(e);var i=e.length;if(Tn.test(e)){var a=X(e);i=a.length}if(n>=i)return e;var s=n-K(r);if(s<1)return r;var l=a?Hr(a,0,s).join(""):e.slice(0,s);if(o===J)return l+r;if(a&&(s+=l.length-s),As(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=_u(o.source,qs(Et.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var f=u.index;l=l.slice(0,f===J?s:f)}}else if(e.indexOf(Dr(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function Ul(e){return e=qs(e),e&&ut.test(e)?e.replace(st,Z):e}function Wl(e,t,n){return e=qs(e),t=n?J:t,t===J&&(t=Cn.test(e)?wn:wt),e.match(t)||[]}function Hl(e){var t=e?e.length:0,n=Fo();return e=t?m(e,function(e){if("function"!=typeof e[1])throw new wu(te);return[n(e[0]),e[1]]}):[],Va(function(n){for(var r=-1;++rCe)return[];var n=Se,r=$u(e,Se);t=Fo(t),e-=Se;for(var o=A(r,t);++n0){if(++e>=ye)return n}else e=0;return kc(n,r)}}(),Lc=Wa(function(e){var t=[];return qs(e).replace(vt,function(e,n,r,o){t.push(r?o.replace(Tt,"$1"):n||e)}),t}),jc=Va(function(e,t){return is(e)?Dn(e,zn(t,1,is,!0)):[]}),Rc=Va(function(e,t){var n=Oi(t);return is(n)&&(n=J),is(e)?Dn(e,zn(t,1,is,!0),Fo(n)):[]}),Fc=Va(function(e,t){var n=Oi(t);return is(n)&&(n=J),is(e)?Dn(e,zn(t,1,is,!0),J,n):[]}),Ic=Va(function(e){var t=m(e,zr);return t.length&&t[0]===e[0]?Jn(t):[]}),Nc=Va(function(e){var t=Oi(e),n=m(e,zr);return t===Oi(n)?t=J:n.pop(),n.length&&n[0]===e[0]?Jn(n,Fo(t)):[]}),Bc=Va(function(e){var t=Oi(e),n=m(e,zr);return t===Oi(n)?t=J:n.pop(),n.length&&n[0]===e[0]?Jn(n,J,t):[]}),zc=Va(ji),Uc=Va(function(e,t){t=zn(t,1);var n=e?e.length:0,r=gn(e,t);return _r(e,m(t,function(e){return Qo(e,n)?+e:e}).sort(Jr)),r}),Wc=Va(function(e){return Lr(zn(e,1,is,!0))}),Hc=Va(function(e){var t=Oi(e);return is(t)&&(t=J),Lr(zn(e,1,is,!0),Fo(t))}),qc=Va(function(e){var t=Oi(e);return is(t)&&(t=J),Lr(zn(e,1,is,!0),J,t)}),Vc=Va(function(e,t){return is(e)?Dn(e,t):[]}),Gc=Va(function(e){return Nr(p(e,is))}),Yc=Va(function(e){var t=Oi(e);return is(t)&&(t=J),Nr(p(e,is),Fo(t))}),Kc=Va(function(e){var t=Oi(e);return is(t)&&(t=J),Nr(p(e,is),J,t)}),Xc=Va(na),Zc=Va(function(e){var t=e.length,n=t>1?e[t-1]:J;return n="function"==typeof n?(e.pop(),n):J,ra(e,n)}),Qc=Va(function(e){e=zn(e,1);var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return gn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof o&&Qo(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:la,args:[a],thisArg:J}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(J),e})):this.thru(a)}),Jc=io(function(e,t,n){Pu.call(e,n)?++e[n]:e[n]=1}),$c=mo(_i),ef=mo(wi),tf=io(function(e,t,n){Pu.call(e,n)?e[n].push(t):e[n]=[t]}),nf=Va(function(e,t,n){var r=-1,o="function"==typeof t,i=$o(t),a=os(e)?Array(e.length):[];return wc(e,function(e){var l=o?t:i&&null!=e?e[t]:J;a[++r]=l?s(l,e,n):er(e,t,n)}),a}),rf=io(function(e,t,n){e[n]=t}),of=io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),af=Va(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Jo(e,t[0],t[1])?t=[]:n>2&&Jo(t[0],t[1],t[2])&&(t=[t[0]]),t=1==t.length&&gf(t[0])?t[0]:zn(t,1,Zo),mr(e,t,[])}),sf=Va(function(e,t,n){var r=oe;if(n.length){var o=V(n,Ro(sf));r|=ue}return Ao(e,r,t,n,o)}),lf=Va(function(e,t,n){var r=oe|ie;if(n.length){var o=V(n,Ro(lf));r|=ue}return Ao(t,r,e,n,o)}),uf=Va(function(e,t){return On(e,1,t)}),cf=Va(function(e,t,n){return On(e,Us(t)||0,n)});Wa.Cache=Xt;var ff=Va(function(e,t){t=1==t.length&&gf(t[0])?m(t[0],M(Fo())):m(zn(t,1,Zo),M(Fo()));var n=t.length;return Va(function(r){for(var o=-1,i=$u(r.length,n);++o=t}),gf=Array.isArray,yf=Ru?function(e){return e instanceof Ru}:ru,bf=Co(lr),xf=Co(function(e,t){return e<=t}),_f=ao(function(e,t){if(pc||ri(t)||os(t))return void ro(t,rl(t),e);for(var n in t)Pu.call(t,n)&&hn(e,n,t[n])}),wf=ao(function(e,t){if(pc||ri(t)||os(t))return void ro(t,ol(t),e);for(var n in t)hn(e,n,t[n])}),Tf=ao(function(e,t,n,r){ro(t,ol(t),e,r)}),Cf=ao(function(e,t,n,r){ro(t,rl(t),e,r)}),Ef=Va(function(e,t){return gn(e,zn(t,1))}),kf=Va(function(e){return e.push(J,fn),s(Tf,J,e)}),Sf=Va(function(e){return e.push(J,si),s(Df,J,e)}),Af=yo(function(e,t,n){e[t]=n},Vl(Gl)),Pf=yo(function(e,t,n){Pu.call(e,t)?e[t].push(n):e[t]=[n]},Fo),Mf=Va(er),Of=ao(function(e,t,n){pr(e,t,n)}),Df=ao(function(e,t,n,r){pr(e,t,n,r)}),Lf=Va(function(e,t){return null==e?{}:(t=m(zn(t,1),ci),vr(e,Dn(Lo(e),t)))}),jf=Va(function(e,t){return null==e?{}:vr(e,m(zn(t,1),ci))}),Rf=So(rl),Ff=So(ol),If=fo(function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}),Nf=fo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Bf=fo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),zf=co("toLowerCase"),Uf=fo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Wf=fo(function(e,t,n){return e+(n?" ":"")+qf(t)}),Hf=fo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),qf=co("toUpperCase"),Vf=Va(function(e,t){try{return s(e,J,t)}catch(n){return ps(n)?n:new bu(n)}}),Gf=Va(function(e,t){return u(zn(t,1),function(t){t=ci(t),e[t]=sf(e[t],e)}),e}),Yf=vo(),Kf=vo(!0),Xf=Va(function(e,t){return function(n){return er(n,e,t)}}),Zf=Va(function(e,t){return function(n){return er(e,n,t)}}),Qf=xo(m),Jf=xo(f),$f=xo(b),ep=To(),tp=To(!0),np=bo(function(e,t){return e+t}),rp=ko("ceil"),op=bo(function(e,t){return e/t}),ip=ko("floor"),ap=bo(function(e,t){return e*t}),sp=ko("round"),lp=bo(function(e,t){return e-t});return t.after=Ra,t.ary=Fa,t.assign=_f,t.assignIn=wf,t.assignInWith=Tf,t.assignWith=Cf,t.at=Ef,t.before=Ia,t.bind=sf,t.bindAll=Gf,t.bindKey=lf,t.castArray=Za,t.chain=aa,t.chunk=hi,t.compact=di,t.concat=mi,t.cond=Hl,t.conforms=ql,t.constant=Vl,t.countBy=Jc,t.create=Vs,t.curry=Na,t.curryRight=Ba,t.debounce=za,t.defaults=kf,t.defaultsDeep=Sf,t.defer=uf,t.delay=cf,t.difference=jc,t.differenceBy=Rc,t.differenceWith=Fc,t.drop=vi,t.dropRight=gi,t.dropRightWhile=yi,t.dropWhile=bi,t.fill=xi,t.filter=ga,t.flatMap=ya,t.flatMapDeep=ba,t.flatMapDepth=xa,t.flatten=Ti,t.flattenDeep=Ci,t.flattenDepth=Ei,t.flip=Ua,t.flow=Yf,t.flowRight=Kf,t.fromPairs=ki,t.functions=Js,t.functionsIn=$s,t.groupBy=tf,t.initial=Pi,t.intersection=Ic,t.intersectionBy=Nc,t.intersectionWith=Bc,t.invert=Af,t.invertBy=Pf,t.invokeMap=nf,t.iteratee=Yl,t.keyBy=rf,t.keys=rl,t.keysIn=ol,t.map=Ca,t.mapKeys=il,t.mapValues=al,t.matches=Kl,t.matchesProperty=Xl,t.memoize=Wa,t.merge=Of,t.mergeWith=Df,t.method=Xf,t.methodOf=Zf,t.mixin=Zl,t.negate=Ha,t.nthArg=$l,t.omit=Lf,t.omitBy=sl,t.once=qa,t.orderBy=Ea,t.over=Qf,t.overArgs=ff,t.overEvery=Jf,t.overSome=$f,t.partial=pf,t.partialRight=hf,t.partition=of,t.pick=jf,t.pickBy=ll,t.property=eu,t.propertyOf=tu,t.pull=zc,t.pullAll=ji,t.pullAllBy=Ri,t.pullAllWith=Fi,t.pullAt=Uc,t.range=ep,t.rangeRight=tp,t.rearg=df,t.reject=Aa,t.remove=Ii,t.rest=Va,t.reverse=Ni,t.sampleSize=Ma,t.set=cl,t.setWith=fl,t.shuffle=Oa,t.slice=Bi,t.sortBy=af,t.sortedUniq=Gi,t.sortedUniqBy=Yi,t.split=Dl,t.spread=Ga,t.tail=Ki,t.take=Xi,t.takeRight=Zi,t.takeRightWhile=Qi,t.takeWhile=Ji,t.tap=sa,t.throttle=Ya,t.thru=la,t.toArray=Is,t.toPairs=Rf,t.toPairsIn=Ff,t.toPath=lu,t.toPlainObject=Ws,t.transform=pl,t.unary=Ka,t.union=Wc,t.unionBy=Hc,t.unionWith=qc,t.uniq=$i,t.uniqBy=ea,t.uniqWith=ta,t.unset=hl,t.unzip=na,t.unzipWith=ra,t.update=dl,t.updateWith=ml,t.values=vl,t.valuesIn=gl,t.without=Vc,t.words=Wl,t.wrap=Xa,t.xor=Gc,t.xorBy=Yc,t.xorWith=Kc,t.zip=Xc,t.zipObject=oa,t.zipObjectDeep=ia,t.zipWith=Zc,t.entries=Rf,t.entriesIn=Ff,t.extend=wf,t.extendWith=Tf,Zl(t,t),t.add=np,t.attempt=Vf,t.camelCase=If,t.capitalize=_l,t.ceil=rp,t.clamp=yl,t.clone=Qa,t.cloneDeep=$a,t.cloneDeepWith=es,t.cloneWith=Ja,t.deburr=wl,t.divide=op,t.endsWith=Tl,t.eq=ts,t.escape=Cl,t.escapeRegExp=El,t.every=va,t.find=$c,t.findIndex=_i,t.findKey=Gs,t.findLast=ef,t.findLastIndex=wi,t.findLastKey=Ys,t.floor=ip,t.forEach=_a,t.forEachRight=wa,t.forIn=Ks,t.forInRight=Xs,t.forOwn=Zs,t.forOwnRight=Qs,t.get=el,t.gt=mf,t.gte=vf,t.has=tl,t.hasIn=nl,t.head=Si,t.identity=Gl,t.includes=Ta,t.indexOf=Ai,t.inRange=bl,t.invoke=Mf,t.isArguments=ns,t.isArray=gf,t.isArrayBuffer=rs,t.isArrayLike=os,t.isArrayLikeObject=is,t.isBoolean=as,t.isBuffer=yf,t.isDate=ss,t.isElement=ls,t.isEmpty=us,t.isEqual=cs,t.isEqualWith=fs,t.isError=ps,t.isFinite=hs,t.isFunction=ds,t.isInteger=ms,t.isLength=vs,t.isMap=bs,t.isMatch=xs,t.isMatchWith=_s,t.isNaN=ws,t.isNative=Ts,t.isNil=Es,t.isNull=Cs,t.isNumber=ks,t.isObject=gs,t.isObjectLike=ys,t.isPlainObject=Ss,t.isRegExp=As,t.isSafeInteger=Ps,t.isSet=Ms,t.isString=Os,t.isSymbol=Ds,t.isTypedArray=Ls,t.isUndefined=js,t.isWeakMap=Rs,t.isWeakSet=Fs,t.join=Mi,t.kebabCase=Nf,t.last=Oi,t.lastIndexOf=Di,t.lowerCase=Bf,t.lowerFirst=zf,t.lt=bf,t.lte=xf,t.max=cu,t.maxBy=fu,t.mean=pu,t.meanBy=hu,t.min=du,t.minBy=mu,t.stubArray=nu,t.stubFalse=ru,t.stubObject=ou,t.stubString=iu,t.stubTrue=au,t.multiply=ap,t.nth=Li,t.noConflict=Ql,t.noop=Jl,t.now=ja,t.pad=kl,t.padEnd=Sl,t.padStart=Al,t.parseInt=Pl,t.random=xl,t.reduce=ka,t.reduceRight=Sa,t.repeat=Ml,t.replace=Ol,t.result=ul,t.round=sp,t.runInContext=Q,t.sample=Pa,t.size=Da,t.snakeCase=Uf,t.some=La,t.sortedIndex=zi,t.sortedIndexBy=Ui,t.sortedIndexOf=Wi,t.sortedLastIndex=Hi,t.sortedLastIndexBy=qi,t.sortedLastIndexOf=Vi,t.startCase=Wf,t.startsWith=Ll,t.subtract=lp,t.sum=vu,t.sumBy=gu,t.template=jl,t.times=su,t.toFinite=Ns,t.toInteger=Bs,t.toLength=zs,t.toLower=Rl,t.toNumber=Us,t.toSafeInteger=Hs,t.toString=qs,t.toUpper=Fl,t.trim=Il,t.trimEnd=Nl,t.trimStart=Bl,t.truncate=zl,t.unescape=Ul,t.uniqueId=uu,t.upperCase=Hf,t.upperFirst=qf,t.each=_a,t.eachRight=wa,t.first=Si,Zl(t,function(){var e={};return Hn(t,function(n,r){Pu.call(t.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),t.VERSION=$,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),u(["drop","take"],function(e,t){o.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new o(this);n=n===J?1:Ju(Bs(n),0);var i=this.clone();return r?i.__takeCount__=$u(n,i.__takeCount__):i.__views__.push({size:$u(n,Se),type:e+(i.__dir__<0?"Right":"")}),i},o.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),u(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==xe||n==we;o.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Fo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),u(["head","last"],function(e,t){var n="take"+(t?"Right":"");o.prototype[e]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");o.prototype[e]=function(){return this.__filtered__?new o(this):this[n](1)}}),o.prototype.compact=function(){return this.filter(Gl)},o.prototype.find=function(e){return this.filter(e).head()},o.prototype.findLast=function(e){return this.reverse().find(e)},o.prototype.invokeMap=Va(function(e,t){return"function"==typeof e?new o(this):this.map(function(n){return er(n,e,t)})}),o.prototype.reject=function(e){return e=Fo(e,3),this.filter(function(t){return!e(t)})},o.prototype.slice=function(e,t){e=Bs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new o(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==J&&(t=Bs(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},o.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},o.prototype.toArray=function(){return this.take(Se)},Hn(o.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),s=t[a?"take"+("last"==n?"Right":""):n],l=a||/^find/.test(n);s&&(t.prototype[n]=function(){var n=this.__wrapped__,u=a?[1]:arguments,c=n instanceof o,f=u[0],p=c||gf(n),h=function(e){var n=s.apply(t,v([e],u));return a&&d?n[0]:n};p&&i&&"function"==typeof f&&1!=f.length&&(c=p=!1);var d=this.__chain__,m=!!this.__actions__.length,g=l&&!d,y=c&&!m;if(!l&&p){n=y?n:new o(this);var b=e.apply(n,u);return b.__actions__.push({func:la,args:[h],thisArg:J}),new r(b,d)}return g&&y?e.apply(this,u):(b=this.thru(h),g?a?b.value()[0]:b.value():b)})}),u(["pop","push","shift","sort","splice","unshift"],function(e){var n=Tu[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var t=this.value();return n.apply(gf(t)?t:[],e)}return this[r](function(t){return n.apply(gf(t)?t:[],e)})}}),Hn(o.prototype,function(e,n){var r=t[n];if(r){var o=r.name+"",i=hc[o]||(hc[o]=[]);i.push({name:n,func:r})}}),hc[go(J,ie).name]=[{name:"wrapper",func:J}],o.prototype.clone=R,o.prototype.reverse=Rt,o.prototype.value=Ft,t.prototype.at=Qc,t.prototype.chain=ua,t.prototype.commit=ca,t.prototype.next=fa,t.prototype.plant=ha,t.prototype.reverse=da,t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=ma,Uu&&(t.prototype[Uu]=pa),t}var J,$="4.13.1",ee=200,te="Expected a function",ne="__lodash_hash_undefined__",re="__lodash_placeholder__",oe=1,ie=2,ae=4,se=8,le=16,ue=32,ce=64,fe=128,pe=256,he=512,de=1,me=2,ve=30,ge="...",ye=150,be=16,xe=1,_e=2,we=3,Te=1/0,Ce=9007199254740991,Ee=1.7976931348623157e308,ke=NaN,Se=4294967295,Ae=Se-1,Pe=Se>>>1,Me="[object Arguments]",Oe="[object Array]",De="[object Boolean]",Le="[object Date]",je="[object Error]",Re="[object Function]",Fe="[object GeneratorFunction]",Ie="[object Map]",Ne="[object Number]",Be="[object Object]",ze="[object Promise]",Ue="[object RegExp]",We="[object Set]",He="[object String]",qe="[object Symbol]",Ve="[object WeakMap]",Ge="[object WeakSet]",Ye="[object ArrayBuffer]",Ke="[object DataView]",Xe="[object Float32Array]",Ze="[object Float64Array]",Qe="[object Int8Array]",Je="[object Int16Array]",$e="[object Int32Array]",et="[object Uint8Array]",tt="[object Uint8ClampedArray]",nt="[object Uint16Array]",rt="[object Uint32Array]",ot=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,at=/(__e\(.*?\)|\b__t\)) \+\n'';/g,st=/&(?:amp|lt|gt|quot|#39|#96);/g,lt=/[&<>"'`]/g,ut=RegExp(st.source),ct=RegExp(lt.source),ft=/<%-([\s\S]+?)%>/g,pt=/<%([\s\S]+?)%>/g,ht=/<%=([\s\S]+?)%>/g,dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,gt=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(gt.source),bt=/^\s+|\s+$/g,xt=/^\s+/,_t=/\s+$/,wt=/[a-zA-Z0-9]+/g,Tt=/\\(\\)?/g,Ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Et=/\w*$/,kt=/^0x/i,St=/^[-+]0x[0-9a-f]+$/i,At=/^0b[01]+$/i,Pt=/^\[object .+?Constructor\]$/,Mt=/^0o[0-7]+$/i,Ot=/^(?:0|[1-9]\d*)$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Lt=/($^)/,jt=/['\n\r\u2028\u2029\\]/g,Rt="\\ud800-\\udfff",Ft="\\u0300-\\u036f\\ufe20-\\ufe23",It="\\u20d0-\\u20f0",Nt="\\u2700-\\u27bf",Bt="a-z\\xdf-\\xf6\\xf8-\\xff",zt="\\xac\\xb1\\xd7\\xf7",Ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wt="\\u2000-\\u206f",Ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qt="A-Z\\xc0-\\xd6\\xd8-\\xde",Vt="\\ufe0e\\ufe0f",Gt=zt+Ut+Wt+Ht,Yt="['’]",Kt="["+Rt+"]",Xt="["+Gt+"]",Zt="["+Ft+It+"]",Qt="\\d+",Jt="["+Nt+"]",$t="["+Bt+"]",en="[^"+Rt+Gt+Qt+Nt+Bt+qt+"]",tn="\\ud83c[\\udffb-\\udfff]",nn="(?:"+Zt+"|"+tn+")",rn="[^"+Rt+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+qt+"]",ln="\\u200d",un="(?:"+$t+"|"+en+")",cn="(?:"+sn+"|"+en+")",fn="(?:"+Yt+"(?:d|ll|m|re|s|t|ve))?",pn="(?:"+Yt+"(?:D|LL|M|RE|S|T|VE))?",hn=nn+"?",dn="["+Vt+"]?",mn="(?:"+ln+"(?:"+[rn,on,an].join("|")+")"+dn+hn+")*",vn=dn+hn+mn,gn="(?:"+[Jt,on,an].join("|")+")"+vn,yn="(?:"+[rn+Zt+"?",Zt,on,an,Kt].join("|")+")",bn=RegExp(Yt,"g"),xn=RegExp(Zt,"g"),_n=RegExp(tn+"(?="+tn+")|"+yn+vn,"g"),wn=RegExp([sn+"?"+$t+"+"+fn+"(?="+[Xt,sn,"$"].join("|")+")",cn+"+"+pn+"(?="+[Xt,sn+un,"$"].join("|")+")",sn+"?"+un+"+"+fn,sn+"+"+pn,Qt,gn].join("|"),"g"),Tn=RegExp("["+ln+Rt+Ft+It+Vt+"]"),Cn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,En=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","isFinite","parseInt","setTimeout"],kn=-1,Sn={};Sn[Xe]=Sn[Ze]=Sn[Qe]=Sn[Je]=Sn[$e]=Sn[et]=Sn[tt]=Sn[nt]=Sn[rt]=!0,Sn[Me]=Sn[Oe]=Sn[Ye]=Sn[De]=Sn[Ke]=Sn[Le]=Sn[je]=Sn[Re]=Sn[Ie]=Sn[Ne]=Sn[Be]=Sn[Ue]=Sn[We]=Sn[He]=Sn[Ve]=!1;var An={};An[Me]=An[Oe]=An[Ye]=An[Ke]=An[De]=An[Le]=An[Xe]=An[Ze]=An[Qe]=An[Je]=An[$e]=An[Ie]=An[Ne]=An[Be]=An[Ue]=An[We]=An[He]=An[qe]=An[et]=An[tt]=An[nt]=An[rt]=!0,An[je]=An[Re]=An[Ve]=!1;var Pn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Mn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},On={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ln=parseFloat,jn=parseInt,Rn="object"==typeof t&&t,Fn=Rn&&"object"==typeof e&&e,In=Fn&&Fn.exports===Rn,Nn=R("object"==typeof o&&o),Bn=R("object"==typeof self&&self),zn=R("object"==typeof this&&this),Un=Nn||Bn||zn||Function("return this")(),Wn=Q();(Bn||{})._=Wn,r=function(){return Wn}.call(t,n,t,e),!(r!==J&&(e.exports=r))}).call(this)}).call(t,n(825)(e),function(){return this}())},function(e,t,n){function r(t,n){return delete e.exports[t],e.exports[t]=n,n}var o=n(1087),i=n(1096);e.exports={Parser:o,Tokenizer:n(1088),ElementType:n(1097),DomHandler:i,get FeedHandler(){return r("FeedHandler",n(1100))},get Stream(){return r("Stream",n(1101))},get WritableStream(){return r("WritableStream",n(1102))},get ProxyHandler(){return r("ProxyHandler",n(1118))},get DomUtils(){return r("DomUtils",n(1119))},get CollectingHandler(){return r("CollectingHandler",n(1131))},DefaultHandler:i,get RssHandler(){return r("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new i(t);return new o(n,t).end(e),n.dom},parseFeed:function(t,n){var r=new e.exports.FeedHandler(n);return new o(r,n).end(t),r.dom},createDomStream:function(e,t,n){var r=new i(e,t,n);return new o(r,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t,n){function r(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(o=this._options.Tokenizer),this._tokenizer=new o(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}var o=n(1088),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\s|\//;n(1094)(r,n(1095).EventEmitter),r.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},r.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},r.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));!this._options.xmlMode&&e in s||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},r.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},r.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(t!==-1)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},r.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},r.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},r.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},r.prototype.onattribdata=function(e){this._attribvalue+=e},r.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},r.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},r.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},r.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},r.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},r.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},r.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},r.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},r.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},r.prototype.parseComplete=function(e){this.reset(),this.end(e)},r.prototype.write=function(e){this._tokenizer.write(e)},r.prototype.end=function(e){this._tokenizer.end(e)},r.prototype.pause=function(){this._tokenizer.pause()},r.prototype.resume=function(){this._tokenizer.resume()},r.prototype.parseChunk=r.prototype.write,r.prototype.done=r.prototype.end,e.exports=r},function(e,t,n){function r(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function o(e,t){return function(n){n===e&&(this._state=t)}}function i(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(o){o===r||o===e?this._state=t:(this._state=n,this._index--)}}function a(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=m,this._index--)}}function s(e,t){this._state=h,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=h,this._special=me,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}e.exports=s;var l=n(1089),u=n(1091),c=n(1092),f=n(1093),p=0,h=p++,d=p++,m=p++,v=p++,g=p++,y=p++,b=p++,x=p++,_=p++,w=p++,T=p++,C=p++,E=p++,k=p++,S=p++,A=p++,P=p++,M=p++,O=p++,D=p++,L=p++,j=p++,R=p++,F=p++,I=p++,N=p++,B=p++,z=p++,U=p++,W=p++,H=p++,q=p++,V=p++,G=p++,Y=p++,K=p++,X=p++,Z=p++,Q=p++,J=p++,$=p++,ee=p++,te=p++,ne=p++,re=p++,oe=p++,ie=p++,ae=p++,se=p++,le=p++,ue=p++,ce=p++,fe=p++,pe=p++,he=p++,de=0,me=de++,ve=de++,ge=de++;s.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=d,this._sectionStart=this._index):this._decodeEntities&&this._special===me&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=ue,this._sectionStart=this._index)},s.prototype._stateBeforeTagName=function(e){"/"===e?this._state=g:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==me||r(e)?this._state=h:"!"===e?(this._state=S,this._sectionStart=this._index+1):"?"===e?(this._state=P,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?m:H,this._sectionStart=this._index)},s.prototype._stateInTagName=function(e){("/"===e||">"===e||r(e))&&(this._emitToken("onopentagname"),this._state=x,this._index--)},s.prototype._stateBeforeCloseingTagName=function(e){r(e)||(">"===e?this._state=h:this._special!==me?"s"===e||"S"===e?this._state=q:(this._state=h,this._index--):(this._state=y,this._sectionStart=this._index))},s.prototype._stateInCloseingTagName=function(e){(">"===e||r(e))&&(this._emitToken("onclosetag"),this._state=b,this._index--)},s.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=h,this._sectionStart=this._index+1)},s.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):"/"===e?this._state=v:r(e)||(this._state=_,this._sectionStart=this._index)},s.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):r(e)||(this._state=x,this._index--)},s.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||r(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=w,this._index--)},s.prototype._stateAfterAttributeName=function(e){"="===e?this._state=T:"/"===e||">"===e?(this._cbs.onattribend(),this._state=x,this._index--):r(e)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},s.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=C,this._sectionStart=this._index+1):"'"===e?(this._state=E,this._sectionStart=this._index+1):r(e)||(this._state=k,this._sectionStart=this._index,this._index--)},s.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=x):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ue,this._sectionStart=this._index)},s.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=x):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ue,this._sectionStart=this._index)},s.prototype._stateInAttributeValueNoQuotes=function(e){r(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=x,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ue,this._sectionStart=this._index)},s.prototype._stateBeforeDeclaration=function(e){this._state="["===e?j:"-"===e?M:A},s.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},s.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},s.prototype._stateBeforeComment=function(e){"-"===e?(this._state=O,this._sectionStart=this._index+1):this._state=A},s.prototype._stateInComment=function(e){"-"===e&&(this._state=D); +},s.prototype._stateAfterComment1=function(e){"-"===e?this._state=L:this._state=O},s.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"-"!==e&&(this._state=O)},s.prototype._stateBeforeCdata1=i("C",R,A),s.prototype._stateBeforeCdata2=i("D",F,A),s.prototype._stateBeforeCdata3=i("A",I,A),s.prototype._stateBeforeCdata4=i("T",N,A),s.prototype._stateBeforeCdata5=i("A",B,A),s.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=z,this._sectionStart=this._index+1):(this._state=A,this._index--)},s.prototype._stateInCdata=function(e){"]"===e&&(this._state=U)},s.prototype._stateAfterCdata1=o("]",W),s.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"]"!==e&&(this._state=z)},s.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=V:"t"===e||"T"===e?this._state=te:(this._state=m,this._index--)},s.prototype._stateBeforeSpecialEnd=function(e){this._special!==ve||"c"!==e&&"C"!==e?this._special!==ge||"t"!==e&&"T"!==e?this._state=h:this._state=ie:this._state=Z},s.prototype._stateBeforeScript1=a("R",G),s.prototype._stateBeforeScript2=a("I",Y),s.prototype._stateBeforeScript3=a("P",K),s.prototype._stateBeforeScript4=a("T",X),s.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||r(e))&&(this._special=ve),this._state=m,this._index--},s.prototype._stateAfterScript1=i("R",Q,h),s.prototype._stateAfterScript2=i("I",J,h),s.prototype._stateAfterScript3=i("P",$,h),s.prototype._stateAfterScript4=i("T",ee,h),s.prototype._stateAfterScript5=function(e){">"===e||r(e)?(this._special=me,this._state=y,this._sectionStart=this._index-6,this._index--):this._state=h},s.prototype._stateBeforeStyle1=a("Y",ne),s.prototype._stateBeforeStyle2=a("L",re),s.prototype._stateBeforeStyle3=a("E",oe),s.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||r(e))&&(this._special=ge),this._state=m,this._index--},s.prototype._stateAfterStyle1=i("Y",ae,h),s.prototype._stateAfterStyle2=i("L",se,h),s.prototype._stateAfterStyle3=i("E",le,h),s.prototype._stateAfterStyle4=function(e){">"===e||r(e)?(this._special=me,this._state=y,this._sectionStart=this._index-5,this._index--):this._state=h},s.prototype._stateBeforeEntity=i("#",ce,fe),s.prototype._stateBeforeNumericEntity=i("X",he,pe),s.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(c.hasOwnProperty(n))return this._emitPartial(c[n]),void(this._sectionStart+=t+1);t--}},s.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},s.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),o=parseInt(r,t);this._emitPartial(l(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},s.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},s.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},s.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._index=0,this._bufferOffset+=this._index):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},s.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},s.prototype._parse=function(){for(;this._index=55296&&e<=57343||e>1114111)return"�";e in o&&(e=o[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}var o=n(1090);e.exports=r},function(e,t,n){e.exports=n.p+"d910d99bf12370e4fafecfec9fffe6ed.json"},function(e,t,n){e.exports=n.p+"f538a60960fcdc4a4f5ceb05a8190b1d.json"},function(e,t,n){e.exports=n.p+"109da3ab610328154d3119eec563adb2.json"},function(e,t,n){e.exports=n.p+"bcc034acc51c5c8f92c257a28ec9a1d6.json"},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,l=0;l0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){function r(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=l),this._callback=e,this._options=t||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var o=n(1097),i=/\s+/g,a=n(1098),s=n(1099),l={normalizeWhitespace:!1,withStartIndices:!1};r.prototype.onparserinit=function(e){this._parser=e},r.prototype.onreset=function(){r.call(this,this._callback,this._options,this._elementCB)},r.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},r.prototype._handleCallback=r.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},r.prototype.onclosetag=function(){var e=this._tagStack.pop();this._elementCB&&this._elementCB(e)},r.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withDomLvl1&&(e.__proto__="tag"===e.type?s:a),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},r.prototype.onopentag=function(e,t){var n={type:"script"===e?o.Script:"style"===e?o.Style:o.Tag,name:e,attribs:t,children:[]};this._addDomElement(n),this._tagStack.push(n)},r.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===o.Text?n?t.data=(t.data+e).replace(i," "):t.data+=e:this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===o.Text?n?t.data=(t.data+e).replace(i," "):t.data+=e:(n&&(e=e.replace(i," ")),this._addDomElement({data:e,type:o.Text}))},r.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===o.Comment)return void(t.data+=e);var n={data:e,type:o.Comment};this._addDomElement(n),this._tagStack.push(n)},r.prototype.oncdatastart=function(){var e={children:[{data:"",type:o.Text}],type:o.CDATA};this._addDomElement(e),this._tagStack.push(e)},r.prototype.oncommentend=r.prototype.oncdataend=function(){this._tagStack.pop()},r.prototype.onprocessinginstruction=function(e,t){this._addDomElement({name:e,data:t,type:o.Directive})},e.exports=r},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return o[this.type]||o.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(e){var t=r[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){var r=n(1098),o=e.exports=Object.create(r),i={tagName:"name"};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(o,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){function r(e,t){this.init(e,t)}function o(e,t){return c.getElementsByTagName(e,t,!0)}function i(e,t){return c.getElementsByTagName(e,t,!0,1)[0]}function a(e,t,n){return c.getText(c.getElementsByTagName(e,t,n,1)).trim()}function s(e,t,n,r,o){var i=a(n,r,o);i&&(e[t]=i)}var l=n(1086),u=l.DomHandler,c=l.DomUtils;n(1094)(r,u),r.prototype.init=u;var f=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};r.prototype.onend=function(){var e,t,n={},r=i(f,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",s(n,"id","id",t),s(n,"title","title",t),(e=i("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),s(n,"description","subtitle",t),(e=a("updated",t))&&(n.updated=new Date(e)),s(n,"author","email",t,!0),n.items=o("entry",t).map(function(e){var t,n={};return e=e.children,s(n,"id","id",e),s(n,"title","title",e),(t=i("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=a("summary",e)||a("content",e))&&(n.description=t),(t=a("updated",e))&&(n.pubDate=new Date(t)),n})):(t=i("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",s(n,"title","title",t),s(n,"link","link",t),s(n,"description","description",t),(e=a("lastBuildDate",t))&&(n.updated=new Date(e)),s(n,"author","managingEditor",t,!0),n.items=o("item",r.children).map(function(e){var t,n={};return e=e.children,s(n,"id","guid",e),s(n,"title","title",e),s(n,"link","link",e),s(n,"description","description",e),(t=a("pubDate",e))&&(n.pubDate=new Date(t)),n}))),this.dom=n,u.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=r},function(e,t,n){function r(e){i.call(this,new o(this),e)}function o(e){this.scope=e}e.exports=r;var i=n(1102);n(1094)(r,i),r.prototype.readable=!0;var a=n(1086).EVENTS;Object.keys(a).forEach(function(e){if(0===a[e])o.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])o.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");o.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}})},function(e,t,n){function r(e,t){var n=this._parser=new o(e,t),r=this._decoder=new a;i.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(r.end())})}e.exports=r;var o=n(1087),i=n(1103).Writable||n(1117).Writable,a=n(1110).StringDecoder,s=n(925).Buffer;n(1094)(r,i),i.prototype._write=function(e,t,n){e instanceof s&&(e=this._decoder.write(e)),this._parser.write(e),n()}},function(e,t,n){function r(){o.call(this)}e.exports=r;var o=n(1095).EventEmitter,i=n(1094);i(r,o),r.Readable=n(1104),r.Writable=n(1113),r.Duplex=n(1114),r.Transform=n(1115),r.PassThrough=n(1116),r.Stream=r,r.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function i(){c||(c=!0,e.end())}function a(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(l(),0===o.listenerCount(this,"error"))throw e}function l(){u.removeListener("data",n),e.removeListener("drain",r),u.removeListener("end",i),u.removeListener("close",a),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",l),u.removeListener("close",l),e.removeListener("close",l)}var u=this;u.on("data",n),e.on("drain",r),e._isStdio||t&&t.end===!1||(u.on("end",i),u.on("close",a));var c=!1;return u.on("error",s),e.on("error",s),u.on("end",l),u.on("close",l),e.on("close",l),e.emit("pipe",u),e}},function(e,t,n){(function(r){t=e.exports=n(1105),t.Stream=n(1103),t.Readable=t,t.Writable=n(1109),t.Duplex=n(1108),t.Transform=n(1111),t.PassThrough=n(1112),r.browser||"disable"!=={NODE_ENV:"production"}.READABLE_STREAM||(e.exports=n(1103))}).call(t,n(294))},function(e,t,n){(function(t){function r(e,t){var r=n(1108);e=e||{};var o=e.highWaterMark,i=e.objectMode?16:16384;this.highWaterMark=o||0===o?o:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(A||(A=n(1110).StringDecoder),this.decoder=new A(e.encoding),this.encoding=e.encoding)}function o(e){n(1108);return this instanceof o?(this._readableState=new r(e,this),this.readable=!0,void k.call(this)):new o(e)}function i(e,t,n,r,o){var i=u(t,n);if(i)e.emit("error",i);else if(S.isNullOrUndefined(n))t.reading=!1,t.ended||c(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else!t.decoder||o||r||(n=t.decoder.write(n)),o||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&f(e)),h(e,t);else o||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length=M)e=M;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}function l(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||S.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=s(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function u(e,t){var n=null;return S.isBuffer(t)||S.isString(t)||S.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function c(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,f(e)}function f(e){var n=e._readableState;n.needReadable=!1,n.emittedReadable||(P("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?t.nextTick(function(){p(e)}):p(e))}function p(e){P("emit readable"),e.emit("readable"),y(e)}function h(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(function(){d(e,n)}))}function d(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=o)n=i?r.join(""):C.concat(r,o),r.length=0;else if(e0)throw new Error("endReadable called on non-empty stream");n.endEmitted||(n.ended=!0,t.nextTick(function(){n.endEmitted||0!==n.length||(n.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function _(e,t){for(var n=0,r=e.length;n0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return P("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?x(this):f(this),null;if(e=l(e,t),0===e&&t.ended)return 0===t.length&&x(this),null;var r=t.needReadable;P("need readable",r),(0===t.length||t.length-e0?b(e,t):null,S.isNull(o)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&x(this),S.isNull(o)||this.emit("data",o),o},o.prototype._read=function(e){this.emit("error",new Error("not implemented"))},o.prototype.pipe=function(e,n){function r(e){P("onunpipe"),e===f&&i()}function o(){P("onend"),e.end()}function i(){P("cleanup"),e.removeListener("close",l),e.removeListener("finish",u),e.removeListener("drain",v),e.removeListener("error",s),e.removeListener("unpipe",r),f.removeListener("end",o),f.removeListener("end",i),f.removeListener("data",a),!p.awaitDrain||e._writableState&&!e._writableState.needDrain||v()}function a(t){P("ondata");var n=e.write(t);!1===n&&(P("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,f.pause())}function s(t){P("onerror",t),c(),e.removeListener("error",s),0===E.listenerCount(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",u),c()}function u(){P("onfinish"),e.removeListener("close",l),c()}function c(){P("unpipe"),f.unpipe(e)}var f=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1,P("pipe count=%d opts=%j",p.pipesCount,n);var h=(!n||n.end!==!1)&&e!==t.stdout&&e!==t.stderr,d=h?o:i;p.endEmitted?t.nextTick(d):f.once("end",d),e.on("unpipe",r);var v=m(f);return e.on("drain",v),f.on("data",a),e._events&&e._events.error?T(e._events.error)?e._events.error.unshift(s):e._events.error=[s,e._events.error]:e.on("error",s),e.once("close",l),e.once("finish",u),e.emit("pipe",f),p.flowing||(P("pipe resume"),f.resume()),e},o.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o1){for(var n=[],r=0;r=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var o=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);var o=t.length-1,r=t.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t}},function(e,t,n){function r(e,t){this.afterTransform=function(e,n){return o(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function o(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,l.isNullOrUndefined(n)||e.push(n),o&&o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length",e.children&&(n+=d(e.children,t)),h[e.name]&&!t.xmlMode||(n+="")):n+="/>",n}function i(e){return"<"+e.data+">"}function a(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in p||(n=c.encodeXML(n)),n}function s(e){return""}function l(e){return""}var u=n(1122),c=n(1123),f={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,"default":!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},p={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},h={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},d=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",r=0;r0&&(i=o(e,i,n,r),a=a.concat(i),r-=i.length,r<=0)));s++);return a}function i(e,t){for(var n=0,r=t.length;n0&&(n=a(e,t[r].children)));return n}function s(e,t){for(var n=0,r=t.length;n0&&s(e,t[n].children)))return!0;return!1}function l(e,t){for(var n=[],r=0,o=t.length;r0&&(n=n.concat(l(e,t[r].children))));return n}var u=n(1097).isTag;e.exports={filter:r,find:o,findOneChild:i,findOne:a,existsOne:s,findAll:l}},function(e,t,n){function r(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function o(e,t){return function(n){return e(n)||t(n)}}var i=n(1097),a=t.isTag=i.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!a(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(a(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var s={tag_name:function(e){return"function"==typeof e?function(t){return a(t)&&e(t.name)}:"*"===e?a:function(t){return a(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!a(t)&&e(t.data)}:function(t){return!a(t)&&t.data===e}}};t.getElements=function(e,t,n,i){var a=Object.keys(e).map(function(t){var n=e[t];return t in s?s[t](n):r(t,n)});return 0===a.length?[]:this.filter(a.reduce(o),t,n,i)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(r("id",e),t,n!==!1)},t.getElementsByTagName=function(e,t,n,r){return this.filter(s.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(s.tag_type(e),t,n,r)}},function(e,t){t.removeSubsets=function(e){for(var t,n,r,o=e.length;--o>-1;){for(t=n=e[o],e[o]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(o,1);break}n=n.parent}r&&(e[o]=t)}return e};var n={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},r=t.compareDocumentPosition=function(e,t){var r,o,i,a,s,l,u=[],c=[];if(e===t)return 0;for(r=e;r;)u.unshift(r),r=r.parent;for(r=t;r;)c.unshift(r),r=r.parent;for(l=0;u[l]===c[l];)l++;return 0===l?n.DISCONNECTED:(o=u[l-1],i=o.children,a=u[l],s=c[l],i.indexOf(a)>i.indexOf(s)?o===t?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:o===e?n.PRECEDING|n.CONTAINS:n.PRECEDING)};t.uniqueSort=function(e){var t,o,i=e.length;for(e=e.slice();--i>-1;)t=e[i],o=e.indexOf(t),o>-1&&o0&&r.length>0&&(a[n]=r);return a}var o=n(1085),i=function(e){function t(t,n){if("text"===t.type)return t.data;if("comment"===t.type)return!1;var i={};return t.attribs&&o.each(t.attribs,function(e,n){switch(n||""){case"style":i.style=r(t.attribs.style);break;case"class":i.className=e;break;default:i[n]=e}}),e.createElement(t.name,i,t.data,n)}return{processDefaultNode:t}};e.exports=i},function(e,t){"use strict";function n(){return!0}e.exports={alwaysValid:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t1){var d={nw:{lat:(0,m["default"])(i,"lat").lat,lng:(0,h["default"])(i,"lng").lng},se:{lat:(0,h["default"])(i,"lat").lat,lng:(0,m["default"])(i,"lng").lng}},v=(0,u.fitBounds)(d,this.state);if(n=v.center,r=v.zoom,this.maps&&this.map)for(var g=function(t,n){if(i[t].isHighlighted){var r=new e.maps.Marker({position:{lat:i[t].lat,lng:i[t].lng},map:e.map,title:i[t].title});r.addListener("click",function(){return s.panoptes.dataItemPopup({table:i[t].table,primKey:i[t].primKey.toString()})}),e.mapMarkers.push(r)}else{var o=new e.maps.Marker({position:{lat:i[t].lat,lng:i[t].lng},map:e.map,title:i[t].title,icon:{path:e.maps.SymbolPath.CIRCLE,fillColor:"#F26C6C",fillOpacity:1,scale:4,strokeColor:"#BC0F0F",strokeWeight:1}});o.addListener("click",function(){return s.panoptes.dataItemPopup({table:i[t].table,primKey:i[t].primKey.toString()})}),e.mapMarkers.push(o)}},y=0,b=i.length;y0||n.geoService_.getHeight()>0){var e=Math.ceil(n.geoService_.getWidth()/G)+2,t=Math.ceil(n.geoService_.getHeight()/G)+2,r=Math.max(e,t);return Math.ceil((0,z["default"])(r))}return X},n._computeMinZoom=function(e,t){return e?t||X:n._getMinZoom()},n._initMap=function(){if(!n.initialized_){n.initialized_=!0;var e=Z(n.props.center||n.props.defaultCenter);n.geoService_.setView(e,n.props.zoom||n.props.defaultZoom,0),n._onBoundsChanged();var t=u({},n.props.apiKey&&{key:n.props.apiKey},n.props.bootstrapURLKeys);n.props.googleMapLoader(t).then(function(e){if(n.mounted_){var t=n.geoService_.getCenter(),r={zoom:n.props.zoom||n.props.defaultZoom,center:new e.LatLng(t.lat,t.lng)},o=(0,F["default"])(e,j["default"]),i="function"==typeof n.props.options?n.props.options(o):n.props.options,a=l(o),s=void 0!==n.props.draggable&&{draggable:n.props.draggable},c=n._computeMinZoom(i.minZoomOverride,i.minZoom);n.minZoom_=c;var f=u({},a,{minZoom:c},i,r);n.defaultDraggableOption_=void 0!==f.draggable?f.draggable:n.defaultDraggableOption_;var h=u({},f,s);h.minZoomr&&(n.boundingRect_=e.currentTarget.getBoundingClientRect()),n.mouseMoveTime_=t;var o=e.clientX-n.boundingRect_.left,i=e.clientY-n.boundingRect_.top;n.mouse_||(n.mouse_={x:0,y:0,lat:0,lng:0}),n.mouse_.x=o,n.mouse_.y=i;var a=n.geoService_.unproject(n.mouse_,!0);n.mouse_.lat=a.lat,n.mouse_.lng=a.lng,n._onChildMouseMove(),t-n.dragTime_K&&0===n.dragTime_&&(e=n.props).onClick.apply(e,arguments)},n._onMapClick=function(e){if(n.markersDispatcher_){n._onMapMouseMove(e);var t=(new Date).getTime();t-n.dragTime_>Y&&(n.mouse_&&n._onClick(u({},n.mouse_,{event:e})),n.markersDispatcher_.emit("kON_CLICK",e))}},n._onMapMouseDownNative=function(e){n.mouseInMap_&&(n._onMapMouseDown(e),n.props.draggable===!1&&(e.preventDefault(),e.stopPropagation()))},n._onMapMouseDown=function(e){if(n.markersDispatcher_){var t=(new Date).getTime();t-n.dragTime_>Y&&n.markersDispatcher_.emit("kON_MDOWN",e)}},n._onMapMouseDownCapture=function(){(0,A["default"])().isChrome&&(n.mouse_||(n.zoomControlClickTime_=(new Date).getTime()))},n._onKeyDownCapture=function(){(0,A["default"])().isChrome&&(n.zoomControlClickTime_=(new Date).getTime())},n._isCenterDefined=function(e){return e&&((0,j["default"])(e)&&(0,W["default"])(e.lat)&&(0,W["default"])(e.lng)||2===e.length&&(0,W["default"])(e[0])&&(0,W["default"])(e[1]))},n._onBoundsChanged=function(e,t,r){if(e){var o=e.getCenter();n.geoService_.setView([o.lat(),o.lng()],e.getZoom(),0)}if((n.props.onChange||n.props.onBoundsChange)&&n.geoService_.canProject()){var i=n.geoService_.getZoom(),a=n.geoService_.getBounds(),s=n.geoService_.getCenter();if(!(0,D["default"])(a,n.prevBounds_,V)&&r!==!1){var l=n.geoService_.getBounds(n.props.margin);n.props.onBoundsChange&&n.props.onBoundsChange(n.centerIsObject_?u({},s):[s.lat,s.lng],i,a,l),n.props.onChange&&n.props.onChange({center:u({},s),zoom:i,bounds:{nw:{lat:a[0],lng:a[1]},se:{lat:a[2],lng:a[3]}},marginBounds:{nw:{lat:l[0],lng:l[1]},se:{lat:l[2],lng:l[3]}},size:n.geoService_.hasSize()?{width:n.geoService_.getWidth(),height:n.geoService_.getHeight()}:{width:0,height:0}}),n.prevBounds_=a}}},n.mounted_=!1,n.initialized_=!1,n.googleApiLoadedCalled_=!1,n.map_=null,n.maps_=null,n.prevBounds_=null,n.mouse_=null,n.mouseMoveTime_=0,n.boundingRect_=null,n.mouseInMap_=!0,n.dragTime_=0,n.fireMouseEventOnIdle_=!1,n.updateCounter_=0,n.markersDispatcher_=new y["default"](n),n.geoService_=new M["default"](G),n.centerIsObject_=(0,j["default"])(n.props.center),n.minZoom_=X,n.defaultDraggableOption_=!0,n.zoomControlClickTime_=0,n.childMouseDownArgs_=null,n.childMouseUpTime_=0,n._isCenterDefined(n.props.center||n.props.defaultCenter)){var r=Z(n.props.center||n.props.defaultCenter);n.geoService_.setView(r,n.props.zoom||n.props.defaultZoom,0)}return n.zoomAnimationInProgress_=!1,n.state={overlayCreated:!1},n}return s(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this;this.mounted_=!0,window.addEventListener("resize",this._onWindowResize),window.addEventListener("keydown",this._onKeyDownCapture,!0),d["default"].findDOMNode(this.refs.google_map_dom).addEventListener("mousedown",this._onMapMouseDownNative,!0),window.addEventListener("mouseup",this._onChildMouseUp,!1);var t=u({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(t),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap()},0,this)}},{key:"componentWillReceiveProps",value:function(e){var t=this;if(!this._isCenterDefined(this.props.center)&&this._isCenterDefined(e.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var n=this.geoService_.getCenter();if(this._isCenterDefined(e.center)){var r=Z(e.center),o=this._isCenterDefined(this.props.center)?Z(this.props.center):null;(!o||Math.abs(r.lat-o.lat)+Math.abs(r.lng-o.lng)>V)&&Math.abs(r.lat-n.lat)+Math.abs(r.lng-n.lng)>V&&this.map_.panTo({lat:r.lat,lng:r.lng})}void 0!==e.zoom&&Math.abs(e.zoom-this.props.zoom)>0&&this.map_.setZoom(e.zoom),void 0!==this.props.draggable&&void 0===e.draggable?this.map_.setOptions({draggable:this.defaultDraggableOption_}):this.props.draggable!==e.draggable&&this.map_.setOptions({draggable:e.draggable})}}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,v["default"])((0,q["default"])(this.props,["draggable"]),(0,q["default"])(e,["draggable"]))||!(0,v["default"])(this.state,t)}},{key:"componentDidUpdate",value:function(e){this.markersDispatcher_.emit("kON_CHANGE"),this.props.hoverDistance!==e.hoverDistance&&this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")}},{key:"componentWillUnmount",value:function(){this.mounted_=!1,window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),d["default"].findDOMNode(this.refs.google_map_dom).removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.maps_.event.clearInstanceListeners(this.map_),this.map_=null,this.maps_=null,this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,delete this.map_,delete this.markersDispatcher_}},{key:"render",value:function(){var e=this.state.overlayCreated?null:p["default"].createElement(C["default"],{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,projectFromLeftTop:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return p["default"].createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},p["default"].createElement(x["default"],{ref:"google_map_dom"}),e)}}]),t}(f.Component);Q.propTypes={apiKey:f.PropTypes.string,bootstrapURLKeys:f.PropTypes.any,defaultCenter:p["default"].PropTypes.oneOfType([f.PropTypes.array,f.PropTypes.shape({lat:f.PropTypes.number,lng:f.PropTypes.number})]),center:p["default"].PropTypes.oneOfType([f.PropTypes.array,f.PropTypes.shape({lat:f.PropTypes.number,lng:f.PropTypes.number})]),defaultZoom:f.PropTypes.number,zoom:f.PropTypes.number,onBoundsChange:f.PropTypes.func,onChange:f.PropTypes.func,onClick:f.PropTypes.func,onChildClick:f.PropTypes.func,onChildMouseDown:f.PropTypes.func,onChildMouseUp:f.PropTypes.func,onChildMouseMove:f.PropTypes.func,onChildMouseEnter:f.PropTypes.func,onChildMouseLeave:f.PropTypes.func,onZoomAnimationStart:f.PropTypes.func,onZoomAnimationEnd:f.PropTypes.func,onDrag:f.PropTypes.func,options:f.PropTypes.any,distanceToMouse:f.PropTypes.func,hoverDistance:f.PropTypes.number,debounced:f.PropTypes.bool,margin:f.PropTypes.array,googleMapLoader:f.PropTypes.any,onGoogleApiLoaded:f.PropTypes.func,yesIWantToUseGoogleMapApiInternals:f.PropTypes.bool,draggable:f.PropTypes.bool,style:f.PropTypes.any},Q.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:l,googleMapLoader:k["default"],yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"}},Q.googleMapLoader=k["default"],t["default"]=Q},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var r=n(e,[]),o=0;o-1,t=navigator.userAgent.indexOf("Firefox")>-1,n=navigator.userAgent.toLowerCase().indexOf("op")>-1,o=navigator.userAgent.indexOf("Chrome")>-1,i=navigator.userAgent.indexOf("Safari")>-1;return o&&i&&(i=!1),o&&n&&(o=!1),r={isExplorer:e,isFirefox:t,isOpera:n,isChrome:o,isSafari:i}}return r={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r=null},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&this.getHeight()-n-o>0){var a=this.unproject({x:i-this.getWidth()/2,y:n-this.getHeight()/2}),s=this.unproject({x:this.getWidth()/2-r,y:this.getHeight()/2-o}),l=[a.lat,a.lng,s.lat,s.lng];return t&&(l=l.map(function(e){return Math.round(e*t)/t})),l}return[0,0,0,0]}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;nn)return!1;return!0}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){if(!e||"object"!==("undefined"==typeof e?"undefined":r(e)))return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&o(n)===o(Object)}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=n;var o=function(e){return Function.prototype.toString.call(e)}},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){if(window.requestAnimationFrame)return window.requestAnimationFrame(e);var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?t(e):window.setTimeout(e,1e3/60)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Math.log2?Math.log2:function(e){return Math.log(e)/Math.LN2};t["default"]=n},function(e,t){"use strict";function n(e){return!!e&&"object"===("undefined"==typeof e?"undefined":o(e))}function r(e){var t="[object Number]";return"number"==typeof e||n(e)&&i.call(e)===t}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=r;var i=Object.prototype.toString},function(e,t,n){var r=n(1160);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1161);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.lat,n=e.lng,r=Math.sin(t*Math.PI/180),o=n/360+.5,i=.5-.25*Math.log((1+r)/(1-r))/Math.PI;return i=i<0?0:i>1?1:i,{x:o,y:i}}function i(e){var t=e.x,n=e.y,r=Math.PI-2*Math.PI*n;return{lat:180/Math.PI*Math.atan(.5*(Math.exp(r)-Math.exp(-r))),lng:360*t-180}}function a(e){var t=e.lat,n=t*Math.PI/180,r=111132.92-559.82*Math.cos(2*n)+1.175*Math.cos(4*n)-.0023*Math.cos(6*n),o=111412.84*Math.cos(n)-93.5*Math.cos(3*n)+.118*Math.cos(5*n);return{metersPerLatDegree:r,metersPerLngDegree:o}}function s(e,t){var n=t.lat,r=t.lng,o=a({lat:n}),i=o.metersPerLatDegree,s=o.metersPerLngDegree,l=.5*e/i,u=.5*e/s;return{nw:{lat:n-l,lng:r-u},se:{lat:n+l,lng:r+u}}}function l(e,t){var n=t.lat,r=t.lng,i=s(e,{lat:n,lng:r}),a=i.nw,l=i.se,u=o(a),c=o(l),f=Math.abs(c.x-u.x),p=Math.abs(c.y-u.y);return{w:f,h:p}}Object.defineProperty(t,"__esModule",{value:!0}),t.getTilesIds=t.latLng2Tile=t.tile2LatLng=t.meters2ScreenPixels=t.fitBounds=void 0;var u=n(1157),c=r(u),f=256,p={fitBounds:function(e,t){var n=e.nw,r=e.se,a=t.width,s=t.height,l=1e-9,u=o(n),p=o(r),h=u.x0?.5*(u.x+p.x-1):.5*(1+u.x+p.x),y:.5*(u.y+p.y)};return{center:i(y),zoom:g}},meters2ScreenPixels:function(e,t,n){var r=t.lat,o=t.lng,i=l(e,{lat:r,lng:o}),a=i.w,s=i.h,u=Math.pow(2,n),c=a*u*f,p=s*u*f;return{w:c,h:p}},tile2LatLng:function(e,t){var n=e.x,r=e.y,o=Math.PI-2*Math.PI*r/Math.pow(2,t);return{lat:180/Math.PI*Math.atan(.5*(Math.exp(o)-Math.exp(-o))),lng:n/Math.pow(2,t)*360-180}},latLng2Tile:function(e,t){var n=e.lat,r=e.lng,i=o({lat:n,lng:r}),a=Math.pow(2,t);return{x:Math.floor(i.x*a),y:Math.floor(i.y*a)}},getTilesIds:function(e,t){for(var n=e.from,r=e.to,o=Math.pow(2,t),i=[],a=n.x;a!==(r.x+1)%o;a=(a+1)%o)for(var s=n.y;s!==(r.y+1)%o;s=(s+1)%o)i.push([t,a,s]);return i}};t.fitBounds=p.fitBounds,t.meters2ScreenPixels=p.meters2ScreenPixels,t.tile2LatLng=p.tile2LatLng,t.latLng2Tile=p.latLng2Tile,t.getTilesIds=p.getTilesIds},function(e,t){function n(e,t,n){var a=Array.isArray(e),s=Array.isArray(t);if(a!==s)return!1;var l=typeof e,u=typeof t;return l===u&&(i(l)?n?n(e,t):e===t:a?r(e,t,n):o(e,t,n))}function r(e,t,n){var r=e.length;if(r!==t.length)return!1;if(n){for(var o=0;ot}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;tthis.defaultCollapsedOptions.min&&e.length5&&(this.dragging=!0,this.offsetx=this.origx+n,this.offsety=this.origy+r,this.draw())}else{var o=e,i=this.getNodeAtMousePosition(o);i&&i.interactive&&(this.internalNodesSelectable||i.leaf)?(this.root.cascadeFlag("hovered",!1),i.hovered=!0,i.leaf||i.hasCollapsedAncestor()||this.tooltip.open(o.clientX,o.clientY,i),this.containerElement.style.cursor="pointer"):(this.tooltip.close(),this.root.cascadeFlag("hovered",!1),this.containerElement.style.cursor="auto"),this.draw()}}},{key:"draw",value:function(e){if(this.highlighters.length=0,0===this.maxBranchLength)return void this.loadError(new Error("All branches in the tree are identical."));this.canvas.restore(),this.canvas.clearRect(0,0,this.canvas.canvas.width,this.canvas.canvas.height),this.canvas.lineCap="round",this.canvas.lineJoin="round",this.canvas.strokeStyle=this.branchColour,this.canvas.save(),this.drawn&&!e||(this.prerenderer.run(this),e||this.fitInPanel());var t=x(this.canvas);this.canvas.lineWidth=this.lineWidth/this.zoom,this.canvas.translate(this.offsetx*t,this.offsety*t),this.canvas.scale(this.zoom,this.zoom),this.branchRenderer.render(this,this.root),this.highlighters.forEach(function(e){return e()}),this.defaultCollapsed=!1,this.drawn=!0}},{key:"drop",value:function(){return!!this.drawn&&void(this.pickedup=!1)}},{key:"findLeaves",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?"id":arguments[1],n=[],r=!0,o=!1,i=void 0;try{for(var a,s=this.leaves[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l[t]&&l[t].match(e)&&n.push(l)}}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}},{key:"updateLeaves",value:function(e,t,n){var r=!0,o=!1,i=void 0;try{for(var a,s=this.leaves[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l[t]=!n}}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}var c=!0,f=!1,p=void 0;try{for(var h,d=e[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var l=h.value;l[t]=n}}catch(u){f=!0,p=u}finally{try{!c&&d["return"]&&d["return"]()}finally{if(f)throw p}}this.nodesUpdated(e.map(function(e){return e.id}),t)}},{key:"clearSelect",value:function(){this.root.cascadeFlag("selected",!1),this.draw()}},{key:"getPngUrl",value:function(){return this.canvas.canvas.toDataURL()}},{key:"hideLabels",value:function(){this.showLabels=!1,this.draw()}},{key:"load",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments[2],r=t,o=n;if("function"==typeof t&&(o=t,r={}),o&&(r.callback=o),r.format)return void this.build(e,v["default"][r.format],r);var i=!0,a=!1,s=void 0;try{for(var l,u=Object.keys(v["default"])[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value,f=v["default"][c];if(e.match(f.fileExtension)||e.match(f.validator))return void this.build(e,f,r)}}catch(p){a=!0,s=p}finally{try{!i&&u["return"]&&u["return"]()}finally{if(a)throw s}}var h=new Error("String not recognised as a file or a parseable format string");o&&o(h),this.loadError(h)}},{key:"saveOriginalTree",value:function(){this.originalTree.branches=this.branches,this.originalTree.leaves=this.leaves,this.originalTree.root=this.root,this.originalTree.branchLengths={},this.originalTree.parents={}}},{key:"clearState",value:function(){this.root=!1,this.leaves=[],this.branches={},this.drawn=!1}},{key:"saveState",value:function(){if(this.extractNestedBranches(),this.root.branchLength=0,this.maxBranchLength=0,this.root.setTotalLength(),0===this.maxBranchLength)return void this.loadError(new Error("All branches in the tree are identical."))}},{key:"build",value:function(e,t,n){var r=this;this.originalTree={},this.clearState(),u["default"].lastId=0;var o=new u["default"];o.id="root",this.branches.root=o,this.setRoot(o),t.parse({formatString:e,root:o,options:n},function(t){return t?(n.callback&&n.callback(t),void r.loadError(t)):(r.stringRepresentation=e,r.saveState(),r.setInitialCollapsedBranches(),r.draw(),r.saveOriginalTree(),n.callback&&n.callback(),void r.loadCompleted())})}},{key:"pickup",value:function(e){return!!this.drawn&&(this.origx=this.offsetx,this.origy=this.offsety,0===e.button&&(this.pickedup=!0),this.startx=e.clientX,void(this.starty=e.clientY))}},{key:"redrawFromBranch",value:function(e){this.clearState(),this.resetTree(),this.originalTree.branchLengths[e.id]=e.branchLength,this.originalTree.parents[e.id]=e.parent,this.root=e,this.root.parent=!1,this.saveState(),this.draw(),this.subtreeDrawn(e.id)}},{key:"redrawOriginalTree",value:function(){this.load(this.stringRepresentation)}},{key:"storeNode",value:function(e){if(e.id&&""!==e.id||(e.id=u["default"].generateId()),this.branches[e.id]&&e!==this.branches[e.id]){if(e.leaf)throw new Error("Two nodes on this tree share the id "+e.id);e.id=u["default"].generateId()}this.branches[e.id]=e,e.leaf&&this.leaves.push(e)}},{key:"scroll",value:function(e){var t=this;if(e.preventDefault(),!(this._zooming||"wheelDelta"in e&&0===e.wheelDelta)){var n=e.detail<0||e.wheelDelta>0?1:-1;if(this.branchScaling&&(e.metaKey||e.ctrlKey))this.currentBranchScale*=Math.pow(this.branchScalingStep,n),this.setBranchScale(this.currentBranchScale,{x:e.offsetX,y:e.offsetY});else{var r=Math.log(this.zoom)/Math.log(10)+n*this.zoomFactor;this.setZoom(r,e.offsetX,e.offsetY)}this._zooming=!0,setTimeout(function(){t._zooming=!1},128)}}},{key:"selectNodes",value:function(e){var t,n,r,o=e;if(this.root){this.root.cascadeFlag("selected",!1),"string"==typeof e&&(o=o.split(","));for(n in this.branches)if(this.branches.hasOwnProperty(n))for(t=this.branches[n],r=0;r-2&&e<2){var r=this.zoom,o=Math.pow(10,e);this.zoom=o,this.offsetx=this.calculateZoomedOffset(this.offsetx,t,r,o),this.offsety=this.calculateZoomedOffset(this.offsety,n,r,o),this.draw()}}},{key:"calculateZoomedOffset",value:function(e,t,n,r){return-1*((-1*e+t)/n*r-t)}},{key:"setBranchScale",value:function(){var e=arguments.length<=0||void 0===arguments[0]?1:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{x:this.canvas.canvas.width/2,y:this.canvas.canvas.height/2}:arguments[1],n=d["default"][this.treeType];if(n.branchScalingAxis&&!(e<0)){var r=this.branchScalar;this.branchScalar=this.initialBranchScalar*e;var o=this.branchScalar/r,i=this["offset"+n.branchScalingAxis],a=t[n.branchScalingAxis],s=(t[n.branchScalingAxis]-i)*o+i;this["offset"+n.branchScalingAxis]+=a-s,this.draw()}}},{key:"toggleLabels",value:function(){this.showLabels=!this.showLabels,this.draw()}},{key:"setMaxLabelLength",value:function(){var e;void 0===this.maxLabelLength[this.treeType]&&(this.maxLabelLength[this.treeType]=0);for(var t=0;tthis.maxLabelLength[this.treeType]&&(this.maxLabelLength[this.treeType]=e.width)}},{key:"loadCompleted",value:function(){y(this.containerElement,"loaded")}},{key:"loadStarted",value:function(){y(this.containerElement,"loading")}},{key:"loadError",value:function(e){y(this.containerElement,"error",{error:e})}},{key:"subtreeDrawn",value:function(e){y(this.containerElement,"subtree",{node:e})}},{key:"nodesUpdated",value:function(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];y(this.containerElement,"updated",{nodeIds:e,property:t,append:n})}},{key:"addListener",value:function(e,t){b(this.containerElement,e,t)}},{key:"getBounds",value:function(){for(var e=this.root.startx,t=this.root.startx,n=this.root.starty,r=this.root.starty,o=this.leaves.length;o--;){var i=this.leaves[o].getBounds();e=Math.min(e,i.minx),t=Math.max(t,i.maxx),n=Math.min(n,i.miny),r=Math.max(r,i.maxy)}return[[e,n],[t,r]]}},{key:"fitInPanel",value:function(){var e=[this.canvas.canvas.width-2*this.padding,this.canvas.canvas.height-2*this.padding],t=this.getBounds(),n=[t[1][0]-t[0][0],t[1][1]-t[0][1]],r=x(this.canvas),o=e[0]/n[0],i=e[1]/n[1];this.zoom=Math.min(o,i),this.offsetx=-1*t[0][0]*this.zoom,this.offsety=-1*t[0][1]*this.zoom,o>i?(this.offsetx+=this.padding+(e[0]-n[0]*this.zoom)/2,this.offsety+=this.padding):(this.offsetx+=this.padding,this.offsety+=this.padding+(e[1]-n[1]*this.zoom)/2),this.offsetx=this.offsetx/r,this.offsety=this.offsety/r}},{key:"adjustForPixelRatio",value:function(){var e=x(this.canvas);this.canvas.canvas.style.height=this.canvas.canvas.height+"px",this.canvas.canvas.style.width=this.canvas.canvas.width+"px",e>1&&(this.canvas.canvas.width*=e,this.canvas.canvas.height*=e)}},{key:"treeTypeChanged",value:function(e,t){y(this.containerElement,"typechanged",{oldType:e,newType:t})}},{key:"resetTree",value:function(){if(this.originalTree.branches){this.branches=this.originalTree.branches;var e=!0,t=!1,n=void 0;try{for(var r,o=Object.keys(this.originalTree.branchLengths)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;this.branches[i].branchLength=this.originalTree.branchLengths[i],this.branches[i].parent=this.originalTree.parents[i]}}catch(a){t=!0,n=a}finally{try{!e&&o["return"]&&o["return"]()}finally{if(t)throw n}}this.leaves=this.originalTree.leaves,this.root=this.originalTree.root}}},{key:"rotateBranch",value:function(e){this.branches[e.id].rotate()}},{key:"extractNestedBranches",value:function(){this.branches={},this.leaves=[],this.storeNode(this.root),this.root.extractChildren()}},{key:"exportNwk",value:function(){var e=this.root.getNwk();return e.substr(0,e.lastIndexOf(")")+1)+";"}},{key:"resizeToContainer",value:function(){this.setSize(this.containerElement.offsetWidth,this.containerElement.offsetHeight)}},{key:"alignLabels",get:function(){return this.showLabels&&this.labelAlign&&this.labelAlignEnabled},set:function(e){this.labelAlignEnabled=e}}]),e}();t["default"]=w,w.prototype.on=w.prototype.addListener},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.events=t.dom=t.constants=t.canvas=void 0;var o=n(3),i=r(o),a=n(6),s=r(a),l=n(4),u=r(l),c=n(5),f=r(c);t.canvas=i,t.constants=s,t.dom=u,t.events=f},function(e,t,n){"use strict";function r(e){return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1}function o(e){return(window.devicePixelRatio||1)/r(e)}function i(e,t){var n=o(t.canvas);return[(e.offsetX-t.offsetx)/t.zoom*n,(e.offsetY-t.offsety)/t.zoom*n]}function a(e,t){var n=e.x,r=e.y,i=o(t.canvas);return{x:n?(n-t.offsetx)/t.zoom*i:null,y:r?(r-t.offsety)/t.zoom*i:null}}function s(e,t){var n=e.x,r=e.y,i=o(t.canvas);return{x:n?n/i*t.zoom+t.offsetx:null,y:r?r/i*t.zoom+t.offsety:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.getBackingStorePixelRatio=r,t.getPixelRatio=o,t.translateClick=i,t.translatePoint=a,t.undoPointTranslation=s;n(4)},function(e,t,n){"use strict";function r(e){var t=arguments.length<=1||void 0===arguments[1]?"text/plain;charset=utf-8":arguments[1],n=new Blob([e],{type:t});return f.createObjectURL(n)}function o(e,t){var n=document.createElement("a"),r="undefined"!=typeof n.download;n.href=e,n.target="_blank",r&&(n.download=t),(0,c.fireEvent)(n,"click"),r&&f.revokeObjectURL(n.href)}function i(e){for(var t=0;e;)t+=e.offsetLeft,e=e.offsetParent;return t}function a(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function s(e,t){var n=e.className.split(" ");n.indexOf(t)===-1&&(n.push(t),e.className=n.join(" "))}function l(e,t){var n=e.className.split(" "),r=n.indexOf(t);r!==-1&&(n.splice(r,1),e.className=n.join(" "))}function u(e,t){var n=e.className.split(" "),r=n.indexOf(t);return r!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.createBlobUrl=r,t.setupDownloadLink=o,t.getX=i,t.getY=a,t.addClass=s,t.removeClass=l,t.hasClass=u;var c=n(5),f=window.URL||window.webkitURL},function(e,t){"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function r(e){return e.preventDefault(),!1}function o(e,t){var n,r,o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=document.createEventObject(),n.eventType=t),n.eventName=t;for(r in o)o.hasOwnProperty(r)&&(n[r]=o[r]);document.createEvent?e.dispatchEvent(n):e.fireEvent("on"+n.eventType,n)}function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,function(){return n.call(e,window.event)})}function a(e){e.stopPropagation(),e.preventDefault()}function s(e,t){var r;return r=("undefined"==typeof t?"undefined":n(t))===n("aaa")?function(n){if(e[t])return e[t](n)}:function(){return t(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.preventDefault=r,t.fireEvent=o,t.addEvent=i,t.killEvent=a,t.createHandler=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Angles={FORTYFIVE:Math.PI/4,QUARTER:Math.PI/2,HALF:Math.PI,FULL:2*Math.PI},t.Shapes={x:"star",s:"square",o:"circle",t:"triangle"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;nthis.minx&&tthis.miny)return this;for(n=this.children.length-1;n>=0;n--)if(r=this.children[n].clicked(e,t))return r}}},{key:"drawLabel",value:function(){var e=this.getTextSize(),t=this.getLabel();this.canvas.font=this.getFontString(),this.labelWidth=this.canvas.measureText(t).width,void 0===this.tree.maxLabelLength[this.tree.treeType]&&(this.tree.maxLabelLength[this.tree.treeType]=0),this.labelWidth>this.tree.maxLabelLength[this.tree.treeType]&&(this.tree.maxLabelLength[this.tree.treeType]=this.labelWidth);var n=this.getLabelStartX();this.tree.alignLabels&&(n+=Math.abs(this.tree.labelAlign.getLabelOffset(this))),this.angle>u.QUARTER&&this.angleu.QUARTER&&this.anglethis.tree.maxBranchLength&&(this.tree.maxBranchLength=this.totalBranchLength)):(this.totalBranchLength=this.branchLength,this.tree.maxBranchLength=this.totalBranchLength),e=0;ethis.getDiameter()}},{key:"getLabelStartX",value:function(){var e=this.getLeafStyle(),t=e.lineWidth,n=this.hasLabelConnector(),r=this.getDiameter();return this.isHighlighted&&!n&&(r+=this.getHighlightSize()-this.getRadius()),this.isHighlighted||n||(r+=t/2),r+Math.min(this.tree.labelPadding,this.tree.labelPadding/this.tree.zoom)}},{key:"getHighlightLineWidth",value:function(){return this.tree.highlightWidth/this.tree.zoom}},{key:"getHighlightRadius",value:function(){var e=this.getHighlightLineWidth()*this.tree.highlightSize;return e+=this.getLeafStyle().lineWidth/this.tree.highlightSize,this.leaf?this.getRadius()+e:.666*e}},{key:"getHighlightSize",value:function(){return this.getHighlightRadius()+this.getHighlightLineWidth()}},{key:"rotate",value:function(e){for(var t=[],n=this.children.length;n--;)t.push(this.children[n]);this.children=t,e.preventredraw||(this.tree.extractNestedBranches(),this.tree.draw(!0))}},{key:"getChildNo",value:function(){return this.parent.children.indexOf(this)}},{key:"setDisplay",value:function(e){var t=e.colour,n=e.shape,r=e.size,o=e.leafStyle,i=e.labelStyle;t&&(this.colour=t),n&&(this.nodeShape=c[n]?c[n]:n),r&&(this.radius=r),o&&(this.leafStyle=o),i&&(this.labelStyle=i)}},{key:"getTotalLength",value:function(){var e=this.getRadius();return(this.tree.showLabels||this.tree.hoverLabel&&this.isHighlighted)&&(e+=this.getLabelStartX()+this.getLabelSize()),e}},{key:"getBounds",value:function(){var e=this.tree,t=e.alignLabels?e.labelAlign.getX(this):this.centerx,n=e.alignLabels?e.labelAlign.getY(this):this.centery,r=this.getRadius(),o=this.getTotalLength(),i=void 0,a=void 0,s=void 0,l=void 0;return this.angle>u.QUARTER&&this.angle0&&r!==o&&e.stroke(),e.restore()}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=i.constants.Angles,s=function(e){return e*Math.sqrt(2)};t["default"]={circle:function(e,t,n){var i=Math.pow(s(t),2),l=Math.sqrt(i/Math.PI);r(e,t-l),e.beginPath(),e.arc(t,0,l,0,a.FULL,!1),e.closePath(),o(e,n)},square:function(e,t,n){var i=s(t),a=t-i/2;r(e,a),e.beginPath(),e.moveTo(a,0),e.lineTo(a,i/2),e.lineTo(a+i,i/2),e.lineTo(a+i,-i/2),e.lineTo(a,-i/2),e.lineTo(a,0),e.closePath(),o(e,n)},star:function(e,t,n){var i=t,a=0,s=5,l=t,u=.5*l,c=Math.PI/s;r(e,l-u);var f=Math.PI/2*3;e.beginPath(),e.moveTo(i,a-l);for(var p=0;p0?e.leaves[n-1].centery+t:0,e.leaves[n].centerx=e.leaves[n].totalBranchLength*e.branchScalar,e.leaves[n].centerx>e.farthestNodeFromRootX&&(e.farthestNodeFromRootX=e.leaves[n].centerx),e.leaves[n].centery>e.farthestNodeFromRootY&&(e.farthestNodeFromRootY=e.leaves[n].centery);for(var r=e.leaves[n];r.parent;r=r.parent){var o=r.parent.children;r.parent.centery=(o[0].centery+o[o.length-1].centery)/2}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=r(o),a=n(14),s=r(a),l=n(18),u=r(l),c=n(19),f=r(c),p={getX:function(e){return e.centerx+e.labelOffsetX+e.getDiameter()*Math.cos(e.angle)},getY:function(e){return e.centery+e.labelOffsetY+e.getDiameter()*Math.sin(e.angle)},getLabelOffset:function(e){return e.labelOffsetX/Math.cos(e.angle)}};t["default"]={branchRenderer:new i["default"](u["default"]),prerenderer:new s["default"](f["default"]),labelAlign:p,scaleCollapsedNode:function(e){return e/3},calculateFontSize:function(e){return Math.min(10*e+4,40)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={draw:function(e,t){var n=t.totalBranchLength*e.branchScalar;t.canvas.beginPath(),t.canvas.moveTo(t.startx,t.starty),t.canvas.lineTo(t.centerx,t.centery),t.canvas.stroke(),t.canvas.closePath(),t.canvas.strokeStyle=t.getColour(),t.children.length>1&&!t.collapsed&&(t.canvas.beginPath(),t.canvas.arc(0,0,n,t.minChildAngle,t.maxChildAngle,t.maxChildAnglen?n=e.branchScalar*e.maxBranchLength:e.branchScalar=n/e.maxBranchLength;for(var r=0;r0?e.leaves[n-1].centery+t:0,e.leaves[n].angle=0;for(var r=e.leaves[n];r.parent&&r.getChildNo()===r.parent.children.length-1;r=r.parent){r.parent.centery=r.parent.getChildYTotal()/r.parent.getChildCount(),r.parent.centerx=r.parent.children[0].centerx+(r.parent.children[0].centery-r.parent.centery)*Math.tan(o.FORTYFIVE);for(var i=0;i0?e.leaves[n-1].centerx+t:0,e.leaves[n].centery=e.leaves[n].totalBranchLength*e.branchScalar;for(var r=e.leaves[n];r.parent&&(0===r.getChildNo()&&(r.parent.centerx=r.centerx),r.getChildNo()===r.parent.children.length-1);r=r.parent){r.parent.angle=o.QUARTER,r.parent.centerx=(r.parent.centerx+r.centerx)/2,r.parent.centery=r.parent.totalBranchLength*e.branchScalar;for(var i=0;ie.farthestNodeFromRootX&&(e.farthestNodeFromRootX=e.leaves[n].centerx),e.leaves[n].centery>e.farthestNodeFromRootY&&(e.farthestNodeFromRootY=e.leaves[n].centery)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),i=r(o),a=n(31),s=r(a),l=n(32),u=r(l);t["default"]={nexus:new i["default"](u["default"]),newick:new i["default"](s["default"])}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n0?!function(){n.setState({loadStatus:"loading"});var r={database:n.config.dataset,table:a.fetchTableName,columns:f,query:i,transpose:!1};t.request(function(e){return k["default"].get("pageQuery"+JSON.stringify(r),function(e){return A["default"].pageQuery(o({cancellation:e},r))},e)}).then(function(t){n.setState((0,p["default"])(L.allDimensions,function(n,r){return n[r]=t[e[r]]||null,n},{loadStatus:"loaded"}))})["catch"](function(t){(0,D["default"])(n.getFlux(),t.message,function(){return n.fetchData(e)}),n.setState({loadStatus:"error"})})}():this.setState((0,p["default"])(L.allDimensions,function(e,t){return e[t]=null,e},{loadStatus:"loaded"}))},render:function(){var e=this.props.plotType,t=this.state.loadStatus;return a["default"].createElement("div",{className:"plot-container"},e?a["default"].createElement(d["default"],o({className:"plot",plotType:e},this.state)):null,a["default"].createElement(C["default"],{status:t}))}});e.exports=j},function(e,t,n){function r(e,t){var n=s(e)?o:a;return n(e,i(t,3))}var o=n(916),i=n(723),a=n(1177),s=n(637);e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return o(e,function(e,o,i){r[++n]=t(e,o,i)}),r}var o=n(718),i=n(705);e.exports=r},function(e,t,n){function r(e,t,n){var r=l(e)?o:s,u=arguments.length<3;return r(e,a(t,4),n,u,i)}var o=n(817),i=n(718),a=n(723),s=n(1179),l=n(637);e.exports=r},function(e,t){function n(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t=n-1)for(var p=a.length-1,d=e-t[n-1],h=0;h=n-1)for(var c=i.length-1,f=(e-t[n-1],0);f=0;--n)if(e[--t])return!1;return!0},u.jump=function(e){var t=this.lastT(),n=this.dimension;if(!(e0;--f)o.push(r(l[f-1],u[f-1],arguments[f])),i.push(0)}},u.push=function(e){var t=this.lastT(),n=this.dimension;if(!(e1e-6?1/s:0;this._time.push(e);for(var p=n;p>0;--p){var h=r(u[p-1],c[p-1],arguments[p]);o.push(h),i.push((h-o[a++])*f)}}},u.set=function(e){var t=this.dimension;if(!(e0;--l)n.push(r(a[l-1],s[l-1],arguments[l])),o.push(0)}},u.move=function(e){var t=this.lastT(),n=this.dimension;if(!(e<=t||arguments.length!==n+1)){var o=this._state,i=this._velocity,a=o.length-this.dimension,s=this.bounds,l=s[0],u=s[1],c=e-t,f=c>1e-6?1/c:0;this._time.push(e);for(var p=n;p>0;--p){var h=arguments[p];o.push(r(l[p-1],u[p-1],o[a++]+h)),i.push(h*f)}}},u.idle=function(e){var t=this.lastT();if(!(e=0;--f)o.push(r(l[f],u[f],o[a]+c*i[a])),i.push(0),a+=1}}},{"binary-search-bounds":21,"cubic-hermite":22}],21:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){var a=["function ",e,"(a,l,h,",r.join(","),"){",i?"":"var i=",n?"l-1":"h+1",";while(l<=h){\tvar m=(l+h)>>>1,x=a",o?".get(m)":"[m]"];return i?t.indexOf("c")<0?a.push(";if(x===y){return m}else if(x<=y){"):a.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):a.push(";if(",t,"){i=m;"),n?a.push("l=m+1}else{h=m-1}"):a.push("h=m-1}else{l=m+1}"),a.push("}"),i?a.push("return -1};"):a.push("return i};"),a.join("")}function o(e,t,n,o){var i=new Function([r("A","x"+e+"y",t,["y"],!1,o),r("B","x"+e+"y",t,["y"],!0,o),r("P","c(x,y)"+e+"0",t,["y","c"],!1,o),r("Q","c(x,y)"+e+"0",t,["y","c"],!0,o),"function dispatchBsearch",n,"(a,y,c,l,h){\tif(a.shape){\tif(typeof(c)==='function'){\treturn Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)\t}else{\treturn B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)\t}}else{\tif(typeof(c)==='function'){\treturn P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)\t}else{\treturn A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)\t}}}\treturn dispatchBsearch",n].join(""));return i()}t.exports={ge:o(">=",!1,"GE"),gt:o(">",!1,"GT"),lt:o("<",!0,"LT"),le:o("<=",!0,"LE"),eq:o("-",!0,"EQ",!0)}},{}],22:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){var a=6*o*o-6*o,s=3*o*o-4*o+1,l=-6*o*o+6*o,u=3*o*o-2*o;if(e.length){i||(i=new Array(e.length));for(var c=e.length-1;c>=0;--c)i[c]=a*e[c]+s*t[c]+l*n[c]+u*r[c];return i}return a*e+s*t+l*n[c]+u*r}function o(e,t,n,r,o,i){var a=o-1,s=o*o,l=a*a,u=(1+2*o)*l,c=o*l,f=s*(3-2*o),p=s*a;if(e.length){i||(i=new Array(e.length));for(var h=e.length-1;h>=0;--h)i[h]=u*e[h]+c*t[h]+f*n[h]+p*r[h];return i}return u*e+c*t+f*n+p*r}t.exports=o,t.exports.derivative=r},{}],23:[function(e,t,n){function r(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],s=n[1],l=n[2];return e[0]=o*l-i*s,e[1]=i*a-r*l,e[2]=r*s-o*a,e}t.exports=r},{}],24:[function(e,t,n){function r(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}t.exports=r},{}],25:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}t.exports=r},{}],26:[function(e,t,n){function r(e,t,n,r){var o=t[0],i=t[1],a=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e}t.exports=r},{}],27:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],o=t[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}t.exports=r},{}],28:[function(e,t,n){"use strict";function r(e){this._components=e.slice(),this._time=[0],this.prevMatrix=e.slice(),this.nextMatrix=e.slice(),this.computedMatrix=e.slice(),this.computedInverse=e.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-(1/0),1/0]}function o(e){e=e||{};var t=e.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new r(t)}var i=e("binary-search-bounds"),a=e("mat4-interpolate"),s=e("gl-mat4/invert"),l=e("gl-mat4/rotateX"),u=e("gl-mat4/rotateY"),c=e("gl-mat4/rotateZ"),f=e("gl-mat4/lookAt"),p=e("gl-mat4/translate"),h=(e("gl-mat4/scale"),e("gl-vec3/normalize")),d=[0,0,0];t.exports=o;var m=r.prototype;m.recalcMatrix=function(e){var t=this._time,n=i.le(t,e),r=this.computedMatrix;if(!(n<0)){var o=this._components;if(n===t.length-1)for(var l=16*n,u=0;u<16;++u)r[u]=o[l++];else{for(var c=t[n+1]-t[n],l=16*n,f=this.prevMatrix,p=!0,u=0;u<16;++u)f[u]=o[l++];for(var d=this.nextMatrix,u=0;u<16;++u)d[u]=o[l++],p=p&&f[u]===d[u];if(c<1e-6||p)for(var u=0;u<16;++u)r[u]=f[u];else a(r,f,d,(e-t[n])/c)}var m=this.computedUp;m[0]=r[1],m[1]=r[5],m[2]=r[6],h(m,m);var v=this.computedInverse;s(v,r);var g=this.computedEye,y=v[15];g[0]=v[12]/y,g[1]=v[13]/y,g[2]=v[14]/y;for(var b=this.computedCenter,x=Math.exp(this.computedRadius[0]),u=0;u<3;++u)b[u]=g[u]-r[2+4*u]*x}},m.idle=function(e){if(!(ev[1][2]&&(b[0]=-b[0]),v[0][2]>v[2][0]&&(b[1]=-b[1]),v[1][0]>v[0][1]&&(b[2]=-b[2]),!0}},{"./normalize":32,"gl-mat4/clone":131,"gl-mat4/create":132,"gl-mat4/determinant":133,"gl-mat4/invert":137,"gl-mat4/transpose":147,"gl-vec3/cross":23,"gl-vec3/dot":24,"gl-vec3/length":25,"gl-vec3/normalize":27}],32:[function(e,t,n){t.exports=function(e,t){var n=t[15];if(0===n)return!1;for(var r=1/n,o=0;o<16;o++)e[o]=t[o]*r;return!0}},{}],33:[function(e,t,n){var r={identity:e("gl-mat4/identity"),translate:e("gl-mat4/translate"),multiply:e("gl-mat4/multiply"),create:e("gl-mat4/create"),scale:e("gl-mat4/scale"),fromRotationTranslation:e("gl-mat4/fromRotationTranslation")},o=(r.create(),r.create());t.exports=function(e,t,n,i,a,s){return r.identity(e),r.fromRotationTranslation(e,s,t),e[3]=a[0],e[7]=a[1],e[11]=a[2],e[15]=a[3],r.identity(o),0!==i[2]&&(o[9]=i[2],r.multiply(e,e,o)),0!==i[1]&&(o[9]=0,o[8]=i[1],r.multiply(e,e,o)),0!==i[0]&&(o[8]=0,o[4]=i[0],r.multiply(e,e,o)),r.scale(e,e,n),e}},{"gl-mat4/create":132,"gl-mat4/fromRotationTranslation":135,"gl-mat4/identity":136,"gl-mat4/multiply":139,"gl-mat4/scale":145,"gl-mat4/translate":146}],34:[function(e,t,n){t.exports=e("gl-quat/slerp")},{"gl-quat/slerp":35}],35:[function(e,t,n){function r(e,t,n,r){var o,i,a,s,l,u=t[0],c=t[1],f=t[2],p=t[3],h=n[0],d=n[1],m=n[2],v=n[3];return i=u*h+c*d+f*m+p*v,i<0&&(i=-i,h=-h,d=-d,m=-m,v=-v),1-i>1e-6?(o=Math.acos(i),a=Math.sin(o),s=Math.sin((1-r)*o)/a,l=Math.sin(r*o)/a):(s=1-r,l=r),e[0]=s*u+l*h,e[1]=s*c+l*d,e[2]=s*f+l*m,e[3]=s*p+l*v,e}t.exports=r},{}],36:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,l,u){var c=t+i+u;if(f>0){var f=Math.sqrt(c+1);e[0]=.5*(a-l)/f,e[1]=.5*(s-r)/f,e[2]=.5*(n-i)/f,e[3]=.5*f}else{var p=Math.max(t,i,u),f=Math.sqrt(2*p-c+1);t>=p?(e[0]=.5*f,e[1]=.5*(o+n)/f,e[2]=.5*(s+r)/f,e[3]=.5*(a-l)/f):i>=p?(e[0]=.5*(n+o)/f,e[1]=.5*f,e[2]=.5*(l+a)/f,e[3]=.5*(s-r)/f):(e[0]=.5*(r+s)/f,e[1]=.5*(a+l)/f,e[2]=.5*f,e[3]=.5*(n-o)/f)}return e}t.exports=r},{}],37:[function(e,t,n){"use strict";function r(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function o(e,t,n,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2)+Math.pow(r,2))}function i(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],s=o(n,r,i,a);s>1e-6?(e[0]=n/s,e[1]=r/s,e[2]=i/s,e[3]=a/s):(e[0]=e[1]=e[2]=0,e[3]=1)}function a(e,t,n){this.radius=l([n]),this.center=l(t),this.rotation=l(e),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}function s(e){e=e||{};var t=e.center||[0,0,0],n=e.rotation||[0,0,0,1],r=e.radius||1;t=[].slice.call(t,0,3),n=[].slice.call(n,0,4),i(n,n);var o=new a(n,t,Math.log(r));return o.setDistanceLimits(e.zoomMin,e.zoomMax),("eye"in e||"up"in e)&&o.lookAt(0,e.eye,e.center,e.up),o}t.exports=s;var l=e("filtered-vector"),u=e("gl-mat4/lookAt"),c=e("gl-mat4/fromQuat"),f=e("gl-mat4/invert"),p=e("./lib/quatFromFrame"),h=a.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(e){this.radius.curve(e),this.center.curve(e),this.rotation.curve(e);var t=this.computedRotation;i(t,t);var n=this.computedMatrix;c(n,t);var r=this.computedCenter,o=this.computedEye,a=this.computedUp,s=Math.exp(this.computedRadius[0]);o[0]=r[0]+s*n[2],o[1]=r[1]+s*n[6],o[2]=r[2]+s*n[10],a[0]=n[1],a[1]=n[5],a[2]=n[9];for(var l=0;l<3;++l){for(var u=0,f=0;f<3;++f)u+=n[l+4*f]*o[f];n[12+l]=-u}},h.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n},h.idle=function(e){this.center.idle(e),this.radius.idle(e),this.rotation.idle(e)},h.flush=function(e){this.center.flush(e),this.radius.flush(e),this.rotation.flush(e)},h.pan=function(e,t,n,o){t=t||0,n=n||0,o=o||0,this.recalcMatrix(e);var i=this.computedMatrix,a=i[1],s=i[5],l=i[9],u=r(a,s,l);a/=u,s/=u,l/=u;var c=i[0],f=i[4],p=i[8],h=c*a+f*s+p*l;c-=a*h,f-=s*h,p-=l*h;var d=r(c,f,p);c/=d,f/=d,p/=d;var m=i[2],v=i[6],g=i[10],y=m*a+v*s+g*l,b=m*c+v*f+g*p;m-=y*a+b*c,v-=y*s+b*f,g-=y*l+b*p;var x=r(m,v,g);m/=x,v/=x,g/=x;var _=c*t+a*n,w=f*t+s*n,T=p*t+l*n;this.center.move(e,_,w,T);var C=Math.exp(this.computedRadius[0]);C=Math.max(1e-4,C+o),this.radius.set(e,Math.log(C))},h.rotate=function(e,t,n,i){this.recalcMatrix(e),t=t||0,n=n||0;var a=this.computedMatrix,s=a[0],l=a[4],u=a[8],c=a[1],f=a[5],p=a[9],h=a[2],d=a[6],m=a[10],v=t*s+n*c,g=t*l+n*f,y=t*u+n*p,b=-(d*y-m*g),x=-(m*v-h*y),_=-(h*g-d*v),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),T=o(b,x,_,w);T>1e-6?(b/=T,x/=T,_/=T,w/=T):(b=x=_=0,w=1);var C=this.computedRotation,E=C[0],k=C[1],S=C[2],A=C[3],P=E*w+A*b+k*_-S*x,M=k*w+A*x+S*b-E*_,O=S*w+A*_+E*x-k*b,D=A*w-E*b-k*x-S*_;if(i){b=h,x=d,_=m;var L=Math.sin(i)/r(b,x,_);b*=L,x*=L,_*=L,w=Math.cos(t),P=P*w+D*b+M*_-O*x,M=M*w+D*x+O*b-P*_,O=O*w+D*_+P*x-M*b,D=D*w-P*b-M*x-O*_}var j=o(P,M,O,D);j>1e-6?(P/=j,M/=j,O/=j,D/=j):(P=M=O=0,D=1),this.rotation.set(e,P,M,O,D)},h.lookAt=function(e,t,n,r){this.recalcMatrix(e),n=n||this.computedCenter,t=t||this.computedEye,r=r||this.computedUp;var o=this.computedMatrix;u(o,t,n,r);var a=this.computedRotation;p(a,o[0],o[1],o[2],o[4],o[5],o[6],o[8],o[9],o[10]),i(a,a),this.rotation.set(e,a[0],a[1],a[2],a[3]);for(var s=0,l=0;l<3;++l)s+=Math.pow(n[l]-t[l],2);this.radius.set(e,.5*Math.log(Math.max(s,1e-6))),this.center.set(e,n[0],n[1],n[2])},h.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},h.setMatrix=function(e,t){var n=this.computedRotation;p(n,t[0],t[1],t[2],t[4],t[5],t[6],t[8],t[9],t[10]),i(n,n),this.rotation.set(e,n[0],n[1],n[2],n[3]);var r=this.computedMatrix;f(r,t);var o=r[15];if(Math.abs(o)>1e-6){var a=r[12]/o,s=r[13]/o,l=r[14]/o;this.recalcMatrix(e);var u=Math.exp(this.computedRadius[0]);this.center.set(e,a-r[2]*u,s-r[6]*u,l-r[10]*u),this.radius.idle(e)}else this.center.idle(e),this.radius.idle(e)},h.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},h.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-(1/0),t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},h.getDistanceLimits=function(e){var t=this.radius.bounds;return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(e){var t=this.lastT(),n=e.center;n&&this.center.set(t,n[0],n[1],n[2]);var r=e.rotation;r&&this.rotation.set(t,r[0],r[1],r[2],r[3]);var o=e.distance;o&&o>0&&this.radius.set(t,Math.log(o)),this.setDistanceLimits(e.zoomMin,e.zoomMax)}},{"./lib/quatFromFrame":36,"filtered-vector":20,"gl-mat4/fromQuat":134,"gl-mat4/invert":137,"gl-mat4/lookAt":138}],38:[function(e,t,n){"use strict";function r(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function o(e){return Math.min(1,Math.max(-1,e))}function i(e){var t=Math.abs(e[0]),n=Math.abs(e[1]),r=Math.abs(e[2]),o=[0,0,0];t>Math.max(n,r)?o[2]=1:n>Math.max(t,r)?o[0]=1:o[1]=1;for(var i=0,a=0,s=0;s<3;++s)i+=e[s]*e[s],a+=o[s]*e[s];for(var s=0;s<3;++s)o[s]-=a/i*e[s];return p(o,o),o}function a(e,t,n,r,o,i,a,s){this.center=l(n),this.up=l(r),this.right=l(o),this.radius=l([i]),this.angle=l([a,s]),this.angle.bounds=[[-(1/0),-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(e,t),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var u=0;u<16;++u)this.computedMatrix[u]=.5;this.recalcMatrix(0)}function s(e){e=e||{};var t=e.center||[0,0,0],n=e.up||[0,1,0],o=e.right||i(n),s=e.radius||1,l=e.theta||0,u=e.phi||0;if(t=[].slice.call(t,0,3),n=[].slice.call(n,0,3),p(n,n),o=[].slice.call(o,0,3),p(o,o),"eye"in e){var c=e.eye,d=[c[0]-t[0],c[1]-t[1],c[2]-t[2]];f(o,d,n),r(o[0],o[1],o[2])<1e-6?o=i(n):p(o,o),s=r(d[0],d[1],d[2]);var m=h(n,d)/s,v=h(o,d)/s;u=Math.acos(m),l=Math.acos(v)}return s=Math.log(s),new a(e.zoomMin,e.zoomMax,t,n,o,s,l,u)}t.exports=s;var l=e("filtered-vector"),u=e("gl-mat4/invert"),c=e("gl-mat4/rotate"),f=e("gl-vec3/cross"),p=e("gl-vec3/normalize"),h=e("gl-vec3/dot"),d=a.prototype;d.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-(1/0),t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},d.getDistanceLimits=function(e){var t=this.radius.bounds[0];return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},d.recalcMatrix=function(e){this.center.curve(e),this.up.curve(e),this.right.curve(e),this.radius.curve(e),this.angle.curve(e);for(var t=this.computedUp,n=this.computedRight,o=0,i=0,a=0;a<3;++a)i+=t[a]*n[a],o+=t[a]*t[a];for(var s=Math.sqrt(o),l=0,a=0;a<3;++a)n[a]-=t[a]*i/o,l+=n[a]*n[a],t[a]/=s;for(var u=Math.sqrt(l),a=0;a<3;++a)n[a]/=u;var c=this.computedToward;f(c,t,n),p(c,c);for(var h=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],m=this.computedAngle[1],v=Math.cos(d),g=Math.sin(d),y=Math.cos(m),b=Math.sin(m),x=this.computedCenter,_=v*y,w=g*y,T=b,C=-v*b,E=-g*b,k=y,S=this.computedEye,A=this.computedMatrix,a=0;a<3;++a){var P=_*n[a]+w*c[a]+T*t[a];A[4*a+1]=C*n[a]+E*c[a]+k*t[a],A[4*a+2]=P,A[4*a+3]=0}var M=A[1],O=A[5],D=A[9],L=A[2],j=A[6],R=A[10],F=O*R-D*j,I=D*L-M*R,N=M*j-O*L,B=r(F,I,N);F/=B,I/=B,N/=B,A[0]=F,A[4]=I,A[8]=N;for(var a=0;a<3;++a)S[a]=x[a]+A[2+4*a]*h;for(var a=0;a<3;++a){for(var l=0,z=0;z<3;++z)l+=A[a+4*z]*S[z];A[12+a]=-l}A[15]=1},d.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n};var m=[0,0,0];d.rotate=function(e,t,n,r){if(this.angle.move(e,t,n),r){this.recalcMatrix(e);var o=this.computedMatrix;m[0]=o[2],m[1]=o[6],m[2]=o[10];for(var i=this.computedUp,a=this.computedRight,s=this.computedToward,l=0;l<3;++l)o[4*l]=i[l],o[4*l+1]=a[l],o[4*l+2]=s[l];c(o,o,r,m);for(var l=0;l<3;++l)i[l]=o[4*l],a[l]=o[4*l+1];this.up.set(e,i[0],i[1],i[2]),this.right.set(e,a[0],a[1],a[2])}},d.pan=function(e,t,n,o){t=t||0,n=n||0,o=o||0,this.recalcMatrix(e);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),s=i[5],l=i[9],u=r(a,s,l);a/=u,s/=u,l/=u;var c=i[0],f=i[4],p=i[8],h=c*a+f*s+p*l;c-=a*h,f-=s*h,p-=l*h;var d=r(c,f,p);c/=d,f/=d,p/=d;var m=c*t+a*n,v=f*t+s*n,g=p*t+l*n;this.center.move(e,m,v,g);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+o),this.radius.set(e,Math.log(y))},d.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},d.setMatrix=function(e,t,n,i){var a=1;"number"==typeof n&&(a=0|n),(a<0||a>3)&&(a=1);var s=(a+2)%3;t||(this.recalcMatrix(e),t=this.computedMatrix);var l=t[a],c=t[a+4],f=t[a+8];if(i){var p=Math.abs(l),h=Math.abs(c),d=Math.abs(f),m=Math.max(p,h,d);p===m?(l=l<0?-1:1,c=f=0):d===m?(f=f<0?-1:1,l=c=0):(c=c<0?-1:1,l=f=0)}else{var v=r(l,c,f);l/=v,c/=v,f/=v}var g=t[s],y=t[s+4],b=t[s+8],x=g*l+y*c+b*f;g-=l*x,y-=c*x,b-=f*x;var _=r(g,y,b);g/=_,y/=_,b/=_;var w=c*b-f*y,T=f*g-l*b,C=l*y-c*g,E=r(w,T,C);w/=E,T/=E,C/=E,this.center.jump(e,q,V,G),this.radius.idle(e),this.up.jump(e,l,c,f),this.right.jump(e,g,y,b);var k,S;if(2===a){var A=t[1],P=t[5],M=t[9],O=A*g+P*y+M*b,D=A*w+P*T+M*C;k=F<0?-Math.PI/2:Math.PI/2,S=Math.atan2(D,O)}else{var L=t[2],j=t[6],R=t[10],F=L*l+j*c+R*f,I=L*g+j*y+R*b,N=L*w+j*T+R*C;k=Math.asin(o(F)),S=Math.atan2(N,I)}this.angle.jump(e,S,k),this.recalcMatrix(e);var B=t[2],z=t[6],U=t[10],W=this.computedMatrix;u(W,t);var H=W[15],q=W[12]/H,V=W[13]/H,G=W[14]/H,Y=Math.exp(this.computedRadius[0]);this.center.jump(e,q-B*Y,V-z*Y,G-U*Y)},d.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},d.idle=function(e){this.center.idle(e),this.up.idle(e),this.right.idle(e),this.radius.idle(e),this.angle.idle(e)},d.flush=function(e){this.center.flush(e),this.up.flush(e),this.right.flush(e),this.radius.flush(e),this.angle.flush(e)},d.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},d.lookAt=function(e,t,n,i){this.recalcMatrix(e),t=t||this.computedEye,n=n||this.computedCenter,i=i||this.computedUp;var a=i[0],s=i[1],l=i[2],u=r(a,s,l);if(!(u<1e-6)){a/=u,s/=u,l/=u;var c=t[0]-n[0],f=t[1]-n[1],p=t[2]-n[2],h=r(c,f,p);if(!(h<1e-6)){c/=h,f/=h,p/=h;var d=this.computedRight,m=d[0],v=d[1],g=d[2],y=a*m+s*v+l*g;m-=y*a,v-=y*s,g-=y*l;var b=r(m,v,g);if(!(b<.01&&(m=s*p-l*f,v=l*c-a*p,g=a*f-s*c,b=r(m,v,g),b<1e-6))){m/=b,v/=b,g/=b,this.up.set(e,a,s,l),this.right.set(e,m,v,g),this.center.set(e,n[0],n[1],n[2]),this.radius.set(e,Math.log(h));var x=s*g-l*v,_=l*m-a*g,w=a*v-s*m,T=r(x,_,w);x/=T,_/=T,w/=T;var C=a*c+s*f+l*p,E=m*c+v*f+g*p,k=x*c+_*f+w*p,S=Math.asin(o(C)),A=Math.atan2(k,E),P=this.angle._state,M=P[P.length-1],O=P[P.length-2];M%=2*Math.PI;var D=Math.abs(M+2*Math.PI-A),L=Math.abs(M-A),j=Math.abs(M-2*Math.PI-A);D0){var u=e[n-1];if(0===o(s,u)&&a(u)!==l){n-=1;continue}}e[n++]=s}}return e.length=n,e}var o=e("compare-cell"),i=e("compare-oriented-cell"),a=e("cell-orientation");t.exports=r},{"cell-orientation":46,"compare-cell":101,"compare-oriented-cell":47}],49:[function(e,t,n){"use strict";var r=function(){function e(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e}function t(e,t,n){for(var r=(t-e)/Math.max(n-1,1),o=[],i=0;i>16&255,n[1]=r>>8&255,n[2]=255&r):f.test(e)&&(r=e.match(p),n[0]=parseInt(r[1]),n[1]=parseInt(r[2]),n[2]=parseInt(r[3])),!t)for(var o=0;o<3;++o)n[o]=n[o]/255;return n}function u(e,t){var n,r;if("string"!=typeof e)return e;if(n=[],"#"===e[0]?(e=e.substr(1),3===e.length&&(e+=e),r=parseInt(e,16),n[0]=r>>16&255,n[1]=r>>8&255,n[2]=255&r):f.test(e)&&(r=e.match(p),n[0]=parseInt(r[1]),n[1]=parseInt(r[2]),n[2]=parseInt(r[3]),r[4]?n[3]=parseFloat(r[4]):n[3]=1),!t)for(var o=0;o<3;++o)n[o]=n[o]/255;return n}var c={},f=/^rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*(,.*)?\)$/,p=/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(.*)?\)$/;return c.isPlainObject=e,c.linspace=t,c.zip3=r,c.sum=o,c.zip=n,c.isEqual=s,c.copy2D=i,c.copy1D=a,c.str2RgbArray=l,c.str2RgbaArray=u,c};t.exports=r()},{}],50:[function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return e&=-e,e&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}var o=32;n.INT_BITS=o,n.INT_MAX=2147483647,n.INT_MIN=-1<0)-(e<0)},n.abs=function(e){var t=e>>o-1;return(e^t)-t},n.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,n=(e>255)<<3,e>>>=n,t|=n,n=(e>15)<<2,e>>>=n,t|=n,n=(e>3)<<1,e>>>=n,t|=n,t|e>>1},n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},n.popCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24},n.countTrailingZeros=r,n.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1},n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)},n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var i=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<>>8&255]<<16|i[e>>>16&255]<<8|i[e>>>24&255]},n.interleave2=function(e,t){return e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1},n.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=858993459&(e|e>>>1),e=252645135&(e|e>>>2),e=16711935&(e|e>>>4),e=65535&(e|e>>>16),e<<16>>16},n.interleave3=function(e,t,n){return e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e|=t<<1,n&=1023,n=4278190335&(n|n<<16),n=251719695&(n|n<<8),n=3272356035&(n|n<<4),n=1227133513&(n|n<<2),e|n<<2},n.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=3272356035&(e|e>>>2),e=251719695&(e|e>>>4),e=4278190335&(e|e>>>8),e=1023&(e|e>>>16),e<<22>>22},n.nextCombination=function(e){var t=e|e-1; +return t+1|(~t&-~t)-1>>>r(e)+1}},{}],51:[function(e,t,n){(function(t){/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +"use strict";function r(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function o(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e){return this instanceof i?(i.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?a(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):l(this,e)):arguments.length>1?new i(e,arguments[1]):new i(e)}function a(e,t){if(e=m(e,t<0?0:0|v(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n>>1;return n&&(e.parent=Q),e}function v(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function g(e,t){if(!(this instanceof g))return new g(e,t);var n=new i(e,t);return delete n.parent,n}function y(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),t<0&&(t=0),n>this.length&&(n=this.length),n<=t)return"";for(;;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return P(this,t,n);case"binary":return M(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var l,u,c,f;switch(s){case 1:i<128&&(a=i);break;case 2:l=e[o+1],128===(192&l)&&(f=(31&i)<<6|63&l,f>127&&(a=f));break;case 3:l=e[o+1],u=e[o+2],128===(192&l)&&128===(192&u)&&(f=(15&i)<<12|(63&l)<<6|63&u,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:l=e[o+1],u=e[o+2],c=e[o+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(f=(15&i)<<18|(63&l)<<12|(63&u)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return A(r)}function A(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||te.length)throw new RangeError("index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("index out of range");if(n<0)throw new RangeError("index out of range")}function N(e,t,n,r,o){return o||I(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||I(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function z(e){if(e=U(e).replace($,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function U(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function G(e){return K.toByteArray(z(e))}function Y(e,t,n,r){for(var o=0;o=t.length||o>=e.length);o++)t[o+n]=e[o];return o}var K=e("base64-js"),X=e("ieee754"),Z=e("isarray");n.Buffer=i,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,i.poolSize=8192;var Q={};i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),i._augment=function(e){return e.__proto__=i.prototype,e},i.TYPED_ARRAY_SUPPORT?(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})):(i.prototype.length=void 0,i.prototype.parent=void 0),i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},i.prototype.compare=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:i.compare(this,e)},i.prototype.indexOf=function(e,t){function n(e,t,n){for(var r=-1,o=0;n+o2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(i.isBuffer(e))return n(this,e,t);if("number"==typeof e)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):n(this,[e],t);throw new TypeError("val must be string, number or Buffer")},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=t,t=0|n,n=o}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"binary":return T(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||j(this,e,t,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=0,a=1,s=e<0?1:0;for(this[t]=255&e;++i>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=e<0?1:0;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=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-t=0;o--)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o=this.length)throw new RangeError("start out of bounds");if(n<0||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;r0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new c(3*s/4-i),r=i>0?s-4:s;var l=0;for(t=0,n=0;t>16,a[l++]=(65280&o)>>8,a[l++]=255&o;return 2===i?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}function i(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,n){for(var r,o=[],a=t;ac?c:u+s));return 1===r?(t=e[n-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}n.toByteArray=o,n.fromByteArray=s;var l=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array;r()},{}],53:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?p/l:p*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,u-=8);e[n+h-d]|=128*m}},{}],54:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],55:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,l=0;l0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],56:[function(e,t,n){function r(){c=!1,s.length?u=s.concat(u):f=-1,u.length&&o()}function o(){if(!c){var e=setTimeout(r);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f1)for(var n=1;n0;){for(var c=n.pop(),s=n.pop(),f=-1,p=-1,l=a[s],d=1;d=0||(t.flip(s,c),r(e,t,n,f,s,p),r(e,t,n,s,p,f),r(e,t,n,p,c,f),r(e,t,n,c,f,p))}}var i=e("robust-in-sphere")[4];e("binary-search-bounds");t.exports=o},{"binary-search-bounds":62,"robust-in-sphere":63}],59:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){this.cells=e,this.neighbor=t,this.flags=r,this.constraint=n,this.active=o,this.next=i,this.boundary=a}function o(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}function i(e,t){for(var n=e.cells(),i=n.length,a=0;a0||l.length>0;){for(;s.length>0;){var h=s.pop();if(u[h]!==-o){u[h]=o;for(var d=(c[h],0);d<3;++d){var m=p[3*h+d];m>=0&&0===u[m]&&(f[3*h+d]?l.push(m):(s.push(m),u[m]=o))}}}var v=l;l=s,s=v,l.length=0,o=-o}var g=a(c,u,t);return n?g.concat(r.boundary):g}var l=e("binary-search-bounds");t.exports=s;var u=r.prototype;u.locate=function(){var e=[0,0,0];return function(t,n,r){var i=t,a=n,s=r;return n1&&h(n[c[f-2]],n[c[f-1]],r)>0;)e.push([c[f-1],c[f-2],o]),f-=1;c.length=f,c.push(o);for(var d=u.upperIds,f=d.length;f>1&&h(n[d[f-2]],n[d[f-1]],r)<0;)e.push([d[f-2],d[f-1],o]),f-=1;d.length=f,d.push(o)}}function l(e,t){var n;return(n=e.a[0]g[0]&&l.push(new o(g,h,v,f),new o(h,g,m,f))}l.sort(i);for(var y=l[0].a[0]-(1+Math.abs(l[0].a[0]))*Math.pow(2,-52),b=[new r([y,1],[y,0],(-1),[],[],[],[])],x=[],f=0,_=l.length;f<_;++f){var w=l[f],T=w.type;T===d?s(x,b,e,w.a,w.idx):T===v?u(b,e,w):c(b,e,w)}return x}var p=e("binary-search-bounds"),h=e("robust-orientation")[3],d=0,m=1,v=2;t.exports=f},{"binary-search-bounds":62,"robust-orientation":259}],61:[function(e,t,n){"use strict";function r(e,t){this.stars=e,this.edges=t}function o(e,t,n){for(var r=1,o=e.length;r=0}}(),s.removeTriangle=function(e,t,n){var r=this.stars;o(r[e],t,n),o(r[t],n,e),o(r[n],e,t)},s.addTriangle=function(e,t,n){var r=this.stars;r[e].push(t,n),r[t].push(n,e),r[n].push(e,t)},s.opposite=function(e,t){for(var n=this.stars[t],r=1,o=n.length;r>>1,x=a[m]"];return o?t.indexOf("c")<0?i.push(";if(x===y){return m}else if(x<=y){"):i.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):i.push(";if(",t,"){i=m;"),n?i.push("l=m+1}else{h=m-1}"):i.push("h=m-1}else{l=m+1}"),i.push("}"),o?i.push("return -1};"):i.push("return i};"),i.join("")}function o(e,t,n,o){var i=new Function([r("A","x"+e+"y",t,["y"],o),r("P","c(x,y)"+e+"0",t,["y","c"],o),"function dispatchBsearch",n,"(a,y,c,l,h){\tif(typeof(c)==='function'){\treturn P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)\t}else{\treturn A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)\t}}\treturn dispatchBsearch",n].join(""));return i()}t.exports={ge:o(">=",!1,"GE"),gt:o(">",!1,"GT"),lt:o("<",!0,"LT"),le:o("<=",!0,"LE"),eq:o("-",!0,"EQ",!0)}},{}],63:[function(e,t,n){"use strict";function r(e,t){for(var n=new Array(e.length-1),r=1;r>1;return["sum(",i(e.slice(0,t)),",",i(e.slice(t)),")"].join("")}function a(e,t){if("m"===e.charAt(0)){if("w"===t.charAt(0)){var n=e.split("[");return["w",t.substr(1),"m",n[0].substr(1)].join("")}return["prod(",e,",",t,")"].join("")}return a(t,e)}function s(e){return e&!0?"-":""}function l(e){if(2===e.length)return[["diff(",a(e[0][0],e[1][1]),",",a(e[1][0],e[0][1]),")"].join("")];for(var t=[],n=0;n0?[w(t,-(1/0)),t]:[t,t]}function o(e,t){for(var n=new Array(t.length),r=0;r=e.length)return a[t-e.length];var n=e[t];return[y(n[0]),y(n[1])]}for(var a=[],s=0;s=0;--s){var m=r[s],u=m[0],v=t[u],g=v[0],x=v[1],w=e[g],C=e[x];if((w[0]-C[0]||w[1]-C[1])<0){var E=g;g=x,x=E}v[0]=g;var k,S=v[1]=m[1];for(o&&(k=v[2]);s>0&&r[s-1][0]===u;){var m=r[--s],A=m[1];o?t.push([S,A,k]):t.push([S,A]),S=A}o?t.push([S,x,k]):t.push([S,x])}return a}function u(e,t,n){for(var o=e.length+t.length,i=new m(o),a=n,s=0;st[2]?1:0}function p(e,t,n){if(0!==e.length){if(t)for(var r=0;r0||h.length>0)}function d(e,t,n){var r,o=!1;if(n){r=t;for(var i=new Array(t.length),a=0;a0?n=n.shln(f):f<0&&(c=c.shln(-f)),l(n,c)}var o=e("./is-rat"),i=e("./lib/is-bn"),a=e("./lib/num-to-bn"),s=e("./lib/str-to-bn"),l=e("./lib/rationalize"),u=e("./div");t.exports=r},{"./div":68,"./is-rat":70,"./lib/is-bn":74,"./lib/num-to-bn":75,"./lib/rationalize":76,"./lib/str-to-bn":77}],70:[function(e,t,n){"use strict";function r(e){return Array.isArray(e)&&2===e.length&&o(e[0])&&o(e[1])}var o=e("./lib/is-bn");t.exports=r},{"./lib/is-bn":74}],71:[function(e,t,n){"use strict";function r(e){return e.cmp(new o(0))}var o=e("bn.js");t.exports=r},{"bn.js":79}],72:[function(e,t,n){"use strict";function r(e){var t=e.length,n=e.words,r=0;if(1===t)r=n[0];else if(2===t)r=n[0]+67108864*n[1];else for(var r=0,o=0;o20?52:n+32}var o=e("double-bits"),i=e("bit-twiddle").countTrailingZeros;t.exports=r},{"bit-twiddle":50,"double-bits":90}],74:[function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&Boolean(e.words)}e("bn.js");t.exports=r},{"bn.js":79}],75:[function(e,t,n){"use strict";function r(e){var t=i.exponent(e);return t<52?new o(e):new o(e*Math.pow(2,52-t)).shln(t-52)}var o=e("bn.js"),i=e("double-bits");t.exports=r},{"bn.js":79,"double-bits":90}],76:[function(e,t,n){"use strict";function r(e,t){var n=i(e),r=i(t);if(0===n)return[o(0),o(1)];if(0===r)return[o(0),o(0)];r<0&&(e=e.neg(),t=t.neg());var a=e.gcd(t);return a.cmpn(1)?[e.div(a),t.div(a)]:[e,t]}var o=e("./num-to-bn"),i=e("./bn-sign");t.exports=r},{"./bn-sign":71,"./num-to-bn":75}],77:[function(e,t,n){"use strict";function r(e){return new o(e)}var o=e("bn.js");t.exports=r},{"bn.js":79}],78:[function(e,t,n){"use strict";function r(e,t){return o(e[0].mul(t[0]),e[1].mul(t[1]))}var o=e("./lib/rationalize");t.exports=r},{"./lib/rationalize":76}],79:[function(e,t,n){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){return null!==e&&"object"==typeof e&&Array.isArray(e.words)?e:(this.sign=!1,this.words=null,this.length=0,this.red=null,"le"!==t&&"be"!==t||(n=t,t=10),void(null!==e&&this._init(e||0,t||10,n||"be")))}function i(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function a(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return o}function s(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).ishln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){s.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function u(){s.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){s.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function f(){s.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function p(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else this.m=e,this.prime=null}function h(e){p.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).ishln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv.sign=!0,this.minv=this.minv.mod(this.r)}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26,o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var o=0;"-"===e[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.sign=!0),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.sign=!0,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o=0;o-=3){var s=e[o]|e[o-1]<<8|e[o-2]<<16;this.words[a]|=s<>>26-i&67108863,i+=24,i>=26&&(i-=26,a++)}else if("le"===r)for(var o=0,a=0;o>>26-i&67108863,i+=24,i>=26&&(i-=26,a++)}return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6){var a=i(e,n,n+6);this.words[o]|=a<>>26-r&4194303,r+=24,r>=26&&(r-=26,o++)}if(n+6!==t){var a=i(e,t,n+6);this.words[o]|=a<>>26-r&4194303}this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,s=i%r,l=Math.min(i,i-s)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.sign=!1),this},o.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(e=e||10,16===e||"hex"===e){for(var r="",o=0,t=0|t||1,i=0,a=0;a>>24-o&16777215,r=0!==i||a!==this.length-1?d[6-l.length]+l+r:l+r,o+=2,o>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!==0;)r="0"+r;return this.sign&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=m[e],c=v[e],r="",f=this.clone();for(f.sign=!1;0!==f.cmpn(0);){var p=f.modn(c).toString(e);f=f.idivn(c),r=0!==f.cmpn(0)?d[u-p.length]+p+r:p+r}return 0===this.cmpn(0)&&(r="0"+r),this.sign&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toArray=function(e){this.strip();var t=new Array(this.byteLength());t[0]=0;var n=this.clone();if("le"!==e)for(var r=0;0!==n.cmpn(0);r++){var o=n.andln(255);n.ishrn(8),t[t.length-r-1]=o}else for(var r=0;0!==n.cmpn(0);r++){var o=n.andln(255);n.ishrn(8),t[r]=o}return t},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=0,t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(0===this.cmpn(0))return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.iand=function(e){this.sign=this.sign&&e.sign;var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.ixor=function(e){this.sign=this.sign||e.sign;var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);for(var r=e/26|0,o=e%26;this.length<=r;)this.words[this.length++]=0;return t?this.words[r]=this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i>>26}for(;0!==o&&i>>26}if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(e.sign){e.sign=!1;var t=this.iadd(e);return e.sign=!0,t._normSign()}if(this.sign)return this.sign=!1,this.iadd(e),this.sign=!0,this._normSign();var n=this.cmp(e);if(0===n)return this.sign=!1,this.length=1,this.words[0]=0,this;var r,o;n>0?(r=this,o=e):(r=e,o=this);for(var i=0,a=0;a>26,this.words[a]=67108863&t}for(;0!==i&&a>26,this.words[a]=67108863&t}if(0===i&&a>>26,i=67108863&n,a=Math.min(r,e.length-1),s=Math.max(0,r-this.length+1);s<=a;s++){var l=r-s,u=0|this.words[l],c=0|e.words[s],f=u*c,p=67108863&f;o=o+(f/67108864|0)|0,p=p+i|0,i=67108863&p,o=o+(p>>>26)|0}t.words[r]=i,n=o}return 0!==n?t.words[r]=n:t.length--,t.strip()},o.prototype._bigMulTo=function(e,t){t.sign=e.sign!==this.sign,t.length=this.length+e.length;for(var n=0,r=0,o=0;o>>26)|0,r+=i>>>26,i&=67108863}t.words[o]=a,n=i,i=r}return 0!==n?t.words[o]=n:t.length--,t.strip()},o.prototype.mulTo=function(e,t){var n;return n=this.length+e.length<63?this._smallMulTo(e,t):this._bigMulTo(e,t)},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.imul=function(e){if(0===this.cmpn(0)||0===e.cmpn(0))return this.words[0]=0,this.length=1,this;var t=this.length,n=e.length;this.sign=e.sign!==this.sign,this.length=this.length+e.length,this.words[this.length-1]=0;for(var r=this.length-2;r>=0;r--){for(var o=0,i=0,a=Math.min(r,n-1),s=Math.max(0,r-t+1);s<=a;s++){var l=r-s,u=this.words[l],c=e.words[s],f=u*c,p=67108863&f;o+=f/67108864|0,p+=i,i=67108863&p,o+=p>>>26}this.words[r]=i,this.words[r+1]+=o,o=0}for(var o=0,l=1;l>>26}return this.strip()},o.prototype.imuln=function(e){n("number"==typeof e);for(var t=0,r=0;r>=26,t+=o/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.mul(this)},o.prototype.ishln=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=67108863>>>26-t<<26-t;if(0!==t){for(var i=0,a=0;a>>26-t}i&&(this.words[a]=i,this.length++)}if(0!==r){for(var a=this.length-1;a>=0;a--)this.words[a+r]=this.words[a];for(var a=0;a=0);var o;o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<a){this.length-=a;for(var u=0;u=0&&(0!==c||u>=o);u--){var f=this.words[u];this.words[u]=c<<26-i|f>>>i,c=f&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip(),this},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<=0);var t=e%26,r=(e-t)/26;if(n(!this.sign,"imaskn works only with positive numbers"),0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),e<0)return this.iaddn(-e);if(this.sign)return this.sign=!1,this.iaddn(e),this.sign=!0,this;this.words[0]-=e;for(var t=0;t>26)-(u/67108864|0),this.words[o+r]=67108863&l}for(;o>26,this.words[o+r]=67108863&l}if(0===s)return this.strip();n(s===-1),s=0;for(var o=0;o>26,this.words[o]=67108863&l}return this.sign=!0,this.strip()},o.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,a=i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.shln(n),r.ishln(n),a=i.words[i.length-1]);var l,u=r.length-i.length;if("mod"!==t){l=new o(null),l.length=u+1,l.words=new Array(l.length);for(var c=0;c=0;p--){var h=67108864*r.words[i.length+p]+r.words[i.length+p-1];for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,p);r.sign;)h--,r.sign=!1,r._ishlnsubmul(i,1,p),0!==r.cmpn(0)&&(r.sign=!r.sign);l&&(l.words[p]=h)}return l&&l.strip(),r.strip(),"div"!==t&&0!==n&&r.ishrn(n),{div:l?l:null,mod:r}},o.prototype.divmod=function(e,t){if(n(0!==e.cmpn(0)),this.sign&&!e.sign){var r,i,a=this.neg().divmod(e,t);return"mod"!==t&&(r=a.div.neg()),"div"!==t&&(i=0===a.mod.cmpn(0)?a.mod:e.sub(a.mod)),{div:r,mod:i}}if(!this.sign&&e.sign){var r,a=this.divmod(e.neg(),t);return"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}}return this.sign&&e.sign?this.neg().divmod(e.neg(),t):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div").div},o.prototype.mod=function(e){return this.divmod(e,"mod").mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(0===t.mod.cmpn(0))return t.div;var n=t.div.sign?t.mod.isub(e):t.mod,r=e.shrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:t.div.sign?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,o=this.length-1;o>=0;o--)r=(t*r+this.words[o])%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var o=this.words[r]+67108864*t;this.words[r]=o/e|0,t=o%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(!e.sign),n(0!==e.cmpn(0));var t=this,r=e.clone();t=t.sign?t.mod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),u=0;t.isEven()&&r.isEven();)t.ishrn(1),r.ishrn(1),++u;for(var c=r.clone(),f=t.clone();0!==t.cmpn(0);){for(;t.isEven();)t.ishrn(1),i.isEven()&&a.isEven()?(i.ishrn(1),a.ishrn(1)):(i.iadd(c).ishrn(1),a.isub(f).ishrn(1));for(;r.isEven();)r.ishrn(1),s.isEven()&&l.isEven()?(s.ishrn(1),l.ishrn(1)):(s.iadd(c).ishrn(1),l.isub(f).ishrn(1));t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.ishln(u)}},o.prototype._invmp=function(e){n(!e.sign),n(0!==e.cmpn(0));var t=this,r=e.clone();t=t.sign?t.mod(e):t.clone();for(var i=new o(1),a=new o(0),s=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(;t.isEven();)t.ishrn(1),i.isEven()?i.ishrn(1):i.iadd(s).ishrn(1);for(;r.isEven();)r.ishrn(1),a.isEven()?a.ishrn(1):a.iadd(s).ishrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a)):(r.isub(t),a.isub(i))}return 0===t.cmpn(1)?i:a},o.prototype.gcd=function(e){if(0===this.cmpn(0))return e.clone();if(0===e.cmpn(0))return this.clone();var t=this.clone(),n=e.clone();t.sign=!1,n.sign=!1;for(var r=0;t.isEven()&&n.isEven();r++)t.ishrn(1),n.ishrn(1);for(;;){for(;t.isEven();)t.ishrn(1);for(;n.isEven();)n.ishrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.ishln(r)},o.prototype.invm=function(e){return this.egcd(e).a.mod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,o=1<>>26,s&=67108863,this.words[i]=s}return 0!==a&&(this.words[i]=a,this.length++),this},o.prototype.cmpn=function(e){var t=e<0;if(t&&(e=-e),this.sign&&!t)return-1;if(!this.sign&&t)return 1;e&=67108863,this.strip();var n;if(this.length>1)n=1;else{var r=this.words[0];n=r===e?0:re.length)return 1;if(this.length=0;n--){var r=this.words[n],o=e.words[n];if(r!==o){ro&&(t=1);break}}return t},o.red=function(e){return new p(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(!this.sign,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};s.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},s.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength();while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},s.prototype.split=function(e,t){e.ishrn(this.n,0,t)},s.prototype.imulK=function(e){return e.imul(this.k)},r(l,s),l.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),o=0;o>>22,i=a}e.words[o-10]=i>>>22,e.length-=9},l.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t,n=0,r=0;r>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function y(e){if(g[e])return g[e];var y;if("k256"===e)y=new l;else if("p224"===e)y=new u;else if("p192"===e)y=new c;else{if("p25519"!==e)throw new Error("Unknown prime "+e);y=new f}return g[e]=y,y},p.prototype._verify1=function(e){n(!e.sign,"red works only with positives"),n(e.red,"red works only with red numbers")},p.prototype._verify2=function(e,t){n(!e.sign&&!t.sign,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},p.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.mod(this.m)._forceRed(this)},p.prototype.neg=function(e){var t=e.clone();return t.sign=!t.sign,t.iadd(this.m)._forceRed(this)},p.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},p.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},p.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},p.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},p.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.shln(t))},p.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},p.prototype.mul=function(e,t){ +return this._verify2(e,t),this.imod(e.mul(t))},p.prototype.isqr=function(e){return this.imul(e,e)},p.prototype.sqr=function(e){return this.mul(e,e)},p.prototype.sqrt=function(e){if(0===e.cmpn(0))return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).ishrn(2),i=this.pow(e,r);return i}for(var a=this.m.subn(1),s=0;0!==a.cmpn(0)&&0===a.andln(1);)s++,a.ishrn(1);n(0!==a.cmpn(0));var l=new o(1).toRed(this),u=l.redNeg(),c=this.m.subn(1).ishrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var p=this.pow(f,a),i=this.pow(e,a.addn(1).ishrn(1)),h=this.pow(e,a),d=s;0!==h.cmp(l);){for(var m=h,v=0;0!==m.cmp(l);v++)m=m.redSqr();n(v=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},h.prototype.mul=function(e,t){if(0===e.cmpn(0)||0===t.cmpn(0))return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).ishrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},h.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}("undefined"==typeof t||t,this)},{}],80:[function(e,t,n){"use strict";function r(e){return o(e[0])*o(e[1])}var o=e("./lib/bn-sign");t.exports=r},{"./lib/bn-sign":71}],81:[function(e,t,n){"use strict";function r(e,t){return o(e[0].mul(t[1]).sub(e[1].mul(t[0])),e[1].mul(t[1]))}var o=e("./lib/rationalize");t.exports=r},{"./lib/rationalize":76}],82:[function(e,t,n){"use strict";function r(e){var t=e[0],n=e[1];if(0===t.cmpn(0))return 0;var r=t.divmod(n),a=r.div,s=o(a),l=r.mod;if(0===l.cmpn(0))return s;if(s){var u=i(s)+4,c=o(l.shln(u).divRound(n));return s<0&&(c=-c),s+c*Math.pow(2,-u)}var f=n.bitLength()-l.bitLength()+53,c=o(l.shln(f).divRound(n));return f<1023?c*Math.pow(2,-f):(c*=Math.pow(2,-1023),c*Math.pow(2,1023-f))}var o=e("./lib/bn-to-num"),i=e("./lib/ctz");t.exports=r},{"./lib/bn-to-num":72,"./lib/ctz":73}],83:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n>>1;if(!(s<=0)){var l,u=f.mallocDouble(2*s*i),c=f.mallocInt32(i);if(i=o(e,s,u,c),i>0){if(1===s&&r)p.init(i),l=p.sweepComplete(s,n,0,i,u,c,0,i,u,c);else{var d=f.mallocDouble(2*s*a),m=f.mallocInt32(a);a=o(t,s,d,m),a>0&&(p.init(i+a),l=1===s?p.sweepBipartite(s,n,0,i,u,c,0,a,d,m):h(s,n,r,i,u,c,a,d,m),f.free(d),f.free(m))}f.free(u),f.free(c)}return l}}}function a(e,t){c.push([e,t])}function s(e){return c=[],i(e,e,a,!0),c}function l(e,t){return c=[],i(e,t,a,!1),c}function u(e,t,n){switch(arguments.length){case 1:return s(e);case 2:return"function"==typeof t?i(e,e,t,!0):l(e,t);case 3:return i(e,t,n,!1);default:throw new Error("box-intersect: Invalid arguments")}}t.exports=u;var c,f=e("typedarray-pool"),p=e("./lib/sweep"),h=e("./lib/intersect")},{"./lib/intersect":85,"./lib/sweep":89,"typedarray-pool":278}],84:[function(e,t,n){"use strict";function r(e,t,n){var r="bruteForce"+(e?"Red":"Blue")+(t?"Flip":"")+(n?"Full":""),o=["function ",r,"(",w.join(),"){","var ",u,"=2*",i,";"],l="for(var i="+c+","+d+"="+u+"*"+c+";i<"+f+";++i,"+d+"+="+u+"){var x0="+p+"["+a+"+"+d+"],x1="+p+"["+a+"+"+d+"+"+i+"],xi="+h+"[i];",T="for(var j="+m+","+b+"="+u+"*"+m+";j<"+v+";++j,"+b+"+="+u+"){var y0="+g+"["+a+"+"+b+"],"+(n?"y1="+g+"["+a+"+"+b+"+"+i+"],":"")+"yi="+y+"[j];";return e?o.push(l,_,":",T):o.push(T,_,":",l),n?o.push("if(y1"+v+"-"+m+"){"),e?(t(!0,!1),a.push("}else{"),t(!1,!1)):(a.push("if("+l+"){"),t(!0,!0),a.push("}else{"),t(!0,!1),a.push("}}else{if("+l+"){"),t(!1,!0),a.push("}else{"),t(!1,!1),a.push("}")),a.push("}}return "+n);var s=o.join("")+a.join(""),u=new Function(s);return u()}var i="d",a="ax",s="vv",l="fp",u="es",c="rs",f="re",p="rb",h="ri",d="rp",m="bs",v="be",g="bb",y="bi",b="bp",x="rv",_="Q",w=[i,a,s,c,f,p,h,m,v,g,y];n.partial=o(!1),n.full=o(!0)},{}],85:[function(e,t,n){"use strict";function r(e,t){var n=8*u.log2(t+1)*(e+1)|0,r=u.nextPow2(E*n);A.length0;){O-=1;var L=O*E,j=A[L],R=A[L+1],F=A[L+2],I=A[L+3],N=A[L+4],B=A[L+5],z=O*k,U=P[z],W=P[z+1],H=1&B,q=!!(16&B),V=l,G=u,Y=m,K=S;if(H&&(V=m,G=S,Y=l,K=u),!(2&B&&(F=_(e,j,R,F,V,G,W),R>=F)||4&B&&(R=w(e,j,R,F,V,G,U),R>=F))){var X=F-R,Z=N-I;if(q){if(e*X*(X+Z)=p0)&&!(p1>=hi)",["p0","p1"]),x=m("lo===p0",["p0"]),_=m("lon&&o[f+t]>u;--c,f-=a){for(var p=f,h=f+a,d=0;d>>1,p=2*e,h=f,d=i[p*f+t];u=b?(h=y,d=b):g>=_?(h=v,d=g):(h=x,d=_):b>=_?(h=y,d=b):_>=g?(h=v,d=g):(h=x,d=_);for(var w=p*(c-1),T=p*h,C=0;C=0&&r.push("lo=e[k+n]"),e.indexOf("hi")>=0&&r.push("hi=e[k+o]"),n.push(o.replace("_",r.join()).replace("$",e)),Function.apply(void 0,n)}t.exports=r;var o="for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m"},{}],88:[function(e,t,n){"use strict";function r(e,t){t<=4*p?o(0,t-1,e):f(0,t-1,e)}function o(e,t,n){for(var r=2*(e+1),o=e+1;o<=t;++o){for(var i=n[r++],a=n[r++],s=o,l=r-2;s-- >e;){var u=n[l-2],c=n[l-1];if(un[t+1])}function c(e,t,n,r){e*=2;var o=r[e];return o>1,v=m-r,g=m+r,y=h,b=v,x=m,_=g,w=d,T=e+1,C=t-1,E=0;u(y,b,n)&&(E=y,y=b,b=E),u(_,w,n)&&(E=_,_=w,w=E),u(y,x,n)&&(E=y,y=x,x=E),u(b,x,n)&&(E=b,b=x,x=E),u(y,_,n)&&(E=y,y=_,_=E),u(x,_,n)&&(E=x,x=_,_=E),u(b,w,n)&&(E=b,b=w,w=E),u(b,x,n)&&(E=b,b=x,x=E),u(_,w,n)&&(E=_,_=w,w=E);for(var k=n[2*b],S=n[2*b+1],A=n[2*_],P=n[2*_+1],M=2*y,O=2*x,D=2*w,L=2*h,j=2*m,R=2*d,F=0;F<2;++F){var I=n[M+F],N=n[O+F],B=n[D+F];n[L+F]=I,n[j+F]=N,n[R+F]=B}a(v,e,n),a(g,t,n);for(var z=T;z<=C;++z)if(c(z,k,S,n))z!==T&&i(z,T,n),++T;else if(!c(z,A,P,n))for(;;){if(c(C,A,P,n)){c(C,k,S,n)?(s(z,T,C,n),++T,--C):(i(z,C,n),--C);break}if(--C>>1;p(_,S);for(var A=0,P=0,T=0;T=h)M=M-h|0,o(g,y,P--,M);else if(M>=0)o(m,v,A--,M);else if(M<=-h){M=-M-h|0;for(var O=0;O>>1;p(_,A);for(var P=0,M=0,O=0,C=0;C>1===_[2*C+3]>>1&&(L=2,C+=1),D<0){for(var j=-(D>>1)-1,R=0;R>1)-1;0===L?o(m,v,P--,j):1===L?o(g,y,M--,j):2===L&&o(b,x,O--,j)}}}function l(e,t,n,r,a,s,l,u,c,f,d,g){var y=0,b=2*e,x=t,w=t+e,T=1,C=1;r?C=h:T=h;for(var E=a;E>>1;p(_,P);for(var M=0,E=0;E=h?(D=!r,k-=h):(D=!!r,k-=1),D)i(m,v,M++,k);else{var L=g[k],j=b*k,R=d[j+t+1],F=d[j+t+1+e];e:for(var I=0;I>>1;p(_,T);for(var C=0,y=0;y=h)m[C++]=b-h;else{b-=1;var k=c[b],S=d*b,A=u[S+t+1],P=u[S+t+1+e];e:for(var M=0;M=0;--M)if(m[M]===b){for(var j=M+1;j>>31},t.exports.exponent=function(e){var n=t.exports.hi(e);return(n<<1>>>21)-1023},t.exports.fraction=function(e){var n=t.exports.lo(e),r=t.exports.hi(e),o=1048575&r;return 2146435072&r&&(o+=1<<20),[n,o]},t.exports.denormalized=function(e){var n=t.exports.hi(e);return!(2146435072&n)}}).call(this,e("buffer").Buffer)},{buffer:51}],91:[function(e,t,n){"use strict";function r(e,t){if(isNaN(e)||isNaN(t))return NaN;if(e===t)return e;if(0===e)return t<0?-i:i;var n=o.hi(e),r=o.lo(e);return t>e==e>0?r===a?(n+=1,r=0):r+=1:0===r?(r=a,n-=1):r-=1,o.pack(r,n)}var o=e("double-bits"),i=Math.pow(2,-1074),a=-1>>>0;t.exports=r},{"double-bits":90}],92:[function(e,t,n){"use strict";function r(e,t){for(var n=e.length,r=new Array(n),i=0;i0&&s>0||a<0&&s<0)return!1;var l=i(n,e,t),u=i(o,e,t);return!(l>0&&u>0||l<0&&u<0)&&(0!==a||0!==s||0!==l||0!==u||r(e,t,n,o))}t.exports=o;var i=e("robust-orientation")[3]},{"robust-orientation":259}],97:[function(e,t,n){"use strict";"use restrict";function r(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;td)throw new Error(p+" map requires nshades to be at least size "+f.length);for(v=Array.isArray(e.alpha)?2!==e.alpha.length?[1,1]:a(e.alpha):"number"==typeof e.alpha?[e.alpha,e.alpha]:[1,1],t=f.map(function(e){return Math.round(e.index*d)}),v[0]<0&&(v[0]=0),v[1]<0&&(v[0]=0),v[0]>1&&(v[0]=1),v[1]>1&&(v[0]=1),y=0;y=0&&n[3]<=1||(n[3]=v[0]+(v[1]-v[0])*g);for(y=0;ye[n][0]&&(n=r);return tn?[[n],[t]]:[[t]]}t.exports=r},{}],104:[function(e,t,n){"use strict";function r(e){var t=o(e),n=t.length;if(n<=2)return[];for(var r=new Array(n),i=t[n-1],a=0;a=t[l]&&(s+=1);i[a]=s}}return e}function i(e,t){try{return a(e,!0)}catch(n){var i=s(e);if(i.length<=t)return[];var l=r(e,i),u=a(l,!0);return o(u,i)}}t.exports=i;var a=e("incremental-convex-hull"),s=e("affine-hull")},{"affine-hull":106,"incremental-convex-hull":235}],106:[function(e,t,n){"use strict";function r(e,t){for(var n=new Array(t+1),r=0;r1&&o(e[a[c-2]],e[a[c-1]],u)<=0;)c-=1,a.pop();for(a.push(l),c=s.length;c>1&&o(e[s[c-2]],e[s[c-1]],u)>=0;)c-=1,s.pop();s.push(l)}for(var n=new Array(s.length+a.length-2),f=0,r=0,p=a.length;r0;--h)n[f++]=s[h];return n}t.exports=r;var o=e("robust-orientation")[3]},{"robust-orientation":259}],108:[function(e,t,n){t.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CPV:"verde",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bdr|\\bdr.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",COG:"^(?!.*\\bdem)(?!.*\\bdr)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CZE:"^(?=.*rep).*czech|czechia|bohemia",CSK:"czechoslovakia",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"ireland",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat).*\\bkorea|^(?=.*people).*\\bkorea|^(?=.*north).*\\bkorea|dprk",KOR:"^(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MKD:"macedonia|fyrom",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"micronesia",MDA:"moldov|b(a|e)ssarabia",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat", +MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"\\bs\\w*.?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa",TJK:"tajik",TZA:"tanzania",THA:"thailand|\\bsiam",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",USA:"united.?states|\\bu\\.?s\\.?a\\.?\\b|\\bu\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},{}],109:[function(e,t,n){"use strict";function r(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}function o(e){var t=new r;t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var o=0;o0)throw new Error("cwise: pre() block may not reference array args");if(o0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===a)t.scalarArgs.push(o),t.shimArgs.push("scalar"+o);else if("index"===a){if(t.indexArgs.push(o),o0)throw new Error("cwise: pre() block may not reference array index");if(o0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===a){if(t.shapeArgs.push(o),on.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,i(t)}var i=e("./lib/thunk.js");t.exports=o},{"./lib/thunk.js":111}],110:[function(e,t,n){"use strict";function r(e,t,n){var r,o,i=e.length,a=t.arrayArgs.length,s=t.indexArgs.length>0,l=[],u=[],c=0,f=0;for(r=0;r=0;--r)c=e[r],l.push(["for(i",r,"=0;i",r,"0&&l.push(["index[",f,"]-=s",f].join("")),l.push(["++index[",c,"]"].join(""))),l.push("}")}return l.join("\n")}function o(e,t,n,o){for(var i=t.length,a=n.arrayArgs.length,s=n.blockSize,l=n.indexArgs.length>0,u=[],c=0;c0;){"].join("")),u.push(["if(j",c,"<",s,"){"].join("")),u.push(["s",t[c],"=j",c].join("")),u.push(["j",c,"=0"].join("")),u.push(["}else{s",t[c],"=",s].join("")),u.push(["j",c,"-=",s,"}"].join("")),l&&u.push(["index[",t[c],"]=j",c].join(""));for(var c=0;c0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}function l(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,l=new Array(e.arrayArgs.length),c=new Array(e.arrayArgs.length),f=0;f0&&_.push("shape=SS.slice(0)"),e.indexArgs.length>0){for(var w=new Array(n),f=0;f3&&x.push(a(e.pre,e,c));var k=a(e.body,e,c),S=i(v);S3&&x.push(a(e.post,e,c)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+x.join("\n")+"\n----------");var A=[e.funcName||"unnamed","_cwise_loop_",l[0].join("s"),"m",S,s(c)].join(""),P=new Function(["function ",A,"(",b.join(","),"){",x.join("\n"),"} return ",A].join(""));return P()}var u=e("uniq");t.exports=l},{uniq:279}],111:[function(e,t,n){"use strict";function r(e){var t=["'use strict'","var CACHED={}"],n=[],r=e.funcName+"_cwise_thunk";t.push(["return function ",r,"(",e.shimArgs.join(","),"){"].join(""));for(var i=[],a=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],l=[],u=[],c=0;c0&&(l.push("array"+e.arrayArgs[0]+".shape.length===array"+f+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[c]))),u.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+f+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[c])+"]"))}e.arrayArgs.length>1&&(t.push("if (!("+l.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex-->0;) {"),t.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}"));for(var c=0;ct?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function a(e){return!isNaN(e)}function s(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function l(e){return e.length}function u(e){for(var t=1;e*t%1;)t*=10;return t}function c(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function f(){this._=Object.create(null)}function p(e){return(e+="")===Ta||e[0]===Ca?Ca+e:e}function h(e){return(e+="")[0]===Ca?e.slice(1):e}function d(e){return p(e)in this._}function m(e){return(e=p(e))in this._&&delete this._[e]}function v(){var e=[];for(var t in this._)e.push(h(t));return e}function g(){var e=0;for(var t in this._)++e;return e}function y(){for(var e in this._)return!1;return!0}function b(){this._=Object.create(null)}function x(e){return e}function _(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function w(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Ea.length;n=t&&(t=o+1);!(a=s[t])&&++t0&&(e=e.slice(0,s));var u=Ra.get(e);return u&&(e=u,l=Z),s?t?o:r:t?T:i}function X(e,t){return function(n){var r=ca.event;ca.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{ca.event=r}}}function Z(e,t){var n=X(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(e){var n=".dragsuppress-"+ ++Ia,o="click"+n,i=ca.select(r(e)).on("touchmove"+n,k).on("dragstart"+n,k).on("selectstart"+n,k);if(null==Fa&&(Fa=!("onselectstart"in e)&&w(e.style,"userSelect")),Fa){var a=t(e).style,s=a[Fa];a[Fa]="none"}return function(e){if(i.on(n,null),Fa&&(a[Fa]=s),e){var t=function(){i.on(o,null)};i.on(o,function(){k(),t()},!0),setTimeout(t,0)}}}function J(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var o=n.createSVGPoint();if(Na<0){var i=r(e);if(i.scrollX||i.scrollY){n=ca.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();Na=!(a.f||a.e),n.remove()}}return Na?(o.x=t.pageX,o.y=t.pageY):(o.x=t.clientX,o.y=t.clientY),o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function $(){return ca.event.changedTouches[0].identifier}function ee(e){return e>0?1:e<0?-1:0}function te(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ne(e){return e>1?0:e<-1?Ua:Math.acos(e)}function re(e){return e>1?qa:e<-1?-qa:Math.asin(e)}function oe(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function ae(e){return((e=Math.exp(2*e))-1)/(e+1)}function se(e){return(e=Math.sin(e/2))*e}function le(){}function ue(e,t,n){return this instanceof ue?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof ue?new ue(e.h,e.s,e.l):Te(""+e,Ce,ue):new ue(e,t,n)}function ce(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?i+(a-i)*e/60:e<180?a:e<240?i+(a-i)*(240-e)/60:i}function o(e){return Math.round(255*r(e))}var i,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,i=2*n-a,new be(o(e+120),o(e),o(e-120))}function fe(e,t,n){return this instanceof fe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof fe?new fe(e.h,e.c,e.l):e instanceof he?me(e.l,e.a,e.b):me((e=Ee((e=ca.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new fe(e,t,n)}function pe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new he(n,Math.cos(e*=Va)*t,Math.sin(e)*t)}function he(e,t,n){return this instanceof he?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof he?new he(e.l,e.a,e.b):e instanceof fe?pe(e.h,e.c,e.l):Ee((e=be(e)).r,e.g,e.b):new he(e,t,n)}function de(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return o=ve(o)*ns,r=ve(r)*rs,i=ve(i)*os,new be(ye(3.2404542*o-1.5371385*r-.4985314*i),ye(-.969266*o+1.8760108*r+.041556*i),ye(.0556434*o-.2040259*r+1.0572252*i))}function me(e,t,n){return e>0?new fe(Math.atan2(n,t)*Ga,Math.sqrt(t*t+n*n),e):new fe(NaN,NaN,e)}function ve(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ge(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ye(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function be(e,t,n){return this instanceof be?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof be?new be(e.r,e.g,e.b):Te(""+e,be,ce):new be(e,t,n)}function xe(e){return new be(e>>16,e>>8&255,255&e)}function _e(e){return xe(e)+""}function we(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Te(e,t,n){var r,o,i,a=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(Se(o[0]),Se(o[1]),Se(o[2]))}return(i=ss.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a=a>>4|a,s=240&i,s=s>>4|s,l=15&i,l=l<<4|l):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,l=255&i)),t(a,s,l))}function Ce(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,l=(a+i)/2;return s?(o=l<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t0&&l<1?0:r),new ue(r,o,l)}function Ee(e,t,n){e=ke(e),t=ke(t),n=ke(n);var r=ge((.4124564*e+.3575761*t+.1804375*n)/ns),o=ge((.2126729*e+.7151522*t+.072175*n)/rs),i=ge((.0193339*e+.119192*t+.9503041*n)/os);return he(116*o-16,500*(r-o),200*(o-i))}function ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Se(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Ae(e){return"function"==typeof e?e:function(){return e}}function Pe(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Me(t,n,e,r)}}function Me(e,t,n,r){function o(){var e,t=l.status;if(!t&&De(l)||t>=200&&t<300||304===t){try{e=n.call(i,l)}catch(r){return void a.error.call(i,r)}a.load.call(i,e)}else a.error.call(i,l)}var i={},a=ca.dispatch("beforesend","progress","load","error"),s={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=o:l.onreadystatechange=function(){l.readyState>3&&o()},l.onprogress=function(e){var t=ca.event;ca.event=e;try{a.progress.call(i,l)}finally{ca.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(u=e,i):u},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(pa(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=u&&(l.responseType=u),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},ca.rebind(i,a,"on"),null==r?i:i.get(Oe(r))}function Oe(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function De(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Le(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return us?us.n=i:ls=i,us=i,cs||(fs=clearTimeout(fs),cs=1,ps(je)),i}function je(){var e=Re(),t=Fe()-e;t>24?(isFinite(t)&&(clearTimeout(fs),fs=setTimeout(je,t)),cs=0):(cs=1,ps(je))}function Re(){for(var e=Date.now(),t=ls;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Fe(){for(var e,t=ls,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Be(e){var t=e.decimal,n=e.thousands,r=e.grouping,o=e.currency,i=r&&n?function(e,t){for(var o=e.length,i=[],a=0,s=r[0],l=0;o>0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>t));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:x;return function(e){var n=ds.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",l=n[4]||"",u=n[5],c=+n[6],f=n[7],p=n[8],h=n[9],d=1,m="",v="",g=!1,y=!0;switch(p&&(p=+p.substring(1)),(u||"0"===r&&"="===a)&&(u=r="0",a="="),h){case"n":f=!0,h="g";break;case"%":d=100,v="%",h="f";break;case"p":d=100,v="%",h="r";break;case"b":case"o":case"x":case"X":"#"===l&&(m="0"+h.toLowerCase());case"c":y=!1;case"d":g=!0,p=0;break;case"s":d=-1,h="r"}"$"===l&&(m=o[0],v=o[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=ms.get(h)||ze;var b=u&&f;return function(e){var n=v;if(g&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(d<0){var l=ca.formatPrefix(e,p);e=l.scale(e),n=l.symbol+v}else e*=d;e=h(e,p);var x,_,w=e.lastIndexOf(".");if(w<0){var T=y?e.lastIndexOf("e"):-1;T<0?(x=e,_=""):(x=e.substring(0,T),_=e.substring(T))}else x=e.substring(0,w),_=t+e.substring(w+1);!u&&f&&(x=i(x,1/0));var C=m.length+x.length+_.length+(b?0:o.length),E=C"===a?E+o+e:"^"===a?E.substring(0,C>>=1)+o+e+E.substring(C):o+(b?e:E+e))+n}}}function ze(e){return e+""}function Ue(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function We(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n1)for(;a=u)return-1;if(o=t.charCodeAt(s++),37===o){if(a=t.charAt(s++),i=P[a in bs?t.charAt(s++):a],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.w=T.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.w=_.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){k.lastIndex=0;var r=k.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){C.lastIndex=0;var r=C.exec(t.slice(n));return r?(e.m=E.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,A.c.toString(),t,r)}function l(e,t,r){return n(e,A.x.toString(),t,r)}function u(e,t,r){return n(e,A.X.toString(),t,r)}function c(e,t,n){var r=b.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var f=e.dateTime,p=e.date,h=e.time,d=e.periods,m=e.days,v=e.shortDays,g=e.months,y=e.shortMonths;t.utc=function(e){function n(e){try{gs=Ue;var t=new gs;return t._=e,r(t)}finally{gs=Date}}var r=t(e);return n.parse=function(e){try{gs=Ue;var t=r.parse(e);return t&&t._}finally{gs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ct;var b=ca.map(),x=Ge(m),_=Ye(m),w=Ge(v),T=Ye(v),C=Ge(g),E=Ye(g),k=Ge(y),S=Ye(y);d.forEach(function(e,t){b.set(e.toLowerCase(),t)});var A={a:function(e){return v[e.getDay()]},A:function(e){return m[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:t(f),d:function(e,t){return Ve(e.getDate(),t,2)},e:function(e,t){return Ve(e.getDate(),t,2)},H:function(e,t){return Ve(e.getHours(),t,2)},I:function(e,t){return Ve(e.getHours()%12||12,t,2)},j:function(e,t){return Ve(1+vs.dayOfYear(e),t,3)},L:function(e,t){return Ve(e.getMilliseconds(),t,3)},m:function(e,t){return Ve(e.getMonth()+1,t,2)},M:function(e,t){return Ve(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return Ve(e.getSeconds(),t,2)},U:function(e,t){return Ve(vs.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ve(vs.mondayOfYear(e),t,2)},x:t(p),X:t(h),y:function(e,t){return Ve(e.getFullYear()%100,t,2)},Y:function(e,t){return Ve(e.getFullYear()%1e4,t,4)},Z:lt,"%":function(){return"%"}},P={a:r,A:o,b:i,B:a,c:s,d:nt,e:nt,H:ot,I:ot,j:rt,L:st,m:tt,M:it,p:c,S:at,U:Xe,w:Ke,W:Ze,x:l,X:u,y:Je,Y:Qe,Z:$e,"%":ut};return t}function Ve(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3)}function tt(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nt(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rt(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function ot(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function at(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function st(e,t,n){xs.lastIndex=0;var r=xs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lt(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=wa(t)/60|0,o=wa(t)%60;return n+Ve(r,"0",2)+Ve(o,"0",2)}function ut(e,t,n){_s.lastIndex=0;var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ct(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*n,l=Math.cos(t),u=Math.sin(t),c=i*u,f=o*l+c*Math.cos(s),p=c*a*Math.sin(s);Ss.add(Math.atan2(p,f)), +r=e,o=l,i=u}var t,n,r,o,i;As.point=function(a,s){As.point=e,r=(t=a)*Va,o=Math.cos(s=(n=s)*Va/2+Ua/4),i=Math.sin(s)},As.lineEnd=function(){e(t,n)}}function gt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function yt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function bt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function xt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _t(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function wt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Tt(e){return[Math.atan2(e[1],e[0]),re(e[2])]}function Ct(e,t){return wa(e[0]-t[0])=0;--s)o.point((f=c[s])[0],f[1])}else r(h.x,h.p.x,-1,o);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);o.lineEnd()}}}function Lt(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0){for(_||(i.polygonStart(),_=!0),i.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),h.push(n.filter(Ft))}var h,d,m,v=t(i),g=o.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=p,h=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=u,h=ca.merge(h);var e=Wt(g,d);h.length?(_||(i.polygonStart(),_=!0),Dt(h,Nt,e,n,i)):e&&(_||(i.polygonStart(),_=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),h=d=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},b=It(),x=t(b),_=!1;return y}}function Ft(e){return e.length>1}function It(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:T,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Nt(e,t){return((e=e.x)[0]<0?e[1]-qa-Ba:qa-e[1])-((t=t.x)[0]<0?t[1]-qa-Ba:qa-t[1])}function Bt(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?Ua:-Ua,l=wa(i-n);wa(l-Ua)0?qa:-qa),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&l>=Ua&&(wa(n-o)Ba?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}function Ut(e,t,n,r){var o;if(null==e)o=n*qa,r.point(-Ua,o),r.point(0,o),r.point(Ua,o),r.point(Ua,0),r.point(Ua,-o),r.point(0,-o),r.point(-Ua,-o),r.point(-Ua,0),r.point(-Ua,o);else if(wa(e[0]-t[0])>Ba){var i=e[0]=0?1:-1,T=w*_,C=T>Ua,E=d*b;if(Ss.add(Math.atan2(E*w*Math.sin(T),m*x+E*Math.cos(T))),i+=C?_+w*Wa:_,C^p>=n^g>=n){var k=bt(gt(f),gt(e));wt(k);var S=bt(o,k);wt(S);var A=(C^_>=0?-1:1)*re(S[2]);(r>A||r===A&&(k[0]||k[1]))&&(a+=C^_>=0?1:-1)}if(!v++)break;p=g,d=b,m=x,f=e}}return(i<-Ba||ii}function n(e){var n,i,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(f,p){var h,d=[f,p],m=t(f,p),v=a?m?0:o(f,p):m?o(f+(f<0?Ua:-Ua),p):0;if(!n&&(u=l=m)&&e.lineStart(),m!==l&&(h=r(n,d),(Ct(n,h)||Ct(d,h))&&(d[0]+=Ba,d[1]+=Ba,m=t(d[0],d[1]))),m!==l)c=0,m?(e.lineStart(),h=r(d,n),e.point(h[0],h[1])):(h=r(n,d),e.point(h[0],h[1]),e.lineEnd()),n=h;else if(s&&n&&a^m){var g;v&i||!(g=r(d,n,!0))||(c=0,a?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!m||n&&Ct(n,d)||e.point(d[0],d[1]),n=d,l=m,i=v},lineEnd:function(){l&&e.lineEnd(),n=null},clean:function(){return c|(u&&l)<<1}}}function r(e,t,n){var r=gt(e),o=gt(t),a=[1,0,0],s=bt(r,o),l=yt(s,s),u=s[0],c=l-u*u;if(!c)return!n&&e;var f=i*l/c,p=-i*u/c,h=bt(a,s),d=_t(a,f),m=_t(s,p);xt(d,m);var v=h,g=yt(d,v),y=yt(v,v),b=g*g-y*(yt(d,d)-1);if(!(b<0)){var x=Math.sqrt(b),_=_t(v,(-g-x)/y);if(xt(_,d),_=Tt(_),!n)return _;var w,T=e[0],C=t[0],E=e[1],k=t[1];C0^_[1]<(wa(_[0]-T)Ua^(T<=_[0]&&_[0]<=C)){var M=_t(v,(-g+x)/y);return xt(M,d),[_,Tt(M)]}}}function o(t,n){var r=a?e:Ua-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(e),a=i>0,s=wa(i)>Ba,l=gn(e,6*Va);return Rt(t,n,l,a?[0,-e]:[-Ua,e-Ua])}function qt(e,t,n,r){return function(o){var i,a=o.a,s=o.b,l=a.x,u=a.y,c=s.x,f=s.y,p=0,h=1,d=c-l,m=f-u;if(i=e-l,d||!(i>0)){if(i/=d,d<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=n-l,d||!(i<0)){if(i/=d,d<0){if(i>h)return;i>p&&(p=i)}else if(d>0){if(i0)){if(i/=m,m<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=r-u,m||!(i<0)){if(i/=m,m<0){if(i>h)return;i>p&&(p=i)}else if(m>0){if(i0&&(o.a={x:l+p*d,y:u+p*m}),h<1&&(o.b={x:l+h*d,y:u+h*m}),o}}}}}}function Vt(e,t,n,r){function o(r,o){return wa(r[0]-e)0?0:3:wa(r[0]-n)0?2:1:wa(r[1]-t)0?1:0:o>0?3:2}function i(e,t){return a(e.x,t.x)}function a(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function l(e){for(var t=0,n=v.length,r=e[1],o=0;or&&te(u,i,e)>0&&++t:i[1]<=r&&te(u,i,e)<0&&--t,u=i;return 0!==t}function u(i,s,l,u){var c=0,f=0;if(null==i||(c=o(i,l))!==(f=o(s,l))||a(i,s)<0^l>0){do u.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+l+4)%4)!==f)}else u.point(s[0],s[1])}function c(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function f(e,t){c(e,t)&&s.point(e,t)}function p(){P.point=d,v&&v.push(g=[]),C=!0,T=!1,_=w=NaN}function h(){m&&(d(y,b),x&&T&&S.rejoin(),m.push(S.buffer())),P.point=f,T&&s.lineEnd()}function d(e,t){e=Math.max(-Ws,Math.min(Ws,e)),t=Math.max(-Ws,Math.min(Ws,t));var n=c(e,t);if(v&&g.push([e,t]),C)y=e,b=t,x=n,C=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&T)s.point(e,t);else{var r={a:{x:_,y:w},b:{x:e,y:t}};A(r)?(T||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),E=!1):n&&(s.lineStart(),s.point(e,t),E=!1)}_=e,w=t,T=n}var m,v,g,y,b,x,_,w,T,C,E,k=s,S=It(),A=qt(e,t,n,r),P={point:f,lineStart:p,lineEnd:h,polygonStart:function(){s=S,m=[],v=[],E=!0},polygonEnd:function(){s=k,m=ca.merge(m);var t=l([e,r]),n=E&&t,o=m.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),o&&Dt(m,i,t,u,s),s.polygonEnd()),m=v=g=null}};return P}}function Gt(e){var t=0,n=Ua/3,r=un(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*Ua/180,n=e[1]*Ua/180):[t/Ua*180,n/Ua*180]},o}function Yt(e,t){function n(e,t){var n=Math.sqrt(i-2*o*Math.sin(t))/o;return[n*Math.sin(e*=o),a-n*Math.cos(e)]}var r=Math.sin(e),o=(r+Math.sin(t))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/o,re((i-(e*e+n*n)*o*o)/(2*o))]},n}function Kt(){function e(e,t){qs+=o*e-r*t,r=e,o=t}var t,n,r,o;Xs.point=function(i,a){Xs.point=e,t=r=i,n=o=a},Xs.lineEnd=function(){e(t,n)}}function Xt(e,t){eYs&&(Ys=e),tKs&&(Ks=t)}function Zt(){function e(e,t){a.push("M",e,",",t,i)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function o(){a.push("Z")}var i=Qt(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return i=Qt(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Jt(e,t){Os+=e,Ds+=t,++Ls}function $t(){function e(e,r){var o=e-t,i=r-n,a=Math.sqrt(o*o+i*i);js+=a*(t+e)/2,Rs+=a*(n+r)/2,Fs+=a,Jt(t=e,n=r)}var t,n;Qs.point=function(r,o){Qs.point=e,Jt(t=r,n=o)}}function en(){Qs.point=Jt}function tn(){function e(e,t){var n=e-r,i=t-o,a=Math.sqrt(n*n+i*i);js+=a*(r+e)/2,Rs+=a*(o+t)/2,Fs+=a,a=o*e-r*t,Is+=a*(r+e),Ns+=a*(o+t),Bs+=3*a,Jt(r=e,o=t)}var t,n,r,o;Qs.point=function(i,a){Qs.point=e,Jt(t=r=i,n=o=a)},Qs.lineEnd=function(){e(t,n)}}function nn(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Wa)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function o(){s.point=t}function i(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=t},pointRadius:function(e){return a=e,s},result:T};return s}function rn(e){function t(e){return(s?r:n)(e)}function n(t){return sn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){b=NaN,C.point=i,t.lineStart()}function i(n,r){var i=gt([n,r]),a=e(n,r);o(b,x,y,_,w,T,b=a[0],x=a[1],y=n,_=i[0],w=i[1],T=i[2],s,t),t.point(b,x)}function a(){C.point=n,t.lineEnd()}function l(){r(),C.point=u,C.lineEnd=c}function u(e,t){i(f=e,p=t),h=b,d=x,m=_,v=w,g=T,C.point=i}function c(){o(b,x,y,_,w,T,h,d,f,m,v,g,s,t),C.lineEnd=a,a()}var f,p,h,d,m,v,g,y,b,x,_,w,T,C={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),C.lineStart=l},polygonEnd:function(){t.polygonEnd(),C.lineStart=r}};return C}function o(t,n,r,s,l,u,c,f,p,h,d,m,v,g){var y=c-t,b=f-n,x=y*y+b*b;if(x>4*i&&v--){var _=s+h,w=l+d,T=u+m,C=Math.sqrt(_*_+w*w+T*T),E=Math.asin(T/=C),k=wa(wa(T)-1)i||wa((y*M+b*O)/x-.5)>.3||s*h+l*d+u*m0&&16,t):Math.sqrt(i)},t}function on(e){var t=rn(function(t,n){return e([t*Ga,n*Ga])});return function(e){return cn(t(e))}}function an(e){this.stream=e}function sn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function ln(e){return un(function(){return e})()}function un(e){function t(e){return e=s(e[0]*Va,e[1]*Va),[e[0]*p+l,u-e[1]*p]}function n(e){return e=s.invert((e[0]-l)/p,(u-e[1])/p),e&&[e[0]*Ga,e[1]*Ga]}function r(){s=Mt(a=hn(g,y,b),i);var e=i(m,v);return l=h-e[0]*p,u=d+e[1]*p,o()}function o(){return c&&(c.valid=!1,c=null),t}var i,a,s,l,u,c,f=rn(function(e,t){return e=i(e,t),[e[0]*p+l,u-e[1]*p]}),p=150,h=480,d=250,m=0,v=0,g=0,y=0,b=0,_=Us,w=x,T=null,C=null;return t.stream=function(e){return c&&(c.valid=!1),c=cn(_(a,f(w(e)))),c.valid=!0,c},t.clipAngle=function(e){return arguments.length?(_=null==e?(T=e,Us):Ht((T=+e)*Va),o()):T},t.clipExtent=function(e){return arguments.length?(C=e,w=e?Vt(e[0][0],e[0][1],e[1][0],e[1][1]):x,o()):C},t.scale=function(e){return arguments.length?(p=+e,r()):p},t.translate=function(e){return arguments.length?(h=+e[0],d=+e[1],r()):[h,d]},t.center=function(e){return arguments.length?(m=e[0]%360*Va,v=e[1]%360*Va,r()):[m*Ga,v*Ga]},t.rotate=function(e){return arguments.length?(g=e[0]%360*Va,y=e[1]%360*Va,b=e.length>2?e[2]%360*Va:0,r()):[g*Ga,y*Ga,b*Ga]},ca.rebind(t,f,"precision"),function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function cn(e){return sn(e,function(t,n){e.point(t*Va,n*Va)})}function fn(e,t){return[e,t]}function pn(e,t){return[e>Ua?e-Wa:e<-Ua?e+Wa:e,t]}function hn(e,t,n){return e?t||n?Mt(mn(e),vn(t,n)):mn(e):t||n?vn(t,n):pn}function dn(e){return function(t,n){return t+=e,[t>Ua?t-Wa:t<-Ua?t+Wa:t,n]}}function mn(e){var t=dn(e);return t.invert=dn(-e),t}function vn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*r+s*o;return[Math.atan2(l*i-c*a,s*r-u*o),re(c*i+l*a)]}var r=Math.cos(e),o=Math.sin(e),i=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*i-l*a;return[Math.atan2(l*i+u*a,s*r+c*o),re(c*r-s*o)]},n}function gn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,s){var l=a*t;null!=o?(o=yn(n,o),i=yn(n,i),(a>0?oi)&&(o+=a*Wa)):(o=e+a*Wa,i=e-.5*l);for(var u,c=o;a>0?c>i:c0?t<-qa+Ba&&(t=-qa+Ba):t>qa-Ba&&(t=qa-Ba);var n=a/Math.pow(o(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),o=function(e){return Math.tan(Ua/4+e/2)},i=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(o(t)/o(e)),a=r*Math.pow(o(e),i)/i;return i?(n.invert=function(e,t){var n=a-t,r=ee(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-qa]},n):An}function Sn(e,t){function n(e,t){var n=i-t;return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}var r=Math.cos(e),o=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),i=r/o+e;return wa(o)1&&te(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function jn(e,t){return e[0]-t[0]||e[1]-t[1]}function Rn(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Fn(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,l=e[1],u=n[1],c=t[1]-l,f=r[1]-u,p=(s*(l-u)-f*(o-i))/(f*a-s*c);return[o+p*a,l+p*c]}function In(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Nn(){ir(this),this.edge=this.site=this.circle=null}function Bn(e){var t=fl.pop()||new Nn;return t.site=e,t}function zn(e){Zn(e),ll.remove(e),fl.push(e),ir(e)}function Un(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];zn(e);for(var l=i;l.circle&&wa(n-l.circle.x)Ba)s=s.L;else{if(o=i-qn(s,a),!(o>Ba)){r>-Ba?(t=s.P,n=s):o>-Ba?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Bn(e);if(ll.insert(t,l),t||n){if(t===n)return Zn(t),n=Bn(t.site),ll.insert(l,n),l.edge=n.edge=er(t.site,l.site),Xn(t),void Xn(n);if(!n)return void(l.edge=er(t.site,l.site));Zn(t),Zn(n);var u=t.site,c=u.x,f=u.y,p=e.x-c,h=e.y-f,d=n.site,m=d.x-c,v=d.y-f,g=2*(p*v-h*m),y=p*p+h*h,b=m*m+v*v,x={x:(v*y-h*b)/g+c,y:(p*b-m*y)/g+f};nr(n.edge,u,d,x),l.edge=er(u,e,null,x),n.edge=er(e,d,null,x),Xn(t),Xn(n)}}function Hn(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,l=n.y,u=l-t;if(!u)return s;var c=s-r,f=1/i-1/u,p=c/u;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*u)-l+u/2+o-i/2)))/f+r:(r+s)/2}function qn(e,t){var n=e.N;if(n)return Hn(n,t);var r=e.site;return r.y===t?r.x:1/0}function Vn(e){this.site=e,this.edges=[]}function Gn(e){for(var t,n,r,o,i,a,s,l,u,c,f=e[0][0],p=e[1][0],h=e[0][1],d=e[1][1],m=sl,v=m.length;v--;)if(i=m[v],i&&i.prepare())for(s=i.edges,l=s.length,a=0;aBa||wa(o-n)>Ba)&&(s.splice(a,0,new rr(tr(i.site,c,wa(r-f)Ba?{x:f,y:wa(t-f)Ba?{x:wa(n-d)Ba?{x:p,y:wa(t-p)Ba?{x:wa(n-h)=-za)){var h=l*l+u*u,d=c*c+f*f,m=(f*h-u*d)/p,v=(l*d-c*h)/p,f=v+s,g=pl.pop()||new Kn;g.arc=e,g.site=o,g.x=m+a,g.y=f+Math.sqrt(m*m+v*v),g.cy=f,e.circle=g;for(var y=null,b=cl._;b;)if(g.y=s)return;if(p>d){if(i){if(i.y>=u)return}else i={x:v,y:l};n={x:v,y:u}}else{if(i){if(i.y1)if(p>d){if(i){if(i.y>=u)return}else i={x:(l-o)/r,y:l};n={x:(u-o)/r,y:u}}else{if(i){if(i.y=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.xi||f>a||p=x,T=n>=_,C=T<<1|w,E=C+4;Ci&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:br(n,r)})),i=ml.lastIndex;return i=0&&!(n=ca.interpolators[r](e,t)););return n}function wr(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n=1?1:e(t)}}function Cr(e){return function(t){return 1-e(1-t)}}function Er(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function kr(e){return e*e}function Sr(e){return e*e*e}function Ar(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Pr(e){return function(t){return Math.pow(t,e)}}function Mr(e){return 1-Math.cos(e*qa)}function Or(e){return Math.pow(2,10*(e-1))}function Dr(e){return 1-Math.sqrt(1-e*e)}function Lr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Wa*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Wa/t)}}function jr(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Rr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Fr(e,t){e=ca.hcl(e),t=ca.hcl(t);var n=e.h,r=e.c,o=e.l,i=t.h-n,a=t.c-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return pe(n+i*e,r+a*e,o+s*e)+""}}function Ir(e,t){e=ca.hsl(e),t=ca.hsl(t);var n=e.h,r=e.s,o=e.l,i=t.h-n,a=t.s-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return ce(n+i*e,r+a*e,o+s*e)+""}}function Nr(e,t){e=ca.lab(e),t=ca.lab(t);var n=e.l,r=e.a,o=e.b,i=t.l-n,a=t.a-r,s=t.b-o;return function(e){return de(n+i*e,r+a*e,o+s*e)+""}}function Br(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function zr(e){var t=[e.a,e.b],n=[e.c,e.d],r=Wr(t),o=Ur(t,n),i=Wr(Hr(n,t,-o))||0;t[0]*n[1]180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(qr(n)+"rotate(",null,")")-2,x:br(e,t)})):t&&n.push(qr(n)+"rotate("+t+")")}function Yr(e,t,n,r){e!==t?r.push({i:n.push(qr(n)+"skewX(",null,")")-2,x:br(e,t)}):t&&n.push(qr(n)+"skewX("+t+")")}function Kr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(qr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:br(e[0],t[0])},{i:o-2,x:br(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(qr(n)+"scale("+t+")")}function Xr(e,t){var n=[],r=[];return e=ca.transform(e),t=ca.transform(t),Vr(e.translate,t.translate,n,r),Gr(e.rotate,t.rotate,n,r),Yr(e.skew,t.skew,n,r),Kr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o=0;)n.push(o[r])}function lo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++ao&&(r=n,o=t);return r}function xo(e){return e.reduce(_o,0)}function _o(e,t){return e+t[1]}function wo(e,t){return To(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function To(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function Co(e){return[ca.min(e),ca.max(e)]}function Eo(e,t){return e.value-t.value}function ko(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function So(e,t){e._pack_next=t,t._pack_prev=e}function Ao(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Po(e){function t(e){c=Math.min(e.x-e.r,c),f=Math.max(e.x+e.r,f),p=Math.min(e.y-e.r,p),h=Math.max(e.y+e.r,h)}if((n=e.children)&&(u=n.length)){var n,r,o,i,a,s,l,u,c=1/0,f=-(1/0),p=1/0,h=-(1/0);if(n.forEach(Mo),r=n[0],r.x=-r.r,r.y=0,t(r),u>1&&(o=n[1],o.x=o.r,o.y=0,t(o),u>2))for(i=n[2],Lo(r,o,i),t(i),ko(r,i),r._pack_prev=i,ko(i,o),o=r._pack_next,a=3;a=0;)t=o[i],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Bo(e,t,n){return e.a.parent===t.parent?e.a:n; +}function zo(e){return 1+ca.max(e,function(e){return e.y})}function Uo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Wo(e){var t=e.children;return t&&t.length?Wo(t[0]):e}function Ho(e){var t,n=e.children;return n&&(t=n.length)?Ho(n[t-1]):e}function qo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Vo(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Go(e){var t=e[0],n=e[e.length-1];return t2?Qo:Ko,l=r?Qr:Zr;return a=o(e,t,l,n),s=o(t,e,l,_r),i}function i(e){return a(e)}var a,s;return i.invert=function(e){return s(e)},i.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},i.range=function(e){return arguments.length?(t=e,o()):t},i.rangeRound=function(e){return i.range(e).interpolate(Br)},i.clamp=function(e){return arguments.length?(r=e,o()):r},i.interpolate=function(e){return arguments.length?(n=e,o()):n},i.ticks=function(t){return ni(e,t)},i.tickFormat=function(t,n){return ri(e,t,n)},i.nice=function(t){return ei(e,t),o()},i.copy=function(){return Jo(e,t,n,r)},o()}function $o(e,t){return ca.rebind(e,t,"range","rangeRound","interpolate","clamp")}function ei(e,t){return Xo(e,Zo(ti(e,t)[2])),Xo(e,Zo(ti(e,t)[2])),e}function ti(e,t){null==t&&(t=10);var n=Go(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ni(e,t){return ca.range.apply(ca,ti(e,t))}function ri(e,t,n){var r=ti(e,t);if(n){var o=ds.exec(n);if(o.shift(),"s"===o[8]){var i=ca.formatPrefix(Math.max(wa(r[0]),wa(r[1])));return o[7]||(o[7]="."+oi(i.scale(r[2]))),o[8]="f",n=ca.format(o.join("")),function(e){return n(i.scale(e))+i.symbol}}o[7]||(o[7]="."+ii(o[8],r)),n=o.join("")}else n=",."+oi(r[2])+"f";return ca.format(n)}function oi(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ii(e,t){var n=oi(t[2]);return e in Sl?Math.abs(n-oi(Math.max(wa(t[0]),wa(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ai(e,t,n,r){function o(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(o(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(o)),a):t},a.nice=function(){var t=Xo(r.map(o),n?Math:Pl);return e.domain(t),r=t.map(i),a},a.ticks=function(){var e=Go(r),a=[],s=e[0],l=e[1],u=Math.floor(o(s)),c=Math.ceil(o(l)),f=t%1?2:t;if(isFinite(c-u)){if(n){for(;u0;p--)a.push(i(u)*p);for(u=0;a[u]l;c--);a=a.slice(u,c)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Al;arguments.length<2?n=Al:"function"!=typeof n&&(n=ca.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/i(Math.round(o(e)));return a*t0?s[n-1]:e[0],n0?0:1}function _i(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),l=s*a,u=-s*i,c=e[0]+l,f=e[1]+u,p=t[0]+l,h=t[1]+u,d=(c+p)/2,m=(f+h)/2,v=p-c,g=h-f,y=v*v+g*g,b=n-r,x=c*h-p*f,_=(g<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*g-v*_)/y,T=(-x*v-g*_)/y,C=(x*g+v*_)/y,E=(-x*v+g*_)/y,k=w-d,S=T-m,A=C-d,P=E-m;return k*k+S*S>A*A+P*P&&(w=C,T=E),[[w-l,T-u],[w*n/b,T*n/b]]}function wi(e){function t(t){function a(){u.push("M",i(e(c),s))}for(var l,u=[],c=[],f=-1,p=t.length,h=Ae(n),d=Ae(r);++f1?e.join("L"):e+"Z"}function Ci(e){return e.join("L")+"Z"}function Ei(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t1&&o.push("H",r[0]),o.join("")}function ki(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t1){s=t[1],i=e[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var u=2;u9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=l;)o=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Wi(e){return e.length<3?Ti(e):e[0]+Oi(e,Ui(e))}function Hi(e){for(var t,n,r,o=-1,i=e.length;++o0;)h[--s].call(e,a);if(i>=1)return m.event&&m.event.end.call(e,e.__data__,t),--d.count?delete d[r]:delete e[n],1}var l,u,c,p,h,d=e[n]||(e[n]={active:0,count:0}),m=d[r];m||(l=o.time,u=Le(i,0,l),m=d[r]={tween:new f,time:l,timer:u,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++d.count)}function ra(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function oa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ia(e){return e.toISOString()}function aa(e,t,n){function r(t){return e(t)}function o(e,n){var r=e[1]-e[0],o=r/n,i=ca.bisect(eu,o);return i==eu.length?[t.year,ti(e.map(function(e){return e/31536e6}),n)[2]]:i?t[o/eu[i-1]1?{floor:function(t){for(;n(t=e.floor(t));)t=sa(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=sa(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Go(r.domain()),i=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],sa(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return aa(e.copy(),t,n)},$o(r,e)}function sa(e){return new Date(e)}function la(e){return JSON.parse(e.responseText)}function ua(e){var t=ha.createRange();return t.selectNode(ha.body),t.createContextualFragment(e.responseText)}var ca={version:"3.5.16"},fa=[].slice,pa=function(e){return fa.call(e)},ha=this.document;if(ha)try{pa(ha.documentElement.childNodes)[0].nodeType}catch(da){pa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),ha)try{ha.createElement("DIV").style.setProperty("opacity",0,"")}catch(ma){var va=this.Element.prototype,ga=va.setAttribute,ya=va.setAttributeNS,ba=this.CSSStyleDeclaration.prototype,xa=ba.setProperty;va.setAttribute=function(e,t){ga.call(this,e,t+"")},va.setAttributeNS=function(e,t,n){ya.call(this,e,t,n+"")},ba.setProperty=function(e,t,n){xa.call(this,e,t+"",n)}}ca.ascending=o,ca.descending=function(e,t){return te?1:t>=e?0:NaN},ca.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},ca.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},ca.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return l/(c-1)},ca.deviation=function(){var e=ca.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _a=s(o);ca.bisectLeft=_a.left,ca.bisect=ca.bisectRight=_a.right,ca.bisector=function(e){return s(1===e.length?function(t,n){return o(e(t),n)}:e)},ca.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},ca.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},ca.pairs=function(e){for(var t,n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n};var wa=Math.abs;ca.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,o=[],i=u(wa(n)),a=-1;if(e*=i,t*=i,n*=i,n<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var l,u,c,p,h=-1,d=a.length,m=i[s++],v=new f;++h=i.length)return e;var r=[],o=a[n++];return e.forEach(function(e,o){r.push({key:e,values:t(o,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(t,n){return e(n,t,0)},o.entries=function(n){return t(e(ca.map,n,0),0)},o.key=function(e){return i.push(e),o},o.sortKeys=function(e){return a[i.length-1]=e,o},o.sortValues=function(e){return n=e,o},o.rollup=function(e){return r=e,o},o},ca.set=function(e){var t=new b;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},ca.event=null,ca.requote=function(e){return e.replace(ka,"\\$&")};var ka=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Aa=function(e,t){return t.querySelector(e)},Pa=function(e,t){return t.querySelectorAll(e)},Ma=function(e,t){var n=e.matches||e[w(e,"matchesSelector")];return(Ma=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Aa=function(e,t){return Sizzle(e,t)[0]||null},Pa=Sizzle,Ma=Sizzle.matchesSelector),ca.selection=function(){return ca.select(ha.documentElement)};var Oa=ca.selection.prototype=[];Oa.select=function(e){var t,n,r,o,i=[];e=M(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),La.hasOwnProperty(n)?{space:La[n],local:e}:e}},Oa.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=ca.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(D(t,e[t]));return this}return this.each(D(e,t))},Oa.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=R(e)).length,o=-1;if(t=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Oa.sort=function(e){e=q.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(t=t.transition().duration(P)),t.call(e.event)}function s(){_&&_.domain(x.range().map(function(e){return(e-C.x)/C.k}).map(x.invert)),T&&T.domain(w.range().map(function(e){return(e-C.y)/C.k}).map(w.invert))}function l(e){M++||e({type:"zoomstart"})}function u(e){s(),e({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function c(e){--M||(e({type:"zoomend"}),v=null)}function f(){function e(){s=1,i(ca.mouse(o),p),u(a)}function n(){f.on(D,null).on(L,null),h(s),c(a)}var o=this,a=R.of(o,arguments),s=0,f=ca.select(r(o)).on(D,e).on(L,n),p=t(ca.mouse(o)),h=Q(o);ql.call(o),l(a)}function p(){function e(){var e=ca.touches(d);return h=C.k,e.forEach(function(e){e.identifier in v&&(v[e.identifier]=t(e))}),e}function n(){var t=ca.event.target;ca.select(t).on(x,r).on(_,s),w.push(t);for(var n=ca.event.changedTouches,o=0,i=n.length;o1){var c=l[0],f=l[1],p=c[0]-f[0],h=c[1]-f[1];g=p*p+h*h}}function r(){var e,t,n,r,a=ca.touches(d);ql.call(d);for(var s=0,l=a.length;s=u)return a;if(o)return o=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ms=ca.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=ca.round(e,Ie(e,t))).toFixed(Math.max(0,Math.min(20,Ie(e*(1+1e-15),t))))}}),vs=ca.time={},gs=Date;Ue.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ys.setUTCDate.apply(this._,arguments)},setDay:function(){ys.setUTCDay.apply(this._,arguments)},setFullYear:function(){ys.setUTCFullYear.apply(this._,arguments)},setHours:function(){ys.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ys.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ys.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ys.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ys.setUTCSeconds.apply(this._,arguments)},setTime:function(){ys.setTime.apply(this._,arguments)}};var ys=Date.prototype;vs.year=We(function(e){return e=vs.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),vs.years=vs.year.range,vs.years.utc=vs.year.utc.range,vs.day=We(function(e){var t=new gs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),vs.days=vs.day.range,vs.days.utc=vs.day.utc.range,vs.dayOfYear=function(e){var t=vs.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=vs[e]=We(function(e){return(e=vs.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=vs.year(e).getDay();return Math.floor((vs.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});vs[e+"s"]=n.range,vs[e+"s"].utc=n.utc.range,vs[e+"OfYear"]=function(e){var n=vs.year(e).getDay();return Math.floor((vs.dayOfYear(e)+(n+t)%7)/7)}}),vs.week=vs.sunday,vs.weeks=vs.sunday.range,vs.weeks.utc=vs.sunday.utc.range,vs.weekOfYear=vs.sundayOfYear;var bs={"-":"",_:" ",0:"0"},xs=/^\s*\d+/,_s=/^%/;ca.locale=function(e){return{numberFormat:Be(e),timeFormat:qe(e)}};var ws=ca.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ca.format=ws.numberFormat,ca.geo={},ft.prototype={s:0,t:0,add:function(e){pt(e,this.t,Ts),pt(Ts.s,this.s,this),this.s?this.t+=Ts.t:this.s=Ts.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ts=new ft;ca.geo.stream=function(e,t){e&&Cs.hasOwnProperty(e.type)?Cs[e.type](e,t):ht(e,t)};var Cs={Feature:function(e,t){ht(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rh&&(h=t)}function t(t,n){var r=gt([t*Va,n*Va]);if(g){var o=bt(g,r),i=[o[1],-o[0],0],a=bt(i,o);wt(a),a=Tt(a);var l=t-d,u=l>0?1:-1,m=a[0]*Ga*u,v=wa(l)>180;if(v^(u*dh&&(h=y)}else if(m=(m+360)%360-180,v^(u*dh&&(h=n);v?ts(c,p)&&(p=t):s(t,p)>s(c,p)&&(c=t):p>=c?(tp&&(p=t)):t>d?s(c,t)>s(c,p)&&(p=t):s(t,p)>s(c,p)&&(c=t)}else e(t,n);g=r,d=t}function n(){_.point=t}function r(){x[0]=c,x[1]=p,_.point=e,g=null}function o(e,n){if(g){var r=e-d;y+=wa(r)>180?r+(r>0?360:-360):r}else m=e,v=n;As.point(e,n),t(e,n)}function i(){As.lineStart()}function a(){o(m,v),As.lineEnd(),wa(y)>Ba&&(c=-(p=180)),x[0]=c,x[1]=p,g=null}function s(e,t){return(t-=e)<0?t+360:t}function l(e,t){return e[0]-t[0]}function u(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eBa?h=90:y<-Ba&&(f=-90),x[0]=c,x[1]=p}};return function(e){h=p=-(c=f=1/0),b=[],ca.geo.stream(e,_);var t=b.length;if(t){b.sort(l);for(var n,r=1,o=b[0],i=[o];rs(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,d=-(1/0),t=i.length-1,r=0,o=i[t];r<=t;o=n,++r)n=i[r],(a=s(o[1],n[0]))>d&&(d=a,c=n[0],p=o[1])}return b=x=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[p,h]]}}(),ca.geo.centroid=function(e){Ps=Ms=Os=Ds=Ls=js=Rs=Fs=Is=Ns=Bs=0,ca.geo.stream(e,zs);var t=Is,n=Ns,r=Bs,o=t*t+n*n+r*r;return o=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},e.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),e):i.precision()},e.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),e.translate(i.translate())):i.scale()},e.translate=function(t){if(!arguments.length)return i.translate();var u=i.scale(),c=+t[0],f=+t[1];return n=i.translate(t).clipExtent([[c-.455*u,f-.238*u],[c+.455*u,f+.238*u]]).stream(l).point,r=a.translate([c-.307*u,f+.201*u]).clipExtent([[c-.425*u+Ba,f+.12*u+Ba],[c-.214*u-Ba,f+.234*u-Ba]]).stream(l).point,o=s.translate([c-.205*u,f+.212*u]).clipExtent([[c-.214*u+Ba,f+.166*u+Ba],[c-.115*u-Ba,f+.234*u-Ba]]).stream(l).point,e},e.scale(1070)};var Hs,qs,Vs,Gs,Ys,Ks,Xs={point:T,lineStart:T,lineEnd:T,polygonStart:function(){qs=0,Xs.lineStart=Kt},polygonEnd:function(){Xs.lineStart=Xs.lineEnd=Xs.point=T,Hs+=wa(qs/2)}},Zs={point:Xt,lineStart:T,lineEnd:T,polygonStart:T,polygonEnd:T},Qs={point:Jt,lineStart:$t,lineEnd:en,polygonStart:function(){Qs.lineStart=tn},polygonEnd:function(){Qs.point=Jt,Qs.lineStart=$t,Qs.lineEnd=en}};ca.geo.path=function(){function e(e){return e&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),ca.geo.stream(e,a)),i.result()}function t(){return a=null,e}var n,r,o,i,a,s=4.5;return e.area=function(e){return Hs=0,ca.geo.stream(e,o(Xs)),Hs},e.centroid=function(e){return Os=Ds=Ls=js=Rs=Fs=Is=Ns=Bs=0,ca.geo.stream(e,o(Qs)),Bs?[Is/Bs,Ns/Bs]:Fs?[js/Fs,Rs/Fs]:Ls?[Os/Ls,Ds/Ls]:[NaN,NaN]},e.bounds=function(e){return Ys=Ks=-(Vs=Gs=1/0),ca.geo.stream(e,o(Zs)),[[Vs,Gs],[Ys,Ks]]},e.projection=function(e){return arguments.length?(o=(n=e)?e.stream||on(e):x,t()):n},e.context=function(e){return arguments.length?(i=null==(r=e)?new Zt:new nn(e),"function"!=typeof s&&i.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),e):s},e.projection(ca.geo.albersUsa()).context(null)},ca.geo.transform=function(e){return{stream:function(t){var n=new an(t);for(var r in e)n[r]=e[r];return n}}},an.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ca.geo.projection=ln,ca.geo.projectionMutator=un,(ca.geo.equirectangular=function(){return ln(fn)}).raw=fn.invert=fn,ca.geo.rotation=function(e){function t(t){return t=e(t[0]*Va,t[1]*Va),t[0]*=Ga,t[1]*=Ga,t}return e=hn(e[0]%360*Va,e[1]*Va,e.length>2?e[2]*Va:0),t.invert=function(t){return t=e.invert(t[0]*Va,t[1]*Va),t[0]*=Ga,t[1]*=Ga,t},t},pn.invert=fn,ca.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=hn(-e[0]*Va,-e[1]*Va,0).invert,o=[];return n(null,null,1,{point:function(e,n){o.push(e=t(e,n)),e[0]*=Ga,e[1]*=Ga}}),{type:"Polygon",coordinates:[o]}}var t,n,r=[0,0],o=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=gn((t=+r)*Va,o*Va),e):t},e.precision=function(r){return arguments.length?(n=gn(t*Va,(o=+r)*Va),e):o},e.angle(90)},ca.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Va,o=e[1]*Va,i=t[1]*Va,a=Math.sin(r),s=Math.cos(r),l=Math.sin(o),u=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=u*c-l*f*s)*n),l*c+u*f*s)},ca.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return ca.range(Math.ceil(i/v)*v,o,v).map(p).concat(ca.range(Math.ceil(u/g)*g,l,g).map(h)).concat(ca.range(Math.ceil(r/d)*d,n,d).filter(function(e){return wa(e%v)>Ba}).map(c)).concat(ca.range(Math.ceil(s/m)*m,a,m).filter(function(e){return wa(e%g)>Ba}).map(f))}var n,r,o,i,a,s,l,u,c,f,p,h,d=10,m=d,v=90,g=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(h(l).slice(1),p(o).reverse().slice(1),h(u).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],u=+t[0][1],l=+t[1][1],i>o&&(t=i,i=o,o=t),u>l&&(t=u,u=l,l=t),e.precision(y)):[[i,u],[o,l]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(y)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(v=+t[0],g=+t[1],e):[v,g]},e.minorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],e):[d,m]},e.precision=function(t){return arguments.length?(y=+t,c=bn(s,a,90),f=xn(r,n,y),p=bn(u,l,90),h=xn(i,o,y),e):y},e.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},ca.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||o.apply(this,arguments)]}}var t,n,r=_n,o=wn;return e.distance=function(){return ca.geo.distance(t||r.apply(this,arguments),n||o.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(o=t,n="function"==typeof t?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},ca.geo.interpolate=function(e,t){return Tn(e[0]*Va,e[1]*Va,t[0]*Va,t[1]*Va)},ca.geo.length=function(e){return Js=0,ca.geo.stream(e,$s),Js};var Js,$s={sphere:T,point:T,lineStart:Cn,lineEnd:T,polygonStart:T,polygonEnd:T},el=En(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(ca.geo.azimuthalEqualArea=function(){return ln(el)}).raw=el;var tl=En(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},x);(ca.geo.azimuthalEquidistant=function(){return ln(tl)}).raw=tl,(ca.geo.conicConformal=function(){return Gt(kn)}).raw=kn,(ca.geo.conicEquidistant=function(){return Gt(Sn)}).raw=Sn;var nl=En(function(e){return 1/e},Math.atan);(ca.geo.gnomonic=function(){return ln(nl)}).raw=nl,An.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-qa]},(ca.geo.mercator=function(){return Pn(An)}).raw=An;var rl=En(function(){return 1},Math.asin);(ca.geo.orthographic=function(){return ln(rl)}).raw=rl;var ol=En(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(ca.geo.stereographic=function(){return ln(ol)}).raw=ol,Mn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-qa]},(ca.geo.transverseMercator=function(){var e=Pn(Mn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Mn,ca.geom={},ca.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,o=Ae(n),i=Ae(r),a=e.length,s=[],l=[];for(t=0;t=0;--t)h.push(e[s[u[t]][2]]);for(t=+f;t=r&&u.x<=i&&u.y>=o&&u.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];c.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/Ba)*Ba,y:Math.round(a(e,t)/Ba)*Ba,i:t}})}var r=On,o=Dn,i=r,a=o,s=hl;return e?t(e):(t.links=function(e){return ur(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return ur(n(e)).cells.forEach(function(n,r){for(var o,i,a=n.site,s=n.edges.sort(Yn),l=-1,u=s.length,c=s[u-1].edge,f=c.l===a?c.r:c.l;++l=u,p=r>=c,h=p<<1|f;e.leaf=!1,e=e.nodes[h]||(e.nodes[h]=dr()),f?o=u:s=u,p?a=c:l=c,i(e,t,n,r,o,a,s,l)}var c,f,p,h,d,m,v,g,y,b=Ae(s),x=Ae(l);if(null!=t)m=t,v=n,g=r,y=o;else if(g=y=-(m=v=1/0),f=[],p=[],d=e.length,a)for(h=0;hg&&(g=c.x),c.y>y&&(y=c.y),f.push(c.x),p.push(c.y);else for(h=0;hg&&(g=_),w>y&&(y=w),f.push(_),p.push(w)}var T=g-m,C=y-v;T>C?y=v+T:g=m+C;var E=dr();if(E.add=function(e){i(E,e,+b(e,++h),+x(e,h),m,v,g,y)},E.visit=function(e){mr(e,E,m,v,g,y)},E.find=function(e){return vr(E,e[0],e[1],m,v,g,y)},h=-1,null==t){for(;++h=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gl.get(n)||vl,r=yl.get(r)||x,Tr(r(n.apply(null,fa.call(arguments,1))))},ca.interpolateHcl=Fr,ca.interpolateHsl=Ir,ca.interpolateLab=Nr,ca.interpolateRound=Br,ca.transform=function(e){var t=ha.createElementNS(ca.ns.prefix.svg,"g");return(ca.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new zr(n?n.matrix:bl)})(e)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bl={a:1,b:0,c:0,d:1,e:0,f:0};ca.interpolateTransform=Xr,ca.layout={},ca.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n0?o=e:(n.c=null,n.t=NaN,n=null,u.end({type:"end",alpha:o=0})):e>0&&(u.start({type:"start",alpha:o=e}),n=Le(l.tick)),l):o},l.start=function(){function e(e,r){if(!n){for(n=new Array(o),l=0;l=0;)a.push(c=u[l]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=u}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return lo(o,function(e){var n,o;t&&(n=e.children)&&n.sort(t),r&&(o=e.parent)&&(o.value+=e.value)}),s}var t=fo,n=uo,r=co;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(so(t,function(e){e.children&&(e.value=0)}),lo(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},ca.layout.partition=function(){function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,l,u=-1;for(r=t.value?r/t.value:0;++us&&(s=r),a.push(r)}for(n=0;n0)for(i=-1;++i=c[0]&&s<=c[1]&&(a=l[ca.bisect(f,s,1,h)-1],a.y+=d,a.push(e[i]));return l}var t=!0,n=Number,r=Co,o=wo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Ae(t),e):r},e.bins=function(t){return arguments.length?(o="number"==typeof t?function(e){return To(e,t)}:Ae(t),e):o},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},ca.layout.pack=function(){function e(e,i){var a=n.call(this,e,i),s=a[0],l=o[0],u=o[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,lo(s,function(e){e.r=+c(e.value)}),lo(s,Po),r){var f=r*(t?1:Math.max(2*s.r/l,2*s.r/u))/2;lo(s,function(e){e.r+=f}),lo(s,Po),lo(s,function(e){e.r-=f})}return Do(s,l/2,u/2,t?1:1/Math.max(2*s.r/l,2*s.r/u)),a}var t,n=ca.layout.hierarchy().sort(Eo),r=0,o=[1,1];return e.size=function(t){return arguments.length?(o=t,e):o},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ao(e,n)},ca.layout.tree=function(){function e(e,o){var c=a.call(this,e,o),f=c[0],p=t(f);if(lo(p,n),p.parent.m=-p.z,so(p,r),u)so(f,i);else{var h=f,d=f,m=f;so(f,function(e){e.xd.x&&(d=e),e.depth>m.depth&&(m=e)});var v=s(h,d)/2-h.x,g=l[0]/(d.x+s(d,h)/2+v),y=l[1]/(m.depth||1);so(f,function(e){e.x=(e.x+v)*g,e.y=e.depth*y})}return c}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a0&&(Io(Bo(a,e,n),e,r),u+=r,c+=r),f+=a.m,u+=o.m,p+=l.m,c+=i.m;a&&!Fo(i)&&(i.t=a,i.m+=f-c),o&&!Ro(l)&&(l.t=o,l.m+=u-p,n=e)}return n}function i(e){e.x*=l[0],e.y=e.depth*l[1]}var a=ca.layout.hierarchy().sort(null).value(null),s=jo,l=[1,1],u=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(u=null==(l=t)?i:null,e):u?null:l},e.nodeSize=function(t){return arguments.length?(u=null==(l=t)?null:i,e):u?l:null},ao(e,a)},ca.layout.cluster=function(){function e(e,i){var a,s=t.call(this,e,i),l=s[0],u=0;lo(l,function(e){var t=e.children;t&&t.length?(e.x=Uo(t),e.y=zo(t)):(e.x=a?u+=n(e,a):0,e.y=0,a=e)});var c=Wo(l),f=Ho(l),p=c.x-n(c,f)/2,h=f.x+n(f,c)/2;return lo(l,o?function(e){e.x=(e.x-l.x)*r[0],e.y=(l.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(l.y?e.y/l.y:1))*r[1]}),s}var t=ca.layout.hierarchy().sort(null).value(null),n=jo,r=[1,1],o=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(o=null==(r=t),e):o?null:r},e.nodeSize=function(t){return arguments.length?(o=null!=(r=t),e):o?r:null},ao(e,t)},ca.layout.treemap=function(){function e(e,t){for(var n,r,o=-1,i=e.length;++o0;)c.push(a=p[l-1]),c.area+=a.area,"squarify"!==h||(s=r(c,m))<=d?(p.pop(),d=s):(c.area-=c.pop().area,o(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,d=1/0);c.length&&(o(c,m,u,!0),c.length=c.area=0),i.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var i,a=f(t),s=r.slice(),l=[];for(e(s,a.dx*a.dy/t.value),l.area=0;i=s.pop();)l.push(i),l.area+=i.area,null!=i.z&&(o(l,i.z?a.dx:a.dy,a,!s.length),l.length=l.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++ao&&(o=n));return r*=r,t*=t,r?Math.max(t*o*d/r,r/(t*i*d)):1/0}function o(e,t,n,r){var o,i=-1,a=e.length,s=n.x,u=n.y,c=t?l(e.area/t):0;if(t==n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=ca.random.normal.apply(ca,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=ca.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;nf?0:1;if(u=Ha)return t(u,h)+(e?t(e,1-h):"")+"Z";var d,m,v,g,y,b,x,_,w,T,C,E,k=0,S=0,A=[];if((g=(+l.apply(this,arguments)||0)/2)&&(v=i===jl?Math.sqrt(e*e+u*u):+i.apply(this,arguments),h||(S*=-1),u&&(S=re(v/u*Math.sin(g))),e&&(k=re(v/e*Math.sin(g)))),u){y=u*Math.cos(c+S),b=u*Math.sin(c+S),x=u*Math.cos(f-S),_=u*Math.sin(f-S);var P=Math.abs(f-c-2*S)<=Ua?0:1;if(S&&xi(y,b,x,_)===h^P){var M=(c+f)/2;y=u*Math.cos(M),b=u*Math.sin(M),x=_=null}}else y=b=0;if(e){w=e*Math.cos(f-k),T=e*Math.sin(f-k),C=e*Math.cos(c+k),E=e*Math.sin(c+k);var O=Math.abs(c-f+2*k)<=Ua?0:1;if(k&&xi(w,T,C,E)===1-h^O){var D=(c+f)/2;w=e*Math.cos(D),T=e*Math.sin(D),C=E=null}}else w=T=0;if(p>Ba&&(d=Math.min(Math.abs(u-e)/2,+o.apply(this,arguments)))>.001){m=eUa)+",1 "+t}function o(e,t,n,r){return"Q 0,0 "+r}var i=_n,a=wn,s=Vi,l=gi,u=yi;return e.radius=function(t){return arguments.length?(s=Ae(t),e):s},e.source=function(t){return arguments.length?(i=Ae(t),e):i},e.target=function(t){return arguments.length?(a=Ae(t),e):a},e.startAngle=function(t){return arguments.length?(l=Ae(t),e):l},e.endAngle=function(t){return arguments.length?(u=Ae(t),e):u},e},ca.svg.diagonal=function(){function e(e,o){var i=t.call(this,e,o),a=n.call(this,e,o),s=(i.y+a.y)/2,l=[i,{x:i.x,y:s},{x:a.x,y:s},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=_n,n=wn,r=Gi;return e.source=function(n){return arguments.length?(t=Ae(n),e):t},e.target=function(t){return arguments.length?(n=Ae(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},ca.svg.diagonal.radial=function(){var e=ca.svg.diagonal(),t=Gi,n=e.projection;return e.projection=function(e){return arguments.length?n(Yi(t=e)):t},e},ca.svg.symbol=function(){function e(e,r){return(Bl.get(t.call(this,e,r))||Zi)(n.call(this,e,r))}var t=Xi,n=Ki;return e.type=function(n){return arguments.length?(t=Ae(n),e):t},e.size=function(t){return arguments.length?(n=Ae(t),e):n},e};var Bl=ca.map({circle:Zi,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Ul)),n=t*Ul;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/zl),n=t*zl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/zl),n=t*zl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});ca.svg.symbolTypes=Bl.keys();var zl=Math.sqrt(3),Ul=Math.tan(30*Va);Oa.transition=function(e){for(var t,n,r=Wl||++Gl,o=ta(e),i=[],a=Hl||{time:Date.now(),ease:Ar,delay:0,duration:250},s=-1,l=this.length;++srect,.s>rect").attr("width",f[1]-f[0])}function o(e){e.select(".extent").attr("y",p[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function i(){function i(){32==ca.event.keyCode&&(P||(b=null,O[0]-=f[1],O[1]-=p[1],P=2),k())}function m(){32==ca.event.keyCode&&2==P&&(O[0]+=f[1],O[1]+=p[1],P=0,k())}function v(){var e=ca.mouse(_),r=!1;x&&(e[0]+=x[0],e[1]+=x[1]),P||(ca.event.altKey?(b||(b=[(f[0]+f[1])/2,(p[0]+p[1])/2]),O[0]=f[+(e[0]=2)return!1;e[n]=r}return!0}):w.filter(function(e){for(var t=0;t<=a;++t){var n=y[e[t]];if(n<0)return!1;e[t]=n}return!0}),1&a)for(var f=0;f0)return o(0|e,t);break;case"object":if("number"==typeof e.length)return r(e,t,0)}return[]}t.exports=i},{}],116:[function(t,n,r){(function(r,o){/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE + * @version 3.1.2 + */ +(function(){"use strict";function i(e){return"function"==typeof e||"object"==typeof e&&null!==e}function a(e){return"function"==typeof e}function s(e){G=e}function l(e){Z=e}function u(){return function(){r.nextTick(d)}}function c(){return function(){V(d)}}function f(){var e=0,t=new $(d),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function p(){var e=new MessageChannel;return e.port1.onmessage=d,function(){e.port2.postMessage(0)}}function h(){return function(){setTimeout(d,1)}}function d(){for(var e=0;e13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}t.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(e=+e,0===e&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},{}],118:[function(e,t,n){"use strict";function r(e,t,n,r,o){this.gl=e,this.type=t,this.handle=n,this.length=r,this.usage=o}function o(e,t,n,r,o,i){var a=o.length*o.BYTES_PER_ELEMENT;if(i<0)return e.bufferData(t,o,r),a;if(a+i>n)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return e.bufferSubData(t,i,o),n}function i(e,t){for(var n=l.malloc(e.length,t),r=e.length,o=0;o=0;--r){if(t[r]!==n)return!1;n*=e[r]}return!0}function s(e,t,n,o){if(n=n||e.ARRAY_BUFFER,o=o||e.DYNAMIC_DRAW,n!==e.ARRAY_BUFFER&&n!==e.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(o!==e.DYNAMIC_DRAW&&o!==e.STATIC_DRAW&&o!==e.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var i=e.createBuffer(),a=new r(e,n,i,0,o);return a.update(t),a}var l=e("typedarray-pool"),u=e("ndarray-ops"),c=e("ndarray"),f=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"],p=r.prototype;p.bind=function(){this.gl.bindBuffer(this.type,this.handle)},p.unbind=function(){this.gl.bindBuffer(this.type,null)},p.dispose=function(){this.gl.deleteBuffer(this.handle)},p.update=function(e,t){if("number"!=typeof t&&(t=-1),this.bind(),"object"==typeof e&&"undefined"!=typeof e.shape){var n=e.dtype;if(f.indexOf(n)<0&&(n="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var r=gl.getExtension("OES_element_index_uint");n=r&&"uint16"!==n?"uint32":"uint16"}if(n===e.dtype&&a(e.shape,e.stride))0===e.offset&&e.data.length===e.shape[0]?this.length=o(this.gl,this.type,this.length,this.usage,e.data,t):this.length=o(this.gl,this.type,this.length,this.usage,e.data.subarray(e.offset,e.shape[0]),t);else{var s=l.malloc(e.size,n),p=c(s,e.shape);u.assign(p,e),t<0?this.length=o(this.gl,this.type,this.length,this.usage,s,t):this.length=o(this.gl,this.type,this.length,this.usage,s.subarray(0,e.size),t),l.free(s)}}else if(Array.isArray(e)){var h;h=this.type===this.gl.ELEMENT_ARRAY_BUFFER?i(e,"uint16"):i(e,"float32"),t<0?this.length=o(this.gl,this.type,this.length,this.usage,h,t):this.length=o(this.gl,this.type,this.length,this.usage,h.subarray(0,e.length),t),l.free(h)}else if("object"==typeof e&&"number"==typeof e.length)this.length=o(this.gl,this.type,this.length,this.usage,e,t);else{if("number"!=typeof e&&void 0!==e)throw new Error("gl-buffer: Invalid data type");if(t>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");e=0|e,e<=0&&(e=1),this.gl.bufferData(this.type,0|e,this.usage),this.length=e}},t.exports=s},{ndarray:253,"ndarray-ops":252,"typedarray-pool":278}],119:[function(e,t,n){"use strict";function r(e,t,n){this.plot=e,this.shader=t,this.buffer=n,this.bounds=[1/0,1/0,-(1/0),-(1/0)],this.numPoints=0,this.color=[0,0,0,1]}function o(e,t){var n=i(e.gl,l.vertex,l.fragment),o=a(e.gl),s=new r(e,n,o);return s.update(t),e.addObject(s),s}var i=e("gl-shader"),a=e("gl-buffer"),s=e("typedarray-pool"),l=e("./lib/shaders");t.exports=o;var u=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]],c=r.prototype;c.draw=function(){var e=[1,0,0,0,1,0,0,0,1],t=[1,1];return function(){var n=this.plot,r=this.shader,o=this.buffer,i=this.bounds,a=this.numPoints;if(a){var s=n.gl,l=n.dataBox,c=n.viewBox,f=n.pixelRatio,p=i[2]-i[0],h=i[3]-i[1],d=l[2]-l[0],m=l[3]-l[1];e[0]=2*p/d,e[4]=2*h/m,e[6]=2*(i[0]-l[0])/d-1,e[7]=2*(i[1]-l[1])/m-1;var v=c[2]-c[0],g=c[3]-c[1];t[0]=2*f/v,t[1]=2*f/g,o.bind(),r.bind(),r.uniforms.viewTransform=e,r.uniforms.pixelScale=t,r.uniforms.color=this.color,r.attributes.position.pointer(s.FLOAT,!1,16,0),r.attributes.pixelOffset.pointer(s.FLOAT,!1,16,8),s.drawArrays(s.TRIANGLES,0,a*u.length)}}}(),c.drawPick=function(e){return e},c.pick=function(e,t){return null},c.update=function(e){e=e||{};var t,n,r,o=e.positions||[],i=e.errors||[],a=1;"lineWidth"in e&&(a=+e.lineWidth);var l=5;"capSize"in e&&(l=+e.capSize),this.color=(e.color||[0,0,0,1]).slice();var c=this.bounds=[1/0,1/0,-(1/0),-(1/0)],f=this.numPoints=o.length>>1;for(t=0;t0&&(C*=b),E<0?E*=x:E>0&&(E*=_),v[g++]=p*(n-d+C),v[g++]=h*(r-m+E),v[g++]=a*T[2]+(l+a)*T[4],v[g++]=a*T[3]+(l+a)*T[5]}}this.buffer.update(v),s.free(v)},c.dispose=function(){this.plot.removeObject(this),this.shader.dispose(),this.buffer.dispose()}},{"./lib/shaders":120,"gl-buffer":118,"gl-shader":197,"typedarray-pool":278}],120:[function(e,t,n){t.exports={vertex:"precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec2 pixelOffset;\n\nuniform mat3 viewTransform;\nuniform vec2 pixelScale;\n\nvoid main() {\n vec3 scrPosition = viewTransform * vec3(position, 1);\n gl_Position = vec4(\n scrPosition.xy + scrPosition.z * pixelScale * pixelOffset,\n 0,\n scrPosition.z);\n}\n",fragment:"precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n gl_FragColor = vec4(color.rgb * color.a, color.a);\n}\n"}},{}],121:[function(e,t,n){"use strict";function r(e,t,n,r){this.gl=e,this.shader=r,this.buffer=t,this.vao=n,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-(1/0),-(1/0),-(1/0)]],this.clipBounds=[[-(1/0),-(1/0),-(1/0)],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1}function o(e,t){for(var n=0;n<3;++n)e[0][n]=Math.min(e[0][n],t[n]),e[1][n]=Math.max(e[1][n],t[n])}function i(e,t,n,r){for(var o=p[r],i=0;i=1},f.isTransparent=function(){return this.opacity<1},f.drawTransparent=f.draw=function(e){var t=this.gl,n=this.shader.uniforms;this.shader.bind();var r=n.view=e.view||c,o=n.projection=e.projection||c;n.model=e.model||c,n.clipBounds=this.clipBounds,n.opacity=this.opacity;var i=r[12],a=r[13],s=r[14],l=r[15],u=this.pixelRatio*(o[3]*i+o[7]*a+o[11]*s+o[15]*l)/t.drawingBufferHeight;this.vao.bind();for(var f=0;f<3;++f)t.lineWidth(this.lineWidth[f]),n.capSize=this.capSize[f]*u,t.drawArrays(t.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var p=function(){for(var e=new Array(3),t=0;t<3;++t){for(var n=[],r=1;r<=2;++r)for(var o=-1;o<=1;o+=2){var i=(r+t)%3,a=[0,0,0];a[i]=o,n.push(a)}e[t]=n}return e}();f.update=function(e){e=e||{},"lineWidth"in e&&(this.lineWidth=e.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in e&&(this.capSize=e.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),"opacity"in e&&(this.opacity=e.opacity);var t=e.color||[[0,0,0],[0,0,0],[0,0,0]],n=e.position,r=e.error;if(Array.isArray(t[0])||(t=[t,t,t]),n&&r){var a=[],s=n.length,l=0;this.bounds=[[1/0,1/0,1/0],[-(1/0),-(1/0),-(1/0)]],this.lineCount=[0,0,0];for(var u=0;u<3;++u){this.lineOffset[u]=l;e:for(var c=0;c0){var m=f.slice();m[u]+=h[1][u],a.push(f[0],f[1],f[2],d[0],d[1],d[2],d[3],0,0,0,m[0],m[1],m[2],d[0],d[1],d[2],d[3],0,0,0),o(this.bounds,m),l+=2+i(a,m,d,u)}}}this.lineCount[u]=l-this.lineOffset[u]}this.buffer.update(a)}},f.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{"./shaders/index":122,"gl-buffer":118,"gl-vao":226}],122:[function(e,t,n){"use strict";var r=e("gl-shader"),o="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * view * worldPosition;\n fragColor = color;\n fragPosition = position;\n}",i="precision mediump float;\n#define GLSLIFY 1\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if(any(lessThan(fragPosition, clipBounds[0])) || any(greaterThan(fragPosition, clipBounds[1]))) {\n discard;\n }\n gl_FragColor = opacity * fragColor;\n}";t.exports=function(e){return r(e,o,i,null,[{name:"position",type:"vec3"},{name:"offset",type:"vec3"},{name:"color",type:"vec4"}])}},{"gl-shader":197}],123:[function(e,t,n){"use strict";function r(e){var t=e.getParameter(e.FRAMEBUFFER_BINDING),n=e.getParameter(e.RENDERBUFFER_BINDING),r=e.getParameter(e.TEXTURE_BINDING_2D);return[t,n,r]}function o(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function i(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);y=new Array(n+1);for(var r=0;r<=n;++r){for(var o=new Array(n),i=0;i1&&p.drawBuffersWEBGL(y[f]);var g=n.getExtension("WEBGL_depth_texture");g?h?e.depth=s(n,u,c,g.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d&&(e.depth=s(n,u,c,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):d&&h?e._depth_rb=l(n,u,c,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d?e._depth_rb=l(n,u,c,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):h&&(e._depth_rb=l(n,u,c,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var b=n.checkFramebufferStatus(n.FRAMEBUFFER);if(b!==n.FRAMEBUFFER_COMPLETE){e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null);for(var v=0;vs||n<0||n>s)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var l=r(i),u=0;ua||n<0||n>a)throw new Error("gl-fbo: Parameters are too large for FBO");r=r||{};var s=1;if("color"in r){if(s=Math.max(0|r.color,0),s<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(s>1){if(!o)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(s>e.getParameter(o.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+s+" draw buffers")}}var l=e.UNSIGNED_BYTE,u=e.getExtension("OES_texture_float");if(r["float"]&&s>0){if(!u)throw new Error("gl-fbo: Context does not support floating point textures");l=e.FLOAT}else r.preferFloat&&s>0&&u&&(l=e.FLOAT);var f=!0;"depth"in r&&(f=!!r.depth);var p=!1;return"stencil"in r&&(p=!!r.stencil),new c(e,t,n,l,s,f,p,o)}var h=e("gl-texture2d");t.exports=p;var d,m,v,g,y=null,b=c.prototype;Object.defineProperties(b,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return f(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return e=0|e,f(this,e,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e=0|e,f(this,this._shape[0],e),e},enumerable:!1}}),b.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},b.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t2&&!this.usingDashes){var M=this.mitreShader;M.bind();var O=M.uniforms;O.matrix=e,O.color=s,O.screenShape=t,O.radius=l*d,M.attributes.p.pointer(f.FLOAT,!1,48,0),f.drawArrays(f.POINTS,0,c/3|0)}}}}(),p.drawPick=function(){var e=[1,0,0,0,1,0,0,0,1],t=[0,0],n=[0,0,0,0];return function(r){var o=this.plot,i=this.pickShader,a=this.lineBuffer,s=this.pickBuffer,l=this.width,u=this.numPoints,c=this.bounds,f=this.vertCount,p=o.gl,h=o.viewBox,d=o.dataBox,m=o.pickPixelRatio,v=c[2]-c[0],g=c[3]-c[1],y=d[2]-d[0],b=d[3]-d[1],x=h[2]-h[0],_=h[3]-h[1];if(this.pickOffset=r,!f)return r+u;e[0]=2*v/y,e[4]=2*g/b,e[6]=2*(c[0]-d[0])/y-1,e[7]=2*(c[1]-d[1])/b-1,t[0]=x,t[1]=_,n[0]=255&r,n[1]=r>>>8&255,n[2]=r>>>16&255,n[3]=r>>>24,i.bind();var w=i.uniforms;w.matrix=e,w.width=l*m,w.pickOffset=n,w.screenShape=t;var T=i.attributes;return a.bind(),T.a.pointer(p.FLOAT,!1,16,0),T.d.pointer(p.FLOAT,!1,16,8),s.bind(),T.pick0.pointer(p.UNSIGNED_BYTE,!1,8,0),T.pick1.pointer(p.UNSIGNED_BYTE,!1,8,4),p.drawArrays(p.TRIANGLES,0,f),r+u}}(),p.pick=function(e,t,n){var r=this.pickOffset,o=this.numPoints;if(n=r+o)return null;var i=n-r,a=this.data;return{object:this,pointId:i,dataCoord:[a[2*i],a[2*i+1]]}},p.update=function(e){e=e||{};var t=this.plot.gl;!!e.connectGaps;this.color=(e.color||[0,0,1,1]).slice(),this.width=+(e.width||1),this.fill=(e.fill||[!1,!1,!1,!1]).slice(),this.fillColor=o(e.fillColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);for(var n=e.dashes||[1],r=0,i=0;i1,this.dashPattern=l(t,u(a,[r,1,4],[1,0,0])),this.dashPattern.minFilter=t.NEAREST,this.dashPattern.magFilter=t.NEAREST,this.dashLength=r,c.free(a);var h=e.positions;this.data=h;var d=this.bounds;d[0]=d[1]=1/0,d[2]=d[3]=-(1/0);var m=this.numPoints=h.length>>>1;if(0!==m){for(var i=0;i1;){var T=--s,v=h[2*s],g=h[2*s+1],C=T-1,E=h[2*C],k=h[2*C+1];if(!(isNaN(v)||isNaN(g)||isNaN(E)||isNaN(k))){w+=1,v=(v-d[0])/(d[2]-d[0]),g=(g-d[1])/(d[3]-d[1]),E=(E-d[0])/(d[2]-d[0]),k=(k-d[1])/(d[3]-d[1]);var S=E-v,A=k-g,P=T|1<<24,M=T-1,O=T,D=T-1|1<<24;y[--x]=-A,y[--x]=-S,y[--x]=g,y[--x]=v,b[--_]=P,b[--_]=M,y[--x]=A,y[--x]=S,y[--x]=k,y[--x]=E,b[--_]=O,b[--_]=D,y[--x]=-A,y[--x]=-S,y[--x]=k,y[--x]=E,b[--_]=O,b[--_]=D,y[--x]=A,y[--x]=S,y[--x]=k,y[--x]=E,b[--_]=O,b[--_]=D,y[--x]=-A,y[--x]=-S,y[--x]=g,y[--x]=v,b[--_]=P,b[--_]=M,y[--x]=A,y[--x]=S,y[--x]=g,y[--x]=v,b[--_]=P,b[--_]=M}}this.vertCount=6*w,this.lineBuffer.update(y.subarray(x)),this.pickBuffer.update(b.subarray(_)),c.free(y),c.free(b)}},p.dispose=function(){this.plot.removeObject(this),this.lineBuffer.dispose(),this.pickBuffer.dispose(),this.lineShader.dispose(),this.mitreShader.dispose(),this.fillShader.dispose(),this.pickShader.dispose(),this.dashPattern.dispose()}},{"./lib/shaders":124,"gl-buffer":118,"gl-shader":197,"gl-texture2d":222,ndarray:253,"typedarray-pool":278}],126:[function(e,t,n){var r=e("gl-shader"),o="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvoid main() {\n vec4 projected = projection * view * model * vec4(position, 1.0);\n vec4 tangentClip = projection * view * model * vec4(nextPosition - position, 0.0);\n vec2 tangent = normalize(screenShape * tangentClip.xy);\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(tangent.y, -tangent.x) / screenShape;\n\n gl_Position = vec4(projected.xy + projected.w * offset, projected.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n",i="precision mediump float;\n#define GLSLIFY 1\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\n discard;\n }\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n",a="precision mediump float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\nlowp vec4 encode_float_1_0(highp float v) {\n highp float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n highp float e = floor(log2(av));\n highp float m = av * pow(2.0, -e) - 1.0;\n \n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n \n //Unpack exponent\n highp float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0; \n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\n\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\n discard;\n }\n gl_FragColor = vec4(pickId/255.0, encode_float_1_0(pixelArcLength).xyz);\n}",s=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];n.createShader=function(e){return r(e,o,i,null,s)},n.createPickShader=function(e){return r(e,o,a,null,s)}},{"gl-shader":197}],127:[function(e,t,n){"use strict";function r(e,t){for(var n=0,r=0;r<3;++r){var o=e[r]-t[r];n+=o*o}return Math.sqrt(n)}function o(e){for(var t=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],n=0;n<3;++n)t[0][n]=Math.max(e[0][n],t[0][n]),t[1][n]=Math.min(e[1][n],t[1][n]);return t}function i(e,t,n,r){this.arcLength=e,this.position=t,this.index=n,this.dataCoordinate=r}function a(e,t,n,r,o,i){this.gl=e,this.shader=t,this.pickShader=n,this.buffer=r,this.vao=o,this.clipBounds=[[-(1/0),-(1/0),-(1/0)],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=i,this.dashScale=1,this.opacity=1,this.dirty=!0,this.pixelRatio=1}function s(e){var t=e.gl||e.scene&&e.scene.gl,n=m(t);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;var r=v(t);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;for(var o=l(t),i=u(t,[{buffer:o,size:3,offset:0,stride:48},{buffer:o,size:3,offset:12,stride:48},{buffer:o,size:1,offset:24,stride:48},{buffer:o,size:1,offset:28,stride:48},{buffer:o,size:4,offset:32,stride:48}]),s=h(new Array(1024),[256,1,4]),f=0;f<1024;++f)s.data[f]=255;var p=c(t,s);p.wrap=t.REPEAT;var d=new a(t,n,r,o,i,p);return d.update(e),d}t.exports=s;var l=e("gl-buffer"),u=e("gl-vao"),c=e("gl-texture2d"),f=e("glsl-read-float"),p=e("binary-search-bounds"),h=e("ndarray"),d=e("./lib/shaders"),m=d.createShader,v=d.createPickShader,g=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],y=a.prototype;y.isTransparent=function(){return this.opacity<1},y.isOpaque=function(){return this.opacity>=1},y.pickSlots=1,y.setPickBase=function(e){this.pickId=e},y.drawTransparent=y.draw=function(e){var t=this.gl,n=this.shader,r=this.vao;n.bind(),n.uniforms={model:e.model||g,view:e.view||g,projection:e.projection||g,clipBounds:o(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount)},y.drawPick=function(e){var t=this.gl,n=this.pickShader,r=this.vao;n.bind(),n.uniforms={model:e.model||g,view:e.view||g,projection:e.projection||g,pickId:this.pickId,clipBounds:o(this.clipBounds),screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount)},y.update=function(e){var t,n;this.dirty=!0;var o=!!e.connectGaps;"dashScale"in e&&(this.dashScale=e.dashScale),"opacity"in e&&(this.opacity=+e.opacity);var i=e.position||e.positions;if(i){var a=e.color||e.colors||[0,0,0,1],s=e.lineWidth||1,l=[],u=[],c=[],f=0,d=0,m=[[1/0,1/0,1/0],[-(1/0),-(1/0),-(1/0)]],v=!1;e:for(t=1;t0){for(var b=0;b<24;++b)l.push(l[l.length-12]);d+=2,v=!0}continue e}m[0][n]=Math.min(m[0][n],g[n],y[n]),m[1][n]=Math.max(m[1][n],g[n],y[n])}var x,_;Array.isArray(a[0])?(x=a[t-1],_=a[t]):x=_=a,3===x.length&&(x=[x[0],x[1],x[2],1]),3===_.length&&(_=[_[0],_[1],_[2],1]);var w;w=Array.isArray(s)?s[t-1]:s;var T=f;if(f+=r(g,y),v){for(n=0;n<2;++n)l.push(g[0],g[1],g[2],y[0],y[1],y[2],T,w,x[0],x[1],x[2],x[3]);d+=2,v=!1}l.push(g[0],g[1],g[2],y[0],y[1],y[2],T,w,x[0],x[1],x[2],x[3],g[0],g[1],g[2],y[0],y[1],y[2],T,-w,x[0],x[1],x[2],x[3],y[0],y[1],y[2],g[0],g[1],g[2],f,-w,_[0],_[1],_[2],_[3],y[0],y[1],y[2],g[0],g[1],g[2],f,w,_[0],_[1],_[2],_[3]),d+=4}if(this.buffer.update(l),u.push(f),c.push(i[i.length-1].slice()),this.bounds=m,this.vertexCount=d,this.points=c,this.arcLength=u,"dashes"in e){var C=e.dashes,E=C.slice();for(E.unshift(0),t=1;t1.0001)return null;v+=m[c]}return Math.abs(v-1)>.001?null:[f,a(e,m),m]}var l=e("barycentric"),u=e("polytope-closest-point/lib/closest_point_2d.js");t.exports=s},{barycentric:151,"polytope-closest-point/lib/closest_point_2d.js":153}],149:[function(e,t,n){var r="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec4 m_position = model * vec4(position, 1.0);\n vec4 t_position = view * m_position;\n gl_Position = projection * t_position;\n f_color = color;\n f_normal = normal;\n f_data = position;\n f_eyeDirection = eyePosition - position;\n f_lightDirection = lightPosition - position;\n f_uv = uv;\n}",o="precision mediump float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution_2_0(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\n\n\nfloat cookTorranceSpecular_1_1(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution_2_0(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular\n , opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if(any(lessThan(f_data, clipBounds[0])) || \n any(greaterThan(f_data, clipBounds[1]))) {\n discard;\n }\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n \n if(!gl_FrontFacing) {\n N = -N;\n }\n\n float specular = cookTorranceSpecular_1_1(L, V, N, roughness, fresnel);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}",i="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_color = color;\n f_data = position;\n f_uv = uv;\n}",a="precision mediump float;\n#define GLSLIFY 1\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if(any(lessThan(f_data, clipBounds[0])) || \n any(greaterThan(f_data, clipBounds[1]))) {\n discard;\n }\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}",s="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if(any(lessThan(position, clipBounds[0])) || \n any(greaterThan(position, clipBounds[1]))) {\n gl_Position = vec4(0,0,0,0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}",l="precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5,0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}",u="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_id = id;\n f_position = position;\n}",c="precision mediump float;\n#define GLSLIFY 1\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if(any(lessThan(f_position, clipBounds[0])) || \n any(greaterThan(f_position, clipBounds[1]))) {\n discard;\n }\n gl_FragColor = vec4(pickId, f_id.xyz);\n}",f="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if(any(lessThan(position, clipBounds[0])) || \n any(greaterThan(position, clipBounds[1]))) {\n gl_Position = vec4(0,0,0,0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}",p="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n}",h="precision mediump float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor,1);\n}\n";n.meshShader={vertex:r,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},n.wireShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},n.pointShader={vertex:s,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},n.pickShader={vertex:u,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},n.pointPickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},n.contourShader={vertex:p,fragment:h,attributes:[{name:"position",type:"vec3"}]}},{}],150:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,l,u,c,f,p,h,d,m,v,g,y,b,x,_,w,T,C,E,k){this.gl=e,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.lineShader=r,this.pointShader=o,this.pickShader=i,this.pointPickShader=a,this.contourShader=s,this.trianglePositions=l,this.triangleColors=c,this.triangleNormals=p,this.triangleUVs=f,this.triangleIds=u,this.triangleVAO=h,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=v,this.edgeUVs=g,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=w,this.pointSizes=T,this.pointIds=x,this.pointVAO=C,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=E,this.contourVAO=k,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-(1/0),-(1/0),-(1/0)]],this.clipBounds=[[-(1/0),-(1/0),-(1/0)],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}function o(e){for(var t=C({colormap:e,nshades:256,format:"rgba"}),n=new Uint8Array(1024),r=0;r<256;++r){for(var o=t[r],i=0;i<3;++i)n[4*r+i]=o[i];n[4*r+3]=255*o[3]}return T(n,[256,256,4],[4,0,1])}function i(e,t,n){for(var r=new Array(t),o=0;o=1},F.isTransparent=function(){return this.opacity<1},F.pickSlots=1,F.setPickBase=function(e){this.pickId=e},F.highlight=function(e){if(!e||!this.contourEnable)return void(this.contourCount=0);for(var t=E(this.cells,this.intensity,e.intensity),n=t.cells,r=t.vertexIds,o=t.vertexWeights,i=n.length,a=k.mallocFloat32(6*i),s=0,l=0;l0){var p=this.triShader;p.bind(),p.uniforms=s,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var p=this.lineShader;p.bind(),p.uniforms=s,this.edgeVAO.bind(),t.lineWidth(this.lineWidth),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()}if(this.pointCount>0){var p=this.pointShader;p.bind(),p.uniforms=s,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var p=this.contourShader;p.bind(),p.uniforms=s,this.contourVAO.bind(),t.drawArrays(t.LINES,0,this.contourCount),this.contourVAO.unbind()}},F.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||R,r=e.view||R,o=e.projection||R,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],a=0;a<3;++a)i[0][a]=Math.max(i[0][a],this.clipBounds[0][a]),i[1][a]=Math.min(i[1][a],this.clipBounds[1][a]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(o),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s={model:n,view:r,projection:o,clipBounds:i,pickId:this.pickId/255},l=this.pickShader;if(l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),t.lineWidth(this.lineWidth),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0){var l=this.pointPickShader;l.bind(),l.uniforms=s,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind()}},F.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;for(var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions,o=new Array(n.length),i=0;ia)for(var _=i[c],w=1/Math.sqrt(g*b),x=0;x<3;++x){var T=(x+1)%3,C=(x+2)%3;_[x]+=w*(y[T]*v[C]-y[C]*v[T])}}for(var s=0;sa)for(var w=1/Math.sqrt(E),x=0;x<3;++x)_[x]*=w;else for(var x=0;x<3;++x)_[x]=0}return i},n.faceNormals=function(e,t,n){for(var r=e.length,i=new Array(r),a=void 0===n?o:n,s=0;sa?1/Math.sqrt(d):0;for(var c=0;c<3;++c)h[c]*=d;i[s]=h}return i}},{}],153:[function(e,t,n){"use strict";function r(e,t,n,r,s){o.length=u?(x=1,y=u+2*p+d):(x=-p/u,y=p*x+d)):(x=0,h>=0?(_=0,y=d):-h>=f?(_=1,y=f+2*h+d):(_=-h/f,y=h*_+d));else if(_<0)_=0,p>=0?(x=0,y=d):-p>=u?(x=1,y=u+2*p+d):(x=-p/u,y=p*x+d);else{var w=1/b;x*=w,_*=w,y=x*(u*x+c*_+2*p)+_*(c*x+f*_+2*h)+d}else{var T,C,E,k;x<0?(T=c+p,C=f+h,C>T?(E=C-T,k=u-2*c+f,E>=k?(x=1,_=0,y=u+2*p+d):(x=E/k,_=1-x,y=x*(u*x+c*_+2*p)+_*(c*x+f*_+2*h)+d)):(x=0,C<=0?(_=1,y=f+2*h+d):h>=0?(_=0,y=d):(_=-h/f,y=h*_+d))):_<0?(T=c+h,C=u+p,C>T?(E=C-T,k=u-2*c+f,E>=k?(_=1,x=0,y=f+2*h+d):(_=E/k,x=1-_,y=x*(u*x+c*_+2*p)+_*(c*x+f*_+2*h)+d)):(_=0,C<=0?(x=1,y=u+2*p+d):p>=0?(x=0,y=d):(x=-p/u,y=p*x+d))):(E=f+h-c-p,E<=0?(x=0,_=1,y=f+2*h+d):(k=u-2*c+f,E>=k?(x=1,_=0,y=u+2*p+d):(x=E/k,_=1-x,y=x*(u*x+c*_+2*p)+_*(c*x+f*_+2*h)+d)))}for(var S=1-x-_,l=0;l0&&u.push(","),u.push("[");for(var r=0;r0&&u.push(","),u.push("B(C,E,c[",o[0],"],c[",o[1],"])")}u.push("]")}u.push(");")}}var n=0,r=new Array(e+1);r[0]=[[]];for(var o=1;o<=e;++o)for(var s=r[o]=a(o),l=0;l>1,v=E[2*m+1];","if(v===b){return m}","if(b1;--o){o1){for(var f=[],p=1;p1){a.push("dptr=0;sptr=ptr");for(var p=e.length-1;p>=0;--p){var h=e[p];0!==h&&a.push(["for(i",h,"=0;i",h,"left){","dptr=0","sptr=cptr-s0");for(var p=1;pb){break __l}"].join(""));for(var p=e.length-1;p>=1;--p)a.push("sptr+=e"+p,"dptr+=f"+p,"}");a.push("dptr=cptr;sptr=cptr-s0");for(var p=e.length-1;p>=0;--p){var h=e[p];0!==h&&a.push(["for(i",h,"=0;i",h,"=0;--p){var h=e[p];0!==h&&a.push(["for(i",h,"=0;i",h,"left)&&("+n("cptr-s0")+">scratch)){",i("cptr",n("cptr-s0")),"cptr-=s0","}",i("cptr","scratch"));if(a.push("}"),e.length>1&&u&&a.push("free(scratch)"),a.push("} return "+s),u){var d=new Function("malloc","free",a.join("\n"));return d(u[0],u[1])}var d=new Function(a.join("\n"));return d()}function a(e,t,n){function i(e){return["(offset+",e,"*s0)"].join("")}function a(e){return"generic"===t?["data.get(",e,")"].join(""):["data[",e,"]"].join("")}function s(e,n){return"generic"===t?["data.set(",e,",",n,")"].join(""):["data[",e,"]=",n].join("")}function l(t,n,r){if(1===t.length)_.push("ptr0="+i(t[0]));else for(var o=0;o=0;--o){var a=e[o];0!==a&&_.push(["for(i",a,"=0;i",a,"1)for(var o=0;o1?_.push("ptr_shift+=d"+a):_.push("ptr0+=d"+a),_.push("}"))}}function c(t,n,r,o){if(1===n.length)_.push("ptr0="+i(n[0]));else{for(var a=0;a1)for(var a=0;a=1;--a)r&&_.push("pivot_ptr+=f"+a),n.length>1?_.push("ptr_shift+=e"+a):_.push("ptr0+=e"+a),_.push("}")}function f(){e.length>1&&C&&_.push("free(pivot1)","free(pivot2)")}function p(t,n){var r="el"+t,o="el"+n;if(e.length>1){var s="__l"+ ++E;c(s,[r,o],!1,["comp=",a("ptr0"),"-",a("ptr1"),"\n","if(comp>0){tmp0=",r,";",r,"=",o,";",o,"=tmp0;break ",s,"}\n","if(comp<0){break ",s,"}"].join(""))}else _.push(["if(",a(i(r)),">",a(i(o)),"){tmp0=",r,";",r,"=",o,";",o,"=tmp0}"].join(""))}function h(t,n){e.length>1?l([t,n],!1,s("ptr0",a("ptr1"))):_.push(s(i(t),a(i(n))))}function d(t,n,r){if(e.length>1){var o="__l"+ ++E;c(o,[n],!0,[t,"=",a("ptr0"),"-pivot",r,"[pivot_ptr]\n","if(",t,"!==0){break ",o,"}"].join(""))}else _.push([t,"=",a(i(n)),"-pivot",r].join(""))}function m(t,n){e.length>1?l([t,n],!1,["tmp=",a("ptr0"),"\n",s("ptr0",a("ptr1")),"\n",s("ptr1","tmp")].join("")):_.push(["ptr0=",i(t),"\n","ptr1=",i(n),"\n","tmp=",a("ptr0"),"\n",s("ptr0",a("ptr1")),"\n",s("ptr1","tmp")].join(""))}function v(t,n,r){e.length>1?(l([t,n,r],!1,["tmp=",a("ptr0"),"\n",s("ptr0",a("ptr1")),"\n",s("ptr1",a("ptr2")),"\n",s("ptr2","tmp")].join("")),_.push("++"+n,"--"+r)):_.push(["ptr0=",i(t),"\n","ptr1=",i(n),"\n","ptr2=",i(r),"\n","++",n,"\n","--",r,"\n","tmp=",a("ptr0"),"\n",s("ptr0",a("ptr1")),"\n",s("ptr1",a("ptr2")),"\n",s("ptr2","tmp")].join(""))}function g(e,t){m(e,t),_.push("--"+t)}function y(t,n,r){e.length>1?l([t,n],!0,[s("ptr0",a("ptr1")),"\n",s("ptr1",["pivot",r,"[pivot_ptr]"].join(""))].join("")):_.push(s(i(t),a(i(n))),s(i(n),"pivot"+r))}function b(t,n){_.push(["if((",n,"-",t,")<=",u,"){\n","insertionSort(",t,",",n,",data,offset,",o(e.length).join(","),")\n","}else{\n",w,"(",t,",",n,",data,offset,",o(e.length).join(","),")\n","}"].join(""))}function x(t,n,r){e.length>1?(_.push(["__l",++E,":while(true){"].join("")),l([t],!0,["if(",a("ptr0"),"!==pivot",n,"[pivot_ptr]){break __l",E,"}"].join("")),_.push(r,"}")):_.push(["while(",a(i(t)),"===pivot",n,"){",r,"}"].join(""))}var _=["'use strict'"],w=["ndarrayQuickSort",e.join("d"),t].join(""),T=["left","right","data","offset"].concat(o(e.length)),C=r(t),E=0;_.push(["function ",w,"(",T.join(","),"){"].join(""));var k=["sixth=((right-left+1)/6)|0","index1=left+sixth","index5=right-sixth","index3=(left+right)>>1","index2=index3-sixth","index4=index3+sixth","el1=index1","el2=index2","el3=index3","el4=index4","el5=index5","less=left+1","great=right-1","pivots_are_equal=true","tmp","tmp0","x","y","z","k","ptr0","ptr1","ptr2","comp_pivot1=0","comp_pivot2=0","comp=0"];if(e.length>1){for(var S=[],A=1;A1?l(["el1","el2","el3","el4","el5","index1","index3","index5"],!0,["pivot1[pivot_ptr]=",a("ptr1"),"\n","pivot2[pivot_ptr]=",a("ptr3"),"\n","pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n","x=",a("ptr0"),"\n","y=",a("ptr2"),"\n","z=",a("ptr4"),"\n",s("ptr5","x"),"\n",s("ptr6","y"),"\n",s("ptr7","z")].join("")):_.push(["pivot1=",a(i("el2")),"\n","pivot2=",a(i("el4")),"\n","pivots_are_equal=pivot1===pivot2\n","x=",a(i("el1")),"\n","y=",a(i("el3")),"\n","z=",a(i("el5")),"\n",s(i("index1"),"x"),"\n",s(i("index3"),"y"),"\n",s(i("index5"),"z")].join("")),h("index2","left"),h("index4","right"),_.push("if(pivots_are_equal){"),_.push("for(k=less;k<=great;++k){"),d("comp","k",1),_.push("if(comp===0){continue}"),_.push("if(comp<0){"),_.push("if(k!==less){"),m("k","less"),_.push("}"),_.push("++less"),_.push("}else{"),_.push("while(true){"),d("comp","great",1),_.push("if(comp>0){"),_.push("great--"),_.push("}else if(comp<0){"),v("k","less","great"),_.push("break"),_.push("}else{"),g("k","great"),_.push("break"),_.push("}"),_.push("}"),_.push("}"),_.push("}"),_.push("}else{"),_.push("for(k=less;k<=great;++k){"),d("comp_pivot1","k",1),_.push("if(comp_pivot1<0){"),_.push("if(k!==less){"),m("k","less"),_.push("}"),_.push("++less"),_.push("}else{"),d("comp_pivot2","k",2),_.push("if(comp_pivot2>0){"),_.push("while(true){"),d("comp","great",2),_.push("if(comp>0){"),_.push("if(--greatindex5){"),x("less",1,"++less"),x("great",2,"--great"),_.push("for(k=less;k<=great;++k){"),d("comp_pivot1","k",1),_.push("if(comp_pivot1===0){"),_.push("if(k!==less){"),m("k","less"),_.push("}"),_.push("++less"),_.push("}else{"),d("comp_pivot2","k",2),_.push("if(comp_pivot2===0){"),_.push("while(true){"),d("comp","great",2),_.push("if(comp===0){"),_.push("if(--great1&&C){var P=new Function("insertionSort","malloc","free",_.join("\n"));return P(n,C[0],C[1])}var P=new Function("insertionSort",_.join("\n"));return P(n)}function s(e,t){var n=["'use strict'"],r=["ndarraySortWrapper",e.join("d"),t].join(""),s=["array"];n.push(["function ",r,"(",s.join(","),"){"].join(""));for(var l=["data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride"],c=0;c0?l.push(["d",v,"=s",v,"-d",d,"*n",d].join("")):l.push(["d",v,"=s",v].join("")),d=v);var h=e.length-1-c;0!==h&&(m>0?l.push(["e",h,"=s",h,"-e",m,"*n",m,",f",h,"=",f[h],"-f",m,"*n",m].join("")):l.push(["e",h,"=s",h,",f",h,"=",f[h]].join("")),m=h)}n.push("var "+l.join(","));var g=["0","n0-1","data","offset"].concat(o(e.length));n.push(["if(n0<=",u,"){","insertionSort(",g.join(","),")}else{","quickSort(",g.join(","),")}"].join("")),n.push("}return "+r);var y=new Function("insertionSort","quickSort",n.join("\n")),b=i(e,t),x=a(e,t,b);return y(b,x)}var l=e("typedarray-pool"),u=32;t.exports=s},{"typedarray-pool":278}],158:[function(e,t,n){"use strict";function r(e){var t=e.order,n=e.dtype,r=[t,n],a=r.join(":"),s=i[a];return s||(i[a]=s=o(t,n)),s(e),e}var o=e("./lib/compile_sort.js"),i={};t.exports=r},{"./lib/compile_sort.js":157}],159:[function(e,t,n){"use strict";function r(e,t,n){this.plot=e,this.vbo=t,this.shader=n}function o(e){var t=e.gl,n=i(t,[0,0,0,1,1,0,1,1]),o=a(t,s.boxVert,s.lineFrag);return new r(e,n,o)}t.exports=o;var i=e("gl-buffer"),a=e("gl-shader"),s=e("./shaders"),l=r.prototype;l.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},l.drawBox=function(){var e=[0,0],t=[0,0];return function(n,r,o,i,a){var s=this.plot,l=this.shader,u=s.gl;e[0]=n,e[1]=r,t[0]=o,t[1]=i,l.uniforms.lo=e,l.uniforms.hi=t,l.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{"./shaders":162,"gl-buffer":118,"gl-shader":197}],160:[function(e,t,n){"use strict";function r(e,t,n,r){this.plot=e,this.vbo=t,this.shader=n,this.tickShader=r,this.ticks=[[],[]]}function o(e,t){return e-t}function i(e){var t=e.gl,n=a(t),o=s(t,u.gridVert,u.gridFrag),i=s(t,u.tickVert,u.gridFrag),l=new r(e,n,o,i);return l}t.exports=i;var a=e("gl-buffer"),s=e("gl-shader"),l=e("binary-search-bounds"),u=e("./shaders"),c=r.prototype;c.draw=function(){var e=[0,0],t=[0,0],n=[0,0];return function(){for(var r=this.plot,o=this.vbo,i=this.shader,a=this.ticks,s=r.gl,l=r._tickBounds,u=r.dataBox,c=r.viewBox,f=r.gridLineWidth,p=r.gridLineColor,h=r.gridLineEnable,d=r.pixelRatio,m=0;m<2;++m){var v=l[m],g=l[m+2],y=g-v,b=.5*(u[m+2]+u[m]),x=u[m+2]-u[m];t[m]=2*y/x,e[m]=2*(v-b)/x}i.bind(),o.bind(),i.attributes.dataCoord.pointer(),i.uniforms.dataShift=e,i.uniforms.dataScale=t;for(var _=0,m=0;m<2;++m){n[0]=n[1]=0,n[m]=1,i.uniforms.dataAxis=n,i.uniforms.lineWidth=f[m]/(c[m+2]-c[m])*d,i.uniforms.color=p[m];var w=6*a[m].length;h[m]&&w&&s.drawArrays(s.TRIANGLES,_,w),_+=w}}}(),c.drawTickMarks=function(){var e=[0,0],t=[0,0],n=[1,0],r=[0,1],i=[0,0],a=[0,0];return function(){for(var s=this.plot,u=this.vbo,c=this.tickShader,f=this.ticks,p=s.gl,h=s._tickBounds,d=s.dataBox,m=s.viewBox,v=s.pixelRatio,g=s.screenBox,y=g[2]-g[0],b=g[3]-g[1],x=m[2]-m[0],_=m[3]-m[1],w=0;w<2;++w){var T=h[w],C=h[w+2],E=C-T,k=.5*(d[w+2]+d[w]),S=d[w+2]-d[w];t[w]=2*E/S,e[w]=2*(T-k)/S}t[0]*=x/y,e[0]*=x/y,t[1]*=_/b,e[1]*=_/b,c.bind(),u.bind(),c.attributes.dataCoord.pointer();var A=c.uniforms;A.dataShift=e,A.dataScale=t;var P=s.tickMarkLength,M=s.tickMarkWidth,O=s.tickMarkColor,D=0,L=6*f[0].length,j=Math.min(l.ge(f[0],(d[0]-h[0])/(h[2]-h[0]),o),f[0].length),R=Math.min(l.gt(f[0],(d[2]-h[0])/(h[2]-h[0]),o),f[0].length),F=D+6*j,I=6*Math.max(0,R-j),N=Math.min(l.ge(f[1],(d[1]-h[1])/(h[3]-h[1]),o),f[1].length),B=Math.min(l.gt(f[1],(d[3]-h[1])/(h[3]-h[1]),o),f[1].length),z=L+6*N,U=6*Math.max(0,B-N);i[0]=2*(m[0]-P[1])/y-1,i[1]=(m[3]+m[1])/b-1,a[0]=P[1]*v/y,a[1]=M[1]*v/b,U&&(A.color=O[1],A.tickScale=a,A.dataAxis=r,A.screenOffset=i,p.drawArrays(p.TRIANGLES,z,U)),i[0]=(m[2]+m[0])/y-1,i[1]=2*(m[1]-P[0])/b-1,a[0]=M[0]*v/y,a[1]=P[0]*v/b,I&&(A.color=O[0],A.tickScale=a,A.dataAxis=n,A.screenOffset=i,p.drawArrays(p.TRIANGLES,F,I)),i[0]=2*(m[2]+P[3])/y-1,i[1]=(m[3]+m[1])/b-1,a[0]=P[3]*v/y,a[1]=M[3]*v/b,U&&(A.color=O[3],A.tickScale=a,A.dataAxis=r,A.screenOffset=i,p.drawArrays(p.TRIANGLES,z,U)),i[0]=(m[2]+m[0])/y-1,i[1]=2*(m[3]+P[2])/b-1,a[0]=M[2]*v/y,a[1]=P[2]*v/b,I&&(A.color=O[2],A.tickScale=a,A.dataAxis=n,A.screenOffset=i,p.drawArrays(p.TRIANGLES,F,I))}}(),c.update=function(){var e=[1,1,-1,-1,1,-1],t=[1,-1,1,1,-1,-1];return function(n){for(var r=n.ticks,o=n.bounds,i=new Float32Array(18*(r[0].length+r[1].length)),a=(this.plot.zeroLineEnable,0),s=[[],[]],l=0;l<2;++l)for(var u=s[l],c=r[l],f=o[l],p=o[l+2],h=0;hs[C]&&(i.uniforms.dataAxis=e,i.uniforms.screenOffset=t,i.uniforms.color=v[r],i.uniforms.angle=g[r],u.drawArrays(u.TRIANGLES,s[C],s[E]-s[C]))),y[r]&&T&&(t[1^r]-=k*h*b[r],i.uniforms.dataAxis=n,i.uniforms.screenOffset=t,i.uniforms.color=x[r],i.uniforms.angle=_[r],u.drawArrays(u.TRIANGLES,w,T)),t[1^r]=k*c[2+(1^r)]-1,d[r+2]&&(t[1^r]+=k*h*m[r+2],Cs[C]&&(i.uniforms.dataAxis=e,i.uniforms.screenOffset=t,i.uniforms.color=v[r+2],i.uniforms.angle=g[r+2],u.drawArrays(u.TRIANGLES,s[C],s[E]-s[C]))),y[r+2]&&T&&(t[1^r]+=k*h*b[r+2],i.uniforms.dataAxis=n,i.uniforms.screenOffset=t,i.uniforms.color=x[r+2],i.uniforms.angle=_[r+2],u.drawArrays(u.TRIANGLES,w,T))}}(),c.drawTitle=function(){var e=[0,0],t=[0,0];return function(){var n=this.plot,r=this.shader,o=n.gl,i=n.screenBox,a=n.titleCenter,s=n.titleAngle,l=n.titleColor,a=n.titleCenter,u=n.pixelRatio;if(this.titleCount){for(var c=0;c<2;++c)t[c]=2*(a[c]*u-i[c])/(i[2+c]-i[c])-1;r.bind(),r.uniforms.dataAxis=e,r.uniforms.screenOffset=t,r.uniforms.angle=s,r.uniforms.color=l,o.drawArrays(o.TRIANGLES,this.titleOffset,this.titleCount)}}}(),c.bind=function(){var e=[0,0],t=[0,0],n=[0,0];return function(){var r=this.plot,o=this.shader,i=r._tickBounds,a=r.dataBox,s=r.screenBox,l=r.viewBox;o.bind();for(var u=0;u<2;++u){var c=i[u],f=i[u+2],p=f-c,h=.5*(a[u+2]+a[u]),d=a[u+2]-a[u],m=l[u],v=l[u+2],g=v-m,y=s[u],b=s[u+2],x=b-y;t[u]=2*p/d*g/x,e[u]=2*(c-h)/d*g/x}n[1]=2*r.pixelRatio/(s[3]-s[1]),n[0]=n[1]*(s[3]-s[1])/(s[2]-s[0]),o.uniforms.dataScale=t,o.uniforms.dataShift=e,o.uniforms.textScale=n,this.vbo.bind(),o.attributes.textCoordinate.pointer()}}(),c.update=function(e){for(var t=[],n=e.ticks,r=e.bounds,o=0;o<2;++o){for(var i=[Math.floor(t.length/3)],a=[-(1/0)],l=n[o],u=0;u=0){var m=t[d]-r[d]*(t[d+2]-t[d])/(r[d+2]-r[d]);0===d?a.drawLine(m,t[1],m,t[3],h[d],p[d]):a.drawLine(t[0],m,t[2],m,h[d],p[d])}}for(var d=0;d=0;--e)this.objects[e].dispose();this.objects.length=0;for(var e=this.overlays.length-1;e>=0;--e)this.overlays[e].dispose();this.overlays.length=0,this.gl=null},p.addObject=function(e){this.objects.indexOf(e)<0&&(this.objects.push(e),this.setDirty())},p.removeObject=function(e){for(var t=this.objects,n=0;nMath.abs(t))r.rotate(s,0,0,-e*i*Math.PI*p.rotateSpeed/window.innerWidth);else{var l=p.zoomSpeed*a*t/window.innerHeight*(s-r.lastT())/100;r.pan(s,0,0,u*(Math.exp(l)-1))}},!0),p}t.exports=r;var o=e("right-now"),i=e("3d-view"),a=e("mouse-change"),s=e("mouse-wheel")},{"3d-view":39,"mouse-change":241,"mouse-wheel":245,"right-now":255}],168:[function(e,t,n){!function(){"use strict";function e(t){t.permitHostObjects___&&t.permitHostObjects___(e)}function n(e){return!(e.substr(0,h.length)==h&&"___"===e.substr(e.length-3))}function r(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[d];if(t&&t.key===e)return t;if(p(e)){t={key:e};try{return f(e,d,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(n){return}}}function o(e){return e.prototype=null,Object.freeze(e)}function i(){y||"undefined"==typeof console||(y=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}if("undefined"==typeof ses||!ses.ok||ses.ok()){"undefined"!=typeof ses&&(ses.weakMapPermitHostObjects=e);var a=!1;if("function"==typeof WeakMap){var s=WeakMap;if("undefined"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var l=new s,u=Object.freeze({});if(l.set(u,1),1===l.get(u))return void(t.exports=WeakMap);a=!0}}var c=(Object.prototype.hasOwnProperty,Object.getOwnPropertyNames),f=Object.defineProperty,p=Object.isExtensible,h="weakmap:",d=h+"ident:"+Math.random()+"___";if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var m=new ArrayBuffer(25),v=new Uint8Array(m);crypto.getRandomValues(v),d=h+"rand:"+Array.prototype.map.call(v,function(e){return(e%36).toString(36)}).join("")+"___"}if(f(Object,"getOwnPropertyNames",{value:function(e){return c(e).filter(n)}}),"getPropertyNames"in Object){var g=Object.getPropertyNames;f(Object,"getPropertyNames",{value:function(e){return g(e).filter(n)}})}!function(){var e=Object.freeze;f(Object,"freeze",{value:function(t){return r(t),e(t)}});var t=Object.seal;f(Object,"seal",{value:function(e){return r(e),t(e)}});var n=Object.preventExtensions;f(Object,"preventExtensions",{value:function(e){return r(e),n(e)}})}();var y=!1,b=0,x=function(){function e(e,t){var n,o=r(e);return o?u in o?o[u]:t:(n=s.indexOf(e),n>=0?l[n]:t)}function t(e){var t=r(e);return t?u in t:s.indexOf(e)>=0}function n(e,t){var n,o=r(e);return o?o[u]=t:(n=s.indexOf(e),n>=0?l[n]=t:(n=s.length,l[n]=t,s[n]=e)),this}function a(e){var t,n,o=r(e);return o?u in o&&delete o[u]:(t=s.indexOf(e),!(t<0)&&(n=s.length-1,s[t]=void 0,l[t]=l[n],s[t]=s[n],s.length=n,l.length=n,!0))}this instanceof x||i();var s=[],l=[],u=b++;return Object.create(x.prototype,{get___:{value:o(e)},has___:{value:o(t)},set___:{value:o(n)},delete___:{value:o(a)}})};x.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},"delete":{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"==typeof s?!function(){function n(){function t(e,t){return c?u.has(e)?u.get(e):c.get___(e,t):u.get(e,t)}function n(e){return u.has(e)||!!c&&c.has___(e)}function r(e){var t=!!u["delete"](e);return c?c.delete___(e)||t:t}this instanceof x||i();var l,u=new s,c=void 0,f=!1;return l=a?function(e,t){return u.set(e,t),u.has(e)||(c||(c=new x),c.set(e,t)),this}:function(e,t){if(f)try{u.set(e,t)}catch(n){c||(c=new x),c.set___(e,t)}else u.set(e,t);return this},Object.create(x.prototype,{get___:{value:o(t)},has___:{value:o(n)},set___:{value:o(l)},delete___:{value:o(r)},permitHostObjects___:{value:o(function(t){if(t!==e)throw new Error("bogus call to permitHostObjects___");f=!0})}})}a&&"undefined"!=typeof Proxy&&(Proxy=void 0),n.prototype=x.prototype,t.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),t.exports=x)}}()},{}],169:[function(e,t,n){"use strict";function r(e){var t=s.get(e);if(!t||!e.isBuffer(t._triangleBuffer.buffer)){var n=i(e,new Float32Array([-1,-1,-1,4,4,-1]));t=a(e,[{buffer:n,type:e.FLOAT,size:2}]),t._triangleBuffer=n,s.set(e,t)}t.bind(),e.drawArrays(e.TRIANGLES,0,3),t.unbind()}var o="undefined"==typeof WeakMap?e("weak-map"):WeakMap,i=e("gl-buffer"),a=e("gl-vao"),s=new o;t.exports=r},{"gl-buffer":118,"gl-vao":226,"weak-map":168}],170:[function(e,t,n){"use strict";function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e){this.gl=e,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=c(e)}function i(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}function a(e,t,n,r,o){for(var i=e.primalOffset,a=e.primalMinor,s=e.mirrorOffset,l=e.mirrorMinor,u=r[t],c=0;c<3;++c)if(t!==c){var f=i,p=s,h=a,d=l;u&1<0?(h[c]=-1,d[c]=0):(h[c]=0,d[c]=1)}}function s(e,t){var n=new o(e);return n.update(t),n}t.exports=s;var l=e("./lib/text.js"),u=e("./lib/lines.js"),c=e("./lib/background.js"),f=e("./lib/cube.js"),p=e("./lib/ticks.js"),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=o.prototype;d.update=function(e){function t(t,n,r){if(r in e){var o,i=e[r],a=this[r];(t?Array.isArray(i)&&Array.isArray(i[0]):Array.isArray(i))?this[r]=o=[n(i[0]),n(i[1]),n(i[2])]:this[r]=o=[n(i),n(i),n(i)];for(var s=0;s<3;++s)if(o[s]!==a[s])return!0}return!1}e=e||{};var n,r=t.bind(this,!1,Number),o=t.bind(this,!1,Boolean),i=t.bind(this,!1,String),a=t.bind(this,!0,function(e){if(Array.isArray(e)){if(3===e.length)return[+e[0],+e[1],+e[2],1];if(4===e.length)return[+e[0],+e[1],+e[2],+e[3]]}return[0,0,0,1]}),s=!1,c=!1;if("bounds"in e)for(var f=e.bounds,h=0;h<2;++h)for(var d=0;d<3;++d)f[h][d]!==this.bounds[h][d]&&(c=!0),this.bounds[h][d]=f[h][d];if("ticks"in e){n=e.ticks,s=!0,this.autoTicks=!1;for(var h=0;h<3;++h)this.tickSpacing[h]=0}else r("tickSpacing")&&(this.autoTicks=!0,c=!0);if(this._firstInit&&("ticks"in e||"tickSpacing"in e||(this.autoTicks=!0),c=!0,s=!0,this._firstInit=!1),c&&this.autoTicks&&(n=p.create(this.bounds,this.tickSpacing),s=!0),s){for(var h=0;h<3;++h)n[h].sort(function(e,t){return e.x-t.x});p.equal(n,this.ticks)?s=!1:this.ticks=n}o("tickEnable"),i("tickFont")&&(s=!0),r("tickSize"),r("tickAngle"),r("tickPad"),a("tickColor");var m=i("labels");i("labelFont")&&(m=!0),o("labelEnable"),r("labelSize"),r("labelPad"),a("labelColor"),o("lineEnable"),o("lineMirror"),r("lineWidth"),a("lineColor"),o("lineTickEnable"),o("lineTickMirror"),r("lineTickLength"),r("lineTickWidth"),a("lineTickColor"),o("gridEnable"),r("gridWidth"),a("gridColor"),o("zeroEnable"),a("zeroLineColor"),r("zeroLineWidth"),o("backgroundEnable"),a("backgroundColor"),this._text?this._text&&(m||s)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=l(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&s&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};var m=[new i,new i,new i],v=[0,0,0],g={model:h,view:h,projection:h};d.isOpaque=function(){return!0},d.isTransparent=function(){return!1},d.drawTransparent=function(e){};var y=[0,0,0],b=[0,0,0],x=[0,0,0];d.draw=function(e){e=e||g;for(var t=this.gl,n=e.model||h,o=e.view||h,i=e.projection||h,s=this.bounds,l=f(n,o,i,s),u=l.cubeEdges,c=l.axis,p=o[12],d=o[13],_=o[14],w=o[15],T=this.pixelRatio*(i[3]*p+i[7]*d+i[11]*_+i[15]*w)/t.drawingBufferHeight,C=0;C<3;++C)this.lastCubeProps.cubeEdges[C]=u[C],this.lastCubeProps.axis[C]=c[C];for(var E=m,C=0;C<3;++C)a(m[C],C,this.bounds,u,c);for(var t=this.gl,k=v,C=0;C<3;++C)this.backgroundEnable[C]?k[C]=c[C]:k[C]=0;this._background.draw(n,o,i,s,k,this.backgroundColor),this._lines.bind(n,o,i,this);for(var C=0;C<3;++C){var S=[0,0,0];c[C]>0?S[C]=s[1][C]:S[C]=s[0][C];for(var A=0;A<2;++A){var P=(C+1+A)%3,M=(C+1+(1^A))%3;this.gridEnable[P]&&this._lines.drawGrid(P,M,this.bounds,S,this.gridColor[P],this.gridWidth[P]*this.pixelRatio)}for(var A=0;A<2;++A){var P=(C+1+A)%3,M=(C+1+(1^A))%3;this.zeroEnable[M]&&s[0][M]<=0&&s[1][M]>=0&&this._lines.drawZero(P,M,this.bounds,S,this.zeroLineColor[M],this.zeroLineWidth[M]*this.pixelRatio)}}for(var C=0;C<3;++C){this.lineEnable[C]&&this._lines.drawAxisLine(C,this.bounds,E[C].primalOffset,this.lineColor[C],this.lineWidth[C]*this.pixelRatio),this.lineMirror[C]&&this._lines.drawAxisLine(C,this.bounds,E[C].mirrorOffset,this.lineColor[C],this.lineWidth[C]*this.pixelRatio);for(var O=r(y,E[C].primalMinor),D=r(b,E[C].mirrorMinor),L=this.lineTickLength,A=0;A<3;++A){var j=T/n[5*A];O[A]*=L[A]*j,D[A]*=L[A]*j}this.lineTickEnable[C]&&this._lines.drawAxisTicks(C,E[C].primalOffset,O,this.lineTickColor[C],this.lineTickWidth[C]*this.pixelRatio),this.lineTickMirror[C]&&this._lines.drawAxisTicks(C,E[C].mirrorOffset,D,this.lineTickColor[C],this.lineTickWidth[C]*this.pixelRatio)}this._text.bind(n,o,i,this.pixelRatio);for(var C=0;C<3;++C){for(var R=E[C].primalMinor,F=r(x,E[C].primalOffset),A=0;A<3;++A)this.lineTickEnable[C]&&(F[A]+=T*R[A]*Math.max(this.lineTickLength[A],0)/n[5*A]);if(this.tickEnable[C]){for(var A=0;A<3;++A)F[A]+=T*R[A]*this.tickPad[A]/n[5*A];this._text.drawTicks(C,this.tickSize[C],this.tickAngle[C],F,this.tickColor[C])}if(this.labelEnable[C]){for(var A=0;A<3;++A)F[A]+=T*R[A]*this.labelPad[A]/n[5*A];F[C]+=.5*(s[0][C]+s[1][C]),this._text.drawLabel(C,this.labelSize[C],this.labelAngle[C],F,this.labelColor[C])}}},d.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{"./lib/background.js":171,"./lib/cube.js":172,"./lib/lines.js":173,"./lib/text.js":175,"./lib/ticks.js":176}],171:[function(e,t,n){"use strict";function r(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r}function o(e){for(var t=[],n=[],o=0,l=0;l<3;++l)for(var u=(l+1)%3,c=(l+2)%3,f=[0,0,0],p=[0,0,0],h=-1;h<=1;h+=2){n.push(o,o+2,o+1,o+1,o+2,o+3),f[l]=h,p[l]=h;for(var d=-1;d<=1;d+=2){f[u]=d;for(var m=-1;m<=1;m+=2)f[c]=m,t.push(f[0],f[1],f[2],p[0],p[1],p[2]),o+=1}var v=u;u=c,c=v}var g=i(e,new Float32Array(t)),y=i(e,new Uint16Array(n),e.ELEMENT_ARRAY_BUFFER),b=a(e,[{buffer:g,type:e.FLOAT,size:3,offset:0,stride:24},{buffer:g,type:e.FLOAT,size:3,offset:12,stride:24}],y),x=s(e);return x.attributes.position.location=0,x.attributes.normal.location=1,new r(e,g,b,x)}t.exports=o;var i=e("gl-buffer"),a=e("gl-vao"),s=e("./shaders").bg,l=r.prototype;l.draw=function(e,t,n,r,o,i){for(var a=!1,s=0;s<3;++s)a=a||o[s];if(a){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:e,view:t,projection:n,bounds:r,enable:o,colors:i},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),l.disable(l.POLYGON_OFFSET_FILL)}},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{"./shaders":174,"gl-buffer":118,"gl-vao":226}],172:[function(e,t,n){"use strict";function r(e,t,n){for(var r=0;r<4;++r){e[r]=n[12+r];for(var o=0;o<3;++o)e[r]+=t[o]*n[4*o+r]}}function o(e){for(var t=0;tS&&(_|=1<S&&(_|=1<p[m][1]&&(R=m));for(var F=-1,m=0;m<3;++m){var I=R^1<p[N][0]&&(N=I)}}var B=v;B[0]=B[1]=B[2]=0,B[a.log2(F^R)]=R&F,B[a.log2(R^N)]=R&N;var z=7^N;z===_||z===j?(z=7^F,B[a.log2(N^z)]=z&N):B[a.log2(F^z)]=z&F;for(var U=g,W=_,C=0;C<3;++C)W&1<=0;--m){var v=u[d[m]];s.push(l*v[0],-l*v[1],e)}}for(var s=(this.gl,[]),l=[0,0,0],u=[0,0,0],c=[0,0,0],h=[0,0,0],d=0;d<3;++d){c[d]=s.length/p|0,a(.5*(e[0][d]+e[1][d]),t[d],n),h[d]=(s.length/p|0)-c[d],l[d]=s.length/p|0;for(var m=0;m=0&&(o=n.length-r-1);var i=Math.pow(10,o),a=Math.round(e*t*i),s=a+"";if(s.indexOf("e")>=0)return s;var l=a/i,u=a%i;a<0?(l=0|-Math.ceil(l),u=0|-u):(l=0|Math.floor(l),u=0|u);var c=""+l;if(a<0&&(c="-"+c),o){for(var f=""+u;f.length=e[0][o];--a)i.push({x:a*t[o],text:r(t[o],a)});n.push(i)}return n}function i(e,t){for(var n=0;n<3;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r1&&(i=1);for(var a=1-i,s=e.length,l=new Array(s),u=0;u0||a>0&&c<0){var f=o(s,c,l,a);n.push(f),i.push(f.slice())}c<0?i.push(l.slice()):c>0?n.push(l.slice()):(n.push(l.slice()),i.push(l.slice())),a=c}return{positive:n,negative:i}}function a(e,t){for(var n=[],i=r(e[e.length-1],t),a=e[e.length-1],s=e[0],l=0;l0||i>0&&u<0)&&n.push(o(a,u,s,i)),u>=0&&n.push(s.slice()),i=u}return n}function s(e,t){for(var n=[],i=r(e[e.length-1],t),a=e[e.length-1],s=e[0],l=0;l0||i>0&&u<0)&&n.push(o(a,u,s,i)),u<=0&&n.push(s.slice()),i=u}return n}var l=e("robust-dot-product"),u=e("robust-sum");t.exports=i,t.exports.positive=a,t.exports.negative=s},{"robust-dot-product":179,"robust-sum":262}],179:[function(e,t,n){"use strict";function r(e,t){for(var n=o(e[0],t[0]),r=1;r0){var n=Math.round(Math.pow(10,t));return Math.ceil(e/n)*n}return Math.ceil(e)}function a(e){return"boolean"!=typeof e||e}function s(e){function t(){if(!_&&q.autoResize){var e=w.parentNode,t=1,n=1;e&&e!==document.body?(t=e.clientWidth,n=e.clientHeight):(t=window.innerWidth,n=window.innerHeight);var r=0|Math.ceil(t*q.pixelRatio),o=0|Math.ceil(n*q.pixelRatio);if(r!==w.width||o!==w.height){w.width=r,w.height=o;var i=w.style;i.position=i.position||"absolute",i.left="0px",i.top="0px",i.width=t+"px",i.height=n+"px",N=!0}}}function n(){for(var e=j.length,t=I.length,n=0;n0&&0===F[t-1];)F.pop(),I.pop().dispose()}function s(){return!!q.contextLost||void(C.isContextLost()&&(q.contextLost=!0,q.mouseListener.enabled=!1,q.selection.object=null,q.oncontextloss&&q.oncontextloss()))}function y(){if(!s()){C.colorMask(!0,!0,!0,!0),C.depthMask(!0),C.disable(C.BLEND),C.enable(C.DEPTH_TEST);for(var e=j.length,t=I.length,n=0;nk.distance)continue;for(var u=0;u>8*u&255;return e.call(this),a.bind(),a.uniforms.pixelScale=n,a.uniforms.viewTransform=t,a.uniforms.pickOffset=r,this.positionBuffer.bind(),a.attributes.position.pointer(),this.offsetBuffer.bind(),a.attributes.offset.pointer(),this.idBuffer.bind(),a.attributes.id.pointer(l.UNSIGNED_BYTE,!1),l.drawArrays(l.TRIANGLES,0,s),o+this.numPoints}}(),h.pick=function(e,t,n){var r=this.pickOffset,o=this.numPoints;if(n=r+o)return null;var i=n-r,a=this.points;return{object:this,pointId:i,dataCoord:[a[2*i],a[2*i+1]]}},h.update=function(e){e=e||{};var t=e.positions||[],n=e.colors||[],o=e.glyphs||[],i=e.sizes||[],a=e.borderWidths||[],s=e.borderColors||[];this.points=t;for(var c=this.bounds=[1/0,1/0,-(1/0),-(1/0)],f=0,p=0;p>1;for(var h=0;h<2;++h)c[h]=Math.min(c[h],t[2*p+h]),c[2+h]=Math.max(c[2+h],t[2*p+h])}c[0]===c[2]&&(c[2]+=1),c[3]===c[1]&&(c[3]+=1);for(var d=1/(c[2]-c[0]),m=1/(c[3]-c[1]),v=c[0],g=c[1],y=u.mallocFloat32(2*f),b=u.mallocFloat32(2*f),x=u.mallocUint8(4*f),_=u.mallocUint32(f),w=0,p=0;pe;){var h=n[p-1],d=r[2*(p-1)];if((h-s||l-d)>=0)break;n[p]=h,r[2*p]=d,r[2*p+1]=r[2*p-1],o[p]=o[p-1],i[p]=i[p-1],p-=1}n[p]=s,r[2*p]=l,r[2*p+1]=u,o[p]=c,i[p]=f}}function i(e,t,n,r,o,i){var a=n[e],s=r[2*e],l=r[2*e+1],u=o[e],c=i[e];n[e]=n[t],r[2*e]=r[2*t],r[2*e+1]=r[2*t+1],o[e]=o[t],i[e]=i[t],n[t]=a,r[2*t]=s,r[2*t+1]=l,o[t]=u,i[t]=c}function a(e,t,n,r,o,i){n[e]=n[t],r[2*e]=r[2*t],r[2*e+1]=r[2*t+1],o[e]=o[t],i[e]=i[t]}function s(e,t,n,r,o,i,a){var s=r[e],l=o[2*e],u=o[2*e+1],c=i[e],f=a[e];r[e]=r[t],o[2*e]=o[2*t],o[2*e+1]=o[2*t+1],i[e]=i[t],a[e]=a[t],r[t]=r[n],o[2*t]=o[2*n],o[2*t+1]=o[2*n+1],i[t]=i[n],a[t]=a[n],r[n]=s,o[2*n]=l,o[2*n+1]=u,i[n]=c,a[n]=f}function l(e,t,n,r,o,i,a,s,l,u,c){s[e]=s[t],l[2*e]=l[2*t],l[2*e+1]=l[2*t+1],u[e]=u[t],c[e]=c[t],s[t]=n,l[2*t]=r,l[2*t+1]=o,u[t]=i,c[t]=a}function u(e,t,n,r,o){return(n[e]-n[t]||r[2*t]-r[2*e]||o[e]-o[t])<0}function c(e,t,n,r,o,i,a,s){return(t-i[e]||a[2*e]-n||o-s[e])<0}function f(e,t,n,r,h,d){var m=(t-e+1)/6|0,v=e+m,g=t-m,y=e+t>>1,b=y-m,x=y+m,_=v,w=b,T=y,C=x,E=g,k=e+1,S=t-1,A=0;u(_,w,n,r,h,d)&&(A=_,_=w,w=A),u(C,E,n,r,h,d)&&(A=C,C=E,E=A),u(_,T,n,r,h,d)&&(A=_,_=T,T=A),u(w,T,n,r,h,d)&&(A=w,w=T,T=A),u(_,C,n,r,h,d)&&(A=_,_=C,C=A),u(T,C,n,r,h,d)&&(A=T,T=C,C=A),u(w,E,n,r,h,d)&&(A=w,w=E,E=A),u(w,T,n,r,h,d)&&(A=w,w=T,T=A),u(C,E,n,r,h,d)&&(A=C,C=E,E=A);var P=n[w],M=r[2*w],O=r[2*w+1],D=h[w],L=d[w],j=n[C],R=r[2*C],F=r[2*C+1],I=h[C],N=d[C],B=_,z=T,U=E,W=v,H=y,q=g,V=n[B],G=n[z],Y=n[U];n[W]=V,n[H]=G,n[q]=Y;for(var K=0;K<2;++K){var X=r[2*B+K],Z=r[2*z+K],Q=r[2*U+K];r[2*W+K]=X,r[2*H+K]=Z,r[2*q+K]=Q}var J=h[B],$=h[z],ee=h[U];h[W]=J,h[H]=$,h[q]=ee;var te=d[B],ne=d[z],re=d[U];d[W]=te,d[H]=ne,d[q]=re,a(b,e,n,r,h,d),a(x,t,n,r,h,d);for(var oe=k;oe<=S;++oe)if(c(oe,P,M,O,D,n,r,h))oe!==k&&i(oe,k,n,r,h,d),++k;else if(!c(oe,j,R,F,I,n,r,h))for(;;){if(c(S,j,R,F,I,n,r,h)){c(S,P,M,O,D,n,r,h)?(s(oe,k,S,n,r,h,d),++k,--S):(i(oe,S,n,r,h,d),--S);break}if(--S=Math.max(.9*h,32)){var b=u+s>>>1;l(v,g,f,p,b,c+1),p=b}l(v,g,f,p,y,c+1),p=y}}}var u=e.length>>>1;if(u<1)return[];for(var c=1/0,f=1/0,p=-(1/0),h=-(1/0),d=0;d=0;--_){e[2*_]=(e[2*_]-c)*g,e[2*_+1]=(e[2*_+1]-f)*y;var E=x[_];E!==T&&(w.push(new o(b*Math.pow(.5,E),_+1,C-(_+1))),C=_+1,T=E)}return w.push(new o(b*Math.pow(.5,E+1),0,C)),a.free(x),w}var a=e("typedarray-pool"),s=e("./lib/sort");t.exports=i},{"./lib/sort":188,"typedarray-pool":278}],190:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){this.plot=e,this.offsetBuffer=t,this.pickBuffer=n,this.weightBuffer=r,this.shader=o,this.pickShader=i,this.scales=[],this.size=12,this.borderSize=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.bounds=[1/0,1/0,-(1/0),-(1/0)],this.pickOffset=0,this.points=null,this.xCoords=null}function o(e,t){var n=e.gl,o=a(n),s=a(n),l=a(n),u=i(n,c.pointVertex,c.pointFragment),f=i(n,c.pickVertex,c.pickFragment),p=new r(e,o,s,l,u,f);return p.update(t),e.addObject(p),p}var i=e("gl-shader"),a=e("gl-buffer"),s=e("binary-search-bounds"),l=e("snap-points-2d"),u=e("typedarray-pool"),c=e("./lib/shader");t.exports=o;var f=r.prototype;f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.xCoords&&u.free(this.xCoords),this.plot.removeObject(this)},f.update=function(e){function t(t,n){return t in e?e[t]:n}e=e||{},this.size=t("size",12),this.color=t("color",[1,0,0,1]).slice(),this.borderSize=t("borderSize",1),this.borderColor=t("borderColor",[0,0,0,1]).slice(),this.xCoords&&u.free(this.xCoords);var n=e.positions,r=u.mallocFloat32(n.length),o=u.mallocInt32(n.length>>>1);r.set(n);var i=u.mallocFloat32(n.length);this.points=n,this.scales=l(r,o,i,this.bounds),this.offsetBuffer.update(r),this.pickBuffer.update(o),this.weightBuffer.update(i);for(var a=u.mallocFloat32(n.length>>>1),s=0,c=0;s>>1,this.pickOffset=0},f.drawPick=function(){var e=[1,0,0,0,1,0,0,0,1],t=[0,0,0,0];return function(n){var r=this.plot,o=this.pickShader,i=this.scales,a=this.offsetBuffer,l=this.pickBuffer,u=this.bounds,c=this.size,f=this.borderSize,p=r.gl,h=r.pickPixelRatio,d=r.viewBox,m=r.dataBox;if(0===this.pointCount)return n;var v=u[2]-u[0],g=u[3]-u[1],y=m[2]-m[0],b=m[3]-m[1],x=(d[2]-d[0])*h/r.pixelRatio,_=(d[3]-d[1])*h/r.pixelRatio,w=Math.min(y/x,b/_);e[0]=2*v/y,e[4]=2*g/b,e[6]=2*(u[0]-m[0])/y-1,e[7]=2*(u[1]-m[1])/b-1,this.pickOffset=n,t[0]=255&n,t[1]=n>>8&255,t[2]=n>>16&255,t[3]=n>>24&255,o.bind(),o.uniforms.matrix=e,o.uniforms.color=this.color,o.uniforms.borderColor=this.borderColor,o.uniforms.pointSize=h*(c+f),o.uniforms.pickOffset=t,0===this.borderSize?o.uniforms.centerFraction=2:o.uniforms.centerFraction=c/(c+f+1.25),a.bind(),o.attributes.position.pointer(),l.bind(),o.attributes.pickId.pointer(p.UNSIGNED_BYTE);for(var T=this.xCoords,C=(m[0]-u[0]-w*c*h)/v,E=(m[2]-u[0]+w*c*h)/v,k=i.length-1;k>=0;--k){var S=i[k];if(!(S.pixelSize1)){var A=S.offset,P=S.count+A,M=s.ge(T,C,A,P-1),O=s.lt(T,E,M,P-1)+1;O>M&&p.drawArrays(p.POINTS,M,O-M)}}return n+this.pointCount}}(),f.draw=function(){var e=[1,0,0,0,1,0,0,0,1];return function(){var t=this.plot,n=this.shader,r=this.scales,o=this.offsetBuffer,i=this.bounds,a=this.size,l=this.borderSize,u=t.gl,c=t.pixelRatio,f=t.viewBox,p=t.dataBox;if(0!==this.pointCount){var h=i[2]-i[0],d=i[3]-i[1],m=p[2]-p[0],v=p[3]-p[1],g=f[2]-f[0],y=f[3]-f[1],b=Math.min(m/g,v/y);e[0]=2*h/m,e[4]=2*d/v,e[6]=2*(i[0]-p[0])/m-1,e[7]=2*(i[1]-p[1])/v-1,n.bind(),n.uniforms.matrix=e,n.uniforms.color=this.color,n.uniforms.borderColor=this.borderColor,n.uniforms.pointSize=c*(a+l),n.uniforms.useWeight=1,0===this.borderSize?n.uniforms.centerFraction=2:n.uniforms.centerFraction=a/(a+l+1.25),o.bind(),n.attributes.position.pointer(),this.weightBuffer.bind(),n.attributes.weight.pointer();for(var x=this.xCoords,_=(p[0]-i[0]-b*a*c)/h,w=(p[2]-i[0]+b*a*c)/h,T=!0,C=r.length-1;C>=0;--C){var E=r[C];if(!(E.pixelSize1)){var k=E.offset,S=E.count+k,A=s.ge(x,_,k,S-1),P=s.lt(x,w,A,S-1)+1;P>A&&u.drawArrays(u.POINTS,A,P-A),T&&(T=!1,n.uniforms.useWeight=0)}}}}}(),f.pick=function(e,t,n){var r=this.pickOffset,o=this.pointCount;if(n=r+o)return null;var i=n-r,a=this.points;return{object:this,pointId:i,dataCoord:[a[2*i],a[2*i+1]]}}},{"./lib/shader":186,"binary-search-bounds":187,"gl-buffer":118,"gl-shader":197,"snap-points-2d":189,"typedarray-pool":278}],191:[function(e,t,n){"use strict";function r(e,t){var n=i[t];if(n||(n=i[t]={}),e in n)return n[e];for(var r=o(e,{textAlign:"center",textBaseline:"middle",lineHeight:1,font:t}),a=o(e,{triangles:!0,textAlign:"center",textBaseline:"middle",lineHeight:1,font:t}),s=[[1/0,1/0],[-(1/0),-(1/0)]],l=0;lMath.abs(F[1])){var I=R;R=F,F=I,I=L,L=j,j=I;var N=O;O=D,D=N}R[0]<0&&(L[O]=-1),F[1]>0&&(j[D]=-1);for(var B=0,z=0,M=0;M<4;++M)B+=Math.pow(d[4*O+M],2),z+=Math.pow(d[4*D+M],2);L[O]/=Math.sqrt(B),j[D]/=Math.sqrt(z),h.axes[0]=L,h.axes[1]=j,h.fragClipBounds[0]=u(A,b[0],_,-1e8),h.fragClipBounds[1]=u(A,b[1],_,1e8),t.vao.draw(p.TRIANGLES,t.vertexCount),t.lineWidth>0&&(p.lineWidth(t.lineWidth),t.vao.draw(p.LINES,t.lineVertexCount,t.vertexCount))}}function p(e,t,n,r,o,i){var a=n.gl;if(n.vao.bind(),o===n.opacity<1||i){e.bind();var s=e.uniforms;s.model=r.model||x,s.view=r.view||x,s.projection=r.projection||x,w[0]=2/a.drawingBufferWidth,w[1]=2/a.drawingBufferHeight,s.screenSize=w,s.highlightId=n.highlightId,s.highlightScale=n.highlightScale,s.fragClipBounds=D,s.clipBounds=n.axes.bounds,s.opacity=n.opacity,s.pickGroup=n.pickId/255,s.pixelRatio=n.pixelRatio,n.vao.draw(a.TRIANGLES,n.vertexCount),n.lineWidth>0&&(a.lineWidth(n.lineWidth),n.vao.draw(a.LINES,n.lineVertexCount,n.vertexCount))}f(t,n,r,o,i),n.vao.unbind()}function h(e){var t=e.gl,n=y.createPerspective(t),r=y.createOrtho(t),o=y.createProject(t),i=y.createPickPerspective(t),s=y.createPickOrtho(t),l=y.createPickProject(t),u=d(t),c=d(t),f=d(t),p=d(t),h=m(t,[{buffer:u,size:3,type:t.FLOAT},{buffer:c,size:4,type:t.FLOAT},{buffer:f,size:2,type:t.FLOAT},{buffer:p,size:4,type:t.UNSIGNED_BYTE,normalized:!0}]),v=new a(t,n,r,o,u,c,f,p,h,i,s,l);return v.update(e),v}var d=e("gl-buffer"),m=e("gl-vao"),v=e("typedarray-pool"),g=e("gl-mat4/multiply"),y=e("./lib/shaders"),b=e("./lib/glyphs"),x=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];t.exports=h;var _=a.prototype;_.pickSlots=1,_.setPickBase=function(e){this.pickId=e},_.isTransparent=function(){if(this.opacity<1)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectOpacity[e]<1)return!0;return!1},_.isOpaque=function(){if(this.opacity>=1)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectOpacity[e]>=1)return!0;return!1};var w=[0,0],T=[0,0,0],C=[0,0,0],E=[0,0,0,1],k=[0,0,0,1],S=x.slice(),A=[0,0,0],P=[[0,0,0],[0,0,0]],M=[-1e8,-1e8,-1e8],O=[1e8,1e8,1e8],D=[M,O];_.draw=function(e){var t=this.useOrtho?this.orthoShader:this.shader;p(t,this.projectShader,this,e,!1,!1)},_.drawTransparent=function(e){var t=this.useOrtho?this.orthoShader:this.shader;p(t,this.projectShader,this,e,!0,!1)},_.drawPick=function(e){var t=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;p(t,this.pickProjectShader,this,e,!1,!0)},_.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[2]+(e.value[1]<<8)+(e.value[0]<<16);if(t>=this.pointCount||t<0)return null;var n=this.points[t],r=this._selectResult;r.index=t;for(var o=0;o<3;++o)r.position[o]=r.dataCoordinate[o]=n[o];return r},_.highlight=function(e){if(e){var t=e.index,n=255&t,r=t>>8&255,o=t>>16&255;this.highlightId=[n/255,r/255,o/255,0]}else this.highlightId=[1,1,1,1]},_.update=function(e){if(e=e||{},"perspective"in e&&(this.useOrtho=!e.perspective),"orthographic"in e&&(this.useOrtho=!!e.orthographic),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"project"in e)if(Array.isArray(e.project))this.axesProject=e.project;else{var t=!!e.project;this.axesProject=[t,t,t]}if("projectScale"in e)if(Array.isArray(e.projectScale))this.projectScale=e.projectScale.slice();else{var n=+e.projectScale;this.projectScale=[n,n,n]}if("projectOpacity"in e)if(Array.isArray(e.projectOpacity))this.projectOpacity=e.projectOpacity.slice();else{var n=+e.projectOpacity;this.projectOpacity=[n,n,n]}"opacity"in e&&(this.opacity=e.opacity),this.dirty=!0;var r=e.position;if(r){var o=e.font||"normal",i=e.alignment||[0,0],a=[1/0,1/0,1/0],s=[-(1/0),-(1/0),-(1/0)],l=e.glyph,u=e.color,c=e.size,f=e.angle,p=e.lineColor,h=0,d=0,m=0,g=r.length;e:for(var y=0;y0&&(O[0]=-i[0]*(1+E[0][0]));for(var H=T.cells,q=T.positions,_=0;_0){var g=n*c;a.drawBox(f-g,p-g,h+g,p+g,i),a.drawBox(f-g,d-g,h+g,d+g,i),a.drawBox(f-g,p-g,f+g,d+g,i),a.drawBox(h-g,p-g,h+g,d+g,i)}}}},l.update=function(e){e=e||{},this.innerFill=!!e.innerFill,this.outerFill=!!e.outerFill,this.innerColor=(e.innerColor||[0,0,0,.5]).slice(),this.outerColor=(e.outerColor||[0,0,0,.5]).slice(),this.borderColor=(e.borderColor||[0,0,0,1]).slice(),this.borderWidth=e.borderWidth||0,this.selectBox=(e.selectBox||this.selectBox).slice()},l.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{"./lib/shaders":194,"gl-buffer":118,"gl-shader":197}],196:[function(e,t,n){"use strict";function r(e,t,n,r,o){this.coord=[e,t],this.id=n,this.value=r,this.distance=o}function o(e,t,n){this.gl=e,this.fbo=t,this.buffer=n,this._readTimeout=null;var r=this;this._readCallback=function(){r.gl&&(t.bind(),e.readPixels(0,0,t.shape[0],t.shape[1],e.RGBA,e.UNSIGNED_BYTE,r.buffer),r._readTimeout=null)}}function i(e,t){var n=a(e,t),r=s.mallocUint8(t[0]*t[1]*4);return new o(e,n,r)}t.exports=i;var a=e("gl-fbo"),s=e("typedarray-pool"),l=e("ndarray"),u=e("bit-twiddle").nextPow2,c=e("cwise/lib/wrapper")({args:["array",{offset:[0,0,1],array:0},{offset:[0,0,2],array:0},{offset:[0,0,3],array:0},"scalar","scalar","index"],pre:{body:"{this_closestD2=1e8,this_closestX=-1,this_closestY=-1}",args:[],thisVars:["this_closestD2","this_closestX","this_closestY"],localVars:[]},body:{body:"{if(255>_inline_34_arg0_||255>_inline_34_arg1_||255>_inline_34_arg2_||255>_inline_34_arg3_){var _inline_34_l=_inline_34_arg4_-_inline_34_arg6_[0],_inline_34_a=_inline_34_arg5_-_inline_34_arg6_[1],_inline_34_f=_inline_34_l*_inline_34_l+_inline_34_a*_inline_34_a;_inline_34_fthis.buffer.length){s.free(this.buffer);for(var r=this.buffer=s.mallocUint8(u(n*t*4)),o=0;o=0){for(var C=0|T.type.charAt(T.type.length-1),E=new Array(C),k=0;k=0;)S+=1;_[w]=S}var A=new Array(n.length);i(),h._relink=i,h.types={uniforms:l(n),attributes:l(r)},h.attributes=s(d,h,b,_),Object.defineProperty(h,"uniforms",a(d,h,n,A))},t.exports=i},{"./lib/GLError":198,"./lib/create-attributes":199,"./lib/create-uniforms":200,"./lib/reflect":201,"./lib/runtime-reflect":202,"./lib/shader-cache":203}],198:[function(e,t,n){function r(e,t,n){this.shortMessage=t||"",this.longMessage=n||"",this.rawError=e||"",this.message="gl-shader: "+(t||e||"")+(n?"\n"+n:""),this.stack=(new Error).stack}r.prototype=new Error,r.prototype.name="GLError",r.prototype.constructor=r,t.exports=r},{}],199:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=o,this._constFunc=i}function o(e,t,n,o,i,a,s){for(var l=["gl","v"],u=[],c=0;c=0){var d=p.charCodeAt(p.length-1)-48;if(d<2||d>4)throw new s("","Invalid data type for attribute "+f+": "+p);o(e,t,h[0],r,d,a,f)}else{if(!(p.indexOf("mat")>=0))throw new s("","Unknown data type for attribute "+f+": "+p);var d=p.charCodeAt(p.length-1)-48;if(d<2||d>4)throw new s("","Invalid data type for attribute "+f+": "+p);i(e,t,h,r,d,a,f)}}}return a}t.exports=a;var s=e("./GLError"),l=r.prototype;l.pointer=function(e,t,n,r){var o=this,i=o._gl,a=o._locations[o._index];i.vertexAttribPointer(a,o._dimension,e||i.FLOAT,!!t,n||0,r||0),i.enableVertexAttribArray(a)},l.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(l,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}})},{"./GLError":198}],200:[function(e,t,n){"use strict";function r(e){var t=new Function("y","return function(){return y}");return t(e)}function o(e,t){for(var n=new Array(e),r=0;r4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+n);return"gl.uniformMatrix"+o+"fv(locations["+t+"],false,obj"+e+")"}throw new s("","Unknown uniform data type for "+name+": "+n)}var o=n.charCodeAt(n.length-1)-48;if(o<2||o>4)throw new s("","Invalid data type");switch(n.charAt(0)){case"b":case"i":return"gl.uniform"+o+"iv(locations["+t+"],obj"+e+")";case"v":return"gl.uniform"+o+"fv(locations["+t+"],obj"+e+")";default:throw new s("","Unrecognized data type for vector "+name+": "+n)}}}function c(e,t){if("object"!=typeof t)return[[e,t]];var n=[];for(var r in t){var o=t[r],i=e;i+=parseInt(r)+""===r?"["+r+"]":"."+r,"object"==typeof o?n.push.apply(n,c(i,o)):n.push([i,o])}return n}function f(t){for(var r=["return function updateProperty(obj){"],o=c("",t),a=0;a4)throw new s("","Invalid data type");return"b"===e.charAt(0)?o(n,!1):o(n,0)}if(0===e.indexOf("mat")&&4===e.length){var n=e.charCodeAt(e.length-1)-48;if(n<2||n>4)throw new s("","Invalid uniform dimension type for matrix "+name+": "+e);return o(n*n,0)}throw new s("","Unknown uniform data type for "+name+": "+e)}}function h(e,t,o){if("object"==typeof o){var a=d(o);Object.defineProperty(e,t,{get:r(a),set:f(o),enumerable:!0,configurable:!1})}else i[o]?Object.defineProperty(e,t,{get:l(o),set:f(o),enumerable:!0,configurable:!1}):e[t]=p(n[o].type)}function d(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n1){l[0]in a||(a[l[0]]=[]),a=a[l[0]];for(var u=1;u1)for(var l=0;l + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT license. + */ +"use strict";var r=e("repeat-string");t.exports=function(e,t,n){return n="undefined"!=typeof n?n+"":" ",r(n,t)+e}},{"repeat-string":254}],207:[function(e,t,n){t.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},{}],208:[function(e,t,n){var r=e("./1.0/numbers");t.exports=function(e){return r[e]}},{"./1.0/numbers":207}],209:[function(e,t,n){function r(e){for(var t=Array.isArray(e)?e:o(e),n=0;n=0),u[8]){case"b":r=r.toString(2);break;case"c":r=String.fromCharCode(r);break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,u[6]?parseInt(u[6]):0);break;case"e":r=u[7]?r.toExponential(u[7]):r.toExponential();break;case"f":r=u[7]?parseFloat(r).toFixed(u[7]):parseFloat(r);break;case"g":r=u[7]?parseFloat(r).toPrecision(u[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=(r=String(r))&&u[7]?r.substring(0,u[7]):r;break;case"u":r>>>=0;break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase()}a.json.test(u[8])?v[v.length]=r:(!a.number.test(u[8])||g&&!u[3]?y="":(y=g?"+":"-",r=r.toString().replace(a.sign,"")),f=u[4]?"0"===u[4]?"0":u[4].charAt(1):" ",p=u[6]-(y+r).length,c=u[6]&&p>0?i(f,p):"",v[v.length]=u[5]?y+r+c:"0"===f?y+c+r:c+y+r)}return v.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],o=0;t;){if(null!==(n=a.text.exec(t)))r[r.length]=n[0];else if(null!==(n=a.modulo.exec(t)))r[r.length]="%";else{if(null===(n=a.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){o|=1;var i=[],s=n[2],l=[];if(null===(l=a.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i[i.length]=l[1];""!==(s=s.substring(l[0].length));)if(null!==(l=a.key_access.exec(s)))i[i.length]=l[1];else{if(null===(l=a.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");i[i.length]=l[1]}n[2]=i}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r[r.length]=n}t=t.substring(n[0].length)}return r};var s=function(e,t,r){return r=(t||[]).slice(0),r.splice(0,0,e),n.apply(null,r)};"undefined"!=typeof r?(r.sprintf=n,r.vsprintf=s):(t.sprintf=n,t.vsprintf=s,"function"==typeof e&&e.amd&&e(function(){return{sprintf:n,vsprintf:s}}))}("undefined"==typeof window?this:window)},{}],212:[function(e,t,n){function r(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:o(t,e)}}var o=e("./hidden-store.js");t.exports=r},{"./hidden-store.js":213}],213:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],214:[function(e,t,n){function r(){var e=o();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){e(t).value=n},has:function(t){return"value"in e(t)},"delete":function(t){return delete e(t).value}}}var o=e("./create-store.js");t.exports=r},{"./create-store.js":212}],215:[function(e,t,n){"use strict";function r(e){this.plot=e,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}function o(e,t){var n=new r(e);return n.update(t),e.addOverlay(n),n}t.exports=o;var i=r.prototype;i.update=function(e){e=e||{},this.enable=(e.enable||[!0,!0,!1,!1]).slice(),this.width=(e.width||[1,1,1,1]).slice(),this.color=(e.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map(function(e){return e.slice()}),this.center=(e.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var e=this.enable,t=this.width,n=this.color,r=this.center,o=this.plot,i=o.line,a=o.dataBox,s=o.viewBox;if(i.bind(),a[0]<=r[0]&&r[0]<=a[2]&&a[1]<=r[1]&&r[1]<=a[3]){var l=s[0]+(r[0]-a[0])/(a[2]-a[0])*(s[2]-s[0]),u=s[1]+(r[1]-a[1])/(a[3]-a[1])*(s[3]-s[1]);e[0]&&i.drawLine(l,u,s[0],u,t[0],n[0]),e[1]&&i.drawLine(l,u,l,s[1],t[1],n[1]),e[2]&&i.drawLine(l,u,s[2],u,t[2],n[2]),e[3]&&i.drawLine(l,u,l,s[3],t[3],n[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],216:[function(e,t,n){var r=e("gl-shader"),o="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\n\nvoid main() {\n worldCoordinate = vec3(uv.zw, f.x);\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n vec4 clipPosition = projection * view * worldPosition;\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n",i="precision mediump float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution_2_0(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\n\n\nfloat beckmannSpecular_1_1(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution_2_0(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\n\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\n\nvoid main() {\n if(kill > 0.0 ||\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\n discard;\n }\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = beckmannSpecular_1_1(L, V, N, roughness);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = texture2D(colormap, vec2(value, value));\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n",a="precision mediump float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n vec4 worldPosition = model * vec4(dataCoordinate, 1.0);\n\n vec4 clipPosition = projection * view * worldPosition;\n clipPosition.z = clipPosition.z + zOffset;\n\n gl_Position = clipPosition;\n value = f;\n kill = -1.0;\n worldCoordinate = dataCoordinate;\n planeCoordinate = uv.zw;\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n",s="precision mediump float;\n#define GLSLIFY 1\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if(kill > 0.0 ||\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\n discard;\n }\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n";n.createShader=function(e){var t=r(e,o,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},n.createPickShader=function(e){var t=r(e,o,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},n.createContourShader=function(e){var t=r(e,a,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t},n.createPickContourShader=function(e){var t=r(e,a,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t}},{"gl-shader":197}],217:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{dup:21}],218:[function(e,t,n){"use strict";function r(e){if(e in l)return l[e];for(var t=[],n=0;n=0?s.push("0"):t.indexOf(-(l+1))>=0?s.push("s["+l+"]-1"):(s.push("-1"),r.push("1"),o.push("s["+l+"]-2"));var u=".lo("+r.join()+").hi("+o.join()+")";if(0===r.length&&(u=""),n>0){a.push("if(1");for(var l=0;l=0||t.indexOf(-(l+1))>=0||a.push("&&s[",l,"]>2");a.push("){grad",n,"(src.pick(",s.join(),")",u);for(var l=0;l=0||t.indexOf(-(l+1))>=0||a.push(",dst.pick(",s.join(),",",l,")",u);a.push(");")}for(var l=0;l1){dst.set(",s.join(),",",c,",0.5*(src.get(",p.join(),")-src.get(",h.join(),")))}else{dst.set(",s.join(),",",c,",0)};"):a.push("if(s[",c,"]>1){diff(",f,",src.pick(",p.join(),")",u,",src.pick(",h.join(),")",u,");}else{zero(",f,");};");break;case"mirror":0===n?a.push("dst.set(",s.join(),",",c,",0);"):a.push("zero(",f,");");break;case"wrap":var d=s.slice(),m=s.slice();t[l]<0?(d[c]="s["+c+"]-2",m[c]="0"):(d[c]="s["+c+"]-1",m[c]="1"),0===n?a.push("if(s[",c,"]>2){dst.set(",s.join(),",",c,",0.5*(src.get(",d.join(),")-src.get(",m.join(),")))}else{dst.set(",s.join(),",",c,",0)};"):a.push("if(s[",c,"]>2){diff(",f,",src.pick(",d.join(),")",u,",src.pick(",m.join(),")",u,");}else{zero(",f,");};");break;default:throw new Error("ndarray-gradient: Invalid boundary condition")}}n>0&&a.push("};")}var n=e.join(),o=u[n];if(o)return o;for(var i=e.length,a=["function gradient(dst,src){var s=src.shape.slice();"],s=0;s<1<0)][n],T(l,e.model,l);var u=B.clipBounds[n];for(o=0;o<2;++o)for(r=0;r<3;++r)u[o][r]=e.clipBounds[o][r];u[0][n]=-1e8,u[1][n]=1e8}return B.showSurface=a,B.showContour=s,B}function s(e,t){e=e||{};var n=this.gl;n.disable(n.CULL_FACE),this._colorMap.bind(0);var r=z;r.model=e.model||L,r.view=e.view||L,r.projection=e.projection||L,r.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],r.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],r.contourColor=this.contourColor[0],r.inverseModel=C(r.inverseModel,r.model);for(var o=0;o<2;++o)for(var i=r.clipBounds[o],s=0;s<3;++s)i[s]=Math.min(Math.max(this.clipBounds[o][s],-1e8),1e8);r.kambient=this.ambientLight,r.kdiffuse=this.diffuseLight,r.kspecular=this.specularLight,r.roughness=this.roughness,r.fresnel=this.fresnel,r.opacity=this.opacity,r.height=0,r.permutation=W;var l=U;for(T(l,r.view,r.model),T(l,r.projection,l),C(l,l),o=0;o<3;++o)r.eyePosition[o]=l[12+o]/l[15];var u=l[15];for(o=0;o<3;++o)u+=this.lightPosition[o]*l[4*o+3];for(o=0;o<3;++o){var c=l[12+o];for(s=0;s<3;++s)c+=l[4*s+o]*this.lightPosition[s];r.lightPosition[o]=c/u}var f=a(r,this);if(f.showSurface&&t===this.opacity<1){for(this._shader.bind(),this._shader.uniforms=r,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(n.TRIANGLES,this._vertexCount),o=0;o<3;++o)this.surfaceProject[o]&&this.vertexCount&&(this._shader.uniforms.model=f.projections[o],this._shader.uniforms.clipBounds=f.clipBounds[o],this._vao.draw(n.TRIANGLES,this._vertexCount));this._vao.unbind()}if(f.showContour&&!t){var p=this._contourShader;r.kambient=1,r.kdiffuse=0,r.kspecular=0,r.opacity=1,p.bind(),p.uniforms=r;var h=this._contourVAO;for(h.bind(),o=0;o<3;++o)for(p.uniforms.permutation=R[o],n.lineWidth(this.contourWidth[o]),s=0;s=1)return!0;for(var e=0;e<3;++e)if(this._contourCounts[e].length>0||this._dynamicCounts[e]>0)return!0;return!1},I.pickSlots=1,I.setPickBase=function(e){this.pickId=e};var N=[0,0,0],B={showSurface:!1,showContour:!1,projections:[L.slice(),L.slice(),L.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]},z={model:L,view:L,projection:L,inverseModel:L.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1},U=L.slice(),W=[1,0,0,0,1,0,0,0,1];I.draw=function(e){return s.call(this,e,!1)},I.drawTransparent=function(e){return s.call(this,e,!0)};var H={model:L,view:L,projection:L,inverseModel:L,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};I.drawPick=function(e){e=e||{};var t=this.gl;t.disable(t.CULL_FACE);var n=H;n.model=e.model||L,n.view=e.view||L,n.projection=e.projection||L,n.shape=this._field[2].shape,n.pickId=this.pickId/255,n.lowerBound=this.bounds[0],n.upperBound=this.bounds[1],n.permutation=W;for(var r=0;r<2;++r)for(var o=n.clipBounds[r],i=0;i<3;++i)o[i]=Math.min(Math.max(this.clipBounds[r][i],-1e8),1e8);var s=a(n,this);if(s.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=n,this._vao.bind(),this._vao.draw(t.TRIANGLES,this._vertexCount),r=0;r<3;++r)this.surfaceProject[r]&&(this._pickShader.uniforms.model=s.projections[r],this._pickShader.uniforms.clipBounds=s.clipBounds[r],this._vao.draw(t.TRIANGLES,this._vertexCount));this._vao.unbind()}if(s.showContour){var l=this._contourPickShader;l.bind(),l.uniforms=n;var u=this._contourVAO;for(u.bind(),i=0;i<3;++i)for(t.lineWidth(this.contourWidth[i]),l.uniforms.permutation=R[i],r=0;r>4)/16)/255,o=Math.floor(r),i=r-o,a=t[1]*(e.value[1]+(15&e.value[2])/16)/255,s=Math.floor(a),l=a-s;o+=1,s+=1;var u=n.position;u[0]=u[1]=u[2]=0;for(var c=0;c<2;++c)for(var f=c?i:1-i,p=0;p<2;++p)for(var h=p?l:1-l,d=o+c,m=s+p,v=f*h,g=0;g<3;++g)u[g]+=this._field[g].get(d,m)*v;for(var y=this._pickResult.level,b=0;b<3;++b)if(y[b]=E.le(this.contourLevels[b],u[b]),y[b]<0)this.contourLevels[b].length>0&&(y[b]=0);else if(y[b]Math.abs(_-u[b])&&(y[b]+=1)}for(n.index[0]=i<.5?o:o+1,n.index[1]=l<.5?s:s+1,n.uv[0]=r/t[0],n.uv[1]=a/t[1],g=0;g<3;++g)n.dataCoordinate[g]=this._field[g].get(n.index[0],n.index[1]);return n},I.update=function(e){e=e||{},this.dirty=!0,"contourWidth"in e&&(this.contourWidth=u(e.contourWidth,Number)),"showContour"in e&&(this.showContour=u(e.showContour,Boolean)),"showSurface"in e&&(this.showSurface=!!e.showSurface),"contourTint"in e&&(this.contourTint=u(e.contourTint,Boolean)),"contourColor"in e&&(this.contourColor=f(e.contourColor)),"contourProject"in e&&(this.contourProject=u(e.contourProject,function(e){return u(e,Boolean)})),"surfaceProject"in e&&(this.surfaceProject=e.surfaceProject),"dynamicColor"in e&&(this.dynamicColor=f(e.dynamicColor)),"dynamicTint"in e&&(this.dynamicTint=u(e.dynamicTint,Number)),"dynamicWidth"in e&&(this.dynamicWidth=u(e.dynamicWidth,Number)),"opacity"in e&&(this.opacity=e.opacity),"colorBounds"in e&&(this.colorBounds=e.colorBounds);var t=e.field||e.coords&&e.coords[2]||null,n=!1;if(t||(t=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in e||"coords"in e){var r=(t.shape[0]+2)*(t.shape[1]+2);r>this._field[2].data.length&&(g.freeFloat(this._field[2].data),this._field[2].data=g.mallocFloat(h.nextPow2(r))),this._field[2]=_(this._field[2].data,[t.shape[0]+2,t.shape[1]+2]),l(this._field[2],t),this.shape=t.shape.slice();for(var i=this.shape,a=0;a<2;++a)this._field[2].size>this._field[a].data.length&&(g.freeFloat(this._field[a].data),this._field[a].data=g.mallocFloat(this._field[2].size)),this._field[a]=_(this._field[a].data,[i[0]+2,i[1]+2]);if(e.coords){var s=e.coords;if(!Array.isArray(s)||3!==s.length)throw new Error("gl-surface: invalid coordinates for x/y");for(a=0;a<2;++a){var c=s[a];for(y=0;y<2;++y)if(c.shape[y]!==i[y])throw new Error("gl-surface: coords have incorrect shape");l(this._field[a],c)}}else if(e.ticks){var p=e.ticks;if(!Array.isArray(p)||2!==p.length)throw new Error("gl-surface: invalid ticks");for(a=0;a<2;++a){var d=p[a];if((Array.isArray(d)||d.length)&&(d=_(d)),d.shape[0]!==i[a])throw new Error("gl-surface: invalid tick length");var m=_(d.data,i);m.stride[a]=d.stride[0],m.stride[1^a]=0,l(this._field[a],m)}}else{for(a=0;a<2;++a){var v=[0,0];v[a]=1,this._field[a]=_(this._field[a].data,[i[0]+2,i[1]+2],v,0)}this._field[0].set(0,0,0);for(var y=0;y0){for(var xe=0;xe<5;++xe)ee.pop();H-=1}continue e}ee.push(oe[0],oe[1],se[0],se[1],oe[2]),H+=1}}re.push(H)}this._contourOffsets[te]=ne,this._contourCounts[te]=re}var _e=g.mallocFloat(ee.length);for(a=0;ao||n<0||n>o)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function i(e,t,n,r,o,i){this.gl=e,this.handle=t,this.format=o,this.type=i,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var a=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return a._wrapS},set:function(e){return a.wrapS=e}},{get:function(){return a._wrapT},set:function(e){return a.wrapT=e}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return a._shape[0]},set:function(e){return a.width=e}},{get:function(){return a._shape[1]},set:function(e){return a.height=e}}]),this._shapeVector=l}function a(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function s(e,t,n,r,o,i,s,l){var u=l.dtype,c=l.shape.slice();if(c.length<2||c.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var f=0,p=0,v=a(c,l.stride.slice());"float32"===u?f=e.FLOAT:"float64"===u?(f=e.FLOAT,v=!1,u="float32"):"uint8"===u?f=e.UNSIGNED_BYTE:(f=e.UNSIGNED_BYTE,v=!1,u="uint8");var g=1;if(2===c.length)p=e.LUMINANCE,c=[c[0],c[1],1],l=h(l.data,c,[l.stride[0],l.stride[1],1],l.offset);else{if(3!==c.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===c[2])p=e.ALPHA;else if(2===c[2])p=e.LUMINANCE_ALPHA;else if(3===c[2])p=e.RGB;else{if(4!==c[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");p=e.RGBA}g=c[2]}if(p!==e.LUMINANCE&&p!==e.ALPHA||o!==e.LUMINANCE&&o!==e.ALPHA||(p=o),p!==o)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=l.size,x=s.indexOf(r)<0;if(x&&s.push(r),f===i&&v)0===l.offset&&l.data.length===y?x?e.texImage2D(e.TEXTURE_2D,r,o,c[0],c[1],0,o,i,l.data):e.texSubImage2D(e.TEXTURE_2D,r,t,n,c[0],c[1],o,i,l.data):x?e.texImage2D(e.TEXTURE_2D,r,o,c[0],c[1],0,o,i,l.data.subarray(l.offset,l.offset+y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,c[0],c[1],o,i,l.data.subarray(l.offset,l.offset+y));else{var _;_=i===e.FLOAT?m.mallocFloat32(y):m.mallocUint8(y);var w=h(_,c,[c[2],c[2]*c[0],1]);f===e.FLOAT&&i===e.UNSIGNED_BYTE?b(w,l):d.assign(w,l),x?e.texImage2D(e.TEXTURE_2D,r,o,c[0],c[1],0,o,i,_.subarray(0,y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,c[0],c[1],o,i,_.subarray(0,y)),i===e.FLOAT?m.freeFloat32(_):m.freeUint8(_)}}function l(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function u(e,t,n,r,o){var a=e.getParameter(e.MAX_TEXTURE_SIZE);if(t<0||t>a||n<0||n>a)throw new Error("gl-texture2d: Invalid texture shape");if(o===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var s=l(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,o,null),new i(e,s,t,n,r,o)}function c(e,t,n,r){var o=l(e);return e.texImage2D(e.TEXTURE_2D,0,n,n,r,t),new i(e,o,0|t.width,0|t.height,n,r)}function f(e,t){var n=t.dtype,r=t.shape.slice(),o=e.getParameter(e.MAX_TEXTURE_SIZE);if(r[0]<0||r[0]>o||r[1]<0||r[1]>o)throw new Error("gl-texture2d: Invalid texture size");var s=a(r,t.stride.slice()),u=0;"float32"===n?u=e.FLOAT:"float64"===n?(u=e.FLOAT,s=!1,n="float32"):"uint8"===n?u=e.UNSIGNED_BYTE:(u=e.UNSIGNED_BYTE,s=!1,n="uint8");var c=0;if(2===r.length)c=e.LUMINANCE,r=[r[0],r[1],1],t=h(t.data,r,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==r.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===r[2])c=e.ALPHA;else if(2===r[2])c=e.LUMINANCE_ALPHA;else if(3===r[2])c=e.RGB;else{if(4!==r[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");c=e.RGBA}}u!==e.FLOAT||e.getExtension("OES_texture_float")||(u=e.UNSIGNED_BYTE,s=!1);var f,p,v=t.size;if(s)f=0===t.offset&&t.data.length===v?t.data:t.data.subarray(t.offset,t.offset+v);else{var g=[r[2],r[2]*r[0],1];p=m.malloc(v,n);var y=h(p,r,g,0);"float32"!==n&&"float64"!==n||u!==e.UNSIGNED_BYTE?d.assign(y,t):b(y,t),f=p.subarray(0,v)}var x=l(e);return e.texImage2D(e.TEXTURE_2D,0,c,r[0],r[1],0,c,u,f),s||m.free(p),new i(e,x,r[0],r[1],c,u)}function p(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(v||r(e),"number"==typeof arguments[1])return u(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return u(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"==typeof arguments[1]){var t=arguments[1];if(t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof HTMLVideoElement||t instanceof ImageData)return c(e,t,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return f(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}var h=e("ndarray"),d=e("ndarray-ops"),m=e("typedarray-pool");t.exports=p;var v=null,g=null,y=null,b=function(e,t){d.muls(e,t,255)},x=i.prototype;Object.defineProperties(x,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&v.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),g.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&v.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),g.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;t<2;++t)if(y.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return o(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return e=0|e,o(this,e,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e=0|e,o(this,this._shape[0],e),e}}}),x.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},x.dispose=function(){this.gl.deleteTexture(this.handle)},x.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},x.setPixels=function(e,t,n,r){var o=this.gl;if(this.bind(),Array.isArray(t)?(r=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),r=r||0,e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLImageElement||e instanceof HTMLVideoElement){var i=this._mipLevels.indexOf(r)<0;i?(o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,this.type,e),this._mipLevels.push(r)):o.texSubImage2D(o.TEXTURE_2D,r,t,n,this.format,this.type,e)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>r||n+e.shape[0]>this._shape[0]>>>r||t<0||n<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");s(o,t,n,r,this.format,this.type,this._mipLevels,e)}}},{ndarray:253,"ndarray-ops":252,"typedarray-pool":278}],223:[function(e,t,n){"use strict";function r(e,t,n){t?t.bind():e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null);var r=0|e.getParameter(e.MAX_VERTEX_ATTRIBS);if(n){if(n.length>r)throw new Error("gl-vao: Too many vertex attributes");for(var o=0;o0)continue;r=e.slice(0,1).join("")}return t(r),V+=r.length,U=U.slice(r.length),U.length}}function O(){return/[^a-fA-F0-9]/.test(R)?(t(U.join("")),z=u,N):(U.push(R),F=R,N+1)}function D(){return"."===R?(U.push(R),z=v,F=R,N+1):/[eE]/.test(R)?(U.push(R),z=v,F=R,N+1):"x"===R&&1===U.length&&"0"===U[0]?(z=w,U.push(R),F=R,N+1):/[^\d]/.test(R)?(t(U.join("")),z=u,N):(U.push(R),F=R,N+1)}function L(){return"f"===R&&(U.push(R),F=R,N+=1),/[eE]/.test(R)?(U.push(R),F=R,N+1):"-"===R&&/[eE]/.test(F)?(U.push(R),F=R,N+1):/[^\d]/.test(R)?(t(U.join("")),z=u,N):(U.push(R),F=R,N+1)}function j(){if(/[^\d\w_]/.test(R)){var e=U.join("");return z=Z.indexOf(e)>-1?b:X.indexOf(e)>-1?y:g,t(U.join("")),z=u,N}return U.push(R),F=R,N+1}var R,F,I,N=0,B=0,z=u,U=[],W=[],H=1,q=0,V=0,G=!1,Y=!1,K="";e=e||{};var X=a,Z=o;return"300 es"===e.version&&(X=l,Z=s),function(e){return W=[],null!==e?n(e):r()}}t.exports=r;var o=e("./lib/literals"),i=e("./lib/operators"),a=e("./lib/builtins"),s=e("./lib/literals-300es"),l=e("./lib/builtins-300es"),u=999,c=9999,f=0,p=1,h=2,d=3,m=4,v=5,g=6,y=7,b=8,x=9,_=10,w=11,T=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},{"./lib/builtins":230,"./lib/builtins-300es":229,"./lib/literals":232,"./lib/literals-300es":231,"./lib/operators":233}],229:[function(e,t,n){var r=e("./builtins");r=r.slice().filter(function(e){return!/^(gl\_|texture)/.test(e)}),t.exports=r.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},{"./builtins":230}],230:[function(e,t,n){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},{}],231:[function(e,t,n){var r=e("./literals");t.exports=r.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uint","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},{"./literals":232}],232:[function(e,t,n){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},{}],233:[function(e,t,n){t.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},{}],234:[function(e,t,n){function r(e,t){var n=o(t),r=[];return r=r.concat(n(e)),r=r.concat(n(null))}var o=e("./index");t.exports=r},{"./index":228}],235:[function(e,t,n){"use strict";function r(e,t,n){this.vertices=e,this.adjacent=t,this.boundary=n,this.lastVisited=-1}function o(e,t,n){this.vertices=e,this.cell=t,this.index=n}function i(e,t){return c(e.vertices,t.vertices)}function a(e){for(var t=["function orient(){var tuple=this.tuple;return test("],n=0;n<=e;++n)n>0&&t.push(","),t.push("tuple[",n,"]");t.push(")}return orient");var r=new Function("test",t.join("")),o=u[e+1];return o||(o=u),r(o)}function s(e,t,n){this.dimension=e,this.vertices=t,this.simplices=n,this.interior=n.filter(function(e){return!e.boundary}),this.tuple=new Array(e+1);for(var r=0;r<=e;++r)this.tuple[r]=this.vertices[r];var o=f[e];o||(o=f[e]=a(e)),this.orient=o}function l(e,t){var n=e.length;if(0===n)throw new Error("Must have at least d+1 points");var o=e[0].length;if(n<=o)throw new Error("Must input at least d+1 points");var i=e.slice(0,o+1),a=u.apply(void 0,i);if(0===a)throw new Error("Input not in general position");for(var l=new Array(o+1),c=0;c<=o;++c)l[c]=c;a<0&&(l[0]=1,l[1]=0);for(var f=new r(l,new Array(o+1),(!1)),p=f.adjacent,h=new Array(o+2),c=0;c<=o;++c){for(var d=l.slice(),m=0;m<=o;++m)m===c&&(d[m]=-1);var v=d[0];d[0]=d[1],d[1]=v;var g=new r(d,new Array(o+1),(!0));p[c]=g,h[c]=g}h[o+1]=f;for(var c=0;c<=o;++c)for(var d=p[c].vertices,y=p[c].adjacent,m=0;m<=o;++m){var b=d[m];if(b<0)y[m]=f;else for(var x=0;x<=o;++x)p[x].vertices.indexOf(b)<0&&(y[m]=p[x])}for(var _=new s(o,i,h),w=!!t,c=o+1;c0;){e=a.pop();for(var s=(e.vertices,e.adjacent),l=0;l<=n;++l){var u=s[l];if(u.boundary&&!(u.lastVisited<=-r)){for(var c=u.vertices,f=0;f<=n;++f){var p=c[f];p<0?o[f]=t:o[f]=i[p]}var h=this.orient();if(h>0)return u;u.lastVisited=-r,0===h&&a.push(u)}}}return null},p.walk=function(e,t){var n=this.vertices.length-1,r=this.dimension,o=this.vertices,i=this.tuple,a=t?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[a];e:for(;!s.boundary;){for(var l=s.vertices,u=s.adjacent,c=0;c<=r;++c)i[c]=o[l[c]];s.lastVisited=n;for(var c=0;c<=r;++c){var f=u[c];if(!(f.lastVisited>=n)){var p=i[c];i[c]=e;var h=this.orient();if(i[c]=p,h<0){s=f;continue e}f.boundary?f.lastVisited=-n:f.lastVisited=n}}return}return s},p.addPeaks=function(e,t){var n=this.vertices.length-1,a=this.dimension,s=this.vertices,l=this.tuple,u=this.interior,c=this.simplices,f=[t];t.lastVisited=n,t.vertices[t.vertices.indexOf(-1)]=n,t.boundary=!1,u.push(t);for(var p=[];f.length>0;){var t=f.pop(),h=t.vertices,d=t.adjacent,m=h.indexOf(n);if(!(m<0))for(var v=0;v<=a;++v)if(v!==m){var g=d[v];if(g.boundary&&!(g.lastVisited>=n)){var y=g.vertices;if(g.lastVisited!==-n){for(var b=0,x=0;x<=a;++x)y[x]<0?(b=x,l[x]=e):l[x]=s[y[x]];var _=this.orient();if(_>0){y[b]=n,g.boundary=!1,u.push(g),f.push(g),g.lastVisited=n;continue}g.lastVisited=-n}var w=g.adjacent,T=h.slice(),C=d.slice(),E=new r(T,C,(!0));c.push(E);var k=w.indexOf(t);if(!(k<0)){w[k]=E,C[m]=g,T[v]=-1,C[v]=t,d[v]=E,E.flip();for(var x=0;x<=a;++x){var S=T[x];if(!(S<0||S===n)){for(var A=new Array(a-1),P=0,M=0;M<=a;++M){var O=T[M];O<0||M===x||(A[P++]=O)}p.push(new o(A,E,x))}}}}}}p.sort(i);for(var v=0;v+1=0?a[l++]=s[c]:u=1&c;if(u===(1&e)){var f=a[0];a[0]=a[1],a[1]=f}t.push(a)}}return t}},{"robust-orientation":259,"simplicial-complex":238}],236:[function(e,t,n){arguments[4][50][0].apply(n,arguments)},{dup:50}],237:[function(e,t,n){arguments[4][97][0].apply(n,arguments)},{dup:97}],238:[function(e,t,n){"use strict";"use restrict";function r(e){for(var t=0,n=Math.max,r=0,o=e.length;r>1,s=a(e[i],t);s<=0?(0===s&&(o=i),n=i+1):s>0&&(r=i-1)}return o}function f(e,t){for(var n=new Array(e.length),r=0,o=n.length;r=e.length||0!==a(e[m],i))break}return n}function p(e,t){if(!t)return f(u(d(e,0)),e,0);for(var n=new Array(t),r=0;r>>c&1&&u.push(o[c]);t.push(u)}return l(t)}function d(e,t){if(t<0)return[];for(var n=[],r=(1<0)return 1<=0)return 1<>",rrshift:">>>"};!function(){for(var e in l){var t=l[e];n[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a"+t+"=b"},rvalue:!0,funcName:e+"eq"}),n[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a"+t+"=s"},rvalue:!0,funcName:e+"seq"})}}();var u={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in u){var t=u[e];n[e]=i({args:["array","array"],body:{args:["a","b"],body:"a="+t+"b"},funcName:e}),n[e+"eq"]=i({args:["array"],body:{args:["a"],body:"a="+t+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var c={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in c){var t=c[e];n[e]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a=a"+t+"b"},rvalue:!0,count:2,funcName:e+"eq"}),n[e+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+t+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var f=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;ethis_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),n.norm1=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),n.sup=a({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.inf=a({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.random=i({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),n.assign=i({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),n.assigns=i({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),n.equals=a({args:["array","array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},{"cwise-compiler":109}],253:[function(e,t,n){function r(e,t){return e[0]-t[0]}function o(){var e,t=this.stride,n=new Array(t.length);for(e=0;eMath.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&i.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);\tif(s0>s1){\tif(s1>s2){\treturn [2,1,0];\t}else if(s0>s2){\treturn [1,2,0];\t}else{\treturn [1,0,2];\t}\t}else if(s0>s2){\treturn [2,0,1];\t}else if(s2>s1){\treturn [0,1,2];\t}else{\treturn [0,2,1];\t}}})")):i.push("ORDER})")),i.push("proto.set=function "+n+"_set("+u.join(",")+",v){"),r?i.push("return this.data.set("+c+",v)}"):i.push("return this.data["+c+"]=v}"),i.push("proto.get=function "+n+"_get("+u.join(",")+"){"),r?i.push("return this.data.get("+c+")}"):i.push("return this.data["+c+"]}"),i.push("proto.index=function "+n+"_index(",u.join(),"){return "+c+"}"),i.push("proto.hi=function "+n+"_hi("+u.join(",")+"){return new "+n+"(this.data,"+s.map(function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")}).join(",")+","+s.map(function(e){return"this.stride["+e+"]"}).join(",")+",this.offset)}");var d=s.map(function(e){return"a"+e+"=this.shape["+e+"]"}),m=s.map(function(e){return"c"+e+"=this.stride["+e+"]"});i.push("proto.lo=function "+n+"_lo("+u.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+m.join(","));for(var v=0;v=0){\td=i"+v+"|0;\tb+=c"+v+"*d;\ta"+v+"-=d}");i.push("return new "+n+"(this.data,"+s.map(function(e){return"a"+e}).join(",")+","+s.map(function(e){return"c"+e}).join(",")+",b)}"),i.push("proto.step=function "+n+"_step("+u.join(",")+"){var "+s.map(function(e){return"a"+e+"=this.shape["+e+"]"}).join(",")+","+s.map(function(e){return"b"+e+"=this.stride["+e+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(var v=0;v=0){c=(c+this.stride["+v+"]*i"+v+")|0}else{a.push(this.shape["+v+"]);b.push(this.stride["+v+"])}");i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+s.map(function(e){return"shape["+e+"]"}).join(",")+","+s.map(function(e){return"stride["+e+"]"}).join(",")+",offset)}");var a=new Function("CTOR_LIST","ORDER",i.join("\n"));return a(f[e],o)}function a(e){if(u(e))return"buffer";if(c)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(e)?"array":"generic"}function s(e,t,n,r){if(void 0===e){var o=f.array[0];return o([])}"number"==typeof e&&(e=[e]), +void 0===t&&(t=[e.length]);var s=t.length;if(void 0===n){n=new Array(s);for(var l=s-1,u=1;l>=0;--l)n[l]=u,u*=t[l]}if(void 0===r){r=0;for(var l=0;l + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */ +"use strict";function r(e,t){if("string"!=typeof e)throw new TypeError("repeat-string expects a string.");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;for(o===e&&"undefined"!=typeof o||(o=e,i="");n>i.length&&t>0&&(1&t&&(i+=e),t>>=1);)e+=e;return i.substr(0,n)}var o,i="";t.exports=r},{}],255:[function(e,t,n){(function(e){t.exports=e.performance&&e.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],256:[function(e,t,n){"use strict";function r(e){for(var t="robustLinearSolve"+e+"d",n=["function ",t,"(A,b){return ["],r=0;r0&&n.push(","),n.push("[");for(var i=0;i0&&n.push(","),i===r?n.push("+b[",o,"]"):n.push("+A[",o,"][",i,"]");n.push("]")}n.push("]),")}n.push("det(A)]}return ",t);var a=new Function("det",n.join(""));return a(e<6?s[e]:s)}function o(){return[0]}function i(e,t){return[[t[0]],[e[0][0]]]}function a(){for(;u.length=0;--o){var i=n,a=e[o];n=i+a;var s=n-i,l=a-s;l&&(e[--r]=n,n=l)}for(var u=0,o=r;o>1;return["sum(",a(e.slice(0,t)),",",a(e.slice(t)),")"].join("")}function s(e){if(2===e.length)return["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("");for(var t=[],n=0;n>1;return["sum(",a(e.slice(0,t)),",",a(e.slice(t)),")"].join("")}function s(e){if(2===e.length)return[["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("")];for(var t=[],n=0;n0){if(i<=0)return a;r=o+i}else{if(!(o<0))return a;if(i>=0)return a;r=-(o+i)}var s=g*r;return a>=s||a<=-s?a:b(e,t,n)},function(e,t,n,r){var o=e[0]-r[0],i=t[0]-r[0],a=n[0]-r[0],s=e[1]-r[1],l=t[1]-r[1],u=n[1]-r[1],c=e[2]-r[2],f=t[2]-r[2],p=n[2]-r[2],h=i*u,d=a*l,m=a*s,v=o*u,g=o*l,b=i*s,_=c*(h-d)+f*(m-v)+p*(g-b),w=(Math.abs(h)+Math.abs(d))*Math.abs(c)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(g)+Math.abs(b))*Math.abs(p),T=y*w;return _>T||-_>T?_:x(e,t,n,r)}];c()},{"robust-scale":260,"robust-subtract":261,"robust-sum":262,"two-product":276}],260:[function(e,t,n){"use strict";function r(e,t){var n=e.length;if(1===n){var r=o(e[0],t);return r[0]?r:[r[1]]}var a=new Array(2*n),s=[.1,.1],l=[.1,.1],u=0;o(e[0],t,s),s[0]&&(a[u++]=s[0]);for(var c=1;c=o?(i=h,c+=1,c=o?(i=h,c+=1,c=0;--t)P(t,0);for(var n=[],t=0;t0;_=_-1&m)x.push(w+"["+k+"+"+v(_)+"]");x.push(g(0));for(var _=0;_0){",p(x[e]),"=1;"),j(e-1,t|1<0&&V.push(s(U,x[W-1])+"*"+a(x[W-1])),B.push(h(U,x[W])+"=("+V.join("-")+")|0")}for(var U=0;U=0;--U)G.push(a(x[U]));B.push(E+"=("+G.join("*")+")|0",T+"=mallocUint32("+E+")",w+"=mallocUint32("+E+")",k+"=0"),B.push(d(0)+"=0");for(var W=1;W<1< 0"),"function"!=typeof e.vertex&&t("Must specify vertex creation function"),"function"!=typeof e.cell&&t("Must specify cell creation function"),"function"!=typeof e.phase&&t("Must specify phase function");for(var i=e.getters||[],a=new Array(r),s=0;s=0?a[s]=!0:a[s]=!1;return b(e.vertex,e.cell,e.phase,o,n,a)}var _=e("typedarray-pool");t.exports=x;var w="V",T="P",C="N",E="Q",k="X",S="T"},{"typedarray-pool":278}],265:[function(e,t,n){function r(e){if(e<0)return Number("0/0");for(var t=s[0],n=s.length-1;n>0;--n)t+=s[n]/(e+n);var r=e+a+.5;return.5*Math.log(2*Math.PI)+(e+.5)*Math.log(r)-r+Math.log(t)-Math.log(e)}var o=7,i=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],a=607/128,s=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];t.exports=function l(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*l(1-e));if(e>100)return Math.exp(r(e));e-=1;for(var t=i[0],n=1;n0;--o)r=l[o],n=s[o],s[o]=s[r],s[r]=n,l[o]=l[n],l[n]=r,u=(u+n)*o;return i.freeUint32(l),i.freeUint32(s),u}function o(e,t,n){switch(e){case 0:return n?n:[];case 1:return n?(n[0]=0,n):[0];case 2:return n?(t?(n[0]=0,n[1]=1):(n[0]=1,n[1]=0),n):t?[0,1]:[1,0]}n=n||new Array(e);var r,o,i,a=1;for(n[0]=0,i=1;i0;--i)r=t/a|0,t=t-r*a|0,a=a/i|0,o=0|n[i],n[i]=0|n[r],n[r]=0|o;return n}var i=e("typedarray-pool"),a=e("invert-permutation");n.rank=r,n.unrank=o},{"invert-permutation":268,"typedarray-pool":278}],268:[function(e,t,n){"use strict";function r(e,t){t=t||new Array(e.length);for(var n=0;n= 0) !== (_inline_1_db >= 0)) {\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n }\n }",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg3_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg4_",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:["_inline_1_da","_inline_1_db"]},funcName:"zeroCrossings"})},{"cwise-compiler":109}],271:[function(e,t,n){"use strict";function r(e,t){var n=[];return t=+t||0,o(e.hi(e.shape[0]-1),n,t),n}t.exports=r;var o=e("./lib/zc-core")},{"./lib/zc-core":270}],272:[function(e,t,n){"use strict";function r(e,t){var n=e.length,r=["'use strict';"],o="surfaceNets"+e.join("_")+"d"+t;r.push("var contour=genContour({","order:[",e.join(),"],","scalarArguments: 3,","phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },"),"generic"===t&&r.push("getters:[0],");for(var i=[],l=[],u=0;u>>7){");for(var u=0;u<1<<(1<128&&u%128===0){f.length>0&&p.push("}}");var h="vExtra"+f.length;r.push("case ",u>>>7,":",h,"(m&0x7f,",l.join(),");break;"),p=["function ",h,"(m,",l.join(),"){switch(m){"],f.push(p)}p.push("case ",127&u,":");for(var d=new Array(n),m=new Array(n),v=new Array(n),g=new Array(n),y=0,b=0;bb)&&!(u&1<<_)!=!(u&1<0&&(E="+"+v[x]+"*c");var k=.5*(d[x].length/y),S=.5+.5*(g[x]/y);C.push("d"+x+"-"+S+"-"+k+"*("+d[x].join("+")+E+")/("+m[x].join("+")+")")}p.push("a.push([",C.join(),"]);","break;")}r.push("}},"),f.length>0&&p.push("}}");for(var A=[],u=0;u<1<0&&(f+=.02);for(var h=new Float32Array(c),d=0,m=-.5*f,p=0;p.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var o,i,a;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)o=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=r(l,s,e+1/3),i=r(l,s,e),a=r(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*a}}function s(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r,o,i=H(e,t,n),a=W(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t>1)+720)%360;--n;)o.h=(o.h+i)%360,a.push(t(o));return a}function T(e,n){n=n||6;for(var r=t(e).toHsv(),o=r.h,i=r.s,a=r.v,s=[],l=1/n;n--;)s.push(t({h:o,s:i,v:a})),a=(a+l)%1;return s}function C(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function E(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,t){P(e)&&(e="100%");var n=M(e);return e=W(t,H(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),z.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return W(1,H(0,e))}function A(e){return parseInt(e,16)}function P(e){return"string"==typeof e&&e.indexOf(".")!=-1&&1===parseFloat(e)}function M(e){return"string"==typeof e&&e.indexOf("%")!=-1}function O(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function L(e){return Math.round(255*parseFloat(e)).toString(16)}function j(e){return A(e)/255}function R(e){e=e.replace(I,"").replace(N,"").toLowerCase();var t=!1;if(V[e])e=V[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Y.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Y.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Y.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Y.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Y.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Y.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Y.hex8.exec(e))?{a:j(n[1]),r:A(n[2]),g:A(n[3]),b:A(n[4]),format:t?"name":"hex8"}:(n=Y.hex6.exec(e))?{r:A(n[1]),g:A(n[2]),b:A(n[3]),format:t?"name":"hex"}:!!(n=Y.hex3.exec(e))&&{r:A(n[1]+""+n[1]),g:A(n[2]+""+n[2]),b:A(n[3]+""+n[3]),format:t?"name":"hex"}}function F(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var I=/^\s+/,N=/\s+$/,B=0,z=Math,U=z.round,W=z.min,H=z.max,q=z.random;t.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,i,a=this.toRgb();return e=a.r/255,t=a.g/255,n=a.b/255,r=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*i},setAlpha:function(e){return this._a=E(e),this._roundA=U(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return c(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(100*k(this._r,255))+"%",g:U(100*k(this._g,255))+"%",b:U(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+U(100*k(this._r,255))+"%, "+U(100*k(this._g,255))+"%, "+U(100*k(this._b,255))+"%)":"rgba("+U(100*k(this._r,255))+"%, "+U(100*k(this._g,255))+"%, "+U(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(G[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var n="#"+c(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=t(e);r=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,o=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"name"===e);return o?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return t(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},t.fromRatio=function(e,n){if("object"==typeof e){var r={};for(var o in e)e.hasOwnProperty(o)&&("a"===o?r[o]=e[o]:r[o]=D(e[o]));e=r}return t(e,n)},t.equals=function(e,n){return!(!e||!n)&&t(e).toRgbString()==t(n).toRgbString()},t.random=function(){return t.fromRatio({r:q(),g:q(),b:q()})},t.mix=function(e,n,r){r=0===r?0:r||50;var o,i=t(e).toRgb(),a=t(n).toRgb(),s=r/100,l=2*s-1,u=a.a-i.a;o=l*u==-1?l:(l+u)/(1+l*u),o=(o+1)/2;var c=1-o,f={r:a.r*o+i.r*c,g:a.g*o+i.g*c,b:a.b*o+i.b*c,a:a.a*s+i.a*(1-s)};return t(f)},t.readability=function(e,n){var r=t(e),o=t(n);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)},t.isReadable=function(e,n,r){var o,i,a=t.readability(e,n);switch(i=!1,o=F(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},t.mostReadable=function(e,n,r){var o,i,a,s,l=null,u=0;r=r||{},i=r.includeFallbackColors,a=r.level,s=r.size;for(var c=0;cu&&(u=o,l=t(n[c]));return t.isReadable(e,l,{level:a,size:s})||!i?l:(r.includeFallbackColors=!1,t.mostReadable(e,["#fff","#000"],r))};var V=t.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f", +blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=t.hexNames=C(V),Y=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof n&&n.exports?n.exports=t:"function"==typeof e&&e.amd?e(function(){return t}):window.tinycolor=t}()},{}],275:[function(t,n,r){!function(t,o){"object"==typeof r&&"undefined"!=typeof n?o(r):"function"==typeof e&&e.amd?e(["exports"],o):o(t.topojson={})}(this,function(e){"use strict";function t(){}function n(e){if(!e)return t;var n,r,o=e.scale[0],i=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,t){t||(n=r=0),e[0]=(n+=e[0])*o+a,e[1]=(r+=e[1])*i+s}}function r(e){if(!e)return t;var n,r,o=e.scale[0],i=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,t){t||(n=r=0);var l=(e[0]-a)/o|0,u=(e[1]-s)/i|0;e[0]=l-n,e[1]=u-r,n=l,r=u}}function o(e,t){for(var n,r=e.length,o=r-t;o<--r;)n=e[o],e[o++]=e[r],e[r]=n}function i(e,t){for(var n=0,r=e.length;n>>1;e[o]1){var l,c=[],f={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(e){e.forEach(i)}};a(t),c.forEach(arguments.length<3?function(e){s.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&s.push(e[0].i)})}else for(var p=0,h=e.arcs.length;p0}var o={},i=[],a=[];return t.forEach(function(e){"Polygon"===e.type?n(e.arcs):"MultiPolygon"===e.type&&e.arcs.forEach(n)}),i.forEach(function(e){if(!e._){var t=[],n=[e];for(e._=1,a.push(t);e=n.pop();)t.push(e),e.forEach(function(e){e.forEach(function(e){o[e<0?~e:e].forEach(function(e){e._||(e._=1,n.push(e))})})})}}),i.forEach(function(e){delete e._}),{type:"MultiPolygon",arcs:a.map(function(t){var n,i=[];if(t.forEach(function(e){e.forEach(function(e){e.forEach(function(e){o[e<0?~e:e].length<2&&i.push(e)})})}),i=u(e,i),(n=i.length)>1)for(var a,s=r(t[0][0]),l=0;l0;){var n=(t+1>>1)-1,o=r[n];if(g(e,o)>=0)break;r[o._=t]=o,r[e._=t=n]=e}}function t(e,t){for(;;){var n=t+1<<1,i=n-1,a=t,s=r[a];if(i0&&(e=r[o],t(r[e._=0]=e,0)),n}},n.remove=function(n){var i,a=n._;if(r[a]===n)return a!==--o&&(i=r[o],(g(i,n)<0?e:t)(r[i._=a]=i,a)),a},n}function b(e,t){function o(e){s.remove(e),e[1][2]=t(e),s.push(e)}var i=n(e.transform),a=r(e.transform),s=y();return t||(t=p),e.arcs.forEach(function(e){var n,r,l,u,c=[],f=0;for(r=0,l=e.length;r0?n.pop():new ArrayBuffer(e)}function s(e){return new Uint8Array(a(e),0,e)}function l(e){return new Uint16Array(a(2*e),0,e)}function u(e){return new Uint32Array(a(4*e),0,e)}function c(e){return new Int8Array(a(e),0,e)}function f(e){return new Int16Array(a(2*e),0,e)}function p(e){return new Int32Array(a(4*e),0,e)}function h(e){return new Float32Array(a(4*e),0,e)}function d(e){return new Float64Array(a(8*e),0,e)}function m(e){return x?new Uint8ClampedArray(a(e),0,e):s(e)}function v(e){return new DataView(a(e),0,e)}function g(e){e=y.nextPow2(e);var t=y.log2(e),n=T[t];return n.length>0?n.pop():new r(e)}var y=e("bit-twiddle"),b=e("dup");t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:b([32,0]),UINT16:b([32,0]),UINT32:b([32,0]),INT8:b([32,0]),INT16:b([32,0]),INT32:b([32,0]),FLOAT:b([32,0]),DOUBLE:b([32,0]),DATA:b([32,0]),UINT8C:b([32,0]),BUFFER:b([32,0])});var x="undefined"!=typeof Uint8ClampedArray,_=t.__TYPEDARRAY_POOL;_.UINT8C||(_.UINT8C=b([32,0])),_.BUFFER||(_.BUFFER=b([32,0]));var w=_.DATA,T=_.BUFFER;n.free=function(e){if(r.isBuffer(e))T[y.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|y.log2(t);w[n].push(e)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeInt8=n.freeInt16=n.freeInt32=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=i,n.freeArrayBuffer=o,n.freeBuffer=function(e){T[y.log2(e.length)].push(e)},n.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return a(e);switch(t){case"uint8":return s(e);case"uint16":return l(e);case"uint32":return u(e);case"int8":return c(e);case"int16":return f(e);case"int32":return p(e);case"float":case"float32":return h(e);case"double":case"float64":return d(e);case"uint8_clamped":return m(e);case"buffer":return g(e);case"data":case"dataview":return v(e);default:return null}return null},n.mallocArrayBuffer=a,n.mallocUint8=s,n.mallocUint16=l,n.mallocUint32=u,n.mallocInt8=c,n.mallocInt16=f,n.mallocInt32=p,n.mallocFloat32=n.mallocFloat=h,n.mallocFloat64=n.mallocDouble=d,n.mallocUint8Clamped=m,n.mallocDataView=v,n.mallocBuffer=g,n.clearCache=function(){for(var e=0;e<32;++e)_.UINT8[e].length=0,_.UINT16[e].length=0,_.UINT32[e].length=0,_.INT8[e].length=0,_.INT16[e].length=0,_.INT32[e].length=0,_.FLOAT[e].length=0,_.DOUBLE[e].length=0,_.UINT8C[e].length=0,w[e].length=0,T[e].length=0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"bit-twiddle":50,buffer:51,dup:115}],279:[function(e,t,n){"use strict";function r(e,t){for(var n=1,r=e.length,o=e[0],i=e[0],a=1;a8192)throw new Error("vectorize-text: String too long (sorry, this will get fixed later)");var i=3*r;e.height0;){var u=a.pop();r[u]=!1;for(var c=n[u],s=0;s0){a=u[c][r][0],l=c;break}s=a[1^l];for(var f=0;f<2;++f)for(var p=u[f][r],h=0;h0&&(a=d,s=m,l=f)}return i?s:(a&&n(a,l),s)}function i(e,i){var a=u[i][e][0],s=[e];n(a,i);for(var l=a[1^i];;){for(;l!==e;)s.push(l),l=r(s[s.length-2],l,!1);if(u[0][e].length+u[1][e].length===0)break;var c=s[s.length-1],f=e,p=s[1],h=r(c,f,!0);if(o(t[c],t[f],t[p],t[h])<0)break;s.push(e),l=r(c,f)}return s}function a(e,t){return t[1]===t[t.length-1]}for(var s=0|t.length,l=e.length,u=[new Array(s),new Array(s)],c=0;c0;){var m=(u[0][c].length,i(c,h));a(d,m)?d.push.apply(d,m):(d.length>0&&p.push(d),d=m)}d.length>0&&p.push(d)}return p}t.exports=r;var o=e("compare-angle")},{"compare-angle":285}],285:[function(e,t,n){"use strict";function r(e,t,n){var r=s(e[0],-t[0]),o=s(e[1],-t[1]),i=s(n[0],-t[0]),a=s(n[1],-t[1]),c=u(l(r,i),l(o,a));return c[c.length-1]>=0}function o(e,t,n,o){var s=i(t,n,o);if(0===s){var l=a(i(e,t,n)),u=a(i(e,t,o));if(l===u){if(0===l){var c=r(e,t,n),f=r(e,t,o);return c===f?0:c?1:-1}return 0}return 0===u?l>0?-1:r(e,t,o)?-1:1:0===l?u>0?1:r(e,t,n)?1:-1:a(u-l)}var p=i(e,t,n);if(p>0)return s>0&&i(e,t,o)>0?1:-1;if(p<0)return s>0||i(e,t,o)>0?1:-1;var h=i(e,t,o);return h>0?1:r(e,t,n)?1:-1}t.exports=o;var i=e("robust-orientation"),a=e("signum"),s=e("two-sum"),l=e("robust-product"),u=e("robust-sum")},{"robust-orientation":259,"robust-product":286,"robust-sum":262,signum:287,"two-sum":277}],286:[function(e,t,n){"use strict";function r(e,t){if(1===e.length)return i(t,e[0]);if(1===t.length)return i(e,t[0]);if(0===e.length||0===t.length)return[0];var n=[0];if(e.length0?1:0}},{}],288:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{dup:21}],289:[function(e,t,n){"use strict";function r(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}function o(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function i(e,t){var n=d(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function a(e,t){var n=e.intervals([]);n.push(t),i(e,n)}function s(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?y:(n.splice(r,1),i(e,n),b)}function l(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function c(e,t){for(var n=0;n>1],i=[],a=[],s=[],n=0;n3*(t+1)?a(this,e):this.left.insert(e):this.left=d([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?a(this,e):this.right.insert(e):this.right=d([e]);else{var n=g.ge(this.leftPoints,e,p),r=g.ge(this.rightPoints,e,h);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},_.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return s(this,e);var r=this.left.remove(e);return r===x?(this.left=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(e[0]>this.mid){if(!this.right)return y;var i=this.left?this.left.count:0;if(4*i>3*(t-1))return s(this,e);var r=this.right.remove(e);return r===x?(this.right=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(1===this.count)return this.leftPoints[0]===e?x:y;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var a=this,l=this.left;l.right;)a=l,l=l.right;if(a===this)l.right=this.right;else{var u=this.left,r=this.right;a.count-=l.count,a.right=l.left,l.left=u,l.right=r}o(this,l),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return b}for(var u=g.ge(this.leftPoints,e,p);uthis.mid){if(this.right){var n=this.right.queryPoint(e,t);if(n)return n}return u(this.rightPoints,e,t)}return c(this.leftPoints,t)},_.queryInterval=function(e,t,n){if(ethis.mid&&this.right){var r=this.right.queryInterval(e,t,n);if(r)return r}return tthis.mid?u(this.rightPoints,e,n):c(this.leftPoints,n)};var w=m.prototype;w.insert=function(e){this.root?this.root.insert(e):this.root=new r(e[0],null,null,[e],[e])},w.remove=function(e){if(this.root){var t=this.root.remove(e);return t===x&&(this.root=null),t!==y}return!1},w.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},w.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(w,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(w,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},{"binary-search-bounds":288}],290:[function(e,t,n){"use strict";function r(e,t){var n,r;if(t[0][0]t[1][0])){var o=Math.min(e[0][1],e[1][1]),a=Math.max(e[0][1],e[1][1]),s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]);return al?o-l:a-l}n=t[1],r=t[0]}var u,c;e[0][1]t[1][0]))return r(t,e);n=t[1],o=t[0]}var a,s;if(e[0][0]e[1][0]))return-r(e,t);a=e[1],s=e[0]}var l=i(n,o,s),u=i(n,o,a);if(l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;if(l=i(s,a,o),u=i(s,a,n),l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;return o[0]-s[0]}t.exports=o;var i=e("robust-orientation")},{"robust-orientation":259}],291:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){this._color=e,this.key=t,this.value=n,this.left=r,this.right=o,this._count=i}function o(e){return new r(e._color,e.key,e.value,e.left,e.right,e._count)}function i(e,t){return new r(e,t.key,t.value,t.left,t.right,t._count)}function a(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function s(e,t){this._compare=e,this.root=t}function l(e,t){if(t.left){var n=l(e,t.left);if(n)return n}var n=e(t.key,t.value);return n?n:t.right?l(e,t.right):void 0}function u(e,t,n,r){var o=t(e,r.key);if(o<=0){if(r.left){var i=u(e,t,n,r.left);if(i)return i}var i=n(r.key,r.value);if(i)return i}if(r.right)return u(e,t,n,r.right)}function c(e,t,n,r,o){var i,a=n(e,o.key),s=n(t,o.key);if(a<=0){if(o.left&&(i=c(e,t,n,r,o.left)))return i;if(s>0&&(i=r(o.key,o.value)))return i}if(s>0&&o.right)return c(e,t,n,r,o.right)}function f(e,t){this.tree=e,this._stack=t}function p(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function h(e){for(var t,n,r,s,l=e.length-1;l>=0;--l){if(t=e[l],0===l)return void(t._color=g);if(n=e[l-1],n.left===t){if(r=n.right,r.right&&r.right._color===v){if(r=n.right=o(r),s=r.right=o(r.right),n.right=r.left,r.left=n,r.right=s,r._color=n._color,t._color=g,n._color=g,s._color=g,a(n),a(r),l>1){var u=e[l-2];u.left===n?u.left=r:u.right=r}return void(e[l-1]=r)}if(r.left&&r.left._color===v){if(r=n.right=o(r),s=r.left=o(r.left),n.right=s.left,r.left=s.right,s.left=n,s.right=r,s._color=n._color,n._color=g,r._color=g,t._color=g,a(n),a(r),a(s),l>1){var u=e[l-2];u.left===n?u.left=s:u.right=s}return void(e[l-1]=s)}if(r._color===g){if(n._color===v)return n._color=g,void(n.right=i(v,r));n.right=i(v,r);continue}if(r=o(r),n.right=r.left,r.left=n,r._color=n._color,n._color=v,a(n),a(r),l>1){var u=e[l-2];u.left===n?u.left=r:u.right=r}e[l-1]=r,e[l]=n,l+11){var u=e[l-2];u.right===n?u.right=r:u.left=r}return void(e[l-1]=r)}if(r.right&&r.right._color===v){if(r=n.left=o(r),s=r.right=o(r.right),n.left=s.right,r.right=s.left,s.right=n,s.left=r,s._color=n._color,n._color=g,r._color=g,t._color=g,a(n),a(r),a(s),l>1){var u=e[l-2];u.right===n?u.right=s:u.left=s}return void(e[l-1]=s)}if(r._color===g){if(n._color===v)return n._color=g,void(n.left=i(v,r));n.left=i(v,r);continue}if(r=o(r),n.left=r.right,r.right=n,r._color=n._color,n._color=v,a(n),a(r),l>1){var u=e[l-2];u.right===n?u.right=r:u.left=r}e[l-1]=r,e[l]=n,l+1t?1:0}function m(e){return new s(e||d,null)}t.exports=m;var v=0,g=1,y=s.prototype;Object.defineProperty(y,"keys",{get:function(){var e=[];return this.forEach(function(t,n){e.push(t)}),e}}),Object.defineProperty(y,"values",{get:function(){var e=[];return this.forEach(function(t,n){e.push(n)}),e}}),Object.defineProperty(y,"length",{get:function(){return this.root?this.root._count:0}}),y.insert=function(e,t){for(var n=this._compare,o=this.root,l=[],u=[];o;){var c=n(e,o.key);l.push(o),u.push(c),o=c<=0?o.left:o.right}l.push(new r(v,e,t,null,null,1));for(var f=l.length-2;f>=0;--f){var o=l[f];u[f]<=0?l[f]=new r(o._color,o.key,o.value,l[f+1],o.right,o._count+1):l[f]=new r(o._color,o.key,o.value,o.left,l[f+1],o._count+1)}for(var f=l.length-1;f>1;--f){var p=l[f-1],o=l[f];if(p._color===g||o._color===g)break;var h=l[f-2];if(h.left===p)if(p.left===o){var d=h.right;if(!d||d._color!==v){if(h._color=v,h.left=p.right,p._color=g,p.right=h,l[f-2]=p,l[f-1]=o,a(h),a(p),f>=3){var m=l[f-3];m.left===h?m.left=p:m.right=p}break}p._color=g,h.right=i(g,d),h._color=v,f-=1}else{var d=h.right;if(!d||d._color!==v){if(p.right=o.left,h._color=v,h.left=o.right,o._color=g,o.left=p,o.right=h,l[f-2]=o,l[f-1]=p,a(h),a(p),a(o),f>=3){var m=l[f-3];m.left===h?m.left=o:m.right=o}break}p._color=g,h.right=i(g,d),h._color=v,f-=1}else if(p.right===o){var d=h.left;if(!d||d._color!==v){if(h._color=v,h.right=p.left,p._color=g,p.left=h,l[f-2]=p,l[f-1]=o,a(h),a(p),f>=3){var m=l[f-3];m.right===h?m.right=p:m.left=p}break}p._color=g,h.left=i(g,d),h._color=v,f-=1}else{var d=h.left;if(!d||d._color!==v){if(p.left=o.right,h._color=v,h.right=o.left,o._color=g,o.right=p,o.left=h,l[f-2]=o,l[f-1]=p,a(h),a(p),a(o),f>=3){var m=l[f-3];m.right===h?m.right=o:m.left=o}break}p._color=g,h.left=i(g,d),h._color=v,f-=1}}return l[0]._color=g,new s(n,l[0])},y.forEach=function(e,t,n){if(this.root)switch(arguments.length){case 1:return l(e,this.root);case 2:return u(t,this._compare,e,this.root);case 3:if(this._compare(t,n)>=0)return;return c(t,n,this._compare,e,this.root)}},Object.defineProperty(y,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new f(this,e)}}),Object.defineProperty(y,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new f(this,e)}}),y.at=function(e){if(e<0)return new f(this,[]);for(var t=this.root,n=[];;){if(n.push(t),t.left){if(e=t.right._count)break;t=t.right}return new f(this,[])},y.ge=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i<=0&&(o=r.length),n=i<=0?n.left:n.right}return r.length=o,new f(this,r)},y.gt=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i<0&&(o=r.length),n=i<0?n.left:n.right}return r.length=o,new f(this,r)},y.lt=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i>0&&(o=r.length),n=i<=0?n.left:n.right}return r.length=o,new f(this,r)},y.le=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i>=0&&(o=r.length),n=i<0?n.left:n.right}return r.length=o,new f(this,r)},y.find=function(e){for(var t=this._compare,n=this.root,r=[];n;){var o=t(e,n.key);if(r.push(n),0===o)return new f(this,r);n=o<=0?n.left:n.right}return new f(this,[])},y.remove=function(e){var t=this.find(e);return t?t.remove():this},y.get=function(e){for(var t=this._compare,n=this.root;n;){var r=t(e,n.key);if(0===r)return n.value;n=r<=0?n.left:n.right}};var b=f.prototype;Object.defineProperty(b,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(b,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),b.clone=function(){return new f(this.tree,this._stack.slice())},b.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var t=new Array(e.length),n=e[e.length-1];t[t.length-1]=new r(n._color,n.key,n.value,n.left,n.right,n._count);for(var o=e.length-2;o>=0;--o){var n=e[o];n.left===e[o+1]?t[o]=new r(n._color,n.key,n.value,t[o+1],n.right,n._count):t[o]=new r(n._color,n.key,n.value,n.left,t[o+1],n._count)}if(n=t[t.length-1],n.left&&n.right){var i=t.length;for(n=n.left;n.right;)t.push(n),n=n.right;var a=t[i-1];t.push(new r(n._color,a.key,a.value,n.left,n.right,n._count)),t[i-1].key=n.key,t[i-1].value=n.value;for(var o=t.length-2;o>=i;--o)n=t[o],t[o]=new r(n._color,n.key,n.value,n.left,t[o+1],n._count);t[i-1].left=t[i]}if(n=t[t.length-1],n._color===v){var l=t[t.length-2];l.left===n?l.left=null:l.right===n&&(l.right=null),t.pop();for(var o=0;o0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(b,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(b,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var n=this.tree.root;return n?n._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var r=t.length-2;r>=0;--r)t[r+1]===t[r].right&&(++e,t[r].left&&(e+=t[r].left._count));return e},enumerable:!0}),b.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(b,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),b.update=function(e){var t=this._stack;if(0===t.length)throw new Error("Can't update empty node!");var n=new Array(t.length),o=t[t.length-1];n[n.length-1]=new r(o._color,o.key,e,o.left,o.right,o._count);for(var i=t.length-2;i>=0;--i)o=t[i],o.left===t[i+1]?n[i]=new r(o._color,o.key,o.value,n[i+1],o.right,o._count):n[i]=new r(o._color,o.key,o.value,o.left,n[i+1],o._count);return new s(this.tree._compare,n[0])},b.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(b,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},{}],292:[function(e,t,n){"use strict";function r(e,t,n){this.slabs=e,this.coordinates=t,this.horizontal=n}function o(e,t){return e.y-t}function i(e,t){for(var n=null;e;){var r,o,a=e.key;a[0][0]0)if(t[0]!==a[1][0])n=e,e=e.right;else{var l=i(e.right,t);if(l)return l;e=e.left}else{if(t[0]!==a[1][0])return e;var l=i(e.right,t);if(l)return l;e=e.left}}return n}function a(e,t,n,r){this.y=e,this.index=t,this.start=n,this.closed=r}function s(e,t,n,r){this.x=e,this.segment=t,this.create=n,this.index=r}function l(e){for(var t=e.length,n=2*t,o=new Array(n),i=0;i0){var s=i(this.slabs[t-1],e);s&&(a?p(s.key,a)>0&&(a=s.key,r=s.value):(r=s.value,a=s.key))}var l=this.horizontal[t];if(l.length>0){var c=u.ge(l,e[1],o);if(c=l.length)return r;h=l[c]}}if(h.start)if(a){var d=f(a[0],a[1],[e[0],h.y]);a[0][0]>a[1][0]&&(d=-d),d>0&&(r=h.index)}else r=h.index;else h.y!==e[1]&&(r=h.index)}}}return r}},{"./lib/order-segments":290,"binary-search-bounds":288,"functional-red-black-tree":291,"robust-orientation":259}],293:[function(e,t,n){function r(){return!0}function o(e){return function(t,n){var o=e[t];return!!o&&!!o.queryPoint(n,r)}}function i(e){for(var t={},n=0;n0&&t[r]===n[0]))return 1;o=e[r-1]}for(var i=1;o;){var a=o.key,s=f(n,a[0],a[1]);if(a[0][0]0))return 0;i=-1,o=o.right}else if(s>0)o=o.left;else{if(!(s<0))return 0;i=1,o=o.right}}return i}}function s(e){return 1}function l(e){return function(t){return e(t[0],t[1])?0:1}}function u(e,t){return function(n){return e(n[0],n[1])?0:t(n)}}function c(e){for(var t=e.length,n=[],r=[],o=0;o0}function i(e){for(var t=e.length,n=0;n0;){var U=B.pop(),W=D[U];f(W,function(e,t){return e-t});var H,q=W.length,V=z[U];if(0===V){var k=g[U];H=[k]}for(var v=0;v=0)&&(z[G]=1^V,B.push(G),0===V)){var k=g[G];i(k)||(k.reverse(),H.push(k))}}0===V&&h.push(H)}return h}t.exports=i;var a=e("edges-to-adjacency-list"),s=e("planar-dual"),l=e("point-in-big-polygon"),u=e("two-product"),c=e("robust-sum"),f=e("uniq"),p=e("./lib/trim-leaves")},{"./lib/trim-leaves":282,"edges-to-adjacency-list":283,"planar-dual":284,"point-in-big-polygon":293,"robust-sum":262,"two-product":276,uniq:279}],295:[function(e,t,n){arguments[4][50][0].apply(n,arguments)},{dup:50}],296:[function(e,t,n){"use strict";"use restrict";function r(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t>1:(e>>1)-1}function u(e){for(var t=s(e);;){var n=t,r=2*e+1,o=2*(e+1),a=e;if(r0;){var n=l(e);if(n>=0){var r=s(n);if(t0){var e=E[0];return i(0,A-1),A-=1,u(0),e}return-1}function p(e,t){var n=E[e];return b[n]===t?e:(b[n]=-(1/0),c(e),f(),b[n]=t,A+=1,c(A-1))}function h(e){if(!x[e]){x[e]=!0;var t=g[e],n=y[e];g[n]>=0&&(g[n]=t),y[t]>=0&&(y[t]=n),k[t]>=0&&p(k[t],o(t)),k[n]>=0&&p(k[n],o(n))}}function d(e,t){if(e[t]<0)return t;var n=t,r=t;do{var o=e[r];if(!x[r]||o<0||o===r)break;if(r=o,o=e[r],!x[r]||o<0||o===r)break;r=o,n=e[n]}while(n!==r);for(var i=t;i!==r;i=e[i])e[i]=r;return r}for(var m=t.length,v=e.length,g=new Array(m),y=new Array(m),b=new Array(m),x=new Array(m),_=0;_>1;_>=0;--_)u(_);for(;;){var P=f();if(P<0||b[P]>n)break;h(P)}for(var M=[],_=0;_=0&&n>=0&&t!==n){var r=k[t],o=k[n];r!==o&&O.push([r,o])}}),a.unique(a.normalize(O)),{positions:M,edges:O}}t.exports=o;var i=e("robust-orientation"),a=e("simplicial-complex")},{"robust-orientation":259,"simplicial-complex":297}],299:[function(e,t,n){"use strict";t.exports=["",{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},{}],300:[function(e,t,n){"use strict";var r=e("./arrow_paths"),o=e("../../plots/font_attributes"),i=e("../../plots/cartesian/constants"),a=e("../../lib/extend").extendFlat;t.exports={_isLinkedToArray:!0,text:{valType:"string"},textangle:{valType:"angle",dflt:0},font:a({},o,{}),opacity:{valType:"number",min:0,max:1,dflt:1},align:{valType:"enumerated",values:["left","center","right"],dflt:"center"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)"},borderpad:{valType:"number",min:0,dflt:1},borderwidth:{valType:"number",min:0,dflt:1},showarrow:{valType:"boolean",dflt:!0},arrowcolor:{valType:"color"},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1},arrowsize:{valType:"number",min:.3,dflt:1},arrowwidth:{valType:"number",min:.1},ax:{valType:"number",dflt:-10},ay:{valType:"number",dflt:-30},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()]},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()]},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()]},x:{valType:"number"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()]},y:{valType:"number"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto"},_deprecated:{ref:{valType:"string"}}}},{"../../lib/extend":377,"../../plots/cartesian/constants":410,"../../plots/font_attributes":423,"./arrow_paths":299}],301:[function(e,t,n){"use strict";function r(e,t){function n(t,n){return u.coerce(e,r,v.layoutAttributes,t,n)}var r={};n("opacity"),n("align"),n("bgcolor");var o=n("bordercolor"),i=f.opacity(o);n("borderpad");var a=n("borderwidth"),s=n("showarrow");s&&(n("arrowcolor",i?r.bordercolor:f.defaultLine),n("arrowhead"),n("arrowsize"),n("arrowwidth",2*(i&&a||1)),n("ax"),n("ay"),n("axref"),n("ayref"),u.noneOrAll(e,r,["ax","ay"])),n("text",s?" ":"new text"),n("textangle"),u.coerceFont(n,"font",t.font);for(var l=["x","y"],p=0;p<2;p++){var h=l[p],d={_fullLayout:t},m=c.coerceRef(e,r,d,h),g=c.coerceARef(e,r,d,h),y=.5;if("paper"!==m){var b=c.getFromId(d,m);if(y=b.range[0]+y*(b.range[1]-b.range[0]),["date","category"].indexOf(b.type)!==-1&&"string"==typeof e[h]){var x;if("date"===b.type){if(x=u.dateTime2ms(e[h]),x!==!1&&(e[h]=x),g===m){var _=u.dateTime2ms(e["a"+h]);_!==!1&&(e["a"+h]=_)}}else(b._categories||[]).length&&(x=b._categories.indexOf(e[h]),x!==-1&&(e[h]=x))}}n(h,y),s||n(h+"anchor")}return u.noneOrAll(e,r,["x","y"]),r}function o(e){var t=e._fullLayout;t.annotations.forEach(function(t){var n=c.getFromId(e,t.xref),r=c.getFromId(e,t.yref);if(n||r){var o=(t._xsize||0)/2,i=t._xshift||0,a=(t._ysize||0)/2,s=t._yshift||0,l=o-i,u=o+i,f=a-s,p=a+s;if(t.showarrow){var h=3*t.arrowsize*t.arrowwidth;l=Math.max(l,h),u=Math.max(u,h),f=Math.max(f,h),p=Math.max(p,h)}n&&n.autorange&&c.expand(n,[n.l2c(t.x)],{ppadplus:u,ppadminus:l}),r&&r.autorange&&c.expand(r,[r.l2c(t.y)],{ppadplus:p,ppadminus:f})}})}function i(e,t,n,r,o,i,a,s){var l=n-e,u=o-e,c=a-o,f=r-t,p=i-t,h=s-i,d=l*h-c*f;if(0===d)return null;var m=(u*h-c*p)/d,v=(u*f-l*p)/d;return v<0||v>1||m<0||m>1?null:{x:e+l*m,y:t+f*m}}var a=e("d3"),s=e("fast-isnumeric"),l=e("../../plotly"),u=e("../../lib"),c=e("../../plots/cartesian/axes"),f=e("../color"),p=e("../drawing"),h=e("../../lib/svg_text_utils"),d=e("../../lib/setcursor"),m=e("../dragelement"),v=t.exports={};v.ARROWPATHS=e("./arrow_paths"),v.layoutAttributes=e("./attributes"),v.supplyLayoutDefaults=function(e,t){for(var n=e.annotations||[],o=t.annotations=[],i=0;i2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}ee.selectAll("tspan.line").attr({y:0,x:0});var r=K.select(".annotation-math-group"),o=!r.empty(),s=p.bBox((o?r:ee).node()),h=s.width,g=s.height,y=Math.round(h+2*Q),b=Math.round(g+2*Q);U._w=h,U._h=g;var x=!1;if(["x","y"].forEach(function(t){var r,o=U[t+"ref"]||t,i=c.getFromId(e,o),a=(V+("x"===t?0:90))*Math.PI/180,s=y*Math.abs(Math.cos(a))+b*Math.abs(Math.sin(a)),l=U[t+"anchor"];if(i){if(!i.autorange&&(U[t]-i.range[0])*(U[t]-i.range[1])>0&&(U["a"+t+"ref"]===o?(U["a"+t]-i.range[0])*(U["a"+t]-i.range[1])>0&&(x=!0):x=!0,x))return;q[t]=i._offset+i.l2p(U[t]),r=.5}else r=U[t],"y"===t&&(r=1-r),q[t]="x"===t?P.l+P.w*r:P.t+P.h*r;var u=0;U["a"+t+"ref"]===o?q["aa"+t]=i._offset+i.l2p(U["a"+t]):(u=U.showarrow?U["a"+t]:s*n(r,l),q[t]+=u),U["_"+t+"type"]=i&&i.type,U["_"+t+"size"]=s,U["_"+t+"shift"]=u}),x)return void K.remove();var w,T;U.showarrow&&(w=U.axref===U.xref?q.x:u.constrain(q.x-U.ax,1,_.width-1),T=U.ayref===U.yref?q.y:u.constrain(q.y-U.ay,1,_.height-1)),q.x=u.constrain(q.x,1,_.width-1),q.y=u.constrain(q.y,1,_.height-1);var C=Q-s.top,E=Q-s.left;o?r.select("svg").attr({x:Q-1,y:Q}):(ee.attr({x:E,y:C}),ee.selectAll("tspan.line").attr({y:C,x:E})),J.call(p.setRect,X/2,X/2,y-X,b-X);var k=0,S=0;k=U.axref===U.xref?Math.round(q.aax-y/2):Math.round(q.x-y/2),S=U.ayref===U.yref?Math.round(q.aay-b/2):Math.round(q.y-b/2),K.call(u.setTranslate,k,S);var A="annotations["+t+"]",M=function(n,r){a.select(e).selectAll('.annotation-arrow-g[data-index="'+t+'"]').remove();var o,s;o=U.axref===U.xref?q.aax+n:q.x+n,s=U.ayref===U.yref?q.aay+r:q.y+r;var c=u.rotationXYMatrix(V,o,s),p=u.apply2DTransform(c),h=u.apply2DTransform2(c),d=J.attr("width")/2,g=J.attr("height")/2,y=[[o-d,s-g,o-d,s+g],[o-d,s+g,o+d,s+g],[o+d,s+g,o+d,s-g],[o+d,s-g,o-d,s-g]].map(h);if(!y.reduce(function(e,t){return e^!!i(w,T,w+1e6,T+1e6,t[0],t[1],t[2],t[3])},!1)){y.forEach(function(e){var t=i(o,s,w,T,e[0],e[1],e[2],e[3]);t&&(o=t.x,s=t.y)});var b=U.arrowwidth,x=U.arrowcolor,_=G.append("g").style({opacity:f.opacity(x)}).classed("annotation-arrow-g",!0).attr("data-index",String(t)),C=_.append("path").attr("d","M"+o+","+s+"L"+w+","+T).style("stroke-width",b+"px").call(f.stroke,f.rgb(x));v.arrowhead(C,U.arrowhead,"end",U.arrowsize);var E=_.append("path").classed("annotation",!0).classed("anndrag",!0).attr({"data-index":String(t),d:"M3,3H-3V-3H3ZM0,0L"+(o-w)+","+(s-T),transform:"translate("+w+","+T+")"}).style("stroke-width",b+6+"px").call(f.stroke,"rgba(0,0,0,0)").call(f.fill,"rgba(0,0,0,0)");if(e._context.editable){var k,S,M;m.init({element:E.node(),prepFn:function(){var e=u.getTranslate(K);S=e.x,M=e.y,k={},W&&W.autorange&&(k[W._name+".autorange"]=!0),H&&H.autorange&&(k[H._name+".autorange"]=!0)},moveFn:function(e,t){_.attr("transform","translate("+e+","+t+")");var n=p(S,M),r=n[0]+e,o=n[1]+t;K.call(u.setTranslate,r,o),k[A+".x"]=W?U.x+e/W._m:(w+e-P.l)/P.w,k[A+".y"]=H?U.y+t/H._m:1-(T+t-P.t)/P.h,U.axref===U.xref&&(k[A+".ax"]=W?U.ax+e/W._m:(w+e-P.l)/P.w),U.ayref===U.yref&&(k[A+".ay"]=H?U.ay+t/H._m:1-(T+t-P.t)/P.h),Y.attr({transform:"rotate("+V+","+r+","+o+")"})},doneFn:function(t){if(t){l.relayout(e,k);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};U.showarrow&&M(0,0);var O=u.rotationXYMatrix(V,q.x,q.y),D=u.apply2DTransform(O);if(e._context.editable){var L,j,R;m.init({element:K.node(),prepFn:function(){var e=u.getTranslate(K);L=e.x,j=e.y,R={}},moveFn:function(e,t){K.call(u.setTranslate,L+e,j+t);var n="pointer";if(U.showarrow)U.axref===U.xref?R[A+".ax"]=W.p2l(W.l2p(U.ax)+e):R[A+".ax"]=U.ax+e,U.ayref===U.yref?R[A+".ay"]=H.p2l(H.l2p(U.ay)+t):R[A+".ay"]=U.ay+t,M(e,t);else{if(W)R[A+".x"]=U.x+e/W._m;else{var r=U._xsize/P.w,o=U.x+U._xshift/P.w-r/2;R[A+".x"]=m.align(o+e/P.w,r,0,1,U.xanchor)}if(H)R[A+".y"]=U.y+t/H._m;else{var i=U._ysize/P.h,a=U.y-U._yshift/P.h-i/2;R[A+".y"]=m.align(a-t/P.h,i,0,1,U.yanchor)}W&&H||(n=m.getCursor(W?.5:R[A+".x"],H?.5:R[A+".y"],U.xanchor,U.yanchor))}var s=D(L,j),l=s[0]+e,c=s[1]+t;K.call(u.setTranslate,L+e,j+t),Y.attr({transform:"rotate("+V+","+l+","+c+")"}),d(K,n)},doneFn:function(t){if(d(K),t){l.relayout(e,R);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}var b,x=e.layout,_=e._fullLayout;if(!s(t)||t===-1){if(!t&&Array.isArray(o))return x.annotations=o,v.supplyLayoutDefaults(x,_),void v.drawAll(e);if("remove"===o)return delete x.annotations,_.annotations=[],void v.drawAll(e);if(n&&"add"!==o){for(b=0;b<_.annotations.length;b++)v.draw(e,b,n,o);return}t=_.annotations.length,_.annotations.push({})}if(!n&&o){if("remove"===o){for(_._infolayer.selectAll('.annotation[data-index="'+t+'"]').remove(),_.annotations.splice(t,1),x.annotations.splice(t,1),b=t;b<_.annotations.length;b++)_._infolayer.selectAll('.annotation[data-index="'+(b+1)+'"]').attr("data-index",String(b)),v.draw(e,b);return}if("add"===o||u.isPlainObject(o)){_.annotations.splice(t,0,{});var w=u.isPlainObject(o)?u.extendFlat({},o):{text:"New text"};for(x.annotations?x.annotations.splice(t,0,w):x.annotations=[w],b=_.annotations.length-1;b>t;b--)_._infolayer.selectAll('.annotation[data-index="'+(b-1)+'"]').attr("data-index",String(b)),v.draw(e,b)}}_._infolayer.selectAll('.annotation[data-index="'+t+'"]').remove();var T=x.annotations[t],C=_.annotations[t];if(T){var E={xref:T.xref,yref:T.yref},k={};"string"==typeof n&&n?k[n]=o:u.isPlainObject(n)&&(k=n);var S=Object.keys(k);for(b=0;b4/3&&(j=B)}}else L&&(F&&(j<1/3?j+=N:j>2/3&&(j-=N)),j=(j-L.domain[0])/(L.domain[1]-L.domain[0]),j=L.range[0]+j*(L.range[1]-L.range[0]))}L&&L===D&&R&&("log"===R&&"log"!==L.type?j=Math.pow(10,j):"log"!==R&&"log"===L.type&&(j=j>0?Math.log(j)/Math.LN10:void 0)),T[O]=j}}var U=r(T,_);_.annotations[t]=U;var W=c.getFromId(e,U.xref),H=c.getFromId(e,U.yref),q={x:0,y:0},V=+U.textangle||0,G=_._infolayer.append("g").classed("annotation",!0).attr("data-index",String(t)).style("opacity",U.opacity).on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",{index:t,annotation:T,fullAnnotation:U})}),Y=G.append("g").classed("annotation-text-g",!0).attr("data-index",String(t)),K=Y.append("g"),X=U.borderwidth,Z=U.borderpad,Q=X+Z,J=K.append("rect").attr("class","bg").style("stroke-width",X+"px").call(f.stroke,U.bordercolor).call(f.fill,U.bgcolor),$=U.font,ee=K.append("text").classed("annotation",!0).attr("data-unformatted",U.text).text(U.text);e._context.editable?ee.call(h.makeEditable,K).call(g).on("edit",function(n){U.text=n,this.attr({"data-unformatted":U.text}),this.call(g);var r={};r["annotations["+t+"].text"]=U.text,W&&W.autorange&&(r[W._name+".autorange"]=!0),H&&H.autorange&&(r[H._name+".autorange"]=!0),l.relayout(e,r)}):ee.call(g),Y.attr({transform:"rotate("+V+","+q.x+","+q.y+")"}).call(p.setPosition,q.x,q.y)}},v.arrowhead=function(e,t,n,r){s(r)||(r=1);var o=e.node(),i=v.ARROWPATHS[t||0];if(i){"string"==typeof n&&n||(n="end");var l,u,c,h,d=(p.getPx(e,"stroke-width")||1)*r,m=e.style("stroke")||f.defaultLine,g=e.style("stroke-opacity")||1,y=n.indexOf("start")>=0,b=n.indexOf("end")>=0,x=i.backoff*d;if("line"===o.nodeName){if(l={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")},c=Math.atan2(l.y-u.y,l.x-u.x),h=c+Math.PI,x){var _=x*Math.cos(c),w=x*Math.sin(c);y&&(l.x-=_,l.y-=w,e.attr({x1:l.x,y1:l.y})),b&&(u.x+=_,u.y+=w,e.attr({x2:u.x,y2:u.y}))}}else if("path"===o.nodeName){var T=o.getTotalLength(),C="";if(y){var E=o.getPointAtLength(0),k=o.getPointAtLength(.1);c=Math.atan2(E.y-k.y,E.x-k.x),l=o.getPointAtLength(Math.min(x,T)),x&&(C="0px,"+x+"px,")}if(b){var S=o.getPointAtLength(T),A=o.getPointAtLength(T-.1);if(h=Math.atan2(S.y-A.y,S.x-A.x),u=o.getPointAtLength(Math.max(0,T-x)),x){var P=C?2*x:x;C+=T-P+"px,"+T+"px"}}else C&&(C+=T+"px");C&&e.style("stroke-dasharray",C)}var M=function(n,r){t>5&&(r=0),a.select(o.parentElement).append("path").attr({"class":e.attr("class"),d:i.path,transform:"translate("+n.x+","+n.y+")rotate("+180*r/Math.PI+")scale("+d+")"}).style({fill:m,opacity:g,"stroke-width":0})};y&&M(l,c),b&&M(u,h)}},v.calcAutorange=function(e){var t=e._fullLayout,n=t.annotations;if(n.length&&e._fullData.length){var r={};n.forEach(function(e){r[e.xref]=!0,r[e.yref]=!0});var i=c.list(e).filter(function(e){return e.autorange&&r[e._id]});if(i.length)return u.syncOrAsync([v.drawAll,o],e)}}},{"../../lib":382,"../../lib/setcursor":391,"../../lib/svg_text_utils":395,"../../plotly":402,"../../plots/cartesian/axes":405,"../color":303,"../dragelement":324,"../drawing":326,"./arrow_paths":299,"./attributes":300,d3:113,"fast-isnumeric":117}],302:[function(e,t,n){"use strict";n.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],n.defaultLine="#444",n.lightLine="#eee",n.background="#fff",n.lightFraction=1e3/11},{}],303:[function(e,t,n){"use strict";function r(e){if(i(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),o="a"===t.charAt(3)&&4===r.length;if(!o&&3!==r.length)return e;for(var a=0;a=0))return e;if(3===a)r[a]>1&&(r[a]=1);else if(r[a]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return o?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}var o=e("tinycolor2"),i=e("fast-isnumeric"),a=t.exports={},s=e("./attributes");a.defaults=s.defaults,a.defaultLine=s.defaultLine,a.lightLine=s.lightLine,a.background=s.background,a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(o(e))},a.opacity=function(e){return e?o(e).getAlpha():0},a.addOpacity=function(e,t){var n=o(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=o(e).toRgb();if(1===n.a)return o(e).toRgbString();var r=o(t||a.background).toRgb(),i=1===r.a?r:{r:255*(1-r.a)+r.r*r.a,g:255*(1-r.a)+r.g*r.a,b:255*(1-r.a)+r.b*r.a},s={r:i.r*(1-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return o(s).toRgbString()},a.stroke=function(e,t){var n=o(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=o(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,n,o,i,s=Object.keys(e);for(t=0;tl&&(i[1]-=(ae-l)/2)):n.node()&&!n.classed("js-placeholder")&&(ae=p.bBox(t.node()).height),ae){if(ae+=5,"top"===x.titleside)J.domain[1]-=ae/E.h,i[1]*=-1;else{J.domain[0]+=ae/E.h;var c=Math.max(1,n.selectAll("tspan.line").size());i[1]+=(1-c)*l}t.attr("transform","translate("+i+")"),J.setScale()}}oe.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(E.h*(1-J.domain[1]))+")");var f=oe.select(".cbfills").selectAll("rect.cbfill").data(P);f.enter().append("rect").classed("cbfill",!0).style("stroke","none"),f.exit().remove(),f.each(function(e,t){var n=[0===t?S[0]:(P[t]+P[t-1])/2,t===P.length-1?S[1]:(P[t]+P[t+1])/2].map(J.c2p).map(Math.round);t!==P.length-1&&(n[1]+=n[1]>n[0]?1:-1);var i=O(e).replace("e-",""),a=o(i).toHexString();r.select(this).attr({x:G,width:Math.max(B,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:a})});var h=oe.select(".cblines").selectAll("path.cbline").data(x.line.color&&x.line.width?A:[]);return h.enter().append("path").classed("cbline",!0),h.exit().remove(),h.each(function(e){r.select(this).attr("d","M"+G+","+(Math.round(J.c2p(e))+x.line.width/2%1)+"h"+B).call(p.lineGroupStyle,x.line.width,M(e),x.line.dash)}),J._axislayer.selectAll("g."+J._id+"tick,path").remove(),J._pos=G+B+(x.outlinewidth||0)/2-("outside"===x.ticks?1:0),J.side="right",u.syncOrAsync([function(){return s.doTicks(e,J,!0)},function(){if(["top","bottom"].indexOf(x.titleside)===-1){var t=J.titlefont.size,n=J._offset+J._length/2,o=E.l+(J.position||0)*E.w+("right"===J.side?10+t*(J.showticklabels?1:.5):-10-t*(J.showticklabels?.5:0));w("h"+J._id+"title",{avoid:{selection:r.select(e).selectAll("g."+J._id+"tick"),side:x.titleside,offsetLeft:E.l,offsetTop:E.t,maxShift:C.width},attributes:{x:o,y:n,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])}function w(t,n){var r,o=b();r=a.traceIs(o,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var i={propContainer:J,propName:r,traceIndex:o.index,dfltName:"colorscale", +containerGroup:oe.select(".cbtitle")},s="h"===t.charAt(0)?t.substr(1):"h"+t;oe.selectAll("."+s+",."+s+"-math-group").remove(),d.draw(e,t,c(i,n||{}))}function T(){var n=B+x.outlinewidth/2+p.bBox(J._axislayer.node()).width;if(F=ie.select("text"),F.node()&&!F.classed("js-placeholder")){var r,o=ie.select(".h"+J._id+"title-math-group").node();r=o&&["top","bottom"].indexOf(x.titleside)!==-1?p.bBox(o).width:p.bBox(ie.node()).right-G-E.l,n=Math.max(n,r)}var i=2*x.xpad+n+x.borderwidth+x.outlinewidth/2,s=X-Z;oe.select(".cbbg").attr({x:G-x.xpad-(x.borderwidth+x.outlinewidth)/2,y:Z-q,width:Math.max(i,2),height:Math.max(s+2*q,2)}).call(h.fill,x.bgcolor).call(h.stroke,x.bordercolor).style({"stroke-width":x.borderwidth}),oe.selectAll(".cboutline").attr({x:G,y:Z+x.ypad+("top"===x.titleside?ae:0),width:Math.max(B,2),height:Math.max(s-2*x.ypad-ae,2)}).call(h.stroke,x.outlinecolor).style({fill:"None","stroke-width":x.outlinewidth});var l=({center:.5,right:1}[x.xanchor]||0)*i;oe.attr("transform","translate("+(E.l-l)+","+E.t+")"),a.autoMargin(e,t,{x:x.x,y:x.y,l:i*({right:1,center:.5}[x.xanchor]||0),r:i*({left:1,center:.5}[x.xanchor]||0),t:s*({bottom:1,middle:.5}[x.yanchor]||0),b:s*({top:1,middle:.5}[x.yanchor]||0)})}var C=e._fullLayout,E=C._size;if("function"!=typeof x.fillcolor&&"function"!=typeof x.line.color)return void C._infolayer.selectAll("g."+t).remove();var k,S=r.extent(("function"==typeof x.fillcolor?x.fillcolor:x.line.color).domain()),A=[],P=[],M="function"==typeof x.line.color?x.line.color:function(){return x.line.color},O="function"==typeof x.fillcolor?x.fillcolor:function(){return x.fillcolor},D=x.levels.end+x.levels.size/100,L=x.levels.size,j=1.001*S[0]-.001*S[1],R=1.001*S[1]-.001*S[0];for(k=x.levels.start;(k-D)*L<0;k+=L)k>j&&kS[0]&&k1){var re=Math.pow(10,Math.floor(Math.log(ne)/Math.LN10));ee*=re*u.roundUp(ne/re,[2,5,10]),(Math.abs(x.levels.start)/x.levels.size+1e-6)%1<2e-6&&(J.tick0=0)}J.dtick=ee}J.domain=[K+V,K+W-V],J.setScale();var oe=C._infolayer.selectAll("g."+t).data([0]);oe.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),oe.attr("transform","translate("+Math.round(E.l)+","+Math.round(E.t)+")");var ie=oe.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(E.l)+",-"+Math.round(E.t)+")");J._axislayer=oe.select(".cbaxis");var ae=0;if(["top","bottom"].indexOf(x.titleside)!==-1){var se,le=E.l+(x.x+H)*E.w,ue=J.titlefont.size;se="top"===x.titleside?(1-(K+W-V))*E.h+E.t+3+.75*ue:(1-(K+V))*E.h+E.t-3-.25*ue,w(J._id+"title",{attributes:{x:le,y:se,"text-anchor":"start"}})}var ce=u.syncOrAsync([a.previousPromises,_,a.previousPromises,T],e);if(ce&&ce.then&&(e._promises||[]).push(ce),e._context.editable){var fe,pe,he;l.init({element:oe.node(),prepFn:function(){fe=oe.attr("transform"),f(oe)},moveFn:function(e,t){oe.attr("transform",fe+" translate("+e+","+t+")"),pe=l.align(Y+e/E.w,z,0,1,x.xanchor),he=l.align(K-t/E.h,W,0,1,x.yanchor);var n=l.getCursor(pe,he,x.xanchor,x.yanchor);f(oe,n)},doneFn:function(t){f(oe),t&&void 0!==pe&&void 0!==he&&i.restyle(e,{"colorbar.x":pe,"colorbar.y":he},b().index)}})}return ce}function b(){var n,r,o=t.substr(2);for(n=0;n=0?o.Reds:o.Blues,l.colorscale=p,s.reversescale&&(p=i(p)),s.colorscale=p)}},{"../../lib":382,"./flip_scale":314,"./scales":321}],311:[function(e,t,n){"use strict";var r=e("./attributes"),o=e("../../lib/extend").extendDeep;e("./scales.js");t.exports=function(e){return{color:{valType:"color",arrayOk:!0},colorscale:o({},r.colorscale,{}),cauto:o({},r.zauto,{}),cmax:o({},r.zmax,{}),cmin:o({},r.zmin,{}),autocolorscale:o({},r.autocolorscale,{}),reversescale:o({},r.reversescale,{})}}},{"../../lib/extend":377,"./attributes":309,"./scales.js":321}],312:[function(e,t,n){"use strict";var r=e("./scales");t.exports=r.RdBu},{"./scales":321}],313:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../lib"),i=e("../colorbar/has_colorbar"),a=e("../colorbar/defaults"),s=e("./is_valid_scale"),l=e("./flip_scale");t.exports=function(e,t,n,u,c){var f=c.prefix,p=c.cLetter,h=f.slice(0,f.length-1),d=f?o.nestedProperty(e,h).get()||{}:e,m=f?o.nestedProperty(t,h).get()||{}:t,v=d[p+"min"],g=d[p+"max"],y=d.colorscale,b=r(v)&&r(g)&&v=0;o--,i++)t=e[o],r[i]=[1-t[0],t[1]];return r}},{}],315:[function(e,t,n){"use strict";var r=e("./scales"),o=e("./default_scale"),i=e("./is_valid_scale_array");t.exports=function(e,t){function n(){try{e=r[e]||JSON.parse(e)}catch(n){e=t}}return t||(t=o),e?("string"==typeof e&&(n(),"string"==typeof e&&n()),i(e)?e:t):t}},{"./default_scale":312,"./is_valid_scale_array":319,"./scales":321}],316:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../lib"),i=e("./is_valid_scale");t.exports=function(e,t){var n=t?o.nestedProperty(e,t).get()||{}:e,a=n.color,s=!1;if(Array.isArray(a))for(var l=0;l4/3-s?a:s}},{}],323:[function(e,t,n){"use strict";var r=e("../../lib"),o=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,n,i){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:r.constrain(Math.floor(3*t),0,2),o[t][e]}},{"../../lib":382}],324:[function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function o(e){e._dragging=!1,e._replotPending&&i.plot(e)}var i=e("../../plotly"),a=e("../../lib"),s=e("../../plots/cartesian/constants"),l=t.exports={};l.align=e("./align"),l.getCursor=e("./cursor");var u=e("./unhover");l.unhover=u.wrapped,l.unhoverRaw=u.raw,l.init=function(e){function t(t){return e.element.onmousemove=d,m._dragged=!1,m._dragging=!0,u=t.clientX,c=t.clientY,h=t.target,f=(new Date).getTime(),f-m._mouseDownTimeg&&(v=Math.max(v-1,1)),e.doneFn&&e.doneFn(m._dragged,v),!m._dragged){var n=document.createEvent("MouseEvents");n.initEvent("click",!0,!0),h.dispatchEvent(n)}return o(m),m._dragged=!1,a.pauseEvent(t)}var u,c,f,p,h,d,m=a.getPlotDiv(e.element)||{},v=1,g=s.DBLCLICKDELAY;m._mouseDownTime||(m._mouseDownTime=0),d=e.element.onmousemove,e.setCursor&&(e.element.onmousemove=e.setCursor),e.element.onmousedown=t,e.element.style.pointerEvents="all"}},{"../../lib":382,"../../plotly":402,"../../plots/cartesian/constants":410,"./align":322,"./cursor":323,"./unhover":325}],325:[function(e,t,n){"use strict";var r=e("../../lib/events"),o=t.exports={};o.wrapped=function(e,t,n){"string"==typeof e&&(e=document.getElementById(e)),e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),o.raw(e,t,n)},o.raw=function(e,t){var n=e._fullLayout;t||(t={}),t.target&&r.triggerHandler(e,"plotly_beforehover",t)===!1||(n._hoverlayer.selectAll("g").remove(),t.target&&e._hoverdata&&e.emit("plotly_unhover",{points:e._hoverdata}),e._hoverdata=void 0)}},{"../../lib/events":376}],326:[function(e,t,n){"use strict";function r(e,t,n,r){var i=e[0]-t[0],a=e[1]-t[1],s=n[0]-t[0],l=n[1]-t[1],u=Math.pow(i*i+a*a,x/2),c=Math.pow(s*s+l*l,x/2),f=(c*c*i-u*u*s)*r,p=(c*c*a-u*u*l)*r,h=3*c*(u+c),d=3*u*(u+c);return[[o.round(t[0]+(h&&f/h),2),o.round(t[1]+(h&&p/h),2)],[o.round(t[0]-(d&&f/d),2),o.round(t[1]-(d&&p/d),2)]]}var o=e("d3"),i=e("fast-isnumeric"),a=e("../../plots/plots"),s=e("../color"),l=e("../colorscale"),u=e("../../lib"),c=e("../../lib/svg_text_utils"),f=e("../../constants/xmlns_namespaces"),p=e("../../traces/scatter/subtypes"),h=e("../../traces/scatter/make_bubble_size_func"),d=t.exports={};d.font=function(e,t,n,r){t&&t.family&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(s.fill,r)},d.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},d.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},d.setRect=function(e,t,n,r,o){e.call(d.setPosition,t,n).call(d.setSize,r,o)},d.translatePoints=function(e,t,n){e.each(function(e){var r=e.xp||t.c2p(e.x),a=e.yp||n.c2p(e.y),s=o.select(this);i(r)&&i(a)?"text"===this.nodeName?s.attr("x",r).attr("y",a):s.attr("transform","translate("+r+","+a+")"):s.remove()})},d.getPx=function(e,t){return Number(e.style(t).replace(/px$/,""))},d.crispRound=function(e,t,n){return t&&i(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},d.lineGroupStyle=function(e,t,n,r){e.style("fill","none").each(function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},a=t||i.width||0,l=r||i.dash||"";o.select(this).call(s.stroke,n||i.color).call(d.dashLine,l,a)})},d.dashLine=function(e,t,n){var r=Math.max(n,3);"solid"===t?t="":"dot"===t?t=r+"px,"+r+"px":"dash"===t?t=3*r+"px,"+3*r+"px":"longdash"===t?t=5*r+"px,"+5*r+"px":"dashdot"===t?t=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===t&&(t=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},d.fillGroupStyle=function(e){e.style("stroke-width",0).each(function(t){var n=o.select(this);try{n.call(s.fill,t[0].trace.fillcolor)}catch(r){u.error(r,e),n.remove()}})};var m=e("./symbol_defs");d.symbolNames=[],d.symbolFuncs=[],d.symbolNeedLines={},d.symbolNoDot={},d.symbolList=[],Object.keys(m).forEach(function(e){var t=m[e];d.symbolList=d.symbolList.concat([t.n,e,t.n+100,e+"-open"]),d.symbolNames[t.n]=e,d.symbolFuncs[t.n]=t.f,t.needLine&&(d.symbolNeedLines[t.n]=!0),t.noDot?d.symbolNoDot[t.n]=!0:d.symbolList=d.symbolList.concat([t.n+200,e+"-dot",t.n+300,e+"-open-dot"])});var v=d.symbolNames.length,g="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";d.symbolNumber=function(e){if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=d.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=v||e>=400?0:Math.floor(Math.max(e,0))},d.pointStyle=function(e,t){if(e.size()){var n=t.marker,r=n.line;if(a.traceIs(t,"symbols")){var i=h(t);e.attr("d",function(e){var r;r="various"===e.ms||"various"===n.size?3:p.isBubble(t)?i(e.ms):(n.size||6)/2,e.mrc=r;var o=d.symbolNumber(e.mx||n.symbol)||0,a=o%100;return e.om=o%200>=100,d.symbolFuncs[a](r)+(o>=200?g:"")}).style("opacity",function(e){return(e.mo+1||n.opacity+1)-1})}var l=(t._input||{}).marker||{},u=d.tryColorscale(n,l,""),c=d.tryColorscale(n,l,"line.");e.each(function(e){var t,i,a;e.so?(a=r.outlierwidth,i=r.outliercolor,t=n.outliercolor):(a=(e.mlw+1||r.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,i="mlc"in e?e.mlcc=c(e.mlc):Array.isArray(r.color)?s.defaultLine:r.color,t="mc"in e?e.mcc=u(e.mc):Array.isArray(n.color)?s.defaultLine:n.color||"rgba(0,0,0,0)");var l=o.select(this);e.om?l.call(s.stroke,t).style({"stroke-width":(a||1)+"px",fill:"none"}):(l.style("stroke-width",a+"px").call(s.fill,t),a&&l.call(s.stroke,i))})}},d.tryColorscale=function(e,t,n){var r=u.nestedProperty(e,n+"color").get(),o=u.nestedProperty(e,n+"colorscale").get(),a=u.nestedProperty(e,n+"cauto").get(),s=u.nestedProperty(e,n+"cmin"),c=u.nestedProperty(e,n+"cmax"),f=s.get(),p=c.get();return o&&Array.isArray(r)?(!a&&i(f)&&i(p)||(f=1/0,p=-(1/0),r.forEach(function(e){i(e)&&(f>e&&(f=+e),pp&&(f=0,p=1),s.set(f),c.set(p),u.nestedProperty(t,n+"cmin").set(f),u.nestedProperty(t,n+"cmax").set(p)),l.makeScaleFunction(o,f,p)):u.identity};var y={start:1,end:-1,middle:0,bottom:1,top:-1},b=1.3;d.textPointStyle=function(e,t){e.each(function(e){var n=o.select(this),r=e.tx||t.text;if(!r||Array.isArray(r))return void n.remove();var a=e.tp||t.textposition,s=a.indexOf("top")!==-1?"top":a.indexOf("bottom")!==-1?"bottom":"middle",l=a.indexOf("left")!==-1?"end":a.indexOf("right")!==-1?"start":"middle",u=e.ts||t.textfont.size,f=e.mrc?e.mrc/.8+1:0;u=i(u)&&u>0?u:0,n.call(d.font,e.tf||t.textfont.family,u,e.tc||t.textfont.color).attr("text-anchor",l).text(r).call(c.convertToTspans);var p=o.select(this.parentNode),h=n.selectAll("tspan.line"),m=((h[0].length||1)-1)*b+1,v=y[l]*f,g=.75*u+y[s]*f+(y[s]-1)*m*u/2;p.attr("transform","translate("+v+","+g+")"),m>1&&h.attr({x:n.attr("x"),y:n.attr("y")})})};var x=.5;d.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,o="M"+e[0],i=[];for(n=1;n=C&&(o.selectAll("[data-bb]").attr("data-bb",null),T=[]),e.setAttribute("data-bb",T.length),T.push(l),u.extendFlat({},l)},d.setClipUrl=function(e,t){if(!t)return void e.attr("clip-path",null);var n="#"+t,r=o.select("base");r.size()&&r.attr("href")&&(n=window.location.href+n),e.attr("clip-path","url("+n+")")}},{"../../constants/xmlns_namespaces":370,"../../lib":382,"../../lib/svg_text_utils":395,"../../plots/plots":454,"../../traces/scatter/make_bubble_size_func":570,"../../traces/scatter/subtypes":575,"../color":303,"../colorscale":317,"./symbol_defs":327,d3:113,"fast-isnumeric":117}],327:[function(e,t,n){"use strict";var r=e("d3");t.exports={circle:{n:0,f:function(e){var t=r.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,o="l"+t+",-"+t,i="l-"+t+",-"+t,a="l-"+t+","+t;return"M0,"+t+n+o+i+o+i+a+i+a+n+a+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),o=r.round(e,2);return"M-"+t+","+n+"H"+t+"L0,-"+o+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),o=r.round(e,2);return"M-"+t+",-"+n+"H"+t+"L0,"+o+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),o=r.round(e,2);return"M"+n+",-"+t+"V"+t+"L-"+o+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),o=r.round(e,2);return"M-"+n+",-"+t+"V"+t+"L"+o+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),o=r.round(-e,2),i=r.round(e*-.309,2),a=r.round(.809*e,2);return"M"+t+","+i+"L"+n+","+a+"H-"+n+"L-"+t+","+i+"L0,"+o+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),o=r.round(e*Math.sqrt(3)/2,2);return"M"+o+",-"+n+"V"+n+"L0,"+t+"L-"+o+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),o=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+o+"H"+n+"L"+t+",0L"+n+",-"+o+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),o=r.round(.951*t,2),i=r.round(.363*t,2),a=r.round(.588*t,2),s=r.round(-t,2),l=r.round(t*-.309,2),u=r.round(.118*t,2),c=r.round(.809*t,2),f=r.round(.382*t,2);return"M"+n+","+l+"H"+o+"L"+i+","+u+"L"+a+","+c+"L0,"+f+"L-"+a+","+c+"L-"+i+","+u+"L-"+o+","+l+"H-"+n+"L0,"+s+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),o=r.round(.76*e,2);return"M-"+o+",0l-"+n+",-"+t+"h"+o+"l"+n+",-"+t+"l"+n+","+t+"h"+o+"l-"+n+","+t+"l"+n+","+t+"h-"+o+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+o+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),o=r.round(1.6*e,2),i=r.round(4*e,2),a="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+n+a+t+","+n+a+"0,-"+o+a+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),o=r.round(1.6*e,2),i=r.round(4*e,2),a="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+n+a+"-"+t+",-"+n+a+"0,"+o+a+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),o="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+o+"-"+t+","+t+o+t+","+t+o+t+",-"+t+o+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),o="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+o+"0,"+t+o+t+",0"+o+"0,-"+t+o+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0},"x-thin":{n:34,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0},asterisk:{n:35,f:function(e){var t=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),o=r.round(.8*e,2);return"M-"+t+","+o+"L0,0M"+t+","+o+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),o=r.round(.8*e,2);return"M-"+t+",-"+o+"L0,0M"+t+",-"+o+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),o=r.round(.8*e,2);return"M"+o+","+t+"L0,0M"+o+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),o=r.round(.8*e,2);return"M-"+o+","+t+"L0,0M-"+o+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0},"line-ew":{n:41,f:function(e){var t=r.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0},"line-ns":{n:42,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0},"line-ne":{n:43,f:function(e){var t=r.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0},"line-nw":{n:44,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0}}},{d3:113}],328:[function(e,t,n){"use strict";t.exports={visible:{valType:"boolean"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"]},symmetric:{valType:"boolean"},array:{valType:"data_array"},arrayminus:{valType:"data_array"},value:{valType:"number",min:0,dflt:10},valueminus:{valType:"number",min:0,dflt:10},traceref:{valType:"integer",min:0,dflt:0},tracerefminus:{valType:"integer", +min:0,dflt:0},copy_ystyle:{valType:"boolean"},copy_zstyle:{valType:"boolean"},color:{valType:"color"},thickness:{valType:"number",min:0,dflt:2},width:{valType:"number",min:0},_deprecated:{opacity:{valType:"number"}}}},{}],329:[function(e,t,n){"use strict";function r(e,t,n,r){var i=t["error_"+r]||{},l=i.visible&&["linear","log"].indexOf(n.type)!==-1,u=[];if(l){for(var c=s(i),f=0;f0;if(c.visible||u.visible){var p=o.select(this).selectAll("g.errorbar").data(a.identity);p.enter().append("g").classed("errorbar",!0),p.each(function(e){var t=o.select(this),a=r(e,n,l);if(!f||e.vis){var s;if(c.visible&&i(a.x)&&i(a.yh)&&i(a.ys)){var p=c.width;s="M"+(a.x-p)+","+a.yh+"h"+2*p+"m-"+p+",0V"+a.ys,a.noYS||(s+="m-"+p+",0h"+2*p),t.append("path").classed("yerror",!0).attr("d",s)}if(u.visible&&i(a.y)&&i(a.xh)&&i(a.xs)){var h=(u.copy_ystyle?c:u).width;s="M"+a.xh+","+(a.y-h)+"v"+2*h+"m0,-"+h+"H"+a.xs,a.noXS||(s+="m0,-"+h+"v"+2*h),t.append("path").classed("xerror",!0).attr("d",s)}}})}})}},{"../../lib":382,"../../traces/scatter/subtypes":575,d3:113,"fast-isnumeric":117}],334:[function(e,t,n){"use strict";var r=e("d3"),o=e("../color");t.exports=function(e){e.each(function(e){var t=e[0].trace,n=t.error_y||{},i=t.error_x||{},a=r.select(this);a.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(o.stroke,n.color),i.copy_ystyle&&(i=n),a.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(o.stroke,i.color)})}},{"../color":303,d3:113}],335:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/constants");t.exports={_isLinkedToArray:!0,source:{valType:"string"},layer:{valType:"enumerated",values:["below","above"],dflt:"above"},sizex:{valType:"number",dflt:0},sizey:{valType:"number",dflt:0},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain"},opacity:{valType:"number",min:0,max:1,dflt:1},x:{valType:"number",dflt:0},y:{valType:"number",dflt:0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper"}}},{"../../plots/cartesian/constants":410}],336:[function(e,t,n){"use strict";function r(e,t,n){function r(n,r){return i.coerce(e,t,a,n,r)}t=t||{},r("source"),r("layer"),r("x"),r("y"),r("xanchor"),r("yanchor"),r("sizex"),r("sizey"),r("sizing"),r("opacity");for(var s=0;s<2;s++){var l={_fullLayout:n},u=["x","y"][s];o.coerceRef(e,t,l,u,"paper")}return t}var o=e("../../plots/cartesian/axes"),i=e("../../lib"),a=e("./attributes");t.exports=function(e,t){if(e.images&&Array.isArray(e.images))for(var n=e.images,o=t.images=[],i=0;i=2/3},n.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},n.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},n.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},{}],340:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),o=e("../color/attributes"),i=e("../../lib/extend").extendFlat;t.exports={bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:o.defaultLine},borderwidth:{valType:"number",min:0,dflt:0},font:i({},r,{}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"]},tracegroupgap:{valType:"number",min:0,dflt:10},x:{valType:"number",min:-2,max:3,dflt:1.02},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto"}}},{"../../lib/extend":377,"../../plots/font_attributes":423,"../color/attributes":302}],341:[function(e,t,n){"use strict";t.exports={scrollBarWidth:4,scrollBarHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4}},{}],342:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("../../plots/plots"),i=e("./attributes"),a=e("./helpers");t.exports=function(e,t,n){function s(e,t){return r.coerce(p,h,i,e,t)}for(var l,u,c,f,p=e.legend||{},h=t.legend={},d=0,m="normal",v=0;v1);if(y!==!1){if(s("bgcolor",t.paper_bgcolor),s("bordercolor"),s("borderwidth"),r.coerceFont(s,"font",t.font),s("orientation"),"h"===h.orientation){var b=e.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(l=0,c="left",u=1.1,f="bottom"):(l=0,c="left",u=-.1,f="top")}s("traceorder",m),a.isGrouped(t.legend)&&s("tracegroupgap"),s("x",l),s("xanchor",c),s("y",u),s("yanchor",f),r.noneOrAll(p,h,["x","y"])}}},{"../../lib":382,"../../plots/plots":454,"./attributes":340,"./helpers":345}],343:[function(e,t,n){"use strict";function r(e,t){function n(n){c.util.convertToTspans(n,function(){n.selectAll("tspan.line").attr({x:n.attr("x")}),e.call(i,t)})}var r=e.data()[0][0],o=t._fullLayout,a=r.trace,s=p.traceIs(a,"pie"),l=a.index,u=s?r.label:a.name,f=e.selectAll("text.legendtext").data([0]);f.enter().append("text").classed("legendtext",!0),f.attr({x:40,y:0,"data-unformatted":u}).style("text-anchor","start").classed("user-select-none",!0).call(d.font,o.legend.font).text(u),t._context.editable&&!s?f.call(c.util.makeEditable).call(n).on("edit",function(e){this.attr({"data-unformatted":e}),this.text(e).call(n),this.text()||(e=" "),c.restyle(t,"name",e,l)}):f.call(n)}function o(e,t){var n=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],r=e.selectAll("rect").data([0]);r.enter().append("rect").classed("legendtoggle",!0).style("cursor","pointer").attr("pointer-events","all").call(m.fill,"rgba(0,0,0,0)"),r.on("click",function(){if(!t._dragged){var r,o,i=e.data()[0][0],a=t._fullData,s=i.trace,l=s.legendgroup,u=[];if(p.traceIs(s,"pie")){var f=i.label,h=n.indexOf(f);h===-1?n.push(f):n.splice(h,1),c.relayout(t,"hiddenlabels",n)}else{if(""===l)u=[s.index];else for(var d=0;dtspan"),h=p[0].length||1;n=l*h,r=c.node()&&d.bBox(c.node()).width;var m=l*(.3+(1-h)/2);c.attr("y",m),p.attr("y",m)}n=Math.max(n,16)+3,i.attr({x:0,y:-n/2,height:n}),o.height=n,o.width=r}function a(e,t,n){var r=e._fullLayout,o=r.legend,i=o.borderwidth,a=b.isGrouped(o);if(b.isVertical(o))a&&t.each(function(e,t){f.setTranslate(this,0,t*o.tracegroupgap)}),o.width=0,o.height=0,n.each(function(e){var t=e[0],n=t.height,r=t.width;f.setTranslate(this,i,5+i+o.height+n/2),o.height+=n,o.width=Math.max(o.width,r)}),o.width+=45+2*i,o.height+=10+2*i,a&&(o.height+=(o._lgroupsLength-1)*o.tracegroupgap),n.selectAll(".legendtoggle").attr("width",(e._context.editable?0:o.width)+40),o.width=Math.ceil(o.width),o.height=Math.ceil(o.height);else if(a){o.width=0,o.height=0;for(var s=[o.width],l=t.data(),c=0,p=l.length;cj?l(e):s(e);var R=n._size,F=R.l+R.w*b.x,I=R.t+R.h*(1-b.y);x.isRightAnchor(b)?F-=b.width:x.isCenterAnchor(b)&&(F-=b.width/2),x.isBottomAnchor(b)?I-=b.height:x.isMiddleAnchor(b)&&(I-=b.height/2);var N=b.width,B=R.w;N>B?(F=R.l,N=B):(F+N>D&&(F=D-N),FU?(I=R.t,z=U):(I+z>j&&(I=j-z),In[1])return n[1]}return o}function n(e){return e[0]}var r,o,i=e[0],a=i.trace,s=h.hasMarkers(a),c=h.hasText(a),p=h.hasLines(a);if(s||c||p){var d={},m={};s&&(d.mc=t("marker.color",n),d.mo=t("marker.opacity",u.mean,[.2,1]),d.ms=t("marker.size",u.mean,[2,16]),d.mlc=t("marker.line.color",n),d.mlw=t("marker.line.width",u.mean,[0,5]),m.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),p&&(m.line={width:t("line.width",n,[0,10])}),c&&(d.tx="Aa",d.tp=t("textposition",n),d.ts=10,d.tc=t("textfont.color",n),d.tf=t("textfont.family",n)),r=[u.minExtend(i,d)],o=u.minExtend(a,m)}var v=l.select(this).select("g.legendpoints"),g=v.selectAll("path.scatterpts").data(s?r:[]);g.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),g.exit().remove(),g.call(f.pointStyle,o),s&&(r[0].mrc=3);var y=v.selectAll("g.pointtext").data(c?r:[]);y.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),y.exit().remove(),y.selectAll("text").call(f.textPointStyle,o)}function i(e){var t=e[0].trace,n=t.marker||{},r=n.line||{},o=l.select(this).select("g.legendpoints").selectAll("path.legendbar").data(c.traceIs(t,"bar")?[e]:[]);o.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),o.exit().remove(),o.each(function(e){var t=(e.mlw+1||r.width+1)-1,o=l.select(this);o.style("stroke-width",t+"px").call(p.fill,e.mc||n.color),t&&o.call(p.stroke,e.mlc||r.color)})}function a(e){var t=e[0].trace,n=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(c.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(e){var n=(e.lw+1||t.line.width+1)-1,r=l.select(this);r.style("stroke-width",n+"px").call(p.fill,e.fc||t.fillcolor),n&&r.call(p.stroke,e.lc||t.line.color)})}function s(e){var t=e[0].trace,n=l.select(this).select("g.legendpoints").selectAll("path.legendpie").data(c.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(d,e[0],t)}var l=e("d3"),u=e("../../lib"),c=e("../../plots/plots"),f=e("../drawing"),p=e("../color"),h=e("../../traces/scatter/subtypes"),d=e("../../traces/pie/style_one");t.exports=function(e){e.each(function(e){var t=l.select(this),n=t.selectAll("g.legendfill").data([e]);n.enter().append("g").classed("legendfill",!0);var r=t.selectAll("g.legendlines").data([e]);r.enter().append("g").classed("legendlines",!0);var o=t.selectAll("g.legendsymbols").data([e]);o.enter().append("g").classed("legendsymbols",!0),o.style("opacity",e[0].trace.opacity),o.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(i).each(a).each(s).each(r).each(o)}},{"../../lib":382,"../../plots/plots":454,"../../traces/pie/style_one":554,"../../traces/scatter/subtypes":575,"../color":303,"../drawing":326,d3:113}],348:[function(e,t,n){"use strict";function r(e,t){var n=t.currentTarget,r=n.getAttribute("data-attr"),o=n.getAttribute("data-val")||!0,i=e._fullLayout,a={};if("zoom"===r){for(var s,l,c="in"===o?.5:2,f=(1+c)/2,p=(1-c)/2,h=u.Axes.list(e,null,!0),d=0;d1)return r(["resetViews","toggleHover"]),a(v,n);c&&(r(["zoom3d","pan3d","orbitRotation","tableRotation"]),r(["resetCameraDefault3d","resetCameraLastSave3d"]),r(["hoverClosest3d"])),p&&(r(["zoomInGeo","zoomOutGeo","resetGeo"]),r(["hoverClosestGeo"]));var g=o(s),y=[];return((u||d)&&!g||m)&&(y=["zoom2d","pan2d"]),(u||m)&&i(l)&&(y.push("select2d"),y.push("lasso2d")),y.length&&r(y),!u&&!d||g||m||r(["zoomIn2d","zoomOut2d","autoScale2d","resetScale2d"]),u&&h?r(["toggleHover"]):d?r(["hoverClosestGl2d"]):u?r(["hoverClosestCartesian","hoverCompareCartesian"]):h&&r(["hoverClosestPie"]),a(v,n)}function o(e){for(var t=l.Axes.list({_fullLayout:e},null,!0),n=!0,r=0;r0);if(p){var h=o(t,n,s);l("x",h[0]),l("y",h[1]),i.noneOrAll(e,t,["x","y"]),l("xanchor"),l("yanchor"),i.coerceFont(l,"font",n.font),l("bgcolor"),l("bordercolor"),l("borderwidth")}}},{"../../lib":382,"./attributes":351,"./button_attributes":352,"./constants":353}],355:[function(e,t,n){"use strict";function r(e){for(var t=g.list(e,"x",!0),n=[],r=0;rt;o--)h(e,o).selectAll('[data-index="'+(o-1)+'"]').attr("data-index",o),M.draw(e,o)}function f(e,t,n,a){function s(n){var r={"data-index":t,"fill-rule":"evenodd",d:b(e,M)},o=M.line.width?M.line.color:"rgba(0,0,0,0)",i=n.append("path").attr(r).style("opacity",M.opacity).call(k.stroke,o).call(k.fill,M.fillcolor).call(S.dashLine,M.line.dash,M.line.width);O&&i.call(S.setClipUrl,"clip"+e._fullLayout._uid+O),e._context.editable&&p(e,i,M,t)}var l,u;h(e,t).selectAll('[data-index="'+t+'"]').remove();var c=e.layout.shapes[t];if(c){var f={xref:c.xref,yref:c.yref},m={};"string"==typeof n&&n?m[n]=a:C.isPlainObject(n)&&(m=n);var v=Object.keys(m);for(l=0;lK&&r>X&&!e.shiftKey?A.getCursor(o/n,1-i/r):"move";P(t,a),Y=a.split("-")[0]}function i(t){U=E.getFromId(e,n.xref),W=E.getFromId(e,n.yref),H=g(e,U),q=g(e,W,!0),V=y(e,U),G=y(e,W,!0);var i="shapes["+r+"]";"path"===n.type?(B=n.path,z=i+".path"):(c=H(n.x0),f=q(n.y0),p=H(n.x1),h=q(n.y1),d=i+".x0",m=i+".y0",_=i+".x1",w=i+".y1"),cX&&(u[O]=n[R]=G(s),u[D]=n[F]=G(l)),f-c>K&&(u[L]=n[I]=V(c),u[j]=n[N]=V(f))}t.attr("d",b(e,n))}var u,c,f,p,h,d,m,_,w,C,k,S,M,O,D,L,j,R,F,I,N,B,z,U,W,H,q,V,G,Y,K=10,X=10,Z={setCursor:o,element:t.node(),prepFn:i,doneFn:a},Q=Z.element.getBoundingClientRect();A.init(Z)}function h(e,t){var n=e._fullLayout.shapes[t],r=e._fullLayout._shapeUpperLayer;return n?"below"===n.layer&&(r="paper"===n.xref&&"paper"===n.yref?e._fullLayout._shapeLowerLayer:e._fullLayout._shapeSubplotLayer):C.log("getShapeLayer: undefined shape: index",t),r}function d(e,t,n){var r=T.Axes.getFromId(e,n.id,"x")._id,o=T.Axes.getFromId(e,n.id,"y")._id,i="below"===t.layer,a=r===t.xref||o===t.yref,s=!!n.shapelayer;return i&&a&&s}function m(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}}function v(e){return function(t){return e(t).replace(" ","_")}}function g(e,t,n){var r,i=e._fullLayout._size;if(t){var a=o(t);r=function(e){return t._offset+t.l2p(a(e,!0))},"date"===t.type&&(r=m(r))}else r=n?function(e){return i.t+i.h*(1-e)}:function(e){return i.l+i.w*e};return r}function y(e,t,n){var r,o=e._fullLayout._size;if(t){var a=i(t);r=function(e){return a(t.p2l(e-t._offset))}}else r=n?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return r}function b(e,t){var n,r,i,a,s=t.type,l=E.getFromId(e,t.xref),u=E.getFromId(e,t.yref),c=e._fullLayout._size;if(l?(n=o(l),r=function(e){return l._offset+l.l2p(n(e,!0))}):r=function(e){return c.l+c.w*e},u?(i=o(u),a=function(e){return u._offset+u.l2p(i(e,!0))}):a=function(e){return c.t+c.h*(1-e)},"path"===s)return l&&"date"===l.type&&(r=m(r)),u&&"date"===u.type&&(a=m(a)),M.convertPath(t.path,r,a);var f=r(t.x0),p=r(t.x1),h=a(t.y0),d=a(t.y1);if("line"===s)return"M"+f+","+h+"L"+p+","+d;if("rect"===s)return"M"+f+","+h+"H"+p+"V"+d+"H"+f+"Z";var v=(f+p)/2,g=(h+d)/2,y=Math.abs(v-f),b=Math.abs(g-h),x="A"+y+","+b,_=v+y+","+g,w=v+","+(g-b);return"M"+_+x+" 0 1,1 "+w+x+" 0 0,1 "+_+"Z"}function x(e,t,n){return e.replace(O,function(e){var r=0,o=e.charAt(0),i=L[o],a=j[o],s=R[o],l=e.substr(1).replace(D,function(e){return r>=s?e:(i[r]?e=t(e):a[r]&&(e=n(e)),r++,e)});return o+l})}function _(e,t,n,r,o){var i="category"===e.type?Number:e.d2c;if(void 0!==t)return[i(t),i(n)];if(r){var a,s,l,u,c,f=1/0,p=-(1/0),h=r.match(O);for("date"===e.type&&(i=m(i)),a=0;ap&&(p=c)));return p>=f?[f,p]:void 0}}var w=e("fast-isnumeric"),T=e("../../plotly"),C=e("../../lib"),E=e("../../plots/cartesian/axes"),k=e("../color"),S=e("../drawing"),A=e("../dragelement"),P=e("../../lib/setcursor"),M=t.exports={};M.layoutAttributes=e("./attributes"),M.supplyLayoutDefaults=function(e,t){for(var n=e.shapes||[],o=t.shapes=[],i=0;is&&(e="X"),e});return r>s&&(l=l.replace(/[\s,]*X.*/,""),C.log("Ignoring extra params in segment "+e)),o+l})},M.calcAutorange=function(e){var t,n,r,o,i,a=e._fullLayout,s=a.shapes;if(s.length&&e._fullData.length)for(t=0;t0||p<0){var h={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[b.side];t.attr("transform","translate("+h+")")}}}function d(){S=0,A=!0,P=O,T._infolayer.select("."+t).attr({"data-unformatted":P}).text(P).on("mouseover.opacity",function(){r.select(this).transition().duration(100).style("opacity",1)}).on("mouseout.opacity",function(){r.select(this).transition().duration(1e3).style("opacity",0)})}var m=n.propContainer,v=n.propName,g=n.traceIndex,y=n.dfltName,b=n.avoid||{},x=n.attributes,_=n.transform,w=n.containerGroup,T=e._fullLayout,C=m.titlefont.family,E=m.titlefont.size,k=m.titlefont.color,S=1,A=!1,P=m.title.trim();""===P&&(S=0),P.match(/Click to enter .+ title/)&&(S=.2,A=!0),w||(w=T._infolayer.selectAll(".g-"+t).data([0]),w.enter().append("g").classed("g-"+t,!0));var M=w.selectAll("text").data([0]);M.enter().append("text"),M.text(P).attr("class",t),M.attr({"data-unformatted":P}).call(f);var O="Click to enter "+y+" title";e._context.editable?(P||d(),M.call(c.makeEditable).on("edit",function(t){void 0!==g?i.restyle(e,v,t,g):i.relayout(e,v,t)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(f)}).on("input",function(e){this.text(e||" ").attr(x).selectAll("tspan.line").attr(x)})):P&&!P.match(/Click to enter .+ title/)||M.remove(),M.classed("js-placeholder",A)}},{"../../lib":382,"../../lib/svg_text_utils":395,"../../plotly":402,"../../plots/plots":454,"../color":303,"../drawing":326,d3:113,"fast-isnumeric":117}],367:[function(e,t,n){"use strict";t.exports={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}},{}],368:[function(e,t,n){"use strict";t.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],369:[function(e,t,n){"use strict";t.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},{}],370:[function(e,t,n){"use strict";n.xmlns="http://www.w3.org/2000/xmlns/",n.svg="http://www.w3.org/2000/svg",n.xlink="http://www.w3.org/1999/xlink",n.svgAttrs={xmlns:n.svg,"xmlns:xlink":n.xlink}},{}],371:[function(e,t,n){"use strict";var r=e("./plotly");n.version="1.14.2",n.plot=r.plot,n.newPlot=r.newPlot,n.restyle=r.restyle,n.relayout=r.relayout,n.redraw=r.redraw,n.extendTraces=r.extendTraces,n.prependTraces=r.prependTraces,n.addTraces=r.addTraces,n.deleteTraces=r.deleteTraces,n.moveTraces=r.moveTraces,n.purge=r.purge,n.setPlotConfig=e("./plot_api/set_plot_config"),n.register=r.register,n.toImage=e("./plot_api/to_image"),n.downloadImage=e("./snapshot/download"),n.Icons=e("../build/ploticon"),n.Plots=r.Plots,n.Fx=r.Fx,n.Snapshot=r.Snapshot,n.PlotSchema=r.PlotSchema,n.Queue=r.Queue,n.d3=e("d3")},{"../build/ploticon":2,"./plot_api/set_plot_config":400,"./plot_api/to_image":401,"./plotly":402,"./snapshot/download":469,d3:113}],372:[function(e,t,n){"use strict";"undefined"!=typeof MathJax?(n.MathJax=!0,MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured()):n.MathJax=!1},{}], +373:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){Array.isArray(e)&&(t[n]=e[r])}},{}],374:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("tinycolor2"),i=e("./nested_property"),a=e("../components/colorscale/get_scale"),s=(Object.keys(e("../components/colorscale/scales")),/^([2-9]|[1-9][0-9]+)$/);n.valObjects={data_array:{coerceFunction:function(e,t,n){Array.isArray(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),r.values.indexOf(e)===-1?t.set(n):t.set(e)}},"boolean":{coerceFunction:function(e,t,n){e===!0||e===!1?t.set(e):t.set(n)}},number:{coerceFunction:function(e,t,n,o){!r(e)||void 0!==o.min&&eo.max?t.set(n):t.set(+e)}},integer:{coerceFunction:function(e,t,n,o){e%1||!r(e)||void 0!==o.min&&eo.max?t.set(n):t.set(+e)}},string:{coerceFunction:function(e,t,n,r){if(r.strict===!0&&"string"!=typeof e)return void t.set(n);var o=String(e);void 0===e||r.noBlank===!0&&!o?t.set(n):t.set(o)}},color:{coerceFunction:function(e,t,n){o(e).isValid()?t.set(e):t.set(n)}},colorscale:{coerceFunction:function(e,t,n){t.set(a(e,n))}},angle:{coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{coerceFunction:function(e,t,n){var r=n.length;return"string"==typeof e&&e.substr(0,r)===n&&s.test(e.substr(r))?void t.set(e):void t.set(n)}},flaglist:{coerceFunction:function(e,t,n,r){if("string"!=typeof e)return void t.set(n);if((r.extras||[]).indexOf(e)!==-1)return void t.set(e);for(var o=e.split("+"),i=0;i2)return!1;var l=a[0].split("-");if(l.length>3||3!==l.length&&a[1])return!1;if(4===l[0].length)n=Number(l[0]);else{if(2!==l[0].length)return!1;var u=(new Date).getFullYear();n=((Number(l[0])-u+70)%100+200)%100+u-70}return!!s(n)&&(1===l.length?new Date(n,0,1).getTime():(r=Number(l[1])-1,!(l[1].length>2)&&r>=0&&r<=11&&(2===l.length?new Date(n,r,1).getTime():(o=Number(l[2]),!(l[2].length>2)&&o>=1&&o<=31&&(o=new Date(n,r,o).getTime(),a[1]?(l=a[1].split(":"),!(l.length>3)&&(i=Number(l[0]),!(l[0].length>2)&&i>=0&&i<=23&&(o+=36e5*i,1===l.length?o:(r=Number(l[1]),!(l[1].length>2)&&r>=0&&r<=59&&(o+=6e4*r,2===l.length?o:(e=Number(l[2]),e>=0&&e<60&&o+1e3*e)))))):o)))))},n.isDateTime=function(e){return n.dateTime2ms(e)!==!1},n.ms2DateTime=function(e,t){if("undefined"==typeof a)return void l.error("d3 is not defined.");t||(t=0);var n=new Date(e),o=a.time.format("%Y-%m-%d")(n);return t<7776e6?(o+=" "+r(n.getHours(),2),t<432e6&&(o+=":"+r(n.getMinutes(),2),t<108e5&&(o+=":"+r(n.getSeconds(),2),t<3e5&&(o+="."+r(n.getMilliseconds(),3)))),o.replace(/([:\s]00)*\.?[0]*$/,"")):o};var u={H:["%H:%M:%S~%L","%H:%M:%S","%H:%M"],I:["%I:%M:%S~%L%p","%I:%M:%S%p","%I:%M%p"],D:["%H","%I%p","%Hh"]},c={Y:["%Y~%m~%d","%Y%m%d","%y%m%d","%m~%d~%Y","%d~%m~%Y"],Yb:["%b~%d~%Y","%d~%b~%Y","%Y~%d~%b","%Y~%b~%d"],y:["%m~%d~%y","%d~%m~%y","%y~%m~%d"],yb:["%b~%d~%y","%d~%b~%y","%y~%d~%b","%y~%b~%d"]},f=a.time.format.utc,p={Y:{H:["%Y~%m~%dT%H:%M:%S","%Y~%m~%dT%H:%M:%S~%L"].map(f),I:[],D:["%Y%m%d%H%M%S","%Y~%m","%m~%Y"].map(f)},Yb:{H:[],I:[],D:["%Y~%b","%b~%Y"].map(f)},y:{H:[],I:[],D:[]},yb:{H:[],I:[],D:[]}};["Y","Yb","y","yb"].forEach(function(e){c[e].forEach(function(t){p[e].D.push(f(t)),["H","I","D"].forEach(function(n){u[n].forEach(function(r){var o=p[e][n];o.push(f(t+"~"+r)),o.push(f(r+"~"+t))})})})});var h=/[a-z]*/g,d=function(e){return e.substr(0,3)},m=/(mon|tue|wed|thu|fri|sat|sun|the|of|st|nd|rd|th)/g,v=/[\s,\/\-\.\(\)]+/g,g=/~?([ap])~?m(~|$)/,y=function(e,t){return t+"m "},b=/\d\d\d\d/,x=/(^|~)[a-z]{3}/,_=/[ap]m/,w=/:/,T=/q([1-4])/,C=["31~mar","30~jun","30~sep","31~dec"],E=function(e,t){return C[t-1]},k=/ ?([+\-]\d\d:?\d\d|Z)$/;n.parseDate=function(e){if(e.getTime)return e;if("string"!=typeof e)return!1;e=e.toLowerCase().replace(h,d).replace(m,"").replace(v,"~").replace(g,y).replace(T,E).trim().replace(k,"");var t,n,r=null,a=o(e),s=i(e);t=p[a][s],n=t.length;for(var l=0;l",t))>=0;){var n=e.indexOf("",t);if(n/g,"\n")}function i(e){return e.replace(/\<.*\>/g,"")}function a(e){for(var t=0;(t=e.indexOf("&",t))>=0;){var n=e.indexOf(";",t);if(n"};t.exports=s},{"superscript-text":263}],382:[function(e,t,n){"use strict";var r=e("d3"),o=t.exports={};o.nestedProperty=e("./nested_property"),o.isPlainObject=e("./is_plain_object");var i=e("./coerce");o.valObjects=i.valObjects,o.coerce=i.coerce,o.coerce2=i.coerce2,o.coerceFont=i.coerceFont;var a=e("./dates");o.dateTime2ms=a.dateTime2ms,o.isDateTime=a.isDateTime,o.ms2DateTime=a.ms2DateTime,o.parseDate=a.parseDate;var s=e("./search");o.findBin=s.findBin,o.sorterAsc=s.sorterAsc,o.sorterDes=s.sorterDes,o.distinctVals=s.distinctVals,o.roundUp=s.roundUp;var l=e("./stats");o.aggNums=l.aggNums,o.len=l.len,o.mean=l.mean,o.variance=l.variance,o.stdev=l.stdev,o.interp=l.interp;var u=e("./matrix");o.init2dArray=u.init2dArray,o.transposeRagged=u.transposeRagged,o.dot=u.dot,o.translationMatrix=u.translationMatrix,o.rotationMatrix=u.rotationMatrix,o.rotationXYMatrix=u.rotationXYMatrix,o.apply2DTransform=u.apply2DTransform,o.apply2DTransform2=u.apply2DTransform2;var c=e("./extend");o.extendFlat=c.extendFlat,o.extendDeep=c.extendDeep,o.extendDeepAll=c.extendDeepAll;var f=e("./loggers");o.log=f.log,o.warn=f.warn,o.error=f.error,o.notifier=e("./notifier"),o.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var i=0;in?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},o.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},o.identity=function(e){return e},o.randstr=function p(e,t,n){if(n||(n=16),void 0===t&&(t=24),t<=0)return"0";var r,o,i,a=Math.log(Math.pow(2,t))/Math.log(n),s="";for(r=2;a===1/0;r*=2)a=Math.log(Math.pow(2,t/r))/Math.log(n)*r;var l=a-Math.floor(a);for(r=0;r-1||u!==1/0&&u>=Math.pow(2,t)?p(e,t,n):s},o.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={};return n.optionList=[],n._newoption=function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)},n["_"+t]=e,n},o.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var n,r,o,i,a=e.length,s=2*a,l=2*t-1,u=new Array(l),c=new Array(a);for(n=0;n=s&&(o-=s*Math.floor(o/s)),o<0?o=-1-o:o>=a&&(o=s-1-o),i+=e[o]*u[r];c[n]=i}return c},o.syncOrAsync=function(e,t,n){function r(){return o.syncOrAsync(e,t,n)}for(var i,a;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(r).then(void 0,o.promiseError);return n&&n(t)},o.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},o.noneOrAll=function(e,t,n){if(e){var r,o,i=!1,a=!0;for(r=0;r1?r+i[1]:"";if(o&&(i.length>1||a.length>4))for(;n.test(a);)a=a.replace(n,"$1"+o+"$2");return a+s}},{"./coerce":374,"./dates":375,"./extend":377,"./is_plain_object":383,"./loggers":384,"./matrix":385,"./nested_property":386,"./notifier":387,"./search":390,"./stats":393,d3:113}],383:[function(e,t,n){"use strict";t.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},{}],384:[function(e,t,n){"use strict";var r=e("../plot_api/plot_config"),o=t.exports={};o.log=function(){if(r.logging>1){for(var e=["LOG:"],t=0;t0){for(var e=["WARN:"],t=0;t0){for(var e=["ERROR:"],t=0;t=0;t--){if(r=e[t],a=!1,Array.isArray(r))for(n=r.length-1;n>=0;n--)u(r[n])?a?r[n]=void 0:r.pop():a=!0;else if("object"==typeof r&&null!==r)for(i=Object.keys(r),a=!1,n=i.length-1;n>=0;n--)u(r[i[n]])&&!o(r[i[n]],i[n])?delete r[i[n]]:a=!0;if(a)return}}function u(e){return void 0===e||null===e||"object"==typeof e&&(Array.isArray(e)?!e.length:!Object.keys(e).length)}function c(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}var f=e("fast-isnumeric");t.exports=function(e,t){if(f(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,o,a,s=0,l=t.split(".");si||rs)&&(!t||!u(e))}function n(e,t){var n=e[0],l=e[1];if(ni||ls)return!1;var u,c,f,p,h,d=r.length,m=r[0][0],v=r[0][1],g=0;for(u=1;uMath.max(c,m)||l>Math.max(f,v)))if(lc||Math.abs(r(a,p))>o)return!0;return!1};o.filter=function(e,t){function n(n){e.push(n);var s=r.length,l=o;r.splice(a+1);for(var u=l+1;u1){var s=e.pop();n(s)}return{addPt:n,raw:e,filtered:r}}},{"./matrix":385}],389:[function(e,t,n){"use strict";function r(e,t){for(var n,r=[],i=0;i=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;nt}function a(e,t){return e>=t}var s=e("fast-isnumeric"),l=e("../lib");n.findBin=function(e,t,n){if(s(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var u,c,f=0,p=t.length,h=0;for(c=t[t.length-1]>=t[0]?n?r:o:n?a:i;f90&&l.log("Long binary search..."),f-1},n.sorterAsc=function(e,t){return e-t},n.sorterDes=function(e,t){return t-e},n.distinctVals=function(e){var t=e.slice();t.sort(n.sorterAsc);for(var r=t.length-1,o=t[r]-t[0]||1,i=o/(r||1)/1e4,a=[t[0]],s=0;st[s]+i&&(o=Math.min(o,t[s+1]-t[s]),a.push(t[s+1]));return{vals:a,minDiff:o}},n.roundUp=function(e,t,n){for(var r,o=0,i=t.length-1,a=0,s=n?0:1,l=n?1:0,u=n?Math.ceil:Math.floor;oe.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},{"fast-isnumeric":117}],394:[function(e,t,n){"use strict";function r(e){return e=o(e),i.str2RgbaArray(e.toRgbString())}var o=e("tinycolor2"),i=e("arraytools");t.exports=r},{arraytools:49,tinycolor2:274}],395:[function(e,t,n){"use strict";function r(e,t){return e.node().getBoundingClientRect()[t]}function o(e){return e.replace(/(<|<|<)/g,"\\lt ").replace(/(>|>|>)/g,"\\gt ")}function i(e,t,n){var r="math-output-"+l.Lib.randstr([],64),i=u.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(o(e));MathJax.Hub.Queue(["Typeset",MathJax.Hub,i.node()],function(){var t=u.select("body").select("#MathJax_SVG_glyphs");if(i.select(".MathJax_SVG").empty()||!i.select("svg").node())c.log("There was an error in the tex syntax.",e),n();else{var r=i.select("svg").node().getBoundingClientRect();n(i.select(".MathJax_SVG"),t,r)}i.remove()})}function a(e){for(var t=l.util.html_entity_decode(e),n=t.split(/(<[^<>]*>)/).map(function(e){var t=e.match(/<(\/?)([^ >]*)\s*(.*)>/i),n=t&&t[2].toLowerCase(),r=h[n];if(void 0!==r){var o=t[1],i=t[3],a=i.match(/^style\s*=\s*"([^"]+)"\s*/i);if("a"===n){if(o)return"";if("href"!==i.substr(0,4).toLowerCase())return"";var s=document.createElement("a");return s.href=i.substr(4).replace(/["'=]/g,""),d.indexOf(s.protocol)===-1?"":'"}if("br"===n)return"
";if(o)return"sup"===n?'':"sub"===n?'':"";var u=""}return l.util.xml_entity_encode(e).replace(/");o>0;o=n.indexOf("
",o+1))r.push(o);var i=0;r.forEach(function(e){for(var t=e+i,r=n.slice(0,t),o="",a=r.length-1;a>=0;a--){var s=r[a].match(/<(\/?).*>/i);if(s&&"
"!==r[a]){s[1]||(o=r[a]);break}}o&&(n.splice(t+1,0,o),n.splice(t,0,""),i+=2)});var a=n.join(""),s=a.split(/
/gi);return s.length>1&&(n=s.map(function(e,t){return''+e+""})),n.join("")}function s(e,t,n){var r,o,i,a=n.horizontalAlign,s=n.verticalAlign||"top",l=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return o="bottom"===s?function(){return l.bottom-r.height}:"middle"===s?function(){return l.top+(l.height-r.height)/2}:function(){return l.top},i="right"===a?function(){return l.right-r.width}:"center"===a?function(){return l.left+(l.width-r.width)/2}:function(){return l.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:o()-u.top+"px",left:i()-u.left+"px","z-index":1e3}),this}}var l=e("../plotly"),u=e("d3"),c=e("../lib"),f=e("../constants/xmlns_namespaces"),p=t.exports={};u.selection.prototype.appendSVG=function(e){for(var t=['',e,""].join(""),n=(new DOMParser).parseFromString(t,"application/xml"),r=n.documentElement.firstChild;r;)this.node().appendChild(this.node().ownerDocument.importNode(r,!0)),r=r.nextSibling;return n.querySelector("parsererror")?(c.log(n.querySelector("parsererror div").textContent),null):u.select(this.node().lastChild)},p.html_entity_decode=function(e){var t=u.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,function(e){return"<"===e?"<":"&rt;"===e?">":t.html(e).text()});return t.remove(),n},p.xml_entity_encode=function(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")},p.convertToTspans=function(e,t){function n(){h.empty()||(d=c.attr("class")+"-math",h.select("svg."+d).remove()),e.text("").style({visibility:"visible","white-space":"pre"}),p=e.appendSVG(s),p||e.text(o),e.select("a").size()&&e.style("pointer-events","all"),t&&t.call(c)}var o=e.text(),s=a(o),c=e,f=!c.attr("data-notex")&&s.match(/([^$]*)([$]+[^$]*[$]+)([^$]*)/),p=o,h=u.select(c.node().parentNode);if(!h.empty()){var d=c.attr("class")?c.attr("class").split(" ")[0]:"text";d+="-math",h.selectAll("svg."+d).remove(),h.selectAll("g."+d+"-group").remove(),e.style({visibility:null});for(var m=e.node();m&&m.removeAttribute;m=m.parentNode)m.removeAttribute("data-bb");if(f){var v=l.Lib.getPlotDiv(c.node());(v&&v._promises||[]).push(new Promise(function(e){c.style({visibility:"hidden"});var o={fontSize:parseInt(c.style("font-size"),10)};i(f[2],o,function(o,i,a){h.selectAll("svg."+d).remove(),h.selectAll("g."+d+"-group").remove();var s=o&&o.select("svg");if(!s||!s.node())return n(),void e();var l=h.append("g").classed(d+"-group",!0).attr({"pointer-events":"none"});l.node().appendChild(s.node()),i&&i.node()&&s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({"class":d,height:a.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=c.style("fill")||"black";s.select("g").attr({fill:u,stroke:u});var f=r(s,"width"),p=r(s,"height"),m=+c.attr("x")-f*{start:0,middle:.5,end:1}[c.attr("text-anchor")||"start"],v=parseInt(c.style("font-size"),10)||r(c,"height"),g=-v/4;"y"===d[0]?(l.attr({transform:"rotate("+[-90,+c.attr("x"),+c.attr("y")]+") translate("+[-f/2,g-p/2]+")"}),s.attr({x:+c.attr("x"),y:+c.attr("y")})):"l"===d[0]?s.attr({x:c.attr("x"),y:g-p/2}):"a"===d[0]?s.attr({x:0,y:g}):s.attr({x:m,y:+c.attr("y")+g-p/2}),t&&t.call(c,l),e(l)})}))}else n();return e}};var h={sup:'font-size:70%" dy="-0.6em',sub:'font-size:70%" dy="0.3em',b:"font-weight:bold",i:"font-style:italic",a:"",span:"",br:"",em:"font-style:italic;font-weight:bold"},d=["http:","https:","mailto:"],m=new RegExp("]*)?/?>","g");p.plainText=function(e){ +return(e||"").replace(m," ")},p.makeEditable=function(e,t,n){function r(){i(),a.style({opacity:0});var e,t=p.attr("class");e=t?"."+t.split(" ")[0]+"-math-group":"[class*=-math-group]",e&&u.select(a.node().parentNode).select(e).style({opacity:0})}function o(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}function i(){var e=u.select(l.Lib.getPlotDiv(a.node())),t=e.select(".svg-container"),r=t.append("div");r.classed("plugin-editable editable",!0).style({position:"absolute","font-family":a.style("font-family")||"Arial","font-size":a.style("font-size")||12,color:n.fill||a.style("fill")||"black",opacity:1,"background-color":n.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(a.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(n.text||a.attr("data-unformatted")).call(s(a,t,n)).on("blur",function(){a.text(this.textContent).style({opacity:1});var e,t=u.select(this).attr("class");e=t?"."+t.split(" ")[0]+"-math-group":"[class*=-math-group]",e&&u.select(a.node().parentNode).select(e).style({opacity:0});var n=this.textContent;u.select(this).transition().duration(0).remove(),u.select(document).on("mouseup",null),c.edit.call(a,n)}).on("focus",function(){var e=this;u.select(document).on("mouseup",function(){return u.event.target!==e&&void(document.activeElement===r.node()&&r.node().blur())})}).on("keyup",function(){27===u.event.which?(a.style({opacity:1}),u.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),c.cancel.call(a,this.textContent)):(c.input.call(a,this.textContent),u.select(this).call(s(a,t,n)))}).on("keydown",function(){13===u.event.which&&this.blur()}).call(o)}n||(n={});var a=this,c=u.dispatch("edit","input","cancel"),f=u.select(this.node()).style({"pointer-events":"all"}),p=t||f;return t&&f.style({"pointer-events":"none"}),n.immediate?r():p.on("click",r),u.rebind(this,c,"on")}},{"../constants/xmlns_namespaces":370,"../lib":382,"../plotly":402,d3:113}],396:[function(e,t,n){"use strict";var r=t.exports={},o=e("../plots/geo/constants").locationmodeToLayer,i=e("topojson").feature;r.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},r.getTopojsonPath=function(e,t){return e+t+".json"},r.getTopojsonFeatures=function(e,t){var n=o[e.locationmode],r=t.objects[n];return i(t,r).features}},{"../plots/geo/constants":424,topojson:275}],397:[function(e,t,n){"use strict";function r(e){var t;if("string"==typeof e){if(t=document.getElementById(e),null===t)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e}function o(e,t){e._fullLayout._paperdiv.style("background","white"),D.defaultConfig.setBackground(e,t)}function i(e,t){e._context||(e._context=L.extendFlat({},D.defaultConfig));var n=e._context;t&&(Object.keys(t).forEach(function(e){e in n&&("setBackground"===e&&"opaque"===t[e]?n[e]=o:n[e]=t[e])}),t.plot3dPixelRatio&&!n.plotGlPixelRatio&&(n.plotGlPixelRatio=n.plot3dPixelRatio)),n.staticPlot&&(n.editable=!1,n.autosizable=!1,n.scrollZoom=!1,n.doubleClick=!1,n.showTips=!1,n.showLink=!1,n.displayModeBar=!1)}function a(e,t,n){var r=P.select(e).selectAll(".plot-container").data([0]);r.enter().insert("div",":first-child").classed("plot-container plotly",!0);var o=r.selectAll(".svg-container").data([0]);o.enter().append("div").classed("svg-container",!0).style("position","relative"),o.html(""),t&&(e.data=t),n&&(e.layout=n),D.micropolar.manager.fillLayout(e),"initial"===e._fullLayout.autosize&&e._context.autosizable&&(w(e,{}),e._fullLayout.autosize=n.autosize=!0),o.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=D.micropolar.manager.framework(e),e.framework({data:e.data,layout:e.layout},o.node()),e.framework.setUndoPoint();var i=e.framework.svg(),a=1,s=e._fullLayout.title;""!==s&&s||(a=0);var l="Click to enter title",u=function(){this.call(D.util.convertToTspans)},c=i.select(".title-group text").call(u);if(e._context.editable){c.attr({"data-unformatted":s}),s&&s!==l||(a=.2,c.attr({"data-unformatted":l}).text(l).style({opacity:a}).on("mouseover.opacity",function(){P.select(this).transition().duration(100).style("opacity",1)}).on("mouseout.opacity",function(){P.select(this).transition().duration(1e3).style("opacity",0)}));var f=function(){this.call(D.util.makeEditable).on("edit",function(t){e.framework({layout:{title:t}}),this.attr({"data-unformatted":t}).text(t).call(u),this.call(f)}).on("cancel",function(){var e=this.attr("data-unformatted");this.text(e).call(u)})};c.call(f)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),F.addLinks(e),Promise.resolve()}function s(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=D.Axes.list({_fullLayout:e});for(t=0;t3?(c.x=1.02,c.xanchor="left"):c.x<-2&&(c.x=-.02,c.xanchor="right"),c.y>3?(c.y=1.02,c.yanchor="bottom"):c.y<-2&&(c.y=-.02,c.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var p=F.getSubplotIds(e,"gl3d");for(t=0;t=e.data.length||o<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(o,r+1)>-1||o>=0&&t.indexOf(-e.data.length+o)>-1||o<0&&t.indexOf(e.data.length+o)>-1)throw new Error("each index in "+n+" must be unique.")}}function m(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"==typeof t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),d(e,t,"currentIndices"),"undefined"==typeof n||Array.isArray(n)||(n=[n]),"undefined"!=typeof n&&d(e,n,"newIndices"),"undefined"!=typeof n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function v(e,t,n){var r,o;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"==typeof t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r=0&&l0){var s=_(e._boundingBoxMargins),l=s.left+s.right,u=s.bottom+s.top,c=i._container.node().getBoundingClientRect(),f=1-2*a.frameMargins;o=Math.round(f*(c.width-l)),r=Math.round(f*(c.height-u))}else n=window.getComputedStyle(e),r=parseFloat(n.height)||i.height,o=parseFloat(n.width)||i.width;return Math.abs(i.width-o)>1||Math.abs(i.height-r)>1?(i.height=e.layout.height=r,i.width=e.layout.width=o):"initial"!==i.autosize&&(delete t.autosize,i.autosize=e.layout.autosize=!0),F.sanitizeMargins(i),t}function T(e){var t=P.select(e),n=e._fullLayout;if(n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("svg-container",!0).style("position","relative"),"initial"===n.autosize&&(w(e,{}),n.autosize=!0,e.layout.autosize=!0),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([0]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._geocontainer=n._paperdiv.selectAll(".geo-container").data([0]),n._geocontainer.enter().append("div").classed("geo-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var r=[];P.selectAll("defs").each(function(){this.id&&r.push(this.id.split("-")[1])}),n._uid=L.randstr(r)}n._paperdiv.selectAll(".main-svg").attr(K.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._draggers=n._paper.append("g").classed("draglayer",!0);var o=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=o.append("g").classed("imagelayer",!0),n._shapeLowerLayer=o.append("g").classed("shapelayer",!0);var i=D.Axes.getSubplots(e);i.join("")!==Object.keys(e._fullLayout._plots||{}).join("")&&C(e,i),n._has("cartesian")&&E(e,i),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0);var a=n._paper.selectAll(".layer-subplot");n._imageSubplotLayer=a.selectAll(".imagelayer"),n._shapeSubplotLayer=a.selectAll(".shapelayer");var s=n._paper.append("g").classed("layer-above",!0);n._imageUpperLayer=s.append("g").classed("imagelayer",!0),n._shapeUpperLayer=s.append("g").classed("shapelayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0),n._geoimages=n._paper.append("g").classed("geoimages",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._toppaper.append("g").classed("hoverlayer",!0),e.emit("plotly_framework");var l=L.syncOrAsync([k,function(){return D.Axes.doTicks(e,"redraw")},I.init],e);return l&&l.then&&e._promises.push(l),l}function C(e,t){function n(t,n){return function(){return D.Axes.getFromId(e,t,n)}}for(var r,o,i=e._fullLayout._plots={},a=0;a0,_=D.Axes.getSubplots(e).join(""),w=Object.keys(e._fullLayout._plots||{}).join(""),C=w===_;x?e.framework===T&&!b&&C||(e.framework=T,T(e)):C?b&&T(e):(e.framework=T,T(e)),b&&D.Axes.saveRangeInitial(e);var E=e._fullLayout,S=!e.calcdata||e.calcdata.length!==(e.data||[]).length;S&&p(e);for(var A=0;AG.range[0]?[1,2]:[2,1]);else{var K=G.range[0],X=G.range[1];"log"===j?(K<=0&&X<=0&&o(H+".autorange",!0),K<=0?K=X/1e6:X<=0&&(X=K/1e6),o(H+".range[0]",Math.log(K)/Math.LN10),o(H+".range[1]",Math.log(X)/Math.LN10)):(o(H+".range[0]",Math.pow(10,K)),o(H+".range[1]",Math.pow(10,X)))}else o(H+".autorange",!0)}if("reverse"===B)q.range?q.range.reverse():(o(H+".autorange",!0),q.range=[1,0]),V.autorange?_=!0:x=!0;else if("annotations"===O.parts[0]||"shapes"===O.parts[0]){var Z=O.parts[1],Q=O.parts[0],J=d[Q]||[],$=D[L.titleCase(Q)],ee=J[Z]||{};2===O.parts.length&&("add"===v[M]||L.isPlainObject(v[M])?S[M]="remove":"remove"===v[M]?Z===-1?(S[Q]=J,delete S[M]):S[M]=ee:L.log("???",v)),!i(ee,"x")&&!i(ee,"y")||L.containsAny(M,["color","opacity","align","dash"])||(_=!0),$.draw(e,Z,O.parts.slice(2).join("."),v[M]),delete v[M]}else if("images"===O.parts[0]){var ne=L.objectFromPath(M,j);L.extendDeepAll(e.layout,ne),U.supplyLayoutDefaults(e.layout,e._fullLayout),U.draw(e)}else if("mapbox"===O.parts[0]&&"layers"===O.parts[1]){L.extendDeepAll(e.layout,L.objectFromPath(M,j));var re=(e._fullLayout.mapbox||{}).layers||[],oe=O.parts[2]+1-re.length;for(h=0;h1&&L.containsAny(O.parts[1],["tick","exponent","grid","zeroline"])?y=!0:M.indexOf(".linewidth")!==-1&&M.indexOf("axis")!==-1?y=b=!0:O.parts.length>1&&O.parts[1].indexOf("line")!==-1?b=!0:O.parts.length>1&&"mirror"===O.parts[1]?y=b=!0:"margin.pad"===M?y=b=!0:"margin"===O.parts[0]||"autorange"===O.parts[1]||"rangemode"===O.parts[1]||"type"===O.parts[1]||"domain"===O.parts[1]||M.match(/^(bar|box|font)/)?_=!0:["hovermode","dragmode"].indexOf(M)!==-1?T=!0:["hovermode","dragmode","height","width","autosize"].indexOf(M)===-1&&(x=!0):x=!0,O.set(j)}R&&R.add(e,te,[e,S],te,[e,E]),v.autosize&&(v=w(e,v)),(v.height||v.width||v.autosize)&&(_=!0);var ie=Object.keys(v),ae=[F.previousPromises];if(x||_)ae.push(function(){return e.layout=void 0,_&&(e.calcdata=void 0),D.plot(e,"",d)});else if(ie.length&&(F.supplyDefaults(e),m=e._fullLayout,g&&ae.push(function(){return W.draw(e),F.previousPromises(e)}),b&&ae.push(k),y&&ae.push(function(){return D.Axes.doTicks(e,"redraw"),A(e),F.previousPromises(e)}),T)){var se;for(Y(e),D.Fx.supplyLayoutDefaults(e.layout,m,e._fullData),D.Fx.init(e),se=F.getSubplotIds(m,"gl3d"),h=0;h1)};u(n.width)&&u(n.height)||s(new Error("Height and width should be pixel values."));var c=r.clone(t,{format:"png",height:n.height,width:n.width}),f=c.td;f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var p=r.getRedrawFunc(f);i.plot(f,c.data,c.layout,c.config).then(p).then(l).then(function(t){e(t)})["catch"](function(e){s(e)})});return s}var o=e("fast-isnumeric"),i=e("../plotly"),a=e("../lib");t.exports=r},{"../lib":382,"../plotly":402,"../snapshot":471,"fast-isnumeric":117}],402:[function(e,t,n){"use strict";e("es6-promise").polyfill(),n.Lib=e("./lib"),n.util=e("./lib/svg_text_utils"),n.Queue=e("./lib/queue"),e("../build/plotcss"),n.MathJaxConfig=e("./fonts/mathjax_config"),n.defaultConfig=e("./plot_api/plot_config");var r=n.Plots=e("./plots/plots");n.Axes=e("./plots/cartesian/axes"),n.Fx=e("./plots/cartesian/graph_interact"),n.micropolar=e("./plots/polar/micropolar"),n.Color=e("./components/color"),n.Drawing=e("./components/drawing"),n.Colorscale=e("./components/colorscale"),n.Colorbar=e("./components/colorbar"),n.ErrorBars=e("./components/errorbars"),n.Annotations=e("./components/annotations"),n.Shapes=e("./components/shapes"),n.Legend=e("./components/legend"),n.Images=e("./components/images"),n.ModeBar=e("./components/modebar"),n.register=function(e){if(!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var t=0;tu&&t=864e5?e._tickround="d":n>=36e5?e._tickround="H":n>=6e4?e._tickround="M":n>=1e3?e._tickround="S":e._tickround=3-Math.round(Math.log(n/2)/Math.LN10);else{b(n)||(n=Number(n.substr(1))),e._tickround=2-Math.floor(Math.log(n)/Math.LN10+.01),t="log"===e.type?Math.pow(10,Math.max(e.range[0],e.range[1])):Math.max(Math.abs(e.range[0]),Math.abs(e.range[1]));var r=Math.floor(Math.log(t)/Math.LN10+.01);Math.abs(r)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((r-1)/3):e._tickexponent=r)}else"M"===n.charAt(0)?e._tickround=2===n.length?"m":"y":e._tickround=null}function a(e,t){var n=e.match(U),r=new Date(t);if(n){var o=Math.min(+n[1]||6,6),i=String(t/1e3%1+2.0000005).substr(2,o).replace(/0+$/,"")||"0";return y.time.format(e.replace(U,i))(r)}return y.time.format(e)(r)}function s(e,t,n){var r=e.tickfont||e._gd._fullLayout.font;return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}function l(e,t,n,r){var o,i=t.x,s=e._tickround,l=new Date(i),u="";n&&e.hoverformat?o=a(e.hoverformat,i):e.tickformat?o=a(e.tickformat,i):(r&&(b(s)?s+=2:s={y:"m",m:"d",d:"H",H:"M",M:"S",S:2}[s]),"y"===s?o=R(l):"m"===s?o=F(l):(i!==e._tmin||n||(u="
"+R(l)),"d"===s?o=I(l):"H"===s?o=N(l):(i!==e._tmin||n||(u="
"+I(l)+", "+R(l)),o=B(l),"M"!==s&&(o+=z(l),"S"!==s&&(o+=p(g(i/1e3,1),e,"none",n).substr(1)))))),t.text=o+u}function u(e,t,n,r,o){var i=e.dtick,a=t.x;if(!r||"string"==typeof i&&"L"===i.charAt(0)||(i="L3"),e.tickformat||"string"==typeof i&&"L"===i.charAt(0))t.text=p(Math.pow(10,a),e,o,r);else if(b(i)||"D"===i.charAt(0)&&g(a+.01,1)<.1)if(["e","E","power"].indexOf(e.exponentformat)!==-1){var s=Math.round(a);0===s?t.text=1:1===s?t.text="10":s>1?t.text="10"+s+"":t.text="10−"+-s+"",t.fontSize*=1.25}else t.text=p(Math.pow(10,a),e,"","fakehover"),"D1"===i&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==i.charAt(0))throw"unrecognized dtick "+String(i);t.text=String(Math.round(Math.pow(10,g(a,1)))),t.fontSize*=.75}if("D1"===e.dtick){var l=String(t.text).charAt(0);"0"!==l&&"1"!==l||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(a<0?.5:.25)))}}function c(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}function f(e,t,n,r,o){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(o="hide"),t.text=p(t.x,e,o,r)}function p(e,t,n,r){var o=e<0,a=t._tickround,s=n||t.exponentformat||"B",l=t._tickexponent,u=t.tickformat;if(r){var c={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:b(e)?Math.abs(e)||1:1,range:"none"===t.showexponent?t.range:[0,e||1]};i(c),a=(Number(c._tickround)||0)+4,l=c._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return y.format(u)(e).replace(/-/g,"−");var f=Math.pow(10,-a)/2;if("none"===s&&(l=0),e=Math.abs(e),e12||l<-15)?e+="e"+d:"E"===s?e+="E"+d:"power"===s?e+="×10"+d+"":"B"===s&&9===l?e+="B":"SI"!==s&&"B"!==s||(e+=W[l/3+5])}return o?"−"+e:e}function h(e,t){var n,r,o=[];for(n=0;n1)for(r=1;r2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},k.getAutoRange=function(e){var t,n=[],r=e._min[0].val,o=e._max[0].val;for(t=1;t0&&c>0&&f/c>p&&(l=a,u=s,p=f/c);return r===o?n=h?[r+1,"normal"!==e.rangemode?0:r-1]:["normal"!==e.rangemode?0:r-1,r+1]:p&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode&&l.val>=0?l={val:0,pad:0}:"nonnegative"===e.rangemode&&(l.val-p*l.pad<0&&(l={val:0,pad:0}),u.val<0&&(u={val:1,pad:0})),p=(u.val-l.val)/(e._length-l.pad-u.pad)),n=[l.val-p*l.pad,u.val+p*u.pad],n[0]===n[1]&&(n=[n[0]-1,n[0]+1]),h&&n.reverse()),n},k.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=k.getAutoRange(e);var n=e._gd.layout[e._name];n||(e._gd.layout[e._name]=n={}),n!==e&&(n.range=e.range.slice(),n.autorange=e.autorange)}},k.saveRangeInitial=function(e,t){for(var n=k.list(e,"",!0),r=!1,o=0;o=p?h=!1:s.val>=u&&s.pad<=p&&(e._min.splice(a,1),a--);h&&e._min.push({val:u,pad:y&&0===u?0:p})}if(r(c)){for(h=!0,a=0;a=c&&s.pad>=f?h=!1:s.val<=c&&s.pad<=f&&(e._max.splice(a,1),a--);h&&e._max.push({val:c,pad:y&&0===c?0:f})}}}if((e.autorange||e._needsExpand)&&t){e._min||(e._min=[]),e._max||(e._max=[]),n||(n={}),e._m||e.setScale();var i,a,s,l,u,c,f,p,h,d,m,v=t.length,g=n.padded?.05*e._length:0,y=n.tozero&&("linear"===e.type||"-"===e.type),x=r((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),_=r((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),w=r(n.vpadplus||n.vpad),T=r(n.vpadminus||n.vpad);for(i=0;i<6;i++)o(i);for(i=v-1;i>5;i--)o(i)}},k.autoBin=function(e,t,n,r){function o(e){return(1+100*(e-h)/f.dtick)%100<2}var i=_.aggNums(Math.min,null,e),a=_.aggNums(Math.max,null,e);if("category"===t.type)return{start:i-.5,end:a+.5,size:1};var s;if(n)s=(a-i)/n;else{var l=_.distinctVals(e),u=Math.pow(10,Math.floor(Math.log(l.minDiff)/Math.LN10)),c=u*_.roundUp(l.minDiff/u,[.9,1.9,4.9,9.9],!0);s=Math.max(c,2*_.stdev(e)/Math.pow(e.length,r?.25:.4))}var f={type:"log"===t.type?"linear":t.type,range:[i,a]};k.autoTicks(f,s);var p,h=k.tickIncrement(k.tickFirst(f),f.dtick,"reverse");if("number"==typeof f.dtick){for(var d=0,m=0,v=0,g=0,y=0;y.3*x||o(i)||o(a))){var w=f.dtick/2;h+=h+w0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e._forceTick0)}e.tick0||(e.tick0="date"===e.type?new Date(2e3,0,1).getTime():0),i(e),e._tmin=k.tickFirst(e);var o=e.range[1]=s:l<=s)&&(a.push(l),!(a.length>1e3));l=k.tickIncrement(l,e.dtick,o));e._tmax=a[a.length-1];for(var u=new Array(a.length),c=0;c157788e5?(t/=315576e5,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*o(t,n,P)):t>12096e5?(t/=26298e5,e.dtick="M"+o(t,1,M)):t>432e5?(e.dtick=o(t,864e5,D),e.tick0=new Date(2e3,0,2).getTime()):t>18e5?e.dtick=o(t,36e5,M):t>3e4?e.dtick=o(t,6e4,O):t>500?e.dtick=o(t,1e3,O):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=o(t,n,P));else if("log"===e.type)if(e.tick0=0,t>.7)e.dtick=Math.ceil(t);else if(Math.abs(e.range[1]-e.range[0])<1){var r=1.5*Math.abs((e.range[1]-e.range[0])/t);t=Math.abs(Math.pow(10,e.range[1])-Math.pow(10,e.range[0]))/r,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+o(t,n,P)}else e.dtick=t>.3?"D2":"D1";else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=o(t,n,P));if(0===e.dtick&&(e.dtick=1),!b(e.dtick)&&"string"!=typeof e.dtick){var i=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(i)}},k.tickIncrement=function(e,t,n){var r=n?-1:1;if(b(t))return e+r*t;var o=t.charAt(0),i=r*Number(t.substr(1));if("M"===o){var a=new Date(e);return a.setMonth(a.getMonth()+i)}if("L"===o)return Math.log(Math.pow(10,e)+i)/Math.LN10;if("D"===o){var s="D2"===t?j:L,l=e+.01*r,u=_.roundUp(g(l,1),s,n);return Math.floor(l)+Math.log(y.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)},k.tickFirst=function(e){var t=e.range[1]r:u1&&t2*r}function c(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,o=0,i=0;i2*r}var f=e("fast-isnumeric"),p=e("tinycolor2").mix,h=e("../../lib"),d=e("../plots"),m=e("../../components/color/attributes").lightFraction,v=e("./layout_attributes"),g=e("./tick_value_defaults"),y=e("./tick_mark_defaults"),b=e("./tick_label_defaults"),x=e("./category_order_defaults"),_=e("./set_convert"),w=e("./ordered_categories"),T=e("./clean_datum"),C=e("./axis_ids");t.exports=function(e,t,n,o){function i(n,r){return h.coerce2(e,t,v,n,r)}var a=o.letter,s=o.font||{},l="Click to enter "+(o.title||a.toUpperCase()+" axis")+" title";o.name&&(t._name=o.name,t._id=C.name2id(o.name));var u=n("type");"-"===u&&(r(t,o.data),"-"===t.type?t.type="linear":u=e.type=t.type),_(t);var c=n("color"),d=c===e.color?c:s.color;n("title",l),h.coerceFont(n,"titlefont",{family:s.family,size:Math.round(1.2*s.size),color:d});var T=2===(e.range||[]).length&&f(e.range[0])&&f(e.range[1]),E=n("autorange",!T);E&&n("rangemode");var k=n("range",[-1,"x"===a?6:4]);k[0]===k[1]&&(t.range=[k[0]-1,k[0]+1]),h.noneOrAll(e.range,t.range,[0,1]),n("fixedrange"),g(e,t,n,u),b(e,t,n,u,o),y(e,t,n,o),x(e,t,n);var S=i("linecolor",c),A=i("linewidth"),P=n("showline",!!S||!!A);P||(delete t.linecolor,delete t.linewidth),(P||t.ticks)&&n("mirror");var M=i("gridcolor",p(c,o.bgColor,m).toRgbString()),O=i("gridwidth"),D=n("showgrid",o.showGrid||!!M||!!O);D||(delete t.gridcolor,delete t.gridwidth);var L=i("zerolinecolor",c),j=i("zerolinewidth"),R=n("zeroline",o.showGrid||!!L||!!j);return R||(delete t.zerolinecolor,delete t.zerolinewidth),t._initialCategories="category"===u?w(a,t.categoryorder,t.categoryarray,o.data):[],t}},{"../../components/color/attributes":302,"../../lib":382,"../plots":454,"./axis_ids":407,"./category_order_defaults":408,"./clean_datum":409,"./layout_attributes":414,"./ordered_categories":416,"./set_convert":419,"./tick_label_defaults":420,"./tick_mark_defaults":421,"./tick_value_defaults":422,"fast-isnumeric":117,tinycolor2:274}],407:[function(e,t,n){"use strict";function r(e,t,n){function r(e,n){for(var r=Object.keys(e),o=/^[xyz]axis[0-9]*/,i=[],a=0;a0;i&&(r="array");var a=n("categoryorder",r);"array"===a&&n("categoryarray"),i||"array"!==a||(t.categoryorder="trace")}}},{}],409:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../lib");t.exports=function(e){try{if("object"==typeof e&&null!==e&&e.getTime)return o.ms2DateTime(e);if("string"!=typeof e&&!r(e))return"";e=e.toString().replace(/['"%,$# ]/g,"")}catch(t){o.error(t,e)}return e}},{"../../lib":382,"fast-isnumeric":117}],410:[function(e,t,n){"use strict";t.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},BADNUM:void 0,xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,DBLCLICKDELAY:300,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,BENDPX:1.5,REDRAWDELAY:50}},{}],411:[function(e,t,n){"use strict";function r(e,t){var n,r=e.range[t],o=Math.abs(r-e.range[1-t]);return"date"===e.type?c.ms2DateTime(r,o):"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,s.format("."+n+"g")(Math.pow(10,r))):(n=Math.floor(Math.log(Math.abs(r))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,s.format("."+String(n)+"g")(r))}function o(e,t){return e?"nsew"===e?"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function i(e){s.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function a(e){var t=["lasso","select"];return t.indexOf(e)!==-1}var s=e("d3"),l=e("tinycolor2"),u=e("../../plotly"),c=e("../../lib"),f=e("../../lib/svg_text_utils"),p=e("../../components/color"),h=e("../../components/drawing"),d=e("../../lib/setcursor"),m=e("../../components/dragelement"),v=e("./axes"),g=e("./select"),y=e("./constants"),b=!0;t.exports=function(e,t,n,s,x,_,w,T){function C(e,t){for(var n=0;n.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+de+", "+me+")").attr("d",le+"Z"),pe=he.append("path").attr("class","zoombox-corners").style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+de+", "+me+")").attr("d","M0,0Z"),S();for(var i=0;i.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),pe.transition().style("opacity",1).duration(200),ue=!0)}function P(e,t,n){var r,o,i;for(r=0;rzoom back out","long"),b=!1)))}function O(t,n){var o=1===(w+T).length;if(t)F();else if(2!==n||o){if(1===n&&o){var i=w?U[0]:z[0],a="s"===w||"w"===T?0:1,s=i._name+".range["+a+"]",l=r(i,a),c="left",p="middle";if(i.fixedrange)return;w?(p="n"===w?"top":"bottom","right"===i.side&&(c="right")):"e"===T&&(c="right"),te.call(f.makeEditable,null,{immediate:!0,background:N.paper_bgcolor,text:String(l),fill:i.tickfont?i.tickfont.color:"#444",horizontalAlign:c,verticalAlign:p}).on("edit",function(t){var n="category"===i.type?i.c2l(t):i.d2l(t);void 0!==n&&u.relayout(e,s,n)})}}else R()}function D(t){function n(e,t,n){if(!e.fixedrange){E(e.range);var r=e.range,o=r[0]+(r[1]-r[0])*t;e.range=[o+(r[0]-o)*n,o+(r[1]-o)*n]}}if(e._context.scrollZoom||N._enablescrollzoom){var r=e.querySelector(".plotly");if(!(r.scrollHeight-r.clientHeight>10||r.scrollWidth-r.clientWidth>10)){clearTimeout(ge);var o=-t.deltaY;if(isFinite(o)||(o=t.wheelDelta/10),!isFinite(o))return void c.log("Did not find wheel motion attributes: ",t);var i,a=Math.exp(-Math.min(Math.max(o,-20),20)/100),s=be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-s.left)/s.width,u=ve[0]+ve[2]*l,f=(s.bottom-t.clientY)/s.height,p=ve[1]+ve[3]*(1-f);if(T){for(i=0;i=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function o(e,t,n){for(var o=1-t,i=0,a=0;a0;r--)n.push(t);return n}function o(e,t){for(var n=[],r=0;rY.width||G<0||G>Y.height)return _.unhoverRaw(e,t)}else V="xpx"in t?t.xpx:C[0]._length/2,G="ypx"in t?t.ypx:E[0]._length/2;if(O="xval"in t?r(i,t.xval):o(C,V),D="yval"in t?r(i,t.yval):o(E,G),!m(O[0])||!m(D[0]))return v.warn("Plotly.Fx.hover failed",t,e),_.unhoverRaw(e,t)}var K=1/0;for(j=0;j1||F.hoverinfo.indexOf("name")!==-1?F.name:void 0,index:!1,distance:Math.min(K,T.MAXDIST),color:b.defaultLine,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},W=H.length,"array"===N){var X=t[j];"pointNumber"in X?(U.index=X.pointNumber,N="closest"):(N="","xval"in X&&(B=X.xval,N="x"),"yval"in X&&(z=X.yval,N=N?"closest":"y"))}else B=O[I],z=D[I];if(F._module&&F._module.hoverPoints){var Z=F._module.hoverPoints(U,B,z,N);if(Z)for(var Q,J=0;JW&&(H.splice(0,W),K=H[0].distance)}if(0===H.length)return _.unhoverRaw(e,t);var $="y"===M&&q.length>1;H.sort(function(e,t){return e.distance-t.distance});var ee=b.combine(a.plot_bgcolor||b.background,a.paper_bgcolor),te={hovermode:M,rotateLabels:$,bgColor:ee,container:a._hoverlayer,outerContainer:a._paperdiv},ne=u(H,te);c(H,$?"xa":"ya"),f(ne,$);var re=e._hoverdata,oe=[];for(L=0;L128?"#000":b.background;if(e.name&&void 0===e.zLabelVal){var c=document.createElement("p");c.innerHTML=e.name,n=c.textContent||"",n.length>15&&(n=n.substr(0,12)+"...")}void 0!==e.extraText&&(r+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(r+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(r+="y: "+e.yLabel+"
"),r+=(r?"z: ":"")+e.zLabel):E&&e[o+"Label"]===m?r=e[("x"===o?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(r=e.yLabel):r=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(r+=(r?"
":"")+e.text),""===r&&(""===n&&t.remove(),r=n);var f=t.select("text.nums").style("fill",u).call(x.setPosition,0,0).text(r).attr("data-notex",1).call(y.convertToTspans);f.selectAll("tspan.line").call(x.setPosition,0,0);var p=t.select("text.name"),v=0;n&&n!==r?(p.style("fill",l).text(n).call(x.setPosition,0,0).attr("data-notex",1).call(y.convertToTspans),p.selectAll("tspan.line").call(x.setPosition,0,0),v=p.node().getBoundingClientRect().width+2*D):(p.remove(),t.select("rect").remove()),t.select("path").style({fill:l,stroke:u});var g,T,S=f.node().getBoundingClientRect(),A=e.xa._offset+(e.x0+e.x1)/2,P=e.ya._offset+(e.y0+e.y1)/2,M=Math.abs(e.x1-e.x0),L=Math.abs(e.y1-e.y0),j=S.width+O+D+v;e.ty0=_-S.top,e.bx=S.width+2*D,e.by=S.height+2*D,e.anchor="start",e.txwidth=S.width,e.tx2width=v,e.offset=0,i?(e.pos=A,g=P+L/2+j<=C,T=P-L/2-j>=0,"top"!==e.idealAlign&&g||!T?g?(P+=L/2,e.anchor="start"):e.anchor="middle":(P-=L/2,e.anchor="end")):(e.pos=P,g=A+M/2+j<=w,T=A-M/2-j>=0,"left"!==e.idealAlign&&g||!T?g?(A+=M/2,e.anchor="start"):e.anchor="middle":(A-=M/2,e.anchor="end")),f.attr("text-anchor",e.anchor),v&&p.attr("text-anchor",e.anchor),t.attr("transform","translate("+A+","+P+")"+(i?"rotate("+k+")":""))}),P}function c(e,t){function n(e){var t=e[0],n=e[e.length-1];if(o=t.pmin-t.pos-t.dp+t.size,i=n.pos+n.dp+n.size-t.pmax,o>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=o;r=!1}if(!(i<.01)){if(o<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=i;r=!1}if(r){var u=0;for(a=0;at.pmax&&u++;for(a=e.length-1;a>=0&&!(u<=0);a--)l=e[a],l.pos>t.pmax-1&&(l.del=!0,u--);for(a=0;a=0;s--)e[s].dp-=i;for(a=e.length-1;a>=0&&!(u<=0);a--)l=e[a],l.pos+l.dp+l.size>t.pmax&&(l.del=!0,u--)}}}for(var r,o,i,a,s,l,u,c=0,f=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?A:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});!r&&c<=e.length;){for(c++,r=!0,a=0;a.01&&d.pmin===m.pmin&&d.pmax===m.pmax){for(s=h.length-1;s>=0;s--)h[s].dp+=o;for(p.push.apply(p,h),f.splice(a+1,1),u=0,s=p.length-1;s>=0;s--)u+=p[s].dp;for(i=u/p.length,s=p.length-1;s>=0;s--)p[s].dp-=i;r=!1}else a++}f.forEach(n)}for(a=f.length-1;a>=0;a--){var v=f[a];for(s=v.length-1;s>=0;s--){var g=v[s],y=e[g.i];y.offset=g.dp,y.del=g.del}}}function f(e,t){e.each(function(e){var n=h.select(this);if(e.del)return void n.remove();var r="end"===e.anchor?-1:1,o=n.select("text.nums"),i={start:1,end:-1,middle:0}[e.anchor],a=i*(O+D),s=a+i*(e.txwidth+D),l=0,u=e.offset;"middle"===e.anchor&&(a-=e.tx2width/2,s-=e.tx2width/2),t&&(u*=-M,l=e.offset*P),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(r*O+l)+","+(O+u)+"v"+(e.by/2-O)+"h"+r*e.bx+"v-"+e.by+"H"+(r*O+l)+"V"+(u-O)+"Z"),o.call(x.setPosition,a+l,u+e.ty0-e.by/2+D).selectAll("tspan.line").attr({x:o.attr("x"),y:o.attr("y")}),e.tx2width&&(n.select("text.name, text.name tspan.line").call(x.setPosition,s+i*D+l,u+e.ty0-e.by/2+D),n.select("rect").call(x.setRect,s+(i-1)*e.tx2width/2+l,u-e.by/2-1,e.tx2width,e.by+2))})}function p(e,t,n){if(!t.target)return!1;if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var o=n[r],i=e._hoverdata[r];if(o.curveNumber!==i.curveNumber||String(o.pointNumber)!==String(i.pointNumber))return!0}return!1}var h=e("d3"),d=e("tinycolor2"),m=e("fast-isnumeric"),v=e("../../lib"),g=e("../../lib/events"),y=e("../../lib/svg_text_utils"),b=e("../../components/color"),x=e("../../components/drawing"),_=e("../../components/dragelement"),w=e("./axes"),T=e("./constants"),C=e("./dragbox"),E=t.exports={};E.unhover=_.unhover,E.layoutAttributes={dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom"},hovermode:{valType:"enumerated",values:["x","y","closest",!1]}},E.supplyLayoutDefaults=function(e,t,n){function r(n,r){return v.coerce(e,t,E.layoutAttributes,n,r)}r("dragmode");var o;if(t._has("cartesian")){var i=t._isHoriz=E.isHoriz(n);o=i?"y":"x"}else o="closest";r("hovermode",o)},E.isHoriz=function(e){for(var t=!0,n=0;ne._lastHoverTime+T.HOVERMINTIME?(a(e,t,n),void(e._lastHoverTime=Date.now())):void(e._hoverTimer=setTimeout(function(){a(e,t,n),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},T.HOVERMINTIME))},E.getDistanceFunction=function(e,t,n,r){return"closest"===e?r||i(t,n):"x"===e?t:n},E.getClosest=function(e,t,n){if(n.index!==!1)n.index>=0&&n.indexf[1]-.01&&(t.domain=[0,1]),o.noneOrAll(e.domain,t.domain,[0,1])}return t}},{"../../lib":382,"fast-isnumeric":117}],418:[function(e,t,n){"use strict";function r(e){return e._id}var o=e("../../lib/polygon"),i=e("../../components/color"),a=e("./axes"),s=e("./constants"),l=o.filter,u=o.tester,c=s.MINSELECT;t.exports=function(e,t,n,o,f){function p(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return e.p2d(n[t])}}function h(e,t){return e-t}var d,m=o.gd._fullLayout._zoomlayer,v=o.element.getBoundingClientRect(),g=o.plotinfo.x()._offset,y=o.plotinfo.y()._offset,b=t-v.left,x=n-v.top,_=b,w=x,T="M"+b+","+x,C=o.xaxes[0]._length,E=o.yaxes[0]._length,k=o.xaxes.map(r),S=o.yaxes.map(r),A=o.xaxes.concat(o.yaxes);"lasso"===f&&(d=l([[b,x]],s.BENDPX));var P=m.selectAll("path.select-outline").data([1,2]);P.enter().append("path").attr("class",function(e){return"select-outline select-outline-"+e}).attr("transform","translate("+g+", "+y+")").attr("d",T+"Z");var M,O,D,L,j,R=m.append("path").attr("class","zoombox-corners").style({fill:i.background,stroke:i.defaultLine,"stroke-width":1}).attr("transform","translate("+g+", "+y+")").attr("d","M0,0Z"),F=[],I=o.gd,N=[];for(M=0;M0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],o=e.range[1];return.5*(r+o-3*c*Math.abs(r-o))}return a.BADNUM}function n(e){return Math.pow(10,e)}function u(e){return o(e)?Number(e):a.BADNUM}var c=10;if(e.c2l="log"===e.type?t:u,e.l2c="log"===e.type?n:u,e.l2d=function(t){return e.c2d(e.l2c(t))},e.p2d=function(t){return e.l2d(e.p2l(t))},e.setScale=function(){var t,n=e._gd._fullLayout._size;if(e._categories||(e._categories=[]),e.overlaying){var r=l.getFromId(e._gd,e.overlaying);e.domain=r.domain}for(e.range&&2===e.range.length&&e.range[0]!==e.range[1]||(e.range=[-1,1]),t=0;t<2;t++)o(e.range[t])||(e.range[t]=o(e.range[1-t])?e.range[1-t]*(t?10:.1):t?1:-1),e.range[t]<-(Number.MAX_VALUE/2)?e.range[t]=-(Number.MAX_VALUE/2):e.range[t]>Number.MAX_VALUE/2&&(e.range[t]=Number.MAX_VALUE/2);if("y"===e._id.charAt(0)?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(e.range[0]-e.range[1]),e._b=-e._m*e.range[1]):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(e.range[1]-e.range[0]),e._b=-e._m*e.range[0]),!isFinite(e._m)||!isFinite(e._b))throw i.notifier("Something went wrong with axis scaling","long"),e._gd._replotting=!1,new Error("axis scaling")},e.l2p=function(t){return o(t)?r.round(e._b+e._m*t,2):a.BADNUM},e.p2l=function(t){return(t-e._b)/e._m},e.c2p=function(t,n){return e.l2p(e.c2l(t,n))},e.p2c=function(t){return e.l2c(e.p2l(t))},["linear","log","-"].indexOf(e.type)!==-1)e.c2d=u,e.d2c=function(e){return e=s(e),o(e)?Number(e):a.BADNUM},e.d2l=function(t,n){return"log"===e.type?e.c2l(e.d2c(t),n):e.d2c(t)};else if("date"===e.type){if(e.c2d=function(e){return o(e)?i.ms2DateTime(e):a.BADNUM},e.d2c=function(e){return o(e)?Number(e):i.dateTime2ms(e)},e.d2l=e.d2c,e.range&&e.range.length>1)try{var f=e.range.map(i.dateTime2ms);!o(e.range[0])&&o(f[0])&&(e.range[0]=f[0]),!o(e.range[1])&&o(f[1])&&(e.range[1]=f[1])}catch(p){i.error(p,e.range)}}else"category"===e.type&&(e.c2d=function(t){return e._categories[Math.round(t)]},e.d2c=function(t){null!==t&&void 0!==t&&e._categories.indexOf(t)===-1&&e._categories.push(t);var n=e._categories.indexOf(t);return n===-1?a.BADNUM:n},e.d2l=e.d2c);e.makeCalcdata=function(t,n){var r,o,i;if(n in t)for(r=t[n],o=new Array(r.length),i=0;ir?"0":"1.0"}var n=this.framework,r=n.select("g.choroplethlayer"),o=n.select("g.scattergeolayer"),i=this.projection,a=this.path,s=this.clipAngle;n.selectAll("path.basepath").attr("d",a),n.selectAll("path.graticulepath").attr("d",a),r.selectAll("path.choroplethlocation").attr("d",a),r.selectAll("path.basepath").attr("d",a),o.selectAll("path.js-line").attr("d",a),null!==s?(o.selectAll("path.point").style("opacity",t).attr("transform",e),o.selectAll("text").style("opacity",t).attr("transform",e)):(o.selectAll("path.point").attr("transform",e),o.selectAll("text").attr("transform",e))}},{"../../components/color":303,"../../components/drawing":326,"../../constants/xmlns_namespaces":370,"../../lib/filter_visible":378,"../../lib/topojson_utils":396,"../../plots/cartesian/axes":405,"./constants":424,"./projections":432,"./set_scale":433,"./zoom":434,"./zoom_reset":435,d3:113,topojson:275}],426:[function(e,t,n){"use strict";var r=e("./geo"),o=e("../../plots/plots");n.name="geo",n.attr="geo",n.idRoot="geo",n.idRegex=/^geo([2-9]|[1-9][0-9]+)?$/,n.attrRegex=/^geo([2-9]|[1-9][0-9]+)?$/,n.attributes=e("./layout/attributes"),n.layoutAttributes=e("./layout/layout_attributes"),n.supplyLayoutDefaults=e("./layout/defaults"),n.plot=function(e){var t=e._fullLayout,n=e._fullData,i=o.getSubplotIds(t,"geo");void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}});for(var a=0;ar^h>r&&n<(p-u)*(r-c)/(h-c)+u&&(o=!o)}return o}function a(e){return e?e/Math.sin(e):1}function s(e){return e>1?D:e<-1?-D:Math.asin(e)}function l(e){return e>1?0:e<-1?O:Math.acos(e)}function u(e,t){var n=(2+D)*Math.sin(t);t/=2;for(var r=0,o=1/0;r<10&&Math.abs(o)>P;r++){var i=Math.cos(t);t-=o=(t+Math.sin(t)*(i+2)-n)/(2*i*(1+i))}return[2/Math.sqrt(O*(4+O))*e*(1+Math.cos(t)),2*Math.sqrt(O/(4+O))*Math.sin(t)]}function c(e,t){function n(n,r){var o=I(n/t,r);return o[0]*=e,o}return arguments.length<2&&(t=e),1===t?I:t===1/0?p:(n.invert=function(n,r){var o=I.invert(n/e,r);return o[0]*=t,o},n)}function f(){var e=2,t=F(c),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n}function p(e,t){return[e*Math.cos(t)/Math.cos(t/=2),2*Math.sin(t)]}function h(e,t){return[3*e/(2*O)*Math.sqrt(O*O/3-t*t),t]}function d(e,t){return[e,1.25*Math.log(Math.tan(O/4+.4*t))]}function m(e){return function(t){var n,r=e*Math.sin(t),o=30;do t-=n=(t+Math.sin(t)-r)/(1+Math.cos(t));while(Math.abs(n)>P&&--o>0);return t/2}}function v(e,t,n){function r(n,r){return[e*n*Math.cos(r=o(r)),t*Math.sin(r)]}var o=m(n);return r.invert=function(r,o){var i=s(o/t);return[r/(e*Math.cos(i)),s((2*i+Math.sin(2*i))/n)]},r}function g(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function y(e,t){var n,r=Math.min(18,36*Math.abs(t)/O),o=Math.floor(r),i=r-o,a=(n=B[o])[0],s=n[1],l=(n=B[++o])[0],u=n[1],c=(n=B[Math.min(19,++o)])[0],f=n[1];return[e*(l+i*(c-a)/2+i*i*(c-2*l+a)/2),(t>0?D:-D)*(u+i*(f-s)/2+i*i*(f-2*u+s)/2)]}function b(e,t){return[e*Math.cos(t),t]}function x(e,t){var n=Math.cos(t),r=a(l(n*Math.cos(e/=2)));return[2*n*Math.sin(e)*r,Math.sin(t)*r]}function _(e,t){var n=x(e,t);return[(n[0]+e/D)/2,(n[1]+t)/2]}e.geo.project=function(e,t){var r=t.stream;if(!r)throw new Error("not yet supported");return(e&&w.hasOwnProperty(e.type)?w[e.type]:n)(e,r)};var w={Feature:t,FeatureCollection:function(e,n){return{type:"FeatureCollection",features:e.features.map(function(e){return t(e,n)})}}},T=[],C=[],E={point:function(e,t){T.push([e,t])},result:function(){var e=T.length?T.length<2?{type:"Point",coordinates:T[0]}:{type:"MultiPoint",coordinates:T}:null;return T=[],e}},k={lineStart:r,point:function(e,t){T.push([e,t])},lineEnd:function(){T.length&&(C.push(T),T=[])},result:function(){var e=C.length?C.length<2?{type:"LineString",coordinates:C[0]}:{type:"MultiLineString",coordinates:C}:null;return C=[],e}},S={polygonStart:r,lineStart:r,point:function(e,t){T.push([e,t])},lineEnd:function(){var e=T.length;if(e){do T.push(T[0].slice());while(++e<4);C.push(T),T=[]}},polygonEnd:r,result:function(){if(!C.length)return null;var e=[],t=[];return C.forEach(function(n){o(n)?e.push([n]):t.push(n)}),t.forEach(function(t){var n=t[0];e.some(function(e){if(i(e[0],n))return e.push(t),!0})||e.push([t])}),C=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}},A={Point:E,MultiPoint:E,LineString:k,MultiLineString:k,Polygon:S,MultiPolygon:S,Sphere:S},P=1e-6,M=P*P,O=Math.PI,D=O/2,L=(Math.sqrt(O),O/180),j=180/O,R=e.geo.projection,F=e.geo.projectionMutator;e.geo.interrupt=function(t){function n(e,n){for(var r=n<0?-1:1,o=l[+(n<0)],i=0,a=o.length-1;io[i][2][0];++i);var s=t(e-o[i][1][0],n);return s[0]+=t(o[i][1][0],r*n>r*o[i][0][1]?o[i][0][1]:n)[0],s}function r(){s=l.map(function(e){return e.map(function(e){var n,r=t(e[0][0],e[0][1])[0],o=t(e[2][0],e[2][1])[0],i=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return i>a&&(n=i,i=a,a=n),[[r,i],[o,a]]})})}function o(){for(var t=1e-6,n=[],r=0,o=l[0].length;r=0;--r){var a=l[1][r],s=180*a[0][0]/O,u=180*a[0][1]/O,c=180*a[1][1]/O,f=180*a[2][0]/O,p=180*a[2][1]/O;n.push(i([[f-t,p-t],[f-t,c+t],[s+t,c+t],[s+t,u-t]],30))}return{type:"Polygon",coordinates:[e.merge(n)]}}function i(e,t){for(var n,r,o,i=-1,a=e.length,s=e[0],l=[];++iP&&--o>0);return[e/(.8707+(i=r*r)*(-.131979+i*(-.013791+i*i*i*(.003971-.001529*i)))),r]},(e.geo.naturalEarth=function(){return R(g)}).raw=g;var B=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];B.forEach(function(e){e[1]*=1.0144}),y.invert=function(e,t){var n=t/D,r=90*n,o=Math.min(18,Math.abs(r/5)),i=Math.max(0,Math.floor(o));do{var a=B[i][1],s=B[i+1][1],l=B[Math.min(19,i+2)][1],u=l-a,c=l-2*s+a,f=2*(Math.abs(n)-s)/u,p=c/u,h=f*(1-p*f*(1-2*p*f));if(h>=0||1===i){r=(t>=0?5:-5)*(h+o);var d,m=50;do o=Math.min(18,Math.abs(r)/5),i=Math.floor(o),h=o-i,a=B[i][1],s=B[i+1][1],l=B[Math.min(19,i+2)][1],r-=(d=(t>=0?D:-D)*(s+h*(l-a)/2+h*h*(l-2*s+a)/2)-t)*j;while(Math.abs(d)>M&&--m>0);break}}while(--i>=0);var v=B[i][0],g=B[i+1][0],y=B[Math.min(19,i+2)][0];return[e/(g+h*(y-v)/2+h*h*(y-2*g+v)/2),r*L]},(e.geo.robinson=function(){return R(y)}).raw=y,b.invert=function(e,t){return[e/Math.cos(t),t]},(e.geo.sinusoidal=function(){return R(b)}).raw=b,x.invert=function(e,t){if(!(e*e+4*t*t>O*O+P)){var n=e,r=t,o=25;do{var i,a=Math.sin(n),s=Math.sin(n/2),u=Math.cos(n/2),c=Math.sin(r),f=Math.cos(r),p=Math.sin(2*r),h=c*c,d=f*f,m=s*s,v=1-d*u*u,g=v?l(f*u)*Math.sqrt(i=1/v):i=0,y=2*g*f*s-e,b=g*c-t,x=i*(d*m+g*f*u*h),_=i*(.5*a*p-2*g*c*s),w=.25*i*(p*s-g*c*d*a),T=i*(h*u+g*m*f),C=_*w-T*x;if(!C)break;var E=(b*_-y*T)/C,k=(y*w-b*x)/C;n-=E,r-=k}while((Math.abs(E)>P||Math.abs(k)>P)&&--o>0);return[n,r]}},(e.geo.aitoff=function(){return R(x)}).raw=x,_.invert=function(e,t){var n=e,r=t,o=25;do{var i,a=Math.cos(r),s=Math.sin(r),u=Math.sin(2*r),c=s*s,f=a*a,p=Math.sin(n),h=Math.cos(n/2),d=Math.sin(n/2),m=d*d,v=1-f*h*h,g=v?l(a*h)*Math.sqrt(i=1/v):i=0,y=.5*(2*g*a*d+n/D)-e,b=.5*(g*s+r)-t,x=.5*i*(f*m+g*a*h*c)+.5/D,_=i*(p*u/4-g*s*d),w=.125*i*(u*d-g*s*f*p),T=.5*i*(c*h+g*m*a)+.5,C=_*w-T*x,E=(b*_-y*T)/C,k=(y*w-b*x)/C;n-=E,r-=k}while((Math.abs(E)>P||Math.abs(k)>P)&&--o>0);return[n,r]},(e.geo.winkel3=function(){return R(_)}).raw=_}t.exports=r},{}],433:[function(e,t,n){"use strict";function r(e,t){var n=e.projection,r=e.lonaxis,a=e.lataxis,l=e.domain,u=e.framewidth||0,c=t.w*(l.x[1]-l.x[0]),f=t.h*(l.y[1]-l.y[0]),p=r.range[0]+s,h=r.range[1]-s,d=a.range[0]+s,m=a.range[1]-s,v=r._fullRange[0]+s,g=r._fullRange[1]-s,y=a._fullRange[0]+s,b=a._fullRange[1]-s;n._translate0=[t.l+c/2,t.t+f/2];var x=h-p,_=m-d,w=[p+x/2,d+_/2],T=n._rotate;n._center=[w[0]+T[0],w[1]+T[1]];var C=function(t){function r(e){return Math.min(_*c/(e[1][0]-e[0][0]),_*f/(e[1][1]-e[0][1]))}var a,s,l,x,_=t.scale(),w=n._translate0,T=o(p,d,h,m),C=o(v,y,g,b);l=i(t,T),a=r(l),x=i(t,C),n._fullScale=r(x),t.scale(a),l=i(t,T),s=[w[0]-l[0][0]+u,w[1]-l[0][1]+u],n._translate=s,t.translate(s),l=i(t,T),e._isAlbersUsa||t.clipExtent(l),a=n.scale*a,n._scale=a,e._width=Math.round(l[1][0])+u,e._height=Math.round(l[1][1])+u,e._marginX=(c-Math.round(l[1][0]))/2,e._marginY=(f-Math.round(l[1][1]))/2};return C}function o(e,t,n,r){var o=(n-e)/4;return{type:"Polygon",coordinates:[[[e,t],[e,r],[e+o,r],[e+2*o,r],[e+3*o,r],[n,r],[n,t],[n-o,t],[n-2*o,t],[n-3*o,t],[e,t]]]}}function i(e,t){return a.geo.path().projection(e).bounds(t)}var a=e("d3"),s=e("./constants").clipPad;t.exports=r},{"./constants":424,d3:113}],434:[function(e,t,n){"use strict";function r(e,t){var n;return(n=t._isScoped?i:t._clipAngle?s:a)(e,t.projection)}function o(e,t){var n=t._fullScale;return _.behavior.zoom().translate(e.translate()).scale(e.scale()).scaleExtent([.5*n,100*n])}function i(e,t){function n(){_.select(this).style(C)}function r(){a.scale(_.event.scale).translate(_.event.translate),e.render()}function i(){_.select(this).style(E)}var a=e.projection,s=o(a,t);return s.on("zoomstart",n).on("zoom",r).on("zoomend",i),s}function a(e,t){function n(e){return v.invert(e)}function r(e){var t=v(n(e));return Math.abs(t[0]-e[0])>y||Math.abs(t[1]-e[1])>y}function i(){_.select(this).style(C),l=_.mouse(this),u=v.rotate(),c=v.translate(),f=u,p=n(l)}function a(){return h=_.mouse(this),r(l)?(g.scale(v.scale()),void g.translate(v.translate())):(v.scale(_.event.scale),v.translate([c[0],_.event.translate[1]]),p?n(h)&&(m=n(h),d=[f[0]+(m[0]-p[0]),u[1],u[2]],v.rotate(d),f=d):(l=h,p=n(l)),void e.render())}function s(){_.select(this).style(E)}var l,u,c,f,p,h,d,m,v=e.projection,g=o(v,t),y=2;return g.on("zoomstart",i).on("zoom",a).on("zoomend",s),g}function s(e,t){function n(e){g++||e({type:"zoomstart"})}function r(e){e({type:"zoom"})}function i(e){--g||e({type:"zoomend"})}var a,s=e.projection,h={r:s.rotate(),k:s.scale()},d=o(s,t),m=x(d,"zoomstart","zoom","zoomend"),g=0,y=d.on;return d.on("zoomstart",function(){_.select(this).style(C);var e=_.mouse(this),t=s.rotate(),o=t,i=s.translate(),g=u(t);a=l(s,e),y.call(d,"zoom",function(){var n=_.mouse(this);if(s.scale(h.k=_.event.scale),a){if(l(s,n)){s.rotate(t).translate(i);var u=l(s,n),d=f(a,u),y=v(c(g,d)),b=h.r=p(y,a,o);isFinite(b[0])&&isFinite(b[1])&&isFinite(b[2])||(b=o),s.rotate(b),o=b}}else e=n,a=l(s,e);r(m.of(this,arguments))}),n(m.of(this,arguments))}).on("zoomend",function(){_.select(this).style(E),y.call(d,"zoom",null),i(m.of(this,arguments))}).on("zoom.redraw",function(){e.render()}),_.rebind(d,m,"on")}function l(e,t){var n=e.invert(t);return n&&isFinite(n[0])&&isFinite(n[1])&&g(n)}function u(e){var t=.5*e[0]*w,n=.5*e[1]*w,r=.5*e[2]*w,o=Math.sin(t),i=Math.cos(t),a=Math.sin(n),s=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return[i*s*u+o*a*l,o*s*u-i*a*l,i*a*u+o*s*l,i*s*l-o*a*u]}function c(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=t[0],s=t[1],l=t[2],u=t[3];return[n*a-r*s-o*l-i*u,n*s+r*a+o*u-i*l,n*l-r*u+o*a+i*s,n*u+r*l-o*s+i*a]}function f(e,t){if(e&&t){var n=b(e,t),r=Math.sqrt(y(n,n)),o=.5*Math.acos(Math.max(-1,Math.min(1,y(e,t)))),i=Math.sin(o)/r;return r&&[Math.cos(o),n[2]*i,-n[1]*i,n[0]*i]}}function p(e,t,n){var r=m(t,2,e[0]);r=m(r,1,e[1]),r=m(r,0,e[2]-n[2]);var o,i,a=t[0],s=t[1],l=t[2],u=r[0],c=r[1],f=r[2],p=Math.atan2(s,a)*T,d=Math.sqrt(a*a+s*s);Math.abs(c)>d?(i=(c>0?90:-90)-p,o=0):(i=Math.asin(c/d)*T-p,o=Math.sqrt(d*d-c*c));var v=180-i-2*p,g=(Math.atan2(f,u)-Math.atan2(l,o))*T,y=(Math.atan2(f,u)-Math.atan2(l,-o))*T,b=h(n[0],n[1],i,g),x=h(n[0],n[1],v,y);return b<=x?[i,g,n[2]]:[v,y,n[2]]}function h(e,t,n,r){var o=d(n-e),i=d(r-t);return Math.sqrt(o*o+i*i)}function d(e){return(e%360+540)%360-180}function m(e,t,n){var r=n*w,o=e.slice(),i=0===t?1:0,a=2===t?1:2,s=Math.cos(r),l=Math.sin(r);return o[i]=e[i]*s-e[a]*l,o[a]=e[a]*s+e[i]*l,o}function v(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*T,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*T,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*T]}function g(e){var t=e[0]*w,n=e[1]*w,r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function y(e,t){for(var n=0,r=0,o=e.length;rw[r+2]&&(w[r]=-1,w[r+2]=1),C=this[v[r]],C._length=y.viewBox[r+2]-y.viewBox[r],s.doAutoRange(C);y.ticks=this.computeTickMarks();var E=this.xaxis.range,k=this.yaxis.range;y.dataBox=[E[0],k[0],E[1],k[1]],y.merge(n),a.update(y),this.glplot.draw()},g.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var e=this.glplot,t=this.camera,n=t.mouseListener,r=this.fullLayout;this.cameraChanged();var o=n.x*e.pixelRatio,i=this.canvas.height-e.pixelRatio*n.y;if(t.boxEnabled&&"zoom"===r.dragmode)this.selectBox.enabled=!0,this.selectBox.selectBox=[Math.min(t.boxStart[0],t.boxEnd[0]),Math.min(t.boxStart[1],t.boxEnd[1]),Math.max(t.boxStart[0],t.boxEnd[0]),Math.max(t.boxStart[1],t.boxEnd[1])],e.setDirty();else{this.selectBox.enabled=!1;var a=r._size,s=this.xaxis.domain,u=this.yaxis.domain,c=e.pick(o/e.pixelRatio+a.l+s[0]*a.w,i/e.pixelRatio-(a.t+(1-u[1])*a.h));if(c&&r.hovermode){var f=c.object._trace.handlePick(c);if(f&&(!this.lastPickResult||this.lastPickResult.trace!==f.trace||this.lastPickResult.dataCoord[0]!==f.dataCoord[0]||this.lastPickResult.dataCoord[1]!==f.dataCoord[1])){var p=this.lastPickResult=f;this.spikes.update({center:c.dataCoord}),p.screenCoord=[((e.viewBox[2]-e.viewBox[0])*(c.dataCoord[0]-e.dataBox[0])/(e.dataBox[2]-e.dataBox[0])+e.viewBox[0])/e.pixelRatio,(this.canvas.height-(e.viewBox[3]-e.viewBox[1])*(c.dataCoord[1]-e.dataBox[1])/(e.dataBox[3]-e.dataBox[1])-e.viewBox[1])/e.pixelRatio];var h=p.hoverinfo;if("all"!==h){var d=h.split("+");d.indexOf("x")===-1&&(p.traceCoord[0]=void 0),d.indexOf("y")===-1&&(p.traceCoord[1]=void 0),d.indexOf("z")===-1&&(p.traceCoord[2]=void 0),d.indexOf("text")===-1&&(p.textLabel=void 0),d.indexOf("name")===-1&&(p.name=void 0)}l.loneHover({x:p.screenCoord[0],y:p.screenCoord[1],xLabel:this.hoverFormatter("xaxis",p.traceCoord[0]),yLabel:this.hoverFormatter("yaxis",p.traceCoord[1]),zLabel:p.traceCoord[2],text:p.textLabel,name:p.name,color:p.color},{container:this.svgContainer}),this.lastPickResult={dataCoord:c.dataCoord}}}else!c&&this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,l.loneUnhover(this.svgContainer))}e.draw()}},g.hoverFormatter=function(e,t){if(void 0!==t){var n=this[e];return s.tickText(n,n.c2l(t),"hover").text}}},{"../../lib/html2unicode":381,"../../lib/show_no_webgl_msg":392,"../../plots/cartesian/axes":405,"../../plots/cartesian/graph_interact":412,"./camera":436,"./convert":437,"gl-plot2d":165,"gl-select-box":195,"gl-spikes2d":215}],440:[function(e,t,n){"use strict";function r(e,t){e=e||document.body,t=t||{};var n=[.01,1/0];"distanceLimits"in t&&(n[0]=t.distanceLimits[0],n[1]=t.distanceLimits[1]),"zoomMin"in t&&(n[0]=t.zoomMin),"zoomMax"in t&&(n[1]=t.zoomMax); +var r=i({center:t.center||[0,0,0],up:t.up||[0,1,0],eye:t.eye||[0,0,10],mode:t.mode||"orbit",distanceLimits:n}),l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0,c=e.clientWidth,f=e.clientHeight,p={keyBindingMode:"rotate",view:r,element:e,delay:t.delay||16,rotateSpeed:t.rotateSpeed||1,zoomSpeed:t.zoomSpeed||1,translateSpeed:t.translateSpeed||1,flipX:!!t.flipX,flipY:!!t.flipY,modes:r.modes,tick:function(){var t=o(),n=this.delay,i=t-2*n;r.idle(t-n),r.recalcMatrix(i),r.flush(t-(100+2*n));for(var a=!0,s=r.computedMatrix,p=0;p<16;++p)a=a&&l[p]===s[p],l[p]=s[p];var h=e.clientWidth===c&&e.clientHeight===f;return c=e.clientWidth,f=e.clientHeight,a?!h:(u=Math.exp(r.computedRadius[0]),!0)},lookAt:function(e,t,n){r.lookAt(r.lastT(),e,t,n)},rotate:function(e,t,n){r.rotate(r.lastT(),e,t,n)},pan:function(e,t,n){r.pan(r.lastT(),e,t,n)},translate:function(e,t,n){r.translate(r.lastT(),e,t,n)}};Object.defineProperties(p,{matrix:{get:function(){return r.computedMatrix},set:function(e){return r.setMatrix(r.lastT(),e),r.computedMatrix},enumerable:!0},mode:{get:function(){return r.getMode()},set:function(e){var t=r.computedUp.slice(),n=r.computedEye.slice(),i=r.computedCenter.slice();if(r.setMode(e),"turntable"===e){var a=o();r._active.lookAt(a,n,i,t),r._active.lookAt(a+500,n,i,[0,0,1]),r._active.flush(a)}return r.getMode()},enumerable:!0},center:{get:function(){return r.computedCenter},set:function(e){return r.lookAt(r.lastT(),null,e),r.computedCenter},enumerable:!0},eye:{get:function(){return r.computedEye},set:function(e){return r.lookAt(r.lastT(),e),r.computedEye},enumerable:!0},up:{get:function(){return r.computedUp},set:function(e){return r.lookAt(r.lastT(),null,null,e),r.computedUp},enumerable:!0},distance:{get:function(){return u},set:function(e){return r.setDistance(r.lastT(),e),e},enumerable:!0},distanceLimits:{get:function(){return r.getDistanceLimits(n)},set:function(e){return r.setDistanceLimits(e),e},enumerable:!0}}),e.addEventListener("contextmenu",function(e){return e.preventDefault(),!1});var h=0,d=0;return a(e,function(t,n,i,a){var s="rotate"===p.keyBindingMode,l="pan"===p.keyBindingMode,c="zoom"===p.keyBindingMode,f=!!a.control,m=!!a.alt,v=!!a.shift,g=!!(1&t),y=!!(2&t),b=!!(4&t),x=1/e.clientHeight,_=x*(n-h),w=x*(i-d),T=p.flipX?1:-1,C=p.flipY?1:-1,E=o(),k=Math.PI*p.rotateSpeed;if((s&&g&&!f&&!m&&!v||g&&!f&&!m&&v)&&r.rotate(E,T*k*_,-C*k*w,0),(l&&g&&!f&&!m&&!v||y||g&&f&&!m&&!v)&&r.pan(E,-p.translateSpeed*_*u,p.translateSpeed*w*u,0),c&&g&&!f&&!m&&!v||b||g&&!f&&m&&!v){var S=-p.zoomSpeed*w/window.innerHeight*(E-r.lastT())*100;r.pan(E,0,0,u*(Math.exp(S)-1))}return h=n,d=i,!0}),s(e,function(e,t){var n=p.flipX?1:-1,i=p.flipY?1:-1,a=o();if(Math.abs(e)>Math.abs(t))r.rotate(a,0,0,-e*n*Math.PI*p.rotateSpeed/window.innerWidth);else{var s=-p.zoomSpeed*i*t/window.innerHeight*(a-r.lastT())/100;r.pan(a,0,0,u*(Math.exp(s)-1))}},!0),p}t.exports=r;var o=e("right-now"),i=e("3d-view"),a=e("mouse-change"),s=e("mouse-wheel")},{"3d-view":39,"mouse-change":241,"mouse-wheel":245,"right-now":255}],441:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<3;++n){var r=s[n];t[r]._gd=e}}var o=e("./scene"),i=e("../plots"),a=e("../../constants/xmlns_namespaces"),s=["xaxis","yaxis","zaxis"];n.name="gl3d",n.attr="scene",n.idRoot="scene",n.idRegex=/^scene([2-9]|[1-9][0-9]+)?$/,n.attrRegex=/^scene([2-9]|[1-9][0-9]+)?$/,n.attributes=e("./layout/attributes"),n.layoutAttributes=e("./layout/layout_attributes"),n.supplyLayoutDefaults=e("./layout/defaults"),n.plot=function(e){var t=e._fullLayout,n=e._fullData,a=i.getSubplotIds(t,"gl3d");t._paperdiv.style({width:t.width+"px",height:t.height+"px"}),e._context.setBackground(e,t.paper_bgcolor);for(var s=0;sp[1][a]?h[a]=1:p[1][a]===p[0][a]?h[a]=1:h[a]=1/(p[1][a]-p[0][a]);for(this.dataScale=h,i=0;iy[1][i])y[0][i]=-1,y[1][i]=1;else{var T=y[1][i]-y[0][i];y[0][i]-=T/32,y[1][i]+=T/32}}else{var C=c[k[i]].range;y[0][i]=C[0],y[1][i]=C[1]}y[0][i]===y[1][i]&&(y[0][i]-=1,y[1][i]+=1),b[i]=y[1][i]-y[0][i],this.glplot.bounds[0][i]=y[0][i]*h[i],this.glplot.bounds[1][i]=y[1][i]*h[i]}var E=[1,1,1];for(i=0;i<3;++i){l=c[k[i]],u=l.type;var S=x[u];E[i]=Math.pow(S.acc,1/S.count)/h[i]}var A,P=4;if("auto"===c.aspectmode)A=Math.max.apply(null,E)/Math.min.apply(null,E)<=P?E:[1,1,1];else if("cube"===c.aspectmode)A=[1,1,1];else if("data"===c.aspectmode)A=E;else{if("manual"!==c.aspectmode)throw new Error("scene.js aspectRatio was not one of the enumerated types");var M=c.aspectratio;A=[M.x,M.y,M.z]}c.aspectratio.x=f.aspectratio.x=A[0],c.aspectratio.y=f.aspectratio.y=A[1],c.aspectratio.z=f.aspectratio.z=A[2],this.glplot.aspect=A;var O=c.domain||null,D=t._size||null;if(O&&D){var L=this.container.style;L.position="absolute",L.left=D.l+O.x[0]*D.w+"px",L.top=D.t+(1-O.y[1])*D.h+"px",L.width=D.w*(O.x[1]-O.x[0])+"px",L.height=D.h*(O.y[1]-O.y[0])+"px"}this.glplot.redraw()}},E.destroy=function(){this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null},E.setCameraToDefault=function(){this.setCamera({eye:{x:1.25,y:1.25,z:1.25},center:{x:0,y:0,z:0},up:{x:0,y:0,z:1}})},E.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),u(this.glplot.camera)},E.setCamera=function(e){var t={};t[this.id]=e,this.glplot.camera.lookAt.apply(this,l(e)),this.graphDiv.emit("plotly_relayout",t)},E.saveCamera=function(e){function t(e,t,n,r){var o=["up","center","eye"],i=["x","y","z"];return t[o[n]]&&e[o[n]][i[r]]===t[o[n]][i[r]]}var n=this.getCamera(),r=h.nestedProperty(e,this.id+".camera"),o=r.get(),i=!1;if(void 0===o)i=!0;else for(var a=0;a<3;a++)for(var s=0;s<3;s++)if(!t(n,o,a,s)){i=!0;break}return i&&r.set(n),i},E.updateFx=function(e,t){var n=this.camera;n&&("orbit"===e?(n.mode="orbit",n.keyBindingMode="rotate"):"turntable"===e?(n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate"):n.keyBindingMode=e),this.fullSceneLayout.hovermode=t},E.toImage=function(e){e||(e="png"),this.staticMode&&this.container.appendChild(c),this.glplot.redraw();var t=this.glplot.gl,n=t.drawingBufferWidth,r=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*r*4);t.readPixels(0,0,n,r,t.RGBA,t.UNSIGNED_BYTE,o);for(var i=0,a=r-1;i=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),n.attr(i);var s=n.select(".js-link-to-tool"),l=n.select(".js-link-spacer"),u=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&o(e,s),l.text(s.text()&&u.text()?" - ":"")},f.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=a.select(e).append("div").attr("id","hiddenform").style("display","none"),r=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),o=r.append("input").attr({type:"text",name:"data"});return o.node().value=f.graphJson(e,!1,"keepdata"),r.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},f.supplyDefaults=function(e){var t,n,r=e._fullLayout||{},o=e._fullLayout={},a=e.layout||{},s=e._fullData||[],c=e._fullData=[],p=e.data||[],h=o._modules=[],d=o._basePlotModules=[];for(f.supplyLayoutGlobalDefaults(a,o),o._dataLength=p.length,t=0;t.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+o},r:{val:n.x,size:n.r+o},b:{val:n.y,size:n.b+o},t:{val:n.y,size:n.t+o}}}else delete r._pushmargin[t];e._replotting||f.doAutoMargin(e)}},f.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),o=Math.max(t.margin.l||0,0),i=Math.max(t.margin.r||0,0),a=Math.max(t.margin.t||0,0),u=Math.max(t.margin.b||0,0),c=t._pushmargin;if(t.margin.autoexpand!==!1&&(c.base={l:{val:0,size:o},r:{val:1,size:i},t:{val:1,size:a},b:{val:0,size:u}},Object.keys(c).forEach(function(e){var n=c[e].l||{},r=c[e].b||{},l=n.val,f=n.size,p=r.val,h=r.size;Object.keys(c).forEach(function(e){if(s(f)&&c[e].r){var n=c[e].r.val,r=c[e].r.size;if(n>l){var d=(f*n+(r-t.width)*l)/(n-l),m=(r*(1-l)+(f-t.width)*(1-n))/(n-l);d>=0&&m>=0&&d+m>o+i&&(o=d,i=m)}}if(s(h)&&c[e].t){var v=c[e].t.val,g=c[e].t.size;if(v>p){var y=(h*v+(g-t.height)*p)/(v-p),b=(g*(1-p)+(h-t.height)*(1-v))/(v-p);y>=0&&b>=0&&y+b>u+a&&(u=y,a=b)}}})})),n.l=Math.round(o),n.r=Math.round(i),n.t=Math.round(a),n.b=Math.round(u),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!e._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return l.plot(e)},f.graphJson=function(e,t,n,r,o){function i(e){if("function"==typeof e)return null;if(u.isPlainObject(e)){var t,r,o={};for(t in e)if("function"!=typeof e[t]&&["_","["].indexOf(t.charAt(0))===-1){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if(r=e[t+"src"],"string"==typeof r&&r.indexOf(":")>0&&!u.isPlainObject(e.stream))continue}else if("keepall"!==n&&(r=e[t+"src"],"string"==typeof r&&r.indexOf(":")>0))continue;o[t]=i(e[t])}return o}return Array.isArray(e)?e.map(i):e&&e.getTime?u.ms2DateTime(e):e}(o&&t&&!e._fullData||o&&!t&&!e._fullLayout)&&f.supplyDefaults(e);var a=o?e._fullData:e.data,s=o?e._fullLayout:e.layout,l={data:(a||[]).map(function(e){var n=i(e);return t&&delete n.fit,n})};return t||(l.layout=i(s)),e.framework&&e.framework.isPolar&&(l=e.framework.getConfig()),"object"===r?l:JSON.stringify(l)}},{"../components/color":303,"../lib":382,"../plotly":402,"./attributes":403,"./font_attributes":423,"./layout_attributes":453,d3:113,"fast-isnumeric":117}],455:[function(e,t,n){"use strict";var r=e("../../traces/scatter/attributes"),o=r.marker;t.exports={r:r.r,t:r.t,marker:{color:o.color,size:o.size,symbol:o.symbol,opacity:o.opacity}}},{"../../traces/scatter/attributes":556}],456:[function(e,t,n){"use strict";function r(e,t){var n={showline:{valType:"boolean"},showticklabels:{valType:"boolean"},tickorientation:{valType:"enumerated",values:["horizontal","vertical"]},ticklen:{valType:"number",min:0},tickcolor:{valType:"color"},ticksuffix:{valType:"string"},endpadding:{valType:"number"},visible:{valType:"boolean"}};return i({},t,n)}var o=e("../cartesian/layout_attributes"),i=e("../../lib/extend").extendFlat,a=i({},o.domain,{});t.exports={radialaxis:r("radial",{range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},domain:a,orientation:{valType:"number"}}),angularaxis:r("angular",{range:{valType:"info_array",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}]},domain:a}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"]},orientation:{valType:"angle"}}}},{"../../lib/extend":377,"../cartesian/layout_attributes":414}],457:[function(e,t,n){var r=e("../../plotly"),o=e("d3"),i=t.exports={version:"0.2.2",manager:e("./micropolar_manager")},a=r.Lib.extendDeepAll;i.Axis=function(){function e(e){n=e||n;var u=l.data,f=l.layout;return("string"==typeof n||n.nodeName)&&(n=o.select(n)),n.datum(u).each(function(e,n){function l(e,t){return s(e)%360+f.orientation}var u=e.slice();c={data:i.util.cloneJson(u),layout:i.util.cloneJson(f)};var p=0;u.forEach(function(e,t){e.color||(e.color=f.defaultColorRange[p],p=(p+1)%f.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:o.rgb(e.color).darker().toString()),c.data[t].color=e.color,c.data[t].strokeColor=e.strokeColor,c.data[t].strokeDash=e.strokeDash,c.data[t].strokeSize=e.strokeSize});var h=u.filter(function(e,t){var n=e.visible;return"undefined"==typeof n||n===!0}),d=!1,m=h.map(function(e,t){return d=d||"undefined"!=typeof e.groupId,e});if(d){var v=o.nest().key(function(e,t){return"undefined"!=typeof e.groupId?e.groupId:"unstacked"}).entries(m),g=[],y=v.map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],g.push(n),n=i.util.sumArrays(e.r,n)}),e.values});h=o.merge(y)}h.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var b=Math.min(f.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2;b=Math.max(10,b);var x,_=[f.margin.left+b,f.margin.top+b];if(d){var w=o.max(i.util.sumArrays(i.util.arrayLast(h).r[0],i.util.arrayLast(g)));x=[0,w]}else x=o.extent(i.util.flattenArray(h.map(function(e,t){return e.r})));f.radialAxis.domain!=i.DATAEXTENT&&(x[0]=0),r=o.scale.linear().domain(f.radialAxis.domain!=i.DATAEXTENT&&f.radialAxis.domain?f.radialAxis.domain:x).range([0,b]),c.layout.radialAxis.domain=r.domain();var T,C=i.util.flattenArray(h.map(function(e,t){return e.t})),E="string"==typeof C[0];E&&(C=i.util.deduplicate(C),T=C.slice(),C=o.range(C.length),h=h.map(function(e,t){var n=e;return e.t=[C],d&&(n.yStack=e.yStack),n}));var k=h.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===h.length,S=null===f.needsEndSpacing?E||!k:f.needsEndSpacing,A=f.angularAxis.domain&&f.angularAxis.domain!=i.DATAEXTENT&&!E&&f.angularAxis.domain[0]>=0,P=A?f.angularAxis.domain:o.extent(C),M=Math.abs(C[1]-C[0]);k&&!E&&(M=0);var O=P.slice();S&&E&&(O[1]+=M);var D=f.angularAxis.ticksCount||4;D>8&&(D=D/(D/8)+D%8),f.angularAxis.ticksStep&&(D=(O[1]-O[0])/D);var L=f.angularAxis.ticksStep||(O[1]-O[0])/(D*(f.minorTicks+1));T&&(L=Math.max(Math.round(L),1)),O[2]||(O[2]=L);var j=o.range.apply(this,O);if(j=j.map(function(e,t){return parseFloat(e.toPrecision(12))}),s=o.scale.linear().domain(O.slice(0,2)).range("clockwise"===f.direction?[0,360]:[360,0]),c.layout.angularAxis.domain=s.domain(),c.layout.angularAxis.endPadding=S?M:0,t=o.select(this).select("svg.chart-root"),"undefined"==typeof t||t.empty()){var R="' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '",F=(new DOMParser).parseFromString(R,"application/xml"),I=this.appendChild(this.ownerDocument.importNode(F.documentElement,!0));t=o.select(I)}t.select(".guides-group").style({"pointer-events":"none"}),t.select(".angular.axis-group").style({"pointer-events":"none"}),t.select(".radial.axis-group").style({"pointer-events":"none"});var N,B=t.select(".chart-group"),z={fill:"none",stroke:f.tickColor},U={"font-size":f.font.size,"font-family":f.font.family,fill:f.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+f.font.outlineColor}).join(",")};if(f.showLegend){N=t.select(".legend-group").attr({transform:"translate("+[b,f.margin.top]+")"}).style({display:"block"});var W=h.map(function(e,t){var n=i.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend="undefined"==typeof e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});i.Legend().config({data:h.map(function(e,t){return e.name||"Element"+t}),legendConfig:a({},i.Legend.defaultConfig().legendConfig,{container:N,elements:W,reverseOrder:f.legend.reverseOrder})})();var H=N.node().getBBox();b=Math.min(f.width-H.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,b=Math.max(10,b),_=[f.margin.left+b,f.margin.top+b],r.range([0,b]),c.layout.radialAxis.domain=r.domain(),N.attr("transform","translate("+[_[0]+b,_[1]-b]+")")}else N=t.select(".legend-group").style({display:"none"});t.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),B.attr("transform","translate("+_+")").style({cursor:"crosshair"});var q=[(f.width-(f.margin.left+f.margin.right+2*b+(H?H.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*b))/2];if(q[0]=Math.max(0,q[0]),q[1]=Math.max(0,q[1]),t.select(".outer-group").attr("transform","translate("+q+")"),f.title){var V=t.select("g.title-group text").style(U).text(f.title),G=V.node().getBBox();V.attr({x:_[0]-G.width/2,y:_[1]-b-20})}var Y=t.select(".radial.axis-group");if(f.radialAxis.gridLinesVisible){var K=Y.selectAll("circle.grid-circle").data(r.ticks(5));K.enter().append("circle").attr({"class":"grid-circle"}).style(z),K.attr("r",r),K.exit().remove()}Y.select("circle.outside-circle").attr({r:b}).style(z);var X=t.select("circle.background-circle").attr({r:b}).style({fill:f.backgroundColor,stroke:f.stroke});if(f.radialAxis.visible){var Z=o.svg.axis().scale(r).ticks(5).tickSize(5);Y.call(Z).attr({transform:"rotate("+f.radialAxis.orientation+")"}),Y.selectAll(".domain").style(z),Y.selectAll("g>text").text(function(e,t){return this.textContent+f.radialAxis.ticksSuffix}).style(U).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===f.radialAxis.tickOrientation?"rotate("+-f.radialAxis.orientation+") translate("+[0,U["font-size"]]+")":"translate("+[0,U["font-size"]]+")"}}),Y.selectAll("g>line").style({stroke:"black"})}var Q=t.select(".angular.axis-group").selectAll("g.angular-tick").data(j),J=Q.enter().append("g").classed("angular-tick",!0);Q.attr({transform:function(e,t){return"rotate("+l(e,t)+")"}}).style({display:f.angularAxis.visible?"block":"none"}),Q.exit().remove(),J.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(f.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(f.minorTicks+1)==0)}).style(z),J.selectAll(".minor").style({stroke:f.minorTickColor}),Q.select("line.grid-line").attr({x1:f.tickLength?b-f.tickLength:0,x2:b}).style({display:f.angularAxis.gridLinesVisible?"block":"none"}),J.append("text").classed("axis-text",!0).style(U);var $=Q.select("text.axis-text").attr({x:b+f.labelOffset,dy:".35em",transform:function(e,t){var n=l(e,t),r=b+f.labelOffset,o=f.angularAxis.tickOrientation;return"horizontal"==o?"rotate("+-n+" "+r+" 0)":"radial"==o?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:f.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(f.minorTicks+1)!=0?"":T?T[e]+f.angularAxis.ticksSuffix:e+f.angularAxis.ticksSuffix}).style(U);f.angularAxis.rewriteTicks&&$.text(function(e,t){return t%(f.minorTicks+1)!=0?"":f.angularAxis.rewriteTicks(this.textContent,t)});var ee=o.max(B.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));N.attr({transform:"translate("+[b+ee,f.margin.top]+")"});var te=t.select("g.geometry-group").selectAll("g").size()>0,ne=t.select("g.geometry-group").selectAll("g.geometry").data(h);if(ne.enter().append("g").attr({"class":function(e,t){return"geometry geometry"+t}}),ne.exit().remove(),h[0]||te){var re=[];h.forEach(function(e,t){var n={};n.radialScale=r,n.angularScale=s,n.container=ne.filter(function(e,n){return n==t}),n.geometry=e.geometry,n.orientation=f.orientation,n.direction=f.direction,n.index=t,re.push({data:e,geometryConfig:n})});var oe=o.nest().key(function(e,t){return"undefined"!=typeof e.data.groupId||"unstacked"}).entries(re),ie=[];oe.forEach(function(e,t){"unstacked"===e.key?ie=ie.concat(e.values.map(function(e,t){return[e]})):ie.push(e.values)}),ie.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return a(i[n].defaultConfig(),e)});i[n]().config(r)()})}var ae,se,le=t.select(".guides-group"),ue=t.select(".tooltips-group"),ce=i.tooltipPanel().config({container:ue,fontSize:8})(),fe=i.tooltipPanel().config({container:ue,fontSize:8})(),pe=i.tooltipPanel().config({container:ue,hasTick:!0})();if(!E){var he=le.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});B.on("mousemove.angular-guide",function(e,t){var n=i.util.getMousePos(X).angle;he.attr({x2:-b,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-f.orientation)%360;ae=s.invert(r);var o=i.util.convertToCartesian(b+12,n+180);ce.text(i.util.round(ae)).move([o[0]+_[0],o[1]+_[1]])}).on("mouseout.angular-guide",function(e,t){le.select("line").style({opacity:0})})}var de=le.select("circle").style({stroke:"grey",fill:"none"});B.on("mousemove.radial-guide",function(e,t){var n=i.util.getMousePos(X).radius;de.attr({r:n}).style({opacity:.5}),se=r.invert(i.util.getMousePos(X).radius);var o=i.util.convertToCartesian(n,f.radialAxis.orientation);fe.text(i.util.round(se)).move([o[0]+_[0],o[1]+_[1]])}).on("mouseout.radial-guide",function(e,t){de.style({opacity:0}),pe.hide(),ce.hide(),fe.hide()}),t.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(e,n){var r=o.select(this),a=r.style("fill"),s="black",l=r.style("opacity")||1;if(r.attr({"data-opacity":l}),"none"!=a){r.attr({"data-fill":a}),s=o.hsl(a).darker().toString(),r.style({fill:s,opacity:1});var u={t:i.util.round(e[0]),r:i.util.round(e[1])};E&&(u.t=T[e[0]]);var c="t: "+u.t+", r: "+u.r,f=this.getBoundingClientRect(),p=t.node().getBoundingClientRect(),h=[f.left+f.width/2-q[0]-p.left,f.top+f.height/2-q[1]-p.top];pe.config({color:s}).text(c),pe.move(h)}else a=r.style("stroke"),r.attr({"data-stroke":a}),s=o.hsl(a).darker().toString(),r.style({stroke:s,opacity:1})}).on("mousemove.tooltip",function(e,t){return 0==o.event.which&&void(o.select(this).attr("data-fill")&&pe.show())}).on("mouseout.tooltip",function(e,t){pe.hide();var n=o.select(this),r=n.attr("data-fill");r?n.style({fill:r,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})}),p}var t,n,r,s,l={data:[],layout:{}},u={},c={},f=o.dispatch("hover"),p={};return p.render=function(t){return e(t),this},p.config=function(e){if(!arguments.length)return l;var t=i.util.cloneJson(e);return t.data.forEach(function(e,t){l.data[t]||(l.data[t]={}),a(l.data[t],i.Axis.defaultConfig().data[0]),a(l.data[t],e)}),a(l.layout,i.Axis.defaultConfig().layout),a(l.layout,t.layout),this},p.getLiveConfig=function(){return c},p.getinputConfig=function(){return u},p.radialScale=function(e){return r},p.angularScale=function(e){return s},p.svg=function(){return t},o.rebind(p,f,"on"),p},i.Axis.defaultConfig=function(e,t){var n={data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:o.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}};return n},i.util={},i.DATAEXTENT="dataExtent",i.AREA="AreaChart",i.LINE="LinePlot",i.DOT="DotPlot",i.BAR="BarChart",i.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},i.util._extend=function(e,t){for(var n in e)t[n]=e[n]},i.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},i.util.dataFromEquation2=function(e,t){var n=t||6,r=o.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180,o=e(r);return[t,o]});return r},i.util.dataFromEquation=function(e,t,n){var r=t||6,i=[],a=[];o.range(0,360+r,r).forEach(function(t,n){var r=t*Math.PI/180,o=e(r);i.push(t),a.push(o)});var s={t:i,r:a};return n&&(s.name=n),s},i.util.ensureArray=function(e,t){if("undefined"==typeof e)return null;var n=[].concat(e);return o.range(t).map(function(e,t){return n[t]||n[0]})},i.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=i.util.ensureArray(e[t],n)}),e},i.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},i.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},i.util.sumArrays=function(e,t){return o.zip(e,t).map(function(e,t){return o.sum(e)})},i.util.arrayLast=function(e){return e[e.length-1]},i.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return n===-2},i.util.flattenArray=function(e){for(var t=[];!i.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},i.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},i.util.convertToCartesian=function(e,t){var n=t*Math.PI/180,r=e*Math.cos(n),o=e*Math.sin(n);return[r,o]},i.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},i.util.getMousePos=function(e){var t=o.mouse(e.node()),n=t[0],r=t[1],i={};return i.x=n,i.y=r,i.pos=t,i.angle=180*(Math.atan2(r,n)+Math.PI)/Math.PI,i.radius=Math.sqrt(n*n+r*r),i},i.util.duplicatesCount=function(e){for(var t,n={},r={},o=0,i=e.length;o0)){var s=o.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({"class":"line",d:p(a),transform:function(t,n){return"rotate("+(e.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return v.fill(n,r,i)},"fill-opacity":0,stroke:function(e,t){return v.stroke(n,r,i)},"stroke-width":function(e,t){return v["stroke-width"](n,r,i)},"stroke-dasharray":function(e,t){return v["stroke-dasharray"](n,r,i)},opacity:function(e,t){return v.opacity(n,r,i)},display:function(e,t){return v.display(n,r,i)}})}};var h=e.angularScale.range(),d=Math.abs(h[1]-h[0])/l[0].length*Math.PI/180,m=o.svg.arc().startAngle(function(e){return-d/2}).endAngle(function(e){return d/2}).innerRadius(function(t){return e.radialScale(c+(t[2]||0))}).outerRadius(function(t){return e.radialScale(c+(t[2]||0))+e.radialScale(t[1])});f.arc=function(t,n,r){o.select(this).attr({"class":"mark arc",d:m,transform:function(t,n){return"rotate("+(e.orientation+u(t[0])+90)+")"}})};var v={fill:function(e,n,r){return t[r].data.color},stroke:function(e,n,r){return t[r].data.strokeColor},"stroke-width":function(e,n,r){return t[r].data.strokeSize+"px"},"stroke-dasharray":function(e,n,r){return s[t[r].data.strokeDash]},opacity:function(e,n,r){return t[r].data.opacity},display:function(e,n,r){return"undefined"==typeof t[r].data.visible||t[r].data.visible?"block":"none"}},g=o.select(this).selectAll("g.layer").data(l);g.enter().append("g").attr({"class":"layer"});var y=g.selectAll("path.mark").data(function(e,t){return e});y.enter().append("path").attr({"class":"mark"}),y.style(v).each(f[e.geometryType]),y.exit().remove(),g.exit().remove()})}var t,n=[i.PolyChart.defaultConfig()],r=o.dispatch("hover"),s={solid:"none",dash:[5,2],dot:[2,5]};return e.config=function(e){return arguments.length?(e.forEach(function(e,t){n[t]||(n[t]={}),a(n[t],i.PolyChart.defaultConfig()),a(n[t],e)}),this):n},e.getColorScale=function(){return t},o.rebind(e,r,"on"),e},i.PolyChart.defaultConfig=function(){var e={data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:o.scale.category20()}};return e},i.BarChart=function(){return i.PolyChart()},i.BarChart.defaultConfig=function(){var e={geometryConfig:{geometryType:"bar"}};return e},i.AreaChart=function(){return i.PolyChart()},i.AreaChart.defaultConfig=function(){var e={geometryConfig:{geometryType:"arc"}};return e},i.DotPlot=function(){return i.PolyChart()},i.DotPlot.defaultConfig=function(){var e={geometryConfig:{geometryType:"dot",dotType:"circle"}};return e},i.LinePlot=function(){return i.PolyChart()},i.LinePlot.defaultConfig=function(){var e={geometryConfig:{geometryType:"line"}};return e},i.Legend=function(){function e(){var n=t.legendConfig,r=t.data.map(function(e,t){return[].concat(e).map(function(e,r){var o=a({},n.elements[t]);return o.name=e,o.color=[].concat(n.elements[t].color)[r],o})}),i=o.merge(r);i=i.filter(function(e,t){return n.elements[t]&&(n.elements[t].visibleInLegend||"undefined"==typeof n.elements[t].visibleInLegend)}),n.reverseOrder&&(i=i.reverse());var s=n.container;("string"==typeof s||s.nodeName)&&(s=o.select(s));var l=i.map(function(e,t){return e.color}),u=n.fontSize,c=null==n.isContinuous?"number"==typeof i[0]:n.isContinuous,f=c?n.height:u*i.length,p=s.classed("legend-group",!0),h=p.selectAll("svg").data([0]),d=h.enter().append("svg").attr({width:300,height:f+u,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});d.append("g").classed("legend-axis",!0),d.append("g").classed("legend-marks",!0);var m=o.range(i.length),v=o.scale[c?"linear":"ordinal"]().domain(m).range(l),g=o.scale[c?"linear":"ordinal"]().domain(m)[c?"range":"rangePoints"]([0,f]),y=function(e,t){var n=3*t;return"line"===e?"M"+[[-t/2,-t/12],[t/2,-t/12],[t/2,t/12],[-t/2,t/12]]+"Z":o.svg.symbolTypes.indexOf(e)!=-1?o.svg.symbol().type(e).size(n)():o.svg.symbol().type("square").size(n)()};if(c){var b=h.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(l);b.enter().append("stop"),b.attr({offset:function(e,t){return t/(l.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),h.append("rect").classed("legend-mark",!0).attr({height:n.height,width:n.colorBandWidth,fill:"url(#grad1)"})}else{var x=h.select(".legend-marks").selectAll("path.legend-mark").data(i);x.enter().append("path").classed("legend-mark",!0),x.attr({transform:function(e,t){return"translate("+[u/2,g(t)+u/2]+")"},d:function(e,t){var n=e.symbol;return y(n,u)},fill:function(e,t){return v(t)}}),x.exit().remove()}var _=o.svg.axis().scale(g).orient("right"),w=h.select("g.legend-axis").attr({transform:"translate("+[c?n.colorBandWidth:u,u/2]+")"}).call(_);return w.selectAll(".domain").style({fill:"none",stroke:"none"}),w.selectAll("line").style({fill:"none",stroke:c?n.textColor:"none"}),w.selectAll("text").style({fill:n.textColor,"font-size":n.fontSize}).text(function(e,t){return i[t].name}),e}var t=i.Legend.defaultConfig(),n=o.dispatch("hover");return e.config=function(e){return arguments.length?(a(t,e),this):t},o.rebind(e,n,"on"),e},i.Legend.defaultConfig=function(e,t){var n={data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}};return n},i.tooltipPanel=function(){var e,t,n,r={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},s="tooltip-"+i.tooltipPanel.uid++,l=10,u=function(){e=r.container.selectAll("g."+s).data([0]);var o=e.enter().append("g").classed(s,!0).style({"pointer-events":"none",display:"none"});return n=o.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=o.append("text").attr({dx:r.padding+l,dy:.3*+r.fontSize}),u};return u.text=function(i){var a=o.hsl(r.color).l,s=a>=.5?"#aaa":"white",c=a>=.5?"black":"white",f=i||"";t.style({fill:c,"font-size":r.fontSize+"px"}).text(f);var p=r.padding,h=t.node().getBBox(),d={fill:r.color,stroke:s,"stroke-width":"2px"},m=h.width+2*p+l,v=h.height+2*p;return n.attr({d:"M"+[[l,-v/2],[l,-v/4],[r.hasTick?0:l,0],[l,v/4],[l,v/2],[m,v/2],[m,-v/2]].join("L")+"Z"}).style(d),e.attr({transform:"translate("+[l,-v/2+2*p]+")"}),e.style({display:"block"}),u},u.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),u},u.hide=function(){if(e)return e.style({display:"none"}),u},u.show=function(){if(e)return e.style({display:"block"}),u},u.config=function(e){return a(r,e),u},u},i.tooltipPanel.uid=1,i.adapter={},i.adapter.plotly=function(){var e={};return e.convert=function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=a({},e),o=[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]];return o.forEach(function(e,n){i.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",r.dotVisible===!0?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var r=i.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var o=r.indexOf(e.geometry);o!=-1&&(n.data[t].groupId=o)})}if(e.layout){var s=a({},e.layout),l=[[s,["plot_bgcolor"],["backgroundColor"]],[s,["showlegend"],["showLegend"]],[s,["radialaxis"],["radialAxis"]],[s,["angularaxis"],["angularAxis"]],[s.angularaxis,["showline"],["gridLinesVisible"]],[s.angularaxis,["showticklabels"],["labelsVisible"]],[s.angularaxis,["nticks"],["ticksCount"]],[s.angularaxis,["tickorientation"],["tickOrientation"]],[s.angularaxis,["ticksuffix"],["ticksSuffix"]],[s.angularaxis,["range"],["domain"]],[s.angularaxis,["endpadding"],["endPadding"]],[s.radialaxis,["showline"],["gridLinesVisible"]],[s.radialaxis,["tickorientation"],["tickOrientation"]],[s.radialaxis,["ticksuffix"],["ticksSuffix"]],[s.radialaxis,["range"],["domain"]],[s.angularAxis,["showline"],["gridLinesVisible"]],[s.angularAxis,["showticklabels"],["labelsVisible"]],[s.angularAxis,["nticks"],["ticksCount"]],[s.angularAxis,["tickorientation"],["tickOrientation"]],[s.angularAxis,["ticksuffix"],["ticksSuffix"]],[s.angularAxis,["range"],["domain"]],[s.angularAxis,["endpadding"],["endPadding"]],[s.radialAxis,["showline"],["gridLinesVisible"]],[s.radialAxis,["tickorientation"],["tickOrientation"]],[s.radialAxis,["ticksuffix"],["ticksSuffix"]],[s.radialAxis,["range"],["domain"]],[s.font,["outlinecolor"],["outlineColor"]],[s.legend,["traceorder"],["reverseOrder"]],[s,["labeloffset"],["labelOffset"]],[s,["defaultcolorrange"],["defaultColorRange"]]]; +if(l.forEach(function(e,n){i.util.translator.apply(null,e.concat(t))}),t?("undefined"!=typeof s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&"undefined"!=typeof s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&"undefined"!=typeof s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&"boolean"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder="normal"!=s.legend.reverseOrder),s.legend&&"boolean"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?"reversed":"normal",delete s.legend.reverseOrder),s.margin&&"undefined"!=typeof s.margin.t){var u=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],f={};o.entries(s.margin).forEach(function(e,t){f[c[u.indexOf(e.key)]]=e.value}),s.margin=f}t&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),n.layout=s}return n},e}},{"../../plotly":402,"./micropolar_manager":458,d3:113}],458:[function(e,t,n){"use strict";var r=e("../../plotly"),o=e("d3"),i=e("./undo_manager"),a=t.exports={},s=r.Lib.extendDeepAll;a.framework=function(e){function t(t,i){return i&&(f=i),o.select(o.select(f).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),n=n?s(n,t):t,u||(u=r.micropolar.Axis()),c=r.micropolar.adapter.plotly().convert(n),u.config(c).render(f),e.data=n.data,e.layout=n.layout,a.fillLayout(e),n}var n,l,u,c,f,p=new i;return t.isPolar=!0,t.svg=function(){return u.svg()},t.getConfig=function(){return n},t.getLiveConfig=function(){return r.micropolar.adapter.plotly().convert(u.getLiveConfig(),!0)},t.getLiveScales=function(){return{t:u.angularScale(),r:u.radialScale()}},t.setUndoPoint=function(){var e=this,t=r.micropolar.util.cloneJson(n);!function(t,n){p.add({undo:function(){n&&e(n)},redo:function(){e(t)}})}(t,l),l=r.micropolar.util.cloneJson(t)},t.undo=function(){p.undo()},t.redo=function(){p.redo()},t},a.fillLayout=function(e){var t=o.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),a={width:800,height:600,paper_bgcolor:r.Color.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=s(a,e.layout)}},{"../../plotly":402,"./undo_manager":459,d3:113}],459:[function(e,t,n){"use strict";t.exports=function(){function e(e,t){return e?(o=!0,e[t](),o=!1,this):this}var t,n=[],r=-1,o=!1;return{add:function(e){return o?this:(n.splice(r+1,n.length-r),n.push(e),r=n.length-1,this)},setCallback:function(e){t=e},undo:function(){var o=n[r];return o?(e(o,"undo"),r-=1,t&&t(o.undo),this):this},redo:function(){var o=n[r+1];return o?(e(o,"redo"),r+=1,t&&t(o.redo),this):this},clear:function(){n=[],r=-1},hasUndo:function(){return r!==-1},hasRedo:function(){return r=a&&(h.min=0,d.min=0,m.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}var o=e("../../../components/color"),i=e("../../subplot_defaults"),a=e("./layout_attributes"),s=e("./axis_defaults"),l=["aaxis","baxis","caxis"];t.exports=function(e,t,n){i(e,t,n,{type:"ternary",attributes:a,handleDefaults:r,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../../components/color":303,"../../subplot_defaults":460,"./axis_defaults":464,"./layout_attributes":466}],466:[function(e,t,n){"use strict";var r=e("../../../components/color/attributes"),o=e("./axis_attributes");t.exports={domain:{x:{valType:"info_array",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1]},y:{valType:"info_array",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1]}},bgcolor:{valType:"color",dflt:r.background},sum:{valType:"number",dflt:1,min:0},aaxis:o,baxis:o,caxis:o}},{"../../../components/color/attributes":302,"./axis_attributes":463}],467:[function(e,t,n){"use strict";function r(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework()}function o(e){i.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}var i=e("d3"),a=e("tinycolor2"),s=e("../../plotly"),l=e("../../lib"),u=e("../../components/color"),c=e("../../components/drawing"),f=e("../cartesian/set_convert"),p=e("../../lib/extend").extendFlat,h=e("../cartesian/axes"),d=e("../../lib/filter_visible"),m=e("../../components/dragelement"),v=e("../../components/titles"),g=e("../cartesian/select"),y=e("../cartesian/constants"),b=e("../cartesian/graph_interact");t.exports=r;var x=r.prototype;x.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={}},x.plot=function(e,t){var n,r=this,o=t[r.id],i=t._size;l.getPlotDiv(r.plotContainer.node())!==r.graphDiv&&(r.init(r.graphDiv._fullLayout),r.makeFramework()),r.adjustLayout(o,i);var a=r.traceHash,s={};for(n=0;n_*y?(i=y,o=i*_):(o=g,i=o/_),a=m*o/g,s=v*i/y,n=t.l+t.w*h-o/2,r=t.t+t.h*(1-d)-i/2,l.x0=n,l.y0=r,l.w=o,l.h=i,l.sum=b,l.xaxis={type:"linear",range:[x+2*T-b,b-x-2*w],domain:[h-a/2,h+a/2],_id:"x",_gd:l.graphDiv},f(l.xaxis),l.xaxis.setScale(),l.yaxis={type:"linear",range:[x,b-w-T],domain:[d-s/2,d+s/2],_id:"y",_gd:l.graphDiv},f(l.yaxis),l.yaxis.setScale();var C=l.yaxis.domain[0],E=l.aaxis=p({},e.aaxis,{range:[x,b-w-T],side:"left",_counterangle:30,tickangle:(+e.aaxis.tickangle||0)-30,domain:[C,C+s*_],_axislayer:l.layers.aaxis,_gridlayer:l.layers.agrid,_pos:0,_gd:l.graphDiv,_id:"y",_length:o,_gridpath:"M0,0l"+i+",-"+o/2});f(E);var k=l.baxis=p({},e.baxis,{range:[b-x-T,w],side:"bottom",_counterangle:30,domain:l.xaxis.domain,_axislayer:l.layers.baxis,_gridlayer:l.layers.bgrid,_counteraxis:l.aaxis,_pos:0,_gd:l.graphDiv,_id:"x",_length:o,_gridpath:"M0,0l-"+o/2+",-"+i});f(k),E._counteraxis=k;var S=l.caxis=p({},e.caxis,{range:[b-x-w,T],side:"right",_counterangle:30,tickangle:(+e.caxis.tickangle||0)+30,domain:[C,C+s*_],_axislayer:l.layers.caxis,_gridlayer:l.layers.cgrid,_counteraxis:l.baxis,_pos:0,_gd:l.graphDiv,_id:"y",_length:o,_gridpath:"M0,0l-"+i+","+o/2});f(S);var A="M"+n+","+(r+i)+"h"+o+"l-"+o/2+",-"+i+"Z";l.clipDef.select("path").attr("d",A),l.layers.plotbg.select("path").attr("d",A);var P="translate("+n+","+r+")";l.plotContainer.selectAll(".scatterlayer,.maplayer,.zoom").attr("transform",P);var M="translate("+n+","+(r+i)+")";l.layers.baxis.attr("transform",M),l.layers.bgrid.attr("transform",M);var O="translate("+(n+o/2)+","+r+")rotate(30)";l.layers.aaxis.attr("transform",O),l.layers.agrid.attr("transform",O);var D="translate("+(n+o/2)+","+r+")rotate(-30)";l.layers.caxis.attr("transform",D),l.layers.cgrid.attr("transform",D),l.drawAxes(!0),l.plotContainer.selectAll(".crisp").classed("crisp",!1);var L=l.layers.axlines;L.select(".aline").attr("d",E.showline?"M"+n+","+(r+i)+"l"+o/2+",-"+i:"M0,0").call(u.stroke,E.linecolor||"#000").style("stroke-width",(E.linewidth||0)+"px"),L.select(".bline").attr("d",k.showline?"M"+n+","+(r+i)+"h"+o:"M0,0").call(u.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),L.select(".cline").attr("d",S.showline?"M"+(n+o/2)+","+r+"l"+o/2+","+i:"M0,0").call(u.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px")},x.drawAxes=function(e){var t=this,n=t.graphDiv,r=t.id.substr(7)+"title",o=t.aaxis,i=t.baxis,a=t.caxis;if(h.doTicks(n,o,!0),h.doTicks(n,i,!0),h.doTicks(n,a,!0),e){var s=Math.max(o.showticklabels?o.tickfont.size/2:0,(a.showticklabels?.75*a.tickfont.size:0)+("outside"===a.ticks?.87*a.ticklen:0));v.draw(n,"a"+r,{propContainer:o,propName:t.id+".aaxis.title",dfltName:"Component A",attributes:{x:t.x0+t.w/2,y:t.y0-o.titlefont.size/3-s,"text-anchor":"middle"}});var l=(i.showticklabels?i.tickfont.size:0)+("outside"===i.ticks?i.ticklen:0)+3;v.draw(n,"b"+r,{propContainer:i,propName:t.id+".baxis.title",dfltName:"Component B",attributes:{x:t.x0-l,y:t.y0+t.h+.83*i.titlefont.size+l,"text-anchor":"middle"}}),v.draw(n,"c"+r,{propContainer:a,propName:t.id+".caxis.title",dfltName:"Component C",attributes:{x:t.x0+t.w+l,y:t.y0+t.h+.83*a.titlefont.size+l,"text-anchor":"middle"}})}};var w=y.MINZOOM/2+.87,T="m-0.87,.5h"+w+"v3h-"+(w+5.2)+"l"+(w/2+2.6)+",-"+(.87*w+4.5)+"l2.6,1.5l-"+w/2+","+.87*w+"Z",C="m0.87,.5h-"+w+"v3h"+(w+5.2)+"l-"+(w/2+2.6)+",-"+(.87*w+4.5)+"l-2.6,1.5l"+w/2+","+.87*w+"Z",E="m0,1l"+w/2+","+.87*w+"l2.6,-1.5l-"+(w/2+2.6)+",-"+(.87*w+4.5)+"l-"+(w/2+2.6)+","+(.87*w+4.5)+"l2.6,1.5l"+w/2+",-"+.87*w+"Z",k="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",S=!0;x.initInteractions=function(){function e(e,t,n){var r=I.getBoundingClientRect();x=t-r.left,w=n-r.top,A={a:F.aaxis.range[0],b:F.baxis.range[1],c:F.caxis.range[1]},M=A,P=F.aaxis.range[1]-A.a,O=a(F.graphDiv._fullLayout[F.id].bgcolor).getLuminance(),D="M0,"+F.h+"L"+F.w/2+", 0L"+F.w+","+F.h+"Z",L=!1,j=B.append("path").attr("class","zoombox").style({fill:O>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",D),R=B.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),d()}function t(e,t){return 1-t/F.h}function n(e,t){return 1-(e+(F.h-t)/Math.sqrt(3))/F.w}function r(e,t){return(e-(F.h-t)/Math.sqrt(3))/F.w}function i(e,o){var i=x+e,a=w+o,s=Math.max(0,Math.min(1,t(x,w),t(i,a))),l=Math.max(0,Math.min(1,n(x,w),n(i,a))),u=Math.max(0,Math.min(1,r(x,w),r(i,a))),c=(s/2+u)*F.w,f=(1-s/2-l)*F.w,p=(c+f)/2,h=f-c,d=(1-s)*F.h,m=d-h/_;h.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),R.transition().style("opacity",1).duration(200),L=!0)}function c(e,t){if(M===A)return 2===t&&v(),o(N);o(N);var n={};n[F.id+".aaxis.min"]=M.a,n[F.id+".baxis.min"]=M.b,n[F.id+".caxis.min"]=M.c,s.relayout(N,n),S&&N.data&&N._context.showTips&&(l.notifier("Double-click to
zoom back out","long"),S=!1)}function f(){A={a:F.aaxis.range[0],b:F.baxis.range[1],c:F.caxis.range[1]},M=A}function p(e,t){var n=e/F.xaxis._m,r=t/F.yaxis._m;M={a:A.a-r,b:A.b+(n+r)/2,c:A.c-(n-r)/2};var o=[M.a,M.b,M.c].sort(),i={a:o.indexOf(M.a),b:o.indexOf(M.b),c:o.indexOf(M.c)};o[0]<0&&(o[1]+o[0]/2<0?(o[2]+=o[0]+o[1],o[0]=o[1]=0):(o[2]+=o[0]/2,o[1]+=o[0]/2,o[0]=0),M={a:o[i.a],b:o[i.b],c:o[i.c]},t=(A.a-M.a)*F.yaxis._m,e=(A.c-M.c-A.b+M.b)*F.xaxis._m);var a="translate("+(F.x0+e)+","+(F.y0+t)+")";F.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",a),F.aaxis.range=[M.a,F.sum-M.b-M.c],F.baxis.range=[F.sum-M.a-M.c,M.b],F.caxis.range=[F.sum-M.a-M.b,M.c],F.drawAxes(!1),F.plotContainer.selectAll(".crisp").classed("crisp",!1)}function h(e,t){if(e){var n={};n[F.id+".aaxis.min"]=M.a,n[F.id+".baxis.min"]=M.b,n[F.id+".caxis.min"]=M.c,s.relayout(N,n)}else 2===t&&v()}function d(){F.plotContainer.selectAll(".select-outline").remove()}function v(){var e={};e[F.id+".aaxis.min"]=0,e[F.id+".baxis.min"]=0,e[F.id+".caxis.min"]=0,N.emit("plotly_doubleclick",null),s.relayout(N,e)}var x,w,A,P,M,O,D,L,j,R,F=this,I=F.layers.plotbg.select("path").node(),N=F.graphDiv,B=F.layers.zoom,z={element:I,gd:N,plotinfo:{plot:B},doubleclick:v,subplot:F.id,prepFn:function(t,n,r){z.xaxes=[F.xaxis],z.yaxes=[F.yaxis];var o=N._fullLayout.dragmode;t.shiftKey&&(o="pan"===o?"zoom":"pan"),"lasso"===o?z.minDrag=1:z.minDrag=void 0,"zoom"===o?(z.moveFn=i,z.doneFn=c,e(t,n,r)):"pan"===o?(z.moveFn=p,z.doneFn=h,f(),d()):"select"!==o&&"lasso"!==o||g(t,n,r,z,o)}};I.onmousemove=function(e){b.hover(N,e,F.id),N._fullLayout._lasthover=I,N._fullLayout._hoversubplot=F.id},I.onmouseout=function(e){N._dragging||m.unhover(N,e)},I.onclick=function(e){b.click(N,e)},m.init(z)}},{"../../components/color":303,"../../components/dragelement":324,"../../components/drawing":326,"../../components/titles":366,"../../lib":382,"../../lib/extend":377,"../../lib/filter_visible":378,"../../plotly":402,"../cartesian/axes":405,"../cartesian/constants":410,"../cartesian/graph_interact":412,"../cartesian/select":418,"../cartesian/set_convert":419,d3:113,tinycolor2:274}],468:[function(e,t,n){"use strict";function r(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function o(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}var i=e("../plotly"),a=i.Lib.extendFlat,s=i.Lib.extendDeep;t.exports=function(e,t){e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var n,l=e.data,u=e.layout,c=s([],l),f=s({},u,r(t.tileClass));if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var p=Object.keys(f);for(n=0;n=2?i(e):e>t?Math.ceil(e):Math.floor(e)}var p,h,d,m;if("h"===s.orientation?(d=c.c2p(n.poffset+t.p,!0),m=c.c2p(n.poffset+t.p+n.barwidth,!0),p=u.c2p(t.b,!0),h=u.c2p(t.s+t.b,!0)):(p=u.c2p(n.poffset+t.p,!0),h=u.c2p(n.poffset+t.p+n.barwidth,!0),m=c.c2p(t.s+t.b,!0),d=c.c2p(t.b,!0)),!(o(p)&&o(h)&&o(d)&&o(m)&&p!==h&&d!==m))return void r.select(this).remove();var v=(t.mlw+1||s.marker.line.width+1||(t.trace?t.trace.marker.line.width:0)+1)-1,g=r.round(v/2%1,2);if(!e._context.staticPlot){var y=a.opacity(t.mc||s.marker.color),b=y<1||v>.01?i:l;p=b(p,h),h=b(h,p),d=b(d,m),m=b(m,d)}r.select(this).attr("d","M"+p+","+d+"V"+m+"H"+h+"V"+d+"Z")})}),p.call(s.plot,t)}},{"../../components/color":303,"../../components/errorbars":332,"../../lib":382,"./arrays_to_calcdata":475,d3:113,"fast-isnumeric":117}],484:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../plots/plots"),i=e("../../plots/cartesian/axes"),a=e("../../lib");t.exports=function(e,t){ +var n,s,l=e._fullLayout,u=t.x(),c=t.y();["v","h"].forEach(function(f){function p(t){function n(e){e[d]=e.p+p}var r=[];t.forEach(function(t){e.calcdata[t].forEach(function(e){r.push(e.p)})});var o=a.distinctVals(r),s=o.vals,u=o.minDiff,c=!1,f=[];"group"===l.barmode&&t.forEach(function(t){c||(e.calcdata[t].forEach(function(e){c||f.forEach(function(t){Math.abs(e.p-t)C+L&&(P=!0,C=_))}i.expand(g,[E,C],{tozero:!0,padded:P})}else{var j=function(e){return e[m]=e.s,e.s};for(n=0;n1||0===s.bargap&&0===s.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(e){var t=e[0].trace,n=t.marker,a=n.line,s=(t._input||{}).marker||{},l=i.tryColorscale(n,s,""),u=i.tryColorscale(n,s,"line.");r.select(this).selectAll("path").each(function(e){var t,i,s=(e.mlw+1||a.width+1)-1,c=r.select(this);t="mc"in e?e.mcc=l(e.mc):Array.isArray(n.color)?o.defaultLine:n.color,c.style("stroke-width",s+"px").call(o.fill,t),s&&(i="mlc"in e?e.mlcc=u(e.mlc):Array.isArray(a.color)?o.defaultLine:a.color,c.call(o.stroke,i))})}),t.call(a.style)}},{"../../components/color":303,"../../components/drawing":326,"../../components/errorbars":332,d3:113}],486:[function(e,t,n){"use strict";var r=e("../../components/color"),o=e("../../components/colorscale/has_colorscale"),i=e("../../components/colorscale/defaults");t.exports=function(e,t,n,a,s){n("marker.color",a),o(e,"marker")&&i(e,t,s,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),o(e,"marker.line")&&i(e,t,s,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width")}},{"../../components/color":303,"../../components/colorscale/defaults":313,"../../components/colorscale/has_colorscale":316}],487:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),o=e("../../components/color/attributes"),i=e("../../lib/extend").extendFlat,a=r.marker,s=a.line;t.exports={y:{valType:"data_array"},x:{valType:"data_array"},x0:{valType:"any"},y0:{valType:"any"},whiskerwidth:{valType:"number",min:0,max:1,dflt:.5},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],dflt:"outliers"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],dflt:!1},jitter:{valType:"number",min:0,max:1},pointpos:{valType:"number",min:-2,max:2},orientation:{valType:"enumerated",values:["v","h"]},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)"},symbol:i({},a.symbol,{arrayOk:!1}),opacity:i({},a.opacity,{arrayOk:!1,dflt:1}),size:i({},a.size,{arrayOk:!1}),color:i({},a.color,{arrayOk:!1}),line:{color:i({},s.color,{arrayOk:!1,dflt:o.defaultLine}),width:i({},s.width,{arrayOk:!1,dflt:0}),outliercolor:{valType:"color"},outlierwidth:{valType:"number",min:0,dflt:1}}},line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:2}},fillcolor:r.fillcolor}},{"../../components/color/attributes":302,"../../lib/extend":377,"../scatter/attributes":556}],488:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../lib"),i=e("../../plots/cartesian/axes");t.exports=function(e,t){function n(e,t,n,i,a){var s;return n in t?d=i.makeCalcdata(t,n):(s=n+"0"in t?t[n+"0"]:"name"in t&&("category"===i.type||r(t.name)&&["linear","log"].indexOf(i.type)!==-1||o.isDateTime(t.name)&&"date"===i.type)?t.name:e.numboxes,s=i.d2c(s),d=a.map(function(){return s})),d}function a(e,t,n,i,a){var s,l,u,c,f=i.length,p=t.length,h=[],d=[];for(s=0;s=0&&u1,g=n.dPos*(1-p.boxgap)*(1-p.boxgroupgap)/(v?e.numboxes:1),y=v?2*n.dPos*(-.5+(n.boxnum+.5)/e.numboxes)*(1-p.boxgap):0,b=g*m.whiskerwidth;return m.visible!==!0||n.emptybox?void i.select(this).remove():("h"===m.orientation?(l=d,f=h):(l=h,f=d),n.bPos=y,n.bdPos=g,r(),i.select(this).selectAll("path.box").data(a.identity).enter().append("path").attr("class","box").each(function(e){var t=l.c2p(e.pos+y,!0),n=l.c2p(e.pos+y-g,!0),r=l.c2p(e.pos+y+g,!0),o=l.c2p(e.pos+y-b,!0),s=l.c2p(e.pos+y+b,!0),u=f.c2p(e.q1,!0),c=f.c2p(e.q3,!0),p=a.constrain(f.c2p(e.med,!0),Math.min(u,c)+1,Math.max(u,c)-1),h=f.c2p(m.boxpoints===!1?e.min:e.lf,!0),d=f.c2p(m.boxpoints===!1?e.max:e.uf,!0);"h"===m.orientation?i.select(this).attr("d","M"+p+","+n+"V"+r+"M"+u+","+n+"V"+r+"H"+c+"V"+n+"ZM"+u+","+t+"H"+h+"M"+c+","+t+"H"+d+(0===m.whiskerwidth?"":"M"+h+","+o+"V"+s+"M"+d+","+o+"V"+s)):i.select(this).attr("d","M"+n+","+p+"H"+r+"M"+n+","+u+"H"+r+"V"+c+"H"+n+"ZM"+t+","+u+"V"+h+"M"+t+","+c+"V"+d+(0===m.whiskerwidth?"":"M"+o+","+h+"H"+s+"M"+o+","+d+"H"+s))}),m.boxpoints&&i.select(this).selectAll("g.points").data(function(e){return e.forEach(function(e){e.t=n,e.trace=m}),e}).enter().append("g").attr("class","points").selectAll("path").data(function(e){var t,n,r,i,s,l,f,p="all"===m.boxpoints?e.val:e.val.filter(function(t){return te.uf}),h=(e.q3-e.q1)*c,d=[],v=0;if(m.jitter){for(t=0;te.lo&&(r.so=!0),r})}).enter().append("path").call(s.translatePoints,h,d),void(m.boxmean&&i.select(this).selectAll("path.mean").data(a.identity).enter().append("path").attr("class","mean").style("fill","none").each(function(e){var t=l.c2p(e.pos+y,!0),n=l.c2p(e.pos+y-g,!0),r=l.c2p(e.pos+y+g,!0),o=f.c2p(e.mean,!0),a=f.c2p(e.mean-e.sd,!0),s=f.c2p(e.mean+e.sd,!0);"h"===m.orientation?i.select(this).attr("d","M"+o+","+n+"V"+r+("sd"!==m.boxmean?"":"m0,0L"+a+","+t+"L"+o+","+n+"L"+s+","+t+"Z")):i.select(this).attr("d","M"+n+","+o+"H"+r+("sd"!==m.boxmean?"":"m0,0L"+t+","+a+"L"+n+","+o+"L"+t+","+s+"Z"))})))})}},{"../../components/drawing":326,"../../lib":382,d3:113}],495:[function(e,t,n){"use strict";var r=e("../../plots/plots"),o=e("../../plots/cartesian/axes"),i=e("../../lib");t.exports=function(e,t){var n,a,s,l,u=e._fullLayout,c=t.x(),f=t.y(),p=["v","h"];for(a=0;al&&(t.z=c.slice(0,l)),s("locationmode"),s("text"),s("marker.line.color"),s("marker.line.width"),o(e,t,a,s,{prefix:"",cLetter:"z"}),void s("hoverinfo",1===a._dataLength?"location+z+text":void 0)):void(t.visible=!1)}},{"../../components/colorscale/defaults":313,"../../lib":382,"./attributes":497}],500:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.colorbar=e("../heatmap/colorbar"),r.calc=e("./calc"),r.plot=e("./plot").plot,r.moduleType="trace",r.name="choropleth",r.basePlotModule=e("../../plots/geo"),r.categories=["geo","noOpacity"],r.meta={},t.exports=r},{"../../plots/geo":426,"../heatmap/colorbar":514,"./attributes":497,"./calc":498,"./defaults":499,"./plot":501}],501:[function(e,t,n){"use strict";function r(e,t){function n(t){var n=e.mockAxis;return a.tickText(n,n.c2l(t),"hover").text}var r=t.hoverinfo;if("none"===r)return function(e){delete e.nameLabel,delete e.textLabel};var o="all"===r?v.hoverinfo.flags:r.split("+"),i=o.indexOf("name")!==-1,s=o.indexOf("location")!==-1,l=o.indexOf("z")!==-1,u=o.indexOf("text")!==-1,c=!i&&s;return function(e){var r=[];c?e.nameLabel=e.id:(i&&(e.nameLabel=t.name),s&&r.push(e.id)),l&&r.push(n(e.z)),u&&r.push(e.tx),e.textLabel=r.join("
")}}function o(e){return function(t,n){return{points:[{data:e._input,fullData:e,curveNumber:e.index,pointNumber:n,location:t.id,z:t.z}]}}}var i=e("d3"),a=e("../../plots/cartesian/axes"),s=e("../../plots/cartesian/graph_interact"),l=e("../../components/color"),u=e("../../components/drawing"),c=e("../../components/colorscale/get_scale"),f=e("../../components/colorscale/make_scale_function"),p=e("../../lib/topojson_utils").getTopojsonFeatures,h=e("../../lib/geo_location_utils").locationToFeature,d=e("../../lib/array_to_calc_item"),m=e("../../plots/geo/constants"),v=e("./attributes"),g=t.exports={};g.calcGeoJSON=function(e,t){for(var n,r=[],o=e.locations,i=o.length,a=p(e,t),s=(e.marker||{}).line||{},l=0;l0&&(r[0].trace=e),r},g.plot=function(e,t,n){var a,l=e.framework,u=l.select("g.choroplethlayer"),c=l.select("g.baselayer"),f=l.select("g.baselayeroverchoropleth"),p=m.baseLayersOverChoropleth,h=u.selectAll("g.trace.choropleth").data(t,function(e){return e.uid});h.enter().append("g").attr("class","trace choropleth"),h.exit().remove(),h.each(function(t){function n(t,n){if(e.showHover){var r=e.projection(t.properties.ct);u(t),s.loneHover({x:r[0],y:r[1],name:t.nameLabel,text:t.textLabel},{container:e.hoverContainer.node()}),f=c(t,n),e.graphDiv.emit("plotly_hover",f)}}function a(t,n){e.graphDiv.emit("plotly_click",c(t,n))}var l=g.calcGeoJSON(t,e.topojson),u=r(e,t),c=o(t),f=null,p=i.select(this).selectAll("path.choroplethlocation").data(l);p.enter().append("path").classed("choroplethlocation",!0).on("mouseover",n).on("click",a).on("mouseout",function(){s.loneUnhover(e.hoverContainer),e.graphDiv.emit("plotly_unhover",f)}).on("mousedown",function(){s.loneUnhover(e.hoverContainer)}).on("mouseup",n),p.exit().remove()}),f.selectAll("*").remove();for(var d=0;de?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(5===n||10===n){var r=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>r?5===n?713:1114:5===n?104:208}return 15===n?0:n}function a(e){var t,n,r,o,a,s,l,u,c,f=e[0].z,p=f.length,h=f[0].length,d=2===p||2===h;for(n=0;n20?(s=P[s][(l[0]||l[1])<0?0:1],e.crossings[a]=M[s]):delete e.crossings[a],l=A[s],!l){_.log("Found bad marching index:",s,t,e.level);break}if(h.push(p(e,t,l)),t[0]+=l[0],t[1]+=l[1],c(h[h.length-1],h[h.length-2])&&h.pop(),a=t.join(","),a===i&&l.join(",")===d||n&&(l[0]&&(t[0]<0||t[0]>v-2)||l[1]&&(t[1]<0||t[1]>m-2)))break;s=e.crossings[a]}1e4===o&&_.log("Infinite loop in contour?");var g,y,b,x,w,T,C,E=c(h[0],h[h.length-1]),k=0,S=.2*e.smoothing,O=[],D=0;for(o=1;o=D;o--)if(g=O[o],g=D&&g+O[y]20&&t?208===e||1114===e?r=0===n[0]?1:-1:o=0===n[1]?1:-1:C.indexOf(e)!==-1?o=1:k.indexOf(e)!==-1?r=1:E.indexOf(e)!==-1?o=-1:r=-1,[r,o]}function c(e,t){return Math.abs(e[0]-t[0])<.01&&Math.abs(e[1]-t[1])<.01}function f(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function p(e,t,n){var r=t[0]+Math.max(n[0],0),o=t[1]+Math.max(n[1],0),i=e.z[o][r],a=e.xaxis,s=e.yaxis;if(n[1]){var l=(e.level-i)/(e.z[o][r+1]-i);return[a.c2p((1-l)*e.x[r]+l*e.x[r+1],!0),s.c2p(e.y[o],!0)]}var u=(e.level-i)/(e.z[o+1][r]-i);return[a.c2p(e.x[r],!0),s.c2p((1-u)*e.y[o]+u*e.y[o+1],!0)]}function h(e,t,n){var r=e.plot.select(".maplayer").selectAll("g.contour."+n).data(t);return r.enter().append("g").classed("contour",!0).classed(n,!0),r.exit().remove(),r}function d(e,t,n){var r=e.selectAll("g.contourbg").data([0]);r.enter().append("g").classed("contourbg",!0);var o=r.selectAll("path").data("fill"===n.coloring?[0]:[]);o.enter().append("path"),o.exit().remove(),o.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function m(e,t,n,r){var o=e.selectAll("g.contourfill").data([0]);o.enter().append("g").classed("contourfill",!0);var i=o.selectAll("path").data("fill"===r.coloring?t:[]);i.enter().append("path"),i.exit().remove(),i.each(function(e){var t=v(e,n);t?x.select(this).attr("d",t).style("stroke","none"):x.select(this).remove()})}function v(e,t){function n(e){return Math.abs(e[1]-t[0][1])<.01}function r(e){return Math.abs(e[1]-t[2][1])<.01}function o(e){return Math.abs(e[0]-t[0][0])<.01}function i(e){return Math.abs(e[0]-t[2][0])<.01}for(var a,s,l,u,c,f,p=e.edgepaths.length||e.z[0][0]=0&&(s=v,u=c):Math.abs(a[1]-s[1])<.01?Math.abs(a[1]-v[1])<.01&&(v[0]-a[0])*(s[0]-v[0])>=0&&(s=v,u=c):_.log("endpt to newendpt is not vert. or horz.",a,s,v)}if(a=s,u>=0)break;p+="L"+s}if(u===e.edgepaths.length){_.log("unclosed perimeter path");break}h=u,m=d.indexOf(h)===-1,m&&(h=d[0],p+="Z")}for(h=0;h1;if(d&&!f&&"category"!==i.type){t=t.map(i.d2c);var m=t.length;if(!(m<=o))return c?t.slice(0,o):t.slice(0,o+1);if(c||h)u=t.slice(0,o);else if(1===o)u=[t[0]-.5,t[0]+.5];else{for(u=[1.5*t[0]-.5*t[1]],l=1;ly;r++)a=l(e,t,i(a));return a>y&&c.log("interp2d didn't converge quickly",a),e}function s(e){var t,n,r,o,i,a,s,l,u=[],c={},f=[],p=e[0],h=[],d=[0,0,0],m=g(e);for(n=0;n=0;i--)o=f[i],n=o[0],r=o[1],a=((c[[n-1,r]]||d)[2]+(c[[n+1,r]]||d)[2]+(c[[n,r-1]]||d)[2]+(c[[n,r+1]]||d)[2])/20,a&&(s[o]=[n,r,a],f.splice(i,1),l=!0);if(!l)throw"findEmpties iterated with no new neighbors";for(o in s)c[o]=s[o],u.push(s[o])}return u.sort(function(e,t){return t[2]-e[2]})}function l(e,t,n){var r,o,i,a,s,l,u,c,f,p,h,d,m,v=0;for(a=0;ad&&(v=Math.max(v,Math.abs(e[o][i]-h)/(m-d))))}return v}var u=e("fast-isnumeric"),c=e("../../lib"),f=e("../../plots/cartesian/axes"),p=e("../../plots/plots"),h=e("../histogram2d/calc"),d=e("../../components/colorscale/calc"),m=e("./has_columns"),v=e("./convert_column_xyz"),g=e("./max_row_length");t.exports=function(e,t){function n(e){S=t._input.zsmooth=t.zsmooth=!1,c.notifier("cannot fast-zsmooth: "+e)}var i,l,u,y,b,x,_,w,T=f.getFromId(e,t.xaxis||"x"),C=f.getFromId(e,t.yaxis||"y"),E=p.traceIs(t,"contour"),k=p.traceIs(t,"histogram"),S=E?"best":t.zsmooth;if(T._minDtick=0,C._minDtick=0,k){var A=h(e,t);i=A.x,l=A.x0,u=A.dx,y=A.y,b=A.y0,x=A.dy,_=A.z}else m(t)&&v(t,T,C),i=t.x?T.makeCalcdata(t,"x"):[],y=t.y?C.makeCalcdata(t,"y"):[],l=t.x0||0,u=t.dx||1,b=t.y0||0,x=t.dy||1,_=r(t),(E||t.connectgaps)&&(t._emptypoints=s(_),t._interpz=a(_,t._emptypoints,t._interpz));if("fast"===S)if("log"===T.type||"log"===C.type)n("log axis found");else if(!k){if(i.length){var P=(i[i.length-1]-i[0])/(i.length-1),M=Math.abs(P/100);for(w=0;wM){n("x scale is not linear");break}}if(y.length&&"fast"===S){var O=(y[y.length-1]-y[0])/(y.length-1),D=Math.abs(O/100);for(w=0;wD){n("y scale is not linear");break}}}var L=g(_),j="scaled"===t.xtype?"":t.x,R=o(t,j,l,u,L,T),F="scaled"===t.ytype?"":t.y,I=o(t,F,b,x,_.length,C);f.expand(T,R),f.expand(C,I);var N={x:R,y:I,z:_};if(d(t,_,"","z"),E&&t.contours&&"heatmap"===t.contours.coloring){var B="contour"===t.type?"heatmap":"histogram2d";N.xfill=o(B,j,l,u,L,T),N.yfill=o(B,F,b,x,_.length,C)}return[N]};var y=.01,b=[[-1,0],[1,0],[0,-1],[0,1]]},{"../../components/colorscale/calc":310,"../../lib":382,"../../plots/cartesian/axes":405,"../../plots/plots":454,"../histogram2d/calc":533,"./convert_column_xyz":515,"./has_columns":517,"./max_row_length":520,"fast-isnumeric":117}],514:[function(e,t,n){"use strict";var r=e("d3"),o=e("fast-isnumeric"),i=e("../../lib"),a=e("../../plots/plots"),s=e("../../components/colorscale/get_scale"),l=e("../../components/colorbar/draw");t.exports=function(e,t){var n=t[0].trace,u="cb"+n.uid,c=s(n.colorscale),f=n.zmin,p=n.zmax;if(o(f)||(f=i.aggNums(Math.min,null,n.z)),o(p)||(p=i.aggNums(Math.max,null,n.z)),e._fullLayout._infolayer.selectAll("."+u).remove(),!n.showscale)return void a.autoMargin(e,u);var h=t[0].t.cb=l(e,u);h.fillcolor(r.scale.linear().domain(c.map(function(e){return f+e[0]*(p-f)})).range(c.map(function(e){return e[1]}))).filllevels({start:f,end:p,size:(p-f)/254}).options(n.colorbar)()}},{"../../components/colorbar/draw":306,"../../components/colorscale/get_scale":315,"../../lib":382,"../../plots/plots":454,d3:113,"fast-isnumeric":117}],515:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n){var o,i=e.x.slice(),a=e.y.slice(),s=e.z,l=e.text,u=Math.min(i.length,a.length,s.length),c=void 0!==l&&!Array.isArray(l[0]);for(u=y[0].length||f<0||f>y.length)return}else{if(r.inbox(t-v[0],t-v[v.length-1])>i||r.inbox(n-g[0],n-g[g.length-1])>i)return;if(s){var T;for(x=[2*v[0]-v[1]],T=1;T0;)_=v.c2p(M[E]),E--;for(_0;)C=g.c2p(O[E]),E--;if(C0&&(r=!0);for(var s=0;si)return n[e]=i,i-n[e]}return 0},max:function(e,t,n,o){var i=o[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]=0&&gF;n--)if(c[n]){I=n;break}for(n=F;n<=I;n++)r(u[n])&&r(c[n])&&R.push({p:u[n],s:c[n],b:0});return R}}},{"../../lib":382,"../../plots/cartesian/axes":405,"./average":525,"./bin_functions":527,"./norm_functions":531,"fast-isnumeric":117}],529:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("../../components/color"),i=e("./bin_defaults"),a=e("../bar/style_defaults"),s=e("../../components/errorbars/defaults"),l=e("./attributes");t.exports=function(e,t,n,u){function c(n,o){return r.coerce(e,t,l,n,o)}var f=c("x"),p=c("y");c("text");var h=c("orientation",p&&!f?"h":"v"),d=t["v"===h?"x":"y"];if(!d||!d.length)return void(t.visible=!1);var m=t["h"===h?"x":"y"];m&&c("histfunc");var v="h"===h?["y"]:["x"];i(e,t,c,v),a(e,t,c,n,u),s(e,t,o.defaultLine,{axis:"y"}),s(e,t,o.defaultLine,{axis:"x",inherit:"y"})}},{"../../components/color":303,"../../components/errorbars/defaults":331,"../../lib":382,"../bar/style_defaults":486,"./attributes":524,"./bin_defaults":526}],530:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.layoutAttributes=e("../bar/layout_attributes"),r.supplyDefaults=e("./defaults"),r.supplyLayoutDefaults=e("../bar/layout_defaults"),r.calc=e("./calc"),r.setPositions=e("../bar/set_positions"),r.plot=e("../bar/plot"),r.style=e("../bar/style"),r.colorbar=e("../scatter/colorbar"),r.hoverPoints=e("../bar/hover"),r.moduleType="trace",r.name="histogram",r.basePlotModule=e("../../plots/cartesian"),r.categories=["cartesian","bar","histogram","oriented","errorBarsOK","showLegend"],r.meta={},t.exports=r},{"../../plots/cartesian":413,"../bar/hover":479,"../bar/layout_attributes":481,"../bar/layout_defaults":482,"../bar/plot":483,"../bar/set_positions":484,"../bar/style":485,"../scatter/colorbar":559,"./attributes":524,"./calc":528,"./defaults":529}],531:[function(e,t,n){"use strict";t.exports={percent:function(e,t){for(var n=e.length,r=100/t,o=0;og&&d.splice(g,d.length-g),v.length>g&&v.splice(g,v.length-g),!t.autobinx&&"xbins"in t||(t.xbins=o.autoBin(d,h,t.nbinsx,"2d"),"histogram2dcontour"===t.type&&(t.xbins.start-=t.xbins.size,t.xbins.end+=t.xbins.size),t._input.xbins=t.xbins),!t.autobiny&&"ybins"in t||(t.ybins=o.autoBin(v,m,t.nbinsy,"2d"),"histogram2dcontour"===t.type&&(t.ybins.start-=t.ybins.size,t.ybins.end+=t.ybins.size),t._input.ybins=t.ybins),f=[];var y,b,x=[],_=[],w="string"==typeof t.xbins.size?[]:t.xbins,T="string"==typeof t.xbins.size?[]:t.ybins,C=0,E=[],k=t.histnorm,S=t.histfunc,A=k.indexOf("density")!==-1,P="max"===S||"min"===S,M=P?null:0,O=i.count,D=a[k],L=!1,j=[],R=[],F="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";F&&"count"!==S&&(L="avg"===S,O=i[S]);var I=t.xbins,N=I.end+(I.start-o.tickIncrement(I.start,I.size))/1e6;for(p=I.start;p=0&&y=0&&b0)s=f(e.alphahull,l);else{var u=["x","y","z"].indexOf(e.delaunayaxis);s=c(l.map(function(e){return[e[(u+1)%3],e[(u+2)%3]]}))}var d={positions:l,cells:s,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:h(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};e.intensity?(this.color="#fff",d.vertexIntensity=e.intensity,d.colormap=o(e.colorscale)):e.vertexcolor?(this.color=e.vertexcolors[0],d.vertexColors=i(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],d.cellColors=i(e.facecolor)):(this.color=e.color,d.meshColor=h(e.color)),this.mesh.update(d)},d.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=s},{"../../lib/str2rgbarray":394,"alpha-shape":40,"convex-hull":102,"delaunay-triangulate":114,"gl-mesh3d":150,tinycolor2:274}],542:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("../../components/colorbar/defaults"),i=e("./attributes");t.exports=function(e,t,n,a){function s(n,o){return r.coerce(e,t,i,n,o)}function l(e){var t=e.map(function(e){var t=s(e);return t&&Array.isArray(t)?t:null});return t.every(function(e){return e&&e.length===t[0].length})&&t}var u=l(["x","y","z"]),c=l(["i","j","k"]);return u?(c&&c.forEach(function(e){for(var t=0;t")}return m};var l},{"../../components/color":303,"./helpers":548,"fast-isnumeric":117,tinycolor2:274}],547:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("./attributes");t.exports=function(e,t,n,i){function a(n,i){return r.coerce(e,t,o,n,i)}var s=r.coerceFont,l=a("values");if(!Array.isArray(l)||!l.length)return void(t.visible=!1);var u=a("labels");Array.isArray(u)||(a("label0"),a("dlabel"));var c=a("marker.line.width");c&&a("marker.line.color");var f=a("marker.colors");Array.isArray(f)||(t.marker.colors=[]),a("scalegroup");var p=a("text"),h=a("textinfo",Array.isArray(p)?"text+percent":"percent");if(a("hoverinfo",1===i._dataLength?"label+text+value+percent":void 0),h&&"none"!==h){var d=a("textposition"),m=Array.isArray(d)||"auto"===d,v=m||"inside"===d,g=m||"outside"===d;if(v||g){var y=s(a,"textfont",i.font);v&&s(a,"insidetextfont",y),g&&s(a,"outsidetextfont",y)}}a("domain.x"),a("domain.y"),a("hole"),a("sort"),a("direction"),a("rotation"),a("pull")}},{"../../lib":382,"./attributes":544}],548:[function(e,t,n){"use strict";var r=e("../../lib");n.formatPiePercent=function(e,t){var n=(100*e).toPrecision(3);return n.lastIndexOf(".")!==-1&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)+"%"},n.formatPieValue=function(e,t){var n=e.toPrecision(10);return n.lastIndexOf(".")!==-1&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)}},{"../../lib":382}],549:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.supplyLayoutDefaults=e("./layout_defaults"),r.layoutAttributes=e("./layout_attributes"),r.calc=e("./calc"),r.plot=e("./plot"),r.style=e("./style"),r.styleOne=e("./style_one"),r.moduleType="trace",r.name="pie",r.basePlotModule=e("./base_plot"),r.categories=["pie","showLegend"],r.meta={},t.exports=r},{"./attributes":544,"./base_plot":545,"./calc":546,"./defaults":547,"./layout_attributes":550,"./layout_defaults":551,"./plot":552,"./style":553,"./style_one":554}],550:[function(e,t,n){"use strict";t.exports={hiddenlabels:{valType:"data_array"}}},{}],551:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("./layout_attributes");t.exports=function(e,t){function n(n,i){return r.coerce(e,t,o,n,i)}n("hiddenlabels")}},{"../../lib":382,"./layout_attributes":550}],552:[function(e,t,n){"use strict";function r(e,t,n){var r=Math.sqrt(e.width*e.width+e.height*e.height),i=e.width/e.height,a=Math.PI*Math.min(t.v/n.vTotal,.5),s=1-n.trace.hole,l=o(t,n),u={scale:l*n.r*2/r,rCenter:1-l,rotate:0};if(u.scale>=1)return u;var c=i+1/(2*Math.tan(a)),f=n.r*Math.min(1/(Math.sqrt(c*c+.5)+c),s/(Math.sqrt(i*i+s/2)+i)),p={scale:2*f/e.height,rCenter:Math.cos(f/n.r)-f*i/n.r,rotate:(180/Math.PI*t.midangle+720)%180-90},h=1/i,d=h+1/(2*Math.tan(a)),m=n.r*Math.min(1/(Math.sqrt(d*d+.5)+d),s/(Math.sqrt(h*h+s/2)+h)),v={scale:2*m/e.width,rCenter:Math.cos(m/n.r)-m/i/n.r,rotate:(180/Math.PI*t.midangle+810)%180-90},g=v.scale>p.scale?v:p;return u.scale<1&&g.scale>u.scale?g:u}function o(e,t){if(e.v===t.vTotal&&!t.trace.hole)return 1;var n=Math.PI*Math.min(e.v/t.vTotal,.5);return Math.min(1/(1+1/Math.sin(n)),(1-t.trace.hole)/2)}function i(e,t){var n=t.pxmid[0],r=t.pxmid[1],o=e.width/2,i=e.height/2;return n<0&&(o*=-1),r<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:o+Math.abs(i)*(o>0?1:-1)/2,y:i/(1+n*n/(r*r)),outside:!0}}function a(e,t){function n(e,t){return e.pxmid[1]-t.pxmid[1]}function r(e,t){return t.pxmid[1]-e.pxmid[1]}function o(e,n){n||(n={});var r,o,i,s,p,h,m=n.labelExtraY+(a?n.yLabelMax:n.yLabelMin),v=a?e.yLabelMin:e.yLabelMax,g=a?e.yLabelMax:e.yLabelMin,y=e.cyFinal+u(e.px0[1],e.px1[1]),b=m-v;if(b*f>0&&(e.labelExtraY=b),Array.isArray(t.pull))for(o=0;o=t.pull[i.i]||((e.pxmid[1]-i.pxmid[1])*f>0?(s=i.cyFinal+u(i.px0[1],i.px1[1]),b=s-v-e.labelExtraY,b*f>0&&(e.labelExtraY+=b)):(g+e.labelExtraY-y)*f>0&&(r=3*c*Math.abs(o-d.indexOf(e)),p=i.cxFinal+l(i.px0[0],i.px1[0]),h=p+r-(e.cxFinal+e.pxmid[0])-e.labelExtraX,h*c>0&&(e.labelExtraX+=h)))}var i,a,s,l,u,c,f,p,h,d,m,v,g;for(a=0;a<2;a++)for(s=a?n:r,u=a?Math.max:Math.min,f=a?1:-1,i=0;i<2;i++){for(l=i?Math.max:Math.min,c=i?1:-1,p=e[a][i],p.sort(s),h=e[1-a][i],d=h.concat(p),v=[],m=0;mc&&(c=s.pull[i]);a.r=Math.min(n/u(s.tilt,Math.sin(l),s.depth),r/u(s.tilt,Math.cos(l),s.depth))/(2+2*c),a.cx=t.l+t.w*(s.domain.x[1]+s.domain.x[0])/2,a.cy=t.t+t.h*(2-s.domain.y[1]-s.domain.y[0])/2,s.scalegroup&&h.indexOf(s.scalegroup)===-1&&h.push(s.scalegroup)}for(i=0;if.vTotal/2?1:0)}function u(e,t,n){if(!e)return 1;var r=Math.sin(e*Math.PI/180);return Math.max(.01,n*r*Math.abs(t)+2*Math.sqrt(1-r*r*t*t))}var c=e("d3"),f=e("../../plots/cartesian/graph_interact"),p=e("../../components/color"),h=e("../../components/drawing"),d=e("../../lib/svg_text_utils"),m=e("./helpers");t.exports=function(e,t){var n=e._fullLayout;s(t,n._size);var u=n._pielayer.selectAll("g.trace").data(t);u.enter().append("g").attr({"stroke-linejoin":"round","class":"trace"}),u.exit().remove(),u.order(),u.each(function(t){var s=c.select(this),u=t[0],v=u.trace,g=0,y=(v.depth||0)*u.r*Math.sin(g)/2,b=v.tiltaxis||0,x=b*Math.PI/180,_=[y*Math.sin(x),y*Math.cos(x)],w=u.r*Math.cos(g),T=s.selectAll("g.part").data(v.tilt?["top","sides"]:["top"]);T.enter().append("g").attr("class",function(e){return e+" part"}),T.exit().remove(),T.order(),l(t),s.selectAll(".top").each(function(){var s=c.select(this).selectAll("g.slice").data(t);s.enter().append("g").classed("slice",!0),s.exit().remove();var l=[[[],[]],[[],[]]],g=!1;s.each(function(a){function s(t){var r=e._fullLayout,i=e._fullData[v.index],s=i.hoverinfo;if("all"===s&&(s="label+text+value+percent+name"),!e._dragging&&r.hovermode!==!1&&"none"!==s&&s){var l=o(a,u),c=T+a.pxmid[0]*(1-l),p=C+a.pxmid[1]*(1-l),h=n.separators,d=[];s.indexOf("label")!==-1&&d.push(a.label),i.text&&i.text[a.i]&&s.indexOf("text")!==-1&&d.push(i.text[a.i]),s.indexOf("value")!==-1&&d.push(m.formatPieValue(a.v,h)),s.indexOf("percent")!==-1&&d.push(m.formatPiePercent(a.v/u.vTotal,h)),f.loneHover({x0:c-l*u.r,x1:c+l*u.r,y:p,text:d.join("
"),name:s.indexOf("name")!==-1?i.name:void 0,color:a.color,idealAlign:a.pxmid[0]<0?"left":"right"},{container:r._hoverlayer.node(),outerContainer:r._paper.node()}),f.hover(e,t,"pie"),S=!0}}function p(t){e.emit("plotly_unhover",{points:[t]}),S&&(f.loneUnhover(n._hoverlayer.node()),S=!1)}function y(){e._hoverdata=[a],e._hoverdata.trace=t.trace,f.click(e,{target:!0})}function x(e,t,n,r){return"a"+r*u.r+","+r*w+" "+b+" "+a.largeArc+(n?" 1 ":" 0 ")+r*(t[0]-e[0])+","+r*(t[1]-e[1])}if(a.hidden)return void c.select(this).selectAll("path,g").remove();l[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var T=u.cx+_[0],C=u.cy+_[1],E=c.select(this),k=E.selectAll("path.surface").data([a]),S=!1;if(k.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),E.select("path.textline").remove(),E.on("mouseover",s).on("mouseout",p).on("click",y),v.pull){var A=+(Array.isArray(v.pull)?v.pull[a.i]:v.pull)||0;A>0&&(T+=A*a.pxmid[0],C+=A*a.pxmid[1])}a.cxFinal=T,a.cyFinal=C;var P=v.hole;if(a.v===u.vTotal){var M="M"+(T+a.px0[0])+","+(C+a.px0[1])+x(a.px0,a.pxmid,!0,1)+x(a.pxmid,a.px0,!0,1)+"Z";P?k.attr("d","M"+(T+P*a.px0[0])+","+(C+P*a.px0[1])+x(a.px0,a.pxmid,!1,P)+x(a.pxmid,a.px0,!1,P)+"Z"+M):k.attr("d",M)}else{var O=x(a.px0,a.px1,!0,1);if(P){var D=1-P;k.attr("d","M"+(T+P*a.px1[0])+","+(C+P*a.px1[1])+x(a.px1,a.px0,!1,P)+"l"+D*a.px0[0]+","+D*a.px0[1]+O+"Z")}else k.attr("d","M"+T+","+C+"l"+a.px0[0]+","+a.px0[1]+O+"Z")}var L=Array.isArray(v.textposition)?v.textposition[a.i]:v.textposition,j=E.selectAll("g.slicetext").data(a.text&&"none"!==L?[0]:[]);j.enter().append("g").classed("slicetext",!0),j.exit().remove(),j.each(function(){var e=c.select(this).selectAll("text").data([0]);e.enter().append("text").attr("data-notex",1),e.exit().remove(),e.text(a.text).attr({"class":"slicetext",transform:"","data-bb":"","text-anchor":"middle",x:0,y:0}).call(h.font,"outside"===L?v.outsidetextfont:v.insidetextfont).call(d.convertToTspans),e.selectAll("tspan.line").attr({x:0,y:0});var t,n=h.bBox(e.node());"outside"===L?t=i(n,a):(t=r(n,a,u),"auto"===L&&t.scale<1&&(e.call(h.font,v.outsidetextfont),v.outsidetextfont.family===v.insidetextfont.family&&v.outsidetextfont.size===v.insidetextfont.size||(e.attr({"data-bb":""}),n=h.bBox(e.node())),t=i(n,a)));var o=T+a.pxmid[0]*t.rCenter+(t.x||0),s=C+a.pxmid[1]*t.rCenter+(t.y||0);t.outside&&(a.yLabelMin=s-n.height/2,a.yLabelMid=s,a.yLabelMax=s+n.height/2,a.labelExtraX=0,a.labelExtraY=0,g=!0),e.attr("transform","translate("+o+","+s+")"+(t.scale<1?"scale("+t.scale+")":"")+(t.rotate?"rotate("+t.rotate+")":"")+"translate("+-(n.left+n.right)/2+","+-(n.top+n.bottom)/2+")")})}),g&&a(l,v),s.each(function(e){if(e.labelExtraX||e.labelExtraY){var t=c.select(this),n=t.select("g.slicetext text");n.attr("transform","translate("+e.labelExtraX+","+e.labelExtraY+")"+n.attr("transform"));var r=e.cxFinal+e.pxmid[0],o=e.cyFinal+e.pxmid[1],i="M"+r+","+o,a=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var s=e.labelExtraX*e.pxmid[1]/e.pxmid[0],l=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);i+=Math.abs(s)>Math.abs(l)?"l"+l*e.pxmid[0]/e.pxmid[1]+","+l+"H"+(r+e.labelExtraX+a):"l"+e.labelExtraX+","+s+"v"+(l-s)+"h"+a}else i+="V"+(e.yLabelMid+e.labelExtraY)+"h"+a;t.append("path").classed("textline",!0).call(p.stroke,v.outsidetextfont.color).attr({"stroke-width":Math.min(2,v.outsidetextfont.size/8),d:i,fill:"none"})}})})}),setTimeout(function(){u.selectAll("tspan").each(function(){var e=c.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))})},0)}},{"../../components/color":303,"../../components/drawing":326,"../../lib/svg_text_utils":395,"../../plots/cartesian/graph_interact":412,"./helpers":548,d3:113}],553:[function(e,t,n){"use strict";var r=e("d3"),o=e("./style_one");t.exports=function(e){e._fullLayout._pielayer.selectAll(".trace").each(function(e){var t=e[0],n=t.trace,i=r.select(this);i.style({opacity:n.opacity}),i.selectAll(".top path.surface").each(function(e){r.select(this).call(o,e,n)})})}},{"./style_one":554,d3:113}],554:[function(e,t,n){"use strict";var r=e("../../components/color");t.exports=function(e,t,n){var o=n.marker.line.color;Array.isArray(o)&&(o=o[t.i]||r.defaultLine);var i=n.marker.line.width||0;Array.isArray(i)&&(i=i[t.i]||0),e.style({"stroke-width":i,fill:t.color}).call(r.stroke,o)}},{"../../components/color":303}],555:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e){var t=e[0].trace,n=t.marker;if(r.mergeArray(t.text,e,"tx"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArray(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf")),n&&n.line){var o=n.line;r.mergeArray(n.opacity,e,"mo"),r.mergeArray(n.symbol,e,"mx"),r.mergeArray(n.color,e,"mc"),r.mergeArray(o.color,e,"mlc"),r.mergeArray(o.width,e,"mlw")}}},{"../../lib":382}],556:[function(e,t,n){"use strict";var r=e("../../components/colorscale/color_attributes"),o=e("../../components/drawing"),i=(e("./constants"),e("../../lib/extend").extendFlat);t.exports={x:{valType:"data_array"},x0:{valType:"any",dflt:0},dx:{valType:"number",dflt:1},y:{valType:"data_array"},y0:{valType:"any",dflt:0},dy:{valType:"number",dflt:1},text:{valType:"string",dflt:"",arrayOk:!0},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},hoveron:{valType:"flaglist",flags:["points","fills"]},line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:2},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear"},smoothing:{valType:"number",min:0,max:1.3,dflt:1},dash:{valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid"}},connectgaps:{valType:"boolean",dflt:!1},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],dflt:"none"},fillcolor:{valType:"color"},marker:i({},{symbol:{valType:"enumerated",values:o.symbolList,dflt:"circle",arrayOk:!0},opacity:{valType:"number",min:0,max:1,arrayOk:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0},maxdisplayed:{valType:"number",min:0,dflt:0},sizeref:{valType:"number",dflt:1},sizemin:{valType:"number",min:0,dflt:0},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter"},showscale:{valType:"boolean",dflt:!1},line:i({},{width:{valType:"number",min:0,arrayOk:!0}},r("marker.line"))},r("marker")),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0},textfont:{family:{valType:"string",noBlank:!0,strict:!0,arrayOk:!0},size:{valType:"number",min:1,arrayOk:!0},color:{valType:"color",arrayOk:!0}},r:{valType:"data_array"},t:{valType:"data_array"},_nestedModules:{error_y:"ErrorBars",error_x:"ErrorBars","marker.colorbar":"Colorbar"}}},{"../../components/colorscale/color_attributes":311,"../../components/drawing":326,"../../lib/extend":377,"./constants":561}],557:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),o=e("../../plots/cartesian/axes"),i=e("../../lib"),a=e("./subtypes"),s=e("./colorscale_calc");t.exports=function(e,t){var n,l,u,c=o.getFromId(e,t.xaxis||"x"),f=o.getFromId(e,t.yaxis||"y"),p=c.makeCalcdata(t,"x"),h=f.makeCalcdata(t,"y"),d=Math.min(p.length,h.length);c._minDtick=0,f._minDtick=0,p.length>d&&p.splice(d,p.length-d),h.length>d&&h.splice(d,h.length-d);var m={padded:!0},v={padded:!0};if(a.hasMarkers(t)){if(n=t.marker,l=n.size,Array.isArray(l)){var g={type:"linear"};o.setConvert(g),l=g.makeCalcdata(t.marker,"size"),l.length>d&&l.splice(d,l.length-d)}var y,b=1.6*(t.marker.sizeref||1);y="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/b),3)}:function(e){return Math.max((e||0)/b,3)},m.ppad=v.ppad=Array.isArray(l)?l.map(y):y(l)}s(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||p[0]===p[d-1]&&h[0]===h[d-1]?t.error_y.visible||["tonexty","tozeroy"].indexOf(t.fill)===-1&&(a.hasMarkers(t)||a.hasText(t))||(m.padded=!1,m.ppad=0):m.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||p[0]===p[d-1]&&h[0]===h[d-1]?["tonextx","tozerox"].indexOf(t.fill)!==-1&&(v.padded=!1):v.tozero=!0,o.expand(c,p,m),o.expand(f,h,v);var x=new Array(d);for(u=0;u=0;o--)if(i=e[o],"scatter"===i.type&&i.xaxis===n.xaxis&&i.yaxis===n.yaxis){i.opacity=void 0;break}}},{}],559:[function(e,t,n){"use strict";var r=e("d3"),o=e("fast-isnumeric"),i=e("../../lib"),a=e("../../plots/plots"),s=e("../../components/colorscale/get_scale"),l=e("../../components/colorbar/draw");t.exports=function(e,t){var n=t[0].trace,u=n.marker,c="cb"+n.uid;if(e._fullLayout._infolayer.selectAll("."+c).remove(),void 0===u||!u.showscale)return void a.autoMargin(e,c);var f=s(u.colorscale),p=u.color,h=u.cmin,d=u.cmax;o(h)||(h=i.aggNums(Math.min,null,p)),o(d)||(d=i.aggNums(Math.max,null,p));var m=t[0].t.cb=l(e,c);m.fillcolor(r.scale.linear().domain(f.map(function(e){return h+e[0]*(d-h)})).range(f.map(function(e){return e[1]}))).filllevels({start:h,end:d,size:(d-h)/254}).options(u.colorbar)()}},{"../../components/colorbar/draw":306,"../../components/colorscale/get_scale":315,"../../lib":382,"../../plots/plots":454,d3:113,"fast-isnumeric":117}],560:[function(e,t,n){"use strict";var r=e("../../components/colorscale/has_colorscale"),o=e("../../components/colorscale/calc"),i=e("./subtypes");t.exports=function(e){i.hasLines(e)&&r(e,"line")&&o(e,e.line.color,"line","c"),i.hasMarkers(e)&&(r(e,"marker")&&o(e,e.marker.color,"marker","c"),r(e,"marker.line")&&o(e,e.marker.line.color,"marker.line","c"))}},{"../../components/colorscale/calc":310,"../../components/colorscale/has_colorscale":316,"./subtypes":575}],561:[function(e,t,n){"use strict";t.exports={PTS_LINESONLY:20}},{}],562:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("./attributes"),i=e("./constants"),a=e("./subtypes"),s=e("./xy_defaults"),l=e("./marker_defaults"),u=e("./line_defaults"),c=e("./line_shape_defaults"),f=e("./text_defaults"),p=e("./fillcolor_defaults"),h=e("../../components/errorbars/defaults");t.exports=function(e,t,n,d){function m(n,i){return r.coerce(e,t,o,n,i)}var v=s(e,t,m),g=vU!=L>=U&&(M=A[k-1][0],O=A[k][0],P=M+(O-M)*(U-D)/(L-D),I=Math.min(I,P),N=Math.max(N,P));I=Math.max(I,0),N=Math.min(N,p._length);var W=l.defaultLine;return l.opacity(f.fillcolor)?W=f.fillcolor:l.opacity((f.line||{}).color)&&(W=f.line.color),r.extendFlat(e,{distance:i.MAXDIST+10,x0:I,x1:N,y0:U,y1:U,color:W}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":303,"../../components/errorbars":332,"../../lib":382,"../../plots/cartesian/constants":410,"../../plots/cartesian/graph_interact":412,"./get_trace_color":564}],566:[function(e,t,n){"use strict";var r={},o=e("./subtypes");r.hasLines=o.hasLines,r.hasMarkers=o.hasMarkers,r.hasText=o.hasText,r.isBubble=o.isBubble,r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.cleanData=e("./clean_data"),r.calc=e("./calc"),r.arraysToCalcdata=e("./arrays_to_calcdata"),r.plot=e("./plot"),r.colorbar=e("./colorbar"),r.style=e("./style"),r.hoverPoints=e("./hover"),r.selectPoints=e("./select"),r.moduleType="trace",r.name="scatter",r.basePlotModule=e("../../plots/cartesian"),r.categories=["cartesian","symbols","markerColorscale","errorBarsOK","showLegend"],r.meta={},t.exports=r},{"../../plots/cartesian":413,"./arrays_to_calcdata":555,"./attributes":556,"./calc":557,"./clean_data":558,"./colorbar":559,"./defaults":562,"./hover":565,"./plot":572,"./select":573,"./style":574,"./subtypes":575}],567:[function(e,t,n){"use strict";var r=e("../../components/colorscale/has_colorscale"),o=e("../../components/colorscale/defaults");t.exports=function(e,t,n,i,a){var s=(e.marker||{}).color;a("line.color",n),r(e,"line")?o(e,t,i,a,{prefix:"line.",cLetter:"c"}):a("line.color",!Array.isArray(s)&&s||n),a("line.width"),a("line.dash")}},{"../../components/colorscale/defaults":313,"../../components/colorscale/has_colorscale":316}],568:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t){function n(t){var n=w.c2p(e[t].x),r=T.c2p(e[t].y);return n!==A&&r!==A&&[n,r]}function o(e){var t=e[0]/w._length,n=e[1]/T._length;return(1+10*Math.max(0,-t,t-1,-n,n-1))*E}function i(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var a,s,l,u,c,f,p,h,d,m,v,g,y,b,x,_,w=t.xaxis,T=t.yaxis,C=t.connectGaps,E=t.baseTolerance,k=t.linear,S=[],A=r.BADNUM,P=.2,M=new Array(e.length),O=0;for(a=0;ao(f))break;l=f,y=m[0]*d[0]+m[1]*d[1],y>v?(v=y,u=f,h=!1):y=e.length||!f)break;M[O++]=f,s=f}}else M[O++]=u}S.push(M.slice(0,O))}return S}},{"../../plots/cartesian/axes":405}],569:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=n("line.shape");"spline"===r&&n("line.smoothing")}},{}],570:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e){var t=e.marker,n=t.sizeref||1,o=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=i(e/2);return r(t)&&t>0?Math.max(t,o):0}}},{"fast-isnumeric":117}],571:[function(e,t,n){"use strict";var r=e("../../components/color"),o=e("../../components/colorscale/has_colorscale"),i=e("../../components/colorscale/defaults"),a=e("./subtypes");t.exports=function(e,t,n,s,l){var u,c=a.isBubble(e),f=Array.isArray(e.line)?void 0:(e.line||{}).color;f&&(n=f),l("marker.symbol"),l("marker.opacity",c?.7:1),l("marker.size"),l("marker.color",n),o(e,"marker")&&i(e,t,s,l,{prefix:"marker.",cLetter:"c"}),u=f&&t.marker.color!==f?f:c?r.background:r.defaultLine,l("marker.line.color",u),o(e,"marker.line")&&i(e,t,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",c?1:0),c&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode"))}},{"../../components/color":303,"../../components/colorscale/defaults":313,"../../components/colorscale/has_colorscale":316,"./subtypes":575}],572:[function(e,t,n){"use strict";function r(e,t,n){var r=t.x(),i=t.y(),a=o.extent(r.range.map(r.l2c)),s=o.extent(i.range.map(i.l2c));n.forEach(function(e,t){var r=e[0].trace;if(u.hasMarkers(r)){var o=r.marker.maxdisplayed;if(0!==o){var i=e.filter(function(e){return e.x>=a[0]&&e.x<=a[1]&&e.y>=s[0]&&e.y<=s[1]}),l=Math.ceil(i.length/o),c=0;n.forEach(function(e,n){var r=e[0].trace;u.hasMarkers(r)&&r.marker.maxdisplayed>0&&n1&&r.append("path").classed("js-line",!0).attr("d",i)}v?A&&M&&(g?("y"===g?A[1]=M[1]=d.c2p(0,!0):"x"===g&&(A[0]=M[0]=h.c2p(0,!0)),v.attr("d",T+"L"+M+"L"+A+"Z")):v.attr("d",T+"Z")):"tonext"===t.fill.substr(0,6)&&T&&x&&("tonext"===t.fill?y.attr("d",T+"Z"+x+"Z"):y.attr("d",T+"L"+x.substr(1)+"Z"),t._polygons=t._polygons.concat(_)),x=C,_=S}}}),m.selectAll("path:not([d])").remove(),m.append("g").attr("class","points").each(function(e){var t=e[0].trace,n=o.select(this),r=u.hasMarkers(t),s=u.hasText(t);!r&&!s||t.visible!==!0?n.remove():(r&&n.selectAll("path.point").data(t.marker.maxdisplayed?p:i.identity).enter().append("path").classed("point",!0).call(a.translatePoints,h,d),s&&n.selectAll("g").data(t.marker.maxdisplayed?p:i.identity).enter().append("g").append("text").call(a.translatePoints,h,d))})}},{"../../components/drawing":326,"../../components/errorbars":332,"../../lib":382,"../../lib/polygon":388,"./arrays_to_calcdata":555,"./line_points":568,"./subtypes":575,d3:113}],573:[function(e,t,n){"use strict";var r=e("./subtypes"),o=.2;t.exports=function(e,t){var n,i,a,s,l=e.cd,u=e.xaxis,c=e.yaxis,f=[],p=l[0].trace,h=p.index,d=p.marker,m=!r.hasMarkers(p)&&!r.hasText(p);if(p.visible===!0&&!m){var v=Array.isArray(d.opacity)?1:d.opacity;if(t===!1)for(n=0;n=0&&(t[1]+=1),e.indexOf("top")>=0&&(t[1]-=1),e.indexOf("left")>=0&&(t[0]-=1),e.indexOf("right")>=0&&(t[0]+=1),t)}function s(e,t){return t(4*e)}function l(e){return T[e]}function u(e,t,n,r,o){var i=null;if(Array.isArray(e)){i=[];for(var a=0;a=0){var p=o(l.position,l.delaunayColor,l.delaunayAxis);p.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(p):(p.gl=a,this.delaunayMesh=v(p),this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},E.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},t.exports=p},{"../../constants/gl3d_dashes":368,"../../constants/gl_markers":369,"../../lib":382,"../../lib/gl_format_color":380,"../../lib/str2rgbarray":394,"../scatter/make_bubble_size_func":570,"./calc_errors":580,"delaunay-triangulate":114,"gl-error3d":121,"gl-line3d":127,"gl-mesh3d":150,"gl-scatter3d":193}],582:[function(e,t,n){"use strict";function r(e,t,n){var r=0,o=n("x"),i=n("y"),a=n("z");return o&&i&&a&&(r=Math.min(o.length,i.length,a.length),r=0&&p("surfacecolor",d||m);for(var v=["x","y","z"],g=0;g<3;++g){var y="projection."+v[g];p(y+".show")&&(p(y+".opacity"),p(y+".scale"))}u(e,t,n,{axis:"z"}),u(e,t,n,{axis:"y",inherit:"z"}),u(e,t,n,{axis:"x",inherit:"z"})}},{"../../components/errorbars/defaults":331,"../../lib":382,"../scatter/line_defaults":567,"../scatter/marker_defaults":571,"../scatter/subtypes":575,"../scatter/text_defaults":576,"./attributes":578}],583:[function(e,t,n){"use strict";var r={};r.plot=e("./convert"),r.attributes=e("./attributes"),r.markerSymbols=e("../../constants/gl_markers"),r.supplyDefaults=e("./defaults"),r.colorbar=e("../scatter/colorbar"),r.calc=e("./calc"),r.moduleType="trace",r.name="scatter3d",r.basePlotModule=e("../../plots/gl3d"),r.categories=["gl3d","symbols","markerColorscale","showLegend"],r.meta={},t.exports=r},{"../../constants/gl_markers":369,"../../plots/gl3d":441,"../scatter/colorbar":559,"./attributes":578,"./calc":579,"./convert":581,"./defaults":582}],584:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),o=e("../../plots/attributes"),i=e("../../components/colorscale/color_attributes"),a=e("../../lib/extend").extendFlat,s=r.marker,l=r.line,u=s.line;t.exports={lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names"],dflt:"ISO-3"},mode:a({},r.mode,{dflt:"markers"}),text:a({},r.text,{}),line:{color:l.color,width:l.width,dash:l.dash},marker:a({},{symbol:s.symbol,opacity:s.opacity,size:s.size,sizeref:s.sizeref,sizemin:s.sizemin,sizemode:s.sizemode,showscale:s.showscale,line:a({},{width:u.width},i("marker.line"))},i("marker")),textfont:r.textfont,textposition:r.textposition,hoverinfo:a({},o.hoverinfo,{flags:["lon","lat","location","text","name"]}),_nestedModules:{"marker.colorbar":"Colorbar"}}},{"../../components/colorscale/color_attributes":311,"../../lib/extend":377,"../../plots/attributes":403,"../scatter/attributes":556}],585:[function(e,t,n){"use strict";var r=e("../scatter/colorscale_calc");t.exports=function(e,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return r(t),n}},{"../scatter/colorscale_calc":560}],586:[function(e,t,n){"use strict";function r(e,t,n){var r,o,i=0,a=n("locations");return a?(n("locationmode"),i=a.length):(r=n("lon")||[],o=n("lat")||[],i=Math.min(r.length,o.length),i")}}function a(e){var t=Array.isArray(e.locations);return function(n,r){return{points:[{data:e._input,fullData:e,curveNumber:e.index,pointNumber:r,lon:n.lon,lat:n.lat,location:t?n.location:null}]}}}var s=e("d3"),l=e("../../plots/cartesian/graph_interact"),u=e("../../plots/cartesian/axes"),c=e("../../lib/topojson_utils").getTopojsonFeatures,f=e("../../lib/geo_location_utils").locationToFeature,p=e("../../lib/array_to_calc_item"),h=e("../../components/color"),d=e("../../components/drawing"),m=e("../scatter/subtypes"),v=e("./attributes"),g=t.exports={};g.calcGeoJSON=function(e,t){var n,o,i,a,s=[],l=Array.isArray(e.locations);l?(a=e.locations,n=a.length,o=c(e,t),i=function(e,t){var n=f(e.locationmode,a[t],o);return void 0!==n?n.properties.ct:void 0}):(n=e.lon.length,i=function(e,t){return[e.lon[t],e.lat[t]]});for(var u=0;u0&&(s[0].trace=e),s},g.plot=function(e,t){var n=e.framework.select(".scattergeolayer").selectAll("g.trace.scattergeo").data(t,function(e){return e.uid});n.enter().append("g").attr("class","trace scattergeo"),n.exit().remove(),n.selectAll("*").remove(),n.each(function(e){var t=s.select(this);m.hasLines(e)&&t.selectAll("path.js-line").data([o(e)]).enter().append("path").classed("js-line",!0)}),n.each(function(t){function n(n,r){if(e.showHover){var o=e.projection([n.lon,n.lat]);p(n),l.loneHover({x:o[0],y:o[1],name:v?t.name:void 0,text:n.textLabel,color:n.mc||(t.marker||{}).color},{container:e.hoverContainer.node()}),y=h(n,r),e.graphDiv.emit("plotly_hover",y)}}function r(t,n){e.graphDiv.emit("plotly_click",h(t,n))}var o=s.select(this),u=m.hasMarkers(t),c=m.hasText(t);if(u||c){var f=g.calcGeoJSON(t,e.topojson),p=i(e,t),h=a(t),d=t.hoverinfo,v="all"===d||d.indexOf("name")!==-1,y=null;u&&o.selectAll("path.point").data(f).enter().append("path").classed("point",!0).on("mouseover",n).on("click",r).on("mouseout",function(){l.loneUnhover(e.hoverContainer),e.graphDiv.emit("plotly_unhover",y)}).on("mousedown",function(){l.loneUnhover(e.hoverContainer)}).on("mouseup",n),c&&o.selectAll("g").data(f).enter().append("g").append("text")}}),g.style(e)},g.style=function(e){var t=e.framework.selectAll("g.trace.scattergeo");t.style("opacity",function(e){return e.opacity}),t.each(function(e){s.select(this).selectAll("path.point").call(d.pointStyle,e),s.select(this).selectAll("text").call(d.textPointStyle,e)}),t.selectAll("path.js-line").style("fill","none").each(function(e){var t=e.trace,n=t.line||{};s.select(this).call(h.stroke,n.color).call(d.dashLine,n.dash||"",n.width||0)})}},{"../../components/color":303,"../../components/drawing":326,"../../lib/array_to_calc_item":373,"../../lib/geo_location_utils":379,"../../lib/topojson_utils":396,"../../plots/cartesian/axes":405,"../../plots/cartesian/graph_interact":412,"../scatter/subtypes":575,"./attributes":584,d3:113}],589:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),o=e("../../components/colorscale/color_attributes"),i=e("../../constants/gl2d_dashes"),a=e("../../constants/gl_markers"),s=e("../../lib/extend").extendFlat,l=e("../../lib/extend").extendDeep,u=r.line,c=r.marker,f=c.line;t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,text:s({},r.text,{}),mode:{valType:"flaglist",flags:["lines","markers"],extras:["none"]},line:{color:u.color,width:u.width,dash:{valType:"enumerated",values:Object.keys(i),dflt:"solid"}},marker:l({},o("marker"),{symbol:{valType:"enumerated",values:Object.keys(a),dflt:"circle",arrayOk:!0},size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,showscale:c.showscale,line:l({},o("marker.line"),{width:f.width})}),connectgaps:r.connectgaps,fill:s({},r.fill,{values:["none","tozeroy","tozerox"]}),fillcolor:r.fillcolor,_nestedModules:{error_x:"ErrorBars",error_y:"ErrorBars","marker.colorbar":"Colorbar"}}},{"../../components/colorscale/color_attributes":311,"../../constants/gl2d_dashes":367,"../../constants/gl_markers":369,"../../lib/extend":377,"../scatter/attributes":556}],590:[function(e,t,n){"use strict";function r(e,t){this.scene=e,this.uid=t,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.connectgaps=!0,this.idToIndex=[],this.bounds=[0,0,0,0],this.hasLines=!1,this.lineOptions={positions:new Float32Array(0),color:[0,0,0,1],width:1,fill:[!1,!1,!1,!1],fillColor:[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],dashes:[1]},this.line=h(e.glplot,this.lineOptions),this.line._trace=this,this.hasErrorX=!1,this.errorXOptions={positions:new Float32Array(0),errors:new Float32Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},this.errorX=d(e.glplot,this.errorXOptions),this.errorX._trace=this,this.hasErrorY=!1,this.errorYOptions={positions:new Float32Array(0),errors:new Float32Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},this.errorY=d(e.glplot,this.errorYOptions),this.errorY._trace=this,this.hasMarkers=!1,this.scatterOptions={positions:new Float32Array(0),sizes:[],colors:[],glyphs:[],borderWidths:[],borderColors:[],size:12,color:[0,0,0,1],borderSize:1,borderColor:[0,0,0,1]},this.scatter=f(e.glplot,this.scatterOptions),this.scatter._trace=this,this.fancyScatter=p(e.glplot,this.scatterOptions),this.fancyScatter._trace=this}function o(e,t,n){return Array.isArray(t)||(t=[t]),i(e,t,n)}function i(e,t,n){for(var r=new Array(n),o=t[0],i=0;i=t.length?o:t[i]);return r}function a(e,t,n){return l(P(e,n),A(t,n),n)}function s(e,t,n,r){var o=x(e,t,r);return o=Array.isArray(o[0])?o:i(v.identity,[o],r),l(o,A(n,r),r)}function l(e,t,n){for(var r=new Array(4*n),o=0;oC&&S.splice(C,S.length-C)}return s(t),void 0!==typeof S&&i.mergeArray(S,E,"ms"),E}},{"../../lib":382,"../../plots/cartesian/axes":405,"../scatter/colorscale_calc":560,"../scatter/subtypes":575,"fast-isnumeric":117}],595:[function(e,t,n){"use strict";var r=e("../../lib"),o=e("../scatter/constants"),i=e("../scatter/subtypes"),a=e("../scatter/marker_defaults"),s=e("../scatter/line_defaults"),l=e("../scatter/line_shape_defaults"),u=e("../scatter/text_defaults"),c=e("../scatter/fillcolor_defaults"),f=e("./attributes");t.exports=function(e,t,n,p){function h(n,o){return r.coerce(e,t,f,n,o)}var d,m=h("a"),v=h("b"),g=h("c");if(m?(d=m.length,v?(d=Math.min(d,v.length),g&&(d=Math.min(d,g.length))):d=g?Math.min(d,g.length):0):v&&g&&(d=Math.min(v.length,g.length)),!d)return void(t.visible=!1);m&&d"),s}}},{"../../plots/cartesian/axes":405,"../scatter/hover":565}],597:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.colorbar=e("../scatter/colorbar"),r.calc=e("./calc"),r.plot=e("./plot"),r.style=e("./style"),r.hoverPoints=e("./hover"),r.selectPoints=e("./select"),r.moduleType="trace",r.name="scatterternary",r.basePlotModule=e("../../plots/ternary"),r.categories=["ternary","symbols","markerColorscale","showLegend"],r.meta={},t.exports=r},{"../../plots/ternary":461,"../scatter/colorbar":559,"./attributes":593,"./calc":594,"./defaults":595,"./hover":596,"./plot":598,"./select":599,"./style":600}],598:[function(e,t,n){"use strict";var r=e("../scatter/plot");t.exports=function(e,t){var n=e.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var o={x:function(){return e.xaxis},y:function(){return e.yaxis},plot:n},i=new Array(t.length),a=e.graphDiv.calcdata,s=0;s=c){var v=t?null:l(e);if(v)return u(v);h=!1,f=s,m=new o}else m=t?[]:d;e:for(;++r":break e;case"/":o=!0;break;default:if(n.match(a)){if(o)break e}else o=!0,r+=n}s.indexOf(r)!==-1&&(m+=v),v=""}var c,f,p,e=e||"",h=n,d=0,m="",v="",g=!1;for("string"==typeof s?s=t(s):Array.isArray(s)||(s=null),c=0,f=e.length;c":if(d){d--;break}if(g)break;if(h==r){g=h=0,s&&(v+=">",u());break}if(h==o){g=h=0,v="";break}if(h==i&&"-"==e[c-1]&&"-"==e[c-2]){g=h=0,v="";break}l(p);break;case'"':case"'":h==r&&(g==p?g=!1:g||(g=p)),l(p);break;case"!":if(h==r&&"<"==e[c-1]){h=o;break}l(p);break;case"-":if(h==o&&"-"==e[c-1]&&"!"==e[c-2]){h=i;break}l(p);break;case"E":case"e":if(h==o&&"doctype"==e.substr(c-6,7).toLowerCase()){h=r;break}l(p);break;default:l(p)}return m}function t(e){for(var t,n=[];null!==(t=s.exec(e));)n.push(t[1]);return 0!==n.length?n:null}var n=0,r=1,o=2,i=3,a=/\s/,s=/<(\w*)>/g;return e})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(594),u=r(l),c=i["default"].createClass({displayName:"EmptyTab",mixins:[s["default"],u["default"]],propTypes:{err:i["default"].PropTypes.string},icon:function(){return"warning"},title:function(){return"Error"},render:function(){return i["default"].createElement("div",{className:"centering-container"},i["default"].createElement("div",{className:"error"}," Error: ",this.props.err," "))}});e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(756),s=(r(a),n(303)),l=(r(s),n(596)),u=r(l),c=n(594),f=r(c),p=n(595),h=r(p),d=n(650),m=r(d),v=n(753),g=r(v),y=n(1197),b=r(y),x=n(1212),_=r(x),w=n(1214),T=r(w),C=i["default"].createClass({displayName:"FindGene",mixins:[u["default"],f["default"],h["default"]],propTypes:{componentUpdate:i["default"].PropTypes.func.isRequired,activeTab:i["default"].PropTypes.string},getDefaultProps:function(){return{activeTab:"tab_0",startPosition:0}},icon:function(){return"bitmap:genomebrowser.png"},title:function(){return"Find gene"},render:function(){var e=this.props,t=e.componentUpdate,n=e.activeTab,r=e.search,o=e.chromosome,a=e.startPosition,s=e.endPosition,l=e.chromosomeLength,u=o,c=s,f=l,p=Object.keys(this.config.chromosomes)[0];if((null===u||void 0===u)&&null!==p){var h=parseInt(this.config.chromosomes[p].len);f=h,u=p,null!==c&&void 0!==c||(c=h)}return i["default"].createElement(m["default"],{activeTab:n,onSwitch:function(e){return t({activeTab:e})}},i["default"].createElement(g["default"],{compId:"tab_0",key:"tab_0"},i["default"].createElement(b["default"],{componentUpdate:t,title:"Find gene by name / description",search:r})),i["default"].createElement(g["default"],{compId:"tab_1",key:"tab_1"},i["default"].createElement(_["default"],{componentUpdate:t,title:"Find gene by region",chromosome:u,startPosition:a,endPosition:c,chromosomeLength:f})),i["default"].createElement(g["default"],{compId:"tab_2",key:"tab_2"},i["default"].createElement(T["default"],{componentUpdate:t,title:"Recently found genes"})))}});e.exports=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(594),u=r(l),c=n(1198),f=r(c),p=n(975),h=r(p),d=i["default"].createClass({displayName:"FindGeneByNameDesc",mixins:[s["default"],u["default"]],propTypes:{componentUpdate:i["default"].PropTypes.func.isRequired,title:i["default"].PropTypes.string,search:i["default"].PropTypes.string},getDefaultProps:function(){return{search:""}},title:function(){return this.props.title},handleSearchChange:function(e){this.props.componentUpdate({search:e.target.value})},handleSelectGene:function(e,t){this.getFlux().actions.session.geneFound(t);var n="containers/Gene",r={geneId:t},o=1==e.button||e.metaKey||e.ctrlKey;o?this.getFlux().actions.session.popupOpen(n,r,!1):this.props.componentUpdate(r,n)},render:function(){var e=this.props.search,t=null;return t=e.length<=2?i["default"].createElement("p",null,"Enter more than 2 characters."):i["default"].createElement(f["default"],{search:e,onSelectGene:this.handleSelectGene,icon:"bitmap:genomebrowser.png"}),i["default"].createElement("div",{style:{padding:"10px"}},i["default"].createElement("div",{className:"search"},i["default"].createElement(h["default"],{fullWidth:!0,floatingLabelText:"Search",value:e,onChange:this.handleSearchChange})),i["default"].createElement("div",{style:{position:"relative",width:"100%",height:"200px"}},t))}});e.exports=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0&&(u=a["default"].createElement("span",null,"Found ",l.ids.length," matching genes:"));for(var p=[],h=function(t,o){p.push(a["default"].createElement(D.ListItem,{key:l.ids[t],primaryText:a["default"].createElement("div",null,a["default"].createElement(c["default"],{search:r},a["default"].createElement("span",null,l.ids[t]),a["default"].createElement("span",null," on "),a["default"].createElement("span",null,l.chromosomes[t]))),secondaryText:a["default"].createElement("div",null,a["default"].createElement(c["default"],{search:r},l.descriptions[t].split(",").join(", ").split(";").join("; "))),secondaryTextLines:2,onClick:function(n){return e.handleSelectGene(n,l.ids[t])},leftIcon:a["default"].createElement("div",null,a["default"].createElement(N["default"],{fixedWidth:!0,name:n}))}))},d=0,m=l.ids.length;d= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=d;var m="[object Object]";r.prototype={constructor:r,logger:f["default"],log:f["default"].log,registerHelper:function(e,t){if(i.toString.call(e)===m){if(t)throw new s["default"]("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===m)i.extend(this.partials,e);else{if("undefined"==typeof t)throw new s["default"]('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===m){if(t)throw new s["default"]("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var v=f["default"].log;t.log=v,t.createFrame=i.createFrame,t.logger=f["default"]},function(e,t){"use strict";function n(e){return c[e]}function r(e){for(var t=1;t":">",'"':""","'":"'","`":"`","=":"="},f=/[&<>"'`=]/g,p=/[&<>"'`=]/,h=Object.prototype.toString;t.toString=h;var d=function(e){return"function"==typeof e};d(/x/)&&(t.isFunction=d=function(e){return"function"==typeof e&&"[object Function]"===h.call(e)}),t.isFunction=d;var m=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===h.call(e)};t.isArray=m},function(e,t){"use strict";function n(e,t){var o=t&&t.loc,i=void 0,a=void 0;o&&(i=o.start.line,a=o.start.column,e+=" - "+i+":"+a);for(var s=Error.prototype.constructor.call(this,e),l=0;l0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)})},e.exports=t["default"]},function(e,t,n){"use strict";var r=n(1)["default"];t.__esModule=!0;var o=n(5),i=n(6),a=r(i);t["default"]=function(e){e.registerHelper("each",function(e,t){function n(t,n,i){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!i,c&&(u.contextPath=c+t)),l+=r(e[t],{data:u,blockParams:o.blockParams([e[t],t],[c+t,null])})}if(!t)throw new a["default"]("Must pass iterator to #each");var r=t.fn,i=t.inverse,s=0,l="",u=void 0,c=void 0;if(t.data&&t.ids&&(c=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(u=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var f=e.length;s=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i2&&_.push("'"+this.terminals_[y]+"'");T=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(T,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:f,expected:_})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+h);switch(v[0]){case 1:r.push(h),o.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(v[1]),h=null,d?(h=d,d=null):(u=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,f=this.lexer.yylloc,c>0&&c--);break;case 2:if(b=this.productions_[v[1]][1],w.$=o[o.length-b],w._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},p&&(w._$.range=[i[i.length-(b||1)].range[0],i[i.length-1].range[1]]),g=this.performAction.call(w,s,u,l,this.yy,v[1],o,i),"undefined"!=typeof g)return g;b&&(r=r.slice(0,-1*b*2),o=o.slice(0,-1*b),i=i.slice(0,-1*b)),r.push(this.productions_[v[1]][0]),o.push(w.$),i.push(w._$),x=a[r[r.length-2]][r[r.length-1]],r.push(x);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r,o;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)||(t=n,r=a,this.options.flex));a++);return t?(o=t[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e?e:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return"undefined"!=typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.options={},e.performAction=function(e,t,n,r){function o(e,n){return t.yytext=t.yytext.substr(e,t.yyleng-n)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(o(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(o(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(t.yytext=t.yytext.substr(5,t.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=o(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=o(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},e}();return t.lexer=n,e.prototype=t,t.Parser=e,new e}();t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function o(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],o=e[t-2];return r?"ContentStatement"===r.type?(o||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function i(e,t,n){void 0===t&&(t=-1);var r=e[t+1],o=e[t+2];return r?"ContentStatement"===r.type?(o||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function a(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var o=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==o}}function s(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var o=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==o,r.leftStripped}}var l=n(1)["default"];t.__esModule=!0;var u=n(25),c=l(u);r.prototype=new c["default"],r.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,l=0,u=r.length;l0)throw new v["default"]("Invalid path: "+r,{loc:n});".."===u&&(i++,a+="../")}}return{type:"PathExpression",data:e,depth:i,parts:o,original:r,loc:n}}function u(e,t,n,r,o,i){var a=r.charAt(3)||r.charAt(2),s="{"!==a&&"&"!==a,l=/\*/.test(r);return{type:l?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:s,strip:o,loc:this.locInfo(i)}}function c(e,t,n,o){r(e,n),o=this.locInfo(o);var i={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function f(e,t,n,o,i,a){o&&o.path&&r(e,o);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,u=void 0;if(n){if(s)throw new v["default"]("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),u=n.strip,l=n.program}return i&&(i=l,l=t,t=i),{type:s?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:u,closeStrip:o&&o.strip,loc:this.locInfo(a)}}function p(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function h(e,t,n,o){return r(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}var d=n(1)["default"];t.__esModule=!0,t.SourceLocation=o,t.id=i,t.stripFlags=a,t.stripComment=s,t.preparePath=l,t.prepareMustache=u,t.prepareRawBlock=c,t.prepareBlock=f,t.prepareProgram=p,t.preparePartialBlock=h;var m=n(6),v=d(m)},function(e,t,n){"use strict";function r(){}function o(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new c["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),o=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(o,t)}function i(e,t,n){function r(){var r=n.parse(e,t),o=(new n.Compiler).compile(r,t),i=(new n.JavaScriptCompiler).compile(o,t,void 0,!0);return n.template(i)}function o(e,t){return i||(i=r()),i.call(this,e,t)}if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new c["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var i=void 0;return o._setup=function(e){return i||(i=r()),i._setup(e)},o._child=function(e,t,n,o){return i||(i=r()),i._child(e,t,n,o)},o}function a(e,t){if(e===t)return!0;if(f.isArray(e)&&f.isArray(t)&&e.length===t.length){for(var n=0;n1)throw new c["default"]("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,o="SubExpression"===e.name.type;o&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var i=e.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",o,r,i),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){s(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,o=r.parts[0],i=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",o,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),o=e.path,i=o.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",r.length,i);else{if(this.options.knownHelpersOnly)throw new c["default"]("You specified knownHelpersOnly, but used the unknown helper "+i,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",r.length,o.original,h["default"].helpers.simpleId(o))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=h["default"].helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n=0)return[t,o]}}}},function(e,t,n){"use strict";function r(e){this.value=e}function o(){}function i(e,t,n,r){var o=t.popStack(),i=0,a=n.length;for(e&&a--;i0&&(t+=", "+n.join(", "));var r=0;for(var o in this.aliases){var i=this.aliases[o];this.aliases.hasOwnProperty(o)&&i.children&&i.referenceCount>1&&(t+=", alias"+ ++r+"="+o,i.children[0]="alias"+r)}var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var s=this.mergeSource(t);return e?(a.push(s),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,o=void 0,i=void 0,a=void 0;return this.source.each(function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,a=e):(i&&(o?i.prepend("buffer += "):r=!0,a.add(";"),i=a=void 0),o=!0,t||(n=!1))}),n?i?(i.prepend("return "),a.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var o=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[o++])),this.resolvePath("context",e,o,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,o){var a=this;if(this.options.strict||this.options.assumeObjects)return void this.push(i(this.options.strict&&o,this,t,e));for(var s=t.length;nthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;tn,primary:!0,icon:i["default"].createElement(g["default"],{fixedWidth:!0,name:"search",inverse:!0}),onClick:this.handleFind})),i["default"].createElement("td",{className:"table-col-cell"})))),i["default"].createElement("div",{style:{position:"relative",width:"100%",height:"200px"}},c))}});e.exports=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0&&(c=a["default"].createElement("span",null,"Found ",u.length," genes on chromosome ",r," between positions ",o," and ",i,":"));for(var f=[],p=function(t,r){f.push(a["default"].createElement(_.ListItem,{key:u[t].fid,primaryText:a["default"].createElement("div",null,a["default"].createElement("span",null,u[t].fname),a["default"].createElement("span",null," between "),a["default"].createElement("span",null,u[t].fstart," and ",u[t].fstop)),secondaryText:a["default"].createElement("div",null,u[t].descr.split(";").join("; ")),secondaryTextLines:2,onClick:function(n){return e.handleSelectGene(n,u[t].fid)},leftIcon:a["default"].createElement("div",null,a["default"].createElement(S["default"],{fixedWidth:!0,name:n}))}))},h=0,d=u.length;h0?!function(){var r=[];t.map(function(t){var n=i["default"].createElement(p.ListItem,{key:t,primaryText:t,leftIcon:i["default"].createElement("div",null,i["default"].createElement(v["default"],{fixedWidth:!0,name:"bitmap:genomebrowser.png"})),onClick:function(n){return e.handleSelectGene(n,t)}});r.push(n)}),n=i["default"].createElement(p.List,null,r)}():n=i["default"].createElement(p.List,null,i["default"].createElement(d["default"],null,"No recently found genes.")),n}});e.exports=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(594),u=r(l),c=n(595),f=r(c),p=n(936),h=n(744),d=r(h),m=n(716),v=r(m),g=i["default"].createClass({displayName:"Finder",mixins:[s["default"],u["default"],f["default"]],getDefaultProps:function(){return{title:"Find",icon:"search"}},icon:function(){return this.props.icon},title:function(){return this.props.title},handleSwitchModal:function(e,t){this.getFlux().actions.session.modalClose(),this.getFlux().actions.session.modalOpen(e,t)},handleOpenTableTab:function(e,t){var n=1==e.button||e.metaKey||e.ctrlKey;n||this.getFlux().actions.session.modalClose();var r="containers/DataTableWithActions";this.config.tablesById[t.id].listView&&(r="containers/ListWithActions");var o=!n;this.getFlux().actions.session.tabOpen(r,{table:t.id,initialSearchFocus:!0},o)},handleOpenPopup:function(e,t,n){var r=1==e.button||e.metaKey||e.ctrlKey;r||this.getFlux().actions.session.modalClose();var o=!r;this.getFlux().actions.session.popupOpen(t,n,o)},render:function(){var e=this,t=[];if(this.config.genome.annotation){var n="Name, Description, Genomic region",r=i["default"].createElement(p.ListItem,{key:"findGeneListItem",primaryText:"Gene",secondaryText:n,leftIcon:i["default"].createElement("div",null,i["default"].createElement(d["default"],{fixedWidth:!0,name:"bitmap:genomebrowser.png"})),onClick:function(t){return e.handleOpenPopup(t,"containers/FindGene",{})}});t.push(r)}(0,v["default"])(this.config.visibleTables,function(n){for(var r="",o=0,a=n.quickFindFields.length;o0?i["default"].createElement(p.List,{className:"tall-modal",style:{overflow:"auto"}},t):i["default"].createElement("div",{className:"centering-container"},"No search wizards available.")}});e.exports=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t=",parseInt(r.fstart)),w["default"].WhereClause.CompareFixed(e.position,"<=",parseInt(r.fstop))])):e.isRegionOnGenome&&(n=w["default"].WhereClause.encode(w["default"].WhereClause.AND([w["default"].WhereClause.CompareFixed(e.chromosome,"=",r.chromid),w["default"].WhereClause.CompareFixed(e.regionStart,"<=",parseInt(r.fstop)),w["default"].WhereClause.CompareFixed(e.regionStop,">=",parseInt(r.fstart))])));var o=a["default"].createElement(C["default"],{key:e.id,label:"Show "+e.namePlural+" in "+r.fname,icon:e.icon,componentPath:e.listView?"containers/ListWithActions":"containers/DataTableWithActions",componentUpdate:t,table:e.id,query:n});s.push(o)}});for(var l=this.config.genome.externalGeneLinks,u=[],c=0,f=l.length;c.5*y&&this.targetPointCount<2*y&&(this.blockEnd===d&&this.blockStart===h||this.blockEnd===g&&this.blockStart===v)||(this.blockStart=h,this.blockEnd=d,this.targetPointCount=y,u&&u("LOADING"),t.request(function(o){return C["default"].fetch({columns:{sequence:{folder:"SummaryTracks/"+n.config.dataset+"/Sequence",config:"Summ",name:"Base_avg"}},minBlockSize:1,chromosome:r,start:h,end:d,targetPointCount:y,cancellation:o}).then(function(e){n.applyData(e),u&&u("DONE")})["catch"](function(e){throw u&&u("DONE"),e})["catch"](w["default"].filterAborted)["catch"](x["default"].filterCancelled)["catch"](function(r){(0,k["default"])(n.getFlux(),r.message,function(){return n.fetchData(e,t)})})}))}},render:function(){var e=this.props,t=e.start,n=e.end,r=e.width,o=e.sideWidth,i=this.state,s=i.dataStart,l=i.dataStep,u=i.columns,c=u?u.sequence.data||[]:[];return 0==r?null:a["default"].createElement(M["default"],{height:L,width:r,sideWidth:o,sideComponent:a["default"].createElement("div",{className:"side-name"},"Ref. Seq."),legendComponent:a["default"].createElement(I,null)},a["default"].createElement("div",{className:"sequence"},a["default"].createElement(F,{width:r-o,height:L,start:t,end:n,dataStart:s,dataStep:l,sequence:c}),a["default"].createElement(R,{width:r-o,height:L,start:t,end:n,dataStart:s,dataStep:l,sequence:c})))}}),R=a["default"].createClass({displayName:"SequenceText",mixins:[l["default"]],render:function(){var e=this.props,t=e.width,n=e.height,r=e.start,o=e.end,i=e.dataStart,s=e.dataStep,l=e.sequence;if(!l)return null;var u=Math.max(0,Math.floor((r-i)/s)),f=Math.min(l.length-1,Math.ceil((o-i)/s)),p=c["default"].scale.linear().domain([r,o]).range([0,t]);return p(1)-p(0)<15?null:a["default"].createElement("svg",{viewBox:"0 "+-n/2+" "+t+" "+n,width:t,height:n},l.slice(u,f).map(function(e,t){var n=i+(t+u)*s+1;return a["default"].createElement("text",{key:n,x:p(n)},e)}))}}),F=a["default"].createClass({displayName:"SequenceSquares",mixins:[l["default"]],componentDidMount:function(){this.paint(this.refs.canvas)},componentDidUpdate:function(e){this.props.sequence!==e.sequence&&this.paint(this.refs.canvas)},paint:function(e){var t=this.props.sequence;if(e.width=t.length,e.height=1,e.width!==t.length&&console.log("Unequal lengths"),!(t.length<1)){var n=e.getContext("2d"),r=n.getImageData(0,0,e.width,e.height),o=r.data;t.forEach(function(e,t){e=e.toLowerCase(),o[4*t+3]=255,"a"===e?(o[4*t]=255,o[4*t+1]=50,o[4*t+2]=50):"t"===e?(o[4*t]=255,o[4*t+1]=170,o[4*t+2]=0):"c"===e?(o[4*t]=0,o[4*t+1]=128,o[4*t+2]=192):"g"===e?(o[4*t]=0,o[4*t+1]=192,o[4*t+2]=120):(o[4*t]=0,o[4*t+1]=0,o[4*t+2]=0)}),n.putImageData(r,0,0)}},render:function(){var e=this.props,t=e.width,n=e.height,r=e.start,o=e.end,i=e.dataStart,s=e.dataStep,l=e.sequence,u=c["default"].scale.linear().domain([r,o]).range([0,t]),f=u(s)-u(0),p=u(i+.5)-u(r);return a["default"].createElement("canvas",{ref:"canvas",style:{transform:"translateX("+p+"px) scale("+f+","+n+")"},className:f<1?"":"blocky",width:l.length,height:1})}}),I=function(){return a["default"].createElement("div",{className:"legend"},[["A","rgb(255, 50, 50)"],["T","rgb(255, 170, 0)"],["C","rgb(0, 128, 192)"],["G","rgb(0, 192, 120)"],["N","rgb(0,0,0)"]].map(function(e){var t=o(e,2),n=t[0],r=t[1];return a["default"].createElement(A["default"],{key:n,name:n,colour:r})}),a["default"].createElement("div",{style:{paddingLeft:"10px"}},"(Majority base over window)"))};I.shouldComponentUpdate=function(){return!1},e.exports=j},function(e,t,n){var r,o;!function(){function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function a(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function s(e,t){return et?1:e>=t?0:NaN}function l(e){return null===e?NaN:+e}function u(e){return!isNaN(e)}function c(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function f(e){return e.length}function p(e){for(var t=1;e*t%1;)t*=10;return t}function h(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function d(){this._=Object.create(null)}function m(e){return(e+="")===ka||e[0]===Sa?Sa+e:e}function v(e){return(e+="")[0]===Sa?e.slice(1):e}function g(e){return m(e)in this._}function y(e){return(e=m(e))in this._&&delete this._[e]}function b(){var e=[];for(var t in this._)e.push(v(t));return e}function x(){var e=0;for(var t in this._)++e;return e}function _(){for(var e in this._)return!1;return!0}function w(){this._=Object.create(null)}function T(e){return e}function C(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Aa.length;n=t&&(t=o+1);!(a=s[t])&&++t0&&(e=e.slice(0,s));var u=Na.get(e);return u&&(e=u,l=$),s?t?o:r:t?k:i}function J(e,t){return function(n){var r=ha.event;ha.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{ha.event=r}}}function $(e,t){var n=J(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function ee(e){var t=".dragsuppress-"+ ++za,n="click"+t,r=ha.select(a(e)).on("touchmove"+t,P).on("dragstart"+t,P).on("selectstart"+t,P);if(null==Ba&&(Ba=!("onselectstart"in e)&&E(e.style,"userSelect")),Ba){var o=i(e).style,s=o[Ba];o[Ba]="none"}return function(e){if(r.on(t,null),Ba&&(o[Ba]=s),e){var i=function(){r.on(n,null)};r.on(n,function(){P(),i()},!0),setTimeout(i,0)}}}function te(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(Ua<0){var o=a(e);if(o.scrollX||o.scrollY){n=ha.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Ua=!(i.f||i.e),n.remove()}}return Ua?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function ne(){return ha.event.changedTouches[0].identifier}function re(e){return e>0?1:e<0?-1:0}function oe(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ie(e){return e>1?0:e<-1?qa:Math.acos(e)}function ae(e){return e>1?Ya:e<-1?-Ya:Math.asin(e)}function se(e){return((e=Math.exp(e))-1/e)/2}function le(e){return((e=Math.exp(e))+1/e)/2}function ue(e){return((e=Math.exp(2*e))-1)/(e+1)}function ce(e){return(e=Math.sin(e/2))*e}function fe(){}function pe(e,t,n){return this instanceof pe?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof pe?new pe(e.h,e.s,e.l):ke(""+e,Se,pe):new pe(e,t,n)}function he(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?i+(a-i)*e/60:e<180?a:e<240?i+(a-i)*(240-e)/60:i}function o(e){return Math.round(255*r(e))}var i,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,i=2*n-a,new we(o(e+120),o(e),o(e-120))}function de(e,t,n){return this instanceof de?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof de?new de(e.h,e.c,e.l):e instanceof ve?ye(e.l,e.a,e.b):ye((e=Ae((e=ha.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new de(e,t,n)}function me(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new ve(n,Math.cos(e*=Ka)*t,Math.sin(e)*t)}function ve(e,t,n){return this instanceof ve?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof ve?new ve(e.l,e.a,e.b):e instanceof de?me(e.h,e.c,e.l):Ae((e=we(e)).r,e.g,e.b):new ve(e,t,n)}function ge(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return o=be(o)*is,r=be(r)*as,i=be(i)*ss,new we(_e(3.2404542*o-1.5371385*r-.4985314*i),_e(-.969266*o+1.8760108*r+.041556*i),_e(.0556434*o-.2040259*r+1.0572252*i))}function ye(e,t,n){return e>0?new de(Math.atan2(n,t)*Xa,Math.sqrt(t*t+n*n),e):new de(NaN,NaN,e)}function be(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function xe(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function _e(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function we(e,t,n){return this instanceof we?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof we?new we(e.r,e.g,e.b):ke(""+e,we,he):new we(e,t,n)}function Te(e){return new we(e>>16,e>>8&255,255&e)}function Ce(e){return Te(e)+""}function Ee(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ke(e,t,n){var r,o,i,a=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(Me(o[0]),Me(o[1]),Me(o[2]))}return(i=cs.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a=a>>4|a,s=240&i,s=s>>4|s,l=15&i,l=l<<4|l):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,l=255&i)),t(a,s,l))}function Se(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,l=(a+i)/2;return s?(o=l<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t0&&l<1?0:r),new pe(r,o,l)}function Ae(e,t,n){e=Pe(e),t=Pe(t),n=Pe(n);var r=xe((.4124564*e+.3575761*t+.1804375*n)/is),o=xe((.2126729*e+.7151522*t+.072175*n)/as),i=xe((.0193339*e+.119192*t+.9503041*n)/ss);return ve(116*o-16,500*(r-o),200*(o-i))}function Pe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Me(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Oe(e){return"function"==typeof e?e:function(){return e}}function De(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Le(t,n,e,r)}}function Le(e,t,n,r){function o(){var e,t=l.status;if(!t&&Re(l)||t>=200&&t<300||304===t){try{e=n.call(i,l)}catch(r){return void a.error.call(i,r)}a.load.call(i,e)}else a.error.call(i,l)}var i={},a=ha.dispatch("beforesend","progress","load","error"),s={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=o:l.onreadystatechange=function(){l.readyState>3&&o()},l.onprogress=function(e){var t=ha.event;ha.event=e;try{a.progress.call(i,l)}finally{ha.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(u=e,i):u},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(ma(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=u&&(l.responseType=u),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},ha.rebind(i,a,"on"),null==r?i:i.get(je(r))}function je(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Re(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Fe(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return ps?ps.n=i:fs=i,ps=i,hs||(ds=clearTimeout(ds),hs=1,ms(Ie)),i}function Ie(){var e=Ne(),t=Be()-e;t>24?(isFinite(t)&&(clearTimeout(ds),ds=setTimeout(Ie,t)),hs=0):(hs=1,ms(Ie))}function Ne(){for(var e=Date.now(),t=fs;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Be(){for(var e,t=fs,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}function We(e){var t=e.decimal,n=e.thousands,r=e.grouping,o=e.currency,i=r&&n?function(e,t){for(var o=e.length,i=[],a=0,s=r[0],l=0;o>0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>t));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:T;return function(e){var n=gs.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",l=n[4]||"",u=n[5],c=+n[6],f=n[7],p=n[8],h=n[9],d=1,m="",v="",g=!1,y=!0;switch(p&&(p=+p.substring(1)),(u||"0"===r&&"="===a)&&(u=r="0",a="="),h){case"n":f=!0,h="g";break;case"%":d=100,v="%",h="f";break;case"p":d=100,v="%",h="r";break;case"b":case"o":case"x":case"X":"#"===l&&(m="0"+h.toLowerCase());case"c":y=!1;case"d":g=!0,p=0;break;case"s":d=-1,h="r"}"$"===l&&(m=o[0],v=o[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=ys.get(h)||He;var b=u&&f;return function(e){var n=v;if(g&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(d<0){var l=ha.formatPrefix(e,p);e=l.scale(e),n=l.symbol+v}else e*=d;e=h(e,p);var x,_,w=e.lastIndexOf(".");if(w<0){var T=y?e.lastIndexOf("e"):-1;T<0?(x=e,_=""):(x=e.substring(0,T),_=e.substring(T))}else x=e.substring(0,w),_=t+e.substring(w+1);!u&&f&&(x=i(x,1/0));var C=m.length+x.length+_.length+(b?0:o.length),E=C"===a?E+o+e:"^"===a?E.substring(0,C>>=1)+o+e+E.substring(C):o+(b?e:E+e))+n}}}function He(e){return e+""}function qe(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ve(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n1)for(;a=u)return-1;if(o=t.charCodeAt(s++),37===o){if(a=t.charAt(s++),i=P[a in ws?t.charAt(s++):a],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.w=T.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.w=_.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){k.lastIndex=0;var r=k.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){C.lastIndex=0;var r=C.exec(t.slice(n));return r?(e.m=E.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,A.c.toString(),t,r)}function l(e,t,r){return n(e,A.x.toString(),t,r)}function u(e,t,r){return n(e,A.X.toString(),t,r)}function c(e,t,n){var r=b.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var f=e.dateTime,p=e.date,h=e.time,d=e.periods,m=e.days,v=e.shortDays,g=e.months,y=e.shortMonths;t.utc=function(e){function n(e){try{xs=qe;var t=new xs;return t._=e,r(t)}finally{xs=Date}}var r=t(e);return n.parse=function(e){try{xs=qe;var t=r.parse(e);return t&&t._}finally{xs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ht;var b=ha.map(),x=Xe(m),_=Ze(m),w=Xe(v),T=Ze(v),C=Xe(g),E=Ze(g),k=Xe(y),S=Ze(y);d.forEach(function(e,t){b.set(e.toLowerCase(),t)});var A={a:function(e){return v[e.getDay()]},A:function(e){return m[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:t(f),d:function(e,t){return Ke(e.getDate(),t,2)},e:function(e,t){return Ke(e.getDate(),t,2)},H:function(e,t){return Ke(e.getHours(),t,2)},I:function(e,t){return Ke(e.getHours()%12||12,t,2)},j:function(e,t){return Ke(1+bs.dayOfYear(e),t,3)},L:function(e,t){return Ke(e.getMilliseconds(),t,3)},m:function(e,t){return Ke(e.getMonth()+1,t,2)},M:function(e,t){return Ke(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return Ke(e.getSeconds(),t,2)},U:function(e,t){return Ke(bs.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ke(bs.mondayOfYear(e),t,2)},x:t(p),X:t(h),y:function(e,t){return Ke(e.getFullYear()%100,t,2)},Y:function(e,t){return Ke(e.getFullYear()%1e4,t,4)},Z:ft,"%":function(){return"%"}},P={a:r,A:o,b:i,B:a,c:s,d:it,e:it,H:st,I:st,j:at,L:ct,m:ot,M:lt,p:c,S:ut,U:Je,w:Qe,W:$e,x:l,X:u,y:tt,Y:et,Z:nt,"%":pt};return t}function Ke(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3)}function ot(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function it(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function at(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function st(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lt(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ut(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ct(e,t,n){Ts.lastIndex=0;var r=Ts.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ft(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=Ea(t)/60|0,o=Ea(t)%60;return n+Ke(r,"0",2)+Ke(o,"0",2)}function pt(e,t,n){Cs.lastIndex=0;var r=Cs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ht(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*n,l=Math.cos(t),u=Math.sin(t),c=i*u,f=o*l+c*Math.cos(s),p=c*a*Math.sin(s);Ms.add(Math.atan2(p,f)),r=e,o=l,i=u}var t,n,r,o,i;Os.point=function(a,s){Os.point=e,r=(t=a)*Ka,o=Math.cos(s=(n=s)*Ka/2+qa/4),i=Math.sin(s)},Os.lineEnd=function(){e(t,n)}}function xt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function _t(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function wt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Tt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ct(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Et(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function kt(e){return[Math.atan2(e[1],e[0]),ae(e[2])]}function St(e,t){return Ea(e[0]-t[0])=0;--s)o.point((f=c[s])[0],f[1])}else r(h.x,h.p.x,-1,o);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);o.lineEnd()}}}function Ft(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0){for(_||(i.polygonStart(),_=!0),i.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),h.push(n.filter(Bt))}var h,d,m,v=t(i),g=o.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=p,h=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=u,h=ha.merge(h);var e=Vt(g,d);h.length?(_||(i.polygonStart(),_=!0),Rt(h,Ut,e,n,i)):e&&(_||(i.polygonStart(),_=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),h=d=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},b=zt(),x=t(b),_=!1;return y}}function Bt(e){return e.length>1}function zt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:k,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ut(e,t){return((e=e.x)[0]<0?e[1]-Ya-Wa:Ya-e[1])-((t=t.x)[0]<0?t[1]-Ya-Wa:Ya-t[1])}function Wt(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?qa:-qa,l=Ea(i-n);Ea(l-qa)0?Ya:-Ya),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&l>=qa&&(Ea(n-o)Wa?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}function qt(e,t,n,r){var o;if(null==e)o=n*Ya,r.point(-qa,o),r.point(0,o),r.point(qa,o),r.point(qa,0),r.point(qa,-o),r.point(0,-o),r.point(-qa,-o),r.point(-qa,0),r.point(-qa,o);else if(Ea(e[0]-t[0])>Wa){var i=e[0]=0?1:-1,T=w*_,C=T>qa,E=d*b;if(Ms.add(Math.atan2(E*w*Math.sin(T),m*x+E*Math.cos(T))),i+=C?_+w*Va:_,C^p>=n^g>=n){var k=wt(xt(f),xt(e));Et(k);var S=wt(o,k);Et(S);var A=(C^_>=0?-1:1)*ae(S[2]);(r>A||r===A&&(k[0]||k[1]))&&(a+=C^_>=0?1:-1)}if(!v++)break;p=g,d=b,m=x,f=e}}return(i<-Wa||ii}function n(e){var n,i,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(f,p){var h,d=[f,p],m=t(f,p),v=a?m?0:o(f,p):m?o(f+(f<0?qa:-qa),p):0;if(!n&&(u=l=m)&&e.lineStart(),m!==l&&(h=r(n,d),(St(n,h)||St(d,h))&&(d[0]+=Wa,d[1]+=Wa,m=t(d[0],d[1]))),m!==l)c=0,m?(e.lineStart(),h=r(d,n),e.point(h[0],h[1])):(h=r(n,d),e.point(h[0],h[1]),e.lineEnd()),n=h;else if(s&&n&&a^m){var g;v&i||!(g=r(d,n,!0))||(c=0,a?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!m||n&&St(n,d)||e.point(d[0],d[1]),n=d,l=m,i=v},lineEnd:function(){l&&e.lineEnd(),n=null},clean:function(){return c|(u&&l)<<1}}}function r(e,t,n){var r=xt(e),o=xt(t),a=[1,0,0],s=wt(r,o),l=_t(s,s),u=s[0],c=l-u*u;if(!c)return!n&&e;var f=i*l/c,p=-i*u/c,h=wt(a,s),d=Ct(a,f),m=Ct(s,p);Tt(d,m);var v=h,g=_t(d,v),y=_t(v,v),b=g*g-y*(_t(d,d)-1);if(!(b<0)){var x=Math.sqrt(b),_=Ct(v,(-g-x)/y);if(Tt(_,d),_=kt(_),!n)return _;var w,T=e[0],C=t[0],E=e[1],k=t[1];C0^_[1]<(Ea(_[0]-T)qa^(T<=_[0]&&_[0]<=C)){var M=Ct(v,(-g+x)/y);return Tt(M,d),[_,kt(M)]}}}function o(t,n){var r=a?e:qa-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(e),a=i>0,s=Ea(i)>Wa,l=xn(e,6*Ka);return Nt(t,n,l,a?[0,-e]:[-qa,e-qa])}function Yt(e,t,n,r){return function(o){var i,a=o.a,s=o.b,l=a.x,u=a.y,c=s.x,f=s.y,p=0,h=1,d=c-l,m=f-u;if(i=e-l,d||!(i>0)){if(i/=d,d<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=n-l,d||!(i<0)){if(i/=d,d<0){if(i>h)return;i>p&&(p=i)}else if(d>0){if(i0)){if(i/=m,m<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=r-u,m||!(i<0)){if(i/=m,m<0){if(i>h)return;i>p&&(p=i)}else if(m>0){if(i0&&(o.a={x:l+p*d,y:u+p*m}),h<1&&(o.b={x:l+h*d,y:u+h*m}),o}}}}}}function Kt(e,t,n,r){function o(r,o){return Ea(r[0]-e)0?0:3:Ea(r[0]-n)0?2:1:Ea(r[1]-t)0?1:0:o>0?3:2}function i(e,t){return a(e.x,t.x)}function a(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function l(e){for(var t=0,n=v.length,r=e[1],o=0;or&&oe(u,i,e)>0&&++t:i[1]<=r&&oe(u,i,e)<0&&--t,u=i;return 0!==t}function u(i,s,l,u){var c=0,f=0;if(null==i||(c=o(i,l))!==(f=o(s,l))||a(i,s)<0^l>0){do u.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+l+4)%4)!==f)}else u.point(s[0],s[1])}function c(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function f(e,t){c(e,t)&&s.point(e,t)}function p(){P.point=d,v&&v.push(g=[]),C=!0,T=!1,_=w=NaN}function h(){m&&(d(y,b),x&&T&&S.rejoin(),m.push(S.buffer())),P.point=f,T&&s.lineEnd()}function d(e,t){e=Math.max(-Vs,Math.min(Vs,e)),t=Math.max(-Vs,Math.min(Vs,t));var n=c(e,t);if(v&&g.push([e,t]),C)y=e,b=t,x=n,C=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&T)s.point(e,t);else{var r={a:{x:_,y:w},b:{x:e,y:t}};A(r)?(T||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),E=!1):n&&(s.lineStart(),s.point(e,t),E=!1)}_=e,w=t,T=n}var m,v,g,y,b,x,_,w,T,C,E,k=s,S=zt(),A=Yt(e,t,n,r),P={point:f,lineStart:p,lineEnd:h,polygonStart:function(){s=S,m=[],v=[],E=!0},polygonEnd:function(){s=k,m=ha.merge(m);var t=l([e,r]),n=E&&t,o=m.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),o&&Rt(m,i,t,u,s),s.polygonEnd()),m=v=g=null}};return P}}function Xt(e){var t=0,n=qa/3,r=pn(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*qa/180,n=e[1]*qa/180):[t/qa*180,n/qa*180]},o}function Zt(e,t){function n(e,t){var n=Math.sqrt(i-2*o*Math.sin(t))/o;return[n*Math.sin(e*=o),a-n*Math.cos(e)]}var r=Math.sin(e),o=(r+Math.sin(t))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/o,ae((i-(e*e+n*n)*o*o)/(2*o))]},n}function Qt(){function e(e,t){Ys+=o*e-r*t,r=e,o=t}var t,n,r,o;Js.point=function(i,a){Js.point=e,t=r=i,n=o=a},Js.lineEnd=function(){e(t,n)}}function Jt(e,t){eZs&&(Zs=e),tQs&&(Qs=t)}function $t(){function e(e,t){a.push("M",e,",",t,i)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function o(){a.push("Z")}var i=en(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return i=en(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function en(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function tn(e,t){js+=e,Rs+=t,++Fs}function nn(){function e(e,r){var o=e-t,i=r-n,a=Math.sqrt(o*o+i*i);Is+=a*(t+e)/2,Ns+=a*(n+r)/2,Bs+=a,tn(t=e,n=r)}var t,n;el.point=function(r,o){el.point=e,tn(t=r,n=o)}}function rn(){el.point=tn}function on(){function e(e,t){var n=e-r,i=t-o,a=Math.sqrt(n*n+i*i);Is+=a*(r+e)/2,Ns+=a*(o+t)/2,Bs+=a,a=o*e-r*t,zs+=a*(r+e),Us+=a*(o+t),Ws+=3*a,tn(r=e,o=t)}var t,n,r,o;el.point=function(i,a){el.point=e,tn(t=r=i,n=o=a)},el.lineEnd=function(){e(t,n)}}function an(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Va)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function o(){s.point=t}function i(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=t},pointRadius:function(e){return a=e,s},result:k};return s}function sn(e){function t(e){return(s?r:n)(e)}function n(t){return cn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){b=NaN,C.point=i,t.lineStart()}function i(n,r){var i=xt([n,r]),a=e(n,r);o(b,x,y,_,w,T,b=a[0],x=a[1],y=n,_=i[0],w=i[1],T=i[2],s,t),t.point(b,x)}function a(){C.point=n,t.lineEnd()}function l(){r(),C.point=u,C.lineEnd=c}function u(e,t){i(f=e,p=t),h=b,d=x,m=_,v=w,g=T,C.point=i}function c(){o(b,x,y,_,w,T,h,d,f,m,v,g,s,t),C.lineEnd=a,a()}var f,p,h,d,m,v,g,y,b,x,_,w,T,C={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),C.lineStart=l},polygonEnd:function(){t.polygonEnd(),C.lineStart=r}};return C}function o(t,n,r,s,l,u,c,f,p,h,d,m,v,g){var y=c-t,b=f-n,x=y*y+b*b;if(x>4*i&&v--){var _=s+h,w=l+d,T=u+m,C=Math.sqrt(_*_+w*w+T*T),E=Math.asin(T/=C),k=Ea(Ea(T)-1)i||Ea((y*M+b*O)/x-.5)>.3||s*h+l*d+u*m0&&16,t):Math.sqrt(i)},t}function ln(e){var t=sn(function(t,n){return e([t*Xa,n*Xa])});return function(e){return hn(t(e))}}function un(e){this.stream=e}function cn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function fn(e){return pn(function(){return e})()}function pn(e){function t(e){return e=s(e[0]*Ka,e[1]*Ka),[e[0]*p+l,u-e[1]*p]}function n(e){return e=s.invert((e[0]-l)/p,(u-e[1])/p),e&&[e[0]*Xa,e[1]*Xa]}function r(){s=Lt(a=vn(g,y,b),i);var e=i(m,v);return l=h-e[0]*p,u=d+e[1]*p,o()}function o(){return c&&(c.valid=!1,c=null),t}var i,a,s,l,u,c,f=sn(function(e,t){return e=i(e,t),[e[0]*p+l,u-e[1]*p]}),p=150,h=480,d=250,m=0,v=0,g=0,y=0,b=0,x=qs,_=T,w=null,C=null;return t.stream=function(e){return c&&(c.valid=!1),c=hn(x(a,f(_(e)))),c.valid=!0,c},t.clipAngle=function(e){return arguments.length?(x=null==e?(w=e,qs):Gt((w=+e)*Ka),o()):w},t.clipExtent=function(e){return arguments.length?(C=e,_=e?Kt(e[0][0],e[0][1],e[1][0],e[1][1]):T,o()):C},t.scale=function(e){return arguments.length?(p=+e,r()):p},t.translate=function(e){return arguments.length?(h=+e[0],d=+e[1],r()):[h,d]},t.center=function(e){return arguments.length?(m=e[0]%360*Ka,v=e[1]%360*Ka,r()):[m*Xa,v*Xa]},t.rotate=function(e){return arguments.length?(g=e[0]%360*Ka,y=e[1]%360*Ka,b=e.length>2?e[2]%360*Ka:0,r()):[g*Xa,y*Xa,b*Xa]},ha.rebind(t,f,"precision"),function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function hn(e){return cn(e,function(t,n){e.point(t*Ka,n*Ka)})}function dn(e,t){return[e,t]}function mn(e,t){return[e>qa?e-Va:e<-qa?e+Va:e,t]}function vn(e,t,n){return e?t||n?Lt(yn(e),bn(t,n)):yn(e):t||n?bn(t,n):mn}function gn(e){return function(t,n){return t+=e,[t>qa?t-Va:t<-qa?t+Va:t,n]}}function yn(e){var t=gn(e);return t.invert=gn(-e),t}function bn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*r+s*o;return[Math.atan2(l*i-c*a,s*r-u*o),ae(c*i+l*a)]}var r=Math.cos(e),o=Math.sin(e),i=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*i-l*a;return[Math.atan2(l*i+u*a,s*r+c*o),ae(c*r-s*o)]},n}function xn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,s){var l=a*t;null!=o?(o=_n(n,o),i=_n(n,i),(a>0?oi)&&(o+=a*Va)):(o=e+a*Va,i=e-.5*l);for(var u,c=o;a>0?c>i:c0?t<-Ya+Wa&&(t=-Ya+Wa):t>Ya-Wa&&(t=Ya-Wa);var n=a/Math.pow(o(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),o=function(e){return Math.tan(qa/4+e/2)},i=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(o(t)/o(e)),a=r*Math.pow(o(e),i)/i;return i?(n.invert=function(e,t){var n=a-t,r=re(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ya]},n):On}function Mn(e,t){function n(e,t){var n=i-t;return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}var r=Math.cos(e),o=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),i=r/o+e;return Ea(o)1&&oe(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function In(e,t){return e[0]-t[0]||e[1]-t[1]}function Nn(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Bn(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,l=e[1],u=n[1],c=t[1]-l,f=r[1]-u,p=(s*(l-u)-f*(o-i))/(f*a-s*c);return[o+p*a,l+p*c]}function zn(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Un(){lr(this),this.edge=this.site=this.circle=null}function Wn(e){var t=dl.pop()||new Un;return t.site=e,t}function Hn(e){$n(e),fl.remove(e),dl.push(e),lr(e)}function qn(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];Hn(e);for(var l=i;l.circle&&Ea(n-l.circle.x)Wa)s=s.L;else{if(o=i-Yn(s,a),!(o>Wa)){r>-Wa?(t=s.P,n=s):o>-Wa?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Wn(e);if(fl.insert(t,l),t||n){if(t===n)return $n(t),n=Wn(t.site),fl.insert(l,n),l.edge=n.edge=rr(t.site,l.site),Jn(t),void Jn(n);if(!n)return void(l.edge=rr(t.site,l.site));$n(t),$n(n);var u=t.site,c=u.x,f=u.y,p=e.x-c,h=e.y-f,d=n.site,m=d.x-c,v=d.y-f,g=2*(p*v-h*m),y=p*p+h*h,b=m*m+v*v,x={x:(v*y-h*b)/g+c,y:(p*b-m*y)/g+f};ir(n.edge,u,d,x),l.edge=rr(u,e,null,x),n.edge=rr(e,d,null,x),Jn(t),Jn(n)}}function Gn(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,l=n.y,u=l-t;if(!u)return s;var c=s-r,f=1/i-1/u,p=c/u;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*u)-l+u/2+o-i/2)))/f+r:(r+s)/2}function Yn(e,t){var n=e.N;if(n)return Gn(n,t);var r=e.site;return r.y===t?r.x:1/0}function Kn(e){this.site=e,this.edges=[]}function Xn(e){for(var t,n,r,o,i,a,s,l,u,c,f=e[0][0],p=e[1][0],h=e[0][1],d=e[1][1],m=cl,v=m.length;v--;)if(i=m[v],i&&i.prepare())for(s=i.edges,l=s.length,a=0;aWa||Ea(o-n)>Wa)&&(s.splice(a,0,new ar(or(i.site,c,Ea(r-f)Wa?{x:f,y:Ea(t-f)Wa?{x:Ea(n-d)Wa?{x:p,y:Ea(t-p)Wa?{x:Ea(n-h)=-Ha)){var h=l*l+u*u,d=c*c+f*f,m=(f*h-u*d)/p,v=(l*d-c*h)/p,f=v+s,g=ml.pop()||new Qn;g.arc=e,g.site=o,g.x=m+a,g.y=f+Math.sqrt(m*m+v*v),g.cy=f,e.circle=g;for(var y=null,b=hl._;b;)if(g.y=s)return;if(p>d){if(i){if(i.y>=u)return}else i={x:v,y:l};n={x:v,y:u}}else{if(i){if(i.y1)if(p>d){if(i){if(i.y>=u)return}else i={x:(l-o)/r,y:l};n={x:(u-o)/r,y:u}}else{if(i){if(i.y=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.xi||f>a||p=x,T=n>=_,C=T<<1|w,E=C+4;Ci&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:wr(n,r)})),i=yl.lastIndex;return i=0&&!(n=ha.interpolators[r](e,t)););return n}function Er(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n=1?1:e(t)}}function Sr(e){return function(t){return 1-e(1-t)}}function Ar(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Pr(e){return e*e}function Mr(e){return e*e*e}function Or(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Dr(e){return function(t){return Math.pow(t,e)}}function Lr(e){return 1-Math.cos(e*Ya)}function jr(e){return Math.pow(2,10*(e-1))}function Rr(e){return 1-Math.sqrt(1-e*e)}function Fr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Va*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Va/t)}}function Ir(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Nr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Br(e,t){e=ha.hcl(e),t=ha.hcl(t);var n=e.h,r=e.c,o=e.l,i=t.h-n,a=t.c-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return me(n+i*e,r+a*e,o+s*e)+""}}function zr(e,t){e=ha.hsl(e),t=ha.hsl(t);var n=e.h,r=e.s,o=e.l,i=t.h-n,a=t.s-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return he(n+i*e,r+a*e,o+s*e)+""}}function Ur(e,t){e=ha.lab(e),t=ha.lab(t);var n=e.l,r=e.a,o=e.b,i=t.l-n,a=t.a-r,s=t.b-o;return function(e){return ge(n+i*e,r+a*e,o+s*e)+""}}function Wr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Hr(e){var t=[e.a,e.b],n=[e.c,e.d],r=Vr(t),o=qr(t,n),i=Vr(Gr(n,t,-o))||0;t[0]*n[1]180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Yr(n)+"rotate(",null,")")-2,x:wr(e,t)})):t&&n.push(Yr(n)+"rotate("+t+")")}function Zr(e,t,n,r){e!==t?r.push({i:n.push(Yr(n)+"skewX(",null,")")-2,x:wr(e,t)}):t&&n.push(Yr(n)+"skewX("+t+")")}function Qr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(Yr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:wr(e[0],t[0])},{i:o-2,x:wr(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Yr(n)+"scale("+t+")")}function Jr(e,t){var n=[],r=[];return e=ha.transform(e),t=ha.transform(t),Kr(e.translate,t.translate,n,r),Xr(e.rotate,t.rotate,n,r),Zr(e.skew,t.skew,n,r),Qr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o=0;)n.push(o[r])}function fo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++ao&&(r=n,o=t);return r}function To(e){return e.reduce(Co,0)}function Co(e,t){return e+t[1]}function Eo(e,t){return ko(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ko(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function So(e){return[ha.min(e),ha.max(e)]}function Ao(e,t){return e.value-t.value}function Po(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Mo(e,t){e._pack_next=t,t._pack_prev=e}function Oo(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Do(e){function t(e){c=Math.min(e.x-e.r,c),f=Math.max(e.x+e.r,f),p=Math.min(e.y-e.r,p),h=Math.max(e.y+e.r,h)}if((n=e.children)&&(u=n.length)){var n,r,o,i,a,s,l,u,c=1/0,f=-(1/0),p=1/0,h=-(1/0);if(n.forEach(Lo),r=n[0],r.x=-r.r,r.y=0,t(r),u>1&&(o=n[1],o.x=o.r,o.y=0,t(o),u>2))for(i=n[2],Fo(r,o,i),t(i),Po(r,i),r._pack_prev=i,Po(i,o),o=r._pack_next,a=3;a=0;)t=o[i],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Wo(e,t,n){return e.a.parent===t.parent?e.a:n}function Ho(e){return 1+ha.max(e,function(e){return e.y})}function qo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Vo(e){var t=e.children;return t&&t.length?Vo(t[0]):e}function Go(e){var t,n=e.children;return n&&(t=n.length)?Go(n[t-1]):e}function Yo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Ko(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Xo(e){var t=e[0],n=e[e.length-1];return t2?ei:Qo,l=r?eo:$r;return a=o(e,t,l,n),s=o(t,e,l,Cr),i}function i(e){return a(e)}var a,s;return i.invert=function(e){return s(e)},i.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},i.range=function(e){return arguments.length?(t=e,o()):t},i.rangeRound=function(e){return i.range(e).interpolate(Wr)},i.clamp=function(e){return arguments.length?(r=e,o()):r},i.interpolate=function(e){return arguments.length?(n=e,o()):n},i.ticks=function(t){return ii(e,t)},i.tickFormat=function(t,n){return ai(e,t,n)},i.nice=function(t){return ri(e,t),o()},i.copy=function(){return ti(e,t,n,r)},o()}function ni(e,t){return ha.rebind(e,t,"range","rangeRound","interpolate","clamp")}function ri(e,t){return Jo(e,$o(oi(e,t)[2])),Jo(e,$o(oi(e,t)[2])),e}function oi(e,t){null==t&&(t=10);var n=Xo(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ii(e,t){return ha.range.apply(ha,oi(e,t))}function ai(e,t,n){var r=oi(e,t);if(n){var o=gs.exec(n);if(o.shift(),"s"===o[8]){var i=ha.formatPrefix(Math.max(Ea(r[0]),Ea(r[1])));return o[7]||(o[7]="."+si(i.scale(r[2]))),o[8]="f",n=ha.format(o.join("")),function(e){return n(i.scale(e))+i.symbol}}o[7]||(o[7]="."+li(o[8],r)),n=o.join("")}else n=",."+si(r[2])+"f";return ha.format(n)}function si(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function li(e,t){var n=si(t[2]);return e in Ml?Math.abs(n-si(Math.max(Ea(t[0]),Ea(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ui(e,t,n,r){function o(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(o(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(o)),a):t},a.nice=function(){var t=Jo(r.map(o),n?Math:Dl);return e.domain(t),r=t.map(i),a},a.ticks=function(){var e=Xo(r),a=[],s=e[0],l=e[1],u=Math.floor(o(s)),c=Math.ceil(o(l)),f=t%1?2:t;if(isFinite(c-u)){if(n){for(;u0;p--)a.push(i(u)*p);for(u=0;a[u]l;c--);a=a.slice(u,c)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Ol;arguments.length<2?n=Ol:"function"!=typeof n&&(n=ha.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/i(Math.round(o(e)));return a*t0?o[n-1]:e[0],n0?0:1}function Ci(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),l=s*a,u=-s*i,c=e[0]+l,f=e[1]+u,p=t[0]+l,h=t[1]+u,d=(c+p)/2,m=(f+h)/2,v=p-c,g=h-f,y=v*v+g*g,b=n-r,x=c*h-p*f,_=(g<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*g-v*_)/y,T=(-x*v-g*_)/y,C=(x*g+v*_)/y,E=(-x*v+g*_)/y,k=w-d,S=T-m,A=C-d,P=E-m;return k*k+S*S>A*A+P*P&&(w=C,T=E),[[w-l,T-u],[w*n/b,T*n/b]]}function Ei(e){function t(t){function a(){u.push("M",i(e(c),s))}for(var l,u=[],c=[],f=-1,p=t.length,h=Oe(n),d=Oe(r);++f1?e.join("L"):e+"Z"}function Si(e){return e.join("L")+"Z"}function Ai(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t1&&o.push("H",r[0]),o.join("")}function Pi(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t1){s=t[1],i=e[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var u=2;u9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=l;)o=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Vi(e){return e.length<3?ki(e):e[0]+ji(e,qi(e))}function Gi(e){for(var t,n,r,o=-1,i=e.length;++o0;)p[--s].call(e,a);if(i>=1)return m.event&&m.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1}var l,u,c,f,p,h=e[n]||(e[n]={active:0,count:0}),m=h[r];m||(l=o.time,u=Fe(i,0,l),m=h[r]={tween:new d,time:l,timer:u,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++h.count)}function aa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function sa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function la(e){return e.toISOString()}function ua(e,t,n){function r(t){return e(t)}function o(e,n){var r=e[1]-e[0],o=r/n,i=ha.bisect(ru,o);return i==ru.length?[t.year,oi(e.map(function(e){return e/31536e6}),n)[2]]:i?t[o/ru[i-1]1?{floor:function(t){for(;n(t=e.floor(t));)t=ca(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=ca(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Xo(r.domain()),i=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],ca(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return ua(e.copy(),t,n)},ni(r,e)}function ca(e){return new Date(e)}function fa(e){return JSON.parse(e.responseText)}function pa(e){var t=va.createRange();return t.selectNode(va.body),t.createContextualFragment(e.responseText)}var ha={version:"3.5.17"},da=[].slice,ma=function(e){return da.call(e)},va=this.document;if(va)try{ma(va.documentElement.childNodes)[0].nodeType}catch(ga){ma=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),va)try{va.createElement("DIV").style.setProperty("opacity",0,"")}catch(ya){var ba=this.Element.prototype,xa=ba.setAttribute,_a=ba.setAttributeNS,wa=this.CSSStyleDeclaration.prototype,Ta=wa.setProperty;ba.setAttribute=function(e,t){xa.call(this,e,t+"")},ba.setAttributeNS=function(e,t,n){_a.call(this,e,t,n+"")},wa.setProperty=function(e,t,n){Ta.call(this,e,t+"",n)}}ha.ascending=s,ha.descending=function(e,t){return te?1:t>=e?0:NaN},ha.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},ha.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},ha.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return a/(c-1)},ha.deviation=function(){var e=ha.variance.apply(this,arguments);return e?Math.sqrt(e):e};var Ca=c(s);ha.bisectLeft=Ca.left,ha.bisect=ha.bisectRight=Ca.right,ha.bisector=function(e){return c(1===e.length?function(t,n){return s(e(t),n)}:e)},ha.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},ha.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},ha.pairs=function(e){for(var t,n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n};var Ea=Math.abs;ha.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,o=[],i=p(Ea(n)),a=-1;if(e*=i,t*=i,n*=i,n<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var l,u,c,f,p=-1,h=a.length,m=i[s++],v=new d;++p=i.length)return e;var r=[],o=a[n++];return e.forEach(function(e,o){r.push({key:e,values:t(o,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(t,n){return e(n,t,0)},o.entries=function(n){return t(e(ha.map,n,0),0)},o.key=function(e){return i.push(e),o},o.sortKeys=function(e){return a[i.length-1]=e,o},o.sortValues=function(e){return n=e,o},o.rollup=function(e){return r=e,o},o},ha.set=function(e){var t=new w;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},ha.event=null,ha.requote=function(e){return e.replace(Pa,"\\$&")};var Pa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ma={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Oa=function(e,t){return t.querySelector(e)},Da=function(e,t){return t.querySelectorAll(e)},La=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(La=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Oa=function(e,t){return Sizzle(e,t)[0]||null},Da=Sizzle,La=Sizzle.matchesSelector),ha.selection=function(){return ha.select(va.documentElement)};var ja=ha.selection.prototype=[];ja.select=function(e){var t,n,r,o,i=[];e=L(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Fa.hasOwnProperty(n)?{space:Fa[n],local:e}:e}},ja.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=ha.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(R(t,e[t]));return this}return this.each(R(e,t))},ja.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=N(e)).length,o=-1;if(t=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},ja.sort=function(e){e=Y.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(t=t.transition().duration(S)),t.call(e.event)}function s(){_&&_.domain(x.range().map(function(e){return(e-C.x)/C.k}).map(x.invert)),T&&T.domain(w.range().map(function(e){return(e-C.y)/C.k}).map(w.invert))}function l(e){A++||e({type:"zoomstart"})}function u(e){s(),e({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function c(e){--A||(e({type:"zoomend"}),v=null)}function f(){function e(){s=1,o(ha.mouse(r),p),u(i)}function n(){f.on(D,null).on(L,null),h(s),c(i)}var r=this,i=R.of(r,arguments),s=0,f=ha.select(a(r)).on(D,e).on(L,n),p=t(ha.mouse(r)),h=ee(r);Yl.call(r),l(i)}function p(){function e(){var e=ha.touches(d);return h=C.k,e.forEach(function(e){e.identifier in v&&(v[e.identifier]=t(e))}),e}function n(){var t=ha.event.target;ha.select(t).on(x,a).on(_,s),w.push(t);for(var n=ha.event.changedTouches,r=0,o=n.length;r1){var c=l[0],f=l[1],p=c[0]-f[0],h=c[1]-f[1];g=p*p+h*h}}function a(){var e,t,n,i,a=ha.touches(d);Yl.call(d);for(var s=0,l=a.length;s=u)return a;if(o)return o=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ys=ha.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=ha.round(e,ze(e,t))).toFixed(Math.max(0,Math.min(20,ze(e*(1+1e-15),t))))}}),bs=ha.time={},xs=Date;qe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){_s.setUTCDate.apply(this._,arguments)},setDay:function(){_s.setUTCDay.apply(this._,arguments)},setFullYear:function(){_s.setUTCFullYear.apply(this._,arguments)},setHours:function(){_s.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){_s.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){_s.setUTCMinutes.apply(this._,arguments)},setMonth:function(){_s.setUTCMonth.apply(this._,arguments)},setSeconds:function(){_s.setUTCSeconds.apply(this._,arguments)},setTime:function(){_s.setTime.apply(this._,arguments)}};var _s=Date.prototype;bs.year=Ve(function(e){return e=bs.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),bs.years=bs.year.range,bs.years.utc=bs.year.utc.range,bs.day=Ve(function(e){var t=new xs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),bs.days=bs.day.range,bs.days.utc=bs.day.utc.range,bs.dayOfYear=function(e){var t=bs.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=bs[e]=Ve(function(e){return(e=bs.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=bs.year(e).getDay();return Math.floor((bs.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});bs[e+"s"]=n.range,bs[e+"s"].utc=n.utc.range,bs[e+"OfYear"]=function(e){var n=bs.year(e).getDay();return Math.floor((bs.dayOfYear(e)+(n+t)%7)/7)}}),bs.week=bs.sunday,bs.weeks=bs.sunday.range,bs.weeks.utc=bs.sunday.utc.range,bs.weekOfYear=bs.sundayOfYear;var ws={"-":"",_:" ",0:"0"},Ts=/^\s*\d+/,Cs=/^%/;ha.locale=function(e){return{numberFormat:We(e),timeFormat:Ye(e)}};var Es=ha.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ha.format=Es.numberFormat,ha.geo={},dt.prototype={s:0,t:0,add:function(e){mt(e,this.t,ks),mt(ks.s,this.s,this),this.s?this.t+=ks.t:this.s=ks.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ks=new dt;ha.geo.stream=function(e,t){e&&Ss.hasOwnProperty(e.type)?Ss[e.type](e,t):vt(e,t)};var Ss={Feature:function(e,t){vt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rh&&(h=t)}function t(t,n){var r=xt([t*Ka,n*Ka]);if(g){var o=wt(g,r),i=[o[1],-o[0],0],a=wt(i,o);Et(a),a=kt(a);var l=t-d,u=l>0?1:-1,m=a[0]*Xa*u,v=Ea(l)>180;if(v^(u*dh&&(h=y)}else if(m=(m+360)%360-180,v^(u*dh&&(h=n);v?ts(c,p)&&(p=t):s(t,p)>s(c,p)&&(c=t):p>=c?(tp&&(p=t)):t>d?s(c,t)>s(c,p)&&(p=t):s(t,p)>s(c,p)&&(c=t)}else e(t,n);g=r,d=t}function n(){_.point=t}function r(){x[0]=c,x[1]=p,_.point=e,g=null}function o(e,n){if(g){var r=e-d;y+=Ea(r)>180?r+(r>0?360:-360):r}else m=e,v=n;Os.point(e,n),t(e,n)}function i(){Os.lineStart()}function a(){o(m,v),Os.lineEnd(),Ea(y)>Wa&&(c=-(p=180)),x[0]=c,x[1]=p,g=null}function s(e,t){return(t-=e)<0?t+360:t}function l(e,t){return e[0]-t[0]}function u(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eWa?h=90:y<-Wa&&(f=-90),x[0]=c,x[1]=p}};return function(e){h=p=-(c=f=1/0),b=[],ha.geo.stream(e,_);var t=b.length;if(t){b.sort(l);for(var n,r=1,o=b[0],i=[o];rs(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,d=-(1/0),t=i.length-1,r=0,o=i[t];r<=t;o=n,++r)n=i[r],(a=s(o[1],n[0]))>d&&(d=a,c=n[0],p=o[1])}return b=x=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[p,h]]}}(),ha.geo.centroid=function(e){Ds=Ls=js=Rs=Fs=Is=Ns=Bs=zs=Us=Ws=0,ha.geo.stream(e,Hs);var t=zs,n=Us,r=Ws,o=t*t+n*n+r*r;return o=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},e.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),e):i.precision()},e.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),e.translate(i.translate())):i.scale()},e.translate=function(t){if(!arguments.length)return i.translate();var u=i.scale(),c=+t[0],f=+t[1];return n=i.translate(t).clipExtent([[c-.455*u,f-.238*u],[c+.455*u,f+.238*u]]).stream(l).point,r=a.translate([c-.307*u,f+.201*u]).clipExtent([[c-.425*u+Wa,f+.12*u+Wa],[c-.214*u-Wa,f+.234*u-Wa]]).stream(l).point,o=s.translate([c-.205*u,f+.212*u]).clipExtent([[c-.214*u+Wa,f+.166*u+Wa],[c-.115*u-Wa,f+.234*u-Wa]]).stream(l).point,e},e.scale(1070)};var Gs,Ys,Ks,Xs,Zs,Qs,Js={point:k,lineStart:k,lineEnd:k,polygonStart:function(){Ys=0,Js.lineStart=Qt},polygonEnd:function(){Js.lineStart=Js.lineEnd=Js.point=k,Gs+=Ea(Ys/2)}},$s={point:Jt,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k},el={point:tn,lineStart:nn,lineEnd:rn,polygonStart:function(){el.lineStart=on},polygonEnd:function(){el.point=tn,el.lineStart=nn,el.lineEnd=rn}};ha.geo.path=function(){function e(e){return e&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),ha.geo.stream(e,a)),i.result()}function t(){return a=null,e}var n,r,o,i,a,s=4.5;return e.area=function(e){return Gs=0,ha.geo.stream(e,o(Js)),Gs},e.centroid=function(e){return js=Rs=Fs=Is=Ns=Bs=zs=Us=Ws=0,ha.geo.stream(e,o(el)),Ws?[zs/Ws,Us/Ws]:Bs?[Is/Bs,Ns/Bs]:Fs?[js/Fs,Rs/Fs]:[NaN,NaN]},e.bounds=function(e){return Zs=Qs=-(Ks=Xs=1/0),ha.geo.stream(e,o($s)),[[Ks,Xs],[Zs,Qs]]},e.projection=function(e){return arguments.length?(o=(n=e)?e.stream||ln(e):T,t()):n},e.context=function(e){return arguments.length?(i=null==(r=e)?new $t:new an(e),"function"!=typeof s&&i.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),e):s},e.projection(ha.geo.albersUsa()).context(null)},ha.geo.transform=function(e){return{stream:function(t){var n=new un(t);for(var r in e)n[r]=e[r];return n}}},un.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ha.geo.projection=fn,ha.geo.projectionMutator=pn,(ha.geo.equirectangular=function(){return fn(dn)}).raw=dn.invert=dn,ha.geo.rotation=function(e){function t(t){return t=e(t[0]*Ka,t[1]*Ka),t[0]*=Xa,t[1]*=Xa,t}return e=vn(e[0]%360*Ka,e[1]*Ka,e.length>2?e[2]*Ka:0),t.invert=function(t){return t=e.invert(t[0]*Ka,t[1]*Ka),t[0]*=Xa,t[1]*=Xa,t},t},mn.invert=dn,ha.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=vn(-e[0]*Ka,-e[1]*Ka,0).invert,o=[];return n(null,null,1,{point:function(e,n){o.push(e=t(e,n)),e[0]*=Xa,e[1]*=Xa}}),{type:"Polygon",coordinates:[o]}}var t,n,r=[0,0],o=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=xn((t=+r)*Ka,o*Ka),e):t},e.precision=function(r){return arguments.length?(n=xn(t*Ka,(o=+r)*Ka),e):o},e.angle(90)},ha.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ka,o=e[1]*Ka,i=t[1]*Ka,a=Math.sin(r),s=Math.cos(r),l=Math.sin(o),u=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=u*c-l*f*s)*n),l*c+u*f*s)},ha.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return ha.range(Math.ceil(i/v)*v,o,v).map(p).concat(ha.range(Math.ceil(u/g)*g,l,g).map(h)).concat(ha.range(Math.ceil(r/d)*d,n,d).filter(function(e){return Ea(e%v)>Wa}).map(c)).concat(ha.range(Math.ceil(s/m)*m,a,m).filter(function(e){return Ea(e%g)>Wa}).map(f))}var n,r,o,i,a,s,l,u,c,f,p,h,d=10,m=d,v=90,g=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(h(l).slice(1),p(o).reverse().slice(1),h(u).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],u=+t[0][1],l=+t[1][1],i>o&&(t=i,i=o,o=t),u>l&&(t=u,u=l,l=t),e.precision(y)):[[i,u],[o,l]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(y)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(v=+t[0],g=+t[1],e):[v,g]},e.minorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],e):[d,m]},e.precision=function(t){return arguments.length?(y=+t,c=wn(s,a,90),f=Tn(r,n,y),p=wn(u,l,90),h=Tn(i,o,y),e):y},e.majorExtent([[-180,-90+Wa],[180,90-Wa]]).minorExtent([[-180,-80-Wa],[180,80+Wa]])},ha.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||o.apply(this,arguments)]}}var t,n,r=Cn,o=En;return e.distance=function(){return ha.geo.distance(t||r.apply(this,arguments),n||o.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(o=t,n="function"==typeof t?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},ha.geo.interpolate=function(e,t){return kn(e[0]*Ka,e[1]*Ka,t[0]*Ka,t[1]*Ka)},ha.geo.length=function(e){return tl=0,ha.geo.stream(e,nl),tl};var tl,nl={sphere:k,point:k,lineStart:Sn,lineEnd:k,polygonStart:k,polygonEnd:k},rl=An(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(ha.geo.azimuthalEqualArea=function(){return fn(rl)}).raw=rl;var ol=An(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},T);(ha.geo.azimuthalEquidistant=function(){return fn(ol)}).raw=ol,(ha.geo.conicConformal=function(){return Xt(Pn)}).raw=Pn,(ha.geo.conicEquidistant=function(){return Xt(Mn)}).raw=Mn;var il=An(function(e){return 1/e},Math.atan);(ha.geo.gnomonic=function(){return fn(il)}).raw=il,On.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ya]},(ha.geo.mercator=function(){return Dn(On)}).raw=On;var al=An(function(){return 1},Math.asin);(ha.geo.orthographic=function(){return fn(al)}).raw=al;var sl=An(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(ha.geo.stereographic=function(){return fn(sl)}).raw=sl,Ln.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ya]},(ha.geo.transverseMercator=function(){var e=Dn(Ln),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Ln,ha.geom={},ha.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,o=Oe(n),i=Oe(r),a=e.length,s=[],l=[];for(t=0;t=0;--t)h.push(e[s[u[t]][2]]);for(t=+f;t=r&&u.x<=i&&u.y>=o&&u.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];c.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/Wa)*Wa,y:Math.round(a(e,t)/Wa)*Wa,i:t}})}var r=jn,o=Rn,i=r,a=o,s=vl;return e?t(e):(t.links=function(e){return pr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return pr(n(e)).cells.forEach(function(n,r){for(var o,i,a=n.site,s=n.edges.sort(Zn),l=-1,u=s.length,c=s[u-1].edge,f=c.l===a?c.r:c.l;++l=u,p=r>=c,h=p<<1|f;e.leaf=!1,e=e.nodes[h]||(e.nodes[h]=gr()),f?o=u:s=u,p?a=c:l=c,i(e,t,n,r,o,a,s,l)}var c,f,p,h,d,m,v,g,y,b=Oe(s),x=Oe(l);if(null!=t)m=t,v=n,g=r,y=o;else if(g=y=-(m=v=1/0),f=[],p=[],d=e.length,a)for(h=0;hg&&(g=c.x),c.y>y&&(y=c.y),f.push(c.x),p.push(c.y);else for(h=0;hg&&(g=_),w>y&&(y=w),f.push(_),p.push(w)}var T=g-m,C=y-v;T>C?y=v+T:g=m+C;var E=gr();if(E.add=function(e){i(E,e,+b(e,++h),+x(e,h),m,v,g,y)},E.visit=function(e){yr(e,E,m,v,g,y)},E.find=function(e){return br(E,e[0],e[1],m,v,g,y)},h=-1,null==t){for(;++h=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=xl.get(n)||bl,r=_l.get(r)||T,kr(r(n.apply(null,da.call(arguments,1))))},ha.interpolateHcl=Br,ha.interpolateHsl=zr,ha.interpolateLab=Ur,ha.interpolateRound=Wr,ha.transform=function(e){var t=va.createElementNS(ha.ns.prefix.svg,"g");return(ha.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Hr(n?n.matrix:wl)})(e)},Hr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var wl={a:1,b:0,c:0,d:1,e:0,f:0};ha.interpolateTransform=Jr,ha.layout={},ha.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n0?o=e:(n.c=null,n.t=NaN,n=null,u.end({type:"end",alpha:o=0})):e>0&&(u.start({type:"start",alpha:o=e}),n=Fe(l.tick)),l):o},l.start=function(){function e(e,r){if(!n){for(n=new Array(o),l=0;l=0;)a.push(c=u[l]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=u}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return fo(o,function(e){var n,o;t&&(n=e.children)&&n.sort(t),r&&(o=e.parent)&&(o.value+=e.value)}),s}var t=mo,n=po,r=ho;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(co(t,function(e){e.children&&(e.value=0)}),fo(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},ha.layout.partition=function(){function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,l,u=-1;for(r=t.value?r/t.value:0;++us&&(s=r),a.push(r)}for(n=0;n0)for(i=-1;++i=c[0]&&s<=c[1]&&(a=l[ha.bisect(f,s,1,h)-1],a.y+=d,a.push(e[i]));return l}var t=!0,n=Number,r=So,o=Eo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Oe(t),e):r},e.bins=function(t){return arguments.length?(o="number"==typeof t?function(e){return ko(e,t)}:Oe(t),e):o},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},ha.layout.pack=function(){function e(e,i){var a=n.call(this,e,i),s=a[0],l=o[0],u=o[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,fo(s,function(e){e.r=+c(e.value)}),fo(s,Do),r){var f=r*(t?1:Math.max(2*s.r/l,2*s.r/u))/2;fo(s,function(e){e.r+=f}),fo(s,Do),fo(s,function(e){e.r-=f})}return Ro(s,l/2,u/2,t?1:1/Math.max(2*s.r/l,2*s.r/u)),a}var t,n=ha.layout.hierarchy().sort(Ao),r=0,o=[1,1];return e.size=function(t){return arguments.length?(o=t,e):o},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},uo(e,n)},ha.layout.tree=function(){function e(e,o){var c=a.call(this,e,o),f=c[0],p=t(f);if(fo(p,n),p.parent.m=-p.z,co(p,r),u)co(f,i);else{var h=f,d=f,m=f;co(f,function(e){e.xd.x&&(d=e),e.depth>m.depth&&(m=e)});var v=s(h,d)/2-h.x,g=l[0]/(d.x+s(d,h)/2+v),y=l[1]/(m.depth||1);co(f,function(e){e.x=(e.x+v)*g,e.y=e.depth*y})}return c}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a0&&(zo(Wo(a,e,n),e,r),u+=r,c+=r),f+=a.m,u+=o.m,p+=l.m,c+=i.m;a&&!Bo(i)&&(i.t=a,i.m+=f-c),o&&!No(l)&&(l.t=o,l.m+=u-p,n=e)}return n}function i(e){e.x*=l[0],e.y=e.depth*l[1]}var a=ha.layout.hierarchy().sort(null).value(null),s=Io,l=[1,1],u=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(u=null==(l=t)?i:null,e):u?null:l},e.nodeSize=function(t){return arguments.length?(u=null==(l=t)?null:i,e):u?l:null},uo(e,a)},ha.layout.cluster=function(){function e(e,i){var a,s=t.call(this,e,i),l=s[0],u=0;fo(l,function(e){var t=e.children;t&&t.length?(e.x=qo(t),e.y=Ho(t)):(e.x=a?u+=n(e,a):0,e.y=0,a=e)});var c=Vo(l),f=Go(l),p=c.x-n(c,f)/2,h=f.x+n(f,c)/2;return fo(l,o?function(e){e.x=(e.x-l.x)*r[0],e.y=(l.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(l.y?e.y/l.y:1))*r[1]}),s}var t=ha.layout.hierarchy().sort(null).value(null),n=Io,r=[1,1],o=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(o=null==(r=t),e):o?null:r},e.nodeSize=function(t){return arguments.length?(o=null!=(r=t),e):o?r:null},uo(e,t)},ha.layout.treemap=function(){function e(e,t){for(var n,r,o=-1,i=e.length;++o0;)c.push(a=p[l-1]),c.area+=a.area,"squarify"!==h||(s=r(c,m))<=d?(p.pop(),d=s):(c.area-=c.pop().area,o(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,d=1/0);c.length&&(o(c,m,u,!0),c.length=c.area=0),i.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var i,a=f(t),s=r.slice(),l=[];for(e(s,a.dx*a.dy/t.value),l.area=0;i=s.pop();)l.push(i),l.area+=i.area,null!=i.z&&(o(l,i.z?a.dx:a.dy,a,!s.length),l.length=l.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++ao&&(o=n));return r*=r,t*=t,r?Math.max(t*o*d/r,r/(t*i*d)):1/0}function o(e,t,n,r){var o,i=-1,a=e.length,s=n.x,u=n.y,c=t?l(e.area/t):0;if(t==n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=ha.random.normal.apply(ha,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=ha.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;nf?0:1; +if(u=Ga)return t(u,h)+(e?t(e,1-h):"")+"Z";var d,m,v,g,y,b,x,_,w,T,C,E,k=0,S=0,A=[];if((g=(+l.apply(this,arguments)||0)/2)&&(v=i===Il?Math.sqrt(e*e+u*u):+i.apply(this,arguments),h||(S*=-1),u&&(S=ae(v/u*Math.sin(g))),e&&(k=ae(v/e*Math.sin(g)))),u){y=u*Math.cos(c+S),b=u*Math.sin(c+S),x=u*Math.cos(f-S),_=u*Math.sin(f-S);var P=Math.abs(f-c-2*S)<=qa?0:1;if(S&&Ti(y,b,x,_)===h^P){var M=(c+f)/2;y=u*Math.cos(M),b=u*Math.sin(M),x=_=null}}else y=b=0;if(e){w=e*Math.cos(f-k),T=e*Math.sin(f-k),C=e*Math.cos(c+k),E=e*Math.sin(c+k);var O=Math.abs(c-f+2*k)<=qa?0:1;if(k&&Ti(w,T,C,E)===1-h^O){var D=(c+f)/2;w=e*Math.cos(D),T=e*Math.sin(D),C=E=null}}else w=T=0;if(p>Wa&&(d=Math.min(Math.abs(u-e)/2,+o.apply(this,arguments)))>.001){m=eqa)+",1 "+t}function o(e,t,n,r){return"Q 0,0 "+r}var i=Cn,a=En,s=Ki,l=xi,u=_i;return e.radius=function(t){return arguments.length?(s=Oe(t),e):s},e.source=function(t){return arguments.length?(i=Oe(t),e):i},e.target=function(t){return arguments.length?(a=Oe(t),e):a},e.startAngle=function(t){return arguments.length?(l=Oe(t),e):l},e.endAngle=function(t){return arguments.length?(u=Oe(t),e):u},e},ha.svg.diagonal=function(){function e(e,o){var i=t.call(this,e,o),a=n.call(this,e,o),s=(i.y+a.y)/2,l=[i,{x:i.x,y:s},{x:a.x,y:s},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Cn,n=En,r=Xi;return e.source=function(n){return arguments.length?(t=Oe(n),e):t},e.target=function(t){return arguments.length?(n=Oe(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},ha.svg.diagonal.radial=function(){var e=ha.svg.diagonal(),t=Xi,n=e.projection;return e.projection=function(e){return arguments.length?n(Zi(t=e)):t},e},ha.svg.symbol=function(){function e(e,r){return(Wl.get(t.call(this,e,r))||$i)(n.call(this,e,r))}var t=Ji,n=Qi;return e.type=function(n){return arguments.length?(t=Oe(n),e):t},e.size=function(t){return arguments.length?(n=Oe(t),e):n},e};var Wl=ha.map({circle:$i,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*ql)),n=t*ql;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Hl),n=t*Hl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Hl),n=t*Hl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});ha.svg.symbolTypes=Wl.keys();var Hl=Math.sqrt(3),ql=Math.tan(30*Ka);ja.transition=function(e){for(var t,n,r=Vl||++Xl,o=oa(e),i=[],a=Gl||{time:Date.now(),ease:Or,delay:0,duration:250},s=-1,l=this.length;++srect,.s>rect").attr("width",f[1]-f[0])}function r(e){e.select(".extent").attr("y",p[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function o(){function o(){32==ha.event.keyCode&&(A||(b=null,O[0]-=f[1],O[1]-=p[1],A=2),P())}function m(){32==ha.event.keyCode&&2==A&&(O[0]+=f[1],O[1]+=p[1],A=0,P())}function v(){var e=ha.mouse(_),o=!1;x&&(e[0]+=x[0],e[1]+=x[1]),A||(ha.event.altKey?(b||(b=[(f[0]+f[1])/2,(p[0]+p[1])/2]),O[0]=f[+(e[0]0&&!function(){var t=C-Math.floor(C/b)*b,n=E-Math.floor(E/b)*b;e=e.map(function(r,o){return(0,d["default"])(r,function(r,i,a){var s=i.data,l=i.summariser;0==o||o==e.length-1?r[a]={data:s.slice(0==o?t:0,o==e.length-1?n:void 0),summariser:l}:r[a]={data:s,summariser:l}})})}();var n=(0,d["default"])(t,function(t,n,r){return t[r]={data:[],summariser:e[0][r].summariser}}),o=(0,v["default"])(e,function(e,t){return(0,y["default"])(t,function(t,n){var r=t.data;return Array.prototype.push.apply(e[n].data,r)}),e},n);return{columns:o,dataStart:C*m,dataStep:m,chromosome:r}};return Promise.all(k).then(S)}};e.exports=T},function(e,t,n){function r(e,t,n){var r=u(e)||p(e);if(t=s(t,4),null==n)if(r||f(e)){var h=e.constructor;n=r?u(e)?new h:[]:c(h)?i(l(e)):{}}else n={};return(r?o:a)(e,function(e,r,o){return t(n,e,r,o)}),n}var o=n(717),i=n(620),a=n(719),s=n(723),l=n(698),u=n(637),c=n(303),f=n(300),p=n(715);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),i=r(o),a=n(596),s=r(a),l=i["default"].createClass({displayName:"ReferenceSequence",mixins:[s["default"]],propTypes:{name:i["default"].PropTypes.string,colour:i["default"].PropTypes.string},render:function(){var e=this.props,t=e.name,n=e.colour;return i["default"].createElement("div",{className:"legend-element",key:t},i["default"].createElement("svg",{width:"14",height:"26"},i["default"].createElement("rect",{x:"0",y:"6",width:"14",height:"14",style:{fill:n}})),i["default"].createElement("div",{className:"label"},t))}});t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(357),s=r(a),l=n(1224),u=r(l),c=n(1231),f=r(c),p=n(652),h=r(p),d=n(744),m=r(d),v=i["default"].createClass({displayName:"ChannelWithConfigDrawer",mixins:[(0,u["default"])({redirect:["onClose"]})],propTypes:{height:i["default"].PropTypes.number.isRequired,width:i["default"].PropTypes.number.isRequired,sideWidth:i["default"].PropTypes.number.isRequired,sideComponent:i["default"].PropTypes.element,configComponent:i["default"].PropTypes.element,legendComponent:i["default"].PropTypes.element,onClose:i["default"].PropTypes.func},getInitialState:function(){return{controlsOpen:!1,legendOpen:!1}},componentDidUpdate:function(e,t){var n=this;(["width","sideWidth","height","configComponent","legendComponent"].some(function(t){return e[t]!==n.props[t]})||["controlsOpen","legendOpen"].some(function(e){return t[e]!==n.state[e]}))&&this.updateControlsHeight(),t.controlsOpen!==this.state.controlsOpen&&this.visibilityHack()},updateControlsHeight:function(){if(this.refs.controls){var e=(0,f["default"])(s["default"].findDOMNode(this.refs.controls)).height+"px";this.refs.controlsContainer.style.height=this.state.controlsOpen?e:0}if(this.refs.legend){var t=(0,f["default"])(s["default"].findDOMNode(this.refs.legend)).height+"px";this.refs.legendContainer.style.height=this.state.legendOpen?t:0,this.refs.legendToggle.style.bottom=this.state.legendOpen?t:0}},visibilityHack:function(){var e=this;this.state.controlsOpen?this.controlOverFlowTimeout=setTimeout(function(){return e.refs.controlsContainer.style.overflow="visible"},500):(this.refs.controlsContainer.style.overflow="hidden",clearTimeout(this.controlOverFlowTimeout))},handleControlToggle:function(e){this.setState({controlsOpen:!this.state.controlsOpen}),e.stopPropagation()},handleLegendToggle:function(e){this.setState({legendOpen:!this.state.legendOpen}),e.stopPropagation()},handleClose:function(e){e.stopPropagation(),this.redirectedProps.onClose&&this.redirectedProps.onClose()},render:function(){var e=this.props,t=e.height,n=e.width,r=e.sideWidth,o=e.onClose,a=e.sideComponent,s=e.configComponent,l=e.legendComponent,u=this.state,c=u.controlsOpen,f=u.legendOpen,p=n-r;return i["default"].createElement("div",{className:"channel-container"},i["default"].createElement("div",{className:"channel-side",style:{width:r+"px"}},i["default"].createElement("div",{className:"side-component"},a),o?i["default"].createElement("div",{className:"close button"},i["default"].createElement(m["default"],{name:"times",onClick:this.handleClose})):null,s?i["default"].createElement("div",{className:"config button"},i["default"].createElement(m["default"],{className:(0,h["default"])({open:c}),name:"cog",onClick:this.handleControlToggle})):null,l?i["default"].createElement("div",{className:"legend button",ref:"legendToggle"},i["default"].createElement(m["default"],{className:(0,h["default"])({open:f}),name:"info",onClick:this.handleLegendToggle})):null),i["default"].createElement("div",{className:"channel-stack"},s?i["default"].createElement("div",{className:"tray-container config-container",ref:"controlsContainer"},i["default"].createElement("div",{ref:"controls",style:{width:p+"px"}},s)):null,i["default"].createElement("div",{className:"channel-data",style:{width:p+"px",height:t+"px"}},this.props.children),l?i["default"].createElement("div",{className:"tray-container legend-container",ref:"legendContainer"},i["default"].createElement("div",{ref:"legend",style:{width:p+"px"}},l)):null))}});e.exports=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(586),i=r(o),a=n(1225),s=r(a),l=n(597),u=function(e){var t=e.check,n=e.redirect;return{componentWillMount:function(){var e=this;n&&(this.redirectedProps={},n.forEach(function(t){return e.redirectedProps[t]=function(){return this.props[t].apply(this,arguments)}.bind(e)}))},shouldComponentUpdate:function(e,r){var o=this,a=!0;return a=t?t.some(function(t){return!i["default"].is(o.props[t],e[t])}):!(0,l.shallowEqualImmutable)((0,s["default"])(this.props,n||[]),(0,s["default"])(e,n||[])),a||!(0,l.shallowEqualImmutable)(this.state,r)}}};e.exports=u},function(e,t,n){var r=n(916),o=n(911),i=n(1226),a=n(1228),s=n(1229),l=n(649),u=n(738),c=l(function(e,t){return null==e?{}:(t=r(i(t,1),u),a(e,o(s(e),t)))});e.exports=c},function(e,t,n){function r(e,t,n,a,s){var l=-1,u=e.length;for(n||(n=i),s||(s=[]);++l0&&n(c)?t>1?r(c,t-1,n,a,s):o(s,c):a||(s[s.length]=c)}return s}var o=n(810),i=n(1227);e.exports=r},function(e,t,n){function r(e){return i(e)||o(e)}var o=n(703),i=n(637);e.exports=r},function(e,t,n){function r(e,t){return e=Object(e),o(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}var o=n(817);e.exports=r},function(e,t,n){function r(e){return o(e,a,i)}var o=n(809),i=n(1230),a=n(829);e.exports=r},function(e,t,n){var r=n(810),o=n(698),i=n(806),a=Object.getOwnPropertySymbols,s=a?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:i;e.exports=s},function(e,t){function n(){var e=window.pageYOffset;return"number"==typeof e?{top:e,left:window.pageXOffset}:{top:document.documentElement.scrollTop,left:document.documentElement.scrollLeft}}function r(e){return parseInt(e,10)}e.exports=function(e){var t=e.getBoundingClientRect(),o=n();return{top:r(t.top+o.top),left:r(t.left+o.left),width:r(t.right-t.left),height:r(t.bottom-t.top)}}},function(e,t){"use strict";function n(e,t){var n=Math.max(e,0),r=Math.max(1,Math.pow(2,Math.ceil(Math.log(3*(t-e))/Math.log(2)))),o=Math.floor(n/r)*r,i=o+r,a=o+(e>=o+r/2?r/2:-r/2),s=a+r;return a>e||sMath.min(s-t,e-a)?[[o,i],[a,s]]:[[a,s],[o,i]]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(1234),u=r(l),c=n(1218),f=r(c),p=40,h=i["default"].createClass({displayName:"GenomeScale",mixins:[s["default"]],propTypes:{start:i["default"].PropTypes.number,end:i["default"].PropTypes.number,width:i["default"].PropTypes.number,sideWidth:i["default"].PropTypes.number},render:function(){var e=this.props,t=e.start,n=e.end,r=e.width,o=e.sideWidth,a=f["default"].scale.linear().domain([t,n]).range([0,r-o]);if(0==r)return null;var s=50,l=Math.max((0,u["default"])(n-t,r,s),1);t=Math.max(0,t),t=Math.floor(t/l)*l,n=Math.max(t,n);for(var c=a.tickFormat((n-t)/(5*l),n-t>5e3?"s":null),h=[],d=[],m=t;m=i?(e=o,t=i,a=i-o):(ei&&(t=i)),t>i&&(t=i,e=t-a,ei&&(t=i,e=t-ne)),[e,t]},isEventInPanningArea:function(e){for(var t=e.target;;){if("channel-controls"===t.className)return!1;if("channel-side"===t.className)return!1;if("main-area"===t.className)return!0;if(t=t.parentElement,!t)return!0}},handleZoom:function(e,t){var n=this.actualStart,r=this.actualEnd,o=t>0?1/(1+.04*Math.abs(t)):1+.04*Math.abs(t);e=void 0!=e?this.scale.invert(e):n+(r-n)/2;var a=(e-n)/(r-n),s=(r-n)/o;n=e-s*a,r=e+s*(1-a);var l=this.scaleClamp(n,r,a),u=i(l,2);n=u[0],r=u[1],this.props.componentUpdate({start:n,end:r})},handleMouseWheel:function(e){this.isEventInPanningArea(e)&&(this.handleZoom(e.clientX-(0,m["default"])(e.currentTarget).left,e.deltaY),e.stopPropagation(),e.preventDefault())},handleDoubleTap:function(e){this.isEventInPanningArea(e)&&this.handleZoom(e.center.x-(0,m["default"])(u["default"].findDOMNode(this.rootHammer)).left,-100)},handlePan:function(e){if(this.isEventInPanningArea(e)){var t=this.actualStart,n=this.actualEnd,r=e.center.x-e.deltaX-(0,m["default"])(u["default"].findDOMNode(this.rootHammer)).left;this.panStartPixel!==r&&(this.panStartPixel=r,this.panStartGenome=[t,n]);var o=this.scale.invert(0)-this.scale.invert(e.deltaX),a=i(this.panStartGenome,2);if(t=a[0],n=a[1],t+=o,n+=o,e.isFinal){if(Math.abs(e.velocityX)>.5){var s=this.scale.invert(e.velocityX)-this.scale.invert(0);t-=1e3*s,n-=1e3*s,this.nextSpringConfig=ee}var l=this.scaleClamp(t,n,.5),c=i(l,2);t=c[0],n=c[1],this.panStartPixel=null}else{var f={mid:{val:(n+t)/2,config:te},halfWidth:{val:(n-t)/2,config:te}};this.refs.spring.setState({currValue:f,currVelocity:{mid:{val:0},halfWidth:{val:0}}}),this.nextSpringConfig=te}this.props.componentUpdate({start:t,end:n})}},handleChangeLoadStatus:function(e){"LOADING"===e&&(this.loading+=1),"DONE"===e&&(this.loading-=1),this.setState({loading:this.loading})},render:function(){var e=this,t=this.config.genome,n=this.props,r=n.start,i=n.end,a=n.sideWidth,l=n.chromosome,u=n.channels;l=l||this.defaultChrom;var c=this.state.loading;(0,_["default"])(this.config.chromosomes,l)||console.log("Unrecognised chromosome in genome browser",l);var f=this.state,p=f.width,h=f.height,d=f.springConfig;p=Math.max(0,p-(0,O["default"])()),this.scale=P["default"].scale.linear().domain([r,i]).range([a,p]);var m=(i-r)/(p-a),v={mid:(i+r)/2,halfWidth:(i-r)/2},g={mid:(0,j.spring)(v.mid,d),halfWidth:(0,j.spring)(v.halfWidth,d)};return s["default"].createElement(K["default"],{onResize:function(t){return e.setState(t)}},s["default"].createElement("div",{className:"genome-browser"},s["default"].createElement("div",{className:"control-bar"},s["default"].createElement(N["default"],{width:a-20,animate:c>0}),s["default"].createElement(z["default"],o({},this.props,{chromosome:l,minWidth:ne}))),s["default"].createElement(L["default"],{ref:function(t){return e.rootHammer=t},onDoubleTap:this.handleDoubleTap,onPan:this.handlePan,direction:L["default"].DIRECTION_VERTICAL,onPinch:function(e){return console.log("Pinch not implemented",e)},onWheel:this.handleMouseWheel},s["default"].createElement("div",{className:"main-area"},s["default"].createElement(j.Motion,{ref:"spring",style:g,defaultStyle:v},function(n){r=n.mid-n.halfWidth,i=n.mid+n.halfWidth,r=Math.round(r/m)*m,i=Math.round(i/m)*m,e.actualStart=r,e.actualEnd=i;var o={chromosome:l,start:r,end:i,width:p,sideWidth:a,onChangeLoadStatus:e.handleChangeLoadStatus};return s["default"].createElement("div",{className:"tracks vertical stack"},s["default"].createElement(G["default"],{start:r,end:i,width:p,height:Math.max(0,h-oe),sideWidth:a}),s["default"].createElement("div",{className:"fixed"},s["default"].createElement(F["default"],{start:r,end:i,width:p,sideWidth:a}),t.refSequenceSumm?s["default"].createElement(W["default"],o):null,t.annotation?s["default"].createElement(q["default"],o):null),s["default"].createElement("div",{className:"scrolling grow scroll-within"},u.map(function(t,n){var r=t.get("props");return s["default"].createElement(J(t.get("channel")),Object.assign({key:n,onClose:function(){return e.redirectedProps.componentUpdate(function(e){return e.deleteIn(["channels",n])})},componentUpdate:function(t){return e.redirectedProps.componentUpdate(function(e){return(0,S["default"])(t)?e.updateIn(["channels",n,"props"],t):e.mergeIn(["channels",n,"props"],t)})}},r.toObject(),o))}).toList()))})))))}});e.exports=ie},function(e,t){function n(e){return e&&e.length?e[0]:void 0}e.exports=n},function(e,t,n){function r(e,t){t.hasOwnProperty("vertical")&&console.warn("vertical is deprecated, please use `direction` instead");var n=t.direction;(n||t.hasOwnProperty("vertical"))&&(direction=n?n:t.vertical?"DIRECTION_ALL":"DIRECTION_HORIZONTAL",e.get("pan").set({direction:a[direction]}),e.get("swipe").set({direction:a[direction]})),t.options&&Object.keys(t.options).forEach(function(n){if("recognizers"===n)Object.keys(t.options.recognizers).forEach(function(n){var r=e.get(n);r.set(t.options.recognizers[n])},this);else{var r=n,o={};o[r]=t.options[n],e.set(o)}},this),t.recognizeWith&&Object.keys(t.recognizeWith).forEach(function(n){var r=e.get(n);r.recognizeWith(t.recognizeWith[n])},this),Object.keys(t).forEach(function(n){var r=l[n];r&&(e.off(r),e.on(r,t[n]))})}var o=n(330),i=n(357),a="undefined"!=typeof window?n(1238):void 0,s={children:!0,direction:!0,options:!0,recognizeWith:!0,vertical:!0},l={action:"tap press",onDoubleTap:"doubletap",onPan:"pan",onPanCancel:"pancancel",onPanEnd:"panend",onPanStart:"panstart",onPinch:"pinch",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchStart:"pinchstart",onPress:"press",onPressUp:"pressup",onRotate:"rotate",onRotateCancel:"rotatecancel",onRotateEnd:"rotateend",onRotateMove:"rotatemove",onRotateStart:"rotatestart",onSwipe:"swipe",onTap:"tap"};Object.keys(l).forEach(function(e){s[e]=!0});var u=o.createClass({displayName:"Hammer",propTypes:{className:o.PropTypes.string},componentDidMount:function(){this.hammer=new a(i.findDOMNode(this)),r(this.hammer,this.props)},componentDidUpdate:function(){this.hammer&&r(this.hammer,this.props)},componentWillUnmount:function(){this.hammer&&(this.hammer.stop(),this.hammer.destroy()),this.hammer=null},render:function(){var e={};return Object.keys(this.props).forEach(function(t){s[t]||(e[t]=this.props[t])},this),o.cloneElement(o.Children.only(this.props.children),e)}});e.exports=u},function(e,t,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */ +!function(o,i,a,s){"use strict";function l(e,t,n){return setTimeout(h(e,n),t)}function u(e,t,n){return!!Array.isArray(e)&&(c(e,n[t],n),!0)}function c(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}function p(e,t,n){var r,o=t.prototype;r=e.prototype=Object.create(o),r.constructor=e,r._super=o,n&&me(r,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function d(e,t){return typeof e==ye?e.apply(t?t[0]||s:s,t):e}function m(e,t){return e===s?t:e}function v(e,t,n){c(x(t),function(t){e.addEventListener(t,n,!1)})}function g(e,t,n){c(x(t),function(t){e.removeEventListener(t,n,!1)})}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function b(e,t){return e.indexOf(t)>-1}function x(e){return e.trim().split(/\s+/g)}function _(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]}):r.sort()),r}function C(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i1&&!n.firstMultiple?n.firstMultiple=L(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=t.center=j(r);t.timeStamp=_e(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=N(s,l),t.distance=I(s,l),O(n,t),t.offsetDirection=F(t.deltaX,t.deltaY);var u=R(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=xe(u.x)>xe(u.y)?u.x:u.y,t.scale=a?z(a.pointers,r):1,t.rotation=a?B(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,D(n,t);var c=e.element;y(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function O(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};t.eventType!==je&&i.eventType!==Fe||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}function D(e,t){var n,r,o,i,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=Ie&&(l>Le||a.velocity===s)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,f=R(l,u,c);r=f.x,o=f.y,n=xe(f.x)>xe(f.y)?f.x:f.y,i=F(u,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}function L(e){for(var t=[],n=0;n=xe(t)?e<0?Be:ze:t<0?Ue:We}function I(e,t,n){n||(n=Ge);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function N(e,t,n){n||(n=Ge);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}function B(e,t){return N(t[1],t[0],Ye)+N(e[1],e[0],Ye)}function z(e,t){return I(t[0],t[1],Ye)/I(e[0],e[1],Ye)}function U(){this.evEl=Xe,this.evWin=Ze,this.pressed=!1,S.apply(this,arguments)}function W(){this.evEl=$e,this.evWin=et,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=nt,this.evWin=rt,this.started=!1,S.apply(this,arguments)}function q(e,t){var n=w(e.touches),r=w(e.changedTouches);return t&(Fe|Ie)&&(n=T(n.concat(r),"identifier",!0)),[n,r]}function V(){this.evTarget=it,this.targetIds={},S.apply(this,arguments)}function G(e,t){var n=w(e.touches),r=this.targetIds;if(t&(je|Re)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=w(e.changedTouches),s=[],l=this.target;if(i=n.filter(function(e){return y(e.target,l)}),t===je)for(o=0;o-1&&r.splice(e,1)};setTimeout(o,at)}}function Z(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;r=xt&&t(n.options.event+te(r))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=Tt)},canEmit:function(){for(var e=0;et.threshold&&o&t.direction},attrTest:function(e){return oe.prototype.attrTest.call(this,e)&&(this.state&yt||!(this.state&yt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ne(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(ae,oe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ht]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&yt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),p(se,ee,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ft]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(Fe|Ie)&&!o)this.reset();else if(e.eventType&je)this.reset(),this._timer=l(function(){this.state=_t,this.tryEmit()},t.time,this);else if(e.eventType&Fe)return _t;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===_t&&(e&&e.eventType&Fe?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=_e(),this.manager.emit(this.options.event,this._input)))}}),p(le,oe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ht]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&yt)}}),p(ue,oe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:He|qe,pointers:1},getTouchAction:function(){return ie.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(He|qe)?t=e.overallVelocity:n&He?t=e.overallVelocityX:n&qe&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&xe(t)>this.options.velocity&&e.eventType&Fe},emit:function(e){var t=ne(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(ce,ee,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance10*b&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();var o=(e.accumulatedTime-Math.floor(e.accumulatedTime/b)*b)/b,i=Math.floor(e.accumulatedTime/b),a={},s={},l={},u={};for(var f in t)if(t.hasOwnProperty(f)){var h=t[f];if("number"==typeof h)l[f]=h,u[f]=0,a[f]=h,s[f]=0;else{for(var d=e.state.lastIdealStyle[f],m=e.state.lastIdealVelocity[f],g=0;g10*x&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var i=(e.accumulatedTime-Math.floor(e.accumulatedTime/x)*x)/x,a=Math.floor(e.accumulatedTime/x),s=[],l=[],u=[],c=[],p=0;p10*C&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var l=(e.accumulatedTime-Math.floor(e.accumulatedTime/C)*C)/C,u=Math.floor(e.accumulatedTime/C),c=a(e.props.willEnter,e.props.willLeave,e.state.mergedPropsStyles,n,e.state.currentStyles,e.state.currentVelocities,e.state.lastIdealStyles,e.state.lastIdealVelocities),f=c[0],p=c[1],d=c[2],m=c[3],v=c[4],y=0;yr[c])return-1;if(o>i[c]&&lr[c])return 1;if(a>i[c]&&s=0&&e<=(this.config.chromosomes[this.props.chromosome].len||_)&&t>this.props.minWidth&&this.props.componentUpdate({start:e-t/2,end:e+t/2})},handleRegionChange:function(){var e=this.refs.region.value;this.setState({regionText:e});var t=e.trim().match(/^(?:(.+):)?([0-9]+)-([0-9]+)$/);if(t){var n=t.slice(1),r=o(n,3),i=r[0],a=r[1],s=r[2];if(a=parseInt(a),s=parseInt(s),i=i||this.props.chromosome,(0,c["default"])(this.config.chromosomes,i)&&aa[c]+i[c];)p+=1;u[p]=a[c]+i[c],l[c]=p}for(var h={},d=0,m=n.length;d-60&&_v&&(v=d[b])}}l.fillStyle="#3d8bd5";for(var C=0,E=p.length;C-4&&k.25&&l.fillRect(k,d[C]*m+16,S-k,10)}var A=Math.max((v+1)*m+10,40);A!==a&&this.setState({height:A})}}},render:function(){var e=this.props,t=e.width,n=e.sideWidth,r=e.name,o=this.state.height;return s["default"].createElement(E["default"],{width:t,sideWidth:n,height:o,sideComponent:s["default"].createElement("div",{className:"side-name"},s["default"].createElement("span",null,r||"Genes")),configComponent:null,legendComponent:s["default"].createElement(S,null),onClose:null},s["default"].createElement("canvas",{ref:"canvas",width:t,height:o}))}}),S=function(){return s["default"].createElement("div",{className:"legend"},s["default"].createElement("div",{className:"legend-element"},s["default"].createElement("svg",{width:"50",height:"26"},s["default"].createElement("rect",{x:"0",y:"12",width:"50",height:"2",style:{fill:"#000"}})),s["default"].createElement("div",{className:"label"},"Gene")),s["default"].createElement("div",{className:"legend-element"},s["default"].createElement("svg",{width:"50",height:"26"},s["default"].createElement("rect",{x:"0",y:"8",width:"50",height:"10",style:{fill:"#3d8bd5"}})),s["default"].createElement("div",{className:"label"},"Coding Sequence")))};S.shouldComponentUpdate=function(){return!1},e.exports=k},function(e,t){!function(e){var t=function(e){var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}(e),n=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all"};1!==t&&(n(r,function(n,r){e[r]=function(e){return function(){var r,o,i=Array.prototype.slice.call(arguments);if("all"===n)i=i.map(function(e){return e*t});else if(Array.isArray(n))for(r=0,o=n.length;r1&&(this.style.height=this.height+"px",this.style.width=this.width+"px",this.width*=r,this.height*=r)),o}}(e.getContext)}(HTMLCanvasElement.prototype)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(1234),u=r(l),c=n(1218),f=r(c),p=i["default"].createClass({displayName:"Background",mixins:[s["default"]],propTypes:{start:i["default"].PropTypes.number,end:i["default"].PropTypes.number,width:i["default"].PropTypes.number,height:i["default"].PropTypes.number,sideWidth:i["default"].PropTypes.number},render:function(){var e=this.props,t=e.start,n=e.end,r=e.width,o=e.height,a=e.sideWidth,s=f["default"].scale.linear().domain([t,n]).range([a,r]);if(0==r||0==o)return null;var l=50,c=Math.max((0,u["default"])(n-t,r,l),1);t=Math.max(0,t),t=Math.ceil(t/c)*c,t=Math.max(0,t),n=Math.max(t,n);for(var p=[],h=[],d=t;d*{padding-left:10px}.genome-browser .control-bar>*{vertical-align:middle;padding-left:10px}.genome-browser .main-area{position:relative;height:calc(100% - 33px)}.genome-browser .main-area .main-area-shadow{position:absolute;height:100%;top:0;box-shadow:inset 0 1px 6px rgba(0,0,0,.12),inset 0 1px 4px rgba(0,0,0,.24)}.genome-browser .main-area .tracks{position:relative}.genome-browser .main-area .tracks .background{z-index:-1;position:absolute;top:0;left:0}.genome-browser .main-area .tracks .fixed{z-index:1}.genome-browser .main-area .tracks .fixed .channel-container:first-child .channel-stack .channel-data{box-shadow:inset 2px 2px 4px rgba(0,0,0,.24)}.genome-browser .main-area .tracks .fixed .channel-container:last-child{box-shadow:-1px 1px 4px rgba(0,0,0,.24);border-bottom:none}.genome-browser .main-area .tracks .fixed .channel-stack .channel-data{box-shadow:inset 4px 0 4px -2px rgba(0,0,0,.24)}.genome-browser .main-area .tracks .scrolling{overflow-y:scroll}.genome-browser .main-area .tracks .scrolling .channel-container:last-child .channel-side{box-shadow:-1px 2px 4px rgba(0,0,0,.24)}.genome-browser .main-area .tracks .scrolling .channel-stack .channel-data{box-shadow:inset 3px 0 4px -2px rgba(0,0,0,.24)}.config-container{box-shadow:3px 1px 4px rgba(0,0,0,.24)}.legend-container{box-shadow:3px 0 4px rgba(0,0,0,.24)}.channel-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;border-bottom:1px solid #66a2de}.channel-container .channel-side{position:relative;overflow:hidden;background-color:#fff}.channel-container .channel-side .close{color:#d62728;padding-right:6px}.channel-container .channel-side .icon{opacity:.6}.channel-container .channel-side .icon:hover{opacity:1}.channel-container .channel-side .button{width:25px;height:25px;line-height:19px;padding:3px;position:absolute;text-align:center;right:0}.channel-container .channel-side .button .open{color:#3d8bd5}.channel-container .channel-side .config{top:0}.channel-container .channel-side .legend{transition:bottom .5s!important;bottom:0}.channel-container .channel-side .close{top:calc(50% - 15px);left:0}.channel-container .channel-side .side-component{position:absolute;right:0;left:0;padding:5px 35px 5px 30px;text-overflow:ellipsis;overflow:auto;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}.channel-container .channel-stack{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.channel-container .channel-stack .channel-data{overflow:hidden}.channel-container .channel-stack .channel-data canvas{display:block}.channel-container .channel-stack .tray-container{position:relative;transition:height .5s!important;background:#fff;height:0;width:100%;overflow:hidden}.channel-container .channel-stack .tray-container .legend{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-right:16px}.channel-container .channel-stack .tray-container .legend .legend-element{min-height:26px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;padding-left:16px}.channel-container .channel-stack .tray-container .legend .legend-element .label{padding-left:8px}.channel-container .channel-stack .tray-container .channel-controls{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.channel-container .channel-stack .tray-container .channel-controls .control{min-height:50px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}.channel-container .channel-stack .tray-container .channel-controls .control .label{padding-left:10px}.channel-container .channel-stack .tray-container .channel-controls .control .dropdown{top:-4px}.channel-container .channel-stack .tray-container .channel-controls .control .slider{margin-left:30px;width:100px}.channel-container .channel-stack .tray-container .channel-controls .control .numeric-input{width:80px}div.scale{background:#fff}.tick line{stroke:#a9a9a9;stroke-width:.25px}.x text{text-anchor:middle;alignment-baseline:text-before-edge}.y text{text-anchor:end;alignment-baseline:central;font-size:12px}.major line{stroke-width:.5px}.sequence{position:relative}.sequence canvas{position:absolute;transform-origin:top left}.sequence .blocky{image-rendering:optimizeSpeed;-ms-interpolation-mode:nearest-neighbor;image-rendering:-moz-crisp-edges;image-rendering:pixelated}.sequence svg{position:absolute}.sequence svg text{text-anchor:middle;alignment-baseline:central}svg.numerical-channel .origin-shifter{fill:none}svg.numerical-channel g.categorical-track{stroke:none;opacity:.8}svg.numerical-channel g.numerical-track{fill:none}svg.numerical-channel g.numerical-track *{vector-effect:non-scaling-stroke}svg.numerical-channel g.numerical-track .line{stroke:#3d8bd5}svg.numerical-channel g.numerical-track .area{stroke:none;fill:rgba(61,139,213,.3)}",""])},function(e,t,n){function r(e){return n(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./Background":1258,"./Background.js":1258,"./Controls":1254,"./Controls.js":1254,"./FindBlocks":1232,"./FindBlocks.js":1232,"./GenomeBrowser":1235,"./GenomeBrowser.js":1235,"./LoadingIndicator":1253,"./LoadingIndicator.js":1253,"./tracks/AnnotationChannel":1256,"./tracks/AnnotationChannel.js":1256,"./tracks/BlockChunkedChannel":1262,"./tracks/BlockChunkedChannel.js":1262,"./tracks/CategoricalChannel":1263,"./tracks/CategoricalChannel.js":1263,"./tracks/ChannelWithConfigDrawer":1223,"./tracks/ChannelWithConfigDrawer.js":1223,"./tracks/GenomeScale":1233,"./tracks/GenomeScale.js":1233,"./tracks/NumericalSummaryTrack":1276,"./tracks/NumericalSummaryTrack.js":1276,"./tracks/NumericalTrackGroupChannel":1278,"./tracks/NumericalTrackGroupChannel.js":1278,"./tracks/PerRowIndicatorChannel":1297,"./tracks/PerRowIndicatorChannel.js":1297,"./tracks/PerRowNumericalChannel":1302,"./tracks/PerRowNumericalChannel.js":1302,"./tracks/ReferenceSequence":1217,"./tracks/ReferenceSequence.js":1217,"./tracks/ScaledSVGChannel":1269,"./tracks/ScaledSVGChannel.js":1269,"./tracks/YScale":1270,"./tracks/YScale.js":1270};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=1261},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(330),a=r(i),s=n(1224),l=r(s),u=n(1223),c=r(u),f=n(1232),p=r(f),h=a["default"].createClass({displayName:"BlockChunkedChannel",mixins:[(0,l["default"])({redirect:["onClose"]})],propTypes:{chromosome:a["default"].PropTypes.string.isRequired,start:a["default"].PropTypes.number.isRequired,end:a["default"].PropTypes.number.isRequired,width:a["default"].PropTypes.number.isRequired,height:a["default"].PropTypes.number,sideWidth:a["default"].PropTypes.number.isRequired,side:a["default"].PropTypes.element,controls:a["default"].PropTypes.element,onClose:a["default"].PropTypes.func},getDefaultProps:function(){return{height:100}},handleClose:function(){this.redirectedProps.onClose&&this.redirectedProps.onClose()},render:function(){var e=this,t=this.props,n=t.start,r=t.end,i=t.width,s=t.height,l=t.sideWidth,u=t.side,f=t.controls;if(i<=0)return null;var h=(0,p["default"])(n,r),d=o(h,2),m=o(d[0],2),v=m[0],g=m[1],y=o(d[1],2),b=y[0],x=y[1];this.blockEnd===g&&this.blockStart===v||this.blockEnd===x&&this.blockStart===b||(this.blockStart=v,this.blockEnd=g);var _=(i-l)/2/(r-n)*(this.blockEnd-this.blockStart);return a["default"].createElement(c["default"],{width:i,sideWidth:l,height:s,sideComponent:a["default"].createElement("div",{className:"side-name"},u),configComponent:f,onClose:this.handleClose},a["default"].Children.map(this.props.children,function(t){return a["default"].cloneElement(t,{blockStart:e.blockStart,blockEnd:e.blockEnd,blockPixelWidth:_})}))}});e.exports=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t12&&t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.checkbox,r=24;return{icon:{height:r,width:r},check:{position:"absolute",opacity:0,transform:"scale(0)",transitionOrigin:"50% 50%",transition:y["default"].easeOut("450ms","opacity","0ms")+", "+y["default"].easeOut("0ms","transform","450ms"),fill:n.checkedColor},box:{position:"absolute",opacity:1,fill:n.boxColor,transition:y["default"].easeOut("2s",null,"200ms")},checkWhenSwitched:{opacity:1,transform:"scale(1)",transition:y["default"].easeOut("0ms","opacity","0ms")+", "+y["default"].easeOut("800ms","transform","0ms")},boxWhenSwitched:{transition:y["default"].easeOut("100ms",null,"0ms"),fill:n.checkedColor},checkWhenDisabled:{fill:n.disabledColor,cursor:"not-allowed"},boxWhenDisabled:{fill:e.checked?"transparent":n.disabledColor,cursor:"not-allowed"},label:{color:e.disabled?n.labelDisabledColor:n.labelColor}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.baseTheme;return{root:{position:"relative",cursor:e.disabled?"default":"pointer",overflow:"visible",display:"table",height:"auto",width:"100%"},input:{position:"absolute",cursor:e.disabled?"default":"pointer",pointerEvents:"all",opacity:0,width:"100%",height:"100%",zIndex:2,left:0,boxSizing:"border-box",padding:0,margin:0},controls:{display:"flex",width:"100%",height:"100%"},label:{"float":"left",position:"relative",display:"block",width:"calc(100% - 60px)",lineHeight:"24px",color:n.palette.textColor,fontFamily:n.fontFamily},wrap:{transition:x["default"].easeOut(),"float":"left",position:"relative",display:"block",flexShrink:0,width:60-n.spacing.desktopGutterLess,marginRight:"right"===e.labelPosition?n.spacing.desktopGutterLess:0,marginLeft:"left"===e.labelPosition?n.spacing.desktopGutterLess:0},ripple:{color:e.rippleColor||n.palette.primary1Color,height:"200%",width:"200%",top:-12,left:-12}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;tr)&&(r=o)}),(0,p["default"])(n)&&(0,p["default"])(r)&&this.setState({dataYMin:n,dataYMax:r})},render:function(){var e=this,t=this.props.tracks,n=this.state,r=n.dataYMin,i=n.dataYMax;return a["default"].createElement(C["default"],o({},this.props,{dataYMin:r,dataYMax:i,side:a["default"].createElement("span",null,t.map(function(e){return e.get("name")}).join(", ")),onClose:this.redirectedProps.onClose,controls:a["default"].createElement(z,o({},this.props,{componentUpdate:this.redirectedProps.componentUpdate}))}),t.map(function(t,n){return a["default"].createElement(F(t.get("track")),Object.assign({},e.props,t.get("props").toObject(),{onYLimitChange:function(t){var r=t.dataYMin,o=t.dataYMax;return e.handleYLimitChange(n,{dataYMin:r,dataYMax:o})},key:n}))}))}}),z=a["default"].createClass({displayName:"NumericalTrackGroupControls",mixins:[x["default"],y["default"],(0,w["default"])({check:["interpolation","tension","autoYScale","yMin","yMax","tracks"],redirect:["componentUpdate"]})],trackGroups:function(){var e={__reference__:{name:"Reference",icon:"bitmap:genomebrowser.png",items:{}}};return(0,d["default"])(this.config.tables,function(t){t.hasGenomePositions&&!t.isHidden&&(e[t.id]={name:t.capNamePlural,icon:t.icon,items:{}},(0,d["default"])(t.properties,function(n){n.showInBrowser&&n.isFloat&&n.summaryValues&&(e[t.id].items[n.id]={name:n.name,description:n.description,icon:"line-chart",payload:{track:"NumericalSummaryTrack",name:n.name,props:{table:t.id,track:n.id}}})}))}),l["default"].fromJS(e)},handleTrackChange:function(e){this.getFlux().actions.session.modalClose(),e=e.map(function(e){return e.get("payload")}),this.redirectedProps.componentUpdate({tracks:e})},render:function(){var e=this,t=this.props,n=t.interpolation,r=t.tension,o=t.autoYScale,i=t.yMin,s=t.yMax,u=t.tracks,c=this.getFlux().actions;return u=u.map(function(e){return l["default"].Map({groupId:e.getIn(["props","table"]),itemId:e.getIn(["props","track"]),payload:e})}),a["default"].createElement("div",{className:"channel-controls"},a["default"].createElement("div",{className:"control"},a["default"].createElement(j["default"],{label:"Add/Remove Tracks",primary:!0,onClick:function(){return c.session.modalOpen("containers/ItemPicker.js",{title:"Pick tracks to be displayed",itemName:"Numerical track",itemVerb:"display",groups:e.trackGroups(),initialSelection:u,onPick:e.handleTrackChange})}})),a["default"].createElement("div",{className:"control"},a["default"].createElement("div",{className:"label"},"Interpolation:"),a["default"].createElement(A["default"],{className:"dropdown",value:n,onChange:function(t,n,r){return e.redirectedProps.componentUpdate({interpolation:r})}},I.map(function(e){return a["default"].createElement(M["default"],{key:e.payload,value:e.payload,primaryText:e.text})}))),N[n]?a["default"].createElement("div",{className:"control"},a["default"].createElement("div",{className:"label"},"Tension:"),a["default"].createElement(D["default"],{className:"slider",style:{marginBottom:"0",marginTop:"0"},name:"tension",value:r,defaultValue:r,onChange:function(t,n){return e.redirectedProps.componentUpdate({tension:n})}})):null,a["default"].createElement("div",{className:"control"},a["default"].createElement("div",{className:"label"},"Auto Y Scale:"),a["default"].createElement(k["default"],{name:"autoYScale",value:"toggleValue1",defaultChecked:o,style:{width:"inherit"},onCheck:function(t,n){return e.redirectedProps.componentUpdate({autoYScale:n})}})),o?null:a["default"].createElement("div",{className:"control"},a["default"].createElement("div",{ +className:"label"},"Y Min:"),a["default"].createElement("input",{className:"numeric-input",ref:"yMin",type:"number",value:i,onChange:function(){var t=parseFloat(e.refs.yMin.value);(0,p["default"])(t)&&e.redirectedProps.componentUpdate({yMin:t})}})),o?null:a["default"].createElement("div",{className:"control"},a["default"].createElement("div",{className:"label"},"Y Max:"),a["default"].createElement("input",{className:"numeric-input",ref:"yMax",type:"number",value:s,onChange:function(){var t=parseFloat(e.refs.yMax.value);(0,p["default"])(t)&&e.redirectedProps.componentUpdate({yMax:t})}})))}});e.exports=B},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.MenuItem=t.DropDownMenu=void 0;var o=n(1280),i=r(o),a=n(1291),s=r(a);t.DropDownMenu=i["default"],t.MenuItem=s["default"],t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.disabled,r=t.muiTheme.baseTheme.spacing,o=t.muiTheme.baseTheme.palette,i=t.muiTheme.dropDownMenu.accentColor;return{control:{cursor:n?"not-allowed":"pointer",height:"100%",position:"relative",width:"100%"},icon:{fill:i,position:"absolute",right:r.desktopGutterLess,top:(r.desktopToolbarHeight-24)/2},label:{color:n?o.disabledColor:o.textColor,lineHeight:r.desktopToolbarHeight+"px",opacity:1,position:"relative",paddingLeft:r.desktopGutter,paddingRight:r.iconSize+r.desktopGutterLess+r.desktopGutterMini,top:0},labelWhenOpen:{opacity:0,top:r.desktopToolbarHeight/8},root:{display:"inline-block",fontSize:r.desktopDropDownMenuFontSize,height:r.desktopSubheaderHeight,fontFamily:t.muiTheme.baseTheme.fontFamily,outline:"none",position:"relative",transition:v["default"].easeOut()},rootWhenOpen:{opacity:1},underline:{borderTop:"solid 1px "+i,bottom:1,left:0,margin:"-1px "+r.desktopGutter+"px",right:0,position:"absolute"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return Array.isArray(e)?e:Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=e.animated,r=e.desktop,o=e.maxHeight,i=e.openDirection,a=void 0===i?"bottom-left":i,s=e.width,l="bottom"===a.split("-")[0],u="left"===a.split("-")[1],c=t.muiTheme,f={root:{transition:n?E["default"].easeOut("250ms","transform"):null,zIndex:c.zIndex.menu,top:l?0:null,bottom:l?null:0,left:u?null:0,right:u?0:null,transform:n?"scaleX(0)":null,transformOrigin:u?"right":"left",opacity:0,maxHeight:o,overflowY:o?"auto":null},divider:{marginTop:7,marginBottom:8},list:{display:"table-cell",paddingBottom:r?16:8,paddingTop:r?16:8,userSelect:"none",width:s},menuItemContainer:{transition:n?E["default"].easeOut(null,"opacity"):null,opacity:0},selectedMenuItem:{color:c.baseTheme.palette.accent1Color}};return f}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0?i:0,isKeyboardFocused:e.initiallyKeyboardFocused,keyWidth:e.desktop?64:56},r.hotKeyHolder=new R.HotKeyHolder,r}return l(t,e),f(t,[{key:"componentDidMount",value:function(){this.props.autoWidth&&this.setWidth(),this.props.animated||this.animateOpen(),this.setScollPosition()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getFilteredChildren(e.children),n=this.getSelectedIndex(e,t);this.setState({focusIndex:e.disableAutoFocus?-1:n>=0?n:0,keyWidth:e.desktop?64:56})}},{key:"shouldComponentUpdate",value:function(e,t,n){return!(0,b["default"])(this.props,e)||!(0,b["default"])(this.state,t)||!(0,b["default"])(this.context,n)}},{key:"componentDidUpdate",value:function(){this.props.autoWidth&&this.setWidth()}},{key:"getValueLink",value:function(e){return e.valueLink||{value:e.value,requestChange:e.onChange}}},{key:"setKeyboardFocused",value:function(e){this.setState({isKeyboardFocused:e})}},{key:"getFilteredChildren",value:function(e){var t=[];return m["default"].Children.forEach(e,function(e){e&&t.push(e)}),t}},{key:"animateOpen",value:function(){var e=g["default"].findDOMNode(this).style,t=g["default"].findDOMNode(this.refs.scrollContainer).style,n=g["default"].findDOMNode(this.refs.list).childNodes;T["default"].set(e,"transform","scaleX(1)"),T["default"].set(t,"transform","scaleY(1)"),t.opacity=1;for(var r=0;r=0)){var o=n.props.primaryText;"string"==typeof o&&new RegExp("^"+e,"i").test(o)&&(t=r)}}),t>=0&&(this.setFocusIndex(t,!0),!0)}},{key:"handleMenuItemTouchTap",value:function(e,t,n){var r=this.props.children,o=this.props.multiple,a=this.getValueLink(this.props),s=a.value,l=t.props.value,u=m["default"].isValidElement(r)?0:r.indexOf(t);if(this.setFocusIndex(u,!1),o){var c=s.indexOf(l),f=i(s),p=f;c===-1?p.push(l):p.splice(c,1),a.requestChange(e,p)}else o||l===s||a.requestChange(e,l);this.props.onItemTouchTap(e,t,n)}},{key:"incrementKeyboardFocusIndex",value:function(e){var t=this.state.focusIndex,n=this.getMenuItemCount(e)-1;t++,t>n&&(t=n),this.setFocusIndex(t,!0)}},{key:"isChildSelected",value:function(e,t){var n=this.getValueLink(t).value,r=e.props.value;return t.multiple?n.length&&n.indexOf(r)!==-1:e.props.hasOwnProperty("value")&&n===r}},{key:"setFocusIndex",value:function(e,t){this.setState({focusIndex:e,isKeyboardFocused:t})}},{key:"setScollPosition",value:function(){var e=this.props.desktop,t=this.refs.focusedMenuItem,n=e?32:48;if(t){var r=g["default"].findDOMNode(t).offsetTop,o=r-n;o=d-1&&k<=d+C-1&&(T=x?T+E:T-E,l=T),s=(0,h["default"])({},g.menuItemContainer,{transitionDelay:l+"ms"})}var u=o?m["default"].cloneElement(t,{style:g.divider}):a?m["default"].cloneElement(t,{desktop:i}):e.cloneMenuItem(t,k,g,r);return o||a||k++,n?m["default"].createElement("div",{style:v(s)},u):u});return m["default"].createElement(_["default"],{onClickAway:this.handleClickAway},m["default"].createElement("div",{onKeyDown:this.handleKeyDown,style:v(y),ref:"scrollContainer"},m["default"].createElement(O["default"],c({},p,{ref:"list",style:b}),S)))}}]),t}(d.Component);F.propTypes={animated:(0,L["default"])(d.PropTypes.bool,"Instead, use a [Popover](/#/components/popover).\n It will be removed with v0.16.0."),autoWidth:d.PropTypes.bool,children:d.PropTypes.node,desktop:d.PropTypes.bool,disableAutoFocus:d.PropTypes.bool,initiallyKeyboardFocused:d.PropTypes.bool,listStyle:d.PropTypes.object,maxHeight:d.PropTypes.number,multiple:d.PropTypes.bool,onChange:d.PropTypes.func,onEscKeyDown:d.PropTypes.func,onItemTouchTap:d.PropTypes.func,onKeyDown:d.PropTypes.func,openDirection:(0,L["default"])(P["default"].corners,"Instead, use a [Popover](/#/components/popover).\n It will be removed with v0.16.0."),selectedMenuItemStyle:d.PropTypes.object,style:d.PropTypes.object,value:d.PropTypes.any,valueLink:d.PropTypes.object,width:P["default"].stringOrNumber,zDepth:P["default"].zDepth},F.defaultProps={autoWidth:!0,desktop:!1,disableAutoFocus:!1,initiallyKeyboardFocused:!1,maxHeight:null,multiple:!1,onChange:function(){},onEscKeyDown:function(){},onItemTouchTap:function(){},onKeyDown:function(){}},F.contextTypes={muiTheme:d.PropTypes.object.isRequired};var I=function(){var e=this;this.handleClickAway=function(t){t.defaultPrevented||e.setFocusIndex(-1,!1)},this.handleKeyDown=function(t){var n=e.getFilteredChildren(e.props.children),r=(0,S["default"])(t);switch(r){case"down":t.preventDefault(),e.incrementKeyboardFocusIndex(n);break;case"esc":e.props.onEscKeyDown(t);break;case"tab":t.preventDefault(),t.shiftKey?e.decrementKeyboardFocusIndex():e.incrementKeyboardFocusIndex(n);break;case"up":t.preventDefault(),e.decrementKeyboardFocusIndex();break;default:if(1===r.length){var o=e.hotKeyHolder.append(r);e.setFocusIndexStartsWith(o)&&t.preventDefault()}}e.props.onKeyDown(t)}};t["default"]=F},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;twindow.innerHeight||e.left<0||e.left>window.innerWidth)&&this.requestClose("offScreen")}},{key:"getOverlapMode",value:function(e,t,n){return[e,t].indexOf(n)>=0?"auto":e===t?"inclusive":"exclusive"}},{key:"getPositions",value:function(e,t){var n=l({},e),r=l({},t),o={x:["left","right"].filter(function(e){return e!==r.horizontal}),y:["top","bottom"].filter(function(e){return e!==r.vertical})},i={x:this.getOverlapMode(n.horizontal,r.horizontal,"middle"),y:this.getOverlapMode(n.vertical,r.vertical,"center")};return o.x.splice("auto"===i.x?0:1,0,"middle"),o.y.splice("auto"===i.y?0:1,0,"center"),"auto"!==i.y&&(n.vertical="top"===n.vertical?"bottom":"top","inclusive"===i.y&&(r.vertical=r.vertical)),"auto"!==i.x&&(n.horizontal="left"===n.horizontal?"right":"left","inclusive"===i.y&&(r.horizontal=r.horizontal)),{positions:o,anchorPos:n}}},{key:"applyAutoPositionIfNeeded",value:function(e,t,n,r,o){var i=this.getPositions(r,n),a=i.positions,s=i.anchorPos;if(o.top<0||o.top+t.bottom>window.innerHeight){var l=e[s.vertical]-t[a.y[0]];l+t.bottom<=window.innerHeight?o.top=Math.max(0,l):(l=e[s.vertical]-t[a.y[1]],l+t.bottom<=window.innerHeight&&(o.top=Math.max(0,l)))}if(o.left<0||o.left+t.right>window.innerWidth){var u=e[s.horizontal]-t[a.x[0]];u+t.right<=window.innerWidth?o.left=Math.max(0,u):(u=e[s.horizontal]-t[a.x[1]],u+t.right<=window.innerWidth&&(o.left=Math.max(0,u)))}return o}},{key:"render",value:function(){return f["default"].createElement("div",{style:{display:"none"}},f["default"].createElement(m["default"],{target:"window",onScroll:this.handleScroll,onResize:this.handleResize}),f["default"].createElement(g["default"],{ref:"layer",open:this.state.open,componentClickAway:this.componentClickAway,useLayerForClickAway:this.props.useLayerForClickAway,render:this.renderLayer}))}}]),t}(c.Component);k.propTypes={anchorEl:c.PropTypes.object,anchorOrigin:b["default"].origin,animated:c.PropTypes.bool,animation:c.PropTypes.func,autoCloseWhenOffScreen:c.PropTypes.bool,canAutoPosition:c.PropTypes.bool,children:c.PropTypes.node,className:c.PropTypes.string,onRequestClose:c.PropTypes.func,open:c.PropTypes.bool,style:c.PropTypes.object,targetOrigin:b["default"].origin,useLayerForClickAway:c.PropTypes.bool,zDepth:b["default"].zDepth},k.defaultProps={anchorOrigin:{vertical:"bottom",horizontal:"left"},animated:!0,autoCloseWhenOffScreen:!0,canAutoPosition:!0,onRequestClose:function(){},open:!1,style:{overflowY:"auto"},targetOrigin:{vertical:"top",horizontal:"left"},useLayerForClickAway:!0,zDepth:1},k.contextTypes={muiTheme:c.PropTypes.object.isRequired},t["default"]=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.baseTheme.palette.disabledColor,r=t.muiTheme.baseTheme.palette.textColor,o=e.desktop?64:72,i=e.desktop?24:16,a={root:{color:e.disabled?n:r,cursor:e.disabled?"not-allowed":"inherit",lineHeight:e.desktop?"32px":"48px",fontSize:e.desktop?15:16,whiteSpace:"nowrap"},innerDivStyle:{paddingLeft:e.leftIcon||e.insetChildren||e.checked?o:i,paddingRight:i,paddingBottom:0,paddingTop:0},secondaryText:{"float":"right"},leftIconDesktop:{margin:0,left:24,top:4},rightIconDesktop:{margin:0,right:24,top:4,fill:t.muiTheme.menuItem.rightIconDesktopFill}};return a}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=e.max){var o="min"===t?"min should be less than max":"max should be greater than min";return new Error(o)}},w=function(e,t,n){var r=h.PropTypes.number(e,t,n);if(null!==r)return r;var o=e[t];return on&&(t=n),this.updateWithChangeEvent(e,t/n)}},{key:"updateWithChangeEvent",value:function(e,t){var n=this;this.setPercent(t,function(){n.props.onChange&&n.props.onChange(e,n.state.value)})}},{key:"percentToValue",value:function(e){return e*(this.props.max-this.props.min)+this.props.min}},{key:"render",value:function(){var e=this.props,t=(e.axis,e.description),n=e.disabled,r=e.disableFocusRipple,i=e.error,a=e.max,s=e.min,l=e.name,c=(e.onBlur,e.onChange,e.onDragStart,e.onDragStop,e.onFocus,e.required),f=e.sliderStyle,h=e.step,m=e.style,v=o(e,["axis","description","disabled","disableFocusRipple","error","max","min","name","onBlur","onChange","onDragStart","onDragStop","onFocus","required","sliderStyle","step","style"]),g=this.context.muiTheme.prepareStyles,y=L(this.props,this.context,this.state),b={},_=this.state.percent;_>1?_=1:_<0&&(_=0),b=0===_?(0,p["default"])({},y.handle,y.handleWhenPercentZero,this.state.active&&y.handleWhenActive,(this.state.hovered||this.state.focused)&&!n&&y.handleWhenPercentZeroAndFocused,n&&y.handleWhenPercentZeroAndDisabled):(0,p["default"])({},y.handle,this.state.active&&y.handleWhenActive,n&&y.handleWhenDisabled);var w=(0,p["default"])({},y.ripple,0===_&&y.rippleWhenPercentZero),T=(this.state.hovered||this.state.focused)&&!this.state.active,C=void 0;n||r||(C=d["default"].createElement(x["default"],{ref:"focusRipple",key:"focusRipple",style:w,innerStyle:y.rippleInner,show:T,muiTheme:this.context.muiTheme,color:y.rippleColor.fill}));var E=void 0;return n||(E={onTouchStart:this.onHandleTouchStart,onMouseDown:this.onHandleMouseDown,onKeyDown:this.onHandleKeyDown}),d["default"].createElement("div",u({},v,{style:g((0,p["default"])({},m))}),d["default"].createElement("span",null,t),d["default"].createElement("span",null,i),d["default"].createElement("div",{style:g((0,p["default"])(y.slider,f)),onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchStart},d["default"].createElement("div",{ref:"track",style:g(y.track)},d["default"].createElement("div",{style:g(y.filled)}),d["default"].createElement("div",{style:g(y.remaining)}),d["default"].createElement("div",u({ref:"handle",style:g(b),tabIndex:0},E),C))),d["default"].createElement("input",{ref:"input",type:"hidden",name:l,value:this.state.value,required:c,min:s,max:a,step:h}))}}]),t}(h.Component);j.propTypes={axis:h.PropTypes.oneOf(["x","x-reverse","y","y-reverse"]),defaultValue:w,description:h.PropTypes.string,disableFocusRipple:h.PropTypes.bool,disabled:h.PropTypes.bool,error:h.PropTypes.string,max:_,min:_,name:h.PropTypes.string,onBlur:h.PropTypes.func,onChange:h.PropTypes.func,onDragStart:h.PropTypes.func,onDragStop:h.PropTypes.func,onFocus:h.PropTypes.func,required:h.PropTypes.bool,sliderStyle:h.PropTypes.object,step:h.PropTypes.number,style:h.PropTypes.object,value:w},j.defaultProps={axis:"x",disabled:!1,disableFocusRipple:!1,max:1,min:0,required:!0,step:.01,style:{}},j.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=j},function(e,t,n){function r(e){return n(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./AnnotationChannel":1256,"./AnnotationChannel.js":1256,"./BlockChunkedChannel":1262,"./BlockChunkedChannel.js":1262,"./CategoricalChannel":1263,"./CategoricalChannel.js":1263,"./ChannelWithConfigDrawer":1223,"./ChannelWithConfigDrawer.js":1223,"./GenomeScale":1233,"./GenomeScale.js":1233,"./NumericalSummaryTrack":1276,"./NumericalSummaryTrack.js":1276,"./NumericalTrackGroupChannel":1278,"./NumericalTrackGroupChannel.js":1278,"./PerRowIndicatorChannel":1297,"./PerRowIndicatorChannel.js":1297,"./PerRowNumericalChannel":1302,"./PerRowNumericalChannel.js":1302,"./ReferenceSequence":1217,"./ReferenceSequence.js":1217,"./ScaledSVGChannel":1269,"./ScaledSVGChannel.js":1269,"./YScale":1270,"./YScale.js":1270};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=1296},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;to-i?(o-i)/2:n+r/2;t.hatchRect(v,n,g,r,24,8),r>100&&(v.save(),v.fillStyle="black",v.strokeStyle="white",v.lineWidth=6,v.lineJoin="miter",v.miterLimit=2,v.strokeText("Zoom in",s,g+12),v.fillText("Zoom in",s,g+12),v.restore())}),v.restore(),g=H/2-6,v.strokeStyle="rgba(0, 0, 0, 0.7)",v.fillStyle="rgba(214, 39, 40, 0.6)";for(var b=u.length,_=b-6&&C=Math.pow(2,r)+Math.pow(2,r)*o}}function i(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];(0,p.assertRequired)(e,["database","table","columns","query","regionField","start","end","blockLimit"]);var n=e.database,r=e.table,i=e.columns,c=e.query,f=e.regionField,h=e.start,d=e.end,m=e.blockLimit;if(d= start");var v=JSON.stringify({database:n,table:r,columns:i,query:y["default"].WhereClause.encode(c),regionField:f,blockLimit:m}),g=o(e),b=g.blockLevel,x=g.blockIndex,_=g.needNext,w=(Math.pow(2,b),[a(e,b,x,t).then(s(e,b,x,t)),a(e,b,x+1,t).then(s(e,b,x+1,t))]);_||(w=[w[0]]);var T=E[v];if(!T||T[b]&&T[b][x]&&T[b][x+1])return Promise.all(w).then(u);for(var C=~~(x/2),k=~~(x+.5),S=b+1;S=",h),y["default"].WhereClause.CompareFixed(l,"<",h+p)]),g={database:o,table:i,columns:a,query:y["default"].WhereClause.encode(m),transpose:!1,stop:u+1};return v["default"].get("propertyRegionCache"+JSON.stringify(g),function(e){return d["default"].pageQuery(f({cancellation:e},g)).then(function(e){return e[(0,x["default"])(e)[0]].length<=u?f({_blockStart:h,_blockSize:p},e):{_blockStart:h,_blockSize:p,_tooBig:!0}})},r).then(function(e){return E[c]||(E[c]=[]),E[c][t]||(E[c][t]=[]),E[c][t][n]=!0,e})}function s(e,t,n,r){return function(o){if(!o._tooBig)return o;var i=function(){for(var o=3,i=t-o,s=[],l=Math.pow(2,o),u=n*l;u<(n+1)*l;++u)s.push(u);return{v:Promise.all((0,w["default"])(s,function(t){return a(e,i,t,r)}))}}();return"object"===("undefined"==typeof i?"undefined":c(i))?i.v:void 0}}function l(e,t,n,r){return function(o){return(0,C["default"])(o,function(e){return e._tooBig})?Promise.all([a(e,t,n,r).then(s(e,t,n,r)),a(e,t,n+1,r).then(s(e,t,n+1,r))]).then(u):o}}function u(e){var t=[];return e.forEach(function(e){Array.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)}),t}Object.defineProperty(t,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=Object.assign||function(e){for(var t=1;t0&&(e["per_"+t.id]={name:"Per "+t.capNameSingle,icon:t.icon,items:(0,m["default"])(t.tableBasedSummaryValuesById,function(e,n){e[n.id]={name:n.name,description:"Description needs to be implemented",icon:"line-chart",payload:{channel:"PerRowNumericalChannel",props:{name:n.name,table:t.id,channel:n.id}}}})})}),u["default"].fromJS(e)},icon:function(){return"bitmap:genomebrowser.png"},title:function(){return this.props.title||"Genome Browser"},handleChannelAdd:function(e){this.getFlux().actions.session.modalClose(),this.props.componentUpdate(function(t){return t.mergeIn(["channels"],e.reduce(function(e,t){return e.set((0,b["default"])(10),t.get("payload"))},u["default"].Map()))})},render:function(){var e=this,t=this.getFlux().actions,n=this.props,r=n.sidebar,a=n.componentUpdate,l=o(n,["sidebar","componentUpdate"]),u=s["default"].createElement("div",{className:"sidebar"},s["default"].createElement(S["default"],{icon:this.icon(),description:"A browser for exploring the reference genome and per-sample data including coverage and mapping qualities."}),s["default"].createElement(L["default"],{label:"Add Channels",primary:!0,onClick:function(){return t.session.modalOpen("containers/ItemPicker.js",{title:"Pick channels to be added",itemName:"channel",itemVerb:"add",groups:e.channelGroups(),onPick:e.handleChannelAdd})}}));return s["default"].createElement(E["default"],{styles:{sidebar:{paddingRight:(0,R["default"])()+"px"}},docked:r,sidebar:u},s["default"].createElement("div",{className:"vertical stack"},s["default"].createElement("div",{className:"top-bar"},s["default"].createElement(P["default"],{className:"pointer icon",name:r?"arrows-h":"bars",onClick:function(){return a({sidebar:!r})},title:r?"Expand":"Sidebar"})),s["default"].createElement(O["default"],i({componentUpdate:a,sideWidth:150},l))))}});e.exports=F},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(586),u=r(l),c=n(756),f=r(c),p=n(652),h=r(p),d=n(1203),m=r(d),v=n(975),g=r(v),y=n(967),b=r(y),x=n(936),_=n(1176),w=r(_),T=n(744),C=r(T),E=i["default"].createClass({displayName:"GroupedItemPicker",mixins:[s["default"]],propTypes:{groups:f["default"].mapOf(f["default"].map),initialPick:f["default"].listOf(i["default"].PropTypes.string),onPick:i["default"].PropTypes.func,title:i["default"].PropTypes.string},getDefaultProps:function(){return{groups:u["default"].Map(),initialPick:u["default"].List(),title:"Pick items"}},getInitialState:function(){return{picked:this.props.initialPick.toSet(),search:""}},componentWillMount:function(){},icon:function(){return"check-square-o"},title:function(){return this.props.title},handleEnter:function(){this.handlePick()},handleAdd:function(e){this.state.picked.has(e)?this.setState({picked:this.state.picked["delete"](e)}):this.setState({picked:this.state.picked.add(e)})},handleAddAll:function(e){var t=this.props.groups.getIn([e,"properties"]).map(function(e){return e.get("id")});this.setState({picked:this.state.picked.union(t)})},handleRemove:function(e){this.setState({picked:this.state.picked["delete"](e)})},handleRemoveAll:function(e){var t=this.props.groups.getIn([e,"properties"]).map(function(e){return e.get("id")});this.setState({picked:this.state.picked.subtract(t)})},handleSearchChange:function(e){this.setState({search:e.target.value})},handlePick:function(){var e=this,t=u["default"].List();this.props.groups.forEach(function(n){n.get("properties").forEach(function(n){e.state.picked.has(n.get("id"))&&(t=t.push(n.get("id")))})}),this.props.onPick(t)},render:function(){var e=this,t=this.state,n=t.picked,r=t.search,o=this.props.groups,a=o.map(function(e){return e.get("properties").size}).reduce(function(e,t){return e+t},0);return i["default"].createElement("div",{className:"large-modal item-picker"},i["default"].createElement("div",{className:"horizontal stack"},i["default"].createElement("div",{className:"grow scroll-within"},i["default"].createElement("div",{className:"header"},a," Column",1!=a?"s":null," Available"),i["default"].createElement("div",{className:"search"},i["default"].createElement(g["default"],{floatingLabelText:"Search",value:r,onChange:this.handleSearchChange})),i["default"].createElement(x.List,null,(0,w["default"])(o.toJS(),function(t){var o=t.id,a=t.name,s=t.properties,l=s.map(function(t){var o=t.name,a=t.description,s=t.id,l=t.icon;return(o+"#"+(a||"")).toLowerCase().indexOf(r.toLowerCase())>-1?i["default"].createElement(x.ListItem,{className:(0,h["default"])({picked:!n.includes(s)}),key:s,primaryText:i["default"].createElement("div",null,i["default"].createElement(m["default"],{search:r},o)),secondaryText:i["default"].createElement("div",null,i["default"].createElement(m["default"],{search:r},a)),leftIcon:i["default"].createElement("div",null,i["default"].createElement(C["default"],{fixedWidth:!0,name:l})),onClick:function(){return e.handleAdd(s)}}):null});return l.filter(function(e){return e}).length>0?i["default"].createElement(x.ListItem,{primaryText:a,key:o,initiallyOpen:!0,onClick:function(){return e.handleAddAll(o)},nestedItems:l}):null}))),i["default"].createElement("div",{className:"grow stack vertical"},i["default"].createElement("div",{className:"grow scroll-within"},i["default"].createElement("div",{className:"header"},n.size?n.size:"No"," Column",1!=n.size?"s":null," Selected"),i["default"].createElement(x.List,null,(0,w["default"])(o.toJS(),function(t){var r=t.id,o=t.name,a=t.properties;return n.intersect(a.map(function(e){return e.id})).size>0?i["default"].createElement(x.ListItem,{primaryText:o,key:r,initiallyOpen:!0,onClick:function(){return e.handleRemoveAll(r)},nestedItems:a.map(function(t){var r=t.name,o=t.description,a=t.id,s=t.icon;return n.includes(a)?i["default"].createElement(x.ListItem,{key:a,secondaryText:o,primaryText:r,leftIcon:i["default"].createElement("div",null,i["default"].createElement(C["default"],{fixedWidth:!0,name:s})),onClick:function(){return e.handleRemove(a)}}):null})}):null}))),i["default"].createElement("div",{className:"centering-container"},i["default"].createElement(b["default"],{label:"Use",primary:!0,onClick:this.handlePick})))))}});e.exports=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(596),s=r(a),l=n(756),u=r(l),c=n(586),f=r(c),p=n(1203),h=r(p),d=n(1306),m=r(d),v=n(975),g=r(v),y=n(967),b=r(y),x=n(960),_=r(x),w=n(936),T=n(744),C=r(T),E=i["default"].createClass({displayName:"ItemPicker",mixins:[s["default"]],propTypes:{itemName:i["default"].PropTypes.string,itemVerb:i["default"].PropTypes.string,initialSelection:u["default"].listOf(u["default"].contains({groupId:i["default"].PropTypes.string.isRequired,itemId:i["default"].PropTypes.string.isRequired,payload:i["default"].PropTypes.any})),groups:u["default"].mapOf(u["default"].contains({name:i["default"].PropTypes.string.isRequired,icon:i["default"].PropTypes.string,items:u["default"].mapOf(u["default"].contains({name:i["default"].PropTypes.string.isRequired,icon:i["default"].PropTypes.string,description:i["default"].PropTypes.string,payload:i["default"].PropTypes.any}))})),onPick:i["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{title:"Pick items",icon:"check-square-o",itemName:"Item",itemVerb:"Select",initialSelection:f["default"].List()}},getInitialState:function(){return{picked:this.props.initialSelection,search:""}},componentWillMount:function(){},icon:function(){return this.props.icon},title:function(){return this.props.title},handleEnter:function(){this.handlePick()},handleAdd:function(e){var t=e.groupId,n=e.itemId,r=e.payload;this.setState({picked:this.state.picked.push(f["default"].Map({groupId:t,itemId:n,payload:r}))})},handleAddAll:function(e){var t=this.props.groups.getIn([e,"items"]).map(function(t,n){return f["default"].Map({groupId:e,itemId:n,payload:t.get("payload")})}).toList();this.setState({picked:this.state.picked.concat(t)})},handleRemove:function(e){this.setState({picked:this.state.picked["delete"](e)})},handleRemoveAll:function(e){this.setState({picked:f["default"].List()})},handlePick:function(){this.props.onPick(this.state.picked)},handleSearchChange:function(e){this.setState({search:e.target.value})},render:function(){var e=this,t=this.state,n=t.picked,r=t.search,o=this.props,a=o.itemName,s=o.itemVerb,l=o.groups,u=l.map(function(e){return e.get("items").size}).reduce(function(e,t){return e+t},0);return i["default"].createElement("div",{className:"large-modal item-picker"},i["default"].createElement("div",{className:"horizontal stack"},i["default"].createElement("div",{className:"grow scroll-within"},i["default"].createElement("div",{className:"header"},u," ",i["default"].createElement(m["default"],{text:a,ord:u})," available"),i["default"].createElement("div",{className:"search"},i["default"].createElement(g["default"],{floatingLabelText:"Search",value:r,onChange:this.handleSearchChange})),i["default"].createElement(w.List,null,l.map(function(t,n){var o=t.toObject(),s=o.name,l=o.icon,u=o.items,c=u.map(function(t,o){var a=t.toObject(),s=a.name,l=a.description,u=a.icon,c=a.payload;return(s+"#"+(l||"")).toLowerCase().indexOf(r.toLowerCase())>-1?i["default"].createElement(w.ListItem,{key:o,primaryText:i["default"].createElement("div",null,i["default"].createElement(h["default"],{search:r},s)),secondaryText:i["default"].createElement("div",null,i["default"].createElement(h["default"],{search:r},l)),leftIcon:i["default"].createElement("div",null,i["default"].createElement(C["default"],{fixedWidth:!0,name:u})),onClick:function(){return e.handleAdd({groupId:n,itemId:o,payload:c})}}):null}),f=c.filter(function(e){return e}).size;return f>0?i["default"].createElement(w.ListItem,{primaryText:i["default"].createElement("div",null," ",s," (",f," ",i["default"].createElement(m["default"],{text:a,ord:f}),")"),key:n+!!r,initiallyOpen:!!r,leftIcon:i["default"].createElement(C["default"],{ +fixedWidth:!0,name:l}),primaryTogglesNestedList:!0,nestedItems:c.toArray()}):null}).toArray())),i["default"].createElement("div",{className:"grow stack vertical"},i["default"].createElement("div",{className:"grow scroll-within"},i["default"].createElement("div",{className:"header"},n.size?n.size:"No"," ",i["default"].createElement(m["default"],{text:a,ord:n.size})," to ",s),i["default"].createElement(w.List,null,n.map(function(t,n){var r=t.toObject(),o=r.groupId,a=r.itemId,s=l.getIn([o,"name"]),u=l.getIn([o,"items",a]).toObject(),c=u.description,f=u.name,p=u.icon;return i["default"].createElement(w.ListItem,{key:n,secondaryText:c,primaryText:s+" - "+f,leftIcon:i["default"].createElement("div",null,i["default"].createElement(C["default"],{fixedWidth:!0,name:p})),onClick:function(){return e.handleRemove(n)}})}).toArray())),i["default"].createElement("div",{className:"centering-container"},i["default"].createElement("div",{style:{paddingRight:"10px"}},i["default"].createElement(_["default"],{label:"Clear",onClick:this.handleRemoveAll})),i["default"].createElement(b["default"],{label:i["default"].createElement("span",null,s+" "+n.size," ",i["default"].createElement(m["default"],{text:a,ord:n.size})),primary:!0,onClick:this.handlePick})))))}});e.exports=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),i=r(o),a=function(e){var t=e.text,n=e.ord;return i["default"].createElement("span",null,t,1!=n?"s":null)};a.propTypes={text:i["default"].PropTypes.string.isRequired,ord:i["default"].PropTypes.number.isRequired},t["default"]=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0))return l["default"].createElement("div",null,l["default"].createElement(U["default"],{status:"custom"},"No rows"));var m=function(){var t=[];return f.map(function(o){var s=o[p.primKey],u=a!==s?"picked":"",f=i?(0,b["default"])(c["default"].renderToStaticMarkup(l["default"].createElement(j["default"],{config:e.config,table:r,primKey:s,data:o},d))).toLowerCase():"";(i&&f.indexOf(i)!==-1||!i)&&t.push(l["default"].createElement(B.ListItem,{className:u,key:s,primaryText:l["default"].createElement(h["default"],{search:i},l["default"].createElement(j["default"],{table:r,primKey:s,data:o},d)),onClick:function(){return e.handleSelect(s)},leftIcon:l["default"].createElement("div",null,l["default"].createElement(H["default"],{fixedWidth:!0,name:n}))}))}),{v:l["default"].createElement("div",null,l["default"].createElement(B.List,null,t),l["default"].createElement(U["default"],{status:u}))}}();return"object"===("undefined"==typeof m?"undefined":o(m))?m.v:void 0}});e.exports=q},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(955),s=r(a),l=n(956),u=r(l),c=n(1176),f=r(c),p=n(902),h=r(p),d=n(596),m=r(d),v=n(595),g=r(v),y=n(594),b=r(y),x=n(1310),_=r(x),w=n(1293),T=r(w),C=n(1312),E=r(C),k=n(1314),S=n(958),A=r(S),P=n(744),M=r(P),O=n(899),D=r(O),L=n(1136),j=r(L),R=n(1080),F=r(R),I=n(1422),N=r(I);n(1423);var B=i["default"].createClass({displayName:"MapWithActions",mixins:[m["default"],g["default"],b["default"]],propTypes:{componentUpdate:i["default"].PropTypes.func.isRequired,title:i["default"].PropTypes.string,sidebar:i["default"].PropTypes.bool,table:i["default"].PropTypes.string,query:i["default"].PropTypes.string,column:i["default"].PropTypes.string},getDefaultProps:function(){return{query:D["default"].nullQuery,componentUpdate:null,sidebar:!0}},icon:function(){return"globe"},title:function(){return this.props.title||"Map"},handleQueryPick:function(e){this.getFlux().actions.session.modalClose(),this.props.componentUpdate({query:e})},handleChangeTable:function(e){this.props.componentUpdate({table:e})},render:function(){var e=this,t=this.props,n=t.sidebar,r=t.table,o=t.query,a=t.column,l=t.componentUpdate,c=this.getFlux().actions,p=(0,f["default"])((0,h["default"])(this.config.visibleTables,function(e){return e.hasGeoCoord}),function(e){return{value:e.id,leftIcon:i["default"].createElement(M["default"],{fixedWidth:!0,name:e.icon}),label:e.capNamePlural}}),d=[],m=0;if(r){var v=this.config.tablesById[r].propertyGroups;(0,f["default"])(v,function(e){d.length&&d.push(i["default"].createElement(E["default"],{key:m++}));var t=e.id,n=e.name;d.push(i["default"].createElement(T["default"],{disabled:!0,value:t,key:t,primaryText:n})),(0,f["default"])(e.properties,function(e){var t=e.id,n=e.name;d.push(i["default"].createElement(T["default"],{value:t,key:t,primaryText:n}))})})}var g="Change Filter",y=D["default"].WhereClause.decode(o),b=null;!o||y.isTrivial?g="Add Filter":r&&(b=i["default"].createElement(k.FlatButton,{label:"Clear Filter",primary:!0,onClick:function(){return l({query:D["default"].nullQuery})}}));var x=i["default"].createElement("div",{className:"sidebar map-sidebar"},i["default"].createElement(A["default"],{icon:this.icon(),description:"Something here"}),i["default"].createElement("div",{className:"map-controls vertical stack"},i["default"].createElement(N["default"],{value:r,autoWidth:!0,floatingLabelText:"Table:",onChange:this.handleChangeTable,options:p}),r?i["default"].createElement(k.FlatButton,{label:g,primary:!0,onClick:function(){return c.session.modalOpen("containers/QueryPicker",{table:r,initialQuery:o,onPick:e.handleQueryPick})}}):null,b,r?i["default"].createElement(_["default"],{value:this.config.tablesById[r].propertiesById[a]?a:null,autoWidth:!0,floatingLabelText:"Column",onChange:function(e,t,n){return l({column:n})}},d):null));return i["default"].createElement(u["default"],{docked:n,styles:{sidebar:{paddingRight:(0,s["default"])()+"px"}},sidebar:x},i["default"].createElement("div",{className:"vertical stack"},i["default"].createElement("div",{className:"top-bar"},i["default"].createElement(M["default"],{className:"pointer icon",name:n?"arrows-h":"bars",title:n?"Expand":"Sidebar",onClick:function(){return l({sidebar:!n})}}),i["default"].createElement("span",{className:"text"},r?"Map of "+this.config.tablesById[r].capNamePlural:"Map"),r?i["default"].createElement("span",{className:"block text"},i["default"].createElement(F["default"],{prepend:"Filter:",table:r,query:o})):null),r?i["default"].createElement(j["default"],this.props):"Pick a table"))}});e.exports=B},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(1311),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{label:{paddingLeft:0,top:e.floatingLabelText?6:-4},icon:{right:0,top:e.floatingLabelText?22:14},hideDropDownUnderline:{borderTop:"none"},dropDownMenu:{display:"block"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme,r=n.appBar,o=n.button.iconButtonSize,i=n.zIndex,a=36,s={root:{position:"relative",zIndex:i.appBar,width:"100%",display:"flex",backgroundColor:r.color,paddingLeft:r.padding,paddingRight:r.padding},title:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:0,paddingTop:0,letterSpacing:0,fontSize:24,fontWeight:r.titleFontWeight,color:r.textColor,height:r.height,lineHeight:r.height+"px"},mainElement:{boxFlex:1,flex:"1"},iconButtonStyle:{marginTop:(r.height-o)/2,marginRight:8,marginLeft:-16},iconButtonIconStyle:{fill:r.textColor,color:r.textColor},flatButton:{color:r.textColor,marginTop:(o-a)/2+1}};return s}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=n.anchorEl,o=e.fullWidth,i={root:{display:"inline-block",position:"relative",width:o?"100%":256},menu:{width:"100%"},list:{display:"block",width:o?"100%":256},innerDiv:{overflow:"hidden"}};return r&&o&&(i.popover={width:r.clientWidth}),i}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&F.length===y)}),this.requestsList=F;var I=M&&F.length>0&&m["default"].createElement(T["default"],u({},x,{ref:"menu",autoWidth:!1,disableAutoFocus:L,onEscKeyDown:this.handleEscKeyDown,initiallyKeyboardFocused:!0,onItemTouchTap:this.handleItemTouchTap,onMouseDown:this.handleMouseDown,style:(0,h["default"])(R.menu,b),listStyle:(0,h["default"])(R.list,w)}),F.map(function(e){return e.value}));return m["default"].createElement("div",{style:j((0,h["default"])(R.root,v))},m["default"].createElement(_["default"],u({},k,{ref:"searchTextField",autoComplete:"off",value:D,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,floatingLabelText:f,hintText:g,fullWidth:d,multiLine:!1,errorStyle:s})),m["default"].createElement(P["default"],{style:R.popover,canAutoPosition:!1,anchorOrigin:n,targetOrigin:C,open:M,anchorEl:O,useLayerForClickAway:!1,onRequestClose:this.handleRequestClose,animated:r},I))}}]),t}(d.Component);R.propTypes={anchorOrigin:O["default"].origin,animated:d.PropTypes.bool,dataSource:d.PropTypes.array.isRequired,dataSourceConfig:d.PropTypes.object,disableFocusRipple:d.PropTypes.bool,errorStyle:d.PropTypes.object,errorText:d.PropTypes.node,filter:d.PropTypes.func,floatingLabelText:d.PropTypes.node,fullWidth:d.PropTypes.bool,hintText:d.PropTypes.node,listStyle:d.PropTypes.object,maxSearchResults:d.PropTypes.number,menuCloseDelay:d.PropTypes.number,menuProps:d.PropTypes.object,menuStyle:d.PropTypes.object,onBlur:d.PropTypes.func,onFocus:d.PropTypes.func,onKeyDown:d.PropTypes.func,onNewRequest:d.PropTypes.func,onUpdateInput:d.PropTypes.func,open:d.PropTypes.bool,openOnFocus:d.PropTypes.bool,searchText:d.PropTypes.string,style:d.PropTypes.object,targetOrigin:O["default"].origin,triggerUpdateOnFocus:(0,j["default"])(d.PropTypes.bool,"Instead, use openOnFocus. It will be removed with v0.16.0.")},R.defaultProps={anchorOrigin:{vertical:"bottom",horizontal:"left"},animated:!0,dataSourceConfig:{text:"text",value:"value"},disableFocusRipple:!0,filter:function(e,t){return""!==e&&t.indexOf(e)!==-1},fullWidth:!1,open:!1,openOnFocus:!1,onUpdateInput:function(){},onNewRequest:function(){},searchText:"",menuCloseDelay:300,targetOrigin:{vertical:"top",horizontal:"left"}},R.contextTypes={muiTheme:d.PropTypes.object.isRequired},R.levenshteinDistance=function(e,t){for(var n=[],r=void 0,o=void 0,i=0;i<=t.length;i++)for(var a=0;a<=e.length;a++)o=i&&a?e.charAt(a-1)===t.charAt(i-1)?r:Math.min(n[a],n[a-1],r)+1:i+a,r=n[a],n[a]=o;return n.pop()},R.noFilter=function(){return!0},R.defaultFilter=R.caseSensitiveFilter=function(e,t){return""!==e&&t.indexOf(e)!==-1},R.caseInsensitiveFilter=function(e,t){return t.toLowerCase().indexOf(e.toLowerCase())!==-1},R.levenshteinDistanceFilter=function(e){if(void 0===e)return R.levenshteinDistance;if("number"!=typeof e)throw"Error: AutoComplete.levenshteinDistanceFilter is a filter generator, not a filter!";return function(t,n){return R.levenshteinDistance(t,n)=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.backgroundColor,r=e.color,o=e.size,i=t.muiTheme.avatar,a={root:{color:r||i.color,backgroundColor:n||i.backgroundColor,userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:o/2,borderRadius:"50%",height:o,width:o},icon:{color:r||i.color,width:.6*o,height:.6*o,fontSize:.6*o,margin:.2*o}};return a}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.primary,r=e.secondary,o=t.muiTheme.badge,i=void 0,a=void 0;n?(i=o.primaryColor,a=o.primaryTextColor):r?(i=o.secondaryColor,a=o.secondaryTextColor):(i=o.color,a=o.textColor);var s=12,l=Math.floor(2*s);return{root:{position:"relative",display:"inline-block",padding:l+"px "+l+"px "+s+"px "+s+"px"},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",top:0,right:0,fontWeight:o.fontWeight,fontSize:s,width:l,height:l,borderRadius:"50%",backgroundColor:i,color:a}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.card;return{root:{padding:16,fontWeight:n.fontWeight,boxSizing:"border-box",position:"relative",whiteSpace:"nowrap"},text:{display:"inline-block",verticalAlign:"top",whiteSpace:"normal",paddingRight:"90px"},avatar:{marginRight:16},title:{color:e.titleColor||n.titleColor,display:"block",fontSize:15},subtitle:{color:e.subtitleColor||n.subtitleColor,display:"block",fontSize:14}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.card;return{root:{padding:16,position:"relative"},title:{fontSize:24,color:e.titleColor||n.titleColor,display:"block",lineHeight:"36px"},subtitle:{fontSize:14,color:e.subtitleColor||n.subtitleColor,display:"block"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.cardMedia;return{root:{position:"relative"},overlayContainer:{position:"absolute",top:0,bottom:0,right:0,left:0},overlay:{height:"100%",position:"relative"},overlayContent:{position:"absolute",bottom:0,right:0,left:0,paddingTop:8,background:n.overlayContentBackground},media:{},mediaChild:{verticalAlign:"top",maxWidth:"100%",minWidth:"100%",width:"100%"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=t.muiTheme.chip,o=e.backgroundColor||r.backgroundColor,i=(0,g.emphasize)(o,.08),a=(0,g.emphasize)(o,.12);return{avatar:{marginRight:-4},deleteIcon:{color:n.deleteHovered?(0,g.fade)(r.deleteIconColor,.4):r.deleteIconColor,cursor:"pointer",margin:"4px 4px 0px -8px"},label:{color:e.labelColor||r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,lineHeight:"32px",paddingLeft:12,paddingRight:12,userSelect:"none",whiteSpace:"nowrap"},root:{backgroundColor:n.clicked?a:n.focused||n.hovered?i:o,borderRadius:16,boxShadow:n.clicked?r.shadow:null,cursor:e.onTouchTap?"pointer":"default",display:"flex",whiteSpace:"nowrap",width:"fit-content"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1&&(i=d["default"].Children.toArray(i),d["default"].isValidElement(i[0])&&"Avatar"===i[0].type.muiName&&(m=i.shift(),m=d["default"].cloneElement(m,{style:(0,p["default"])(n.avatar,m.props.style),size:32}))),d["default"].createElement(b["default"],u({},f,e,{className:s,containerElement:"div",disableTouchRipple:!0,disableFocusRipple:!0,style:a}),m,d["default"].createElement("span",{style:c},i),v)}}]),t}(h.Component);w.propTypes={backgroundColor:h.PropTypes.string,children:h.PropTypes.node,className:h.PropTypes.node,labelColor:h.PropTypes.string,labelStyle:h.PropTypes.object,onBlur:h.PropTypes.func,onFocus:h.PropTypes.func,onKeyDown:h.PropTypes.func,onKeyboardFocus:h.PropTypes.func,onMouseDown:h.PropTypes.func,onMouseEnter:h.PropTypes.func,onMouseLeave:h.PropTypes.func,onMouseUp:h.PropTypes.func,onRequestDelete:h.PropTypes.func,onTouchEnd:h.PropTypes.func,onTouchStart:h.PropTypes.func,onTouchTap:h.PropTypes.func,style:h.PropTypes.object},w.defaultProps={onBlur:function(){},onFocus:function(){},onKeyDown:function(){},onKeyboardFocus:function(){},onMouseDown:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseUp:function(){},onTouchEnd:function(){},onTouchStart:function(){}},w.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),i=r(o),a=n(942),s=r(a),l=n(949),u=r(l),c=function(e){return i["default"].createElement(u["default"],e,i["default"].createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}))};c=(0,s["default"])(c),c.displayName="NavigationCancel",c.muiName="SvgIcon",t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(1339),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=Math.min(Math.max(t,e),n),o=n-t,i=Math.round(r/o*1e4)/1e4;return 100*i}function u(e,t){var n=e.max,r=e.min,o=e.size,i=e.value,a=t.muiTheme.baseTheme.palette,s=1.4*o,u=50,c=Math.round((50*s-50)/2);c<0&&(c=0);var f={root:{position:"relative",margin:c,display:"inline-block",width:u,height:u},wrapper:{width:u,height:u,display:"inline-block",transition:b["default"].create("transform","20s",null,"linear"),transitionTimingFunction:"linear"},svg:{height:u,position:"relative",transform:"scale("+s+")",width:u},path:{strokeDasharray:"89, 200",strokeDashoffset:0,stroke:e.color||a.primary1Color,strokeLinecap:"round",transition:b["default"].create("all","1.5s",null,"ease-in-out")}};if("determinate"===e.mode){var p=l(i,r,n);f.path.transition=b["default"].create("all","0.3s",null,"linear"),f.path.strokeDasharray=Math.round(1.25*p)+", 200"}return f}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0&&e.getDay()===t&&(s(i),i=[]),i.push(e),n.indexOf(e)===n.length-1&&s(i)}),o}function d(e,t,n,r){var o=new e(t,{weekday:"narrow"}),a=p();return o.format(i(a,n+r))}function m(e){return new Date(e.toDateString()+" 12:00:00 +0000").toISOString().substring(0,10)}function v(e,t){return e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function g(e,t){var n=u(e),r=u(t);return n.getTime()r.getTime()}function b(e,t,n){return!g(e,t)&&!y(e,n)}function x(e,t){var n=void 0;return n=12*(e.getFullYear()-t.getFullYear()),n+=e.getMonth(),n-=t.getMonth()}function _(e,t){return~~(x(e,t)/12)}Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeFormat=o,t.addDays=i,t.addMonths=a,t.addYears=s,t.cloneDate=l,t.cloneAsDate=u,t.getDaysInMonth=c,t.getFirstDayOfMonth=f,t.getFirstDayOfWeek=p,t.getWeekArray=h,t.localizedWeekday=d,t.formatIso=m,t.isEqualDate=v,t.isBeforeDate=g,t.isAfterDate=y,t.isBetweenDates=b,t.monthDiff=x,t.yearDiff=_;var w=n(310),T=(r(w),["S","M","T","W","T","F","S"]),C=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],k=["January","February","March","April","May","June","July","August","September","October","November","December"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0?"left":"right",displayDate:(0,P.addMonths)(r.state.displayDate,e)})},r.handleTouchTapYear=function(e,t){var n=(0,P.cloneDate)(r.state.selectedDate);n.setFullYear(t),r.setSelectedDate(n,e)},r.handleTouchTapDateDisplayMonthDay=function(){r.setState({displayMonthDay:!0})},r.handleTouchTapDateDisplayYear=function(){r.setState({displayMonthDay:!1})},r.handleWindowKeyDown=function(e){if(r.props.open)switch((0,d["default"])(e)){case"up":e.altKey&&e.shiftKey?r.addSelectedYears(-1):e.shiftKey?r.addSelectedMonths(-1):r.addSelectedDays(-7);break;case"down":e.altKey&&e.shiftKey?r.addSelectedYears(1):e.shiftKey?r.addSelectedMonths(1):r.addSelectedDays(7);break;case"right":e.altKey&&e.shiftKey?r.addSelectedYears(1):e.shiftKey?r.addSelectedMonths(1):r.addSelectedDays(1);break;case"left":e.altKey&&e.shiftKey?r.addSelectedYears(-1):e.shiftKey?r.addSelectedMonths(-1):r.addSelectedDays(-1)}},a=n,i(r,a)}return a(t,e),l(t,[{key:"componentWillMount",value:function(){this.setState({displayDate:(0,P.getFirstDayOfMonth)(this.props.initialDate),selectedDate:this.props.initialDate})}},{key:"componentWillReceiveProps",value:function(e){if(e.initialDate!==this.props.initialDate){var t=e.initialDate||new Date;this.setState({displayDate:(0,P.getFirstDayOfMonth)(t),selectedDate:t})}}},{key:"getSelectedDate",value:function(){return this.state.selectedDate}},{key:"isSelectedDateDisabled",value:function(){return!!this.state.displayMonthDay&&this.refs.calendar.isSelectedDateDisabled()}},{key:"addSelectedDays",value:function(e){this.setSelectedDate((0,P.addDays)(this.state.selectedDate,e))}},{key:"addSelectedMonths",value:function(e){this.setSelectedDate((0,P.addMonths)(this.state.selectedDate,e))}},{key:"addSelectedYears",value:function(e){this.setSelectedDate((0,P.addYears)(this.state.selectedDate,e))}},{key:"setDisplayDate",value:function(e,t){var n=(0,P.getFirstDayOfMonth)(e),r=n>this.state.displayDate?"left":"right";n!==this.state.displayDate&&this.setState({displayDate:n,transitionDirection:r,selectedDate:t||this.state.selectedDate})}},{key:"setSelectedDate",value:function(e){var t=e;(0,P.isBeforeDate)(e,this.props.minDate)?t=this.props.minDate:(0,P.isAfterDate)(e,this.props.maxDate)&&(t=this.props.maxDate);var n=(0,P.getFirstDayOfMonth)(t);n!==this.state.displayDate?this.setDisplayDate(n,t):this.setState({selectedDate:t})}},{key:"getToolbarInteractions",value:function(){return{prevMonth:(0,P.monthDiff)(this.state.displayDate,this.props.minDate)>0,nextMonth:(0,P.monthDiff)(this.state.displayDate,this.props.maxDate)<0}}},{key:"yearSelector",value:function(){if(!this.props.disableYearSelection)return c["default"].createElement(w["default"],{key:"years",displayDate:this.state.displayDate,onTouchTapYear:this.handleTouchTapYear,selectedDate:this.state.selectedDate,minDate:this.props.minDate,maxDate:this.props.maxDate})}},{key:"render",value:function(){var e=this.context.muiTheme.prepareStyles,t=(0,P.getWeekArray)(this.state.displayDate,this.props.firstDayOfWeek).length,n=this.getToolbarInteractions(),r="landscape"===this.props.mode,o=this.context.muiTheme.datePicker.calendarTextColor,i={root:{color:o,userSelect:"none",width:r?479:310},calendar:{display:"flex",flexDirection:"column"},calendarContainer:{display:"flex",alignContent:"space-between",justifyContent:"space-between",flexDirection:"column",fontSize:12,fontWeight:400,padding:"0px 8px",transition:v["default"].easeOut()},yearContainer:{display:"flex",justifyContent:"space-between",flexDirection:"column",height:272,marginTop:10,overflow:"hidden",width:310},weekTitle:{display:"flex",flexDirection:"row",justifyContent:"space-between",fontWeight:"500",height:20,lineHeight:"15px",opacity:"0.5",textAlign:"center"},weekTitleDay:{width:42},transitionSlide:{height:214}},a=e(i.weekTitleDay),s=this.props,l=s.cancelLabel,u=s.DateTimeFormat,f=s.firstDayOfWeek,h=s.locale,d=s.okLabel,m=s.onTouchTapCancel,g=s.onTouchTapOk,b=s.wordings;return c["default"].createElement("div",{style:e(i.root)},c["default"].createElement(p["default"],{target:"window",onKeyDown:this.handleWindowKeyDown}),c["default"].createElement(k["default"],{DateTimeFormat:u,disableYearSelection:this.props.disableYearSelection,onTouchTapMonthDay:this.handleTouchTapDateDisplayMonthDay,onTouchTapYear:this.handleTouchTapDateDisplayYear,locale:h,monthDaySelected:this.state.displayMonthDay,mode:this.props.mode,selectedDate:this.state.selectedDate,weekCount:t}),c["default"].createElement("div",{style:e(i.calendar)},this.state.displayMonthDay&&c["default"].createElement("div",{style:e(i.calendarContainer)},c["default"].createElement(C["default"],{DateTimeFormat:u,locale:h,displayDate:this.state.displayDate,onMonthChange:this.handleMonthChange,prevMonth:n.prevMonth,nextMonth:n.nextMonth}),c["default"].createElement("div",{style:e(i.weekTitle)},M.map(function(e,t){return c["default"].createElement("span",{key:t,style:a},(0,P.localizedWeekday)(u,h,t,f))})),c["default"].createElement(A["default"],{direction:this.state.transitionDirection,style:i.transitionSlide},c["default"].createElement(x["default"],{displayDate:this.state.displayDate,firstDayOfWeek:this.props.firstDayOfWeek,key:this.state.displayDate.toDateString(),minDate:this.props.minDate,maxDate:this.props.maxDate,onTouchTapDay:this.handleTouchTapDay,ref:"calendar",selectedDate:this.state.selectedDate,shouldDisableDate:this.props.shouldDisableDate}))),!this.state.displayMonthDay&&c["default"].createElement("div",{style:e(i.yearContainer)},this.yearSelector()),d&&c["default"].createElement(y["default"],{autoOk:this.props.autoOk,cancelLabel:l,okLabel:d,onTouchTapCancel:m,onTouchTapOk:g,wordings:b})))}}]),t}(u.Component);O.propTypes={DateTimeFormat:u.PropTypes.func.isRequired,autoOk:u.PropTypes.bool, +cancelLabel:u.PropTypes.node,disableYearSelection:u.PropTypes.bool,firstDayOfWeek:u.PropTypes.number,initialDate:u.PropTypes.object,locale:u.PropTypes.string.isRequired,maxDate:u.PropTypes.object,minDate:u.PropTypes.object,mode:u.PropTypes.oneOf(["portrait","landscape"]),okLabel:u.PropTypes.node,onTouchTapCancel:u.PropTypes.func,onTouchTapDay:u.PropTypes.func,onTouchTapOk:u.PropTypes.func,open:u.PropTypes.bool,shouldDisableDate:u.PropTypes.func,wordings:u.PropTypes.object},O.defaultProps={DateTimeFormat:P.dateTimeFormat,disableYearSelection:!1,initialDate:new Date,locale:"en-US",minDate:(0,P.addYears)(new Date,-100),maxDate:(0,P.addYears)(new Date,100)},O.contextTypes={muiTheme:u.PropTypes.object.isRequired},t["default"]=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.date,o=e.disabled,i=e.selected,a=n.hover,s=t.muiTheme,l=s.baseTheme,u=s.datePicker,c=l.palette.textColor,f=0,p="scale(0)";return a||i?(c=u.selectTextColor,f=i?1:.6,p="scale(1)"):(0,m.isEqualDate)(r,new Date)&&(c=u.color),{root:{boxSizing:"border-box",fontWeight:"400",opacity:o&&"0.6",padding:"4px 0px",position:"relative",WebkitTapHighlightColor:"rgba(0,0,0,0)",width:42},label:{color:c,fontWeight:"400",position:"relative"},buttonState:{backgroundColor:u.selectColor,borderRadius:"50%",height:34,left:4,opacity:f,position:"absolute",top:0,transform:p,transition:d["default"].easeOut(),width:34}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.selected,o=e.year,i=t.muiTheme,a=i.baseTheme,s=i.datePicker,l=n.hover;return{root:{boxSizing:"border-box",color:o===(new Date).getFullYear()&&s.color,display:"block",fontSize:14,margin:"0 auto",position:"relative",textAlign:"center",lineHeight:"inherit",WebkitTapHighlightColor:"rgba(0,0,0,0)"},label:{alignSelf:"center",color:l||r?s.color:a.palette.textColor,fontSize:r?26:17,fontWeight:l?450:r?500:400,position:"relative",top:-1}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;tthis.props.displayDate?"left":"right";this.setState({transitionDirection:t})}}},{key:"render",value:function(){var e=this.props,t=e.DateTimeFormat,n=e.locale,r=e.displayDate,o=new t(n,{month:"long",year:"numeric"}).format(r),i=this.context.muiTheme.isRtl?u["default"].createElement(h["default"],null):u["default"].createElement(m["default"],null),a=this.context.muiTheme.isRtl?u["default"].createElement(m["default"],null):u["default"].createElement(h["default"],null);return u["default"].createElement("div",{style:y.root},u["default"].createElement(f["default"],{disabled:!this.props.prevMonth,onTouchTap:this.handleTouchTapPrevMonth},a),u["default"].createElement(g["default"],{direction:this.state.transitionDirection,style:y.titleDiv},u["default"].createElement("div",{key:o,style:y.titleText},o)),u["default"].createElement(f["default"],{disabled:!this.props.nextMonth,onTouchTap:this.handleTouchTapNextMonth},i))}}]),t}(l.Component);b.propTypes={DateTimeFormat:l.PropTypes.func.isRequired,displayDate:l.PropTypes.object.isRequired,locale:l.PropTypes.string.isRequired,nextMonth:l.PropTypes.bool,onMonthChange:l.PropTypes.func,prevMonth:l.PropTypes.bool},b.defaultProps={nextMonth:!0,prevMonth:!0},b.contextTypes={muiTheme:l.PropTypes.object.isRequired},t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),i=r(o),a=n(942),s=r(a),l=n(949),u=r(l),c=function(e){return i["default"].createElement(u["default"],e,i["default"].createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}))};c=(0,s["default"])(c),c.displayName="NavigationChevronLeft",c.muiName="SvgIcon",t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),i=r(o),a=n(942),s=r(a),l=n(949),u=r(l),c=function(e){return i["default"].createElement(u["default"],e,i["default"].createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))};c=(0,s["default"])(c),c.displayName="NavigationChevronRight",c.muiName="SvgIcon",t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=t.muiTheme.datePicker,o=n.selectedYear,i="landscape"===e.mode,a={root:{width:i?165:"100%",height:i?330:"auto","float":i?"left":"none",fontWeight:700,display:"inline-block",backgroundColor:r.selectColor,borderTopLeftRadius:2,borderTopRightRadius:i?0:2,borderBottomLeftRadius:i?2:0,color:r.textColor,padding:20,boxSizing:"border-box"},monthDay:{display:"block",fontSize:36,lineHeight:"36px",height:"landscape"===e.mode?"100%":38,opacity:o?.7:1,transition:d["default"].easeOut(),width:"100%",fontWeight:"500"},monthDayTitle:{cursor:o?"pointer":"default",width:"100%",display:"block"},year:{margin:0,fontSize:16,fontWeight:"500",lineHeight:"16px",height:16,opacity:o?1:.7,transition:d["default"].easeOut(),marginBottom:10},yearTitle:{cursor:e.disableYearSelection?"not-allowed":o?"default":"pointer"}};return a}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;tthis.props.selectedDate?"up":"down";this.setState({transitionDirection:t})}void 0!==e.monthDaySelected&&this.setState({selectedYear:!e.monthDaySelected})}},{key:"render",value:function(){var e=this.props,t=e.DateTimeFormat,n=(e.disableYearSelection,e.locale),r=(e.mode,e.monthDaySelected,e.onTouchTapMonthDay,e.onTouchTapYear,e.selectedDate),i=e.style,a=(e.weekCount,o(e,["DateTimeFormat","disableYearSelection","locale","mode","monthDaySelected","onTouchTapMonthDay","onTouchTapYear","selectedDate","style","weekCount"])),s=this.context.muiTheme.prepareStyles,c=l(this.props,this.context,this.state),f=r.getFullYear(),h=new t(n,{month:"short",weekday:"short",day:"2-digit"}).format(r);return p["default"].createElement("div",u({},a,{style:s(c.root,i)}),p["default"].createElement(v["default"],{style:c.year,direction:this.state.transitionDirection},p["default"].createElement("div",{key:f,style:c.yearTitle,onTouchTap:this.handleTouchTapYear},f)),p["default"].createElement(v["default"],{style:c.monthDay,direction:this.state.transitionDirection},p["default"].createElement("div",{key:h,onTouchTap:this.handleTouchTapMonthDay,style:c.monthDayTitle},h)))}}]),t}(f.Component);g.propTypes={DateTimeFormat:f.PropTypes.func.isRequired,disableYearSelection:f.PropTypes.bool,locale:f.PropTypes.string.isRequired,mode:f.PropTypes.oneOf(["portrait","landscape"]),monthDaySelected:f.PropTypes.bool,onTouchTapMonthDay:f.PropTypes.func,onTouchTapYear:f.PropTypes.func,selectedDate:f.PropTypes.object.isRequired,style:f.PropTypes.object,weekCount:f.PropTypes.number},g.defaultProps={disableYearSelection:!1,monthDaySelected:!0,weekCount:4},g.contextTypes={muiTheme:f.PropTypes.object.isRequired},t["default"]=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(1357),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.autoScrollBodyContent,r=e.open,o=t.muiTheme,i=o.baseTheme,a=i.spacing,s=i.palette,l=o.dialog,u=o.zIndex,c=a.desktopGutter,f="1px solid "+s.borderColor;return{root:{position:"fixed",boxSizing:"border-box",WebkitTapHighlightColor:"rgba(0,0,0,0)",zIndex:u.dialog,top:0,left:r?0:-1e4,width:"100%",height:"100%",transition:r?w["default"].easeOut("0ms","left","0ms"):w["default"].easeOut("0ms","left","450ms")},content:{boxSizing:"border-box",WebkitTapHighlightColor:"rgba(0,0,0,0)",transition:w["default"].easeOut(),position:"relative",width:"75%",maxWidth:12*a.desktopKeylineIncrement,margin:"0 auto",zIndex:u.dialog},actionsContainer:{boxSizing:"border-box",WebkitTapHighlightColor:"rgba(0,0,0,0)",padding:8,width:"100%",textAlign:"right",marginTop:n?-1:0,borderTop:n?f:"none"},overlay:{zIndex:u.dialogOverlay},title:{margin:0,padding:c+"px "+c+"px 20px "+c+"px",color:s.textColor,fontSize:l.titleFontSize,lineHeight:"32px",fontWeight:400,marginBottom:n?-1:0,borderBottom:n?f:"none"},body:{fontSize:l.bodyFontSize,color:l.bodyColor,padding:(e.title?0:c)+"px "+c+"px "+c+"px",boxSizing:"border-box",overflowY:n?"auto":"hidden"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&d["default"].createElement("div",{className:n,style:_(w.actionsContainer)},d["default"].Children.toArray(t)),E=b;return d["default"].isValidElement(b)?E=d["default"].cloneElement(b,{className:b.props.className||v,style:_((0,p["default"])(w.title,b.props.style))}):"string"==typeof b&&(E=d["default"].createElement("h3",{className:v,style:_(w.title)},b)),d["default"].createElement("div",{className:s,style:_(w.root)},m&&d["default"].createElement(y["default"],{target:"window",onKeyUp:this.handleKeyUp,onResize:this.handleResize}),d["default"].createElement(M["default"],{component:"div",ref:"dialogWindow",transitionAppear:!0,transitionAppearTimeout:450,transitionEnter:!0,transitionEnterTimeout:450},m&&d["default"].createElement(O,{className:u,style:w.content},d["default"].createElement(A["default"],{zDepth:4},E,d["default"].createElement("div",{ref:"dialogContent",className:o,style:_(w.body)},a),T))),d["default"].createElement(C["default"],{show:m,className:f,style:w.overlay,onTouchTap:this.handleTouchTapOverlay}))}}]),t}(h.Component);D.propTypes={actions:h.PropTypes.node,actionsContainerClassName:h.PropTypes.string,actionsContainerStyle:h.PropTypes.object,autoDetectWindowHeight:h.PropTypes.bool,autoScrollBodyContent:h.PropTypes.bool,bodyClassName:h.PropTypes.string,bodyStyle:h.PropTypes.object,children:h.PropTypes.node,className:h.PropTypes.string,contentClassName:h.PropTypes.string,contentStyle:h.PropTypes.object,modal:h.PropTypes.bool,onRequestClose:h.PropTypes.func,open:h.PropTypes.bool.isRequired,overlayClassName:h.PropTypes.string,overlayStyle:h.PropTypes.object,repositionOnUpdate:h.PropTypes.bool,style:h.PropTypes.object,title:h.PropTypes.node,titleClassName:h.PropTypes.string,titleStyle:h.PropTypes.object},D.contextTypes={muiTheme:h.PropTypes.object.isRequired};var L=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.overlay,r={root:{position:"fixed",height:"100%",width:"100%",top:0,left:"-100%",opacity:0,backgroundColor:n.backgroundColor,WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",willChange:"opacity",transform:"translateZ(0)",transition:e.transitionEnabled&&v["default"].easeOut("0ms","left","400ms")+", "+v["default"].easeOut("400ms","opacity")}};return e.show&&(0,p["default"])(r.root,{left:0,opacity:1,transition:v["default"].easeOut("0ms","left")+", "+v["default"].easeOut("400ms","opacity")}),r}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;tt)return;(r.state.open||A===r.onBodyTouchStart&&!r.props.disableSwipeToOpen)&&(r.maybeSwiping=!0,r.touchStartX=n,r.touchStartY=o,document.body.addEventListener("touchmove",r.onBodyTouchMove),document.body.addEventListener("touchend",r.onBodyTouchEnd),document.body.addEventListener("touchcancel",r.onBodyTouchEnd))},r.onBodyTouchMove=function(e){var t=e.touches[0].pageX,n=e.touches[0].pageY;if(r.state.swiping)e.preventDefault(),r.setPosition(r.getTranslateX(t));else if(r.maybeSwiping){var o=Math.abs(t-r.touchStartX),i=Math.abs(n-r.touchStartY),a=10;o>a&&i<=a?(r.swipeStartX=t,r.setState({swiping:r.state.open?"closing":"opening"}),r.setPosition(r.getTranslateX(t))):o<=a&&i>a&&r.onBodyTouchEnd()}},r.onBodyTouchEnd=function(e){if(r.state.swiping){var t=e.changedTouches[0].pageX,n=r.getTranslateX(t)/r.getMaxTranslateX();r.maybeSwiping=!1;var o=r.state.swiping;r.setState({swiping:null}),n>.5?"opening"===o?r.setPosition(r.getMaxTranslateX()):r.close("swipe"):"opening"===o?r.open("swipe"):r.setPosition(0)}else r.maybeSwiping=!1;document.body.removeEventListener("touchmove",r.onBodyTouchMove),document.body.removeEventListener("touchend",r.onBodyTouchEnd),document.body.removeEventListener("touchcancel",r.onBodyTouchEnd)},a=n,i(r,a)}return a(t,e),s(t,[{key:"componentWillMount",value:function(){this.maybeSwiping=!1,this.touchStartX=null,this.touchStartY=null,this.swipeStartX=null,this.setState({open:null!==this.props.open?this.props.open:this.props.docked,swiping:null})}},{key:"componentDidMount",value:function(){this.enableSwipeHandling()}},{key:"componentWillReceiveProps",value:function(e){null!==e.open?this.setState({open:e.open}):this.props.docked!==e.docked&&this.setState({open:e.docked})}},{key:"componentDidUpdate",value:function(){this.enableSwipeHandling()}},{key:"componentWillUnmount",value:function(){this.disableSwipeHandling()}},{key:"getStyles",value:function(){var e=this.context.muiTheme,t=e.drawer,n=this.getTranslateMultiplier()*(this.state.open?0:this.getMaxTranslateX()),r={root:{height:"100%",width:this.props.width||t.width,position:"fixed",zIndex:e.zIndex.drawer,left:0,top:0,transform:"translate3d("+n+"px, 0, 0)",transition:!this.state.swiping&&_["default"].easeOut(null,"transform",null),backgroundColor:t.color,overflow:"auto",WebkitOverflowScrolling:"touch"},overlay:{zIndex:e.zIndex.drawerOverlay,pointerEvents:this.state.open?"auto":"none"},rootWhenOpenRight:{left:"auto",right:0}};return r}},{key:"shouldShow",value:function(){return this.state.open||!!this.state.swiping}},{key:"close",value:function(e){return null===this.props.open&&this.setState({open:!1}),this.props.onRequestChange&&this.props.onRequestChange(!1,e),this}},{key:"open",value:function(e){return null===this.props.open&&this.setState({open:!0}),this.props.onRequestChange&&this.props.onRequestChange(!0,e),this}},{key:"getMaxTranslateX",value:function(){var e=this.props.width||this.context.muiTheme.drawer.width;return e+10}},{key:"getTranslateMultiplier",value:function(){return this.props.openSecondary?1:-1}},{key:"enableSwipeHandling",value:function(){this.props.docked?this.disableSwipeHandling():(document.body.addEventListener("touchstart",this.onBodyTouchStart),A||(A=this.onBodyTouchStart))}},{key:"disableSwipeHandling",value:function(){document.body.removeEventListener("touchstart",this.onBodyTouchStart),A===this.onBodyTouchStart&&(A=null)}},{key:"setPosition",value:function(e){var t=h["default"].findDOMNode(this.refs.clickAwayableElement),n="translate3d("+this.getTranslateMultiplier()*e+"px, 0, 0)";this.refs.overlay.setOpacity(1-e/this.getMaxTranslateX()),b["default"].set(t.style,"transform",n)}},{key:"getTranslateX",value:function(e){return Math.min(Math.max("closing"===this.state.swiping?this.getTranslateMultiplier()*(e-this.swipeStartX):this.getMaxTranslateX()-this.getTranslateMultiplier()*(this.swipeStartX-e),0),this.getMaxTranslateX())}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.containerClassName,o=e.containerStyle,i=e.docked,a=e.openSecondary,s=e.overlayClassName,l=e.overlayStyle,c=e.style,p=e.zDepth,h=this.getStyles(),d=void 0;return i||(d=f["default"].createElement(T["default"],{ref:"overlay",show:this.shouldShow(),className:s,style:(0,u["default"])(h.overlay,l),transitionEnabled:!this.state.swiping,onTouchTap:this.handleTouchTapOverlay})),f["default"].createElement("div",{className:n,style:c},f["default"].createElement(m["default"],{target:"window",onKeyUp:this.handleKeyUp}),d,f["default"].createElement(E["default"],{ref:"clickAwayableElement",zDepth:p,rounded:!1,transitionEnabled:!this.state.swiping,className:r,style:(0,u["default"])(h.root,a&&h.rootWhenOpenRight,o)},t))}}]),t}(c.Component);P.propTypes={children:c.PropTypes.node,className:c.PropTypes.string,containerClassName:c.PropTypes.string,containerStyle:c.PropTypes.object,disableSwipeToOpen:c.PropTypes.bool,docked:c.PropTypes.bool,onRequestChange:c.PropTypes.func,open:c.PropTypes.bool,openSecondary:c.PropTypes.bool,overlayClassName:c.PropTypes.string,overlayStyle:c.PropTypes.object,style:c.PropTypes.object,swipeAreaWidth:c.PropTypes.number,width:c.PropTypes.number,zDepth:S["default"].zDepth},P.defaultProps={disableSwipeToOpen:!1,docked:!0,open:null,openSecondary:!1,swipeAreaWidth:30,width:null,zDepth:2},P.contextTypes={muiTheme:c.PropTypes.object.isRequired},t["default"]=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(1363),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.floatingActionButton,r=e.backgroundColor||n.color,o=n.iconColor;return e.disabled?(r=e.disabledColor||n.disabledColor,o=n.disabledTextColor):e.secondary&&(r=n.secondaryColor,o=n.secondaryIconColor),{root:{transition:v["default"].easeOut(),display:"inline-block"},container:{backgroundColor:r,transition:v["default"].easeOut(),position:"relative",height:n.buttonSize,width:n.buttonSize,padding:0,overflow:"hidden",borderRadius:"50%",textAlign:"center",verticalAlign:"bottom"},containerWhenMini:{height:n.miniSize,width:n.miniSize},overlay:{transition:v["default"].easeOut(),top:0},overlayWhenHovered:{backgroundColor:(0,g.fade)(o,.4)},icon:{height:n.buttonSize,lineHeight:n.buttonSize+"px",fill:o,color:o},iconWhenMini:{height:n.miniSize,lineHeight:n.miniSize+"px"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{root:{display:"flex",flexWrap:"wrap",margin:-e.padding/2},item:{boxSizing:"border-box",padding:e.padding/2}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n,r=t.muiTheme,o=r.baseTheme,i=r.gridTile,a=e.actionIcon&&e.actionPosition,s={root:{position:"relative",display:"block",height:"100%",overflow:"hidden"},titleBar:(n={position:"absolute",left:0,right:0},l(n,e.titlePosition,0),l(n,"height",e.subtitle?68:48),l(n,"background",e.titleBackground),l(n,"display","flex"),l(n,"alignItems","center"),n),titleWrap:{flexGrow:1,marginLeft:"left"!==a?o.spacing.desktopGutterLess:0,marginRight:"left"===a?o.spacing.desktopGutterLess:0,color:i.textColor,overflow:"hidden"},title:{fontSize:"16px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:"12px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{order:"left"===a?-1:1},childImg:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"}};return s}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]); +return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=Math.min(Math.max(t,e),n),o=n-t,i=Math.round((r-t)/o*1e4)/1e4;return 100*i}function u(e,t){var n=e.max,r=e.min,o=e.value,i=t.muiTheme.baseTheme.palette,a={root:{position:"relative",height:4,display:"block",width:"100%",backgroundColor:i.primary3Color,borderRadius:2,margin:0,overflow:"hidden"},bar:{height:"100%"},barFragment1:{},barFragment2:{}};return"indeterminate"===e.mode?(a.barFragment1={position:"absolute",backgroundColor:e.color||i.primary1Color,top:0,left:0,bottom:0,transition:g["default"].create("all","840ms",null,"cubic-bezier(0.650, 0.815, 0.735, 0.395)")},a.barFragment2={position:"absolute",backgroundColor:e.color||i.primary1Color,top:0,left:0,bottom:0,transition:g["default"].create("all","840ms",null,"cubic-bezier(0.165, 0.840, 0.440, 1.000)")}):(a.bar.backgroundColor=e.color||i.primary1Color,a.bar.transition=g["default"].create("width",".3s",null,"linear"),a.bar.width=l(o,r,n)+"%"),a}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.radioButton;return{icon:{height:n.size,width:n.size},target:{transition:v["default"].easeOut(),position:"absolute",opacity:1,transform:"scale(1)",fill:n.borderColor},fill:{position:"absolute",opacity:1,transform:"scale(0)",transformOrigin:"50% 50%",transition:v["default"].easeOut(),fill:n.checkedColor},targetWhenChecked:{opacity:0,transform:"scale(0)"},fillWhenChecked:{opacity:1,transform:"scale(1)"},targetWhenDisabled:{fill:n.disabledColor,cursor:"not-allowed"},fillWhenDisabled:{fill:n.disabledColor,cursor:"not-allowed"},label:{color:e.disabled?n.labelDisabledColor:n.labelColor},ripple:{color:e.checked?n.checkedColor:n.borderColor}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0&&("horizontal"===o?i.root.marginLeft=-6:"vertical"===o&&(i.root.marginTop=-14)),i},m=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return d["default"].createElement(v["default"],e)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;to?i.completed=!0:r&&t0&&f["default"].createElement(h["default"],null),f["default"].cloneElement(e,(0,u["default"])(i,e.props))]});return f["default"].createElement("div",{style:i((0,u["default"])(a.root,o))},s)}}]),t}(c.Component);m.propTypes={activeStep:c.PropTypes.number,children:c.PropTypes.arrayOf(c.PropTypes.element),linear:c.PropTypes.bool,orientation:c.PropTypes.oneOf(["horizontal","vertical"]),style:c.PropTypes.object},m.defaultProps={orientation:"horizontal",linear:!0},m.contextTypes={muiTheme:c.PropTypes.object.isRequired},m.childContextTypes={stepper:c.PropTypes.object},t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PlainStepConnector=void 0;var o=n(330),i=r(o),a=n(942),s=r(a),l={style:o.PropTypes.object},u={muiTheme:o.PropTypes.object.isRequired,stepper:o.PropTypes.object},c=function(e,t){var n=t.muiTheme,r=t.stepper,o={wrapper:{flex:"1 1 auto"},line:{display:"block",borderColor:n.stepper.connectorLineColor}};"horizontal"===r.orientation?(o.line.marginLeft=-6,o.line.borderTopStyle="solid",o.line.borderTopWidth=1):"vertical"===r.orientation&&(o.wrapper.marginLeft=25,o.line.borderLeftStyle="solid",o.line.borderLeftWidth=1,o.line.minHeight=28);var a=n.prepareStyles;return i["default"].createElement("div",{style:a(o.wrapper)},i["default"].createElement("span",{style:a(o.line)}))};c.propTypes=l,c.contextTypes=u,t.PlainStepConnector=c,t["default"]=(0,s["default"])(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=n(1389),i=r(o);t["default"]=i["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=t.muiTheme,o=r.baseTheme.spacing.desktopSubheaderHeight,i=r.zIndex,a=n.open,s={root:{position:"fixed",left:0,display:"flex",right:0,bottom:0,zIndex:i.snackbar,visibility:a?"visible":"hidden",transform:a?"translate3d(0, 0, 0)":"translate3d(0, "+o+"px, 0)",transition:v["default"].easeOut("400ms","transform")+", "+v["default"].easeOut("400ms","visibility")}};return s}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&(clearTimeout(this.timerAutoHideId),this.timerAutoHideId=setTimeout(function(){null!==e.props.open&&e.props.onRequestClose?e.props.onRequestClose("timeout"):e.setState({open:!1})},t))}},{key:"setTransitionTimer",value:function(){var e=this;this.timerTransitionId=setTimeout(function(){e.timerTransitionId=void 0},400)}},{key:"render",value:function(){var e=this.props,t=(e.autoHideDuration,e.message,e.onRequestClose,e.onActionTouchTap),n=e.style,r=e.bodyStyle,i=o(e,["autoHideDuration","message","onRequestClose","onActionTouchTap","style","bodyStyle"]),a=this.state,s=a.action,c=a.message,f=a.open,h=this.context.muiTheme.prepareStyles,m=l(this.props,this.context,this.state);return d["default"].createElement(y["default"],{onClickAway:f&&this.componentClickAway},d["default"].createElement("div",u({},i,{style:h((0,p["default"])(m.root,n))}),d["default"].createElement(x["default"],{open:f,message:c,action:s,style:r,onActionTouchTap:t})))}}]),t}(h.Component);_.propTypes={action:h.PropTypes.string,autoHideDuration:h.PropTypes.number,bodyStyle:h.PropTypes.object,className:h.PropTypes.string,message:h.PropTypes.node.isRequired,onActionTouchTap:h.PropTypes.func,onRequestClose:h.PropTypes.func,open:h.PropTypes.bool.isRequired,style:h.PropTypes.object},_.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.open,r=e.width,o=t.muiTheme,i=o.baseTheme.spacing,a=i.desktopGutter,s=i.desktopSubheaderHeight,l=o.snackbar,u=l.backgroundColor,c=l.textColor,f=l.actionColor,d=r===h.SMALL,m={root:{backgroundColor:u,padding:"0 "+a+"px",height:s,lineHeight:s+"px",borderRadius:d?0:2,maxWidth:d?"inherit":568,minWidth:d?"inherit":288,flexGrow:d?1:0,margin:"auto"},content:{fontSize:14,color:c,opacity:n?1:0,transition:n?p["default"].easeOut("500ms","opacity","100ms"):p["default"].easeOut("400ms","opacity")},action:{color:f,"float":"right",marginTop:6,marginRight:-16,marginLeft:a,backgroundColor:"transparent"}};return m}Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarBody=void 0;var a=Object.assign||function(e){for(var t=1;t=n?v:e>=s?m:d,t!==this.state.width&&this.setState({width:t})}},{key:"render",value:function(){return f["default"].createElement(h["default"],{target:"window",onResize:this.handleResize},f["default"].createElement(e,l({},this.props,{width:this.state.width})))}}]),r}(c.Component)}}Object.defineProperty(t,"__esModule",{value:!0}),t.LARGE=t.MEDIUM=t.SMALL=void 0;var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.tabs;return{root:{color:e.selected?n.selectedTextColor:n.textColor,fontWeight:500,fontSize:14,width:e.width,textTransform:"uppercase",padding:0},button:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:e.label&&e.icon?72:48}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.tabs;return{tabItemContainer:{width:"100%",backgroundColor:n.backgroundColor,whiteSpace:"nowrap"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;te}},{key:"createTableHeader",value:function(e){return p["default"].cloneElement(e,{enableSelectAll:e.props.enableSelectAll&&this.props.selectable&&this.props.multiSelectable,onSelectAll:this.onSelectAll,selectAllSelected:this.state.allRowsSelected})}},{key:"createTableBody",value:function(e){return p["default"].cloneElement(e,{allRowsSelected:this.state.allRowsSelected,multiSelectable:this.props.multiSelectable,onCellClick:this.onCellClick,onCellHover:this.onCellHover,onCellHoverExit:this.onCellHoverExit,onRowHover:this.onRowHover,onRowHoverExit:this.onRowHoverExit,onRowSelection:this.onRowSelection,selectable:this.props.selectable,style:(0,c["default"])({height:this.props.height},e.props.style)})}},{key:"createTableFooter",value:function(e){return e}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.fixedFooter,i=t.fixedHeader,a=t.style,l=t.wrapperStyle,u=t.headerStyle,f=t.bodyStyle,h=t.footerStyle,d=this.context.muiTheme.prepareStyles,m=s(this.props,this.context),v=void 0,g=void 0,y=void 0;if(p["default"].Children.forEach(n,function(t){if(p["default"].isValidElement(t)){var n=t.type.muiName;"TableBody"===n?y=e.createTableBody(t):"TableHeader"===n?v=e.createTableHeader(t):"TableFooter"===n&&(g=e.createTableFooter(t))}}),!y&&!v)return null;var b=(0,c["default"])(m.root,a),x=void 0,_=void 0,w=void 0,T=void 0;return i?x=p["default"].createElement("div",{style:d((0,c["default"])({},u))},p["default"].createElement("table",{className:r,style:b},v)):w=v,void 0!==g&&(o?_=p["default"].createElement("div",{style:d((0,c["default"])({},h))},p["default"].createElement("table",{className:r,style:d(b)},g)):T=g),p["default"].createElement("div",{style:d((0,c["default"])(m.tableWrapper,l))},x,p["default"].createElement("div",{style:d((0,c["default"])(m.bodyTable,f)),ref:"tableDiv"},p["default"].createElement("table",{className:r,style:b,ref:"tableBody"},w,T,y)),_)}}]),t}(f.Component);h.propTypes={allRowsSelected:f.PropTypes.bool,bodyStyle:f.PropTypes.object,children:f.PropTypes.node,className:f.PropTypes.string,fixedFooter:f.PropTypes.bool,fixedHeader:f.PropTypes.bool,footerStyle:f.PropTypes.object,headerStyle:f.PropTypes.object,height:f.PropTypes.string,multiSelectable:f.PropTypes.bool,onCellClick:f.PropTypes.func,onCellHover:f.PropTypes.func,onCellHoverExit:f.PropTypes.func,onRowHover:f.PropTypes.func,onRowHoverExit:f.PropTypes.func,onRowSelection:f.PropTypes.func,selectable:f.PropTypes.bool,style:f.PropTypes.object,wrapperStyle:f.PropTypes.object},h.defaultProps={allRowsSelected:!1,fixedFooter:!0,fixedHeader:!0,height:"inherit",multiSelectable:!1,selectable:!0},h.contextTypes={muiTheme:f.PropTypes.object.isRequired},t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?[this.state.selectedRows[this.state.selectedRows.length-1]]:[]}):this.setState({selectedRows:this.calculatePreselectedRows(e)})}},{key:"createRows",value:function(){var e=this,t=d["default"].Children.count(this.props.children),n=0,r={onCellClick:this.onCellClick,onCellHover:this.onCellHover,onCellHoverExit:this.onCellHoverExit,onRowHover:this.onRowHover,onRowHoverExit:this.onRowHoverExit,onRowClick:this.onRowClick};return d["default"].Children.map(this.props.children,function(o){if(d["default"].isValidElement(o)){var i=function(){var i={hoverable:e.props.showRowHover,selected:e.isRowSelected(n),striped:e.props.stripedRows&&n%2===0,rowNumber:n++};n===t&&(i.displayBorder=!1);var a=[e.createRowCheckboxColumn(i)];return d["default"].Children.forEach(o.props.children,function(e){a.push(e)}),{v:d["default"].cloneElement(o,u({},i,r),a)}}();if("object"===("undefined"==typeof i?"undefined":l(i)))return i.v}})}},{key:"createRowCheckboxColumn",value:function(e){if(!this.props.displayRowCheckbox)return null;var t=e.rowNumber+"-cb",n=!this.props.selectable,r=d["default"].createElement(v["default"],{ref:"rowSelectCB",name:t,value:"selected",disabled:n,checked:e.selected});return d["default"].createElement(y["default"],{key:t,columnNumber:0,style:{width:24,cursor:n?"not-allowed":"inherit"}},r)}},{key:"calculatePreselectedRows",value:function(e){var t=[];return e.selectable&&e.preScanRows&&!function(){var n=0;d["default"].Children.forEach(e.children,function(r){d["default"].isValidElement(r)&&(r.props.selected&&(0===t.length||e.multiSelectable)&&t.push(n),n++)})}(),t}},{key:"isRowSelected",value:function(e){if(this.props.allRowsSelected)return!0;for(var t=0;t0?-1:1;0!==t;)n.push(e+t),t+=r;return n}},{key:"flattenRanges",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if("object"===("undefined"==typeof u?"undefined":l(u))){var c=this.genRangeOfValues(u.end,u.start-u.end);t.push.apply(t,[u.end].concat(o(c)))}else t.push(u)}}catch(f){r=!0,i=f}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw i}}return t.sort()}},{key:"getColumnId",value:function(e){var t=e;return this.props.displayRowCheckbox&&t--,t}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,r=this.context.muiTheme.prepareStyles;return d["default"].createElement(x["default"],{onClickAway:this.handleClickAway},d["default"].createElement("tbody",{className:t,style:r((0,p["default"])({},n))},this.createRows()))}}]),t}(h.Component);_.muiName="TableBody",_.propTypes={allRowsSelected:h.PropTypes.bool,children:h.PropTypes.node,className:h.PropTypes.string,deselectOnClickaway:h.PropTypes.bool,displayRowCheckbox:h.PropTypes.bool,multiSelectable:h.PropTypes.bool,onCellClick:h.PropTypes.func,onCellHover:h.PropTypes.func,onCellHoverExit:h.PropTypes.func,onRowHover:h.PropTypes.func,onRowHoverExit:h.PropTypes.func,onRowSelection:h.PropTypes.func,preScanRows:h.PropTypes.bool,selectable:h.PropTypes.bool,showRowHover:h.PropTypes.bool,stripedRows:h.PropTypes.bool,style:h.PropTypes.object},_.defaultProps={allRowsSelected:!1,deselectOnClickaway:!0,displayRowCheckbox:!0,multiSelectable:!1,preScanRows:!0,selectable:!0,style:{}},_.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.tableRowColumn,r={root:{paddingLeft:n.spacing,paddingRight:n.spacing,height:n.height,textAlign:"left",fontSize:13,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}};return 1!==d["default"].Children.count(e.children)||isNaN(e.children)||(r.textAlign="right"),r}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=t.muiTheme.tableFooter;return{cell:{borderTop:"1px solid "+n.borderColor,verticalAlign:"bottom",padding:20,textAlign:"left",whiteSpace:"nowrap"}}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme.tableHeaderColumn;return{root:{fontWeight:"normal",fontSize:12,paddingLeft:n.spacing,paddingRight:n.spacing,height:n.height,textAlign:"left",whiteSpace:"nowrap",textOverflow:"ellipsis",color:n.textColor,position:"relative"},tooltip:{boxSizing:"border-box",marginTop:n.height/2}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=t.muiTheme.tableRow,o="inherit";return e.hovered||n.hovered?o=r.hoverColor:e.selected?o=r.selectedColor:e.striped&&(o=r.stripeColor),{root:{borderBottom:e.displayBorder&&"1px solid "+r.borderColor,color:r.textColor,height:r.height},cell:{backgroundColor:o}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;tthis.props.selectedTime?"up":"down";this.setState({transitionDirection:t})}}},{key:"sanitizeTime",value:function(){var e=this.props.selectedTime.getHours(),t=this.props.selectedTime.getMinutes().toString();return"ampm"===this.props.format&&(e%=12,e=e||12),e=e.toString(),e.length<2&&(e="0"+e),t.length<2&&(t="0"+t),[e,t]}},{key:"render",value:function(){var e=this.props,t=e.affix,n=e.format,r=e.mode,i=e.onSelectAffix,a=e.onSelectHour,s=e.onSelectMin,c=(e.selectedTime,o(e,["affix","format","mode","onSelectAffix","onSelectHour","onSelectMin","selectedTime"])),f=this.context.muiTheme,h=f.prepareStyles,m=f.timePicker,v={root:{padding:"14px 0",borderTopLeftRadius:2,borderTopRightRadius:2,backgroundColor:m.headerColor,color:"white"},text:{margin:"6px 0",lineHeight:"58px",height:58,fontSize:58,display:"flex",justifyContent:"center",alignItems:"baseline"},time:{margin:"0 10px"},affix:{flex:1,position:"relative",lineHeight:"17px",height:17,fontSize:17},affixTop:{position:"absolute",top:-20,left:0},clickable:{cursor:"pointer"},inactive:{opacity:.7}},g=this.sanitizeTime(),y=u(g,2),b=y[0],x=y[1],_=[];return"ampm"===n&&(_=[d["default"].createElement("div",{key:"pm",style:h((0,p["default"])({},v.clickable,"pm"===t?{}:v.inactive)),onTouchTap:function(){return i("pm")}},"PM"),d["default"].createElement("div",{key:"am",style:h((0,p["default"])({},v.affixTop,v.clickable,"am"===t?{}:v.inactive)),onTouchTap:function(){return i("am")}},"AM")]),d["default"].createElement("div",l({},c,{style:h(v.root)}),d["default"].createElement("div",{style:h(v.text)},d["default"].createElement("div",{style:h((0,p["default"])({},v.affix))}),d["default"].createElement("div",{style:h(v.time)},d["default"].createElement("span",{style:h((0,p["default"])({},v.clickable,"hour"===r?{}:v.inactive)),onTouchTap:a},b),d["default"].createElement("span",null,":"),d["default"].createElement("span",{style:h((0,p["default"])({},v.clickable,"minute"===r?{}:v.inactive)),onTouchTap:s},x)),d["default"].createElement("div",{style:h((0,p["default"])({},v.affix))},_)))}}]),t}(h.Component);m.propTypes={affix:h.PropTypes.oneOf(["","pm","am"]),format:h.PropTypes.oneOf(["ampm","24hr"]),mode:h.PropTypes.oneOf(["hour","minute"]),onSelectAffix:h.PropTypes.func,onSelectHour:h.PropTypes.func,onSelectMin:h.PropTypes.func,selectedTime:h.PropTypes.object.isRequired},m.defaultProps={affix:"",mode:"hour"},m.contextTypes={muiTheme:h.PropTypes.object.isRequired},t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n12)}Object.defineProperty(t,"__esModule",{value:!0}),t.addHours=n,t.addMinutes=r,t.addSeconds=o,t.formatTime=a,t.rad2deg=s,t.getTouchEventOffsetValues=l,t.isInner=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){e%=t;var n=360/t*e;return n}function l(e,t,n){var r=e.hasSelected,o=e.type,i=e.value,a=n.inner,l=t.muiTheme.timePicker,u="hour"===o?s(i,12):s(i,60),c={root:{height:a?"30%":"40%",background:l.accentColor,width:2,left:"calc(50% - 1px)",position:"absolute",bottom:"50%",transformOrigin:"bottom",pointerEvents:"none",transform:"rotateZ("+u+"deg)"},mark:{background:l.selectTextColor,border:"4px solid "+l.accentColor,display:r&&"none",width:7,height:7,position:"absolute",top:-5,left:-6,borderRadius:"100%"}};return c}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t,n){var r=e.disabled,o=t.muiTheme,i=o.baseTheme,a=o.toggle,s=20,l=36,u={icon:{width:36,padding:"4px 0px 6px 2px"},ripple:{top:-10,left:-10,color:n.switched?a.thumbOnColor:i.palette.textColor},toggleElement:{width:l},track:{transition:v["default"].easeOut(),width:"100%",height:14,borderRadius:30,backgroundColor:a.trackOffColor},thumb:{transition:v["default"].easeOut(),position:"absolute",top:1,left:0,width:s,height:s,lineHeight:"24px",borderRadius:"50%",backgroundColor:a.thumbOffColor},trackWhenSwitched:{backgroundColor:a.trackOnColor},thumbWhenSwitched:{backgroundColor:a.thumbOnColor,left:"100%"},trackWhenDisabled:{backgroundColor:a.trackDisabledColor,cursor:"not-allowed"},thumbWhenDisabled:{backgroundColor:a.thumbDisabledColor,cursor:"not-allowed"},label:{color:r?a.labelDisabledColor:a.labelColor,width:"calc(100% - "+(l+10)+"px)",cursor:r?"not-allowed":"initial"}};return u}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.noGutter,r=t.muiTheme,o=r.baseTheme,i=r.toolbar;return{root:{boxSizing:"border-box",WebkitTapHighlightColor:"rgba(0,0,0,0)",backgroundColor:i.backgroundColor,height:i.height,padding:n?0:"0px "+o.spacing.desktopGutter+"px",display:"flex",justifyContent:"space-between"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=e.firstChild,r=e.lastChild,o=t.muiTheme,i=o.baseTheme,a=o.button,s=o.toolbar,l=i.spacing.desktopGutter,u=(s.height-a.height)/2,c={root:{position:"relative",marginLeft:n?-l:void 0,marginRight:r?-l:void 0,display:"flex",justifyContent:"space-between"},dropDownMenu:{root:{color:s.color,marginRight:i.spacing.desktopGutter,flex:1,whiteSpace:"nowrap"},controlBg:{backgroundColor:s.menuHoverColor,borderRadius:0},underline:{display:"none"}},button:{margin:u+"px "+l+"px",position:"relative"},icon:{root:{cursor:"pointer",lineHeight:s.height+"px",paddingLeft:i.spacing.desktopGutter}},span:{color:s.iconColor,lineHeight:s.height+"px"}};return c}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme,r=n.baseTheme,o=n.toolbar;return{root:{backgroundColor:o.separatorColor,display:"inline-block",height:r.spacing.desktopGutterMore,marginLeft:r.spacing.desktopGutter,position:"relative",top:(o.height-r.spacing.desktopGutterMore)/2,width:1}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.muiTheme,r=n.baseTheme,o=n.toolbar;return{root:{paddingRight:r.spacing.desktopGutterLess,lineHeight:o.height+"px",fontSize:o.titleFontSize,position:"relative",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;td?i["default"].createElement("div",{style:{fontSize:"16px",lineHeight:"24px",width:"256px",height:"72px",display:"inline-block",position:"relative",fontFamily:"Roboto, sans-serif",transition:"height 200ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",backgroundColor:"transparent"}},i["default"].createElement("label",{style:{position:"absolute",lineHeight:"22px",top:"38px",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",zIndex:"1",cursor:"text",transform:"perspective(1px) scale(0.75) translate3d(0px, -28px, 0px)",transformOrigin:"left top 0px",pointerEvents:"none",color:"rgba(0, 0, 0, 0.498039)"}},r),i["default"].createElement("div",{style:{display:"block",fontSize:"inherit",height:"100%",fontFamily:"inherit",outline:"none",position:"relative",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",padding:"0px",width:"100%",border:"none",color:"rgba(0, 0, 0, 0.870588)",fontStyle:"inherit",fontVariant:"inherit",fontWeight:"inherit",fontStretch:"inherit",lineHeight:"inherit",boxSizing:"border-box",marginTop:"14px",backgroundColor:"rgba(0, 0, 0, 0)"}},i["default"].createElement("div",{style:{cursor:"pointer",height:"100%",position:"relative",width:"100%"}},i["default"].createElement("div",{style:{boxSizing:"border-box",display:"table"}}," "),i["default"].createElement("select",{style:{width:"100%",appearance:"none",cursor:"pointer",border:"none",background:"none",display:"block",color:"rgba(0, 0, 0, 0.870588)",lineHeight:"56px",opacity:"1",position:"relative",paddingLeft:"0px",paddingRight:"48px",top:"6px"},value:t,onChange:function(e){return o(e.target.value)}},i["default"].createElement("option",{className:"dropdown-option",value:""}),a.map(function(e){var t=e.value,n=e.label;return i["default"].createElement("option",{className:"dropdown-option",key:t,value:t,label:n||t})})),i["default"].createElement("svg",{viewBox:"0 0 24 24",style:{display:"inline-block",fill:"rgb(224, 224, 224)",height:"24px",width:"24px",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",position:"absolute",right:"0px",top:"22px"}},i["default"].createElement("path",{d:"M7 10l5 5 5-5z"})),i["default"].createElement("div",{style:{borderTopStyle:"none",bottom:"1px",left:"0px",margin:"-1px 24px",right:"0px",position:"absolute"}}),i["default"].createElement("div",{style:{boxSizing:"borderBox",clear:"both",display:"table"}}," "))),i["default"].createElement("div",null,i["default"].createElement("hr",{style:{borderBottomWidth:"1px",borderStyle:"none none solid",borderColor:"rgb(224, 224, 224)",bottom:"8px",boxSizing:"content-box",margin:"0px",position:"absolute",width:"100%"}}),i["default"].createElement("hr",{style:{borderBottomWidth:"2px",borderStyle:"none none solid",borderColor:"rgb(33, 150, 243)",bottom:"8px",boxSizing:"content-box",margin:"0px",position:"absolute",width:"100%",transform:"scaleX(0)",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"}}))):i["default"].createElement(f["default"],{value:t,autoWidth:n,floatingLabelText:r,onChange:function(e,t,n){return o(n)}},a.map(function(e){var t=e.value,n=e.label,r=e.leftIcon,o=e.rightIcon,a=e.disabled;return i["default"].createElement(h["default"],{key:t,value:t,primaryText:i["default"].createElement("div",{className:"dropdown-option"},n||t),leftIcon:r,rightIcon:o,disabled:a})}))}});e.exports=m},function(e,t,n){var r=n(1424);"string"==typeof r&&(r=[[e.id,r,""]]);n(764)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(763)(),t.push([e.id,".map-sidebar{width:280px}.map-controls{-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}.map-controls .dropdown-option{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dropdown-option .icon,.map-controls .dropdown-option .icon{color:#757575;padding-right:7px}",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var a=Object.assign||function(e){for(var t=1;t-1?t[l?l[u]:u]:void 0}}var o=n(723),i=n(705),a=n(699);e.exports=r},function(e,t,n){function r(e,t,n){var r=e?e.length:0;if(!r)return-1;var l=null==n?0:a(n);return l<0&&(l=s(r+l,0)),o(e,i(t,3),l)}var o=n(1438),i=n(723),a=n(647),s=Math.max;e.exports=r},function(e,t){function n(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i0){for(var o=[],a=function(r,a){var s=n.get(r);if(s.get("table")===t){var l=i["default"].createElement(p.ListItem,{key:"usedTableQueriesListItem"+r,primaryText:i["default"].createElement("span",{className:"list-string"},i["default"].createElement(y["default"],{className:"text",prepend:"",table:t,query:s.get("query")})),onClick:function(t){return e.handleClick(t,s.get("query"))},onDoubleClick:function(t){return e.handleDoubleClick(t,s.get("query"))},leftIcon:i["default"].createElement(v["default"],{fixedWidth:!0,name:"filter"})});o.push(l)}},s=0,l=n.size;s0}),function(e){return{value:e.id,leftIcon:a["default"].createElement(D["default"],{fixedWidth:!0,name:e.icon}),label:e.capNamePlural}}),c=[];n&&(c=(0,m["default"])(this.config.tablesById[n].trees,function(e){return{value:e.id,label:e.id}}));var p=(0,m["default"])((0,_["default"])(u.treeTypes),function(e){return{value:e,label:(0,f["default"])(e)}}),d=n&&r&&this.config.tablesById[n].treesById[r],v=a["default"].createElement("div",{className:"sidebar tree-sidebar"},a["default"].createElement(M["default"],{icon:this.icon(),description:"Something here"}),a["default"].createElement("div",{className:"tree-controls vertical stack"},a["default"].createElement(F["default"],{value:n,autoWidth:!0,floatingLabelText:"Table",onChange:this.handleChangeTable,options:s}),n?a["default"].createElement(F["default"],{value:r,autoWidth:!0,floatingLabelText:"Tree",onChange:this.handleChangeTree,options:c}):null,d&&d.crossLink&&(0,g["default"])(this.config.tablesById,d.crossLink.split("::")[0])?a["default"].createElement(A.RaisedButton,{onClick:this.handleCrossLink,label:"Show "+this.config.tablesById[d.crossLink.split("::")[0]].capNameSingle,icon:a["default"].createElement(D["default"],{fixedWidth:!0,name:this.config.tablesById[d.crossLink.split("::")[0]].icon})}):null,d?a["default"].createElement(F["default"],{value:o,autoWidth:!0,floatingLabelText:"Tree Layout",onChange:this.handleChangeTreeType,options:p}):null));return a["default"].createElement(h["default"],{docked:t,styles:{sidebar:{paddingRight:(0,l["default"])()+"px"}},sidebar:v},a["default"].createElement("div",{className:"vertical stack"},a["default"].createElement("div",{className:"top-bar"},a["default"].createElement(D["default"],{className:"pointer icon",name:t?"arrows-h":"bars",title:t?"Expand":"Sidebar",onClick:function(){return i({sidebar:!t})}}),a["default"].createElement("span",{className:"text"},"Tree ",n?"of "+this.config.tablesById[n].capNamePlural:""," ")),a["default"].createElement("div",{className:"grow"},a["default"].createElement(j["default"],this.props))))}});e.exports=I},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0){var l=i.toJS(),u={nw:{lat:(0,g["default"])(l,"lat").lat,lng:(0,m["default"])(l,"lng").lng},se:{lat:(0,m["default"])(l,"lat").lat,lng:(0,g["default"])(l,"lng").lng}},f=(0,h.fitBounds)(u,this.state);n=f.center,r=f.zoom}else r=1,n={lat:0,lng:0};return s&&i.size>0?!function(){var t=s.nw,n=s.se;n.lngn.lat&&e.get("lat")t.lng&&e.get("lng")0){t=(0,C.latlngToMercatorXY)(t),n=(0,C.latlngToMercatorXY)(n);var o=(t.y-n.y)*(n.x-t.x),a=75*Math.sqrt(o/r);e.lastFactor=a}i=e.lastFactor?i.map(function(t){return t.set("radius",t.get("radius")*e.lastFactor)}):c["default"].List()}():i=c["default"].List(),a["default"].createElement(T["default"],{onResize:this.handleResize},a["default"].createElement(_["default"],{nodes:i},function(t){return a["default"].createElement(p["default"],{debounced:!1,center:n,zoom:r,yesIWantToUseGoogleMapApiInternals:!0,onGoogleApiLoaded:e.handleGoogleApiLoaded,options:o,ref:function(t){return e._googleMapRef=t},onChange:e.handleMapChange,onDrag:e.handleDrag},t.map(function(t,n){return a["default"].createElement(M["default"],{debounced:!1,lng:t.lng,lat:t.lat,originalLng:t.originalNode.lng,originalLat:t.originalNode.lat,key:n,name:t.name,radius:t.radius,chartData:t.chartData,onClick:function(n){return e.handleClickPieChart(n,t)}})}))}))}});e.exports=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,x.latlngToMercatorXY)(e),n=t.x,r=t.y;e.x=n,e.y=r}function i(e){var t=(0,x.mercatorXYtolatlng)(e),n=t.lat,r=t.lng;e.lng=r,e.lat=n}function a(e){e.collisionRadius=(0,x.latlngToMercatorXY)({lat:0,lng:e.radius}).x}var s=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(330),u=r(l),c=n(1218),f=r(c),p=n(900),h=r(p),d=n(1453),m=r(d),v=n(1265),g=r(v),y=n(1454),b=r(y),x=n(1458),_=n(586),w=r(_),T=n(756),C=r(T),E=u["default"].createClass({displayName:"GeoLayouter",propTypes:{nodes:C["default"].list},getDefaultProps:function(){return{nodes:w["default"].List(),positionOffsetFraction:0,zoom:1}},componentWillMount:function(){this.renderNodes=[],this.force=f["default"].layout.force(),this.force.on("tick",this.onTick),this.force.gravity(0),this.force.friction(.1),this.force.linkStrength(.9),this.force.linkDistance(0),this.force.charge(0),this.force.on("start",this.onStarted),this.force.on("end",this.onStopped)},componentWillUnmount:function(){this.force.stop()},componentWillReceiveProps:function(e){if(this.props.nodes!==e.nodes){var t=e.nodes.toJS();t.forEach(o),t.forEach(a);var n=(0,h["default"])(t);(0,g["default"])(n,t).forEach(function(e){var t=s(e,2),n=t[0],r=t[1];n.fixed=!0,r.fixed=!1,r.originalNode=n});var r=(0,b["default"])(this.renderNodes,"key");t.forEach(function(e){r[e.key]&&["x","y","lat","lng"].forEach(function(t){return e[t]=r[e.key][t]})}),this.force.nodes(n.concat(t));for(var i=[],l=0;lr||li||u0?(t+1)%2-1:(t-1)%2+1)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(330),i=r(o),a=n(1218),s=r(a),l=n(596),u=r(l),c=n(594),f=r(c),p=n(1460),h=r(p);n(1461);var d=25,m=i["default"].createClass({displayName:"PieChart",mixins:[u["default"],f["default"]],propTypes:{name:i["default"].PropTypes.string,radius:i["default"].PropTypes.number,onClick:i["default"].PropTypes.func,lat:i["default"].PropTypes.number,lng:i["default"].PropTypes.number,originalLat:i["default"].PropTypes.number,originalLng:i["default"].PropTypes.number},getDefaultProps:function(){return{residualFractionName:"Other"}},render:function(){for(var e=this.props,t=e.name,n=e.radius,r=e.chartData,o=e.onClick,a=this.props.$geoService,l=[],u=[],c=0,f=r.length;c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var i=n(330),a=r(i),s=n(596),l=r(s),u=a["default"].createClass({displayName:"HelloWorld",mixins:[l["default"]],propTypes:{msg:a["default"].PropTypes.string.isRequired},render:function(){var e=this.props,t=e.msg,n=o(e,["msg"]);return a["default"].createElement("div",n,"Hello World! ",t)}});e.exports=u},function(e,t){"use strict";function n(e){var t={};return function(n){if(void 0!==t[n])return t[n];var r=e(n).bind(this);return t[n]=r,r}}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t=window.innerWidth&&(a=window.innerWidth-o-1,a=window.innerHeight&&(s=window.innerHeight-i-1,s<_&&(s=_));var u=l["default"].Map({width:a,height:s});(0,v["default"])(r,u)||(e.state=e.state.mergeIn(["popups","state",t,"size"],u))}})}});e.exports=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};return(0,l["default"])(t,function(t,r){return n[t]=e+"_"+r}),n}var i=n(1474),a=r(i),s=n(1475),l=r(s),u=(0,a["default"])({COMPONENT_UPDATE:null,MODAL_CLOSE:null,MODAL_OPEN:null,NOTIFY:null,POPUP_CLOSE:null,POPUP_MOVE:null,POPUP_OPEN:null,POPUP_FOCUS:null,POPUP_RESIZE:null,POPUP_TO_TAB:null,TAB_CLOSE:null,TAB_OPEN:null,TAB_POP_OUT:null,TAB_SWITCH:null,GENE_FOUND:null,TABLE_QUERY_USED:null,APP_RESIZE:null}),c=(0,a["default"])({}),f=(0,a["default"])({FETCH_USER:null,FETCH_USER_FAIL:null,FETCH_USER_SUCCESS:null,MODIFY_CONFIG:null,MODIFY_CONFIG_SUCCESS:null,MODIFY_CONFIG_FAIL:null});e.exports={SESSION:o("SESSION",u),PANOPTES:o("PANOPTES",c),API:o("API",f)}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){function r(e,t){return e&&o(e,i(t,3))}var o=n(719),i=n(723);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(489),i=r(o),a=n(586),s=r(a),l=n(1473),u=r(l),c=u["default"].API,f=i["default"].createStore({initialize:function(e){this.state=s["default"].fromJS(e),this.bindActions(c.FETCH_USER_SUCCESS,this.fetchUserSuccess,c.FETCH_USER_FAIL,this.fetchUserFail)},fetchUserSuccess:function(e){this.state=this.state.set("user",e),this.emit("change")},fetchUserFail:function(e){console.error("fetchUserFail: %o",e)},getState:function(){return this.state},getStoredSubsetsFor:function(e){return this.state.getIn(["storedSubsets",e])||[]}});e.exports=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t0,t.showByDefault="tableDefaultVisible"in t?t.tableDefaultVisible:t.isPrimKey||t.id==e.chromosome||t.id==e.position||!1}),e.hasGeoCoord=!(!e.longitude||!e.latitude)}),e}});e.exports=x},function(e,t,n){function r(e){return e?o(e,i(e)):[]}var o=n(1479),i=n(699);e.exports=r},function(e,t,n){function r(e,t){return o(t,function(t){return e[t]})}var o=n(916);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1473),i=r(o),a=n(1471),s=r(a),l=i["default"].SESSION,u={componentUpdate:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];this.dispatch(l.COMPONENT_UPDATE,{compId:e,updater:t,newComponent:n})},componentUpdateFor:(0,s["default"])(function(e){return function(t){var n=arguments.length<=1||void 0===arguments[1]?null:arguments[1];this.dispatch(l.COMPONENT_UPDATE,{compId:e,updater:t,newComponent:n})}}),modalClose:function(){this.dispatch(l.MODAL_CLOSE)},modalOpen:function(e,t){this.dispatch(l.MODAL_OPEN,{component:e,props:t})},notify:function(e){this.dispatch(l.NOTIFY,e)},popupClose:function(e){this.dispatch(l.POPUP_CLOSE,{compId:e})},popupOpen:function(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]||arguments[2];this.dispatch(l.POPUP_OPEN,{component:{component:e,props:t},switchTo:n})},popupFocus:function(e){this.dispatch(l.POPUP_FOCUS,{compId:e})},popupMove:function(e,t){this.dispatch(l.POPUP_MOVE,{compId:e,pos:t})},popupResize:function(e,t){this.dispatch(l.POPUP_RESIZE,{compId:e,size:t})},popupToTab:function(e){this.dispatch(l.POPUP_TO_TAB,{compId:e})},tabClose:function(e){this.dispatch(l.TAB_CLOSE,{compId:e})},tabOpen:function(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]||arguments[2];this.dispatch(l.TAB_OPEN,{component:{component:e,props:t},switchTo:n})},tabPopOut:function(e,t){this.dispatch(l.TAB_POP_OUT,{compId:e,pos:t})},tabSwitch:function(e){this.dispatch(l.TAB_SWITCH,{compId:e})},geneFound:function(e){this.dispatch(l.GENE_FOUND,{geneId:e})},tableQueryUsed:function(e,t){this.dispatch(l.TABLE_QUERY_USED,{table:e,query:t})},appResize:function(){this.dispatch(l.APP_RESIZE,{})}};e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1473),i=r(o),a=i["default"].SESSION,s=function(e){return{dataItemPopup:function(t){var n=t.table,r=t.primKey,o=t.switchTo,i=void 0===o||o,s=e.tablesById[n].dataItemViews,l=[];s?s.forEach(function(e){var t={Overview:function(){return{view:"Overview",props:{title:"Overview"}}},PieChartMap:function(){return{view:"PieChartMap",props:{title:e.name,chartConfig:e}}},ItemMap:function(){return{view:"ItemMap",props:{title:e.name}}},FieldList:function(){return{view:"FieldList",props:{title:e.name,fields:e.fields}}},PropertyGroup:function(){return{view:"PropertyGroup",props:{title:e.name||e.groupId,propertyGroupId:e.groupId}}},Template:function(){return{view:"Template",props:{title:e.name,content:e.content}}}};t[e.type]&&l.push(t[e.type]())}):(l.push({view:"Overview",props:{title:"Overview"}}),e.tablesById[n].hasGeoCoord&&l.push({view:"ItemMap",props:{title:"Location"}})),this.dispatch(a.POPUP_OPEN,{component:{component:"containers/DataItem",props:{table:n,primKey:r,views:l}},switchTo:i})}}};e.exports=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t=0},g=10,y=750,b={x:null,y:null},x=null,_={x:{page:"pageX",client:"clientX",envScroll:"currentPageScrollLeft"},y:{page:"pageY",client:"clientY",envScroll:"currentPageScrollTop"}},w=[h.topTouchStart,h.topTouchCancel,h.topTouchEnd,h.topTouchMove],T=[h.topMouseDown,h.topMouseMove,h.topMouseUp].concat(w),C={touchTap:{phasedRegistrationNames:{bubbled:p({onTouchTap:null}),captured:p({onTouchTapCapture:null})},dependencies:T}},E=function(){return Date.now?Date.now:function(){return+new Date}}();e.exports=i},function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,o=n&&n.length>0;return!r&&o?n[0]:r?t[0]:e}};e.exports=n},function(e,t){!function(e){"use strict";e.console=e.console||{};for(var t,n,r=e.console,o={},i=function(){},a="memory".split(","),s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=a.pop();)r[t]||(r[t]=o);for(;n=s.pop();)r[n]||(r[n]=i)}("undefined"==typeof window?this:window)},function(e,t,n){var r=n(1490);"string"==typeof r&&(r=[[e.id,r,""]]);n(764)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(763)(),t.push([e.id,"/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}",""])}])); \ No newline at end of file