/*! For license information please see 2.4aa64007.chunk.js.LICENSE.txt */ (this.webpackJsonphalin=this.webpackJsonphalin||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(837)},function(e,t,n){e.exports=n(847)()},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",m="[object Number]",y="[object Object]",g="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",T="[object Int8Array]",M="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",P="[object Uint16Array]",j="[object Uint32Array]",A=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,L=RegExp(R.source),F=RegExp(z.source),U=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,G=RegExp(V.source),$=/^\s+/,K=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",pe="[\\ud800-\\udfff]",ve="["+de+"]",me="["+he+"]",ye="\\d+",ge="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+de+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ke="(?:"+be+"|"+_e+")",Te="(?:"+Ee+"|"+_e+")",Me="(?:"+me+"|"+we+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Me+("(?:\\u200d(?:"+[xe,Se,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+Me+")*"),Ne="(?:"+[ge,Se,Oe].join("|")+")"+Ce,Pe="(?:"+[xe+me+"?",me,Se,Oe,pe].join("|")+")",je=RegExp("['\u2019]","g"),Ae=RegExp(me,"g"),Ie=RegExp(we+"(?="+we+")|"+Pe+Ce,"g"),De=RegExp([Ee+"?"+be+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ve,Ee,"$"].join("|")+")",Te+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ve,Ee+ke,"$"].join("|")+")",Ee+"?"+ke+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ye,Ne].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Ue={};Ue[E]=Ue[k]=Ue[T]=Ue[M]=Ue[C]=Ue[N]=Ue["[object Uint8ClampedArray]"]=Ue[P]=Ue[j]=!0,Ue[u]=Ue[c]=Ue[S]=Ue[l]=Ue[O]=Ue[f]=Ue[h]=Ue[d]=Ue[v]=Ue[m]=Ue[y]=Ue[g]=Ue[b]=Ue[_]=Ue[x]=!1;var Be={};Be[u]=Be[c]=Be[S]=Be[O]=Be[l]=Be[f]=Be[E]=Be[k]=Be[T]=Be[M]=Be[C]=Be[v]=Be[m]=Be[y]=Be[g]=Be[b]=Be[_]=Be[w]=Be[N]=Be["[object Uint8ClampedArray]"]=Be[P]=Be[j]=!0,Be[h]=Be[d]=Be[x]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,qe=parseInt,Ye="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ye||Ve||Function("return this")(),$e=t&&!t.nodeType&&t,Ke=$e&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Ke&&Ke.exports===$e,Xe=Ze&&Ye.process,Je=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(t){}}(),Qe=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){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 at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function ht(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Dt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var zt=kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Lt=kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+He[e]}function Ut(e){return Re.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n=(t=null==t?Ge:Zt.defaults(Ge.Object(),t,Zt.pick(Ge,Le))).Array,r=t.Date,i=t.Error,K=t.Function,he=t.Math,de=t.Object,pe=t.RegExp,ve=t.String,me=t.TypeError,ye=n.prototype,ge=K.prototype,be=de.prototype,_e=t["__core-js_shared__"],we=ge.toString,xe=be.hasOwnProperty,Se=0,Oe=function(){var e=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ee=be.toString,ke=we.call(de),Te=Ge._,Me=pe("^"+we.call(xe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=Ze?t.Buffer:void 0,Ne=t.Symbol,Pe=t.Uint8Array,Ie=Ce?Ce.allocUnsafe:void 0,Re=Ht(de.getPrototypeOf,de),He=de.create,Ye=be.propertyIsEnumerable,Ve=ye.splice,$e=Ne?Ne.isConcatSpreadable:void 0,Ke=Ne?Ne.iterator:void 0,Xe=Ne?Ne.toStringTag:void 0,Je=function(){try{var e=Qi(de,"defineProperty");return e({},"",{}),e}catch(t){}}(),gt=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,kt=r&&r.now!==Ge.Date.now&&r.now,Xt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Jt=he.ceil,Qt=he.floor,en=de.getOwnPropertySymbols,tn=Ce?Ce.isBuffer:void 0,nn=t.isFinite,rn=ye.join,on=Ht(de.keys,de),an=he.max,sn=he.min,un=r.now,cn=t.parseInt,ln=he.random,fn=ye.reverse,hn=Qi(t,"DataView"),dn=Qi(t,"Map"),pn=Qi(t,"Promise"),vn=Qi(t,"Set"),mn=Qi(t,"WeakMap"),yn=Qi(de,"create"),gn=mn&&new mn,bn={},_n=To(hn),wn=To(dn),xn=To(pn),Sn=To(vn),On=To(mn),En=Ne?Ne.prototype:void 0,kn=En?En.valueOf:void 0,Tn=En?En.toString:void 0;function Mn(e){if(qa(e)&&!Aa(e)&&!(e instanceof jn)){if(e instanceof Pn)return e;if(xe.call(e,"__wrapped__"))return Mo(e)}return new Pn(e)}var Cn=function(){function e(){}return function(t){if(!Wa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Nn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Zn(e,t,n,r,i,o){var a,s=1&t,c=2&t,h=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Wa(e))return e;var x=Aa(e);if(x){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var A=no(e),I=A==d||A==p;if(za(e))return fi(e,s);if(A==y||A==u||I&&!i){if(a=c||I?{}:io(e),!s)return c?function(e,t){return gi(e,to(e),t)}(e,function(e,t){return e&&gi(t,ws(t),e)}(a,e)):function(e,t){return gi(e,eo(e),t)}(e,Vn(a,e))}else{if(!Be[A])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return hi(e);case l:case f:return new r(+e);case O:return function(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case k:case T:case M:case C:case N:case"[object Uint8ClampedArray]":case P:case j:return di(e,n);case v:return new r;case m:case _:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,kn?de(kn.call(i)):{}}var i}(e,A,s)}}o||(o=new zn);var D=o.get(e);if(D)return D;o.set(e,a),Ka(e)?e.forEach((function(r){a.add(Zn(r,t,n,r,e,o))})):Ya(e)&&e.forEach((function(r,i){a.set(i,Zn(r,t,n,i,e,o))}));var R=x?void 0:(h?c?Vi:Yi:c?ws:_s)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Wn(a,i,Zn(r,t,n,i,e,o))})),a}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=de(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new me(o);return _o((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=dt(t,Pt(n))),r?(o=ht,a=!1):t.length>=200&&(o=At,a=!1,t=new Rn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new An,map:new(dn||In),string:new An}},Dn.prototype.delete=function(e){var t=Xi(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Xi(this,e).get(e)},Dn.prototype.has=function(e){return Xi(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(ur),tr=wi(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=xi(),sr=xi(!0);function ur(e,t){return e&&ar(e,t,_s)}function cr(e,t){return e&&sr(e,t,_s)}function lr(e,t){return lt(t,(function(t){return Ua(e[t])}))}function fr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&nt}function vr(e,t){return null!=e&&xe.call(e,t)}function mr(e,t){return null!=e&&t in de(e)}function yr(e,t,r){for(var i=r?ht:ft,o=e[0].length,a=e.length,s=a,u=n(a),c=1/0,l=[];s--;){var f=e[s];s&&t&&(f=dt(f,Pt(t))),c=sn(f.length,c),u[s]=!r&&(t||o>=120&&f.length>=120)?new Rn(s&&f):void 0}f=e[0];var h=-1,d=u[0];e:for(;++h=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ar(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ve.call(s,u,1),Ve.call(e,u,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ve.call(e,i,1):Qr(e,i)}}return e}function Rr(e,t){return e+Qt(ln()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Lr(e,t){return wo(vo(e,t,Vs),e+"")}function Fr(e){return Fn(Cs(e))}function Ur(e,t){var n=Cs(e);return Oo(n,Kn(t,0,n.length))}function Br(e,t,n,r){if(!Wa(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Xa(a)&&(n?a<=t:a=200){var c=t?null:zi(e);if(c)return qt(c);a=!1,i=At,u=new Rn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var li=gt||function(e){return Ge.clearTimeout(e)};function fi(e,t){if(t)return e.slice();var n=e.length,r=Ie?Ie(n):new e.constructor(n);return e.copy(r),r}function hi(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function di(e,t){var n=t?hi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Xa(e),a=void 0!==t,s=null===t,u=t===t,c=Xa(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=de(t);++r-1?i[o?t[a]:a]:void 0}}function Ti(e){return qi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new me(o);if(i&&!s&&"wrapper"==$i(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&b.reverse(),f&&cs))return!1;var c=o.get(e),l=o.get(t);if(c&&l)return c==t&&l==e;var f=-1,h=!0,d=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(J):[]}(r),n)))}function So(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oo(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$o(e,n)}));function ta(e){var t=Mn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=qi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof jn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){xe.call(e,n)?++e[n]:Gn(e,n,1)}));var oa=ki(jo),aa=ki(Ao);function sa(e,t){return(Aa(e)?st:er)(e,Zi(t,3))}function ua(e,t){return(Aa(e)?ut:tr)(e,Zi(t,3))}var ca=bi((function(e,t,n){xe.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var la=Lr((function(e,t,r){var i=-1,o="function"==typeof t,a=Da(e)?n(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,r):gr(e,t,r)})),a})),fa=bi((function(e,t,n){Gn(e,n,t)}));function ha(e,t){return(Aa(e)?dt:Tr)(e,Zi(t,3))}var da=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=Lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,or(t,1),[])})),va=kt||function(){return Ge.Date.now()};function ma(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new me(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ga=Lr((function(e,t,n){var r=1;if(n.length){var i=Wt(n,Ki(ga));r|=32}return Fi(e,r,t,n,i)})),ba=Lr((function(e,t,n){var r=3;if(n.length){var i=Wt(n,Ki(ba));r|=32}return Fi(t,r,e,n,i)}));function _a(e,t,n){var r,i,a,s,u,c,l=0,f=!1,h=!1,d=!0;if("function"!=typeof e)throw new me(o);function p(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function v(e){return l=e,u=_o(y,t),f?p(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-l>=a}function y(){var e=va();if(m(e))return g(e);u=_o(y,function(e){var n=t-(e-c);return h?sn(n,a-(e-l)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=i=void 0,s)}function b(){var e=va(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return v(c);if(h)return li(u),u=_o(y,t),p(c)}return void 0===u&&(u=_o(y,t)),s}return t=os(t)||0,Wa(n)&&(f=!!n.leading,a=(h="maxWait"in n)?an(os(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&li(u),l=0,r=c=i=u=void 0},b.flush=function(){return void 0===u?s:g(va())},b}var wa=Lr((function(e,t){return Jn(e,1,t)})),xa=Lr((function(e,t,n){return Jn(e,os(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sa.Cache||Dn),n}function Oa(e){if("function"!=typeof e)throw new me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Dn;var Ea=ui((function(e,t){var n=(t=1==t.length&&Aa(t[0])?dt(t[0],Pt(Zi())):dt(or(t,1),Pt(Zi()))).length;return Lr((function(r){for(var i=-1,o=sn(r.length,n);++i=t})),ja=br(function(){return arguments}())?br:function(e){return qa(e)&&xe.call(e,"callee")&&!Ye.call(e,"callee")},Aa=n.isArray,Ia=Qe?Pt(Qe):function(e){return qa(e)&&dr(e)==S};function Da(e){return null!=e&&Ha(e.length)&&!Ua(e)}function Ra(e){return qa(e)&&Da(e)}var za=tn||ou,La=et?Pt(et):function(e){return qa(e)&&dr(e)==f};function Fa(e){if(!qa(e))return!1;var t=dr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ga(e)}function Ua(e){if(!Wa(e))return!1;var t=dr(e);return t==d||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ba(e){return"number"==typeof e&&e==rs(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Ya=tt?Pt(tt):function(e){return qa(e)&&no(e)==v};function Va(e){return"number"==typeof e||qa(e)&&dr(e)==m}function Ga(e){if(!qa(e)||dr(e)!=y)return!1;var t=Re(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==ke}var $a=nt?Pt(nt):function(e){return qa(e)&&dr(e)==g};var Ka=rt?Pt(rt):function(e){return qa(e)&&no(e)==b};function Za(e){return"string"==typeof e||!Aa(e)&&qa(e)&&dr(e)==_}function Xa(e){return"symbol"==typeof e||qa(e)&&dr(e)==w}var Ja=it?Pt(it):function(e){return qa(e)&&Ha(e.length)&&!!Ue[dr(e)]};var Qa=Ii(kr),es=Ii((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Da(e))return Za(e)?Gt(e):yi(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=no(e);return(t==v?Bt:t==b?qt:Cs)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t===t?n?t-n:t:0}function is(e){return e?Kn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Nt(e);var n=oe.test(e);return n||se.test(e)?qe(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return gi(e,ws(e))}function ss(e){return null==e?"":Xr(e)}var us=_i((function(e,t){if(fo(t)||Da(t))gi(t,_s(t),e);else for(var n in t)xe.call(t,n)&&Wn(e,n,t[n])})),cs=_i((function(e,t){gi(t,ws(t),e)})),ls=_i((function(e,t,n,r){gi(t,ws(t),e,r)})),fs=_i((function(e,t,n,r){gi(t,_s(t),e,r)})),hs=qi($n);var ds=Lr((function(e,t){e=de(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n1),t})),gi(e,Vi(e),n),r&&(n=Zn(n,7,Hi));for(var i=t.length;i--;)Qr(n,t[i]);return n}));var Es=qi((function(e,t){return null==e?{}:function(e,t){return Ar(e,t,(function(t,n){return ms(e,n)}))}(e,t)}));function ks(e,t){if(null==e)return{};var n=dt(Vi(e),(function(e){return[e]}));return t=Zi(t),Ar(e,n,(function(e,n){return t(e,n[0])}))}var Ts=Li(_s),Ms=Li(ws);function Cs(e){return null==e?[]:jt(e,_s(e))}var Ns=Oi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(ss(e).toLowerCase())}function js(e){return(e=ss(e))&&e.replace(ce,zt).replace(Ae,"")}var As=Oi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Oi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=Si("toLowerCase");var Rs=Oi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Oi((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Ls=Oi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=Si("toUpperCase");function Us(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return ze.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Bs=Lr((function(e,t){try{return ot(e,void 0,t)}catch(n){return Fa(n)?n:new i(n)}})),Hs=qi((function(e,t){return st(t,(function(t){t=ko(t),Gn(e,t,ga(e[t],e))})),e}));function Ws(e){return function(){return e}}var qs=Ti(),Ys=Ti(!0);function Vs(e){return e}function Gs(e){return Sr("function"==typeof e?e:Zn(e,1))}var $s=Lr((function(e,t){return function(n){return gr(n,e,t)}})),Ks=Lr((function(e,t){return function(n){return gr(e,n,t)}}));function Zs(e,t,n){var r=_s(t),i=lr(t,r);null!=n||Wa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=lr(t,_s(t)));var o=!(Wa(n)&&"chain"in n)||!!n.chain,a=Ua(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xs(){}var Js=Pi(dt),Qs=Pi(ct),eu=Pi(yt);function tu(e){return uo(e)?Et(ko(e)):function(e){return function(t){return fr(t,e)}}(e)}var nu=Ai(),ru=Ai(!0);function iu(){return[]}function ou(){return!1}var au=Ni((function(e,t){return e+t}),0),su=Ri("ceil"),uu=Ni((function(e,t){return e/t}),1),cu=Ri("floor");var lu=Ni((function(e,t){return e*t}),1),fu=Ri("round"),hu=Ni((function(e,t){return e-t}),0);return Mn.after=function(e,t){if("function"!=typeof t)throw new me(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=ma,Mn.assign=us,Mn.assignIn=cs,Mn.assignInWith=ls,Mn.assignWith=fs,Mn.at=hs,Mn.before=ya,Mn.bind=ga,Mn.bindAll=Hs,Mn.bindKey=ba,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Aa(e)?e:[e]},Mn.chain=ta,Mn.chunk=function(e,t,r){t=(r?so(e,t,r):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=n(Jt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Xr(t))&&Ut(e)?ci(Gt(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new me(o);return t=null==t?0:an(rs(t),0),Lr((function(n){var r=n[t],i=ci(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},Mn.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Zi(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?ti(e,Zi(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new me(o);return Wa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:r,maxWait:t,trailing:i})},Mn.thru=na,Mn.toArray=ts,Mn.toPairs=Ts,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Aa(e)?dt(e,ko):Xa(e)?[e]:yi(Eo(ss(e)))},Mn.toPlainObject=as,Mn.transform=function(e,t,n){var r=Aa(e),i=r||za(e)||Ja(e);if(t=Zi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Wa(e)&&Ua(o)?Cn(Re(e)):{}}return(i?st:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},Mn.unary=function(e){return ma(e,1)},Mn.union=qo,Mn.unionBy=Yo,Mn.unionWith=Vo,Mn.uniq=function(e){return e&&e.length?Jr(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?Jr(e,Zi(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},Mn.unset=function(e,t){return null==e||Qr(e,t)},Mn.unzip=Go,Mn.unzipWith=$o,Mn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},Mn.values=Cs,Mn.valuesIn=function(e){return null==e?[]:jt(e,ws(e))},Mn.without=Ko,Mn.words=Us,Mn.wrap=function(e,t){return ka(ai(t),e)},Mn.xor=Zo,Mn.xorBy=Xo,Mn.xorWith=Jo,Mn.zip=Qo,Mn.zipObject=function(e,t){return ii(e||[],t||[],Wn)},Mn.zipObjectDeep=function(e,t){return ii(e||[],t||[],Br)},Mn.zipWith=ea,Mn.entries=Ts,Mn.entriesIn=Ms,Mn.extend=cs,Mn.extendWith=ls,Zs(Mn,Mn),Mn.add=au,Mn.attempt=Bs,Mn.camelCase=Ns,Mn.capitalize=Ps,Mn.ceil=su,Mn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))===n?n:0),void 0!==t&&(t=(t=os(t))===t?t:0),Kn(os(e),t,n)},Mn.clone=function(e){return Zn(e,4)},Mn.cloneDeep=function(e){return Zn(e,5)},Mn.cloneDeepWith=function(e,t){return Zn(e,5,t="function"==typeof t?t:void 0)},Mn.cloneWith=function(e,t){return Zn(e,4,t="function"==typeof t?t:void 0)},Mn.conformsTo=function(e,t){return null==t||Xn(e,t,_s(t))},Mn.deburr=js,Mn.defaultTo=function(e,t){return null==e||e!==e?t:e},Mn.divide=uu,Mn.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,i=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=Ca,Mn.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(z,Lt):e},Mn.escapeRegExp=function(e){return(e=ss(e))&&G.test(e)?e.replace(V,"\\$&"):e},Mn.every=function(e,t,n){var r=Aa(e)?ct:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Zi(t,3))},Mn.find=oa,Mn.findIndex=jo,Mn.findKey=function(e,t){return bt(e,Zi(t,3),ur)},Mn.findLast=aa,Mn.findLastIndex=Ao,Mn.findLastKey=function(e,t){return bt(e,Zi(t,3),cr)},Mn.floor=cu,Mn.forEach=sa,Mn.forEachRight=ua,Mn.forIn=function(e,t){return null==e?e:ar(e,Zi(t,3),ws)},Mn.forInRight=function(e,t){return null==e?e:sr(e,Zi(t,3),ws)},Mn.forOwn=function(e,t){return e&&ur(e,Zi(t,3))},Mn.forOwnRight=function(e,t){return e&&cr(e,Zi(t,3))},Mn.get=vs,Mn.gt=Na,Mn.gte=Pa,Mn.has=function(e,t){return null!=e&&ro(e,t,vr)},Mn.hasIn=ms,Mn.head=Do,Mn.identity=Vs,Mn.includes=function(e,t,n,r){e=Da(e)?e:Cs(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Za(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},Mn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e=-9007199254740991&&e<=9007199254740991},Mn.isSet=Ka,Mn.isString=Za,Mn.isSymbol=Xa,Mn.isTypedArray=Ja,Mn.isUndefined=function(e){return void 0===e},Mn.isWeakMap=function(e){return qa(e)&&no(e)==x},Mn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==dr(e)},Mn.join=function(e,t){return null==e?"":rn.call(e,t)},Mn.kebabCase=As,Mn.last=Fo,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,St,i,!0)},Mn.lowerCase=Is,Mn.lowerFirst=Ds,Mn.lt=Qa,Mn.lte=es,Mn.max=function(e){return e&&e.length?rr(e,Vs,pr):void 0},Mn.maxBy=function(e,t){return e&&e.length?rr(e,Zi(t,2),pr):void 0},Mn.mean=function(e){return Ot(e,Vs)},Mn.meanBy=function(e,t){return Ot(e,Zi(t,2))},Mn.min=function(e){return e&&e.length?rr(e,Vs,kr):void 0},Mn.minBy=function(e,t){return e&&e.length?rr(e,Zi(t,2),kr):void 0},Mn.stubArray=iu,Mn.stubFalse=ou,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=lu,Mn.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},Mn.noConflict=function(){return Ge._===this&&(Ge._=Te),this},Mn.noop=Xs,Mn.now=va,Mn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ji(Qt(i),n)+e+ji(Jt(i),n)},Mn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Vt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ln();return sn(e+i*(t-e+We("1e-"+((i+"").length-1))),t)}return Rr(e,t)},Mn.reduce=function(e,t,n){var r=Aa(e)?vt:Tt,i=arguments.length<3;return r(e,Zi(t,4),n,i,er)},Mn.reduceRight=function(e,t,n){var r=Aa(e)?mt:Tt,i=arguments.length<3;return r(e,Zi(t,4),n,i,tr)},Mn.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),zr(ss(e),t)},Mn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Ct(r,t=Zi(t));++n=o)return e;var s=n-Vt(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),$a(i)){if(e.slice(s).search(i)){var c,l=u;for(i.global||(i=pe(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Xr(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},Mn.unescape=function(e){return(e=ss(e))&&L.test(e)?e.replace(R,Kt):e},Mn.uniqueId=function(e){var t=++Se;return ss(e)+t},Mn.upperCase=Ls,Mn.upperFirst=Fs,Mn.each=sa,Mn.eachRight=ua,Mn.first=Do,Zs(Mn,function(){var e={};return ur(Mn,(function(t,n){xe.call(Mn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Mn.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mn[e].placeholder=Mn})),st(["drop","take"],(function(e,t){jn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new jn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;jn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");jn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[n](1)}})),jn.prototype.compact=function(){return this.filter(Vs)},jn.prototype.find=function(e){return this.filter(e).head()},jn.prototype.findLast=function(e){return this.reverse().find(e)},jn.prototype.invokeMap=Lr((function(e,t){return"function"==typeof e?new jn(this):this.map((function(n){return gr(n,e,t)}))})),jn.prototype.reject=function(e){return this.filter(Oa(Zi(e)))},jn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jn.prototype.toArray=function(){return this.take(4294967295)},ur(jn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof jn,u=a[0],c=s||Aa(t),l=function(e){var t=i.apply(Mn,pt([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,h=!!this.__actions__.length,d=o&&!f,p=s&&!h;if(!o&&c){t=p?t:new jn(this);var v=e.apply(t,a);return v.__actions__.push({func:na,args:[l],thisArg:void 0}),new Pn(v,f)}return d&&p?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Aa(i)?i:[],e)}return this[n]((function(n){return t.apply(Aa(n)?n:[],e)}))}})),ur(jn.prototype,(function(e,t){var n=Mn[t];if(n){var r=n.name+"";xe.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],jn.prototype.clone=function(){var e=new jn(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},jn.prototype.reverse=function(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Aa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof Nn;){var r=Mo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jn){var t=e;return this.__actions__.length&&(t=new jn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Wo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Wo)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Ke&&(Mn.prototype[Ke]=function(){return this}),Mn}();Ge._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(77),n(143)(e))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t")}(e,t,0)},t.validateIndex=function(e,t){if(!r.default.isNumber(e)||!r.default.isInteger(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"===typeof t&&e>=t)throw new a.default(e,t)},t.resize=function(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new Error("Resizing to scalar is not supported");t.forEach((function(e){if(!r.default.isNumber(e)||!r.default.isInteger(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+i.default.format(t)+")")}));var o=void 0!==n?n:0;return function e(t,n,r,i){var o,a,s=t.length,u=n[r],c=Math.min(s,u);if(t.length=u,r>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},I={};function D(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=z(t,e.localeData()),A[t]=A[t]||function(e){var t,n,r,i=e.match(P);for(t=0,n=i.length;t=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var L={};function F(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function U(e){return"string"===typeof e?L[e]||L[e.toLowerCase()]:void 0}function B(e){var t,n,r={};for(n in e)a(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var H={};function W(e,t){H[e]=t}function q(e){return e%4===0&&e%100!==0||e%400===0}function Y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Y(t)),n}function G(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,X=/\d/,J=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ue=/\d+/,ce=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){Z[e]=T(t)?t:function(e,r){return e&&n?n:t}}function pe(e,t){return a(Z,e)?Z[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var me,ye={};function ge(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var je=G("FullYear",!0);function Ae(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function De(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+De(e,r,i);return s<=0?a=Pe(o=e-1)+s:s>Pe(e)?(o=e+1,a=s-Pe(e)):(o=e,a=s),{year:o,dayOfYear:a}}function ze(e,t,n){var r,i,o=De(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Le(i=e.year()-1,t,n):a>Le(e.year(),t,n)?(r=a-Le(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Le(e,t,n){var r=De(e,t,n),i=De(e+1,t,n);return(Pe(e)-r+i)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),W("week",5),W("isoWeek",5),de("w",ne),de("ww",ne,J),de("W",ne),de("WW",ne,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=V(e)})),D("d",0,"do","day"),D("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),D("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),D("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),de("d",ne),de("e",ne),de("E",ne),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=V(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),He="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=he,qe=he,Ye=he;function Ve(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=me.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=me.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=me.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=me.call(this._weekdaysParse,a))||-1!==(i=me.call(this._shortWeekdaysParse,a))||-1!==(i=me.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=me.call(this._shortWeekdaysParse,a))||-1!==(i=me.call(this._weekdaysParse,a))||-1!==(i=me.call(this._minWeekdaysParse,a))?i:null:-1!==(i=me.call(this._minWeekdaysParse,a))||-1!==(i=me.call(this._weekdaysParse,a))||-1!==(i=me.call(this._shortWeekdaysParse,a))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=ve(this.weekdaysMin(n,"")),i=ve(this.weekdaysShort(n,"")),o=ve(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){D(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,$e),D("k",["kk",2],0,(function(){return this.hours()||24})),D("hmm",0,0,(function(){return""+$e.apply(this)+N(this.minutes(),2)})),D("hmmss",0,0,(function(){return""+$e.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),D("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),D("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),F("hour","h"),W("hour",13),de("a",Ze),de("A",Ze),de("H",ne),de("h",ne),de("k",ne),de("HH",ne,J),de("hh",ne,J),de("kk",ne,J),de("hmm",re),de("hmmss",ie),de("Hmm",re),de("Hmmss",ie),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=V(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=V(e),p(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r)),p(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(i)),p(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(i))}));var Xe,Je=G("Hours",!0),Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:He,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Xe}(e)}function ut(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,i,o,a,s=e._i,u=ct.exec(s)||lt.exec(s);if(u){for(p(e).iso=!0,t=0,n=ht.length;t7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=ze(Et(),o,a),n=_t(t.gg,e._a[0],c.year),r=_t(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Le(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=Re(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],i[0]),(e._dayOfYear>Pe(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:Ae).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,o,a,s,u=""+e._i,c=u.length,l=0;for(i=z(e._f,e._locale).match(P)||[],t=0;t0&&p(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),l+=n.length),I[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-l,u.length>0&&p(e).unusedInput.push(u),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),ut(e)}else bt(e);else yt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(ut(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:m()}));function Mt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e(o=Le(e,r,i))&&(t=o),cn.call(this,e,t,n,r,i))}function cn(e,t,n,r,i){var o=Re(e,t,n,r,i),a=Ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),de("N",on),de("NN",on),de("NNN",on),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?p(n).era=i:p(n).invalidEra=e})),de("y",ue),de("yy",ue),de("yyy",ue),de("yyyy",ue),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),D(0,["gg",2],0,(function(){return this.weekYear()%100})),D(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),de("G",ce),de("g",ce),de("GG",ne,J),de("gg",ne,J),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",se,te),de("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=V(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),D("Q",0,"Qo","quarter"),F("quarter","Q"),W("quarter",7),de("Q",X),ge("Q",(function(e,t){t[1]=3*(V(e)-1)})),D("D",["DD",2],"Do","date"),F("date","D"),W("date",9),de("D",ne),de("DD",ne,J),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=V(e.match(ne)[0])}));var ln=G("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),W("dayOfYear",4),de("DDD",oe),de("DDDD",Q),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),D("m",["mm",2],0,"minute"),F("minute","m"),W("minute",14),de("m",ne),de("mm",ne,J),ge(["m","mm"],4);var fn=G("Minutes",!1);D("s",["ss",2],0,"second"),F("second","s"),W("second",15),de("s",ne),de("ss",ne,J),ge(["s","ss"],5);var hn,dn,pn=G("Seconds",!1);for(D("S",0,0,(function(){return~~(this.millisecond()/100)})),D(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),D(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),D(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),D(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),D(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),D(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),W("millisecond",16),de("S",oe,X),de("SS",oe,J),de("SSS",oe,Q),hn="SSSS";hn.length<=9;hn+="S")de(hn,ue);function vn(e,t){t[6]=V(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ge(hn,vn);dn=G("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var mn=_.prototype;function yn(e){return e}mn.add=Vt,mn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),i=Rt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Et(n)))},mn.clone=function(){return new _(this)},mn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Y(o)},mn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},mn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},mn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Et(e).isValid())?Bt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.fromNow=function(e){return this.from(Et(),e)},mn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Et(e).isValid())?Bt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},mn.toNow=function(e){return this.to(Et(),e)},mn.get=function(e){return T(this[e=U(e)])?this[e]():this},mn.invalidAt=function(){return p(this).overflow},mn.isAfter=function(e,t){var n=w(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),mn.toJSON=function(){return this.isValid()?this.toISOString():null},mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mn.unix=function(){return Math.floor(this.valueOf()/1e3)},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Lt,mn.isUTC=Lt,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=S("dates accessor is deprecated. Use date instead.",ln),mn.months=S("months accessor is deprecated. Use month instead",Ce),mn.years=S("years accessor is deprecated. Use year instead",je),mn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),mn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=St(t))._a?(e=t._isUTC?d(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=C.prototype;function bn(e,t,n,r){var i=st(),o=d().set(r,t);return i[n](o,e)}function _n(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=yn,gn.postformat=yn,gn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)a(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n=0)return u[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Te.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ee),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var xn=Math.abs;function Sn(e,t,n,r){var i=Bt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var Mn=Tn("ms"),Cn=Tn("s"),Nn=Tn("m"),Pn=Tn("h"),jn=Tn("d"),An=Tn("w"),In=Tn("M"),Dn=Tn("Q"),Rn=Tn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ln=zn("milliseconds"),Fn=zn("seconds"),Un=zn("minutes"),Bn=zn("hours"),Hn=zn("days"),Wn=zn("months"),qn=zn("years"),Yn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var $n=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=$n(this._milliseconds)/1e3,c=$n(this._days),l=$n(this._months),f=this.asSeconds();return f?(e=Y(u/60),t=Y(e/60),u%=60,e%=60,n=Y(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=Kn(this._months)!==Kn(f)?"-":"",a=Kn(this._days)!==Kn(f)?"-":"",s=Kn(this._milliseconds)!==Kn(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Xn=Nt.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},Xn.add=function(e,t){return Sn(this,e,t,1)},Xn.subtract=function(e,t){return Sn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+En(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Mn,Xn.asSeconds=Cn,Xn.asMinutes=Nn,Xn.asHours=Pn,Xn.asDays=jn,Xn.asWeeks=An,Xn.asMonths=In,Xn.asQuarters=Dn,Xn.asYears=Rn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*On(kn(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=Y(o/1e3),u.seconds=e%60,t=Y(e/60),u.minutes=t%60,n=Y(t/60),u.hours=n%24,a+=Y(n/24),i=Y(En(a)),s+=i,a-=On(kn(i)),r=Y(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Xn.clone=function(){return Bt(this)},Xn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Ln,Xn.seconds=Fn,Xn.minutes=Un,Xn.hours=Bn,Xn.days=Hn,Xn.weeks=function(){return Y(this.days()/7)},Xn.months=Wn,Xn.years=qn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=Vn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Bt(e).abs(),o=Yn(i.as("s")),a=Yn(i.as("m")),s=Yn(i.as("h")),u=Yn(i.as("d")),c=Yn(i.as("M")),l=Yn(i.as("w")),f=Yn(i.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=r,Gn.apply(null,h)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Zn,Xn.toString=Zn,Xn.toJSON=Zn,Xn.locale=Jt,Xn.localeData=en,Xn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Xn.lang=Qt,D("X",0,0,"unix"),D("x",0,0,"valueOf"),de("x",ce),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(V(e))})),r.version="2.29.1",t=Et,r.fn=mn,r.min=function(){var e=[].slice.call(arguments,0);return Mt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Mt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Et(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=l,r.locale=ot,r.invalid=m,r.duration=Bt,r.isMoment=w,r.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},r.parseZone=function(){return Et.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Pt,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Qe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(M(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=M(i,t),null==r&&(t.abbr=e),(n=new C(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return O(et)},r.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},r.normalizeUnits=U,r.relativeTimeRounding=function(e){return void 0===e?Yn:"function"===typeof e&&(Yn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=mn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(143)(e))},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(430),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;t0?1:e<0?-1:0},t.format=function(e,n){if("function"===typeof n)return n(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var i,o="auto";switch(n&&(n.notation&&(o=n.notation),t.isNumber(n)?i=n:t.isNumber(n.precision)&&(i=n.precision)),o){case"fixed":return t.toFixed(e,i);case"exponential":return t.toExponential(e,i);case"engineering":return t.toEngineering(e,i);case"auto":if(n&&n.exponential&&(void 0!==n.exponential.lower||void 0!==n.exponential.upper)){var a=r.map(n,(function(e){return e}));return a.exponential=void 0,void 0!==n.exponential.lower&&(a.lowerExp=Math.round(Math.log(n.exponential.lower)/Math.LN10)),void 0!==n.exponential.upper&&(a.upperExp=Math.round(Math.log(n.exponential.upper)/Math.LN10)),console.warn("Deprecation warning: Formatting options exponential.lower and exponential.upper (minimum and maximum value) are replaced with exponential.lowerExp and exponential.upperExp (minimum and maximum exponent) since version 4.0.0. Replace "+JSON.stringify(n)+" with "+JSON.stringify(a)),t.toPrecision(e,i,a)}return t.toPrecision(e,i,n&&n).replace(/((\.\d*?)(0+))($|e)/,(function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t}));default:throw new Error('Unknown notation "'+o+'". Choose "auto", "exponential", or "fixed".')}},t.splitNumber=function(e){var t=String(e).toLowerCase().match(/^0*?(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var n=t[1],r=t[2],i=parseFloat(t[4]||"0"),o=r.indexOf(".");i+=-1!==o?o-1:r.length-1;var a=r.replace(".","").replace(/^0*/,(function(e){return i-=e.length,""})).replace(/0*$/,"").split("").map((function(e){return parseInt(e)}));return 0===a.length&&(a.push(0),i++),{sign:n,coefficients:a,exponent:i}},t.toEngineering=function(e,n){if(isNaN(e)||!isFinite(e))return String(e);var r=t.roundDigits(t.splitNumber(e),n),i=r.exponent,o=r.coefficients,a=i%3===0?i:i<0?i-3-i%3:i-i%3;if(t.isNumber(n))for(;n>o.length||i-a+1>o.length;)o.push(0);else for(var s=i>=0?i:Math.abs(a);o.length-10;)c++,u--;var l=o.slice(c).join(""),f=t.isNumber(n)&&l.length||l.match(/[1-9]/)?"."+l:"",h=o.slice(0,c).join("")+f+"e"+(i>=0?"+":"")+a.toString();return r.sign+h},t.toFixed=function(e,n){if(isNaN(e)||!isFinite(e))return String(e);var r=t.splitNumber(e),o="number"===typeof n?t.roundDigits(r,r.exponent+1+n):r,a=o.coefficients,s=o.exponent+1,u=s+(n||0);return a.length0?"."+a.join(""):"")+"e"+(s>=0?"+":"")+s},t.toPrecision=function(e,n,r){if(isNaN(e)||!isFinite(e))return String(e);var o=r&&void 0!==r.lowerExp?r.lowerExp:-3,a=r&&void 0!==r.upperExp?r.upperExp:5,s=t.splitNumber(e);if(s.exponent=a)return t.toExponential(e,n);var u=n?t.roundDigits(s,n):s,c=u.coefficients,l=u.exponent;c.length0?l:0;return f<(c=i(-l).concat(c)).length-1&&c.splice(f+1,0,"."),u.sign+c.join("")},t.roundDigits=function(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t&&r.splice(t,r.length-t)[0]>=5){var i=t-1;for(r[i]++;10===r[i];)r.pop(),0===i&&(r.unshift(0),n.exponent++,i++),r[--i]++}return n},t.digits=function(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length},t.DBL_EPSILON=Number.EPSILON||2220446049250313e-31,t.nearlyEqual=function(e,n,r){if(null===r||void 0===r)return e===n;if(e===n)return!0;if(isNaN(e)||isNaN(n))return!1;if(isFinite(e)&&isFinite(n)){var i=Math.abs(e-n);return i1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n&&"equal"===e)return"equal width";var r=i()(e);return"string"!==r&&"number"!==r||!t?Object(o.a)(e):"".concat(Object(o.a)(e)," ").concat(t)}},function(e,t){function n(e,t){for(var n=0;n>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},t.defaultTemplate="\\mathrm{${name}}\\left(${args}\\right)";var i={deg:"^\\circ"};t.escape=function(e){return r(e,{preserveFormatting:!0})},t.toSymbol=function(e,n){return(n="undefined"!==typeof n&&n)?i.hasOwnProperty(e)?i[e]:"\\mathrm{"+t.escape(e)+"}":t.symbols.hasOwnProperty(e)?t.symbols[e]:t.escape(e)}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,u="undefined"!==typeof Symbol?Symbol.prototype:null,c=a.push,l=a.slice,f=s.toString,h=s.hasOwnProperty,d=Array.isArray,p=Object.keys,v=Object.create,m=function(){},y=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};t.nodeType?i._=y:(!n.nodeType&&n.exports&&(t=n.exports=y),t._=y),y.VERSION="1.9.2";var g,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return y.iteratee!==g?y.iteratee(e,t):null==e?y.identity:y.isFunction(e)?b(e,t,n):y.isObject(e)&&!y.isArray(e)?y.matcher(e):y.property(e)};y.iteratee=g=function(e,t){return _(e,t,1/0)};var w=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i=0&&t<=k};y.each=y.forEach=function(e,t,n){var r,i;if(t=b(t,n),M(e))for(r=0,i=e.length;r0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,b(n,i,4),r,o)}};y.reduce=y.foldl=y.inject=C(1),y.reduceRight=y.foldr=C(-1),y.find=y.detect=function(e,t,n){var r=(M(e)?y.findIndex:y.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},y.filter=y.select=function(e,t,n){var r=[];return t=_(t,n),y.each(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r},y.reject=function(e,t,n){return y.filter(e,y.negate(_(t)),n)},y.every=y.all=function(e,t,n){t=_(t,n);for(var r=!M(e)&&y.keys(e),i=(r||e).length,o=0;o=0},y.invoke=w((function(e,t,n){var r,i;return y.isFunction(t)?i=t:y.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),y.map(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=E(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))})),y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=M(e)?e:y.values(e)).length;so&&(o=r);else t=_(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o},y.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=M(e)?e:y.values(e)).length;sr||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!==i)return(o=t(l.call(r,a,s),y.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&ot?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},y.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w((function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=y.delay(o,t,this,a);return i}));return a.cancel=function(){clearTimeout(r),r=null},a},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2),y.restArguments=w;var R=!{toString:null}.propertyIsEnumerable("toString"),z=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(e,t){var n=z.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||s,o="constructor";for(O(e,o)&&!y.contains(t,o)&&t.push(o);n--;)(o=z[n])in e&&e[o]!==i[o]&&!y.contains(t,o)&&t.push(o)};y.keys=function(e){if(!y.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)O(e,n)&&t.push(n);return R&&L(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return R&&L(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i1&&(r=b(r,t[1])),t=y.allKeys(e)):(r=H,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=y.map(j(t,!1,!1),String),r=function(e,n){return!y.contains(t,n)}),y.pick(e,r,n)})),y.defaults=F(y.allKeys,!0),y.create=function(e,t){var n=x(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o":">",'"':""","'":"'","`":"`"},Y=y.invert(q),V=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};y.escape=V(q),y.unescape=V(Y),y.result=function(e,t,n){y.isArray(t)||(t=[t]);var r=t.length;if(!r)return y.isFunction(n)?n.call(e):n;for(var i=0;i/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,X=function(e){return"\\"+K[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,X),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t})),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(c){throw c.source=a,c}var s=function(e){return r.call(this,e,y)},u=t.variable||"obj";return s.source="function("+u+"){\n"+a+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var J=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){return y.each(y.functions(e),(function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(y,e))}})),y},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}})),y.each(["concat","join","slice"],(function(e){var t=a[e];y.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return y}.apply(t,[]))||(n.exports=r)}()}).call(this,n(77),n(143)(e))},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(757),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,o.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(487);t.clone=function e(n){var o=r(n);if("number"===o||"string"===o||"boolean"===o||null===n||void 0===n)return n;if("function"===typeof n.clone)return n.clone();if(Array.isArray(n))return n.map((function(t){return e(t)}));if(n instanceof Date)return new Date(n.valueOf());if(i(n))return n;if(n instanceof RegExp)throw new TypeError("Cannot clone "+n);return t.map(n,e)},t.map=function(e,n){var r={};for(var i in e)t.hasOwnProperty(e,i)&&(r[i]=n(e[i]));return r},t.extend=function(e,n){for(var r in n)t.hasOwnProperty(n,r)&&(e[r]=n[r]);return e},t.deepExtend=function e(n,r){if(Array.isArray(r))throw new TypeError("Arrays are not supported by deepExtend");for(var i in r)if(t.hasOwnProperty(r,i))if(r[i]&&r[i].constructor===Object)void 0===n[i]&&(n[i]={}),n[i].constructor===Object?e(n[i],r[i]):n[i]=r[i];else{if(Array.isArray(r[i]))throw new TypeError("Arrays are not supported by deepExtend");n[i]=r[i]}return n},t.deepEqual=function(e,n){var r,i,o;if(Array.isArray(e)){if(!Array.isArray(n))return!1;if(e.length!==n.length)return!1;for(i=0,o=e.length;i0))return a;do{a.push(o=new Date(+n)),t(n,i),e(n)}while(o=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(s.count=function(t,o){return r.setTime(+t),i.setTime(+o),e(r),e(i),Math.floor(n(r,i))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}},function(e,t,n){"use strict";var r=n(44).clone;t.name="algorithm14",t.factory=function(e,t,n,i){var o=e.DenseMatrix;return function(e,t,n,a){var s,u=e._data,c=e._size,l=e._datatype,f=n;"string"===typeof l&&(s=l,t=i.convert(t,s),f=i.find(n,[s,s]));var h=c.length>0?function e(t,n,r,i,o,a,s){var u=[];if(n===r.length-1)for(var c=0;c0;)l(e)}function l(e){var t=e.shift();if("function"!==typeof t)t._settlePromises();else{var n=e.shift(),r=e.shift();t.call(n,r)}}u.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},u.prototype.hasCustomScheduler=function(){return this._customScheduler},u.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},u.prototype.fatalError=function(e,n){n?(t.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),t.exit(2)):this.throwLater(e)},u.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!==typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(i){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},u.prototype.invokeLater=function(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()},u.prototype.invoke=function(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()},u.prototype.settlePromises=function(e){this._normalQueue._pushOne(e),this._queueTick()},u.prototype._drainQueues=function(){c(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,c(this._lateQueue)},u.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},u.prototype._reset=function(){this._isTickUsed=!1},n.exports=u,n.exports.firstLineError=o},{"./queue":26,"./schedule":29}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},u=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var c=n(o),l=new e(t);l._propagateFrom(this,1);var f=this._target();if(l._setBoundTo(c),c instanceof e){var h={promiseRejectionQueued:!1,promise:l,target:f,bindingPromise:c};f._then(t,a,void 0,l,h),c._then(s,u,void 0,l,h),l._setOnCancel(c)}else l._resolveCallback(f);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!==typeof Promise&&(r=Promise);var o=e("./promise")();o.noConflict=function(){try{Promise===o&&(Promise=r)}catch(i){}return o},t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!==typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"===typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,u=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,u=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=u,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r,o,a){var s,u,c,l,f=n._async,h=e("./errors").Warning,d=e("./util"),p=e("./es5"),v=d.canAttachTrace,m=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,y=/\((?:timers\.js):\d+:\d+\)/,g=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,b=null,_=null,w=!1,x=!(0==d.env("BLUEBIRD_DEBUG")),S=!(0==d.env("BLUEBIRD_WARNINGS")||!x&&!d.env("BLUEBIRD_WARNINGS")),O=!(0==d.env("BLUEBIRD_LONG_STACK_TRACES")||!x&&!d.env("BLUEBIRD_LONG_STACK_TRACES")),E=0!=d.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(S||!!d.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var e=[];function t(){for(var t=0;t0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return Y(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=n._getContext();u=d.contextBind(t,e)},n.onUnhandledRejectionHandled=function(e){var t=n._getContext();s=d.contextBind(t,e)};var k=function(){};n.longStackTraces=function(){if(f.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!re.longStackTraces&&X()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace,i=n.prototype._dereferenceTrace;re.longStackTraces=!0,k=function(){if(f.haveItemsQueued()&&!re.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,n.prototype._dereferenceTrace=i,r.deactivateLongStackTraces(),re.longStackTraces=!1},n.prototype._captureStackTrace=H,n.prototype._attachExtraTrace=W,n.prototype._dereferenceTrace=q,r.activateLongStackTraces()}},n.hasLongStackTraces=function(){return re.longStackTraces&&X()};var T={unhandledrejection:{before:function(){var e=d.global.onunhandledrejection;return d.global.onunhandledrejection=null,e},after:function(e){d.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=d.global.onrejectionhandled;return d.global.onrejectionhandled=null,e},after:function(e){d.global.onrejectionhandled=e}}},M=function(){var e=function(e,t){if(!e)return!d.global.dispatchEvent(t);var n;try{return n=e.before(),!d.global.dispatchEvent(t)}finally{e.after(n)}};try{if("function"===typeof CustomEvent){var t=new CustomEvent("CustomEvent");return d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new CustomEvent(t,{detail:n,cancelable:!0});return p.defineProperty(r,"promise",{value:n.promise}),p.defineProperty(r,"reason",{value:n.reason}),e(T[t],r)}}return"function"===typeof Event?(t=new Event("CustomEvent"),d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new Event(t,{cancelable:!0});return r.detail=n,p.defineProperty(r,"promise",{value:n.promise}),p.defineProperty(r,"reason",{value:n.reason}),e(T[t],r)}):((t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!0,n),e(T[t],r)})}catch(i){}return function(){return!1}}(),C=d.isNode?function(){return t.emit.apply(t,arguments)}:d.global?function(e){var t="on"+e.toLowerCase(),n=d.global[t];return!!n&&(n.apply(d.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function N(e,t){return{promise:t}}var P={promiseCreated:N,promiseFulfilled:N,promiseRejected:N,promiseResolved:N,promiseCancelled:N,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:N},j=function(e){var t=!1;try{t=C.apply(null,arguments)}catch(i){f.throwLater(i),t=!0}var n=!1;try{n=M(e,P[e].apply(null,arguments))}catch(i){f.throwLater(i),n=!0}return n||t};function A(){return!1}function I(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!==typeof e)throw new TypeError("onCancel must be a function, got: "+d.toString(e));r._attachCancellationCallback(e)}))}catch(i){return i}}function D(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?d.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function R(){return this._onCancelField}function z(e){this._onCancelField=e}function L(){this._cancellationParent=void 0,this._onCancelField=void 0}function F(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&k()),"warnings"in e){var t=e.warnings;re.warnings=!!t,E=re.warnings,d.isObject(t)&&"wForgottenReturn"in t&&(E=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!re.cancellation){if(f.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=L,n.prototype._propagateFrom=F,n.prototype._onCancel=R,n.prototype._setOnCancel=z,n.prototype._attachCancellationCallback=D,n.prototype._execute=I,U=F,re.cancellation=!0}if("monitoring"in e&&(e.monitoring&&!re.monitoring?(re.monitoring=!0,n.prototype._fireEvent=j):!e.monitoring&&re.monitoring&&(re.monitoring=!1,n.prototype._fireEvent=A)),"asyncHooks"in e&&d.nodeSupportsAsyncResource){var r=re.asyncHooks,i=!!e.asyncHooks;r!==i&&(re.asyncHooks=i,i?o():a())}return n},n.prototype._fireEvent=A,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(i){return i}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._dereferenceTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var U=function(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function B(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function H(){this._trace=new te(this._peekContext())}function W(e,t){if(v(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=G(e);d.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),d.notEnumerableProp(e,"__stackCleaned__",!0)}}}function q(){this._trace=void 0}function Y(e,t,r){if(re.warnings){var i,o=new h(e);if(t)r._attachExtraTrace(o);else if(re.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=G(o);o.stack=a.message+"\n"+a.stack.join("\n")}j("warning",o)||$(o,"",!0)}}function V(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:V(t)}}function $(e,t,n){if("undefined"!==typeof console){var r;if(d.isObject(e)){var i=e.stack;r=t+_(i,e)}else r=t+String(e);"function"===typeof c?c(r,n):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(r)}}function K(e,t,n,r){var o=!1;try{"function"===typeof t&&(o=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(i){f.throwLater(i)}"unhandledRejection"===e?j(e,n,r)||o||$(n,"Unhandled rejection "):j(e,r)}function Z(e){var t;if("function"===typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"===typeof e.toString?e.toString():d.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(i){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function X(){return"function"===typeof ne}var J=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ee(e){var t=e.match(Q);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function te(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);ne(this,te),t>32&&this.uncycle()}d.inherits(te,Error),r.CapturedTrace=te,te.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a=0;--c)t[c]._length=u,u++;return}}}},te.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=G(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(V(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var u=r[s];if(t[i]!==u)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t=0)return b=/@/,_=t,w=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(i){r="stack"in i}return!("stack"in o)&&r&&"number"===typeof Error.stackTraceLimit?(b=e,_=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(i){e.stack=i.stack}Error.stackTraceLimit-=6}):(_=function(e,t){return"string"===typeof e?e:"object"!==typeof t&&"function"!==typeof t||void 0===t.name||void 0===t.message?Z(t):t.toString()},null)}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(c=function(e){console.warn(e)},d.isNode&&t.stderr.isTTY?c=function(e,t){var n=t?"\x1b[33m":"\x1b[31m";console.warn(n+e+"\x1b[0m\n")}:d.isNode||"string"!==typeof(new Error).stack||(c=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var re={warnings:S,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return O&&n.longStackTraces(),{asyncHooks:function(){return re.asyncHooks},longStackTraces:function(){return re.longStackTraces},warnings:function(){return re.warnings},cancellation:function(){return re.cancellation},monitoring:function(){return re.monitoring},propagateFromFunction:function(){return U},boundValueFunction:function(){return B},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&E){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),u=V(s),c=u.length-1;c>=0;--c){var l=u[c];if(!y.test(l)){var f=l.match(g);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(u.length>0){var h=u[0];for(c=0;c0&&(a="\n"+s[c-1]);break}}}var d="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,t)}},setBounds:function(e,t){if(X()){for(var n,r,i=(e.stack||"").split("\n"),o=(t.stack||"").split("\n"),a=-1,s=-1,u=0;u=s||(J=function(e){if(m.test(e))return!0;var t=ee(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:Y,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),Y(n)},CapturedTrace:te,fireDomEvent:M,fireGlobalEvent:C}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,o,a=e("./es5"),s=a.freeze,u=e("./util"),c=u.inherits,l=u.notEnumerableProp;function f(e,t){function n(r){if(!(this instanceof n))return new n(r);l(this,"message","string"===typeof r?r:t),l(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var h=f("Warning","warning"),d=f("CancellationError","cancellation error"),p=f("TimeoutError","timeout error"),v=f("AggregateError","aggregate error");try{r=TypeError,o=RangeError}catch(i){r=f("TypeError","type error"),o=f("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return d.call(this,this.promise._target()._settledValue())}function h(e){if(!l(this,e))return a.e=e,a}function d(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(u===r)return u;if(void 0!==u){i._setReturnedNonUndefined();var d=n(u,i);if(d instanceof t){if(null!=this.cancelPromise){if(d._isCancelled()){var p=new o("late cancellation observer");return i._attachExtraTrace(p),a.e=p,a}d.isPending()&&d._attachCancellationCallback(new c(this))}return d._then(f,h,void 0,this,void 0)}}}return i.isRejected()?(l(this),a.e=e,a):(l(this),e)}return u.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){l(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!==typeof e?this.then():this._then(n,r,void 0,new u(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,d,d)},t.prototype.tap=function(e){return this._passThrough(e,1,d)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,d);var r,o=new Array(n-1),a=0;for(r=0;r0&&"function"===typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),u=s.tryCatch,c=s.errorObj,l=t._async;function f(e,n,r,i){this.constructor$(e),this._promise._captureStackTrace();var a=t._getContext();if(this._callback=s.contextBind(a,n),this._preservedValues=i===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0),s.isArray(e))for(var u=0;u=1?a:0,o).promise()}s.inherits(f,n),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,h=this._callback,d=f._boundValue();f._pushContext();var p=u(h).call(d,e,n,o),v=f._popContext();if(a.checkForgottenReturns(p,v,null!==s?"Promise.filter":"Promise.map",f),p===c)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof t){var y=(m=m._target())._bitField;if(0===(50397184&y))return l>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0===(33554432&y))return 0!==(16777216&y)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},f.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],l=arguments[2];r=a.isArray(c)?s(e).apply(l,c):s(e).call(l,c)}else r=s(e)();var f=u._popContext();return o.checkForgottenReturns(r,f,"Promise.try",u),u._resolveFromSyncValue(r),u},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function u(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),i=0;i1){var n,r=new Array(t-1),i=0;for(n=0;n0&&"function"!==typeof e&&"function"!==typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},A.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},A.prototype.spread=function(e){return"function"!==typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,w,void 0)},A.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},A.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new O(this).promise()},A.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},A.getNewLibraryCopy=n.exports,A.is=function(e){return e instanceof A},A.fromNode=A.fromCallback=function(e){var t=new A(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=j(e)(N(t,n));return r===P&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},A.all=function(e){return new O(e).promise()},A.cast=function(e){var t=S(e);return t instanceof A||((t=new A(_))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},A.resolve=A.fulfilled=A.cast,A.reject=A.rejected=function(e){var t=new A(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},A.setScheduler=function(e){if("function"!==typeof e)throw new g("expecting a function but got "+u.classString(e));return m.setScheduler(e)},A.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new A(_),s=this._target(),c=s._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!==(2097152&this._bitField)&&(r=0!==(50397184&c)?this._boundValue():s===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var l=d();if(0!==(50397184&c)){var f,h,p=s._settlePromiseCtx;0!==(33554432&c)?(h=s._rejectionHandler0,f=e):0!==(16777216&c)?(h=s._fulfillmentHandler0,f=t,s._unsetRejectionIsUnhandled()):(p=s._settlePromiseLateCancellationObserver,h=new b("late cancellation observer"),s._attachExtraTrace(h),f=t),m.invoke(p,s,{handler:u.contextBind(l,f),promise:a,receiver:r,value:h})}else s._addCallbacks(e,t,a,r,l);return a},A.prototype._length=function(){return 65535&this._bitField},A.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},A.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},A.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},A.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},A.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},A.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},A.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},A.prototype._isFinal=function(){return(4194304&this._bitField)>0},A.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},A.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},A.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},A.prototype._setAsyncGuaranteed=function(){if(!m.hasCustomScheduler()){var e=this._bitField;this._bitField=e|(536870912&e)>>2^134217728}},A.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},A.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},A.prototype._promiseAt=function(e){return this[4*e-4+2]},A.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},A.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},A.prototype._boundValue=function(){},A.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(t,n,r,i,null)},A.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=s),this._addCallbacks(n,r,i,o,null)},A.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"===typeof e&&(this._fulfillmentHandler0=u.contextBind(i,e)),"function"===typeof t&&(this._rejectionHandler0=u.contextBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"===typeof e&&(this[a+0]=u.contextBind(i,e)),"function"===typeof t&&(this[a+1]=u.contextBind(i,t))}return this._setLength(o+1),o},A.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},A.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=S(e,this);if(!(n instanceof A))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0===(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():m.settlePromises(this),this._dereferenceTrace())}},A.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return m.fatalError(e,u.isNode);(65535&t)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled()}},A.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},A.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},"undefined"!==typeof Symbol&&Symbol.toStringTag&&p.defineProperty(A.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),A.defer=A.pending=function(){return T.deprecated("Promise.defer","new Promise"),{promise:new A(_),resolve:I,reject:D}},u.notEnumerableProp(A,"_makeSelfResolutionError",r),e("./method")(A,_,S,o,T),e("./bind")(A,_,S,T),e("./cancel")(A,O,o,T),e("./direct_resolve")(A),e("./synchronous_inspection")(A),e("./join")(A,O,S,_,m),A.Promise=A,A.version="3.7.2",e("./call_get.js")(A),e("./generators.js")(A,o,_,S,a,T),e("./map.js")(A,O,o,S,_,T),e("./nodeify.js")(A),e("./promisify.js")(A,_),e("./props.js")(A,O,S,o),e("./race.js")(A,_,S,o),e("./reduce.js")(A,O,o,S,_,T),e("./settle.js")(A,O,T),e("./some.js")(A,O,o),e("./timers.js")(A,_,T),e("./using.js")(A,o,S,k,_,T),e("./any.js")(A),e("./each.js")(A,_),e("./filter.js")(A,_),u.toFastProperties(A),u.toFastProperties(A.prototype),R({a:1}),R({b:2}),R({c:3}),R(1),R((function(){})),R(void 0),R(!1),R(new A(_)),T.setBounds(v.firstLineError,u.lastLineError),A}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&(r._propagateFrom(e,3),e.suppressUnhandledRejections()),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var u=(s=s._target())._bitField;if(this._values=s,0===(50397184&u))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0===(33554432&u))return 0!==(16777216&u)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var c=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(c,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.allSettled=function(e){return new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,u={};function c(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function l(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new c(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(c,n),c.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(e){this._howMany=e},c.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},c.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(u),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(e){this._values.push(e)},c.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return l(e,t)},t.prototype.some=function(e){return l(this,e)},t._SomePromiseArray=c}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),o=r.errorObj,a=r.isObject,s={}.hasOwnProperty;return function(e,u){if(a(e)){if(e instanceof t)return e;var c=function(e){try{return function(e){return e.then}(e)}catch(i){return o.e=i,o}}(e);if(c===o){u&&u._pushContext();var l=t.reject(c.e);return u&&u._popContext(),l}if("function"===typeof c)return function(e){try{return s.call(e,"_promise0")}catch(i){return!1}}(e)?(l=new t(n),e._then(l._fulfill,l._reject,void 0,l,null),l):function(e,i,a){var s=new t(n),u=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var c=r.tryCatch(i).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,!1,!0),s=null)}));return s&&c===o&&(s._rejectCallback(c.e,!0,!0),s=null),u}(e,c,u)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return u(+this).thenReturn(e)},u=t.delay=function(e,i){var o,u;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),u=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(u)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function c(e){return clearTimeout(this.handle),e}function l(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return u(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var u=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!==typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(c,l,void 0,u,void 0))._setOnCancel(u)):n=this._then(c,l,void 0,u,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,a,s){var u=e("./util"),c=e("./errors").TypeError,l=e("./util").inherits,f=u.errorObj,h=u.tryCatch,d={};function p(e){setTimeout((function(){throw e}),0)}function v(e,n){var o=0,s=e.length,u=new t(a);return function a(){if(o>=s)return u._fulfill();var c=function(e){var t=r(e);return t!==e&&"function"===typeof e._isDisposable&&"function"===typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[o++]);if(c instanceof t&&c._isDisposable()){try{c=r(c._getDisposer().tryDispose(n),e.promise)}catch(i){return p(i)}if(c instanceof t)return c._then(a,p,null,null,null)}a()}(),u}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function y(e,t,n){this.constructor$(e,t,n)}function g(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"===typeof e.resource&&"function"===typeof e.tryDispose},l(y,m),y.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"===typeof e)return new y(e,this,o());throw new c}}},{"./errors":12,"./util":36}],36:[function(e,r,o){"use strict";var a=e("./es5"),s="undefined"==typeof navigator,u={e:{}},c,l="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:void 0!==this?this:null;function f(){try{var e=c;return c=null,e.apply(this,arguments)}catch(i){return u.e=i,u}}function h(e){return c=e,f}var d=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function p(e){return null==e||!0===e||!1===e||"string"===typeof e||"number"===typeof e}function v(e){return"function"===typeof e||"object"===typeof e&&null!==e}function m(e){return p(e)?new Error(M(e)):e}function y(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=x.test(e+"")&&a.names(e).length>0;if(n||r||o)return!0}return!1}catch(i){return!1}}function O(e){function t(){}t.prototype=e;var n=new t;function r(){return typeof n.foo}return r(),r(),e}var E=/^[a-z$_][a-z$_0-9]*$/i;function k(e){return E.test(e)}function T(e,t,n){for(var r=new Array(e),i=0;i10||e[0]>0}(),q.nodeSupportsAsyncResource=q.isNode&&function(){var t=!1;try{t="function"===typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(i){t=!1}return t}(),q.isNode&&q.toFastProperties(t);try{throw new Error}catch(i){q.lastLineError=i}r.exports=q},{"./es5":13,async_hooks:void 0}]},{},[4])(4)},e.exports=i(),"undefined"!==typeof window&&null!==window?window.P=window.Promise:"undefined"!==typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n(343),n(77),n(988).setImmediate)},function(e,t,n){"use strict";var r=n(41);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"TimeEvent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"TimeRangeEvent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"IndexedEvent",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Index",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"TimeRange",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"TimeSeries",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Pipeline",{enumerable:!0,get:function(){return h.Pipeline}}),Object.defineProperty(t,"Stream",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Bounded",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"PipelineOut",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"EventOut",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"CollectionOut",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"keep",{enumerable:!0,get:function(){return g.keep}}),Object.defineProperty(t,"sum",{enumerable:!0,get:function(){return g.sum}}),Object.defineProperty(t,"avg",{enumerable:!0,get:function(){return g.avg}}),Object.defineProperty(t,"max",{enumerable:!0,get:function(){return g.max}}),Object.defineProperty(t,"min",{enumerable:!0,get:function(){return g.min}}),Object.defineProperty(t,"count",{enumerable:!0,get:function(){return g.count}}),Object.defineProperty(t,"first",{enumerable:!0,get:function(){return g.first}}),Object.defineProperty(t,"last",{enumerable:!0,get:function(){return g.last}}),Object.defineProperty(t,"difference",{enumerable:!0,get:function(){return g.difference}}),Object.defineProperty(t,"median",{enumerable:!0,get:function(){return g.median}}),Object.defineProperty(t,"stdev",{enumerable:!0,get:function(){return g.stdev}}),Object.defineProperty(t,"percentile",{enumerable:!0,get:function(){return g.percentile}}),Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return g.filter}});var i=r(n(192)),o=r(n(313)),a=r(n(225)),s=r(n(226)),u=r(n(224)),c=r(n(312)),l=r(n(510)),f=r(n(729)),h=n(105),d=r(n(733)),p=r(n(511)),v=r(n(512)),m=r(n(732)),y=r(n(730)),g=n(728),b=n(126),_=n(1496);"undefined"!==typeof window&&_(b)},function(e,t,n){"use strict";var r=n(83);t.name="algorithm13",t.factory=function(e,t,n,i){var o=e.DenseMatrix;return function(e,t,n){var a,s=e._data,u=e._size,c=e._datatype,l=t._data,f=t._size,h=t._datatype,d=[];if(u.length!==f.length)throw new r(u.length,f.length);for(var p=0;p0?function e(t,n,r,i,o,a){var s=[];if(n===r.length-1)for(var u=0;ut?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,s=o.left,u=a,c=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN},d=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,i=e.length,o=0,a=-1,s=0,u=0;if(null==t)for(;++a1)return u/(o-1)},v=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s=0?(o>=S?10:o>=O?5:o>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=O?5:o>=E?2:1)}function M(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=S?i*=10:o>=O?i*=5:o>=E&&(i*=2),tf;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:l,p.x1=i=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},j=function(e,t,n){return e=b.call(e,d).sort(r),Math.ceil((n-t)/(2*(P(e,.75)-P(e,.25))*Math.pow(e.length,-1/3)))},A=function(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))},I=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},D=function(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},L=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},F=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},U=function(e,t){if(n=e.length){var n,i,o=0,a=0,s=e[a];for(null==t&&(t=r);++o"}return e.event_id||""}function h(e){var t=u();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function d(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function p(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function v(){try{return document.location.href}catch(e){return""}}function m(e){try{for(var t=e,n=[],r=0,i=0,o=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=y(t))||r>1&&i+n.length*o+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(s){return""}}function y(e){var t,n,r,i,a,s=e,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(t=s.className)&&Object(o.k)(t))for(n=t.split(/\s+/),a=0;a"}catch(t){return""}}}).call(this,n(343),n(77),n(569)(e))},function(e,t,n){e.exports=n(1052)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAxis=t.ValueList=t.ValueAxis=t.TimeRangeMarker=t.TimeMarker=t.TimeAxis=t.styler=t.ScatterChart=t.Resizable=t.MultiBrush=t.LineChart=t.Legend=t.LabelAxis=t.EventMarker=t.EventChart=t.Charts=t.ChartRow=t.ChartContainer=t.Brush=t.BoxChart=t.Baseline=t.BarChart=t.BandChart=t.AreaChart=void 0;var r=T(n(1504)),i=T(n(1507)),o=T(n(1508)),a=T(n(1509)),s=T(n(1510)),u=T(n(515)),c=T(n(1511)),l=T(n(738)),f=T(n(523)),h=T(n(1515)),d=T(n(390)),p=T(n(1516)),v=T(n(1517)),m=T(n(1518)),y=T(n(522)),g=T(n(1519)),b=T(n(1520)),_=T(n(193)),w=T(n(742)),x=T(n(524)),S=T(n(1521)),O=T(n(1522)),E=T(n(391)),k=T(n(739));function T(e){return e&&e.__esModule?e:{default:e}}t.AreaChart=r.default,t.BandChart=i.default,t.BarChart=o.default,t.Baseline=a.default,t.BoxChart=s.default,t.Brush=u.default,t.ChartContainer=c.default,t.ChartRow=l.default,t.Charts=f.default,t.EventChart=h.default,t.EventMarker=d.default,t.LabelAxis=p.default,t.Legend=v.default,t.LineChart=m.default,t.MultiBrush=y.default,t.Resizable=g.default,t.ScatterChart=b.default,t.styler=_.default,t.TimeAxis=w.default,t.TimeMarker=x.default,t.TimeRangeMarker=S.default,t.ValueAxis=O.default,t.ValueList=E.default,t.YAxis=k.default},function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return y})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b}));var r=n(47),i=n(57);function o(e){return Object(r.a)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/i.e}))}var a=o(0),s=o(1),u=o(2),c=o(3),l=o(4),f=o(5),h=o(6),d=a.range,p=s.range,v=u.range,m=c.range,y=l.range,g=f.range,b=h.range},function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return y})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b}));var r=n(47),i=n(57);function o(e){return Object(r.a)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.c)/i.e}))}var a=o(0),s=o(1),u=o(2),c=o(3),l=o(4),f=o(5),h=o(6),d=a.range,p=s.range,v=u.range,m=c.range,y=l.range,g=f.range,b=h.range},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i=n(14);function o(e,t){return function(n){if("function"!==typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.b(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},function(e,t,n){var r=n(213),i=n(184),o=n(972),a=n(60);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){"use strict";function r(e){return e&&"function"===typeof e.schedule}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u/g,">")}},function(e,t,n){"use strict";var r=n(44).extend,i=n(27);t.name="multiply",t.factory=function(e,t,o,a){var s=n(40),u=o(n(19)),c=o(n(100)),l=o(n(114)),f=o(n(78)),h=o(n(103)),d=o(n(48)),p=e.DenseMatrix,v=e.SparseMatrix,m=a("multiply",r({"Array, Array":function(t,n){y(i.size(t),i.size(n));var r=m(u(t),u(n));return e.isMatrix(r)?r.valueOf():r},"Matrix, Matrix":function(e,t){var n=e.size(),r=t.size();return y(n,r),1===n.length?1===r.length?function(e,t,n){if(0===n)throw new Error("Cannot multiply two empty vectors");var r,i=e._data,o=e._datatype,s=t._data,u=t._datatype,f=c,h=l;o&&u&&o===u&&"string"===typeof o&&(r=o,f=a.find(c,[r,r]),h=a.find(l,[r,r]));for(var d=h(i[0],s[0]),p=1;pT)for(var C=0,N=0;N"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},o=0;o<24;o+=1)i[112+o]="F"+(o+1);for(var a=0;a<26;a+=1){var s=a+65;i[s]=[String.fromCharCode(s+32),String.fromCharCode(s)]}var u={codes:i,getCode:function(e){return r(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var t=r(e);if(t&&e.key)return e.key;var n=i[t?e.keyCode||e.which:e];return Array.isArray(n)&&(n=t?n[e.shiftKey?1:0]:n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};u.Spacebar=u[" "],u.Digit0=u[0],u.Digit1=u[1],u.Digit2=u[2],u.Digit3=u[3],u.Digit4=u[4],u.Digit5=u[5],u.Digit6=u[6],u.Digit7=u[7],u.Digit8=u[8],u.Digit9=u[9],u.Tilde=u["~"],u.GraveAccent=u["`"],u.ExclamationPoint=u["!"],u.AtSign=u["@"],u.PoundSign=u["#"],u.PercentSign=u["%"],u.Caret=u["^"],u.Ampersand=u["&"],u.PlusSign=u["+"],u.MinusSign=u["-"],u.EqualsSign=u["="],u.DivisionSign=u["/"],u.MultiplicationSign=u["*"],u.Comma=u[","],u.Decimal=u["."],u.Colon=u[":"],u.Semicolon=u[";"],u.Pipe=u["|"],u.BackSlash=u["\\"],u.QuestionMark=u["?"],u.SingleQuote=u["'"],u.DoubleQuote=u['"'],u.LeftCurlyBrace=u["{"],u.RightCurlyBrace=u["}"],u.LeftParenthesis=u["("],u.RightParenthesis=u[")"],u.LeftAngleBracket=u["<"],u.RightAngleBracket=u[">"],u.LeftSquareBracket=u["["],u.RightSquareBracket=u["]"],e.exports=u},function(e,t,n){var r=n(358);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";function r(e,t,n){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=n,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=(new Error).stack}r.prototype=new RangeError,r.prototype.constructor=RangeError,r.prototype.name="DimensionError",r.prototype.isDimensionError=!0,e.exports=r},function(e,t,n){(function(e){!function(t){var n=function(e){return i(!0===e,!1,arguments)};function r(e,t){if("object"!==o(e))return t;for(var n in t)"object"===o(e[n])&&"object"===o(t[n])?e[n]=r(e[n],t[n]):e[n]=t[n];return e}function i(e,t,i){var a=i[0],s=i.length;(e||"object"!==o(a))&&(a={});for(var u=0;u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var l={get:function(e,t,n){if(!t)return e;var r=h(t),i=void 0;try{i=r.reduce((function(e,t){return e[t]}),e)}catch(o){}return"undefined"!==typeof i?i:n},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],r=h(t),i=void 0,o=e;for(;(i=r.shift())&&r.length;)o[i]||(o[i]={}),o=o[i];return o[i]=n,e},takeRight:function(e,t){var n=t>e.length?0:e.length-t;return e.slice(n)},last:function(e){return e[e.length-1]},orderBy:function(e,t,n,r){return e.sort((function(e,i){for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:e;if(s.isElement(e)||"string"===typeof e)return e;if(s.isValidElementType(e))return i.a.createElement(e,t);return n},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function f(e){return Array.isArray(e)}function h(e){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(f(t))for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var M=function(){return{}},C={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPage:0,defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,n){var r=e.pivotId||e.id;return void 0===t[r]||String(t[r]).startsWith(e.value)},defaultSortMethod:function(e,t,n){return t=null===t||void 0===t?"":t,(e="string"===typeof(e=null===e||void 0===e?"":e)?e.toLowerCase():e)>(t="string"===typeof t?t.toLowerCase():t)?1:e1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map((function(t,i){var o=I({},t,{_viewIndex:r+=1}),a=n.concat([i]);if(o[V]&&l.get(re,a)){var s=e(o[V],a,r),u=A(s,2);o[V]=u[0],r=u[1]}return o})),r]}(Ae),Fe=A(Le,1);Ae=Fe[0];var Ue=Q>0,Be=Q+12&&void 0!==arguments[2]?arguments[2]:[],s={original:n[$],row:n,index:n[K],viewIndex:We+=1,pageSize:J,page:Q,level:o.length,nestingPath:o.concat([r]),aggregated:n[G],groupedByPivot:n[Z],subRows:n[V]},u=l.get(re,s.nestingPath),c=_(qe,s,void 0,e),f=l.splitProps(w(qe,s,void 0,e));return i.a.createElement(ce,I({key:s.nestingPath.join("_")},c),i.a.createElement(le,I({className:a()(f.className,n._viewIndex%2?"-even":"-odd"),style:f.style},f.rest),ke.map((function(t,r){var o=ne.find((function(e){return e.id===t.id}))||{},c="function"===typeof t.show?t.show():t.show,f=l.getFirstDefined(o.value,t.width,t.minWidth),h=l.getFirstDefined(o.value,t.width,t.maxWidth),d=l.splitProps(x(qe,s,t,e)),p=l.splitProps(t.getProps(qe,s,t,e)),v=[d.className,t.className,p.className],m=I({},d.style,t.style,p.style),y=I({},s,{isExpanded:u,column:I({},t),value:s.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ne,show:c,width:f,maxWidth:h,tdProps:d,columnProps:p,classes:v,styles:m}),g=y.value,b=void 0,_=void 0,w=void 0,S=l.normalizeComponent(t.Cell,y,g),O=t.Aggregated||(t.aggregate?t.Cell:xe),E=t.Expander||be,k=t.PivotValue||_e,T=we||function(e){return i.a.createElement("div",null,i.a.createElement(E,e),i.a.createElement(k,e))},M=t.Pivot||T;(y.pivoted||y.expander)&&(y.expandable=!0,b=!0,!y.pivoted||y.subRows||me||(y.expandable=!1)),y.pivoted?(_=s.row[W]===t.id&&y.subRows,w=Y.indexOf(t.id)>Y.indexOf(s.row[W])&&y.subRows,S=_?l.normalizeComponent(M,I({},y,{value:n[q]}),n[q]):w?l.normalizeComponent(O,y,g):null):y.aggregated&&(S=l.normalizeComponent(O,y,g)),y.expander&&(S=l.normalizeComponent(E,y,n[q]),Y&&(y.groupedByPivot&&(S=null),y.subRows||me||(S=null)));var C=b?function(t){var n=l.clone(re);return n=u?l.set(n,y.nestingPath,!1):l.set(n,y.nestingPath,{}),e.setStateWithData({expanded:n},(function(){return oe&&oe(n,y.nestingPath,t,y)}))}:function(){},N={onClick:C};return d.rest.onClick&&(N.onClick=function(e){d.rest.onClick(e,(function(){return C(e)}))}),p.rest.onClick&&(N.onClick=function(e){p.rest.onClick(e,(function(){return C(e)}))}),i.a.createElement(he,I({key:r+"-"+t.id,className:a()(v,!y.expandable&&!c&&"hidden",y.expandable&&"rt-expandable",(_||w)&&"rt-pivot"),style:I({},m,{flex:f+" 0 auto",width:l.asPx(f),maxWidth:l.asPx(h)})},d.rest,p.rest,N),S)}))),s.subRows&&u&&s.subRows.map((function(e,n){return t(e,n,s.nestingPath)})),me&&!s.subRows&&u&&me(s,(function(){var e=l.clone(re);l.set(e,s.nestingPath,!1)})))}(t,n)})),De.map(et)),Re?function(){var t=l.splitProps(S(qe,void 0,void 0,e)),n=l.splitProps(O(qe,void 0,void 0,e));return i.a.createElement(de,I({className:t.className,style:I({},t.style,{minWidth:He+"px"})},t.rest),i.a.createElement(le,I({className:a()(n.className),style:n.style},n.rest),ke.map(tt)))}():null),P&&D?i.a.createElement("div",{className:"pagination-bottom"},nt(!1)):null,!Ae.length&&i.a.createElement(ye,Ke,l.normalizeComponent(L)),i.a.createElement(ve,I({loading:X,loadingText:z},$e)))};return n?n(qe,rt,this):rt()}}]),t}(function(e){return function(e){function t(){return b(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,e),m(t,[{key:"getResolvedState",value:function(e,t){return v({},l.compactObject(this.state),l.compactObject(this.props),l.compactObject(t),l.compactObject(e))}},{key:"getDataModel",value:function(e,t){var n=this,r=e.columns,o=e.pivotBy,a=void 0===o?[]:o,s=e.data,u=e.resolveData,c=e.pivotIDKey,f=e.pivotValKey,h=e.subRowsKey,d=e.aggregatedKey,m=e.nestingLevelKey,b=e.originalKey,_=e.indexKey,w=e.groupedByPivotKey,x=e.SubComponent,S=!1;r.forEach((function(e){e.columns&&(S=!0)}));var O=[].concat(g(r)),E=r.find((function(e){return e.expander||e.columns&&e.columns.some((function(e){return e.expander}))}));E&&!E.expander&&(E=E.columns.find((function(e){return e.expander}))),x&&!E&&(O=[E={expander:!0}].concat(g(O)));var k=[],T=function(e,t){var r=function(e,t){var r=void 0;if((r=e.expander?v({},n.props.column,n.props.expanderDefaults,e):v({},n.props.column,e)).maxWidth-1)&&l.getFirstDefined(e.show,!0)}));return v({},e,{columns:t})}return e}))).filter((function(e){return e.columns?e.columns.length:!(a.indexOf(e.id)>-1)&&l.getFirstDefined(e.show,!0)}))).findIndex((function(e){return e.pivot}));if(a.length){var P=[];a.forEach((function(e){var t=k.find((function(t){return t.id===e}));t&&P.push(t)}));var j=P.reduce((function(e,t){return e&&e===t.parentColumn&&t.parentColumn}),P[0].parentColumn),A=S&&j.Header,I={Header:A=A||function(){return i.a.createElement("strong",null,"Pivoted")},columns:P.map((function(e){return v({},n.props.pivotDefaults,e,{pivoted:!0})}))};N>=0?(I=v({},M[N],I),M.splice(N,1,I)):M.unshift(I)}var D=[],R=[],z=function(e,t){D.push(v({},n.props.column,t,{columns:e})),R=[]};M.forEach((function(e){if(e.columns)return C=C.concat(e.columns),R.length>0&&z(R),void z(e.columns,e);C.push(e),R.push(e)})),S&&R.length>0&&z(R);var L=this.resolvedData;this.resolvedData&&!t||(L=u(s),this.resolvedData=L),L=L.map((function(e,t){return function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(y(r={},b,t),y(r,_,n),y(r,h,t[h]),y(r,m,i),r);return k.forEach((function(e){e.expander||(o[e.id]=e.accessor(t))})),o[h]&&(o[h]=o[h].map((function(t,n){return e(t,n,i+1)}))),o}(e,t)}));var F=C.filter((function(e){return!e.expander&&e.aggregate})),U=function(e){var t={};return F.forEach((function(n){var r=e.map((function(e){return e[n.id]}));t[n.id]=n.aggregate(r,e)})),t};if(a.length){L=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r===n.length)return t;var i=Object.entries(l.groupBy(t,n[r])).map((function(e){var t,i=p(e,2),o=i[0],a=i[1];return y(t={},c,n[r]),y(t,f,o),y(t,n[r],o),y(t,h,a),y(t,m,r),y(t,w,!0),t}));return i=i.map((function(t){var i,o=e(t[h],n,r+1);return v({},t,(y(i={},h,o),y(i,d,!0),i),U(o))}))}(L,a)}return v({},e,{resolvedData:L,allVisibleColumns:C,headerGroups:D,allDecoratedColumns:k,hasHeaderGroups:S})}},{key:"getSortedData",value:function(e){var t=e.manual,n=e.sorted,r=e.filtered,i=e.defaultFilterMethod,o=e.resolvedData,a=e.allDecoratedColumns,s={};return a.filter((function(e){return e.sortMethod})).forEach((function(e){s[e.id]=e.sortMethod})),{sortedData:t?o:this.sortData(this.filterData(o,r,i,a),n,s)}}},{key:"fireFetchData",value:function(){var e=v({},this.getResolvedState(),{page:this.getStateOrProp("page"),pageSize:this.getStateOrProp("pageSize"),filtered:this.getStateOrProp("filtered")});this.props.onFetchData(e,this)}},{key:"getPropOrState",value:function(e){return l.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return l.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,n,r){var i=this,o=e;return t.length&&(o=(o=t.reduce((function(e,t){var i=r.find((function(e){return e.id===t.id}));if(!i||!1===i.filterable)return e;var o=i.filterMethod||n;return i.filterAll?o(t,e,i):e.filter((function(e){return o(t,e,i)}))}),o)).map((function(e){return e[i.props.subRowsKey]?v({},e,y({},i.props.subRowsKey,i.filterData(e[i.props.subRowsKey],t,n,r))):e})).filter((function(e){return!e[i.props.subRowsKey]||e[i.props.subRowsKey].length>0}))),o}},{key:"sortData",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var i=(this.props.orderByMethod||l.orderBy)(e,t.map((function(e){return r[e.id]?function(t,n){return r[e.id](t[e.id],n[e.id],e.desc)}:function(t,r){return n.props.defaultSortMethod(t[e.id],r[e.id],e.desc)}})),t.map((function(e){return!e.desc})),this.props.indexKey);return i.forEach((function(e){e[n.props.subRowsKey]&&(e[n.props.subRowsKey]=n.sortData(e[n.props.subRowsKey],t,r))})),i}},{key:"getMinRows",value:function(){return l.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,n=t.onPageChange,r=t.collapseOnPageChange,i={page:e};r&&(i.expanded={}),this.setStateWithData(i,(function(){return n&&n(e)}))}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,n=this.getResolvedState(),r=n.pageSize*n.page,i=Math.floor(r/e);this.setStateWithData({pageSize:e,page:i},(function(){return t&&t(e,i)}))}},{key:"sortColumn",value:function(e,t){var n=this.getResolvedState(),r=n.sorted,i=n.skipNextSort,o=n.defaultSortDesc,a=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:o,s=!a;if(i)this.setStateWithData({skipNextSort:!1});else{var u=this.props.onSortedChange,c=l.clone(r||[]).map((function(e){return e.desc=l.isSortingDesc(e),e}));if(l.isArray(e)){var f=c.findIndex((function(t){return t.id===e[0].id}));if(f>-1)c[f].desc===s?t?c.splice(f,e.length):e.forEach((function(e,t){c[f+t].desc=a})):e.forEach((function(e,t){c[f+t].desc=s})),t||(c=c.slice(f,e.length));else c=t?c.concat(e.map((function(e){return{id:e.id,desc:a}}))):e.map((function(e){return{id:e.id,desc:a}}))}else{var h=c.findIndex((function(t){return t.id===e.id}));if(h>-1){var d=c[h];d.desc===s?t?c.splice(h,1):(d.desc=a,c=[d]):(d.desc=s,t||(c=[d]))}else t?c.push({id:e.id,desc:a}):c=[{id:e.id,desc:a}]}this.setStateWithData({page:!r.length&&c.length||!t?0:this.state.page,sorted:c},(function(){return u&&u(c,e,t)}))}}},{key:"filterColumn",value:function(e,t){var n=this.getResolvedState().filtered,r=this.props.onFilteredChange,i=(n||[]).filter((function(t){return t.id!==e.id}));""!==t&&i.push({id:e.id,value:t}),this.setStateWithData({filtered:i},(function(){return r&&r(i,e,t)}))}},{key:"resizeColumnStart",value:function(e,t,n){var r=this;e.stopPropagation();var i=e.target.parentElement.getBoundingClientRect().width,o=void 0;o=n?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:o,parentWidth:i}},(function(){n?(document.addEventListener("touchmove",r.resizeColumnMoving),document.addEventListener("touchcancel",r.resizeColumnEnd),document.addEventListener("touchend",r.resizeColumnEnd)):(document.addEventListener("mousemove",r.resizeColumnMoving),document.addEventListener("mouseup",r.resizeColumnEnd),document.addEventListener("mouseleave",r.resizeColumnEnd))}))}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props,n=t.onResizedChange,r=t.column,i=this.getResolvedState(),o=i.resized,a=i.currentlyResizing,s=i.columns.find((function(e){return e.accessor===a.id||e.id===a.id})),u=s&&null!=s.minResizeWidth?s.minResizeWidth:r.minResizeWidth,c=o.filter((function(e){return e.id!==a.id})),l=void 0;"touchmove"===e.type?l=e.changedTouches[0].pageX:"mousemove"===e.type&&(l=e.pageX);var f=Math.max(a.parentWidth+l-a.startX,u);c.push({id:a.id,value:f}),this.setStateWithData({resized:c},(function(){return n&&n(c,e)}))}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),t}(e)}(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={page:e.defaultPage,pageSize:e.defaultPageSize,sorted:e.defaultSorted,expanded:e.defaultExpanded,filtered:e.defaultFiltered,resized:e.defaultResized,currentlyResizing:!1,skipNextSort:!1},i=n.getResolvedState(e,r),o=n.getDataModel(i,!0);return n.state=n.calculateNewResolvedState(o),n}return function(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,e),d(t,[{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"componentDidUpdate",value:function(e,t){var n=this.getResolvedState(e,t),r=this.getResolvedState(this.props,this.state);["sorted","filtered","resized","expanded"].forEach((function(e){var t="default"+(e.charAt(0).toUpperCase()+e.slice(1));JSON.stringify(n[t])!==JSON.stringify(r[t])&&(r[e]=r[t])})),["sortable","filterable","resizable"].forEach((function(e){if(n[e]!==r[e]){var t=e.replace("able","")+"ed",i="default"+(t.charAt(0).toUpperCase()+t.slice(1));r[t]=r[i]}})),n.data===r.data&&n.columns===r.columns&&n.pivotBy===r.pivotBy&&n.sorted===r.sorted&&n.filtered===r.filtered||this.setStateWithData(this.getDataModel(r,n.data!==r.data))}},{key:"calculateNewResolvedState",value:function(e){var t=this.getResolvedState(),n=this.getResolvedState({},e),r=n.freezeWhenExpanded;if(n.frozen=!1,r)for(var i=Object.keys(n.expanded),o=0;o=n.pages?n.pages-1:n.page,0)),n}},{key:"setStateWithData",value:function(e,t){var n=this,r=this.getResolvedState(),i=this.calculateNewResolvedState(e);return this.setState(i,(function(){t&&t(),r.page===i.page&&r.pageSize===i.pageSize&&r.sorted===i.sorted&&r.filtered===i.filtered||n.fireFetchData()}))}}]),t}(r.Component)));R.propTypes=j,R.defaultProps=C;t.a=R},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"function"===typeof e}function o(){}function a(e){if(!function(e){return"object"===r(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.b(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(14).a),o=n(177),a=n(18);function s(e,t,n,r,s){if(void 0===s&&(s=new i(e,n,r)),!s.closed)return t instanceof a.a?t.subscribe(s):Object(o.a)(t)(s)}},function(e,t,n){var r=n(570),i=n(133),o=n(327),a=n(212),s=n(574),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){var r=n(572),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";t.factory=function(e,t,n,r){var i=r("add",{"number, number":function(e,t){return e+t},"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(null===e.value||void 0===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value||void 0===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var n=e.clone();return n.value=i(n.value,t.value),n.fixPrefix=!1,n}});return i}},function(e,t,n){"use strict";var r=n(83);t.name="algorithm03",t.factory=function(e,t,n,i){var o=e.DenseMatrix;return function(e,t,n,a){var s=e._data,u=e._size,c=e._datatype,l=t._values,f=t._index,h=t._ptr,d=t._size,p=t._datatype;if(u.length!==d.length)throw new r(u.length,d.length);if(u[0]!==d[0]||u[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+d+")");if(!l)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var v,m=u[0],y=u[1],g=0,b=n;"string"===typeof c&&c===p&&(v=c,g=i.convert(0,v),b=i.find(n,[v,v]));for(var _=[],w=0;w0&&void 0!==arguments[0]&&arguments[0];this._pipeline.clearResults();var t,n=this._executionChain.pop(),i=r(this._input.events());try{for(i.s();!(t=i.n()).done;){var o=t.value;n.addEvent(o)}}catch(a){i.e(a)}finally{i.f()}e&&n.flush()}}]),e}(),A=function(){function e(t){if(i(this,e),t instanceof e){var n=t;this._d=n._d}else t instanceof u.default.Map?this._d=t:this._d=new u.default.Map({type:null,in:null,first:null,last:null,groupBy:function(){return""},windowType:"global",windowDuration:null,emitOn:"eachEvent"});this._results=[]}return o(e,[{key:"in",value:function(){return this._d.get("in")}},{key:"mode",value:function(){return this._d.get("mode")}},{key:"first",value:function(){return this._d.get("first")}},{key:"last",value:function(){return this._d.get("last")}},{key:"getWindowType",value:function(){return this._d.get("windowType")}},{key:"getWindowDuration",value:function(){return this._d.get("windowDuration")}},{key:"getGroupBy",value:function(){return this._d.get("groupBy")}},{key:"getEmitOn",value:function(){return this._d.get("emitOn")}},{key:"clearResults",value:function(){this._resultsDone=!1,this._results=null}},{key:"addResult",value:function(e,t){this._results||(c.default.isString(e)&&t?this._results={}:this._results=[]),c.default.isString(e)&&t?this._results[e]=t:this._results.push(e),this._resultsDone=!1}},{key:"resultsDone",value:function(){this._resultsDone=!0}},{key:"_setIn",value:function(t){var n,r=t;if(t instanceof d.default)n="batch",r=t.collection();else if(t instanceof p.default)n="batch";else{if(!(t instanceof y.default))throw new Error("Unknown input type",t);n="stream"}return new e(this._d.withMutations((function(e){e.set("in",r).set("mode",n)})))}},{key:"_setFirst",value:function(t){return new e(this._d.set("first",t))}},{key:"_setLast",value:function(t){return new e(this._d.set("last",t))}},{key:"_append",value:function(t){var n=this.first(),r=this.last();return n||(n=t),r&&r.addObserver(t),r=t,new e(this._d.withMutations((function(e){e.set("first",n).set("last",r)})))}},{key:"_chainPrev",value:function(){return this.last()||this}},{key:"windowBy",value:function(t){var n,r;return c.default.isString(t)?"daily"===t||"monthly"===t||"yearly"===t?n=t:(n="fixed",r=t):c.default.isObject(t)?(n=t.type,r=t.duration):(n="global",r=null),new e(this._d.withMutations((function(e){e.set("windowType",n).set("windowDuration",r)})))}},{key:"clearWindow",value:function(){return this.windowBy()}},{key:"groupBy",value:function(t){var n,r=t||"value";return n=c.default.isFunction(r)?r:c.default.isArray(r)?function(e){return c.default.map(r,(function(t){return"".concat(e.get(t))})).join("::")}:c.default.isString(r)?function(e){return"".concat(e.get(r))}:function(){return""},new e(this._d.withMutations((function(e){e.set("groupBy",n)})))}},{key:"clearGroupBy",value:function(){return this.groupBy()}},{key:"emitOn",value:function(t){return new e(this._d.set("emitOn",t))}},{key:"from",value:function(e){return this._setIn(e)}},{key:"toEventList",value:function(){return this.to(m.default)}},{key:"toKeyedCollections",value:function(){var e=this.to(v.default);return e||{}}},{key:"to",value:function(e,t,n){var r,i=e,o={};if(c.default.isFunction(t)?r=t:c.default.isObject(t)&&(o=t,r=n),!this.in())throw new Error("Tried to eval pipeline without a In. Missing from() in chain?");var a=new i(this,o,r);if("batch"===this.mode()){if(new j(this,a).start(!0),this._resultsDone&&!r)return this._results}else if("stream"===this.mode()){var s=new i(this,o,r);this.first()&&this.in().addObserver(this.first()),this.last()?this.last().addObserver(s):this.in().addObserver(s)}return this}},{key:"count",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.to(v.default,(function(t,n,r){e(t.size(),n,r)}),t)}},{key:"offsetBy",value:function(e,t){var n=new k.default(this,{by:e,fieldSpec:t,prev:this._chainPrev()});return this._append(n)}},{key:"aggregate",value:function(e){var t=new g.default(this,{fields:e,prev:this._chainPrev()});return this._append(t)}},{key:"asTimeEvents",value:function(e){var t=l.default,n=new w.default(this,P({type:t},e,{prev:this._chainPrev()}));return this._append(n)}},{key:"map",value:function(e){var t=new E.default(this,{op:e,prev:this._chainPrev()});return this._append(t)}},{key:"filter",value:function(e){var t=new O.default(this,{op:e,prev:this._chainPrev()});return this._append(t)}},{key:"select",value:function(e){var t=new M.default(this,{fieldSpec:e,prev:this._chainPrev()});return this._append(t)}},{key:"collapse",value:function(e,t,n,r){var i=new _.default(this,{fieldSpecList:e,name:t,reducer:n,append:r,prev:this._chainPrev()});return this._append(i)}},{key:"fill",value:function(e){var t=e.fieldSpec,n=void 0===t?null:t,r=e.method,i=void 0===r?"linear":r,o=e.limit,a=void 0===o?null:o,s=this._chainPrev();return this._append(new S.default(this,{fieldSpec:n,method:i,limit:a,prev:s}))}},{key:"align",value:function(e,t,n,r){var i=this._chainPrev();return this._append(new b.default(this,{fieldSpec:e,window:t,method:n,limit:r,prev:i}))}},{key:"rate",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=new x.default(this,{fieldSpec:e,allowNegative:t,prev:this._chainPrev()});return this._append(n)}},{key:"take",value:function(e){var t=new C.default(this,{limit:e,prev:this._chainPrev()});return this._append(t)}},{key:"asTimeRangeEvents",value:function(e){var t=h.default,n=new w.default(this,P({type:t},e,{prev:this._chainPrev()}));return this._append(n)}},{key:"asIndexedEvents",value:function(e){var t=f.default,n=new w.default(this,P({type:t},e,{prev:this._chainPrev()}));return this._append(n)}}]),e}()},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(532)("wks"),i=n(395),o=n(106).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.b(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(14).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i=n(14);function o(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.thisArg))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.b(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(i.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var r,i=n(76),o=n(197),a=n(268);r||(r={});var s=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"===typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return"undefined"!==typeof t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n(4),i=n(1652);function o(e){for(var t=[],n=1;na)for(var l=a-1,f=u.length;l2&&void 0!==arguments[2]?arguments[2]:{};l(e,"Bolt URL");var r,o=d.parseDatabaseUrl(e),a=!1,u=!1;switch(o.scheme){case"bolt":break;case"bolt+s":u=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":u=!0,r="TRUST_ALL_CERTIFICATES";break;case"neo4j":a=!0;break;case"neo4j+s":u=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",a=!0;break;case"neo4j+ssc":u=!0,r="TRUST_ALL_CERTIFICATES",a=!0;break;default:throw new Error("Unknown scheme: ".concat(o.scheme))}if(u){if("encrypted"in n||"trust"in n)throw new Error("Encryption/trust can only be configured either through URL or config, not both");n.encrypted=c,n.trust=r}(t=t||{}).scheme=t.scheme||"none",n.userAgent=n.userAgent||m;var p=h.fromUrl(o.hostAndPort),v={address:p,typename:a?"Routing":"Direct",routing:a};return new i.Driver(v,n,y());function y(){if(a)return function(e,n,r,i){return new s.RoutingConnectionProvider({id:e,config:n,log:r,hostNameResolver:i,authToken:t,address:p,userAgent:n.userAgent,routingContext:o.query})};if(!f(o.query))throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(e,"'"));return function(e,n,r){return new s.DirectConnectionProvider({id:e,config:n,log:r,authToken:t,address:p,userAgent:n.userAgent})}}}var v={basic:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return n?{scheme:"basic",principal:e,credentials:t,realm:n}:{scheme:"basic",principal:e,credentials:t}},kerberos:function(e){return{scheme:"kerberos",principal:"",credentials:e}},custom:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return i?{scheme:r,principal:e,credentials:t,realm:n,parameters:i}:{scheme:r,principal:e,credentials:t,realm:n}}};t.auth=v;var m="neo4j-javascript/"+o.default,y={console:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){return{level:t,logger:function(t,n){return console.log("".concat(e.Date.now()," ").concat(t.toUpperCase()," ").concat(n))}}}))};t.logging=y;var g={Node:a.Node,Relationship:a.Relationship,UnboundRelationship:a.UnboundRelationship,PathSegment:a.PathSegment,Path:a.Path,Result:a.Result,ResultSummary:a.ResultSummary,Record:a.Record,Point:a.Point,Date:a.Date,DateTime:a.DateTime,Duration:a.Duration,LocalDateTime:a.LocalDateTime,LocalTime:a.LocalTime,Time:a.Time,Integer:a.Integer};t.types=g;var b={READ:i.READ,WRITE:i.WRITE};t.session=b;var _={toNumber:a.toNumber,toString:a.toString,inSafeRange:a.inSafeRange};t.integer=_;var w={isPoint:a.isPoint};t.spatial=w;var x={isDuration:a.isDuration,isLocalTime:a.isLocalTime,isTime:a.isTime,isDate:a.isDate,isLocalDateTime:a.isLocalDateTime,isDateTime:a.isDateTime};t.temporal=x;var S={driver:p,int:a.int,isInt:a.isInt,isPoint:a.isPoint,isDuration:a.isDuration,isLocalTime:a.isLocalTime,isTime:a.isTime,isDate:a.isDate,isLocalDateTime:a.isLocalDateTime,isDateTime:a.isDateTime,integer:_,Neo4jError:a.Neo4jError,auth:v,logging:y,types:g,session:b,error:a.error,spatial:w,temporal:x};t.default=S}).call(this,n(77))},,function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ENCRYPTION_OFF=t.ENCRYPTION_ON=t.validateQueryAndParameters=t.assertValidDate=t.assertNumberOrInteger=t.assertNumber=t.assertString=t.assertObject=t.isString=t.isObject=t.isEmptyObjectOrNull=void 0;var r=n(245),i=n(472);t.ENCRYPTION_ON="ENCRYPTION_ON";function o(e){return"object"===typeof e&&!Array.isArray(e)&&null!==e}function a(e,t){if(!s(e))throw new TypeError(t+" expected to be string but was: "+i.stringify(e));return e}function s(e){return"[object String]"===Object.prototype.toString.call(e)}t.ENCRYPTION_OFF="ENCRYPTION_OFF",t.isEmptyObjectOrNull=function(e){if(null===e)return!0;if(!o(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.bind(e,t))return!1;return!0},t.isObject=o,t.validateQueryAndParameters=function(e,t,n){var r="",i=t||{},s=(null===n||void 0===n?void 0:n.skipAsserts)||!1;return"string"===typeof e?r=e:e instanceof String?r=e.toString():"object"===typeof e&&e.text&&(r=e.text,i=e.parameters||{}),s||(function(e){if(a(e,"Cypher query"),0===e.trim().length)throw new TypeError("Cypher query is expected to be a non-empty string.")}(r),function(e){if(!o(e)){var t=e.constructor?" "+e.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:"+t+" "+e)}}(i)),{validatedQuery:r,params:i}},t.assertObject=function(e,t){if(!o(e))throw new TypeError(t+" expected to be an object but was: "+i.stringify(e));return e},t.assertString=a,t.assertNumber=function(e,t){if("number"!==typeof e)throw new TypeError(t+" expected to be a number but was: "+i.stringify(e));return e},t.assertNumberOrInteger=function(e,t){if("number"!==typeof e&&"bigint"!==typeof e&&!r.isInt(e))throw new TypeError(t+" expected to be either a number or an Integer object but was: "+i.stringify(e));return e},t.assertValidDate=function(e,t){if("[object Date]"!==Object.prototype.toString.call(e))throw new TypeError(t+" expected to be a standard JavaScript Date but was: "+i.stringify(e));if(Number.isNaN(e.getTime()))throw new TypeError(t+" expected to be valid JavaScript Date but its time was NaN: "+i.stringify(e));return e},t.isString=s},function(e,t,n){"use strict";var r=n(44).clone,i=n(32).isInteger;t.name="Index",t.path="type",t.factory=function(e){function t(r){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var i=0,o=arguments.length;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function O(){return!0}function E(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function k(e,t){return M(e,t,0)}function T(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var C,N,P,j="function"===typeof Symbol&&Symbol.iterator,A=j||"@@iterator";function I(e){this.next=e}function D(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function R(){return{value:void 0,done:!0}}function z(e){return!!U(e)}function L(e){return e&&"function"===typeof e.next}function F(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(j&&e[j]||e["@@iterator"]);if("function"===typeof t)return t}function B(e){return e&&"number"===typeof e.length}function H(e){return null===e||void 0===e?X():a(e)?e.toSeq():function(e){var t=ee(e)||"object"===typeof e&&new G(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function W(e){return null===e||void 0===e?X().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():J(e)}function q(e){return null===e||void 0===e?X():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():Q(e)}function Y(e){return(null===e||void 0===e?X():a(e)?s(e)?e.entrySeq():e:Q(e)).toSetSeq()}function V(e){this._array=e,this.size=e.length}function G(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function $(e){this._iterable=e,this.size=e.length||e.size}function K(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return C||(C=new V([]))}function J(e){var t=Array.isArray(e)?new V(e).fromEntrySeq():L(e)?new K(e).fromEntrySeq():z(e)?new $(e).fromEntrySeq():"object"===typeof e?new G(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Q(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return B(e)?new V(e):L(e)?new K(e):z(e)?new $(e):void 0}function te(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new I((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:D(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,q(n).map((function(r,i){return e(t,r,i,n)}))):oe(n)?t.call(i,r,W(n).map((function(r,i){return e(t,r,i,n)}))):n}(t,e,"",{"":e}):ie(e)}function ie(e){return Array.isArray(e)?q(e).map(ie).toList():oe(e)?W(e).map(ie).toMap():e}function oe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(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!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(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||s(e)!==s(t)||u(e)!==u(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ae(i[1],e)&&(n||ae(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var f=!0,h=t.__iterate((function(t,r){if(n?!e.has(t):i?!ae(t,e.get(r,v)):!ae(e.get(r,v),t))return f=!1,!1}));return f&&e.size===h}function ue(e,t){if(!(this instanceof ue))return new ue(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(N)return N;N=this}}function ce(e,t){if(!e)throw new Error(t)}function le(e,t,n){if(!(this instanceof le))return new le(e,t,n);if(ce(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),tr?{value:void 0,done:!0}:D(e,i,n[t?r-i++:i++])}))},t(G,W),G.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},G.prototype.has=function(e){return this._object.hasOwnProperty(e)},G.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},G.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new I((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:D(e,a,n[a])}))},G.prototype[p]=!0,t($,q),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=F(this._iterable),r=0;if(L(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},$.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=F(this._iterable);if(!L(n))return new I(R);var r=0;return new I((function(){var t=n.next();return t.done?t:D(e,r++,t.value)}))},t(K,q),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return D(e,i,r[i++])}))},t(ue,q),ue.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ue.prototype.get=function(e,t){return this.has(e)?this._value:t},ue.prototype.includes=function(e){return ae(this._value,e)},ue.prototype.slice=function(e,t){var n=this.size;return E(e,t,n)?this:new ue(this._value,T(t,n)-k(e,n))},ue.prototype.reverse=function(){return this},ue.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},ue.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},ue.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:D(e,o++,a)}))},le.prototype.equals=function(e){return e instanceof le?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(fe,n),t(he,fe),t(de,fe),t(pe,fe),fe.Keyed=he,fe.Indexed=de,fe.Set=pe;var ve="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)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;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Ee?function(e){var t=Me[e];return void 0===t&&(t=ge(e),Te===ke&&(Te=0,Me={}),Te++,Me[e]=t),t}(e):ge(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(xe&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Oe]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Oe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),xe)be.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Oe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Oe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Oe]=t}}return t}(e);if("function"===typeof e.toString)return ge(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ge(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Ne.prototype.toString=function(){return this.__toString("Map {","}")},Ne.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ne.prototype.set=function(e,t){return Ye(this,e,t)},Ne.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},Ne.prototype.remove=function(e){return Ye(this,e,v)},Ne.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},Ne.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ne.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===v,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}ce(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?v:t.get(c,v),f=e(l,n,r,i);return f===l?t:f===v?t.remove(c):(o?qe():t).set(c,f)}(this,Kt(e),t,n);return r===v?void 0:r},Ne.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qe()},Ne.prototype.merge=function(){return Ke(this,void 0,arguments)},Ne.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ke(this,t,n)},Ne.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,qe(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ne.prototype.mergeDeep=function(){return Ke(this,Ze,arguments)},Ne.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ke(this,Xe(t),n)},Ne.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,qe(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ne.prototype.sort=function(e){return wt(Lt(this,e))},Ne.prototype.sortBy=function(e,t){return wt(Lt(this,t,e))},Ne.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ne.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Ne.prototype.asImmutable=function(){return this.__ensureOwner()},Ne.prototype.wasAltered=function(){return this.__altered},Ne.prototype.__iterator=function(e,t){return new Ue(this,e,t)},Ne.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},Ne.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?We(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ne.isMap=Pe;var je,Ae="@@__IMMUTABLE_MAP__@@",Ie=Ne.prototype;function De(e,t){this.ownerID=e,this.entries=t}function Re(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Le(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ue(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&He(e._root)}function Be(e,t){return D(e,t[0],t[1])}function He(e,t){return{node:e,index:0,__prev:t}}function We(e,t,n,r){var i=Object.create(Ie);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function qe(){return je||(je=We(0))}function Ye(e,t,n){var r,i;if(e._root){var o=g(m),a=g(y);if(r=Ve(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===v?-1:1:0)}else{if(n===v)return e;i=1,r=new De(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?We(i,r):qe()}function Ve(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===v?e:(b(s),b(a),new Fe(t,r,[i,o]))}function Ge(e){return e.constructor===Fe||e.constructor===Le}function $e(e,t,n,r,i){if(e.keyHash===r)return new Le(t,r,[e.entry,i]);var o,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n);return new Re(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var i=r?e:w(e);return i[t]=n,i}Ie[Ae]=!0,Ie.delete=Ie.remove,Ie.removeIn=Ie.deleteIn,De.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=tt)return function(e,t,n,r){e||(e=new _);for(var i=new Fe(e,ye(n),[n,r]),o=0;o>>e)),o=this.bitmap;return 0===(o&i)?r:this.nodes[Qe(o&i-1)].get(e+5,t,n,r)},Re.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),u=1<=nt)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new ze(e,o+1,a)}(e,h,c,s,p);if(l&&!p&&2===h.length&&Ge(h[1^f]))return h[1^f];if(l&&p&&1===h.length&&Ge(p))return p;var m=e&&e===this.ownerID,y=l?p?c:c^u:c|u,g=l?p?et(h,f,p,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},ze.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ye(r));var s=31&(0===t?n:n>>>t),u=i===v,c=this.nodes,l=c[s];if(u&&!l)return this;var f=Ve(l,e,t+5,n,r,i,o,a);if(f===l)return this;var h=this.count;if(l){if(!f&&--h0&&r<32?dt(0,r,5,null,new ut(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function ot(e){return!(!e||!e[at])}t(it,de),it.of=function(){return this(arguments)},it.prototype.toString=function(){return this.__toString("List [","]")},it.prototype.get=function(e,t){if((e=S(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?gt(e,t).set(0,n):gt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=g(y);return t>=_t(e._capacity)?r=vt(r,e.__ownerID,0,t,n,o):i=vt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):dt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},it.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},it.prototype.insert=function(e,t){return this.splice(e,0,t)},it.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):pt()},it.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new ut([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=mt(this,e);if(!o)for(var u=0;u>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=mt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ct,lt,ft={};function ht(e,t){var n=e._origin,r=e._capacity,i=_t(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,u){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,u=a>n?0:n-a,c=r-a;return c>32&&(c=32),function(){if(u===c)return ft;var e=t?--c:u++;return s&&s[e]}}(e,u):function(e,i,o){var s,u=e&&e.array,c=o>n?0:n-o>>i,l=1+(r-o>>i);return l>32&&(l=32),function(){for(;;){if(s){var e=s();if(e!==ft)return e;s=null}if(c===l)return ft;var n=t?--l:c++;s=a(u&&u[n],i-5,o+(n<>>n&31,u=e&&s0){var c=e&&e.array[s],l=vt(c,t,n-5,r,i,o);return l===c?e:((a=mt(e,t)).array[s]=l,a)}return u&&e.array[s]===i?e:(b(o),a=mt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function mt(e,t){return t&&e&&t===e.ownerID?e:new ut(e?e.array.slice():[],t)}function yt(e,t){if(t>=_t(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function gt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new ut(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=5);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=_t(o),h=_t(s);h>=1<f?new ut([],r):d;if(d&&h>f&&a5;m-=5){var y=f>>>m&31;v=v.array[y]=mt(v.array[y],r)}v.array[f>>>5&31]=d}if(s=h)a-=h,s-=h,u=5,c=null,p=p&&p.removeBefore(r,0,a);else if(a>i||h>>u&31;if(g!==h>>>u&31)break;g&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&ho&&(o=c.size),a(u)||(c=c.map((function(e){return re(e)}))),r.push(c)}return o>e.size&&(e=e.setSize(o)),Je(e,t,r)}function _t(e){return e<32?0:e-1>>>5<<5}function wt(e){return null===e||void 0===e?Ot():xt(e)?e:Ot().withMutations((function(t){var n=r(e);Ce(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xt(e){return Pe(e)&&l(e)}function St(e,t,n,r){var i=Object.create(wt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Ot(){return lt||(lt=St(qe(),pt()))}function Et(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),u=void 0!==s;if(n===v){if(!u)return e;a.size>=32&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):St(r,i)}function kt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function Nt(e){var t=Vt(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=Gt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new I((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(1===t?0:1,n)},t}function Pt(e,t,n){var r=Vt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,v);return o===v?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new I((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return D(r,s,t.call(n,a[1],s,e),i)}))},r}function jt(e,t){var n=Vt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Nt(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=Gt,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 At(e,t,n,r){var i=Vt(e);return r&&(i.has=function(r){var i=e.get(r,v);return i!==v&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,v);return o!==v&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new I((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return D(i,r?c:s++,l,o)}}))},i}function It(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),E(t,n,i))return e;var o=k(t,i),a=T(n,i);if(o!==o||a!==a)return It(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var c=Vt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&Z(e)&&s>=0&&(c.get=function(t,n){return(t=S(this,t))>=0&&ts)return{value:void 0,done:!0};var e=i.next();return r||1===t?e:D(t,u-1,0===t?void 0:e.value[1],e)}))},c}function Dt(e,t,n,r){var i=Vt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),u=!0,c=0;return new I((function(){var e,o,l;do{if((e=s.next()).done)return r||1===i?e:D(i,c++,0===i?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],u&&(u=t.call(n,l,o,a))}while(u);return 2===i?e:D(i,o,l,e)}))},i}function Rt(e,t){var n=s(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?J(e):Q(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||u(e)&&u(o))return o}var c=new V(i);return n?c=c.toKeyedSeq():u(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function zt(e,t,n){var r=Vt(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(u,c){var l=this;u.__iterate((function(i,u){return(!t||c0}function Bt(e,t,r){var i=Vt(e);return i.size=new V(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),F(i?e.reverse():e)})),a=0,s=!1;return new I((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:D(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Ht(e,t){return Z(e)?t:e.constructor(t)}function Wt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qt(e){return Ce(e.size),x(e)}function Yt(e){return s(e)?r:u(e)?i:o}function Vt(e){return Object.create((s(e)?W:u(e)?q:Y).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function $t(e,t){return e>t?1:e=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):wn(e,t)},mn.prototype.pushAll=function(e){if(0===(e=i(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):wn(t,n)},mn.prototype.pop=function(){return this.slice(1)},mn.prototype.unshift=function(){return this.push.apply(this,arguments)},mn.prototype.unshiftAll=function(e){return this.pushAll(e)},mn.prototype.shift=function(){return this.pop.apply(this,arguments)},mn.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):xn()},mn.prototype.slice=function(e,t){if(E(e,t,this.size))return this;var n=k(e,this.size);if(T(t,this.size)!==this.size)return de.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):wn(r,i)},mn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},mn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},mn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new I((function(){if(r){var t=r.value;return r=r.next,D(e,n++,t)}return{value:void 0,done:!0}}))},mn.isStack=yn;var gn,bn="@@__IMMUTABLE_STACK__@@",_n=mn.prototype;function wn(e,t,n,r){var i=Object.create(_n);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xn(){return gn||(gn=wn(0))}function Sn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}_n[bn]=!0,_n.withMutations=Ie.withMutations,_n.asMutable=Ie.asMutable,_n.asImmutable=Ie.asImmutable,_n.wasAltered=Ie.wasAltered,n.Iterator=I,Sn(n,{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 Tt(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 kt(this,!0)},toMap:function(){return Ne(this.toKeyedSeq())},toObject:function(){Ce(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return wt(this.toKeyedSeq())},toOrderedSet:function(){return ln(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mn(s(this)?this.valueSeq():this)},toList:function(){return it(s(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 t=e.call(arguments,0);return Ht(this,Rt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ce(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Ht(this,At(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(0)},map:function(e,t){return Ht(this,Pt(this,e,t))},reduce:function(e,t,n){var r,i;return Ce(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ht(this,jt(this,!0))},slice:function(e,t){return Ht(this,It(this,e,t,!0))},some:function(e,t){return!this.every(Mn(e),t)},sort:function(e){return Ht(this,Lt(this,e))},values:function(){return this.__iterator(1)},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 x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ne().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new V(e._cache);var t=e.toSeq().map(Tn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Mn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,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(O)},flatMap:function(e,t){return Ht(this,function(e,t,n){var r=Yt(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ht(this,zt(this,e,!0))},fromEntrySeq:function(){return new Ct(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=Kt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(l(e)?wt():Ne()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=Yt(e);return i.map((function(t){return Ht(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(kn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ft(this,e)},maxBy:function(e,t){return Ft(this,t,e)},min:function(e){return Ft(this,e?Cn(e):jn)},minBy:function(e,t){return Ft(this,t?Cn(t):jn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ht(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ht(this,Dt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Mn(e),t)},sortBy:function(e,t){return Ht(this,Lt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ht(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ht(this,function(e,t,n){var r=Vt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new I((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(n,c,u,o)?2===r?e:D(r,u,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Mn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0;return function(e,t){return t=ve(t,3432918353),t=ve(t<<15|t>>>-15,461845907),t=ve(t<<13|t>>>-13,5),t=ve((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=ve(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+An(ye(e),ye(t))|0}:function(e,t){r=r+An(ye(e),ye(t))|0}:t?function(e){r=31*r+ye(e)|0}:function(e){r=r+ye(e)|0}),r)}(this))}});var On=n.prototype;On[f]=!0,On[A]=On.values,On.__toJS=On.toArray,On.__toStringMapper=Nn,On.inspect=On.toSource=function(){return this.toString()},On.chain=On.flatMap,On.contains=On.includes,Sn(r,{flip:function(){return Ht(this,Nt(this))},mapEntries:function(e,t){var n=this,r=0;return Ht(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ht(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var En=r.prototype;function kn(e,t){return t}function Tn(e,t){return[t,e]}function Mn(e){return function(){return!e.apply(this,arguments)}}function Cn(e){return function(){return-e.apply(this,arguments)}}function Nn(e){return"string"===typeof e?JSON.stringify(e):String(e)}function Pn(){return w(arguments)}function jn(e,t){return et?-1:0}function An(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return En[h]=!0,En[A]=On.entries,En.__toJS=On.toObject,En.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Nn(e)},Sn(i,{toKeyedSeq:function(){return new kt(this,!1)},filter:function(e,t){return Ht(this,At(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 Ht(this,jt(this,!1))},slice:function(e,t){return Ht(this,It(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=k(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ht(this,1===n?r:r.concat(w(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 Ht(this,zt(this,e,!1))},get:function(e,t){return(e=S(this,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=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e"}try{s.currentTarget=Object(r.c)(a.currentTarget)?Object(o.h)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(u){s.currentTarget=""}for(var i in"undefined"!==typeof CustomEvent&&Object(r.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,i)&&(s[i]=a);return s}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function f(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=p(e,t);return l(r)>n?f(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!==typeof e&&t===e?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":Object(r.l)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: "+Object(o.e)(t)+"]":t}function d(e,t,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new i.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(r.i)(n)?n:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var a=h(t,e);if(Object(r.i)(a))return a;var s=c(t),u=Array.isArray(t)?[]:{};if(o.memoize(t))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u[l]=d(l,s[l],n-1,o));return o.unmemoize(t),u}function p(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return d(e,n,t)})))}catch(n){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(c(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(a.d)(i,t)}return""}}).call(this,n(77))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(83);t.name="algorithm07",t.factory=function(e,t,n,i){var o=e.DenseMatrix;function a(e,t,n,r,i){for(var o=e._values,a=e._index,s=e._ptr,u=s[t],c=s[t+1];u0?1:-1:r(o,f);if("Array"===o||"Matrix"===o||"Array"===f||"Matrix"===f)return 0!==(i=function t(n,r){if(e.isSparseMatrix(n)&&e.isSparseMatrix(r))return l(n.toJSON().values,r.toJSON().values);if(e.isSparseMatrix(n))return t(n.toArray(),r);if(e.isSparseMatrix(r))return t(n,r.toArray());if(e.isDenseMatrix(n))return t(n.toJSON().data,r);if(e.isDenseMatrix(r))return t(n,r.toJSON().data);if(!Array.isArray(n))return t([n],r);if(!Array.isArray(r))return t(n,[r]);return l(n,r)}(t,n))?i:r(o,f);if(o!==f)return r(o,f);if("Complex"===o)return function(e,t){if(e.re>t.re)return 1;if(e.ret.im)return 1;if(e.imt.length?1:e.length=3){var n=parseInt(t[1],10),r=t[2];return n*d[r].length*1e3}},windowPositionFromDate:function(e,t){var n=this.windowDuration(e),r=l.default.utc(t).valueOf();return parseInt(r/=n,10)},rangeFromIndexString:function(e,t){var n,r,i=!!u.default.isUndefined(t)||t,o=e.split("-");switch(o.length){case 3:if(!u.default.isNaN(parseInt(o[0],10))&&!u.default.isNaN(parseInt(o[1],10))&&!u.default.isNaN(parseInt(o[2],10))){var a=parseInt(o[0],10),s=parseInt(o[1],10),c=parseInt(o[2],10);n=i?l.default.utc([a,s-1,c]):(0,l.default)([a,s-1,c]),r=i?l.default.utc(n).endOf("day"):(0,l.default)(n).endOf("day")}break;case 2:var h=/([0-9]+)([smhd])/.exec(o[0]);if(h&&h.length>=3&&!u.default.isNaN(parseInt(o[1],10))){var p=parseInt(o[1],10),v=parseInt(h[1],10),m=h[2],y=v*d[m].length*1e3;n=i?l.default.utc(p*y):(0,l.default)(p*y),r=i?l.default.utc((p+1)*y):(0,l.default)((p+1)*y)}else if(!u.default.isNaN(parseInt(o[0],10))&&!u.default.isNaN(parseInt(o[1],10))){var g=parseInt(o[0],10),b=parseInt(o[1],10);n=i?l.default.utc([g,b-1]):(0,l.default)([g,b-1]),r=i?l.default.utc(n).endOf("month"):(0,l.default)(n).endOf("month")}break;case 1:var _=o[0];n=i?l.default.utc([_]):(0,l.default)([_]),r=i?l.default.utc(n).endOf("year"):(0,l.default)(n).endOf("year")}return n&&n.isValid()&&r&&r.isValid()?new f.default(n,r):void 0},niceIndexString:function(e,t){var n,r=e.split("-");switch(r.length){case 3:if(!u.default.isNaN(parseInt(r[0],10))&&!u.default.isNaN(parseInt(r[1],10))&&!u.default.isNaN(parseInt(r[2],10))){var i=parseInt(r[0],10),o=parseInt(r[1],10),a=parseInt(r[2],10);return n=l.default.utc([i,o-1,a]),t?n.format(t):n.format("MMMM Do YYYY")}break;case 2:var s=/([0-9]+)([smhd])/.exec(r[0]);if(s&&s.length>=3&&!u.default.isNaN(parseInt(r[1],10)))return e;if(!u.default.isNaN(parseInt(r[0],10))&&!u.default.isNaN(parseInt(r[1],10))){var c=parseInt(r[0],10),f=parseInt(r[1],10);return n=l.default.utc([c,f-1]),t?n.format(t):n.format("MMMM")}break;case 1:var h=r[0];return n=l.default.utc([h]),t?n.format(t):n.format("YYYY")}return e},isMissing:function(e){return u.default.isNull(e)||u.default.isUndefined(e)||u.default.isNaN(e)},fieldPathToArray:function(e){return u.default.isArray(e)||u.default.isFunction(e)?e:u.default.isString(e)?e.split("."):u.default.isUndefined(e)?["value"]:void 0},generatePaths:function(e){var t=i.mark(r),n=[];function r(e){var n,s,c,l,f,h,d,p=arguments;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:[],!u.default.isObject(e)){t.next=27;break}s=0,c=Object.keys(e);case 3:if(!(s1&&void 0!==arguments[1])||arguments[1];if(u.default.isString(e))return new h.default(e,t);if(e instanceof h.default)return e;throw new Error("Unable to get index from ".concat(e,". Should be a string or Index."))},dataFromArg:function(e){var t;if(u.default.isObject(e))t=new c.default.fromJS(e);else if(t instanceof c.default.Map)t=e;else{if(!u.default.isNumber(e)&&!u.default.isString(e))throw new Error("Unable to interpret event data from ".concat(e,"."));t=new c.default.Map({value:e})}return t}};t.default=p},function(e,t,n){var r=n(195);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(575),i=n(347),o=n(133);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return c}));var r,i,o,a,s,u=n(412);function c(e){return r=Object(u.a)(e),i=r.format,o=r.parse,a=r.utcFormat,s=r.utcParse,r}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(4),i=n(68),o=n(80),a=n(16);function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof t?function(r){return r.pipe(s((function(n,r){return Object(o.a)(e(n,r)).pipe(Object(i.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"===typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.b(t,e),t.prototype._next=function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(a.b),l=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(18),i=n(423),o=n(284);function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i=n(330),o=function(e){function t(n,r){void 0===r&&(r=i.a.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.b(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(46),o=n(39),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.b(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.b(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.b(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(39).a))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52);function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},function(e,t,n){"use strict";var r=n(238);t.a=function(e){return(e=Object(r.a)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";n.d(t,"c",(function(){return $})),n.d(t,"a",(function(){return K}));var r=n(275),i=n(414),o=n(413),a=function(e){return new Array(e.length)};function s(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}s.prototype={constructor:s,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function u(e,t,n,r,i,o){for(var a,u=0,c=t.length,l=o.length;ut?1:e>=t?0:NaN}var f=n(274);function h(e){return function(){this.removeAttribute(e)}}function d(e){return function(){this.removeAttributeNS(e.space,e.local)}}function p(e,t){return function(){this.setAttribute(e,t)}}function v(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function m(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function y(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var g=n(415);function b(e){return function(){delete this[e]}}function _(e,t){return function(){this[e]=t}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function x(e){return e.trim().split(/^|\s+/)}function S(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=x(e.getAttribute("class")||"")}function E(e,t){for(var n=S(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function N(){this.textContent=""}function P(e){return function(){this.textContent=e}}function j(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function A(){this.innerHTML=""}function I(e){return function(){this.innerHTML=e}}function D(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function R(){this.nextSibling&&this.parentNode.appendChild(this)}function z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var L=n(198);function F(){return null}function U(){var e=this.parentNode;e&&e.removeChild(this)}function B(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function H(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var W=n(232),q=n(276);function Y(e,t,n){var r=Object(q.a)(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function V(e,t){return function(){return Y(this,e,t)}}function G(e,t){return function(){return Y(this,e,t.apply(this,arguments))}}var $=[null];function K(e,t){this._groups=e,this._parents=t}function Z(){return new K([[document.documentElement]],$)}K.prototype=Z.prototype={constructor:K,select:function(e){"function"!==typeof e&&(e=Object(r.a)(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o=S&&(S=x+1);!(w=b[S])&&++S=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?b:"function"===typeof t?w:_)(e,t)):this.node()[e]},classed:function(e,t){var n=x(e+"");if(arguments.length<2){for(var r=S(this.node()),i=-1,o=n.length;++it},"number, number":function(e,n){return e>n&&!r(e,n,t.epsilon)},"BigNumber, BigNumber":function(e,n){return e.gt(n)&&!i(e,n,t.epsilon)},"Fraction, Fraction":function(e,t){return 1===e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return p(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return c(e,t,p)},"SparseMatrix, DenseMatrix":function(e,t){return u(t,e,p,!0)},"DenseMatrix, SparseMatrix":function(e,t){return u(e,t,p,!1)},"DenseMatrix, DenseMatrix":function(e,t){return f(e,t,p)},"Array, Array":function(e,t){return p(s(e),s(t)).valueOf()},"Array, Matrix":function(e,t){return p(s(e),t)},"Matrix, Array":function(e,t){return p(e,s(t))},"SparseMatrix, any":function(e,t){return l(e,t,p,!1)},"DenseMatrix, any":function(e,t){return h(e,t,p,!1)},"any, SparseMatrix":function(e,t){return l(t,e,p,!0)},"any, DenseMatrix":function(e,t){return h(t,e,p,!0)},"Array, any":function(e,t){return h(s(e),t,p,!1).valueOf()},"any, Array":function(e,t){return h(s(t),e,p,!0).valueOf()}});return p.toTex={2:"\\left(${args[0]}".concat(d.operators.larger,"${args[1]}\\right)")},p}},function(e,t,n){"use strict";var r=n(21),i=n(32);t.name="isInteger",t.factory=function(e,t,n,o){var a=o("isInteger",{number:i.isInteger,BigNumber:function(e){return e.isInt()},Fraction:function(e){return 1===e.d&&isFinite(e.n)},"Array | Matrix":function(e){return r(e,a)}});return a}},function(e,t,n){"use strict";var r=n(304);e.exports=function(e){return Array.isArray(e)||r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scaleAsString=function(e){return e.domain()+"-"+e.range()},t.getElementOffset=function(e){var t=document.documentElement,n=e.getBoundingClientRect(),r=n.top+window.pageYOffset-t.clientTop,i=n.left+window.pageXOffset-t.clientLeft;return{top:r,left:i}}},function(e,t,n){var r=n(147),i=n(755),o=n(535),a=Object.defineProperty;t.f=n(171)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(262)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(134),i=n(122);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(197),i=n(408);function o(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){e.exports={default:n(1613),__esModule:!0}},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,"b",(function(){return r})),t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(289);function i(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Object(r.a)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):Object(r.a)(isNaN(e)?t:e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return _})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return O})),n.d(t,"b",(function(){return E}));var r=n(181);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),h=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),v=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),m=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new E(t[1],t[2],t[3],1):(t=h.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=d.exec(e))?x(t[1],t[2],t[3],t[4]):(t=p.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function w(e){return new E(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function S(e){return e instanceof i||(e=_(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function O(e,t,n,r){return 1===arguments.length?S(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function k(){return"#"+M(this.r)+M(this.g)+M(this.b)}function T(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function M(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function N(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=t===a?(n-r)/u+6*(n0&&c<1?0:s,new P(s,u,c,e.opacity)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function j(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Object(r.a)(i,_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return N(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(E,O,Object(r.b)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatRgb:T,toString:T})),Object(r.a)(P,(function(e,t,n,r){return 1===arguments.length?N(e):new P(e,t,n,null==r?1:r)}),Object(r.b)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new E(j(e>=240?e-240:e+120,i,r),j(e,i,r),j(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){var r=n(863),i=n(899),o=n(214),a=n(60),s=n(902);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(896),i=n(449),o=n(897),a=n(588),s=n(589),u=n(134),c=n(579),l=c(r),f=c(i),h=c(o),d=c(a),p=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(928),i=n(930);e.exports=function(e,t,n){return r(i,e,t,n)}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.memoize=function(e,t){return function n(){"object"!==r(n.cache)&&(n.cache={});for(var i=[],o=0;o2?" (type: "+o(n)+", value: "+JSON.stringify(n)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+r)):-1!==String(e).indexOf("complex numbers")?(r=arguments.length>2?" (type: "+o(n)+", value: "+JSON.stringify(n)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+r)):e}}},function(e,t,n){"use strict";var r=n(33),i=n(38),o=n(41);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(42)),s=o(n(126)),u=o(n(146)),c=function(){function e(){if(r(this,e),"Event"===this.constructor.name)throw new TypeError("Cannot construct Event instances directly")}return i(e,[{key:"toString",value:function(){if(void 0===this.toJSON)throw new TypeError("Must implement toJSON()");return JSON.stringify(this.toJSON())}},{key:"type",value:function(){return this.constructor}},{key:"setData",value:function(e){return new(this.type())(this._d.set("data",u.default.dataFromArg(e)))}},{key:"data",value:function(){return this._d.get("data")}},{key:"get",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["value"];if(a.default.isArray(t))e=this.data().getIn(t);else if(a.default.isString(t)){var n=t.split(".");e=this.data().getIn(n)}return e instanceof s.default.Map||e instanceof s.default.List?e.toJS():e}},{key:"value",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["value"];return this.get(e)}},{key:"collapse",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i?this.data().toJS():{},a=e.map((function(e){return r.get(e)}));return o[t]=n(a),this.setData(o)}}],[{key:"is",value:function(e,t){return e.key()===t.key()&&s.default.is(e._d.get("data"),t._d.get("data"))}},{key:"isDuplicate",value:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r?t.type()===n.type()&&t.key()===n.key():t.type()===n.type()&&e.is(t,n)}},{key:"isValidValue",value:function(e,t){var n=e.value(t);return!(a.default.isUndefined(n)||a.default.isNaN(n)||a.default.isNull(n))}},{key:"selector",value:function(e,t){var n={};if(a.default.isString(t)){var r=t,i=e.get(r);n[r]=i}else{if(!a.default.isArray(t))return e;a.default.each(t,(function(t){var r=e.get(t);n[t]=r}))}return e.setData(n)}},{key:"merge",value:function(e,t){if(e instanceof s.default.List&&0===e.size||a.default.isArray(e)&&0===e.length)return[];var n={},r={};e.forEach((function(e){var t=e.type(),i=e.key();if(a.default.has(n,i)||(n[i]=[]),n[i].push(e),a.default.has(r,i)){if(r[i]!==t)throw new Error("Events for time ".concat(i," are not homogeneous"))}else r[i]=t}));var i=[];return a.default.each(n,(function(e,n){var o=s.default.Map();e.forEach((function(e){o=t?o.mergeDeep(e.data()):o.merge(e.data())}));var a=r[n];i.push(new a(n,o))})),e instanceof s.default.List?s.default.List(i):i}},{key:"combine",value:function(e,t,n){if(e instanceof s.default.List&&0===e.size||a.default.isArray(e)&&0===e.length)return[];var r;a.default.isString(n)?r=[n]:a.default.isArray(n)&&(r=n);var i={},o={};e.forEach((function(e){var t=e.type(),n=e.key();if(a.default.has(i,n)||(i[n]=[]),i[n].push(e),a.default.has(o,n)){if(o[n]!==t)throw new Error("Events for time ".concat(n," are not homogeneous"))}else o[n]=t}));var u=[];return a.default.each(i,(function(e,n){var i={};e.forEach((function(e){var t=r;r||(t=a.default.map(e.data().toJSON(),(function(e,t){return t}))),t.forEach((function(t){i[t]||(i[t]=[]),i[t].push(e.data().get(t))}))}));var s={};a.default.map(i,(function(e,n){s[n]=t(e)}));var c=o[n];u.push(new c(n,s))})),e instanceof s.default.List?s.default.List(u):u}},{key:"combiner",value:function(t,n){return function(r){return e.combine(r,n,t)}}},{key:"merger",value:function(t){return function(n){return e.merge(n,t)}}},{key:"map",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r={};if(e instanceof s.default.List)t=e;else{if(!a.default.isArray(e))throw new Error("Unknown event list type. Should be an array or Immutable List");t=new s.default.List(e)}if(a.default.isString(n)){var i=n;t.forEach((function(e){a.default.has(r,i)||(r[i]=[]);var t=e.get(i);r[i].push(t)}))}else a.default.isArray(n)?a.default.each(n,(function(e){t.forEach((function(t){a.default.has(r,e)||(r[e]=[]),r[e].push(t.get(e))}))})):a.default.isFunction(n)?t.forEach((function(e){var t=n(e);a.default.each(t,(function(e,t){a.default.has(r,t)||(r[t]=[]),r[t].push(e)}))})):t.forEach((function(e){a.default.each(e.data().toJSON(),(function(e,t){a.default.has(r,t)||(r[t]=[]),r[t].push(e)}))}));return r}},{key:"reduce",value:function(e,t){var n={};return a.default.each(e,(function(e,r){n[r]=t(e)})),n}},{key:"mapReduce",value:function(t,n,r){return e.reduce(this.map(t,n),r)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Styler=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=t.Styler=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Paired";if(c(this,e),this.columnStyles={},o.default.isArray(t)&&t.forEach((function(e){if(o.default.isString(e))n.columnStyles[e]={key:e};else if(o.default.isObject(e)){var t=e.key,r=u(e,["key"]);n.columnStyles[t]=r}})),this.columnNames=o.default.map(t,(function(e){return o.default.isString(e)?e:e.key})),r&&!o.default.has(a.default,r))throw new Error("Unknown scheme '"+r+"' supplied to Style constructor");this.colorScheme=r}return i(e,[{key:"numColumns",value:function(){return this.columnNames.length}},{key:"colorLookup",value:function(e){var t=o.default.keys(a.default[this.colorScheme]),n=o.default.min(t),r=o.default.max(t),i=e>r?r:e;return i=o.default.max([i,n]),this.colorScheme?a.default[this.colorScheme][i]:[]}},{key:"legendStyle",value:function(e,t){var n=this.numColumns(),i=this.colorLookup(n),a=o.default.indexOf(this.columnNames,e),s=this.columnNames[a],u=this.columnStyles[s],c=u.color,l=u.width,f=void 0===l?1:l,h=u.dashed,d=void 0!==h&&h,p=c||i[a%i.length],v={};"swatch"===t||"dot"===t?v={fill:p,opacity:.9,stroke:p,cursor:"pointer"}:"line"===t&&(v={opacity:.9,stroke:p,strokeWidth:f,cursor:"pointer"},d&&(v.strokeDasharray="4,2"));var m={fontSize:"normal",color:"#333",paddingRight:10,cursor:"pointer"},y={fontSize:"smaller",color:"#999",cursor:"pointer"},g={symbol:{normal:r({},v,{opacity:.7}),highlighted:r({},v,{opacity:.8}),selected:r({},v,{opacity:.8}),muted:r({},v,{opacity:.2})},label:{normal:r({},m,{opacity:.7}),highlighted:r({},m,{opacity:.8}),selected:r({},m,{opacity:.8}),muted:r({},m,{opacity:.5})},value:{normal:r({},y,{opacity:.7}),highlighted:r({},y,{opacity:.8}),selected:r({},y,{opacity:.8}),muted:r({},y,{opacity:.5})}};return g}},{key:"areaChartStyle",value:function(){var e={},t=this.numColumns(),n=this.colorLookup(t),i=0;return o.default.forEach(this.columnStyles,(function(t,o){var a=t.color,s=t.selected,u=t.width,c=void 0===u?1:u,l=t.dashed,f=void 0!==l&&l,h=a||n[i%n.length],d={stroke:h,fill:"none",strokeWidth:c},p={stroke:s||a,fill:"none",strokeWidth:c};f&&(d.strokeDasharray="4,2");var v={fill:h,stroke:"none"},m={fill:s||a,stroke:"none"};e[o]={line:{normal:r({},d,{opacity:.9}),highlighted:r({},d,{opacity:1}),selected:r({},p,{opacity:1}),muted:r({},d,{opacity:.4})},area:{normal:r({},v,{opacity:.7}),highlighted:r({},v,{opacity:.8}),selected:r({},m,{opacity:.8}),muted:r({},v,{opacity:.2})}},i+=1})),e}},{key:"lineChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return o.default.forEach(this.columnStyles,(function(t,a){var s=t.color,u=t.selected,c=t.width,l=void 0===c?1:c,f=t.dashed,h=void 0!==f&&f,d=o.default.indexOf(e.columnNames,a),p=s||n[d%n.length],v={stroke:p,strokeWidth:l,fill:"none"},m={stroke:u||p,strokeWidth:l,fill:"none"};h&&(v.strokeDasharray="4,2"),i[a]={normal:r({},v,{opacity:.8,strokeWidth:l}),highlighted:r({},v,{opacity:1,strokeWidth:l}),selected:r({},m,{opacity:1,strokeWidth:l}),muted:r({},v,{opacity:.2,strokeWidth:l})}})),i}},{key:"barChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return o.default.forEach(this.columnStyles,(function(t,a){var s=t.color,u=t.selected,c=o.default.indexOf(e.columnNames,a),l=s||n[c%n.length],f={fill:l},h={fill:u||l};i[a]={normal:r({},f,{opacity:.8}),highlighted:r({},f,{opacity:1}),selected:r({},h,{opacity:1}),muted:r({},f,{opacity:.2})}})),i}},{key:"scatterChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return o.default.forEach(this.columnStyles,(function(t,a){var s=t.color,u=t.selected,c=o.default.indexOf(e.columnNames,a),l=s||n[c%n.length],f={fill:l},h={fill:u||l};i[a]={normal:r({},f,{opacity:.8}),highlighted:r({},f,{opacity:1}),selected:r({},h,{opacity:1}),muted:r({},f,{opacity:.2})}})),i}},{key:"axisStyle",value:function(e){var t=this.numColumns(),n=this.colorLookup(t),r=o.default.indexOf(this.columnNames,e),i=this.columnNames[r];return{label:{fill:this.columnStyles[i].color||n[r%n.length]}}}},{key:"boxChartStyle",value:function(){var e={},t=this.numColumns(),n=this.colorLookup(t),i=0;return o.default.forEach(this.columnStyles,(function(t,o){var a=t.color,s=t.selected,u={fill:a||n[i%n.length],stroke:"none"},c={fill:s||a,stroke:"none"};e[o]=[{normal:r({},u,{opacity:.2}),highlighted:r({},u,{opacity:.3}),selected:r({},c,{opacity:.3}),muted:r({},u,{opacity:.1})},{normal:r({},u,{opacity:.5}),highlighted:r({},u,{opacity:.6}),selected:r({},c,{opacity:.6}),muted:r({},u,{opacity:.2})},{normal:r({},u,{opacity:.9}),highlighted:r({},u,{opacity:1}),selected:r({},c,{opacity:1}),muted:r({},u,{opacity:.2})}],i+=1})),e}}]),e}()},function(e,t,n){var r,i;!function(){var o={version:"3.5.17"},a=[].slice,s=function(e){return a.call(e)},u=this.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function l(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(Js){s=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}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(Qs){var f=this.Element.prototype,h=f.setAttribute,d=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,v=p.setProperty;f.setAttribute=function(e,t){h.call(this,e,t+"")},f.setAttributeNS=function(e,t,n){d.call(this,e,t,n+"")},p.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function m(e,t){return et?1:e>=t?0:NaN}function y(e){return null===e?NaN:+e}function g(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}o.ascending=m,o.descending=function(e,t){return te?1:t>=e?0:NaN},o.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},o.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},o.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _=b(m);function w(e){return e.length}o.bisectLeft=_.left,o.bisect=o.bisectRight=_.right,o.bisector=function(e){return b(1===e.length?function(t,n){return m(e(t),n)}:e)},o.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},o.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},o.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n};var x=Math.abs;function S(e){for(var t=1;e*t%1;)t*=10;return t}function O(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function E(){this._=Object.create(null)}o.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,i=[],o=S(x(n)),a=-1;if(e*=o,t*=o,(n*=o)<0)for(;(r=e+n*++a)>t;)i.push(r/o);else for(;(r=e+n*++a)=r.length)return t?t.call(n,o):e?o.sort(e):o;for(var u,c,l,f,h=-1,d=o.length,p=r[s++],v=new E;++h=r.length)return t;var o=[],a=i[n++];return t.forEach((function(t,r){o.push({key:t,values:e(r,n)})})),a?o.sort((function(e,t){return a(e.key,t.key)})):o}(a(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new A;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}},o.event=null,o.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Y={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function V(e){return Y(e,Z),e}var G=function(e,t){return t.querySelector(e)},$=function(e,t){return t.querySelectorAll(e)},K=function(e,t){var n=e.matches||e[R(e,"matchesSelector")];return(K=function(e,t){return n.call(e,t)})(e,t)};"function"===typeof Sizzle&&(G=function(e,t){return Sizzle(e,t)[0]||null},$=Sizzle,K=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var Z=o.selection.prototype=[];function X(e){return"function"===typeof e?e:function(){return G(e,this)}}function J(e){return"function"===typeof e?e:function(){return $(e,this)}}Z.select=function(e){var t,n,r,i,o=[];e=X(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(n)?{space:ee[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node();return(e=o.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node(),r=(e=ie(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},Z.sort=function(e){e=de.apply(this,arguments);for(var t=-1,n=this.length;++t=t&&(t=i+1);!(a=s[t])&&++t0&&(e=e.slice(0,i));var u=be.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return u&&(e=u,a=we),i?t?function(){var i=a(t,s(arguments));c.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:c:t?L:function(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}o.selection.enter=ve,o.selection.enter.prototype=me,me.append=Z.append,me.empty=Z.empty,me.node=Z.node,me.call=Z.call,me.size=Z.size,me.select=function(e){for(var t,n,r,i,o,a=[],s=-1,u=this.length;++s0?1:e<0?-1:0}function ze(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Le(e){return e>1?0:e<-1?Ne:Math.acos(e)}function Fe(e){return e>1?Ae:e<-1?-Ae:Math.asin(e)}function Ue(e){return((e=Math.exp(e))+1/e)/2}function Be(e){return(e=Math.sin(e/2))*e}var He=Math.SQRT2;o.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-i,f=u-o,h=l*l+f*f;if(h0&&(e=e.transition().duration(v)),e.call(x.event)}function T(){s&&s.domain(a.range().map((function(e){return(e-h.x)/h.k})).map(a.invert)),f&&f.domain(c.range().map((function(e){return(e-h.y)/h.k})).map(c.invert))}function M(e){m++||e({type:"zoomstart"})}function C(e){T(),e({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function N(e){--m||(e({type:"zoomend"}),t=null)}function P(){var e=this,t=w.of(e,arguments),n=0,r=o.select(l(e)).on(g,s).on(b,u),i=S(o.mouse(e)),a=Oe(e);function s(){n=1,E(o.mouse(e),i),C(t)}function u(){r.on(g,null).on(b,null),a(n),N(t)}ws.call(e),M(t)}function j(){var e,t=this,n=w.of(t,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,c="touchend"+s,l=[],f=o.select(t),d=Oe(t);function p(){var n=o.touches(t);return e=h.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=S(e))})),n}function v(){var e=o.event.target;o.select(e).on(u,m).on(c,g),l.push(e);for(var n=o.event.changedTouches,s=0,f=n.length;s1){y=d[0];var b=d[1],_=y[0]-b[0],w=y[1]-b[1];a=_*_+w*w}}function m(){var s,u,c,l,f=o.touches(t);ws.call(t);for(var h=0,d=f.length;h360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new st(o(e+120),o(e),o(e-120))}function Ze(e,t,n){return this instanceof Ze?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ze?new Ze(e.h,e.c,e.l):rt(e instanceof Qe?e.l:(e=pt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ze(e,t,n)}$e.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,this.l/e)},$e.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,e*this.l)},$e.rgb=function(){return Ke(this.h,this.s,this.l)},o.hcl=Ze;var Xe=Ze.prototype=new Ve;function Je(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Qe(n,Math.cos(e*=Ie)*t,Math.sin(e)*t)}function Qe(e,t,n){return this instanceof Qe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Qe?new Qe(e.l,e.a,e.b):e instanceof Ze?Je(e.h,e.c,e.l):pt((e=st(e)).r,e.g,e.b):new Qe(e,t,n)}Xe.brighter=function(e){return new Ze(this.h,this.c,Math.min(100,this.l+et*(arguments.length?e:1)))},Xe.darker=function(e){return new Ze(this.h,this.c,Math.max(0,this.l-et*(arguments.length?e:1)))},Xe.rgb=function(){return Je(this.h,this.c,this.l).rgb()},o.lab=Qe;var et=18,tt=Qe.prototype=new Ve;function nt(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return new st(at(3.2404542*(i=.95047*it(i))-1.5371385*(r=1*it(r))-.4985314*(o=1.08883*it(o))),at(-.969266*i+1.8760108*r+.041556*o),at(.0556434*i-.2040259*r+1.0572252*o))}function rt(e,t,n){return e>0?new Ze(Math.atan2(n,t)*De,Math.sqrt(t*t+n*n),e):new Ze(NaN,NaN,e)}function it(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ot(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function at(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function st(e,t,n){return this instanceof st?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof st?new st(e.r,e.g,e.b):ht(""+e,st,Ke):new st(e,t,n)}function ut(e){return new st(e>>16,e>>8&255,255&e)}function ct(e){return ut(e)+""}tt.brighter=function(e){return new Qe(Math.min(100,this.l+et*(arguments.length?e:1)),this.a,this.b)},tt.darker=function(e){return new Qe(Math.max(0,this.l-et*(arguments.length?e:1)),this.a,this.b)},tt.rgb=function(){return nt(this.l,this.a,this.b)},o.rgb=st;var lt=st.prototype=new Ve;function ft(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ht(e,t,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(mt(i[0]),mt(i[1]),mt(i[2]))}return(o=yt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),t(a,s,u))}function dt(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(t0&&u<1?0:r),new Ge(r,i,u)}function pt(e,t,n){var r=ot((.4124564*(e=vt(e))+.3575761*(t=vt(t))+.1804375*(n=vt(n)))/.95047),i=ot((.2126729*e+.7151522*t+.072175*n)/1);return Qe(116*i-16,500*(r-i),200*(i-ot((.0193339*e+.119192*t+.9503041*n)/1.08883)))}function vt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}lt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,c)}catch(Js){return void a.error.call(i,Js)}a.load.call(i,e)}else a.error.call(i,c)}return this.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var t=o.event;o.event=e;try{a.progress.call(i,c)}finally{o.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u[e]:(null==t?delete u[e]:u[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(l=e,i):l},i.response=function(e){return n=e,i},["get","post"].forEach((function(e){i[e]=function(){return i.send.apply(i,[e].concat(s(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"===typeof r&&(o=r,r=null),c.open(n,e,!0),null==t||"accept"in u||(u.accept=t+",*/*"),c.setRequestHeader)for(var s in u)c.setRequestHeader(s,u[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=o&&i.on("error",o).on("load",(function(e){o(null,e)})),a.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}yt.forEach((function(e,t){yt.set(e,ut(t))})),o.functor=gt,o.xhr=bt(I),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=_t(e,t,null==n?o:a(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?o:a(e)):n},i}function o(e){return i.parse(e.responseText)}function a(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(u).join(e)}function u(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,(function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i}))},i.parseRows=function(e,t){var n,i,o={},a={},s=[],u=e.length,c=0,l=0;function f(){if(c>=u)return a;if(i)return i=!1,o;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Ot),Ot=setTimeout(Tt,t)),St=0):(St=1,Et(Tt))}function Mt(){for(var e=Date.now(),t=wt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Ct(){for(var e,t=wt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function jt(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,a=r&&n?function(e,t){for(var i=e.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:I;return function(e){var n=At.exec(e),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",c=n[4]||"",l=n[5],f=+n[6],h=n[7],d=n[8],p=n[9],v=1,m="",y="",g=!1,b=!0;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===s)&&(l=r="0",s="="),p){case"n":h=!0,p="g";break;case"%":v=100,y="%",p="f";break;case"p":v=100,y="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(m="0"+p.toLowerCase());case"c":b=!1;case"d":g=!0,d=0;break;case"s":v=-1,p="r"}"$"===c&&(m=i[0],y=i[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=It.get(p)||Dt;var _=l&&h;return function(e){var n=y;if(g&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===u?"":u;if(v<0){var c=o.formatPrefix(e,d);e=c.scale(e),n=c.symbol+y}else e*=v;var w,x,S=(e=p(e,d)).lastIndexOf(".");if(S<0){var O=b?e.lastIndexOf("e"):-1;O<0?(w=e,x=""):(w=e.substring(0,O),x=e.substring(O))}else w=e.substring(0,S),x=t+e.substring(S+1);!l&&h&&(w=a(w,1/0));var E=m.length+w.length+x.length+(_?0:i.length),k=E"===s?k+i+e:"^"===s?k.substring(0,E>>=1)+i+e+k.substring(E):i+(_?e:k+e))+n}}}o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,Nt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Pt[8+n/3]};var At=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,It=o.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=o.round(e,Nt(e,t))).toFixed(Math.max(0,Math.min(20,Nt(e*(1+1e-15),t))))}});function Dt(e){return e+""}var Rt=o.time={},zt=Date;function Lt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Lt.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(){Ft.setUTCDate.apply(this._,arguments)},setDay:function(){Ft.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ft.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ft.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ft.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ft.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ft.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ft.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ft.setTime.apply(this._,arguments)}};var Ft=Date.prototype;function Ut(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n1)for(;a=c)return-1;if(37===(i=t.charCodeAt(s++))){if(a=t.charAt(s++),!(o=x[a in Wt?t.charAt(s++):a])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}l.utc=function(e){var t=l(e);function n(e){try{var n=new(zt=Lt);return n._=e,t(n)}finally{zt=Date}}return n.parse=function(e){try{zt=Lt;var n=t.parse(e);return n&&n._}finally{zt=Date}},n.toString=t.toString,n},l.multi=l.utc.multi=fn;var h=o.map(),d=Gt(a),p=$t(a),v=Gt(s),m=$t(s),y=Gt(u),g=$t(u),b=Gt(c),_=$t(c);i.forEach((function(e,t){h.set(e.toLowerCase(),t)}));var w={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:l(t),d:function(e,t){return Vt(e.getDate(),t,2)},e:function(e,t){return Vt(e.getDate(),t,2)},H:function(e,t){return Vt(e.getHours(),t,2)},I:function(e,t){return Vt(e.getHours()%12||12,t,2)},j:function(e,t){return Vt(1+Rt.dayOfYear(e),t,3)},L:function(e,t){return Vt(e.getMilliseconds(),t,3)},m:function(e,t){return Vt(e.getMonth()+1,t,2)},M:function(e,t){return Vt(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Vt(e.getSeconds(),t,2)},U:function(e,t){return Vt(Rt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Vt(Rt.mondayOfYear(e),t,2)},x:l(n),X:l(r),y:function(e,t){return Vt(e.getFullYear()%100,t,2)},Y:function(e,t){return Vt(e.getFullYear()%1e4,t,4)},Z:cn,"%":function(){return"%"}},x={a:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){d.lastIndex=0;var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){y.lastIndex=0;var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,w.c.toString(),t,n)},d:nn,e:nn,H:on,I:on,j:rn,L:un,m:tn,M:an,p:function(e,t,n){var r=h.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:sn,U:Zt,w:Kt,W:Xt,x:function(e,t,n){return f(e,w.x.toString(),t,n)},X:function(e,t,n){return f(e,w.X.toString(),t,n)},y:Qt,Y:Jt,Z:en,"%":ln};return l}Rt.year=Ut((function(e){return(e=Rt.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Rt.years=Rt.year.range,Rt.years.utc=Rt.year.utc.range,Rt.day=Ut((function(e){var t=new zt(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})),Rt.days=Rt.day.range,Rt.days.utc=Rt.day.utc.range,Rt.dayOfYear=function(e){var t=Rt.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=Rt[e]=Ut((function(e){return(e=Rt.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=Rt.year(e).getDay();return Math.floor((Rt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Rt[e+"s"]=n.range,Rt[e+"s"].utc=n.utc.range,Rt[e+"OfYear"]=function(e){var n=Rt.year(e).getDay();return Math.floor((Rt.dayOfYear(e)+(n+t)%7)/7)}})),Rt.week=Rt.sunday,Rt.weeks=Rt.sunday.range,Rt.weeks.utc=Rt.sunday.utc.range,Rt.weekOfYear=Rt.sundayOfYear;var Wt={"-":"",_:" ",0:"0"},qt=/^\s*\d+/,Yt=/^%/;function Vt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+i[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function on(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function an(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sn(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function un(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=x(t)/60|0,i=x(t)%60;return n+Vt(r,"0",2)+Vt(i,"0",2)}function ln(e,t,n){Yt.lastIndex=0;var r=Yt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fn(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(t),c=Math.sin(t),l=i*c,f=r*u+l*Math.cos(s),h=l*a*Math.sin(s);An.add(Math.atan2(h,f)),n=e,r=u,i=c}In.point=function(a,s){In.point=o,n=(e=a)*Ie,r=Math.cos(s=(t=s)*Ie/2+Ne/4),i=Math.sin(s)},In.lineEnd=function(){o(e,t)}}function Rn(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 zn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ln(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 Fn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Un(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Bn(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 Hn(e){return[Math.atan2(e[1],e[0]),Fe(e[2])]}function Wn(e,t){return x(e[0]-t[0])Me?r=90:c<-Me&&(t=-90),f[0]=e,f[1]=n}};function d(i,o){l.push(f=[e=i,n=i]),or&&(r=o)}function p(o,a){var s=Rn([o*Ie,a*Ie]);if(u){var c=Ln(u,s),l=Ln([c[1],-c[0],0],c);Bn(l),l=Hn(l);var f=o-i,h=f>0?1:-1,p=l[0]*De*h,v=x(f)>180;if(v^(h*ir&&(r=m);else if(v^(h*i<(p=(p+360)%360-180)&&pr&&(r=a);v?o_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o):n>=e?(on&&(n=o)):o>i?_(e,o)>_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o)}else d(o,a);u=s,i=o}function v(){h.point=p}function m(){f[0]=e,f[1]=n,h.point=d,u=null}function y(e,t){if(u){var n=e-i;c+=x(n)>180?n+(n>0?360:-360):n}else a=e,s=t;In.point(e,t),p(e,t)}function g(){In.lineStart()}function b(){y(a,s),In.lineEnd(),x(c)>Me&&(e=-(n=180)),f[0]=e,f[1]=n,u=null}function _(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function S(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e_(v[0],v[1])&&(v[1]=d[1]),_(d[0],v[1])>_(v[0],v[1])&&(v[0]=d[0])):s.push(v=d);for(var u,c,d,p=-1/0,v=(a=0,s[c=s.length-1]);a<=c;v=d,++a)d=s[a],(u=_(v[1],d[0]))>p&&(p=u,e=d[0],n=v[1])}return l=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),o.geo.centroid=function(e){xn=Sn=On=En=kn=Tn=Mn=Cn=Nn=Pn=jn=0,o.geo.stream(e,qn);var t=Nn,n=Pn,r=jn,i=t*t+n*n+r*r;return i=0;--s)i.point((f=l[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,S=x*w,O=S>Ne,E=p*b;if(An.add(Math.atan2(E*x*Math.sin(S),v*_+E*Math.cos(S))),o+=O?w+x*Pe:w,O^h>=n^y>=n){var k=Ln(Rn(f),Rn(e));Bn(k);var T=Ln(i,k);Bn(T);var M=(O^w>=0?-1:1)*Fe(T[2]);(r>M||r===M&&(k[0]||k[1]))&&(a+=O^w>=0?1:-1)}if(!m++)break;h=y,p=b,v=_,f=e}}return(o<-Me||o0){for(b||(a.polygonStart(),b=!0),a.lineStart();++o1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(nr))}return l}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:L,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ir(e,t){return((e=e.x)[0]<0?e[1]-Ae-Me:Ae-e[1])-((t=t.x)[0]<0?t[1]-Ae-Me:Ae-t[1])}var or=tr(Xn,(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Ne:-Ne,u=x(o-n);x(u-Ne)0?Ae:-Ae),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Ne&&(x(n-i)Me?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Ae,r.point(-Ne,i),r.point(0,i),r.point(Ne,i),r.point(Ne,0),r.point(Ne,-i),r.point(0,-i),r.point(-Ne,-i),r.point(-Ne,0),r.point(-Ne,i);else if(x(e[0]-t[0])>Me){var o=e[0]0,r=x(t)>Me;return tr(i,(function(e){var t,s,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,h){var d,p=[f,h],v=i(f,h),m=n?v?0:a(f,h):v?a(f+(f<0?Ne:-Ne),h):0;if(!t&&(c=u=v)&&e.lineStart(),v!==u&&(d=o(t,p),(Wn(t,d)||Wn(p,d))&&(p[0]+=Me,p[1]+=Me,v=i(p[0],p[1]))),v!==u)l=0,v?(e.lineStart(),d=o(p,t),e.point(d[0],d[1])):(d=o(t,p),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(r&&t&&n^v){var y;m&s||!(y=o(p,t,!0))||(l=0,n?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!v||t&&Wn(t,p)||e.point(p[0],p[1]),t=p,u=v,s=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return l|(c&&u)<<1}}}),Hr(e,6*Ie),n?[0,-e]:[-Ne,e-Ne]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function o(e,n,r){var i=[1,0,0],o=Ln(Rn(e),Rn(n)),a=zn(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var c=t*a/u,l=-t*s/u,f=Ln(i,o),h=Un(i,c);Fn(h,Un(o,l));var d=f,p=zn(h,d),v=zn(d,d),m=p*p-v*(zn(h,h)-1);if(!(m<0)){var y=Math.sqrt(m),g=Un(d,(-p-y)/v);if(Fn(g,h),g=Hn(g),!r)return g;var b,_=e[0],w=n[0],S=e[1],O=n[1];w<_&&(b=_,_=w,w=b);var E=w-_,k=x(E-Ne)0^g[1]<(x(g[0]-_)Ne^(_<=g[0]&&g[0]<=w)){var T=Un(d,(-p+y)/v);return Fn(T,h),[g,Hn(T)]}}}function a(t,r){var i=n?e:Ne-e,o=0;return t<-i?o|=1:t>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function sr(e,t,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,c=a.y,l=0,f=1,h=s.x-u,d=s.y-c;if(o=e-u,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=n-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0&&(i.a={x:u+l*h,y:c+l*d}),f<1&&(i.b={x:u+f*h,y:c+f*d}),i}}}}}}function ur(e,t,n,r){return function(u){var c,l,f,h,d,p,v,m,y,g,b,_=u,w=rr(),x=sr(e,t,n,r),S={point:k,lineStart:function(){S.point=T,l&&l.push(f=[]);g=!0,y=!1,v=m=NaN},lineEnd:function(){c&&(T(h,d),p&&y&&w.rejoin(),c.push(w.buffer()));S.point=k,y&&u.lineEnd()},polygonStart:function(){u=w,c=[],l=[],b=!0},polygonEnd:function(){u=_,c=o.merge(c);var t=function(e){for(var t=0,n=l.length,r=e[1],i=0;ir&&ze(c,o,e)>0&&++t:o[1]<=r&&ze(c,o,e)<0&&--t,c=o;return 0!==t}([e,r]),n=b&&t,i=c.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),O(null,null,1,u),u.lineEnd()),i&&Jn(c,a,t,O,u),u.polygonEnd()),c=l=f=null}};function O(o,a,u,c){var l=0,f=0;if(null==o||(l=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{c.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+u+4)%4)!==f);else c.point(a[0],a[1])}function E(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function k(e,t){E(e,t)&&u.point(e,t)}function T(e,t){var n=E(e=Math.max(-1e9,Math.min(1e9,e)),t=Math.max(-1e9,Math.min(1e9,t)));if(l&&f.push([e,t]),g)h=e,d=t,p=n,g=!1,n&&(u.lineStart(),u.point(e,t));else if(n&&y)u.point(e,t);else{var r={a:{x:v,y:m},b:{x:e,y:t}};x(r)?(y||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),b=!1):n&&(u.lineStart(),u.point(e,t),b=!1)}v=e,m=t,y=n}return S};function i(r,i){return x(r[0]-e)0?0:3:x(r[0]-n)0?2:1:x(r[1]-t)0?1:0:i>0?3:2}function a(e,t){return s(e.x,t.x)}function s(e,t){var n=i(e,1),r=i(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]}}function cr(e){var t=0,n=Ne/3,r=Ir(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Ne/180,n=e[1]*Ne/180):[t/Ne*180,n/Ne*180]},i}function lr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return a.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Fe((i-(e*e+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),(i=o(e)).valid=!0,i},extent:function(s){return arguments.length?(o=ur(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return cr(lr)}).raw=lr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};function c(i){var o=i[0],a=i[1];return e=null,t(o,a),e||(n(o,a),e)||r(o,a),e}return c.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},c.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},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()}}},c.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),s.precision(e),c):i.precision()},c.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),s.scale(e),c.translate(i.translate())):i.scale()},c.translate=function(e){if(!arguments.length)return i.translate();var o=i.scale(),l=+e[0],f=+e[1];return t=i.translate(e).clipExtent([[l-.455*o,f-.238*o],[l+.455*o,f+.238*o]]).stream(u).point,n=a.translate([l-.307*o,f+.201*o]).clipExtent([[l-.425*o+Me,f+.12*o+Me],[l-.214*o-Me,f+.234*o-Me]]).stream(u).point,r=s.translate([l-.205*o,f+.212*o]).clipExtent([[l-.214*o+Me,f+.166*o+Me],[l-.115*o-Me,f+.234*o-Me]]).stream(u).point,c},c.scale(1070)};var fr,hr,dr,pr,vr,mr,yr={point:L,lineStart:L,lineEnd:L,polygonStart:function(){hr=0,yr.lineStart=gr},polygonEnd:function(){yr.lineStart=yr.lineEnd=yr.point=L,fr+=x(hr/2)}};function gr(){var e,t,n,r;function i(e,t){hr+=r*e-n*t,n=e,r=t}yr.point=function(o,a){yr.point=i,e=n=o,t=r=a},yr.lineEnd=function(){i(e,t)}}var br={point:function(e,t){evr&&(vr=e);tmr&&(mr=t)},lineStart:L,lineEnd:L,polygonStart:L,polygonEnd:L};function _r(){var e=wr(4.5),t=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=wr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function i(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function a(){n.point=r}function s(){t.push("Z")}return n}function wr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var xr,Sr={point:Or,lineStart:Er,lineEnd:kr,polygonStart:function(){Sr.lineStart=Tr},polygonEnd:function(){Sr.point=Or,Sr.lineStart=Er,Sr.lineEnd=kr}};function Or(e,t){On+=e,En+=t,++kn}function Er(){var e,t;function n(n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);Tn+=a*(e+n)/2,Mn+=a*(t+r)/2,Cn+=a,Or(e=n,t=r)}Sr.point=function(r,i){Sr.point=n,Or(e=r,t=i)}}function kr(){Sr.point=Or}function Tr(){var e,t,n,r;function i(e,t){var i=e-n,o=t-r,a=Math.sqrt(i*i+o*o);Tn+=a*(n+e)/2,Mn+=a*(r+t)/2,Cn+=a,Nn+=(a=r*e-n*t)*(n+e),Pn+=a*(r+t),jn+=3*a,Or(n=e,r=t)}Sr.point=function(o,a){Sr.point=i,Or(e=n=o,t=r=a)},Sr.lineEnd=function(){i(e,t)}}function Mr(e){var t=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=e,n},result:L};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Pe)}function i(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function a(){n.point=r}function s(){e.closePath()}return n}function Cr(e){var t=.5,n=Math.cos(30*Ie),r=16;function i(e){return(r?a:o)(e)}function o(t){return jr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function a(t){var n,i,o,a,u,c,l,f,h,d,p,v,m={point:y,lineStart:g,lineEnd:_,polygonStart:function(){t.polygonStart(),m.lineStart=w},polygonEnd:function(){t.polygonEnd(),m.lineStart=g}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function g(){f=NaN,m.point=b,t.lineStart()}function b(n,i){var o=Rn([n,i]),a=e(n,i);s(f,h,l,d,p,v,f=a[0],h=a[1],l=n,d=o[0],p=o[1],v=o[2],r,t),t.point(f,h)}function _(){m.point=y,t.lineEnd()}function w(){g(),m.point=x,m.lineEnd=S}function x(e,t){b(n=e,t),i=f,o=h,a=d,u=p,c=v,m.point=b}function S(){s(f,h,l,d,p,v,i,o,n,a,u,c,r,t),m.lineEnd=_,_()}return m}function s(r,i,o,a,u,c,l,f,h,d,p,v,m,y){var g=l-r,b=f-i,_=g*g+b*b;if(_>4*t&&m--){var w=a+d,S=u+p,O=c+v,E=Math.sqrt(w*w+S*S+O*O),k=Math.asin(O/=E),T=x(x(O)-1)t||x((g*P+b*j)/_-.5)>.3||a*d+u*p+c*v0&&16,i):Math.sqrt(t)},i}function Nr(e){var t=Cr((function(t,n){return e([t*De,n*De])}));return function(e){return Dr(t(e))}}function Pr(e){this.stream=e}function jr(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 Ar(e){return Ir((function(){return e}))()}function Ir(e){var t,n,r,i,a,s,u=Cr((function(e,n){return[(e=t(e,n))[0]*c+i,a-e[1]*c]})),c=150,l=480,f=250,h=0,d=0,p=0,v=0,m=0,y=or,g=I,b=null,_=null;function w(e){return[(e=r(e[0]*Ie,e[1]*Ie))[0]*c+i,a-e[1]*c]}function x(e){return(e=r.invert((e[0]-i)/c,(a-e[1])/c))&&[e[0]*De,e[1]*De]}function S(){r=Zn(n=Lr(p,v,m),t);var e=t(h,d);return i=l-e[0]*c,a=f+e[1]*c,O()}function O(){return s&&(s.valid=!1,s=null),w}return w.stream=function(e){return s&&(s.valid=!1),(s=Dr(y(n,u(g(e))))).valid=!0,s},w.clipAngle=function(e){return arguments.length?(y=null==e?(b=e,or):ar((b=+e)*Ie),O()):b},w.clipExtent=function(e){return arguments.length?(_=e,g=e?ur(e[0][0],e[0][1],e[1][0],e[1][1]):I,O()):_},w.scale=function(e){return arguments.length?(c=+e,S()):c},w.translate=function(e){return arguments.length?(l=+e[0],f=+e[1],S()):[l,f]},w.center=function(e){return arguments.length?(h=e[0]%360*Ie,d=e[1]%360*Ie,S()):[h*De,d*De]},w.rotate=function(e){return arguments.length?(p=e[0]%360*Ie,v=e[1]%360*Ie,m=e.length>2?e[2]%360*Ie:0,S()):[p*De,v*De,m*De]},o.rebind(w,u,"precision"),function(){return t=e.apply(this,arguments),w.invert=t.invert&&x,S()}}function Dr(e){return jr(e,(function(t,n){e.point(t*Ie,n*Ie)}))}function Rr(e,t){return[e,t]}function zr(e,t){return[e>Ne?e-Pe:e<-Ne?e+Pe:e,t]}function Lr(e,t,n){return e?t||n?Zn(Ur(e),Br(t,n)):Ur(e):t||n?Br(t,n):zr}function Fr(e){return function(t,n){return[(t+=e)>Ne?t-Pe:t<-Ne?t+Pe:t,n]}}function Ur(e){var t=Fr(e);return t.invert=Fr(-e),t}function Br(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),o=Math.sin(t);function a(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,c=Math.sin(t),l=c*n+s*r;return[Math.atan2(u*i-l*o,s*n-c*r),Fe(l*i+u*o)]}return a.invert=function(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,c=Math.sin(t),l=c*i-u*o;return[Math.atan2(u*i+c*o,s*n+l*r),Fe(l*n-s*r)]},a}function Hr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var u=a*t;null!=i?(i=Wr(n,i),o=Wr(n,o),(a>0?io)&&(i+=a*Pe)):(i=e+a*Pe,o=e-.5*u);for(var c,l=i;a>0?l>o:l2?e[2]*Ie:0),t.invert=function(t){return(t=e.invert(t[0]*Ie,t[1]*Ie))[0]*=De,t[1]*=De,t},t},zr.invert=Rr,o.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"===typeof n?n.apply(this,arguments):n,r=Lr(-e[0]*Ie,-e[1]*Ie,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=De,e[1]*=De}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=Hr((e=+n)*Ie,r*Ie),i):e},i.precision=function(n){return arguments.length?(t=Hr(e*Ie,(r=+n)*Ie),i):r},i.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ie,i=e[1]*Ie,o=t[1]*Ie,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},o.geo.graticule=function(){var e,t,n,r,i,a,s,u,c,l,f,h,d=10,p=d,v=90,m=360,y=2.5;function g(){return{type:"MultiLineString",coordinates:b()}}function b(){return o.range(Math.ceil(r/v)*v,n,v).map(f).concat(o.range(Math.ceil(u/m)*m,s,m).map(h)).concat(o.range(Math.ceil(t/d)*d,e,d).filter((function(e){return x(e%v)>Me})).map(c)).concat(o.range(Math.ceil(a/p)*p,i,p).filter((function(e){return x(e%m)>Me})).map(l))}return g.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.majorExtent(e).minorExtent(e):g.minorExtent()},g.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),u>s&&(e=u,u=s,s=e),g.precision(y)):[[r,u],[n,s]]},g.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),g.precision(y)):[[t,a],[e,i]]},g.step=function(e){return arguments.length?g.majorStep(e).minorStep(e):g.minorStep()},g.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],g):[v,m]},g.minorStep=function(e){return arguments.length?(d=+e[0],p=+e[1],g):[d,p]},g.precision=function(o){return arguments.length?(y=+o,c=qr(a,i,90),l=Yr(t,e,y),f=qr(u,s,90),h=Yr(r,n,y),g):y},g.majorExtent([[-180,-90+Me],[180,90-Me]]).minorExtent([[-180,-80-Me],[180,80+Me]])},o.geo.greatArc=function(){var e,t,n=Vr,r=Gr;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"===typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"===typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(e,t){return function(e,t,n,r){var i=Math.cos(t),o=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(e),c=i*Math.sin(e),l=a*Math.cos(n),f=a*Math.sin(n),h=2*Math.asin(Math.sqrt(Be(r-t)+i*a*Be(n-e))),d=1/Math.sin(h),p=h?function(e){var t=Math.sin(e*=h)*d,n=Math.sin(h-e)*d,r=n*u+t*l,i=n*c+t*f,a=n*o+t*s;return[Math.atan2(i,r)*De,Math.atan2(a,Math.sqrt(r*r+i*i))*De]}:function(){return[e*De,t*De]};return p.distance=h,p}(e[0]*Ie,e[1]*Ie,t[0]*Ie,t[1]*Ie)},o.geo.length=function(e){return xr=0,o.geo.stream(e,$r),xr};var $r={sphere:L,point:L,lineStart:function(){var e,t,n;function r(r,i){var o=Math.sin(i*=Ie),a=Math.cos(i),s=x((r*=Ie)-e),u=Math.cos(s);xr+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-t*a*u)*s),t*o+n*a*u),e=r,t=o,n=a}$r.point=function(i,o){e=i*Ie,t=Math.sin(o*=Ie),n=Math.cos(o),$r.point=r},$r.lineEnd=function(){$r.point=$r.lineEnd=L}},lineEnd:L,polygonStart:L,polygonEnd:L};function Kr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}var Zr=Kr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(o.geo.azimuthalEqualArea=function(){return Ar(Zr)}).raw=Zr;var Xr=Kr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),I);function Jr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ne/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),i)/i;if(!i)return ti;function a(e,t){o>0?t<-Ae+Me&&(t=-Ae+Me):t>Ae-Me&&(t=Ae-Me);var n=o/Math.pow(r(t),i);return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}return a.invert=function(e,t){var n=o-t,r=Re(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Ae]},a}function Qr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(x(r)1&&ze(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ci(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Ar(ii)}).raw=ii,oi.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ae]},(o.geo.transverseMercator=function(){var e=ni(oi),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=oi,o.geom={},o.geom.hull=function(e){var t=ai,n=si;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=gt(t),o=gt(n),a=e.length,s=[],u=[];for(r=0;r=0;--r)d.push(e[s[c[r]][2]]);for(r=+f;rMe)s=s.L;else{if(!((i=o-Ti(s,a))>Me)){r>-Me?(t=s.P,n=s):i>-Me?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=xi(e);if(mi.insert(t,u),t||n){if(t===n)return ji(t),n=xi(t.site),mi.insert(u,n),u.edge=n.edge=Di(t.site,u.site),Pi(t),void Pi(n);if(n){ji(t),ji(n);var c=t.site,l=c.x,f=c.y,h=e.x-l,d=e.y-f,p=n.site,v=p.x-l,m=p.y-f,y=2*(h*m-d*v),g=h*h+d*d,b=v*v+m*m,_={x:(m*g-d*b)/y+l,y:(h*b-v*g)/y+f};zi(n.edge,c,p,_),u.edge=Di(c,e,null,_),n.edge=Di(e,p,null,_),Pi(t),Pi(n)}else u.edge=Di(t.site,u.site)}}function ki(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,c=u-t;if(!c)return s;var l=s-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function Ti(e,t){var n=e.N;if(n)return ki(n,t);var r=e.site;return r.y===t?r.x:1/0}function Mi(e){this.site=e,this.edges=[]}function Ci(e,t){return t.angle-e.angle}function Ni(){Ui(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pi(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,f=2*(u*(m=o.y-s)-c*l);if(!(f>=-Ce)){var h=u*u+c*c,d=l*l+m*m,p=(m*h-c*d)/f,v=(u*d-l*h)/f,m=v+s,y=_i.pop()||new Ni;y.arc=e,y.site=i,y.x=p+a,y.y=m+Math.sqrt(p*p+v*v),y.cy=m,e.circle=y;for(var g=null,b=gi._;b;)if(y.y=s)return;if(h>p){if(o){if(o.y>=c)return}else o={x:m,y:u};n={x:m,y:c}}else{if(o){if(o.y1)if(h>p){if(o){if(o.y>=c)return}else o={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xMe||x(i-n)>Me)&&(s.splice(a,0,new Li(Ri(o.site,l,x(r-f)Me?{x:f,y:x(t-f)Me?{x:x(n-p)Me?{x:h,y:x(t-h)Me?{x:x(n-d)=n&&c.x<=i&&c.y>=r&&c.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=e[s]})),t}function s(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Me)*Me,y:Math.round(i(e,t)/Me)*Me,i:t}}))}return a.links=function(e){return qi(s(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},a.triangles=function(e){var t=[];return qi(s(e)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,c=n.edges.sort(Ci),l=-1,f=c.length,h=c[f-1].edge,d=h.l===u?h.r:h.l;++lo||f>a||h=w)<<1|t>=_,S=x+4;xo&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Qi(n,r)})),o=no.lastIndex;return ov&&(v=u.x),u.y>m&&(m=u.y),c.push(u.x),l.push(u.y);else for(f=0;fv&&(v=b),_>m&&(m=_),c.push(b),l.push(_)}var w=v-d,S=m-p;function O(e,t,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,c=e.y;if(null!=u)if(x(u-n)+x(c-r)<.01)E(e,t,n,r,i,o,a,s);else{var l=e.point;e.x=e.y=e.point=null,E(e,l,u,c,i,o,a,s),E(e,t,n,r,i,o,a,s)}else e.x=n,e.y=r,e.point=t}else E(e,t,n,r,i,o,a,s)}function E(e,t,n,r,i,o,a,s){var u=.5*(i+a),c=.5*(o+s),l=n>=u,f=r>=c,h=f<<1|l;e.leaf=!1,l?i=u:a=u,f?o=c:s=c,O(e=e.nodes[h]||(e.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,i,o,a,s)}w>S?m=p+w:v=d+S;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){O(k,e,+y(e,++f),+g(e,f),d,p,v,m)},visit:function(e){Ki(e,k,d,p,v,m)},find:function(e){return Zi(k,e[0],e[1],d,p,v,m)}};if(f=-1,null==t){for(;++f=0&&!(n=o.interpolators[r](e,t)););return n}function io(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n=1?1:e(t)}}function co(e){return function(t){return 1-e(1-t)}}function lo(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function fo(e){return e*e}function ho(e){return e*e*e}function po(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 vo(e){return 1-Math.cos(e*Ae)}function mo(e){return Math.pow(2,10*(e-1))}function yo(e){return 1-Math.sqrt(1-e*e)}function go(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 bo(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function _o(e){var t,n,r,i=[e.a,e.b],o=[e.c,e.d],a=xo(i),s=wo(i,o),u=xo(((t=o)[0]+=(r=-s)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*o[1]=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=ao.get(n)||oo,uo((r=so.get(r)||I)(n.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,i=e.l,a=t.h-n,s=t.c-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Je(n+a*e,r+s*e,i+u*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,i=e.l,a=t.h-n,s=t.s-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Ke(n+a*e,r+s*e,i+u*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,i=e.b,a=t.l-n,s=t.a-r,u=t.b-i;return function(e){return nt(n+a*e,r+s*e,i+u*e)+""}},o.interpolateRound=bo,o.transform=function(e){var t=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new _o(n?n.matrix:So)})(e)},_o.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var So={a:1,b:0,c:0,d:1,e:0,f:0};function Oo(e){return e.length?e.pop()+",":""}function Eo(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Qi(e[0],t[0])},{i:i-2,x:Qi(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Oo(n)+"rotate(",null,")")-2,x:Qi(e,t)})):t&&n.push(Oo(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(Oo(n)+"skewX(",null,")")-2,x:Qi(e,t)}):t&&n.push(Oo(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(Oo(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Qi(e[0],t[0])},{i:i-2,x:Qi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Oo(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,o=r.length;++i0?n=t:(e.c=null,e.t=NaN,e=null,u.end({type:"end",alpha:n=0})):t>0&&(u.start({type:"start",alpha:n=t}),e=kt(s.tick)),s):n},s.start=function(){var e,t,n,o=y.length,u=g.length,l=c[0],p=c[1];for(e=0;e=0;)n.push(i[r])}function Fo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(l=c[u]),l.parent=o,l.depth=o.depth+1;n&&(o.value=0),o.children=c}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Fo(i,(function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)})),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Lo(e,(function(e){e.children&&(e.value=0)})),Fo(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(n,r){var i=e.call(this,n,r);return function e(t,n,r,i){var o=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++cs&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Qo(e){return e.reduce(ea,0)}function ea(e,t){return e+t[1]}function ta(e,t){return na(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function na(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function ra(e){return[o.min(e),o.max(e)]}function ia(e,t){return e.value-t.value}function oa(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function aa(e,t){e._pack_next=t,t._pack_prev=e}function sa(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function ua(e){if((t=e.children)&&(u=t.length)){var t,n,r,i,o,a,s,u,c=1/0,l=-1/0,f=1/0,h=-1/0;if(t.forEach(ca),(n=t[0]).x=-n.r,n.y=0,b(n),u>1&&((r=t[1]).x=r.r,r.y=0,b(r),u>2))for(fa(n,r,i=t[2]),b(i),oa(n,i),n._pack_prev=i,oa(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=c[o.bisect(h,u,1,p)-1]).y+=v,s.push(i[a]));return c}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=gt(e),i):n},i.bins=function(e){return arguments.length?(r="number"===typeof e?function(t){return na(t,e)}:gt(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(ia),n=0,r=[1,1];function i(i,o){var a=t.call(this,i,o),s=a[0],u=r[0],c=r[1],l=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(s.x=s.y=0,Fo(s,(function(e){e.r=+l(e.value)})),Fo(s,ua),n){var f=n*(e?1:Math.max(2*s.r/u,2*s.r/c))/2;Fo(s,(function(e){e.r+=f})),Fo(s,ua),Fo(s,(function(e){e.r-=f}))}return function e(t,n,r,i){var o=t.children;if(t.x=n+=i*t.x,t.y=r+=i*t.y,t.r*=i,o)for(var a=-1,s=o.length;++ad.x&&(d=e),e.depth>p.depth&&(p=e)}));var v=t(h,d)/2-h.x,m=n[0]/(d.x+t(d,h)/2+v),y=n[1]/(p.depth||1);Lo(l,(function(e){e.x=(e.x+v)*m,e.y=e.depth*y}))}return c}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,o=i.length;for(;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,h=u.m;s=pa(s),o=da(o),s&&o;)u=da(u),(a=pa(a)).a=e,(i=s.z+f-o.z-c+t(s._,o._))>0&&(va(ma(s,e,r),e,i),c+=i,l+=i),f+=s.m,c+=o.m,h+=u.m,l+=a.m;s&&!pa(a)&&(a.t=s,a.m+=f-l),o&&!da(u)&&(u.t=o,u.m+=c-h,r=e)}return r}(e,i,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?u:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:u,i):r?n:null},zo(i,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ha,n=[1,1],r=!1;function i(i,a){var s,u=e.call(this,i,a),c=u[0],l=0;Fo(c,(function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),e.y=function(e){return 1+o.max(e,(function(e){return e.y}))}(n)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var f=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),h=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),d=f.x-t(f,h)/2,p=h.x+t(h,f)/2;return Fo(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-d)/(p-d)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),u}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},zo(i,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=ya,s=!1,u="squarify",c=.5*(1+Math.sqrt(5));function l(e,t){for(var n,r,i=-1,o=e.length;++i0;)s.push(n=c[i-1]),s.area+=n.area,"squarify"!==u||(r=d(s,v))<=h?(c.pop(),h=r):(s.area-=s.pop().area,p(s,v,o,!1),v=Math.min(o.dx,o.dy),s.length=s.area=0,h=1/0);s.length&&(p(s,v,o,!0),s.length=s.area=0),t.forEach(f)}}function h(e){var t=e.children;if(t&&t.length){var n,r=a(e),i=t.slice(),o=[];for(l(i,r.dx*r.dy/e.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(p(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);t.forEach(h)}}function d(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++ai&&(i=n));return t*=t,(r*=r)?Math.max(t*i*c/r,r/(t*o*c)):1/0}function p(e,t,r,i){var o,a=-1,s=e.length,u=r.x,c=r.y,l=t?n(e.area/t):0;if(t==r.dx){for((i||l>r.dy)&&(l=r.dy);++ar.dx)&&(l=r.dx);++a1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?Ea:wa,s=i?To:ko;return o=e(t,n,s,r),a=e(n,t,s,ro),u}function u(e){return o(e)}return u.invert=function(e){return a(e)},u.domain=function(e){return arguments.length?(t=e.map(Number),s()):t},u.range=function(e){return arguments.length?(n=e,s()):n},u.rangeRound=function(e){return u.range(e).interpolate(bo)},u.clamp=function(e){return arguments.length?(i=e,s()):i},u.interpolate=function(e){return arguments.length?(r=e,s()):r},u.ticks=function(e){return Ca(t,e)},u.tickFormat=function(e,n){return Na(t,e,n)},u.nice=function(e){return Ta(t,e),s()},u.copy=function(){return e(t,n,r,i)},s()}([0,1],[0,1],ro,!1)};var Pa={s:1,g:1,p:1,r:1,e:1};function ja(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}o.scale.log=function(){return function e(t,n,r,i){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function s(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function u(e){return t(a(e))}return u.invert=function(e){return s(t.invert(e))},u.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(a)),u):i},u.base=function(e){return arguments.length?(n=+e,t.domain(i.map(a)),u):n},u.nice=function(){var e=xa(i.map(a),r?Math:Ia);return t.domain(e),i=e.map(s),u},u.ticks=function(){var e=ba(i),t=[],o=e[0],u=e[1],c=Math.floor(a(o)),l=Math.ceil(a(u)),f=n%1?2:n;if(isFinite(l-c)){if(r){for(;c0;h--)t.push(s(c)*h);for(c=0;t[c]u;l--);t=t.slice(c,l)}return t},u.tickFormat=function(e,t){if(!arguments.length)return Aa;arguments.length<2?t=Aa:"function"!==typeof t&&(t=o.format(t));var r=Math.max(1,n*e/u.ticks().length);return function(e){var i=e/s(Math.round(a(e)));return i*n0?r[e-1]:t[0],ef?0:1;if(c=je)return u(c,d)+(s?u(s,1-d):"")+"Z";var p,v,m,y,g,b,_,w,x,S,O,E,k=0,T=0,M=[];if((y=(+a.apply(this,arguments)||0)/2)&&(m=r===Ba?Math.sqrt(s*s+c*c):+r.apply(this,arguments),d||(T*=-1),c&&(T=Fe(m/c*Math.sin(y))),s&&(k=Fe(m/s*Math.sin(y)))),c){g=c*Math.cos(l+T),b=c*Math.sin(l+T),_=c*Math.cos(f-T),w=c*Math.sin(f-T);var C=Math.abs(f-l-2*T)<=Ne?0:1;if(T&&Ga(g,b,_,w)===d^C){var N=(l+f)/2;g=c*Math.cos(N),b=c*Math.sin(N),_=w=null}}else g=b=0;if(s){x=s*Math.cos(f-k),S=s*Math.sin(f-k),O=s*Math.cos(l+k),E=s*Math.sin(l+k);var P=Math.abs(l-f+2*k)<=Ne?0:1;if(k&&Ga(x,S,O,E)===1-d^P){var j=(l+f)/2;x=s*Math.cos(j),S=s*Math.sin(j),O=E=null}}else x=S=0;if(h>Me&&(p=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){v=s0?0:1}function $a(e,t,n,r,i){var o=e[0]-t[0],a=e[1]-t[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,c=-s*o,l=e[0]+u,f=e[1]+c,h=t[0]+u,d=t[1]+c,p=(l+h)/2,v=(f+d)/2,m=h-l,y=d-f,g=m*m+y*y,b=n-r,_=l*d-h*f,w=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*g-_*_)),x=(_*y-m*w)/g,S=(-_*m-y*w)/g,O=(_*y+m*w)/g,E=(-_*m+y*w)/g,k=x-p,T=S-v,M=O-p,C=E-v;return k*k+T*T>M*M+C*C&&(x=O,S=E),[[x-u,S-c],[x*n/b,S*n/b]]}function Ka(e){var t=ai,n=si,r=Xn,i=Xa,o=i.key,a=.7;function s(o){var s,u=[],c=[],l=-1,f=o.length,h=gt(t),d=gt(n);function p(){u.push("M",i(e(c),a))}for(;++l1&&i.push("H",r[0]);return i.join("")},"step-before":Qa,"step-after":es,basis:rs,"basis-open":function(e){if(e.length<4)return Xa(e);var t,n=[],r=-1,i=e.length,o=[0],a=[0];for(;++r<3;)t=e[r],o.push(t[0]),a.push(t[1]);n.push(is(ss,o)+","+is(ss,a)),--r;for(;++r9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));s=-1;for(;++s<=u;)i=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(e))}});function Xa(e){return e.length>1?e.join("L"):e+"Z"}function Ja(e){return e.join("L")+"Z"}function Qa(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){s=t[1],o=e[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var c=2;cNe)+",1 "+t}function u(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=gt(e),o):n},o.source=function(t){return arguments.length?(e=gt(t),o):e},o.target=function(e){return arguments.length?(t=gt(e),o):t},o.startAngle=function(e){return arguments.length?(r=gt(e),o):r},o.endAngle=function(e){return arguments.length?(i=gt(e),o):i},o},o.svg.diagonal=function(){var e=Vr,t=Gr,n=ds;function r(r,i){var o=e.call(this,r,i),a=t.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(t){return arguments.length?(e=gt(t),r):e},r.target=function(e){return arguments.length?(t=gt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=ds,n=e.projection;return e.projection=function(e){return arguments.length?n(ps(t=e)):t},e},o.svg.symbol=function(){var e=ms,t=vs;function n(n,r){return(gs.get(e.call(this,n,r))||ys)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=gt(t),n):e},n.size=function(e){return arguments.length?(t=gt(e),n):t},n};var gs=o.map({circle:ys,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*_s)),n=t*_s;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/bs),n=t*bs/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/bs),n=t*bs/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=gs.keys();var bs=Math.sqrt(3),_s=Math.tan(30*Ie);Z.transition=function(e){for(var t,n,r=Os||++Ts,i=Ns(e),o=[],a=Es||{time:Date.now(),ease:po,delay:0,duration:250},s=-1,u=this.length;++s0;)c[--h].call(e,a);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--l.count?delete l[r]:delete e[n],1}f||(o=i.time,a=kt((function(e){var t=f.delay;if(a.t=t+o,t<=e)return h(e-t);a.c=h}),0,o),f=l[r]={tween:new E,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++l.count)}ks.call=Z.call,ks.empty=Z.empty,ks.node=Z.node,ks.size=Z.size,o.transition=function(e,t){return e&&e.transition?Os?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=ks,ks.select=function(e){var t,n,r,i=this.id,o=this.namespace,a=[];e=X(e);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function v(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function m(){var f,m,y=this,g=o.select(o.event.target),b=n.of(y,arguments),_=o.select(y),w=g.datum(),x=!/^(n|s)$/.test(w)&&r,S=!/^(e|w)$/.test(w)&&i,O=g.classed("extent"),E=Oe(y),k=o.mouse(y),T=o.select(l(y)).on("keydown.brush",N).on("keyup.brush",P);if(o.event.changedTouches?T.on("touchmove.brush",j).on("touchend.brush",I):T.on("mousemove.brush",j).on("mouseup.brush",I),_.interrupt().selectAll("*").interrupt(),O)k[0]=a[0]-k[0],k[1]=s[0]-k[1];else if(w){var M=+/w$/.test(w),C=+/^n/.test(w);m=[a[1-M]-k[0],s[1-C]-k[1]],k[0]=a[M],k[1]=s[C]}else o.event.altKey&&(f=k.slice());function N(){32==o.event.keyCode&&(O||(f=null,k[0]-=a[1],k[1]-=s[1],O=2),B())}function P(){32==o.event.keyCode&&2==O&&(k[0]+=a[1],k[1]+=s[1],O=0,B())}function j(){var e=o.mouse(y),t=!1;m&&(e[0]+=m[0],e[1]+=m[1]),O||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),k[0]=a[+(e[0]1?{floor:function(t){for(;s(t=e.floor(t));)t=Ws(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=Ws(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ba(r.domain()),o=null==e?i(n,10):"number"===typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],Ws(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Hs(e.copy(),t,n)},ka(r,e)}function Ws(e){return new Date(e)}Ls.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Bs:Us,Bs.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Bs.toString=Us.toString,Rt.second=Ut((function(e){return new zt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Rt.seconds=Rt.second.range,Rt.seconds.utc=Rt.second.utc.range,Rt.minute=Ut((function(e){return new zt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Rt.minutes=Rt.minute.range,Rt.minutes.utc=Rt.minute.utc.range,Rt.hour=Ut((function(e){var t=e.getTimezoneOffset()/60;return new zt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Rt.hours=Rt.hour.range,Rt.hours.utc=Rt.hour.utc.range,Rt.month=Ut((function(e){return(e=Rt.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Rt.months=Rt.month.range,Rt.months.utc=Rt.month.utc.range;var qs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ys=[[Rt.second,1],[Rt.second,5],[Rt.second,15],[Rt.second,30],[Rt.minute,1],[Rt.minute,5],[Rt.minute,15],[Rt.minute,30],[Rt.hour,1],[Rt.hour,3],[Rt.hour,6],[Rt.hour,12],[Rt.day,1],[Rt.day,2],[Rt.week,1],[Rt.month,1],[Rt.month,3],[Rt.year,1]],Vs=Ls.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Xn]]),Gs={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(Ws)},floor:I,ceil:I};Ys.year=Rt.year,Rt.scale=function(){return Hs(o.scale.linear(),Ys,Vs)};var $s=Ys.map((function(e){return[e[0].utc,e[1]]})),Ks=Fs.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Xn]]);function Zs(e){return JSON.parse(e.responseText)}function Xs(e){var t=u.createRange();return t.selectNode(u.body),t.createContextualFragment(e.responseText)}$s.year=Rt.year.utc,Rt.scale.utc=function(){return Hs(o.scale.linear(),$s,Ks)},o.text=bt((function(e){return e.responseText})),o.json=function(e,t){return _t(e,"application/json",Zs,t)},o.html=function(e,t){return _t(e,"text/html",Xs,t)},o.xml=bt((function(e){return e.responseXML})),this.d3=o,void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(97),i=n.n(r),o=n(277),a=n.n(o),s=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","form","id","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],u=[].concat(s,["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"]),c=["alt","height","src","srcSet","width"],l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.htmlProps,r=void 0===n?u:n,o=t.includeAria,s=void 0===o||o,c={},l={};return a()(e,(function(e,t){var n=s&&(/^aria-.*$/.test(t)||"role"===t);(i()(r,t)||n?c:l)[t]=e})),[c,l]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(70),i=n(152),o=n(284);function a(){for(var e=[],t=0;t0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=i;var o=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(47),i=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=i;var o=i.range},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(20),a=n.n(o),s=n(22),u=n.n(s),c=n(25),l=n.n(c),f=n(23),h=n.n(f),d=n(5),p=n.n(d),v=n(26),m=n.n(v),y=n(3),g=n.n(y),b=n(13),_=n.n(b),w=n(30),x=n.n(w),S=(n(89),n(7)),O=n.n(S),E=(n(1),n(0)),k=n.n(E),T=n(37),M=n(206),C=n(286),N=n(334),P=n(10);function j(e){var t=e.children,n=e.className,r=e.content,o=e.size,a=O()(o,"icons",n),s=Object(M.a)(j,e),u=Object(C.a)(j,e);return k.a.createElement(u,i()({},s,{className:a}),P.a.isNil(t)?r:t)}j.handledProps=["as","children","className","content","size"],j.propTypes={},j.defaultProps={as:"i"};var A=j,I=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o=0||t.predictable?n.pow(r):new e.Complex(n.toNumber(),0).pow(r.toNumber(),0)},"Fraction, Fraction":function(e,n){if(1!==n.d){if(t.predictable)throw new Error("Function pow does not support non-integer exponents for fractions.");return p(e.valueOf(),n.valueOf())}return e.pow(n)},"Array, number":v,"Array, BigNumber":function(e,t){return v(e,t.toNumber())},"Matrix, number":m,"Matrix, BigNumber":function(e,t){return m(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function p(n,i){if(t.predictable&&!r(i)&&n<0)try{var o=f(i),a=h(o);if((i===a||Math.abs((i-a)/i)<1e-14)&&o.d%2===1)return(o.n%2===0?1:-1)*Math.pow(-n,i)}catch(s){}return n*n<1&&i===1/0||n*n>1&&i===-1/0?0:t.predictable&&(n<-1&&i===1/0||n>-1&&n<0&&i===-1/0)?NaN:r(i)||n>=0||t.predictable?Math.pow(n,i):new e.Complex(n,0).pow(i,0)}function v(e,t){if(!r(t)||t<0)throw new TypeError("For A^b, b must be a positive integer (value is "+t+")");var n=i(e);if(2!==n.length)throw new Error("For A^b, A must be 2 dimensional (A has "+n.length+" dimensions)");if(n[0]!==n[1])throw new Error("For A^b, A must be square (size is "+n[0]+"x"+n[1]+")");for(var o=u(n[0]).valueOf(),a=e;t>=1;)1===(1&t)&&(o=c(a,o)),t>>=1,a=c(a,a);return o}function m(e,t){return l(v(e.valueOf(),t))}return d.toTex={2:"\\left(${args[0]}\\right)".concat(s.operators.pow,"{${args[1]}}")},d}},function(e,t,n){"use strict";var r=n(32).isInteger,i=n(27).resize;t.name="zeros",t.factory=function(e,t,o,a){var s=o(n(19)),u=a("zeros",{"":function(){return"Array"===t.matrix?c([]):c([],"default")},"...number | BigNumber | string":function(e){if("string"===typeof e[e.length-1]){var n=e.pop();return c(e,n)}return"Array"===t.matrix?c(e):c(e,"default")},Array:c,Matrix:function(e){var t=e.storage();return c(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return c(e.valueOf(),t)}});return u.toTex=void 0,u;function c(t,n){var o=function(t){var n=!1;return t.forEach((function(t,r,i){e.isBigNumber(t)&&(n=!0,i[r]=t.toNumber())})),n}(t)?new e.BigNumber(0):0;if(function(e){e.forEach((function(e){if("number"!==typeof e||!r(e)||e<0)throw new Error("Parameters in function zeros must be positive integers")}))}(t),n){var a=s(n);return t.length>0?a.resize(t,o):a}var u=[];return t.length>0?i(u,t,o):u}}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},P={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},j={true:!0,false:!1,null:null,undefined:void 0},A=["NaN","Infinity"];function I(e,t){return e.expression.substr(e.index,t)}function D(e){return I(e,1)}function R(e){e.index++}function z(e){return e.expression.charAt(e.index-1)}function L(e){return e.expression.charAt(e.index+1)}function F(e){for(e.tokenType=E,e.token="",e.comment="";O.isWhitespace(D(e),e.nestingLevel);)R(e);if("#"===D(e))for(;"\n"!==D(e)&&""!==D(e);)e.comment+=D(e),R(e);if(""!==D(e)){if("\n"===D(e)&&!e.nestingLevel)return e.tokenType=k,e.token=D(e),void R(e);var t=D(e),n=I(e,2),r=I(e,3);if(3===r.length&&N[r])return e.tokenType=k,e.token=r,R(e),R(e),void R(e);if(2===n.length&&N[n])return e.tokenType=k,e.token=n,R(e),void R(e);if(N[t])return e.tokenType=k,e.token=t,void R(e);if(O.isDigitDot(t)){if(e.tokenType=T,"."===D(e))e.token+=D(e),R(e),O.isDigit(D(e))||(e.tokenType=k);else{for(;O.isDigit(D(e));)e.token+=D(e),R(e);O.isDecimalMark(D(e),L(e))&&(e.token+=D(e),R(e))}for(;O.isDigit(D(e));)e.token+=D(e),R(e);if("E"===D(e)||"e"===D(e))if(O.isDigit(L(e))||"-"===L(e)||"+"===L(e)){if(e.token+=D(e),R(e),"+"!==D(e)&&"-"!==D(e)||(e.token+=D(e),R(e)),!O.isDigit(D(e)))throw le(e,'Digit expected, got "'+D(e)+'"');for(;O.isDigit(D(e));)e.token+=D(e),R(e);if(O.isDecimalMark(D(e),L(e)))throw le(e,'Digit expected, got "'+D(e)+'"')}else if("."===L(e))throw R(e),le(e,'Digit expected, got "'+D(e)+'"')}else{if(!O.isAlpha(D(e),z(e),L(e))){for(e.tokenType=C;""!==D(e);)e.token+=D(e),R(e);throw le(e,'Syntax error in part "'+e.token+'"')}for(;O.isAlpha(D(e),z(e),L(e))||O.isDigit(D(e));)e.token+=D(e),R(e);P.hasOwnProperty(e.token)?e.tokenType=k:e.tokenType=M}}else e.tokenType=k}function U(e){do{F(e)}while("\n"===e.token)}function B(e){e.nestingLevel++}function H(e){e.nestingLevel--}function W(e,t){var n={extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:E,nestingLevel:0,conditionalLevel:null};r(n,{expression:e,extraNodes:t}),F(n);var i=function(e){var t,n,r=[];""!==e.token&&"\n"!==e.token&&";"!==e.token&&((t=q(e)).comment=e.comment);for(;"\n"===e.token||";"===e.token;)0===r.length&&t&&(n=";"!==e.token,r.push({node:t,visible:n})),F(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&((t=q(e)).comment=e.comment,n=";"!==e.token,r.push({node:t,visible:n}));return r.length>0?new h(r):(t||((t=new p(void 0)).comment=e.comment),t)}(n);if(""!==n.token)throw n.tokenType===k?fe(n,"Unexpected operator "+n.token):le(n,'Unexpected part "'+n.token+'"');return i}function q(t){var n,r,i,o,a=function(e){var t=function(e){var t=Y(e);for(;"or"===e.token;)U(e),t=new g("or","or",[t,Y(e)]);return t}(e);for(;"?"===e.token;){var n=e.conditionalLevel;e.conditionalLevel=e.nestingLevel,U(e);var r=t,i=q(e);if(":"!==e.token)throw le(e,"False part of conditional expression expected");e.conditionalLevel=null,U(e);var o=q(e);t=new d(r,i,o),e.conditionalLevel=n}return t}(t);if("="===t.token){if(e.isSymbolNode(a))return n=a.name,U(t),i=q(t),new f(new S(n),i);if(e.isAccessorNode(a))return U(t),i=q(t),new f(a.object,a.index,i);if(e.isFunctionNode(a)&&e.isSymbolNode(a.fn)&&(o=!0,r=[],n=a.name,a.args.forEach((function(t,n){e.isSymbolNode(t)?r[n]=t.name:o=!1})),o))return U(t),i=q(t),new v(n,r,i);throw le(t,"Invalid left hand side of assignment operator =")}return a}function Y(e){for(var t=V(e);"xor"===e.token;)U(e),t=new g("xor","xor",[t,V(e)]);return t}function V(e){for(var t=G(e);"and"===e.token;)U(e),t=new g("and","and",[t,G(e)]);return t}function G(e){for(var t=$(e);"|"===e.token;)U(e),t=new g("|","bitOr",[t,$(e)]);return t}function $(e){for(var t=K(e);"^|"===e.token;)U(e),t=new g("^|","bitXor",[t,K(e)]);return t}function K(e){for(var t=Z(e);"&"===e.token;)U(e),t=new g("&","bitAnd",[t,Z(e)]);return t}function Z(e){for(var t=[X(e)],n=[],r={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};r.hasOwnProperty(e.token);){var i={name:e.token,fn:r[e.token]};n.push(i),U(e),t.push(X(e))}return 1===t.length?t[0]:2===t.length?new g(n[0].name,n[0].fn,t):new x(n.map((function(e){return e.fn})),t)}function X(e){var t,n,r,i,o;for(t=J(e),n={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};n.hasOwnProperty(e.token);)i=n[r=e.token],U(e),o=[t,J(e)],t=new g(r,i,o);return t}function J(e){var t,n,r,i,o;for(t=Q(e),n={to:"to",in:"to"};n.hasOwnProperty(e.token);)i=n[r=e.token],U(e),"in"===r&&""===e.token?t=new g("*","multiply",[t,new S("in")],!0):(o=[t,Q(e)],t=new g(r,i,o));return t}function Q(e){var t,n=[];if(t=":"===e.token?new p(1):ee(e),":"===e.token&&e.conditionalLevel!==e.nestingLevel){for(n.push(t);":"===e.token&&n.length<3;)U(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?n.push(new S("end")):n.push(ee(e));t=3===n.length?new w(n[0],n[2],n[1]):new w(n[0],n[1])}return t}function ee(e){var t,n,r,i,o;for(t=te(e),n={"+":"add","-":"subtract"};n.hasOwnProperty(e.token);)i=n[r=e.token],U(e),o=[t,te(e)],t=new g(r,i,o);return t}function te(e){var t,n,r,i,o;for(n=t=ne(e),r={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide","%":"mod",mod:"mod"};r.hasOwnProperty(e.token);)o=r[i=e.token],U(e),n=ne(e),t=new g(i,o,[t,n]);return t}function ne(t){var n,r;for(r=n=re(t);t.tokenType===M||"in"===t.token&&e.isConstantNode(n)||!(t.tokenType!==T||e.isConstantNode(r)||e.isOperatorNode(r)&&"!"!==r.op)||"("===t.token;)r=re(t),n=new g("*","multiply",[n,r],!0);return n}function re(t){for(var n=ie(t),i=n,o=[];"/"===t.token&&e.isConstantNode(i);){if(o.push(r({},t)),U(t),t.tokenType!==T){r(t,o.pop());break}if(o.push(r({},t)),U(t),t.tokenType!==M&&"("!==t.token){o.pop(),r(t,o.pop());break}r(t,o.pop()),o.pop(),i=ie(t),n=new g("/","divide",[n,i])}return n}function ie(e){var n,r,i,o={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return o.hasOwnProperty(e.token)?(i=o[e.token],n=e.token,U(e),r=[ie(e)],new g(n,i,r)):function(e){var n,r,i,o;n=function(e){var n,r,i,o;n=function(e){var n=[];if(e.tokenType===M&&e.extraNodes.hasOwnProperty(e.token)){var r=e.extraNodes[e.token];if(F(e),"("===e.token){if(n=[],B(e),F(e),")"!==e.token)for(n.push(q(e));","===e.token;)F(e),n.push(q(e));if(")"!==e.token)throw le(e,"Parenthesis ) expected");H(e),F(e)}return new r(n)}return function(e){var n,r;if(e.tokenType===M||e.tokenType===k&&e.token in P)return r=e.token,F(e),n=j.hasOwnProperty(r)?new p(j[r]):-1!==A.indexOf(r)?new p(u(r,"number")):new S(r),n=oe(e,n);return function(e){var n,r;if('"'===e.token)return r=ae(e),n=new p(r),n=oe(e,n);return function(e){var n,r;if("'"===e.token)return r=se(e),n=new p(r),n=oe(e,n);return function(e){var n,r,i,o;if("["===e.token){if(B(e),F(e),"]"!==e.token){var a=ue(e);if(";"===e.token){for(i=1,r=[a];";"===e.token;)F(e),r[i]=ue(e),i++;if("]"!==e.token)throw le(e,"End of matrix ] expected");H(e),F(e),o=r[0].items.length;for(var s=1;s0},O.isDecimalMark=function(e,t){return"."===e&&"/"!==t&&"*"!==t&&"^"!==t},O.isDigitDot=function(e){return e>="0"&&e<="9"||"."===e},O.isDigit=function(e){return e>="0"&&e<="9"},O}},function(e,t,n){"use strict";var r=n(44).extend;t.name="divide",t.factory=function(e,t,i,o){var a=i(n(86)),s=i(n(75)),u=i(n(379)),c=i(n(19)),l=i(n(103)),f=i(n(48)),h=o("divide",r({"Array | Matrix, Array | Matrix":function(e,t){return s(e,u(t))},"DenseMatrix, any":function(e,t){return f(e,t,a,!1)},"SparseMatrix, any":function(e,t){return l(e,t,a,!1)},"Array, any":function(e,t){return f(c(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return s(e,u(t))}},a.signatures));return h.toTex={2:"\\frac{${args[0]}}{${args[1]}}"},h}},function(e,t,n){"use strict";var r=n(21);t.name="sqrt",t.factory=function(e,t,n,i){var o=i("sqrt",{number:a,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():a(e.toNumber())},"Array | Matrix":function(e){return r(e,o,!0)},Unit:function(e){return e.pow(.5)}});function a(n){return isNaN(n)?NaN:n>=0||t.predictable?Math.sqrt(n):new e.Complex(n,0).sqrt()}return o.toTex={1:"\\sqrt{${args[0]}}"},o}},function(e,t,n){"use strict";var r=n(304);e.exports=function e(t,n){r(t)&&(t=t.valueOf());for(var i=0,o=t.length;i1&&void 0!==arguments[1])||arguments[1];this._utc=n,this._string=t,this._timerange=a.default.rangeFromIndexString(t,this._utc)}return i(e,[{key:"toJSON",value:function(){return this._string}},{key:"toString",value:function(){return this._string}},{key:"toNiceString",value:function(e){return a.default.niceIndexString(this._string,e)}},{key:"asString",value:function(){return this.toString()}},{key:"asTimerange",value:function(){return this._timerange}},{key:"begin",value:function(){return this._timerange.begin()}},{key:"end",value:function(){return this._timerange.end()}}],[{key:"getIndexString",value:function(e,t){var n=a.default.windowPositionFromDate(e,t);return"".concat(e,"-").concat(n)}},{key:"getIndexStringList",value:function(e,t){var n=a.default.windowPositionFromDate(e,t.begin()),r=a.default.windowPositionFromDate(e,t.end()),i=[];if(n<=r)for(var o=n;o<=r;o++)i.push("".concat(e,"-").concat(o));return i}},{key:"getDailyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=a.default.leftPad(t?e.getUTCDate():e.getDate()),r=a.default.leftPad(t?e.getUTCMonth()+1:e.getMonth()+1),i=t?e.getUTCFullYear():e.getFullYear();return"".concat(i,"-").concat(r,"-").concat(n)}},{key:"getMonthlyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=a.default.leftPad(t?e.getUTCMonth()+1:e.getMonth()+1),r=t?e.getUTCFullYear():e.getFullYear();return"".concat(r,"-").concat(n)}},{key:"getYearlyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?e.getUTCFullYear():e.getFullYear();return"".concat(n)}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(33),i=n(38),o=n(371),a=n(58),s=n(59),u=n(41);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;u(n(42));var c=u(n(126)),l=u(n(192)),f=u(n(146)),h=function(e){a(n,e);var t=s(n);function n(e,i){var a;if(r(this,n),a=t.call(this),e instanceof n){var s=e;return a._d=s._d,o(a)}if(e instanceof c.default.Map)return a._d=e,o(a);var u=f.default.timeRangeFromArg(e),l=f.default.dataFromArg(i);return a._d=new c.default.Map({range:u,data:l}),a}return i(n,[{key:"key",value:function(){return"".concat(+this.timerange().begin(),",").concat(+this.timerange().end())}},{key:"toJSON",value:function(){return{timerange:this.timerange().toJSON(),data:this.data().toJSON()}}},{key:"toPoint",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.data().get(e);n.push("undefined"===r?null:r)})),[this.timerange().toJSON()].concat(n)}},{key:"timerange",value:function(){return this._d.get("range")}},{key:"timerangeAsUTCString",value:function(){return this.timerange().toUTCString()}},{key:"timerangeAsLocalString",value:function(){return this.timerange().toLocalString()}},{key:"begin",value:function(){return this.timerange().begin()}},{key:"end",value:function(){return this.timerange().end()}},{key:"timestamp",value:function(){return this.begin()}},{key:"humanizeDuration",value:function(){return this.timerange().humanizeDuration()}}]),n}(l.default);t.default=h},function(e,t,n){"use strict";var r=n(33),i=n(38),o=n(371),a=n(58),s=n(59),u=n(41);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;u(n(42));var c=u(n(126)),l=u(n(192)),f=u(n(146)),h=function(e){a(n,e);var t=s(n);function n(e,i,a){var s;if(r(this,n),s=t.call(this),e instanceof n){var u=e;return s._d=u._d,o(s)}if(e instanceof c.default.Map)return s._d=e,o(s);var l=f.default.indexFromArgs(e,a),h=f.default.dataFromArg(i);return s._d=new c.default.Map({index:l,data:h}),s}return i(n,[{key:"key",value:function(){return this.indexAsString()}},{key:"toJSON",value:function(){return{index:this.indexAsString(),data:this.data().toJSON()}}},{key:"toPoint",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.data().get(e);n.push("undefined"===r?null:r)})),[this.indexAsString()].concat(n)}},{key:"index",value:function(){return this._d.get("index")}},{key:"indexAsString",value:function(){return this.index().asString()}},{key:"timerangeAsUTCString",value:function(){return this.timerange().toUTCString()}},{key:"timerangeAsLocalString",value:function(){return this.timerange().toLocalString()}},{key:"timerange",value:function(){return this.index().asTimerange()}},{key:"begin",value:function(){return this.timerange().begin()}},{key:"end",value:function(){return this.timerange().end()}},{key:"timestamp",value:function(){return this.begin()}}],[{key:"keySchema",value:function(){return{name:"index",type:"string"}}}]),n}(l.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(1)),o=a(n(128));function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.number,u=i.default.shape,c=(0,o.default)({displayName:"Chart",propTypes:{height:s.isRequired,width:s.isRequired,margin:u({top:s,bottom:s,left:s,right:s}).isRequired},render:function(){var e=this.props,t=e.width,n=e.height,i=e.margin,o=e.viewBox,a=e.preserveAspectRatio,s=e.children;return r.default.createElement("svg",{ref:"svg",width:t,height:n,viewBox:o,preserveAspectRatio:a},r.default.createElement("g",{transform:"translate("+i.left+", "+i.top+")"},s))}});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={componentWillMount:function(){this._calculateInner(this.props)},componentWillReceiveProps:function(e){this._calculateInner(e)},_calculateInner:function(e){var t=e.height,n=e.width,r=e.margin;this._innerHeight=t-r.top-r.bottom,this._innerWidth=n-r.left-r.right}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(170),i=n(322);e.exports=n(171)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(761),i=n(530);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l}));var r={},i=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function o(e,t,n){return e=a(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function a(e,t,n){return function(r){var o=i;i=r;try{e.call(this,this.__data__,t,n)}finally{i=o}}}function s(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function u(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r2&&void 0!==arguments[2]?arguments[2]:v;if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case c:case l:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case h:return m(e.clientOffset,n.clientOffset)?e:b({},e,{clientOffset:n.clientOffset});case p:case d:return w;default:return e}}var S="dnd-core/ADD_SOURCE",O="dnd-core/ADD_TARGET",E="dnd-core/REMOVE_SOURCE",k="dnd-core/REMOVE_TARGET";function T(e){return(T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function C(e,t){return e.filter((function(e){return e!==t}))}function N(e){return"object"===T(e)}function P(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e,t){1===e&&i.push(t)})),i}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case l:return A({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case f:return A({},e,{isSourcePublic:!0});case h:return A({},e,{targetIds:n.targetIds});case k:return-1===e.targetIds.indexOf(n.targetId)?e:A({},e,{targetIds:C(e.targetIds,n.targetId)});case d:return A({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case p:return A({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case S:case O:return e+1;case E:case k:return e-1;default:return e}}var L=[],F=[];function U(e,t){return e!==L&&(e===F||"undefined"===typeof t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function B(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case h:break;case S:case O:case k:case E:return L;case l:case f:case p:case d:default:return F}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,i=t.prevTargetIds,o=void 0===i?[]:i,a=P(r,o),s=a.length>0||!y(r,o);if(!s)return L;var u=o[o.length-1],c=r[r.length-1];return u!==c&&(u&&a.push(u),c&&a.push(c)),a}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:B(e.dirtyHandlerIds,{type:t.type,payload:q({},t.payload,{prevTargetIds:M(e,"dragOperation.targetIds",[])})}),dragOffset:x(e.dragOffset,t),refCount:z(e.refCount,t),dragOperation:R(e.dragOperation,t),stateId:H(e.stateId)}}L.__IS_NONE__=!0,F.__IS_ALL__=!0;var G=n(17),$=n.n(G);function K(e,t){return{type:c,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Z={type:c,payload:{clientOffset:null,sourceClientOffset:null}};function X(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),u=e.getRegistry();e.dispatch(K(o)),J(t,s,u);var c=te(t,s);if(null!==c){var f=null;o&&(Q(a),f=a(c)),e.dispatch(K(o,f));var h=u.getSource(c),d=h.beginDrag(s,c);ee(d),u.pinSource(c);var p=u.getSourceType(c);return{type:l,payload:{itemType:p,item:d,sourceId:c,clientOffset:o||null,sourceClientOffset:f||null,isSourcePublic:!!i}}}e.dispatch(Z)}}function J(e,t,n){$()(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){$()(n.getSource(e),"Expected sourceIds to be registered.")}))}function Q(e){$()("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function ee(e){$()(N(e),"Item must be an object.")}function te(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ne(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}function re(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function ie(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;oe(t);var i=t.slice(0),o=e.getMonitor(),a=e.getRegistry();ae(i,o,a);var s=o.getItemType();return se(i,a,s),ue(i,o,a),{type:h,payload:{targetIds:i,clientOffset:r||null}}}}function oe(e){$()(Array.isArray(e),"Expected targetIds to be an array.")}function ae(e,t,n){$()(t.isDragging(),"Cannot call hover while not dragging."),$()(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r=0;r--){var i=e[r];re(t.getTargetType(i),n)||e.splice(r,1)}}function ue(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();de(n);var i=ve(n);i.forEach((function(i,o){var a=pe(i,o,r,n),s={type:d,payload:{dropResult:le({},t,{},a)}};e.dispatch(s)}))}}function de(e){$()(e.isDragging(),"Cannot call drop while not dragging."),$()(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function pe(e,t,n,r){var i=n.getTarget(e),o=i?i.drop(r,e):void 0;return function(e){$()("undefined"===typeof e||N(e),"Drop result must either be an object or undefined.")}(o),"undefined"===typeof o&&(o=0===t?{}:r.getDropResult()),o}function ve(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function me(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){$()(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:p}}}function ye(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ge(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;$()("function"===typeof e,"listener must be a function."),$()("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=t.store.getState(),o=n.stateId;try{o===i||o===i+1&&!U(n.dirtyHandlerIds,r)||e()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;$()("function"===typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return $()(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return $()(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&re(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return $()(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!re(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(e);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(e){var t,n,r=e.clientOffset,i=e.initialClientOffset,o=e.initialSourceClientOffset;return r&&i&&o?ye((n=o,{x:(t=r).x+n.x,y:t.y+n.y}),i):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?ye(t,n):null}(this.store.getState().dragOffset)}}])&&ge(t.prototype,n),r&&ge(t,r),e}(),we=n(814),xe=n.n(we),Se=0;function Oe(e){return(Oe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Ee(e,!1)})):$()("string"===typeof e||"symbol"===Oe(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function ke(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];$()(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return $()(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return $()(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return $()(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ce(e)===be.SOURCE}},{key:"isTargetId",value:function(e){return Ce(e)===be.TARGET}},{key:"removeSource",value:function(e){var t=this;$()(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:E,payload:{sourceId:e}}}(e)),xe()((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){$()(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:k,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);$()(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){$()(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=Me(e);return this.types.set(r,t),e===be.SOURCE?this.dragSources.set(r,n):e===be.TARGET&&this.dropTargets.set(r,n),r}}])&&ke(t.prototype,n),r&&ke(t,r),e}();function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];je(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=Ie(n);this.store=r,this.monitor=new _e(r,new Pe(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:X(e),publishDragSource:ne(e),hover:ie(e),drop:he(e),endDrag:me(e)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=u(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(c(n),t.scheduled=void 0)},t}(n(155).a),f=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.b(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r1?r[0]+r.slice(2):r,+e.slice(n+1)]}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(72);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o>>0)},e.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(a)+BigInt(this.low>>>0);var e=this.negate();return BigInt(-1)*(BigInt(e.high>>>0)*BigInt(a)+BigInt(e.low>>>0))},e.prototype.toNumberOrInfinity=function(){return this.lessThan(e.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(e.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},e.prototype.toString=function(t){if((t=t||10)<2||t>36)throw RangeError("radix out of range: "+t);if(this.isZero())return"0";var n;if(this.isNegative()){if(this.equals(e.MIN_VALUE)){var r=e.fromNumber(t),i=this.div(r);return n=i.multiply(r).subtract(this),i.toString(t)+n.toInt().toString(t)}return"-"+this.negate().toString(t)}var o=e.fromNumber(Math.pow(t,6));n=this;for(var a="";;){var s=n.div(o),u=(n.subtract(s.multiply(o)).toInt()>>>0).toString(t);if((n=s).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},e.prototype.getHighBits=function(){return this.high},e.prototype.getLowBits=function(){return this.low},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(e.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var t=0!==this.high?this.high:this.low,n=31;n>0&&0===(t&1<=0},e.prototype.isOdd=function(){return 1===(1&this.low)},e.prototype.isEven=function(){return 0===(1&this.low)},e.prototype.equals=function(t){var n=e.fromValue(t);return this.high===n.high&&this.low===n.low},e.prototype.notEquals=function(e){return!this.equals(e)},e.prototype.lessThan=function(e){return this.compare(e)<0},e.prototype.lessThanOrEqual=function(e){return this.compare(e)<=0},e.prototype.greaterThan=function(e){return this.compare(e)>0},e.prototype.greaterThanOrEqual=function(e){return this.compare(e)>=0},e.prototype.compare=function(t){var n=e.fromValue(t);if(this.equals(n))return 0;var r=this.isNegative(),i=n.isNegative();return r&&!i?-1:!r&&i?1:this.subtract(n).isNegative()?-1:1},e.prototype.negate=function(){return this.equals(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.add=function(t){var n=e.fromValue(t),r=this.high>>>16,i=65535&this.high,o=this.low>>>16,a=65535&this.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,l=0,f=0,h=0,d=0;return h+=(d+=a+(65535&n.low))>>>16,d&=65535,f+=(h+=o+c)>>>16,h&=65535,l+=(f+=i+u)>>>16,f&=65535,l+=r+s,l&=65535,e.fromBits(h<<16|d,l<<16|f)},e.prototype.subtract=function(t){var n=e.fromValue(t);return this.add(n.negate())},e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;var n=e.fromValue(t);if(n.isZero())return e.ZERO;if(this.equals(e.MIN_VALUE))return n.isOdd()?e.MIN_VALUE:e.ZERO;if(n.equals(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return n.isNegative()?this.negate().multiply(n.negate()):this.negate().multiply(n).negate();if(n.isNegative())return this.multiply(n.negate()).negate();if(this.lessThan(u)&&n.lessThan(u))return e.fromNumber(this.toNumber()*n.toNumber());var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,a=65535&this.low,s=n.high>>>16,c=65535&n.high,l=n.low>>>16,f=65535&n.low,h=0,d=0,p=0,v=0;return p+=(v+=a*f)>>>16,v&=65535,d+=(p+=o*f)>>>16,p&=65535,d+=(p+=a*l)>>>16,p&=65535,h+=(d+=i*f)>>>16,d&=65535,h+=(d+=o*l)>>>16,d&=65535,h+=(d+=a*c)>>>16,d&=65535,h+=r*f+i*l+o*c+a*s,h&=65535,e.fromBits(p<<16|v,h<<16|d)},e.prototype.div=function(t){var n,i,o,a=e.fromValue(t);if(a.isZero())throw r.newError("division by zero");if(this.isZero())return e.ZERO;if(this.equals(e.MIN_VALUE))return a.equals(e.ONE)||a.equals(e.NEG_ONE)?e.MIN_VALUE:a.equals(e.MIN_VALUE)?e.ONE:(n=this.shiftRight(1).div(a).shiftLeft(1)).equals(e.ZERO)?a.isNegative()?e.ONE:e.NEG_ONE:(i=this.subtract(a.multiply(n)),o=n.add(i.div(a)));if(a.equals(e.MIN_VALUE))return e.ZERO;if(this.isNegative())return a.isNegative()?this.negate().div(a.negate()):this.negate().div(a).negate();if(a.isNegative())return this.div(a.negate()).negate();for(o=e.ZERO,i=this;i.greaterThanOrEqual(a);){n=Math.max(1,Math.floor(i.toNumber()/a.toNumber()));for(var s=Math.ceil(Math.log(n)/Math.LN2),u=s<=48?1:Math.pow(2,s-48),c=e.fromNumber(n),l=c.multiply(a);l.isNegative()||l.greaterThan(i);)n-=u,l=(c=e.fromNumber(n)).multiply(a);c.isZero()&&(c=e.ONE),o=o.add(c),i=i.subtract(l)}return o},e.prototype.modulo=function(t){var n=e.fromValue(t);return this.subtract(this.div(n).multiply(n))},e.prototype.not=function(){return e.fromBits(~this.low,~this.high)},e.prototype.and=function(t){var n=e.fromValue(t);return e.fromBits(this.low&n.low,this.high&n.high)},e.prototype.or=function(t){var n=e.fromValue(t);return e.fromBits(this.low|n.low,this.high|n.high)},e.prototype.xor=function(t){var n=e.fromValue(t);return e.fromBits(this.low^n.low,this.high^n.high)},e.prototype.shiftLeft=function(t){var n=e.toNumber(t);return 0===(n&=63)?e.ZERO:n<32?e.fromBits(this.low<>>32-n):e.fromBits(0,this.low<>>n|this.high<<32-n,this.high>>n):e.fromBits(this.high>>n-32,this.high>=0?0:-1)},e.isInteger=function(e){return!0===(e&&e.__isInteger__)},e.fromInt=function(t){var n,r;return(t|=0)>=-128&&t<128&&(r=i.get(t))?r:(n=new e(t,t<0?-1:0),t>=-128&&t<128&&i.set(t,n),n)},e.fromBits=function(t,n){return new e(t,n)},e.fromNumber=function(t){return isNaN(t)||!isFinite(t)?e.ZERO:t<=-s?e.MIN_VALUE:t+1>=s?e.MAX_VALUE:t<0?e.fromNumber(-t).negate():new e(t%a|0,t/a|0)},e.fromString=function(t,n){if(0===t.length)throw r.newError("number format error: empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return e.ZERO;if((n=n||10)<2||n>36)throw r.newError("radix out of range: "+n);var i;if((i=t.indexOf("-"))>0)throw r.newError('number format error: interior "-" character: '+t);if(0===i)return e.fromString(t.substring(1),n).negate();for(var o=e.fromNumber(Math.pow(n,8)),a=e.ZERO,s=0;sthis._highRecordWatermark&&(this._autoPull=!1))},t.prototype.onCompleted=function(e){this._state.onSuccess(this,e)},t.prototype.onError=function(e){this._state.onError(this,e)},t.prototype.cancel=function(){this._discard=!0},t.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(y.STREAMING)},t.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(y.SUCCEEDED)},t.prototype.subscribe=function(e){if(this._error)e.onError(this._error);else{if(this._head&&e.onKeys&&e.onKeys(this._head),this._queuedRecords.length>0&&e.onNext)for(var t=0;t0){this._fieldKeys=e.fields;for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){var r=n(1036);function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){"use strict";function r(e,t,n){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),void 0!==this.min&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}r.prototype=new RangeError,r.prototype.constructor=RangeError,r.prototype.name="IndexError",r.prototype.isIndexError=!0,e.exports=r},function(e,t,n){"use strict";var r=n(164),i=n(83),o=r.string,a=r.array,s=r.object,u=r.number,c=Array.isArray,l=u.isNumber,f=u.isInteger,h=o.isString,d=a.validateIndex;t.name="DenseMatrix",t.path="type",t.factory=function(e,t,u,p){var v=u(n(372)),m=u(n(490));function y(t,n){if(!(this instanceof y))throw new SyntaxError("Constructor must be called with the new operator");if(n&&!h(n))throw new Error("Invalid datatype: "+n);if(e.isMatrix(t))"DenseMatrix"===t.type?(this._data=s.clone(t._data),this._size=s.clone(t._size),this._datatype=n||t._datatype):(this._data=t.toArray(),this._size=t.size(),this._datatype=n||t._datatype);else if(t&&c(t.data)&&c(t.size))this._data=t.data,this._size=t.size,this._datatype=n||t.datatype;else if(c(t))this._data=function e(t){for(var n=0,r=t.length;n");w(t,n.max().map((function(e){return e+1})),o);var p=c.length;!function e(t,n,r,i,o){var a=o===i-1,s=n.dimension(o);a?s.forEach((function(e,n){d(e),t[e]=r[n[0]]})):s.forEach((function(a,s){d(a),e(t[a],n,r[s[0]],i,o+1)}))}(t._data,n,r,p,0)}return t}function _(e,t,n){if(0===t.length){for(var r=e._data;c(r);)r=r[0];return r}return e._size=t.slice(0),e._data=a.resize(e._data,e._size,n),e}function w(e,t,n){for(var r=e._size.slice(0),i=!1;r.lengthr[o]&&(r[o]=t[o],i=!0);i&&_(e,r,n)}return y.prototype=new m,y.prototype.type="DenseMatrix",y.prototype.isDenseMatrix=!0,y.prototype.getDataType=function(){return v(this._data)},y.prototype.storage=function(){return"dense"},y.prototype.datatype=function(){return this._datatype},y.prototype.create=function(e,t){return new y(e,t)},y.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return g(this,e);case 2:case 3:return b(this,e,t,n);default:throw new SyntaxError("Wrong number of arguments")}},y.prototype.get=function(e){if(!c(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new i(e.length,this._size.length);for(var t=0;t0?t:0,r=t<0?-t:0,i=this._size[0],o=this._size[1],a=Math.min(i-r,o-n),s=[],u=0;u0?r:0,d=r<0?-r:0,v=t[0],m=t[1],g=Math.min(v-d,m-u);if(c(n)){if(n.length!==g)throw new Error("Invalid value array length");s=function(e){return n[e]}}else if(e.isMatrix(n)){var b=n.size();if(1!==b.length||b[0]!==g)throw new Error("Invalid matrix length");s=function(e){return n.get([e])}}else s=function(){return n};i||(i=e.isBigNumber(s(0))?new e.BigNumber(0):0);var _=[];if(t.length>0){_=a.resize(_,t,i);for(var w=0;w'+t+"":"i"===t?''+t+"":"Infinity"===t?''+t+"":"NaN"===t?''+t+"":"null"===t?''+t+"":"undefined"===t?''+t+"":''+t+""},h.prototype.toJSON=function(){return{mathjs:"SymbolNode",name:this.name}},h.fromJSON=function(e){return new h(e.name)},h.prototype._toTex=function(e){var t=!1;"undefined"===typeof c[this.name]&&f(this.name)&&(t=!0);var n=r.toSymbol(this.name,t);return"\\"===n[0]?n:" "+n},h}},function(e,t,n){"use strict";var r=n(32).nearlyEqual,i=n(165);t.name="compare",t.factory=function(e,t,o,a){var s=o(n(19)),u=o(n(101)),c=o(n(375)),l=o(n(102)),f=o(n(56)),h=o(n(48)),d=a("compare",{"boolean, boolean":function(e,t){return e===t?0:e>t?1:-1},"number, number":function(e,n){return e===n||r(e,n,t.epsilon)?0:e>n?1:-1},"BigNumber, BigNumber":function(n,r){return n.eq(r)||i(n,r,t.epsilon)?new e.BigNumber(0):new e.BigNumber(n.cmp(r))},"Fraction, Fraction":function(t,n){return new e.Fraction(t.compare(n))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return d(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return c(e,t,d)},"SparseMatrix, DenseMatrix":function(e,t){return u(t,e,d,!0)},"DenseMatrix, SparseMatrix":function(e,t){return u(e,t,d,!1)},"DenseMatrix, DenseMatrix":function(e,t){return f(e,t,d)},"Array, Array":function(e,t){return d(s(e),s(t)).valueOf()},"Array, Matrix":function(e,t){return d(s(e),t)},"Matrix, Array":function(e,t){return d(e,s(t))},"SparseMatrix, any":function(e,t){return l(e,t,d,!1)},"DenseMatrix, any":function(e,t){return h(e,t,d,!1)},"any, SparseMatrix":function(e,t){return l(t,e,d,!0)},"any, DenseMatrix":function(e,t){return h(t,e,d,!0)},"Array, any":function(e,t){return h(s(e),t,d,!1).valueOf()},"any, Array":function(e,t){return h(s(t),e,d,!0).valueOf()}});return d.toTex=void 0,d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1)),i=o(n(194));function o(e){return e&&e.__esModule?e:{default:e}}var a=r.default.oneOfType,s=r.default.object,u=r.default.array,c=r.default.shape,l=r.default.func,f=r.default.number,h={propTypes:{data:a([s,u]).isRequired,height:f.isRequired,width:f.isRequired,margin:c({top:f,bottom:f,left:f,right:f}),xScale:l,yScale:l,colorScale:l},getDefaultProps:function(){return{data:{label:"No data available",values:[{x:"No data available",y:1}]},margin:{top:0,bottom:0,left:0,right:0},xScale:null,yScale:null,colorScale:i.default.scale.category20()}}};t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=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(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=a(n(1)),o=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.func,u=i.default.oneOf,c=i.default.bool,l=i.default.objectOf,f=i.default.number,h={propTypes:{tooltipHtml:s,tooltipMode:u(["mouse","element","fixed"]),tooltipContained:c,tooltipOffset:l(f)},getInitialState:function(){return{tooltip:{hidden:!0}}},getDefaultProps:function(){return{tooltipMode:"mouse",tooltipOffset:{top:-35,left:0},tooltipHtml:null,tooltipContained:!1}},componentDidMount:function(){this._svgNode=o.default.findDOMNode(this).getElementsByTagName("svg")[0]},onMouseEnter:function(e,t){if(this.props.tooltipHtml){e.preventDefault();var n=this.props,i=n.margin,o=n.tooltipMode,a=n.tooltipOffset,s=n.tooltipContained,u=this._svgNode,c=void 0;if(u.createSVGPoint){var l=u.createSVGPoint();l.x=e.clientX,l.y=e.clientY,c=[(l=l.matrixTransform(u.getScreenCTM().inverse())).x-i.left,l.y-i.top]}else{var f=u.getBoundingClientRect();c=[e.clientX-f.left-u.clientLeft-i.left,e.clientY-f.top-u.clientTop-i.top]}var h=this._tooltipHtml(t,c),d=r(h,3),p=d[0],v=d[1],m=d[2],y=u.getBoundingClientRect().top+i.top,g=u.getBoundingClientRect().left+i.left,b=0,_=0;"fixed"===o?(b=y+a.top,_=g+a.left):"element"===o?(b=y+m+a.top,_=g+v+a.left):(b=e.clientY+a.top,_=e.clientX+a.left);var w=50;if(s)w=function(e,t,n){return(1-e)*t+e*n}(c[0]/u.getBoundingClientRect().width,0,100);this.setState({tooltip:{top:b,left:_,hidden:!1,html:p,translate:w}})}},onMouseLeave:function(e){this.props.tooltipHtml&&(e.preventDefault(),this.setState({tooltip:{hidden:!0}}))}};t.default=h},function(e,t,n){var r=n(530);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(396);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(173),i=n.n(r),o={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function a(e){var t=i()(e);return"string"===t||"number"===t?o[e]||e:""}},function(e,t,n){var r=n(134),i=n(459),o=n(90),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i=n(14);function o(){return function(e){return e.lift(new a(e))}}var a=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new s(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.b(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),i=n(46),o=n(328),a=n(39),s=n(406),u=n(131),c=n(422),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.b(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new f(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new c.a(this,e)),i&&e.add(e=new s.a(e,i)),n)for(var l=0;lt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),f=function(){return function(e,t){this.time=e,this.value=t}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(18);function i(e,t){return t?new r.a((function(n){return t.schedule(o,0,{error:e,subscriber:n})})):new r.a((function(t){return t.error(e)}))}function o(e){var t=e.error;e.subscriber.error(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n(4),i=n(70),o=n(52),a=n(108),s=n(96),u=n(152),c={};function l(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),p=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.b(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Object(u.c)(this.observable,new u.a(this))},t}(u.b)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";var r=n(199);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){var r=n(349),i=n(242),o=n(861),a=n(60);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(914)},function(e,t,n){var r=n(923),i=n(462)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){var r=n(606),i=n(242),o=n(184),a=n(927),s=n(60);e.exports=function(e,t,n){var u=s(e)?r:a,c=arguments.length<3;return u(e,o(t,4),n,c,i)}},function(e,t,n){"use strict";function r(e){return null!==e&&"object"===typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(14);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(18),i=n(39);function o(e,t){return new r.a((function(n){var r=new i.a,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t){e.exports=function e(t){if(!(this instanceof e))return new e(t);var n=new Array(t),r=0,i=0;function o(e){n[(r+i)%t]=e,i===t?r=(r+1)%t:++i}this.__defineGetter__("isFull",(function(){return i===t})),this.__defineGetter__("isEmpty",(function(){return 0===i})),this.__defineGetter__("count",(function(){return i})),this.__defineGetter__("size",(function(){return t})),this.push=function(){for(var e=0;e0;o=(o+1)%t,--a)e(n[o])},this.toArray=function(){var e=new Array(i),t=0;return this.forEach((function(n){e[t++]=n})),e}}},function(e,t,n){"use strict";t.a=function(e,t,n){var r=e.defaultProps,i=void 0===r?{}:r;if(t.as&&t.as!==i.as)return t.as;if(n){var o=n();if(o)return o}return t.href?"a":i.as||"div"}},function(e,t,n){var r=n(604),i=n(362),o=n(243),a=n(299),s=o((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(98),i=n(178),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),a=n.n(o),s=(n(1),n(0)),u=n.n(s),c=n(37),l=n(206),f=n(286),h=n(334);function d(e){var t=e.children,n=e.className,r=e.computer,o=e.color,s=e.floated,h=e.largeScreen,p=e.mobile,v=e.only,m=e.stretched,y=e.tablet,g=e.textAlign,b=e.verticalAlign,_=e.widescreen,w=e.width,x=a()(o,Object(c.a)(m,"stretched"),Object(c.c)(v,"only"),Object(c.d)(g),Object(c.e)(s,"floated"),Object(c.f)(b),Object(c.g)(r,"wide computer"),Object(c.g)(h,"wide large screen"),Object(c.g)(p,"wide mobile"),Object(c.g)(y,"wide tablet"),Object(c.g)(_,"wide widescreen"),Object(c.g)(w,"wide"),"column",n),S=Object(l.a)(d,e),O=Object(f.a)(d,e);return u.a.createElement(O,i()({},S,{className:x}),t)}d.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"],d.propTypes={},d.create=Object(h.f)(d,(function(e){return{children:e}})),t.a=d},,,function(e,t,n){var r=n(134),i=n(90);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(855),i=n(90),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){var r=n(99),i=n(856),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(143)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e'+t+"";case"string":return''+t+"";case"boolean":return''+t+"";case"null":return''+t+"";case"undefined":return''+t+"";default:return''+t+""}},c.prototype.toJSON=function(){return{mathjs:"ConstantNode",value:this.value}},c.fromJSON=function(e){return new c(e.value)},c.prototype._toTex=function(e){var t=this._toString(e);switch(u(this.value)){case"string":return"\\mathtt{"+i(t)+"}";case"number":case"BigNumber":var n=t.toLowerCase().indexOf("e");return-1!==n?t.substring(0,n)+"\\cdot10^{"+t.substring(n+1)+"}":t;case"Fraction":return this.value.toLatex();default:return t}},c}},function(e,t,n){"use strict";var r=n(40),i=n(27).map,o=n(74).escape,a=n(87).isSafeMethod,s=n(87).getSafeProperty,u=n(255);t.name="OperatorNode",t.path="expression.node",t.factory=function(e,t,c,l){var f=c(n(93));function h(t,n,r,i){if(!(this instanceof h))throw new SyntaxError("Constructor must be called with the new operator");if("string"!==typeof t)throw new TypeError('string expected for parameter "op"');if("string"!==typeof n)throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(r)||!r.every(e.isNode))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===i,this.op=t,this.fn=n,this.args=r||[]}function d(e,t,n,r,i){var o,a=u.getPrecedence(e,t),s=u.getAssociativity(e,t);if("all"===t||r.length>2&&"OperatorNode:add"!==e.getIdentifier()&&"OperatorNode:multiply"!==e.getIdentifier())return r.map((function(e){switch(e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}}));switch(r.length){case 0:o=[];break;case 1:var c=u.getPrecedence(r[0],t);if(i&&null!==c){var l,f;if("keep"===t?(l=r[0].getIdentifier(),f=e.getIdentifier()):(l=r[0].getContent().getIdentifier(),f=e.getContent().getIdentifier()),!1===u.properties[a][f].latexLeftParens){o=[!1];break}if(!1===u.properties[c][l].latexParens){o=[!1];break}}if(null===c){o=[!1];break}if(c<=a){o=[!0];break}o=[!1];break;case 2:var h,d,p=u.getPrecedence(r[0],t),v=u.isAssociativeWith(e,r[0],t);h=null!==p&&(p===a&&"right"===s&&!v||p=2&&"OperatorNode:multiply"===e.getIdentifier()&&e.implicit&&"auto"===t&&"hide"===n&&(o=r.map((function(e,t){var n="ParenthesisNode"===e.getIdentifier();return!(!o[t]&&!n)}))),o}return h.prototype=new f,h.prototype.type="OperatorNode",h.prototype.isOperatorNode=!0,h.prototype._compile=function(e,t){if("string"!==typeof this.fn||!a(e,this.fn))throw e[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var n=s(e,this.fn),r=i(this.args,(function(n){return n._compile(e,t)}));if(1===r.length){var o=r[0];return function(e,t,r){return n(o(e,t,r))}}if(2===r.length){var u=r[0],c=r[1];return function(e,t,r){return n(u(e,t,r),c(e,t,r))}}return function(e,t,o){return n.apply(null,i(r,(function(n){return n(e,t,o)})))}},h.prototype.forEach=function(e){for(var t=0;t2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var f=r.map((function(t,n){return t=t.toString(e),i[n]&&(t="("+t+")"),t}));return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?f.join(" "):f.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"},h.prototype.toJSON=function(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit}},h.fromJSON=function(e){return new h(e.op,e.fn,e.args,e.implicit)},h.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",r=this.args,i=d(this,t,n,r,!1);if(1===r.length){var a=u.getAssociativity(this,t),s=r[0].toHTML(e);return i[0]&&(s='('+s+')'),"right"===a?''+o(this.op)+""+s:s+''+o(this.op)+""}if(2===r.length){var c=r[0].toHTML(e),l=r[1].toHTML(e);return i[0]&&(c='('+c+')'),i[1]&&(l='('+l+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?c+''+l:c+''+o(this.op)+""+l}var f=r.map((function(t,n){return t=t.toHTML(e),i[n]&&(t='('+t+')'),t}));return r.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?f.join(''):f.join(''+o(this.op)+""):''+o(this.fn)+'('+f.join(',')+')'},h.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,o=d(this,t,n,i,!0),a=r.operators[this.fn];if(a="undefined"===typeof a?this.op:a,1===i.length){var s=u.getAssociativity(this,t),c=i[0].toTex(e);return o[0]&&(c="\\left(".concat(c,"\\right)")),"right"===s?a+c:c+a}if(2===i.length){var l=i[0],f=l.toTex(e);o[0]&&(f="\\left(".concat(f,"\\right)"));var h,p=i[1].toTex(e);switch(o[1]&&(p="\\left(".concat(p,"\\right)")),h="keep"===t?l.getIdentifier():l.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return a+"{"+f+"}{"+p+"}";case"OperatorNode:pow":switch(f="{"+f+"}",p="{"+p+"}",h){case"ConditionalNode":case"OperatorNode:divide":f="\\left(".concat(f,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===n)return f+"~"+p}return f+a+p}if(i.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var v=i.map((function(t,n){return t=t.toTex(e),o[n]&&(t="\\left(".concat(t,"\\right)")),t}));return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit?v.join("~"):v.join(a)}return"\\mathrm{"+this.fn+"}\\left("+i.map((function(t){return t.toTex(e)})).join(",")+"\\right)"},h.prototype.getIdentifier=function(){return this.type+":"+this.fn},h}},function(e,t,n){"use strict";var r=n(21);t.name="isZero",t.factory=function(e,t,n,i){var o=i("isZero",{number:function(e){return 0===e},BigNumber:function(e){return e.isZero()},Complex:function(e){return 0===e.re&&0===e.im},Fraction:function(e){return 1===e.d&&0===e.n},Unit:function(e){return o(e.value)},"Array | Matrix":function(e){return r(e,o)}});return o}},function(e,t,n){"use strict";var r=n(21);t.name="isNegative",t.factory=function(e,t,n,i){var o=i("isNegative",{number:function(e){return e<0},BigNumber:function(e){return e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s<0},Unit:function(e){return o(e.value)},"Array | Matrix":function(e){return r(e,o)}});return o}},function(e,t,n){"use strict";var r=n(168);e.exports=function(e){for(var t=0;t=e:this.begin()<=e.begin()&&this.end()>=e.end()}},{key:"within",value:function(e){return this.begin()>=e.begin()&&this.end()<=e.end()}},{key:"overlaps",value:function(e){return!!(this.contains(e.begin())&&!this.contains(e.end())||this.contains(e.end())&&!this.contains(e.begin()))}},{key:"disjoint",value:function(e){return this.end()e.end()}},{key:"extents",value:function(t){var n=this.begin()t.end()?this.end():t.end();return new e(new Date(n.getTime()),new Date(r.getTime()))}},{key:"intersection",value:function(t){if(!this.disjoint(t)){var n=this.begin()>t.begin()?this.begin():t.begin(),r=this.end()0?e>1?Object(r.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):i:null},t.a=i;var o=i.range},function(e,t,n){"use strict";function r(e){return e*e*e}function i(e){return--e*e*e+1}function o(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(1)),o=a(n(128));function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.array,u=i.default.func,c=i.default.oneOf,l=i.default.number,f=i.default.string,h=(0,o.default)({displayName:"Axis",propTypes:{tickArguments:s,tickValues:s,tickFormat:u,tickDirection:c(["horizontal","vertical","diagonal"]),innerTickSize:l,tickPadding:l,outerTickSize:l,scale:u.isRequired,className:f,zero:l,orientation:c(["top","bottom","left","right"]).isRequired,label:f},getDefaultProps:function(){return{tickArguments:[10],tickValues:null,tickFormat:null,tickDirection:"horizontal",innerTickSize:6,tickPadding:3,outerTickSize:6,className:"axis",zero:0,label:""}},_getTranslateString:function(){var e=this.props,t=e.orientation,n=e.height,r=e.width,i=e.zero;return"top"===t?"translate(0, "+i+")":"bottom"===t?"translate(0, "+(0==i?n:i)+")":"left"===t?"translate("+i+", 0)":"right"===t?"translate("+(0==i?r:i)+", 0)":""},render:function(){var e=this.props,t=e.height,n=e.tickArguments,i=e.tickValues,o=e.tickDirection,a=e.innerTickSize,s=e.tickPadding,u=e.outerTickSize,c=e.scale,l=e.orientation,f=e.zero,h=this.props,d=h.width,p=h.className,v=h.label,m=this.props.tickFormat,y=null==i?c.ticks?c.ticks.apply(c,n):c.domain():i;m||(m=c.tickFormat?c.tickFormat.apply(c,n):function(e){return e}),f!=t&&f!=d&&0!=f&&(y=y.filter((function(e){return 0!=e})));var g=Math.max(a,0)+s,b="top"===l||"left"===l?-1:1,_=this._d3ScaleRange(c),w=c.rangeBand?function(e){return c(e)+c.rangeBand()/2}:c,x=void 0,S=void 0,O=void 0,E=void 0,k=void 0,T=void 0,M=void 0,C=void 0,N=void 0,P=0;"bottom"===l||"top"===l?(x="translate({}, 0)",S=0,O=b*g,E=0,k=b*a,T=b<0?"0em":".71em",M="middle",C="M"+_[0]+", "+b*u+"V0H"+_[1]+"V"+b*u,"vertical"===o?(P=-90,S=-g,O=-a,M="end"):"diagonal"===o&&(P=-60,S=-g,O=0,M="end"),N=r.default.createElement("text",{className:p+" label",textAnchor:"end",x:d,y:-6},v)):(x="translate(0, {})",S=b*g,O=0,E=b*a,k=0,T=".32em",M=b<0?"end":"start",C="M"+b*u+", "+_[0]+"H0V"+_[1]+"H"+b*u,"vertical"===o?(P=-90,S-=b*g,O=-(g+a),M="middle"):"diagonal"===o&&(P=-60,S-=b*g,O=-(g+a),M="middle"),N=r.default.createElement("text",{className:p+" label",textAnchor:"end",y:6,dy:"left"===l?".75em":"-1.25em",transform:"rotate(-90)"},v));var j=y.map((function(e,t){var n=w(e),i=x.replace("{}",n);return r.default.createElement("g",{key:e+"."+t,className:"tick",transform:i},r.default.createElement("line",{x2:E,y2:k,stroke:"#aaa"}),r.default.createElement("text",{x:S,y:O,dy:T,textAnchor:M,transform:"rotate("+P+")"},m(e)))})),A=r.default.createElement("path",{className:"domain",d:C,fill:"none",stroke:"#aaa"}),I=r.default.createElement("rect",{className:"axis-background",fill:"none"});return r.default.createElement("g",{ref:"axis",className:p,transform:this._getTranslateString(),style:{shapeRendering:"crispEdges"}},I,j,A,N)},_d3ScaleExtent:function(e){var t=e[0],n=e[e.length-1];return t=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(760),i=n(539);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return r.a})),n.d(t,"timeFormat",(function(){return r.b})),n.d(t,"timeParse",(function(){return r.c})),n.d(t,"utcFormat",(function(){return r.d})),n.d(t,"utcParse",(function(){return r.e})),n.d(t,"timeFormatLocale",(function(){return i.a})),n.d(t,"isoFormat",(function(){return o})),n.d(t,"isoParse",(function(){return a}));var r=n(149),i=n(412);var o=Date.prototype.toISOString?function(e){return e.toISOString()}:Object(r.d)("%Y-%m-%dT%H:%M:%S.%LZ");var a=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Object(r.e)("%Y-%m-%dT%H:%M:%S.%LZ")},function(e,t,n){var r=n(134),i=n(60),o=n(90);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(4),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.b(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(155).a),o=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.b(t,e),t}(n(153).a))(i),a=o},function(e,t,n){var r=n(586),i=n(916),o=n(184),a=n(60);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/i.a}),(function(e){return e.getUTCDate()-1}));t.a=o;var a=o.range},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.c)/i.a}),(function(e){return e.getDate()-1}));t.b=o;var a=o.range},function(e,t,n){"use strict";var r=n(279),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m3&&void 0!==arguments[3]?arguments[3]:{};if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthand() Component must be a string or function.");if(_()(n)||g()(n))return null;var o=m()(n),s=p()(n),c=h()(n),f=Object(S.isValidElement)(n),d=l()(n),v=o||s||u()(n);if(!c&&!f&&!d&&!v)return null;var y=r.defaultProps,b=void 0===y?{}:y,w=f&&n.props||d&&n||v&&t(n),E=r.overrideProps,k=void 0===E?{}:E;k=h()(k)?k(i()({},b,w)):k;var T=i()({},b,w,k);if(b.className||k.className||w.className){var M=x()(b.className,k.className,w.className);T.className=a()(M.split(" ")).join(" ")}if((b.style||k.style||w.style)&&(T.style=i()({},b.style,w.style,k.style)),_()(T.key)){var C=T.childKey,N=r.autoGenerateKey,P=void 0===N||N;_()(C)?P&&(o||s)&&(T.key=n):(T.key="function"===typeof C?C(T):C,delete T.childKey)}return f?Object(S.cloneElement)(n,T):v||d?O.a.createElement(e,T):c?n(e,T,T.children):void 0}function k(e,t){if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthandFactory() Component must be a string or function.");return function(n,r){return E(e,t,n,r)}}E.handledProps=[];var T=k("div",(function(e){return{children:e}})),M=(k("iframe",(function(e){return{src:e}})),k("img",(function(e){return{src:e}})),k("input",(function(e){return{type:e}}))),C=k("label",(function(e){return{children:e}})),N=k("p",(function(e){return{children:e}}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return $})),n.d(t,"b",(function(){return se}));var a=n(0),s=n.n(a),u=n(1),c=n.n(u),l=n(7),f=n.n(l),h=n(61),d=n.n(h),p=!1,v=s.a.createContext(null),m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=d.a.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||p?this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!p?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=i(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return s.a.createElement(v.Provider,{value:null},n(e,r));var o=s.a.Children.only(n);return s.a.createElement(v.Provider,{value:null},s.a.cloneElement(o,r))},t}(s.a.Component);function y(){}m.contextType=v,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var g=m,b=n(176);function _(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function w(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=_(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r0}function D(e){return Object.keys(e).map((function(t){return e[t]}))}var R=!("undefined"===typeof window||!window.document||!window.document.createElement);var z,L=((z=function(e,t,n){var r=e[t];return!1===r||I(r)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+r+" given.")}).isRequired=function(e,t,n){if("undefined"===typeof e[t])return new Error("The prop "+t+" is marked as required in \n "+n+", but its value is undefined.");z(e,t,n)},z),F={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e){return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i=1?"onTransitionEnd":"onAnimationEnd"]=d&&p<1?null:a,n);return s.a.createElement("div",r({className:y,style:m},g))}function H(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function W(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}B.propTypes={delay:L.isRequired,isRunning:c.a.bool.isRequired,closeToast:c.a.func.isRequired,rtl:c.a.bool.isRequired,type:c.a.string,hide:c.a.bool,className:c.a.oneOfType([c.a.string,c.a.object]),progress:c.a.number,controlledProgress:c.a.bool},B.defaultProps={type:T.DEFAULT,hide:!1};var q=R&&/(msie|trident)/i.test(navigator.userAgent),Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;it.drag.removalDistance)return void t.setState({preventExitTransition:!0},t.props.closeToast);t.ref.style.transition="transform 0.2s, opacity 0.2s",t.ref.style.transform="translateX(0)",t.ref.style.opacity=1}},t.onDragTransitionEnd=function(){if(t.boundingRect){var e=t.boundingRect,n=e.top,r=e.bottom,i=e.left,o=e.right;t.props.pauseOnHover&&t.drag.x>=i&&t.drag.x<=o&&t.drag.y>=n&&t.drag.y<=r?t.pauseToast():t.playToast()}},t.onExitTransitionEnd=function(){if(q)t.props.onExited();else{var e=t.ref.scrollHeight,n=t.ref.style;requestAnimationFrame((function(){n.minHeight="initial",n.height=e+"px",n.transition="all 0.4s ",requestAnimationFrame((function(){n.height=0,n.padding=0,n.margin=0})),setTimeout((function(){return t.props.onExited()}),400)}))}},t}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(e){e.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),e.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var e,t=this,n=this.props,i=n.closeButton,o=n.children,a=n.autoClose,u=n.pauseOnHover,c=n.onClick,l=n.closeOnClick,h=n.type,d=n.hideProgressBar,p=n.closeToast,v=n.transition,m=n.position,y=n.className,g=n.bodyClassName,b=n.progressClassName,_=n.progressStyle,w=n.updateId,x=n.role,S=n.progress,O=n.rtl,E={className:f()("Toastify__toast","Toastify__toast--"+h,(e={},e["Toastify__toast--rtl"]=O,e),y)};a&&u&&(E.onMouseEnter=this.pauseToast,E.onMouseLeave=this.playToast),l&&(E.onClick=function(e){c&&c(e),t.flag.canCloseOnClick&&p()});var k=parseFloat(S)===S;return s.a.createElement(v,{in:this.props.in,appear:!0,onExited:this.onExitTransitionEnd,position:m,preventExitTransition:this.state.preventExitTransition},s.a.createElement("div",r({onClick:c},E,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onMouseUp:this.onDragTransitionEnd,onTouchEnd:this.onDragTransitionEnd}),s.a.createElement("div",r({},this.props.in&&{role:x},{className:f()("Toastify__toast-body",g)}),o),i&&i,(a||k)&&s.a.createElement(B,r({},w&&!k?{key:"pb-"+w}:{},{rtl:O,delay:a,isRunning:this.state.isRunning,closeToast:p,hide:d,type:h,style:_,className:b,controlledProgress:k,progress:S}))))},t}(a.Component);function V(e){var t=e.closeToast,n=e.type,r=e.ariaLabel;return s.a.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":r},"\u2716\ufe0e")}Y.propTypes={closeButton:c.a.oneOfType([c.a.node,c.a.bool]).isRequired,autoClose:L.isRequired,children:c.a.node.isRequired,closeToast:c.a.func.isRequired,position:c.a.oneOf(D(k)).isRequired,pauseOnHover:c.a.bool.isRequired,pauseOnFocusLoss:c.a.bool.isRequired,closeOnClick:c.a.bool.isRequired,transition:c.a.func.isRequired,rtl:c.a.bool.isRequired,hideProgressBar:c.a.bool.isRequired,draggable:c.a.bool.isRequired,draggablePercent:c.a.number.isRequired,in:c.a.bool,onExited:c.a.func,onOpen:c.a.func,onClose:c.a.func,type:c.a.oneOf(D(T)),className:c.a.oneOfType([c.a.string,c.a.object]),bodyClassName:c.a.oneOfType([c.a.string,c.a.object]),progressClassName:c.a.oneOfType([c.a.string,c.a.object]),progressStyle:c.a.object,progress:c.a.number,updateId:c.a.oneOfType([c.a.string,c.a.number]),ariaLabel:c.a.string,containerId:c.a.oneOfType([c.a.string,c.a.number]),role:c.a.string},Y.defaultProps={type:T.DEFAULT,in:!0,onOpen:A,onClose:A,className:null,bodyClassName:null,progressClassName:null,updateId:null},V.propTypes={closeToast:c.a.func,arialLabel:c.a.string},V.defaultProps={ariaLabel:"close"};var G=U({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),$=(U({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),U({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),U({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"}),function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i0}function ne(e,t){var n=function(e){return te()?e?K.get(e):K.get(Z):null}(t.containerId);if(!n)return null;var r=n.collection[e];return"undefined"===typeof r?null:r}function re(e,t){return r({},e,{type:t,toastId:oe(e)})}function ie(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function oe(e){return e&&("string"===typeof e.toastId||"number"===typeof e.toastId&&!isNaN(e.toastId))?e.toastId:ie()}function ae(e,t){return te()?F.emit(M,e,t):(Q.push({action:M,content:e,options:t}),ee&&R&&(ee=!1,X=document.createElement("div"),document.body.appendChild(X),Object(h.render)(s.a.createElement($,J),X))),t.toastId}var se=function(e,t){return ae(e,re(t,t&&t.type||T.DEFAULT))},ue=function(e){T[e]!==T.DEFAULT&&(se[T[e].toLowerCase()]=function(t,n){return ae(t,re(n,n&&n.type||T[e]))})};for(var ce in T)ue(ce);se.warn=se.warning,se.dismiss=function(e){return void 0===e&&(e=null),te()&&F.emit(C,e)},se.isActive=function(e){var t=!1;return K.size>0&&K.forEach((function(n){n.isToastActive(e)&&(t=!0)})),t},se.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=ne(e,t);if(n){var i=n.options,o=n.content,a=r({},i,{},t,{toastId:t.toastId||e});t.toastId&&t.toastId!==e?a.staleToastId=e:a.updateId=ie();var s="undefined"!==typeof a.render?a.render:o;delete a.render,ae(s,a)}}),0)},se.done=function(e){se.update(e,{progress:1})},se.onChange=function(e){"function"===typeof e&&F.on(j,e)},se.configure=function(e){ee=!0,J=e},se.POSITION=k,se.TYPE=T,F.on(N,(function(e){Z=e.props.containerId||e,K.set(Z,e),Q.forEach((function(e){F.emit(e.action,e.content,e.options)})),Q=[]})).on(P,(function(e){e?K.delete(e.props.containerId||e):K.clear(),0===K.size&&F.off(M).off(C),R&&X&&document.body.removeChild(X)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(72);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(Object(i.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(r){return void i(r)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(r){return void i(r)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}()},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(756),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHorizontalStrength=w,t.createVerticalStrength=x,t.createScrollingComponent=E,t.default=function(e){var t=E(e);return function(e){return r.default.createElement(c.DragDropContextConsumer,null,(function(n){var i=n.dragDropManager;return void 0===i?null:r.default.createElement(t,p({},e,{dragDropManager:i}))}))}},t.defaultVerticalStrength=t.defaultHorizontalStrength=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=h(n(1)),o=n(61),a=h(n(1638)),s=h(n(1639)),u=h(n(1641)),c=n(548),l=h(n(333)),f=n(1643);function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){for(var n=0;n=r&&n.x<=r+i&&n.y>=o&&n.y<=o+a){if(n.xr+i-s)return-(r+i-n.x-s)/s}return 0}}function x(e){return function(t,n){var r=t.y,i=t.h,o=t.x,a=t.w,s=Math.min(i/2,e);if(n.y>=r&&n.y<=r+i&&n.x>=o&&n.x<=o+a){if(n.yr+i-s)return-(r+i-n.y-s)/s}return 0}}var S=w(150);t.defaultHorizontalStrength=S;var O=x(150);function E(e){var t=function(t){function n(e,t){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),i=function(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?b(e):t}(this,y(n).call(this,e,t)),_(b(b(i)),"updateScrolling",(0,a.default)((function(e){var t=i.container.getBoundingClientRect(),n={x:t.left,y:t.top,w:t.width,h:t.height},r=(0,f.getCoords)(e),o=i.props,a=o.horizontalStrength,s=o.verticalStrength;i.scaleX=a(n,r),i.scaleY=s(n,r),i.frame||!i.scaleX&&!i.scaleY||i.startScrolling()}),100,{trailing:!1})),_(b(b(i)),"handleEvent",(function(e){i.dragging&&!i.attached&&(i.attach(),i.updateScrolling(e))})),i.wrappedInstance=r.default.createRef(),i.scaleX=0,i.scaleY=0,i.frame=null,i.attached=!1,i.dragging=!1,i}var i,u,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(n,t),i=n,(u=[{key:"componentDidMount",value:function(){var e=this;this.container=(0,o.findDOMNode)(this.wrappedInstance.current),this.container&&"function"===typeof this.container.addEventListener&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var t=this.props.dragDropManager;this.clearMonitorSubscription=t.getMonitor().subscribeToStateChange((function(){return e.handleMonitorChange()}))}},{key:"componentWillUnmount",value:function(){this.container&&"function"===typeof this.container.removeEventListener&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var e=this.props.dragDropManager.getMonitor().isDragging();!this.dragging&&e?this.dragging=!0:this.dragging&&!e&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var e=this,t=0;!function n(){var r=e.scaleX,i=e.scaleY,o=e.container,a=e.props,u=a.strengthMultiplier,c=a.onScrollChange;if(0!==u&&r+i!==0){if((t+=1)%2){var l=o.scrollLeft,h=o.scrollTop,d=o.scrollWidth,p=o.scrollHeight,v=o.clientWidth,m=o.clientHeight;c(r?o.scrollLeft=(0,f.intBetween)(0,d-v,l+r*u):l,i?o.scrollTop=(0,f.intBetween)(0,p-m,h+i*u):h)}e.frame=(0,s.default)(n)}else e.stopScrolling()}()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(s.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var t=this.props,n=(t.strengthMultiplier,t.verticalStrength,t.horizontalStrength,t.onScrollChange,v(t,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]));return r.default.createElement(e,p({ref:this.wrappedInstance},n))}}])&&m(i.prototype,u),c&&m(i,c),n}(r.Component);return _(t,"displayName","Scrolling(".concat((0,u.default)(e),")")),_(t,"propTypes",{dragDropManager:i.default.object.isRequired,onScrollChange:i.default.func,verticalStrength:i.default.func,horizontalStrength:i.default.func,strengthMultiplier:i.default.number}),_(t,"defaultProps",{onScrollChange:f.noop,verticalStrength:O,horizontalStrength:S,strengthMultiplier:30}),(0,l.default)(t,e)}t.defaultVerticalStrength=O},,,function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n-1}},function(e,t,n){var r=n(452),i=n(926);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(364),i=n(122);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t,n){var r=n(122),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(575),i=n(946),o=n(133);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(977),i=n(978),o=n(979);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_CONNECTION_HOLDER=t.ReadOnlyConnectionHolder=t.ConnectionHolder=void 0;var i=n(113),o=n(123),a=n(302),s=n(301),u=function(){function e(e){var t=void 0===e?{}:e,n=t.mode,r=void 0===n?a.ACCESS_MODE_WRITE:n,i=t.database,u=void 0===i?"":i,c=t.bookmark,l=t.connectionProvider;this._mode=r,this._database=u?o.assertString(u,"database"):"",this._bookmark=c||s.Bookmark.empty(),this._connectionProvider=l,this._referenceCount=0,this._connectionPromise=Promise.resolve()}return e.prototype.mode=function(){return this._mode},e.prototype.database=function(){return this._database},e.prototype.bookmark=function(){return this._bookmark},e.prototype.connectionProvider=function(){return this._connectionProvider},e.prototype.referenceCount=function(){return this._referenceCount},e.prototype.initializeConnection=function(){return 0===this._referenceCount&&this._connectionProvider?(this._connectionPromise=this._connectionProvider.acquireConnection({accessMode:this._mode,database:this._database,bookmarks:this._bookmark}),this._referenceCount++,!0):(this._referenceCount++,!1)},e.prototype.getConnection=function(){return this._connectionPromise},e.prototype.releaseConnection=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount--,0===this._referenceCount?this._releaseConnection():this._connectionPromise)},e.prototype.close=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount=0,this._releaseConnection())},e.prototype._releaseConnection=function(){return this._connectionPromise=this._connectionPromise.then((function(e){return e?e.resetAndFlush().catch(f).then((function(){return e._release()})):Promise.resolve()})).catch(f),this._connectionPromise},e}();t.ConnectionHolder=u;var c=function(e){function t(t){var n=e.call(this,{mode:t.mode(),database:t.database(),bookmark:t.bookmark(),connectionProvider:t.connectionProvider()})||this;return n._connectionHolder=t,n}return r(t,e),t.prototype.initializeConnection=function(){return 0!==this._connectionHolder.referenceCount()},t.prototype.getConnection=function(){return this._connectionHolder.getConnection()},t.prototype.releaseConnection=function(){return this._connectionHolder.getConnection().catch((function(){return Promise.resolve()}))},t.prototype.close=function(){return this._connectionHolder.getConnection().catch((function(){return Promise.resolve()}))},t}(u);t.ReadOnlyConnectionHolder=c,t.default=c;var l=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.mode=function(){},t.prototype.database=function(){},t.prototype.initializeConnection=function(){return!0},t.prototype.getConnection=function(){return Promise.reject(i.newError("This connection holder does not serve connections"))},t.prototype.releaseConnection=function(){return Promise.resolve()},t.prototype.close=function(){return Promise.resolve()},t}(u));function f(e){}t.EMPTY_CONNECTION_HOLDER=l},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var r=n(4),i=n(14),o=n(39),a=n(18),s=n(46);function u(e,t,n,r){return function(i){return i.lift(new c(e,t,n,r))}}var c=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.b(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(u){this.error(u)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,i);var o=new h(t,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new h(t,i))}catch(u){return void this.error(u)}this.add(a.subscribe(new f(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.a),f=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.b(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.a),h=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.b(t,e),t.prototype._subscribe=function(e){var t=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new d(n)),t.add(r.subscribe(e)),t},t}(a.a),d=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.b(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(o.a)},function(e,t,n){var r=n(656);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(1030),i=n(658);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},function(e,t,n){"use strict";t.factory=function(e,t,r,i){var o=r(n(135));return function e(t){for(var n,r=0,i=0;i15)throw new Error("Number of decimals in function round must be in te range of 0-15");return s(e,t)},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw new TypeError(a);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(a);var n=t.toNumber();return e.round(n)},"number, BigNumber":function(t,n){if(!n.isInteger())throw new TypeError(a);return new e.BigNumber(t).toDecimalPlaces(n.toNumber())},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(a);return e.toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw new TypeError(a);return e.round(t)},"Array | Matrix":function(e){return o(e,v,!0)},"SparseMatrix, number | BigNumber":function(e,t){return h(e,t,v,!1)},"DenseMatrix, number | BigNumber":function(e,t){return p(e,t,v,!1)},"number | Complex | BigNumber, SparseMatrix":function(e,t){return l(e,0)?f(t.size(),t.storage()):d(t,e,v,!0)},"number | Complex | BigNumber, DenseMatrix":function(e,t){return l(e,0)?f(t.size(),t.storage()):p(t,e,v,!0)},"Array, number | BigNumber":function(e,t){return p(c(e),t,v,!1).valueOf()},"number | Complex | BigNumber, Array":function(e,t){return p(c(t),e,v,!0).valueOf()}});return v.toTex={1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},v}},function(e,t,n){"use strict";t.name="ParenthesisNode",t.path="expression.node",t.factory=function(e,t,r,i){var o=r(n(93));function a(t){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if(!e.isNode(t))throw new TypeError('Node expected for parameter "content"');this.content=t}return a.prototype=new o,a.prototype.type="ParenthesisNode",a.prototype.isParenthesisNode=!0,a.prototype._compile=function(e,t){return this.content._compile(e,t)},a.prototype.getContent=function(){return this.content.getContent()},a.prototype.forEach=function(e){e(this.content,"content",this)},a.prototype.map=function(e){return new a(e(this.content,"content",this))},a.prototype.clone=function(){return new a(this.content)},a.prototype._toString=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)},a.prototype.toJSON=function(){return{mathjs:"ParenthesisNode",content:this.content}},a.fromJSON=function(e){return new a(e.content)},a.prototype.toHTML=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?'('+this.content.toHTML(e)+')':this.content.toHTML(e)},a.prototype._toTex=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)},a}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t'+a(this.fn)+'('+t.join(',')+')'};var b=m.prototype.toTex;return m.prototype.toTex=function(e){var t;return e&&"object"===r(e.handler)&&s(e.handler,this.name)&&(t=e.handler[this.name](this,e)),"undefined"!==typeof t?t:b.call(this,e)},m.prototype._toTex=function(e){var t,n,i=this.args.map((function(t){return t.toTex(e)}));switch(!d[this.name]||"function"!==typeof d[this.name].toTex&&"object"!==r(d[this.name].toTex)&&"string"!==typeof d[this.name].toTex||(t=d[this.name].toTex),r(t)){case"function":n=t(this,e);break;case"string":n=g(t,this,e);break;case"object":switch(r(t[i.length])){case"function":n=t[i.length](this,e);break;case"string":n=g(t[i.length],this,e)}}return"undefined"!==typeof n?n:g(o.defaultTemplate,this,e)},m.prototype.getIdentifier=function(){return this.type+":"+this.name},m}},function(e,t,n){"use strict";var r=n(164);t.name="inv",t.factory=function(e,t,i,o){var a=i(n(19)),s=i(n(86)),u=i(n(100)),c=i(n(75)),l=i(n(190)),f=i(n(690)),h=i(n(252)),d=i(n(125)),p=o("inv",{"Array | Matrix":function(t){var n=e.isMatrix(t)?t.size():r.array.size(t);switch(n.length){case 1:if(1===n[0])return e.isMatrix(t)?a([s(1,t.valueOf()[0])]):[s(1,t[0])];throw new RangeError("Matrix must be square (size: "+r.string.format(n)+")");case 2:var i=n[0],o=n[1];if(i===o)return e.isMatrix(t)?a(v(t.valueOf(),i,o),t.storage()):v(t,i,o);throw new RangeError("Matrix must be square (size: "+r.string.format(n)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+r.string.format(n)+")")}},any:function(e){return s(1,e)}});function v(e,t,n){var r,i,o,a,p;if(1===t){if(0===(a=e[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[s(1,a)]]}if(2===t){var v=f(e);if(0===v)throw Error("Cannot calculate inverse, determinant is zero");return[[s(e[1][1],v),s(l(e[0][1]),v)],[s(l(e[1][0]),v),s(e[0][0],v)]]}var m=e.concat();for(r=0;rb&&(b=d(m[r][g]),_=r),r++;if(0===b)throw Error("Cannot calculate inverse, determinant is zero");(r=_)!==g&&(p=m[g],m[g]=m[r],m[r]=p,p=y[g],y[g]=y[r],y[r]=p);var w=m[g],x=y[g];for(r=0;r0},BigNumber:function(e){return!e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s>0&&e.n>0},Unit:function(e){return o(e.value)},"Array | Matrix":function(e){return r(e,o)}});return o}},function(e,t,n){"use strict";var r=n(1126),i=n(83);t.name="algorithm06",t.factory=function(e,t,o,a){var s=o(n(78)),u=e.SparseMatrix;return function(e,t,n){var o=e._values,c=e._size,l=e._datatype,f=t._values,h=t._size,d=t._datatype;if(c.length!==h.length)throw new i(c.length,h.length);if(c[0]!==h[0]||c[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+h+")");var p,v=c[0],m=c[1],y=s,g=0,b=n;"string"===typeof l&&l===d&&(p=l,y=a.find(s,[p,p]),g=a.convert(0,p),b=a.find(n,[p,p]));for(var _=o&&f?[]:void 0,w=[],x=[],S=new u({values:_,index:w,ptr:x,size:[v,m],datatype:p}),O=_?[]:void 0,E=[],k=[],T=0;Te)throw new TypeError("k must be less than or equal to n");return t<(n=e-t)?i(n+1,e)/i(1,t):i(t+1,e)/i(1,n)},"BigNumber, BigNumber":function(t,n){var r,i,a,s,u=new e.BigNumber(1);if(!o(t)||!o(n))throw new TypeError("Positive integer value expected in function combinations");if(n.gt(t))throw new TypeError("k must be less than n in function combinations");for(r=t.minus(n),n.lt(r)&&(r=n),i=u,a=u,s=t.minus(r);a.lte(s);a=a.plus(1))i=i.times(r.plus(a)).dividedBy(a);return i}});return s.toTex={2:"\\binom{${args[0]}}{${args[1]}}"},s}},function(e,t,n){"use strict";t.name="range",t.factory=function(e,t,r,i){var o=r(n(19)),a=r(n(189)),s=r(n(166)),u=r(n(706)),c=r(n(495)),l=new e.BigNumber(0),f=new e.BigNumber(1),h=i("range",{string:p,"string, boolean":p,"number, number":function(e,t){return d(v(e,t,1))},"number, number, number":function(e,t,n){return d(v(e,t,n))},"number, number, boolean":function(e,t,n){return d(n?m(e,t,1):v(e,t,1))},"number, number, number, boolean":function(e,t,n,r){return d(r?m(e,t,n):v(e,t,n))},"BigNumber, BigNumber":function(e,t){return d(y(e,t,f))},"BigNumber, BigNumber, BigNumber":function(e,t,n){return d(y(e,t,n))},"BigNumber, BigNumber, boolean":function(e,t,n){return d(n?g(e,t,f):y(e,t,f))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,n,r){return d(r?g(e,t,n):y(e,t,n))}});return h.toTex=void 0,h;function d(e){return"Array"===t.matrix?e:o(e)}function p(n,r){var i=function(e){var t=e.split(":").map((function(e){return Number(e)}));if(t.some((function(e){return isNaN(e)})))return null;switch(t.length){case 2:return{start:t[0],end:t[1],step:1};case 3:return{start:t[0],end:t[2],step:t[1]};default:return null}}(n);if(!i)throw new SyntaxError('String "'+n+'" is no valid range');return"BigNumber"===t.number?d((r?g:y)(new e.BigNumber(i.start),new e.BigNumber(i.end),new e.BigNumber(i.step))):d((r?m:v)(i.start,i.end,i.step))}function v(e,t,n){var r=[],i=e;if(n>0)for(;a(i,t);)r.push(i),i+=n;else if(n<0)for(;s(i,t);)r.push(i),i+=n;return r}function m(e,t,n){var r=[],i=e;if(n>0)for(;u(i,t);)r.push(i),i+=n;else if(n<0)for(;c(i,t);)r.push(i),i+=n;return r}function y(e,t,n){var r=[],i=e;if(n.gt(l))for(;a(i,t);)r.push(i),i=i.plus(n);else if(n.lt(l))for(;s(i,t);)r.push(i),i=i.plus(n);return r}function g(e,t,n){var r=[],i=e;if(n.gt(l))for(;u(i,t);)r.push(i),i=i.plus(n);else if(n.lt(l))for(;c(i,t);)r.push(i),i=i.plus(n);return r}}},function(e,t,n){"use strict";var r=n(44).clone,i=n(27),o=n(250),a=n(83);function s(e,t,n,r){if(r0&&h>u)throw new o(h,u+1)}else{var m=r(v).valueOf(),y=i.size(m);if(p[n]=m,u=h,h=y.length-1,n>0&&h!==u)throw new a(u+1,h+1)}}if(0===p.length)throw new SyntaxError("At least one matrix expected");for(var g=p.shift();p.length;)g=s(g,p.shift(),h,0);return d?l(g):g},"...string":function(e){return e.join("")}});return h.toTex=void 0,h}},function(e,t,n){"use strict";var r=n(21);t.name="isNaN",t.factory=function(e,t,n,i){return i("isNaN",{number:function(e){return Number.isNaN(e)},BigNumber:function(e){return e.isNaN()},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":function(e){return r(e,Number.isNaN)}})}},function(e,t,n){"use strict";var r=n(27).size,i=n(304),o=n(250);function a(e,t,n){var r,i,o,s;if(t<=0){if(Array.isArray(e[0])){for(s=function(e){var t,n,r=e.length,i=e[0].length,o=[];for(n=0;n=s.length)throw new o(t,s.length);return i(e)?e.create(a(e.valueOf(),t,n)):a(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1e-6)if(Math.abs(f*u-c*l)>1e-6&&o){var d=n-a,p=i-s,v=u*u+c*c,m=d*d+p*p,y=Math.sqrt(v),g=Math.sqrt(h),b=o*Math.tan((r-Math.acos((v+h-m)/(2*y*g)))/2),_=b/g,w=b/y;Math.abs(_-1)>1e-6&&(this._+="L"+(e+_*l)+","+(t+_*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>l*p)+","+(this._x1=e+w*u)+","+(this._y1=t+w*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,a,s,u){e=+e,t=+t,u=!!u;var c=(n=+n)*Math.cos(a),l=n*Math.sin(a),f=e+c,h=t+l,d=1^u,p=u?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(e-c)+","+(t-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=h):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=s,c=function(e){return function(){return e}},l=Math.abs,f=Math.atan2,h=Math.cos,d=Math.max,p=Math.min,v=Math.sin,m=Math.sqrt,y=Math.PI,g=y/2,b=2*y;function _(e){return e>1?0:e<-1?y:Math.acos(e)}function w(e){return e>=1?g:e<=-1?-g:Math.asin(e)}function x(e){return e.innerRadius}function S(e){return e.outerRadius}function O(e){return e.startAngle}function E(e){return e.endAngle}function k(e){return e&&e.padAngle}function T(e,t,n,r,i,o,a,s){var u=n-e,c=r-t,l=a-i,f=s-o,h=f*u-l*c;if(!(h*h<1e-12))return[e+(h=(l*(t-o)-f*(e-i))/h)*u,t+h*c]}function M(e,t,n,r,i,o,a){var s=e-n,u=t-r,c=(a?o:-o)/m(s*s+u*u),l=c*u,f=-c*s,h=e+l,p=t+f,v=n+l,y=r+f,g=(h+v)/2,b=(p+y)/2,_=v-h,w=y-p,x=_*_+w*w,S=i-o,O=h*y-v*p,E=(w<0?-1:1)*m(d(0,S*S*x-O*O)),k=(O*w-_*E)/x,T=(-O*_-w*E)/x,M=(O*w+_*E)/x,C=(-O*_+w*E)/x,N=k-g,P=T-b,j=M-g,A=C-b;return N*N+P*P>j*j+A*A&&(k=M,T=C),{cx:k,cy:T,x01:-l,y01:-f,x11:k*(i/S-1),y11:T*(i/S-1)}}var C=function(){var e=x,t=S,n=c(0),r=null,i=O,o=E,a=k,s=null;function d(){var c,d,x=+e.apply(this,arguments),S=+t.apply(this,arguments),O=i.apply(this,arguments)-g,E=o.apply(this,arguments)-g,k=l(E-O),C=E>O;if(s||(s=c=u()),S1e-12)if(k>b-1e-12)s.moveTo(S*h(O),S*v(O)),s.arc(0,0,S,O,E,!C),x>1e-12&&(s.moveTo(x*h(E),x*v(E)),s.arc(0,0,x,E,O,C));else{var N,P,j=O,A=E,I=O,D=E,R=k,z=k,L=a.apply(this,arguments)/2,F=L>1e-12&&(r?+r.apply(this,arguments):m(x*x+S*S)),U=p(l(S-x)/2,+n.apply(this,arguments)),B=U,H=U;if(F>1e-12){var W=w(F/x*v(L)),q=w(F/S*v(L));(R-=2*W)>1e-12?(I+=W*=C?1:-1,D-=W):(R=0,I=D=(O+E)/2),(z-=2*q)>1e-12?(j+=q*=C?1:-1,A-=q):(z=0,j=A=(O+E)/2)}var Y=S*h(j),V=S*v(j),G=x*h(D),$=x*v(D);if(U>1e-12){var K,Z=S*h(A),X=S*v(A),J=x*h(I),Q=x*v(I);if(k1e-12?H>1e-12?(N=M(J,Q,Y,V,S,H,C),P=M(Z,X,G,$,S,H,C),s.moveTo(N.cx+N.x01,N.cy+N.y01),H1e-12&&R>1e-12?B>1e-12?(N=M(G,$,Z,X,x,-B,C),P=M(Y,V,J,Q,x,-B,C),s.lineTo(N.cx+N.x01,N.cy+N.y01),B=f;--h)s.point(y[h],g[h]);s.lineEnd(),s.areaEnd()}m&&(y[l]=+e(d,l,c),g[l]=+n(d,l,c),s.point(t?+t(d,l,c):y[l],r?+r(d,l,c):g[l]))}if(p)return s=null,p+""||null}function f(){return I().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"===typeof n?n:c(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:c(+e),l):t},l.y=function(e){return arguments.length?(n="function"===typeof e?e:c(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"===typeof e?e:c(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:c(+e),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(n)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"===typeof e?e:c(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l},R=function(e,t){return te?1:t>=e?0:NaN},z=function(e){return e},L=function(){var e=z,t=R,n=null,r=c(0),i=c(b),o=c(0);function a(a){var s,u,c,l,f,h=a.length,d=0,p=new Array(h),v=new Array(h),m=+r.apply(this,arguments),y=Math.min(b,Math.max(-b,i.apply(this,arguments)-m)),g=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=g*(y<0?-1:1);for(s=0;s0&&(d+=f);for(null!=t?p.sort((function(e,n){return t(v[e],v[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,c=d?(y-h*_)/d:0;s0?f*c:0)+_,v[u]={data:a[u],index:s,value:f,startAngle:m,endAngle:l,padAngle:g};return v}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:c(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:c(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:c(+e),a):o},a},F=B(P);function U(e){this._curve=e}function B(e){function t(t){return new U(e(t))}return t._curve=e,t}function H(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e}U.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var W=function(){return H(I().curve(F))},q=function(){var e=D().curve(F),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return H(n())},delete e.lineX0,e.lineEndAngle=function(){return H(r())},delete e.lineX1,e.lineInnerRadius=function(){return H(i())},delete e.lineY0,e.lineOuterRadius=function(){return H(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e},Y=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},V=Array.prototype.slice;function G(e){return e.source}function $(e){return e.target}function K(e){var t=G,n=$,r=j,i=A,o=null;function a(){var a,s=V.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=u()),e(o,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:c(+e),a):r},a.y=function(e){return arguments.length?(i="function"===typeof e?e:c(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function Z(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function X(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function J(e,t,n,r,i){var o=Y(t,n),a=Y(t,n=(n+i)/2),s=Y(r,n),u=Y(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function Q(){return K(Z)}function ee(){return K(X)}function te(){var e=K(J);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var ne={draw:function(e,t){var n=Math.sqrt(t/y);e.moveTo(n,0),e.arc(0,0,n,0,b)}},re={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ie=Math.sqrt(1/3),oe=2*ie,ae={draw:function(e,t){var n=Math.sqrt(t/oe),r=n*ie;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},se=Math.sin(y/10)/Math.sin(7*y/10),ue=Math.sin(b/10)*se,ce=-Math.cos(b/10)*se,le={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ue*n,i=ce*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=b*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},fe={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},he=Math.sqrt(3),de={draw:function(e,t){var n=-Math.sqrt(t/(3*he));e.moveTo(0,2*n),e.lineTo(-he*n,-n),e.lineTo(he*n,-n),e.closePath()}},pe=Math.sqrt(3)/2,ve=1/Math.sqrt(12),me=3*(ve/2+1),ye={draw:function(e,t){var n=Math.sqrt(t/me),r=n/2,i=n*ve,o=r,a=n*ve+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-pe*i,pe*r+-.5*i),e.lineTo(-.5*o-pe*a,pe*o+-.5*a),e.lineTo(-.5*s-pe*u,pe*s+-.5*u),e.lineTo(-.5*r+pe*i,-.5*i-pe*r),e.lineTo(-.5*o+pe*a,-.5*a-pe*o),e.lineTo(-.5*s+pe*u,-.5*u-pe*s),e.closePath()}},ge=[ne,re,ae,fe,le,de,ye],be=function(){var e=c(ne),t=c(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:c(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},_e=function(){};function we(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function xe(e){this._context=e}xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:we(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Se=function(e){return new xe(e)};function Oe(e){this._context=e}Oe.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ee=function(e){return new Oe(e)};function ke(e){this._context=e}ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:we(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Te=function(e){return new ke(e)};function Me(e,t){this._basis=new xe(e),this._beta=t}Me.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ce=function e(t){function n(e){return 1===t?new xe(e):new Me(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Ne(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Pe(e,t){this._context=e,this._k=(1-t)/6}Pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ne(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var je=function e(t){function n(e){return new Pe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ae(e,t){this._context=e,this._k=(1-t)/6}Ae.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=function e(t){function n(e){return new Ae(e,t)}return n.tension=function(t){return e(+t)},n}(0);function De(e,t){this._context=e,this._k=(1-t)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Re=function e(t){function n(e){return new De(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ze(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Le(e,t){this._context=e,this._alpha=t}Le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ze(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return t?new Le(e,t):new Pe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ue(e,t){this._context=e,this._alpha=t}Ue.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ze(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=function e(t){function n(e){return t?new Ue(e,t):new Ae(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function He(e,t){this._context=e,this._alpha=t}He.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ze(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var We=function e(t){function n(e){return t?new He(e,t):new De(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function qe(e){this._context=e}qe.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Ye=function(e){return new qe(e)};function Ve(e){return e<0?-1:1}function Ge(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Ve(o)+Ve(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function $e(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ke(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ze(e){this._context=e}function Xe(e){this._context=new Je(e)}function Je(e){this._context=e}function Qe(e){return new Ze(e)}function et(e){return new Xe(e)}function tt(e){this._context=e}function nt(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var ot=function(e){return new it(e,.5)};function at(e){return new it(e,0)}function st(e){return new it(e,1)}var ut=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n};function lt(e,t){return e[t]}var ft=function(){var e=c([]),t=ct,n=ut,r=lt;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o0){for(var n,r,i,o=0,a=e[0].length;o0)for(var n,r,i,o,a,s,u=0,c=e[t[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},pt=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=t,r=n);return r}var gt=function(e){var t=e.map(bt);return ct(e).sort((function(e,n){return t[e]-t[n]}))};function bt(e){for(var t,n=0,r=-1,i=e.length;++r0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(v.a),y=n(153),g=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p.b(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(v.a),x=n(330),S=n(39),O=n(14),E=n(110),k=n(233),T=n(119),M=n(104);function C(e){return!!e&&(e instanceof r.a||"function"===typeof e.lift&&"function"===typeof e.subscribe)}var N=n(139),P=n(150),j=n(131),A=n(237),I=n(407),D=n(68),R=n(283),z=n(52),L=n(70);function F(e,t,n){if(t){if(!Object(L.a)(t))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}function ne(e,t,n){return n?ne(e,t).pipe(Object(D.a)((function(e){return Object(z.a)(e)?n.apply(void 0,e):n(e)}))):new r.a((function(n){var r,i=function(){for(var e=[],t=0;t=t){r.complete();break}if(r.next(o++),r.closed)break}}))}function xe(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Se=n(268),Oe=n(411);function Ee(e,t){return new r.a((function(n){var r,i;try{r=e()}catch(a){return void n.error(a)}try{i=t(r)}catch(a){return void n.error(a)}var o=(i?Object(X.a)(i):K.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var ke=n(272),Te=n(419),Me=n(98)},function(e,t,n){var r=n(920),i=n(594);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(4),i=n(46),o=n(18),a=n(14),s=n(39),u=n(266),c=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.b(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e},t.prototype.refCount=function(){return Object(u.a)()(this)},t}(o.a),l=function(){var e=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.b(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.b);a.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(46),o=n(131),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.b(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(4),i=n(14),o=n(110);function a(e,t){return void 0===t&&(t=0),function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},e}(),u=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.b(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new c(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(i.a),c=function(){return function(e,t){this.notification=e,this.destination=t}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(270);function i(){return Object(r.a)(1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(18),i=n(70),o=n(270),a=n(152);function s(){for(var e=[],t=0;t1&&"number"===typeof e[e.length-1]&&(n=e.pop())):"number"===typeof u&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(a.a)(e,s))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),i=n(52),o=n(152),a=n(108),s=n(96);function u(){for(var e=[],t=0;t=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Se,S:K,u:Z,U:X,V:J,w:Q,W:ee,x:null,X:null,y:te,Y:ne,Z:re,"%":we},Ae={a:function(e){return p[e.getUTCDay()]},A:function(e){return h[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return v[e.getUTCMonth()]},c:null,d:ie,e:ie,f:ce,H:oe,I:ae,j:se,L:ue,m:le,M:fe,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xe,s:Se,S:he,u:de,U:pe,V:ve,w:me,W:ye,x:null,X:null,y:ge,Y:be,Z:_e,"%":we},Ie={a:function(e,t,n){var r=ke.exec(t.slice(n));return r?(e.w=Te[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.w=Ee[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Ne.exec(t.slice(n));return r?(e.m=Pe[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Me.exec(t.slice(n));return r?(e.m=Ce[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return ze(e,t,n,r)},d:P,e:P,f:z,H:A,I:A,j:j,L:R,m:N,M:I,p:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.p=g[r[0].toLowerCase()],n+r[0].length):-1},q:C,Q:F,s:U,S:D,u:x,U:S,V:O,w:w,W:E,x:function(e,t,r){return ze(e,n,t,r)},X:function(e,t,n){return ze(e,s,t,n)},y:T,Y:k,Z:M,"%":L};function De(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in h||(h.w=1),"Z"in h?(u=(s=l(f(h.y,0,1))).getUTCDay(),s=u>4||0===u?r.c.ceil(s):Object(r.c)(s),s=i.a.offset(s,7*(h.V-1)),h.y=s.getUTCFullYear(),h.m=s.getUTCMonth(),h.d=s.getUTCDate()+(h.w+6)%7):(u=(s=c(f(h.y,0,1))).getDay(),s=u>4||0===u?o.c.ceil(s):Object(o.c)(s),s=a.b.offset(s,7*(h.V-1)),h.y=s.getFullYear(),h.m=s.getMonth(),h.d=s.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),u="Z"in h?l(f(h.y,0,1)).getUTCDay():c(f(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(u+5)%7:h.w+7*h.U-(u+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,l(h)):c(h)}}function ze(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=Ie[i in d?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return je.x=De(n,je),je.X=De(s,je),je.c=De(t,je),Ae.x=De(n,Ae),Ae.X=De(s,Ae),Ae.c=De(t,Ae),{format:function(e){var t=De(e+="",je);return t.toString=function(){return e},t},parse:function(e){var t=Re(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=De(e+="",Ae);return t.toString=function(){return e},t},utcParse:function(e){var t=Re(e+="",!0);return t.toString=function(){return e},t}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,v=/^%/,m=/[\\^$*+?|[\]().{}]/g;function y(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function M(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function C(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function N(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function P(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function j(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function A(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function I(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function D(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=p.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function F(e,t,n){var r=p.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function U(e,t,n){var r=p.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B(e,t){return y(e.getDate(),t,2)}function H(e,t){return y(e.getHours(),t,2)}function W(e,t){return y(e.getHours()%12||12,t,2)}function q(e,t){return y(1+a.b.count(Object(s.a)(e),e),t,3)}function Y(e,t){return y(e.getMilliseconds(),t,3)}function V(e,t){return Y(e,t)+"000"}function G(e,t){return y(e.getMonth()+1,t,2)}function $(e,t){return y(e.getMinutes(),t,2)}function K(e,t){return y(e.getSeconds(),t,2)}function Z(e){var t=e.getDay();return 0===t?7:t}function X(e,t){return y(o.g.count(Object(s.a)(e)-1,e),t,2)}function J(e,t){var n=e.getDay();return e=n>=4||0===n?Object(o.i)(e):o.i.ceil(e),y(o.i.count(Object(s.a)(e),e)+(4===Object(s.a)(e).getDay()),t,2)}function Q(e){return e.getDay()}function ee(e,t){return y(o.c.count(Object(s.a)(e)-1,e),t,2)}function te(e,t){return y(e.getFullYear()%100,t,2)}function ne(e,t){return y(e.getFullYear()%1e4,t,4)}function re(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+y(t/60|0,"0",2)+y(t%60,"0",2)}function ie(e,t){return y(e.getUTCDate(),t,2)}function oe(e,t){return y(e.getUTCHours(),t,2)}function ae(e,t){return y(e.getUTCHours()%12||12,t,2)}function se(e,t){return y(1+i.a.count(Object(u.a)(e),e),t,3)}function ue(e,t){return y(e.getUTCMilliseconds(),t,3)}function ce(e,t){return ue(e,t)+"000"}function le(e,t){return y(e.getUTCMonth()+1,t,2)}function fe(e,t){return y(e.getUTCMinutes(),t,2)}function he(e,t){return y(e.getUTCSeconds(),t,2)}function de(e){var t=e.getUTCDay();return 0===t?7:t}function pe(e,t){return y(r.g.count(Object(u.a)(e)-1,e),t,2)}function ve(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(r.i)(e):r.i.ceil(e),y(r.i.count(Object(u.a)(e),e)+(4===Object(u.a)(e).getUTCDay()),t,2)}function me(e){return e.getUTCDay()}function ye(e,t){return y(r.c.count(Object(u.a)(e)-1,e),t,2)}function ge(e,t){return y(e.getUTCFullYear()%100,t,2)}function be(e,t){return y(e.getUTCFullYear()%1e4,t,4)}function _e(){return"+0000"}function we(){return"%"}function xe(e){return+e}function Se(e){return Math.floor(+e/1e3)}},function(e,t,n){"use strict";t.a=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(276);function i(e){return function(){this.style.removeProperty(e)}}function o(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function s(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?i:"function"===typeof t?a:o)(e,t,null==n?"":n)):s(this.node(),e)}},function(e,t,n){"use strict";var r=n(158);t.a=function(e){return"string"===typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";var r=n(0),i=function(e,t){return e&&!!e.current&&!!e.current[t]};t.a=function(e){var t=e.capture,n=e.listener,o=e.type,a=e.targetRef,s=r.useRef(n);s.current=n;var u=r.useCallback((function(e){return s.current(e)}),[]);r.useEffect((function(){return i(a,"addEventListener")&&a.current.addEventListener(o,u,t),function(){i(a,"removeEventListener")&&a.current.removeEventListener(o,u,t)}}),[t,a,o])}},function(e,t,n){"use strict";var r,i=n(157),o=n(273),a=n(238),s=function(e,t){var n=Object(a.a)(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},u={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var n=Object(a.a)(e,t);if(!n)return e+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Object(a.a)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},c=function(e){return e},l=Array.prototype.map,f=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=l.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(l.call(e.numerals,String)),v=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function g(e){var t=(e=Object(o.b)(e)).fill,n=e.align,i=e.sign,c=e.symbol,l=e.zero,g=e.width,b=e.comma,_=e.precision,w=e.trim,x=e.type;"n"===x?(b=!0,x="g"):u[x]||(void 0===_&&(_=12),w=!0,x="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var S="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O="$"===c?h:/[%p]/.test(x)?v:"",E=u[x],k=/[defgprs%]/.test(x);function T(e){var o,s,u,c=S,h=O;if("c"===x)h=E(e)+h,e="";else{var v=(e=+e)<0;if(e=isNaN(e)?y:E(Math.abs(e),_),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0===+e&&(v=!1),c=(v?"("===i?i:m:"-"===i||"("===i?"":i)+c,h=("s"===x?f[8+r/3]:"")+h+(v&&"("===i?")":""),k)for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){h=(46===u?d+e.slice(o+1):e.slice(o))+h,e=e.slice(0,o);break}}b&&!l&&(e=a(e,1/0));var T=c.length+e.length+h.length,M=T>1)+c+e+h+M.slice(T);break;default:e=M+c+e+h}return p(e)}return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),T.toString=function(){return e+""},T}return{format:g,formatPrefix:function(e,t){var n=g(((e=Object(o.b)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(t)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(e){return n(a*e)+s}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(18),i=n(39),o=n(129);var a=n(284),s=n(118);var u=n(425),c=n(424);function l(e,t){if(null!=e){if(function(e){return e&&"function"===typeof e[o.a]}(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){var i=e[o.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(u.a)(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(c.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"===typeof e[s.a]}(e)||"string"===typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"===typeof r.return&&r.return()})),o.add(t.schedule((function(){r=e[s.a](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},function(e,t,n){var r=n(862)(n(551));e.exports=r},function(e,t,n){var r=n(983),i=n(161),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),i=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.b(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n(39).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){for(var n=0,r=e.length;n=0||(i[n]=e[n]);return i}n=n&&n.hasOwnProperty("default")?n.default:n;var a=function(e,t,n,r,i){var o=i-r;if(0===o)return[];var a=n*Math.cos(r)+e,s=n*Math.sin(r)+t,u=n*Math.cos(i)+e,c=n*Math.sin(i)+t;return[["M",a,s],["A",n,n,0,Math.abs(o)<=Math.PI?"0":"1",o<0?"0":"1",u,c]]},s=Math.PI;function u(e){return e*s/180}function c(e){var t=void 0===e?{}:e,n=t.labelPosition,r=t.lineWidth,i=t.labelHorizontalShift;return 0===i?"middle":n>100?i>0?"start":"end":n<100-r?i>0?"end":"start":"middle"}function l(e,t,n){return e>n?n:e1?"0 0 "+t+" "+t/e:"0 0 "+t*e+" "+t),width:"100%",height:"100%",style:{display:"block"}},y(n,this.props,this.hideSegments),this.props.label&&m(n,this.props),this.props.injectSvg&&this.props.injectSvg()),this.props.children)},o}(t.Component);g.displayName="ReactMinimalPieChart",g.propTypes={data:p,cx:n.number,cy:n.number,ratio:n.number,totalValue:n.number,className:n.string,style:d,segmentsStyle:d,background:n.string,startAngle:n.number,lengthAngle:n.number,paddingAngle:n.number,lineWidth:n.number,radius:n.number,rounded:n.bool,animate:n.bool,animationDuration:n.number,animationEasing:n.string,reveal:n.number,children:n.node,injectSvg:n.func,label:n.oneOfType([n.func,n.element,n.bool]),labelPosition:n.number,labelStyle:d,onMouseOver:n.func,onMouseOut:n.func,onClick:n.func},g.defaultProps={cx:50,cy:50,ratio:1,startAngle:0,lengthAngle:360,paddingAngle:0,lineWidth:100,radius:50,rounded:!1,animate:!1,animationDuration:500,animationEasing:"ease-out",label:!1,labelPosition:50,onMouseOver:void 0,onMouseOut:void 0,onClick:void 0},e.default=g,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(0),n(1))},function(e,t,n){e.exports={default:n(1610),__esModule:!0}},function(e,t,n){"use strict";(function(e){function r(t,n){var r,i="undefined"!==typeof(r="undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:e).document&&r.document.attachEvent;if(!i){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,l="",f="animationstart",h="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=r.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(c=!0),!1===c)for(var v=0;v div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],i=e.createElement("style");i.id="detectElementResize",i.type="text/css",null!=t&&i.setAttribute("nonce",t),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(e.createTextNode(n)),r.appendChild(i)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",u,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==m&&s(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(77))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(17),i=n.n(r);function o(e,t){for(var n=0;n=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function u(e,t){for(var n,r=0,i=e.length;r0)for(var n,r,i=new Array(n),o=0;o=0&&t._call.call(null,e),t=t._next;--d}()}finally{d=0,function(){var e,t,n=l,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:l=t);f=e,T(r)}(),y=0}}function k(){var e=b.now(),t=e-m;t>1e3&&(g-=t,m=e)}function T(e){d||(p&&(p=clearTimeout(p)),e-y>24?(e<1/0&&(p=setTimeout(E,e-b.now()-g)),v&&(v=clearInterval(v))):(v||(m=b.now(),v=setInterval(k,1e3)),d=1,_(E)))}S.prototype=O.prototype={constructor:S,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||f===this||(f?f._next=this:l=this,f=this),this._call=e,this._time=n,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};var M=function(e,t,n){var r=new S;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},C=h("start","end","cancel","interrupt"),N=[],P=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var c,l,f,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return M(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function A(e,t){var n=I(e,t);if(n.state>3)throw new Error("too late; already running");return n}function I(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var D,R,z,L,F=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}},U=n(132),B=180/Math.PI,H={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},W=function(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(U.a)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(U.a)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Object(U.a)(e,n)},{i:s-2,x:Object(U.a)(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?j:A;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var ge=n(275),be=n(414),_e=r.b.prototype.constructor,we=n(415);function xe(e){return function(){this.style.removeProperty(e)}}function Se(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Oe(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Se(e,o,n)),r}return o._value=t,o}function Ee(e){return function(t){this.textContent=e.call(this,t)}}function ke(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ee(r)),t}return r._value=e,r}var Te=0;function Me(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ce(e){return Object(r.b)().transition(e)}function Ne(){return++Te}var Pe=r.b.prototype;Me.prototype=Ce.prototype={constructor:Me,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Object(ge.a)(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===t)return new Me([[e]],Ie,t,+r);return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(427);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=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(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(6),i=n.n(r),o=n(20),a=n.n(o),s=n(22),u=n.n(s),c=n(25),l=n.n(c),f=n(23),h=n.n(f),d=n(5),p=n.n(d),v=n(26),m=n.n(v),y=n(3),g=n.n(y),b=n(111),_=n.n(b),w=n(13),x=n.n(w),S=n(7),O=n.n(S),E=(n(1),n(0)),k=n.n(E),T=n(37),M=n(206),C=n(286),N=n(10),P=n(334),j=n(205),A=n(820);function I(e){var t=e.children,n=e.className,r=e.content,o=O()("detail",n),a=Object(M.a)(I,e),s=Object(C.a)(I,e);return k.a.createElement(s,i()({},a,{className:o}),N.a.isNil(t)?r:t)}I.handledProps=["as","children","className","content"],I.propTypes={},I.create=Object(P.f)(I,(function(e){return{content:e}}));var D=I;function R(e){var t=e.children,n=e.circular,r=e.className,o=e.color,a=e.content,s=e.size,u=e.tag,c=O()("ui",o,s,Object(T.a)(n,"circular"),Object(T.a)(u,"tag"),"labels",r),l=Object(M.a)(R,e),f=Object(C.a)(R,e);return k.a.createElement(f,i()({},l,{className:c}),N.a.isNil(t)?a:t)}R.handledProps=["as","children","circular","className","color","content","size","tag"],R.propTypes={};var z=R,L=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o or
. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(r.cloneElement)(e,{ref:function(e){a(n,e),a(t,e)}}):Object(r.cloneElement)(e,{ref:t})}function u(e){if("string"!==typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
, or turn it into a ")+"drag source or a drop target itself.")}}function c(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(r.isValidElement)(t)){var i=t;return e(i,n),i}var o=t;u(o);var a=n?function(t){return e(t,n)}:e;return s(o,a)}}(i);t[n]=function(){return o}}})),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(4),i=n(338),o=n(72),a=n(63),s=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,a){var s=this;return void 0===a&&(a=0),new i.a((function(i,u){var c=e[a];if(null===t||"function"!==typeof c)i(t);else{var l=c(r.a({},t),n);Object(o.m)(l)?l.then((function(t){return s._notifyEventProcessors(e,t,n,a+1).then(i)})).then(null,u):s._notifyEventProcessors(e,l,n,a+1).then(i).then(null,u)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=r.a({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=r.a({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=r.a({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=r.a({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=r.a({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=r.d(t._breadcrumbs),n._tags=r.a({},t._tags),n._extra=r.a({},t._extra),n._context=r.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=r.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=r.a({timestamp:Object(a.l)()},e);return this._breadcrumbs=void 0!==t&&t>=0?r.d(this._breadcrumbs,[n]).slice(-t):r.d(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=r.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=r.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=r.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=r.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=r.a({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=r.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(r.d(u(),this._eventProcessors),e,t)},e}();function u(){var e=Object(a.f)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function c(e){u().push(e)}},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(34),a=n.n(o),s=n(20),u=n.n(s),c=n(22),l=n.n(c),f=n(25),h=n.n(f),d=n(23),p=n.n(d),v=n(5),m=n.n(v),y=n(26),g=n.n(y),b=n(3),_=n.n(b),w=n(280),x=n.n(w),S=n(97),O=n.n(S),E=n(281),k=n.n(E),T=n(202),M=n.n(T),C=n(13),N=n.n(C),P=n(823),j=n(7),A=n.n(j),I=(n(1),n(0)),D=n.n(I),R=n(71),z=n.n(R),L=n(596),F=n(601),U=n(607),B=n(37),H=n(286),W=n(10),q=n(206),Y=n(552),V=n(205),G=n(30),$=n.n(G),K=n(1670),Z=n(1671),X=function(e){var t=e.node;if(Object(L.a)())return Object(K.a)(t)?t:$()(t)?Object(Z.a)(document.body):Object(Z.a)(t)},J=n(175),Q=n.n(J),ee=n(277),te=n.n(ee),ne=n(783),re=n.n(ne),ie=n(784),oe=n.n(ie),ae=n(785),se=n.n(ae),ue=n(786),ce=n.n(ue),le=n(787),fe=n.n(le),he=n(788),de=n.n(he),pe=n(789),ve=n.n(pe),me=n(790),ye=n.n(me)()(ve.a,de()("props.className"),fe()(ce()(/\s+/)),se()(oe.a),re.a),ge=n(287),be=n.n(ge),_e=function(e,t){return[be()(t,e),be()(e,t)]},we=new Map,xe=function(e,t){var n=ye(t),r=_e(we.get(e),n),i=Q()(r,2),o=i[0],a=i[1];e.current&&(te()(o,(function(t){return e.current.classList.add(t)})),te()(a,(function(t){return e.current.classList.remove(t)}))),we.set(e,n)},Se=new function e(){var t=this;u()(this,e),_()(this,"add",(function(e,n){t.nodes.has(e)?t.nodes.get(e).add(n):t.nodes.set(e,new Set([n]))})),_()(this,"del",(function(e,n){if(t.nodes.has(e)){var r=t.nodes.get(e);1!==r.size?r.delete(n):t.nodes.delete(e)}})),_()(this,"emit",(function(e,n){n(e,t.nodes.get(e))})),this.nodes=new Map},Oe=function(e){function t(){return u()(this,t),h()(this,p()(t).apply(this,arguments))}return g()(t,e),l()(t,[{key:"shouldComponentUpdate",value:function(e){return e.className!==this.props.className}},{key:"componentDidMount",value:function(){var e=X(this.props);Se.add(e,this),Se.emit(e,xe)}},{key:"componentDidUpdate",value:function(){Se.emit(X(this.props),xe)}},{key:"componentWillUnmount",value:function(){var e=X(this.props);Se.del(e,this),Se.emit(e,xe)}},{key:"render",value:function(){return null}}]),t}(I.Component);_()(Oe,"handledProps",["className","node"]),Oe.propTypes={};var Ee=n(1685),ke=n(334);function Te(e){var t=e.children,n=e.className,r=e.content,o=A()(n,"header"),a=Object(q.a)(Te,e),s=Object(H.a)(Te,e);return D.a.createElement(s,i()({},a,{className:o}),W.a.isNil(t)?r:t)}Te.handledProps=["as","children","className","content"],Te.propTypes={},Te.create=Object(ke.f)(Te,(function(e){return{content:e}}));var Me=Te;function Ce(e){var t=e.children,n=e.className,r=e.content,o=e.image,a=e.scrolling,s=A()(n,Object(B.a)(o,"image"),Object(B.a)(a,"scrolling"),"content"),u=Object(q.a)(Ce,e),c=Object(H.a)(Ce,e);return D.a.createElement(c,i()({},u,{className:s}),W.a.isNil(t)?r:t)}Ce.handledProps=["as","children","className","content","image","scrolling"],Ce.propTypes={},Ce.create=Object(ke.f)(Ce,(function(e){return{content:e}}));var Ne=Ce,Pe=n(69),je=n.n(Pe),Ae=n(824),Ie=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(215)(n(99),"Map");e.exports=r},function(e,t,n){var r=n(879),i=n(886),o=n(888),a=n(889),s=n(890);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.re?1:e.ret.im?1:e.im");if(2!==u.length)throw SyntaxError("Could not parse rule: "+i);i={l:u[0],r:u[1]};case"object":if(o={l:E(s(i.l)),r:E(s(i.r))},i.context&&(o.evaluate=i.context),i.evaluate&&(o.evaluate=s(i.evaluate)),b(o.l)){var c=S(o.l),l=new d("_p"+T++);o.expanded={},o.expanded.l=c([o.l.clone(),l]),_(o.expanded.l),w(o.expanded.l),o.expanded.r=c([o.r,l])}break;case"function":o=i;break;default:throw TypeError("Unsupported type of rule: "+a)}t.push(o)}return t}(t);for(var o=m(e,n),a={},u=(o=E(o)).toString({parenthesis:"all"});!a[u];){a[u]=!0,T=0;for(var c=0;c=2&&2===t.args.length){for(var o=function(e,t){var n,r,i=[],o=S(e);if(g(e,t))for(var a=0;a2)throw Error("Unexpected non-binary associative function: "+t.toString());return[]}for(var v=[],m=0;m0)for(t=0;t0&&e.forEach(0,n-1,(function(t,n){v._forEachRow(t,g,b,_,(function(r,i){r>t&&e.accumulate(r,p(l(i,n)))}))}));var M=n,C=e.get(n),N=s(C);e.forEach(n+1,i-1,(function(e,t){var n=s(t);h(n,N)&&(M=e,N=n,C=t)})),n!==M&&(v._swapRows(n,M,w[1],g,b,_),v._swapRows(n,M,E[1],x,S,O),e.swap(n,M),function(e,t){var n=T[e],r=T[t];k[n]=t,k[r]=e,T[e]=r,T[t]=n}(n,M)),e.forEach(0,i-1,(function(e,t){e<=n?(x.push(t),S.push(e)):(t=c(t,C),d(t,0)||(g.push(t),b.push(e)))}))};for(n=0;n=t},"number, number":function(e,n){return e>=n||r(e,n,t.epsilon)},"BigNumber, BigNumber":function(e,n){return e.gte(n)||i(e,n,t.epsilon)},"Fraction, Fraction":function(e,t){return-1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return p(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return c(e,t,p)},"SparseMatrix, DenseMatrix":function(e,t){return u(t,e,p,!0)},"DenseMatrix, SparseMatrix":function(e,t){return u(e,t,p,!1)},"DenseMatrix, DenseMatrix":function(e,t){return f(e,t,p)},"Array, Array":function(e,t){return p(s(e),s(t)).valueOf()},"Array, Matrix":function(e,t){return p(s(e),t)},"Matrix, Array":function(e,t){return p(e,s(t))},"SparseMatrix, any":function(e,t){return l(e,t,p,!1)},"DenseMatrix, any":function(e,t){return h(e,t,p,!1)},"any, SparseMatrix":function(e,t){return l(t,e,p,!0)},"any, DenseMatrix":function(e,t){return h(t,e,p,!0)},"Array, any":function(e,t){return h(s(e),t,p,!1).valueOf()},"any, Array":function(e,t){return h(s(t),e,p,!0).valueOf()}});return p.toTex={2:"\\left(${args[0]}".concat(d.operators.largerEq,"${args[1]}\\right)")},p}},function(e,t,n){"use strict";var r=n(164),i=r.string,o=r.array,a=Array.isArray;t.factory=function(e){var t=e.DenseMatrix;return function(n,r,s){var u=n.size();if(2!==u.length)throw new RangeError("Matrix must be two dimensional (size: "+i.format(u)+")");var c,l,f,h=u[0];if(h!==u[1])throw new RangeError("Matrix must be square (size: "+i.format(u)+")");if(e.isMatrix(r)){var d=r.size();if(1===d.length){if(d[0]!==h)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(c=[],f=r._data,l=0;l=0||t.predictable?Math.log(n):new e.Complex(n,0).log()},Complex:function(e){return e.log()},BigNumber:function(n){return!n.isNegative()||t.predictable?n.ln():new e.Complex(n.toNumber(),0).log()},"Array | Matrix":function(e){return r(e,s)},"any, any":function(e,t){return a(s(e),s(t))}});return s.toTex={1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},s}},function(e,t,n){"use strict";var r=n(499);function i(e){for(var t=e.d,n=t[0]+"",r=1;r0)if(++s>c)for(s-=c;s--;)u+="0";else s1&&(null!==l[d+1]&&void 0!==l[d+1]||(l[d+1]=0),l[d+1]+=l[d]>>1,l[d]&=1)}return l.reverse()}e.exports=function(e,t,n){var o,a,s,u,c,l=e.constructor,f=+(e.s<0),h=+(t.s<0);if(f){o=i(r(e));for(var d=0;d0;)n(s[--v],u[--m])===y&&(g=g.plus(b)),b=b.times(_);for(;m>0;)n(c,u[--m])===y&&(g=g.plus(b)),b=b.times(_);return l.config({precision:w}),0===y&&(g.s=-g.s),g}},function(e,t,n){"use strict";e.exports=function(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,n=t.precision;t.config({precision:1e9});var r=e.plus(new t(1));return r.s=-r.s||null,t.config({precision:n}),r}},function(e,t,n){"use strict";var r=n(83);t.name="algorithm08",t.factory=function(e,t,i,o){var a=i(n(78)),s=e.SparseMatrix;return function(e,t,n){var i=e._values,u=e._index,c=e._ptr,l=e._size,f=e._datatype,h=t._values,d=t._index,p=t._ptr,v=t._size,m=t._datatype;if(l.length!==v.length)throw new r(l.length,v.length);if(l[0]!==v[0]||l[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+v+")");if(!i||!h)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var y,g=l[0],b=l[1],_=a,w=0,x=n;"string"===typeof f&&f===m&&(y=f,_=o.find(a,[y,y]),w=o.convert(0,y),x=o.find(n,[y,y]));for(var S,O,E,k,T=[],M=[],C=[],N=new s({values:T,index:M,ptr:C,size:[g,b],datatype:y}),P=[],j=[],A=0;A>1)*e(r+1,n)}},function(e,t,n){"use strict";var r=n(27).size,i=n(304),o=n(250);function a(e,t,n){var r,i,o;if(t<=0){if(Array.isArray(e[0])){for(o=function(e){var t,n,r=e.length,i=e[0].length,o=[];for(n=0;n=s.length)throw new o(t,s.length);return i(e)?e.create(a(e.valueOf(),t,n)):a(e,t,n)}});return l.toTex=void 0,l}},function(e,t,n){"use strict";var r=n(32).isInteger;t.name="partitionSelect",t.factory=function(e,t,i,o){var a=i(n(254)),s=i(n(388)),u=i(n(257));function c(e,t){return-u(e,t)}return o("partitionSelect",{"Array | Matrix, number":function(e,t){return l(e,t,u)},"Array | Matrix, number, string":function(e,t,n){if("asc"===n)return l(e,t,u);if("desc"===n)return l(e,t,c);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":l});function l(t,n,i){if(!r(n)||n<0)throw new Error("k must be a non-negative integer");if(e.isMatrix(t)){if(t.size().length>1)throw new Error("Only one dimensional matrices supported");return f(t.valueOf(),n,i)}if(Array.isArray(t))return f(t,n,i)}function f(e,t,n){if(t>=e.length)throw new Error("k out of bounds");for(var r=0;r=0){var f=e[c];e[c]=e[u],e[u]=f,--c}else++u;n(e[u],l)>0&&--u,t<=u?o=u:i=u+1}return e[t]}}},function(e,t,n){"use strict";var r=n(223),i=n(389),o=n(310);t.name="max",t.factory=function(e,t,a,s){var u=a(n(166)),c=a(n(191)),l=s("max",{"Array | Matrix":h,"Array | Matrix, number | BigNumber":function(e,t){return i(e,t.valueOf(),f)},"...":function(e){if(o(e))throw new TypeError("Scalar values expected in function max");return h(e)}});return l.toTex="\\max\\left(${args}\\right)",l;function f(e,t){try{return u(e,t)?e:t}catch(n){throw c(n,"max",t)}}function h(e){var t;if(r(e,(function(e){try{isNaN(e)&&"number"===typeof e?t=NaN:(void 0===t||u(e,t))&&(t=e)}catch(n){throw c(n,"max",e)}})),void 0===t)throw new Error("Cannot calculate max of an empty array");return t}}},function(e,t,n){"use strict";var r=n(223),i=n(389),o=n(310);t.name="sum",t.factory=function(e,t,a,s){var u=a(n(100)),c=a(n(191)),l=s("sum",{"Array | Matrix":f,"Array | Matrix, number | BigNumber":function(e,t){try{return i(e,t,u)}catch(n){throw c(n,"sum")}},"...":function(e){if(o(e))throw new TypeError("Scalar values expected in function sum");return f(e)}});return l.toTex=void 0,l;function f(n){var i;if(r(n,(function(e){try{i=void 0===i?e:u(i,e)}catch(t){throw c(t,"sum",e)}})),void 0===i)switch(t.number){case"number":return 0;case"BigNumber":return new e.BigNumber(0);case"Fraction":return new e.Fraction(0);default:return 0}return i}}},function(e,t,n){"use strict";var r=n(305),i=n(168),o=n(32).isNumber;t.name="distribution",t.factory=function(e,t,a,s,u){var c=a(n(19)),l=n(27),f=a(n(1190));function h(t){if(!d.hasOwnProperty(t))throw new Error("Unknown distribution "+t);var n=Array.prototype.slice.call(arguments,1),a=d[t].apply(this,n);return function(t){function n(t,n,r){var i="undefined"===typeof n;if(i&&(n=1),e.isMatrix(t))t=t.valueOf();else if(!Array.isArray(t))throw new TypeError("Unsupported type of value in function pickRandom");if(l.size(t).length>1)throw new Error("Only one dimensional vectors supported");var a=0;if("undefined"!==typeof r){if(r.length!==t.length)throw new Error("Weights must have the same length as possibles");for(var s=0,u=r.length;s=c)return n>1?t:t[0];for(var h,d=[];d.length1)for(var o=0,a=e.shift();o3)throw new r("random",arguments.length,0,3);if(1===arguments.length?i(t)?u=t:f=t:2===arguments.length?i(t)?(u=t,f=n):(l=t,f=n):(u=t,l=n,f=s),void 0!==l&&!o(l)||void 0!==f&&!o(f))throw new TypeError("Invalid argument in function random");if(void 0===f&&(f=1),void 0===l&&(l=0),void 0!==u){var d=h(u.valueOf(),l,f,a);return e.isMatrix(u)?c(d):d}return a(l,f)},randomInt:s({"number | Array":function(t){if(i(t)){var n=t,r=h(n.valueOf(),0,1,u);return e.isMatrix(n)?c(r):r}return u(0,t)},"number | Array, number":function(t,n){if(i(t)){var r=t,o=n,a=h(r.valueOf(),0,o,u);return e.isMatrix(r)?c(a):a}return u(t,n)},"Array, number, number":function(e,t,n){var r=h(e.valueOf(),t,n,u);return e&&!0===e.isMatrix?c(r):r}}),pickRandom:s({Array:function(e){return n(e)},"Array, number | Array":function(e,t){var r,i;if(Array.isArray(t))i=t;else{if(!o(t))throw new TypeError("Invalid argument in function pickRandom");r=t}return n(e,r,i)},"Array, number | Array, Array | number":function(e,t,r){var i,a;if(Array.isArray(t)?(a=t,i=r):(a=r,i=t),!Array.isArray(a)||!o(i))throw new TypeError("Invalid argument in function pickRandom");return n(e,i,a)}})}}(a)}var d={uniform:function(){return f},normal:function(){return function(){for(var e,t,n=-1;n<0||n>1;)e=f(),t=f(),n=1/6*Math.pow(-2*Math.log(e),.5)*Math.cos(2*Math.PI*t)+.5;return n}}};return h.toTex=void 0,h}},function(e,t,n){"use strict";var r=n(223);t.name="var",t.factory=function(e,t,i,o){var a=i(n(502)),s=i(n(100)),u=i(n(92)),c=i(n(114)),l=i(n(86)),f=i(n(388)),h=i(n(191)),d=o("variance",{"Array | Matrix":function(e){return p(e,"unbiased")},"Array | Matrix, string":p,"Array | Matrix, number | BigNumber":function(e,t){return v(e,t,"unbiased")},"Array | Matrix, number | BigNumber, string":v,"...":function(e){return p(e,"unbiased")}});return d.toTex="\\mathrm{Var}\\left(${args}\\right)",d;function p(t,n){var i=0,o=0;if(0===t.length)throw new SyntaxError("Function var requires one or more parameters (0 provided)");if(r(t,(function(e){try{i=s(i,e),o++}catch(t){throw h(t,"var",e)}})),0===o)throw new Error("Cannot calculate var of an empty array");var a=l(i,o);if(i=0,r(t,(function(e){var t=u(e,a);i=s(i,c(t,t))})),f(i))return i;switch(n){case"uncorrected":return l(i,o);case"biased":return l(i,o+1);case"unbiased":var d=e.isBigNumber(i)?new e.BigNumber(0):0;return 1===o?d:l(i,o-1);default:throw new Error('Unknown normalization "'+n+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function v(e,t,n){try{if(0===e.length)throw new SyntaxError("Function var requires one or more parameters (0 provided)");return a(e,t,(function(e){return p(e,n)}))}catch(r){throw h(r,"var")}}}},function(e,t,n){"use strict";t.factory=function(e,t,n,r){return function(t,n,r){var i=t.filter((function(t){return e.isSymbolNode(t)&&!(t.name in n)&&!(t.name in r)}))[0];if(!i)throw new Error('No undefined variable found in inline expression "'+t+'"');var o=i.name,a=Object.create(r),s=t.compile();return function(e){return a[o]=e,s.eval(a)}}}},function(e,t,n){var r=n(1482),i=n(724),o=n(370),a=n(1483);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";var r=n(311),i=n(248),o=n(33),a=n(38),s=n(58),u=n(59),c=n(41);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=c(n(42)),f=c(n(126)),h=c(n(511)),d=c(n(192)),p=c(n(312)),v=c(n(146)),m=n(728),y=function(e){s(n,e);var t=u(n);function n(e,r){var i;if(o(this,n),(i=t.call(this))._id=l.default.uniqueId("collection-"),i._eventList=null,i._type=null,e){if(e instanceof n){var a=e,s=r||!0;l.default.isUndefined(s)||!0===s?(i._eventList=a._eventList,i._type=a._type):i._eventList=new f.default.List}else if(l.default.isArray(e)){var u=[];e.forEach((function(e){i._check(e),u.push(e._d)})),i._eventList=new f.default.List(u)}else if(f.default.List.isList(e)){var c=r;if(!c)throw new Error("No type supplied to Collection constructor");i._type=c,i._eventList=e}}else i._eventList=new f.default.List;return i}return a(n,[{key:"toJSON",value:function(){return this._eventList.toJS()}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"type",value:function(){return this._type}},{key:"size",value:function(){return this._eventList.size}},{key:"sizeValid",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",n=0,r=i(this.events());try{for(r.s();!(e=r.n()).done;){var o=e.value;d.default.isValidValue(o,t)&&n++}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"at",value:function(e){if(this._eventList.size>0)return new this._type(this._eventList.get(e))}},{key:"atKey",value:function(e){var t,n=[];e instanceof Date?t=e.getTime():l.default.isString(e)?t=e:e instanceof p.default&&(t="".concat(this.timerange().begin(),",").concat(this.timerange().end()));var r,o=i(this.events());try{for(o.s();!(r=o.n()).done;){var a=r.value;a.key()===t&&n.push(a)}}catch(s){o.e(s)}finally{o.f()}return n}},{key:"atFirst",value:function(){if(this.size())return this.at(0)}},{key:"atLast",value:function(){if(this.size())return this.at(this.size()-1)}},{key:"events",value:r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(tt)&&(t=o.end())}}catch(a){r.e(a)}finally{r.f()}if(e&&t)return new p.default(e,t)}},{key:"addEvent",value:function(e){this._check(e);var t=new n(this);return t._eventList=this._eventList.push(e._d),t}},{key:"slice",value:function(e,t){return new n(this._eventList.slice(e,t),this._type)}},{key:"filter",value:function(e){var t,r=[],o=i(this.events());try{for(o.s();!(t=o.n()).done;){var a=t.value;e(a)&&r.push(a)}}catch(s){o.e(s)}finally{o.f()}return new n(r)}},{key:"map",value:function(e){var t,r=[],o=i(this.events());try{for(o.s();!(t=o.n()).done;){var a=t.value;r.push(e(a))}}catch(s){o.e(s)}finally{o.f()}return new n(r)}},{key:"clean",value:function(e){var t,r=v.default.fieldPathToArray(e),o=[],a=i(this.events());try{for(a.s();!(t=a.n()).done;){var s=t.value;d.default.isValidValue(s,r)&&o.push(s)}}catch(u){a.e(u)}finally{a.f()}return new n(o)}},{key:"count",value:function(){return this.size()}},{key:"first",value:function(e,t){return this.aggregate((0,m.first)(t),e)}},{key:"last",value:function(e,t){return this.aggregate((0,m.last)(t),e)}},{key:"sum",value:function(e,t){return this.aggregate((0,m.sum)(t),e)}},{key:"avg",value:function(e,t){return this.aggregate((0,m.avg)(t),e)}},{key:"max",value:function(e,t){return this.aggregate((0,m.max)(t),e)}},{key:"min",value:function(e,t){return this.aggregate((0,m.min)(t),e)}},{key:"mean",value:function(e,t){return this.avg(e,t)}},{key:"median",value:function(e,t){return this.aggregate((0,m.median)(t),e)}},{key:"stdev",value:function(e,t){return this.aggregate((0,m.stdev)(t),e)}},{key:"percentile",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=arguments.length>3?arguments[3]:void 0;return this.aggregate((0,m.percentile)(e,n,r),t)}},{key:"aggregate",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!l.default.isFunction(e))throw new Error("First arg to aggregate() must be a function");if(l.default.isString(t))n=t;else if(l.default.isArray(t))n=t.split(".");else{if(!l.default.isUndefined(t))throw new Error("Collection.aggregate() takes a string/array fieldPath");n="value"}var i=d.default.mapReduce(this.eventListAsArray(),n,e,r);return i[n]}},{key:"quantile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=[],i=this.sort(t),o=1/e;if(e>this.length)throw new Error("Subset n is greater than the Collection length");for(var a=o;a<1;a+=o){var s=Math.floor((i.size()-1)*a);if(si.end().getTime()?i.end():s):(o=si.end().getTime()?i.end():d)}else{var p=this.state.initialBrushXYPosition,v=this.props.timeScale.invert(p[0]).getTime()-this.props.timeScale.invert(r[0]).getTime(),m=v,y=v;if(s-vi.end()&&(y=u-i.end().getTime()),(o="brush"===this.state.brushingInitializationSite||"handle-left"===this.state.brushingInitializationSite?parseInt(s-m,10):s)>(a="brush"===this.state.brushingInitializationSite||"handle-right"===this.state.brushingInitializationSite?parseInt(u-y,10):u)){var g=[a,o];o=g[0],a=g[1]}}this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(new c.TimeRange(o,a))}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":i="ew-resize";break;case"brush":i="move";break;default:i="crosshair"}var o={fill:"white",opacity:0,cursor:i};return s.default.createElement("rect",{ref:function(t){e.overlay=t},x:0,y:0,width:n,height:r,style:o,onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick})}},{key:"renderBrush",value:function(){var e=this.props,t=e.timeRange,n=e.timeScale,r=e.height,o=e.style;if(!t)return s.default.createElement("g",null);var u=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":u="ew-resize";break;case"overlay":u="crosshair";break;default:u="move"}var c={fill:"#777",fillOpacity:.3,stroke:"#fff",shapeRendering:"crispEdges",cursor:u},l=(0,a.default)(!0,c,o);if(!this.viewport().disjoint(t)){var f=t.intersection(this.viewport()),h=f.begin(),d=f.end(),p=[n(h),0],v=p[0],m=p[1],y=n(d)-v;y<1&&(y=1);var g={x:v,y:m,width:y,height:r};return s.default.createElement("rect",i({},g,{style:l,pointerEvents:"all",onMouseDown:this.handleBrushMouseDown,onMouseUp:this.handleMouseUp}))}return s.default.createElement("g",null)}},{key:"renderHandles",value:function(){var e=this,t=this.props,n=t.timeRange,o=t.timeScale,a=t.height;if(!n)return s.default.createElement("g",null);var u={fill:"white",opacity:0,cursor:"ew-resize"};if(!this.viewport().disjoint(n)){var c=n.intersection(this.viewport()).toJSON(),l=r(c,2),f=l[0],h=l[1],d=[o(f),0],p=d[0],v=d[1],m=o(h)-p;m<1&&(m=1);var y=this.props.handleSize,g={x:p-1,y:v,width:y,height:a},b={x:p+(m-y),y:v,width:y+1,height:a};return s.default.createElement("g",null,s.default.createElement("rect",i({},g,{style:u,pointerEvents:"all",onMouseDown:function(t){return e.handleHandleMouseDown(t,"left")},onMouseUp:this.handleMouseUp})),s.default.createElement("rect",i({},b,{style:u,pointerEvents:"all",onMouseDown:function(t){return e.handleHandleMouseDown(t,"right")},onMouseUp:this.handleMouseUp})))}return s.default.createElement("g",null)}},{key:"render",value:function(){return s.default.createElement("g",{onMouseMove:this.handleMouseMove},this.renderOverlay(),this.renderBrush(),this.renderHandles())}}]),t}(s.default.Component);t.default=h,h.propTypes={timeRange:u.default.instanceOf(c.TimeRange),style:u.default.object,handleSize:u.default.number,allowSelectionClear:u.default.bool,onTimeRangeChanged:u.default.func,timeScale:u.default.func,width:u.default.number,height:u.default.number},h.defaultProps={handleSize:6,allowSelectionClear:!1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(47),i=Object(r.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));t.a=i;var o=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.d-e.getMinutes()*i.c)}),(function(e,t){e.setTime(+e+t*i.b)}),(function(e,t){return(t-e)/i.b}),(function(e){return e.getHours()}));t.a=o;var a=o.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.d)}),(function(e,t){e.setTime(+e+t*i.c)}),(function(e,t){return(t-e)/i.c}),(function(e){return e.getMinutes()}));t.a=o;var a=o.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(47),i=Object(r.a)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));t.a=i;var o=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*i.b)}),(function(e,t){return(t-e)/i.b}),(function(e){return e.getUTCHours()}));t.a=o;var a=o.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(47),i=n(57),o=Object(r.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*i.c)}),(function(e,t){return(t-e)/i.c}),(function(e){return e.getUTCMinutes()}));t.a=o;var a=o.range},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=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(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t0&&null==n.props.timeRanges[n.props.timeRanges.length-1]},n.handleMouseClick=function(e,t){n.props.onTimeRangeClicked&&n.props.onTimeRangeClicked(t)},n.state={isBrushing:!1},n.handleBrushMouseDown=n.handleBrushMouseDown.bind(n),n.handleOverlayMouseDown=n.handleOverlayMouseDown.bind(n),n.handleHandleMouseDown=n.handleHandleMouseDown.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n}return function(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,e),o(t,[{key:"viewport",value:function(){var e=this.props,t=e.width,n=e.timeScale,r=n.invert(0),i=n.invert(t);return new c.TimeRange(r,i)}},{key:"handleBrushMouseDown",value:function(e,t){e.preventDefault();var n=e.pageX,r=e.pageY,i=[Math.round(n),Math.round(r)],o=+this.props.timeRanges[t].begin(),a=+this.props.timeRanges[t].end();document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"brush",initialBrushBeginTime:o,initialBrushEndTime:a,initialBrushXYPosition:i,brushIndex:t})}},{key:"handleOverlayMouseDown",value:function(e){if(this.props.allowFreeDrawing||this.hasNullBrush()){e.preventDefault();var t=(0,l.getElementOffset)(this.overlay),n=e.pageX-t.left,r=this.props.timeScale.invert(n).getTime();document.addEventListener("mouseup",this.handleMouseUp);var i=this.props.allowFreeDrawing?this.props.timeRanges.length:this.props.timeRanges.length-1;this.setState({isBrushing:!0,brushingInitializationSite:"overlay",initialBrushBeginTime:r,initialBrushEndTime:r,initialBrushXYPosition:null,brushIndex:i})}}},{key:"handleHandleMouseDown",value:function(e,t,n){e.preventDefault();var r=e.pageX,i=e.pageY,o=[Math.round(r),Math.round(i)],a=this.props.timeRanges[n].begin().getTime(),s=this.props.timeRanges[n].end().getTime();document.addEventListener("mouseover",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"handle-"+t,initialBrushBeginTime:a,initialBrushEndTime:s,initialBrushXYPosition:o,brushIndex:n})}},{key:"handleMouseUp",value:function(e){var t=this;e.preventDefault(),document.removeEventListener("mouseover",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp);var n=this.state.brushIndex;this.setState({isBrushing:!1,brushingInitializationSite:null,initialBrushBeginTime:null,initialBrushEndTime:null,initialBrushXYPosition:null,brushIndex:null},(function(){t.props.onUserMouseUp&&t.props.onUserMouseUp(n)}))}},{key:"handleMouseMove",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY,r=[Math.round(t),Math.round(n)],i=this.viewport();if(this.state.isBrushing){var o=void 0,a=void 0,s=this.state.initialBrushBeginTime,u=this.state.initialBrushEndTime;if("overlay"===this.state.brushingInitializationSite){var f=(0,l.getElementOffset)(this.overlay),h=e.pageX-f.left,d=this.props.timeScale.invert(h).getTime();di.end().getTime()?i.end():s):(o=si.end().getTime()?i.end():d)}else{var p=this.state.initialBrushXYPosition,v=this.props.timeScale.invert(p[0]).getTime()-this.props.timeScale.invert(r[0]).getTime(),m=v,y=v;if(s-vi.end()&&(y=u-i.end().getTime()),(o="brush"===this.state.brushingInitializationSite||"handle-left"===this.state.brushingInitializationSite?parseInt(s-m,10):s)>(a="brush"===this.state.brushingInitializationSite||"handle-right"===this.state.brushingInitializationSite?parseInt(u-y,10):u)){var g=[a,o];o=g[0],a=g[1]}}this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(new c.TimeRange(o,a),this.state.brushIndex)}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":i="ew-resize";break;case"brush":i="move";break;default:i=this.props.allowFreeDrawing||this.hasNullBrush()?"crosshair":"default"}var o={fill:"white",opacity:0,cursor:i};return s.default.createElement("rect",{ref:function(t){e.overlay=t},x:0,y:0,width:n,height:r,style:o,onClick:this.handleMouseClick,onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleMouseUp})}},{key:"renderBrush",value:function(e,t){var n=this,r=this.props,o=r.timeScale,u=r.height;if(!e)return s.default.createElement("g",null);var c=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":c="ew-resize";break;case"overlay":c=this.props.allowFreeDrawing||this.hasNullBrush()?"crosshair":"default";break;default:c="move"}var l={fill:"#777",fillOpacity:.3,stroke:"#fff",shapeRendering:"crispEdges",cursor:c},f=this.props.style?this.props.style(t):{},h=(0,a.default)(!0,l,f);if(!this.viewport().disjoint(e)){var d=e.intersection(this.viewport()),p=d.begin(),v=d.end(),m=[o(p),0],y=m[0],g=m[1],b=o(v)-y;b<1&&(b=1);var _={x:y,y:g,width:b,height:u};return s.default.createElement("rect",i({},_,{key:t+"-"+h,style:h,pointerEvents:"all",onClick:function(e){return n.handleMouseClick(e,t)},onMouseDown:function(e){return n.handleBrushMouseDown(e,t)},onMouseUp:this.handleMouseUp}))}return s.default.createElement("g",null)}},{key:"renderHandles",value:function(e,t){var n=this,o=this.props,a=o.timeScale,u=o.height;if(!e)return s.default.createElement("g",null);var c={fill:"white",opacity:0,cursor:"ew-resize"};if(!this.viewport().disjoint(e)){var l=e.intersection(this.viewport()).toJSON(),f=r(l,2),h=f[0],d=f[1],p=[a(h),0],v=p[0],m=p[1],y=a(d)-v;y<1&&(y=1);var g=this.props.handleSize,b={x:v-1,y:m,width:g,height:u},_={x:v+(y-g),y:m,width:g+1,height:u};return s.default.createElement("g",null,s.default.createElement("rect",i({},b,{style:c,pointerEvents:"all",onMouseDown:function(e){return n.handleHandleMouseDown(e,"left",t)},onMouseUp:this.handleMouseUp})),s.default.createElement("rect",i({},_,{style:c,pointerEvents:"all",onMouseDown:function(e){return n.handleHandleMouseDown(e,"right",t)},onMouseUp:this.handleMouseUp})))}return s.default.createElement("g",null)}},{key:"render",value:function(){var e=this;return s.default.createElement("g",{onMouseMove:this.handleMouseMove},this.renderOverlay(),(this.props.timeRanges||[]).map((function(t,n){return s.default.createElement("g",{key:"multibrush_"+n},e.renderBrush(t,n),e.renderHandles(t,n))})))}}]),t}(s.default.Component);t.default=h,h.propTypes={timeRanges:u.default.arrayOf(u.default.instanceOf(c.TimeRange)),style:u.default.func,handleSize:u.default.number,allowFreeDrawing:u.default.bool,onTimeRangeChanged:u.default.func,onUserMouseUp:u.default.func,onTimeRangeClicked:u.default.func,timeScale:u.default.func,width:u.default.number,height:u.default.number},h.defaultProps={handleSize:6,allowFreeDrawing:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s0?r:n)(e)}},function(e,t,n){var r=n(147),i=n(1588),o=n(539),a=n(531)("IE_PROTO"),s=function(){},u=function(){var e,t=n(534)("iframe"),r=o.length;for(t.style.display="none",n(762).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("